# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1272881920 -10800 # Node ID 90517678cc4f8b50b8a9a942d8aeb0c5e2759488 # Parent 2b40d63a9c3d40a840f184c5787c2327db2b94e5 Revision: 201015 Kit: 201018 diff -r 2b40d63a9c3d -r 90517678cc4f .hgtags --- a/.hgtags Fri Apr 16 15:51:22 2010 +0300 +++ b/.hgtags Mon May 03 13:18:40 2010 +0300 @@ -25,3 +25,8 @@ aef17df0de9becd4832e0f69a8e29c20499fa6bc rel-1010 1ddb7a4efdfd6ae6483682c81839d2d416dd7103 rel-1010-1 6c03759b502def77a859f3b360dca47546db2779 rel-1010-2 +7f497cd0f385c5e3238d3cb9662ca7824b444578 rel-1012 +dac3fed1fcc0c948c4bf44bafe5ffc2eee3648de rel-1014 +b7af6dc67fe0e5c4811d3d0ec3367675a9549146 rel-1014-1 +e2211009c3b2ac59feba403cb2a44333f2a03b38 rel-1014-2 +c555635e12cbde91384eae046da7b13a8009e20d rel-1014-3 diff -r 2b40d63a9c3d -r 90517678cc4f VERSION.SHA1 --- a/VERSION.SHA1 Fri Apr 16 15:51:22 2010 +0300 +++ b/VERSION.SHA1 Mon May 03 13:18:40 2010 +0300 @@ -1,1 +1,1 @@ -67323ef2925a35eb016ef124c6d490d59c8c8598 +b3298803d5feffa69a4ed08b17c98e4350b6bf8e diff -r 2b40d63a9c3d -r 90517678cc4f group/bld.inf --- a/group/bld.inf Fri Apr 16 15:51:22 2010 +0300 +++ b/group/bld.inf Mon May 03 13:18:40 2010 +0300 @@ -26,10 +26,6 @@ PRJ_EXPORTS qtextensionsconfig.xml /epoc32/tools/makefile_templates/qt/qtextensionsconfig.xml -qtextensionsconfig.flm /epoc32/tools/makefile_templates/qt/qtextensionsconfig.flm -qtextensionsconfig.mk /epoc32/tools/makefile_templates/qt/qtextensionsconfig.mk -qtextensionsconfig.meta /epoc32/tools/makefile_templates/qt/qtextensionsconfig.meta - qtextensions_pre_targetdep.flm /epoc32/tools/makefile_templates/qt/qtextensions_pre_targetdep.flm ../qtecomplugins/mkspecs/features/ecomplugin.prf /epoc32/tools/qt/mkspecs/features/symbian/ecomplugin.prf @@ -46,10 +42,4 @@ PRJ_EXTENSIONS -START EXTENSION qt/qtextensionsconfig -OPTION MODULES bearer location serviceframework publishsubscribe systeminfo messaging /*multimedia*/ -OPTION TESTS -tests -OPTION EXAMPLES -examples -OPTION DOCS -no-docs -END diff -r 2b40d63a9c3d -r 90517678cc4f group/cmaker/config/export.mk --- a/group/cmaker/config/export.mk Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -# -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation, version 2.1 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this program. If not, -# see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". -# -# Description: makefile_templates, actual build configuration export makefile -# - -MAKEFILE = /sf/mw/qtextensions/group/cmaker/config/export.mk - - -$(call push,MAKEFILE_STACK,$(MAKEFILE)) - - -TEMPLATEMAKEFILES = /sf/mw/qtextensions/group/qtextensionsconfig.meta /epoc32/tools/makefile_templates/qt/ - - -template_makefiles :: template_makefiles_config - - -$(call addfiles, $(TEMPLATEMAKEFILES), template_makefiles_config) - - -$(call popout,MAKEFILE_STACK) - diff -r 2b40d63a9c3d -r 90517678cc4f group/cmaker/makefile --- a/group/cmaker/makefile Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -# -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation, version 2.1 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this program. If not, -# see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". -# -# Description: exporting of *.meta file via cmaker -# - -MAKEFILE = /sf/mw/qtextensions/group/cmaker/makefile - -# Place the first target as the default target which is executed from this level - -export_template_files :: template_makefiles - -include include_template.mk diff -r 2b40d63a9c3d -r 90517678cc4f group/qtextensionsconfig.flm --- a/group/qtextensionsconfig.flm Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -# /**************************************************************************** -# ** -# ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). -# ** Contact: -# ** -# ****************************************************************************/ - -# FLM to configure QtMobility. - -QT_ROOT := $(EPOCROOT)/epoc32/tools/qt/ -QTMOBILITY_ROOT := $(subst group,,$(subst \,/,$(EXTENSION_ROOT)qtmobility/)) - -# Determine which platform we are building on -ifeq ($(OSTYPE),unix) -DOTBAT := -else -DOTBAT := .bat -endif - -define QtExtensionsConfiguration -QTMOBILITY: - $(call startrule,qtextensionsconf) \ - echo Configuring QtMobility && \ - echo EPOCROOT $(EPOCROOT) && \ - echo QT_ROOT $(QT_ROOT) && \ - echo QTMOBILITY_ROOT $(QTMOBILITY_ROOT) && \ - echo DOTBAT $(DOTBAT) && \ - echo MODULES $(MODULES) && \ - echo TESTS $(TESTS) && \ - echo EXAMPLES $(EXAMPLES) && \ - echo DOCS $(DOCS) && \ - cd $(QTMOBILITY_ROOT) && \ - $(QTMOBILITY_ROOT)configure$(DOTBAT) -qt $(QT_ROOT) -prefix $(QTMOBILITY_ROOT) -modules "$(MODULES)" $(TESTS) $(EXAMPLES) $(DOCS) \ - $(call endrule,qtextensionsconf) -endef - -ALL:: QTMOBILITY -$(eval $(call QtExtensionsConfiguration)) diff -r 2b40d63a9c3d -r 90517678cc4f group/qtextensionsconfig.meta --- a/group/qtextensionsconfig.meta Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -# Meta information for Python Py2exe -# -# Copyright (c) 2007 Symbian Software Ltd. All rights reserved. -# - -platform tools2 -makefile gnumake -techstream qt diff -r 2b40d63a9c3d -r 90517678cc4f group/qtextensionsconfig.mk --- a/group/qtextensionsconfig.mk Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +0,0 @@ -# -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation, version 2.1 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this program. If not, -# see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". -# -# Description: -# - -# All paths used in this file end with the path delimiter '/' - -include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk - -EPOC_ROOT := $(subst \,/,$(EPOCROOT)) -QT_ROOT := $(EPOC_ROOT)epoc32/tools/qt/ -QTMOBILITY_ROOT := $(subst group,,$(subst \,/,$(EXTENSION_ROOT)qtmobility/)) - -# Determine which platform we are building on -ifeq ($(OSTYPE),unix) -DOTBAT := -else -QTMOBILITY_ROOT:= $(subst /,\,$(QTMOBILITY_ROOT)) -QT_ROOT:= $(subst /,\,$(QT_ROOT)) -DOTBAT := .bat -endif - -QTMOBILITY: - echo Configuring QtMobility - echo EPOCROOT $(EPOCROOT) - echo EPOC_ROOT $(EPOC_ROOT) - echo EXTENSION_ROOT $(EXTENSION_ROOT) - echo QT_ROOT $(QT_ROOT) - echo QTMOBILITY_ROOT $(QTMOBILITY_ROOT) - echo DOTBAT $(DOTBAT) - echo MODULES $(MODULES) - echo TESTS $(TESTS) - echo TESTS $(TESTS) - echo DOCS $(DOCS) - cd $(QTMOBILITY_ROOT) && $(QTMOBILITY_ROOT)configure$(DOTBAT) -qt $(QT_ROOT) -prefix $(QTMOBILITY_ROOT) -modules "$(MODULES)" $(TESTS) $(EXAMPLES) $(DOCS) - -do_nothing: - -MAKMAKE : do_nothing - -BLD : QTMOBILITY - -FINAL : do_nothing - -CLEAN : do_nothing - -RELEASABLES : do_nothing - -SAVESPACE : BLD - -FREEZE : do_nothing - -LIB : do_nothing - -CLEANLIB : do_nothing - -RESOURCE : do_nothing - - - diff -r 2b40d63a9c3d -r 90517678cc4f group/qtextensionsconfig.xml --- a/group/qtextensionsconfig.xml Fri Apr 16 15:51:22 2010 +0300 +++ b/group/qtextensionsconfig.xml Mon May 03 13:18:40 2010 +0300 @@ -5,13 +5,6 @@ - - - - - - - diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbemptystyle.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbemptystyle.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,26 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ +#include "qhbemptystyle.h" + +QHbEmptyStyle::QHbEmptyStyle() +{ + +} diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbemptystyle.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbemptystyle.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,34 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ +#ifndef QHBEMPTYSTYLE_H +#define QHBEMPTYSTYLE_H + +#include + +class QHbEmptyStyle : public QCommonStyle +{ + Q_OBJECT + +public: + QHbEmptyStyle(); +}; + +#endif //QHBEMPTYSTYLE_H diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbstyle.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbstyle.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,3290 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ +//Qt includes +#include +#include +#include +#include +#include + +//Qt widgets +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +//Animation +#include +#include +#include + +//Hb includes +#include +#include +#include +#include +#include +#include + +#include "qhbstyle.h" +#include "qhbstyle_p.h" +#include "qhbstyleanimation.h" + +QT_BEGIN_NAMESPACE + +QHbStylePrivate::QHbStylePrivate() +{ + m_frameDrawer = 0; + m_styleManager = 0; + + m_animationGroup = q_check_ptr(new QParallelAnimationGroup()); +} + +QHbStylePrivate::~QHbStylePrivate() +{ + delete m_frameDrawer; + delete m_animationGroup; +} + +HbStyle* QHbStylePrivate::styleManager() +{ + return m_styleManager; +} + +void QHbStylePrivate::setStyleManager(HbStyle* style) +{ + Q_ASSERT(style); + m_styleManager = style; +} + +QParallelAnimationGroup* QHbStylePrivate::animationGroup() +{ + return m_animationGroup; +} + +/*! + \internal + */ +QHbStyle::QHbStyle() : QCommonStyle() +{ + m_private = new QHbStylePrivate(); + HbInstance *instance = HbInstance::instance(); + + m_private->setStyleManager(instance->style()); +} + +/*! + \internal + */ +QHbStyle::~QHbStyle() +{ + delete m_private; +} + +void QHbStyle::drawPrimitive(PrimitiveElement element, const QStyleOption *option, + QPainter *painter, const QWidget *widget) const +{ + switch (element) { + case PE_IndicatorViewItemCheck: { + if (const QStyleOptionViewItemV4 *itemOption = qstyleoption_cast(option)) { + ItemStates state; + if (itemOption->state & State_Selected) + state |= SS_Selected; + m_private->drawItem(SP_ItemDecoration, painter, option->rect, state); + } + break; + } + case PE_IndicatorHeaderArrow: { + if (const QStyleOptionHeader *header = qstyleoption_cast(option)) { + ItemStates state; + if (header->sortIndicator & QStyleOptionHeader::SortDown) + m_private->drawItem(SP_HeaderOrderIndicator, painter, header->rect, ItemStates(state|SS_Flipped)); + else if (header->sortIndicator & QStyleOptionHeader::SortUp) + m_private->drawItem(SP_HeaderOrderIndicator, painter, header->rect, ItemStates(state)); + } + break; + } + case PE_IndicatorBranch: { + if (option->state & State_Children) { + QRect indicatorRect = option->rect; + const int rectSide = proxy()->pixelMetric(PM_MenuButtonIndicator, option, widget); + indicatorRect = QRect(0, 0, rectSide, rectSide); + indicatorRect.moveCenter(option->rect.center()); + if (option->state & State_Open) + m_private->drawItem(SP_TreeViewExpanded, painter, indicatorRect); + else + m_private->drawItem(SP_TreeViewCollapsed, painter, indicatorRect); + } + break; + } + case PE_PanelItemViewRow: { + if (const QStyleOptionViewItemV4 *vopt = qstyleoption_cast(option)) { + ItemStates state = SS_Active; + if (vopt->state & State_HasFocus) + state |= SS_Focused; + if (vopt->state & State_Sunken || vopt->state & State_Raised) + state |= SS_Pressed; +#ifndef QT_NO_TREEVIEW + if (qobject_cast(widget)) { + if (option->state & State_Children) { + m_private->drawMultiPartItem(SM_ListParent, painter, vopt->rect, state); + break; + } + } +#endif + if (vopt->features & QStyleOptionViewItemV2::Alternate) + state |= SS_Alternate; //@todo: how? + m_private->drawMultiPartItem(SM_ItemViewItem, painter, vopt->rect, state); + } + break; + } + case PE_PanelItemViewItem: { + if (const QStyleOptionViewItemV4 *vopt = qstyleoption_cast(option)) { + ItemStates state = SS_Active; + if (vopt->state & State_HasFocus) + state |= SS_Focused; + if (vopt->state & State_Sunken || vopt->state & State_Raised) + state |= SS_Pressed; + m_private->drawMultiPartItem(SM_ItemViewItem, painter, vopt->rect, state); + } + break; + } + case PE_IndicatorArrowLeft: + case PE_IndicatorArrowRight: + case PE_IndicatorArrowUp: + case PE_IndicatorArrowDown: { + ItemStates state; + if (element == PE_IndicatorArrowRight) + state = SS_Right; + else if (element == PE_IndicatorArrowLeft) + state = SS_Left; + else if (element == PE_IndicatorArrowUp) + state = SS_Up; + else + state = SS_Down; + m_private->drawItem(SP_Arrow, painter, option->rect, state); + break; + } + case PE_PanelTipLabel: { + m_private->drawMultiPartItem(SM_ToolTip, painter, option->rect); + break; + } + case PE_Frame: { + if (const QStyleOptionFrameV3 *frame = qstyleoption_cast(option)) { +#ifndef QT_NO_TEXTEDIT + if (qobject_cast(widget)) + m_private->drawMultiPartItem(SM_TextEdit, painter, frame->rect); +#endif //QT_NO_TEXTEDIT + } + break; + } + case PE_FrameTabWidget: { + m_private->drawMultiPartItem(SM_Panel, painter, option->rect); + break; + } +#ifndef QT_NO_LINEEDIT + case PE_PanelLineEdit: { +#ifndef QT_NO_COMBOBOX + if (widget && qobject_cast(widget->parentWidget())) + break; +#endif +#ifndef QT_NO_SPINBOX + if (widget && qobject_cast(widget->parentWidget())) + break; +#endif + if (const QStyleOptionFrame *lineEdit = qstyleoption_cast(option)) { + ItemStates state = (lineEdit->state & State_Enabled) ? SS_Active : SS_Inactive; + if (lineEdit->state & State_HasFocus) + state |= SS_Selected; + m_private->drawMultiPartItem(SM_LineEdit, painter, lineEdit->rect, state); + } + break; + } +#endif // QT_NO_LINEEDIT + case PE_PanelButtonTool: { + if (const QStyleOptionToolButton *toolbutton = qstyleoption_cast(option)) { + //draw button + const bool isDisabled = !(toolbutton->state & State_Enabled); + const bool isPressed = (toolbutton->state & State_Sunken) || + (toolbutton->state & State_On); + + // 'latched' is a checkable button that is pressed down + bool isLatched = false; +#ifndef QT_NO_TOOLBUTTON + if (const QToolButton *toolButtonWidget = qobject_cast(widget)) + isLatched = toolButtonWidget->isCheckable() && isPressed; +#endif + ItemStates state = (isDisabled) ? SS_Disabled : SS_Active; + if (isLatched) + state = state | SS_Latched; + else if (isPressed) + state = state | SS_Pressed; + + if (toolbutton->state & State_Selected || toolbutton->state & State_HasFocus) + state = state | SS_Selected; +#ifndef QT_NO_TOOLBAR + if (widget && !qobject_cast(widget->parentWidget())) + m_private->drawMultiPartItem(SM_ToolButton, painter, toolbutton->rect, state); + else +#endif + m_private->drawMultiPartItem(SM_ToolBarButton, painter, toolbutton->rect, state); + } + break; + } + case PE_IndicatorCheckBox: { + ItemStates state = (option->state & State_On) ? SS_Active : SS_Inactive; + if (option->direction == Qt::RightToLeft) state |= SS_Mirrored; + m_private->drawItem(SP_CheckBoxIndicator, painter, option->rect, state); + break; + } + case PE_IndicatorRadioButton: { + const ItemStates state = (option->state & State_On) ? SS_Active : SS_Inactive; + m_private->drawItem(SP_RadioButtonIndicator, painter, option->rect, state); + break; + } + case PE_FrameFocusRect: { + if (const QStyleOptionFocusRect *highlight = qstyleoption_cast(option)) { + if (false +#ifndef QT_NO_LISTVIEW + || qobject_cast(widget) +#endif +#ifndef QT_NO_TABLEVIEW + || qobject_cast(widget) +#endif +#ifndef QT_NO_TREEVIEW + || qobject_cast(widget) +#endif + ) + m_private->drawMultiPartItem(SM_ItemViewHighlight, painter, highlight->rect); + } + break; + } + case PE_FrameMenu: { + break; + } + case PE_PanelMenu: { + m_private->drawMultiPartItem(SM_Menu, painter, option->rect); + break; + } + case PE_Widget: { + if (m_private->isDialog(widget)) + m_private->drawMultiPartItem(SM_Dialog, painter, option->rect); + break; + } + case PE_IndicatorMenuCheckMark: { + m_private->drawItem(SP_ItemDecoration, painter, option->rect); + break; + } + case PE_FrameGroupBox: { + ItemStates groupBoxStates; + if ((option->state & State_Sunken) || (option->state & State_Raised)) + groupBoxStates |= SS_Pressed; + if (option->state & State_HasFocus) + groupBoxStates |= SS_Selected; + if (option->state & State_On) + groupBoxStates |= SS_Active; + else if (option->state & State_Off) + groupBoxStates |= SS_Inactive; + m_private->drawMultiPartItem(SM_GroupBox, painter, option->rect, groupBoxStates); + break; + } + // Qt3 primitives are not supported + case PE_Q3CheckListController: + case PE_Q3CheckListExclusiveIndicator: + case PE_Q3CheckListIndicator: + case PE_Q3DockWindowSeparator: + case PE_Q3Separator: { + Q_ASSERT(false); + break; + } + case PE_PanelScrollAreaCorner: //no corner for scroll area + case PE_IndicatorTabTear: // no tab tear in uiemo + case PE_PanelMenuBar: { //no panel menu in uiemo + break; + } + default: { + QCommonStyle::drawPrimitive(element, option, painter, widget); + break; + } + } +} + +void QHbStyle::drawControl(ControlElement element, const QStyleOption *option, + QPainter *painter, const QWidget *widget) const +{ + switch (element) { + case CE_HeaderEmptyArea: { + const bool isHorizontal = (option->state & State_Horizontal); + ItemStates states = (isHorizontal) ? SS_Horizontal : ItemState(SS_Vertical); + if (!isHorizontal) + states |= (option->direction == Qt::LeftToRight) ? SS_RotatedRight : SS_RotatedLeft; + m_private->drawMultiPartItem(SM_ListParent, painter, option->rect, states); + break; + } + case CE_HeaderSection: { + if (const QStyleOptionHeader *header = qstyleoption_cast(option)) { + //Draw corner button as normal pushButton. + if (qobject_cast(widget)) { + QStyleOptionButton cornerButton; + cornerButton.initFrom(widget); + drawControl(CE_PushButtonBevel, &cornerButton, painter, widget); + } else { + const bool isVertical = (header->orientation == Qt::Vertical); + ItemStates states = (isVertical) ? SS_Vertical : ItemState(SS_Horizontal); + if (isVertical) + states |= (header->direction == Qt::LeftToRight) ? SS_RotatedRight : SS_RotatedLeft; + m_private->drawMultiPartItem(SM_ListParent, painter, option->rect, states); + } + } + break; + } + case CE_ItemViewItem: { + if (const QStyleOptionViewItemV4 *itemOption = qstyleoption_cast(option)) { + const QRect checkRect = subElementRect(SE_ItemViewItemCheckIndicator, itemOption, widget); + const QRect iconRect = subElementRect(SE_ItemViewItemDecoration, itemOption, widget); + QRect textRect = subElementRect(SE_ItemViewItemText, itemOption, widget); + + //background for list items (other itemviews use PE_PanelItemViewRow drawing) + if (qobject_cast(widget)) + proxy()->drawPrimitive(PE_PanelItemViewItem, itemOption, painter, widget); + + //checkbox + if (itemOption->features & QStyleOptionViewItemV2::HasCheckIndicator && checkRect.isValid()) { + QStyleOptionViewItemV4 checkOption; + checkOption.QStyleOption::operator=(*itemOption); + checkOption.rect = checkRect; + proxy()->drawPrimitive(PE_IndicatorViewItemCheck, &checkOption, painter, widget); + } + + //selection indication + if (itemOption->state & State_Selected) { + const QAbstractItemView *itemView = qobject_cast(widget); + if (itemView->selectionMode() != QAbstractItemView::SingleSelection) { + QStyleOptionViewItemV4 selectOption; + selectOption.QStyleOption::operator=(*itemOption); + int iconSize = 0; + if (m_private->hbParameter(QLatin1String("hb-param-graphic-size-secondary"), iconSize)) { + QRect selectRect = QRect(0, 0, iconSize, iconSize); + if (itemOption->direction == Qt::LeftToRight) { + //translate to end of text area and reduce text area + selectRect.translate(textRect.topRight().x() - selectRect.width(), textRect.topRight().y()); + } else { + //translate to the beginning of textRect, move textRect to the right + selectRect.translate(textRect.topLeft().x(), textRect.topRight().y()); + textRect.translate(selectRect.width(), 0); + } + textRect.setWidth(textRect.width() - selectRect.width()); + selectOption.rect = selectRect; + proxy()->drawPrimitive(PE_IndicatorViewItemCheck, &selectOption, painter, widget); + } + } + } + + //text + if (itemOption->text.length() > 0) { + uint flags = Qt::AlignVCenter | Qt::TextShowMnemonic; + if (!proxy()->styleHint(SH_UnderlineShortcut, itemOption, widget)) + flags |= Qt::TextHideMnemonic; + + drawItemText(painter, textRect, flags, itemOption->palette, (itemOption->state & State_Enabled), itemOption->text); + } + //icon + if (!itemOption->icon.isNull()) { + QIcon::Mode mode = QIcon::Normal; + if (!(option->state & State_Enabled)) + mode = QIcon::Disabled; + else if (option->state & State_Selected) + mode = QIcon::Selected; + QIcon::State state = itemOption->state & State_Open ? QIcon::On : QIcon::Off; + itemOption->icon.paint(painter, iconRect, itemOption->decorationAlignment, mode, state); + } + } + break; + } + case CE_ShapedFrame: { + if (const QStyleOptionFrameV3 *frame = qstyleoption_cast(option)) { + const int frameShape = frame->frameShape; + const int lineWidth = frame->lineWidth; + const int midLineWidth = frame->midLineWidth; + QPalette::ColorRole foregroundRole = QPalette::WindowText; + int frameShadow = QFrame::Plain; + if (frame->state & State_Sunken) + frameShadow = QFrame::Sunken; + else if (frame->state & State_Raised) + frameShadow = QFrame::Raised; + + switch (frameShape) { + case QFrame::Box: + case QFrame::WinPanel: + if (frameShadow == QFrame::Plain) + qDrawPlainRect(painter, frame->rect, frame->palette.color(foregroundRole), lineWidth); + else + qDrawShadeRect(painter, frame->rect, frame->palette, frameShadow == QFrame::Sunken, lineWidth, midLineWidth); + break; + case QFrame::StyledPanel: + if (widget) + widget->style()->drawPrimitive(PE_Frame, option, painter, widget); + else + proxy()->drawPrimitive(PE_Frame, option, painter, widget); + break; + case QFrame::Panel: + //@todo: support sunken / raised? + m_private->drawMultiPartItem(SM_Panel, painter, option->rect); + break; + case QFrame::HLine: + case QFrame::VLine: { + ItemStates states = (frameShape == QFrame::HLine) ? SS_Horizontal : SS_Vertical; + //@todo: support sunken / raised separators? + m_private->drawItem(SP_SeparatorLine, painter, frame->rect, states); + break; + } + } + } + break; + } +#ifndef QT_NO_TABBAR + case CE_TabBarTab: { + if (const QStyleOptionTab *tab = qstyleoption_cast(option)) { + proxy()->drawControl(CE_TabBarTabShape, tab, painter, widget); + proxy()->drawControl(CE_TabBarTabLabel, tab, painter, widget); + } + break; + } + case CE_TabBarTabShape: { + if (const QStyleOptionTab *tab = qstyleoption_cast(option)) { + ItemStates states = (tab->shape == QTabBar::TriangularSouth || + tab->shape == QTabBar::RoundedSouth || + tab->shape == QTabBar::TriangularNorth || + tab->shape == QTabBar::RoundedNorth) ? SS_Horizontal : SS_Vertical; + if (tab->state & State_Selected) + states |= SS_Selected; + if (tab->state & State_Raised || tab->state & State_Sunken) + states |= SS_Pressed; + if (!(tab->state & State_Enabled)) + states |= SS_Disabled; + + if (tab->shape == QTabBar::RoundedSouth || tab->shape == QTabBar::TriangularSouth || + tab->shape == QTabBar::RoundedEast || tab->shape == QTabBar::TriangularEast) + states |= SS_Flipped; + + if (tab->direction == Qt::RightToLeft) states |= SS_Mirrored; + + //Tab's position + if (tab->position == QStyleOptionTab::Beginning) + states |= (states & SS_Flipped) ? SS_End : SS_Beginning; + else if (tab->position == QStyleOptionTab::Middle) + states |= SS_Middle; + if (tab->position == QStyleOptionTab::End) + states |= (states & SS_Flipped) ? SS_Beginning : SS_End; + + m_private->drawMultiPartItem(SM_TabShape, painter, tab->rect, states); + } + break; + } + case CE_TabBarTabLabel: { + if (const QStyleOptionTabV3 *tab = qstyleoption_cast(option)) { + const bool enabled = tab->state & State_Enabled; + const QPixmap icon = tab->icon.pixmap(proxy()->pixelMetric(PM_TabBarIconSize, tab, widget), + enabled ? QIcon::Normal : QIcon::Disabled); + + const bool verticalTabs = tab->shape == QTabBar::RoundedEast + || tab->shape == QTabBar::RoundedWest + || tab->shape == QTabBar::TriangularEast + || tab->shape == QTabBar::TriangularWest; + + QRect tr = tab->rect; + //add a small space so that text/icon does not start from the border + const int margin = proxy()->pixelMetric(PM_DefaultFrameWidth, tab, widget); + if (!verticalTabs) + tr.adjust(margin, 0, -margin, 0); + else + tr.adjust(0, margin, 0, -margin); + + // Need to do rotation separately here, instead of in drawItem/drawMultiItemPart, since we want to rotate text as well. + if (verticalTabs) { + painter->save(); + int newX, newY, newRotation; + if (tab->shape == QTabBar::RoundedEast || tab->shape == QTabBar::TriangularEast) { + newX = tr.width(); + newY = tr.y(); + newRotation = 90; + } else { + newX = 0; + newY = tr.y() + tr.height(); + newRotation = -90; + } + tr.setRect(0, 0, tr.height(), tr.width()); + QTransform m; + m.translate(newX, newY); + m.rotate(newRotation); + painter->setTransform(m, true); + } + + const int frameWidth = proxy()->pixelMetric((verticalTabs) ? + PM_LayoutVerticalSpacing : PM_LayoutHorizontalSpacing, option, widget); + const Qt::TextElideMode elideMode = (tab->direction == Qt::LeftToRight) ? Qt::ElideRight : Qt::ElideLeft; + const QRect textRect = QRect(0, + 0, + tab->rect.width() - icon.width() - frameWidth * 2, + tab->rect.height() - icon.height() - frameWidth * 2); + QString txt = tab->fontMetrics.elidedText(tab->text, elideMode, (verticalTabs ? textRect.height() : textRect.width())); + + //Icon + if (!icon.isNull()) { + if (tab->text.isEmpty()) + painter->drawPixmap(tr.center().x() - (icon.height() >> 1), + tr.center().y() - (icon.height() >> 1), + icon); + else + painter->drawPixmap(tr.left(), + tr.center().y() - (icon.height() >> 1), + icon); + tr.setLeft(tr.left() + icon.width() + frameWidth); + } else { + tr.setLeft(tr.left() + frameWidth); + } + + //Text + if (tab->text.length() > 0) { + int alignment = Qt::AlignLeft | Qt::AlignVCenter | Qt::TextShowMnemonic; + if (!proxy()->styleHint(SH_UnderlineShortcut, tab, widget)) + alignment |= Qt::TextHideMnemonic; + proxy()->drawItemText(painter, tr, alignment, tab->palette, enabled, txt, QPalette::ButtonText); + } + + if (verticalTabs) + painter->restore(); + } + break; + } +#ifndef QT_NO_COMBOBOX + case CE_ComboBoxLabel: + if (const QStyleOptionComboBox *combo = qstyleoption_cast(option)) { + QRect editRect = proxy()->subControlRect(CC_ComboBox, combo, SC_ComboBoxEditField, widget); + const int spacing = proxy()->pixelMetric(PM_LayoutHorizontalSpacing, combo, widget); + if (!combo->currentIcon.isNull()) { + const QIcon::Mode mode = combo->state & State_Enabled ? QIcon::Normal + : QIcon::Disabled; + const QPixmap pixmap = combo->currentIcon.pixmap(combo->iconSize, mode); + QRect iconRect(editRect); + iconRect.setWidth(combo->iconSize.width() + spacing); + iconRect = alignedRect(combo->direction, + Qt::AlignLeft | Qt::AlignVCenter, + iconRect.size(), editRect); + if (combo->editable) + painter->fillRect(iconRect, combo->palette.brush(QPalette::Base)); + proxy()->drawItemPixmap(painter, iconRect, Qt::AlignCenter, pixmap); + + if (combo->direction == Qt::RightToLeft) + editRect.translate(-spacing - combo->iconSize.width(), 0); + else + editRect.translate(combo->iconSize.width() + spacing, 0); + } + if (!combo->currentText.isEmpty() && !combo->editable) { + const Qt::TextElideMode elideMode = (combo->direction == Qt::LeftToRight) ? Qt::ElideRight : Qt::ElideLeft; + const QString txt = combo->fontMetrics.elidedText(combo->currentText, elideMode, editRect.width()); + proxy()->drawItemText(painter, editRect.adjusted(1, 0, -1, 0), + visualAlignment(combo->direction, Qt::AlignLeft | Qt::AlignVCenter), + combo->palette, combo->state & State_Enabled, txt); + } + } + break; +#endif // QT_NO_COMBOBOX +#endif //QT_NO_TABBAR + case CE_PushButton: { + if (const QStyleOptionButton *btn = qstyleoption_cast(option)) { + proxy()->drawControl(CE_PushButtonBevel, btn, painter, widget); + QStyleOptionButton subopt = *btn; + subopt.rect = subElementRect(SE_PushButtonContents, btn, widget); + proxy()->drawControl(CE_PushButtonLabel, &subopt, painter, widget); + if ((btn->state & State_HasFocus)) { + QStyleOptionFocusRect fropt; + fropt.QStyleOption::operator=(*btn); + fropt.rect = subElementRect(SE_PushButtonFocusRect, btn, widget); + proxy()->drawPrimitive(PE_FrameFocusRect, &fropt, painter, widget); + } + } + break; + } + case CE_PushButtonBevel: { + if (const QStyleOptionButton *button = qstyleoption_cast(option)) { + const bool isDisabled = !(button->state & State_Enabled); + const bool isFlat = button->features & QStyleOptionButton::Flat; + const bool isPressed = (button->state & State_Sunken) || + (button->state & State_On); + // 'latched' is a checkable button that is pressed down + const QPushButton *pbutton = qobject_cast(widget); + const bool isLatched = (!pbutton) ? false : (pbutton->isCheckable() && isPressed); + + ItemStates state = (isDisabled) ? SS_Disabled : SS_Active; + if (isLatched) + state = state | SS_Latched; + else if (isPressed) + state = state | SS_Pressed; + + if (button->state & State_Selected || button->state & State_HasFocus) + state = state | SS_Selected; + + //todo: does Hb have flat buttons? + if (button->features & QStyleOptionButton::HasMenu) { + //draw menu indicator + const int menuButtonIndicator = proxy()->pixelMetric(PM_MenuButtonIndicator, button, widget); + QStyleOptionButton menuOpt = *button; + menuOpt.rect = QRect(button->rect.right() - menuButtonIndicator, + button->rect.y() + (button->rect.height() - menuButtonIndicator) / 2, + menuButtonIndicator, + menuButtonIndicator); + menuOpt.rect = visualRect(button->direction, button->rect, menuOpt.rect); + proxy()->drawPrimitive(PE_IndicatorArrowDown, &menuOpt, painter, widget); + } + if (isFlat) //lets draw flat buttons as toolbuttons + m_private->drawMultiPartItem(SM_ToolButton, painter, button->rect, state); + else + m_private->drawMultiPartItem(SM_PushButton, painter, button->rect, state); + } + break; + } + case CE_MenuScroller: { + ItemStates states = (option->state & State_DownArrow) ? SS_Down : SS_Up; + painter->fillRect(option->rect, option->palette.background()); + m_private->drawMultiPartItem(SM_MenuScroller, painter, option->rect, states); + QStyleOption arrowOpt = *option; + arrowOpt.state |= State_Enabled; + const int side = proxy()->pixelMetric(PM_MenuScrollerHeight, option, widget); + arrowOpt.rect = option->rect; + arrowOpt.rect.setWidth(side); + arrowOpt.rect.moveCenter(option->rect.center()); + proxy()->drawPrimitive(((option->state & State_DownArrow) ? PE_IndicatorArrowDown : PE_IndicatorArrowUp), + &arrowOpt, painter, widget); + break; + } + case CE_MenuItem: { + if (const QStyleOptionMenuItem *menuItem = qstyleoption_cast(option)) { + if (menuItem->menuItemType == QStyleOptionMenuItem::Separator) { + const int margin = proxy()->pixelMetric(PM_MenuHMargin, menuItem, widget); + const int yoff = menuItem->rect.y() - 1 + menuItem->rect.height() / 2; + const int startX = menuItem->rect.x() + margin; + const int endX = menuItem->rect.x() + menuItem->rect.width() - margin; + QRect separatorRect = QRect(QPoint(startX, yoff), QPoint(endX, yoff)); + m_private->drawItem(SP_MenuSeparator, painter, separatorRect); + return; + } + + const bool isDisabled = !(menuItem->state & State_Enabled); + const bool isSelected = (menuItem->state & State_Selected); + const bool isPressed = (menuItem->state & State_Sunken) || (menuItem->state & State_Raised); + ItemStates state = (isDisabled) ? SS_Disabled : SS_Active; + + if (isSelected) + state = state | SS_Selected; + + if (isPressed) + state = state | SS_Pressed; + + m_private->drawMultiPartItem(SM_MenuItem, painter, menuItem->rect, state); + + uint text_flags = Qt::AlignLeading | Qt::TextShowMnemonic | Qt::TextDontClip + | Qt::TextSingleLine | Qt::AlignVCenter; + if (!styleHint(SH_UnderlineShortcut, menuItem, widget)) + text_flags |= Qt::TextHideMnemonic; + + if (menuItem->menuHasCheckableItems) { + const QRect checkBoxRect = subElementRect(SE_ViewItemCheckIndicator, menuItem, widget); + if (checkBoxRect.isValid()) { + ItemStates checkBoxState; + if (menuItem->checked) checkBoxState |= SS_Selected; + if (menuItem->direction == Qt::RightToLeft) checkBoxState |= SS_Mirrored; + m_private->drawItem(SP_ItemDecoration, painter, checkBoxRect, checkBoxState); + } + } + + if (!menuItem->icon.isNull()) { + const QRect iconRect = subElementRect(SE_ItemViewItemDecoration, menuItem, widget); + if (iconRect.isValid()) { + QPixmap pix = menuItem->icon.pixmap(pixelMetric(PM_SmallIconSize), + !isDisabled ? QIcon::Normal : QIcon::Disabled); + drawItemPixmap(painter, iconRect, text_flags, pix); + } + } + + if (menuItem->text.length() > 0) { + const QRect textRect = subElementRect(SE_ItemViewItemText, menuItem, widget); + if (textRect.isValid()) + QCommonStyle::drawItemText(painter, textRect, text_flags, menuItem->palette, + (menuItem->state & State_Enabled), menuItem->text, QPalette::Text); + } + } + break; + } + case CE_MenuBarEmptyArea: + case CE_MenuEmptyArea: { + break; + } +#ifndef QT_NO_PROGRESSBAR + case CE_ProgressBar: { + if (const QStyleOptionProgressBarV2 *progressBar = qstyleoption_cast(option)) { + drawControl(CE_ProgressBarGroove, progressBar, painter, widget); + drawControl(CE_ProgressBarContents, progressBar, painter, widget); + //drawControl(CE_ProgressBarLabel, progressBar, painter, widget); + } + break; + } + case CE_ProgressBarGroove: { + if (const QStyleOptionProgressBarV2 *progressBar = qstyleoption_cast(option)) { + const QRect progressBarGroove = subElementRect(SE_ProgressBarGroove, progressBar, widget); + const bool horizontal = progressBar->orientation == Qt::Horizontal; + ItemStates state = 0; + if (horizontal) + state = state | SS_Horizontal; + else + state = state | SS_Vertical; + + m_private->drawMultiPartItem(SM_ProgressBarGroove, painter, progressBarGroove, state); + } + break; + } + case CE_ProgressBarContents: { + if (const QStyleOptionProgressBarV2 *progressBar = qstyleoption_cast(option)) { + if (progressBar->minimum == 0 && progressBar->maximum == 0) { + //waiting bar + animateControl(CE_ProgressBarContents, option, painter, widget); + } else { + QRect rect = subElementRect(SE_ProgressBarGroove, progressBar, widget); + const qint64 minimum = qint64(progressBar->minimum); + const qint64 maximum = qint64(progressBar->maximum); + const qint64 progress = qint64(progressBar->progress); + if (progressBar->orientation == Qt::Horizontal) { + const qreal scale = rect.width() / qreal(maximum - minimum); + qint64 width = scale * progress; + width = progress >= maximum ? rect.width() : width; + + if ((progressBar->direction == Qt::LeftToRight) ^ progressBar->invertedAppearance) { + rect = QRect(rect.x(), rect.y(), width, rect.height()); + } else { + rect = QRect(rect.x() + (rect.width() - width), rect.y(), rect.width() - (rect.width() - width), rect.height()); + } + m_private->drawMultiPartItem(SM_ProgressBarIndicator, painter, rect, SS_Horizontal); + } else{ //Vertical + const qreal scale = rect.height() / qreal(maximum - minimum); + qint64 height = scale * progress; + height = progress >= maximum ? rect.height() : height; + if (progressBar->invertedAppearance) { + rect = QRect(rect.x(), rect.y(), rect.width(), height); + } else { + rect = QRect(rect.x(), rect.y() + (rect.height() - height), rect.width(), rect.height() - (rect.height() - height)); + } + m_private->drawMultiPartItem(SM_ProgressBarIndicator, painter, rect, SS_Vertical); + } + } + } + break; + } + case CE_ProgressBarLabel: { + if (const QStyleOptionProgressBarV2 *progressBar = qstyleoption_cast(option)) { + if (progressBar->textVisible && (progressBar->minimum != 0 || progressBar->maximum != 0)) { + const QString minText = QString().setNum(progressBar->minimum); + const QString maxText = QString().setNum(progressBar->maximum); + const QRect textRect = subElementRect(SE_ProgressBarGroove, progressBar, widget); + if (progressBar->orientation == Qt::Horizontal) { + if (progressBar->invertedAppearance) { + //minText + proxy()->drawItemText(painter, textRect, Qt::AlignRight | Qt::TextSingleLine, progressBar->palette, + progressBar->state & State_Enabled, minText, QPalette::Text); + + //maxText + proxy()->drawItemText(painter, textRect, Qt::AlignLeft | Qt::TextSingleLine, progressBar->palette, + progressBar->state & State_Enabled, maxText, QPalette::Text); + + } else { + //minText + proxy()->drawItemText(painter, textRect, Qt::AlignLeft | Qt::TextSingleLine, progressBar->palette, + progressBar->state & State_Enabled, minText, QPalette::Text); + + //maxText + proxy()->drawItemText(painter, textRect, Qt::AlignRight | Qt::TextSingleLine, progressBar->palette, + progressBar->state & State_Enabled, maxText, QPalette::Text); + } + } else { //Vertical + if (progressBar->invertedAppearance) { + //minText + proxy()->drawItemText(painter, textRect, Qt::AlignTop | Qt::TextSingleLine, progressBar->palette, + progressBar->state & State_Enabled, minText, QPalette::Text); + + //maxText + proxy()->drawItemText(painter, textRect, Qt::AlignBottom | Qt::TextSingleLine, progressBar->palette, + progressBar->state & State_Enabled, maxText, QPalette::Text); + + } else { + //minText + proxy()->drawItemText(painter, textRect, Qt::AlignBottom | Qt::TextSingleLine, progressBar->palette, + progressBar->state & State_Enabled, minText, QPalette::Text); + + //maxText + proxy()->drawItemText(painter, textRect, Qt::AlignTop | Qt::TextSingleLine, progressBar->palette, + progressBar->state & State_Enabled, maxText, QPalette::Text); + } + + } + + } + } + break; + } +#endif //QT_NO_PROGRESSBAR + case CE_ToolButtonLabel: + default: { + QCommonStyle::drawControl(element, option, painter, widget); + break; + } + } +} + +void QHbStyle::drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, + QPainter *painter, const QWidget *widget) const +{ + switch (control) { +#ifndef QT_NO_COMBOBOX + case CC_ComboBox: { + if (const QStyleOptionComboBox *cmb = qstyleoption_cast(option)) { + const QRect cmbxFrame = cmb->rect; + ItemStates state = SS_Active; + + // Button frame + QStyleOptionFrame buttonOption; + buttonOption.QStyleOption::operator=(*cmb); + const int buttonMaxHeight = cmbxFrame.height(); + const int buttonMaxWidth = buttonMaxHeight; //button is rect + const int topLeftPoint = (cmb->direction == Qt::LeftToRight) ? (cmbxFrame.width() - buttonMaxWidth) : 0; + + const QRect buttonRect(topLeftPoint, cmbxFrame.top(), buttonMaxHeight, buttonMaxWidth); + buttonOption.rect = buttonRect; + buttonOption.state = cmb->state; + ItemStates buttonState = (buttonOption.state & State_Sunken) ? ItemStates(SS_Pressed | SS_Active) : ItemStates(SS_Active); + if (cmb->direction == Qt::RightToLeft) + buttonState |= SS_Mirrored; + if (buttonOption.state & State_HasFocus) { + buttonState |= SS_Selected; + state |= SS_Selected; //set frame status to follow button status for highlight + } + + m_private->drawItem(SP_BoxButton, painter, buttonRect.adjusted(0, 1, 0, -1), buttonState); //@todo: remove magic + + if (cmb->subControls & SC_ComboBoxFrame) { + const bool isDisabled = !(cmb->state & State_Enabled); + const bool isPressed = (cmb->state & State_Sunken); + const bool isEditable = cmb->editable; + + if (isDisabled) + state = SS_Disabled; + else if (isPressed) + state |= SS_Pressed; + if (isEditable) + state |= SS_Edited; + QRect frameRect = QRect(cmb->rect); + int frameWidth = pixelMetric(PM_DefaultFrameWidth); + int maxRight = cmb->rect.height() - 2 * frameWidth; + frameRect.adjust(0, 0, -maxRight, 0); + int adjustX = 0; + if (option->direction == Qt::RightToLeft) { + adjustX = buttonOption.rect.topRight().x(); + state |= SS_Mirrored; + } + const QRect frame = subControlRect(CC_ComboBox, option, SC_ComboBoxFrame, widget); + // @todo: if SC_ComboBoxFrame needs adjusting, move that code to subControlRect + m_private->drawMultiPartItem(SM_BoxFrame, painter, frame.adjusted(adjustX, 1, -4 + adjustX, -1), state); + } + } + break; + } +#endif //QT_NO_COMBOBOX +#ifndef QT_NO_SLIDER + case CC_Slider: { + if (const QStyleOptionSlider *optionSlider = qstyleoption_cast(option)) { + const QSlider* slider = qobject_cast(widget); + const QRect sliderGroove = subControlRect(control, optionSlider, SC_SliderGroove, widget); + const QRect sliderHandle = subControlRect(control, optionSlider, SC_SliderHandle, widget); + const bool horizontal = optionSlider->orientation == Qt::Horizontal; + const bool isDisabled = !(optionSlider->state & State_Enabled); + ItemStates grooveState = (isDisabled) ? SS_Disabled : SS_Active; + if (horizontal) + grooveState = grooveState | SS_Horizontal; + else + grooveState = grooveState | SS_Vertical; + + ItemStates handleState = grooveState; + + if (slider && slider->isSliderDown()) + handleState = handleState | SS_Pressed; + else if ((optionSlider->state & State_Sunken) || (optionSlider->state & State_On)) + grooveState = grooveState | SS_Pressed; + + //Draw ticks + if (optionSlider->subControls & SC_SliderTickmarks) { + const QRect tickRect = subControlRect(control, optionSlider, SC_SliderTickmarks, widget); + const bool ticksAbove = optionSlider->tickPosition & QSlider::TicksAbove; + const bool ticksBelow = optionSlider->tickPosition & QSlider::TicksBelow; + + int tickOffset = proxy()->pixelMetric(PM_SliderTickmarkOffset, optionSlider, widget); + const int thickness = proxy()->pixelMetric(PM_SliderControlThickness, optionSlider, widget); + const int available = proxy()->pixelMetric(PM_SliderSpaceAvailable, optionSlider, widget); + int interval = optionSlider->tickInterval; + if (interval <= 0) { + interval = optionSlider->singleStep; + if (sliderPositionFromValue(optionSlider->minimum, optionSlider->maximum, interval,available) + - sliderPositionFromValue(optionSlider->minimum, optionSlider->maximum, 0, available) < 3) + interval = optionSlider->pageStep; + } + if (!interval) + interval = 1; + int pos; + const int fudge = proxy()->pixelMetric(PM_SliderLength, optionSlider, widget) / 2; + // Since there is no subrect for tickmarks do a translation here. + int v = optionSlider->minimum; + + while (v <= (optionSlider->maximum + 1)) { + if ((v == optionSlider->maximum + 1) && (interval == 1)) + break; + const int v_ = qMin(v, optionSlider->maximum); + pos = sliderPositionFromValue(optionSlider->minimum, optionSlider->maximum, + v_, available) + fudge; + QRect destRect = QRect(); + if (horizontal) { + if (ticksAbove) { + destRect = QRect(pos, tickRect.y() - tickOffset + 1, tickRect.width(), tickRect.height()); + m_private->drawItem(SP_SliderTick, painter, destRect, grooveState); + } + if (ticksBelow) { + destRect = QRect(pos, tickOffset + thickness - 1, tickRect.width(), tickRect.height()); + m_private->drawItem(SP_SliderTick, painter, destRect, grooveState); + } + } else { + if (ticksAbove) { + destRect = QRect(tickRect.x() - tickOffset + 1, pos, tickRect.width(), tickRect.height()); + m_private->drawItem(SP_SliderTick, painter, destRect, grooveState); + } + if (ticksBelow) { + destRect = QRect(tickOffset + thickness - 1, pos, tickRect.width(), tickRect.height()); + m_private->drawItem(SP_SliderTick, painter, destRect, grooveState); + } + } + // in the case where maximum is max int + int nextInterval = v + interval; + if (nextInterval < v) + break; + v = nextInterval; + } + } + QRect filledRect; + if ( horizontal ){ + const int sliderPosition = sliderHandle.center().x(); + const int sliderWidth = sliderHandle.width()/2; + if (slider && (slider->layoutDirection() == Qt::LeftToRight) ^ slider->invertedAppearance()){ + filledRect = QRect(sliderGroove.x(), sliderGroove.y(), sliderPosition+sliderWidth, sliderGroove.height()); + } else { + filledRect = QRect(sliderGroove.x()+sliderPosition-sliderWidth, sliderGroove.y(), sliderGroove.width()-sliderPosition+sliderWidth, sliderGroove.height()); + } + } else { + const int sliderPosition = sliderHandle.center().y(); + const int sliderHeight = sliderHandle.height()/2; + if (slider && (slider->layoutDirection() == Qt::LeftToRight) ^ slider->invertedAppearance()){ + filledRect = QRect(sliderGroove.x(), sliderGroove.y()+sliderPosition-sliderHeight, sliderGroove.width(), sliderGroove.height()-sliderPosition+sliderHeight); + } else { + filledRect = QRect(sliderGroove.x(), sliderGroove.y(), sliderGroove.width(), sliderPosition+sliderHeight); + } + } + + //Groove + m_private->drawMultiPartItem(SM_SliderGroove, painter, sliderGroove, grooveState); + + //Progress + m_private->drawMultiPartItem(SM_SliderProgress, painter, filledRect, grooveState | SS_Filled); + + //handle + m_private->drawItem(SP_SliderHandle, painter, sliderHandle, handleState); + } + break; + } +#endif //QT_NO_SLIDER +#ifndef QT_NO_SCROLLBAR + case CC_ScrollBar: { + if (const QStyleOptionSlider *optionSlider = qstyleoption_cast(option)) { + ItemStates handleStates; + ItemStates grooveStates; + const bool horizontal = optionSlider->orientation == Qt::Horizontal; + const QRect handleRect = subControlRect(control, optionSlider, SC_ScrollBarSlider, widget); + const QRect grooveRect = subControlRect(control, optionSlider, SC_ScrollBarGroove, widget); + if (horizontal) { + handleStates |= SS_Horizontal; + grooveStates |= SS_Horizontal; + } else { + handleStates |= SS_Vertical; + grooveStates |= SS_Vertical; + } + const SubControls subControls = optionSlider->subControls; + const bool sliderPressed = ((optionSlider->state & State_Sunken) && (subControls & SC_ScrollBarSlider)); + const bool groovePressed = ((optionSlider->state & State_Sunken) && (subControls & SC_ScrollBarGroove)); + + if (sliderPressed) + handleStates |= SS_Pressed; + if (groovePressed) + grooveStates |= SS_Pressed; + + m_private->drawMultiPartItem(SM_ScrollBarGroove, painter, grooveRect, grooveStates); + m_private->drawMultiPartItem(SM_ScrollBarHandle, painter, handleRect, handleStates); + } + break; + } +#endif // QT_NO_SCROLLBAR +#ifndef QT_NO_GROUPBOX + case CC_GroupBox: { + if (const QStyleOptionGroupBox *groupBox = qstyleoption_cast(option)) { + // Draw frame + const QRect textRect = subControlRect(CC_GroupBox, option, SC_GroupBoxLabel, widget); + + QRect headerRect = textRect; + headerRect.setWidth(groupBox->rect.width()); + if (groupBox->subControls & SC_GroupBoxFrame) { + QStyleOptionFrameV2 frame; + frame.QStyleOption::operator=(*groupBox); + frame.features = groupBox->features; + frame.lineWidth = groupBox->lineWidth; + frame.midLineWidth = groupBox->midLineWidth; + frame.rect = subControlRect(CC_GroupBox, option, SC_GroupBoxFrame, widget); + proxy()->drawPrimitive(PE_FrameGroupBox, &frame, painter, widget); + } + + // Draw title + if ((groupBox->subControls & SC_GroupBoxLabel) && !groupBox->text.isEmpty()) { + // Draw title background + m_private->drawMultiPartItem(SM_GroupBoxTitle, painter, headerRect); + + const QColor textColor = groupBox->textColor; + painter->save(); + + if (textColor.isValid()) + painter->setPen(textColor); + int alignment = int(groupBox->textAlignment); + if (!styleHint(SH_UnderlineShortcut, option, widget)) + alignment |= Qt::TextHideMnemonic; + + proxy()->drawItemText(painter, headerRect, Qt::TextShowMnemonic | Qt::AlignHCenter | Qt::AlignVCenter | alignment, + groupBox->palette, groupBox->state & State_Enabled, groupBox->text, + textColor.isValid() ? QPalette::NoRole : QPalette::WindowText); + painter->restore(); + } + const QRect checkBoxRect = subControlRect(CC_GroupBox, option, SC_GroupBoxCheckBox, widget); + // Draw checkbox + if (groupBox->subControls & SC_GroupBoxCheckBox) { + QStyleOptionButton box; + box.QStyleOption::operator=(*groupBox); + box.rect = checkBoxRect; + proxy()->drawPrimitive(PE_IndicatorCheckBox, &box, painter, widget); + } + } + break; + } +#endif //QT_NO_GROUPBOX +#ifndef QT_NO_TOOLBUTTON + case CC_ToolButton: { + if (const QStyleOptionToolButton *toolBtn = qstyleoption_cast(option)) { + const QRect buttonRect(subControlRect(control, toolBtn, SC_ToolButton, widget)); + QRect menuRect = QRect(); + if (toolBtn->subControls & SC_ToolButtonMenu) + menuRect = subControlRect(control, toolBtn, SC_ToolButtonMenu, widget); + + // Draw button bevel + if (toolBtn->subControls & SC_ToolButton) + proxy()->drawPrimitive(PE_PanelButtonTool, toolBtn, painter, widget); + + //draw focus + if (toolBtn->state & State_HasFocus) { + QStyleOptionFocusRect frameOpt; + frameOpt.QStyleOption::operator=(*toolBtn); + frameOpt.rect = subElementRect(SE_PushButtonFocusRect, toolBtn, widget); //can we use this, or should we just reduce the button rect? + if (toolBtn->features & QStyleOptionToolButton::MenuButtonPopup) + frameOpt.rect.adjust(0, 0, -proxy()->pixelMetric(PM_MenuButtonIndicator), 0); + proxy()->drawPrimitive(PE_FrameFocusRect, &frameOpt, painter, widget); + } + + if (toolBtn->text.length() > 0 || !toolBtn->icon.isNull() || (toolBtn->features & QStyleOptionToolButton::Arrow)) { + //draw label + QStyleOptionToolButton label = *toolBtn; + int fw = proxy()->pixelMetric(PM_DefaultFrameWidth, option, widget); + label.rect = buttonRect.adjusted(fw, fw, -fw, -fw); + proxy()->drawControl(CE_ToolButtonLabel, &label, painter, widget); + } + if (toolBtn->subControls & SC_ToolButtonMenu) { + //draw menu indicator + const int menuButtonIndicator = proxy()->pixelMetric(PM_MenuButtonIndicator, toolBtn, widget); + QStyleOptionToolButton menuOpt = *toolBtn; + menuOpt.rect = QRect(toolBtn->rect.right() - menuButtonIndicator, + toolBtn->rect.y() + (toolBtn->rect.height() - menuButtonIndicator) / 2, + menuButtonIndicator, + menuButtonIndicator); + menuOpt.rect = visualRect(toolBtn->direction, toolBtn->rect, menuOpt.rect); + + PrimitiveElement pe; + bool arrow = true; + switch(toolBtn->arrowType) { + case Qt::UpArrow: { + pe = PE_IndicatorArrowUp; + break; + } + case Qt::LeftArrow: { + pe = PE_IndicatorArrowLeft; + break; + } + case Qt::RightArrow: { + pe = PE_IndicatorArrowRight; + break; + } + case Qt::DownArrow: { + pe = PE_IndicatorArrowDown; + break; + } + default: { + arrow = false; + } + } + if (arrow) + proxy()->drawPrimitive(pe, &menuOpt, painter, widget); + } + } + break; + } +#endif //QT_NO_TOOLBUTTON + case CC_SpinBox: { + if (const QStyleOptionSpinBox *optionSpinbox = qstyleoption_cast(option)) { + const QRect spinboxFrame = subControlRect(control, optionSpinbox, SC_SpinBoxFrame, widget); + const QRect spinboxButtonUpRect = subControlRect(control, optionSpinbox, SC_SpinBoxUp, widget); + const QRect spinboxButtonDownRect = subControlRect(control, optionSpinbox, SC_SpinBoxDown, widget); + const QRect spinboxEditorRect = subControlRect(control, optionSpinbox, SC_SpinBoxEditField, widget); + + QStyleOptionSpinBox copy = *optionSpinbox; + + //Frame & background + const bool isDisabled = !(optionSpinbox->state & State_Enabled); + ItemStates state = (isDisabled) ? SS_Disabled : SS_Active; + if (optionSpinbox->state & State_HasFocus) + state |= SS_Selected; + m_private->drawMultiPartItem(SM_BoxFrame, painter, spinboxEditorRect, state); + + //Buttons + if (optionSpinbox->subControls & SC_SpinBoxUp) { + copy.subControls = SC_SpinBoxUp; + if (!(optionSpinbox->stepEnabled & QAbstractSpinBox::StepUpEnabled)) + copy.state &= ~State_Enabled; + if (optionSpinbox->activeSubControls == SC_SpinBoxUp && (optionSpinbox->state & State_Sunken)) { + copy.state |= State_On; + copy.state |= State_Sunken; + } else { + copy.state |= State_Raised; + copy.state &= ~State_Sunken; + } + const bool isPressed = (copy.state & State_Sunken); + ItemStates upButtonState = (isPressed) ? ItemStates(SS_Pressed | SS_Active) : ItemStates(SS_Active); + if (optionSpinbox->direction == Qt::RightToLeft) + upButtonState = upButtonState | SS_Flipped; + else + upButtonState = upButtonState | SS_Flipped | SS_Mirrored; + if (optionSpinbox->state & State_HasFocus) + upButtonState |= SS_Selected; + if (!(copy.state & State_Enabled)) + upButtonState |= SS_Disabled; + m_private->drawItem(SP_BoxButton, painter, spinboxButtonUpRect, upButtonState); + } + + if (optionSpinbox->subControls & SC_SpinBoxDown) { + copy.subControls = SC_SpinBoxDown; + if (!(optionSpinbox->stepEnabled & QAbstractSpinBox::StepDownEnabled)) + copy.state &= ~State_Enabled; + if (optionSpinbox->activeSubControls == SC_SpinBoxDown && (optionSpinbox->state & State_Sunken)) { + copy.state |= State_On; + copy.state |= State_Sunken; + } else { + copy.state |= State_Raised; + copy.state &= ~State_Sunken; + } + const bool isPressed = (copy.state & State_Sunken); + ItemStates downButtonState = (isPressed) ? ItemStates(SS_Pressed | SS_Active) : ItemStates(SS_Active); + if (optionSpinbox->direction == Qt::RightToLeft) + downButtonState = downButtonState; + else + downButtonState = downButtonState | SS_Mirrored; + if (optionSpinbox->state & State_HasFocus) + downButtonState |= SS_Selected; + if (!(copy.state & State_Enabled)) + downButtonState |= SS_Disabled; + m_private->drawItem(SP_BoxButton, painter, spinboxButtonDownRect, downButtonState); + } + } + break; + } + case CC_TitleBar: + case CC_Q3ListView: + case CC_Dial: + case CC_MdiControls: + default: { + QCommonStyle::drawComplexControl(control, option, painter, widget); + break; + } + } +} + +QSize QHbStyle::sizeFromContents(ContentsType type, const QStyleOption *option, + const QSize &size, const QWidget *widget) const +{ + QSize newSize = QCommonStyle::sizeFromContents(type, option, size, widget); + switch (type) { +#ifndef QT_NO_MENU + case CT_MenuItem: { + if (qstyleoption_cast(option)) { + const int verticalMargin = pixelMetric(PM_MenuVMargin); + const int horizontalMargin = pixelMetric(PM_MenuHMargin); + newSize += QSize(horizontalMargin, 2 * verticalMargin); + } + break; + } +#endif +#ifndef QT_NO_ITEMVIEWS + case CT_ItemViewItem: { + newSize += QSize(0,22); + break; + } +#endif + case CT_PushButton: { + newSize += QSize(0, 2 * proxy()->pixelMetric(PM_ButtonMargin, option, widget)); + break; + } + default: + break; + } + return newSize; +} + +QRect QHbStyle::subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const +{ + const QRect baseSize = QCommonStyle::subElementRect(element, option, widget); + QRect elementSize = baseSize; + switch (element) { + case SE_ItemViewItemText: { + if (const QStyleOptionMenuItem *menuItem = qstyleoption_cast(option)) { + elementSize = menuItem->rect; + const QRect iconRect = subElementRect(SE_ItemViewItemDecoration, option, widget); + const QRect checkBoxRect = subElementRect(SE_ViewItemCheckIndicator, option, widget); + const int indicatorSpacing = proxy()->pixelMetric(PM_LayoutHorizontalSpacing, option, widget); + int totalXMod = qMax(0, qMax((checkBoxRect.isValid() ? checkBoxRect.topRight().x() : 0), + (iconRect.isValid() ? iconRect.topRight().x() : 0))); + const int widthMod = checkBoxRect.width() + iconRect.width() + indicatorSpacing; + totalXMod = (menuItem->direction == Qt::LeftToRight) ? qMax(0, totalXMod - elementSize.topLeft().x()): 0; + totalXMod += indicatorSpacing; + elementSize.translate(totalXMod, 0); + elementSize.setWidth(menuItem->rect.width() - widthMod); + } else if (const QStyleOptionViewItemV4 *itemView = qstyleoption_cast(option)) { + elementSize = itemView->rect; + const QRect iconRect = subElementRect(SE_ItemViewItemDecoration, option, widget); + const QRect checkBoxRect = subElementRect(SE_ViewItemCheckIndicator, option, widget); + const int indicatorSpacing = proxy()->pixelMetric(PM_LayoutHorizontalSpacing, option, widget); + int totalXMod = qMax(0, qMax((checkBoxRect.isValid() ? checkBoxRect.topRight().x() : 0), + (iconRect.isValid() ? iconRect.topRight().x() : 0))); + const int widthMod = checkBoxRect.width() + iconRect.width() + indicatorSpacing; + totalXMod = (itemView->direction == Qt::LeftToRight) ? qMax(0, totalXMod - elementSize.topLeft().x()): 0; + totalXMod += indicatorSpacing; + elementSize.translate(totalXMod, 0); + elementSize.setWidth(itemView->rect.width() - widthMod); + elementSize = visualRect(itemView->direction, itemView->rect, elementSize); + } + break; + } + case SE_ViewItemCheckIndicator: { + if (const QStyleOptionMenuItem *menuItem = qstyleoption_cast(option)) { + if (menuItem->menuHasCheckableItems) { + const int indicatorWidth = proxy()->pixelMetric(PM_IndicatorWidth, option, widget); + const int htAdjust = (menuItem->rect.height() - indicatorWidth) / 2; + elementSize = QRect(menuItem->rect.x(), menuItem->rect.y() + htAdjust, indicatorWidth, indicatorWidth); + elementSize = visualRect(menuItem->direction, menuItem->rect, elementSize); + } else { elementSize = QRect(); } + } else if (const QStyleOptionViewItemV4 *itemOption = qstyleoption_cast(option)) { + if (itemOption->features & QStyleOptionViewItemV2::HasCheckIndicator) { + const int indicatorWidth = proxy()->pixelMetric(PM_IndicatorWidth, option, widget); + const int htAdjust = (itemOption->rect.height() - indicatorWidth) / 2; + elementSize = QRect(itemOption->rect.x(), itemOption->rect.y() + htAdjust, indicatorWidth, indicatorWidth); + elementSize = visualRect(itemOption->direction, itemOption->rect, elementSize); + } else { elementSize = QRect(); } + } + break; + } + case SE_ItemViewItemDecoration: { + if (const QStyleOptionMenuItem *menuItem = qstyleoption_cast(option)) { + if (!menuItem->icon.isNull()) { + const QRect checkBoxRect = subElementRect(SE_ViewItemCheckIndicator, option, widget); + const int imageWidth = proxy()->pixelMetric(PM_SmallIconSize, option, widget); + const int indicatorSpacing = proxy()->pixelMetric(PM_LayoutHorizontalSpacing, option, widget); + const int htAdjust = (menuItem->rect.height() - imageWidth) / 2; + if (checkBoxRect.isValid()) { + elementSize = QRect(menuItem->rect.x() + checkBoxRect.width() + indicatorSpacing, menuItem->rect.y() + htAdjust, imageWidth, imageWidth); + } else { + elementSize = QRect(menuItem->rect.x() + indicatorSpacing, menuItem->rect.y() + htAdjust, imageWidth, imageWidth); + } + elementSize = visualRect(menuItem->direction, menuItem->rect, elementSize); + } else { elementSize = QRect(); } + } else if (const QStyleOptionViewItemV4 *itemOption = qstyleoption_cast(option)) { + if (!itemOption->icon.isNull()) { + const QRect checkBoxRect = subElementRect(SE_ViewItemCheckIndicator, option, widget); + const int imageWidth = proxy()->pixelMetric(PM_SmallIconSize, option, widget); + const int indicatorSpacing = proxy()->pixelMetric(PM_LayoutHorizontalSpacing, option, widget); + const int htAdjust = (itemOption->rect.height() - imageWidth) / 2; + if (checkBoxRect.isValid()) { + elementSize = QRect(itemOption->rect.x() + checkBoxRect.width() + indicatorSpacing, itemOption->rect.y() + htAdjust, imageWidth, imageWidth); + } else { + elementSize = QRect(itemOption->rect.x() + indicatorSpacing, itemOption->rect.y() + htAdjust, imageWidth, imageWidth); + } + elementSize = visualRect(itemOption->direction, itemOption->rect, elementSize); + } else { elementSize = QRect(); } + } + break; + } + case SE_PushButtonFocusRect: { + if (const QStyleOptionButton *button = qstyleoption_cast(option)) { + const int margin = proxy()->pixelMetric(PM_FocusFrameHMargin, button, widget); + elementSize = baseSize.adjusted(-margin, -margin, margin, margin); + } + break; + } + case SE_ProgressBarGroove: { + if (const QStyleOptionProgressBarV2 *progressBar = qstyleoption_cast(option)) { + elementSize = progressBar->rect; + } + break; + } + default: + break; + } + return elementSize; +} + +QRect QHbStyle::subControlRect(ComplexControl cc, const QStyleOptionComplex *option, + SubControl sc, const QWidget *widget) const +{ + const QRect baseSize = QCommonStyle::subControlRect(cc, option, sc, widget); + QRect elementSize = baseSize; + switch (cc) { + case CC_ComboBox: { + if (const QStyleOptionComboBox *cmb = qstyleoption_cast(option)) { + const int buttonIconSize = pixelMetric(PM_ButtonIconSize); + const int buttonMargin = cmb->frame ? 2 : 0; + const int frameThickness = cmb->frame ? pixelMetric(PM_ComboBoxFrameWidth, cmb, widget) : 0; + const int buttonWidth = qMax(cmb->rect.height(), buttonIconSize); + + QSize buttonSize; + buttonSize.setWidth(buttonWidth + 2 * buttonMargin); + buttonSize.setHeight(qMax(8, (cmb->rect.height() >> 1) - frameThickness)); + buttonSize = buttonSize.expandedTo(QApplication::globalStrut()); + switch (sc) { + case SC_ComboBoxArrow: { + elementSize = option->rect; + break; + } + case SC_ComboBoxFrame: { + QRect frameRect = QRect(cmb->rect); + int frameWidth = pixelMetric(PM_DefaultFrameWidth, cmb, widget); + int maxRight = cmb->rect.height() - 2 * frameWidth; + frameRect.adjust(0, 0, -maxRight, 0); + elementSize = frameRect; + break; + } + case SC_ComboBoxEditField: { + const int withFrameX = cmb->rect.x() + cmb->rect.width() - frameThickness - buttonSize.width(); + elementSize = QRect( + frameThickness, + frameThickness - 2, + withFrameX - frameThickness, + cmb->rect.height() - 2 * frameThickness ); + break; + } + case SC_ComboBoxListBoxPopup: { + QRect mover = cmb->rect; + mover.moveBottom(cmb->rect.top() - 2); + elementSize = mover; + break; + } + default: + break; + } + } + break; + } +#ifndef QT_NO_SCROLLBAR +//todo: this was lifted "as-is" from QS60Style. Check that it is valid for uiemo. + case CC_ScrollBar: { + if (const QStyleOptionSlider *scrollbarOption = qstyleoption_cast(option)) { + const QRect scrollBarRect = scrollbarOption->rect; + const bool isHorizontal = scrollbarOption->orientation == Qt::Horizontal; + const int maxlen = isHorizontal ? scrollBarRect.width() : scrollBarRect.height(); + int sliderlen; + + // calculate slider length + if (scrollbarOption->maximum != scrollbarOption->minimum) { + const uint range = scrollbarOption->maximum - scrollbarOption->minimum; + sliderlen = (qint64(scrollbarOption->pageStep) * maxlen) / (range + scrollbarOption->pageStep); + + const int slidermin = proxy()->pixelMetric(PM_ScrollBarSliderMin, scrollbarOption, widget); + if (sliderlen < slidermin || range > (INT_MAX >> 1)) + sliderlen = slidermin; + if (sliderlen > maxlen) + sliderlen = maxlen; + } else { + sliderlen = maxlen; + } + + const int sliderstart = sliderPositionFromValue(scrollbarOption->minimum, + scrollbarOption->maximum, + scrollbarOption->sliderPosition, + maxlen - sliderlen, + scrollbarOption->upsideDown); + + switch (sc) { + case SC_ScrollBarSubPage: { // between top/left button and slider + if (isHorizontal) + elementSize.setRect(0, 0, sliderstart, scrollBarRect.height()); + else + elementSize.setRect(0, 0, scrollBarRect.width(), sliderstart); + break; + } + case SC_ScrollBarAddPage: { // between bottom/right button and slider + const int addPageLength = sliderstart + sliderlen; + if (isHorizontal) + elementSize = scrollBarRect.adjusted(addPageLength, 0, 0, 0); + else + elementSize = scrollBarRect.adjusted(0, addPageLength, 0, 0); + break; + } + case SC_ScrollBarGroove: { + elementSize = scrollBarRect; + break; + } + case SC_ScrollBarSlider: { + if (scrollbarOption->orientation == Qt::Horizontal) + elementSize.setRect(sliderstart, 0, sliderlen, scrollBarRect.height()); + else + elementSize.setRect(0, sliderstart, scrollBarRect.width(), sliderlen); + break; + } + case SC_ScrollBarSubLine: // top/left button + case SC_ScrollBarAddLine: // bottom/right button + default: { + break; + } + } + elementSize = visualRect(scrollbarOption->direction, scrollBarRect, elementSize); + } + break; + } +#endif // QT_NO_SCROLLBAR +#ifndef QT_NO_GROUPBOX + case CC_GroupBox: { + if (const QStyleOptionGroupBox *groupBox = qstyleoption_cast(option)) { + switch (sc) { + case SC_GroupBoxFrame: { + int topMargin = 0; + int topHeight = 0; + int verticalAlignment = proxy()->styleHint(SH_GroupBox_TextLabelVerticalAlignment, groupBox, widget); + if (groupBox->text.size() || (groupBox->subControls & SC_GroupBoxCheckBox)) { + topHeight = groupBox->fontMetrics.height(); + if (verticalAlignment & Qt::AlignVCenter) + topMargin = topHeight / 2; + else if (verticalAlignment & Qt::AlignTop) + topMargin = topHeight; + } + + QRect frameRect = groupBox->rect; + frameRect.setTop(topMargin); + elementSize = frameRect; + break; + } + case SC_GroupBoxContents: { + const QRect titleRect = proxy()->subControlRect(cc, option, SC_GroupBoxLabel, widget); + const QRect frameRect = proxy()->subControlRect(cc, option, SC_GroupBoxFrame, widget); + elementSize = frameRect; + elementSize.setHeight(frameRect.height() + titleRect.height()); + elementSize.translate((groupBox->direction == Qt::LeftToRight) ? titleRect.bottomLeft() : titleRect.bottomRight()); + break; + } + case SC_GroupBoxCheckBox: + case SC_GroupBoxLabel: { + QFontMetrics fontMetrics = groupBox->fontMetrics; + const int height = fontMetrics.height(); + //margins + int labelTopMargin = 0; int labelBottomMargin = 0; + m_private->hbParameter(QLatin1String("hb-param-margin-gene-top"), labelTopMargin); + m_private->hbParameter(QLatin1String("hb-param-margin-gene-bottom"), labelBottomMargin); + + //height + const int indicatorHeight = proxy()->pixelMetric(PM_IndicatorHeight, option, widget); + elementSize = groupBox->rect; + elementSize.setHeight(qMax(height, indicatorHeight) + labelTopMargin + labelBottomMargin); + + const int indicatorSpace = proxy()->pixelMetric(PM_CheckBoxLabelSpacing, option, widget); + const bool hasCheckBox = groupBox->subControls & SC_GroupBoxCheckBox; + const int indicatorWidth = proxy()->pixelMetric(PM_IndicatorWidth, option, widget); + const int checkBoxSize = hasCheckBox ? (indicatorWidth + indicatorSpace) : 0; + + QRect totalRect; + // Adjust totalRect if checkbox is set + if (hasCheckBox) { + int top = 0; int left = 0; int width = 0; + int height = elementSize.height(); + // Adjust for check box + if (sc == SC_GroupBoxCheckBox) { + top = labelTopMargin + elementSize.top() + (fontMetrics.height() - indicatorHeight) / 2; + const int right = elementSize.right() - checkBoxSize; + left = right - checkBoxSize; + width = height = checkBoxSize; + // Adjust for label + } else { + left = (groupBox->direction == Qt::LeftToRight) ? elementSize.left() + : (elementSize.left() + checkBoxSize); + width = elementSize.width() - checkBoxSize; + } + totalRect.setRect(left, top, width, height); + } + elementSize = visualRect(option->direction, option->rect, totalRect); + break; + } + default: { + break; + } + } + } + break; + } +#endif //QT_NO_GROUPBOX +#ifndef QT_NO_SLIDER + case CC_Slider: { + if (const QStyleOptionSlider *slider = qstyleoption_cast(option)) { + qreal metric = 0; + m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-middle-horizontal"), metric); + const int metricValue = metric + 0.5; + switch (sc) { + //Hb differentiates between major and minor ticks. + //Unfortunately Qt does not, so we consider all ticks as major. + //Tick sizes from Hb widget illustrations. + case SC_SliderTickmarks: { + //This just returns first tick rect for slider. Others need to be translated. + const bool horizontal = (slider->orientation == Qt::Horizontal); + const qreal unitValue = HbDeviceProfile::current().unitValue(); + qreal width = 0; qreal height = 0; + //width and height unit values from Hb widget gallery + if (horizontal) { + width = 0.5 * unitValue + 0.5; + height = unitValue + 0.5; + } else { + height = 0.5 * unitValue + 0.5; + width = unitValue + 0.5; + } + const QRect sliderGroove = subControlRect(cc, slider, SC_SliderGroove, widget); + QRect tickRect = QRect(sliderGroove.x(), sliderGroove.y(), width, height); + if (horizontal) + tickRect.translate(0, -metricValue); + else + tickRect.translate(-metricValue, 0); + elementSize = tickRect; + break; + } + case SC_SliderGroove: { + const int thickness = proxy()->pixelMetric(PM_SliderThickness, slider, widget); + const int tickOffset = proxy()->pixelMetric(PM_SliderTickmarkOffset, slider, widget); + if (slider->orientation == Qt::Horizontal) + elementSize.setRect(slider->rect.x(), slider->rect.y() + metricValue + tickOffset, + slider->rect.width(), thickness - 2 * (metricValue + tickOffset)); + else + elementSize.setRect(slider->rect.x() + tickOffset + metricValue, slider->rect.y(), + thickness - 2 * (metricValue + tickOffset), slider->rect.height()); + break; + } + default: { + break; + } + } + } + break; + } +#endif //QT_NO_SLIDER +#ifndef QT_NO_SPINBOX + case CC_SpinBox: { + if (const QStyleOptionSpinBox *spinbox = qstyleoption_cast(option)) { + const int buttonIconSize = pixelMetric(PM_ButtonIconSize); + const int buttonWidth = qMax(spinbox->rect.height(), buttonIconSize); + switch (sc) { + case SC_SpinBoxFrame: + elementSize = option->rect.adjusted(0, 0, -buttonWidth + 5, 0); + break; + case SC_SpinBoxDown: { + if (option->direction == Qt::RightToLeft) + elementSize = QRect(option->rect.right() - buttonWidth, option->rect.y(),buttonWidth, option->rect.height()); + else + elementSize = QRect( option->rect.x(), option->rect.y(), buttonWidth,option->rect.height()); + } + break; + case SC_SpinBoxUp: { + if (option->direction == Qt::RightToLeft) + elementSize = QRect( option->rect.x(), option->rect.y(), buttonWidth,option->rect.height()); + else + elementSize = QRect(option->rect.right() - buttonWidth,option->rect.y(),buttonWidth,option->rect.height()); + } + break; + case SC_SpinBoxEditField: + elementSize = option->rect.adjusted(buttonWidth, 0, -buttonWidth, 0); + break; + default: + break; + } + } + break; + } +#endif //QT_NO_SPINBOX + default: { + break; + } + } + return elementSize; +} + +int QHbStyle::styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, + QStyleHintReturn *returnData) const +{ + int retValue = 0; + switch (hint) { + case SH_RequestSoftwareInputPanel: + retValue = RSIP_OnMouseClick; + break; + case SH_ToolButtonStyle: + retValue = Qt::ToolButtonIconOnly; + break; + case SH_TabWidget_DefaultTabPosition: { + retValue = QTabWidget::North; + break; + } + case SH_TabBar_ElideMode: + if (option) + retValue = (option->direction == Qt::LeftToRight) ? Qt::ElideRight : Qt::ElideLeft; + else if (widget) + retValue = (widget->layoutDirection() == Qt::LeftToRight) ? Qt::ElideRight : Qt::ElideLeft; + else + retValue = (QApplication::layoutDirection() == Qt::LeftToRight) ? Qt::ElideRight : Qt::ElideLeft; + break; + case SH_ItemView_ShowDecorationSelected: + retValue = true; + break; + case SH_SpinControls_DisableOnBounds: { + retValue = true; + break; + } + case SH_MessageBox_TextInteractionFlags: { + retValue = Qt::LinksAccessibleByMouse; + break; + } + case SH_MessageBox_CenterButtons: { + retValue = true; + break; + } + case SH_Button_FocusPolicy: { + retValue = Qt::StrongFocus; + break; + } + case SH_Table_GridLineColor: { + retValue = Qt::green; //@todo: fetch this + break; + } + case SH_TabBar_Alignment: { + retValue = Qt::AlignCenter; + break; + } + case SH_Header_ArrowAlignment: { + if (option) + retValue = (option->direction == Qt::LeftToRight) ? Qt::AlignLeft : Qt::AlignRight; + else if (widget) + retValue = (widget->layoutDirection() == Qt::LeftToRight) ? Qt::AlignLeft : Qt::AlignRight; + else + retValue = (QApplication::layoutDirection() == Qt::LeftToRight) ? Qt::AlignLeft : Qt::AlignRight; + break; + } + case SH_ToolTipLabel_Opacity: { + retValue = 255; + break; + } + case SH_ScrollBar_ContextMenu: { + retValue = false; + break; + } + case SH_Menu_MouseTracking: { + retValue = 0; + break; + } + case SH_ComboBox_ListMouseTracking: { + retValue = 0; + break; + } + case SH_ComboBox_Popup: { + retValue = 1; + break; + } + case SH_UnderlineShortcut: { + retValue = false; + break; + } + case SH_GroupBox_TextLabelColor: { + QColor test = HbColorScheme::color("popupforeground"); + retValue = int(HbColorScheme::color("popupforeground").rgba()); //@todo: should use "qtc_viewtitle" but that is not yet available + break; + } + case SH_GroupBox_TextLabelVerticalAlignment: { + retValue = Qt::AlignBottom; + break; + } + case SH_ItemView_ActivateItemOnSingleClick: { + retValue = true; + break; + } + case SH_ItemView_ArrowKeysNavigateIntoChildren: { + retValue = true; + break; + } + case SH_ItemView_PaintAlternatingRowColorsForEmptyArea: { + retValue = true; + break; + } + default: { + retValue = QCommonStyle::styleHint(hint, option, widget, returnData); + break; + } + } + return retValue; +} + +int QHbStyle::pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const +{ + qreal metricValue = 0.0; + const qreal unitValue = HbDeviceProfile::current().unitValue(); + bool valueFound = false; + switch(metric) { + case PM_ButtonMargin: { + //Hb defines different margin values for each margin. We could use any of them, + // average, or mean, but lets settle for top margin for now. + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-background-button"), metricValue); + break; + } + case PM_ButtonDefaultIndicator: { + //Lets set default button indication frame width to zero as there is no such concept in uiemo + valueFound = true; + break; + } + case PM_MenuButtonIndicator: { + // Hb returns a square area for icon in a button. + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-secondary"), metricValue); + break; + } + case PM_ButtonShiftVertical: + case PM_ButtonShiftHorizontal: { + //No button shifting in Hb + valueFound = true; + break; + } + case PM_DefaultFrameWidth: { + valueFound = true; + metricValue = 2.0; + break; + } + case PM_SpinBoxFrameWidth: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-middle-horizontal"), metricValue); + break; + } + case PM_ComboBoxFrameWidth: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-top"), metricValue); + break; + } + case PM_MaximumDragDistance: { + valueFound = true; + metricValue = -1.0; //disable maximum drag distance functionality + break; + } + case PM_ScrollBarExtent: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-widget-scroll-bar-indicative-width"), metricValue); + break; + } + case PM_ScrollBarSliderMin: { + valueFound = true; + metricValue = 8.0 * unitValue; //8.0 from uiemo graphic designers (to be updated to the specification) + //todo: for indicative scrollbars the slider is 4.0uns. Can we query the state of scrollbar? + break; + } + case PM_SliderThickness: { + int numberOfTicks = 0; + if (const QStyleOptionSlider *optionSlider = qstyleoption_cast(option)) { + if (optionSlider->tickPosition & QSlider::TicksAbove) + ++numberOfTicks; + if (optionSlider->tickPosition & QSlider::TicksBelow) + ++numberOfTicks; + } + metricValue = proxy()->pixelMetric(PM_SliderControlThickness, option, widget) + + numberOfTicks * (1.0 * unitValue + 0.5); //tickmarks are one unit tall + valueFound = true; + break; + } + // Slider handle size values from Hb widget illustrations library. + case PM_SliderControlThickness: { + valueFound = true; + metricValue = 4.0 * unitValue; + break; + } + case PM_SliderLength: { + valueFound = true; + metricValue = 2.0 * unitValue; + break; + } + case PM_SliderTickmarkOffset: { + valueFound = true; + if (const QStyleOptionSlider *optionSlider = qstyleoption_cast(option)) + if (optionSlider->tickPosition & QSlider::TicksAbove || optionSlider->tickPosition & QSlider::TicksBelow) + //tick marks are one unit tall + metricValue = 1.0 * unitValue + 0.5; + break; + } + case PM_SliderSpaceAvailable: { // available space for slider to move + if (widget) { + const QSize sliderSize = widget->size(); + qreal margin = 0.0; + if (m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-screen"), margin)) { + metricValue = qMax(sliderSize.width(), sliderSize.height()) - 2 * margin; + valueFound = true; + } + } else if (const QStyleOptionSlider *optionSlider = qstyleoption_cast(option)) { + valueFound = true; + metricValue = (optionSlider->orientation == Qt::Horizontal) ? optionSlider->rect.width() : optionSlider->rect.height(); + } + break; + } + case PM_DockWidgetTitleBarButtonMargin: + case PM_DockWidgetTitleMargin: + case PM_DockWidgetSeparatorExtent: + case PM_DockWidgetHandleExtent: { + break; //todo: no suitable values in Hb? + } + case PM_DockWidgetFrameWidth: { + valueFound = false; //was true + QSize screenSize = HbDeviceProfile::current().logicalSize(); + metricValue = screenSize.width(); + break; + } + //Hb does not have tabs. Lets use toolbar layout data + case PM_TabBarTabHSpace: { + qreal toolbarWidth = 0.0; + if (m_private->styleManager()->parameter(QLatin1String("hb-param-widget-chrome-height"), toolbarWidth)) { + valueFound = true; + qreal iconWidth = 0.0; + if (m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-function"), iconWidth)) + metricValue = (toolbarWidth - iconWidth) / 2; + else + metricValue = toolbarWidth / 2; + } + break; + } + case PM_TabBarTabVSpace: { + qreal toolbarHeight = 0.0; + if (m_private->styleManager()->parameter(QLatin1String("hb-param-widget-toolbar-height"), toolbarHeight)) { + valueFound = true; + qreal iconHeight = 0.0; + if (m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-function"), iconHeight)) + metricValue = (toolbarHeight - iconHeight) / 2; + else + metricValue = toolbarHeight / 2; + } + break; + } + case PM_TabBarBaseHeight: { + valueFound = true; + metricValue = 2.0; + break; + } + case PM_TabBarTabOverlap: + case PM_TabBarBaseOverlap: { + metricValue = 1.0; + valueFound = true; + break; + } + case PM_ProgressBarChunkWidth: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-widget-progress-bar-height"), metricValue); + break; + } + case PM_SplitterWidth: { + //No splitter in Hb, so lets use interactive scrollbar width + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-widget-scroll-bar-interactive-width"), metricValue); + break; + } + case PM_TitleBarHeight: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-widget-chrome-height"), metricValue); + break; + } + case PM_MenuScrollerHeight: { + //No menu scroller in Hb, lets use interactive scrollbar width + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-widget-scroll-bar-interactive-width"), metricValue); + break; + } + case PM_MenuHMargin: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-left"), metricValue); + break; + } + case PM_MenuVMargin: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-top"), metricValue); + break; + } + case PM_MenuPanelWidth: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-background-list-popup"), metricValue); + break; + } + case PM_MenuTearoffHeight: { + valueFound = true; + metricValue = 0.0; + break; + } + case PM_MenuDesktopFrameWidth: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-background-list-popup"), metricValue); + break; + } + case PM_MenuBarPanelWidth: { + valueFound = true; + metricValue = 0.0; + break; + } + case PM_MenuBarItemSpacing: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-middle-horizontal"), metricValue); + break; + } + case PM_MenuBarVMargin: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-top"), metricValue); + break; + } + case PM_MenuBarHMargin: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-left"), metricValue); + break; + } + // Hb indicators are squares and radiobuttons and checkboxes are of similar size. + case PM_IndicatorWidth: + case PM_IndicatorHeight: + case PM_ExclusiveIndicatorWidth: + case PM_ExclusiveIndicatorHeight: + case PM_CheckListButtonSize: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-secondary"), metricValue); + // todo: or hb-param-graphic-size-primary-small? + break; + } + case PM_CheckListControllerSize: { + break; + } + case PM_DialogButtonsSeparator: { + qreal buttonArea = 0.0; + if (m_private->styleManager()->parameter(QLatin1String("hb-param-widget-chrome-height"), buttonArea)) { + qreal buttonIconArea = 0.0; + valueFound = true; + if (m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-function"), buttonIconArea)) + metricValue = (buttonArea - buttonIconArea) / 2; + else + metricValue = buttonArea / 2; + } + break; + } + case PM_DialogButtonsButtonWidth: + case PM_DialogButtonsButtonHeight: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-function"), metricValue); + break; + } + case PM_MdiSubWindowFrameWidth: { + valueFound = true; + metricValue = 0.75 * unitValue; //0.75 from uiemo documentation (margin for TitleBar) + break; + } + case PM_MdiSubWindowMinimizedWidth: { + //todo: will it cause issues, if we use Hb minimized titlebar size? Will Qt want to put dialog buttons visible? + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-widget-chrome-height"), metricValue); + metricValue = metricValue / 6; //from Hb documentation: minimized TitleBar width + break; + } + case PM_HeaderMargin: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-middle-vertical"), metricValue); + break; + } + case PM_HeaderMarkSize: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-secondary"), metricValue); + break; + } + case PM_HeaderGripMargin: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-middle-vertical"), metricValue); + break; + } + case PM_TabBar_ScrollButtonOverlap: { + valueFound = true; //Lets put the tabs side-by-side + break; + } + case PM_TabBarTabShiftHorizontal: + case PM_TabBarTabShiftVertical: { + //todo: should we have tab shifting? + break; + } + case PM_TabBarScrollButtonWidth: { + qreal margin = 0.0; + if (m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-top"), margin)) { + qreal buttonIconWidth = 0.0; + if (m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-secondary"), buttonIconWidth)) { + metricValue = margin * 2 + buttonIconWidth; + valueFound = true; + } + } + break; + } + case PM_ToolBarItemSpacing: + case PM_ToolBarItemMargin: + case PM_ToolBarFrameWidth: { + valueFound = true; //Hb Toolbar buttons are laid out with no margins between them + break; + } + case PM_ToolBarHandleExtent: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-widget-chrome-height"), metricValue); + metricValue = (2 * metricValue) / 3; //Use minimized Chrome width for toolbar handle size. + break; + } + case PM_ToolBarSeparatorExtent: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-widget-toolbar-height"), metricValue); + break; + } + case PM_ToolBarExtensionExtent: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-secondary"), metricValue); + break; + } + case PM_SpinBoxSliderHeight: {//todo: what's this... + break; + } + case PM_ToolBarIconSize: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-function"), metricValue); + break; + } + case PM_LargeIconSize: + case PM_ListViewIconSize: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-primary-large"), metricValue); + break; + } + case PM_TabBarIconSize: + case PM_SmallIconSize: + case PM_IconViewIconSize: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-primary-small"), metricValue); + break; + } + case PM_FocusFrameVMargin: + case PM_FocusFrameHMargin: { + valueFound = true; + metricValue = 4.0; //from hbstyle.cpp (P_PushButton_focus); value is already in pixels + break; + } + case PM_ToolTipLabelFrameWidth: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-background-popup-preview"), metricValue); + break; + } + case PM_CheckBoxLabelSpacing: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-middle-horizontal"), metricValue); + break; + } + case PM_SizeGripSize: { + //todo: AFAIK, Hb does not have sizegrips + break; + } + case PM_MessageBoxIconSize: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-primary-large"), metricValue); + break; + } + case PM_ButtonIconSize: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-function"), metricValue); + break; + } + case PM_RadioButtonLabelSpacing: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-middle-horizontal"), metricValue); + break; + } + case PM_LayoutLeftMargin: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-left"), metricValue); + break; + } + case PM_LayoutTopMargin: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-top"), metricValue); + break; + } + case PM_LayoutRightMargin: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-right"), metricValue); + break; + } + case PM_LayoutBottomMargin: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-bottom"), metricValue); + break; + } + case PM_LayoutHorizontalSpacing: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-middle-horizontal"), metricValue); + break; + } + case PM_LayoutVerticalSpacing: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-margin-gene-middle-vertical"), metricValue); + break; + } + case PM_TabCloseIndicatorWidth: + case PM_TabCloseIndicatorHeight: { + valueFound = m_private->styleManager()->parameter(QLatin1String("hb-param-graphic-size-primary-small"), metricValue); + break; + } + case PM_TextCursorWidth: { + valueFound = true; + metricValue = 1.0; //directly from Hb designers + break; + } + case PM_SubMenuOverlap: + default: { + break; + } + } + if (!valueFound) + return metricValue = QCommonStyle::pixelMetric(metric, option, widget); + else + return metricValue + 0.5; //rounding since hb values are qreals +} + +QPixmap QHbStyle::standardPixmap(StandardPixmap standardPixmap, const QStyleOption *option, + const QWidget *widget) const +{ + return QCommonStyle::standardPixmap(standardPixmap, option, widget); +} + +void QHbStyle::polish(QWidget *widget) +{ + if (!widget) + return; + + if (false +#ifndef QT_NO_SCROLLBAR + || qobject_cast(widget) +#endif + ) { + widget->setAttribute(Qt::WA_OpaquePaintEvent, false); + } + + if (m_private->isDialog(widget)) { + widget->setAttribute(Qt::WA_StyledBackground); + } + + m_private->polishFont(widget); + + QCommonStyle::polish(widget); + +#ifndef QT_NO_PROGRESSBAR + if (qobject_cast(widget)) + widget->installEventFilter(this); +#endif +} + +void QHbStyle::polish(QApplication *app) +{ + QCommonStyle::polish(app); +} + +void QHbStyle::polish(QPalette &palette) +{ + QCommonStyle::polish(palette); + + palette.setBrush(QPalette::Disabled, QPalette::WindowText, QColor(QRgb(0xff808080))); + palette.setBrush(QPalette::Disabled, QPalette::Button, QColor(QRgb(0xffdddfe4))); + palette.setBrush(QPalette::Disabled, QPalette::Light, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Disabled, QPalette::Midlight, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Disabled, QPalette::Dark, QColor(QRgb(0xff555555))); + palette.setBrush(QPalette::Disabled, QPalette::Mid, QColor(QRgb(0xffc7c7c7))); + palette.setBrush(QPalette::Disabled, QPalette::Text, QColor(QRgb(0xffc7c7c7))); + palette.setBrush(QPalette::Disabled, QPalette::BrightText, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Disabled, QPalette::ButtonText, QColor(QRgb(0xff808080))); + palette.setBrush(QPalette::Disabled, QPalette::Base, QColor(QRgb(0xffefefef))); + palette.setBrush(QPalette::Disabled, QPalette::AlternateBase, palette.color(QPalette::Disabled, QPalette::Base).darker(110)); + palette.setBrush(QPalette::Disabled, QPalette::Window, QColor(QRgb(0xffefefef))); + palette.setBrush(QPalette::Disabled, QPalette::Shadow, QColor(QRgb(0xff000000))); + palette.setBrush(QPalette::Disabled, QPalette::Highlight, QColor(QRgb(0xff567594))); + palette.setBrush(QPalette::Disabled, QPalette::HighlightedText, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Disabled, QPalette::Link, QColor(QRgb(0xff0000ee))); + palette.setBrush(QPalette::Disabled, QPalette::LinkVisited, QColor(QRgb(0xff52188b))); + palette.setBrush(QPalette::Disabled, QPalette::ToolTipBase, QColor(QRgb(0xff0000ee))); + palette.setBrush(QPalette::Disabled, QPalette::ToolTipText, QColor(QRgb(0xff52188b))); + + palette.setBrush(QPalette::Active, QPalette::WindowText, QColor(QRgb(0xff000000))); + palette.setBrush(QPalette::Active, QPalette::Button, QColor(QRgb(0xffdddfe4))); + palette.setBrush(QPalette::Active, QPalette::Light, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Active, QPalette::Midlight, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Active, QPalette::Dark, QColor(QRgb(0xff555555))); + palette.setBrush(QPalette::Active, QPalette::Mid, QColor(QRgb(0xffc7c7c7))); + palette.setBrush(QPalette::Active, QPalette::Text, QColor(QRgb(0xff000000))); + palette.setBrush(QPalette::Active, QPalette::BrightText, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Active, QPalette::ButtonText, QColor(QRgb(0xff000000))); + palette.setBrush(QPalette::Active, QPalette::Base, QColor(QRgb(0xE4E4E4))); + palette.setBrush(QPalette::Active, QPalette::AlternateBase, palette.color(QPalette::Active, QPalette::Base).darker(110)); + palette.setBrush(QPalette::Active, QPalette::Window, QColor(QRgb(0xffefefef))); + palette.setBrush(QPalette::Active, QPalette::Shadow, QColor(QRgb(0xff000000))); + palette.setBrush(QPalette::Active, QPalette::Highlight, QColor(QRgb(0xffE4E4E4))); + palette.setBrush(QPalette::Active, QPalette::HighlightedText, QColor(QRgb(0xff000000))); + palette.setBrush(QPalette::Active, QPalette::Link, QColor(QRgb(0xff0000ee))); + palette.setBrush(QPalette::Active, QPalette::LinkVisited, QColor(QRgb(0xff52188b))); + palette.setBrush(QPalette::Active, QPalette::ToolTipBase, QColor(QRgb(0xff0000ee))); + palette.setBrush(QPalette::Active, QPalette::ToolTipText, QColor(QRgb(0xff52188b))); + + palette.setBrush(QPalette::Inactive, QPalette::WindowText, QColor(QRgb(0xff000000))); + palette.setBrush(QPalette::Inactive, QPalette::Button, QColor(QRgb(0xffdddfe4))); + palette.setBrush(QPalette::Inactive, QPalette::Light, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Inactive, QPalette::Midlight, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Inactive, QPalette::Dark, QColor(QRgb(0xff555555))); + palette.setBrush(QPalette::Inactive, QPalette::Mid, QColor(QRgb(0xffc7c7c7))); + palette.setBrush(QPalette::Inactive, QPalette::Text, QColor(QRgb(0xff000000))); + palette.setBrush(QPalette::Inactive, QPalette::BrightText, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Inactive, QPalette::ButtonText, QColor(QRgb(0xff000000))); + palette.setBrush(QPalette::Inactive, QPalette::Base, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Inactive, QPalette::AlternateBase, palette.color(QPalette::Inactive, QPalette::Base).darker(110)); + palette.setBrush(QPalette::Inactive, QPalette::Window, QColor(QRgb(0xffefefef))); + palette.setBrush(QPalette::Inactive, QPalette::Shadow, QColor(QRgb(0xff000000))); + palette.setBrush(QPalette::Inactive, QPalette::Highlight, QColor(QRgb(0xff678db2))); + palette.setBrush(QPalette::Inactive, QPalette::HighlightedText, QColor(QRgb(0xffffffff))); + palette.setBrush(QPalette::Inactive, QPalette::Link, QColor(QRgb(0xff0000ee))); + palette.setBrush(QPalette::Inactive, QPalette::LinkVisited, QColor(QRgb(0xff52188b))); + palette.setBrush(QPalette::Inactive, QPalette::ToolTipBase, QColor(QRgb(0xff0000ee))); + palette.setBrush(QPalette::Inactive, QPalette::ToolTipText, QColor(QRgb(0xff52188b))); +} + +void QHbStyle::unpolish(QWidget *widget) +{ + if (!widget) + return; + + if (false + #ifndef QT_NO_SCROLLBAR + || qobject_cast(widget) + #endif + ) + widget->setAttribute(Qt::WA_OpaquePaintEvent); + + if (m_private->isDialog(widget)) { + widget->setAttribute(Qt::WA_StyledBackground, false); + } + + QCommonStyle::unpolish(widget); + +#ifndef QT_NO_PROGRESSBAR + if (qobject_cast(widget)) { + widget->removeEventFilter(this); + } +#endif +} + +void QHbStyle::unpolish(QApplication *app) +{ + QCommonStyle::unpolish(app); +} + +QPalette QHbStyle::standardPalette() const +{ + // This function not called if system support system colors + return QCommonStyle::standardPalette(); +} + +QIcon QHbStyle::standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option, + const QWidget *widget) const +{ + QRect iconRect; + if (option) { + iconRect = option->rect; + } else if (widget) { + iconRect = widget->rect(); + } else { + iconRect.setWidth(proxy()->pixelMetric(PM_SmallIconSize, option, widget)); + iconRect.setHeight(proxy()->pixelMetric(PM_SmallIconSize, option, widget)); + } + QString iconName; + + switch (standardIcon) { + case SP_TitleBarMenuButton: { + break; + } + case SP_TitleBarMinButton: { + break; + } + case SP_TitleBarMaxButton: { + break; + } + case SP_TitleBarCloseButton: { + break; + } + case SP_TitleBarNormalButton: { + break; + } + case SP_TitleBarShadeButton: { + break; + } + case SP_TitleBarUnshadeButton: { + break; + } + case SP_TitleBarContextHelpButton: { + break; + } + case SP_DockWidgetCloseButton: { + break; + } + case SP_MessageBoxInformation: { + iconName = QLatin1String("note_info"); + break; + } + case SP_MessageBoxWarning: { + iconName = QLatin1String("note_warning"); + break; + } + case SP_MessageBoxCritical: { + iconName = QLatin1String("note_error"); + break; + } + case SP_MessageBoxQuestion: { + iconName = QLatin1String("qtg_large_question_mark"); + break; + } + case SP_DesktopIcon: { + break; + } + case SP_TrashIcon: { + break; + } + case SP_ComputerIcon: { + iconName = QLatin1String("qtg_mono_mobile"); + break; + } + case SP_DriveFDIcon: { + break; + } + case SP_DriveHDIcon: { + break; + } + case SP_DriveCDIcon: { + break; + } + case SP_DriveDVDIcon: { + break; + } + case SP_DriveNetIcon: { + break; + } + case SP_DirOpenIcon: { + break; + } + case SP_DirClosedIcon: { + break; + } + case SP_DirLinkIcon: { + break; + } + case SP_FileIcon: { + break; + } + case SP_FileLinkIcon: { + break; + } + case SP_ToolBarHorizontalExtensionButton: { + break; + } + case SP_ToolBarVerticalExtensionButton: { + break; + } + case SP_FileDialogStart: { + break; + } + case SP_FileDialogEnd: { + break; + } + case SP_FileDialogToParent: { + break; + } + case SP_FileDialogNewFolder: { + break; + } + case SP_FileDialogDetailedView: { + break; + } + case SP_FileDialogInfoView: { + break; + } + case SP_FileDialogContentsView: { + break; + } + case SP_FileDialogListView: { + break; + } + case SP_FileDialogBack: { + break; + } + case SP_DirIcon: { + break; + } + case SP_DialogOkButton: { + break; + } + case SP_DialogCancelButton: { + break; + } + case SP_DialogHelpButton: { + break; + } + case SP_DialogOpenButton: { + break; + } + case SP_DialogSaveButton: { + break; + } + case SP_DialogCloseButton: { + break; + } + case SP_DialogApplyButton: { + break; + } + case SP_DialogResetButton: { + break; + } + case SP_DialogDiscardButton: { + break; + } + case SP_DialogYesButton: { + break; + } + case SP_DialogNoButton: { + break; + } + case SP_ArrowUp: { + break; + } + case SP_ArrowDown: { + break; + } + case SP_ArrowLeft: { + break; + } + case SP_ArrowRight: { + break; + } + case SP_ArrowBack: { + break; + } + case SP_ArrowForward: { + break; + } + case SP_DirHomeIcon: { + break; + } + case SP_CommandLink: { + break; + } + case SP_VistaShield: { + break; + } + case SP_BrowserReload: { + break; + } + case SP_BrowserStop: { + break; + } + case SP_MediaPlay: { + iconName = QLatin1String("qtg_graf_progslider_handle_play_normal"); + break; + } + case SP_MediaStop: { + break; + } + case SP_MediaPause: { + iconName = QLatin1String("qtg_graf_progslider_handle_pause_normal"); + break; + } + case SP_MediaSkipForward: { + break; + } + case SP_MediaSkipBackward: { + break; + } + case SP_MediaSeekForward: { + break; + } + case SP_MediaSeekBackward: { + break; + } + case SP_MediaVolume: { + iconName = QLatin1String("qgn_indi_nslider_unmuted"); + break; + } + case SP_MediaVolumeMuted: { + iconName = QLatin1String("qgn_indi_nslider_muted"); + break; + } + default: { + break; + } + } + + QIcon icon; + if (!iconName.isNull()) { + HbIcon* hbicon = q_check_ptr(new HbIcon(iconName)); + hbicon->setSize(iconRect.size()); + icon = QIcon(hbicon->qicon()); + delete hbicon; + } else { + icon = QCommonStyle::standardIconImplementation(standardIcon, option, widget); + } + return icon; +} + +int QHbStyle::layoutSpacingImplementation(QSizePolicy::ControlType control1, + QSizePolicy::ControlType control2, + Qt::Orientation orientation, + const QStyleOption *option, + const QWidget *widget) const +{ + return QCommonStyle::layoutSpacingImplementation(control1, control2, orientation, option, widget); +} + +bool QHbStyle::eventFilter(QObject *watched, QEvent *event) +{ + switch( event->type()) { +#ifndef QT_NO_PROGRESSBAR + case QEvent::StyleChange: + case QEvent::Show: { + if (m_private->animationGroup()->state() != QAbstractAnimation::Running ) + m_private->animationGroup()->start(); + break; + } + case QEvent::ApplicationLayoutDirectionChange: + case QEvent::LayoutDirectionChange: + case QEvent::Resize: + case QEvent::Destroy: + case QEvent::Hide: { + if (QProgressBar *bar = qobject_cast(watched)) { + const int count = m_private->animationGroup()->animationCount(); + for (int i(count-1); i >= 0; i--) { + QAbstractAnimation* animation = m_private->animationGroup()->animationAt(i); + if (QPropertyAnimation *pAnimation = qobject_cast(animation)) { + QHbStyleAnimation* styleAnimation = qobject_cast(pAnimation->targetObject()); + if (bar == styleAnimation->target()) { + animation = m_private->animationGroup()->takeAnimation(i); + animation->deleteLater(); + } + } + } + if (m_private->animationGroup()->animationCount() == 0 && + m_private->animationGroup()->state() == QAbstractAnimation::Running) + m_private->animationGroup()->stop(); + } + break; + } +#endif // QT_NO_PROGRESSBAR + default: { + break; + } + }; + + return QCommonStyle::eventFilter(watched, event); +} + +void QHbStyle::animateControl(ControlElement element, const QStyleOption *option, + QPainter *painter, const QWidget *widget) const{ + switch(element) { + case CE_ProgressBarContents: { + if (const QProgressBar *bar = static_cast(widget)) { + if (bar->minimum() == 0 && bar->maximum() == 0) { + QHbStyleAnimation* styleAnimation = 0; + const int count = m_private->animationGroup()->animationCount(); + bool alreadyAnimated = false; + for (int i(0); i < count; i++) { + QAbstractAnimation* animation = m_private->animationGroup()->animationAt(i); + if (QPropertyAnimation *pAnimation = qobject_cast(animation)) { + styleAnimation = qobject_cast(pAnimation->targetObject()); + if (bar == styleAnimation->target()) { + alreadyAnimated = true; + break; + } + } + } + if (!alreadyAnimated) { + QHbStyleAnimation* target = q_check_ptr(new QHbStyleAnimation(const_cast(bar))); + target->createAnimationIcon(CE_ProgressBarContents, bar->orientation()); + QPropertyAnimation* animation = q_check_ptr(new QPropertyAnimation(target, "point")); + animation->setLoopCount(-1); //run until stopped + const int chunk = pixelMetric(PM_ProgressBarChunkWidth, option, widget)-1; + if (bar->orientation()== Qt::Horizontal) { + if ((option->direction == Qt::LeftToRight) ^ const_cast(bar)->invertedAppearance()) { + animation->setStartValue(bar->rect().topLeft()); + animation->setEndValue(QPoint(bar->rect().x()-chunk, bar->rect().y())); + } else { + animation->setStartValue(QPoint(bar->rect().x()-chunk, bar->rect().y())); + animation->setEndValue(bar->rect().topLeft()); + } + } + else { + if ((option->direction == Qt::LeftToRight) ^ const_cast(bar)->invertedAppearance()) { + animation->setStartValue(bar->rect().topLeft()); + animation->setEndValue(QPoint(bar->rect().x(), bar->rect().y()-chunk)); + } else { + animation->setStartValue(QPoint(bar->rect().x(), bar->rect().y()-chunk)); + animation->setEndValue(bar->rect().topLeft()); + } + } + m_private->animationGroup()->addAnimation(animation); + } else { + styleAnimation->paintAnimation(painter); + } + } + } + break; + } + default: { + break; + } + } + + if (m_private->animationGroup()->animationCount() > 0 && + m_private->animationGroup()->state() != QAbstractAnimation::Running) + m_private->animationGroup()->start(); +} + +bool QHbStylePrivate::drawItem(Item part, QPainter *painter, const QRect &rect, ItemStates state, const QColor &color) +{ + QString iconName; + switch(part) { + case SP_Arrow: { + if (state & SS_Up) + iconName = QLatin1String("qgn_indi_input_arrow_up"); + else if (state & SS_Down) + iconName = QLatin1String("qgn_indi_input_arrow_down"); + else if (state && SS_Left) + iconName = QLatin1String("qgn_indi_input_arrow_left"); + else + iconName = QLatin1String("qgn_indi_input_arrow_right"); + break; + } + case SP_BoxButton: { + if (state & SS_Disabled) + iconName = QString("qtg_graf_combobox_button_disabled"); + else if (state & SS_Pressed) + iconName = QString("qtg_graf_combobox_button_pressed"); + else if (state & SS_Selected) + iconName = QString("qtg_graf_combobox_button_highlight"); + else + iconName = QString("qtg_graf_combobox_button_normal"); + break; + } + case SP_CheckBoxIndicator: { + if (state & SS_Inactive) + iconName = QLatin1String("qtg_small_unselected"); + else + iconName = QLatin1String("qtg_small_selected"); + break; + } + case SP_HeaderOrderIndicator: { + iconName = QLatin1String("qtg_mono_sort"); + break; + } + case SP_ItemDecoration: { + if (state & SS_Selected) + iconName = QString("qtg_small_tick"); + break; + } + case SP_MenuSeparator: { + iconName = QLatin1String("qtg_graf_popup_separator"); + break; + } + case SP_RadioButtonIndicator: { + if (state & SS_Inactive) + iconName = QLatin1String("qtg_small_radio_unselected"); + else + iconName = QLatin1String("qtg_small_radio_selected"); + break; + } + case SP_SliderHandle: { + if (state & SS_Horizontal) { + if (state & SS_Pressed) + iconName = QLatin1String("qtg_graf_slider_h_handle_pressed"); + else + iconName = QLatin1String("qtg_graf_slider_h_handle_normal"); + } else { + if (state & SS_Pressed) + iconName = QLatin1String("qtg_graf_slider_v_handle_pressed"); + else + iconName = QLatin1String("qtg_graf_slider_v_handle_normal"); + } + break; + } + case SP_SliderTick: { + if (state & SS_Horizontal) + iconName = QLatin1String("qtg_graf_slider_h_tick_major"); + else + iconName = QLatin1String("qtg_graf_slider_v_tick_major"); + break; + } + case SP_SeparatorLine: { + // @todo: or "qtg_graf_popup_separator" and states and rotation + if (state & SS_Horizontal) + iconName = QLatin1String("qtg_graf_devider_h_thin"); + else + iconName = QLatin1String("qtg_graf_devider_v_thin"); + break; + } + case SP_TreeViewExpanded: { + iconName = QLatin1String("qtg_small_hl_opened"); + break; + } + case SP_TreeViewCollapsed: { + iconName = QLatin1String("qtg_small_hl_closed"); + break; + } + case SP_SubMenuIndicator: + default: { + return false; + } + } + if (!iconName.isNull() && !rect.isEmpty()) { + HbIcon *icon = q_check_ptr(new HbIcon(iconName)); + icon->setSize(rect.size()); + if (color.spec() != QColor::Invalid) + icon->setColor(color); + if (state & SS_Mirrored) + icon->setMirroringMode(HbIcon::Forced); + + painter->save(); + painter->setRenderHint(QPainter::Antialiasing); + + if (state & SS_Flipped) { + QTransform m; + m.rotate(180); + m.translate(-rect.width() - 2 * rect.left(), -rect.height() - 2 * rect.top()); + painter->setTransform(m, true); + } + icon->paint(painter, rect, Qt::IgnoreAspectRatio, Qt::AlignCenter, QIcon::Normal, QIcon::On); + painter->restore(); + delete icon; + } + return true; +} + +bool QHbStylePrivate::drawMultiPartItem(MultiPartItem multiPart, QPainter *painter, const QRect &rect, ItemStates state) +{ + //Q_Q(QHbStyle); + + if (!m_frameDrawer) + m_frameDrawer = q_check_ptr(new HbFrameDrawer()); + + HbFrameDrawer::FrameType frameType = HbFrameDrawer::Undefined; + QString frameName; + qreal border = 0.0; + HbIcon::MirroringMode mirrorMode = HbIcon::Default; + bool fillRect = false; + + QStringList framePartList; + QString frameGraphicsFooter; + QString frameGraphicsHeader; + switch (multiPart) { + case SM_BoxFrame: { + fillRect = true; + frameType = HbFrameDrawer::ThreePiecesHorizontal; + if (state & SS_Disabled) + frameName = QString("qtg_fr_combobox_disabled"); + else if (state & SS_Pressed) + frameName = QString("qtg_fr_combobox_pressed"); + else if (state & SS_Edited) + frameName = QString("qtg_fr_combobox_edit"); + else if (state & SS_Selected) + frameName = QString("qtg_fr_combobox_highlight"); + else + frameName = QString("qtg_fr_combobox_normal"); + break; + } + case SM_Dialog: { + frameName = QLatin1String("qtg_fr_popup"); + frameType = HbFrameDrawer::NinePieces; + break; + } + case SM_GroupBox: { + styleManager()->parameter(QLatin1String("hb-param-background-groupbox"), border); + if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_groupbox_pressed"); + else if (state & SS_Selected && state & SS_Active) + frameName = QLatin1String("qtg_fr_groupbox_highlight"); + else + frameName = QLatin1String("qtg_fr_groupbox_normal"); + frameType = HbFrameDrawer::NinePieces; + break; + } + case SM_GroupBoxTitle: { + frameName = QLatin1String("qtg_fr_groupbox"); + frameType = HbFrameDrawer::NinePieces; + break; + } + case SM_ItemViewHighlight: { + frameName = QLatin1String("qtg_fr_list_highlight"); + frameType = HbFrameDrawer::NinePieces; + break; + } + case SM_ItemViewItem: { + if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_list_pressed"); + else if (state & SS_Focused) + frameName = QLatin1String("qtg_fr_list_highlight"); + else + frameName = QLatin1String("qtg_fr_list_normal"); + frameType = HbFrameDrawer::NinePieces; + styleManager()->parameter(QLatin1String("hb-param-background-list-main"), border); + break; + } + case SM_LineEdit: { + styleManager()->parameter(QLatin1String("hb-param-background-editor"), border); + if (state & SS_Selected) + frameName = QLatin1String("qtg_fr_editor_highlight"); + else + frameName = QLatin1String("qtg_fr_editor_normal"); + frameType = HbFrameDrawer::NinePieces; + break; + } + case SM_ListParent: { + if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_list_pressed"); + else if (state & SS_Focused) + frameName = QLatin1String("qtg_fr_list_highlight"); + else + frameName = QLatin1String("qtg_fr_list_parent_normal"); + frameType = HbFrameDrawer::NinePieces; + styleManager()->parameter(QLatin1String("hb-param-background-list-main"), border); + break; + } + case SM_Menu: { + frameName = QLatin1String("qtg_fr_popup_secondary"); + frameType = HbFrameDrawer::NinePieces; + break; + } + case SM_MenuScroller: { + if (state & SS_Down) + frameName = QLatin1String("qtg_graf_list_mask_b"); + else if (state & SS_Up) + frameName = QLatin1String("qtg_graf_list_mask_t"); + frameType = HbFrameDrawer::OnePiece; + break; + } + case SM_MenuItem: { + if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_popup_list_pressed"); + else if (state & SS_Selected) + frameName = QLatin1String("qtg_fr_popup_list_highlight"); + else + frameName = QLatin1String("qtg_fr_popup_list_normal"); + frameType = HbFrameDrawer::NinePieces; + break; + } + case SM_Panel: { + frameName = QLatin1String("qtg_fr_settingform"); + frameType = HbFrameDrawer::NinePieces; + styleManager()->parameter(QLatin1String("hb-param-background-list-main"), border); + break; + } + case SM_ProgressBarGroove: { + fillRect = true; + if (state & SS_Horizontal) { + frameName = QLatin1String("qtg_fr_progbar_h_frame"); + frameType = HbFrameDrawer::ThreePiecesHorizontal; + } else { + frameName = QLatin1String("qtg_fr_progbar_v_frame"); + frameType = HbFrameDrawer::ThreePiecesVertical; + } + break; + } + case SM_ProgressBarIndicator: { + fillRect = true; + if (state & SS_Horizontal) { + frameName = QLatin1String("qtg_fr_progbar_h_filled"); + frameType = HbFrameDrawer::ThreePiecesHorizontal; + } else { + frameName = QLatin1String("qtg_fr_progbar_v_filled"); + frameType = HbFrameDrawer::ThreePiecesVertical; + } + break; + } + case SM_ToolButton: { + frameType = HbFrameDrawer::ThreePiecesHorizontal; + frameGraphicsHeader = QLatin1String("qtg_fr_tb_h_"); + + framePartList << QLatin1String("_cl") << QLatin1String("_c") << QLatin1String("_cr"); + + if (state & SS_Disabled) + frameGraphicsFooter = QLatin1String("disabled"); + else if (state & SS_Pressed) + frameGraphicsFooter = QLatin1String("pressed"); + else if (state & SS_Selected) + frameGraphicsFooter = QLatin1String("highlight"); + else + frameGraphicsFooter = QLatin1String("normal"); + break; + } + case SM_PushButton: { + frameType = HbFrameDrawer::NinePieces; + if (state & SS_Disabled) + frameName = QLatin1String("qtg_fr_btn_disabled"); + else if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_btn_pressed"); + else if (state & SS_Selected) + frameName = QLatin1String("qtg_fr_btn_highlight"); + else if (state & SS_Latched) + frameName = QLatin1String("qtg_fr_btn_latched"); + else + frameName = QLatin1String("qtg_fr_btn_normal"); + styleManager()->parameter(QLatin1String("hb-param-background-button"), border); + break; + } + case SM_ScrollBarGroove: { + fillRect = true; + if (state & SS_Horizontal) { + if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_scroll_h_active_frame_pressed"); + else + frameName = QLatin1String("qtg_fr_scroll_h_active_frame_normal"); + frameType = HbFrameDrawer::ThreePiecesHorizontal; + } else { + if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_scroll_v_active_frame_pressed"); + else + frameName = QLatin1String("qtg_fr_scroll_v_active_frame_normal"); + frameType = HbFrameDrawer::ThreePiecesVertical; + } + break; + } + case SM_ScrollBarHandle: { + fillRect = true; + if (state & SS_Horizontal) { + if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_scroll_h_active_handle_pressed"); + else + frameName = QLatin1String("qtg_fr_scroll_h_active_handle_normal"); + frameType = HbFrameDrawer::ThreePiecesHorizontal; + } else { + if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_scroll_v_active_handle_pressed"); + else + frameName = QLatin1String("qtg_fr_scroll_v_active_handle_normal"); + frameType = HbFrameDrawer::ThreePiecesVertical; + } + break; + } + case SM_SliderGroove: { + fillRect = true; + if (state & SS_Horizontal) { + if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_slider_h_frame_pressed"); + else + frameName = QLatin1String("qtg_fr_slider_h_frame_normal"); + frameType = HbFrameDrawer::ThreePiecesHorizontal; + } else { + if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_slider_v_frame_pressed"); + else + frameName = QLatin1String("qtg_fr_slider_v_frame_normal"); + frameType = HbFrameDrawer::ThreePiecesVertical; + } + break; + } + case SM_SliderProgress: { + fillRect = true; + if (state & SS_Filled) { + if (state & SS_Horizontal) { + frameName = QLatin1String("qtg_fr_slider_h_filled"); + frameType = HbFrameDrawer::ThreePiecesHorizontal; + } else { + frameName = QLatin1String("qtg_fr_slider_v_filled"); + frameType = HbFrameDrawer::ThreePiecesVertical; + } + } + break; + } + case SM_TabShape: { + if (state & SS_Horizontal) { + frameType = HbFrameDrawer::ThreePiecesHorizontal; + frameGraphicsHeader = QLatin1String("qtg_fr_tb_h_"); + + if (state & SS_Beginning) + framePartList << QLatin1String("_l") << QLatin1String("_c") << QLatin1String("_cr"); + else if (state & SS_Middle) + framePartList << QLatin1String("_cl") << QLatin1String("_c") << QLatin1String("_cr"); + else if (state & SS_End) + framePartList << QLatin1String("_cl") << QLatin1String("_c") << QLatin1String("_r"); + else + framePartList << QLatin1String("_cl") << QLatin1String("_c") << QLatin1String("_r"); + } else if (state & SS_Vertical) { + frameType = HbFrameDrawer::ThreePiecesVertical; + frameGraphicsHeader = QLatin1String("qtg_fr_tb_v_"); + if (state & SS_Beginning) + framePartList << QLatin1String("_t") << QLatin1String("_c") << QLatin1String("_cb"); + else if (state & SS_Middle) + framePartList << QLatin1String("_ct") << QLatin1String("_c") << QLatin1String("_cb"); + else if (state & SS_End) + framePartList << QLatin1String("_ct") << QLatin1String("_c") << QLatin1String("_b"); + else + framePartList << QLatin1String("_t") << QLatin1String("_c") << QLatin1String("_b"); + } + if (state & SS_Disabled) + frameGraphicsFooter = QLatin1String("disabled"); + else if (state & SS_Pressed) + frameGraphicsFooter = QLatin1String("pressed"); + else if (state & SS_Selected) + frameGraphicsFooter = QLatin1String("highlight"); + else + frameGraphicsFooter = QLatin1String("normal"); + break; + } + case SM_TextEdit: { //@todo: combine this and case SM_LineEdit to "case SM_TextEditor"? + styleManager()->parameter(QLatin1String("hb-param-background-editor"), border); + frameName = QLatin1String("qtg_fr_editor"); + frameType = HbFrameDrawer::NinePieces; + break; + } + case SM_ToolBarButton: { + if (state & SS_Horizontal) { + frameType = HbFrameDrawer::ThreePiecesHorizontal; + if (state & SS_Disabled) + frameName = QLatin1String("qtg_fr_tb_h_disabled"); + else if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_tb_h_pressed"); + else if (state & SS_Latched) + frameName = QLatin1String("qtg_fr_tb_h_latched"); + else if (state & SS_Selected) + frameName = QLatin1String("qtg_fr_tb_h_highlight"); + else + frameName = QLatin1String("qtg_fr_tb_h_normal"); + } else { + frameType = HbFrameDrawer::ThreePiecesVertical; + if (state & SS_Disabled) + frameName = QLatin1String("qtg_fr_tb_v_disabled"); + else if (state & SS_Pressed) + frameName = QLatin1String("qtg_fr_tb_v_pressed"); + else if (state & SS_Latched) + frameName = QLatin1String("qtg_fr_tb_v_latched"); + else if (state & SS_Selected) + frameName = QLatin1String("qtg_fr_tb_v_highlight"); + else + frameName = QLatin1String("qtg_fr_tb_v_normal"); + } + styleManager()->parameter(QLatin1String("hb-param-background-button"), border); + break; + } + case SM_ToolTip: { + fillRect = true; + frameType = HbFrameDrawer::NinePieces; + frameName = QLatin1String("qtg_fr_popup_preview"); + break; + } + case SM_HeaderItem: + case SM_TableItem: + case SM_ThemeBackground: + case SM_ToolBar: + default: { + break; + } + } + + if (frameType != HbFrameDrawer::Undefined) + m_frameDrawer->setFrameType(frameType); + else + return false; + + if (!frameName.isNull()) { + m_frameDrawer->setFrameGraphicsName(frameName); + } else if (framePartList.count() > 0) { + m_frameDrawer->setFileNameSuffixList(framePartList); + m_frameDrawer->setFrameGraphicsName(QString ("%0%1").arg(frameGraphicsHeader).arg(frameGraphicsFooter)); + } else { + return false; + } + + m_frameDrawer->setBorderWidth(border); + m_frameDrawer->setFillWholeRect(fillRect); + if (state & SS_Mirrored) + mirrorMode = HbIcon::Forced; + + m_frameDrawer->setMirroringMode(mirrorMode); + + const bool rotated = (state & SS_Flipped || state & SS_RotatedRight || state & SS_RotatedLeft) ? true : false; + QRect validRect = rect; + if (rotated) { + QTransform m; + painter->save(); + + //Calculate new coordinates + int newX = 0, newY = 0; + if (state & SS_RotatedRight) { + newX = 0; + newY = rect.y() + rect.height() - 1; + } else if (state & SS_RotatedLeft) { + newX = rect.width(); + newY = rect.y() - 1; + } else if (state & SS_Flipped) { + if (state & SS_Horizontal) { + newX = rect.width() + 2 * rect.left(); + newY = rect.height() + rect.top(); + } else { + newX = rect.width() + rect.left(); + newY = rect.height() + 2 * rect.top(); + } + } + + //Translate rect and transform + if ((state & SS_RotatedRight) || (state & SS_RotatedLeft)) + validRect.setRect(0, 0, rect.height(), rect.width()); + m.translate(newX, newY); + + // Set rotation + int rotation = 0; + if (state & SS_Flipped) + rotation = 180; + else if (state & SS_RotatedRight) + rotation = -90; + else if (state & SS_RotatedLeft) + rotation = 90; + m.rotate(rotation); + painter->setTransform(m, true); + } + m_frameDrawer->paint(painter, validRect); + + if (rotated) + painter->restore(); + + //Need to clear the list after use. + framePartList.clear(); + m_frameDrawer->setFileNameSuffixList(framePartList); + return true; +} + +bool QHbStylePrivate::isDialog(const QWidget *widget) +{ + return (widget ? (widget->windowType() == Qt::Dialog) : false); +} + +bool QHbStylePrivate::hbParameter(const QString ¶meterName, int &value) +{ + bool retValue = false; + qreal valueInReal = 0.0; + retValue = styleManager()->parameter(parameterName, valueInReal); + valueInReal += 0.5; //to make the real->int to round correctly + value = valueInReal; + return retValue; +} + +void QHbStylePrivate::polishFont(QWidget *widget) +{ + HbFontSpec::Role fontRole = HbFontSpec::Undefined; + qreal fontSize = 0.0; + bool valueFound = false; + + //Widget font role specifications from hb documentation. + if (false +#ifndef QT_NO_COMBOBOX + || qobject_cast(widget) +#endif +#ifndef QT_NO_SPINBOX + || qobject_cast(widget) +#endif + || qobject_cast(widget) + ) { + valueFound = styleManager()->parameter(QLatin1String("b-param-text-height-secondary"), fontSize); + fontRole = HbFontSpec::Primary; + } else if (false + || qobject_cast(widget) +#ifndef QT_NO_TOOLBUTTON + || qobject_cast(widget) +#endif +#ifndef QT_NO_TABWIDGET + || qobject_cast(widget) +#endif + ) { + valueFound = styleManager()->parameter(QLatin1String("hb-param-text-height-tiny"), fontSize); + fontRole = HbFontSpec::Primary; + } else if (false +#ifndef QT_NO_HEADERVIEW + || qobject_cast(widget) +#endif +#ifndef QT_NO_LISTVIEW + || qobject_cast(widget) +#endif +#ifndef QT_NO_TABLEVIEW + || qobject_cast(widget) +#endif +#ifndef QT_NO_TREEVIEW + || qobject_cast(widget) +#endif +#ifndef QT_NO_LINEEDIT + || qobject_cast(widget) +#endif +#ifndef QT_NO_TEXTEDIT + || qobject_cast(widget) +#endif + || qobject_cast(widget) +#ifndef QT_NO_SLIDER + || qobject_cast(widget) +#endif + || qobject_cast(widget) + ) { + fontRole = HbFontSpec::Secondary; + valueFound = styleManager()->parameter(QLatin1String("hb-param-text-height-secondary"), fontSize); + } else if (false +#ifndef QT_NO_PROGRESSBAR + || qobject_cast(widget) +#endif + ) { + fontRole = HbFontSpec::Secondary; + valueFound = styleManager()->parameter(QLatin1String("hb-param-text-height-tiny"), fontSize); + } + + HbFontSpec *fontSpec = q_check_ptr(new HbFontSpec(fontRole)); + if (valueFound) { + fontSpec->setTextHeight(fontSize); + QFont widgetFont = fontSpec->font(); + widgetFont.setPixelSize(fontSpec->font().pixelSize()); + widget->setFont(widgetFont); + } + delete fontSpec; +} + +QT_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbstyle.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbstyle.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,86 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ +#ifndef QHBSTYLE_H +#define QHBSTYLE_H + +#include + +class QHbStylePrivate; + +class QHbStyle : public QCommonStyle +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QHbStyle) + +public: + QHbStyle(); + ~QHbStyle(); + + void drawPrimitive(PrimitiveElement element, const QStyleOption *option, + QPainter *painter, const QWidget *widget = 0) const; + void drawControl(ControlElement element, const QStyleOption *option, + QPainter *painter, const QWidget *widget) const; + void drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, + QPainter *painter, const QWidget *widget) const; + QSize sizeFromContents(ContentsType type, const QStyleOption *option, + const QSize &size, const QWidget *widget) const; + + QRect subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const; + QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, + SubControl sc, const QWidget *widget) const; + + int styleHint(StyleHint hint, const QStyleOption *option = 0, const QWidget *widget = 0, + QStyleHintReturn *returnData = 0) const; + + int pixelMetric(PixelMetric metric, const QStyleOption *option = 0, const QWidget *widget = 0) const; + + QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt, + const QWidget *widget = 0) const; + + void polish(QWidget *widget); + void polish(QApplication *app); + void polish(QPalette &pal); + void unpolish(QWidget *widget); + void unpolish(QApplication *app); + + QPalette standardPalette() const; + +protected Q_SLOTS: + QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *opt = 0, + const QWidget *widget = 0) const; + int layoutSpacingImplementation(QSizePolicy::ControlType control1, + QSizePolicy::ControlType control2, + Qt::Orientation orientation, + const QStyleOption *option = 0, + const QWidget *widget = 0) const; + +protected: + bool eventFilter(QObject *watched, QEvent *event); + void animateControl(ControlElement element, const QStyleOption *option, + QPainter *painter, const QWidget *widget) const; + + +private: + QHbStylePrivate* m_private; + Q_DISABLE_COPY(QHbStyle) +}; + +#endif //QHBSTYLE_H diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbstyle.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbstyle.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,28 @@ +# +# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, version 2.1 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, +# see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +# +# Description: +# +HEADERS = qhbstyle.h \ + qhbstyle_p.h \ + qhbemptystyle.h \ + qhbstyleplugin.h \ + qhbstyleanimation.h +SOURCES = qhbstyle.cpp \ + qhbemptystyle.cpp \ + qhbstyleplugin.cpp \ + qhbstyleanimation.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbstyle.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbstyle.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,42 @@ +# +# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, version 2.1 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, +# see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +# +# Description: +# +TEMPLATE = lib +CONFIG += plugin hb +TARGET = qhbstyle +win32 { + debug:DESTDIR = ../debug/styles/ + release:DESTDIR = ../release/styles/ +} else { + DESTDIR = $$[QT_INSTALL_PLUGINS]/styles +} + +CONFIG += hb + +include(qhbstyle.pri) + + +symbian: { + load(data_caging_paths) + styleplugin.sources = qhbstyle.dll + styleplugin.path = $$QT_PLUGINS_BASE_DIR/styles + DEPLOYMENT += styleplugin +} + +symbian:TARGET.EPOCALLOWDLLDATA = 1 diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbstyle_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbstyle_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,156 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ +#ifndef QHBSTYLE_P_H +#define QHBSTYLE_P_H + +#include "qhbstyle.h" + +#ifndef QT_NO_STYLE_HB + +QT_BEGIN_NAMESPACE + +class HbStyle; +class QParallelAnimationGroup; + +enum Item { + SP_Arrow, + SP_BoxButton, + SP_CheckBoxIndicator, + SP_CurrentFolderIcon, + SP_ErasedNoteIcon, + SP_ErrorNoteIcon, + SP_HeaderOrderIndicator, + SP_InfoNoteIcon, + SP_ItemDecoration, + SP_LargeMemoryCardIcon, + SP_MenuIndicator, + SP_MenuSeparator, + SP_NewSmallFolderIcon, + SP_OkNoteIcon, + SP_QueryNoteIcon, + SP_RadioButtonIndicator, + SP_SelectedIndicator, + SP_SeparatorLine, + SP_SliderHandle, + SP_SliderTick, + SP_SmallFileIcon, + SP_SmallFolderIcon, + SP_SubMenuIndicator, + SP_TreeViewCollapsed, + SP_TreeViewExpanded, + SP_WarningNoteIcon, +}; + +enum MultiPartItem { + SM_BoxFrame, + SM_Dialog, + SM_GroupBox, + SM_GroupBoxTitle, + SM_HeaderItem, + SM_ItemViewHighlight, + SM_ItemViewItem, + SM_LineEdit, + SM_ListParent, + SM_Menu, + SM_MenuItem, + SM_MenuScroller, + SM_Panel, + SM_ProgressBarGroove, + SM_ProgressBarIndicator, + SM_PushButton, + SM_ScrollBarGroove, + SM_ScrollBarHandle, + SM_SliderGroove, + SM_SliderProgress, + SM_TableItem, + SM_TabShape, + SM_TextEdit, //todo: or combine this and SM_LineEdit to "SM_TextEditor"? + SM_ThemeBackground, + SM_ToolBar, + SM_ToolBarButton, + SM_ToolButton, + SM_ToolTip, +}; + +enum ItemState { + SS_Active = 0x000001, // "On" + SS_Inactive = 0x000002, // "Off" + SS_Pressed = 0x000004, + SS_Latched = 0x000008, // similar to SS_Pressed, but state remains ("toggled") + SS_Disabled = 0x000010, + SS_Filled = 0x000020, + SS_Horizontal = 0x000040, + SS_Vertical = 0x000080, + SS_Selected = 0x000100, // item is selected (not necessarily focused) + SS_Beginning = 0x000200, // beginning part of multipart item + SS_Middle = 0x000400, // middle part of multipart item + SS_End = 0x000800, // end part of multipart item + SS_Flipped = 0x001000, // 180 degree rotation + SS_Mirrored = 0x002000, // graphic is drawn mirrored + SS_Down = 0x004000, + SS_Up = 0x008000, + SS_Left = 0x010000, + SS_Right = 0x020000, + SS_RotatedRight = 0x040000, + SS_RotatedLeft = 0x080000, + SS_Edited = 0x100000, + SS_Alternate = 0x200000, + SS_Focused = 0x400000 // item is focused (not necessarily selected) +}; + +Q_DECLARE_FLAGS(ItemStates, ItemState) + +class QHbStylePrivate //: public QObjectPrivate +{ + //Q_DECLARE_PUBLIC(QHbStyle) + +public: + QHbStylePrivate(); + + virtual ~QHbStylePrivate(); + + //Call HbStyle styleManager to avoid name confusion + HbStyle* styleManager(); + void setStyleManager(HbStyle* style); + + QParallelAnimationGroup* animationGroup(); + + //These return true if drawing was done by the style successfully. + bool drawItem(Item part, QPainter *painter, const QRect &rect, ItemStates state = ItemStates(SS_Active | SS_Horizontal), const QColor &color = QColor(QColor::Invalid)); + bool drawMultiPartItem(MultiPartItem multiPart, QPainter *painter, const QRect &rect, ItemStates state = ItemStates(SS_Active | SS_Horizontal)); + + bool isDialog(const QWidget *widget); + bool hbParameter(const QString ¶meterName, int &value); + void polishFont(QWidget *widget); + +private: + HbStyle *m_styleManager; + HbFrameDrawer *m_frameDrawer; + QParallelAnimationGroup* m_animationGroup; + + //QHbStyle *q_ptr; +}; + +QT_END_NAMESPACE + +#endif // QT_NO_STYLE_HB + +#endif //QHBSTYLE_P_H diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbstyleanimation.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbstyleanimation.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,146 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ +#include "qhbstyleanimation.h" +#include +#include +#include +#include +#include + +#include "qhbstyle.h" +#include "hbframedrawer.h" + + +QHbStyleAnimation::QHbStyleAnimation(QWidget* target, QObject *parent) : + QObject(parent), m_animationIcon(0), m_target(target), m_point(QPoint(0, 0)), m_mask(0) +{ +} + +QHbStyleAnimation::~QHbStyleAnimation() +{ + delete m_animationIcon; + delete m_mask; +} + +const QWidget* QHbStyleAnimation::target()const +{ + return m_target; +} + +QPoint QHbStyleAnimation::point() +{ + return m_point; +} + +void QHbStyleAnimation::setPoint(const QPoint& point) +{ + m_point = point; + m_target->update(); +} + +void QHbStyleAnimation::createAnimationIcon(QStyle::ControlElement element, Qt::Orientations orientation) +{ + //Create mask + HbFrameDrawer drawer; + if (orientation == Qt::Horizontal){ + drawer.setFrameGraphicsName("qtg_fr_progbar_h_mask"); + drawer.setFrameType(HbFrameDrawer::ThreePiecesHorizontal); + } + else { + drawer.setFrameGraphicsName("qtg_fr_progbar_v_mask"); + drawer.setFrameType(HbFrameDrawer::ThreePiecesVertical); + } + drawer.setFillWholeRect(true); + if (m_mask) + delete m_mask; + m_mask = new QPixmap(m_target->rect().size()); + m_mask->fill(Qt::transparent); + QPainter p(m_mask); + drawer.paint(&p, m_target->rect()); + p.end(); + + //Create animated icon + QString iconName; + switch (element) { + case QStyle::CE_ProgressBarContents: { + if (orientation == Qt::Horizontal) + iconName = QLatin1String("qtg_graf_progbar_h_wait"); + else + iconName = QLatin1String("qtg_graf_progbar_v_wait"); + break; + } + default: + break; + } + + if (!iconName.isNull() && !m_target->rect().isEmpty()) { + HbIcon* icon = q_check_ptr(new HbIcon(iconName)); + if(orientation == Qt::Horizontal) + icon->setSize(QSize(icon->width(), m_target->rect().height())); + else + icon->setSize(QSize(m_target->rect().width(), icon->height())); + + const qreal rectWidth = m_target->rect().width(); + const qreal iconWidth = icon->width(); + const qreal rectHeight = m_target->rect().height(); + const qreal iconHeight = icon->height(); + + if (m_animationIcon) + delete m_animationIcon; + + const int animationWidth = (orientation == Qt::Horizontal) ? int(rectWidth + iconWidth) : int(rectWidth); + const int animationHeight = (orientation == Qt::Horizontal) ? int(rectHeight) : int(rectHeight + iconHeight); + + m_animationIcon = q_check_ptr(new QPixmap(animationWidth, animationHeight)); + m_animationIcon->fill(Qt::transparent); + QPainter p(m_animationIcon); + + if (orientation == Qt::Horizontal) { + if (iconWidth > 0) + for (qreal i = 0 ; i < (rectWidth + iconWidth); i += iconWidth) + icon->paint(&p, QRectF(i, 0, iconWidth, iconHeight), Qt::IgnoreAspectRatio, Qt::AlignCenter, QIcon::Normal, QIcon::On); + } else { + if (iconHeight > 0) + for(qreal i = 0 ; i < (rectHeight + iconHeight) ; i += iconHeight) + icon->paint(&p, QRectF(0, i, iconWidth, iconHeight), Qt::IgnoreAspectRatio, Qt::AlignCenter, QIcon::Normal, QIcon::On); + } + p.end(); + } +} + +void QHbStyleAnimation::paintAnimation(QPainter *painter) +{ + Q_ASSERT(m_animationIcon); + Q_ASSERT(painter); + + //Take part from animation icon + QPixmap icon(m_target->rect().size()); + icon.fill(Qt::transparent); + QPainter p(&icon); + p.setCompositionMode(QPainter::CompositionMode_SourceOver); + p.drawPixmap(QPointF(0, 0), *m_mask); + p.setCompositionMode(QPainter::CompositionMode_SourceIn); + p.drawPixmap(m_point, *m_animationIcon, QRect(0, 0, m_target->rect().width() + m_point.rx() * -1, m_target->rect().height() + m_point.ry() * -1)); + p.end(); + + //paint animation + painter->drawPixmap(QPointF(0, 0), icon); +} diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbstyleanimation.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbstyleanimation.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ +#ifndef QHBSTYLEANIMATION_H +#define QHBSTYLEANIMATION_H + +#include +#include +#include + +class QPixmap; +class QPainter; + +class QHbStyleAnimation : public QObject +{ +Q_OBJECT + +Q_PROPERTY(QPoint point READ point WRITE setPoint) + +public: + QHbStyleAnimation(QWidget* target, QObject *parent = 0); + ~QHbStyleAnimation(); + + const QWidget* target() const; + + QPoint point(); + void setPoint(const QPoint& rect); + + void createAnimationIcon(QStyle::ControlElement element, Qt::Orientations orientation); + void paintAnimation(QPainter *painter); + +private: + QPixmap* m_animationIcon; + QWidget* m_target; + QPoint m_point; + QPixmap* m_mask; +}; + +#endif // QHBSTYLEANIMATION_H diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbstyleplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbstyleplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,42 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ +#include + +#include "qhbstyleplugin.h" +#include "qhbstyle.h" +#include "qhbemptystyle.h" + +QStringList QHbStylePlugin::keys() const +{ + return QStringList() << "HbStyle" << "HbEmptyStyle"; +} + +QStyle *QHbStylePlugin::create(const QString &key) +{ + if (key.toLower() == "hbstyle") + return new QHbStyle; + else if (key.toLower() == "hbemptystyle") + return new QHbEmptyStyle; + else + return 0; +} + +Q_EXPORT_PLUGIN2(qhbstyleplugin, QHbStylePlugin) diff -r 2b40d63a9c3d -r 90517678cc4f qhbstyle/qhbstyleplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qhbstyle/qhbstyleplugin.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ +#ifndef QHBSTYLEPLUGIN_H +#define QHBSTYLEPLUGIN_H + +#include + +class QStringList; +class QStyle; + +class QHbStylePlugin : public QStylePlugin + { + + Q_OBJECT + + public: + QHbStylePlugin() {}; + + QStringList keys() const; + QStyle *create(const QString &key); + }; + +#endif //QHBSTYLEPLUGIN_H diff -r 2b40d63a9c3d -r 90517678cc4f qtecomplugins/supplements/xqecom/xqecom.exe Binary file qtecomplugins/supplements/xqecom/xqecom.exe has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtecomplugins/xqecom/README.txt --- a/qtecomplugins/xqecom/README.txt Fri Apr 16 15:51:22 2010 +0300 +++ b/qtecomplugins/xqecom/README.txt Mon May 03 13:18:40 2010 +0300 @@ -1,13 +1,33 @@ -build: - qmake -platform win32-g++ - make relese +============= BUILD STEPS: ============= + +1. Copy WHOLE xqsreg directory (one containing this README file) + to: + + [QTDIR]\src\tools -clean: - make clean + where QTDIR is path to your qt sources (typically for SDK release: \sf\mw\qt\) + + +2. Ensure that QT is properly configured. In just-downoladed SDK one + need to run such command in qt directory: + + # configure.exe -platform win32-g++ -make make -xplatform symbian-abld -nokia-developer -dont-process -no-qmake + -The application is generated directly to directory pointed by DESTDIR variable in xqecom.pro file. +3. Rebuild project in [QTDIR]\src\tools\bootstrap library: + + # qmake -platform win32-g++ -spec \sf\mw\qt\mkspecs\win32-g++ + # make + + +4. Rebuild project in [QTDIR]\src\tools\xqsreg directory: -Note: to compile one need full include directory placed in /sf/mw/qt directory. Usualy it means -that qt sources need to be configured by running eg.: + # qmake -platform win32-g++ -spec \sf\mw\qt\mkspecs\win32-g++ + # make + - configure -platform win32-g++ -make make -xplatform symbian-abld \ No newline at end of file +5. Check if xqsreg.exe tool is in proper bin directory: + + # dir \epoc32\tools\xqecom.exe + + (exact path depends on where QT_INSTALL_BINS points to, during compilation) diff -r 2b40d63a9c3d -r 90517678cc4f qtecomplugins/xqecom/main.cpp --- a/qtecomplugins/xqecom/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtecomplugins/xqecom/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -27,56 +27,8 @@ #include #include -#define PLUGIN_WINSCW_DEF_FILE_ACTUAL "plugin_common_winscw.def" -#define PLUGIN_EABI_DEF_FILE_ACTUAL "plugin_common_arm.def" #define IMPLEMENTATION_UID_LIT "KQtEcomPluginImplementationUid" -void runDefFileGenerator() -{ - QFile ft(QLatin1String(PLUGIN_WINSCW_DEF_FILE_ACTUAL)); - if(!ft.exists()){ - if(ft.open(QIODevice::WriteOnly)){ - QTextStream t(&ft); - t << "EXPORTS" << endl; - t << "\t?ImplementationGroupProxy@@YAPBUTImplementationProxy@@AAH@Z @ 1 NONAME ; struct TImplementationProxy const * ImplementationGroupProxy(int &)" << endl; - t << endl; - printf("Generated: "); - printf((QFileInfo(ft).absoluteFilePath()).toLocal8Bit().data() ); - printf("\n"); - }else{ - printf("Not generated: "); - printf((QFileInfo(ft).absoluteFilePath()).toLocal8Bit().data() ); - printf(" - Error %d\n",ft.error()); - } - }else{ - printf("Not generated: "); - printf((QFileInfo(ft).absoluteFilePath()).toLocal8Bit().data() ); - printf(" - File exists\n"); - } - - QFile ftArm(QLatin1String(PLUGIN_EABI_DEF_FILE_ACTUAL)); - if(!ftArm.exists()){ - if(ftArm.open(QIODevice::WriteOnly)) { - QTextStream t(&ftArm); - t << "EXPORTS" << endl; - t << "\t_Z24ImplementationGroupProxyRi @ 1 NONAME" << endl; - t << endl; - printf("Generated: "); - printf((QFileInfo(ftArm).absoluteFilePath()).toLocal8Bit().data() ); - printf("\n"); - }else{ - printf("Not generated: "); - printf((QFileInfo(ftArm).absoluteFilePath()).toLocal8Bit().data() ); - printf(" - Error %d\n",ftArm.error()); - } - }else{ - printf("Not generated: "); - printf((QFileInfo(ftArm).absoluteFilePath()).toLocal8Bit().data() ); - printf(" - File exists\n"); - } - -} - void runRSSFileGenerator(QStringList params) { QString appName = params[1]; @@ -86,7 +38,7 @@ QString configurationFile = params[5]; QString rssFilename = appName; - rssFilename.append(".rss"); + rssFilename.append(QString::fromLatin1(".rss")); QFile ft(rssFilename); if(!ft.exists()){ @@ -105,7 +57,7 @@ t << endl; if (interfacename.isEmpty()) { - interfacename = QString(appName).append(".dll"); + interfacename = QString(appName).append(QString::fromLatin1(".dll")); } QTextStream configStream; @@ -127,7 +79,7 @@ } - t << "#include " << endl << endl; + t << "#include " << endl << endl; t << "#include " << endl << endl; t << "#include " << endl << endl; t << "RESOURCE REGISTRY_INFO theInfo" << endl << "{" << endl; @@ -139,14 +91,14 @@ t << "\t\t\tIMPLEMENTATION_INFO" << endl << "\t\t\t\t{" << endl; t << "\t\t\t\timplementation_uid = " << IMPLEMENTATION_UID_LIT << ";" << endl; t << "\t\t\t\tversion_no = 1;" << endl; - t << "\t\t\t\tdisplay_name = \"" << appName+QString(".dll") << "\";" << endl; + t << "\t\t\t\tdisplay_name = \"" << appName+QString(QString::fromLatin1(".dll")) << "\";" << endl; t << "\t\t\t\t// SERVICE.INTERFACE_NAME" << endl; t << "\t\t\t\tdefault_data = \"" << interfacename << "\";" << endl; t << "\t\t\t\t// SERVICE.CONFIGURATION" << endl; t << "\t\t\t\topaque_data = \""; while( !configStream.atEnd() ) { configStream.skipWhiteSpace(); - t << configStream.readLine( 255 ).replace("\"","\\\""); + t << configStream.readLine( 255 ).replace(QString::fromLatin1("\""), QString::fromLatin1("\\\"")); }; t << "\";" << endl; t << "\t\t\t\t}" << endl << "\t\t\t};" << endl << "\t\t}" << endl << "\t};" << endl << "}" << endl; @@ -170,7 +122,7 @@ QString appName = params[1]; QString uid3=params[2]; - QString outputFileName=appName+QString(".pkg"); + QString outputFileName=appName+QString(QString::fromLatin1(".pkg")); QFile ft(outputFileName); if(!ft.exists()){ @@ -222,8 +174,8 @@ { QString appName = params[1]; - QString outputFileName=appName+QString(".iby"); - QString headerGuard = appName+QString("_IBY"); + QString outputFileName=appName+QString(QString::fromLatin1(".iby")); + QString headerGuard = appName+QString(QString::fromLatin1("_IBY")); headerGuard=headerGuard.toUpper(); QFile ft(outputFileName); @@ -261,11 +213,11 @@ void runXQStubGenerator(QStringList params) { QString appName = params[1]; - QString uid3=params[2]; + QString uid3 = params[2]; - QString outputHeaderFileName="ecomstub_"+uid3+".hrh"; - QString outputSourceFileName="ecomstub_"+uid3+".cpp"; - QString headerGuard = QString("ECOMSTUB_%1_HRH").arg(uid3); + QString outputHeaderFileName=QString::fromLatin1("ecomstub_") + uid3 + QString::fromLatin1(".hrh"); + QString outputSourceFileName=QString::fromLatin1("ecomstub_") + uid3 + QString::fromLatin1(".cpp"); + QString headerGuard = QString::fromLatin1("ECOMSTUB_%1_HRH").arg(uid3); QFile fth(outputHeaderFileName); if(!fth.exists()){ @@ -307,12 +259,14 @@ t << "#include " << endl; t << "#include <" << outputHeaderFileName << ">" << endl; - t << "#include " << endl; + t << "#include " << endl; t << "XQ_PLUGIN_ECOM_HEADER(" << appName << ")" << endl; //t << "const TImplementationProxy implementationTable[] = \n\t{\n\tIMPLEMENTATION_PROXY_ENTRY( " << IMPLEMENTATION_UID_LIT << ", C" - t << "const TImplementationProxy implementationTable[] = \n\t{\n\tIMPLEMENTATION_PROXY_ENTRY(" + uid3 + ", C" + + t << "const TImplementationProxy implementationTable[] = \n\t{\n\tIMPLEMENTATION_PROXY_ENTRY(" << uid3 << ", C" << appName <<"Factory::NewL)\n\t};" << endl << endl; + t << "EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)" << endl <<"\t{\n\taTableCount = sizeof( implementationTable ) / sizeof( TImplementationProxy );" << endl <<"\treturn implementationTable;" @@ -336,7 +290,7 @@ { QStringList params; for (int i=0 ; i < argc ; i++) { - params << argv[i]; + params << QString::fromLatin1(argv[i]); // printf(argv[i]); // printf("\n"); // fprintf(stderr, "%s\n",argv[i]); @@ -347,12 +301,11 @@ return 1; } - if ( !params[2].startsWith("0x") ){ //fix uid if incorrect - params[2].insert( 0, "0x"); + if ( !params[2].startsWith(QString::fromLatin1("0x")) ){ //fix uid if incorrect + params[2].insert( 0, QString::fromLatin1("0x")); } printf("xqecom:\n"); - runDefFileGenerator(); runRSSFileGenerator(params); runXQPkgGenerator(params); runXQIbyGenerator(params); diff -r 2b40d63a9c3d -r 90517678cc4f qtecomplugins/xqecom/xqecom.pro --- a/qtecomplugins/xqecom/xqecom.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtecomplugins/xqecom/xqecom.pro Mon May 03 13:18:40 2010 +0300 @@ -28,7 +28,6 @@ QPRO_PWD = $$PWD - DESTDIR = /epoc32/tools/ #$$[QT_INSTALL_BINS]$${DIR_SEPARATOR} #QTSOURCEDIR = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}..$${DIR_SEPARATOR}src @@ -45,94 +44,11 @@ QT_NO_THREAD QT_NO_QOBJECT QT_NO_GEOM_VARIANT QT_NO_DATASTREAM \ QT_NO_LIBRARY QT_BOOTSTRAPPED -VPATH += $$QTSOURCEDIR/corelib/global \ - $$QTSOURCEDIR/corelib/tools \ - $$QTSOURCEDIR/corelib/codecs \ - $$QTSOURCEDIR/corelib/kernel \ - $$QTSOURCEDIR/corelib/plugin \ - $$QTSOURCEDIR/corelib/io \ - $$QTSOURCEDIR/corelib/xml \ - $$QTSOURCEDIR/script \ - c:/MinGW/include/ - INCPATH += $$QTINCLUDEDIR $$QTINCLUDEDIR/QtCore SOURCES += main.cpp -#QT sources -SOURCES+= \ - qbitarray.cpp \ - qbuffer.cpp \ - qbytearray.cpp \ - qbytearraymatcher.cpp \ - qcryptographichash.cpp \ - qdatetime.cpp \ - qdir.cpp \ - qdiriterator.cpp \ - qfile.cpp \ - qabstractfileengine.cpp \ - qfileinfo.cpp \ - qfsfileengine.cpp \ - qfsfileengine_win.cpp \ - qfsfileengine_iterator.cpp \ - qfsfileengine_iterator_win.cpp \ - qglobal.cpp \ - qnumeric.cpp \ - qhash.cpp \ - qiodevice.cpp \ - qlist.cpp \ - qutfcodec.cpp \ - qlinkedlist.cpp \ - qlocale.cpp \ - qmalloc.cpp \ - qmap.cpp \ - qmetatype.cpp \ - qregexp.cpp \ - qstring.cpp \ - qstringlist.cpp \ - qtemporaryfile.cpp \ - qtextstream.cpp \ - qurl.cpp \ -# quuid.cpp \ - qvariant.cpp \ - qvector.cpp \ - qvsnprintf.cpp - - HEADERS+= \ - qbitarray.h \ - qbytearray.h \ - qbytearraymatcher.h \ - qchar.h \ - qcryptographichash.h \ - qdatetime.h \ - qdatetime_p.h \ - qdir.h \ - qdiriterator.h \ - qfile.h \ - qabstractfileengine.h \ - qabstractfileengine_p.h \ - qfsfileengine_p.h \ - qfsfileengine_iterator_p.h \ - qfileinfo.h \ - qfileinfo_p.h \ - qglobal.h \ - qnumeric.h \ - qhash.h \ - qiodevice.h \ - qlist.h \ - qlinkedlist.h \ - qlocale.h \ - qmap.h \ - qmetatype.h \ - qregexp.h \ - qstring.h \ - qstringlist.h \ - qstringmatcher.h \ - qtemporaryfile.h \ - qtextstream.h \ - qurl.h \ - quuid.h \ - qvector.h \ +include(../bootstrap/bootstrap.pri) DEFINES *= QT_NO_QOBJECT \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtextensions.pro --- a/qtextensions.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtextensions.pro Mon May 03 13:18:40 2010 +0300 @@ -22,4 +22,5 @@ SUBDIRS = qtecomplugins \ qthighway \ qtmobileextensions \ - qtmobility + qtmobility \ + qhbstyle diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/bwins/xqserviceu.def --- a/qthighway/bwins/xqserviceu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/bwins/xqserviceu.def Mon May 03 13:18:40 2010 +0300 @@ -188,4 +188,8 @@ ?list@XQApplicationManager@@QAE?AV?$QList@VXQAiwInterfaceDescriptor@@@@ABVXQSharableFile@@@Z @ 187 NONAME ; class QList XQApplicationManager::list(class XQSharableFile const &) ?create@XQApplicationManager@@QAEPAVXQAiwRequest@@ABVXQSharableFile@@_N@Z @ 188 NONAME ; class XQAiwRequest * XQApplicationManager::create(class XQSharableFile const &, bool) ??0XQAiwRequest@@QAE@ABVXQSharableFile@@ABVXQAiwInterfaceDescriptor@@ABVQString@@@Z @ 189 NONAME ; XQAiwRequest::XQAiwRequest(class XQSharableFile const &, class XQAiwInterfaceDescriptor const &, class QString const &) + ?isRunning@XQApplicationManager@@QBE_NABVXQAiwInterfaceDescriptor@@@Z @ 190 NONAME ; bool XQApplicationManager::isRunning(class XQAiwInterfaceDescriptor const &) const + ?getDrmAttributes@XQApplicationManager@@QAE_NABVXQSharableFile@@ABV?$QList@H@@AAV?$QList@VQVariant@@@@@Z @ 191 NONAME ; bool XQApplicationManager::getDrmAttributes(class XQSharableFile const &, class QList const &, class QList &) + ?getDrmAttributes@XQApplicationManager@@QAE_NABVQFile@@ABV?$QList@H@@AAV?$QList@VQVariant@@@@@Z @ 192 NONAME ; bool XQApplicationManager::getDrmAttributes(class QFile const &, class QList const &, class QList &) + ?status@XQApplicationManager@@QAE?AW4ServiceStatus@1@ABVXQAiwInterfaceDescriptor@@@Z @ 193 NONAME ; enum XQApplicationManager::ServiceStatus XQApplicationManager::status(class XQAiwInterfaceDescriptor const &) diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/bwins/xqserviceutilu.def --- a/qthighway/bwins/xqserviceutilu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/bwins/xqserviceutilu.def Mon May 03 13:18:40 2010 +0300 @@ -71,4 +71,10 @@ ??0XQSharableFile@@QAE@XZ @ 70 NONAME ; XQSharableFile::XQSharableFile(void) ?latestError@XQServiceManager@@QBEHXZ @ 71 NONAME ; int XQServiceManager::latestError(void) const ?mapError@XQRequestUtil@@SAHH@Z @ 72 NONAME ; int XQRequestUtil::mapError(int) + ?interfaceName@XQServiceUtil@@YA?AVQString@@XZ @ 73 NONAME ; class QString XQServiceUtil::interfaceName(void) + ?operationName@XQServiceUtil@@YA?AVQString@@XZ @ 74 NONAME ; class QString XQServiceUtil::operationName(void) + ?id@XQRequestInfo@@QBEHXZ @ 75 NONAME ; int XQRequestInfo::id(void) const + ?isRunning@XQServiceManager@@QBE_NABVXQAiwInterfaceDescriptor@@@Z @ 76 NONAME ; bool XQServiceManager::isRunning(class XQAiwInterfaceDescriptor const &) const + ?setForeground@XQRequestInfo@@QAEX_N@Z @ 77 NONAME ; void XQRequestInfo::setForeground(bool) + ?isForeground@XQRequestInfo@@QBE_NXZ @ 78 NONAME ; bool XQRequestInfo::isForeground(void) const diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/eabi/xqserviceu.def --- a/qthighway/eabi/xqserviceu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/eabi/xqserviceu.def Mon May 03 13:18:40 2010 +0300 @@ -192,4 +192,8 @@ _ZN20XQApplicationManager4listERK14XQSharableFile @ 191 NONAME _ZN20XQApplicationManager6createERK14XQSharableFileRK24XQAiwInterfaceDescriptorb @ 192 NONAME _ZN20XQApplicationManager6createERK14XQSharableFileb @ 193 NONAME + _ZNK20XQApplicationManager9isRunningERK24XQAiwInterfaceDescriptor @ 194 NONAME + _ZN20XQApplicationManager16getDrmAttributesERK14XQSharableFileRK5QListIiERS3_I8QVariantE @ 195 NONAME + _ZN20XQApplicationManager16getDrmAttributesERK5QFileRK5QListIiERS3_I8QVariantE @ 196 NONAME + _ZN20XQApplicationManager6statusERK24XQAiwInterfaceDescriptor @ 197 NONAME diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/eabi/xqserviceutilu.def --- a/qthighway/eabi/xqserviceutilu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/eabi/xqserviceutilu.def Mon May 03 13:18:40 2010 +0300 @@ -86,4 +86,10 @@ _ZTV14XQSharableFile @ 85 NONAME _ZNK16XQServiceManager11latestErrorEv @ 86 NONAME _ZN13XQRequestUtil8mapErrorEi @ 87 NONAME + _ZN13XQServiceUtil13interfaceNameEv @ 88 NONAME + _ZN13XQServiceUtil13operationNameEv @ 89 NONAME + _ZNK13XQRequestInfo2idEv @ 90 NONAME + _ZNK16XQServiceManager9isRunningERK24XQAiwInterfaceDescriptor @ 91 NONAME + _ZN13XQRequestInfo13setForegroundEb @ 92 NONAME + _ZNK13XQRequestInfo12isForegroundEv @ 93 NONAME diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/appmgrclient/DrmTestFiles.zip Binary file qthighway/examples/appmgrclient/DrmTestFiles.zip has changed diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/appmgrclient/src/appmgrclient.cpp --- a/qthighway/examples/appmgrclient/src/appmgrclient.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/examples/appmgrclient/src/appmgrclient.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,8 @@ #include #include #include +#include + #include #include @@ -51,6 +53,7 @@ AppMgrClient::AppMgrClient(QWidget *parent, Qt::WFlags f) : QWidget(parent, f), + actionButton(0), req1(0), req2(0), req3(0), @@ -60,7 +63,7 @@ req7(0), req8(0), req9(0), - actionButton(0), + req10(0), mImplIndex(0) { /* Adjust the palette */ @@ -79,11 +82,12 @@ qApp->setPalette(p); #endif + QPushButton *quitButton = new QPushButton(tr("quit")); + connect(quitButton, SIGNAL(clicked()), qApp, SLOT(quit())); + + QPushButton *testButton1 = 0; QPushButton *anyTestButton = 0; - - QPushButton *quitButton = new QPushButton(tr("quit")); - connect(quitButton, SIGNAL(clicked()), qApp, SLOT(quit())); testButton1 = new QPushButton("Tests"); mMenu = new QMenu(this); @@ -91,24 +95,28 @@ anyTestButton = new QPushButton(tr("Any test")); connect(anyTestButton, SIGNAL(clicked()), this, SLOT(anyTest())); - QAction *test1 = new QAction("Interface", this); + QAction *test1 = new QAction("1:Interface", this); connect(test1, SIGNAL(triggered()), this, SLOT(test1())); - QAction *test2 = new QAction("Descriptor", this); + QAction *test2 = new QAction("2:Descriptor", this); connect(test2, SIGNAL(triggered()), this, SLOT(test2())); - QAction *test3 = new QAction("Errors", this); + QAction *test3 = new QAction("3:Errors", this); connect(test3, SIGNAL(triggered()), this, SLOT(test3())); - QAction *test4 = new QAction("QAction", this); + QAction *test4 = new QAction("4:QAction", this); connect(test4, SIGNAL(triggered()), this, SLOT(test4())); - QAction *test5 = new QAction("appto:", this); + QAction *test5 = new QAction("5:appto:", this); connect(test5, SIGNAL(triggered()), this, SLOT(test5())); - QAction *test6 = new QAction("testto:", this); + QAction *test6 = new QAction("6:testto:", this); connect(test6, SIGNAL(triggered()), this, SLOT(test6())); - QAction *test7 = new QAction("MIME", this); + QAction *test7 = new QAction("7:MIME", this); connect(test7, SIGNAL(triggered()), this, SLOT(test7())); - QAction *test8 = new QAction("URI", this); + QAction *test8 = new QAction("8:URI", this); connect(test8, SIGNAL(triggered()), this, SLOT(test8())); - QAction *test9 = new QAction("XQSharableFile", this); + QAction *test9 = new QAction("9:XQSharableFile", this); connect(test9, SIGNAL(triggered()), this, SLOT(test9())); + QAction *test10 = new QAction("10:Select contact", this); + connect(test10, SIGNAL(triggered()), this, SLOT(test10())); + QAction *test11 = new QAction("11:getDrmAttr", this); + connect(test11, SIGNAL(triggered()), this, SLOT(test11())); mMenu = new QMenu(this); mMenu->addAction(test1); @@ -120,12 +128,15 @@ mMenu->addAction(test7); mMenu->addAction(test8); mMenu->addAction(test9); + mMenu->addAction(test10); + mMenu->addAction(test11); testButton1->setMenu(mMenu); mCheckEmbedded = new QCheckBox("Embedded"); mSynchronous = new QCheckBox("Synchronous"); mBackground = new QCheckBox("Background"); + mForeground = new QCheckBox("Foreground"); mCheckDeleteRequest = new QCheckBox("Delete request"); mGenericSend = new QCheckBox("Use generic send()"); mCheckEmbedded->setCheckState(Qt::Checked); @@ -136,7 +147,10 @@ mTextRetValue = new QLineEdit("no ret value set"); - QLabel *label = new QLabel("APPMGR CLIENT TEST"); + QFileInfo appinfo (qApp->applicationFilePath()); + mAppName = appinfo.baseName(); + + QLabel *label = new QLabel(mAppName); vl = new QVBoxLayout; vl->setMargin(0); @@ -146,6 +160,7 @@ vl->addWidget(mCheckEmbedded); vl->addWidget(mSynchronous); vl->addWidget(mBackground); + vl->addWidget(mForeground); vl->addWidget(mCheckDeleteRequest); vl->addWidget(mGenericSend); vl->addWidget(mReqArg); @@ -177,23 +192,28 @@ delete req7; delete req8; delete req9; + delete req10; delete mMenu; } -void AppMgrClient::test(XQAiwRequest **req, const QString& interface, const QString& operation, bool embedded) +void AppMgrClient::test(XQAiwRequest **req, const QString& interface, const QString& operation) { - qDebug() << "AppMgrClient::test START"; + qDebug() << mAppName << " test START"; bool embed = (mCheckEmbedded->checkState() == Qt::Checked); bool sync = (mSynchronous->checkState() == Qt::Checked); bool background = (mBackground->checkState() == Qt::Checked); - qDebug() << "AppMgrClient:test: embed=" << embed << ",sync=" << sync << "background=" << background; + qDebug() << mAppName << " test: embed=" << embed << ",sync=" << sync << "background=" << background; if (!*req) { *req = appmgr.create(interface, operation); + if (!*req) + { + return; + } connectSignals(*req); } // Test embedded funcions @@ -201,18 +221,19 @@ (*req)->setSynchronous(sync); (*req)->setBackground(background); - qDebug("AppMgrClient::isEmbbedded %d", (*req)->isEmbedded()); + + qDebug("%s::isEmbbedded %d", qPrintable(mAppName), (*req)->isEmbedded()); test(req, mReqArg->text()); - qDebug() << "AppMgrClient::test END"; + qDebug() << mAppName << " test END"; } -void AppMgrClient::test(XQAiwRequest **req, XQAiwInterfaceDescriptor &impl, const QString& operation, bool embedded) +void AppMgrClient::test(XQAiwRequest **req, XQAiwInterfaceDescriptor &impl, const QString& operation) { - qDebug() << "AppMgrClient::test START"; + qDebug() << mAppName << " test START"; if (!*req) { @@ -220,11 +241,11 @@ connectSignals(*req); } // Test embedded funcions - qDebug("AppMgrClient::isEmbbedded %d", (*req)->isEmbedded()); + qDebug("%s::isEmbbedded %d", qPrintable(mAppName),(*req)->isEmbedded()); test(req, mReqArg->text()); - qDebug() << "AppMgrClient::test END"; + qDebug() << mAppName << " test END"; } @@ -232,11 +253,11 @@ void AppMgrClient::test(XQAiwRequest **req, const QString &arg) { - qDebug() << "AppMgrClient::testreq START"; + qDebug() << mAppName << " testreq START"; if (!req || !*req) { - qDebug() << "AIW-ERROR:AppMgrClient::NULL request"; + qDebug() << mAppName << " AIW-ERROR::NULL request"; return; } @@ -244,11 +265,16 @@ bool embed = (mCheckEmbedded->checkState() == Qt::Checked); bool sync = (mSynchronous->checkState() == Qt::Checked); bool background = (mBackground->checkState() == Qt::Checked); + bool foreground = (mForeground->checkState() == Qt::Checked); // Set arguments for request QList args; args << arg; - args << QVariant(!sync); + if ((*req)->operation() == OPERATION1) + { + qDebug() << mAppName << " test: add bool arg" << !sync; + args << QVariant(!sync); + } (*req)->setArguments(args); bool genericSend = (mGenericSend->checkState() == Qt::Checked); @@ -256,12 +282,17 @@ (*req)->setSynchronous(sync); (*req)->setBackground(background); + // Apply additional options + XQRequestInfo options; + options.setForeground(foreground); + (*req)->setInfo(options); + // Make the request if (genericSend || !sync) { if (!(*req)->send()) { - qDebug() << "AIW-ERROR: AppMgrClient:test: Send failed" << (*req)->lastError();; + qDebug() << mAppName << " AIW-ERROR:test: Send failed" << (*req)->lastError();; } } else if (!genericSend && sync) @@ -269,20 +300,20 @@ QVariant retValue; if (!(*req)->send(retValue)) { - qDebug() << "AIW-ERROR: AppMgrClient:test: Send(retValue) failed" << (*req)->lastError();; + qDebug() << mAppName << " AIW-ERROR: test: Send(retValue) failed" << (*req)->lastError();; } else { if (retValue.canConvert()) { - qDebug("AppMgrClient::retValue=%s,%s", + qDebug("%s::retValue=%s,%s", qPrintable(mAppName), retValue.typeName(), qPrintable(retValue.value())); mTextRetValue->setText(retValue.value()); } else { - qDebug("AppMgrClient:retValue=%s", + qDebug("%s:retValue=%s", qPrintable(mAppName), retValue.typeName()); mTextRetValue->setText("Not displayable"); } @@ -301,12 +332,12 @@ if (deleteRequest) { - qDebug() << "AIW-NOTE: Request deleted"; + qDebug() << mAppName << " AIW-NOTE: Request deleted"; delete *req; *req = 0; } - qDebug() << "AppMgrClient::test END"; + qDebug() << mAppName << " test END"; update(); @@ -335,7 +366,7 @@ QFile file(dir + "/" + fileName); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { - qDebug() << "Creating file failed " << QString(dir + "/" + fileName); + qDebug() << mAppName << " Creating file failed " << QString(dir + "/" + fileName); return; } QTextStream out(&file); @@ -344,16 +375,40 @@ } +bool AppMgrClient::testRunning(const QString & service, const QString & interface) +{ + + QList impls = appmgr.list(service, interface, QString("")); + qDebug() << mAppName << " isRunning" << impls.count(); + if (impls.count() > 0) + { + bool b = appmgr.isRunning(impls[0]); + qDebug() << mAppName << " isRunning=" << b; + return b; + } + else + { + qDebug("%s isRunning: no service found (%s,%s)", qPrintable(mAppName), + qPrintable(service),qPrintable(interface)); + return false; + } + +} + void AppMgrClient::test1() { - qDebug() << "AppMgrClient::test1 START"; + + qDebug() << mAppName << " test1 START"; test(&req1, IDIAL, OPERATION1); - qDebug() << "AppMgrClient::test1 END"; + qDebug() << mAppName << " test1 END"; + qDebug("%s::isRunning=%d", qPrintable(mAppName), testRunning("com.nokia.services.serviceapp", IDIAL)); + + /* mReqArg->setText("77777"); - qDebug() << "AppMgrClient::test1 second call"; + qDebug() << mAppName << " test1 second call"; test(&req1, IDIAL, OPERATION1); */ } @@ -361,48 +416,76 @@ void AppMgrClient::test2() { - qDebug() << "AppMgrClient::test2 START"; + qDebug() << mAppName << " test2 START"; QList list=appmgr.list(IDIAL, ""); - qDebug() << "AppMgrClient::Found implementations: " << list.count(); + qDebug() << mAppName << " list implementations: " << list.count(); int i=0; + Q_ASSERT(list.count() > 0); foreach (XQAiwInterfaceDescriptor d, list) { - qDebug("AppMgrClient::Service[%d]=%s",i,qPrintable(d.serviceName())); - qDebug("AppMgrClient::Interface[%d]=%s",i,qPrintable(d.interfaceName())); - qDebug("AppMgrClient::Implementation Id[%d]=%x",i,d.property(XQAiwInterfaceDescriptor::ImplementationId).toInt()); + qDebug("%s::Service[%d]=%s",qPrintable(mAppName),i,qPrintable(d.serviceName())); + qDebug("%s::Interface[%d]=%s",qPrintable(mAppName),i,qPrintable(d.interfaceName())); + qDebug("%s::Implementation Id[%d]=%x",qPrintable(mAppName),i,d.property(XQAiwInterfaceDescriptor::ImplementationId).toInt()); + qDebug("%s::isRunning=%d", qPrintable(mAppName), testRunning(d.serviceName(), d.interfaceName())); + qDebug("%s::status=%d", qPrintable(mAppName), appmgr.status(d)); + i++; + } + + QList list2=appmgr.list("com.nokia.services.serviceapp", IDIAL, ""); + qDebug() << mAppName << " list implementations 2: " << list2.count(); + i=0; + Q_ASSERT(list2.count() > 0); + foreach (XQAiwInterfaceDescriptor d, list2) + { + qDebug("%s::Service[%d]=%s",qPrintable(mAppName),i,qPrintable(d.serviceName())); + qDebug("%s::Interface[%d]=%s",qPrintable(mAppName),i,qPrintable(d.interfaceName())); + qDebug("%s::Implementation Id[%d]=%x",qPrintable(mAppName),i,d.property(XQAiwInterfaceDescriptor::ImplementationId).toInt()); + i++; + } + + QList list3=appmgr.list("serviceapp", IDIAL, ""); + qDebug() << mAppName << " New: list implementations: " << list3.count(); + i=0; + Q_ASSERT(list3.count() > 0); + foreach (XQAiwInterfaceDescriptor d, list3) + { + qDebug("%s::Service[%d]=%s",qPrintable(mAppName),i,qPrintable(d.serviceName())); + qDebug("%s::Interface[%d]=%s",qPrintable(mAppName),i,qPrintable(d.interfaceName())); + qDebug("%s::Implementation Id[%d]=%x",qPrintable(mAppName),i,d.property(XQAiwInterfaceDescriptor::ImplementationId).toInt()); i++; } if (!list.isEmpty()) { // Use the first found - qDebug() << "AppMgrClient::Using implementation nbr: " << mImplIndex; + qDebug() << mAppName << " Using implementation nbr: " << mImplIndex; test(&req2,list[mImplIndex], OPERATION1); } - qDebug() << "AppMgrClient::test2 END"; + qDebug() << mAppName << " test2 END"; } void AppMgrClient::test3() { - qDebug() << "AppMgrClient::test3 START"; + qDebug() << mAppName << " test3 START"; test(&req3,IDIAL,ERR_OPERATION1); test(&req3,ERR_IDIAL,ERR_OPERATION1); test(&req3,ERR_IDIAL,ERR_OPERATION1); - qDebug() << "AppMgrClient::test3 END"; + qDebug() << mAppName << " test3 END"; } void AppMgrClient::test4() { - qDebug() << "AppMgrClient::test4 START"; + qDebug() << mAppName << " test4 START"; bool embed = (mCheckEmbedded->checkState() == Qt::Checked); bool sync = (mSynchronous->checkState() == Qt::Checked); + bool foreground = (mForeground->checkState() == Qt::Checked); if (req4) { @@ -414,13 +497,18 @@ req4 = appmgr.create(QLatin1String("com.nokia.services.hbserviceprovider"), IDIAL, OPERATION1); if (!req4) { - qDebug() << "AIW-ERROR:AppMgrClient::NULL request"; + qDebug() << mAppName << " AIW-ERROR::NULL request"; return; } - connectSignals(req4); - req4->setEmbedded(embed); - req4->setSynchronous(embed); + connectSignals(req4); + req4->setSynchronous(sync); + + // In this test case, apply "options" for other options + XQRequestInfo options; + options.setEmbedded(embed); + options.setForeground(foreground); + req4->setInfo(options); if (actionButton) { @@ -432,7 +520,7 @@ } QAction *action = req4->createAction(); // Also connects the triggered event to req !!!! - qDebug() << "AppMgrClient::action:" << action->isEnabled(); + qDebug() << mAppName << " action:" << action->isEnabled(); // Create UI if (action) @@ -448,11 +536,11 @@ } else { - qDebug() << "AppMgrClient::test4 No action available"; + qDebug() << mAppName << " test4 No action available"; } - qDebug() << "AppMgrClient::test4 END"; + qDebug() << mAppName << " test4 END"; } @@ -471,13 +559,13 @@ void AppMgrClient::test5() { - qDebug() << "AppMgrClient::test5 START"; + qDebug() << mAppName << " test5 START"; // E0022E73 == ServiceApp QUrl uri(XQURI_SCHEME_ACTIVITY + "://E0022E73?" + XQURI_KEY_ACTIVITY_NAME + "=emailView&view=myview"); - qDebug() << "AppMgrClient::Uri=" << uri.toString(); - qDebug() << "AppMgrClient::isValid=" << uri.isValid(); - qDebug() << "AppMgrClient::Uri authority=" << uri.authority(); + qDebug() << mAppName << " Uri=" << uri.toString(); + qDebug() << mAppName << " isValid=" << uri.isValid(); + qDebug() << mAppName << " Uri authority=" << uri.authority(); QString old=mReqArg->text(); if (!req5) { @@ -489,26 +577,27 @@ test(&req5, mReqArg->text()); mReqArg->setText(old); - qDebug() << "AppMgrClient::test5 END"; + qDebug() << mAppName << " test5 END"; } void AppMgrClient::test6() { - qDebug() << "AppMgrClient::test6 START"; + qDebug() << mAppName << " test6 START"; QUrl uri("testto://authority?param1=value1¶m1=value2"); - qDebug() << "AppMgrClient::Uri=" << uri.toString(); - qDebug() << "AppMgrClient::isValid=" << uri.isValid(); - qDebug() << "AppMgrClient::Uri authority=" << uri.authority(); + qDebug() << mAppName << " Uri=" << uri.toString(); + qDebug() << mAppName << " isValid=" << uri.isValid(); + qDebug() << mAppName << " Uri authority=" << uri.authority(); QList uriHandlers = appmgr.list(uri); // Note : Only services supporting custom property are returned foreach (XQAiwInterfaceDescriptor d, uriHandlers) { - qDebug() << "AppMgrClient::Service=" << d.serviceName(); - qDebug() << "AppMgrClient::Interface=" << d.interfaceName(); - qDebug("AppMgrClient::Implementation Id=%x",d.property(XQAiwInterfaceDescriptor::ImplementationId).toInt()); + qDebug() << mAppName << " Service=" << d.serviceName(); + qDebug() << mAppName << " Interface=" << d.interfaceName(); + qDebug("%s::Implementation Id=%x",qPrintable(mAppName),d.property(XQAiwInterfaceDescriptor::ImplementationId).toInt()); + qDebug("%s::isRunning=%d", qPrintable(mAppName), testRunning(d.serviceName(), d.interfaceName())); } if (!req6) @@ -519,28 +608,29 @@ test(&req6, uri.toString()); - qDebug() << "AppMgrClient::test6 END"; + qDebug() << mAppName << " test6 END"; } void AppMgrClient::test7() { - qDebug() << "AppMgrClient::test7 START"; + qDebug() << mAppName << " test7 START"; // Should launch viewer for text/plain MimeTestApp. // Create test file createTestFile("C:/data/Others", "test.txt"); + QFile file("C:/data/Others/test.txt"); - qDebug() << "AppMgrClient::File=" << file.fileName(); - qDebug() << "AppMgrClient::exists=" << file.exists(); + qDebug() << mAppName << " File=" << file.fileName(); + qDebug() << mAppName << " exists=" << file.exists(); QList fileHandlers = appmgr.list(file); foreach (XQAiwInterfaceDescriptor d, fileHandlers) { - qDebug() << "AppMgrClient::Service=" << d.serviceName(); - qDebug() << "AppMgrClient::Interface=" << d.interfaceName(); - qDebug() << "AppMgrClient::Implementation Id=" << d.property(XQAiwInterfaceDescriptor::ImplementationId).toInt(); + qDebug() << mAppName << " Service=" << d.serviceName(); + qDebug() << mAppName << " Interface=" << d.interfaceName(); + qDebug() << mAppName << " Implementation Id=" << d.property(XQAiwInterfaceDescriptor::ImplementationId).toInt(); } if (!req7) @@ -550,20 +640,20 @@ } test(&req7, file.fileName()); - qDebug() << "AppMgrClient::test7 END"; + qDebug() << mAppName << " test7 END"; } void AppMgrClient::test8() { - qDebug() << "AppMgrClient::test8 START"; + qDebug() << mAppName << " test8 START"; // E0022E73 == ServiceApp QUrl uri("http://www.nokia.com"); - qDebug() << "AppMgrClient::Uri=" << uri.toString(); - qDebug() << "AppMgrClient::isValid=" << uri.isValid(); - qDebug() << "AppMgrClient::Uri authority=" << uri.authority(); + qDebug() << mAppName << " Uri=" << uri.toString(); + qDebug() << mAppName << " isValid=" << uri.isValid(); + qDebug() << mAppName << " Uri authority=" << uri.authority(); if (!req8) { @@ -572,14 +662,14 @@ } test(&req8, uri.toString()); - qDebug() << "AppMgrClient::test8 END"; + qDebug() << mAppName << " test8 END"; } void AppMgrClient::test9() { - qDebug() << "AppMgrClient::test9 START"; + qDebug() << mAppName << " test9 START"; bool embed = (mCheckEmbedded->checkState() == Qt::Checked); bool sync = (mSynchronous->checkState() == Qt::Checked); @@ -588,10 +678,17 @@ // Access data-caged file XQSharableFile sf; - createTestFile("c:/private/e0022e74", "test.txt"); - if (!sf.open("c:\\private\\e0022e74\\test.txt")) + QString fileDir = "c:/private/e0022e74"; + + if (mAppName == "appmgrclient2") { - qDebug() << "AppMgrClient:file open failed"; + fileDir = "c:/private/e0022e76"; + } + + createTestFile(fileDir, "test.txt"); + if (!sf.open(fileDir + "\\test.txt")) + { + qDebug() << mAppName << " file open failed " << (fileDir + "/test.txt"); return; } @@ -600,9 +697,9 @@ if (fileHandlers.count() > 0) { XQAiwInterfaceDescriptor d = fileHandlers.first(); - qDebug() << "AppMgrClient::File Service=" << d.serviceName(); - qDebug() << "AppMgrClient::File Interface=" << d.interfaceName(); - qDebug() << "AppMgrClient::Handler Implementation Id=" << d.property(XQAiwInterfaceDescriptor::ImplementationId).toInt(); + qDebug() << mAppName << " File Service=" << d.serviceName(); + qDebug() << mAppName << " File Interface=" << d.interfaceName(); + qDebug() << mAppName << " Handler Implementation Id=" << d.property(XQAiwInterfaceDescriptor::ImplementationId).toInt(); if (!req9) { // Create by descriptor @@ -611,14 +708,14 @@ if (!req9) { sf.close(); - qDebug() << "AppMgrClient:anyTest: ERROR IN XQAppMgr API"; + qDebug() << mAppName << " anyTest: ERROR IN XQAppMgr API"; return ; } } else { sf.close(); - qDebug() << "AppMgrClient:anyTest: NO HANDLER FOUND"; + qDebug() << mAppName << " anyTest: NO HANDLER FOUND"; } connectSignals(req9); @@ -633,7 +730,7 @@ if (req9->lastError() == XQService::EMessageNotFound) { // Slot was not found - qDebug() << "AIW-ERROR:XQService::EMessageNotFound"; + qDebug() << mAppName << " AIW-ERROR:XQService::EMessageNotFound"; deleteRequest = true; } // Remember to close the file !!! @@ -645,8 +742,149 @@ req9 = 0; } - qDebug() << "AppMgrClient::test9 END"; + qDebug() << mAppName << " test9 END"; + +} + +// Test 10 +void AppMgrClient::test10() +{ + + qDebug() << mAppName << " test10 START"; + + bool embed = (mCheckEmbedded->checkState() == Qt::Checked); + bool sync = (mSynchronous->checkState() == Qt::Checked); + bool background = (mBackground->checkState() == Qt::Checked); + + qDebug() << mAppName << " test10: embed=" << embed << ",sync=" << sync << "background=" << background; + + if (!req10) + { + req10 = appmgr.create(QLatin1String("com.nokia.services.phonebookservices"), QLatin1String("Fetch"), QLatin1String("")); + connect(req10, SIGNAL(requestOk(const QVariant&)), this, SLOT(showRecipients(const QVariant&))); + connect(req10, SIGNAL(requestError(int,const QString&)), this, SLOT(handleError(int,const QString&))); + } + + if (!req10) + { + qDebug() << mAppName << " AIW-ERROR: NULL request"; + return; + } + + // Set request attributes + req10->setOperation("fetch(QString,QString,QString)"); + req10->setEmbedded(embed); + req10->setSynchronous(sync); + req10->setBackground(background); + + // Set arguments + QList args; + args << "Contact"; + args << KCntActionAll; + args << KCntFilterDisplayAll; + req10->setArguments(args); + + // Send the request + req10->send(); + + bool deleteRequest = (mCheckDeleteRequest->checkState() == Qt::Checked); + if (deleteRequest) + { + delete req10; + req10 = 0; + } + qDebug() << mAppName << " test10 END"; + + +} + + +void AppMgrClient::test11() +{ + qDebug() << mAppName << " test11 START"; + + // Copy files from DrmTestFiles.zip into correct location + QList drmFiles; + drmFiles.append("C:/data/Others/RoAcqoffer-111-aac-i15m.ort"); + drmFiles.append("C:/data/Others/SD_Celebration_SP.dcf"); + drmFiles.append("C:/data/Others/111-test1.odf"); + drmFiles.append("C:/data/Others/SD_jpg_sun.dcf"); + drmFiles.append("C:/data/Others/STC1_128_44_16_2_CBR.wma"); + drmFiles.append("C:/data/Others/test.txt"); + drmFiles.append("C:/data/Others/foo.txt"); + + QList attrNames; + attrNames.append(XQApplicationManager::MimeType); + attrNames.append(XQApplicationManager::IsProtected); + attrNames.append(XQApplicationManager::IsForwardable); + + // Test with file names + foreach (QString f, drmFiles) + { + QFile file(f); + QVariantList attrValues; + bool ok = appmgr.getDrmAttributes(file, attrNames, attrValues); + qDebug() << mAppName << " getDrmAttributes for " << f << " status=" << ok; + int i=0; + foreach (QVariant v, attrValues) + { + qDebug() << mAppName << " Attribute " << attrNames[i] << "=" << qPrintable(v.toString()); + i++; + } + } + + // Test with file handles + foreach (QString f, drmFiles) + { + XQSharableFile file; + file.open(f); // Create handle manually + QVariantList attrValues; + bool ok = appmgr.getDrmAttributes(file, attrNames, attrValues); + qDebug() << mAppName << " getDrmAttributes for file " << file.fileName() << " handle status=" << ok; + int i=0; + foreach (QVariant v, attrValues) + { + qDebug() << mAppName << " Attribute " << attrNames[i] << "=" << qPrintable(v.toString()); + i++; + } + file.close(); + } + + qDebug() << mAppName << " test11 END"; + +} + + +void AppMgrClient::showRecipients(const QVariant &value) +{ + qDebug("%s::showRecipients::variant(%d,%s)", qPrintable(mAppName),value.type(), value.typeName()); + + CntServicesContactList list; + if(value.canConvert()) + { + qDebug() << mAppName << " showRecipients: canConvert"; + list = qVariantValue(value); + } + else + { + qDebug() << mAppName << " showRecipients: canConvert NOK !!!"; + return; + } + + if (list.count() == 0) + { + qDebug() << mAppName << " showRecipients: Count==0"; + } + else { + for (int i = 0; i < list.count(); ++i) + { + qDebug() << mAppName << " showRecipients[" << i << "]=" << list[i].mDisplayName; + qDebug() << mAppName << " showRecipients[" << i << "]=" << list[i].mPhoneNumber; + qDebug() << mAppName << " showRecipients[" << i << "]=" << list[i].mEmailAddress; + + } + } } @@ -657,52 +895,117 @@ void AppMgrClient::anyTest() { + qDebug() << mAppName << " anyTest START"; - qDebug() << "AppMgrClient:name" << qApp->applicationName(); - qDebug() << "AppMgrClient:dirpath" << qApp->applicationDirPath(); - qDebug() << "AppMgrClient:filename" << qApp->applicationFilePath(); - qDebug() << "AppMgrClient:pid" << qApp->applicationPid(); + bool embed = (mCheckEmbedded->checkState() == Qt::Checked); + bool sync = (mSynchronous->checkState() == Qt::Checked); + bool background = (mBackground->checkState() == Qt::Checked); + + XQAiwRequest *req=0; + req = appmgr.create(QLatin1String("com.nokia.services.serviceapp"), IDIAL, QLatin1String("testContactList(CntServicesContactList)")); + + if (!req) + { + qDebug() << mAppName << " AIW-ERROR NULL request"; + return; + } + + // Comment next line if using the operation signature given in the "create" + req->setOperation(QLatin1String("testVariant(QVariant)")); + + connectSignals(req); + + // Set request attributes + req->setEmbedded(embed); + req->setSynchronous(sync); + req->setBackground(background); + + QList args; + + // Just construct dummies + MetaDummy1 dummy1; + MetaDummy2 dummy2; + CntServicesContact cnt1; + cnt1.mDisplayName = "Test1"; + cnt1.mPhoneNumber = "050-1111111"; + cnt1.mEmailAddress = "test1.test@nokia.com"; + + CntServicesContact cnt2; + cnt2.mDisplayName = "Test2"; + cnt2.mPhoneNumber = "050-2222222"; + cnt2.mEmailAddress = "test2.test@nokia.com"; + + CntServicesContactList list; + list.append(cnt1); + list.append(cnt2); + + args.clear(); + args << qVariantFromValue(list); + req->setArguments(args); + + req->send(); + + bool deleteRequest = (mCheckDeleteRequest->checkState() == Qt::Checked); + if (deleteRequest) + { + delete req; + req = 0; + } + + qDebug() << mAppName << " test END"; + + // ---- OLD TESTS ------ + + /* + qDebug() << mAppName << " name" << qApp->applicationName(); + qDebug() << mAppName << " dirpath" << qApp->applicationDirPath(); + qDebug() << mAppName << " filename" << qApp->applicationFilePath(); + qDebug() << mAppName << " pid" << qApp->applicationPid(); + QFileInfo appinfo (qApp->applicationFilePath()); - qDebug() << "AppMgrClient:appinfo.applicationFilePath" << qApp->applicationFilePath(); - qDebug() << "AppMgrClient:appinfo.absolutePath" << appinfo.absolutePath(); - qDebug() << "AppMgrClient:appinfo.baseName" << appinfo.baseName(); - + qDebug() << mAppName << " appinfo.applicationFilePath" << qApp->applicationFilePath(); + qDebug() << mAppName << " appinfo.absolutePath" << appinfo.absolutePath(); + qDebug() << mAppName << " appinfo.baseName" << appinfo.baseName(); + QString lang = QLocale::system().name(); - qDebug() << "AppMgrClient::anyTest:" << lang; + qDebug() << mAppName << " anyTest:" << lang; // QString textFile = "z:/resource/qt/translations/hbserviceprovider"; QString textFile = "hbserviceprovider"; QFileInfo info(textFile); - qDebug() << "AppMgrClient::base" << info.baseName(); - qDebug() << "AppMgrClient::path" << info.filePath(); + qDebug() << mAppName << " base" << info.baseName(); + qDebug() << mAppName << " path" << info.filePath(); if (info.baseName() == info.filePath()) { textFile = qApp->applicationFilePath().left(2) + "/resource/qt/translations/" + textFile; - qDebug() << "AppMgrClient::path added" << textFile; + qDebug() << mAppName << " path added" << textFile; } - + textFile += "_"; textFile += lang; - qDebug() << "AppMgrClient::anyTest:" << textFile; + qDebug() << mAppName << " anyTest:" << textFile; QTranslator translator; bool res = translator.load(textFile); - qDebug() << "AppMgrClient::anyTest:" << res; + qDebug() << mAppName << " anyTest:" << res; if (res) { qApp->installTranslator(&translator); } - + QString textId = TXT_ID; QByteArray ba = textId.toLatin1(); const char *textPtr = ba.data(); - + QString text = qtTrId(textPtr); // translate - qDebug() << "Translated text:" << text; + qDebug() << mAppName << " translated text:" << text; qApp->removeTranslator(&translator); + Q_ASSERT(0==1); + */ + } @@ -711,21 +1014,35 @@ // Aiw request responses void AppMgrClient::handleOk(const QVariant& result) { - XQAiwRequest *r = (XQAiwRequest *)sender(); + XQAiwRequest *r = static_cast(sender()); + int impl=-1; impl = (r->descriptor().property(XQAiwInterfaceDescriptor::ImplementationId)).toInt(); + QString interface = r->descriptor().interfaceName(); + QString service = r->descriptor().serviceName(); - if (result.canConvert()) + if (result.canConvert()) { - qDebug("AppMgrClient::%x:handleOk result=%s,%s", + showRecipients(result); + } + else if (result.canConvert()) + { + qDebug("%s::handleOk from [%s.%s,%x]=(%s,%s)", + qPrintable(mAppName), + qPrintable(service), + qPrintable(interface), impl, result.typeName(), qPrintable(result.value())); mTextRetValue->setText(result.value()); } + else { - qDebug("AppMgrClient::%x:handleOk result=%s", + qDebug("%s::handleOk from [%s.%s,%x]=(%s)", + qPrintable(mAppName), + qPrintable(service), + qPrintable(interface), impl, result.typeName()); mTextRetValue->setText("Not displayable"); @@ -734,14 +1051,25 @@ void AppMgrClient::handleError(int errorCode, const QString& errorMessage) { - XQAiwRequest *r = (XQAiwRequest *)sender(); + XQAiwRequest *r = static_cast(sender()); + QString interface = r->descriptor().interfaceName(); + QString service = r->descriptor().serviceName(); + int impl=-1; impl = (r->descriptor().property(XQAiwInterfaceDescriptor::ImplementationId)).toInt(); - qDebug("AppMgrClient::%x:handleError code=%d, errorMessage:%s", + qDebug("%s::handleError from [%s.%s,%d]=(%d,%s)", + qPrintable(mAppName), + qPrintable(service), + qPrintable(interface), impl, errorCode, qPrintable(errorMessage)); mTextRetValue->setText(errorMessage); } + +Q_IMPLEMENT_USER_METATYPE(MetaDummy1) +Q_IMPLEMENT_USER_METATYPE(MetaDummy2) +Q_IMPLEMENT_USER_METATYPE(CntServicesContact) +Q_IMPLEMENT_USER_METATYPE_NO_OPERATORS(CntServicesContactList) diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/appmgrclient/src/appmgrclient.h --- a/qthighway/examples/appmgrclient/src/appmgrclient.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/examples/appmgrclient/src/appmgrclient.h Mon May 03 13:18:40 2010 +0300 @@ -54,25 +54,30 @@ void test7(); void test8(); void test9(); + void test10(); + void test11(); void anyTest(); // Aiw request responses void handleOk(const QVariant &result); void handleError(int errorCode, const QString& errorMessage); void test4ActionTriggered(); + void showRecipients(const QVariant &value); private: - void test(XQAiwRequest **req,const QString& interface, const QString& operation, bool embedded=true); - void test(XQAiwRequest **req, XQAiwInterfaceDescriptor &impl, const QString& operation, bool embedded=true); + void test(XQAiwRequest **req,const QString& interface, const QString& operation); + void test(XQAiwRequest **req, XQAiwInterfaceDescriptor &impl, const QString& operation); void test(XQAiwRequest **req, const QString &arg); void connectSignals(XQAiwRequest *req); void createTestFile(const QString &dir, const QString &file); + bool testRunning(const QString & service, const QString & interface); private: QCheckBox* mCheckEmbedded; QCheckBox* mCheckDeleteRequest; QCheckBox* mBackground; + QCheckBox* mForeground; QCheckBox* mGenericSend; QCheckBox* mSynchronous; QLineEdit *mReqArg; @@ -92,13 +97,14 @@ XQAiwRequest* req7; XQAiwRequest* req8; XQAiwRequest* req9; + XQAiwRequest* req10; int mImplIndex; RFs fs; + RFile file; - - RFile file; + QString mAppName; }; diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/appmgrclient/src/appmgrservices.h --- a/qthighway/examples/appmgrclient/src/appmgrservices.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/examples/appmgrclient/src/appmgrservices.h Mon May 03 13:18:40 2010 +0300 @@ -38,6 +38,51 @@ #define ERR_OPERATION1 QLatin1String("dial(QString,QString)") -// QtHighway specific: +// Few dummy metatypes +class MetaDummy1 +{ + public: + MetaDummy1() {}; + virtual ~MetaDummy1() {}; + + QString mTest; + template void serialize(Stream &stream) const; + template void deserialize(Stream &stream); +}; + +template inline void MetaDummy1::serialize(Stream &s) const +{ + s << mTest; +} + +template inline void MetaDummy1::deserialize(Stream &s) +{ + s >> mTest; +} + + +class MetaDummy2 +{ + public: + MetaDummy2() {}; + virtual ~MetaDummy2() {}; + + QString mTest; + template void serialize(Stream &stream) const; + template void deserialize(Stream &stream); +}; + +template inline void MetaDummy2::serialize(Stream &s) const +{ + s << mTest; +} + +template inline void MetaDummy2::deserialize(Stream &s) +{ + s >> mTest; +} + +Q_DECLARE_USER_METATYPE(MetaDummy1) +Q_DECLARE_USER_METATYPE(MetaDummy2) #endif diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/appmgrclient2/appmgrclient2.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qthighway/examples/appmgrclient2/appmgrclient2.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,35 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, version 2.1 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, +# see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +# +# Description: +# + +TEMPLATE=app +TARGET=appmgrclient2 + +symbian: TARGET.UID3 = 0xE0022E76 + +XQSERVICE_ROOT=../.. +include(../../xqservicebase.pri) +include(src/appmgrclient2.pri) + +symbian: TARGET.CAPABILITY = CAP_APPLICATION +LIBS+=-lxqservice -lxqserviceutil + +libFiles.sources = xqservice.dll +libFiles.path = "!:\sys\bin" +DEPLOYMENT += libFiles diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/appmgrclient2/src/appmgrclient2.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qthighway/examples/appmgrclient2/src/appmgrclient2.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,27 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, version 2.1 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, +# see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +# +# Description: +# + +SOURCES=\ + ../appmgrclient/src/main.cpp\ + ../appmgrclient/src/appmgrclient.cpp + +HEADERS=\ + ../appmgrclient/src/appmgrclient.h\ + ../appmgrclient/src/appmgrservices.h diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/examples.pro --- a/qthighway/examples/examples.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/examples/examples.pro Mon May 03 13:18:40 2010 +0300 @@ -24,7 +24,8 @@ SUBDIRS= \ serviceapp \ serviceclient \ - appmgrclient + appmgrclient \ + appmgrclient2 # If Orbit configured #include($$[QMAKE_MKSPECS]/features/hb.prf) { diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/hbserviceclient/src/hbserviceclientview.cpp --- a/qthighway/examples/hbserviceclient/src/hbserviceclientview.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/examples/hbserviceclient/src/hbserviceclientview.cpp Mon May 03 13:18:40 2010 +0300 @@ -27,6 +27,9 @@ #include #include //#include +#include +#include + #include #include @@ -37,6 +40,7 @@ #include "../hbserviceprovider/src/hbcontact.h" + HbServiceClientView::HbServiceClientView(QGraphicsItem *parent) : HbView(parent) { @@ -95,8 +99,8 @@ HbAction* callEmbeddedAction = new HbAction("Call Embedded"); connect(callEmbeddedAction, SIGNAL(triggered()), this, SLOT(callContactEmbedded())); - HbAction* showAddressesAction = new HbAction("Show Addresses"); - connect(showAddressesAction, SIGNAL(triggered()), this, SLOT(showAddresses())); + HbAction* showAddressesAction = new HbAction("Select contacts"); + connect(showAddressesAction, SIGNAL(triggered()), this, SLOT(launchContactSelecting())); toolBar->addAction(callAction); toolBar->addAction(callEmbeddedAction); @@ -200,6 +204,58 @@ } } +void HbServiceClientView::launchContactSelecting() +{ + if (sndAsync) + delete sndAsync; + sndAsync = new XQServiceRequest("com.nokia.services.phonebookservices.Fetch", + "fetch(QString,QString,QString)", false); + + connect(sndAsync, SIGNAL(requestCompleted(QVariant)), + this, SLOT(addSelectedRecipients(QVariant))); + *sndAsync << "Select contact"; + *sndAsync << KCntActionAll; + *sndAsync << KCntFilterDisplayAll; + + bool result = sndAsync->send(); + if (!result) { + } + +} + +void HbServiceClientView::addSelectedRecipients(const QVariant &value) +{ + CntServicesContactList list; + if(value.canConvert()) { + list = qVariantValue(value); + } + else { + ; + } + + if (list.count() == 0) { + HbMessageBox note; + note.setTimeout(10000); + // "Nothing returned" will be replaced by a hbTrId when it is ready + note.setText(tr("Nothing returned")); + note.exec(); + } + else { + QString data; + foreach (CntServicesContact cnt, list) + { + QString recipientName = cnt.mDisplayName; + data += recipientName + "\n"; + } + HbMessageBox msgBox; + msgBox.setWindowTitle("Returned value"); + msgBox.setText(data); + msgBox.exec(); + } +} + Q_IMPLEMENT_USER_METATYPE(HbContact) - Q_IMPLEMENT_USER_METATYPE_NO_OPERATORS(HbContactList) + +Q_IMPLEMENT_USER_METATYPE(CntServicesContact) +Q_IMPLEMENT_USER_METATYPE_NO_OPERATORS(CntServicesContactList) diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/hbserviceclient/src/hbserviceclientview.h --- a/qthighway/examples/hbserviceclient/src/hbserviceclientview.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/examples/hbserviceclient/src/hbserviceclientview.h Mon May 03 13:18:40 2010 +0300 @@ -44,6 +44,8 @@ void callContactEmbedded(); void showAddresses(); void requestCompleted(const QVariant& value); + void launchContactSelecting(); + void addSelectedRecipients(const QVariant &value); private: void doCallContact(bool isEmbedded); @@ -57,6 +59,7 @@ HbLineEdit* mServiceMapEdit; HbLineEdit* mRetMapValue; XQServiceRequest* sndAsync; + XQServiceRequest* mSnd; }; #endif // HBSERVICECLIENTVIEW_H diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/rom/xqserviceexamples.iby --- a/qthighway/examples/rom/xqserviceexamples.iby Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/examples/rom/xqserviceexamples.iby Mon May 03 13:18:40 2010 +0300 @@ -38,6 +38,10 @@ S60_APP_RESOURCE(appmgrclient) UPGRADABLE_APP_REG_RSC(appmgrclient) +S60_APP_EXE(appmgrclient2) +S60_APP_RESOURCE(appmgrclient2) +UPGRADABLE_APP_REG_RSC(appmgrclient2) + /* S60_APP_EXE(hbserviceprovider) S60_APP_RESOURCE(hbserviceprovider) diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/serviceapp/service_conf.xml --- a/qthighway/examples/serviceapp/service_conf.xml Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/examples/serviceapp/service_conf.xml Mon May 03 13:18:40 2010 +0300 @@ -1,22 +1,26 @@ - com.nokia.services.serviceapp + serviceapp No path Telephony service Dialer 1.0 Interface which may do something + 0x00000001 + com.nokia.services.serviceapp com.nokia.symbian.IUriView 1.0 Interface for showing URIs testto - + com.nokia.services.serviceapp + com.nokia.symbian.IFileView 1.0 Interface for showing Files + com.nokia.services.serviceapp \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/serviceapp/src/serviceapp.cpp --- a/qthighway/examples/serviceapp/src/serviceapp.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/examples/serviceapp/src/serviceapp.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,16 +40,22 @@ ServiceApp::ServiceApp(QWidget *parent, Qt::WFlags f) : QWidget(parent, f), - mService(NULL), + mDialService(NULL), mUriService(NULL), - mFileService(NULL) + mFileService(NULL), + mNewDialService(NULL), + mNewFileService(NULL), + mNewUriService(NULL) { XQSERVICE_DEBUG_PRINT("ServiceApp::ServiceApp"); if (XQServiceUtil::isService()) { - mService = new DialerService(this); + mDialService = new DialerService(this); mUriService = new UriService(this); mFileService = new FileService(this); + mNewDialService = new NewDialerService(this); + mNewUriService = new NewUriService(this); + mNewFileService = new NewFileService(this); } /* Adjust the palette */ #if defined(Q_WS_S60) @@ -69,9 +75,13 @@ #endif QPushButton *quitButton = new QPushButton(tr("Quit")); - QPushButton *answerButton = new QPushButton(tr("Async Answer")); + QPushButton *answerButtonDial = new QPushButton(tr("Dial answer")); + QPushButton *answerButtonUri = new QPushButton(tr("Uri answer")); + QPushButton *answerButtonFile = new QPushButton(tr("File answer")); connect(quitButton, SIGNAL(clicked()), this, SLOT(quit())); - connect(answerButton, SIGNAL(clicked()), this, SLOT(answer())); + connect(answerButtonDial, SIGNAL(clicked()), this, SLOT(answerDial())); + connect(answerButtonUri, SIGNAL(clicked()), this, SLOT(answerUri())); + connect(answerButtonFile, SIGNAL(clicked()), this, SLOT(answerFile())); /* mEndCallButton = new QPushButton(tr("End Call")); @@ -79,17 +89,15 @@ connect(mEndCallButton, SIGNAL(clicked()), this, SLOT(endCall())); */ bool isService = XQServiceUtil::isService(); + QString interface = XQServiceUtil::interfaceName(); + QString operation = XQServiceUtil::operationName(); QString t = "SERVICEAPP:\n"; - t = t + (isService ? " LAUNCHED AS SERVICE\n" : " LAUNCHED NORMALLY\n"); - t = t + (XQServiceUtil::isEmbedded() ? " EMBEDDED\n" : " NOT EMBEDDED\n"); - - QStringList args = QApplication::arguments(); - foreach (QString arg, args) - { - t += "cmdline arg=" + arg + "\n"; - } - + t = t + (isService ? " Service launch\n" : " Normal launch\n"); + t = t + (XQServiceUtil::isEmbedded() ? " Embedded\n" : " Not embedded\n"); + t = t + (" Interface=" + interface + "\n"); + t = t + (" Operation=" + operation + "\n"); + QLabel *title = new QLabel(t); mLabel = new QLabel(""); @@ -99,8 +107,10 @@ vl->setMargin(0); vl->setSpacing(0); - vl->addWidget(answerButton); vl->addWidget(quitButton); + vl->addWidget(answerButtonDial); + vl->addWidget(answerButtonUri); + vl->addWidget(answerButtonFile); vl->addWidget(title); vl->addWidget(mLabel); vl->addWidget(mNumber); @@ -120,7 +130,7 @@ ServiceApp::~ServiceApp() { XQSERVICE_DEBUG_PRINT("ServiceApp::~ServiceApp"); - delete mService; + delete mDialService; delete mUriService; delete mFileService; } @@ -131,34 +141,36 @@ qApp->quit(); } -void ServiceApp::answer() +void ServiceApp::answerDial() { - XQSERVICE_DEBUG_PRINT("ServiceApp::answer"); - if (mService && mService->asyncAnswer()) + XQSERVICE_DEBUG_PRINT("ServiceApp::answerDial"); + if (mDialService && mDialService->asyncAnswer()) { - // connect(mService, SIGNAL(returnValueDelivered()), this, SLOT(handleAnswerDelivered())); - mService->complete(mNumber->text()); + mDialService->complete(mNumber->text()); } +} + + +void ServiceApp::answerUri() +{ + XQSERVICE_DEBUG_PRINT("ServiceApp::answerUri"); if (mUriService && mUriService->asyncAnswer()) { - connect(mUriService, SIGNAL(returnValueDelivered()), this, SLOT(handleAnswerDelivered())); - mUriService->complete(true); - } - if (mFileService && mFileService->asyncAnswer()) - { - connect(mUriService, SIGNAL(returnValueDelivered()), this, SLOT(handleAnswerDelivered())); mUriService->complete(true); } } -void ServiceApp::handleAnswerDelivered() +void ServiceApp::answerFile() { - XQSERVICE_DEBUG_PRINT("ServiceApp::handleAnswerDelivered"); - quit(); - + XQSERVICE_DEBUG_PRINT("ServiceApp::answerFile"); + if (mFileService && mFileService->asyncAnswer()) + { + mFileService->complete(true); + } } + void ServiceApp::endCall() { XQSERVICE_DEBUG_PRINT("ServiceApp::endCall"); @@ -179,13 +191,10 @@ DialerService::DialerService(ServiceApp* parent) : XQServiceProvider(QLatin1String("com.nokia.services.serviceapp.Dialer"),parent), - mServiceApp(parent), - mAsyncReqId(-1), - mAsyncAnswer(false) + mServiceApp(parent) { XQSERVICE_DEBUG_PRINT("DialerService::DialerService"); publishAll(); - connect(this, SIGNAL(returnValueDelivered()), parent, SLOT(handleAnswerDelivered())); } DialerService::~DialerService() @@ -195,10 +204,14 @@ void DialerService::complete(QString number) { - if (mAsyncReqId == -1) - return; XQSERVICE_DEBUG_PRINT("DialerService::complete"); - completeRequest(mAsyncReqId,number.toInt()); + + // Complete all IDs + foreach (quint32 reqId, mAsyncReqIds) + { + XQSERVICE_DEBUG_PRINT("DialerService::complete %d", reqId); + completeRequest(reqId, number.toInt()); + } } int DialerService::dial(const QString& number, bool asyncAnswer) @@ -206,7 +219,7 @@ XQSERVICE_DEBUG_PRINT("DialerService::dial: %s,%d", qPrintable(number), asyncAnswer); XQRequestInfo info = requestInfo(); - XQSERVICE_DEBUG_PRINT("\tRequest info: sid=%X,vid=%X", info.clientSecureId(), info.clientVendorId()); + XQSERVICE_DEBUG_PRINT("\tRequest info: id=%d,sid=%X,vid=%X", info.id(), info.clientSecureId(), info.clientVendorId()); QSet caps = info.clientCapabilities(); QSetIterator i(caps); while (i.hasNext()) @@ -217,13 +230,14 @@ label += QString("number=%1\n").arg(number); label += QString("asyncAnswer=%1\n").arg(asyncAnswer); - mAsyncAnswer = asyncAnswer; + connect(this, SIGNAL(returnValueDelivered()), this, SLOT(handleAnswerDelivered())); + mNumber = number ; mServiceApp->setLabelNumber(label, number); int ret = 0; - if (mAsyncAnswer) + if (asyncAnswer) { - mAsyncReqId = setCurrentRequestAsync(); + mAsyncReqIds.insert(info.clientSecureId(), setCurrentRequestAsync()); connect(this, SIGNAL(clientDisconnected()), this, SLOT(handleClientDisconnect())); } else @@ -233,22 +247,387 @@ return ret; } +CntServicesContactList DialerService::testContactList(CntServicesContactList list) +{ + XQSERVICE_DEBUG_PRINT("DialerService::testContactList"); + showRecipients(list); + + // Create output + CntServicesContact cnt1; + cnt1.mDisplayName = "Test1-Return"; + cnt1.mPhoneNumber = "060-1111111"; + cnt1.mEmailAddress = "test1.return@nokia.com"; + + CntServicesContact cnt2; + cnt2.mDisplayName = "Test1-Return"; + cnt2.mPhoneNumber = "060-2222222"; + cnt2.mEmailAddress = "test2.return@nokia.com"; + + CntServicesContactList ret; + ret.append(cnt1); + ret.append(cnt2); + + return ret; + +} + +QVariant DialerService::testVariant(QVariant variant) +{ + XQSERVICE_DEBUG_PRINT("DialerService::testVariant::variant(%d,%d,%s)", + variant.type(), variant.userType(), variant.typeName()); + XQSERVICE_DEBUG_PRINT("DialerService::testVariant::variant value=%s", qPrintable(variant.toString())); + + if (variant.typeName() == QLatin1String("QStringList")) + { + QStringList ret = variant.toStringList(); + return qVariantFromValue(ret); + } + else if (variant.typeName() == QLatin1String("XQShabarableFile")) + { + XQSharableFile sf = variant.value(); + + RFile file; + bool ok = sf.getHandle( file ); + if (ok) + { + HBufC8* data = HBufC8::NewL(100); + TPtr8 ptr = data->Des(); + TInt err = file.Read( ptr ); + QString text = QString::fromUtf8((const char *)(data->Ptr()), data->Length()); + XQSERVICE_DEBUG_PRINT("DialerService::testVariant ::file content,%d,%s", err, qPrintable(text)); + sf.close(); + delete data; + } + + return QVariant(ok); + + } + else if (variant.typeName() == QLatin1String("XQRequestInfo")) + { + XQRequestInfo info = variant.value(); + QStringList keys = info.infoKeys(); + foreach (QString key, keys) + { + XQSERVICE_DEBUG_PRINT("DialerService::testVariant: info %s=%s", + qPrintable(key), + qPrintable(info.info(key).toString())); + } + + return qVariantFromValue(info); + + } + else if (variant.typeName() == QLatin1String("CntServicesContactList")) + { + // Show input + showRecipients(variant); + + // Create output + CntServicesContact cnt1; + cnt1.mDisplayName = "Test1-Return"; + cnt1.mPhoneNumber = "060-1111111"; + cnt1.mEmailAddress = "test1.return@nokia.com"; + + CntServicesContact cnt2; + cnt2.mDisplayName = "Test1-Return"; + cnt2.mPhoneNumber = "060-2222222"; + cnt2.mEmailAddress = "test2.return@nokia.com"; + + CntServicesContactList list; + list.append(cnt1); + list.append(cnt2); + + // Return contact list back + return qVariantFromValue(list); + } + else + { + return variant.toString(); + } +} + void DialerService::handleClientDisconnect() { XQSERVICE_DEBUG_PRINT("DialerService::handleClientDisconnect"); + + // Get the info of the cancelled request + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tDisconnected request info: id=%d,sid=%X,vid=%X", info.id(),info.clientSecureId(), info.clientVendorId()); + // Just quit service application if client ends - mAsyncAnswer = false; mServiceApp->quit(); } +void DialerService::handleAnswerDelivered() +{ + XQSERVICE_DEBUG_PRINT("DialerService::handleAnswerDelivered"); + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tRequest info: sid=%X,vid=%X", info.clientSecureId(), info.clientVendorId()); + // Done + mAsyncReqIds.remove(info.clientSecureId()); +} + + + +void DialerService::showRecipients(QVariant &value) +{ + CntServicesContactList list; + if(value.canConvert()) + { + qDebug() << "DialerService::showRecipients: canConvert"; + list = qVariantValue(value); + } + else + { + qDebug() << "DialerService::showRecipients: canConvert NOK"; + return; + } + + showRecipients(list); +} + +void DialerService::showRecipients(CntServicesContactList &list) +{ + if (list.count() == 0) + { + qDebug() << "DialerService::showRecipients(2): Count==0"; + } + else + { + for (int i = 0; i < list.count(); ++i) + { + qDebug() << "DialerService::showRecipients(2)[" << i << "]=" << list[i].mDisplayName; + qDebug() << "DialerService::showRecipients(2)[" << i << "]=" << list[i].mPhoneNumber; + qDebug() << "DialerService::showRecipients(2)[" << i << "]=" << list[i].mEmailAddress; + } + } +} + + +// ----------New dialler service--------------- + +NewDialerService::NewDialerService(ServiceApp* parent) +: XQServiceProvider(QLatin1String("serviceapp.Dialer"),parent), +mServiceApp(parent) +{ + XQSERVICE_DEBUG_PRINT("NewDialerService::NewDialerService"); + publishAll(); +} + +NewDialerService::~NewDialerService() +{ + XQSERVICE_DEBUG_PRINT("NewDialerService::~NewDialerService"); +} + +void NewDialerService::complete(QString number) +{ + XQSERVICE_DEBUG_PRINT("NewDialerService::complete"); + + // Complete all IDs + foreach (quint32 reqId, mAsyncReqIds) + { + XQSERVICE_DEBUG_PRINT("NewDialerService::complete %d", reqId); + completeRequest(reqId, number.toInt()); + } +} + +int NewDialerService::dial(const QString& number, bool asyncAnswer) +{ + XQSERVICE_DEBUG_PRINT("NewDialerService::dial: %s,%d", qPrintable(number), asyncAnswer); + XQRequestInfo info = requestInfo(); + + XQSERVICE_DEBUG_PRINT("\tRequest info: id=%d,sid=%X,vid=%X", info.id(), info.clientSecureId(), info.clientVendorId()); + QSet caps = info.clientCapabilities(); + QSetIterator i(caps); + while (i.hasNext()) + qDebug() << "Has capability " << i.next(); + XQSERVICE_DEBUG_PRINT("\tRequest info: embed=%d,sync=%d", info.isEmbedded(), info.isSynchronous()); + + QString label = "NewDialer::dial:\n"; + label += QString("number=%1\n").arg(number); + label += QString("asyncAnswer=%1\n").arg(asyncAnswer); + + connect(this, SIGNAL(returnValueDelivered()), this, SLOT(handleAnswerDelivered())); + + mNumber = number ; + mServiceApp->setLabelNumber(label, number); + int ret = 0; + if (asyncAnswer) + { + mAsyncReqIds.insert(info.clientSecureId(), setCurrentRequestAsync()); + connect(this, SIGNAL(clientDisconnected()), this, SLOT(handleClientDisconnect())); + } + else + { + ret = number.toInt(); + } + return ret; +} + +CntServicesContactList NewDialerService::testContactList(CntServicesContactList list) +{ + XQSERVICE_DEBUG_PRINT("NewDialerService::testContactList"); + showRecipients(list); + + // Create output + CntServicesContact cnt1; + cnt1.mDisplayName = "Test1-Return"; + cnt1.mPhoneNumber = "060-1111111"; + cnt1.mEmailAddress = "test1.return@nokia.com"; + + CntServicesContact cnt2; + cnt2.mDisplayName = "Test1-Return"; + cnt2.mPhoneNumber = "060-2222222"; + cnt2.mEmailAddress = "test2.return@nokia.com"; + + CntServicesContactList ret; + ret.append(cnt1); + ret.append(cnt2); + + return ret; + +} + +QVariant NewDialerService::testVariant(QVariant variant) +{ + XQSERVICE_DEBUG_PRINT("NewDialerService::testVariant::variant(%d,%d,%s)", + variant.type(), variant.userType(), variant.typeName()); + XQSERVICE_DEBUG_PRINT("NewDialerService::testVariant::variant value=%s", qPrintable(variant.toString())); + + if (variant.typeName() == QLatin1String("QStringList")) + { + QStringList ret = variant.toStringList(); + return qVariantFromValue(ret); + } + else if (variant.typeName() == QLatin1String("XQShabarableFile")) + { + XQSharableFile sf = variant.value(); + + RFile file; + bool ok = sf.getHandle( file ); + if (ok) + { + HBufC8* data = HBufC8::NewL(100); + TPtr8 ptr = data->Des(); + TInt err = file.Read( ptr ); + QString text = QString::fromUtf8((const char *)(data->Ptr()), data->Length()); + XQSERVICE_DEBUG_PRINT("NewDialerService::testVariant ::file content,%d,%s", err, qPrintable(text)); + sf.close(); + delete data; + } + + return QVariant(ok); + + } + else if (variant.typeName() == QLatin1String("XQRequestInfo")) + { + XQRequestInfo info = variant.value(); + QStringList keys = info.infoKeys(); + foreach (QString key, keys) + { + XQSERVICE_DEBUG_PRINT("NewDialerService::testVariant: info %s=%s", + qPrintable(key), + qPrintable(info.info(key).toString())); + } + + return qVariantFromValue(info); + + } + else if (variant.typeName() == QLatin1String("CntServicesContactList")) + { + // Show input + showRecipients(variant); + + // Create output + CntServicesContact cnt1; + cnt1.mDisplayName = "Test1-Return"; + cnt1.mPhoneNumber = "060-1111111"; + cnt1.mEmailAddress = "test1.return@nokia.com"; + + CntServicesContact cnt2; + cnt2.mDisplayName = "Test1-Return"; + cnt2.mPhoneNumber = "060-2222222"; + cnt2.mEmailAddress = "test2.return@nokia.com"; + + CntServicesContactList list; + list.append(cnt1); + list.append(cnt2); + + // Return contact list back + return qVariantFromValue(list); + } + else + { + return variant.toString(); + } +} + +void NewDialerService::handleClientDisconnect() +{ + XQSERVICE_DEBUG_PRINT("NewDialerService::handleClientDisconnect"); + + // Get the info of the cancelled request + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tDisconnected request info: id=%d,sid=%X,vid=%X", info.id(),info.clientSecureId(), info.clientVendorId()); + + // Just quit service application if client ends + mServiceApp->quit(); +} + +void NewDialerService::handleAnswerDelivered() +{ + XQSERVICE_DEBUG_PRINT("NewDialerService::handleAnswerDelivered"); + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tRequest info: sid=%X,vid=%X", info.clientSecureId(), info.clientVendorId()); + // Done + mAsyncReqIds.remove(info.clientSecureId()); +} + + + +void NewDialerService::showRecipients(QVariant &value) +{ + CntServicesContactList list; + if(value.canConvert()) + { + qDebug() << "NewDialerService::showRecipients: canConvert"; + list = qVariantValue(value); + } + else + { + qDebug() << "NewDialerService::showRecipients: canConvert NOK"; + return; + } + + showRecipients(list); +} + +void NewDialerService::showRecipients(CntServicesContactList &list) +{ + if (list.count() == 0) + { + qDebug() << "NewDialerService::showRecipients(2): Count==0"; + } + else + { + for (int i = 0; i < list.count(); ++i) + { + qDebug() << "NewDialerService::showRecipients(2)[" << i << "]=" << list[i].mDisplayName; + qDebug() << "NewDialerService::showRecipients(2)[" << i << "]=" << list[i].mPhoneNumber; + qDebug() << "NewDialerService::showRecipients(2)[" << i << "]=" << list[i].mEmailAddress; + } + } +} + + + +Q_IMPLEMENT_USER_METATYPE(CntServicesContact) +Q_IMPLEMENT_USER_METATYPE_NO_OPERATORS(CntServicesContactList) // ----------UriService--------------- UriService::UriService(ServiceApp* parent) : XQServiceProvider(QLatin1String("com.nokia.services.serviceapp.com.nokia.symbian.IUriView"),parent), - mServiceApp(parent), - mAsyncReqId(-1), - mAsyncAnswer(false) + mServiceApp(parent) { XQSERVICE_DEBUG_PRINT("UriService::UriService"); @@ -262,10 +641,13 @@ void UriService::complete(bool ok) { - if (mAsyncReqId == -1) - return; XQSERVICE_DEBUG_PRINT("UriService::complete"); - completeRequest(mAsyncReqId, QVariant(mRetValue)); + // Complete all IDs + foreach (quint32 reqId, mAsyncReqIds) + { + XQSERVICE_DEBUG_PRINT("UriService::complete %d", reqId); + completeRequest(reqId, QVariant(mRetValue)); + } } bool UriService::view(const QString& uri) @@ -282,12 +664,15 @@ label += QString ("retValue=%1\n").arg(retValue); QString param = QString ("retValue=%1\n").arg(retValue); - mAsyncAnswer = !XQServiceUtil::isEmbedded();; + XQRequestInfo info = requestInfo(); + bool asyncAnswer = !info.isSynchronous();; + connect(this, SIGNAL(returnValueDelivered()), this, SLOT(handleAnswerDelivered())); + mRetValue = retValue; mServiceApp->setLabelNumber(label,param); - if (mAsyncAnswer) + if (asyncAnswer) { - mAsyncReqId = setCurrentRequestAsync(); + mAsyncReqIds.insert(info.clientSecureId(), setCurrentRequestAsync()); connect(this, SIGNAL(clientDisconnected()), this, SLOT(handleClientDisconnect())); } @@ -297,20 +682,105 @@ void UriService::handleClientDisconnect() { XQSERVICE_DEBUG_PRINT("UriService::handleClientDisconnect"); + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tRequest info: id=%d,sid=%X,vid=%X", info.id(),info.clientSecureId(), info.clientVendorId()); - // Just quit application - mAsyncAnswer = false; + mAsyncReqIds.remove(info.clientSecureId()); mServiceApp->quit(); } +void UriService::handleAnswerDelivered() +{ + XQSERVICE_DEBUG_PRINT("UriService::handleAnswerDelivered"); + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tRequest info: sid=%X,vid=%X", info.clientSecureId(), info.clientVendorId()); + // Done + mAsyncReqIds.remove(info.clientSecureId()); + +} + +// ----------NewUriService--------------- + +NewUriService::NewUriService(ServiceApp* parent) +: XQServiceProvider(QLatin1String("serviceapp.com.nokia.symbian.IUriView"),parent), +mServiceApp(parent) + +{ + XQSERVICE_DEBUG_PRINT("NewUriService::NewUriService"); + publishAll(); +} + +NewUriService::~NewUriService() +{ + XQSERVICE_DEBUG_PRINT("NewUriService::~NewUriService"); +} + +void NewUriService::complete(bool ok) +{ + XQSERVICE_DEBUG_PRINT("NewUriService::complete"); + // Complete all IDs + foreach (quint32 reqId, mAsyncReqIds) + { + XQSERVICE_DEBUG_PRINT("NewUriService::complete %d", reqId); + completeRequest(reqId, QVariant(mRetValue)); + } +} + +bool NewUriService::view(const QString& uri) +{ + XQSERVICE_DEBUG_PRINT("NewUriService::view(1)"); + return view(uri, true); +} + +bool NewUriService::view(const QString& uri, bool retValue) +{ + XQSERVICE_DEBUG_PRINT("NewUriService::view(2)"); + QString label = "New IUri::view\n:"; + label += QString ("Uri=%1\n").arg(uri); + label += QString ("retValue=%1\n").arg(retValue); + QString param = QString ("retValue=%1\n").arg(retValue); + + XQRequestInfo info = requestInfo(); + bool asyncAnswer = !info.isSynchronous();; + connect(this, SIGNAL(returnValueDelivered()), this, SLOT(handleAnswerDelivered())); + + mRetValue = retValue; + mServiceApp->setLabelNumber(label,param); + if (asyncAnswer) + { + mAsyncReqIds.insert(info.clientSecureId(), setCurrentRequestAsync()); + connect(this, SIGNAL(clientDisconnected()), this, SLOT(handleClientDisconnect())); + } + + return retValue; +} + +void NewUriService::handleClientDisconnect() +{ + XQSERVICE_DEBUG_PRINT("NewUriService::handleClientDisconnect"); + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tRequest info: id=%d,sid=%X,vid=%X", info.id(),info.clientSecureId(), info.clientVendorId()); + + mAsyncReqIds.remove(info.clientSecureId()); + mServiceApp->quit(); +} + +void NewUriService::handleAnswerDelivered() +{ + XQSERVICE_DEBUG_PRINT("NewUriService::handleAnswerDelivered"); + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tRequest info: sid=%X,vid=%X", info.clientSecureId(), info.clientVendorId()); + // Done + mAsyncReqIds.remove(info.clientSecureId()); + +} + // ----------FileService--------------- FileService::FileService(ServiceApp* parent) : XQServiceProvider(QLatin1String("com.nokia.services.serviceapp.com.nokia.symbian.IFileView"),parent), - mServiceApp(parent), - mAsyncReqId(-1), - mAsyncAnswer(false) + mServiceApp(parent) { XQSERVICE_DEBUG_PRINT("FileService::FileService"); @@ -324,10 +794,13 @@ void FileService::complete(bool ok) { - if (mAsyncReqId == -1) - return; XQSERVICE_DEBUG_PRINT("FileService::complete"); - completeRequest(mAsyncReqId, QVariant(ok)); + // Complete all + foreach (quint32 reqId, mAsyncReqIds) + { + XQSERVICE_DEBUG_PRINT("FileService::complete %d", reqId); + completeRequest(reqId, QVariant(ok)); + } } bool FileService::view(QString file) @@ -336,11 +809,14 @@ QString label = "IFile::view\n:"; QString param = QString ("File=%1\n").arg(file); - mAsyncAnswer = !XQServiceUtil::isEmbedded();; + XQRequestInfo info = requestInfo(); + bool asyncAnswer = !info.isSynchronous();; + connect(this, SIGNAL(returnValueDelivered()), this, SLOT(handleAnswerDelivered())); + mServiceApp->setLabelNumber(label,param); - if (mAsyncAnswer) + if (asyncAnswer) { - mAsyncReqId = setCurrentRequestAsync(); + mAsyncReqIds.insert(info.clientSecureId(), setCurrentRequestAsync()); connect(this, SIGNAL(clientDisconnected()), this, SLOT(handleClientDisconnect())); } @@ -367,11 +843,13 @@ delete data; } - mAsyncAnswer = !XQServiceUtil::isEmbedded();; + XQRequestInfo info = requestInfo(); + bool asyncAnswer = !info.isSynchronous();; + mServiceApp->setLabelNumber(label,param); - if (mAsyncAnswer) + if (asyncAnswer) { - mAsyncReqId = setCurrentRequestAsync(); + mAsyncReqIds.insert(info.clientSecureId(), setCurrentRequestAsync()); connect(this, SIGNAL(clientDisconnected()), this, SLOT(handleClientDisconnect())); } return true; @@ -381,9 +859,123 @@ void FileService::handleClientDisconnect() { XQSERVICE_DEBUG_PRINT("FileService::handleClientDisconnect"); + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tRequest info: id=%d,sid=%X,vid=%X", info.id(),info.clientSecureId(), info.clientVendorId()); - // Just quit application - mAsyncAnswer = false; + mAsyncReqIds.remove(info.clientSecureId()); mServiceApp->quit(); } + +void FileService::handleAnswerDelivered() +{ + XQSERVICE_DEBUG_PRINT("FileService::handleAnswerDelivered"); + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tRequest info: sid=%X,vid=%X", info.clientSecureId(), info.clientVendorId()); + // Done + mAsyncReqIds.remove(info.clientSecureId()); + +} + + +// ----------NewFileService--------------- + +NewFileService::NewFileService(ServiceApp* parent) +: XQServiceProvider(QLatin1String("serviceapp.com.nokia.symbian.IFileView"),parent), +mServiceApp(parent) + +{ + XQSERVICE_DEBUG_PRINT("NewFileService::NewFileService"); + publishAll(); +} + +NewFileService::~NewFileService() +{ + XQSERVICE_DEBUG_PRINT("NewFileService::~NewFileService"); +} + +void NewFileService::complete(bool ok) +{ + XQSERVICE_DEBUG_PRINT("NewFileService::complete"); + // Complete all + foreach (quint32 reqId, mAsyncReqIds) + { + XQSERVICE_DEBUG_PRINT("NewFileService::complete %d", reqId); + completeRequest(reqId, QVariant(ok)); + } +} + +bool NewFileService::view(QString file) +{ + XQSERVICE_DEBUG_PRINT("NewFileService::view(QString)"); + QString label = "New IFile::view\n:"; + QString param = QString ("File=%1\n").arg(file); + + XQRequestInfo info = requestInfo(); + bool asyncAnswer = !info.isSynchronous();; + connect(this, SIGNAL(returnValueDelivered()), this, SLOT(handleAnswerDelivered())); + + mServiceApp->setLabelNumber(label,param); + if (asyncAnswer) + { + mAsyncReqIds.insert(info.clientSecureId(), setCurrentRequestAsync()); + connect(this, SIGNAL(clientDisconnected()), this, SLOT(handleClientDisconnect())); + } + + return true; +} + + +bool NewFileService::view(XQSharableFile sf) +{ + XQSERVICE_DEBUG_PRINT("NewFileService::view(XQSharebleFile)"); + QString label = "IFile::view\n:"; + QString param = QString ("File=%1\n").arg(sf.fileName()); + + RFile file; + bool ok = sf.getHandle( file ); + if (ok) + { + HBufC8* data = HBufC8::NewL(100); + TPtr8 ptr = data->Des(); + TInt err = file.Read( ptr ); + QString text = QString::fromUtf8((const char *)(data->Ptr()), data->Length()); + XQSERVICE_DEBUG_PRINT("NewFileService::file read,%d,%s", err, qPrintable(text)); + sf.close(); + delete data; + } + + XQRequestInfo info = requestInfo(); + bool asyncAnswer = !info.isSynchronous();; + + mServiceApp->setLabelNumber(label,param); + if (asyncAnswer) + { + mAsyncReqIds.insert(info.clientSecureId(), setCurrentRequestAsync()); + connect(this, SIGNAL(clientDisconnected()), this, SLOT(handleClientDisconnect())); + } + return true; +} + + +void NewFileService::handleClientDisconnect() +{ + XQSERVICE_DEBUG_PRINT("NewFileService::handleClientDisconnect"); + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tRequest info: id=%d,sid=%X,vid=%X", info.id(),info.clientSecureId(), info.clientVendorId()); + + mAsyncReqIds.remove(info.clientSecureId()); + mServiceApp->quit(); +} + + +void NewFileService::handleAnswerDelivered() +{ + XQSERVICE_DEBUG_PRINT("NewFileService::handleAnswerDelivered"); + XQRequestInfo info = requestInfo(); + XQSERVICE_DEBUG_PRINT("\tRequest info: sid=%X,vid=%X", info.clientSecureId(), info.clientVendorId()); + // Done + mAsyncReqIds.remove(info.clientSecureId()); + +} + diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/examples/serviceapp/src/serviceapp.h --- a/qthighway/examples/serviceapp/src/serviceapp.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/examples/serviceapp/src/serviceapp.h Mon May 03 13:18:40 2010 +0300 @@ -28,6 +28,7 @@ #include #include #include +#include class QLineEdit; class QPushButton; @@ -36,6 +37,9 @@ class QLabel; class FileService; class XQSharableFile; +class NewDialerService; +class NewUriService; +class NewFileService; class ServiceApp : public QWidget { @@ -51,16 +55,20 @@ public slots: void quit(); - void answer(); - void handleAnswerDelivered(); + void answerDial(); + void answerUri(); + void answerFile(); private: QLabel *mLabel; QLineEdit *mNumber; //QPushButton *mEndCallButton; - DialerService* mService; + DialerService* mDialService; UriService* mUriService; FileService* mFileService; + NewDialerService* mNewDialService; + NewUriService* mNewUriService; + NewFileService* mNewFileService; }; class DialerService : public XQServiceProvider @@ -71,27 +79,66 @@ ~DialerService(); void complete(QString number); - bool asyncAnswer() {return mAsyncAnswer;} + bool asyncAnswer() {return mAsyncReqIds.count() > 0;} + public slots: int dial(const QString& number, bool asyncAnswer); + QVariant testVariant(QVariant variant); + CntServicesContactList testContactList(CntServicesContactList list); -private slots: +protected slots: void handleClientDisconnect(); + void handleAnswerDelivered(); -private: +protected: + void showRecipients(QVariant &value); + void showRecipients(CntServicesContactList &value); + +protected: ServiceApp* mServiceApp; QString mNumber; - bool mAsyncAnswer; - int mAsyncReqId; + QMap mAsyncReqIds; }; + +class NewDialerService : public XQServiceProvider +{ + Q_OBJECT + public: + NewDialerService( ServiceApp *parent = 0 ); + ~NewDialerService(); + + void complete(QString number); + bool asyncAnswer() {return mAsyncReqIds.count() > 0;} + + public slots: + int dial(const QString& number, bool asyncAnswer); + QVariant testVariant(QVariant variant); + CntServicesContactList testContactList(CntServicesContactList list); + + protected slots: + void handleClientDisconnect(); + void handleAnswerDelivered(); + + protected: + void showRecipients(QVariant &value); + void showRecipients(CntServicesContactList &value); + + protected: + ServiceApp* mServiceApp; + QString mNumber; + QMap mAsyncReqIds; +}; + + + class UriService : public XQServiceProvider { Q_OBJECT public: UriService( ServiceApp *parent = 0 ); ~UriService(); - bool asyncAnswer() {return mAsyncAnswer;} + bool asyncAnswer() {return mAsyncReqIds.count() > 0;} void complete(bool ok); public slots: @@ -100,21 +147,70 @@ private slots: void handleClientDisconnect(); + void handleAnswerDelivered(); private: ServiceApp* mServiceApp; - bool mAsyncAnswer; - int mAsyncReqId; + QMap mAsyncReqIds; bool mRetValue; }; + +class NewUriService : public XQServiceProvider +{ + Q_OBJECT + public: + NewUriService( ServiceApp *parent = 0 ); + ~NewUriService(); + bool asyncAnswer() {return mAsyncReqIds.count() > 0;} + void complete(bool ok); + + public slots: + bool view(const QString& uri); + bool view(const QString& uri, bool returnValue); + + private slots: + void handleClientDisconnect(); + void handleAnswerDelivered(); + + private: + ServiceApp* mServiceApp; + QMap mAsyncReqIds; + bool mRetValue; +}; + + class FileService : public XQServiceProvider { Q_OBJECT public: FileService( ServiceApp *parent = 0 ); ~FileService(); - bool asyncAnswer() {return mAsyncAnswer;} + bool asyncAnswer() {return mAsyncReqIds.count() > 0;} + void complete(bool ok); + + public slots: + bool view(QString file); + bool view(XQSharableFile file); + + private slots: + void handleClientDisconnect(); + void handleAnswerDelivered(); + + private: + ServiceApp* mServiceApp; + QMap mAsyncReqIds; + bool mRetValue; +}; + + +class NewFileService : public XQServiceProvider +{ + Q_OBJECT + public: + NewFileService( ServiceApp *parent = 0 ); + ~NewFileService(); + bool asyncAnswer() {return mAsyncReqIds.count() > 0;} void complete(bool ok); public slots: @@ -123,13 +219,15 @@ private slots: void handleClientDisconnect(); + void handleAnswerDelivered(); private: ServiceApp* mServiceApp; - bool mAsyncAnswer; - int mAsyncReqId; + QMap mAsyncReqIds; bool mRetValue; }; + + #endif diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/inc/xqrequestutil.h --- a/qthighway/inc/xqrequestutil.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/inc/xqrequestutil.h Mon May 03 13:18:40 2010 +0300 @@ -32,21 +32,27 @@ // -// XQRequestUtil is internal helper class for QtHighway request handling +// XQRequestUtil is internal helper class for starting QtHigway service app +// and for request handling // // Option key names for XQRequestInfo + namespace XQServiceUtils { - static const char * OptEmbedded= "XQEmb"; // Option Embedded / Non-Embedded call - static const char * OptBackground= "XQBg"; // Option Service to Background / Foreground + static const char * OptEmbedded= "XQEmb"; // Option Embedded (off=Non-Embedded) + static const char * OptBackground= "XQBg"; // Option Service to Background (missing=no changes in Z-order) + static const char * OptForeground= "XQFg"; // Set service app to foreground (missing=no changes in Z-order) static const char * OptSynchronous= "XQSync"; // Option Syncronous / Asynchronous call static const char * InfoSID= "XQSid"; // Client secure ID static const char * InfoVID= "XQVid"; // Client vendor ID static const char * InfoCap= "XQCap"; //Client cap + static const char * InfoId= "XQId"; // Request ID // Startup arguments static const char * StartupArgEmbedded = "embedded=yes"; static const char * StartupArgService = "service=yes"; + static const char * StartupArgInterfaceName = "intf="; + static const char * StartupArgOperationName = "oper="; } @@ -63,9 +69,10 @@ static int mapError(int error); public: - XQAiwInterfaceDescriptor mDescriptor; + XQAiwInterfaceDescriptor mDescriptor; // Contains e.g. service and interface name XQRequestInfo mInfo; QList mSharableFileArgs; // Use list even though one file possible to transfer + QString mOperation; // Operation (message) wanted }; #endif diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/api_headers.pri --- a/qthighway/xqservice/src/api_headers.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/api_headers.pri Mon May 03 13:18:40 2010 +0300 @@ -29,7 +29,8 @@ src/xqaiwglobal.h \ src/xqaiwrequest.h \ src/xqappmgr.h \ - src/xqaiwdecl.h + src/xqaiwdecl.h \ + src/xqapplicationmanager.h \ XQSERVICE_API_HEADERS_INTERNAL = diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqaiwdecl.h --- a/qthighway/xqservice/src/xqaiwdecl.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqaiwdecl.h Mon May 03 13:18:40 2010 +0300 @@ -45,6 +45,42 @@ #define XQI_URI_VIEW QLatin1String("com.nokia.symbian.IUriView") #define XQOP_URI_VIEW QLatin1String("view(QString)") +/*! + Image fetching interface and related operations +*/ +#define XQI_IMAGE_FETCH QLatin1String("com.nokia.symbian.IImageFetch") +#define XQOP_IMAGE_FETCH QLatin1String("fetch(void)") + +/*! + Music fetching interface and related operations +*/ +#define XQI_MUSIC_FETCH QLatin1String("com.nokia.symbian.IMusicFetch") +#define XQOP_MUSIC_FETCH QLatin1String("fetch(void)") + +/*! + Video fetching interface and related operations +*/ +#define XQI_VIDEO_FETCH QLatin1String("com.nokia.symbian.IVideoFetch") +#define XQOP_VIDEO_FETCH QLatin1String("fetch(void)") + +/*! + Camera capture interface and related operations + Operation: capture(int mode, const QVariantMap ¶meters) + mode: image = 0, video = 1 + parameters: + CameraIndex: int: primary = 0, secondary = 1 + Quality: int: 0 = default, 1 = lowest, 2 = highest + AllowModeSwitch: bool + AllowCamera_switch: bool + allow_quality_change: bool +*/ +#define XQI_CAMERA_CAPTURE QLatin1String("com.nokia.symbian.ICameraCapture") +#define XQOP_CAMERA_CAPTURE QLatin1String("capture(int, const QVariantMap &)") +#define XQCAMERA_INDEX QLatin1String("CameraIndex") +#define XQCAMERA_QUALITY QLatin1String("Quality") +#define XQCAMERA_MODE_SWITCH QLatin1String("AllowModeSwitch") +#define XQCAMERA_INDEX_SWITCH QLatin1String("AllowCameraSwitch") +#define XQCAMERA_QUALITY_CHANGE QLatin1String("AllowQualityChange") // Public URI related constants /*! @@ -89,4 +125,11 @@ */ #define XQCUSTOM_PROP_SCHEMES QLatin1String("schemes") +/*! + Service XML custom property, which contains the name of text key that + contains the service status + \see XQApplicationMgr::isEnabled() +*/ +#define XQCUSTOM_PROP_AIW_SERVICE_STATUS QLatin1String("aiw_status") + #endif diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqaiwdeclplat.h --- a/qthighway/xqservice/src/xqaiwdeclplat.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqaiwdeclplat.h Mon May 03 13:18:40 2010 +0300 @@ -29,6 +29,21 @@ // All declations shall have XQ prefix // +/*! + FM Radio controlling interface and related operations + Operation: command( int commandId ) + commandId: defined in radioserviceconst.h + +*/ +#define XQI_RADIO_CONTROL QLatin1String("com.nokia.symbian.IRadioControl") +#define XQOP_RADIO_CONTROL QLatin1String("command(int)") + +/*! + FM Radio monitoring interface and related operations +*/ +#define XQI_RADIO_MONITOR QLatin1String("com.nokia.symbian.IRadioMonitor") +#define XQOP_RADIO_MONITOR QLatin1String("requestNotifications(void)") + // Platform service related constants #endif diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqaiwservicedriver.cpp --- a/qthighway/xqservice/src/xqaiwservicedriver.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqaiwservicedriver.cpp Mon May 03 13:18:40 2010 +0300 @@ -125,10 +125,20 @@ { XQSERVICE_DEBUG_PRINT("XQAiwServiceDriver::send>>>"); - // Update info (the ones given by explicit method calls count) + // Update info (these ones can be given via XQAiwRequest function count) XQRequestInfo opt = info(); - opt.setEmbedded(mEmbedded); - opt.setBackground(mBackground); + QVariant emb = opt.info(XQServiceUtils::OptEmbedded); + QVariant bg = opt.info(XQServiceUtils::OptBackground); + if (!emb.isValid()) + { + // Not set via setInfo + opt.setEmbedded(mEmbedded); + } + if (!bg.isValid()) + { + // Not set via setInfo + opt.setBackground(mBackground); + } currentRequest->setInfo(opt); QStringList list; diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqaiwutils.cpp --- a/qthighway/xqservice/src/xqaiwutils.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqaiwutils.cpp Mon May 03 13:18:40 2010 +0300 @@ -26,11 +26,13 @@ #include #include #include +#include #include "xqaiwdecl.h" #include "xqservicelog.h" #include // Error codes #include +#include #include "xqaiwutils.h" @@ -42,10 +44,11 @@ virtual ~XQAiwUtilsPrivate(); void launchApplicationL(int applicationId, const QString &cmdArguments); - int findApplicationFromApa(const QFile &file, int &applicationId); - int findApplicationFromApa(const XQSharableFile &file, int &applicationId); + int findApplicationFromApa(const QString &file, int &applicationId, QString &mimeType); + int findApplicationFromApa(const XQSharableFile &file, int &applicationId, QString &mimeType); bool applicationExists(int applicationId); int toIntFromHex(const QString &str, bool *ok); + void GetDrmAttributesL(ContentAccess::CContent *c, const QList & attributes, QVariantList &result); public: RApaLsSession apaSession; @@ -129,7 +132,8 @@ XQSERVICE_DEBUG_PRINT("XQAiwUtils::findApplication %s", qPrintable(file.fileName())); TInt error = KErrNone; int appId = 0; - error = d->findApplicationFromApa(file, appId); + QString mimeType; + error = d->findApplicationFromApa(file.fileName(), appId, mimeType); if (!error) { applicationId = appId; @@ -143,7 +147,8 @@ XQSERVICE_DEBUG_PRINT("XQAiwUtils::findApplication (handle)"); TInt error = KErrNone; int appId = 0; - error = d->findApplicationFromApa(file, appId); + QString mimeType; + error = d->findApplicationFromApa(file, appId, mimeType); if (!error) { applicationId = appId; @@ -172,7 +177,8 @@ } else if (uri.scheme() == XQURI_SCHEME_FILE) // file:// { - TInt err = d->findApplicationFromApa(uri.toLocalFile(), appId); + QString mimeType; + TInt err = d->findApplicationFromApa(uri.toLocalFile(), appId, mimeType); idOk = (err == KErrNone); } @@ -267,6 +273,80 @@ return ret; } +bool XQAiwUtils::getDrmAttributes(const QString &file, const QList & attributes, QVariantList &result) +{ + + QString fileName = file; + fileName.replace("/", "\\"); // Normalize + + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::getDrmAttributes %s", qPrintable(fileName)); + + TPtrC fileNameSymbian( reinterpret_cast(fileName.utf16())); + + TInt err=KErrNone; + ContentAccess::CContent* c = 0; + + TRAP(err,c = ContentAccess::CContent::NewL(fileNameSymbian)); + if (err != KErrNone) + { + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::getDrmAttributes leave %d", err); + return false; + } + CleanupStack::PushL(c); + + d->GetDrmAttributesL(c, attributes, result); + + CleanupStack::PopAndDestroy(); // c + + return true; +} + + +bool XQAiwUtils::getDrmAttributes(const XQSharableFile &file, const QList & attributes, QVariantList &result) +{ + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::getDrmAttributes (handle) %s", qPrintable(file.fileName())); + + RFile fileHandle; + if (!file.getHandle(fileHandle)) + { + XQSERVICE_DEBUG_PRINT("\tInvalid handle"); + return false; + } + TInt err=KErrNone; + ContentAccess::CContent* c = 0; + TRAP(err,c = ContentAccess::CContent::NewL(fileHandle)); + if (err != KErrNone) + { + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::getDrmAttributes leave %d", err); + return false; + } + CleanupStack::PushL(c); + + d->GetDrmAttributesL(c, attributes, result); + + CleanupStack::PopAndDestroy(); // c + + return true; +} + +int XQAiwUtils::toIntFromHex(const QString &str, bool *ok) +{ + return d->toIntFromHex(str,ok); + +} + + +// --- XQAiwUtilsPrivate-- + +XQAiwUtilsPrivate::XQAiwUtilsPrivate() +{ + apaSession.Connect(); +} + +XQAiwUtilsPrivate::~XQAiwUtilsPrivate() +{ + apaSession.Close(); +} void XQAiwUtilsPrivate::launchApplicationL(int applicationId, const QString &cmdArguments) { @@ -311,23 +391,14 @@ } -// ----- XQAiwUtilsPrivate --- -XQAiwUtilsPrivate::XQAiwUtilsPrivate() -{ - apaSession.Connect(); -} - -XQAiwUtilsPrivate::~XQAiwUtilsPrivate() +int XQAiwUtilsPrivate::findApplicationFromApa(const QString &file, int &applicationId, QString &mimeType) { - apaSession.Close(); -} - + QString fileName = file; + + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::::findApplicationFromApa file=%s", qPrintable(fileName)); -int XQAiwUtilsPrivate::findApplicationFromApa(const QFile &file, int &applicationId) -{ - QString fileName = file.fileName(); - XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::::findApplicationFromApa %s", qPrintable(fileName)); + fileName.replace("/", "\\"); // Normalize TPtrC name( reinterpret_cast(fileName.utf16()) ); @@ -344,15 +415,18 @@ } applicationId = uid.iUid; // return value - - XQSERVICE_DEBUG_PRINT("\tapplicationId=%x", applicationId); + QString mime = QString::fromUtf16(dataType.Des().Ptr(), dataType.Des().Length()); + mimeType = mime; + + XQSERVICE_DEBUG_PRINT("\tapplicationId=%x,mime-type=%s", applicationId, qPrintable(mime)); + return KErrNone; } -int XQAiwUtilsPrivate::findApplicationFromApa(const XQSharableFile &file, int &applicationId) +int XQAiwUtilsPrivate::findApplicationFromApa(const XQSharableFile &file, int &applicationId, QString &mimeType) { - XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::findApplicationFromApa (handle)"); + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::findApplicationFromApa by handle, file=%s", qPrintable(file.fileName())); RFile fileHandle; if (!file.getHandle(fileHandle)) { @@ -373,8 +447,10 @@ } applicationId = uid.iUid; // return value - - XQSERVICE_DEBUG_PRINT("\tapplicationId=%x", applicationId); + QString mime = QString::fromUtf16(dataType.Des().Ptr(), dataType.Des().Length()); + mimeType = mime; + + XQSERVICE_DEBUG_PRINT("\tapplicationId=%x,mime-type=%s", applicationId, qPrintable(mime)); return KErrNone; } @@ -400,6 +476,10 @@ int power = 0; int base=16; QString s = str.toUpper(); + s.replace("0X", ""); // Remove possible 0x + + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::toIntFromHex=%s", qPrintable(s)); + for (int i=s.length()-1; i >= 0; i--) { int val = (int)s[i].toLatin1(); @@ -427,3 +507,62 @@ return result; } + + +void XQAiwUtilsPrivate::GetDrmAttributesL(ContentAccess::CContent *c, const QList & attributes, QVariantList &result) +{ + + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::GetDrmAttributesL"); + + HBufC* buffer = 0; + + foreach (int attrName, attributes) + { + QVariant v; // By default invalid + bool isStringAttribute = attrName >= XQApplicationManager::DrmStringAttributeBase; + if (isStringAttribute && !buffer) + { + // Assume 512 characters is enough + buffer = HBufC::NewLC(512); + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::buffer allocated"); + } + + if (!isStringAttribute) + { + TInt value = 0; + TInt err = c->GetAttribute(attrName, value); + if(err == KErrNone) + { + // Ok, set the value + v.setValue(value); + } + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::GetDrmAttributesL (int):%d,%d=%d", err, attrName, value); + } + else + { + // String attribute + attrName -= XQApplicationManager::DrmStringAttributeBase; // CAF uses same values for int and string attributes + TPtr value( buffer->Des() ); + value.Zero(); + TInt err = c->GetStringAttribute(attrName, value); + QString strValue; + if(err == KErrNone) + { + // Ok, set the value + strValue = QString::fromUtf16(value.Ptr(), value.Length()); + v.setValue(strValue); + } + XQSERVICE_DEBUG_PRINT("XQAiwUtilsPrivate::GetDrmAttributesL (string):%d,%d=%s", err, attrName, qPrintable(strValue)); + + } + // On error value remains invalid and client can check that + // v.isValid() + result.append(v); + } + + if (buffer) + { + CleanupStack::PopAndDestroy(); // buffer + } + +} diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqaiwutils.h --- a/qthighway/xqservice/src/xqaiwutils.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqaiwutils.h Mon May 03 13:18:40 2010 +0300 @@ -28,6 +28,8 @@ #include #include #include +#include +#include #include #include @@ -45,7 +47,11 @@ int findApplication(const QUrl &uri, int &applicationId); QString createCmdlineArgs(const QList &args); static QString createErrorMessage(int errorCode, const QString context, const QString detail = ""); - + + bool getDrmAttributes(const QString &file, const QList &attributes, QVariantList & result); + bool getDrmAttributes(const XQSharableFile &file, const QList & attributes, QVariantList & result); + int toIntFromHex(const QString &str, bool *ok); + private: private: diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqapplicationmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qthighway/xqservice/src/xqapplicationmanager.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,23 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ + +// Include the header with shortened name +#include "xqappmgr.h" diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqappmgr.cpp --- a/qthighway/xqservice/src/xqappmgr.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqappmgr.cpp Mon May 03 13:18:40 2010 +0300 @@ -311,3 +311,31 @@ XQSERVICE_DEBUG_PRINT("XQApplicationManager::lastError"); return d->lastError(); } + + +bool XQApplicationManager::isRunning(const XQAiwInterfaceDescriptor& implementation) const +{ + XQSERVICE_DEBUG_PRINT("XQApplicationManager::isRunning"); + return d->isRunning(implementation); +} + + +bool XQApplicationManager::getDrmAttributes(const QFile &file, const QList &attributeNames, QVariantList &attributeValues) +{ + XQSERVICE_DEBUG_PRINT("XQApplicationManager::drmAttributes (file)"); + return d->getDrmAttributes(file, attributeNames, attributeValues); +} + +bool XQApplicationManager::getDrmAttributes(const XQSharableFile &file, const QList &attributeNames, QVariantList &attributeValues) +{ + XQSERVICE_DEBUG_PRINT("XQApplicationManager::drmAttributes (XQSharableFile)"); + return d->getDrmAttributes(file, attributeNames, attributeValues); +} + +XQApplicationManager::ServiceStatus XQApplicationManager::status(const XQAiwInterfaceDescriptor& implementation) +{ + XQSERVICE_DEBUG_PRINT("XQApplicationManager::status"); + return (ServiceStatus)d->status(implementation); +} + + diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqappmgr.h --- a/qthighway/xqservice/src/xqappmgr.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqappmgr.h Mon May 03 13:18:40 2010 +0300 @@ -40,7 +40,29 @@ Q_OBJECT public: - + + // For the contentAttributes() + enum DrmAttribute + { + DrmIntAttributeBase=0, // Base value for the DRM integer attributes + IsProtected = DrmIntAttributeBase+0, + IsForwardable = DrmIntAttributeBase+1, + // For others DrmIntAttributeBase+N, see N from the caf/caftypes.h + + DrmStringAttributeBase = 100, // Base value for the DRM string attributes + Description = DrmStringAttributeBase+0, + MimeType = DrmStringAttributeBase+1 + // For others, DrmIntAttributeBase+N, see N from the caf/caftypes.h + }; + + // For the serviceStatus() function + enum ServiceStatus + { + Unknown=0, // Not known + Enabled, // Service enabled + Disabled // Service disabled, e.g. required config not OK, + }; + XQApplicationManager(); virtual ~XQApplicationManager(); @@ -68,7 +90,15 @@ XQAiwRequest* create( const XQSharableFile &file, const XQAiwInterfaceDescriptor& implementation, bool embedded = true); int lastError() const; + bool isRunning(const XQAiwInterfaceDescriptor& implementation) const; + bool getDrmAttributes(const QFile &file, const QList &attributeNames, QVariantList &attributeValues); + bool getDrmAttributes(const XQSharableFile &file, const QList &attributeNames, QVariantList &attributeValues); + + ServiceStatus status(const XQAiwInterfaceDescriptor& implementation); + +signals: + private: // Disable copy contructor Q_DISABLE_COPY(XQApplicationManager) diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqappmgr_p.cpp --- a/qthighway/xqservice/src/xqappmgr_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqappmgr_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -22,6 +22,10 @@ #include #include #include +#include +#include +#include + #include "xqservicelog.h" #include "xqaiwutils.h" #include "xqaiwuridriver.h" @@ -34,6 +38,7 @@ { XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate"); + serviceMgr = new XQServiceManager(); } XQApplicationManagerPrivate::~XQApplicationManagerPrivate() @@ -54,14 +59,6 @@ { XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate::create(service+interface)"); - if (!serviceMgr) - serviceMgr = new XQServiceManager(); - if (!serviceMgr) - { - XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate:: Can not create service manager"); - return 0; - } - QList impls; if (service.isEmpty()) impls = serviceMgr->findInterfaces(interface); @@ -212,16 +209,6 @@ XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate::list(interface)"); Q_UNUSED(operation); - if (!serviceMgr) - serviceMgr = new XQServiceManager(); - - QList result; - if (!serviceMgr) - { - XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate:: Can not create service manager"); - return result; - } - return serviceMgr->findInterfaces(interface); } @@ -231,17 +218,6 @@ XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate::list (service+interface)"); Q_UNUSED(operation); - if (!serviceMgr) - serviceMgr = new XQServiceManager(); - - QList result; - if (!serviceMgr) - { - XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate:: Can not create service manager"); - return result; - } - - return serviceMgr->findInterfaces(service, interface); } @@ -324,12 +300,86 @@ int XQApplicationManagerPrivate::lastError() const { int err=0; - if (serviceMgr) - err = serviceMgr->latestError(); + err = serviceMgr->latestError(); XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate:: lastError=%d", err); return err; } +bool XQApplicationManagerPrivate::isRunning(const XQAiwInterfaceDescriptor& implementation) const +{ + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate isRunning"); + return serviceMgr->isRunning(implementation); +} + +bool XQApplicationManagerPrivate::getDrmAttributes(const QFile &file, const QList &attributeNames, QVariantList &attributeValues) +{ + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate drmAttributes"); + if (aiwUtilities == 0) + aiwUtilities = new XQAiwUtils(); + return aiwUtilities->getDrmAttributes(file.fileName(), attributeNames, attributeValues); +} + +bool XQApplicationManagerPrivate::getDrmAttributes(const XQSharableFile &file, const QList &attributeNames, QVariantList &attributeValues) +{ + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate drmAttributes"); + if (aiwUtilities == 0) + aiwUtilities = new XQAiwUtils(); + return aiwUtilities->getDrmAttributes(file,attributeNames, attributeValues); +} + +int XQApplicationManagerPrivate::status(const XQAiwInterfaceDescriptor& implementation) +{ + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate status"); + QString statusKeyValue = implementation.customProperty(XQCUSTOM_PROP_AIW_SERVICE_STATUS); + if (statusKeyValue.isEmpty()) + { + // No custom property, have to assume service is enabled + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate no custom property %s", + XQCUSTOM_PROP_AIW_SERVICE_STATUS); + return XQApplicationManager::Unknown; + } + + if (aiwUtilities == 0) + aiwUtilities = new XQAiwUtils(); + + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate custom property value=%s", + qPrintable(statusKeyValue)); + + bool b=false; + int keyId = aiwUtilities->toIntFromHex(statusKeyValue, &b); + if (!b) + { + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate bad custom property value"); + return XQApplicationManager::Unknown; + } + + XQSettingsManager settingsManager; + int implId = implementation.property(XQAiwInterfaceDescriptor::ImplementationId).toInt(); + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate %x,%x", keyId, implId); + + XQSettingsKey statusKey (XQSettingsKey::TargetCentralRepository, implId, keyId); + QVariant value = settingsManager.readItemValue(statusKey); + if (value.isNull()) + { + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate Cenrep %x does not contain key %x", + implId, keyId); + return XQApplicationManager::Unknown; + } + + + int status = value.toInt(&b); + if (!b) + { + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate invalid status value %s", + qPrintable(value.toString())); + return XQApplicationManager::Unknown; + } + + XQSERVICE_DEBUG_PRINT("XQApplicationManagerPrivate status=%d", status); + + return status; + +} // ---- PRIVATE FUNCTIONS ---- diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqappmgr_p.h --- a/qthighway/xqservice/src/xqappmgr_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqappmgr_p.h Mon May 03 13:18:40 2010 +0300 @@ -30,6 +30,7 @@ #include #include #include +#include class XQServiceManager; class XQAiwUtils; @@ -54,7 +55,12 @@ QList list(const XQSharableFile &file); bool hasCustomHandler(const QUrl &uri) const; + int lastError() const; + bool isRunning(const XQAiwInterfaceDescriptor& implementation) const; + bool getDrmAttributes(const QFile &file, const QList &attributeNames, QVariantList &attributeValues); + bool getDrmAttributes(const XQSharableFile &file, const QList &attributeNames, QVariantList &attributeValues); + int status(const XQAiwInterfaceDescriptor& implementation); private: diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqserviceadaptor.cpp --- a/qthighway/xqservice/src/xqserviceadaptor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqserviceadaptor.cpp Mon May 03 13:18:40 2010 +0300 @@ -28,6 +28,7 @@ #include "xqserviceipcclient.h" #include +#include #include #include #include @@ -670,48 +671,60 @@ XQSERVICE_DEBUG_PRINT("\tDesserialize XQRequestInfo"); QVariant v; stream >> v; - XQSERVICE_DEBUG_PRINT("\tQVariant type=%s", v.typeName()); + XQSERVICE_DEBUG_PRINT("\tXQRequestInfo:QVariant type=%s", v.typeName()); if (QString(v.typeName()) == QString("XQRequestInfo")) { XQRequestInfo info = v.value(); - //bring foreground or background based on RequestInfo from client side. - XQServiceUtil::toBackground(info.isBackground()); + //bring foreground or background based on RequestInfo from client side. + bool bg = info.isBackground(); + bool fg = info.isForeground(); + if (bg && !fg) + { + XQSERVICE_DEBUG_PRINT("\tApply background option"); + XQServiceUtil::toBackground(true); + } + else if (fg && !bg) + { + XQSERVICE_DEBUG_PRINT("\tApply foreground option"); + XQServiceUtil::toBackground(false); + } + // If both off or both on, do not do anything XQServiceIpcClient *cl = XQService::serviceThreadData()->clientConnection(d->channelName); // Attach to current request before the metacall below ! cl->setRequestInfo(info); } } - else if (info->types[arg] != XQServiceAdaptorPrivate::QVariantId) { - XQServiceVariant temp; - temp.load(stream, info->types[arg]); - - XQSERVICE_DEBUG_PRINT("\tQVariant type=%s", temp.typeName()); - - if (QString(temp.typeName()) == QString("XQSharableFile")) - { - //apply the patch - if ( sf.isValid()) - { - args.append( qVariantFromValue(sf ) ); - } - - } - else - { - args.append(temp); - } - - - a[arg + 1] = (void *)(args[arg].data()); - } else { + else if (info->types[arg] == XQServiceAdaptorPrivate::QVariantId) + { // We need to handle QVariant specially because we actually // need the type header in this case. QVariant temp; stream >> temp; + + XQSERVICE_DEBUG_PRINT("\tQVariantId:QVariant type=%s", temp.typeName()); + + if (QString(temp.typeName()) == QString("XQSharableFile")) + { + //apply the patch + if ( sf.isValid()) + { + temp = qVariantFromValue( sf ); + } + } + + args.append(temp); + a[arg + 1] = (void *)&(args[arg]); + } + else { + // + // The default handling + // + QVariant temp; + stream >> temp; - XQSERVICE_DEBUG_PRINT("\tQVariant type=%s", temp.typeName()); + XQSERVICE_DEBUG_PRINT("\tDefault:QVariant type=%s", temp.typeName()); if (QString(temp.typeName()) == QString("XQSharableFile")) { @@ -723,7 +736,7 @@ } args.append(temp); - a[arg + 1] = (void *)&(args[arg]); + a[arg + 1] = (void *)(args[arg].data()); } } @@ -917,57 +930,17 @@ XQSERVICE_DEBUG_PRINT("args[%d]:type=%s,value=%s", i, args[i].typeName(), qPrintable(args[i].toString())); } if (!sync && !rc) { - //TODO: set error + // Something wrong as no callback given + XQService::serviceThreadData()->setLatestError(XQService::EArgumentError); return false; } QByteArray array; - { - QDataStream stream - (&array, QIODevice::WriteOnly | QIODevice::Append); - QList::ConstIterator iter; - if (!msg.contains(QLatin1String("QVariant"))) { - for (iter = args.begin(); iter != args.end(); ++iter) { - if (QString(iter->typeName()) == QString("XQRequestInfo")) - { - // Handle request options specially as we need type header - XQSERVICE_DEBUG_PRINT("\tSerialize XQRequestInfo to stream"); - stream << *iter; - } - else - { - XQServiceVariant copy(*iter); - copy.save(stream); - } - } - } else { - QByteArray name = msg.toLatin1(); - name = QMetaObject::normalizedSignature(name.constData()); - int numParams = 0; - int *params = XQServiceAdaptorPrivate::connectionTypes - (name, numParams); - int index = 0; - for (iter = args.begin(); iter != args.end(); ++iter, ++index) { - if (QString(iter->typeName()) == QString("XQRequestInfo")) - { - // Pass request info onward (extra internal parameter( - XQSERVICE_DEBUG_PRINT("\tSerialize XQRequestInfo to stream"); - stream << *iter; - } - else if (index < numParams && - params[index] == XQServiceAdaptorPrivate::QVariantId) { - // We need to handle QVariant specially because we actually - // need the type header in this case. - stream << *iter; - } else { - XQServiceVariant copy(*iter); - copy.save(stream); - } - } - if (params) - qFree(params); - } - // Stream is flushed and closed at this point. + QDataStream stream(&array, QIODevice::WriteOnly | QIODevice::Append); + QList::ConstIterator iter; + for (iter = args.begin(); iter != args.end(); ++iter) { + stream << *iter; } + // Stream is flushed and closed at this point. return XQServiceChannel::send(channel, msg, array, retValue, sync, rc, userData); } diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqserviceipcclient.cpp --- a/qthighway/xqservice/src/xqserviceipcclient.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqserviceipcclient.cpp Mon May 03 13:18:40 2010 +0300 @@ -54,7 +54,7 @@ XQServiceIpcClient::XQServiceIpcClient(const QString& ipcConName, bool isServer, bool isSync, XQServiceRequestCompletedAsync* rc, const void *userData) - : QObject(), serviceIpc(NULL), serviceIpcServer(NULL), callBackRequestComplete(rc), + : QObject(), cancelledRequest(NULL), serviceIpc(NULL), serviceIpcServer(NULL), callBackRequestComplete(rc), mUserData(userData) // User data can be NULL ! { XQSERVICE_DEBUG_PRINT("XQServiceIpcClient::XQServiceIpcClient"); @@ -147,6 +147,7 @@ connect(serviceIpc, SIGNAL(readyRead()), this, SLOT(readyRead())); XQSERVICE_DEBUG_PRINT("embedded: %d", embedded); if (embedded) { + // You can have only one embedded service in use at a time !!! // Start application in embedded mode (add process ID to connection name !) quint64 processId=0; bool ret = serviceIpc->startServer(mIpcConName,"", processId, ServiceFwIPC::EStartInEmbeddedMode); @@ -250,9 +251,6 @@ QVariant ret; // Processing command on server side. if (command == XQServiceCmd_Send) { - //TODO: just a hack to be study how get foreground when need - // maparnan: XQServiceUtil::toBackground(false); - //Only support 1 sharable file, so index is 0 ret=XQServiceChannel::sendLocally(channel, msg, data, aRequest->sharableFile(0) ); } @@ -277,9 +275,18 @@ XQSERVICE_DEBUG_PRINT("XQServiceIpcClient::handleCancelRequest isServer?=%d", server); if (server) { + // Save the request to be cancelled if service provider wants to as + // XQRequestInfo for details + // Valid only upon sendCommand call + cancelledRequest = aRequest; + //Attention! At the moment channel name and connection name are the same // it might be that in the future will be different then this is not valid anymore. XQServiceChannel::sendCommand(mIpcConName,XQServiceChannel::ClientDisconnected); + + // Remember to reset immediatelly + cancelledRequest = 0; + cancelRequest(aRequest); } } @@ -762,6 +769,15 @@ ServiceIPCRequest *XQServiceIpcClient::requestPtr(int index) const { ServiceIPCRequest* request = NULL; + + // If request is being cancelled (saved by handleCancelRequest()) use it's id instead + // By that way service provider can access the XQRequestInfo of the cancelled request + // Upon handling clientDisconnected + if (cancelledRequest) + { + index = cancelledRequest->id(); + XQSERVICE_DEBUG_PRINT("\t Cancelled request id=%d", index); + } if (requestsMap.contains(index)) { XQSERVICE_DEBUG_PRINT("\t request having id=%d FOUND", index); diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqserviceipcclient.h --- a/qthighway/xqservice/src/xqserviceipcclient.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqserviceipcclient.h Mon May 03 13:18:40 2010 +0300 @@ -103,8 +103,7 @@ QString mIpcConName ; - ServiceIPCRequest* currentRequest; // @deprecated - bool requestAsync; // @deprecated + ServiceIPCRequest* cancelledRequest; ServiceFwIPC* serviceIpc; ServiceFwIPCServer* serviceIpcServer; diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqservicerequest.cpp --- a/qthighway/xqservice/src/xqservicerequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqservicerequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -240,6 +240,7 @@ } m_data->m_RequestUtil.setSynchronous(m_data->m_Synchronous); // Ensure option is set ! + m_data->m_RequestUtil.mOperation = m_data->m_Message; // Save the operation name for startup // !!! // Add the info as extra argument to the request diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/src/xqservicethreaddata.cpp --- a/qthighway/xqservice/src/xqservicethreaddata.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/src/xqservicethreaddata.cpp Mon May 03 13:18:40 2010 +0300 @@ -180,25 +180,19 @@ QByteArray array; // if (!value.isNull() && (value.type() != QVariant::Invalid)) { maparnan if (value.isValid()) { // - XQServiceVariant retRequest(value); - QDataStream stream(&array, - QIODevice::WriteOnly | QIODevice::Append); + QDataStream stream(&array, QIODevice::WriteOnly | QIODevice::Append); + stream << CmdRetData; - //TODO: check if i use type() crash for custom type - stream << retRequest.userType(); - retRequest.save(stream); + stream << value; } else { if (error) { - //QVariant value = QVariant::fromValue(error); QVariant value(error); - XQServiceVariant retRequest(value); QDataStream stream(&array, QIODevice::WriteOnly | QIODevice::Append); stream << CmdErrData; - stream << retRequest.userType(); - retRequest.save(stream); + stream << value; } } return array; @@ -212,21 +206,17 @@ { QDataStream stream(retData); int cmd ; - int type ; stream >> cmd ; - stream >> type ; if (cmd == CmdRetData) { - XQServiceVariant retServiceData; - retServiceData.load(stream,type); + QVariant retServiceData(stream); return retServiceData; } else { if (cmd == CmdErrData) { - XQServiceVariant retServiceData; - retServiceData.load(stream,type); + QVariant retServiceData(stream); int error = retServiceData.toInt(); XQService::serviceThreadData()->setLatestError(error); } diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservice/xqservice.pro --- a/qthighway/xqservice/xqservice.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservice/xqservice.pro Mon May 03 13:18:40 2010 +0300 @@ -44,6 +44,8 @@ include(src/xqservice.pri) LIBS+=-lxqserviceutil -lxqserviceipcclient -lxqserviceipcserver -lqtgui -lqtserviceframework -lws32 -lefsrv -lapparc -lapgrfx +LIBS+=-lcaf +LIBS+=-lxqsettingsmanager libFiles.sources = xqservice.dll xqserviceutil.dll libFiles.path = "!:\sys\bin" diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqservicebase.pri --- a/qthighway/xqservicebase.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqservicebase.pri Mon May 03 13:18:40 2010 +0300 @@ -42,10 +42,8 @@ symbian { defFilePath=.. deploy.path = / -headers.sources = $$XQSERVICE_API_HEADERS -headers.path = epoc32/include/mw # This is for new exporting system coming in garden -for(header, headers.sources):BLD_INF_RULES.prj_exports += "$$header $$deploy.path$$headers.path/$$basename(header)" -for(header_internal, XQSERVICE_API_HEADERS_INTERNAL):BLD_INF_RULES.prj_exports += "$$header_internal $$XQSERVICE_ROOT/inc/$$basename(header_internal)" +for(header_public, XQSERVICE_API_HEADERS):BLD_INF_RULES.prj_exports += "$$header_public $$MW_LAYER_PUBLIC_EXPORT_PATH($$basename(header_public))" +for(header_internal, XQSERVICE_API_HEADERS_INTERNAL):BLD_INF_RULES.prj_exports += "$$header_internal |../inc/$$basename(header_internal)" for(header_platform, XQSERVICE_API_HEADERS_PLATFORM):BLD_INF_RULES.prj_exports += "$$header_platform $$MW_LAYER_PLATFORM_EXPORT_PATH($$basename(header_platform))" } diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceipc/xqserviceipc/xqserviceipc_apasymbian.cpp --- a/qthighway/xqserviceipc/xqserviceipc/xqserviceipc_apasymbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceipc/xqserviceipc/xqserviceipc_apasymbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -198,7 +198,7 @@ iDataSize = dataSize; } - XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::sendSync DONE"); + XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::sendSync status=%s", err); return (err == KErrNone); } @@ -212,7 +212,9 @@ // this is sync operation XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::readAll"); QByteArray rtn; - TRAPD( err, rtn = doReadAllL() ); + TInt err(KErrNone); + TRAP( err, rtn = doReadAllL() ); + XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::readAll status=%d",err); if ( err ) { emitError(err); @@ -292,11 +294,14 @@ XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::readAll"); // this is async operation - TRAPD(err, doReadAllL(aArray )); + TInt err(KErrNone); + TRAP(err, doReadAllL(aArray )); + XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::readAll status=%d",err); if (err) { emitError(err); } + } /*! @@ -450,9 +455,11 @@ XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::StartExitMonitor"); if (iServerExitMonitor == NULL) { - TRAPD( err, iServerExitMonitor = CApaServerAppExitMonitor::NewL(iSession, + TInt err(KErrNone); + TRAP( err, iServerExitMonitor = CApaServerAppExitMonitor::NewL(iSession, *this, CActive::EPriorityStandard )); + XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::StartExitMonitor status=%d",err); } } diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceipc/xqserviceipc/xqserviceipc_apasymbiansession.cpp --- a/qthighway/xqserviceipc/xqserviceipc/xqserviceipc_apasymbiansession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceipc/xqserviceipc/xqserviceipc_apasymbiansession.cpp Mon May 03 13:18:40 2010 +0300 @@ -102,7 +102,8 @@ TInt RApaIPCSession::Connect(const TDesC& aServer, const TVersion& aVersion) { - XQSERVICE_DEBUG_PRINT("RApaIPCSession::Connect"); + QString server = QString::fromUtf16(aServer.Ptr(), aServer.Length()); + XQSERVICE_DEBUG_PRINT("RApaIPCSession::Connect %s", qPrintable(server)); iVersion = aVersion; return CreateSession(aServer, aVersion, 10); } diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceipc/xqserviceipc/xqserviceipc_symbian.cpp --- a/qthighway/xqserviceipc/xqserviceipc/xqserviceipc_symbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceipc/xqserviceipc/xqserviceipc_symbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -180,7 +180,9 @@ XQSERVICE_DEBUG_PRINT("CServiceSymbianIPC::readAll"); QByteArray rtn; - TRAPD( err, rtn = doReadAllL() ); + TInt err(KErrNone); + TRAP( err, rtn = doReadAllL() ); + XQSERVICE_DEBUG_PRINT("CServiceSymbianIPC::readAll status=%d",err); if ( err ) { @@ -261,11 +263,14 @@ XQSERVICE_DEBUG_PRINT("CServiceSymbianIPC::readAll"); // this is async operation - TRAPD(err, doReadAllL(aArray)); + TInt err(KErrNone); + TRAP(err, doReadAllL(aArray)); + XQSERVICE_DEBUG_PRINT("CServiceSymbianIPC::readAll status=%d", err); if (err) { emitError(err); } + } /*! diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceipc/xqserviceipc/xqserviceipc_symbiansession.cpp --- a/qthighway/xqserviceipc/xqserviceipc/xqserviceipc_symbiansession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceipc/xqserviceipc/xqserviceipc_symbiansession.cpp Mon May 03 13:18:40 2010 +0300 @@ -98,7 +98,8 @@ */ TInt RServiceIPCSession::Connect(const TDesC& aServer, const TVersion& aVersion) { - XQSERVICE_DEBUG_PRINT("RServiceIPCSession::Connect"); + QString server = QString::fromUtf16(aServer.Ptr(), aServer.Length()); + XQSERVICE_DEBUG_PRINT("RServiceIPCSession::Connect %s", qPrintable(server)); iVersion = aVersion; return CreateSession(aServer, aVersion, 1); } diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcrequest.cpp --- a/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,11 +42,11 @@ ServiceIPCRequest::ServiceIPCRequest(ServiceIPCSession* aSession, qint64 aDataLength, const QString& aRequestOp) : + QObject(NULL), iSession(aSession), + iClientInfo(NULL), iRequestOp(aRequestOp), iDatalength(aDataLength), - iClientInfo(NULL), - QObject(NULL), iId(-1), iAsync(false) { @@ -192,6 +192,12 @@ XQSERVICE_DEBUG_PRINT("ServiceIPCRequest::setClientInfo"); delete iClientInfo; iClientInfo = aClientInfo; + + // Fill in the implicit info generated by the server + iRequestInfo.setInfo(XQServiceUtils::InfoSID, iClientInfo->processId()); + iRequestInfo.setInfo(XQServiceUtils::InfoVID, iClientInfo->vendorId()); + iRequestInfo.setInfo(XQServiceUtils::InfoCap, iClientInfo->capabilities()); + } /*! @@ -259,19 +265,22 @@ } +// Set request info passed alomg with the request void ServiceIPCRequest::setRequestInfo(XQRequestInfo *info) { XQSERVICE_DEBUG_PRINT("ServiceIPCRequest::setRequestInfo"); if (info) { iRequestInfo = *info; + // Restore the overridden id value if (iClientInfo) { - // Fill in client security info from the client info - XQSERVICE_DEBUG_PRINT("ServiceIPCRequest::setSecurityInfo"); + // Fill in the implicit info generated by the server + XQSERVICE_DEBUG_PRINT("ServiceIPCRequest::setRequestInfo fill from clientInfo"); iRequestInfo.setInfo(XQServiceUtils::InfoSID, iClientInfo->processId()); iRequestInfo.setInfo(XQServiceUtils::InfoVID, iClientInfo->vendorId()); iRequestInfo.setInfo(XQServiceUtils::InfoCap, iClientInfo->capabilities()); + iRequestInfo.setInfo(XQServiceUtils::InfoId, id()); } } } diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver.cpp --- a/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,8 +41,9 @@ */ ServiceFwIPCServer::ServiceFwIPCServer( MServiceIPCObserver* aObserver, QObject* aParent, - TServiceIPCBackends aBackend ) : iObserver( aObserver ), - QObject(aParent ) + TServiceIPCBackends aBackend ) : + QObject(aParent ), + iObserver( aObserver ) { XQSERVICE_DEBUG_PRINT("ServiceFwIPCServer::ServiceFwIPCServer"); XQSERVICE_DEBUG_PRINT("aBackend: %d", aBackend); diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_apasymbianserver.cpp --- a/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_apasymbianserver.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_apasymbianserver.cpp Mon May 03 13:18:40 2010 +0300 @@ -108,8 +108,9 @@ // Needs to be here becuase Q_Ptr isonly set after constructor of public iObserver = Observer(); TPtrC serverName(reinterpret_cast (aServerName.utf16())); - TRAPD( err, StartL(serverName) ); - XQSERVICE_DEBUG_PRINT("err: %d", err); + TInt err=0; + TRAP( err, StartL(serverName) ); + XQSERVICE_DEBUG_PRINT("listen status=%d", err); if (err != KErrNone) { listening = false; } diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_apasymbiansession.cpp --- a/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_apasymbiansession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_apasymbiansession.cpp Mon May 03 13:18:40 2010 +0300 @@ -200,8 +200,6 @@ // Store the message iMessage = aMessage; - TUid uid = iMessage.SecureId(); - XQSERVICE_DEBUG_PRINT("client uid: %x", uid.iUid ); // Convert from Symbian to QT HBufC* request = ReadDesLC(aMessage, 0); HBufC8* data = ReadDes8LC(aMessage, 1); @@ -237,7 +235,7 @@ // Get client info ClientInfo *client = new ClientInfo(); - client->setProcessId(aMessage.Identity().iUid); + client->setProcessId(aMessage.SecureId().iId); client->setVendorId(aMessage.VendorId().iId); RThread clientThread; aMessage.ClientL(clientThread); diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_symbianserver.cpp --- a/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_symbianserver.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_symbianserver.cpp Mon May 03 13:18:40 2010 +0300 @@ -107,8 +107,9 @@ // Needs to be here becuase Q_Ptr isonly set after constructor of public iObserver = Observer(); TPtrC serverName(reinterpret_cast (aServerName.utf16())); - TRAPD( err, StartL(serverName) ); - XQSERVICE_DEBUG_PRINT("err: %d", err); + TInt err=0; + TRAP( err, StartL(serverName) ); + XQSERVICE_DEBUG_PRINT("listen status=%d", err); if (err != KErrNone) { listening = false; } diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_symbiansession.cpp --- a/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_symbiansession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_symbiansession.cpp Mon May 03 13:18:40 2010 +0300 @@ -220,7 +220,7 @@ // Get client info ClientInfo *client = new ClientInfo(); - client->setProcessId(aMessage.Identity().iUid); + client->setProcessId(aMessage.SecureId().iId); client->setVendorId(aMessage.VendorId().iId); RThread clientThread; aMessage.ClientL(clientThread); diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceutil/src/xqrequestinfo.cpp --- a/qthighway/xqserviceutil/src/xqrequestinfo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceutil/src/xqrequestinfo.cpp Mon May 03 13:18:40 2010 +0300 @@ -57,6 +57,18 @@ return info(XQServiceUtils::OptBackground).toBool(); } +void XQRequestInfo::setForeground(bool on) +{ + XQSERVICE_DEBUG_PRINT("XQRequestInfo::setForeground %d", on); + setInfo(XQServiceUtils::OptForeground, on); +} + +bool XQRequestInfo::isForeground() const +{ + XQSERVICE_DEBUG_PRINT("XQRequestInfo::isForeground"); + return info(XQServiceUtils::OptForeground).toBool(); +} + bool XQRequestInfo::isSynchronous() const { @@ -128,6 +140,19 @@ return mInfo.keys(); } +int XQRequestInfo::id() const +{ + XQSERVICE_DEBUG_PRINT("XQRequestInfo::id"); + bool b=false; + int id = info(XQServiceUtils::InfoId).toInt(&b); + XQSERVICE_DEBUG_PRINT("\tId status=%d", b); + if (!b) + { + return -1; + } + return id; +} + bool XQRequestInfo::isValid() const { return !mInfo.isEmpty(); diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceutil/src/xqrequestinfo.h --- a/qthighway/xqserviceutil/src/xqrequestinfo.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceutil/src/xqrequestinfo.h Mon May 03 13:18:40 2010 +0300 @@ -44,11 +44,14 @@ void setBackground(bool on); bool isBackground() const; bool isSynchronous() const; + void setForeground(bool on); + bool isForeground() const; quint32 clientSecureId() const; quint32 clientVendorId() const; QSet clientCapabilities() const; - + int id() const; + void setInfo(const QString &key, const QVariant &value); QVariant info(const QString &key) const; QStringList infoKeys() const; diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceutil/src/xqrequestutil.h --- a/qthighway/xqserviceutil/src/xqrequestutil.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceutil/src/xqrequestutil.h Mon May 03 13:18:40 2010 +0300 @@ -32,21 +32,27 @@ // -// XQRequestUtil is internal helper class for QtHighway request handling +// XQRequestUtil is internal helper class for starting QtHigway service app +// and for request handling // // Option key names for XQRequestInfo + namespace XQServiceUtils { - static const char * OptEmbedded= "XQEmb"; // Option Embedded / Non-Embedded call - static const char * OptBackground= "XQBg"; // Option Service to Background / Foreground + static const char * OptEmbedded= "XQEmb"; // Option Embedded (off=Non-Embedded) + static const char * OptBackground= "XQBg"; // Option Service to Background (missing=no changes in Z-order) + static const char * OptForeground= "XQFg"; // Set service app to foreground (missing=no changes in Z-order) static const char * OptSynchronous= "XQSync"; // Option Syncronous / Asynchronous call static const char * InfoSID= "XQSid"; // Client secure ID static const char * InfoVID= "XQVid"; // Client vendor ID static const char * InfoCap= "XQCap"; //Client cap + static const char * InfoId= "XQId"; // Request ID // Startup arguments static const char * StartupArgEmbedded = "embedded=yes"; static const char * StartupArgService = "service=yes"; + static const char * StartupArgInterfaceName = "intf="; + static const char * StartupArgOperationName = "oper="; } @@ -63,9 +69,10 @@ static int mapError(int error); public: - XQAiwInterfaceDescriptor mDescriptor; + XQAiwInterfaceDescriptor mDescriptor; // Contains e.g. service and interface name XQRequestInfo mInfo; QList mSharableFileArgs; // Use list even though one file possible to transfer + QString mOperation; // Operation (message) wanted }; #endif diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceutil/src/xqservicemanager.cpp --- a/qthighway/xqserviceutil/src/xqservicemanager.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceutil/src/xqservicemanager.cpp Mon May 03 13:18:40 2010 +0300 @@ -61,6 +61,7 @@ XQRequestUtil *util); TInt Discover(const QString& aService,TUid& aAppUid, QList& interfaces, int matchMode); int LatestError() const {return iLatestError;}; + bool IsRunning(const XQAiwInterfaceDescriptor& implementation) const; private: void StartServerL(const TUid& uid, bool embedded, TUint64& processId, XQRequestUtil *util); @@ -160,12 +161,22 @@ return d->LatestError(); } +/*! + Returns the latest error occured +*/ +bool XQServiceManager::isRunning(const XQAiwInterfaceDescriptor& implementation) const +{ + XQSERVICE_DEBUG_PRINT("XQServiceManager::isRunning"); + return d->IsRunning(implementation); +} + + // aService is here the full name (service + interface) int XQServiceManagerPrivate::StartServer(const QString& aService, bool embedded, int& applicationUid, quint64& processId, XQRequestUtil *util) { XQSERVICE_DEBUG_PRINT("XQServiceManagerPrivate::startServer(2)"); - XQSERVICE_DEBUG_PRINT("aService: %s, embedded: %d", qPrintable(aService), embedded); + XQSERVICE_DEBUG_PRINT("aService: %s", qPrintable(aService)); TUid appUid; appUid.iUid=0; @@ -202,7 +213,7 @@ XQRequestUtil *util) { XQSERVICE_DEBUG_PRINT("XQServiceManagerPrivate::StartServerL"); - Q_UNUSED(util); // Currently not used yet. The uid was set by calling function above + Q_UNUSED(embedded); // Not used any more. XQRequestUtil applied instead RApaLsSession apa; User::LeaveIfError( apa.Connect() ); @@ -210,11 +221,11 @@ bool toBackground = false; - // Apply the utility's option for embedding - embedded = util->mInfo.isEmbedded(); + // Apply the utility's option for embedding instead + bool embed = util->mInfo.isEmbedded(); toBackground = util->mInfo.isBackground(); - XQSERVICE_DEBUG_PRINT("\tembedded got from utility=%d", embedded); + XQSERVICE_DEBUG_PRINT("\tembedded got from utility=%d", embed); XQSERVICE_DEBUG_PRINT("\tbackground got from utility=%d", toBackground); // retrieve application information @@ -230,15 +241,23 @@ } // Consistency check - if (embedded && toBackground) + if (embed && toBackground) { User::Leave(KErrArgument); } + /* + // Using the "iAppInfo.iCaption" is wrong as the channel name (full servicename) shall be used: + // e.g. tester's "com.nokia.servicesd.serviceapp.Dialer" or + // "com.nokia.servicesd.serviceapp.Dialer.PROCESS-ID" in case of embedded launch + // Anyway, this is not needed as the "XQServiceIpcClient::connectToServer()" takes care of the checking logic + // earlier (the "startServer" logic will be applied only when needed) TFindServer find( iAppInfo.iCaption ); TFullName fullName; TInt err = find.Next( fullName ); XQSERVICE_DEBUG_PRINT("err: %d", err); + */ + TInt err = KErrNotFound; // Assume not found if ( err != KErrNone ) { CApaCommandLine* cmdLine = CApaCommandLine::NewLC(); @@ -250,7 +269,7 @@ //cmdLine->SetServerRequiredL( uid.iUid ); RProcess client; cmdLine->SetServerRequiredL(client.Id().Id()); - if (embedded) { + if (embed) { CCoeEnv* env= CCoeEnv::Static(); if (env) // Could be NULL { @@ -267,8 +286,7 @@ else { // Can not be embedded (non GUI client) - embedded = false; - util->mInfo.setEmbedded(false); + embed = false; } } @@ -277,10 +295,22 @@ // start application with command line parameters //User::LeaveIfError( apa.StartApp( *cmdLine, threadId, &requestStatusForRendezvous) ); QString startupArgs = QString::fromLatin1(XQServiceUtils::StartupArgService); - if (embedded) + if (embed) { startupArgs += (" " + QString::fromLatin1(XQServiceUtils::StartupArgEmbedded)); } + + // + // Add interface name and operation (message) name to the command line as startup args. + // Usable in practise only for the embedded launch + // Can be used by service application to prepare the UI to the coming call. + // + QStringList l = util->mOperation.split("("); + QString oper = l.value(0); // // Pick only the function name and ignore parameters + + startupArgs += (" " + QString::fromLatin1(XQServiceUtils::StartupArgInterfaceName) + util->mDescriptor.interfaceName() ); + startupArgs += (" " + QString::fromLatin1(XQServiceUtils::StartupArgOperationName) + oper); + XQSERVICE_DEBUG_PRINT("\tStartupArgs:%s", qPrintable(startupArgs)); TPtrC cmdLineArgs( reinterpret_cast(startupArgs.utf16()) ); @@ -360,7 +390,7 @@ CApaAppServiceInfoArray* apaInfo = NULL; TInt error = KErrNone; TRAP(error, apaInfo = AvailableServiceImplementationsL()); - XQSERVICE_DEBUG_PRINT("error: %d", error); + XQSERVICE_DEBUG_PRINT("Discover status=%d", error); if (error) { return error; // This is fatal as nothing found @@ -454,6 +484,7 @@ foreach (XQAiwInterfaceDescriptor interface,results.interfaces) { QString sn; + QString snDeprecated; if (results.version == ServiceMetaDataResults::VERSION_1) { // Old version of the XML format. The parser took care of adaptation @@ -465,6 +496,15 @@ // discovery-name = interface name XQSERVICE_DEBUG_PRINT("version 2"); } + + // Deprecated service name, if any + QString deprecatedServiceName = interface.customProperty("deprecatedsn"); + bool deprNameExists = !deprecatedServiceName.isEmpty(); + if (deprNameExists) + { + XQSERVICE_DEBUG_PRINT("deprecatedServiceName: %s", qPrintable(deprecatedServiceName)); + } + // This is the name used in match // TODO: Version handling support: Take the latest version if multiple matches switch (matchMode) @@ -474,15 +514,17 @@ break; case MatchServiceAndInterfaceName : sn =interface.serviceName() + "." + interface.interfaceName(); + snDeprecated = deprecatedServiceName + "." + interface.interfaceName(); break; default: sn = interface.interfaceName(); - break; + break; } XQSERVICE_DEBUG_PRINT("compare name is: %s", qPrintable(sn)); XQSERVICE_DEBUG_PRINT("requested name: %s", qPrintable(serviceName)); - if (!serviceName.compare(sn,Qt::CaseInsensitive)) + if ((!serviceName.compare(sn,Qt::CaseInsensitive)) || + (deprNameExists && !serviceName.compare(snDeprecated,Qt::CaseInsensitive))) { if (!firstUidPicked) { @@ -523,6 +565,20 @@ return error; } +bool XQServiceManagerPrivate::IsRunning(const XQAiwInterfaceDescriptor& implementation) const +{ + XQSERVICE_DEBUG_PRINT("XQServiceManagerPrivate::IsRunning"); + QString fullServiceName = implementation.serviceName() + "." + implementation.interfaceName(); + TPtrC serverName( reinterpret_cast(fullServiceName.utf16()) ); + + TFindServer findServer(serverName); + TFullName name; + bool b = findServer.Next(name) == KErrNone; + XQSERVICE_DEBUG_PRINT("XQServiceManagerPrivate::IsRunning=%d",b); + return b; +} + + int XQServiceManagerPrivate::doMapErrors(TInt aError) { XQSERVICE_DEBUG_PRINT("XQServiceManagerPrivate::doMapErrors"); diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceutil/src/xqservicemanager.h --- a/qthighway/xqserviceutil/src/xqservicemanager.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceutil/src/xqservicemanager.h Mon May 03 13:18:40 2010 +0300 @@ -46,6 +46,7 @@ const void *userData); int latestError() const; + bool isRunning(const XQAiwInterfaceDescriptor& implementation) const; private: diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceutil/src/xqserviceutil.cpp --- a/qthighway/xqserviceutil/src/xqserviceutil.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceutil/src/xqserviceutil.cpp Mon May 03 13:18:40 2010 +0300 @@ -34,23 +34,13 @@ #include // RWsSession #include #include -/* -void XQServiceUtil::hideFromFsw( bool hide ) -{ - RAknUiServer uiServer; - int sid = RProcess().SecureId().iId; - uiServer.Connect(); - uiServer.HideApplicationFromFsw( hide, sid ); - uiServer.Close(); -} -*/ void XQServiceUtil::toBackground( bool value ) { XQSERVICE_DEBUG_PRINT("XQServiceUtil::toBackground"); XQSERVICE_DEBUG_PRINT("value: %d", value); RWsSession ws; - int sid = RProcess().SecureId().iId; + int sid = RProcess().SecureId().iId; // Assumes UID3 == SID !!! XQSERVICE_DEBUG_PRINT("sid: %d", sid); if (ws.Connect() == KErrNone) { XQSERVICE_DEBUG_PRINT("Connected to window server"); @@ -100,3 +90,33 @@ return false; } +QString XQServiceUtil::interfaceName() +{ + XQSERVICE_DEBUG_PRINT("XQServiceUtil::interfaceName"); + QString ret; + QStringList args = QCoreApplication::arguments(); + foreach (QString arg, args) { + if (arg.contains(QString::fromLatin1(XQServiceUtils::StartupArgInterfaceName),Qt::CaseInsensitive)) { + QStringList l= arg.split("="); + ret = l.value(1); + } + } + XQSERVICE_DEBUG_PRINT("interfaceName=%s", qPrintable(ret)); + return ret; +} + +QString XQServiceUtil::operationName() +{ + XQSERVICE_DEBUG_PRINT("XQServiceUtil::operationName"); + QString ret; + QStringList args = QCoreApplication::arguments(); + foreach (QString arg, args) { + if (arg.contains(QString::fromLatin1(XQServiceUtils::StartupArgOperationName),Qt::CaseInsensitive)) { + QStringList l= arg.split("="); + ret = l.value(1); + } + } + XQSERVICE_DEBUG_PRINT("operationName=%s", qPrintable(ret)); + return ret; +} + diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceutil/src/xqserviceutil.h --- a/qthighway/xqserviceutil/src/xqserviceutil.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceutil/src/xqserviceutil.h Mon May 03 13:18:40 2010 +0300 @@ -33,6 +33,8 @@ // Utilities to extract startup command line arguments XQSERVICEUTIL_EXPORT bool isEmbedded(); // XQSERVICEUTIL_EXPORT bool isService(); + XQSERVICEUTIL_EXPORT QString interfaceName(); + XQSERVICEUTIL_EXPORT QString operationName(); } #endif diff -r 2b40d63a9c3d -r 90517678cc4f qthighway/xqserviceutil/src/xqsharablefile.cpp --- a/qthighway/xqserviceutil/src/xqsharablefile.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qthighway/xqserviceutil/src/xqsharablefile.cpp Mon May 03 13:18:40 2010 +0300 @@ -91,7 +91,10 @@ bool XQSharableFile::open(const QString &fileName) { close(); // Close possibly existing old one - + + QString symbianFileName = fileName; + symbianFileName.replace("/", "\\"); + TInt err = mSharableFS.Connect(); if (err != KErrNone) { @@ -99,7 +102,7 @@ } mSharableFS.ShareProtected(); - TPtrC name( reinterpret_cast(fileName.utf16())); + TPtrC name( reinterpret_cast(symbianFileName.utf16())); RFile f; err = f.Open(mSharableFS, name, EFileShareReadersOnly); if (err != KErrNone) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/examples/keycaptureex/keycapturetestapp.cpp --- a/qtmobileextensions/examples/keycaptureex/keycapturetestapp.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/examples/keycaptureex/keycapturetestapp.cpp Mon May 03 13:18:40 2010 +0300 @@ -56,9 +56,13 @@ mKeyCapture = new XqKeyCapture(); - mKeysMap.insert("Up", Qt::Key_Up); - mKeysMap.insert("Down", Qt::Key_Down); - mKeysMap.insert("Manu", Qt::Key_Launch0); + mKeysMap.insert("Up_Qt", Qt::Key_Up); + mKeysMap.insert("Down_Qt", Qt::Key_Down); + mKeysMap.insert("Menu_Qt", Qt::Key_Launch0); + + mKeysMap.insert("Up_S60", EKeyUpArrow); + mKeysMap.insert("Down_S60", EKeyDownArrow); + mKeysMap.insert("Menu_S60", EKeyApplication1); mKeysMenu = new QMenu(this); @@ -139,27 +143,52 @@ TX_ENTRY switch (request.mRequestType){ case CaptureRequest::RequestTypeKey : - mKeyCapture->captureKey(request.mKey, request.mModifiersMap, request.mModifier ); + + if (request.isQtKey) + mKeyCapture->captureKey((Qt::Key) request.mKey, request.mModifiersMap, request.mModifier ); + else + mKeyCapture->captureKey((TUint) request.mKey, request.mModifiersMap, request.mModifier ); + addTextLine(QString("%1:%2\n").arg(request.toString()).arg(mKeyCapture->errorString())); break; case CaptureRequest::RequestTypeLongKey : - mKeyCapture->captureLongKey(request.mKey, request.mModifiersMap, request.mModifier, request.mLongFlags); + if (request.isQtKey) + mKeyCapture->captureLongKey((Qt::Key) request.mKey, request.mModifiersMap, request.mModifier, request.mLongFlags); + else + mKeyCapture->captureLongKey((TUint) request.mKey, request.mModifiersMap, request.mModifier, request.mLongFlags); + addTextLine(QString("%1:%2\n").arg(request.toString()).arg(mKeyCapture->errorString())); break; case CaptureRequest::RequestTypeKeyUpAndDowns : - mKeyCapture->captureKeyUpAndDowns(request.mKey, request.mModifiersMap, request.mModifier ); + if (request.isQtKey) + mKeyCapture->captureKeyUpAndDowns((Qt::Key) request.mKey, request.mModifiersMap, request.mModifier ); + else + mKeyCapture->captureKeyUpAndDowns((TUint) request.mKey, request.mModifiersMap, request.mModifier ); + addTextLine(QString("%1:%2\n").arg(request.toString()).arg(mKeyCapture->errorString())); break; case CaptureRequest::RequestTypeCancelKey : - mKeyCapture->cancelCaptureKey(request.mKey, request.mModifiersMap, request.mModifier ); + if (request.isQtKey) + mKeyCapture->cancelCaptureKey((Qt::Key) request.mKey, request.mModifiersMap, request.mModifier ); + else + mKeyCapture->cancelCaptureKey((TUint) request.mKey, request.mModifiersMap, request.mModifier ); + addTextLine(QString("%1:%2\n").arg(request.toString()).arg(mKeyCapture->errorString())); break; case CaptureRequest::RequestTypeCancelLongKey : - mKeyCapture->cancelCaptureLongKey(request.mKey, request.mModifiersMap, request.mModifier, request.mLongFlags); + if (request.isQtKey) + mKeyCapture->cancelCaptureLongKey((Qt::Key) request.mKey, request.mModifiersMap, request.mModifier, request.mLongFlags); + else + mKeyCapture->cancelCaptureLongKey((TUint) request.mKey, request.mModifiersMap, request.mModifier, request.mLongFlags); + addTextLine(QString("%1:%2\n").arg(request.toString()).arg(mKeyCapture->errorString())); break; case CaptureRequest::RequestTypeCancelKeyUpAndDowns : - mKeyCapture->cancelCaptureKeyUpAndDowns(request.mKey, request.mModifiersMap, request.mModifier ); + if (request.isQtKey) + mKeyCapture->cancelCaptureKeyUpAndDowns((Qt::Key) request.mKey, request.mModifiersMap, request.mModifier ); + else + mKeyCapture->cancelCaptureKeyUpAndDowns((TUint) request.mKey, request.mModifiersMap, request.mModifier ); + addTextLine(QString("%1:%2\n").arg(request.toString()).arg(mKeyCapture->errorString())); break; default: @@ -279,12 +308,18 @@ } } -bool CaptureRequest::setKey(QAction* action, QMap *map) +//bool CaptureRequest::setKey(QAction* action, QMap *map) +bool CaptureRequest::setKey(QAction* action, QMap *map) { if (!action || !map || map->count()==0) return false; QString key = action->data().toString(); if ( !key.isNull() && map->contains(key)){ + if (key.contains("_Qt")) { + isQtKey = true; + } else { + isQtKey = false; + } mKey = map->value(key); return true; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/examples/keycaptureex/keycapturetestapp.h --- a/qtmobileextensions/examples/keycaptureex/keycapturetestapp.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/examples/keycaptureex/keycapturetestapp.h Mon May 03 13:18:40 2010 +0300 @@ -55,7 +55,8 @@ XqKeyCapture *mKeyCapture; - QMap mKeysMap; + QMap mKeysMap; + QMenu* mKeysMenu; QMap mLongFlagsMap; @@ -81,13 +82,15 @@ }; bool setType(QAction* action); - bool setKey(QAction* action, QMap *map); + bool setKey(QAction* action, QMap *map); bool setLongFlags(QAction* action, QMap *map); QString toString(); public: RequestType mRequestType; - Qt::Key mKey; + //Qt::Key mKey; + long mKey; + bool isQtKey; Qt::KeyboardModifier mModifiersMap; Qt::KeyboardModifier mModifier; XqKeyCapture::LongFlags mLongFlags; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/qtmobileextensions.pro --- a/qtmobileextensions/qtmobileextensions.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/qtmobileextensions.pro Mon May 03 13:18:40 2010 +0300 @@ -26,30 +26,30 @@ src/keycapture symbian { -BLD_INF_RULES.prj_exports += "./src/settingsmanager/settingsmanager_global.h /epoc32/include/mw/settingsmanager_global.h" -BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqcentralrepositorysearchcriteria.h /epoc32/include/mw/xqcentralrepositorysearchcriteria.h" -BLD_INF_RULES.prj_exports += "./include/XQCentralRepositorySearchCriteria /epoc32/include/mw/XQCentralRepositorySearchCriteria" -BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqcentralrepositoryutils.h /epoc32/include/mw/xqcentralrepositoryutils.h" -BLD_INF_RULES.prj_exports += "./include/XQCentralRepositoryUtils /epoc32/include/mw/XQCentralRepositoryUtils" -BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqpublishandsubscribesecuritypolicy.h /epoc32/include/mw/xqpublishandsubscribesecuritypolicy.h" -BLD_INF_RULES.prj_exports += "./include/XQPublishAndSubscribeSecurityPolicy /epoc32/include/mw/XQPublishAndSubscribeSecurityPolicy" -BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqpublishandsubscribeutils.h /epoc32/include/mw/xqpublishandsubscribeutils.h" -BLD_INF_RULES.prj_exports += "./include/XQPublishAndSubscribeUtils /epoc32/include/mw/XQPublishAndSubscribeUtils" -BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqsettingskey.h /epoc32/include/mw/xqsettingskey.h" -BLD_INF_RULES.prj_exports += "./include/XQCentralRepositorySettingsKey /epoc32/include/mw/XQCentralRepositorySettingsKey" -BLD_INF_RULES.prj_exports += "./include/XQPublishAndSubscribeSettingsKey /epoc32/include/mw/XQPublishAndSubscribeSettingsKey" -BLD_INF_RULES.prj_exports += "./include/XQSettingsKey /epoc32/include/mw/XQSettingsKey" -BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqsettingsmanager.h /epoc32/include/mw/xqsettingsmanager.h" -BLD_INF_RULES.prj_exports += "./include/XQSettingsManager /epoc32/include/mw/XQSettingsManager" -BLD_INF_RULES.prj_exports += "./src/sysinfo/sysinfo_global.h /epoc32/include/mw/sysinfo_global.h" -BLD_INF_RULES.prj_exports += "./src/sysinfo/xqsysinfo.h /epoc32/include/mw/xqsysinfo.h" -BLD_INF_RULES.prj_exports += "./include/XQSysInfo /epoc32/include/mw/XQSysInfo" -BLD_INF_RULES.prj_exports += "./src/utils/utils_global.h /epoc32/include/mw/utils_global.h" -BLD_INF_RULES.prj_exports += "./src/utils/xqutils.h /epoc32/include/mw/xqutils.h" -BLD_INF_RULES.prj_exports += "./include/XQUtils /epoc32/include/mw/XQUtils" -BLD_INF_RULES.prj_exports += "./src/utils/xqconversions.h /epoc32/include/mw/xqconversions.h" -BLD_INF_RULES.prj_exports += "./include/XQConversions /epoc32/include/mw/XQConversions" -BLD_INF_RULES.prj_exports += "./src/keycapture/xqkeycapture.h /epoc32/include/mw/xqkeycapture.h" -BLD_INF_RULES.prj_exports += "./include/XQKeyCapture /epoc32/include/mw/XQKeyCapture" +BLD_INF_RULES.prj_exports += "./src/settingsmanager/settingsmanager_global.h $$MW_LAYER_PLATFORM_EXPORT_PATH(settingsmanager_global.h)" +BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqcentralrepositorysearchcriteria.h $$MW_LAYER_PLATFORM_EXPORT_PATH(xqcentralrepositorysearchcriteria.h)" +BLD_INF_RULES.prj_exports += "./include/XQCentralRepositorySearchCriteria $$MW_LAYER_PLATFORM_EXPORT_PATH(XQCentralRepositorySearchCriteria)" +BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqcentralrepositoryutils.h $$MW_LAYER_PLATFORM_EXPORT_PATH(xqcentralrepositoryutils.h)" +BLD_INF_RULES.prj_exports += "./include/XQCentralRepositoryUtils $$MW_LAYER_PLATFORM_EXPORT_PATH(XQCentralRepositoryUtils)" +BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqpublishandsubscribesecuritypolicy.h $$MW_LAYER_PLATFORM_EXPORT_PATH(xqpublishandsubscribesecuritypolicy.h)" +BLD_INF_RULES.prj_exports += "./include/XQPublishAndSubscribeSecurityPolicy $$MW_LAYER_PLATFORM_EXPORT_PATH(XQPublishAndSubscribeSecurityPolicy)" +BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqpublishandsubscribeutils.h $$MW_LAYER_PLATFORM_EXPORT_PATH(xqpublishandsubscribeutils.h)" +BLD_INF_RULES.prj_exports += "./include/XQPublishAndSubscribeUtils $$MW_LAYER_PLATFORM_EXPORT_PATH(XQPublishAndSubscribeUtils)" +BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqsettingskey.h $$MW_LAYER_PLATFORM_EXPORT_PATH(xqsettingskey.h)" +BLD_INF_RULES.prj_exports += "./include/XQCentralRepositorySettingsKey $$MW_LAYER_PLATFORM_EXPORT_PATH(XQCentralRepositorySettingsKey)" +BLD_INF_RULES.prj_exports += "./include/XQPublishAndSubscribeSettingsKey $$MW_LAYER_PLATFORM_EXPORT_PATH(XQPublishAndSubscribeSettingsKey)" +BLD_INF_RULES.prj_exports += "./include/XQSettingsKey $$MW_LAYER_PLATFORM_EXPORT_PATH(XQSettingsKey)" +BLD_INF_RULES.prj_exports += "./src/settingsmanager/xqsettingsmanager.h $$MW_LAYER_PLATFORM_EXPORT_PATH(xqsettingsmanager.h)" +BLD_INF_RULES.prj_exports += "./include/XQSettingsManager $$MW_LAYER_PLATFORM_EXPORT_PATH(XQSettingsManager)" +BLD_INF_RULES.prj_exports += "./src/sysinfo/sysinfo_global.h $$MW_LAYER_PLATFORM_EXPORT_PATH(sysinfo_global.h)" +BLD_INF_RULES.prj_exports += "./src/sysinfo/xqsysinfo.h $$MW_LAYER_PLATFORM_EXPORT_PATH(xqsysinfo.h)" +BLD_INF_RULES.prj_exports += "./include/XQSysInfo $$MW_LAYER_PLATFORM_EXPORT_PATH(XQSysInfo)" +BLD_INF_RULES.prj_exports += "./src/utils/utils_global.h $$MW_LAYER_PLATFORM_EXPORT_PATH(utils_global.h)" +BLD_INF_RULES.prj_exports += "./src/utils/xqutils.h $$MW_LAYER_PLATFORM_EXPORT_PATH(xqutils.h)" +BLD_INF_RULES.prj_exports += "./include/XQUtils $$MW_LAYER_PLATFORM_EXPORT_PATH(XQUtils)" +BLD_INF_RULES.prj_exports += "./src/utils/xqconversions.h $$MW_LAYER_PLATFORM_EXPORT_PATH(xqconversions.h)" +BLD_INF_RULES.prj_exports += "./include/XQConversions $$MW_LAYER_PLATFORM_EXPORT_PATH(XQConversions)" +BLD_INF_RULES.prj_exports += "./src/keycapture/xqkeycapture.h $$MW_LAYER_PLATFORM_EXPORT_PATH(xqkeycapture.h)" +BLD_INF_RULES.prj_exports += "./include/XQKeyCapture $$MW_LAYER_PLATFORM_EXPORT_PATH(XQKeyCapture)" BLD_INF_RULES.prj_exports += "./rom/qtmobileextensions.iby $$CORE_MW_LAYER_IBY_EXPORT_PATH(qtmobileextensions.iby)" } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/src/bwins/xqkeycaptureu.def --- a/qtmobileextensions/src/bwins/xqkeycaptureu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/src/bwins/xqkeycaptureu.def Mon May 03 13:18:40 2010 +0300 @@ -9,4 +9,10 @@ ?errorString@XqKeyCapture@@QBE?AVQString@@XZ @ 8 NONAME ; class QString XqKeyCapture::errorString(void) const ?captureKey@XqKeyCapture@@QAE_NW4Key@Qt@@V?$QFlags@W4KeyboardModifier@Qt@@@@1@Z @ 9 NONAME ; bool XqKeyCapture::captureKey(enum Qt::Key, class QFlags, class QFlags) ??1XqKeyCapture@@QAE@XZ @ 10 NONAME ; XqKeyCapture::~XqKeyCapture(void) + ?captureKeyUpAndDowns@XqKeyCapture@@QAE_NIV?$QFlags@W4KeyboardModifier@Qt@@@@0@Z @ 11 NONAME ; bool XqKeyCapture::captureKeyUpAndDowns(unsigned int, class QFlags, class QFlags) + ?captureKey@XqKeyCapture@@QAE_NIV?$QFlags@W4KeyboardModifier@Qt@@@@0@Z @ 12 NONAME ; bool XqKeyCapture::captureKey(unsigned int, class QFlags, class QFlags) + ?cancelCaptureKeyUpAndDowns@XqKeyCapture@@QAE_NIV?$QFlags@W4KeyboardModifier@Qt@@@@0@Z @ 13 NONAME ; bool XqKeyCapture::cancelCaptureKeyUpAndDowns(unsigned int, class QFlags, class QFlags) + ?captureLongKey@XqKeyCapture@@QAE_NIV?$QFlags@W4KeyboardModifier@Qt@@@@0W4LongFlags@1@@Z @ 14 NONAME ; bool XqKeyCapture::captureLongKey(unsigned int, class QFlags, class QFlags, enum XqKeyCapture::LongFlags) + ?cancelCaptureKey@XqKeyCapture@@QAE_NIV?$QFlags@W4KeyboardModifier@Qt@@@@0@Z @ 15 NONAME ; bool XqKeyCapture::cancelCaptureKey(unsigned int, class QFlags, class QFlags) + ?cancelCaptureLongKey@XqKeyCapture@@QAE_NIV?$QFlags@W4KeyboardModifier@Qt@@@@0W4LongFlags@1@@Z @ 16 NONAME ; bool XqKeyCapture::cancelCaptureLongKey(unsigned int, class QFlags, class QFlags, enum XqKeyCapture::LongFlags) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/src/eabi/xqkeycaptureu.def --- a/qtmobileextensions/src/eabi/xqkeycaptureu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/src/eabi/xqkeycaptureu.def Mon May 03 13:18:40 2010 +0300 @@ -11,4 +11,10 @@ _ZN12XqKeyCaptureD2Ev @ 10 NONAME _ZNK12XqKeyCapture11errorStringEv @ 11 NONAME _ZNK12XqKeyCapture7errorIdEv @ 12 NONAME + _ZN12XqKeyCapture10captureKeyEj6QFlagsIN2Qt16KeyboardModifierEES3_ @ 13 NONAME + _ZN12XqKeyCapture14captureLongKeyEj6QFlagsIN2Qt16KeyboardModifierEES3_NS_9LongFlagsE @ 14 NONAME + _ZN12XqKeyCapture16cancelCaptureKeyEj6QFlagsIN2Qt16KeyboardModifierEES3_ @ 15 NONAME + _ZN12XqKeyCapture20cancelCaptureLongKeyEj6QFlagsIN2Qt16KeyboardModifierEES3_NS_9LongFlagsE @ 16 NONAME + _ZN12XqKeyCapture20captureKeyUpAndDownsEj6QFlagsIN2Qt16KeyboardModifierEES3_ @ 17 NONAME + _ZN12XqKeyCapture26cancelCaptureKeyUpAndDownsEj6QFlagsIN2Qt16KeyboardModifierEES3_ @ 18 NONAME diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/src/keycapture/keycapture_s60_p.cpp --- a/qtmobileextensions/src/keycapture/keycapture_s60_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/src/keycapture/keycapture_s60_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -55,33 +55,67 @@ } delete mRequestsList; delete mMapper; +} +bool KeyCapturePrivate::captureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) +{ + return doCapture(mMapper->mapQtToS60Key(aKey), aModifiersMask, aModifier, + CaptureRequest::CaptureRequestTypeNormal); } -bool KeyCapturePrivate::captureKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier) +bool KeyCapturePrivate::captureKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) { - return doCapture(mMapper->mapQtToS60Key(aKey), aModifiersMask, aModifier, CaptureRequest::CaptureRequestTypeNormal); + return doCapture(aKey, aModifiersMask, aModifier, + CaptureRequest::CaptureRequestTypeNormal); +} + +bool KeyCapturePrivate::captureLongKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) +{ + return doCapture(mMapper->mapQtToS60Key(aKey), aModifiersMask, aModifier, + CaptureRequest::CaptureRequestTypeLong, aLongType); } -bool KeyCapturePrivate::captureLongKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier, XqKeyCapture::LongFlags aLongType) +bool KeyCapturePrivate::captureLongKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) { - return doCapture(mMapper->mapQtToS60Key(aKey), aModifiersMask, aModifier, CaptureRequest::CaptureRequestTypeLong, aLongType); + return doCapture(aKey, aModifiersMask, aModifier, + CaptureRequest::CaptureRequestTypeLong, aLongType); +} + +bool KeyCapturePrivate::captureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) +{ + return doCapture(mMapper->mapQtToS60ScanCodes(aKey), aModifiersMask, + aModifier, CaptureRequest::CaptureRequestTypeUpAndDown); } -bool KeyCapturePrivate::captureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier) +bool KeyCapturePrivate::captureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) { - return doCapture(mMapper->mapQtToS60ScanCodes(aKey), aModifiersMask, aModifier, CaptureRequest::CaptureRequestTypeUpAndDown); + return doCapture(aKey, aModifiersMask, + aModifier, CaptureRequest::CaptureRequestTypeUpAndDown); } -bool KeyCapturePrivate::doCapture(TUint aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier, CaptureRequest::CaptureRequestType aType, - XqKeyCapture::LongFlags aLongType) +bool KeyCapturePrivate::doCapture(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, + CaptureRequest::CaptureRequestType aType, + XqKeyCapture::LongFlags aLongType) { int err = mLastError; - CaptureRequest *req = new CaptureRequest(aKey, aModifiersMask, aModifier, aType, aLongType, mWindowGroup); + CaptureRequest *req = new CaptureRequest(aKey, aModifiersMask, aModifier, + aType, aLongType, mWindowGroup); mLastError = req->request(); mRequestsList->append(req); if (err != mLastError) @@ -90,35 +124,68 @@ return errorId() == KErrNone; } -bool KeyCapturePrivate::cancelCaptureKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier) +bool KeyCapturePrivate::cancelCaptureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) { - return doCancelCapture(mMapper->mapQtToS60Key(aKey), aModifiersMask, aModifier, - CaptureRequest::CaptureRequestTypeNormal); + return doCancelCapture(mMapper->mapQtToS60Key(aKey), + aModifiersMask, aModifier, + CaptureRequest::CaptureRequestTypeNormal); +} + +bool KeyCapturePrivate::cancelCaptureKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) +{ + return doCancelCapture(aKey, aModifiersMask, aModifier, + CaptureRequest::CaptureRequestTypeNormal); } -bool KeyCapturePrivate::cancelCaptureLongKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier, XqKeyCapture::LongFlags aLongType) +bool KeyCapturePrivate::cancelCaptureLongKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) { - return doCancelCapture(mMapper->mapQtToS60Key(aKey), aModifiersMask, aModifier, CaptureRequest::CaptureRequestTypeLong, aLongType); + return doCancelCapture(mMapper->mapQtToS60Key(aKey), aModifiersMask, + aModifier, CaptureRequest::CaptureRequestTypeLong, aLongType); +} + +bool KeyCapturePrivate::cancelCaptureLongKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) +{ + return doCancelCapture(aKey, aModifiersMask, aModifier, + CaptureRequest::CaptureRequestTypeLong, aLongType); } bool KeyCapturePrivate::cancelCaptureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier) { - return doCancelCapture(mMapper->mapQtToS60ScanCodes(aKey), aModifiersMask, aModifier, - CaptureRequest::CaptureRequestTypeUpAndDown); + return doCancelCapture(mMapper->mapQtToS60ScanCodes(aKey), + aModifiersMask, aModifier, + CaptureRequest::CaptureRequestTypeUpAndDown); } -bool KeyCapturePrivate::doCancelCapture(TUint aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier, CaptureRequest::CaptureRequestType aType, - XqKeyCapture::LongFlags aLongType) +bool KeyCapturePrivate::cancelCaptureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier) +{ + return doCancelCapture(aKey, aModifiersMask, aModifier, + CaptureRequest::CaptureRequestTypeUpAndDown); +} + +bool KeyCapturePrivate::doCancelCapture(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, + CaptureRequest::CaptureRequestType aType, + XqKeyCapture::LongFlags aLongType) { int err = mLastError; for (int i(0), size(mRequestsList->count()); i < size; i++) { CaptureRequest *r = mRequestsList->at(i); - if (r && r->matches(aKey, aModifiersMask, aModifier, aType, aLongType)) { + if (r && r->matches(aKey, aModifiersMask, aModifier, aType, + aLongType)) { mLastError = r->cancel(); mRequestsList->removeAt(i); delete r; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/src/keycapture/keycapture_s60_p.h --- a/qtmobileextensions/src/keycapture/keycapture_s60_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/src/keycapture/keycapture_s60_p.h Mon May 03 13:18:40 2010 +0300 @@ -31,33 +31,53 @@ class RWsSession; class QKeyMapperPrivate; #ifdef _XQKEYCAPTURE_UNITTEST_ - class MyTestWindowGroup; +class MyTestWindowGroup; #endif -class KeyCapturePrivate { +class KeyCapturePrivate + { public: KeyCapturePrivate(); ~KeyCapturePrivate(); - + bool captureKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier); + bool captureKey(TUint aKey, Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier); + bool captureLongKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier, XqKeyCapture::LongFlags aLongType); - bool captureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier); + bool captureLongKey(TUint aKey, Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, XqKeyCapture::LongFlags aLongType); + + bool captureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier); - + bool captureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier); + bool cancelCaptureKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier); - bool cancelCaptureLongKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier, XqKeyCapture::LongFlags aLongType); + bool cancelCaptureKey(TUint aKey, Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier); + + bool cancelCaptureLongKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType); - bool cancelCaptureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier); + bool cancelCaptureLongKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType); + + bool cancelCaptureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier); + + bool cancelCaptureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier); QString errorString() const; @@ -66,12 +86,16 @@ private: bool doCapture(TUint aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier, CaptureRequest::CaptureRequestType type, - XqKeyCapture::LongFlags aLongType = XqKeyCapture::LongWaitNotApplicable); + Qt::KeyboardModifiers aModifier, + CaptureRequest::CaptureRequestType type, + XqKeyCapture::LongFlags aLongType = + XqKeyCapture::LongWaitNotApplicable); bool doCancelCapture(TUint aKey, Qt::KeyboardModifiers aModifiersMask, - Qt::KeyboardModifiers aModifier, CaptureRequest::CaptureRequestType type, - XqKeyCapture::LongFlags aLongType = XqKeyCapture::LongWaitNotApplicable); + Qt::KeyboardModifiers aModifier, + CaptureRequest::CaptureRequestType type, + XqKeyCapture::LongFlags aLongType = + XqKeyCapture::LongWaitNotApplicable); void regenerateError(); @@ -85,6 +109,6 @@ #endif QList *mRequestsList; QKeyMapperPrivate* mMapper; -}; + }; #endif /* KEYCAPTUREPRIVATE_S60_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/src/keycapture/keycapture_stub_p.cpp --- a/qtmobileextensions/src/keycapture/keycapture_stub_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/src/keycapture/keycapture_stub_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -30,48 +30,119 @@ { } -void KeyCapturePrivate::captureKey(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier) +void KeyCapturePrivate::captureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) +{ + Q_UNUSED(aKey); + Q_UNUSED(aModifiersMask); + Q_UNUSED(aModifier); +} + +bool KeyCapturePrivate::captureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) { Q_UNUSED(aKey); Q_UNUSED(aModifiersMask); Q_UNUSED(aModifier); } -void KeyCapturePrivate::captureLongKey(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier, XqKeyCapture::LongFlags aLongType) +bool KeyCapturePrivate::captureKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) +{ + Q_UNUSED(aKey); + Q_UNUSED(aModifiersMask); + Q_UNUSED(aModifier); +} + +bool KeyCapturePrivate::captureLongKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) +{ + Q_UNUSED(aKey); + Q_UNUSED(aModifiersMask); + Q_UNUSED(aModifier); +} + +bool KeyCapturePrivate::captureLongKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) +{ + Q_UNUSED(aKey); + Q_UNUSED(aModifiersMask); + Q_UNUSED(aModifier); +} + +bool KeyCapturePrivate::captureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) { Q_UNUSED(aKey); Q_UNUSED(aModifiersMask); Q_UNUSED(aModifier); } -void KeyCapturePrivate::captureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier) +bool KeyCapturePrivate::captureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) +{ + Q_UNUSED(aKey); + Q_UNUSED(aModifiersMask); + Q_UNUSED(aModifier); +} + +bool KeyCapturePrivate::cancelCaptureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) +{ + Q_UNUSED(aKey); + Q_UNUSED(aModifiersMask); + Q_UNUSED(aModifier); +} + +bool KeyCapturePrivate::cancelCaptureKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier) { Q_UNUSED(aKey); Q_UNUSED(aModifiersMask); Q_UNUSED(aModifier); } -void KeyCapturePrivate::cancelCaptureKey(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier) +bool KeyCapturePrivate::cancelCaptureLongKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) { Q_UNUSED(aKey); Q_UNUSED(aModifiersMask); Q_UNUSED(aModifier); } -void KeyCapturePrivate::cancelCaptureLongKey(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier, XqKeyCapture::LongFlags aLongType) +bool KeyCapturePrivate::cancelCaptureLongKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) { Q_UNUSED(aKey); Q_UNUSED(aModifiersMask); Q_UNUSED(aModifier); } -void KeyCapturePrivate::cancelCaptureKeyUpAndDowns(Qt::Key aKey, - Qt::KeyboardModifier aModifiersMask, Qt::KeyboardModifier aModifier) +bool KeyCapturePrivate::cancelCaptureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier) +{ + Q_UNUSED(aKey); + Q_UNUSED(aModifiersMask); + Q_UNUSED(aModifier); +} + +bool KeyCapturePrivate::cancelCaptureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier) { Q_UNUSED(aKey); Q_UNUSED(aModifiersMask); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/src/keycapture/keycapture_stub_p.h --- a/qtmobileextensions/src/keycapture/keycapture_stub_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/src/keycapture/keycapture_stub_p.h Mon May 03 13:18:40 2010 +0300 @@ -31,23 +31,43 @@ KeyCapturePrivate(); ~KeyCapturePrivate(); - void captureKey(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier); + bool captureKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier); + + bool captureKey(TUint aKey, Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier); + + bool captureLongKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, XqKeyCapture::LongFlags aLongType); - void captureLongKey(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier, XqKeyCapture::LongFlags aLongType); + bool captureLongKey(TUint aKey, Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier, XqKeyCapture::LongFlags aLongType); - void captureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier); + bool captureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier); + + bool captureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier); - void cancelCaptureKey(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier); + bool cancelCaptureKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier); + + bool cancelCaptureKey(TUint aKey, Qt::KeyboardModifiers aModifiersMask, + Qt::KeyboardModifiers aModifier); + + bool cancelCaptureLongKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType); - void cancelCaptureLongKey(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier, XqKeyCapture::LongFlags aLongType); + bool cancelCaptureLongKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType); - void cancelCaptureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifier aModifiersMask, - Qt::KeyboardModifier aModifier); + bool cancelCaptureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier); + + bool cancelCaptureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMask, Qt::KeyboardModifiers aModifier); QString errorString() const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/src/keycapture/tsrc/test_xqkeycapture.cpp --- a/qtmobileextensions/src/keycapture/tsrc/test_xqkeycapture.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/src/keycapture/tsrc/test_xqkeycapture.cpp Mon May 03 13:18:40 2010 +0300 @@ -23,6 +23,8 @@ #include #include +#include + class TestXqKeyCapture : public QObject { Q_OBJECT @@ -41,24 +43,47 @@ void testCaptureKey_data(); void testCaptureKey(); + + void testCaptureKey_S60_data(); + void testCaptureKey_S60(); void testCaptureKeyUpAndDowns_data(); void testCaptureKeyUpAndDowns(); + + void testCaptureKeyUpAndDowns_S60_data(); + void testCaptureKeyUpAndDowns_S60(); void testCaptureLongKey_data(); void testCaptureLongKey(); + + void testCaptureLongKey_S60_data(); + void testCaptureLongKey_S60(); void testCancelCaptureKey_data(); void testCancelCaptureKey(); + + void testCancelCaptureKey_S60_data(); + void testCancelCaptureKey_S60(); void testCancelCaptureKeyUpAndDowns_data(); void testCancelCaptureKeyUpAndDowns(); + + void testCancelCaptureKeyUpAndDowns_S60_data(); + void testCancelCaptureKeyUpAndDowns_S60(); void testCancelCaptureLongKey_data(); void testCancelCaptureLongKey(); - + + void testCancelCaptureLongKey_S60_data(); + void testCancelCaptureLongKey_S60(); + void testErrorString(); void testErrorId(); + + void testKeyMapperFile(); + +private: + QString clearString(const QString& line, const QString& prefix, const QString& comment); private: XqKeyCapture* keyCapture; @@ -189,10 +214,10 @@ << true << static_cast ( EKeyRightCtrl ); - QTest::newRow("meta_key") << static_cast ( Qt::Key_Meta ) + QTest::newRow("meta_key") << static_cast ( Qt::Key_Super_R ) << static_cast ( Qt::NoModifier ) << static_cast ( Qt::NoModifier ) - << static_cast ( EKeyLeftFunc ) + << static_cast ( EKeyRightFunc ) << static_cast ( 0 ) << static_cast ( 0 ) << static_cast ( 12 ) @@ -296,6 +321,67 @@ } //////////////////////////////////////////////////////////////// +//Capture Key Up And Downs +//////////////////////////////////////////////////////////////// +void TestXqKeyCapture::testCaptureKeyUpAndDowns_S60_data() +{ + QTest::addColumn("qtKey"); + QTest::addColumn("qtMask"); + QTest::addColumn("qtModifier"); + + QTest::addColumn("symbianKey"); + QTest::addColumn("symbianMask"); + QTest::addColumn("symbianModifier"); + + QTest::addColumn("reqNum"); + + QTest::addColumn("additional"); + QTest::addColumn("additionalSymbianKey"); + + QTest::newRow("esc_key") << static_cast ( EStdKeyEscape ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( EStdKeyEscape ) + << static_cast ( 0 ) + << static_cast ( 0 ) + << static_cast ( 12 ) + << false + << static_cast ( 0 ); +} + +void TestXqKeyCapture::testCaptureKeyUpAndDowns_S60() +{ + numOfArgs = 3; + actionType = WGATCaptureKeyUpAndDowns; + additionalResult = false; + ignoreWindowGroupAction = false; + + QFETCH(unsigned int, qtKey); + QFETCH(unsigned int, qtMask); + QFETCH(unsigned int, qtModifier); + + QFETCH(unsigned int, symbianKey); + QFETCH(unsigned int, symbianMask); + QFETCH(unsigned int, symbianModifier); + + QFETCH(long int, reqNum); + + QFETCH(bool, additional); + QFETCH(unsigned int, additionalSymbianKey); + + willBeAdditionalRequest = additional; + + results.clear(); + results << symbianKey << symbianMask << symbianModifier; + + additionalResults.clear(); + additionalResults << additionalSymbianKey << symbianMask << symbianModifier; + + MyTestWindowGroup::Instance()->setRequestNumber(reqNum); + keyCapture->captureKeyUpAndDowns( static_cast (qtKey), Qt::KeyboardModifier( qtMask ), Qt::KeyboardModifier( qtModifier ) ); +} + +//////////////////////////////////////////////////////////////// //Capture Long Key //////////////////////////////////////////////////////////////// void TestXqKeyCapture::testCaptureLongKey_data() @@ -368,6 +454,78 @@ } //////////////////////////////////////////////////////////////// +//Capture Long Key +//////////////////////////////////////////////////////////////// +void TestXqKeyCapture::testCaptureLongKey_S60_data() +{ + QTest::addColumn("qtKey"); + QTest::addColumn("qtMask"); + QTest::addColumn("qtModifier"); + QTest::addColumn("longFlags"); + + QTest::addColumn("symbianKey"); + QTest::addColumn("symbianMask"); + QTest::addColumn("symbianModifier"); + QTest::addColumn("symbianPriority"); + QTest::addColumn("symbianLongFlags"); + + QTest::addColumn("reqNum"); + + QTest::addColumn("additional"); + QTest::addColumn("additionalSymbianKey"); + + + QTest::newRow("esc_key") << static_cast ( EKeyEscape ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( XqKeyCapture::LongNormal ) + << static_cast ( EKeyEscape ) + << static_cast ( 0 ) + << static_cast ( 0 ) + << static_cast ( 0 ) //priority + << static_cast ( XqKeyCapture::LongNormal ) + << static_cast ( 12 ) + << false + << static_cast ( 0 ); + +} + +void TestXqKeyCapture::testCaptureLongKey_S60() +{ + numOfArgs = 6; + actionType = WGATCaptureLongKey; + additionalResult = false; + ignoreWindowGroupAction = false; + + QFETCH(unsigned int, qtKey); + QFETCH(unsigned int, qtMask); + QFETCH(unsigned int, qtModifier); + QFETCH(int, longFlags); + + QFETCH(unsigned int, symbianKey); + QFETCH(unsigned int, symbianMask); + QFETCH(unsigned int, symbianModifier); + QFETCH(int, symbianPriority); + QFETCH(int, symbianLongFlags); + + QFETCH(long int, reqNum); + + QFETCH(bool, additional); + QFETCH(unsigned int, additionalSymbianKey); + + willBeAdditionalRequest = additional; + + results.clear(); + results << symbianKey << symbianKey << symbianMask << symbianModifier << symbianPriority << symbianLongFlags; + + additionalResults.clear(); + additionalResults << additionalSymbianKey << symbianMask << symbianModifier << symbianPriority << symbianLongFlags; + + MyTestWindowGroup::Instance()->setRequestNumber(reqNum); + keyCapture->captureLongKey( static_cast (qtKey), Qt::KeyboardModifier( qtMask ), Qt::KeyboardModifier( qtModifier ), static_cast (longFlags) ); +} + +//////////////////////////////////////////////////////////////// // CANCEL //Cancel Capture Key //////////////////////////////////////////////////////////////// @@ -460,6 +618,98 @@ } //////////////////////////////////////////////////////////////// +// CANCEL +//Cancel Capture Key +//////////////////////////////////////////////////////////////// +void TestXqKeyCapture::testCancelCaptureKey_S60_data() +{ + QTest::addColumn("qtKey"); + QTest::addColumn("qtMask"); + QTest::addColumn("qtModifier"); + + QTest::addColumn("reqNum"); + + QTest::addColumn("additional"); + QTest::addColumn("additionalReqNum"); + + QTest::newRow("esc_key") << static_cast ( EKeyEscape ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( 12 ) + << false + << static_cast ( 0 ); + + QTest::newRow("esc_key_not_supported") << static_cast ( EKeyEscape ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( KErrNotSupported ) + << false + << static_cast ( 0 ); + + QTest::newRow("esc_key_modifiers") << static_cast ( EKeyEscape ) + << static_cast ( Qt::ShiftModifier | Qt::ControlModifier | Qt::AltModifier | Qt:: KeypadModifier ) + << static_cast ( Qt::ShiftModifier | Qt::ControlModifier | Qt::AltModifier | Qt:: KeypadModifier ) + << static_cast ( 13 ) + << false + << static_cast ( 0 ); + + QTest::newRow("shift_key") << static_cast ( EKeyLeftShift ) + << static_cast ( Qt::ShiftModifier ) + << static_cast ( Qt::ControlModifier ) + << static_cast ( 15 ) + << true + << static_cast ( 16 ); + + QTest::newRow("control_key") << static_cast ( EKeyLeftCtrl ) + << static_cast ( Qt::ControlModifier ) + << static_cast ( Qt::ShiftModifier ) + << static_cast ( 17 ) + << true + << static_cast ( 18 ); + + QTest::newRow("meta_key") << static_cast ( EKeyRightCtrl ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( 19 ) + << true + << static_cast ( 20 ); + + +} + +void TestXqKeyCapture::testCancelCaptureKey_S60() +{ + numOfArgs = 1; + actionType = WGATCancelCaptureKey; + additionalResult = false; + + QFETCH(unsigned int, qtKey); + QFETCH(unsigned int, qtMask); + QFETCH(unsigned int, qtModifier); + + QFETCH(long int, reqNum); + + QFETCH(bool, additional); + QFETCH(long int, additionalReqNum); + + willBeAdditionalRequest = additional; + additionalRequestHandle = additionalReqNum; + + cancelResults.clear(); + cancelResults << reqNum; + + cancelAdditionalResults.clear(); + cancelAdditionalResults << additionalReqNum; + + MyTestWindowGroup::Instance()->setRequestNumber(reqNum); + ignoreWindowGroupAction = true; + keyCapture->captureKey( static_cast (qtKey), Qt::KeyboardModifier( qtMask ), Qt::KeyboardModifier( qtModifier ) ); + ignoreWindowGroupAction = false; + willBeAdditionalRequest = additional; + keyCapture->cancelCaptureKey( static_cast (qtKey), Qt::KeyboardModifier( qtMask ), Qt::KeyboardModifier( qtModifier ) ); +} + +//////////////////////////////////////////////////////////////// //Cancel Capture Key Up And Downs //////////////////////////////////////////////////////////////// void TestXqKeyCapture::testCancelCaptureKeyUpAndDowns_data() @@ -515,6 +765,61 @@ } //////////////////////////////////////////////////////////////// +//Cancel Capture Key Up And Downs +//////////////////////////////////////////////////////////////// +void TestXqKeyCapture::testCancelCaptureKeyUpAndDowns_S60_data() +{ + QTest::addColumn("qtKey"); + QTest::addColumn("qtMask"); + QTest::addColumn("qtModifier"); + + QTest::addColumn("reqNum"); + + QTest::addColumn("additional"); + QTest::addColumn("additionalReqNum"); + + QTest::newRow("esc_key") << static_cast ( EKeyEscape ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( 34 ) + << false + << static_cast ( 35 ); + +} + +void TestXqKeyCapture::testCancelCaptureKeyUpAndDowns_S60() +{ + numOfArgs = 1; + actionType = WGATCancelCaptureKeyUpAndDowns; + additionalResult = false; + + QFETCH(unsigned int, qtKey); + QFETCH(unsigned int, qtMask); + QFETCH(unsigned int, qtModifier); + + QFETCH(long int, reqNum); + + QFETCH(bool, additional); + QFETCH(long int, additionalReqNum); + + willBeAdditionalRequest = additional; + additionalRequestHandle = additionalReqNum; + + cancelResults.clear(); + cancelResults << reqNum; + + cancelAdditionalResults.clear(); + cancelAdditionalResults << additionalReqNum; + + MyTestWindowGroup::Instance()->setRequestNumber(reqNum); + ignoreWindowGroupAction = true; + keyCapture->captureKeyUpAndDowns( static_cast (qtKey), Qt::KeyboardModifier( qtMask ), Qt::KeyboardModifier( qtModifier ) ); + ignoreWindowGroupAction = false; + willBeAdditionalRequest = additional; + keyCapture->cancelCaptureKeyUpAndDowns( static_cast (qtKey), Qt::KeyboardModifier( qtMask ), Qt::KeyboardModifier( qtModifier ) ); +} + +//////////////////////////////////////////////////////////////// //Cancel Capture Long Key //////////////////////////////////////////////////////////////// void TestXqKeyCapture::testCancelCaptureLongKey_data() @@ -577,6 +882,178 @@ } //////////////////////////////////////////////////////////////// +//Cancel Capture Long Key +//////////////////////////////////////////////////////////////// +void TestXqKeyCapture::testCancelCaptureLongKey_S60_data() +{ + QTest::addColumn("qtKey"); + QTest::addColumn("qtMask"); + QTest::addColumn("qtModifier"); + QTest::addColumn("longFlags"); + + QTest::addColumn("reqNum"); + + QTest::addColumn("additional"); + QTest::addColumn("additionalReqNum"); + + QTest::newRow("esc_key") << static_cast ( EKeyEscape ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( XqKeyCapture::LongNormal ) + << static_cast ( 22 ) + << false + << static_cast ( 23 ); + + + + + +} + +void TestXqKeyCapture::testCancelCaptureLongKey_S60() +{ + numOfArgs = 1; + actionType = WGATCancelCaptureLongKey; + additionalResult = false; + + QFETCH(unsigned int, qtKey); + QFETCH(unsigned int, qtMask); + QFETCH(unsigned int, qtModifier); + QFETCH(int, longFlags); + + QFETCH(long int, reqNum); + + QFETCH(bool, additional); + QFETCH(long int, additionalReqNum); + + willBeAdditionalRequest = additional; + additionalRequestHandle = additionalReqNum; + + cancelResults.clear(); + cancelResults << reqNum; + + cancelAdditionalResults.clear(); + cancelAdditionalResults << additionalReqNum; + + MyTestWindowGroup::Instance()->setRequestNumber(reqNum); + ignoreWindowGroupAction = true; + keyCapture->captureLongKey( static_cast (qtKey), Qt::KeyboardModifier( qtMask ), Qt::KeyboardModifier( qtModifier ), static_cast (longFlags) ); + ignoreWindowGroupAction = false; + willBeAdditionalRequest = additional; + keyCapture->cancelCaptureLongKey( static_cast (qtKey), Qt::KeyboardModifier( qtMask ), Qt::KeyboardModifier( qtModifier ), static_cast (longFlags) ); +} + +void TestXqKeyCapture::testCaptureKey_S60_data() +{ + QTest::addColumn("s60Key"); + QTest::addColumn("qtMask"); + QTest::addColumn("qtModifier"); + + QTest::addColumn("symbianKey"); + QTest::addColumn("symbianMask"); + QTest::addColumn("symbianModifier"); + + QTest::addColumn("reqNum"); + + QTest::addColumn("additional"); + QTest::addColumn("additionalSymbianKey"); + + QTest::newRow("esc_key") << static_cast ( EKeyEscape ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( EKeyEscape ) + << static_cast ( 0 ) + << static_cast ( 0 ) + << static_cast ( 12 ) + << false + << static_cast ( 0 ); + + QTest::newRow("esc_key_not_supported") << static_cast ( EKeyEscape ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( EKeyEscape ) + << static_cast ( 0 ) + << static_cast ( 0 ) + << static_cast ( KErrNotSupported ) + << false + << static_cast ( 0 ); + + QTest::newRow("esc_key_modifiers") << static_cast ( EKeyEscape ) + << static_cast ( Qt::ShiftModifier | Qt::ControlModifier | Qt::AltModifier | Qt:: KeypadModifier ) + << static_cast ( Qt::ShiftModifier | Qt::ControlModifier | Qt::AltModifier | Qt:: KeypadModifier ) + << static_cast ( EKeyEscape ) + << static_cast ( EModifierShift | EModifierCtrl | EModifierAlt | EModifierKeypad ) + << static_cast ( EModifierShift | EModifierCtrl | EModifierAlt | EModifierKeypad ) + << static_cast ( 13 ) + << false + << static_cast ( 0 ); + + QTest::newRow("shift_key") << static_cast ( EKeyLeftShift ) + << static_cast ( Qt::ShiftModifier ) + << static_cast ( Qt::ShiftModifier ) + << static_cast ( EKeyLeftShift ) + << static_cast ( EModifierShift ) + << static_cast ( EModifierShift ) + << static_cast ( 12 ) + << true + << static_cast ( EKeyRightShift ); + + QTest::newRow("control_key") << static_cast ( EKeyRightCtrl ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( EKeyRightCtrl ) + << static_cast ( 0 ) + << static_cast ( 0 ) + << static_cast ( 12 ) + << true + << static_cast ( EKeyRightFunc ); + + QTest::newRow("meta_key") << static_cast ( EKeyLeftCtrl ) + << static_cast ( Qt::NoModifier ) + << static_cast ( Qt::NoModifier ) + << static_cast ( EKeyLeftCtrl ) + << static_cast ( 0 ) + << static_cast ( 0 ) + << static_cast ( 12 ) + << true + << static_cast ( EKeyLeftFunc ); + + +} + +void TestXqKeyCapture::testCaptureKey_S60() +{ + numOfArgs = 3; + actionType = WGATCaptureKey; + additionalResult = false; + ignoreWindowGroupAction = false; + + QFETCH(unsigned int, s60Key); + QFETCH(unsigned int, qtMask); + QFETCH(unsigned int, qtModifier); + + QFETCH(unsigned int, symbianKey); + QFETCH(unsigned int, symbianMask); + QFETCH(unsigned int, symbianModifier); + + QFETCH(long int, reqNum); + + QFETCH(bool, additional); + QFETCH(unsigned int, additionalSymbianKey); + + willBeAdditionalRequest = additional; + + results.clear(); + results << symbianKey << symbianMask << symbianModifier; + + additionalResults.clear(); + additionalResults << additionalSymbianKey << symbianMask << symbianModifier; + + MyTestWindowGroup::Instance()->setRequestNumber(reqNum); + keyCapture->captureKey( static_cast (s60Key), Qt::KeyboardModifier( qtMask ), Qt::KeyboardModifier( qtModifier ) ); +} + +//////////////////////////////////////////////////////////////// // ERRORS //errorString //////////////////////////////////////////////////////////////// @@ -594,6 +1071,61 @@ keyCapture->errorId(); } +QString TestXqKeyCapture::clearString(const QString& line, const QString& prefix, const QString& comment) { + QString s(line); + s.replace(prefix, comment); + s.replace(" ", ""); + s.replace("\t", ""); + return s.trimmed(); +} + +//////////////////////////////////////////////////////////////// +// TEST KEY MAPPER FILE +//////////////////////////////////////////////////////////////// +void TestXqKeyCapture::testKeyMapperFile() +{ + QString prefix(" keyMapping.append(KeyMapping("); + QString comment("//"); + + QStringList qt; + QStringList kc; + + QFile qtFile("c:\qkeymapper_s60.cpp"); + QVERIFY(qtFile.open(QIODevice::ReadOnly | QIODevice::Text)); + + QFile kcFile("c:\keymapper.cpp"); + QVERIFY(kcFile.open(QIODevice::ReadOnly | QIODevice::Text)); + + QTextStream inQtFile(&qtFile); + while (!inQtFile.atEnd()) { + QString line = inQtFile.readLine(); + if (line.contains(prefix) && !line.contains(comment)) { + qt.append(clearString(line, prefix, comment)); + } + } + + QTextStream inKcFile(&kcFile); + while (!inKcFile.atEnd()) { + QString line = inKcFile.readLine(); + if (line.contains(prefix) && !line.contains(comment)) { + kc.append(clearString(line, prefix, comment)); + } + } + + QVERIFY(qt.size() == kc.size()); + + for(int i = 0; i < kc.size(); i++) { + QString keys = kc.at(i); + QVERIFY(qt.contains(keys)); + } + + for(int i = 0; i < qt.size(); i++) { + QString keys = qt.at(i); + QVERIFY(kc.contains(keys)); + } +} + + //////////////////////////////////////////////////////////////// // REQUEST SLOT //windowGroupAction diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/src/keycapture/tsrc/tsrc.pro --- a/qtmobileextensions/src/keycapture/tsrc/tsrc.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/src/keycapture/tsrc/tsrc.pro Mon May 03 13:18:40 2010 +0300 @@ -46,14 +46,20 @@ symbian { HEADERS += ../keycapture_s60_p.h \ - ../capturerequest_s60.h + ../capturerequest_s60.h \ + ../keymapper.h SOURCES +=../keycapture_s60_p.cpp \ - ../capturerequest_s60.cpp + ../capturerequest_s60.cpp \ + ../keymapper.cpp + + sourcefiles.sources += r:\sf\mw\qt\src\gui\kernel\qkeymapper_s60.cpp + sourcefiles.sources += r:\sf\mw\qtextensions\qtmobileextensions\src\keycapture\keymapper.cpp + sourcefiles.path = / + DEPLOYMENT += sourcefiles } else { HEADERS += ../keycapture_stub_p.h SOURCES += ./keycapture_stub_p.cpp } - CONFIG += qtestlib console diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/src/keycapture/xqkeycapture.cpp --- a/qtmobileextensions/src/keycapture/xqkeycapture.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/src/keycapture/xqkeycapture.cpp Mon May 03 13:18:40 2010 +0300 @@ -24,58 +24,198 @@ #include "keycapture_p.h" #include +/*! + Constructor. +*/ XqKeyCapture::XqKeyCapture() : d(new KeyCapturePrivate()) { } +/*! + Destructor. +*/ XqKeyCapture::~XqKeyCapture() { delete d; } -bool XqKeyCapture::captureKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap, - Qt::KeyboardModifiers aModifier) +/*! + Selects a given key for capturing key pressing. Requires a Qt key code. + \param aKey A Qt key. + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false. + */ +bool XqKeyCapture::captureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier) +{ + return d->captureKey(aKey, aModifiersMap, aModifier); +} + +/*! + Selects a given key for capturing key pressing. Requires a S60 key code (TKeyCode). + \param aKey A S60 key code (TKeyCode). + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false. + */ +bool XqKeyCapture::captureKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier) { return d->captureKey(aKey, aModifiersMap, aModifier); } -bool XqKeyCapture::captureLongKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap, - Qt::KeyboardModifiers aModifier, XqKeyCapture::LongFlags aLongType) +/*! + Selects a given key for capturing long pressing. Requires a Qt key code. + \param aKey A Qt key. + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false. + */ +bool XqKeyCapture::captureLongKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) { return d->captureLongKey(aKey, aModifiersMap, aModifier, aLongType); } -bool XqKeyCapture::captureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap, - Qt::KeyboardModifiers aModifier) +/*! + Selects a given key for capturing long pressing. Requires a S60 key code (TKeyCode). + \param aKey A S60 key code (TKeyCode). + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false. + */ +bool XqKeyCapture::captureLongKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) +{ + return d->captureLongKey(aKey, aModifiersMap, aModifier, aLongType); +} + +/*! + Selects a given key for capturing pressing up and down. Requires a Qt key code. + \param aKey A Qt key. + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false. + */ +bool XqKeyCapture::captureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier) +{ + return d->captureKeyUpAndDowns(aKey, aModifiersMap, aModifier); +} + +/*! + Selects a given key for capturing pressing up and down. Requires a S60 key scan code (TStdScanCode). + \param aKey A S60 key scan code (TStdScanCode). + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully added to the capturing system, otherwise returns false. + */ +bool XqKeyCapture::captureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier) { return d->captureKeyUpAndDowns(aKey, aModifiersMap, aModifier); } -bool XqKeyCapture::cancelCaptureKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap, - Qt::KeyboardModifiers aModifier) +/*! + Deselects a given key from key capturing. Requires a Qt key code. + \param aKey A Qt key. + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false. + */ +bool XqKeyCapture::cancelCaptureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier) +{ + return d->cancelCaptureKey(aKey, aModifiersMap, aModifier); +} + +/*! + Deselects a given key from key capturing. Requires a S60 key code (TKeyCode). + \param aKey A S60 key code (TKeyCode). + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false. + */ +bool XqKeyCapture::cancelCaptureKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier) { return d->cancelCaptureKey(aKey, aModifiersMap, aModifier); } -bool XqKeyCapture::cancelCaptureLongKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap, - Qt::KeyboardModifiers aModifier, XqKeyCapture::LongFlags aLongType) +/*! + Deselects a given key from capturing long pressing. Requires a Qt key code. + \param aKey A Qt key. + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false. + */ +bool XqKeyCapture::cancelCaptureLongKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) { - return d->cancelCaptureLongKey(aKey, aModifiersMap, aModifier, aLongType); + return d->cancelCaptureLongKey(aKey, aModifiersMap, aModifier, + aLongType); } -bool XqKeyCapture::cancelCaptureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap, - Qt::KeyboardModifiers aModifier) +/*! + Deselects a given key from capturing long pressing. Requires a S60 key code (TKeyCode). + \param aKey A S60 key code (TKeyCode). + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false. + */ +bool XqKeyCapture::cancelCaptureLongKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier, + XqKeyCapture::LongFlags aLongType) +{ + return d->cancelCaptureLongKey(aKey, aModifiersMap, aModifier, + aLongType); +} + +/*! + Deselects a given key from capturing pressing up and down. Requires a Qt key code. + \param aKey A Qt key. + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false. + */ +bool XqKeyCapture::cancelCaptureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier) { return d->cancelCaptureKeyUpAndDowns(aKey, aModifiersMap, aModifier); } +/*! + Deselects a given key from capturing pressing up and down. Requires a S60 key scan code (TStdScanCode). + \param aKey A S60 key scan code (TStdScanCode). + \param aModifiersMap + \param aModifier + \retval Returns true if aKey was succesfully removed from the capturing system, otherwise returns false. + */ +bool XqKeyCapture::cancelCaptureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMap, Qt::KeyboardModifiers aModifier) +{ + return d->cancelCaptureKeyUpAndDowns(aKey, aModifiersMap, aModifier); +} + +/*! + Returns latest error string. + \retval Latest error string. + */ QString XqKeyCapture::errorString() const { return d->errorString(); } +/*! + Returns latest error id. + \retval Latest error id. + */ int XqKeyCapture::errorId() const { return d->errorId(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobileextensions/src/keycapture/xqkeycapture.h --- a/qtmobileextensions/src/keycapture/xqkeycapture.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobileextensions/src/keycapture/xqkeycapture.h Mon May 03 13:18:40 2010 +0300 @@ -52,24 +52,58 @@ ~XqKeyCapture(); - bool captureKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + bool captureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, Qt::KeyboardModifiers aModifier = Qt::NoModifier); - bool captureLongKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, - Qt::KeyboardModifiers aModifier = Qt::NoModifier, XqKeyCapture::LongFlags aLongType = XqKeyCapture::LongNormal); + bool captureKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier); + + bool captureLongKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier, + XqKeyCapture::LongFlags aLongType = XqKeyCapture::LongNormal); - bool captureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + bool captureLongKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier, + XqKeyCapture::LongFlags aLongType = XqKeyCapture::LongNormal); + + bool captureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, Qt::KeyboardModifiers aModifier = Qt::NoModifier); + bool captureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier); - bool cancelCaptureKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + + bool cancelCaptureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, Qt::KeyboardModifiers aModifier = Qt::NoModifier); - bool cancelCaptureLongKey(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, - Qt::KeyboardModifiers aModifier = Qt::NoModifier, XqKeyCapture::LongFlags aLongType = XqKeyCapture::LongNormal); + bool cancelCaptureKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier); + + bool cancelCaptureLongKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier, + XqKeyCapture::LongFlags aLongType = XqKeyCapture::LongNormal); - bool cancelCaptureKeyUpAndDowns(Qt::Key aKey, Qt::KeyboardModifiers aModifiersMap = - Qt::NoModifier, Qt::KeyboardModifiers aModifier = Qt::NoModifier); + bool cancelCaptureLongKey(TUint aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier, + XqKeyCapture::LongFlags aLongType = XqKeyCapture::LongNormal); + + bool cancelCaptureKeyUpAndDowns(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier); + + bool cancelCaptureKeyUpAndDowns(TUint aKey, + Qt::KeyboardModifiers aModifiersMap = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier); QString errorString() const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/.gitignore --- a/qtmobility/.gitignore Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/.gitignore Mon May 03 13:18:40 2010 +0300 @@ -19,7 +19,6 @@ *.ib_pdb_index build include/* -config.pri config.in config.log bin/servicexmlgen* @@ -38,9 +37,13 @@ #Symbian specific *.mmp +*.pkg bld.inf* ABLD.BAT *.mk +*.rss +*.sis +*.loc *.sisx .make.cache qmakepluginstubs diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/bin/rununittests.bat --- a/qtmobility/bin/rununittests.bat Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/bin/rununittests.bat Mon May 03 13:18:40 2010 +0300 @@ -68,7 +68,11 @@ tst_qgeopositioninfosource.exe tst_qgeoareamonitor.exe tst_qlocationutils.exe -tst_qnmeapositioninfosource.exe +tst_dummynmeapositioninfosource.exe +tst_qnmeapositioninfosource_realtime.exe +tst_qnmeapositioninfosource_realtime_generic.exe +tst_qnmeapositioninfosource_simulation.exe +tst_qnmeapositioninfosource_simulation_generic.exe ::Publish and Subscribe tst_qvaluespace.exe @@ -89,7 +93,6 @@ ::QMedia tst_qaudiocapturesource.exe -tst_qcamera.exe tst_qgraphicsvideoitem.exe tst_qmediacontent.exe tst_qmediaimageviewer.exe diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/bin/rununittests.sh --- a/qtmobility/bin/rununittests.sh Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/bin/rununittests.sh Mon May 03 13:18:40 2010 +0300 @@ -77,14 +77,18 @@ ./tst_qgeosatelliteinfo ./tst_qgeosatelliteinfosource ./tst_qlocationutils -./tst_qnmeapositioninfosource +./tst_dummynmeapositioninfosource +./tst_qnmeapositioninfosource_realtime +./tst_qnmeapositioninfosource_realtime_generic +./tst_qnmeapositioninfosource_simulation +./tst_qnmeapositioninfosource_simulation_generic #Publish and Subscribe ./tst_qmallocpool ./tst_qpacket ./tst_qpacketprotocol ./tst_qvaluespace -./tst_qvaluespaceprovider +./tst_qvaluespacepublisher ./tst_qvaluespacesubscriber ./tst_qvaluespacesubscriber_oop ./tst_qsystemreadwritelock @@ -101,7 +105,6 @@ #QMedia ./tst_qaudiocapturesource -./tst_qcamera ./tst_qgraphicsvideoitem ./tst_qmediacontent ./tst_qmediaimageviewer diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/common.pri --- a/qtmobility/common.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/common.pri Mon May 03 13:18:40 2010 +0300 @@ -13,6 +13,11 @@ include(staticconfig.pri) +symbian:contains(symbian_symbols_unfrozen,1) { + #see configure.bat for details + MMP_RULES+="EXPORTUNFROZEN" +} + mac { contains(QT_CONFIG, qt_framework):contains(TEMPLATE, lib) { #MacOSX always builds debug and release libs when using mac framework @@ -74,7 +79,7 @@ contains(QT_CONFIG, reduce_exports):CONFIG+=hide_symbols #export more symbols if we build the unit tests -#contains(build_unit_tests, yes):DEFINES+=QTM_BUILD_UNITTESTS +contains(build_unit_tests, yes):DEFINES+=QTM_BUILD_UNITTESTS #test whether we have a unit test !testcase { @@ -108,11 +113,6 @@ QMAKE_RPATHDIR += $$OUTPUT_DIR/lib } -# On Symbian, we are freezing libraryies only -#symbian:!isEmpty(defFilePath) { -# MMP_RULES += "EXPORTUNFROZEN" -#} - contains(TEMPLATE,.*lib):DEFINES += QT_SHARED maemo6 { @@ -124,10 +124,6 @@ maemo5 { DEFINES+= Q_WS_MAEMO_5 } -maemo* { - LIBS += -L/opt/qt4-maemo5/lib - QMAKE_LFLAGS += -Wl,-rpath,/opt/qt4-maemo5/lib -} wince* { ### Bearer Management diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/config.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/config.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,16 @@ +build_unit_tests = no +build_examples = no +build_docs = no +build_tools = no +qmf_enabled = no +isEmpty($$QT_MOBILITY_INCLUDE):QT_MOBILITY_INCLUDE=$$QT_MOBILITY_PREFIX/include +isEmpty($$QT_MOBILITY_LIB):QT_MOBILITY_LIB=$$QT_MOBILITY_PREFIX/lib +isEmpty($$QT_MOBILITY_BIN):QT_MOBILITY_BIN=$$QT_MOBILITY_PREFIX/bin +mobility_modules = bearer location serviceframework publishsubscribe systeminfo messaging +maemo5|maemo6:mobility_modules -= systeminfo +contains(mobility_modules,versit): mobility_modules *= contacts +lbt_enabled = yes +snap_enabled = yes +occ_enabled = yes +symbiancntsim_enabled = yes +MOBILITY_SD_MCL_BUILD = yes \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/config.tests/lbt/lbt.pro --- a/qtmobility/config.tests/lbt/lbt.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/config.tests/lbt/lbt.pro Mon May 03 13:18:40 2010 +0300 @@ -11,5 +11,5 @@ # Input SOURCES += main.cpp -INCLUDEPATH += $$EPOCROOT\epoc32\include\LBTHeaders +INCLUDEPATH += $${EPOCROOT}epoc32\include\LBTHeaders LIBS += -llbt diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/config.tests/maemo-icd-network-wlan/maemo-icd-network-wlan.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/config.tests/maemo-icd-network-wlan/maemo-icd-network-wlan.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,11 @@ +TEMPLATE = app +TARGET = +DEPENDPATH += . +INCLUDEPATH += . + +# Input +SOURCES += main.cpp +QT+=dbus network + +CONFIG += link_pkgconfig +PKGCONFIG += glib-2.0 dbus-glib-1 gconf-2.0 osso-ic conninet diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/config.tests/maemo-icd-network-wlan/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/config.tests/maemo-icd-network-wlan/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,6 @@ +#include "libicd-network-wlan-dev.h" + +int main(int, char**) +{ + return 0; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/config.tests/maemo-icd/maemo-icd.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/config.tests/maemo-icd/maemo-icd.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,11 @@ +TEMPLATE = app +TARGET = +DEPENDPATH += . +INCLUDEPATH += . + +# Input +SOURCES += main.cpp +QT+=dbus network + +CONFIG += link_pkgconfig +PKGCONFIG += glib-2.0 dbus-glib-1 gconf-2.0 osso-ic conninet diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/config.tests/maemo-icd/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/config.tests/maemo-icd/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,10 @@ +#include "wlancond.h" +#include "maemo_icd.h" +#include "icd/dbus_api.h" +#include "iapconf.h" +#include "iapmonitor.h" + +int main(int, char**) +{ + return 0; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/config.tests/occ/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/config.tests/occ/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,50 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include + +int main(int argc, char** argv) +{ + TConnPrefList point_is_to_see_if_these; + TExtendedConnPref compile_or_not; + return 0; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/config.tests/occ/occ.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/config.tests/occ/occ.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,24 @@ +############################################################################### +# Simple compilation test for the presence of One Click Connectivity +# support. In practice it is supported Symbian^3 onwards. +############################################################################### + +CONFIG -= qt +TEMPLATE = app +TARGET = +DEPENDPATH += +INCLUDEPATH += . +INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE + +SOURCES += main.cpp + + LIBS += -lcommdb \ + -lapsettingshandlerui \ + -lconnmon \ + -lcentralrepository \ + -lesock \ + -linsock \ + -lecom \ + -lefsrv \ + -lextendedconnpref \ + -lnetmeta diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/configure --- a/qtmobility/configure Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/configure Mon May 03 13:18:40 2010 +0300 @@ -40,6 +40,39 @@ ## ############################################################################# +# return status of 1 if absolute path as first argument +# also prints the return status +function isAbsPath() { + slash=$(echo $1 | cut -c 1) + if [ "$slash" != "/" ]; then + echo 0 + return 0 + fi + echo 1 + return 1 +} + +# Returns the absolute path for $1 for target $2 +# as an example $2 might have value "maemo5". +# This is required because when building in scratchbox for +# maemo we do not want to follow symbolic links that are +# introduced by scratchbox +function absPath() { + + if [ "$2" = "maemo5" -o "$2" = "maemo6" ]; then + if [ `isAbsPath $1` = '1' ]; then + echo $1; + else + echo "Relative prefix paths are not supported for Maemo" + exit 1; + fi + else + RESULT=`(cd "$1"; /bin/pwd)` + echo $RESULT + fi +} + + # the current directory (shadow build dir) shadowpath=`/bin/pwd` # the name of this script @@ -209,10 +242,29 @@ findframeworks +findUniversal() +{ + if [ -e "mac.inc" ]; then + rm mac.inc + fi + echo "contains(QT_CONFIG,x86): system(echo CONFIG+=x86 >> mac.inc)" > 2.pro + echo "contains(QT_CONFIG,ppc): system(echo CONFIG+=ppc >> mac.inc)" >> 2.pro + echo "contains(QT_CONFIG,ppc64): system(echo CONFIG+=ppc64 >> mac.inc)" >> 2.pro + echo "contains(QT_CONFIG,x86_64): system(echo CONFIG+=x86_64 >> mac.inc)" >> 2.pro + SOMETIME=`qmake 2.pro 2>&1` + rm 2.pro + if [ -e "mac.inc" ]; then + echo "exists(mac.inc): include(mac.inc)" >> "$CONFIG_IN" + fi +} + + if [ -n "$BUILD_SILENT" ]; then echo "CONFIG += silent" > "$CONFIG_IN" fi +findUniversal + if [ -z "$RELEASEMODE" ]; then RELEASEMODE="debug" fi @@ -229,12 +281,11 @@ #process PREFIX if [ -d "$QT_MOBILITY_PREFIX" ]; then - QT_MOBILITY_PREFIX=`(cd "$QT_MOBILITY_PREFIX"; /bin/pwd)` + QT_MOBILITY_PREFIX=`absPath $QT_MOBILITY_PREFIX $LINUX_TARGET` else mkdir -p "$QT_MOBILITY_PREFIX" - absPath=`(cd "$QT_MOBILITY_PREFIX"; /bin/pwd)` + QT_MOBILITY_PREFIX=`absPath $QT_MOBILITY_PREFIX $LINUX_TARGET` rm -rf "$QT_MOBILITY_PREFIX" - QT_MOBILITY_PREFIX="$absPath" fi echo "QT_MOBILITY_PREFIX = $QT_MOBILITY_PREFIX" >> "$CONFIG_IN" @@ -242,12 +293,11 @@ if [ -z "$QT_MOBILITY_INCLUDE" ]; then QT_MOBILITY_INCLUDE="$QT_MOBILITY_PREFIX/include" elif [ -d "$QT_MOBILITY_INCLUDE" ]; then - QT_MOBILITY_INCLUDE=`(cd "$QT_MOBILITY_INCLUDE"; /bin/pwd)` + QT_MOBILITY_INCLUDE=`absPath $QT_MOBILITY_INCLUDE $LINUX_TARGET` else mkdir -p "$QT_MOBILITY_INCLUDE" - absPath=`(cd "$QT_MOBILITY_INCLUDE"; /bin/pwd)` + QT_MOBILITY_INCLUDE=`absPath $QT_MOBILITY_INCLUDE $LINUX_TARGET` rm -rf "$QT_MOBILITY_INCLUDE" - QT_MOBILITY_INCLUDE="$absPath" fi echo "QT_MOBILITY_INCLUDE = $QT_MOBILITY_INCLUDE" >> "$CONFIG_IN" @@ -256,12 +306,11 @@ if [ -z "$QT_MOBILITY_LIB" ]; then QT_MOBILITY_LIB="$QT_MOBILITY_PREFIX/$LIB_PATH" elif [ -d "$QT_MOBILITY_LIB" ]; then - QT_MOBILITY_LIB=`(cd "$QT_MOBILITY_LIB"; /bin/pwd)` + QT_MOBILITY_LIB=`absPath $QT_MOBILITY_LIB $LINUX_TARGET` else mkdir -p "$QT_MOBILITY_LIB" - absPath=`(cd "$QT_MOBILITY_LIB"; /bin/pwd)` + QT_MOBILITY_LIB=`absPath $QT_MOBILITY_LIB $LINUX_TARGET` rm -rf "$QT_MOBILITY_LIB" - QT_MOBILITY_LIB="$absPath" fi echo "QT_MOBILITY_LIB = $QT_MOBILITY_LIB" >> "$CONFIG_IN" @@ -269,12 +318,11 @@ if [ -z "$QT_MOBILITY_BIN" ]; then QT_MOBILITY_BIN="$QT_MOBILITY_PREFIX/$BIN_PATH" elif [ -d "$QT_MOBILITY_BIN" ]; then - QT_MOBILITY_BIN=`(cd "$QT_MOBILITY_BIN"; /bin/pwd)` + QT_MOBILITY_BIN=`absPath $QT_MOBILITY_BIN $LINUX_TARGET` else mkdir -p "$QT_MOBILITY_BIN" - absPath=`(cd "$QT_MOBILITY_BIN"; /bin/pwd)` + QT_MOBILITY_BIN=`absPath $QT_MOBILITY_BIN $LINUX_TARGET` rm -rf "$QT_MOBILITY_BIN" - QT_MOBILITY_BIN="$absPath" fi echo "QT_MOBILITY_BIN = $QT_MOBILITY_BIN" >> "$CONFIG_IN" @@ -348,7 +396,7 @@ cd config.tests/$2 fi - qmake "$relpath/config.tests/$2/$2.pro" >> "$CONFIG_LOG" + qmake "$relpath/config.tests/$2/$2.pro" 2>> "$CONFIG_LOG" >> "$CONFIG_LOG" printf " ." "$MAKE" clean >> "$CONFIG_LOG" printf "." @@ -368,6 +416,8 @@ compileTest QMF qmf compileTest NetworkManager networkmanager compileTest "CoreWLAN (MacOS 10.6)" corewlan +compileTest "Maemo ICD" maemo-icd +compileTest "Maemo ICD WLAN" maemo-icd-network-wlan # Now module selection # using 'expr match ....' should help a bit @@ -379,6 +429,11 @@ # It's a lot easier to make qmake do the dependency checking... echo "mobility_modules = $MOBILITY_MODULES" >> "$CONFIG_IN" echo "contains(mobility_modules,versit): mobility_modules *= contacts" >> "$CONFIG_IN" +echo "maemo5|maemo6:contains(maemo-icd_enabled, no): mobility_modules -= bearer" >> "$CONFIG_IN" + +# If libicd-network-wlan-dev.h is not present, use own copy. +# At time of writing, libicd-network-wlan-dev is not released for maemo5. +echo "maemo5:contains(maemo-icd-network-wlan_enabled, no): INCLUDEPATH += $relpath/src/3rdparty/icd-network-wlan" >> "$CONFIG_IN" # Ideally we'd skip generating headers for modules that are not enabled echo "Generating Mobility Headers..." @@ -410,7 +465,6 @@ ;; multimedia) $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia - $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia/experimental ;; messaging) $relpath/bin/syncheaders $shadowpath/include $relpath/src/messaging @@ -434,7 +488,9 @@ mv "$CONFIG_IN" config.pri mkdir -p "$shadowpath/features" -cp -f "$relpath/features/strict_flags.prf" "$shadowpath/features" +if [ "$shadowpath" != "$relpath" ]; then + cp -f "$relpath/features/strict_flags.prf" "$shadowpath/features" +fi echo "Running qmake..." if qmake -recursive "$relpath/qtmobility.pro"; then @@ -444,3 +500,4 @@ echo "" echo "configure failed." fi + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/configure.bat --- a/qtmobility/configure.bat Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/configure.bat Mon May 03 13:18:40 2010 +0300 @@ -56,6 +56,7 @@ set BUILD_UNITTESTS=no set BUILD_EXAMPLES=no set BUILD_DOCS=yes +set BUILD_TOOLS=yes set MOBILITY_MODULES=bearer location contacts multimedia publishsubscribe versit messaging systeminfo serviceframework sensors set MOBILITY_MODULES_UNPARSED= set VC_TEMPLATE_OPTION= @@ -66,33 +67,31 @@ if exist "%PROJECT_LOG%" del %PROJECT_LOG% if exist "%PROJECT_CONFIG%" del %PROJECT_CONFIG% -set MOD_SOURCE_PATH=%SOURCE_PATH:\=/% -set MOD_BUILD_PATH=%BUILD_PATH:\=/% -echo QT_MOBILITY_SOURCE_TREE = $${EPOCROOT}%MOD_SOURCE_PATH:~3% -REM echo QT_MOBILITY_SOURCE_TREE = $${EPOCROOT}%MOD_SOURCE_PATH:~3% > %QMAKE_CACHE% -echo QT_MOBILITY_BUILD_TREE = $${EPOCROOT}%MOD_BUILD_PATH:~3% -REM echo QT_MOBILITY_BUILD_TREE = $${EPOCROOT}%MOD_BUILD_PATH:~3% >> %QMAKE_CACHE% +echo QT_MOBILITY_SOURCE_TREE = %SOURCE_PATH% > %QMAKE_CACHE% +echo QT_MOBILITY_BUILD_TREE = %BUILD_PATH% >> %QMAKE_CACHE% set QMAKE_CACHE= :cmdline_parsing -if "%1" == "" goto startProcessing -if "%1" == "-debug" goto debugTag -if "%1" == "-release" goto releaseTag -if "%1" == "-silent" goto silentTag -if "%1" == "-prefix" goto prefixTag -if "%1" == "-libdir" goto libTag -if "%1" == "-bindir" goto binTag -if "%1" == "-headerdir" goto headerTag -if "%1" == "-tests" goto testTag -if "%1" == "-examples" goto exampleTag -if "%1" == "-qt" goto qtTag -if "%1" == "-vc" goto vcTag -if "%1" == "-no-docs" goto nodocsTag -if "%1" == "-modules" goto modulesTag -if "%1" == "/?" goto usage -if "%1" == "-h" goto usage -if "%1" == "-help" goto usage -if "%1" == "--help" goto usage +if "%1" == "" goto startProcessing +if "%1" == "-debug" goto debugTag +if "%1" == "-release" goto releaseTag +if "%1" == "-silent" goto silentTag +if "%1" == "-prefix" goto prefixTag +if "%1" == "-libdir" goto libTag +if "%1" == "-bindir" goto binTag +if "%1" == "-headerdir" goto headerTag +if "%1" == "-tests" goto testTag +if "%1" == "-examples" goto exampleTag +if "%1" == "-qt" goto qtTag +if "%1" == "-vc" goto vcTag +if "%1" == "-no-docs" goto nodocsTag +if "%1" == "-no-tools" goto noToolsTag +if "%1" == "-modules" goto modulesTag +if "%1" == "/?" goto usage +if "%1" == "-h" goto usage +if "%1" == "-help" goto usage +if "%1" == "--help" goto usage +if "%1" == "-symbian-unfrozen" goto unfrozenTag echo Unknown option: "%1" @@ -124,6 +123,7 @@ echo -modules ^ ... Build only the specified modules (default all) echo Choose from: bearer contacts location publishsubscribe echo messaging multimedia systeminfo serviceframework versit + echo sensors echo Modules should be separated by a space and surrounded echo by double quotation. If a echo selected module depends on other modules dependencies @@ -181,6 +181,18 @@ shift goto cmdline_parsing +:unfrozenTag +REM Should never be used in release builds +REM Some SDK's seem to exclude Q_AUTOTEST_EXPORT symbols if the +REM libraries are frozen. This breaks unit tests relying on the auto test exports +REM This flag unfreezes the SYMBIAN libraries for the purpose of unit test building. +REM Ideally this should be connected to '-tests' option but that would prevent +REM integration testing for frozen symbols as the CI system should test unit tests +REM and frozen symbol compliance. +echo symbian_symbols_unfrozen = 1 >> %PROJECT_CONFIG% +shift +goto cmdline_parsing + :testTag set BUILD_UNITTESTS=yes shift @@ -201,6 +213,11 @@ shift goto cmdline_parsing +:noToolsTag +set BUILD_TOOLS=no +shift +goto cmdline_parsing + :modulesTag shift :: %1 can have leading/trailing quotes, so we can't use if "%1" == "" @@ -290,17 +307,12 @@ goto :exitTag :prefixExists -set MOD_QT_MOBILITY_PREFIX=%QT_MOBILITY_PREFIX:/=\% -cd /D %MOD_QT_MOBILITY_PREFIX% +cd /D %QT_MOBILITY_PREFIX% set QT_MOBILITY_PREFIX=%CD% cd /D %CURRENTDIR% :endprefixProcessing -echo QT_MOBILITY_SOURCE_TREE = $${EPOCROOT}%MOD_SOURCE_PATH:~3% > %PROJECT_CONFIG% -echo QT_MOBILITY_BUILD_TREE = $${EPOCROOT}%MOD_BUILD_PATH:~3% >> %PROJECT_CONFIG% -set MOD_QT_MOBILITY_PREFIX=%QT_MOBILITY_PREFIX:\=/% -echo QT_MOBILITY_PREFIX = $${EPOCROOT}%MOD_QT_MOBILITY_PREFIX:~3% -echo QT_MOBILITY_PREFIX = $${EPOCROOT}%MOD_QT_MOBILITY_PREFIX:~3% >> %PROJECT_CONFIG% +echo QT_MOBILITY_PREFIX = %QT_MOBILITY_PREFIX% >> %PROJECT_CONFIG% echo build_unit_tests = %BUILD_UNITTESTS% >> %PROJECT_CONFIG% set BUILD_UNITTESTS= @@ -311,6 +323,9 @@ echo build_docs = %BUILD_DOCS% >> %PROJECT_CONFIG% set BUILD_DOCS= +echo build_tools = %BUILD_TOOLS% >> %PROJECT_CONFIG% +set BUILD_TOOLS= + echo qmf_enabled = no >> %PROJECT_CONFIG% echo isEmpty($$QT_MOBILITY_INCLUDE):QT_MOBILITY_INCLUDE=$$QT_MOBILITY_PREFIX/include >> %PROJECT_CONFIG% @@ -322,9 +337,9 @@ echo maemo5^|maemo6:mobility_modules -= systeminfo >> %PROJECT_CONFIG% echo contains(mobility_modules,versit): mobility_modules *= contacts >> %PROJECT_CONFIG% -REM echo Checking available Qt -REM call %QT_PATH%qmake -v >> %PROJECT_LOG% 2>&1 -REM if errorlevel 1 goto qmakeNotFound +echo Checking available Qt +call %QT_PATH%qmake -v >> %PROJECT_LOG% 2>&1 +if errorlevel 1 goto qmakeNotFound goto qmakeFound :qmakeNotFound echo ... Not found >> %PROJECT_LOG% 2>&1 @@ -338,7 +353,7 @@ goto errorTag :qmakeFound -REM call %QT_PATH%qmake -query QT_VERSION +call %QT_PATH%qmake -query QT_VERSION goto checkMake @@ -355,7 +370,10 @@ cd config.tests\make ) - for /f "tokens=3" %%i in ('call %QT_PATH%qmake %SOURCE_PATH%\config.tests\make\make.pro 2^>^&1 1^>NUL') do set BUILDSYSTEM=%%i + for /f "tokens=2,3" %%a in ('call %QT_PATH%qmake %SOURCE_PATH%\config.tests\make\make.pro 2^>^&1 1^>NUL') do ( + if "%%a" == "MESSAGE:" ( + set BUILDSYSTEM=%%b) + ) if %BUILDSYSTEM% == symbian-abld ( call make -h >> %PROJECT_LOG% 2>&1 @@ -388,10 +406,9 @@ call endlocal&set %1=%MAKE%&set %2=%BUILDSYSTEM%&goto :EOF :checkMake -REM echo Checking make -REM call :makeTest MOBILITY_MAKE MOBILITY_BUILDSYSTEM -REM if not "%MOBILITY_MAKE%" == "" goto compileTests -goto compileTests +echo Checking make +call :makeTest MOBILITY_MAKE MOBILITY_BUILDSYSTEM +if not "%MOBILITY_MAKE%" == "" goto compileTests echo >&2Cannot find 'nmake', 'mingw32-make' or 'make' in your PATH echo >&2Aborting. @@ -440,12 +457,10 @@ echo. echo Start of compile tests REM compile tests go here. -REM call :compileTest LBT lbt -echo lbt_enabled = yes >> %PROJECT_CONFIG% -REM call :compileTest SNAP snap -echo snap_enabled = yes >> %PROJECT_CONFIG% -REM call :compileTest SymbianContactSIM symbiancntsim -echo symbiancntsim_enabled = yes >> %PROJECT_CONFIG% +call :compileTest LBT lbt +call :compileTest SNAP snap +call :compileTest OCC occ +call :compileTest SymbianContactSIM symbiancntsim echo End of compile tests echo. echo. @@ -454,7 +469,7 @@ if not exist "%BUILD_PATH%\features" mkdir %BUILD_PATH%\features copy %SOURCE_PATH%\features\strict_flags.prf %BUILD_PATH%\features echo Generating Mobility Headers... -if exist "%BUILD_PATH%\include" rd /s /q %BUILD_PATH%\include +rd /s /q %BUILD_PATH%\include mkdir %BUILD_PATH%\include perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\global @@ -513,12 +528,11 @@ ren %PROJECT_CONFIG% config.pri echo. -REM echo Running qmake... -REM call %QT_PATH%qmake -recursive %VC_TEMPLATE_OPTION% %SOURCE_PATH%\qtmobility.pro -REM if errorlevel 1 goto qmakeRecError -REM echo. -echo configure has finished. -REM You may run %MOBILITY_MAKE% to build the project now. +echo Running qmake... +call %QT_PATH%qmake -recursive %VC_TEMPLATE_OPTION% %SOURCE_PATH%\qtmobility.pro +if errorlevel 1 goto qmakeRecError +echo. +echo configure has finished. You may run %MOBILITY_MAKE% to build the project now. goto exitTag :qmakeRecError diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/dist/changes-1.0.0 --- a/qtmobility/dist/changes-1.0.0 Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/dist/changes-1.0.0 Mon May 03 13:18:40 2010 +0300 @@ -56,8 +56,9 @@ QtLocation ------ - - foo - * bar + - API change + * QGeoPositionInfo::dateTime()/setDateTime() changed into + QGeoPositionInfo::timestamp()/setTimestamp() respectively. QtMessaging ------ @@ -103,6 +104,20 @@ - foo * bar +QtSensors +------ + + - QSensorReading::value() is no longer virtual. + - Many sensor classes have been changed. Please see the documentation on each sensor class in use. + - Change qtimestamp type declaration to avoid an interaction between the compiler and Qt's meta system. + - Added QSensorBackend::sensor(). + - Replaced updatePolicy and updateInterval with dataRate. + - Removed polling. + - Added meta-data properties for sensors. + - Added error reporting functions. + - Removed setType(). + - Renamed QSensor::connect() to QSensor::connectToBackend(). + Qt Mobility Plugins ------ @@ -146,6 +161,31 @@ - +Qt Mobility for Symbian +------ + + - Contacts + * Bug fix: Display label of a contact now does not include organization if first name or last name are available + * Bug fix: Several fixes to contact filtering + * Bug fix: Backends were instantiated twice. This caused for example a problem with SamplePhonebook startup; the application sometimes refused to re-start after it had been closed. + * Bug fix: Adding contacts to a group or removing contacts from a group caused contactsChanged signal to be emitted instead of relationshipsAdded/Removed in other contact manager instances. + * Bug fix: Adding a group caused also a contactsChanged signal to be emitted in the contact manager instance that created the group + * Bug fix: QContactThumbnail was not shown in the name list view of S60 Phonebook on some S60 platforms. + * Bug fix: Signal emissions when self contact is changed + * Bug fix: Groups did not have timestamp and guid details. + * Bug fix: S60 3.1 does not support timestamps for contacts but it was still part of the detail definition schema. + * SIM backend now supports also SDN (Service Dialling Numbers) and FDN (Fixed Dialling Numbers) + * Also SIM backend now emits signals + * SIM backend now implements also the asynchronous QContactManager API + * SIM contact phone numbers now don't have any sub type (previously they were using "mobile" sub type) + * SIM contacts now use custom label as the name field instead of first name + * SamplePhonebook can now be used to access and save also SIM contacts + * Bugfix: Saving SIM contacts now preserves the original contact detail instances instead of replacing them with new instances (with different ids). + * A work-around for issues with several consecutive SIM contacts operations + * A work-around for issue on S60 3.1 products that made the device reboot when trying to delete non-existing contacts + * Bug fix: Batch saving of SIM contacts did not update contact details + * The schema definition of SIM backend now does not include e-mail and nick name details in case they are not supported by the SIM card + * Trying to save too long details to a SIM card now gives an appropriate error **************************************************************************** * Tools * diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/dist/changes-1.0.0-beta1 --- a/qtmobility/dist/changes-1.0.0-beta1 Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/dist/changes-1.0.0-beta1 Mon May 03 13:18:40 2010 +0300 @@ -131,8 +131,26 @@ QtLocation ------ - - foo - * bar + - QGeoPositionInfoSource + * Renamed requestTimeout to updateTimeout(). + * updateTimeout() is now emitted during periodic updates if + the update is late or an error occurs. + - QGeoCoordinate + * Renamed QGeoCoordinate:DecimalDegrees to QGeoCoordinate::Degrees. + - QGeoPositionInfo + * Renamed property() to attribute(). + * Renamed setProperty() to setAttribute(). + * Renamed hasProperty() to hasAttribute(). + * Renamed removeProperty() to removeAttribute(). + * Renamed QGeoPositionInfo::Heading to QGeoPositionInfo::Direction. + - QGeoSatelliteInfo + * Renamed property() to attribute(). + * Renamed setProperty() to setAttribute(). + * Renamed hasProperty() to hasAttribute(). + * Renamed removeProperty() to removeAttribute(). + - QNmeaPositionInfoSource + * Added protected virtual function parsePosInfoFromNmeaData() to + enable clients to handle non-standard NMEA sentences if they need to. QtMessaging ------ @@ -367,9 +385,20 @@ - +<<<<<<< HEAD:dist/changes-1.0.0-beta1 Qt Mobility for Symbian ------ +======= +Qt Mobility for Maemo5 +------ + + - Experimental support for QtLocation + - Experimental support for QtSystemInfo + + Qt Mobility for Symbian +------ + - QContactManager backends * QContactAvatar: Added support for pixmap field and VideoRingtone subtype. For pixmap field there is a known issue that it is not always shown in the name list view of S60 platform Phonebook. * The display label now uses the same formatting rules as the platform phonebook application, except that "unnamed" contact label is not localised. @@ -404,11 +433,6 @@ * writing metada to file not supported by S60 * codec support depends on device model * AudioDeviceControl not implemented for mediaplayer, defaults to device default. - - Camera - * camera support is expiremental - * still capture - * mediacapture - * recording codec support is limited to video/mp4 **************************************************************************** * Tools * diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/audiorecorder/audiorecorder.cpp --- a/qtmobility/examples/audiorecorder/audiorecorder.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/audiorecorder/audiorecorder.cpp Mon May 03 13:18:40 2010 +0300 @@ -54,11 +54,14 @@ audiosource = new QAudioCaptureSource; capture = new QMediaRecorder(audiosource); - QAudioEncoderSettings audioSettings; - audioSettings.setQuality(QtMedia::LowQuality); - audioSettings.setEncodingMode(QtMedia::ConstantQualityEncoding); - audioSettings.setCodec(capture->supportedAudioCodecs().first()); - capture->setEncodingSettings(audioSettings,QVideoEncoderSettings(),capture->supportedContainers().first()); + if (capture->supportedAudioCodecs().size() > 0) { + QAudioEncoderSettings audioSettings; + audioSettings.setQuality(QtMedia::LowQuality); + audioSettings.setEncodingMode(QtMedia::ConstantQualityEncoding); + audioSettings.setCodec(capture->supportedAudioCodecs().first()); + capture->setEncodingSettings(audioSettings,QVideoEncoderSettings(), + capture->supportedContainers().first()); + } // set a default file #ifdef Q_OS_SYMBIAN @@ -68,27 +71,34 @@ #endif QWidget *window = new QWidget; + window->setMinimumSize(320,240); + window->setSizePolicy(QSizePolicy::Minimum,QSizePolicy::Minimum); + QGridLayout* layout = new QGridLayout; QLabel* deviceLabel = new QLabel; - deviceLabel->setText("Devices"); + deviceLabel->setText(tr("Audio Device")); deviceBox = new QComboBox(this); - deviceBox->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed); + deviceBox->setSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed); + deviceBox->setMinimumSize(200,10); QLabel* containerLabel = new QLabel; - containerLabel->setText("Container"); + containerLabel->setText(tr("File Container")); containersBox = new QComboBox(this); - containersBox->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed); + containersBox->setSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed); + containersBox->setMinimumSize(200,10); QLabel* codecLabel = new QLabel; - codecLabel->setText("Codec"); + codecLabel->setText(tr("Audio Codec")); codecsBox = new QComboBox(this); - codecsBox->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed); + codecsBox->setSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed); + codecsBox->setMinimumSize(200,10); QLabel* qualityLabel = new QLabel; - qualityLabel->setText("Quality"); + qualityLabel->setText(tr("Audio Quality")); qualityBox = new QComboBox(this); - qualityBox->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed); + qualityBox->setSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed); + qualityBox->setMinimumSize(200,10); QList inputs = audiosource->audioInputs(); for(int i = 0; i < inputs.size(); i++) @@ -102,12 +112,13 @@ for(int i = 0; i < containers.count(); i++) containersBox->addItem(containers.at(i)); - qualityBox->addItem("Low"); - qualityBox->addItem("Medium"); - qualityBox->addItem("High"); + qualityBox->addItem(tr("Low")); + qualityBox->addItem(tr("Medium")); + qualityBox->addItem(tr("High")); connect(capture, SIGNAL(durationChanged(qint64)), this, SLOT(updateProgress(qint64))); connect(capture, SIGNAL(stateChanged(QMediaRecorder::State)), this, SLOT(stateChanged(QMediaRecorder::State))); + connect(capture, SIGNAL(error(QMediaRecorder::Error)), this, SLOT(errorChanged(QMediaRecorder::Error))); layout->addWidget(deviceLabel,0,0,Qt::AlignHCenter); connect(deviceBox,SIGNAL(activated(int)),SLOT(deviceChanged(int))); @@ -115,29 +126,39 @@ layout->addWidget(containerLabel,1,0,Qt::AlignHCenter); connect(containersBox,SIGNAL(activated(int)),SLOT(containerChanged(int))); - layout->addWidget(containersBox,1,1,Qt::AlignLeft); + layout->addWidget(containersBox,1,1,1,3,Qt::AlignLeft); - layout->addWidget(codecLabel,1,2,Qt::AlignHCenter); + layout->addWidget(codecLabel,2,0,Qt::AlignHCenter); connect(codecsBox,SIGNAL(activated(int)),SLOT(codecChanged(int))); - layout->addWidget(codecsBox,1,3,Qt::AlignLeft); + layout->addWidget(codecsBox,2,1,1,3,Qt::AlignLeft); - layout->addWidget(qualityLabel,2,0,Qt::AlignHCenter); + layout->addWidget(qualityLabel,3,0,Qt::AlignHCenter); connect(qualityBox,SIGNAL(activated(int)),SLOT(qualityChanged(int))); - layout->addWidget(qualityBox,2,1,Qt::AlignLeft); + layout->addWidget(qualityBox,3,1,1,3,Qt::AlignLeft); fileButton = new QPushButton(this); fileButton->setText(tr("Output File")); connect(fileButton,SIGNAL(clicked()),SLOT(selectOutputFile())); - layout->addWidget(fileButton,3,0,Qt::AlignHCenter); + layout->addWidget(fileButton,4,0,Qt::AlignHCenter); button = new QPushButton(this); button->setText(tr("Record")); connect(button,SIGNAL(clicked()),SLOT(toggleRecord())); - layout->addWidget(button,3,1,Qt::AlignHCenter); + layout->addWidget(button,4,1,Qt::AlignHCenter); + + QLabel* durationLabel = new QLabel; + durationLabel->setText(tr("Duration")); + layout->addWidget(durationLabel,4,2,Qt::AlignRight); recTime = new QLabel; - recTime->setText("0 sec"); - layout->addWidget(recTime,4,0,Qt::AlignHCenter); + layout->addWidget(recTime,4,3,Qt::AlignLeft); + + statusLabel = new QLabel; + statusLabel->setSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed); + statusLabel->setMinimumSize(270,10); + statusLabel->setFrameStyle(QFrame::Panel | QFrame::Sunken); + statusLabel->setLineWidth(1); + layout->addWidget(statusLabel,5,0,1,4,Qt::AlignHCenter); window->setLayout(layout); setCentralWidget(window); @@ -156,13 +177,26 @@ { currentTime = pos; if(currentTime == 0) currentTime = 1; - QString text = QString("%1 secs").arg(currentTime/1000); + QString text = QString("%1").arg(currentTime/1000); recTime->setText(text); } void AudioRecorder::stateChanged(QMediaRecorder::State state) { - Q_UNUSED(state) + if (capture->error() != QMediaRecorder::NoError) + return; + + switch(state) { + case QMediaRecorder::RecordingState: { + statusLabel->setText(tr("Recording")); + button->setText(tr("Stop")); + break; + } + default: { + statusLabel->setText(tr("Stopped")); + button->setText(tr("Record")); + } + } } void AudioRecorder::deviceChanged(int idx) @@ -186,12 +220,15 @@ void AudioRecorder::qualityChanged(int idx) { QAudioEncoderSettings settings = capture->audioSettings(); - if(qualityBox->itemText(idx).compare("Low") == 0) { - settings.setQuality(QtMedia::LowQuality); - } else if(qualityBox->itemText(idx).compare("Medium") == 0) { - settings.setQuality(QtMedia::NormalQuality); - } else if(qualityBox->itemText(idx).compare("High") == 0) { - settings.setQuality(QtMedia::HighQuality); + switch(idx) { + case 0: + settings.setQuality(QtMedia::LowQuality); + break; + case 1: + settings.setQuality(QtMedia::NormalQuality); + break; + default: + settings.setQuality(QtMedia::HighQuality); } capture->setEncodingSettings(settings); } @@ -199,15 +236,12 @@ void AudioRecorder::toggleRecord() { if(!active) { - recTime->setText("0 sec"); + recTime->setText("0"); currentTime = 0; - capture->record(); - - button->setText(tr("Stop")); + capture->record(); active = true; } else { - capture->stop(); - button->setText(tr("Record")); + capture->stop(); active = false; } } @@ -225,3 +259,12 @@ if(fileNames.size() > 0) capture->setOutputLocation(QUrl(fileNames.first())); } + +void AudioRecorder::errorChanged(QMediaRecorder::Error err) +{ + Q_UNUSED(err) + + statusLabel->setText(capture->errorString()); +} + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/audiorecorder/audiorecorder.h --- a/qtmobility/examples/audiorecorder/audiorecorder.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/audiorecorder/audiorecorder.h Mon May 03 13:18:40 2010 +0300 @@ -74,6 +74,7 @@ void toggleRecord(); void stateChanged(QMediaRecorder::State); void updateProgress(qint64 pos); + void errorChanged(QMediaRecorder::Error); private: QAudioCaptureSource* audiosource; @@ -84,6 +85,7 @@ QComboBox* codecsBox; QComboBox* qualityBox; QLabel* recTime; + QLabel* statusLabel; QPushButton* button; QPushButton* fileButton; bool active; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/audiorecorder/main.cpp --- a/qtmobility/examples/audiorecorder/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/audiorecorder/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -48,7 +48,11 @@ QApplication app(argc, argv); AudioRecorder recorder; +#ifdef Q_OS_SYMBIAN + recorder.showMaximized(); +#else recorder.show(); +#endif return app.exec(); }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/battery-charge/battery-subscriber/battery-meter.qml --- a/qtmobility/examples/battery-charge/battery-subscriber/battery-meter.qml Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/battery-charge/battery-subscriber/battery-meter.qml Mon May 03 13:18:40 2010 +0300 @@ -31,7 +31,7 @@ //! [1] Particles { - id: Bubbles + id: bubbles width: parent.width anchors.bottom: parent.bottom source: "bubble.png" @@ -49,7 +49,7 @@ name: "charging" when: batteryCharging.value PropertyChanges { - target: Bubbles + target: bubbles count: batteryCharge.value / 5 emissionRate: 5 } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/battery-charge/battery-subscriber/main.cpp --- a/qtmobility/examples/battery-charge/battery-subscriber/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/battery-charge/battery-subscriber/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -43,18 +43,18 @@ #include #include -#include #include #include #include #include -#include +#include +#include +#include QTM_USE_NAMESPACE //! [0] QML_DECLARE_TYPE(QValueSpaceSubscriber); -QML_DEFINE_TYPE(Qt, 4, 6, ValueSpaceSubscriber, QValueSpaceSubscriber); //! [0] class MainWidget : public QWidget @@ -65,7 +65,7 @@ MainWidget(); private: - QmlView *view; + QDeclarativeView *view; }; MainWidget::MainWidget() @@ -74,12 +74,14 @@ vbox->setMargin(0); setLayout(vbox); - view = new QmlView(this); + view = new QDeclarativeView(this); view->setFixedSize(100, 230); vbox->addWidget(view); - view->setUrl(QUrl("qrc:/battery-meter.qml")); - view->execute(); + //! [2] + view->setSource(QUrl("qrc:/battery-meter.qml")); + view->show(); + //! [2] QPushButton *quitButton = new QPushButton("Quit"); vbox->addWidget(quitButton); @@ -88,6 +90,10 @@ int main(int argc, char *argv[]) { + //! [1] + qmlRegisterType("Qt", 4, 6, "ValueSpaceSubscriber"); + //! [1] + QApplication app(argc, argv); MainWidget mainWidget; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/bearercloud/cloud.h --- a/qtmobility/examples/bearercloud/cloud.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/bearercloud/cloud.h Mon May 03 13:18:40 2010 +0300 @@ -56,7 +56,7 @@ Q_INTERFACES(QGraphicsItem) public: - Cloud(const QNetworkConfiguration &config, QGraphicsItem *parent = 0); + explicit Cloud(const QNetworkConfiguration &config, QGraphicsItem *parent = 0); ~Cloud(); enum { Type = UserType + 1 }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/bearermonitor/bearermonitor.cpp --- a/qtmobility/examples/bearermonitor/bearermonitor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/bearermonitor/bearermonitor.cpp Mon May 03 13:18:40 2010 +0300 @@ -43,7 +43,7 @@ #include "sessionwidget.h" #include - +#include #ifdef Q_OS_WIN #include #undef interface @@ -57,15 +57,20 @@ : QWidget(parent) { setupUi(this); +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + newSessionButton->hide(); + deleteSessionButton->hide(); +#else delete tabWidget->currentWidget(); sessionGroup->hide(); -#if defined (Q_OS_SYMBIAN) || defined(Q_OS_WINCE) +#endif +#if defined (Q_OS_SYMBIAN) || defined(Q_OS_WINCE) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) setWindowState(Qt::WindowMaximized); #endif updateConfigurations(); - +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) onlineStateChanged(!manager.allConfigurations(QNetworkConfiguration::Active).isEmpty()); - +#endif QNetworkConfiguration defaultConfiguration = manager.defaultConfiguration(); for (int i = 0; i < treeWidget->topLevelItemCount(); ++i) { QTreeWidgetItem *item = treeWidget->topLevelItem(i); @@ -101,9 +106,10 @@ connect(newSessionButton, SIGNAL(clicked()), this, SLOT(createNewSession())); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) connect(deleteSessionButton, SIGNAL(clicked()), this, SLOT(deleteSession())); - +#endif connect(scanButton, SIGNAL(clicked()), this, SLOT(performScan())); } @@ -234,9 +240,15 @@ void BearerMonitor::onlineStateChanged(bool isOnline) { if (isOnline) +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + QMessageBox::information(this, "Connection state changed", "Online", QMessageBox::Close); + else + QMessageBox::information(this, "Connection state changed", "Offline", QMessageBox::Close); +#else onlineState->setText(tr("Online")); else onlineState->setText(tr("Offline")); +#endif } #ifdef Q_OS_WIN @@ -362,7 +374,9 @@ tabWidget->addTab(session, conf.name()); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) sessionGroup->show(); +#endif sessionWidgets.append(session); } @@ -374,6 +388,7 @@ createSessionFor(item); } +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) void BearerMonitor::deleteSession() { SessionWidget *session = qobject_cast(tabWidget->currentWidget()); @@ -386,6 +401,7 @@ sessionGroup->hide(); } } +#endif void BearerMonitor::performScan() { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/bearermonitor/bearermonitor.h --- a/qtmobility/examples/bearermonitor/bearermonitor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/bearermonitor/bearermonitor.h Mon May 03 13:18:40 2010 +0300 @@ -46,6 +46,8 @@ #include #if defined (Q_OS_SYMBIAN) || defined(Q_OS_WINCE) #include "ui_bearermonitor_240_320.h" +#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) +#include "ui_bearermonitor_maemo.h" #else #include "ui_bearermonitor_640_480.h" #endif @@ -80,8 +82,9 @@ void createSessionFor(QTreeWidgetItem *item); void createNewSession(); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) void deleteSession(); - +#endif void performScan(); private: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/bearermonitor/bearermonitor.pro --- a/qtmobility/examples/bearermonitor/bearermonitor.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/bearermonitor/bearermonitor.pro Mon May 03 13:18:40 2010 +0300 @@ -1,24 +1,27 @@ +TARGET = bearermonitor +QT = core gui network + +INCLUDEPATH += ../../src/bearer +include(../examples.pri) + +CONFIG += mobility +MOBILITY = bearer + HEADERS = sessionwidget.h \ bearermonitor.h SOURCES = main.cpp \ bearermonitor.cpp \ sessionwidget.cpp - -FORMS = bearermonitor_240_320.ui \ - bearermonitor_640_480.ui \ - sessionwidget.ui -TARGET = bearermonitor - -QT = core gui network - -INCLUDEPATH += ../../src/bearer - -include(../examples.pri) - -CONFIG += mobility -MOBILITY = bearer +maemo5|maemo6 { + FORMS = bearermonitor_maemo.ui \ + sessionwidget_maemo.ui +} else { + FORMS = bearermonitor_240_320.ui \ + bearermonitor_640_480.ui \ + sessionwidget.ui +} win32:!wince*:LIBS += -lWs2_32 wince*:LIBS += -lWs2 diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/bearermonitor/bearermonitor_maemo.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/bearermonitor/bearermonitor_maemo.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,310 @@ + + + BearerMonitor + + + + 0 + 0 + 612 + 495 + + + + Form + + + + + + + 0 + 0 + + + + 0 + + + false + + + + Configurations + + + + + + + 0 + 0 + + + + false + + + + 1 + + + + + + + + + + + + Name: + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + State: + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + Type: + + + + + + + + 0 + 0 + + + + Invalid + + + + + + + + + + + Purpose: + + + + + + + + 0 + 0 + + + + Unknown + + + + + + + + + + + Identifier: + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + Roaming: + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + Children: + + + + + + + + 0 + 0 + + + + + + + + + + + + + Network Location Awareness + + + + + + Register + + + + + + + Unregister + + + + + + + + + + New Session + + + + + + + Delete Session + + + + + + + Scan + + + + + + + 0 + + + 23280 + + + false + + + false + + + %p% + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/bearermonitor/sessionwidget.cpp --- a/qtmobility/examples/bearermonitor/sessionwidget.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/bearermonitor/sessionwidget.cpp Mon May 03 13:18:40 2010 +0300 @@ -68,6 +68,10 @@ this, SLOT(closeSession())); connect(stopSessionButton, SIGNAL(clicked()), this, SLOT(stopSession())); +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + connect(deleteSessionButton, SIGNAL(clicked()), + this, SLOT(deleteSession())); +#endif } SessionWidget::~SessionWidget() @@ -75,6 +79,13 @@ delete session; } +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) +void SessionWidget::deleteSession() +{ + delete this; +} +#endif + void SessionWidget::updateSession() { updateSessionState(session->state()); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/bearermonitor/sessionwidget.h --- a/qtmobility/examples/bearermonitor/sessionwidget.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/bearermonitor/sessionwidget.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,11 @@ #ifndef SESSIONWIDGET_H #define SESSIONWIDGET_H +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) +#include "ui_sessionwidget_maemo.h" +#else #include "ui_sessionwidget.h" - +#endif #include QTM_USE_NAMESPACE @@ -53,7 +56,7 @@ Q_OBJECT public: - SessionWidget(const QNetworkConfiguration &config, QWidget *parent = 0); + explicit SessionWidget(const QNetworkConfiguration &config, QWidget *parent = 0); ~SessionWidget(); private: @@ -66,7 +69,9 @@ void closeSession(); void stopSession(); void updateSession(); - +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + void deleteSession(); +#endif private: QNetworkSession *session; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/bearermonitor/sessionwidget_maemo.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/bearermonitor/sessionwidget_maemo.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,262 @@ + + + SessionWidget + + + + 0 + 0 + 497 + 615 + + + + Form + + + + + + + + + + Session ID: + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + + 0 + 0 + + + + Session State: + + + + + + + + 0 + 0 + + + + Invalid + + + + + + + + + + + Configuration: + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + Bearer: + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + Interface Name: + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + Interface GUID: + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + Last Error: + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + Error String + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + + + Open + + + + + + + Close + + + + + + + Blocking Open + + + + + + + Stop + + + + + + + Delete + + + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/bluetoothtransferplugin/bluetoothtransferplugin.pro --- a/qtmobility/examples/bluetoothtransferplugin/bluetoothtransferplugin.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/bluetoothtransferplugin/bluetoothtransferplugin.pro Mon May 03 13:18:40 2010 +0300 @@ -19,7 +19,7 @@ DEPLOYMENT += pluginDep TARGET.EPOCALLOWDLLDATA = 1 - TARGET.CAPABILITY = ALL -TCB + TARGET.CAPABILITY = LocalServices Location NetworkServices ReadUserData WriteUserData UserEnvironment } xml.path = $$DESTDIR/xmldata diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/cameracapture/cameracapture.cpp --- a/qtmobility/examples/cameracapture/cameracapture.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,303 +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 Qt Mobility Components. -** -** $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 "cameracapture.h" -#include "ui_cameracapture.h" -#include "settings.h" - -#include -#include -#include -#include - -#include - -#include - -CameraCapture::CameraCapture(QWidget *parent) : - QMainWindow(parent), - ui(new Ui::CameraCapture), - camera(0), - imageCapture(0), - mediaRecorder(0), - audioSource(0), - videoWidget(0) -{ - ui->setupUi(this); -#if defined(Q_OS_SYMBIAN) - outputDir = QDir::rootPath(); // this defaults to C:\Data in symbian -#else - outputDir = QDir::currentPath(); -#endif - - //camera devices - QByteArray cameraDevice; - - ui->actionCamera->setMenu(new QMenu(this)); - QActionGroup *videoDevicesGroup = new QActionGroup(this); - videoDevicesGroup->setExclusive(true); - foreach(const QByteArray &deviceName, QCamera::availableDevices()) { - QString description = deviceName+" "+camera->deviceDescription(deviceName); - QAction *videoDeviceAction = new QAction(description, videoDevicesGroup); - videoDeviceAction->setCheckable(true); - videoDeviceAction->setData(QVariant(deviceName)); - if (cameraDevice.isEmpty()) { - cameraDevice = deviceName; - videoDeviceAction->setChecked(true); - } - ui->actionCamera->menu()->addAction(videoDeviceAction); - } - - connect(videoDevicesGroup, SIGNAL(triggered(QAction*)), this, SLOT(updateCameraDevice(QAction*))); - - ui->actionAudio->setMenu(new QMenu(this)); - - setCamera(cameraDevice); -} - -CameraCapture::~CameraCapture() -{ - delete mediaRecorder; - delete videoWidget; - delete camera; -} - -void CameraCapture::setCamera(const QByteArray &cameraDevice) -{ - delete imageCapture; - delete mediaRecorder; - delete videoWidget; - delete camera; - - if (cameraDevice.isEmpty()) - camera = new QCamera; - else - camera = new QCamera(cameraDevice); - - connect(camera, SIGNAL(stateChanged(QCamera::State)), this, SLOT(updateCameraState(QCamera::State))); - - mediaRecorder = new QMediaRecorder(camera); - connect(mediaRecorder, SIGNAL(stateChanged(QMediaRecorder::State)), this, SLOT(updateRecorderState(QMediaRecorder::State))); - - imageCapture = new QStillImageCapture(camera); - - audioSource = new QAudioCaptureSource(camera); - connect(audioSource, SIGNAL(availableAudioInputsChanged()), SLOT(updateAudioDevices())); - - mediaRecorder->setOutputLocation(QUrl("test.mkv")); - - connect(mediaRecorder, SIGNAL(durationChanged(qint64)), this, SLOT(updateRecordTime())); - connect(mediaRecorder, SIGNAL(error(QMediaRecorder::Error)), this, SLOT(displayErrorMessage())); - - camera->setMetaData(QtMedia::Title, QVariant(QLatin1String("Test Title"))); - - videoWidget = new QVideoWidget; - videoWidget->setMediaObject(camera); - ui->stackedWidget->addWidget(videoWidget); - - updateCameraState(camera->state()); - updateRecorderState(mediaRecorder->state()); - updateAudioDevices(); - - connect(imageCapture, SIGNAL(readyForCaptureChanged(bool)), ui->imageCaptureBox, SLOT(setEnabled(bool))); - connect(imageCapture, SIGNAL(imageCaptured(QString,QImage)), this, SLOT(processCapturedImage(QString,QImage))); - -} - -void CameraCapture::updateAudioDevices() -{ - ui->actionAudio->menu()->clear(); - QActionGroup *audioDevicesGroup = new QActionGroup(this); - audioDevicesGroup->setExclusive(true); - - if (audioSource->isAvailable()) { - QList devices = audioSource->audioInputs(); - for (int i=0; iaudioDescription(devices.at(i)); - QAction *audioDeviceAction = new QAction(devices.at(i)+" "+description, audioDevicesGroup); - audioDeviceAction->setData(devices.at(i)); - audioDeviceAction->setCheckable(true); - - ui->actionAudio->menu()->addAction(audioDeviceAction); - - if (devices.at(i) == audioSource->activeAudioInput()) - audioDeviceAction->setChecked(true); - } - } else { - qWarning() << "No audio device for camera service available"; - } - - connect(audioDevicesGroup, SIGNAL(triggered(QAction*)), this, SLOT(updateAudioDevice(QAction*))); -} - -void CameraCapture::updateRecordTime() -{ - QString str = QString("Recorded %1 sec").arg(mediaRecorder->duration()/1000); - ui->statusbar->showMessage(str); -} - -void CameraCapture::processCapturedImage(const QString& fname, const QImage& img) -{ - ui->lastImagePreviewLabel->setPixmap( QPixmap::fromImage(img.scaledToWidth(128)) ); - qDebug() << "image captured:" << fname; -} - -void CameraCapture::settings() -{ - Settings settingsDialog(mediaRecorder); - - settingsDialog.setAudioSettings(mediaRecorder->audioSettings()); - settingsDialog.setVideoSettings(mediaRecorder->videoSettings()); - settingsDialog.setFormat(mediaRecorder->containerMimeType()); - - if (settingsDialog.exec()) { - mediaRecorder->setEncodingSettings( - settingsDialog.audioSettings(), - settingsDialog.videoSettings(), - settingsDialog.format()); - } -} - -void CameraCapture::record() -{ - mediaRecorder->record(); - updateRecordTime(); -} - -void CameraCapture::pause() -{ - mediaRecorder->pause(); -} - -void CameraCapture::stop() -{ - mediaRecorder->stop(); -} - -void CameraCapture::takeImage() -{ - int lastImage = 0; - foreach( QString fileName, outputDir.entryList(QStringList() << "img_*.jpg") ) { - int imgNumber = fileName.mid(4, fileName.size()-8).toInt(); - lastImage = qMax(lastImage, imgNumber); - } - - imageCapture->capture(QString("img_%1.jpg").arg(lastImage+1, - 4, //fieldWidth - 10, - QLatin1Char('0'))); -} - -void CameraCapture::toggleCamera() -{ - if (camera->state() == QCamera::ActiveState) - camera->stop(); - else - camera->start(); -} - -void CameraCapture::updateCameraState(QCamera::State state) -{ - if (state == QCamera::ActiveState) { - ui->actionCamera->setEnabled(false); - ui->actionAudio->setEnabled(false); - ui->actionSettings->setEnabled(true); - - ui->startCameraButton->setText(tr("Stop Camera")); - ui->startCameraButton->setChecked(true); - ui->imageCaptureBox->setEnabled(true); - ui->videoCaptureBox->setEnabled(true); - } else { - ui->actionCamera->setEnabled(true); - ui->actionAudio->setEnabled(true); - ui->actionSettings->setEnabled(true); - - ui->startCameraButton->setText(tr("Start Camera")); - ui->startCameraButton->setChecked(false); - ui->imageCaptureBox->setEnabled(false); - ui->videoCaptureBox->setEnabled(false); - } - - if (camera->isAvailable()) { - ui->startCameraButton->setEnabled(true); - } else { - ui->startCameraButton->setEnabled(false); - ui->startCameraButton->setText(tr("Camera is not available")); - } -} - -void CameraCapture::updateRecorderState(QMediaRecorder::State state) -{ - switch (state) { - case QMediaRecorder::StoppedState: - ui->recordButton->setEnabled(true); - ui->pauseButton->setEnabled(true); - ui->stopButton->setEnabled(false); - break; - case QMediaRecorder::PausedState: - ui->recordButton->setEnabled(true); - ui->pauseButton->setEnabled(false); - ui->stopButton->setEnabled(true); - break; - case QMediaRecorder::RecordingState: - ui->recordButton->setEnabled(false); - ui->pauseButton->setEnabled(true); - ui->stopButton->setEnabled(true); - break; - } -} - - -void CameraCapture::displayErrorMessage() -{ - QMessageBox::warning(this, "Capture error", mediaRecorder->errorString()); -} - -void CameraCapture::updateCameraDevice(QAction *action) -{ - setCamera(action->data().toByteArray()); -} - -void CameraCapture::updateAudioDevice(QAction *action) -{ - audioSource->setAudioInput(action->data().toString()); -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/cameracapture/cameracapture.h --- a/qtmobility/examples/cameracapture/cameracapture.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,110 +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 Qt Mobility Components. -** -** $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 RECORDER_H -#define RECORDER_H - -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE -namespace Ui { - class CameraCapture; -} -QT_END_NAMESPACE - - -#include -#include - -QTM_BEGIN_NAMESPACE -class QVideoWidget; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -class CameraCapture : public QMainWindow -{ - Q_OBJECT -public: - CameraCapture(QWidget *parent = 0); - ~CameraCapture(); - -private slots: - void setCamera(const QByteArray &cameraDevice); - - void toggleCamera(); - - void record(); - void pause(); - void stop(); - - void takeImage(); - - void settings(); - - void displayErrorMessage(); - - void updateCameraDevice(QAction*); - void updateAudioDevice(QAction*); - - void updateCameraState(QCamera::State); - void updateRecorderState(QMediaRecorder::State state); - - void updateRecordTime(); - void updateAudioDevices(); - - void processCapturedImage(const QString& fname, const QImage& img); - -private: - Ui::CameraCapture *ui; - - QDir outputDir; - QCamera *camera; - QStillImageCapture *imageCapture; - QMediaRecorder* mediaRecorder; - QAudioCaptureSource *audioSource; - QVideoWidget *videoWidget; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/cameracapture/cameracapture.pro --- a/qtmobility/examples/cameracapture/cameracapture.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -TEMPLATE = app -TARGET = cameracapture - -INCLUDEPATH+=../../src/multimedia -include(../examples.pri) - -CONFIG += mobility -MOBILITY = multimedia - -HEADERS = cameracapture.h \ - settings.h -SOURCES = main.cpp \ - cameracapture.cpp \ - settings.cpp - -symbian: { - TARGET.CAPABILITY = UserEnvironment WriteDeviceData ReadDeviceData - FORMS += cameracapture.ui \ - settings_s60.ui -} else { - FORMS += cameracapture.ui \ - settings.ui -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/cameracapture/cameracapture.ui --- a/qtmobility/examples/cameracapture/cameracapture.ui Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,364 +0,0 @@ - - CameraCapture - - - - 0 - 0 - 606 - 425 - - - - MainWindow - - - - - - - - - - - - 255 - 255 - 255 - - - - - - - 145 - 145 - 145 - - - - - - - - - 255 - 255 - 255 - - - - - - - 145 - 145 - 145 - - - - - - - - - 145 - 145 - 145 - - - - - - - 145 - 145 - 145 - - - - - - - - -1 - - - - - - - Start camera - - - true - - - false - - - - - - - true - - - Image Capture - - - true - - - true - - - - - - Take Image - - - - - - - - 0 - 0 - - - - - - - - - - - - - - Video Capture - - - true - - - true - - - - - - Record - - - - - - - Pause - - - - - - - Stop - - - - - - - Qt::Vertical - - - - 20 - 18 - - - - - - - - - - - - - 0 - 0 - 606 - 19 - - - - - File - - - - - - Devices - - - - - - - - - - - - - - Exit - - - - - Settings - - - - - Camera - - - - - Audio - - - - - - - recordButton - clicked() - CameraCapture - record() - - - 554 - 280 - - - 61 - 238 - - - - - stopButton - clicked() - CameraCapture - stop() - - - 585 - 352 - - - 140 - 236 - - - - - pauseButton - clicked() - CameraCapture - pause() - - - 585 - 316 - - - 234 - 237 - - - - - actionExit - triggered() - CameraCapture - close() - - - -1 - -1 - - - 154 - 130 - - - - - actionSettings - triggered() - CameraCapture - settings() - - - -1 - -1 - - - 242 - 206 - - - - - takeImageButton - clicked() - CameraCapture - takeImage() - - - 518 - 117 - - - 603 - 169 - - - - - startCameraButton - clicked() - CameraCapture - toggleCamera() - - - 545 - 51 - - - 589 - 46 - - - - - - record() - pause() - stop() - enablePreview(bool) - settings() - takeImage() - toggleCamera() - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/cameracapture/main.cpp --- a/qtmobility/examples/cameracapture/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +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 Qt Mobility Components. -** -** $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 "cameracapture.h" - -#include - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - - CameraCapture cameraCapture; -#ifdef Q_OS_SYMBIAN - cameraCapture.showMaximized(); -#else - cameraCapture.show(); -#endif - - return app.exec(); -}; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/cameracapture/settings.cpp --- a/qtmobility/examples/cameracapture/settings.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,194 +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 Qt Mobility Components. -** -** $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 "settings.h" -#ifdef Q_OS_SYMBIAN -#include "ui_settings_s60.h" -#else -#include "ui_settings.h" -#endif - -#include -#include -#include -#include - - - -Settings::Settings(QMediaRecorder *mediaRecorder, QWidget *parent) : - QDialog(parent), - ui(new Ui::SettingsUi), - mediaRecorder(mediaRecorder) -{ - ui->setupUi(this); - - //audio codecs - foreach(const QString &codecName, mediaRecorder->supportedAudioCodecs()) { - QString description = mediaRecorder->audioCodecDescription(codecName); - ui->audioCodecBox->addItem(codecName+": "+description, QVariant(codecName)); - } - - //sample rate: - foreach(int sampleRate, mediaRecorder->supportedAudioSampleRates()) { - ui->audioSampleRateBox->addItem(QString::number(sampleRate), QVariant(sampleRate)); - } - - ui->audioQualitySlider->setRange(0, int(QtMedia::VeryHighQuality)); - - //video codecs - foreach(const QString &codecName, mediaRecorder->supportedVideoCodecs()) { - QString description = mediaRecorder->videoCodecDescription(codecName); - ui->videoCodecBox->addItem(codecName+": "+description, QVariant(codecName)); - } - - ui->videoQualitySlider->setRange(0, int(QtMedia::VeryHighQuality)); - - - ui->videoResolutionBox->addItem(tr("Default")); - QList supportedResolutions = mediaRecorder->supportedResolutions(); - foreach(const QSize &resolution, supportedResolutions) { - ui->videoResolutionBox->addItem(QString("%1x%2").arg(resolution.width()).arg(resolution.height()), - QVariant(resolution)); - } - - ui->videoFramerateBox->addItem(tr("Default")); - QList supportedFrameRates = mediaRecorder->supportedFrameRates(); - qreal rate; - foreach(rate, supportedFrameRates) { - QString rateString = QString("%1").arg(rate, 0, 'f', 2); - ui->videoFramerateBox->addItem(rateString, QVariant(rate)); - } - - //containers - foreach(const QString &format, mediaRecorder->supportedContainers()) { - ui->containerFormatBox->addItem(format+":"+mediaRecorder->containerDescription(format), - QVariant(format)); - } -} - -Settings::~Settings() -{ - delete ui; -} - -void Settings::changeEvent(QEvent *e) -{ - QDialog::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - ui->retranslateUi(this); - break; - default: - break; - } -} - -QAudioEncoderSettings Settings::audioSettings() const -{ - QAudioEncoderSettings settings = mediaRecorder->audioSettings(); - settings.setCodec(boxValue(ui->audioCodecBox).toString()); - settings.setQuality(QtMedia::EncodingQuality(ui->audioQualitySlider->value())); - settings.setSampleRate(boxValue(ui->audioSampleRateBox).toInt()); - return settings; -} - -void Settings::setAudioSettings(const QAudioEncoderSettings &audioSettings) -{ - selectComboBoxItem(ui->audioCodecBox, QVariant(audioSettings.codec())); - selectComboBoxItem(ui->audioSampleRateBox, QVariant(audioSettings.sampleRate())); - ui->audioQualitySlider->setValue(audioSettings.quality()); -} - -QVideoEncoderSettings Settings::videoSettings() const -{ - QVideoEncoderSettings settings = mediaRecorder->videoSettings(); - settings.setCodec(boxValue(ui->videoCodecBox).toString()); - settings.setQuality(QtMedia::EncodingQuality(ui->videoQualitySlider->value())); - settings.setResolution(boxValue(ui->videoResolutionBox).toSize()); - settings.setFrameRate(boxValue(ui->videoFramerateBox).value()); - - return settings; -} - -void Settings::setVideoSettings(const QVideoEncoderSettings &videoSettings) -{ - selectComboBoxItem(ui->videoCodecBox, QVariant(videoSettings.codec())); - selectComboBoxItem(ui->videoResolutionBox, QVariant(videoSettings.resolution())); - ui->videoQualitySlider->setValue(videoSettings.quality()); - - //special case for frame rate - for (int i=0; ivideoFramerateBox->count(); i++) { - qreal itemRate = ui->videoFramerateBox->itemData(i).value(); - if (qFuzzyCompare(itemRate, videoSettings.frameRate())) { - ui->videoFramerateBox->setCurrentIndex(i); - break; - } - } -} - -QString Settings::format() const -{ - return boxValue(ui->containerFormatBox).toString(); -} - -void Settings::setFormat(const QString &format) -{ - selectComboBoxItem(ui->containerFormatBox, QVariant(format)); -} - -QVariant Settings::boxValue(const QComboBox *box) const -{ - int idx = box->currentIndex(); - if (idx == -1) - return QVariant(); - - return box->itemData(idx); -} - -void Settings::selectComboBoxItem(QComboBox *box, const QVariant &value) -{ - for (int i=0; icount(); i++) { - if (box->itemData(i) == value) { - box->setCurrentIndex(i); - break; - } - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/cameracapture/settings.h --- a/qtmobility/examples/cameracapture/settings.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +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 Qt Mobility Components. -** -** $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 SETTINGS_H -#define SETTINGS_H - -#include -#include - -QTM_BEGIN_NAMESPACE -class QMediaRecorder; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE -QT_USE_NAMESPACE - -QT_BEGIN_NAMESPACE -class QComboBox; -namespace Ui { - class SettingsUi; -} -QT_END_NAMESPACE - -class Settings : public QDialog { - Q_OBJECT -public: - Settings(QMediaRecorder *mediaRecorder, QWidget *parent = 0); - ~Settings(); - - QAudioEncoderSettings audioSettings() const; - void setAudioSettings(const QAudioEncoderSettings&); - - QVideoEncoderSettings videoSettings() const; - void setVideoSettings(const QVideoEncoderSettings&); - - QString format() const; - void setFormat(const QString &format); - -protected: - void changeEvent(QEvent *e); - -private: - QVariant boxValue(const QComboBox*) const; - void selectComboBoxItem(QComboBox *box, const QVariant &value); - - Ui::SettingsUi *ui; - QMediaRecorder *mediaRecorder; -}; - -#endif // SETTINGS_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/cameracapture/settings.ui --- a/qtmobility/examples/cameracapture/settings.ui Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,189 +0,0 @@ - - - SettingsUi - - - - 0 - 0 - 475 - 291 - - - - Dialog - - - - - - Audio - - - - - - Audio Codec: - - - - - - - - - - Sample Rate: - - - - - - - - - - Quality: - - - - - - - 4 - - - Qt::Horizontal - - - - - - - - - - Video - - - - - - Resolution: - - - - - - - - - - Framerate: - - - - - - - - - - Video Codec: - - - - - - - - - - Quality: - - - - - - - 4 - - - Qt::Horizontal - - - - - - - - - - Container Format: - - - - - - - - - - Qt::Vertical - - - - 20 - 14 - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - - - buttonBox - accepted() - Settings - accept() - - - 227 - 310 - - - 157 - 274 - - - - - buttonBox - rejected() - Settings - reject() - - - 295 - 316 - - - 286 - 274 - - - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/cameracapture/settings_s60.ui --- a/qtmobility/examples/cameracapture/settings_s60.ui Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,215 +0,0 @@ - - - SettingsUi - - - - 0 - 0 - 416 - 272 - - - - Dialog - - - - - - - - - - - - Audio Codec: - - - - - - - - - - - - - - Audio Quality: - - - - - - - 4 - - - Qt::Horizontal - - - - - - - - - - - Audio Sample Rate: - - - - - - - - - - - - - - Container Format: - - - - - - - - - - - - - - - - - - Video Resolution: - - - - - - - - - - - - - - Video Framerate: - - - - - - - - - - - - - - Video Codec: - - - - - - - - - - - - - - Video Quality: - - - - - - - 4 - - - Qt::Horizontal - - - - - - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - Qt::Vertical - - - - 20 - 14 - - - - - - - - - - buttonBox - accepted() - Settings - accept() - - - 227 - 310 - - - 157 - 274 - - - - - buttonBox - rejected() - Settings - reject() - - - 295 - 316 - - - 286 - 274 - - - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/declarative-sfw-dialer.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/declarative-sfw-dialer.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,5 @@ +TEMPLATE = subdirs +SUBDIRS += sfwexample \ + voipdialer \ + landlinedialer +#gsmdialer diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/landlinedialer/landlinedialer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/landlinedialer/landlinedialer.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,105 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 + +#include "landlinedialer.h" + +LandlineDialer::LandlineDialer(QObject *parent) + : QObject(parent), timerId(0), m_state(Disconnected) +{ + setObjectName("LandlineService"); + qsrand(QTime(0,0,0).secsTo(QTime::currentTime())+QCoreApplication::applicationPid()); +} + +LandlineDialer::ConnectionState LandlineDialer::state() const +{ + return m_state; +} + +void LandlineDialer::dialNumber(const QString& number) +{ + qDebug() << "Dialing Landline number: " << number; + if (m_state != Disconnected) + return; + + if (timerId) + killTimer(timerId); + timerId = startTimer(2000); + m_state = Connecting; + emit stateChanged(); +} + +void LandlineDialer::timerEvent(QTimerEvent* /*event*/) +{ + setNewState(); +} + +void LandlineDialer::hangup() +{ + qDebug() << "Hangup on LandlineDialer"; + if (timerId) + killTimer(timerId); + timerId = 0; + m_state = Disconnected; + emit stateChanged(); +} + +void LandlineDialer::setNewState() +{ + + switch(m_state) { + case Disconnected: + break; + case Connecting: + if ((qrand() %2) == 0) + m_state = Connected; + else + m_state = Engaged; + emit stateChanged(); + break; + case Connected: + break; + case Engaged: + + break; + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/landlinedialer/landlinedialer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/landlinedialer/landlinedialer.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,81 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 LANDLINEDIALER_H +#define LANDLINEDIALER_H + +#include + +class LandlineDialer : public QObject +{ + Q_OBJECT + Q_ENUMS(ConnectionState) +public: + LandlineDialer(QObject *parent = 0); + + enum ConnectionState { + Disconnected = 0, + Connecting, + Connected, + Engaged + }; + + Q_PROPERTY( ConnectionState state READ state NOTIFY stateChanged); + ConnectionState state() const; + + +public slots: + void dialNumber(const QString& number); + void hangup(); + +signals: + void stateChanged(); + +protected: + void timerEvent(QTimerEvent* event); +private: + void setNewState(); + int timerId; + ConnectionState m_state; +}; + + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/landlinedialer/landlinedialer.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/landlinedialer/landlinedialer.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,24 @@ +TEMPLATE = lib +CONFIG += plugin +INCLUDEPATH += ../../../src/serviceframework +TARGET = serviceframework_landlinedialerservice +include(../../examples.pri) + +QT += gui + +# Input +HEADERS += landlinedialer.h landlinedialerplugin.h +SOURCES += landlinedialer.cpp landlinedialerplugin.cpp + +CONFIG += mobility +MOBILITY = serviceframework + +symbian { + TARGET.CAPABILITY = LocalServices Location NetworkServices ReadUserData UserEnvironment WriteUserData +} + +xml.path = $$DESTDIR/xmldata +xml.files = ../landlinedialerservice.xml +xml.CONFIG = no_link no_dependencies explicit_dependencies no_build combine ignore_no_exist no_clean +INSTALLS += xml +build_pass:ALL_DEPS+=install_xml diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/landlinedialer/landlinedialerplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/landlinedialer/landlinedialerplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,60 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include +#include + +#include "landlinedialerplugin.h" +#include "landlinedialer.h" + +QObject* LandlineDialerPlugin::createInstance(const QServiceInterfaceDescriptor& descriptor, QServiceContext* context, QAbstractSecuritySession* session) +{ + Q_UNUSED(context); + Q_UNUSED(session); + if (descriptor.majorVersion() == 1) + return new LandlineDialer(this); + else + return 0; +} + +Q_EXPORT_PLUGIN2(serviceframework_landlinedialerservice, LandlineDialerPlugin) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/landlinedialer/landlinedialerplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/landlinedialer/landlinedialerplugin.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,64 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 LANDLINEDIALERPLUGIN_H +#define LANDLINEDIALERPLUGIN_H + +#include + +//! [0] +#include + +QTM_USE_NAMESPACE + +class LandlineDialerPlugin : public QObject, + public QServicePluginInterface +{ + Q_OBJECT + Q_INTERFACES(QtMobility::QServicePluginInterface) +public: + QObject* createInstance(const QServiceInterfaceDescriptor& descriptor, + QServiceContext* context, + QAbstractSecuritySession* session); +}; +//! [0] + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/landlinedialerservice.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/landlinedialerservice.xml Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,17 @@ + + + LandlineDialer + serviceframework_landlinedialerservice + Landline Dialer + + com.nokia.qt.examples.Dialer + 1.0 + Landline based implementation of Dialer + + + com.nokia.qt.examples.Dialer + 2.0 + Landline based implementation of Dialer + encrypted + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/DialButton.qml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/sfwexample/DialButton.qml Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,72 @@ +import Qt 4.6 + +//Implementation of the dialButton control. +Item { + id: dialButton + width: 50 + height: 50 + property alias buttonText: innerText.text; + property alias color: rectangleButton.color + property color hoverColor: "lightsteelblue" + property color pressColor: "slategray" + signal clicked + + Rectangle { + id: rectangleButton + anchors.fill: parent + radius: 5 + color: "steelblue" + border.width: 3 + border.color: "black" + + Text { + id: innerText + font.pointSize: 20 + anchors.centerIn: parent + } + } + + states: [ + State { + name: "Hovering" + PropertyChanges { + target: rectangleButton + color: hoverColor + } + }, + State { + name: "Pressed" + PropertyChanges { + target: rectangleButton + color: pressColor + } + } + ] + + + transitions: [ + Transition { + from: ""; to: "Hovering" + ColorAnimation { duration: 100 } + }, + Transition { + from: "*"; to: "Pressed" + ColorAnimation { duration: 10 } + } + ] + + MouseArea { + hoverEnabled: true + anchors.fill: dialButton + onEntered: { dialButton.state='Hovering'} + onExited: { dialButton.state=''} + onClicked: { dialButton.clicked();} + onPressed: { dialButton.state="Pressed" } + onReleased: { + if (containsMouse) + dialButton.state="Hovering"; + else + dialButton.state=""; + } + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/DialScreen.qml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/sfwexample/DialScreen.qml Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,126 @@ +import Qt 4.6 + +//Layout of the DialScreen control +//------------------------------------ +//|DialScreen | +//| --------------------- ____ numberPad +//| |dialNumber | / | +//| ---------------------/ _|__ hangUpButton +//| --------------------/- ------- / | +//| | | | | | |/ | +//| | 1 | 2 | 3 | | | | +//| | | | | | | | +//| ---------------------- | | | +//| | | | | | | | +//| | 4 | 5 | 6 | | | | +//| | | | | ------- | +//| ---------------------- _|__ callButton +//| | | | | ------- / | +//| | 7 | 8 | 9 | | |/ | +//| | | | | | | | +//| ---------------------- | | | +//| | | | | | | | +//| | * | 0 | # | | | | +//| | | | | | | | +//| ---------------------- ------- | +//| | +//------------------------------------ + +//! [0] +Item { + width: childrenRect.width + height: childrenRect.height + property string dialString + signal dial(string numberToDial) + signal hangup + //! [0] + + Rectangle { + id: dialNumber + height: 20 + width: numberPad.width + anchors.top: parent.top + anchors.left: parent.left + color: "white" + radius: 5 + border.width: 3 + border.color: "black" + + Text { + text: dialString + anchors.centerIn: parent + } + } + + Grid { + id: numberPad + width: childrenRect.width + height: childrenRect.height + anchors.top: dialNumber.bottom + anchors.left: parent.left + anchors.topMargin: 5 + columns: 3 + spacing: 5 + + DialButton { buttonText: "1"; onClicked: { dialString += "1";} } + DialButton { buttonText: "2"; onClicked: { dialString += "2";} } + DialButton { buttonText: "3"; onClicked: { dialString += "3";} } + DialButton { buttonText: "4"; onClicked: { dialString += "4";} } + DialButton { buttonText: "5"; onClicked: { dialString += "5";} } + DialButton { buttonText: "6"; onClicked: { dialString += "6";} } + DialButton { buttonText: "7"; onClicked: { dialString += "7";} } + DialButton { buttonText: "8"; onClicked: { dialString += "8";} } + DialButton { buttonText: "9"; onClicked: { dialString += "9";} } + DialButton { buttonText: "*"; onClicked: { dialString += "*";} } + DialButton { buttonText: "0"; onClicked: { dialString += "0";} } + DialButton { buttonText: "#"; onClicked: { dialString += "#";} } + } + + //! [1] + DialButton { + id: hangUpButton + height: { (numberPad.height / 2) - 2 } + width: 50 + anchors.top: numberPad.top + anchors.left: numberPad.right + anchors.leftMargin: 5 + hoverColor: "red" + color: "crimson" + onClicked: { + dialString = "" + hangup() + } + //! [1] + Image { + anchors.centerIn: parent + source: "hangup.png" + transformOrigin: "Center" + } + } + + //! [2] + DialButton { + id: callButton + width: 50 + height: {(numberPad.height/2) -2} + anchors.top: hangUpButton.bottom + anchors.left: numberPad.right + anchors.leftMargin: 5 + anchors.topMargin: 4 + color: "mediumseagreen" + hoverColor: "lightgreen" + onClicked: { + if (dialString != "") { + dial(dialString) + dialString = "" + } + } + //! [2] + + Image { + anchors.centerIn: parent + source: "call.png" + transformOrigin: "Center" + } + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/ServiceList.qml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/sfwexample/ServiceList.qml Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,140 @@ +import Qt 4.6 +import QtSFW 1.0 + +//Layout of the ServiceList control +//--------------------------------- +//|ServiceList | +//| ----------------------------- | +//| |title | | +//| ----------------------------- | +//| ----------------------------- | +//| |listFrame | | +//| |-------------------------- | | +//| ||serviceListView | | | +//| ||- listItem | | | +//| ||- listItem | | | +//| ||- listItem | | | +//| |---------------------------| | +//| ----------------------------- | +//--------------------------------- + +Rectangle { + property variant dialService: 0 + signal serviceSelected + + Text { + id: title + height: 20 + width: 200 + anchors.top: parent.top + anchors.left: parent.left + anchors.topMargin: 5 + anchors.leftMargin: 5 + text: "Select dial service:" + } + + Rectangle { + id : listFrame + width: childrenRect.width + height: childrenRect.height + anchors.top: title.bottom + anchors.left: parent.left; + anchors.topMargin: 5 + anchors.leftMargin: 5 + anchors.rightMargin: 5 + border.color: "black" + border.width: 3 + property bool nohighlightlistitem : true + //! [1] + Component { + id: delegate + //! [1] + //Rectangle item to draw a list view item + //This includes 2 line of text: + // ------------------------------------------ + // |Service: LandDialer (1.0) | + // |Interface: com.nokia.qt.examples Dialer | + // ------------------------------------------ + Rectangle { + id: listItem + width: serviceListView.width + height: 40 + border.color: "black" + border.width: 1 + opacity: 0.6 + + //! [2] + MouseArea { + id: listItemMouseArea + anchors.fill: parent + onClicked: { + if(listFrame.nohighlightlistitem){ + serviceListView.highlight = highlight + listFrame.nohighlightlistitem = false; + } + serviceListView.currentIndex = index; + dialService = model.modelData; + serviceSelected() + } + } + + Text { + id: serviceItemInfo + anchors.top: parent.top + anchors.left: parent.left + anchors.topMargin: 5 + anchors.leftMargin: 3 + text: " Service: " + serviceName + " (" + version + ")" + } + + Text { + id: serviceItemInterfaceName + anchors.top: serviceItemInfo.bottom + anchors.left: parent.left + anchors.topMargin: 2 + anchors.leftMargin: 3 + text: " Interface: " + interfaceName; + } + //! [2] + } + } + + //! [3] + Component { + id: highlight + + Rectangle { + width: childrenRect.width + border.color: "black"; border.width: 2 + height: 30 + color : "lightsteelblue" + gradient: Gradient { + GradientStop {position: 0.0; color: "steelblue"} + GradientStop {position: 0.5; color: "lightsteelblue"} + GradientStop {position: 1.0; color: "steelblue"} + } + } + } + //! [3] + + //! [0] + ListView { + id: serviceListView + height: 100 + width: 260 + anchors.topMargin: 5 + anchors.leftMargin: 5 + anchors.rightMargin: 5 + model: services.registeredservices + //! [0] + opacity: 1 + delegate: delegate + currentIndex: -1 + clip: true + } + } + + Services { + id: services + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/call.png Binary file qtmobility/examples/declarative-sfw-dialer/sfwexample/call.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/hangup.png Binary file qtmobility/examples/declarative-sfw-dialer/sfwexample/hangup.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/sfwexample/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,75 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include +#include + +//! [0] +//Includes for using the QML objects +#include + +//Includes for using the service framework +#include +#include +//! [0] + +#include "sfwexample.h" + +int main(int argc, char* argv[]) +{ + qmlRegisterType("QtSFW", 1, 0, "Service"); + qmlRegisterType("QtSFW", 1, 0, "Services"); + + QApplication app(argc, argv); + + //! [1] + QDeclarativeView canvas; + canvas.setSource(QUrl("qrc:/sfwexample.qml")); + + //![3] + canvas.show(); + //![3] + //! [1] + + return app.exec(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/resource.qrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/sfwexample/resource.qrc Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,8 @@ + + + sfwexample.qml + DialScreen.qml + DialButton.qml + ServiceList.qml + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/sfwexample.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/sfwexample/sfwexample.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,162 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "sfwexample.h" + +ServiceWrapper::ServiceWrapper() +: serviceInstance(0) +{ +} + +ServiceWrapper::~ServiceWrapper() +{ + delete serviceInstance; +} + +bool ServiceWrapper::isValid() const +{ + return m_descriptor.isValid(); +} + +QString ServiceWrapper::interfaceName() const +{ + if (isValid()) + return m_descriptor.interfaceName(); + else + return "No Interface"; +} + +QString ServiceWrapper::serviceName() const +{ + if (isValid()) { + return m_descriptor.serviceName(); + } else + return "No Service"; +} + +QString ServiceWrapper::version() const +{ + if (isValid()) + return QString(QString::number(m_descriptor.majorVersion())+"."+QString::number(m_descriptor.minorVersion())); + else + return QString("0.0"); +} + +void ServiceWrapper::setNativeDescriptor(const QServiceInterfaceDescriptor &d) +{ + if (d == m_descriptor) + return; + + m_descriptor = d; + + if (serviceInstance) + delete serviceInstance; + + serviceInstance = 0; +} + +void ServiceWrapper::setDescriptor(QVariant &newDescriptor) +{ + QServiceInterfaceDescriptor d = newDescriptor.value(); + setNativeDescriptor(d); +} + + +QObject* ServiceWrapper::serviceObject() +{ + qDebug() << "called serviceObject"; + if (serviceInstance) { + return serviceInstance; + } + + if (isValid()) { + QServiceManager manager; + serviceInstance = manager.loadInterface(m_descriptor); + return serviceInstance; + } else { + return 0; + } +} + +ServiceRegister::ServiceRegister() +{ + serviceManager = new QServiceManager(); + unregisterExampleServices(); + registerExampleServices(); + + //! [1] + ServiceWrapper *service; + QServiceFilter filter("com.nokia.qt.examples.Dialer"); + QList allImpl = serviceManager->findInterfaces(filter); + for (int i = 0; i < allImpl.count(); i++) { + qDebug() << "Found service:" << allImpl.at(i).serviceName() << "(" << allImpl.at(i).interfaceName() << ")"; + service = new ServiceWrapper(); + service->setNativeDescriptor(allImpl.at(i)); + m_services.append(service); + } + //! [1] +} + +ServiceRegister::~ServiceRegister() +{ + unregisterExampleServices(); +} + +void ServiceRegister::registerExampleServices() +{ + //! [0] + QStringList exampleXmlFiles; + exampleXmlFiles << "voipdialerservice.xml" << "landlinedialerservice.xml"; + foreach (const QString &fileName, exampleXmlFiles) { + QString path = QCoreApplication::applicationDirPath() + "/xmldata/" + fileName; + serviceManager->addService(path); + } + //! [0] +} + +void ServiceRegister::unregisterExampleServices() +{ + serviceManager->removeService("VoipDialer"); + serviceManager->removeService("LandlineDialer"); +} + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/sfwexample.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/sfwexample/sfwexample.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,113 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include +#include + +QTM_USE_NAMESPACE + +Q_DECLARE_METATYPE(QServiceInterfaceDescriptor) + +//! [0] +class ServiceWrapper : public QObject { + Q_OBJECT + Q_PROPERTY(bool isValid READ isValid); + Q_PROPERTY(QString serviceName READ serviceName CONSTANT); + Q_PROPERTY(QString interfaceName READ interfaceName CONSTANT); + Q_PROPERTY(QString version READ version NOTIFY versionChanged); +//! [0] + +public: + ServiceWrapper(); + + ~ServiceWrapper() ; + + bool isValid() const; + + QString serviceName() const; + + QString interfaceName() const; + + void setNativeDescriptor(const QServiceInterfaceDescriptor& desc); + + void setDescriptor(QVariant& newDescriptor); + + QString version() const; + + Q_INVOKABLE QObject* serviceObject(); + +private: + QServiceInterfaceDescriptor m_descriptor; + QObject* serviceInstance; +}; + +QML_DECLARE_TYPE(ServiceWrapper) + +//! [1] +class ServiceRegister : public QObject { + Q_OBJECT + Q_PROPERTY(QList* registeredservices READ registeredservices NOTIFY modelChanged CONSTANT); +//! [1] + +public: + ServiceRegister(); + ~ServiceRegister(); + + QList *registeredservices() {return &m_services; } + + void registerExampleServices(); + + void unregisterExampleServices(); + + void serviceStateChange(int state); + +private: + QServiceManager* serviceManager; + QList m_services; + +signals: + void modelChanged(); +}; + +QML_DECLARE_TYPE(ServiceRegister) + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/sfwexample.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/sfwexample/sfwexample.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,26 @@ +TEMPLATE=app +TARGET=declarative-sfw-dialer +INCLUDEPATH += ../../../src/serviceframework + +include(../../examples.pri) + +QT += gui declarative + +# Input +HEADERS += sfwexample.h +SOURCES += sfwexample.cpp \ + main.cpp + +CONFIG += mobility +MOBILITY = serviceframework + +RESOURCES += resource.qrc + +symbian { + # There are platsec warnings about missing 'AllFiles' + # capabilities, but application works regardless + # (they come from QDeclarativeView::setSource). + # The unnecessary need for 'AllFiles' is being analyzed. + # Comment date: 18-Mar-2010 + TARGET.CAPABILITY = ReadUserData WriteUserData +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/sfwexample/sfwexample.qml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/sfwexample/sfwexample.qml Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,148 @@ +import Qt 4.6 + +//Layout of the mainPage +//---------------------------------------------- ____ mainPage +//| ------------------- ---------------------- | / +//| | serviceList | | dialScreen | |/ +//| | | | | | +//| | | | | | +//| | | | | | +//| ------------------- | | | +//| ------------------- | | | +//| | serviceDetails | | | | +//| ------------------- | | | +//| | | | +//| | | | +//| | | | +//| | | | +//| ------------------- | | | +//| | status | | | | +//| ------------------- ---------------------- | +//---------------------------------------------- + +Rectangle { + id: mainPage + width: 500 + height: 250 + color: "white" + + ServiceList { + id: serviceList + height: childrenRect.height + 10 + width: childrenRect.width + anchors.top: parent.top + anchors.left: parent.left + anchors.right: dialScreen.left + anchors.topMargin: 5 + anchors.leftMargin: 5 + anchors.rightMargin: 5 + radius: 5 + color: "steelblue" + border.color: "black" + border.width: 3 + gradient: + Gradient { + GradientStop { + position: 0.0 + color: "lightsteelblue" + } + + GradientStop { + position: 1.0 + color: "steelblue" + } + } + onServiceSelected: { ServiceSelected(); } + } + + Script { + function ServiceSelected() + { + serviceDetails.text = "Selected dial service:" + "\n " + + serviceList.dialService.serviceName + + "\n (" + serviceList.dialService.version + ")"; + } + } + + Text { + id: serviceDetails + text: "Selected dial service:" + anchors.topMargin: 5 + anchors.leftMargin: 5 + anchors.rightMargin: 5; + anchors.left: parent.left + anchors.top: serviceList.bottom + } + + Text { + id: status + anchors.top: parent.bottom + anchors.left: parent.left + anchors.topMargin: -40 + anchors.leftMargin: 5 + } + + Timer { + id: clearStatusTimer + interval: 2000 + running: false + repeat: false + onTriggered: { + status.text = "" + } + } + + //! [0] + DialScreen { + id: dialScreen + property bool activeCall : false + property var currentDialer: 0; + anchors.topMargin: 5 + anchors.leftMargin: 5 + anchors.rightMargin: 5 + anchors.right: parent.right + anchors.top: parent.top + onDial: { + if (activeCall == false) { + if (serviceList.dialService != 0) { + var o = serviceList.dialService.serviceObject(); + status.text = "Dialing " + numberToDial +"..."; + dialScreen.currentDialer = o; + o.dialNumber(numberToDial); + activeCall = true; + } + } + } + onHangup: { + if (activeCall) { + if (dialScreen.currentDialer != 0) { + dialScreen.currentDialer.hangup(); + } + status.text = "Hang up"; + } + } + } + //! [0] + + //! [1] + Connections { + target: dialScreen + onStateChanged: { + if (dialScreen.currentDialer.state == 1) { + status.text += "\nRinging"; + } + else if (dialScreen.currentDialer.state == 2) { + status.text += "\nConnected"; + } + else if (dialScreen.currentDialer.state == 0) { + status.text += "\nConnection terminated"; + dialScreen.activeCall = false; + clearStatusTimer.running = true; + } + else if (dialScreen.currentDialer.state == 3) { + status.text += "\nPhone already engaged"; + } + } + } + //! [1] +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/voipdialer/voipdialer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/voipdialer/voipdialer.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,105 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 + +#include "voipdialer.h" + +VoipDialer::VoipDialer(QObject *parent) + : QObject(parent), timerId(0), m_state(Disconnected) +{ + setObjectName("VoipService"); + qsrand(QTime(0,0,0).secsTo(QTime::currentTime())+QCoreApplication::applicationPid()); +} + +VoipDialer::ConnectionState VoipDialer::state() const +{ + return m_state; +} + +void VoipDialer::dialNumber(const QString& number) +{ + qDebug() << "Dialing Voip number: " << number; + if (m_state != Disconnected) + return; + + if (timerId) + killTimer(timerId); + timerId = startTimer(2000); + m_state = Connecting; + emit stateChanged(); +} + +void VoipDialer::timerEvent(QTimerEvent* /*event*/) +{ + setNewState(); +} + +void VoipDialer::hangup() +{ + qDebug() << "Hangup on VoipDialer"; + if (timerId) + killTimer(timerId); + timerId = 0; + m_state = Disconnected; + emit stateChanged(); +} + +void VoipDialer::setNewState() +{ + + switch(m_state) { + case Disconnected: + break; + case Connecting: + if ((qrand() %2) == 0) + m_state = Connected; + else + m_state = Engaged; + emit stateChanged(); + break; + case Connected: + break; + case Engaged: + + break; + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/voipdialer/voipdialer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/voipdialer/voipdialer.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,82 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 VOIPDIALER_H +#define VOIPDIALER_H + +#include + +class VoipDialer : public QObject +{ + Q_OBJECT + Q_ENUMS(ConnectionState) +public: + VoipDialer(QObject *parent = 0); + + //! [0] +public: + enum ConnectionState { + Disconnected = 0, + Connecting, + Connected, + Engaged + }; + Q_PROPERTY( ConnectionState state READ state NOTIFY stateChanged); + ConnectionState state() const; + +public slots: + void dialNumber(const QString& number); + void hangup(); + +signals: + void stateChanged(); + //! [0] + +protected: + void timerEvent(QTimerEvent* event); +private: + void setNewState(); + int timerId; + ConnectionState m_state; +}; + + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/voipdialer/voipdialer.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/voipdialer/voipdialer.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,24 @@ +TEMPLATE = lib +CONFIG += plugin +INCLUDEPATH += ../../../src/serviceframework +TARGET = serviceframework_voipdialerservice +include(../../examples.pri) + +QT += gui + +# Input +HEADERS += voipdialer.h voipdialerplugin.h +SOURCES += voipdialer.cpp voipdialerplugin.cpp + +CONFIG += mobility +MOBILITY = serviceframework + +symbian { + TARGET.CAPABILITY = LocalServices Location NetworkServices ReadUserData UserEnvironment WriteUserData +} + +xml.path = $$DESTDIR/xmldata +xml.files = ../voipdialerservice.xml +xml.CONFIG = no_link no_dependencies explicit_dependencies no_build combine ignore_no_exist no_clean +INSTALLS += xml +build_pass:ALL_DEPS+=install_xml diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/voipdialer/voipdialerplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/voipdialer/voipdialerplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,59 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include + +#include "voipdialerplugin.h" +#include "voipdialer.h" + +//! [0] +QObject* VoipDialerPlugin::createInstance(const QServiceInterfaceDescriptor& descriptor, QServiceContext* context, QAbstractSecuritySession* session) +{ + Q_UNUSED(descriptor); + Q_UNUSED(context); + Q_UNUSED(session); + return new VoipDialer(this); +} + +Q_EXPORT_PLUGIN2(serviceframework_voipdialerservice, VoipDialerPlugin) +//! [0] diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/voipdialer/voipdialerplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/voipdialer/voipdialerplugin.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,65 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 VOIPDIALERPLUGIN_H +#define VOIPDIALERPLUGIN_H + +#include + +#include + +QTM_USE_NAMESPACE + +//! [0] +class VoipDialerPlugin : public QObject, + public QServicePluginInterface +{ + Q_OBJECT + Q_INTERFACES(QtMobility::QServicePluginInterface) +//! [0] + +public: + QObject* createInstance(const QServiceInterfaceDescriptor& descriptor, + QServiceContext* context, + QAbstractSecuritySession* session); +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative-sfw-dialer/voipdialerservice.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/declarative-sfw-dialer/voipdialerservice.xml Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,11 @@ + + + VoipDialer + serviceframework_voipdialerservice + Voip Dialer + + com.nokia.qt.examples.Dialer + 1.0 + VoIP based implementation Dialer + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/DialButton.qml --- a/qtmobility/examples/declarative/DialButton.qml Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +0,0 @@ -import Qt 4.6 - -//Implementation of the dialButton control. -Item { - id: dialButton - width: 50 - height: 50 - property alias buttonText: innerText.text; - property alias color: rectangleButton.color - property color hoverColor: "lightsteelblue" - property color pressColor: "slategray" - signal clicked - - Rectangle { - id: rectangleButton - anchors.fill: parent - radius: 5 - color: "steelblue" - border.width: 3 - border.color: "black" - - Text { - id: innerText - font.pointSize: 20 - anchors.centerIn: parent - } - } - - states: [ - State { - name: "Hovering" - PropertyChanges { - target: rectangleButton - color: hoverColor - } - }, - State { - name: "Pressed" - PropertyChanges { - target: rectangleButton - color: pressColor - } - } - ] - - - transitions: [ - Transition { - from: ""; to: "Hovering" - ColorAnimation { duration: 100 } - }, - Transition { - from: "*"; to: "Pressed" - ColorAnimation { duration: 10 } - } - ] - - MouseRegion { - hoverEnabled: true - anchors.fill: dialButton - onEntered: { dialButton.state='Hovering'} - onExited: { dialButton.state=''} - onClicked: { dialButton.clicked();} - onPressed: { dialButton.state="Pressed" } - onReleased: { - if (containsMouse) - dialButton.state="Hovering"; - else - dialButton.state=""; - } - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/DialScreen.qml --- a/qtmobility/examples/declarative/DialScreen.qml Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,126 +0,0 @@ -import Qt 4.6 - -//Layout of the DialScreen control -//------------------------------------ -//|DialScreen | -//| --------------------- ____ numberPad -//| |dialNumber | / | -//| ---------------------/ _|__ hangUpButton -//| --------------------/- ------- / | -//| | | | | | |/ | -//| | 1 | 2 | 3 | | | | -//| | | | | | | | -//| ---------------------- | | | -//| | | | | | | | -//| | 4 | 5 | 6 | | | | -//| | | | | ------- | -//| ---------------------- _|__ callButton -//| | | | | ------- / | -//| | 7 | 8 | 9 | | |/ | -//| | | | | | | | -//| ---------------------- | | | -//| | | | | | | | -//| | * | 0 | # | | | | -//| | | | | | | | -//| ---------------------- ------- | -//| | -//------------------------------------ - -//! [0] -Item { - width: childrenRect.width - height: childrenRect.height - property string dialString - signal dial(string numberToDial) - signal hangup - //! [0] - - Rectangle { - id: dialNumber - height: 20 - width: numberPad.width - anchors.top: parent.top - anchors.left: parent.left - color: "white" - radius: 5 - border.width: 3 - border.color: "black" - - Text { - text: dialString - anchors.centerIn: parent - } - } - - Grid { - id: numberPad - width: childrenRect.width - height: childrenRect.height - anchors.top: dialNumber.bottom - anchors.left: parent.left - anchors.topMargin: 5 - columns: 3 - spacing: 5 - - DialButton { buttonText: "1"; onClicked: { dialString += "1";} } - DialButton { buttonText: "2"; onClicked: { dialString += "2";} } - DialButton { buttonText: "3"; onClicked: { dialString += "3";} } - DialButton { buttonText: "4"; onClicked: { dialString += "4";} } - DialButton { buttonText: "5"; onClicked: { dialString += "5";} } - DialButton { buttonText: "6"; onClicked: { dialString += "6";} } - DialButton { buttonText: "7"; onClicked: { dialString += "7";} } - DialButton { buttonText: "8"; onClicked: { dialString += "8";} } - DialButton { buttonText: "9"; onClicked: { dialString += "9";} } - DialButton { buttonText: "*"; onClicked: { dialString += "*";} } - DialButton { buttonText: "0"; onClicked: { dialString += "0";} } - DialButton { buttonText: "#"; onClicked: { dialString += "#";} } - } - - //! [1] - DialButton { - id: hangUpButton - height: { (numberPad.height / 2) - 2 } - width: 50 - anchors.top: numberPad.top - anchors.left: numberPad.right - anchors.leftMargin: 5 - hoverColor: "red" - color: "crimson" - onClicked: { - dialString = "" - hangup() - } - //! [1] - Image { - anchors.centerIn: parent - source: "hangup.png" - transformOrigin: "Center" - } - } - - //! [2] - DialButton { - id: callButton - width: 50 - height: {(numberPad.height/2) -2} - anchors.top: hangUpButton.bottom - anchors.left: numberPad.right - anchors.leftMargin: 5 - anchors.topMargin: 4 - color: "mediumseagreen" - hoverColor: "lightgreen" - onClicked: { - if (dialString != "") { - dial(dialString) - dialString = "" - } - } - //! [2] - - Image { - anchors.centerIn: parent - source: "call.png" - transformOrigin: "Center" - } - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/ServiceList.qml --- a/qtmobility/examples/declarative/ServiceList.qml Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,141 +0,0 @@ -import Qt 4.6 -import QtSFW 1.0 - -//Layout of the ServiceList control -//--------------------------------- -//|ServiceList | -//| ----------------------------- | -//| |title | | -//| ----------------------------- | -//| ----------------------------- | -//| |listFrame | | -//| |-------------------------- | | -//| ||serviceListView | | | -//| ||- listItem | | | -//| ||- listItem | | | -//| ||- listItem | | | -//| |---------------------------| | -//| ----------------------------- | -//--------------------------------- - -Rectangle { - property variant dialService: 0 - signal serviceSelected - - Text { - id: title - height: 20 - width: 200 - anchors.top: parent.top - anchors.left: parent.left - anchors.topMargin: 5 - anchors.leftMargin: 5 - text: "Select dial service:" - } - - Rectangle { - id : listFrame - width: childrenRect.width - height: childrenRect.height - anchors.top: title.bottom - anchors.left: parent.left; - anchors.topMargin: 5 - anchors.leftMargin: 5 - anchors.rightMargin: 5 - border.color: "black" - border.width: 3 - property bool nohighlightlistitem : true - //! [1] - Component { - id: delegate - //! [1] - //Rectangle item to draw a list view item - //This includes 2 line of text: - // ------------------------------------------ - // |Service: LandDialer (1.0) | - // |Interface: com.nokia.qt.examples Dialer | - // ------------------------------------------ - Rectangle { - id: listItem - width: serviceListView.width - height: 40 - border.color: "black" - border.width: 1 - opacity: 0.6 - - //! [2] - MouseRegion { - id: listItemMouseRegion - anchors.fill: parent - onClicked: { - if(listFrame.nohighlightlistitem){ - serviceListView.highlight = highlight - listFrame.nohighlightlistitem = false; - } - serviceListView.currentIndex = index; - dialService = model.modelData; - console.log("HELLO: " + dialService + " " + model.modelData); - serviceSelected() - } - } - - Text { - id: serviceItemInfo - anchors.top: parent.top - anchors.left: parent.left - anchors.topMargin: 5 - anchors.leftMargin: 3 - text: " Service: " + serviceName + " (" + version + ")" - } - - Text { - id: serviceItemInterfaceName - anchors.top: serviceItemInfo.bottom - anchors.left: parent.left - anchors.topMargin: 2 - anchors.leftMargin: 3 - text: " Interface: " + interfaceName; - } - //! [2] - } - } - - //! [3] - Component { - id: highlight - - Rectangle { - width: childrenRect.width - border.color: "black"; border.width: 2 - height: 30 - color : "lightsteelblue" - gradient: Gradient { - GradientStop {position: 0.0; color: "steelblue"} - GradientStop {position: 0.5; color: "lightsteelblue"} - GradientStop {position: 1.0; color: "steelblue"} - } - } - } - //! [3] - - //! [0] - ListView { - id: serviceListView - height: 100 - width: 260 - anchors.topMargin: 5 - anchors.leftMargin: 5 - anchors.rightMargin: 5 - model: services.registeredservices - //! [0] - opacity: 1 - delegate: delegate - currentIndex: -1 - clip: true - } - } - - Services { - id: services - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/call.png Binary file qtmobility/examples/declarative/call.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/declarative.pro --- a/qtmobility/examples/declarative/declarative.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -TEMPLATE = subdirs -SUBDIRS += demo \ - voipdialer \ - landlinedialer -#gsmdialer diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/demo/demo.pro --- a/qtmobility/examples/declarative/demo/demo.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -TEMPLATE=app -TARGET=sfw-kinetic-example -INCLUDEPATH += ../../../src/serviceframework - -include(../../examples.pri) - -QT += gui declarative - -# Input -HEADERS += ../sfwexample.h -SOURCES += ../sfwexample.cpp \ - ../main.cpp - -CONFIG += mobility -MOBILITY = serviceframework - -symbian { - TARGET.CAPABILITY = ALL -TCB -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/hangup.png Binary file qtmobility/examples/declarative/hangup.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/landlinedialer/landlinedialer.cpp --- a/qtmobility/examples/declarative/landlinedialer/landlinedialer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +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 Qt Mobility Components. -** -** $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 - -#include "landlinedialer.h" - -LandlineDialer::LandlineDialer(QObject *parent) - : QObject(parent), timerId(0), m_state(Disconnected) -{ - setObjectName("LandlineService"); - qsrand(QTime(0,0,0).secsTo(QTime::currentTime())+QCoreApplication::applicationPid()); -} - -LandlineDialer::ConnectionState LandlineDialer::state() const -{ - return m_state; -} - -void LandlineDialer::dialNumber(const QString& number) -{ - qDebug() << "Dialing Landline number: " << number; - if (m_state != Disconnected) - return; - - if (timerId) - killTimer(timerId); - timerId = startTimer(2000); - m_state = Connecting; - emit stateChanged(); -} - -void LandlineDialer::timerEvent(QTimerEvent* /*event*/) -{ - setNewState(); -} - -void LandlineDialer::hangup() -{ - qDebug() << "Hangup on LandlineDialer"; - if (timerId) - killTimer(timerId); - timerId = 0; - m_state = Disconnected; - emit stateChanged(); -} - -void LandlineDialer::setNewState() -{ - - switch(m_state) { - case Disconnected: - break; - case Connecting: - if ((qrand() %2) == 0) - m_state = Connected; - else - m_state = Engaged; - emit stateChanged(); - break; - case Connected: - break; - case Engaged: - - break; - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/landlinedialer/landlinedialer.h --- a/qtmobility/examples/declarative/landlinedialer/landlinedialer.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,81 +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 Qt Mobility Components. -** -** $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 LANDLINEDIALER_H -#define LANDLINEDIALER_H - -#include - -class LandlineDialer : public QObject -{ - Q_OBJECT - Q_ENUMS(ConnectionState) -public: - LandlineDialer(QObject *parent = 0); - - enum ConnectionState { - Disconnected = 0, - Connecting, - Connected, - Engaged - }; - - Q_PROPERTY( ConnectionState state READ state NOTIFY stateChanged); - ConnectionState state() const; - - -public slots: - void dialNumber(const QString& number); - void hangup(); - -signals: - void stateChanged(); - -protected: - void timerEvent(QTimerEvent* event); -private: - void setNewState(); - int timerId; - ConnectionState m_state; -}; - - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/landlinedialer/landlinedialer.pro --- a/qtmobility/examples/declarative/landlinedialer/landlinedialer.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -TEMPLATE = lib -CONFIG += plugin -INCLUDEPATH += ../../../src/serviceframework -TARGET = serviceframework_landlinedialerservice -include(../../examples.pri) - -QT += gui - -# Input -HEADERS += landlinedialer.h landlinedialerplugin.h -SOURCES += landlinedialer.cpp landlinedialerplugin.cpp - -CONFIG += mobility -MOBILITY = serviceframework - -symbian { - TARGET.CAPABILITY = ALL -TCB -} - -xml.path = $$DESTDIR/xmldata -xml.files = landlinedialerservice.xml -xml.CONFIG = no_link no_dependencies explicit_dependencies no_build combine ignore_no_exist no_clean -INSTALLS += xml -build_pass:ALL_DEPS+=install_xml diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/landlinedialer/landlinedialerplugin.cpp --- a/qtmobility/examples/declarative/landlinedialer/landlinedialerplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +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 Qt Mobility Components. -** -** $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 -#include -#include -#include - -#include "landlinedialerplugin.h" -#include "landlinedialer.h" - -QObject* LandlineDialerPlugin::createInstance(const QServiceInterfaceDescriptor& descriptor, QServiceContext* context, QAbstractSecuritySession* session) -{ - Q_UNUSED(context); - Q_UNUSED(session); - if (descriptor.majorVersion() == 1) - return new LandlineDialer(this); - else - return 0; -} - -Q_EXPORT_PLUGIN2(serviceframework_landlinedialerservice, LandlineDialerPlugin) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/landlinedialer/landlinedialerplugin.h --- a/qtmobility/examples/declarative/landlinedialer/landlinedialerplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +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 Qt Mobility Components. -** -** $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 LANDLINEDIALERPLUGIN_H -#define LANDLINEDIALERPLUGIN_H - -#include - -//! [0] -#include - -QTM_USE_NAMESPACE - -class LandlineDialerPlugin : public QObject, - public QServicePluginInterface -{ - Q_OBJECT - Q_INTERFACES(QtMobility::QServicePluginInterface) -public: - QObject* createInstance(const QServiceInterfaceDescriptor& descriptor, - QServiceContext* context, - QAbstractSecuritySession* session); -}; -//! [0] - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/landlinedialerservice.xml --- a/qtmobility/examples/declarative/landlinedialerservice.xml Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ - - - LandlineDialer - serviceframework_landlinedialerservice - Landline Dialer - - com.nokia.qt.examples.Dialer - 1.0 - Landline based implementation of Dialer - - - com.nokia.qt.examples.Dialer - 2.0 - Landline based implementation of Dialer - encrypted - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/main.cpp --- a/qtmobility/examples/declarative/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +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 Qt Mobility Components. -** -** $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 -#include -#include -#include -#include -#include - -//! [0] -//Includes for using the QML objects -#include -#include - -//Includes for using the service framework -#include -#include -//! [0] - -#include "sfwexample.h" - -void usage() -{ - qWarning() << "Usage: sfw-kinetic-example.qml"; -} - -int main(int argc, char** argv) -{ - QApplication app(argc, argv); - - QString qmlFile; - for (int j = 1; j < argc; j++) { - QString arg = argv[j]; - if (arg.startsWith(QChar('-'))) - continue; - else - qmlFile = arg; - } - - if (qmlFile.isEmpty()) { - usage(); - return 1; - } - - //! [1] - QUrl url(qmlFile); - QFileInfo fi(qmlFile); - if (fi.exists()) - url = QUrl::fromLocalFile(fi.absoluteFilePath()); - else - return 1; - - QmlView canvas; - canvas.setSource(url); - //! [1] - - //! [2] - //... - //! [2] - - //! [3] - canvas.execute(); - canvas.show(); - //! [3] - - return app.exec();} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/sfw-kinetic-example.qml --- a/qtmobility/examples/declarative/sfw-kinetic-example.qml Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,149 +0,0 @@ -import Qt 4.6 - -//Layout of the mainPage -//---------------------------------------------- ____ mainPage -//| ------------------- ---------------------- | / -//| | serviceList | | dialScreen | |/ -//| | | | | | -//| | | | | | -//| | | | | | -//| ------------------- | | | -//| ------------------- | | | -//| | serviceDetails | | | | -//| ------------------- | | | -//| | | | -//| | | | -//| | | | -//| | | | -//| ------------------- | | | -//| | status | | | | -//| ------------------- ---------------------- | -//---------------------------------------------- - -Rectangle { - id: mainPage - width: 500 - height: 250 - color: "white" - - ServiceList { - id: serviceList - height: childrenRect.height + 10 - width: childrenRect.width - anchors.top: parent.top - anchors.left: parent.left - anchors.right: dialScreen.left - anchors.topMargin: 5 - anchors.leftMargin: 5 - anchors.rightMargin: 5 - radius: 5 - color: "steelblue" - border.color: "black" - border.width: 3 - gradient: - Gradient { - GradientStop { - position: 0.0 - color: "lightsteelblue" - } - - GradientStop { - position: 1.0 - color: "steelblue" - } - } - onServiceSelected: { ServiceSelected(); } - } - - Script { - function ServiceSelected() - { - serviceDetails.text = "Selected dial service:" + "\n " + - serviceList.dialService.serviceName + - "\n (" + serviceList.dialService.version + ")"; - } - } - - Text { - id: serviceDetails - text: "Selected dial service:" - anchors.topMargin: 5 - anchors.leftMargin: 5 - anchors.rightMargin: 5; - anchors.left: parent.left - anchors.top: serviceList.bottom - } - - Text { - id: status - anchors.top: parent.bottom - anchors.left: parent.left - anchors.topMargin: -40 - anchors.leftMargin: 5 - } - - Timer { - id: clearStatusTimer - interval: 2000 - running: false - repeat: false - onTriggered: { - status.text = "" - } - } - - //! [0] - DialScreen { - id: dialScreen - property bool activeCall : false - property var currentDialer: 0; - anchors.topMargin: 5 - anchors.leftMargin: 5 - anchors.rightMargin: 5 - anchors.right: parent.right - anchors.top: parent.top - onDial: { - if (activeCall == false) { - if (serviceList.dialService != 0) { - var o = serviceList.dialService.serviceObject(); - status.text = "Dialing " + numberToDial +"..."; - dialScreen.currentDialer = o; - o.dialNumber(numberToDial); - activeCall = true; - } - } - } - onHangup: { - if (activeCall) { - if (dialScreen.currentDialer != 0) { - dialScreen.currentDialer.hangup(); - } - status.text = "Hang up"; - } - } - } - //! [0] - - //! [1] - Connection { - sender: dialScreen - signal: "stateChanged()" - script: { - if (dialScreen.currentDialer.state == 1) { - status.text += "\nRinging"; - } - else if (dialScreen.currentDialer.state == 2) { - status.text += "\nConnected"; - } - else if (dialScreen.currentDialer.state == 0) { - status.text += "\nConnection terminated"; - dialScreen.activeCall = false; - clearStatusTimer.running = true; - } - else if (dialScreen.currentDialer.state == 3) { - status.text += "\nPhone already engaged"; - } - } - } - //! [1] -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/sfwexample.cpp --- a/qtmobility/examples/declarative/sfwexample.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,166 +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 Qt Mobility Components. -** -** $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 "sfwexample.h" - -QML_DEFINE_TYPE(QtSFW,1,0,Service,ServiceWrapper) - -ServiceWrapper::ServiceWrapper() -: serviceInstance(0) -{ -} - -ServiceWrapper::~ServiceWrapper() -{ - delete serviceInstance; -} - -bool ServiceWrapper::isValid() const -{ - return m_descriptor.isValid(); -} - -QString ServiceWrapper::interfaceName() const -{ - if (isValid()) - return m_descriptor.interfaceName(); - else - return "No Interface"; -} - -QString ServiceWrapper::serviceName() const -{ - if (isValid()) { - return m_descriptor.serviceName(); - } else - return "No Service"; -} - -QString ServiceWrapper::version() const -{ - if (isValid()) - return QString(QString::number(m_descriptor.majorVersion())+"."+QString::number(m_descriptor.minorVersion())); - else - return QString("0.0"); -} - -void ServiceWrapper::setNativeDescriptor(const QServiceInterfaceDescriptor &d) -{ - if (d == m_descriptor) - return; - - m_descriptor = d; - - if (serviceInstance) - delete serviceInstance; - - serviceInstance = 0; -} - -void ServiceWrapper::setDescriptor(QVariant &newDescriptor) -{ - QServiceInterfaceDescriptor d = newDescriptor.value(); - setNativeDescriptor(d); -} - - -QObject* ServiceWrapper::serviceObject() -{ - qDebug() << "called serviceObject"; - if (serviceInstance) { - return serviceInstance; - } - - if (isValid()) { - QServiceManager manager; - serviceInstance = manager.loadInterface(m_descriptor); - return serviceInstance; - } else { - return 0; - } -} - -QML_DEFINE_TYPE(QtSFW,1,0,Services,ServiceRegister) - -ServiceRegister::ServiceRegister() -{ - serviceManager = new QServiceManager(); - unregisterExampleServices(); - registerExampleServices(); - - //! [1] - ServiceWrapper *service; - QServiceFilter filter("com.nokia.qt.examples.Dialer"); - QList allImpl = serviceManager->findInterfaces(filter); - for (int i = 0; i < allImpl.count(); i++) { - qDebug() << "Found service:" << allImpl.at(i).serviceName() << "(" << allImpl.at(i).interfaceName() << ")"; - service = new ServiceWrapper(); - service->setNativeDescriptor(allImpl.at(i)); - m_services.append(service); - } - //! [1] -} - -ServiceRegister::~ServiceRegister() -{ - unregisterExampleServices(); -} - -void ServiceRegister::registerExampleServices() -{ - //! [0] - QStringList exampleXmlFiles; - exampleXmlFiles << "voipdialerservice.xml" << "landlinedialerservice.xml"; - foreach (const QString &fileName, exampleXmlFiles) { - QString path = QCoreApplication::applicationDirPath() + "/xmldata/" + fileName; - serviceManager->addService(path); - } - //! [0] -} - -void ServiceRegister::unregisterExampleServices() -{ - serviceManager->removeService("VoipDialer"); - serviceManager->removeService("LandlineDialer"); -} - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/sfwexample.h --- a/qtmobility/examples/declarative/sfwexample.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +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 Qt Mobility Components. -** -** $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 -#include -#include -#include - -QTM_USE_NAMESPACE - -Q_DECLARE_METATYPE(QServiceInterfaceDescriptor) - -//! [0] -class ServiceWrapper : public QObject { - Q_OBJECT - Q_PROPERTY(bool isValid READ isValid); - Q_PROPERTY(QString serviceName READ serviceName CONSTANT); - Q_PROPERTY(QString interfaceName READ interfaceName CONSTANT); - Q_PROPERTY(QString version READ version NOTIFY versionChanged); -//! [0] - -public: - ServiceWrapper(); - - ~ServiceWrapper() ; - - bool isValid() const; - - QString serviceName() const; - - QString interfaceName() const; - - void setNativeDescriptor(const QServiceInterfaceDescriptor& desc); - - void setDescriptor(QVariant& newDescriptor); - - QString version() const; - - Q_INVOKABLE QObject* serviceObject(); - -private: - QServiceInterfaceDescriptor m_descriptor; - QObject* serviceInstance; -}; - -QML_DECLARE_TYPE(ServiceWrapper) - -//! [1] -class ServiceRegister : public QObject { - Q_OBJECT - Q_PROPERTY(QList* registeredservices READ registeredservices NOTIFY modelChanged CONSTANT); -//! [1] - -public: - ServiceRegister(); - ~ServiceRegister(); - - QList *registeredservices() {return &m_services; } - - void registerExampleServices(); - - void unregisterExampleServices(); - - void serviceStateChange(int state); - -private: - QServiceManager* serviceManager; - QList m_services; - -signals: - void modelChanged(); -}; - -QML_DECLARE_TYPE(ServiceRegister) - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/voipdialer/voipdialer.cpp --- a/qtmobility/examples/declarative/voipdialer/voipdialer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +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 Qt Mobility Components. -** -** $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 - -#include "voipdialer.h" - -VoipDialer::VoipDialer(QObject *parent) - : QObject(parent), timerId(0), m_state(Disconnected) -{ - setObjectName("VoipService"); - qsrand(QTime(0,0,0).secsTo(QTime::currentTime())+QCoreApplication::applicationPid()); -} - -VoipDialer::ConnectionState VoipDialer::state() const -{ - return m_state; -} - -void VoipDialer::dialNumber(const QString& number) -{ - qDebug() << "Dialing Voip number: " << number; - if (m_state != Disconnected) - return; - - if (timerId) - killTimer(timerId); - timerId = startTimer(2000); - m_state = Connecting; - emit stateChanged(); -} - -void VoipDialer::timerEvent(QTimerEvent* /*event*/) -{ - setNewState(); -} - -void VoipDialer::hangup() -{ - qDebug() << "Hangup on VoipDialer"; - if (timerId) - killTimer(timerId); - timerId = 0; - m_state = Disconnected; - emit stateChanged(); -} - -void VoipDialer::setNewState() -{ - - switch(m_state) { - case Disconnected: - break; - case Connecting: - if ((qrand() %2) == 0) - m_state = Connected; - else - m_state = Engaged; - emit stateChanged(); - break; - case Connected: - break; - case Engaged: - - break; - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/voipdialer/voipdialer.h --- a/qtmobility/examples/declarative/voipdialer/voipdialer.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +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 Qt Mobility Components. -** -** $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 VOIPDIALER_H -#define VOIPDIALER_H - -#include - -class VoipDialer : public QObject -{ - Q_OBJECT - Q_ENUMS(ConnectionState) -public: - VoipDialer(QObject *parent = 0); - - //! [0] -public: - enum ConnectionState { - Disconnected = 0, - Connecting, - Connected, - Engaged - }; - Q_PROPERTY( ConnectionState state READ state NOTIFY stateChanged); - ConnectionState state() const; - -public slots: - void dialNumber(const QString& number); - void hangup(); - -signals: - void stateChanged(); - //! [0] - -protected: - void timerEvent(QTimerEvent* event); -private: - void setNewState(); - int timerId; - ConnectionState m_state; -}; - - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/voipdialer/voipdialer.pro --- a/qtmobility/examples/declarative/voipdialer/voipdialer.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -TEMPLATE = lib -CONFIG += plugin -INCLUDEPATH += ../../../src/serviceframework -TARGET = serviceframework_voipdialerservice -include(../../examples.pri) - -QT += gui - -# Input -HEADERS += voipdialer.h voipdialerplugin.h -SOURCES += voipdialer.cpp voipdialerplugin.cpp - -CONFIG += mobility -MOBILITY = serviceframework - -symbian { - TARGET.CAPABILITY = ALL -TCB -} - -xml.path = $$DESTDIR/xmldata -xml.files = voipdialerservice.xml -xml.CONFIG = no_link no_dependencies explicit_dependencies no_build combine ignore_no_exist no_clean -INSTALLS += xml -build_pass:ALL_DEPS+=install_xml diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/voipdialer/voipdialerplugin.cpp --- a/qtmobility/examples/declarative/voipdialer/voipdialerplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include "voipdialerplugin.h" -#include "voipdialer.h" - -//! [0] -QObject* VoipDialerPlugin::createInstance(const QServiceInterfaceDescriptor& descriptor, QServiceContext* context, QAbstractSecuritySession* session) -{ - Q_UNUSED(descriptor); - Q_UNUSED(context); - Q_UNUSED(session); - return new VoipDialer(this); -} - -Q_EXPORT_PLUGIN2(serviceframework_voipdialerservice, VoipDialerPlugin) -//! [0] diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/voipdialer/voipdialerplugin.h --- a/qtmobility/examples/declarative/voipdialer/voipdialerplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +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 Qt Mobility Components. -** -** $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 VOIPDIALERPLUGIN_H -#define VOIPDIALERPLUGIN_H - -#include - -#include - -QTM_USE_NAMESPACE - -//! [0] -class VoipDialerPlugin : public QObject, - public QServicePluginInterface -{ - Q_OBJECT - Q_INTERFACES(QtMobility::QServicePluginInterface) -//! [0] - -public: - QObject* createInstance(const QServiceInterfaceDescriptor& descriptor, - QServiceContext* context, - QAbstractSecuritySession* session); -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarative/voipdialerservice.xml --- a/qtmobility/examples/declarative/voipdialerservice.xml Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ - - - VoipDialer - serviceframework_voipdialerservice - Voip Dialer - - com.nokia.qt.examples.Dialer - 1.0 - VoIP based implementation Dialer - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/declarativemusic.pro --- a/qtmobility/examples/declarativemusic/declarativemusic.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -TEMPLATE = app -TARGET = declarativemusic - -QT += declarative - -INCLUDEPATH+=../../src/multimedia -include (../examples.pri) - -qtAddLibrary(QtMedia) - -SOURCES = main.cpp - -RESOURCES = \ - declarativemusic.qrc - -OTHER_FILES = \ - player.qml diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/declarativemusic.qrc --- a/qtmobility/examples/declarativemusic/declarativemusic.qrc Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - - - player.qml - images/mute.png - images/muted.png - images/pause.png - images/play.png - images/progress-grip.png - images/progress.png - images/stop.png - images/volume-grip.png - images/volume.png - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/images/mute.png Binary file qtmobility/examples/declarativemusic/images/mute.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/images/muted.png Binary file qtmobility/examples/declarativemusic/images/muted.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/images/pause.png Binary file qtmobility/examples/declarativemusic/images/pause.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/images/play.png Binary file qtmobility/examples/declarativemusic/images/play.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/images/progress-grip.png Binary file qtmobility/examples/declarativemusic/images/progress-grip.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/images/progress.png Binary file qtmobility/examples/declarativemusic/images/progress.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/images/stop.png Binary file qtmobility/examples/declarativemusic/images/stop.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/images/volume-grip.png Binary file qtmobility/examples/declarativemusic/images/volume-grip.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/images/volume.png Binary file qtmobility/examples/declarativemusic/images/volume.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/main.cpp --- a/qtmobility/examples/declarativemusic/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +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 Qt Mobility Components. -** -** $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 -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -QTM_USE_NAMESPACE - -int main(int argc, char** argv) -{ - QApplication app(argc, argv); - - QMediaPlayer player; - - QString audioFile = QFileDialog::getOpenFileName(0, QObject::tr("Open Music")); - - if (!audioFile.isEmpty()) { - QUrl audioUrl = QUrl::fromLocalFile(audioFile); - - QmlView canvas; - canvas.setUrl(QUrl("qrc:/player.qml")); - QmlContext* context = canvas.rootContext(); - context->setContextProperty("audioUrl", audioUrl); - - canvas.execute(); - canvas.show(); - return app.exec(); - } - return 0; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativemusic/player.qml --- a/qtmobility/examples/declarativemusic/player.qml Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,169 +0,0 @@ -import Qt 4.6 - - -Item { - width: 800 - height: 400 - - Audio { - id: audio - source: audioUrl - } - - Image { - id: coverArt - source: audio.coverArtUrlLarge - anchors.horizontalCenter: parent.horizontalCenter - anchors.bottom: title.top - } - Text { - id: title - text: audio.title - anchors.horizontalCenter: parent.horizontalCenter - anchors.bottom: albumTitle.top - } - Text { - id: albumTitle - text: audio.albumTitle - anchors.horizontalCenter: parent.horizontalCenter - anchors.bottom: albumArtist.top - } - Text { - id: albumArtist - text: audio.albumArtist - anchors.horizontalCenter: parent.horizontalCenter - anchors.bottom: controls.top - } - Item { - id: controls - width: 800 - height: 120 - anchors.horizontalCenter: parent.horizontalCenter - anchors.bottom: parent.bottom - - Image { - source: "qrc:/images/play.png" - x: 375 - y: 25 - - visible: !audio.playing || audio.paused - - MouseRegion { - anchors.fill: parent - onClicked: audio.play() - } - } - - Image { - source: "qrc:/images/pause.png" - x: 375 - y: 25 - - visible: audio.playing && !audio.paused - - MouseRegion { - anchors.fill: parent - onClicked: audio.pause() - } - } - - Image { - source: "qrc:/images/stop.png" - x: 305 - y: 35 - - visible: audio.playing - - MouseRegion { - anchors.fill: parent - onClicked: audio.stop() - } - } - - Image { - source: "qrc:/images/mute.png" - x: 465 - y: 40 - - MouseRegion { - anchors.fill: parent - onClicked: { - audio.muted = !audio.muted; - } - } - - Image { - source: "qrc:/images/muted.png" - anchors.fill: parent - - visible: audio.muted - } - } - - Item { - x: 535 - y: 50 - width: 230 - height: 40 - - Image { - source: "qrc:/images/volume.png" - x: 0 - y: 5 - - MouseRegion { - anchors.fill: parent - - onClicked: audio.volume = (mouse.x - 15) / 200 - } - } - - Image { - source: "qrc:/images/volume-grip.png" - x: audio.volume * 200 - y: 0 - - MouseRegion { - anchors.fill: parent - drag.target: parent; drag.axis: "XAxis"; drag.minimumX: 0; drag.maximumX: 200 - - onPositionChanged: audio.volume = parent.x / 200 - } - } - } - - Item { - x: 5 - y: 0 - width: 790 - height: 30 - - Image { - source: "qrc:/images/progress.png" - x: 0 - y: 5 - - MouseRegion { - anchors.fill: parent - - onClicked: audio.position = (mouse.x - 15) * audio.duration / 760 - enabled: audio.duration > 0 - } - } - - Image { - source: "qrc:/images/progress-grip.png" - x: 760 * audio.position / audio.duration - y: 0 - visible: audio.duration > 0 - - MouseRegion { - anchors.fill: parent - drag.target: parent; drag.axis: "XAxis"; drag.minimumX: 0; drag.maximumX: 760 - - onReleased: audio.position = parent.x / 760 - } - } - } - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/declarativevideo.pro --- a/qtmobility/examples/declarativevideo/declarativevideo.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -TEMPLATE = app -TARGET = declarativevideo - -QT += declarative - -INCLUDEPATH+=../../src/multimedia -include (../examples.pri) - -qtAddLibrary(QtMedia) - -SOURCES = main.cpp - -RESOURCES = \ - declarativevideo.qrc - -OTHER_FILES = \ - player.qml diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/declarativevideo.qrc --- a/qtmobility/examples/declarativevideo/declarativevideo.qrc Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - - - player.qml - images/mute.png - images/muted.png - images/pause.png - images/play.png - images/progress-grip.png - images/progress.png - images/stop.png - images/volume-grip.png - images/volume.png - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/images/mute.png Binary file qtmobility/examples/declarativevideo/images/mute.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/images/muted.png Binary file qtmobility/examples/declarativevideo/images/muted.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/images/pause.png Binary file qtmobility/examples/declarativevideo/images/pause.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/images/play.png Binary file qtmobility/examples/declarativevideo/images/play.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/images/progress-grip.png Binary file qtmobility/examples/declarativevideo/images/progress-grip.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/images/progress.png Binary file qtmobility/examples/declarativevideo/images/progress.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/images/stop.png Binary file qtmobility/examples/declarativevideo/images/stop.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/images/volume-grip.png Binary file qtmobility/examples/declarativevideo/images/volume-grip.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/images/volume.png Binary file qtmobility/examples/declarativevideo/images/volume.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/main.cpp --- a/qtmobility/examples/declarativevideo/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +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 Qt Mobility Components. -** -** $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 -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -QTM_USE_NAMESPACE - -int main(int argc, char** argv) -{ - QApplication app(argc, argv); - - //QMediaServiceProvider::defaultServiceProvider(); - QMediaPlayer player; - - QString videoFile = QFileDialog::getOpenFileName(0, QObject::tr("Open Video")); - - if (!videoFile.isEmpty()) { - QUrl videoUrl = QUrl::fromLocalFile(videoFile); - - QmlView canvas; - canvas.setUrl(QUrl("qrc:/player.qml")); - QmlContext* context = canvas.rootContext(); - context->setContextProperty("videoUrl", videoUrl); - - canvas.execute(); - canvas.show(); - return app.exec(); - } - return 0; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/declarativevideo/player.qml --- a/qtmobility/examples/declarativevideo/player.qml Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,148 +0,0 @@ -import Qt 4.6 - -Video { - id: video - width: 800 - height: 600 - anchors.fill: parent - fillMode: Video.PreserveAspectFit - source: videoUrl - - Text { - text: video.title - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - } - - Item { - x: 0 - y: 470 - width: 800 - height: 120 - - Image { - source: "qrc:/images/play.png" - x: 375 - y: 25 - - visible: !video.playing || video.paused - - MouseRegion { - anchors.fill: parent - onClicked: video.play() - } - } - - Image { - source: "qrc:/images/pause.png" - x: 375 - y: 25 - - visible: video.playing && !video.paused - - MouseRegion { - anchors.fill: parent - onClicked: video.pause() - } - } - - Image { - source: "qrc:/images/stop.png" - x: 305 - y: 35 - - visible: video.playing - - MouseRegion { - anchors.fill: parent - onClicked: video.stop() - } - } - - Image { - source: "qrc:/images/mute.png" - x: 465 - y: 40 - - MouseRegion { - anchors.fill: parent - onClicked: { - video.muted = !video.muted; - } - } - - Image { - source: "qrc:/images/muted.png" - anchors.fill: parent - - visible: video.muted - } - } - - Item { - x: 535 - y: 50 - width: 230 - height: 40 - - Image { - source: "qrc:/images/volume.png" - x: 0 - y: 5 - - MouseRegion { - anchors.fill: parent - - onClicked: video.volume = (mouse.x - 15) / 200 - } - } - - Image { - source: "qrc:/images/volume-grip.png" - x: video.volume * 200 - y: 0 - - MouseRegion { - anchors.fill: parent - drag.target: parent; drag.axis: "XAxis"; drag.minimumX: 0; drag.maximumX: 200 - - onPositionChanged: video.volume = parent.x / 200 - } - } - } - - Item { - x: 5 - y: 0 - width: 790 - height: 30 - - Image { - source: "qrc:/images/progress.png" - x: 0 - y: 5 - - MouseRegion { - anchors.fill: parent - - onClicked: video.position = (mouse.x - 15) * video.duration / 760 - enabled: video.duration > 0 - } - } - - Image { - source: "qrc:/images/progress-grip.png" - x: 760 * video.position / video.duration - y: 0 - visible: video.duration > 0 - - MouseRegion { - anchors.fill: parent - drag.target: parent; drag.axis: "XAxis"; drag.minimumX: 0; drag.maximumX: 760 - - onReleased: video.position = parent.x / 760 - } - } - } - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/examples.pri --- a/qtmobility/examples/examples.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/examples.pri Mon May 03 13:18:40 2010 +0300 @@ -1,7 +1,5 @@ include(../staticconfig.pri) -!contains(build_examples, yes):error(Please use the -examples configure switch to enable building of examples) - win32:contains(CONFIG_WIN32,build_all):Win32DebugAndRelease=yes mac | contains(Win32DebugAndRelease,yes) { #due to different debug/release library names we have to comply with @@ -43,7 +41,3 @@ symbian { DEFINES+= QTM_EXAMPLES_SMALL_SCREEN } -maemo* { - LIBS += -L/opt/qt4-maemo5/lib - QMAKE_LFLAGS += -Wl,-rpath,/opt/qt4-maemo5/lib -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/examples.pro --- a/qtmobility/examples/examples.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/examples.pro Mon May 03 13:18:40 2010 +0300 @@ -5,13 +5,15 @@ #ServiceFramework examples contains(mobility_modules,serviceframework) { SUBDIRS += filemanagerplugin \ - bluetoothtransferplugin \ - notesmanagerplugin \ - servicebrowser -# todotool + bluetoothtransferplugin \ + notesmanagerplugin \ + servicebrowser + + !symbian:SUBDIRS+= servicenotesmanager/sfw-notes contains(QT_CONFIG, declarative) { - SUBDIRS += declarative + SUBDIRS += servicenotesmanager/declarative-sfw-notes \ + declarative-sfw-dialer } } @@ -61,16 +63,8 @@ SUBDIRS += \ radio \ player \ - cameracapture \ slideshow \ - streamplayer \ audiorecorder - - contains (QT_CONFIG, declarative) { - SUBDIRS += \ - declarativemusic \ - declarativevideo - } } @@ -83,9 +77,12 @@ writemessage \ serviceactions - contains(mobility_modules,contacts) { - SUBDIRS += keepintouch - } + contains(mobility_modules,contacts) { + SUBDIRS += keepintouch + } + + # MessagingEx lives in tests for some reason + maemo5:SUBDIRS += ../tests/messagingex } } } @@ -95,5 +92,6 @@ SUBDIRS += sensors } -BLD_INF_RULES.prj_exports += "./rom/qtmobilityexamples.iby $$CUSTOMER_VARIANT_APP_LAYER_IBY_EXPORT_PATH(qtmobilityexamples.iby)" - +symbian { + SUBDIRS += s60installs/s60installs.pro +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/fetchgooglemaps/fetchgooglemaps.pro --- a/qtmobility/examples/fetchgooglemaps/fetchgooglemaps.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/fetchgooglemaps/fetchgooglemaps.pro Mon May 03 13:18:40 2010 +0300 @@ -4,6 +4,7 @@ ../../src/global \ ../satellitedialog + QT += webkit network HEADERS = mapwindow.h \ @@ -15,7 +16,8 @@ include(../examples.pri) CONFIG += mobility -MOBILITY = location bearer +MOBILITY = location +!maemo5:MOBILITY += bearer symbian: { addFiles.sources = nmealog.txt diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/fetchgooglemaps/main.cpp --- a/qtmobility/examples/fetchgooglemaps/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/fetchgooglemaps/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -48,11 +48,7 @@ QApplication app(argc, argv); MapWindow win; -#if defined(Q_OS_SYMBIAN) win.showMaximized(); -#else - win.show(); -#endif win.start(); return app.exec(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/fetchgooglemaps/mapwindow.cpp --- a/qtmobility/examples/fetchgooglemaps/mapwindow.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/fetchgooglemaps/mapwindow.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,28 +45,40 @@ #include #include #include +#ifndef Q_WS_MAEMO_5 #include #include +#endif #include "satellitedialog.h" #include "mapwindow.h" +QTM_USE_NAMESPACE + // Use the special 'localhost' key for the Google Maps key const QString GMAPS_STATICMAP_URL_TEMPLATE = "http://maps.google.com/staticmap?center=%1,%2&zoom=14&size=%3x%4&map type=mobile&markers=%1,%2&key=ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA&sensor=false"; MapWindow::MapWindow(QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags), - webView(new QWebView), - posLabel(new QLabel), - headingAndSpeedLabel(new QLabel), - dateTimeLabel(new QLabel), loading(false), usingLogFile(false), location(0), waitingForFix(false) { + webView = new QWebView(this); + webView->setMaximumSize(640, 480); + + posLabel = new QLabel(this); + posLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + + headingAndSpeedLabel = new QLabel(this); + headingAndSpeedLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + + dateTimeLabel = new QLabel(this); + dateTimeLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + location = QGeoPositionInfoSource::createDefaultSource(this); if (!location) { QNmeaPositionInfoSource *nmeaSource = new QNmeaPositionInfoSource(QNmeaPositionInfoSource::SimulationMode, this); @@ -79,6 +91,7 @@ } location->setUpdateInterval(5000); + connect(location, SIGNAL(positionUpdated(QGeoPositionInfo)), this, SLOT(positionUpdated(QGeoPositionInfo))); @@ -87,10 +100,30 @@ QWidget *mainWidget = new QWidget; QVBoxLayout *layout = new QVBoxLayout(mainWidget); - layout->addWidget(webView); - layout->addWidget(posLabel); - layout->addWidget(headingAndSpeedLabel); - layout->addWidget(dateTimeLabel); + layout->addWidget(webView, 1); + + QVBoxLayout *labelLayout = new QVBoxLayout(); + labelLayout->addWidget(posLabel); + labelLayout->addWidget(headingAndSpeedLabel); + labelLayout->addWidget(dateTimeLabel); + + layout->addLayout(labelLayout, 0); + layout->setSizeConstraint(QLayout::SetMaximumSize); + + int maxHeight = webView->maximumSize().height(); + maxHeight += posLabel->size().height(); + maxHeight += headingAndSpeedLabel->size().height(); + maxHeight += dateTimeLabel->size().height(); + + setMaximumHeight(maxHeight); + + int maxWidth = webView->maximumWidth(); + maxWidth = qMin(maxWidth, posLabel->maximumWidth()); + maxWidth = qMin(maxWidth, headingAndSpeedLabel->maximumWidth()); + maxWidth = qMin(maxWidth, dateTimeLabel->maximumWidth()); + + setMaximumWidth(maxWidth); + setCentralWidget(mainWidget); #if !defined(Q_OS_SYMBIAN) @@ -104,7 +137,9 @@ MapWindow::~MapWindow() { location->stopUpdates(); +#ifndef Q_WS_MAEMO_5 session->close(); +#endif } void MapWindow::delayedInit() @@ -117,22 +152,23 @@ location->stopUpdates(); } +#ifndef Q_WS_MAEMO_5 // Set Internet Access Point QNetworkConfigurationManager manager; const bool canStartIAP = (manager.capabilities() & QNetworkConfigurationManager::CanStartAndStopInterfaces); // Is there default access point, use it - QNetworkConfiguration cfg = manager.defaultConfiguration(); - if (!cfg.isValid() || (!canStartIAP && cfg.state() != QNetworkConfiguration::Active)) { + QTM_PREPEND_NAMESPACE(QNetworkConfiguration) cfg = manager.defaultConfiguration(); + if (!cfg.isValid() || (!canStartIAP && cfg.state() != QTM_PREPEND_NAMESPACE(QNetworkConfiguration)::Active)) { QMessageBox::information(this, tr("Flickr Demo"), tr( "Available Access Points not found.")); return; } - session = new QNetworkSession(cfg, this); + session = new QTM_PREPEND_NAMESPACE(QNetworkSession)(cfg, this); session->open(); session->waitForOpened(-1); - +#endif connect(location, SIGNAL(updateTimeout()), this, SLOT(waitForFix())); location->startUpdates(); @@ -188,12 +224,16 @@ headingAndSpeedLabel->setText(tr("Bearing %1, travelling at %2 km/h").arg(heading).arg(speed)); dateTimeLabel->setText(tr("(Last update: %1)"). - arg(info.dateTime().toLocalTime().time().toString())); + arg(info.timestamp().toLocalTime().time().toString())); if (!loading) { // Google Maps does not provide maps larger than 640x480 int width = qMin(webView->width(), 640); int height = qMin(webView->height(), 480); + + if ((width == 0) || (height == 0)) + return; + QString url = GMAPS_STATICMAP_URL_TEMPLATE .arg(QString::number(info.coordinate().latitude())) .arg(QString::number(info.coordinate().longitude())) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/fetchgooglemaps/mapwindow.h --- a/qtmobility/examples/fetchgooglemaps/mapwindow.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/fetchgooglemaps/mapwindow.h Mon May 03 13:18:40 2010 +0300 @@ -54,7 +54,9 @@ QTM_BEGIN_NAMESPACE class QGeoPositionInfo; class QGeoPositionInfoSource; +#ifndef Q_WS_MAEMO_5 class QNetworkSession; +#endif QTM_END_NAMESPACE QTM_USE_NAMESPACE @@ -80,7 +82,9 @@ QLabel *headingAndSpeedLabel; QLabel *dateTimeLabel; bool loading; - QNetworkSession *session; +#ifndef Q_WS_MAEMO_5 + QTM_PREPEND_NAMESPACE(QNetworkSession) *session; +#endif bool usingLogFile; QGeoPositionInfoSource *location; bool waitingForFix; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/filemanagerplugin/filemanagerplugin.pro --- a/qtmobility/examples/filemanagerplugin/filemanagerplugin.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/filemanagerplugin/filemanagerplugin.pro Mon May 03 13:18:40 2010 +0300 @@ -21,7 +21,7 @@ DEPLOYMENT += pluginDep TARGET.EPOCALLOWDLLDATA = 1 - TARGET.CAPABILITY = ALL -TCB + TARGET.CAPABILITY = LocalServices Location NetworkServices ReadUserData WriteUserData UserEnvironment } xml.path = $$DESTDIR/xmldata diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/flickrdemo/connectivityhelper.cpp --- a/qtmobility/examples/flickrdemo/connectivityhelper.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/flickrdemo/connectivityhelper.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,7 +45,7 @@ #include #include -ConnectivityHelper::ConnectivityHelper(QNetworkSession *session, QWidget *parent) : QObject(parent), +ConnectivityHelper::ConnectivityHelper(QtMobility::QNetworkSession *session, QWidget *parent) : QObject(parent), m_session(session) { connect(m_session, @@ -54,7 +54,7 @@ SLOT(error(QNetworkSession::SessionError))); } -void ConnectivityHelper::error(QNetworkSession::SessionError error) +void ConnectivityHelper::error(QtMobility::QNetworkSession::SessionError error) { if (error == QNetworkSession::UnknownSessionError) { if (m_session->state() == QNetworkSession::Connecting) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/flickrdemo/connectivityhelper.h --- a/qtmobility/examples/flickrdemo/connectivityhelper.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/flickrdemo/connectivityhelper.h Mon May 03 13:18:40 2010 +0300 @@ -52,6 +52,9 @@ class QWidget; QT_END_NAMESPACE +QTM_BEGIN_NAMESPACE +class QNetworkSession; +QTM_END_NAMESPACE // Use the QtMobility namespace QTM_USE_NAMESPACE @@ -60,16 +63,16 @@ Q_OBJECT public: - ConnectivityHelper(QNetworkSession *session, QWidget *parent = 0); + ConnectivityHelper(QtMobility::QNetworkSession *session, QWidget *parent = 0); signals: void networkingCancelled(); private slots: - void error(QNetworkSession::SessionError error); + void error(QtMobility::QNetworkSession::SessionError error); private: - QNetworkSession *m_session; + QtMobility::QNetworkSession *m_session; }; #endif // #ifndef CONNECTIVITYHELPER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/flickrdemo/flickr_icon.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/flickrdemo/flickr_icon.svg Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1050 @@ + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/flickrdemo/flickrdemo.cpp --- a/qtmobility/examples/flickrdemo/flickrdemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/flickrdemo/flickrdemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -50,25 +50,36 @@ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + // static constant intialization const QSize FlickrDemo::gridSize = QSize(52, 52); const QSize FlickrDemo::thumbnailSize = QSize(50, 50); const QSize FlickrDemo::imageSize = QSize(150, 150); const QString FlickrDemo::apikey = QString("e36784df8a03fea04c22ed93318b291c"); -#ifdef Q_OS_SYMBIAN -const QString FlickrDemo::savePath = "c:\\Data\\Images\\"; // In S60 Download images to Gallery -#else -const QString FlickrDemo::savePath = QDir::tempPath(); -#endif FlickrDemo::FlickrDemo(QWidget* parent) : QMainWindow(parent), m_logfileInUse(false), m_session(0), - m_file(0), - m_httpGetId(-1), - m_httpThumbnailGetId(-1), + m_pictureListReply(0), + m_thumbnailReply(0), + m_pictureReply(0), m_pages(0), m_page(1), m_satellitesInView(0), @@ -76,7 +87,7 @@ m_latitude(-1000), m_longitude(-1000), m_downloadPictureList(true), - m_downloadingThumbnails(false) + m_shuttingDown(false) { resize(252, 344); @@ -132,24 +143,32 @@ this, SLOT(satellitesInUseUpdated(const QList&))); } - // QHttp - m_http = new QHttp(this); - connect(m_http, SIGNAL(requestFinished(int, bool)), - this, SLOT(httpRequestFinished(int, bool))); - connect(m_http, SIGNAL(dataReadProgress(int, int)), - this, SLOT(updateDataReadProgress(int, int))); - connect(m_http, SIGNAL(responseHeaderReceived(const QHttpResponseHeader&)), - this, SLOT(readResponseHeader(const QHttpResponseHeader&))); + m_nam = new QNetworkAccessManager(this); QTimer::singleShot(0, this, SLOT(delayedInit())); } FlickrDemo::~FlickrDemo() { + m_shuttingDown = true; + m_location->stopUpdates(); if (m_satellite) m_satellite->stopUpdates(); - m_http->abort(); + + if (m_pictureListReply) { + m_pictureListReply->abort(); + delete m_pictureListReply; + } + if (m_thumbnailReply) { + m_thumbnailReply->abort(); + delete m_thumbnailReply; + } + if (m_pictureReply) { + m_pictureReply->abort(); + delete m_pictureReply; + } + if (m_session) m_session->close(); } @@ -161,11 +180,11 @@ tr("No GPS support detected, using GPS data from a sample log file instead.")); } - QNetworkConfigurationManager manager; + QTM_PREPEND_NAMESPACE(QNetworkConfigurationManager) manager; const bool canStartIAP = (manager.capabilities() - & QNetworkConfigurationManager::CanStartAndStopInterfaces); - QNetworkConfiguration cfg = manager.defaultConfiguration(); - if (!cfg.isValid() || (!canStartIAP && cfg.state() != QNetworkConfiguration::Active)) { + & QTM_PREPEND_NAMESPACE(QNetworkConfigurationManager)::CanStartAndStopInterfaces); + QTM_PREPEND_NAMESPACE(QNetworkConfiguration) cfg = manager.defaultConfiguration(); + if (!cfg.isValid() || (!canStartIAP && cfg.state() != QTM_PREPEND_NAMESPACE(QNetworkConfiguration)::Active)) { QMessageBox::information(this, tr("Flickr Demo"), tr("Available Access Points not found.")); return; } @@ -282,10 +301,20 @@ QUrl url(urlstring); - m_http->setHost(url.host(), QHttp::ConnectionModeHttp, url.port() == -1 ? 0 : url.port()); - m_httpRequestAborted = false; - - m_httpGetId = m_http->get(urlstring); + QNetworkRequest req(url); + m_pictureListReply = m_nam->get(req); + connect(m_pictureListReply, + SIGNAL(downloadProgress(qint64, qint64)), + this, + SLOT(pictureListDownloadProgress(qint64, qint64))); + connect(m_pictureListReply, + SIGNAL(finished()), + this, + SLOT(pictureListFinished())); + connect(m_pictureListReply, + SIGNAL(error(QNetworkReply::NetworkError)), + this, + SLOT(pictureListError(QNetworkReply::NetworkError))); m_progressDialog->setWindowTitle(tr("FlickrDemo")); m_progressDialog->setLabelText(tr("Downloading\nPicture List.")); @@ -366,49 +395,24 @@ pictureUrl.append("_m.jpg"); QUrl url(pictureUrl); - QFileInfo fileInfo(url.path()); - QString fileName = fileInfo.fileName(); - if (fileName.isEmpty()) { - fileName = "test.jpg"; - } - m_filePath = savePath; - m_filePath.append(fileName); - - if (QFile::exists(m_filePath)) { - if (QMessageBox::question(this, - tr("Flickr Demo"), - tr("File %1 is already downloaded." - "Overwrite?").arg(fileName), - QMessageBox::Yes | QMessageBox::No, - QMessageBox::No) - == QMessageBox::No) { - displayImage(); - return; - } - QFile::remove(m_filePath); - } - - m_file = new QFile(m_filePath); - if (!m_file->open(QIODevice::WriteOnly)) { - QMessageBox::information(this, tr("Flickr Demo"), - tr("Unable to save the file %1: %2.").arg(m_filePath).arg(m_file->errorString())); - delete m_file; - m_file = 0; - return; - } - - m_http->setHost(url.host(), QHttp::ConnectionModeHttp, url.port() == -1 ? 0 : url.port()); - - m_httpRequestAborted = false; - QByteArray encodedUrl = QUrl::toPercentEncoding(url.path(), "!$&'()*+,;=:@/"); - if (encodedUrl.isEmpty()) { - encodedUrl = "/"; - } - m_httpGetId = m_http->get(encodedUrl, m_file); + QNetworkRequest req(url); + m_pictureReply = m_nam->get(req); + connect(m_pictureReply, + SIGNAL(downloadProgress(qint64, qint64)), + this, + SLOT(pictureDownloadProgress(qint64, qint64))); + connect(m_pictureReply, + SIGNAL(finished()), + this, + SLOT(pictureFinished())); + connect(m_pictureReply, + SIGNAL(error(QNetworkReply::NetworkError)), + this, + SLOT(pictureError(QNetworkReply::NetworkError))); m_progressDialog->setWindowTitle(tr("Flickr Demo")); - m_progressDialog->setLabelText(tr("Downloading:\n%1").arg(fileName)); + m_progressDialog->setLabelText(tr("Downloading:\n%1").arg(pictureUrl)); m_progressDialog->setMaximum(10); m_progressDialog->setValue(0); m_progressDialog->show(); @@ -418,121 +422,153 @@ void FlickrDemo::cancelDownload() { - m_httpRequestAborted = true; - m_downloadingThumbnails = false; - m_http->abort(); - downloadButton->setEnabled(true); -} - -void FlickrDemo::httpRequestFinished(int requestId, bool error) -{ - if (m_downloadingThumbnails && m_httpThumbnailGetId == requestId) { - if (!error) { - QByteArray picture = m_http->readAll(); - if (!picture.isNull() && picture.size() > 0) { - QListWidgetItem* item = listWidget->item(m_nameCounter); - QImage image; - if (image.loadFromData(picture, "jpg")) { - item->setIcon(QPixmap::fromImage(image.scaled(thumbnailSize, - Qt::KeepAspectRatio, Qt::SmoothTransformation))); - listWidget->update(); - } - } - } - downloadNextThumbnail(); - return; - } - - if (requestId != m_httpGetId) { - return; + if (m_pictureListReply) { + m_pictureListReply->abort(); + delete m_pictureListReply; + m_pictureListReply = 0; } - m_progressDialog->hide(); - - if (m_httpRequestAborted) { - if (m_file) { - m_file->close(); - m_file->remove(); - delete m_file; - m_file = 0; - } - - return; - } - - if (!m_downloadPictureList && m_file) { - m_file->close(); - } - - if (error) { - if (!m_downloadPictureList && m_file) { - m_file->remove(); - } - QMessageBox::information(this, - tr("Flickr Demo"), - tr("Download failed: %1.").arg(m_http->errorString())); - } - - if (m_downloadPictureList) { - if (parsePictureList(QString::fromUtf8(m_http->readAll()))) { - m_downloadPictureList = false; - downloadButton->setText(tr("Download Selected Picture")); - m_downloadAct->setText(tr("Download Selected Picture")); - } - } else { - displayImage(); + if (m_pictureReply) { + m_pictureReply->abort(); + delete m_pictureReply; + m_pictureReply = 0; } downloadButton->setEnabled(true); } -void FlickrDemo::displayImage() +void FlickrDemo::pictureListDownloadProgress(qint64 bytesReceived, qint64 bytesTotal) +{ + m_progressDialog->setMaximum(bytesTotal); + m_progressDialog->setValue(bytesReceived); +} + +void FlickrDemo::pictureListFinished() +{ + m_progressDialog->hide(); + if (parsePictureList(QString::fromUtf8(m_pictureListReply->readAll()))) { + m_downloadPictureList = false; + downloadButton->setText(tr("Download Selected Picture")); + m_downloadAct->setText(tr("Download Selected Picture")); + } + + downloadButton->setEnabled(true); + + QTimer::singleShot(0, this, SLOT(clearPictureListRequest())); +} + +void FlickrDemo::pictureListError(QNetworkReply::NetworkError code) +{ + if (m_shuttingDown) + return; + + m_progressDialog->hide(); + QMessageBox::information(this, + tr("Flickr Demo"), + tr("Error downloading picture list: %1.").arg(m_pictureListReply->errorString())); + + QTimer::singleShot(0, this, SLOT(clearPictureListRequest())); +} + +void FlickrDemo::clearPictureListRequest() +{ + delete m_pictureListReply; + m_pictureListReply = 0; +} + +void FlickrDemo::thumbnailFinished() +{ + QByteArray picture = m_thumbnailReply->readAll(); + if (!picture.isNull() && picture.size() > 0) { + QListWidgetItem* item = listWidget->item(m_nameCounter); + QImage image; + if (image.loadFromData(picture, "jpg")) { + item->setIcon(QPixmap::fromImage( + image.scaled(thumbnailSize, + Qt::KeepAspectRatio, + Qt::SmoothTransformation))); + listWidget->update(); + } + } + downloadNextThumbnail(); +} + +void FlickrDemo::thumbnailError(QNetworkReply::NetworkError code) { - PictureDialog dialog(m_filePath, listWidget->currentItem()->text(), this); + if (m_shuttingDown) + return; + + QMessageBox::information(this, + tr("Flickr Demo"), + tr("Error downloading thumbnails: %1.").arg(m_thumbnailReply->errorString())); + + QTimer::singleShot(0, this, SLOT(clearThumbnailRequest())); +} + +void FlickrDemo::clearThumbnailRequest() +{ + delete m_thumbnailReply; + m_thumbnailReply = 0; +} + +void FlickrDemo::pictureDownloadProgress(qint64 bytesReceived, qint64 bytesTotal) +{ + m_progressDialog->setMaximum(bytesTotal); + m_progressDialog->setValue(bytesReceived); +} + +void FlickrDemo::pictureFinished() +{ + m_progressDialog->hide(); + downloadButton->setEnabled(true); + + QByteArray picture = m_pictureReply->readAll(); + + if (picture.isNull() || picture.size() <= 0) + return; + + QImage image; + if (!image.loadFromData(picture, "jpg")) + return; + + QPixmap pixmap = QPixmap::fromImage( + image.scaled(imageSize, + Qt::KeepAspectRatio, + Qt::SmoothTransformation)); + + displayImage(pixmap); + + QTimer::singleShot(0, this, SLOT(clearPictureRequest())); +} + +void FlickrDemo::pictureError(QNetworkReply::NetworkError code) +{ + if (m_shuttingDown) + return; + + m_progressDialog->hide(); + QMessageBox::information(this, + tr("Flickr Demo"), + tr("Error downloading picture: %1.").arg(m_pictureReply->errorString())); + + downloadButton->setEnabled(true); + + QTimer::singleShot(0, this, SLOT(clearPictureRequest())); +} + +void FlickrDemo::clearPictureRequest() +{ + delete m_pictureReply; + m_pictureReply = 0; +} + +void FlickrDemo::displayImage(const QPixmap &pixmap) +{ + PictureDialog dialog(pixmap, listWidget->currentItem()->text(), this); #if defined(Q_OS_SYMBIAN) || defined (Q_OS_WINCE) dialog.showMaximized(); #endif - if (!dialog.exec()) { - if (m_file && m_file->exists()) { - m_file->remove(); - } - } - if(m_file) - delete m_file; - m_file = 0; -} - -void FlickrDemo::readResponseHeader(const QHttpResponseHeader& responseHeader) -{ - switch (responseHeader.statusCode()) { - case 200: // Ok - case 301: // Moved Permanently - case 302: // Found - case 303: // See Other - case 307: // Temporary Redirect - // these are not error conditions - break; - default: - QMessageBox::information(this, - tr("Flickr Demo"), - tr("Download failed: %1.").arg(responseHeader.reasonPhrase())); - m_downloadingThumbnails = false; - m_httpRequestAborted = true; - m_progressDialog->hide(); - m_http->abort(); - } -} - -void FlickrDemo::updateDataReadProgress(int bytesRead, int totalBytes) -{ - if (m_httpRequestAborted) { - return; - } - - if (!m_downloadingThumbnails) { - m_progressDialog->setMaximum(totalBytes); - m_progressDialog->setValue(bytesRead); - } + dialog.exec(); } void FlickrDemo::downloadNextThumbnail() @@ -542,19 +578,23 @@ QString pictureUrl = m_names[m_nameCounter]; pictureUrl.append("_s.jpg"); QUrl url(pictureUrl); - m_http->setHost(url.host(), QHttp::ConnectionModeHttp, url.port() == -1 ? 0 : url.port()); - m_downloadingThumbnails = true; - m_httpThumbnailGetId = m_http->get(pictureUrl); + + QNetworkRequest req(url); + m_thumbnailReply = m_nam->get(req); + connect(m_thumbnailReply, + SIGNAL(finished()), + this, + SLOT(thumbnailFinished())); + connect(m_thumbnailReply, + SIGNAL(error(QNetworkReply::NetworkError)), + this, + SLOT(thumbnailError(QNetworkReply::NetworkError))); } else { - m_downloadingThumbnails = false; + QTimer::singleShot(0, this, SLOT(clearThumbnailRequest())); } } -// static constant intialization - -const QSize PictureDialog::imageSize = QSize(150, 150); - -PictureDialog::PictureDialog(const QString& filePath, const QString& pictureName, QWidget* parent) : +PictureDialog::PictureDialog(const QPixmap& pixmap, const QString& pictureName, QWidget* parent) : QDialog(parent) { resize(252, 361); @@ -563,8 +603,7 @@ verticalLayout->setContentsMargins(11, 11, 11, 11); label = new QLabel(); - QString fileName = QFileInfo(filePath).fileName(); - label->setText(tr("Downloaded:\n%1\n%2").arg(pictureName).arg(fileName)); + label->setText(tr("Downloaded:\n%1").arg(pictureName)); QSizePolicy sizePolicy(QSizePolicy::Ignored, QSizePolicy::Preferred); sizePolicy.setHorizontalStretch(0); @@ -575,21 +614,13 @@ verticalLayout->addWidget(label); imageLabel = new QLabel(); - QImage image; - image.load(filePath); - imageLabel->setPixmap(QPixmap::fromImage(image.scaled(imageSize, Qt::KeepAspectRatio, - Qt::SmoothTransformation))); + imageLabel->setPixmap(pixmap); verticalLayout->addWidget(imageLabel); - keepButton = new QPushButton(tr("Keep")); - keepButton->setDefault(true); - discardButton = new QPushButton(tr("Discard")); - buttonBox = new QDialogButtonBox(); - buttonBox->addButton(keepButton, QDialogButtonBox::AcceptRole); - buttonBox->addButton(discardButton, QDialogButtonBox::DestructiveRole); - connect(buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(clicked(QAbstractButton *))); + buttonBox->setStandardButtons(QDialogButtonBox::Close); + connect(buttonBox, SIGNAL(rejected()), this, SLOT(accept())); verticalLayout->addWidget(buttonBox); @@ -597,12 +628,3 @@ setWindowTitle(tr("Flickr Demo")); } - -void PictureDialog::clicked(QAbstractButton* button) -{ - if (button == keepButton) { - accept(); - } else if (button == discardButton) { - reject(); - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/flickrdemo/flickrdemo.h --- a/qtmobility/examples/flickrdemo/flickrdemo.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/flickrdemo/flickrdemo.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,21 @@ #ifndef FLICKRDEMO_H #define FLICKRDEMO_H -#include -#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE +class QAction; +class QDialogButtonBox; +class QLabel; +class QNetworkAccessManager; +class QNetworkRequest; +class QProgressDialog; +class QPushButton; +class QWidget; +QT_END_NAMESPACE //// QtMobility API headers #include @@ -86,9 +99,25 @@ void downloadButtonClicked(); void cancelDownload(); - void httpRequestFinished(int requestId, bool error); - void readResponseHeader(const QHttpResponseHeader& responseHeader); - void updateDataReadProgress(int bytesRead, int totalBytes); + /* + void httpRequestFinished(int requestId, bool error); + void readResponseHeader(const QHttpResponseHeader& responseHeader); + void updateDataReadProgress(int bytesRead, int totalBytes); + */ + + void pictureListDownloadProgress(qint64 bytesReceived, qint64 bytesTotal); + void pictureListFinished(); + void pictureListError(QNetworkReply::NetworkError code); + void clearPictureListRequest(); + + void thumbnailFinished(); + void thumbnailError(QNetworkReply::NetworkError code); + void clearThumbnailRequest(); + + void pictureDownloadProgress(qint64 bytesReceived, qint64 bytesTotal); + void pictureFinished(); + void pictureError(QNetworkReply::NetworkError code); + void clearPictureRequest(); // QGeoPositionInfoSource void positionUpdated(const QGeoPositionInfo &gpsPos); @@ -104,7 +133,7 @@ static const QString apikey; static const QString savePath; - void displayImage(); + void displayImage(const QPixmap &pixmap); QLabel *locationLabel; QLabel *satellitesLabel; @@ -121,12 +150,11 @@ ConnectivityHelper *m_connectivityHelper; QProgressDialog *m_progressDialog; - QHttp *m_http; - QString m_filePath; - QFile* m_file; - int m_httpGetId; - int m_httpThumbnailGetId; - bool m_httpRequestAborted; + + QNetworkAccessManager *m_nam; + QNetworkReply *m_pictureListReply; + QNetworkReply *m_thumbnailReply; + QNetworkReply *m_pictureReply; int m_pages; int m_page; @@ -137,10 +165,9 @@ double m_longitude; bool m_downloadPictureList; - - bool m_downloadingThumbnails; int m_nameCounter; QStringList m_names; + bool m_shuttingDown; }; class PictureDialog: public QDialog @@ -148,19 +175,12 @@ Q_OBJECT public: - PictureDialog(const QString& filePath, const QString& pictureName, QWidget* parent = 0); - -private slots: - void clicked(QAbstractButton *button); + PictureDialog(const QPixmap& pixmapd, const QString& pictureName, QWidget* parent = 0); private: - static const QSize imageSize; - QLabel *label; QLabel *imageLabel; QDialogButtonBox *buttonBox; - QPushButton *keepButton; - QPushButton *discardButton; }; #endif // FLICKRDEMO_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/flickrdemo/flickrdemo.pro --- a/qtmobility/examples/flickrdemo/flickrdemo.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/flickrdemo/flickrdemo.pro Mon May 03 13:18:40 2010 +0300 @@ -22,16 +22,13 @@ CONFIG += mobility MOBILITY = location bearer +ICON = flickr_icon.svg + symbian:TARGET.CAPABILITY += Location \ NetworkServices \ ReadUserData symbian: { - license.depends = "\"install.txt\" - \"\", FILETEXT, TEXTEXIT" - DEPLOYMENT += license -} - -symbian: { addFiles.sources = nmealog.txt DEPLOYMENT += addFiles } else { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/flickrdemo/install.txt --- a/qtmobility/examples/flickrdemo/install.txt Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -IMPORTANT: READ CAREFULLY BEFORE INSTALLING, DOWNLOADING, OR USING THE SOFTWARE - -NOKIA CORPORATION END-USER SOFTWARE AGREEMENT - -This Software Agreement ("Agreement") is between You (either an individual or an entity), the End User, and Nokia Corporation ("Nokia"). The Agreement authorizes You to use the Software specified in Clause 1 below, which may be stored on a CD-ROM, sent to You by electronic mail, or downloaded from Nokia’s Web pages or Servers or from other sources under the terms and conditions set forth below. This is an agreement on end-user rights and not an agreement for sale. Nokia continues to own the copy of the Software and the physical media contained in the sales package and any other copy that You are authorized to make pursuant to this Agreement. - -Read this Agreement carefully before installing, downloading, or using the Software. By clicking on the "I Accept" button while installing, downloading, and/or using the Software, You agree to the terms and conditions of this Agreement. If You do not agree to all of the terms and conditions of this Agreement, promptly click the "Decline" or "I Do Not Accept" button, cancel the installation or downloading, or destroy or return the Software and accompanying documentation to Nokia. YOU AGREE THAT YOUR USE OF THE SOFTWARE ACKNOWLEDGES THAT YOU HAVE READ THIS AGREEMENT, UNDERSTAND IT, AND AGREE TO BE BOUND BY ITS TERMS AND CONDITIONS. - -1. SOFTWARE. As used in this Agreement, the term "Software" means, collectively: (i) the software product identified above (ii) all the contents of the disk(s), CD-ROM(s), electronic mail and its file attachments, or other media with which this Agreement is provided, including the object code form of the software delivered via a CD-ROM, electronic mail, or Web page (iii) digital images, stock photographs, clip art, or other artistic works ("Stock Files") (iv) related explanatory written materials and any other possible documentation related thereto ("Documentation"); (v) fonts, and (vi) upgrades, modified versions, updates, additions, and copies of the Software (collectively "Updates"), if any, licensed to You by Nokia under this Agreement. - -2. END-USER RIGHTS AND USE. Nokia grants to You non-exclusive, non-transferable end-user rights to install the Software on the local hard disk(s) or other permanent storage media of one computer and use the Software on a single computer or terminal at a time. - -3. LIMITATIONS ON END-USER RIGHTS. You may not copy, distribute, or make derivative works of the Software except as follows: - -(a) You may make one copy of the Software on magnetic media as an archival backup copy, provided Your archival backup copy is not installed or used on any computer. Any other copies You make of the Software are in violation of this Agreement. - -(b) You may not use, modify, translate, reproduce, or transfer the right to use the Software or copy the Software except as expressly provided in this Agreement. - -(c) You may not resell, sublicense, rent, lease, or lend the Software. - -(d) You may not reverse engineer, reverse compile, disassemble, or otherwise attempt to discover the source code of the Software (except to the extent that this restriction is expressly prohibited by law) or create derivative works based on the Software. - -(e) Unless stated otherwise in the Documentation, You shall not display, modify, reproduce, or distribute any of the Stock Files included with the Software. In the event that the Documentation allows You to display the Stock Files, You shall not distribute the Stock Files on a stand-alone basis, i.e., in circumstances in which the Stock Files constitute the primary value of the product being distributed. You should review the "Readme" files associated with the Stock Files that You use to ascertain what rights You have with respect to such materials. Stock Files may not be used in the production of libelous, defamatory, fraudulent, infringing, lewd, obscene, or pornographic material or in any otherwise illegal manner. You may not register or claim any rights in the Stock Files or derivative works thereof. -(f) You agree that You shall only use the Software in a manner that complies with all applicable laws in the jurisdiction in which You use the Software, including, but not limited to, applicable restrictions concerning copyright and other intellectual property rights. - -4. COPYRIGHT. The Software and all rights, without limitation including proprietary rights therein, are owned by Nokia and/or its licensors and affiliates and are protected by international treaty provisions and all other applicable national laws of the country in which it is being used. The structure, organization, and code of the Software are the valuable trade secrets and confidential information of Nokia and/or its licensors and affiliates. You must not copy the Software, except as set forth in clause 3 (Limitations On End-User Rights). Any copies which You are permitted to make pursuant to this Agreement must contain the same copyright and other proprietary notices that appear on the Software. - -5. MULTIPLE ENVIRONMENT SOFTWARE / MULTIPLE LANGUAGE SOFTWARE / DUAL MEDIA SOFTWARE / MULTIPLE COPIES / UPDATES. If the Software supports multiple platforms or languages, if You receive the Software on multiple media, or if You otherwise receive multiple copies of the Software, the number of computers on which all versions of the Software are installed shall be one computer. You may not rent, lease, sublicense, lend, or transfer versions or copies of the Software You do not use. If the Software is an Update to a previous version of the Software, You must possess valid end-user rights to such a previous version in order to use the Update, and You may use the previous version for ninety (90) days after You receive the Update in order to assist You in the transition to the Update. After such time You no longer have a right to use the previous version, except for the sole purpose of enabling You to install the Update. - -6. COMMENCEMENT & TERMINATION. This Agreement is effective from the first date You install the Software. You may terminate this Agreement at any time by permanently deleting, destroying, and returning, at Your own costs, the Software, all backup copies, and all related materials provided by Nokia. Your end-user rights automatically and immediately terminate without notice from Nokia if You fail to comply with any provision of this Agreement. In such an event, You must immediately delete, destroy, or return at Your own cost, the Software, all backup copies, and all related material to Nokia. - -7. YOU ACKNOWLEDGE THAT THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, AND TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW NEITHER NOKIA, ITS LICENSORS OR AFFILIATES, NOR THE COPYRIGHT HOLDERS MAKE ANY REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR THAT THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS, OR OTHER RIGHTS. THERE IS NO WARRANTY BY NOKIA OR BY ANY OTHER PARTY THAT THE FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE. YOU ASSUME ALL RESPONSIBILITY AND RISK FOR THE SELECTION OF THE SOFTWARE TO ACHIEVE YOUR INTENDED RESULTS AND FOR THE INSTALLATION, USE, AND RESULTS OBTAINED FROM IT. - -8. NO OTHER OBLIGATIONS. This Agreement creates no obligations on the part of Nokia other than as specifically set forth herein. - -9. LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL NOKIA, ITS EMPLOYEES OR LICENSORS OR AFFILIATES BE LIABLE FOR ANY LOST PROFITS, REVENUE, SALES, DATA, OR COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, PROPERTY DAMAGE, PERSONAL INJURY, INTERRUPTION OF BUSINESS, LOSS OF BUSINESS INFORMATION, OR FOR ANY SPECIAL, DIRECT, INDIRECT, INCIDENTAL, ECONOMIC, COVER, PUNITIVE, SPECIAL, OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND WHETHER ARISING UNDER CONTRACT, TORT, NEGLIGENCE, OR OTHER THEORY OF LIABILITY ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF NOKIA OR ITS LICENSORS OR AFFILIATES ARE ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME COUNTRIES/STATES/JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF LIABILITY, BUT MAY ALLOW LIABILITY TO BE LIMITED, IN SUCH CASES, NOKIA, ITS EMPLOYEES OR LICENSORS OR AFFILIATES' LIABILITY SHALL BE LIMITED TO U.S. $50. -Nothing contained in this Agreement shall prejudice the statutory rights of any party dealing as a consumer. Nothing contained in this Agreement limits Nokia's liability to You in the event of death or personal injury resulting from Nokia's negligence. Nokia is acting on behalf of its employees and licensors or affiliates for the purpose of disclaiming, excluding, and/or restricting obligations, warranties, and liability as provided in this clause 9, but in no other respects and for no other purpose. -10. TECHNICAL SUPPORT. Nokia has no obligation to furnish You with technical support unless separately agreed in writing between You and Nokia. - -11. EXPORT CONTROL. The Software, including technical data, includes cryptographic software subject to export controls under the U.S. Export Administration Regulations ("EAR") and may be subject to import or export controls in other countries. The EAR prohibits the use of the Software and technical data by a Government End User, as defined hereafter, without a license from the U.S. government. A Government End User is defined in Part 772 of the EAR as "any foreign central, regional, or local government department, agency, or other entity performing governmental functions; including governmental research institutions, governmental corporations, or their separate business units (as defined in part 772 of the EAR) which are engaged in the manufacture or distribution of items or services controlled on the Wassenaar Munitions List, and international governmental organizations. This term does not include: utilities (telecommunications companies and Internet service providers; banks and financial institutions; transportation; broadcast or entertainment; educational organizations; civil health and medical organizations; retail or wholesale firms; and manufacturing or industrial entities not engaged in the manufacture or distribution of items or services controlled on the Wassenaar Munitions List.)" You agree to strictly comply with all applicable import and export regulations and acknowledge that You have the responsibility to obtain licenses to export, re-export, transfer, or import the Software. You further represent that You are not a Government End User as defined above, and You will not transfer the Software to any Government End User without a license. - -12. NOTICES. All notices and return of the Software and Documentation should be delivered to: - -NOKIA CORPORATION -P.O. Box 100 -FIN-00045 NOKIA GROUP -FINLAND - -13. APPLICABLE LAW & GENERAL PROVISIONS. - -This Agreement is governed by the laws of Finland. All disputes arising from or relating to this Agreement shall be settled by a single arbitrator appointed by the Central Chamber of Commerce of Finland. The arbitration procedure shall take place in Helsinki, Finland in the English language. If any part of this Agreement is found void and unenforceable, it will not affect the validity of the balance of the Agreement, which shall remain valid and enforceable according to its terms. This Agreement may only be modified in writing by an authorized officer of Nokia. - -This is the entire agreement between Nokia and You relating to the Software, and it supersedes any prior representations, discussions, undertakings, end-user agreements, communications, or advertising relating to the Software. - -PLEASE SUBMIT ANY ACCOMPANYING REGISTRATION FORMS TO RECEIVE REGISTRATION BENEFITS WHERE APPLICABLE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/keepintouch/addressfinder.cpp --- a/qtmobility/examples/keepintouch/addressfinder.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/keepintouch/addressfinder.cpp Mon May 03 13:18:40 2010 +0300 @@ -78,7 +78,7 @@ QString simpleAddress(const QMessageAddress &address) { - return simpleAddress(address.recipient()); + return simpleAddress(address.addressee()); } //! [contact-lookup] @@ -108,7 +108,7 @@ } // We couldn't match anything, so return the original address - return address.recipient(); + return address.addressee(); } //! [contact-lookup] @@ -217,35 +217,35 @@ //! [create-simple-filters] // We will include addresses contacted following the minimum date QMessageFilter includeFilter(QMessageFilter::byTimeStamp(minimumDate, QMessageDataComparator::GreaterThanEqual)); + // Windows mobile only sets a receptionTimeStamp for sent messsages + includeFilter |= QMessageFilter::byReceptionTimeStamp(minimumDate, QMessageDataComparator::GreaterThanEqual); QMessageFilter excludeFilter; if (useExclusionPeriod) { // We will exclude addresses contacted following the maximum date excludeFilter = QMessageFilter::byTimeStamp(maximumDate, QMessageDataComparator::GreaterThanEqual); + excludeFilter |= QMessageFilter::byReceptionTimeStamp(maximumDate, QMessageDataComparator::GreaterThanEqual); } //! [create-simple-filters] - // Not sure why reception timestamp is relevant to sent messages... - includeFilter |= QMessageFilter::byReceptionTimeStamp(minimumDate, QMessageDataComparator::GreaterThanEqual); - excludeFilter |= QMessageFilter::byReceptionTimeStamp(maximumDate, QMessageDataComparator::GreaterThanEqual); - - QMessageFilter exclusionFilter; - //! [create-composite-filters] // We only want to match messages that we sent QMessageFilter sentFilter(QMessageFilter::byStandardFolder(QMessage::SentFolder)); // Create the filter needed to locate messages to search for addresses to include - inclusionFilter = (sentFilter & includeFilter & ~excludeFilter); - if (useExclusionPeriod) { - // Create the filter needed to locate messages whose address we will exclude - exclusionFilter = (sentFilter & excludeFilter); + inclusionFilter = (sentFilter & includeFilter & ~excludeFilter); + } else { + inclusionFilter = (sentFilter & includeFilter); } //! [create-composite-filters] //! [begin-search] if (useExclusionPeriod) { + // Create the filter needed to locate messages whose address we will exclude + QMessageFilter exclusionFilter; + exclusionFilter = (sentFilter & excludeFilter); + // Start the search for messages containing addresses to exclude service.queryMessages(exclusionFilter); } else { @@ -402,12 +402,21 @@ #endif QGridLayout *filterLayout = new QGridLayout(inputGroup); +#ifdef Q_WS_MAEMO_5 + // Maemo 5 style doesn't take group box titles into account. + int spacingHack = QFontMetrics(QFont()).height(); + filterLayout->setContentsMargins(0, spacingHack, 0, 0); +#endif QLabel *includeLabel = new QLabel(tr("Contacted this")); filterLayout->addWidget(includeLabel, 0, 0); filterLayout->setAlignment(includeLabel, Qt::AlignRight); excludeCheckBox = new QCheckBox(tr("But not last")); +#ifdef Q_WS_MAEMO_5 + // Maemo 5 style cuts off check box text. + excludeCheckBox->setText(excludeCheckBox->text() + " "); +#endif excludeCheckBox->setCheckState(Qt::Checked); connect(excludeCheckBox, SIGNAL(stateChanged(int)), this, SLOT(excludePeriodEnabled(int))); filterLayout->addWidget(excludeCheckBox, 1, 0); @@ -449,6 +458,9 @@ QGroupBox *addressGroup = new QGroupBox(tr("Contacts")); addressGroup->setAlignment(Qt::AlignLeft); addressGroup->setLayout(new QVBoxLayout); +#ifdef Q_WS_MAEMO_5 + addressGroup->layout()->setContentsMargins(0, spacingHack, 0, 0); +#endif addressGroup->layout()->addWidget(contactList); resultsLayout->addWidget(addressGroup); @@ -456,6 +468,9 @@ messageGroup->setAlignment(Qt::AlignLeft); QVBoxLayout *groupLayout = new QVBoxLayout; +#ifdef Q_WS_MAEMO_5 + groupLayout->setContentsMargins(0, spacingHack, 0, 0); +#endif messageCombo = new QComboBox; connect(messageCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(messageIndexChanged(int))); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/lightmaps/lightmaps.cpp --- a/qtmobility/examples/lightmaps/lightmaps.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/lightmaps/lightmaps.cpp Mon May 03 13:18:40 2010 +0300 @@ -317,12 +317,10 @@ & QNetworkConfigurationManager::CanStartAndStopInterfaces); // Is there default access point, use it - QNetworkConfiguration cfg1 = manager.defaultConfiguration(); - if (!cfg1.isValid() || (!canStartIAP && cfg1.state() != QNetworkConfiguration::Active)) { - m_networkSetupError = QString(tr("Avaliable Access Points not found.")); - m_normalMap = 0; - m_largeMap = 0; - QTimer::singleShot(0, this, SLOT(delayedInit())); + QTM_PREPEND_NAMESPACE(QNetworkConfiguration) cfg1 = manager.defaultConfiguration(); + if (!cfg1.isValid() || (!canStartIAP && cfg1.state() != QTM_PREPEND_NAMESPACE(QNetworkConfiguration)::Active)) { + m_networkSetupError = QString(tr("This example requires networking, and no avaliable networks or access points could be found.")); + QTimer::singleShot(0, this, SLOT(networkSetupError())); return; } @@ -370,9 +368,14 @@ private slots: + void networkSetupError() { + QMessageBox::critical(this, tr("LightMaps"), + m_networkSetupError); + QTimer::singleShot(0, qApp, SLOT(quit())); + } + void networkSessionOpened() { m_location = QGeoPositionInfoSource::createDefaultSource(this); - m_location->setUpdateInterval(10000); if (!m_location) { QNmeaPositionInfoSource *nmeaLocation = new QNmeaPositionInfoSource(QNmeaPositionInfoSource::SimulationMode, this); @@ -383,6 +386,8 @@ m_usingLogFile = true; } + m_location->setUpdateInterval(10000); + connect(m_location, SIGNAL(positionUpdated(QGeoPositionInfo)), this, @@ -396,11 +401,6 @@ m_location->stopUpdates(); } - if (!m_networkSetupError.isEmpty()) { - QMessageBox::information(this, tr("LightMaps"), - m_networkSetupError); - } - m_normalMap = new SlippyMap(m_session, m_location, this); m_largeMap = new SlippyMap(m_session, m_location, this); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/lightmaps/lightmaps.pro --- a/qtmobility/examples/lightmaps/lightmaps.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/lightmaps/lightmaps.pro Mon May 03 13:18:40 2010 +0300 @@ -1,4 +1,5 @@ TEMPLATE = app +TARGET = lightmaps_with_location HEADERS = ../satellitedialog/satellitedialog.h \ ../flickrdemo/connectivityhelper.h diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/logfilepositionsource/clientapplication.cpp --- a/qtmobility/examples/logfilepositionsource/clientapplication.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/logfilepositionsource/clientapplication.cpp Mon May 03 13:18:40 2010 +0300 @@ -59,5 +59,5 @@ void ClientApplication::positionUpdated(const QGeoPositionInfo &info) { - textEdit->append(QString("Position updated: Date/time = %1, Coordinate = %2").arg(info.dateTime().toString()).arg(info.coordinate().toString())); + textEdit->append(QString("Position updated: Date/time = %1, Coordinate = %2").arg(info.timestamp().toString()).arg(info.coordinate().toString())); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/logfilepositionsource/logfilepositionsource.cpp --- a/qtmobility/examples/logfilepositionsource/logfilepositionsource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/logfilepositionsource/logfilepositionsource.cpp Mon May 03 13:18:40 2010 +0300 @@ -103,13 +103,13 @@ double longitude; bool hasLatitude = false; bool hasLongitude = false; - QDateTime dateTime = QDateTime::fromString(QString(data.value(0)), Qt::ISODate); + QDateTime timestamp = QDateTime::fromString(QString(data.value(0)), Qt::ISODate); latitude = data.value(1).toDouble(&hasLatitude); longitude = data.value(2).toDouble(&hasLongitude); - if (hasLatitude && hasLongitude && dateTime.isValid()) { + if (hasLatitude && hasLongitude && timestamp.isValid()) { QGeoCoordinate coordinate(latitude, longitude); - QGeoPositionInfo info(coordinate, dateTime); + QGeoPositionInfo info(coordinate, timestamp); if (info.isValid()) { lastPosition = info; emit positionUpdated(info); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/notesmanagerplugin/note.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/notesmanagerplugin/note.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,74 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $QT_BEGIN_LICENSE:LGPL$ +** 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 NOTE_H +#define NOTE_H + +#include +#include + +class Note : public QObject +{ + Q_OBJECT + Q_PROPERTY(int index READ index WRITE setIndex) + Q_PROPERTY(QString message READ message WRITE setMessage) + Q_PROPERTY(QDateTime alarm READ alarm WRITE setAlarm) + +public: + Note(QObject *parent =0) : QObject(parent) {} + ~Note() {} + +public slots: + int index() const { return m_index; } + void setIndex(int index) { m_index = index; } + + QString message() const { return m_message; } + void setMessage(const QString &message) { m_message = message; } + + QDateTime alarm() const { return m_alarm; } + void setAlarm(const QDateTime &alarm) { m_alarm = alarm; } + +private: + int m_index; + QString m_message; + QDateTime m_alarm; +}; + +#endif + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/notesmanagerplugin/notesmanager.cpp --- a/qtmobility/examples/notesmanagerplugin/notesmanager.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/notesmanagerplugin/notesmanager.cpp Mon May 03 13:18:40 2010 +0300 @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** @@ -9,11 +9,9 @@ ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercial Usage ** This file contains pre-release code and may not be distributed. -** You may use this fi -#include le in accordance with the terms and conditions +** You may use this file in accordance with the terms and conditions ** contained in the Technology Preview License Agreement accompanying ** this package. -#include ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser @@ -22,8 +20,7 @@ ** 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. -*#include - * +** ** 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. @@ -37,10 +34,10 @@ ** ** ** +** ** $QT_END_LICENSE$ ** ****************************************************************************/ - #include #include @@ -49,6 +46,8 @@ NotesManager::NotesManager(QObject *parent) : QObject(parent) { + m_search = ""; + QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); db.setDatabaseName("todoDB"); db.open(); @@ -67,8 +66,8 @@ { QSqlQuery alarmQuery("SELECT * FROM todolist WHERE date > DATETIME('now', 'localtime') ORDER BY date"); if (alarmQuery.next()) { - setAlarm(QDateTime::fromString(alarmQuery.value(2).toString(), "yyyy-MM-dd HH:mm:ss")); - setMessage(alarmQuery.value(1).toString()); + setAlarmTime(QDateTime::fromString(alarmQuery.value(2).toString(), "yyyy-MM-dd HH:mm:ss")); + setAlarmMessage(alarmQuery.value(1).toString()); } } @@ -77,31 +76,30 @@ QString currStr = QDateTime::currentDateTime().toString(Qt::ISODate); QDateTime curr = QDateTime::fromString(currStr, Qt::ISODate); - //qDebug() << "CHECKING..." << getAlarm() << " against now " << curr; - if (getAlarm() == curr) - emit soundAlarm(getAlarm()); + if (getAlarmTime() == curr) + emit soundAlarm(getAlarmTime()); nextAlarm(); } -QDateTime NotesManager::getAlarm() const +QDateTime NotesManager::getAlarmTime() const { - return m_alarm; + return m_alarmTime; } -void NotesManager::setAlarm(const QDateTime& alarm) +void NotesManager::setAlarmTime(const QDateTime& alarm) { - m_alarm = alarm; + m_alarmTime = alarm; } -QString NotesManager::getMessage() const +QString NotesManager::getAlarmMessage() const { - return m_message; + return m_alarmMessage; } -void NotesManager::setMessage(const QString& message) +void NotesManager::setAlarmMessage(const QString& message) { - m_message = message; + m_alarmMessage = message; } void NotesManager::addNote(const QString& note, const QDateTime& alarm) @@ -115,24 +113,38 @@ QSqlQuery query("DELETE FROM todolist WHERE id='" + QString::number(id) + "'"); } -QList NotesManager::getNotes(const QString& search) const +void NotesManager::setSearch(const QString& search) { - QList list; + m_search = search; +} + +QList NotesManager::getNotes(const QString& search) +{ + m_notes.clear(); + setSearch(search); QString queryString = "SELECT * FROM todolist"; - if (search != "") queryString += " WHERE notes LIKE '%" + search + "%'"; + if (m_search != "") queryString += " WHERE notes LIKE '%" + m_search + "%'"; queryString += " ORDER BY date"; QSqlQuery query(queryString); while (query.next()) { - Note entry; - entry.index = query.value(0).toInt(); - entry.message = query.value(1).toString(); - entry.alert = QDateTime::fromString(query.value(2).toString(), "yyyy-MM-dd HH:mm:ss"); + Note *entry = new Note(this); + entry->setIndex(query.value(0).toInt()); + entry->setMessage(query.value(1).toString()); + entry->setAlarm(QDateTime::fromString(query.value(2).toString(), "yyyy-MM-dd HH:mm:ss")); - list << entry; + m_notes << entry; } - - return list; + + return m_notes; } + +#ifdef DECLARATIVE +QDeclarativeListProperty NotesManager::noteSet() +{ + m_notes = getNotes(m_search); + return QDeclarativeListProperty(this, m_notes); +} +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/notesmanagerplugin/notesmanager.h --- a/qtmobility/examples/notesmanagerplugin/notesmanager.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/notesmanagerplugin/notesmanager.h Mon May 03 13:18:40 2010 +0300 @@ -1,12 +1,14 @@ /**************************************************************************** ** -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $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. @@ -36,7 +38,6 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ - #ifndef NOTESMANAGER_H #define NOTESMANAGER_H @@ -47,36 +48,46 @@ #include #include -typedef struct -{ - int index; - QString message; - QDateTime alert; -} Note; + +#ifdef DECLARATIVE +#include +#include +#endif + +#include "note.h" class NotesManager : public QObject { Q_OBJECT - Q_PROPERTY(QDateTime alarm READ getAlarm WRITE setAlarm NOTIFY soundAlarm) - Q_PROPERTY(QString message READ getMessage WRITE setMessage) + Q_PROPERTY(QDateTime alarmTime READ getAlarmTime WRITE setAlarmTime NOTIFY soundAlarm) + Q_PROPERTY(QString alarmMessage READ getAlarmMessage WRITE setAlarmMessage) +#ifdef DECLARATIVE + Q_PROPERTY(QDeclarativeListProperty noteSet READ noteSet) +#endif public: NotesManager(QObject *parent = 0); - Q_INVOKABLE QList getNotes(const QString& search=QString()) const; + Q_INVOKABLE QList getNotes(const QString& search=QString()); +#ifdef DECLARATIVE + QDeclarativeListProperty noteSet(); +#endif public slots: void addNote(const QString ¬e, const QDateTime &alarm); void removeNote(int id); + void setSearch(const QString &search); private: - QDateTime m_alarm; - QString m_message; + QDateTime m_alarmTime; + QString m_alarmMessage; + QList m_notes; + QString m_search; - QDateTime getAlarm() const; - void setAlarm(const QDateTime &alarm); + QDateTime getAlarmTime() const; + void setAlarmTime(const QDateTime &alarm); - QString getMessage() const; - void setMessage(const QString &message); + QString getAlarmMessage() const; + void setAlarmMessage(const QString &message); void nextAlarm(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/notesmanagerplugin/notesmanagerplugin.pro --- a/qtmobility/examples/notesmanagerplugin/notesmanagerplugin.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/notesmanagerplugin/notesmanagerplugin.pro Mon May 03 13:18:40 2010 +0300 @@ -1,7 +1,8 @@ TEMPLATE = lib CONFIG += plugin INCLUDEPATH += ../../src/serviceframework -HEADERS += notesmanagerplugin.h \ +HEADERS += note.h \ + notesmanagerplugin.h \ notesmanager.h SOURCES += notesmanagerplugin.cpp \ notesmanager.cpp @@ -9,6 +10,8 @@ TARGET = serviceframework_notesmanagerplugin DESTDIR = . +contains(QT_CONFIG, declarative):DEFINES += DECLARATIVE + include(../examples.pri) CONFIG += mobility MOBILITY = serviceframework @@ -20,7 +23,7 @@ DEPLOYMENT += pluginDep TARGET.EPOCALLOWDLLDATA = 1 - TARGET.CAPABILITY = ALL -TCB + TARGET.CAPABILITY = LocalServices Location NetworkServices ReadUserData UserEnvironment WriteUserData } xml.path = $$DESTDIR/xmldata diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/notesmanagerplugin/notesmanagerservice.xml --- a/qtmobility/examples/notesmanagerplugin/notesmanagerservice.xml Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/notesmanagerplugin/notesmanagerservice.xml Mon May 03 13:18:40 2010 +0300 @@ -9,4 +9,22 @@ Notes Management Interface + + com.nokia.qt.examples.NotesManager + 1.1 + Notes Management Interface + + + + com.nokia.qt.examples.NotesManager + 1.2 + Notes Management Interface + + + + com.nokia.qt.examples.sfw.NotesManager + 2.0 + Notes Management Interface + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/player/main.cpp --- a/qtmobility/examples/player/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/player/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -47,10 +47,13 @@ { QApplication app(argc, argv); +#ifdef Q_OS_SYMBIAN + QMainWindow window; + Player *player = new Player(&window); + window.setCentralWidget(player); + window.showMaximized(); +#else Player player; -#ifdef Q_OS_SYMBIAN - player.showMaximized(); -#else player.show(); #endif return app.exec(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/player/player.cpp --- a/qtmobility/examples/player/player.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/player/player.cpp Mon May 03 13:18:40 2010 +0300 @@ -50,20 +50,34 @@ #include +#ifdef Q_OS_SYMBIAN +#include +#include +#include +#include +#include + +#include "mediakeysobserver.h" +#endif + Player::Player(QWidget *parent) : QWidget(parent) , videoWidget(0) , coverLabel(0) , slider(0) -#ifdef Q_OS_SYMBIAN +#ifdef Q_OS_SYMBIAN , mediaKeysObserver(0) , playlistDialog(0) + , toggleAspectRatio(0) + , showYoutubeDialog(0) + , youtubeDialog(0) #else , colorDialog(0) -#endif +#endif { player = new QMediaPlayer(this); - playlist = new QMediaPlaylist(this); + // owerd by PlaylistModel + playlist = new QMediaPlaylist(); playlist->setMediaObject(player); connect(player, SIGNAL(durationChanged(qint64)), SLOT(durationChanged(qint64))); @@ -73,31 +87,31 @@ connect(player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), this, SLOT(statusChanged(QMediaPlayer::MediaStatus))); connect(player, SIGNAL(bufferStatusChanged(int)), this, SLOT(bufferingProgress(int))); + connect(player, SIGNAL(error(QMediaPlayer::Error)), this, SLOT(displayErrorMessage())); - videoWidget = new VideoWidget; + videoWidget = new VideoWidget(this); videoWidget->setMediaObject(player); playlistModel = new PlaylistModel(this); playlistModel->setPlaylist(playlist); - playlistView = new QListView; + playlistView = new QListView(this); playlistView->setModel(playlistModel); playlistView->setCurrentIndex(playlistModel->index(playlist->currentIndex(), 0)); connect(playlistView, SIGNAL(activated(QModelIndex)), this, SLOT(jump(QModelIndex))); - slider = new QSlider(Qt::Horizontal); + slider = new QSlider(Qt::Horizontal, this); slider->setRange(0, player->duration() / 1000); connect(slider, SIGNAL(sliderMoved(int)), this, SLOT(seek(int))); -#ifdef Q_OS_SYMBIAN -#else +#ifndef Q_OS_SYMBIAN QPushButton *openButton = new QPushButton(tr("Open"), this); connect(openButton, SIGNAL(clicked()), this, SLOT(open())); +#endif -#endif PlayerControls *controls = new PlayerControls(this); controls->setState(player->state()); controls->setVolume(player->volume()); @@ -107,18 +121,19 @@ connect(controls, SIGNAL(pause()), player, SLOT(pause())); connect(controls, SIGNAL(stop()), player, SLOT(stop())); connect(controls, SIGNAL(next()), playlist, SLOT(next())); - connect(controls, SIGNAL(previous()), playlist, SLOT(previous())); + connect(controls, SIGNAL(previous()), this, SLOT(previousClicked())); connect(controls, SIGNAL(changeVolume(int)), player, SLOT(setVolume(int))); connect(controls, SIGNAL(changeMuting(bool)), player, SLOT(setMuted(bool))); connect(controls, SIGNAL(changeRate(qreal)), player, SLOT(setPlaybackRate(qreal))); + connect(controls, SIGNAL(stop()), videoWidget, SLOT(update())); + connect(player, SIGNAL(stateChanged(QMediaPlayer::State)), controls, SLOT(setState(QMediaPlayer::State))); connect(player, SIGNAL(volumeChanged(int)), controls, SLOT(setVolume(int))); connect(player, SIGNAL(mutedChanged(bool)), controls, SLOT(setMuted(bool))); -#ifdef Q_OS_SYMBIAN -#else +#ifndef Q_OS_SYMBIAN QPushButton *fullScreenButton = new QPushButton(tr("FullScreen"), this); fullScreenButton->setCheckable(true); @@ -130,18 +145,18 @@ fullScreenButton->setEnabled(false); } - QPushButton *colorButton = new QPushButton(tr("Color Options...")); + QPushButton *colorButton = new QPushButton(tr("Color Options..."), this); if (videoWidget) connect(colorButton, SIGNAL(clicked()), this, SLOT(showColorDialog())); else colorButton->setEnabled(false); #endif - + #ifdef Q_OS_SYMBIAN // Set some sensible default volume. player->setVolume(50); - + QLabel *label = new QLabel(tr("Playlist"), this); QVBoxLayout *playlistDialogLayout = new QVBoxLayout; playlistDialogLayout->addWidget(label); @@ -150,28 +165,36 @@ playlistDialog->setWindowTitle(tr("Playlist")); playlistDialog->setLayout(playlistDialogLayout); playlistDialog->setContextMenuPolicy(Qt::NoContextMenu); - + QAction *close = new QAction(tr("Close"), this); close->setSoftKeyRole(QAction::NegativeSoftKey); playlistDialog->addAction(close); - + mediaKeysObserver = new MediaKeysObserver(this); - + + coverLabel = new QLabel(this); + coverLabel->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); + coverLabel->setMinimumSize(1, 1); + coverLabel->hide(); + slider->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Maximum); slider->setMinimumSize(1, 1); - + connect(controls, SIGNAL(open()), this, SLOT(open())); connect(controls, SIGNAL(fullScreen(bool)), this, SLOT(handleFullScreen(bool))); - connect(videoWidget, SIGNAL(fullScreenChanged(bool)), this, SLOT(handleFullScreen(bool))); connect(controls, SIGNAL(openPlayList()), this, SLOT(showPlayList())); connect(player, SIGNAL(stateChanged(QMediaPlayer::State)), this, SLOT(handleStateChange(QMediaPlayer::State))); connect(mediaKeysObserver, SIGNAL(mediaKeyPressed(MediaKeysObserver::MediaKeys)), this, SLOT(handleMediaKeyEvent(MediaKeysObserver::MediaKeys))); connect(close, SIGNAL(triggered()), playlistDialog, SLOT(reject())); - + QBoxLayout *layout = new QVBoxLayout; + layout->setMargin(0); layout->addWidget(videoWidget, 7); + layout->addWidget(coverLabel, 7); layout->addWidget(slider, 1); layout->addWidget(controls, 2); + + createMenus(); #else QBoxLayout *displayLayout = new QHBoxLayout; if (videoWidget) @@ -193,7 +216,7 @@ layout->addLayout(displayLayout); layout->addWidget(slider); layout->addLayout(controlLayout); -#endif +#endif setLayout(layout); @@ -211,12 +234,6 @@ Player::~Player() { -#ifdef Q_OS_SYMBIAN - delete playlistDialog; -#else - delete playlist; -#endif - delete player; } void Player::open() @@ -233,11 +250,58 @@ void Player::positionChanged(qint64 progress) { - slider->setValue(progress / 1000); + if (!slider->isSliderDown()) { + slider->setValue(progress / 1000); + } } void Player::metaDataChanged() { +#ifdef Q_OS_SYMBIAN + if (player->isMetaDataAvailable()) { + setTrackInfo(QString("(%1/%2) %3 - %4") + .arg(playlist->currentIndex()+1) + .arg(playlist->mediaCount()) + .arg(player->metaData(QtMedia::AlbumArtist).toString()) + .arg(player->metaData(QtMedia::Title).toString())); + + if (!player->isVideoAvailable()) { + QUrl uri = player->metaData(QtMedia::CoverArtUrlLarge).value(); + QPixmap pixmap = NULL; + + if (uri.isEmpty()) { + QVariant picture = player->extendedMetaData("attachedpicture"); + // Load picture from metadata + if (!picture.isNull() && picture.canConvert()) + pixmap.loadFromData(picture.value()); + + // Load some jpg from same dir as media + else { + QUrl url = player->media().canonicalUrl(); + QString path = url.path(); + path = path.mid(1,path.lastIndexOf("/")); + QRegExp rx("*.jpg"); + rx.setCaseSensitivity(Qt::CaseInsensitive); + rx.setPatternSyntax(QRegExp::Wildcard); + QDir directory(path); + QStringList allFiles = directory.entryList(QDir::Files | QDir::NoSymLinks); + + foreach (QString file, allFiles) + if (rx.exactMatch(file)) { + path.append(file); + break; + } + pixmap.load(path); + } + // Load picture from file pointed by uri + } else + pixmap.load(uri.toString()); + + coverLabel->setPixmap((!pixmap.isNull())?pixmap:QPixmap()); + } + hideOrShowCoverArt(); + } +#else //qDebug() << "update metadata" << player->metaData(QtMedia::Title).toString(); if (player->isMetaDataAvailable()) { setTrackInfo(QString("%1 - %2") @@ -252,6 +316,17 @@ : QPixmap()); } } +#endif +} + +void Player::previousClicked() +{ + // Go to previous track if we are within the first 5 seconds of playback + // Otherwise, seek to the beginning. + if(player->position() <= 5000) + playlist->previous(); + else + player->setPosition(0); } void Player::jump(const QModelIndex &index) @@ -278,42 +353,42 @@ void Player::statusChanged(QMediaPlayer::MediaStatus status) { + handleCursor(status); + + // handle status message switch (status) { case QMediaPlayer::UnknownMediaStatus: case QMediaPlayer::NoMedia: case QMediaPlayer::LoadedMedia: case QMediaPlayer::BufferingMedia: case QMediaPlayer::BufferedMedia: -#ifndef QT_NO_CURSOR - unsetCursor(); -#endif setStatusInfo(QString()); break; case QMediaPlayer::LoadingMedia: -#ifndef QT_NO_CURSOR - setCursor(QCursor(Qt::BusyCursor)); -#endif setStatusInfo(tr("Loading...")); break; case QMediaPlayer::StalledMedia: -#ifndef QT_NO_CURSOR - setCursor(QCursor(Qt::BusyCursor)); -#endif + setStatusInfo(tr("Media Stalled")); break; case QMediaPlayer::EndOfMedia: -#ifndef QT_NO_CURSOR - unsetCursor(); -#endif - setStatusInfo(QString()); QApplication::alert(this); break; case QMediaPlayer::InvalidMedia: + displayErrorMessage(); + break; + } +} + +void Player::handleCursor(QMediaPlayer::MediaStatus status) +{ #ifndef QT_NO_CURSOR + if( status == QMediaPlayer::LoadingMedia || + status == QMediaPlayer::BufferingMedia || + status == QMediaPlayer::StalledMedia) + setCursor(QCursor(Qt::BusyCursor)); + else unsetCursor(); #endif - setStatusInfo(player->errorString()); - break; - } } void Player::bufferingProgress(int progress) @@ -324,25 +399,50 @@ void Player::setTrackInfo(const QString &info) { trackInfo = info; - +#ifdef Q_OS_SYMBIAN + QMainWindow *main = qobject_cast(this->parent()); + if (!statusInfo.isEmpty()) + main->setWindowTitle(QString("%1 | %2").arg(trackInfo).arg(statusInfo)); + else + main->setWindowTitle(trackInfo); +#else if (!statusInfo.isEmpty()) setWindowTitle(QString("%1 | %2").arg(trackInfo).arg(statusInfo)); else setWindowTitle(trackInfo); - +#endif } void Player::setStatusInfo(const QString &info) { statusInfo = info; - +#ifdef Q_OS_SYMBIAN + QMainWindow *main = qobject_cast(this->parent()); + if (!statusInfo.isEmpty()) + main->setWindowTitle(QString("%1 | %2").arg(trackInfo).arg(statusInfo)); + else + main->setWindowTitle(trackInfo); +#else if (!statusInfo.isEmpty()) setWindowTitle(QString("%1 | %2").arg(trackInfo).arg(statusInfo)); else setWindowTitle(trackInfo); +#endif } + +void Player::displayErrorMessage() +{ #ifdef Q_OS_SYMBIAN + if(player->error()!=QMediaPlayer::NoError) + QMessageBox::critical(NULL, tr("Error"), player->errorString(), QMessageBox::Ok); #else + setStatusInfo(player->errorString()); +#endif + + +} + +#ifndef Q_OS_SYMBIAN void Player::showColorDialog() { if (!colorDialog) { @@ -384,32 +484,68 @@ } #endif #ifdef Q_OS_SYMBIAN +void Player::createMenus() +{ + toggleAspectRatio = new QAction(tr("Ignore Aspect Ratio"), this); + toggleAspectRatio->setCheckable(true); + qobject_cast(this->parent())->menuBar()->addAction(toggleAspectRatio); + connect(toggleAspectRatio, SIGNAL(toggled(bool)), this, SLOT(handleAspectRatio(bool))); + + showYoutubeDialog = new QAction(tr("Youtube Search"), this); + qobject_cast(this->parent())->menuBar()->addAction(showYoutubeDialog); + connect(showYoutubeDialog, SIGNAL(triggered()), this, SLOT(launchYoutubeDialog())); +} + void Player::handleFullScreen(bool isFullscreen) { + QMainWindow* mainWindow = qobject_cast(this->parent()); if(isFullscreen) { - showFullScreen(); - if(player->state()==QMediaPlayer::PlayingState || - player->state()==QMediaPlayer::PausedState) + if(player->state()==QMediaPlayer::StoppedState) + videoWidget->setFullScreen(false); + else videoWidget->setFullScreen(true); - else - videoWidget->setFullScreen(false); - + + qobject_cast(this->parent())->showFullScreen(); } else - showMaximized(); + qobject_cast(this->parent())->showMaximized(); +} + +void Player::handleAspectRatio(bool aspectRatio) +{ + if(aspectRatio) { + toggleAspectRatio->setText(tr("Keep Aspect Ratio")); + videoWidget->setAspectRatioMode(Qt::IgnoreAspectRatio); + + } else { + toggleAspectRatio->setText(tr("Ignore Aspect Ratio")); + videoWidget->setAspectRatioMode(Qt::KeepAspectRatio); + } +} + +void Player::hideOrShowCoverArt() +{ + if(player->isVideoAvailable()) { + coverLabel->hide(); + videoWidget->show(); + videoWidget->repaint(); + } else { + coverLabel->show(); + videoWidget->hide(); + } } void Player::handleStateChange(QMediaPlayer::State state) { if (state == QMediaPlayer::PausedState) return; - - handleFullScreen(isFullScreen()); + + handleFullScreen(qobject_cast(this->parent())->isFullScreen()); } void Player::handleMediaKeyEvent(MediaKeysObserver::MediaKeys key) { switch (key) { - case MediaKeysObserver::EVolIncKey: + case MediaKeysObserver::EVolIncKey: player->setVolume(player->volume() + 10); break; case MediaKeysObserver::EVolDecKey: @@ -423,7 +559,139 @@ { if (!playlistDialog) return; - + playlistDialog->exec(); } + +void Player::launchYoutubeDialog() +{ + if(!youtubeDialog) { + youtubeDialog = new QDialog(this); + + QLineEdit *input= new QLineEdit(youtubeDialog); + QPushButton *searchButton = new QPushButton("Search", youtubeDialog); + QListWidget *resultList = new QListWidget(youtubeDialog); + QAction *add = new QAction(tr("Add"), youtubeDialog); + QAction *close = new QAction(tr("Close"), youtubeDialog); + + add->setSoftKeyRole(QAction::PositiveSoftKey); + close->setSoftKeyRole(QAction::NegativeSoftKey); + youtubeDialog->addAction(add); + youtubeDialog->addAction(close); + + connect(searchButton, SIGNAL(clicked()), this, SLOT(searchYoutubeVideo())); + connect(add, SIGNAL(triggered()), this, SLOT(addYoutubeVideo())); + connect(close, SIGNAL(triggered()), youtubeDialog, SLOT(close())); + connect(&http, SIGNAL(requestFinished(int, bool)), this, SLOT(youtubeHttpRequestFinished(int, bool))); + connect(&http, SIGNAL(responseHeaderReceived(const QHttpResponseHeader&)), this, SLOT(youtubeReadResponseHeader(const QHttpResponseHeader&))); + + QHBoxLayout *topLayout = new QHBoxLayout; + topLayout->addWidget(input); + topLayout->addWidget(searchButton); + + QVBoxLayout *mainLayout = new QVBoxLayout; + mainLayout->addLayout(topLayout); + mainLayout->addWidget(resultList); + youtubeDialog->setLayout(mainLayout); + } + youtubeDialog->showMaximized(); +} + +void Player::youtubeReadResponseHeader(const QHttpResponseHeader& responseHeader) +{ + switch (responseHeader.statusCode()) + { + case 200: // Ok + case 301: // Moved Permanently + case 302: // Found + case 303: // See Other + case 307: // Temporary Redirect + // these are not error conditions + break; + default: { + http.abort(); + QMessageBox::critical(NULL, tr("Error"), tr("Download failed: %1.").arg(responseHeader.reasonPhrase())); + break; + } + } +} + +void Player::addYoutubeVideo() +{ + if(!youtubeDialog) + return; + + QListWidget *resultList = youtubeDialog->findChild(); + if(!resultList || resultList->count() == 0) + return; + + playlist->addMedia(resultList->currentItem()->data(Qt::UserRole).toUrl()); +} + +void Player::searchYoutubeVideo() +{ + if(!youtubeDialog) + return; + + QLineEdit *input = youtubeDialog->findChild(); + QListWidget *resultList = youtubeDialog->findChild(); + QString urlstring = QString("http://gdata.youtube.com/feeds/api/videos?q=%1&max-results=25&v=2&format=6").arg(input->text().replace(' ', '+')); + QUrl url(urlstring); + http.setHost(url.host(), QHttp::ConnectionModeHttp, url.port() == -1 ? 0 : url.port()); + resultList->clear(); + httpGetId = http.get(urlstring); +} + +void Player::youtubeHttpRequestFinished(int requestId, bool error) +{ + if(!youtubeDialog || requestId != httpGetId) + return; + + if (error) { + QMessageBox::critical(NULL, tr("Error"), tr("Download failed: %1.").arg(http.errorString())); + return; + } + + QTemporaryFile file; + if (!file.open()) { + QMessageBox::critical(NULL, tr("Error"), tr("Could not open temporary file")); + return; + } + + QString data = http.readAll(); + QTextStream out(&file); + out << data; + file.close(); + + QDomDocument domDocument; + QString errorMessage; + if (!domDocument.setContent(&file, true, &errorMessage)) { + QMessageBox::critical(NULL, tr("Error"), errorMessage); + return; + } + + QDomElement root = domDocument.documentElement(); + if (root.tagName() != "feed") + return; + + QListWidget *resultList = youtubeDialog->findChild(); + QDomElement entryElement = root.firstChildElement("entry"); + while(!entryElement.isNull()) + { + QString title = entryElement.firstChildElement("title").text(); + QDomElement groupElement = entryElement.firstChildElement("group"); + QDomElement incidentElement2 = groupElement.firstChildElement("content"); + while(!incidentElement2.isNull()) + { + // "6" = MPEG-4 SP video (up to 176x144) and AAC audio. + if (incidentElement2.attribute("format") == "6") { + QListWidgetItem* item = new QListWidgetItem(title, resultList); + item->setData(Qt::UserRole, incidentElement2.attribute("url")); + break; + } + incidentElement2 = incidentElement2.nextSiblingElement("content"); + } + entryElement = entryElement.nextSiblingElement("entry"); + } +} #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/player/player.h --- a/qtmobility/examples/player/player.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/player/player.h Mon May 03 13:18:40 2010 +0300 @@ -49,6 +49,10 @@ #include #ifdef Q_OS_SYMBIAN +#include +#include +#include +#include #include "mediakeysobserver.h" #endif @@ -84,6 +88,8 @@ void positionChanged(qint64 progress); void metaDataChanged(); + void previousClicked(); + void seek(int seconds); void jump(const QModelIndex &index); void playlistPositionChanged(int); @@ -91,11 +97,20 @@ void statusChanged(QMediaPlayer::MediaStatus status); void bufferingProgress(int progress); + void displayErrorMessage(); + #ifdef Q_OS_SYMBIAN void handleFullScreen(bool isFullscreen); + void handleAspectRatio(bool aspectRatio); void handleStateChange(QMediaPlayer::State state); void handleMediaKeyEvent(MediaKeysObserver::MediaKeys key); void showPlayList(); + void hideOrShowCoverArt(); + void launchYoutubeDialog(); + void youtubeHttpRequestFinished(int requestId, bool error); + void youtubeReadResponseHeader(const QHttpResponseHeader& responseHeader); + void searchYoutubeVideo(); + void addYoutubeVideo(); #else void showColorDialog(); #endif @@ -103,6 +118,11 @@ private: void setTrackInfo(const QString &info); void setStatusInfo(const QString &info); + void handleCursor(QMediaPlayer::MediaStatus status); + +#ifdef Q_OS_SYMBIAN + void createMenus(); +#endif QMediaPlayer *player; QMediaPlaylist *playlist; @@ -113,12 +133,17 @@ QAbstractItemView *playlistView; QString trackInfo; QString statusInfo; -#ifdef Q_OS_SYMBIAN +#ifdef Q_OS_SYMBIAN MediaKeysObserver *mediaKeysObserver; QDialog *playlistDialog; + QAction *toggleAspectRatio; + QAction *showYoutubeDialog; + QDialog *youtubeDialog; + QHttp http; + int httpGetId; #else QDialog *colorDialog; -#endif +#endif }; #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/player/player.pro --- a/qtmobility/examples/player/player.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/player/player.pro Mon May 03 13:18:40 2010 +0300 @@ -1,5 +1,7 @@ TEMPLATE = app TARGET = player +QT += network \ + xml INCLUDEPATH += ../../src/multimedia @@ -19,7 +21,7 @@ videowidget.cpp symbian { - TARGET.CAPABILITY = UserEnvironment WriteDeviceData ReadDeviceData + TARGET.CAPABILITY = UserEnvironment WriteDeviceData ReadDeviceData NetworkServices HEADERS += mediakeysobserver.h SOURCES += mediakeysobserver.cpp LIBS += -lremconinterfacebase \ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/player/playercontrols.cpp --- a/qtmobility/examples/player/playercontrols.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/player/playercontrols.cpp Mon May 03 13:18:40 2010 +0300 @@ -56,49 +56,51 @@ , nextButton(0) , previousButton(0) , muteButton(0) -#ifdef Q_OS_SYMBIAN +#ifdef Q_OS_SYMBIAN , openButton(0) , fullScreenButton(0) , playListButton(0) #else , volumeSlider(0) , rateBox(0) -#endif +#endif { - playButton = new QToolButton; + playButton = new QToolButton(this); playButton->setIcon(style()->standardIcon(QStyle::SP_MediaPlay)); connect(playButton, SIGNAL(clicked()), this, SLOT(playClicked())); - stopButton = new QToolButton; + stopButton = new QToolButton(this); stopButton->setIcon(style()->standardIcon(QStyle::SP_MediaStop)); stopButton->setEnabled(false); connect(stopButton, SIGNAL(clicked()), this, SIGNAL(stop())); - nextButton = new QToolButton; + nextButton = new QToolButton(this); nextButton->setIcon(style()->standardIcon(QStyle::SP_MediaSkipForward)); connect(nextButton, SIGNAL(clicked()), this, SIGNAL(next())); - previousButton = new QToolButton; + previousButton = new QToolButton(this); previousButton->setIcon(style()->standardIcon(QStyle::SP_MediaSkipBackward)); connect(previousButton, SIGNAL(clicked()), this, SIGNAL(previous())); - muteButton = new QToolButton; + muteButton = new QToolButton(this); muteButton->setIcon(style()->standardIcon(QStyle::SP_MediaVolume)); connect(muteButton, SIGNAL(clicked()), this, SLOT(muteClicked())); -#ifdef Q_OS_SYMBIAN -#else - volumeSlider = new QSlider(Qt::Horizontal); +#ifndef Q_OS_SYMBIAN + volumeSlider = new QSlider(Qt::Horizontal, this); + +#ifndef Q_WS_MAEMO_5 volumeSlider->setRange(0, 100); connect(volumeSlider, SIGNAL(sliderMoved(int)), this, SIGNAL(changeVolume(int))); +#endif - rateBox = new QComboBox; + rateBox = new QComboBox(this); rateBox->addItem("0.5x", QVariant(0.5)); rateBox->addItem("1.0x", QVariant(1.0)); rateBox->addItem("2.0x", QVariant(2.0)); @@ -106,7 +108,7 @@ connect(rateBox, SIGNAL(activated(int)), SLOT(updateRate())); -#endif +#endif #ifdef Q_OS_SYMBIAN playButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Maximum); playButton->setMinimumSize(1, 1); @@ -118,28 +120,28 @@ previousButton->setMinimumSize(1, 1); muteButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Maximum); muteButton->setMinimumSize(1, 1); - + openButton = new QToolButton(this); openButton->setIcon(style()->standardIcon(QStyle::SP_DirOpenIcon)); openButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Maximum); openButton->setMinimumSize(1, 1); connect(openButton, SIGNAL(clicked()), this, SIGNAL(open())); - + fullScreenButton = new QToolButton(this); - fullScreenButton->setIcon(style()->standardIcon(QStyle::SP_DesktopIcon)); + fullScreenButton->setIcon(style()->standardIcon(QStyle::SP_ComputerIcon)); fullScreenButton->setCheckable(true); fullScreenButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Maximum); fullScreenButton->setMinimumSize(1, 1); - connect(fullScreenButton, SIGNAL(clicked(bool)), this, SIGNAL(fullScreen(bool))); - + connect(fullScreenButton, SIGNAL(toggled(bool)), this, SIGNAL(fullScreen(bool))); + playListButton = new QToolButton(this); playListButton->setIcon(style()->standardIcon(QStyle::SP_FileDialogDetailedView)); playListButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Maximum); playListButton->setMinimumSize(1, 1); connect(playListButton, SIGNAL(clicked(bool)), this, SIGNAL(openPlayList())); - + #endif - + QBoxLayout *layout = new QHBoxLayout; layout->setMargin(0); layout->addWidget(stopButton); @@ -151,9 +153,12 @@ layout->addWidget(openButton); layout->addWidget(playListButton); layout->addWidget(fullScreenButton); -#else - layout->addWidget(volumeSlider); - layout->addWidget(rateBox); +#else + if (volumeSlider) + layout->addWidget(volumeSlider); + + if (rateBox) + layout->addWidget(rateBox); #endif setLayout(layout); } @@ -189,17 +194,17 @@ { #ifdef Q_OS_SYMBIAN return 0; -#else - return volumeSlider->value(); +#else + return volumeSlider ? volumeSlider->value() : 0; #endif } void PlayerControls::setVolume(int volume) { -#ifdef Q_OS_SYMBIAN -#else - volumeSlider->setValue(volume); -#endif +#ifndef Q_OS_SYMBIAN + if (volumeSlider) + volumeSlider->setValue(volume); +#endif } bool PlayerControls::isMuted() const @@ -240,15 +245,14 @@ { #ifdef Q_OS_SYMBIAN return 0; -#else +#else return rateBox->itemData(rateBox->currentIndex()).toDouble(); -#endif +#endif } void PlayerControls::setPlaybackRate(float rate) { -#ifdef Q_OS_SYMBIAN -#else +#ifndef Q_OS_SYMBIAN for (int i=0; icount(); i++) { if (qFuzzyCompare(rate, float(rateBox->itemData(i).toDouble()))) { rateBox->setCurrentIndex(i); @@ -258,13 +262,12 @@ rateBox->addItem( QString("%1x").arg(rate), QVariant(rate)); rateBox->setCurrentIndex(rateBox->count()-1); -#endif +#endif } void PlayerControls::updateRate() { -#ifdef Q_OS_SYMBIAN -#else +#ifndef Q_OS_SYMBIAN emit changeRate(playbackRate()); -#endif +#endif } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/player/videowidget.cpp --- a/qtmobility/examples/player/videowidget.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/player/videowidget.cpp Mon May 03 13:18:40 2010 +0300 @@ -47,6 +47,12 @@ : QVideoWidget(parent) { setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); + + QPalette p = palette(); + p.setColor(QPalette::Window, Qt::black); + setPalette(p); + + setAttribute(Qt::WA_OpaquePaintEvent); } void VideoWidget::keyPressEvent(QKeyEvent *event) @@ -54,8 +60,8 @@ #ifdef Q_OS_SYMBIAN if (isFullScreen()) setFullScreen(false); -#endif - +#endif + if (event->key() == Qt::Key_Escape && isFullScreen()) { showNormal(); @@ -75,3 +81,16 @@ event->accept(); } + +void VideoWidget::mousePressEvent(QMouseEvent *event) +{ +#ifdef Q_WS_MAEMO_5 + if (isFullScreen()) + setFullScreen(false); + + event->accept(); +#else + QVideoWidget::mousePressEvent(event); +#endif +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/player/videowidget.h --- a/qtmobility/examples/player/videowidget.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/player/videowidget.h Mon May 03 13:18:40 2010 +0300 @@ -54,6 +54,7 @@ protected: void keyPressEvent(QKeyEvent *event); void mouseDoubleClickEvent(QMouseEvent *event); + void mousePressEvent(QMouseEvent *event); }; #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/publish-subscribe/main.cpp --- a/qtmobility/examples/publish-subscribe/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/publish-subscribe/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -70,7 +70,7 @@ if (createDefault || createPublisher) { publisher = new PublisherDialog; QObject::connect(publisher, SIGNAL(rejected()), &app, SLOT(quit())); -#ifndef QTM_SMALL_SCREEN +#ifndef QTM_EXAMPLES_SMALL_SCREEN publisher->show(); #endif } @@ -79,14 +79,14 @@ if (createDefault || createSubscriber) { subscriber = new SubscriberDialog; QObject::connect(subscriber, SIGNAL(rejected()), &app, SLOT(quit())); -#ifndef QTM_SMALL_SCREEN +#ifndef QTM_EXAMPLES_SMALL_SCREEN subscriber->show(); #else subscriber->showMaximized(); #endif } -#ifdef QTM_SMALL_SCREEN +#ifdef QTM_EXAMPLES_SMALL_SCREEN QObject::connect(publisher, SIGNAL(switchRequested()), subscriber, SLOT(showMaximized())); QObject::connect(publisher, SIGNAL(switchRequested()), subscriber, SLOT(repaint())); QObject::connect(publisher, SIGNAL(switchRequested()), publisher, SLOT(hide())); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/publish-subscribe/publish-subscribe.pro --- a/qtmobility/examples/publish-subscribe/publish-subscribe.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/publish-subscribe/publish-subscribe.pro Mon May 03 13:18:40 2010 +0300 @@ -13,9 +13,7 @@ TARGET.UID3 = 0x2002AC79 } -symbian|maemo* { - DEFINES += QTM_SMALL_SCREEN -} +include(../examples.pri) HEADERS = publisherdialog.h \ subscriberdialog.h @@ -24,10 +22,13 @@ publisherdialog.cpp \ subscriberdialog.cpp -FORMS = publisherdialog.ui \ - subscriberdialog.ui - -include(../examples.pri) +maemo5|maemo6 { + FORMS = publisherdialog_hor.ui \ + subscriberdialog_hor.ui +} else { + FORMS = publisherdialog.ui \ + subscriberdialog.ui +} CONFIG += mobility MOBILITY = publishsubscribe diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/publish-subscribe/publisherdialog.cpp --- a/qtmobility/examples/publish-subscribe/publisherdialog.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/publish-subscribe/publisherdialog.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,11 +40,15 @@ ****************************************************************************/ #include "publisherdialog.h" +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) +#include "ui_publisherdialog_hor.h" +#else #include "ui_publisherdialog.h" +#endif #include -#ifdef QTM_SMALL_SCREEN +#ifdef QTM_EXAMPLES_SMALL_SCREEN #include #endif @@ -55,7 +59,7 @@ { ui->setupUi(this); -#ifdef QTM_SMALL_SCREEN +#ifdef QTM_EXAMPLES_SMALL_SCREEN QPushButton *switchButton = ui->buttonBox->addButton(tr("Switch"), QDialogButtonBox::ActionRole); connect(switchButton, SIGNAL(clicked()), this, SIGNAL(switchRequested())); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/publish-subscribe/publisherdialog.h --- a/qtmobility/examples/publish-subscribe/publisherdialog.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/publish-subscribe/publisherdialog.h Mon May 03 13:18:40 2010 +0300 @@ -65,7 +65,7 @@ PublisherDialog(QWidget *parent = 0); ~PublisherDialog(); -#ifdef QTM_SMALL_SCREEN +#ifdef QTM_EXAMPLES_SMALL_SCREEN signals: void switchRequested(); #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/publish-subscribe/publisherdialog_hor.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/publish-subscribe/publisherdialog_hor.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,239 @@ + + + PublisherDialog + + + + 0 + 0 + 404 + 182 + + + + Publisher + + + + + + + 0 + 0 + + + + Base path: + + + basePath + + + + + + + + 0 + 0 + + + + /example + + + + + + + + 0 + 0 + + + + intValue: + + + intValue + + + + + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + stringValue: + + + stringValue + + + + + + + + 0 + 0 + + + + testString + + + + + + + + 0 + 0 + + + + byteArrayValue: + + + + + + + + 0 + 0 + + + + testByteArray + + + + + + + Qt::Vertical + + + + 20 + 196 + + + + + + + + + 0 + 0 + + + + Connect + + + + + + + + 0 + 0 + + + + Unset + + + + + + + + 0 + 0 + + + + Set + + + + + + + + 0 + 0 + + + + Set + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close + + + + + + + + + buttonBox + accepted() + PublisherDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + PublisherDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/publish-subscribe/subscriberdialog.cpp --- a/qtmobility/examples/publish-subscribe/subscriberdialog.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/publish-subscribe/subscriberdialog.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,7 +40,11 @@ ****************************************************************************/ #include "subscriberdialog.h" +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) +#include "ui_subscriberdialog_hor.h" +#else #include "ui_subscriberdialog.h" +#endif #include @@ -48,7 +52,7 @@ #include #include -#ifdef QTM_SMALL_SCREEN +#ifdef QTM_EXAMPLES_SMALL_SCREEN #include #include #endif @@ -63,12 +67,23 @@ { ui->setupUi(this); -#ifdef QTM_SMALL_SCREEN +#ifdef QTM_EXAMPLES_SMALL_SCREEN QPushButton *switchButton = ui->buttonBox->addButton(tr("Switch"), QDialogButtonBox::ActionRole); connect(switchButton, SIGNAL(clicked()), this, SIGNAL(switchRequested())); #endif +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + tableWidget = ui->tableWidget; + QStringList headerLabels; + headerLabels << tr("Key") << tr("Value") << tr("Type"); + tableWidget->setColumnCount(3); + tableWidget->setHorizontalHeaderLabels(headerLabels); + tableWidget->horizontalHeader()->setStretchLastSection(true); + tableWidget->verticalHeader()->setVisible(false); + tableWidget->setColumnWidth(0, 200); + tableWidget->setColumnWidth(1, 400); +#else QDesktopWidget desktopWidget; if (desktopWidget.availableGeometry().width() < 400) { // Screen is too small to fit a table widget without scrolling, use a list widget instead. @@ -86,7 +101,7 @@ ui->verticalLayout->insertWidget(2, tableWidget); } - +#endif connect(ui->connectButton, SIGNAL(clicked()), this, SLOT(changeSubscriberPath())); changeSubscriberPath(); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/publish-subscribe/subscriberdialog.h --- a/qtmobility/examples/publish-subscribe/subscriberdialog.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/publish-subscribe/subscriberdialog.h Mon May 03 13:18:40 2010 +0300 @@ -68,7 +68,7 @@ SubscriberDialog(QWidget *parent = 0); ~SubscriberDialog(); -#ifdef QTM_SMALL_SCREEN +#ifdef QTM_EXAMPLES_SMALL_SCREEN signals: void switchRequested(); #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/publish-subscribe/subscriberdialog_hor.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/publish-subscribe/subscriberdialog_hor.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,123 @@ + + + SubscriberDialog + + + + 0 + 0 + 453 + 239 + + + + Subscriber + + + + + + + + + 0 + 0 + + + + Base path: + + + + + + + + 0 + 0 + + + + /example + + + + + + + + 0 + 0 + + + + Connect + + + + + + + + 0 + 0 + + + + Qt::Horizontal + + + QDialogButtonBox::Close + + + + + + + + + + 0 + 300 + + + + + + + + + + buttonBox + accepted() + SubscriberDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + SubscriberDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qml-contacts/qmlcontact.cpp --- a/qtmobility/examples/qml-contacts/qmlcontact.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,146 +0,0 @@ -#include "qmlcontact.h" -#include -#include - - -QT_USE_NAMESPACE -QTM_USE_NAMESPACE - -QTM_BEGIN_NAMESPACE - -QmlContact::QmlContact(QContact& contact, QObject *parent) - : QObject(parent), m_contact(contact) -{ -} - -QmlContact::QmlContact() -{ - -} - -QmlContact::~QmlContact() -{ - -} - -QContact &QmlContact::contact() -{ - return m_contact; -} - -void QmlContact::setContact(QContact& contact) -{ - m_contact = contact; - emit contactChanged(this); -} - -QString QmlContact::name() -{ - QList allNames = m_contact.details(QContactName::DefinitionName); - - const QLatin1String space(" "); - - // synthesise the display label from the name. - for (int i=0; i < allNames.size(); i++) { - const QContactName& name = allNames.at(i); - - QString result; - if (!name.value(QContactName::FieldPrefix).trimmed().isEmpty()) { - result += name.value(QContactName::FieldPrefix); - } - - if (!name.value(QContactName::FieldFirst).trimmed().isEmpty()) { - if (!result.isEmpty()) - result += space; - result += name.value(QContactName::FieldFirst); - } - - if (!name.value(QContactName::FieldMiddle).trimmed().isEmpty()) { - if (!result.isEmpty()) - result += space; - result += name.value(QContactName::FieldMiddle); - } - - if (!name.value(QContactName::FieldLast).trimmed().isEmpty()) { - if (!result.isEmpty()) - result += space; - result += name.value(QContactName::FieldLast); - } - - if (!name.value(QContactName::FieldSuffix).trimmed().isEmpty()) { - if (!result.isEmpty()) - result += space; - result += name.value(QContactName::FieldSuffix); - } - - if (!result.isEmpty()) { - return result; - } - } - - - return QString("noName"); -} - -void QmlContact::setName(QString name) -{ - Q_UNUSED(name); - qWarning() << "Not implemented yet"; - emit nameChanged(this); -} - -QStringList QmlContact::availableActions() -{ - QList actions = m_contact.availableActions(); - QStringList names; - - foreach (const QContactActionDescriptor& action, actions) { - names << action.actionName(); - } - return names; -} -QStringList QmlContact::details() -{ - QStringList dets; - QList ld = m_contact.details(); - QContactDetail d; - foreach(d, ld){ - dets += d.definitionName(); - } - return dets; -} - -QStringList QmlContact::contexts() -{ - QStringList dets; - QList ld = m_contact.details(); - QContactDetail d; - foreach(d, ld){ - dets += d.contexts(); - } - return dets; -} - -//QStringList QmlContact::values(QString definitionId) -QVariantMap QmlContact::values(QString definitionId) -{ - QStringList strlist; - QContactDetail detail = m_contact.detail(definitionId); - - QVariantMap map = detail.values(); - //qWarning() << "Number of e: " << map.count(); - return map; - -// QMap::const_iterator i = map.constBegin(); -// while (i != map.constEnd()) { -// qWarning() << "Key: " << i.key() << " Value: " << i.value(); -// strlist += i.key() + ": " + i.value().toString(); -// ++i; -// } -// -// return strlist; -} - -#include "moc_qmlcontact.cpp" -QTM_END_NAMESPACE -QML_DEFINE_TYPE(QmlContact, 1, 0, QmlContact, QmlContact) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qml-contacts/qmlcontact.h --- a/qtmobility/examples/qml-contacts/qmlcontact.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -#ifndef QMLCONTACT_H -#define QMLCONTACT_H - -#include -#include -#include - - -QTM_BEGIN_NAMESPACE -class QmlContact : public QObject { -Q_OBJECT -Q_PROPERTY(QContact contact READ contact WRITE setContact NOTIFY contactChanged) -Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged) -Q_PROPERTY(QString test READ test) -Q_PROPERTY(QStringList availableActions READ availableActions) -Q_PROPERTY(QStringList details READ details) -Q_PROPERTY(QStringList contexts READ contexts) -public: - QmlContact(QContact& contact, QObject *parent = 0); - QmlContact(); - ~QmlContact(); - - QContact& contact(); - void setContact(QContact& contact); - - QString name(); - void setName(QString name); - - QStringList availableActions(); - QStringList details(); - - QStringList contexts(); - - Q_INVOKABLE QVariantMap values(QString definitionId); - - QString test() { return "test string"; } - -signals: - void contactChanged(QmlContact* qmlcontact); - void nameChanged(QmlContact* qmlcontact); - -private: - QContact m_contact; -}; - -QML_DECLARE_TYPE(QmlContact); - -QTM_END_NAMESPACE - -#endif // QMLCONTACT_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/ScrollBar.qml --- a/qtmobility/examples/qmlcontacts/ScrollBar.qml Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/qmlcontacts/ScrollBar.qml Mon May 03 13:18:40 2010 +0300 @@ -10,6 +10,8 @@ property real position property real pageSize property var orientation : "Vertical" + property alias bgColor: background.color + property alias fgColor: thumb.color // A light, semi-transparent background Rectangle { @@ -20,6 +22,7 @@ } // Size the bar to the required size, depending upon the orientation. Rectangle { + id: thumb opacity: 0.7 color: "black" radius: orientation == 'Vertical' ? (width/2 - 1) : (height/2 - 1) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/default.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/qmlcontacts/contents/default.svg Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + weather-clear + January 2006 + + + Ryan Collier (pseudo) + + + + + http://www.tango-project.org + + + http://www.pseudocode.org + + + weather + applet + notification + + + + + + Garrett LeSage + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/example.vcf --- a/qtmobility/examples/qmlcontacts/contents/example.vcf Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/qmlcontacts/contents/example.vcf Mon May 03 13:18:40 2010 +0300 @@ -110,8 +110,8 @@ End:VCARD BEGIN:VCARD VERSION:2.1 -N:Cliton;Bill; -FN:Mr. Bill Cliton +N:Chilton;Bill; +FN:Mr. Bill Chilton ORG:Example; TITLE:Manager NOTE: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/add.png Binary file qtmobility/examples/qmlcontacts/contents/pics/add.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/archive-insert.png Binary file qtmobility/examples/qmlcontacts/contents/pics/archive-insert.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/archive-remove.png Binary file qtmobility/examples/qmlcontacts/contents/pics/archive-remove.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/button-pressed.png Binary file qtmobility/examples/qmlcontacts/contents/pics/button-pressed.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/button.png Binary file qtmobility/examples/qmlcontacts/contents/pics/button.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/del.png Binary file qtmobility/examples/qmlcontacts/contents/pics/del.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/fruit-salad.jpg Binary file qtmobility/examples/qmlcontacts/contents/pics/fruit-salad.jpg has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/go-down.png Binary file qtmobility/examples/qmlcontacts/contents/pics/go-down.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/go-up.png Binary file qtmobility/examples/qmlcontacts/contents/pics/go-up.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/hamburger.jpg Binary file qtmobility/examples/qmlcontacts/contents/pics/hamburger.jpg has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/lemonade.jpg Binary file qtmobility/examples/qmlcontacts/contents/pics/lemonade.jpg has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/list-add.png Binary file qtmobility/examples/qmlcontacts/contents/pics/list-add.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/list-remove.png Binary file qtmobility/examples/qmlcontacts/contents/pics/list-remove.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/moreDown.png Binary file qtmobility/examples/qmlcontacts/contents/pics/moreDown.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/moreUp.png Binary file qtmobility/examples/qmlcontacts/contents/pics/moreUp.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/pancakes.jpg Binary file qtmobility/examples/qmlcontacts/contents/pics/pancakes.jpg has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/trash.png Binary file qtmobility/examples/qmlcontacts/contents/pics/trash.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/contents/pics/vegetable-soup.jpg Binary file qtmobility/examples/qmlcontacts/contents/pics/vegetable-soup.jpg has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/example.qml --- a/qtmobility/examples/qmlcontacts/example.qml Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/qmlcontacts/example.qml Mon May 03 13:18:40 2010 +0300 @@ -6,34 +6,30 @@ id: topItem width: 320 height: 480 -// border.color: "bg -// border.width: 5 -// radius: 10 x: 0 y: 0 + color: "#080808"; + Script { function startup() { - print("Hello"); - - print("Num contacts: " + blah.numContacts); - blah.contacts(); + manager.contacts(); } function gotContacts(c) { if(c == undefined){ - //print("Error, got null object for gotContacts"); return; } +/* print("Got contacts: " + c.name); print(" Available actions: " + c.availableActions); print(" details: " + c.details);detailsOpacity - +*/ var o = c.values("OnlineAccount"); var q = c.values("Presence"); + nameModel.append({"name": c.name, "accountPath": "Account: " + o.AccountPath, "presence": "Status: " + q.Presence, "email": c.email, "avatarSource": "qrc:/default.svg"}); - nameModel.append({"name": c.name, "accountPath": "Account: " + o.AccountPath, "presence": "Status: " + q.Presence, "email": c.email}); - +/* var j; for(j in c.details){ var o = c.values(c.details[j]); @@ -42,15 +38,18 @@ print(" "+ c.details[j] + "/" + i + ": " + o[i]); } } +*/ + } function clickedList(index) { mainList.currentIndex = index; } } + Component.onCompleted: startup(); QMLContactManagerAsync { - id: "blah" + id: "manager" manager: "memory" onDataChanged: print("Data changed!"); @@ -63,53 +62,108 @@ Rectangle { id: wrapper border.width: 2 - radius: 5 - height: 40 - width: topItem.width-2; + height: 30; + + property color topColor: "#333333"; + property color bottomColor: "#111111"; property real detailsOpacity: 0 - Row { - Item { - property real contactId: 0 + + gradient: Gradient { + GradientStop { position: 0.0; color: topColor } + GradientStop { position: 1.0; color: bottomColor } + } + + Item { + id: mainAvatar; + anchors.left: parent.left; + anchors.top: parent.top; + width: avatarFrame.width; + height: avatarFrame.height; + anchors.leftMargin:4; + + Rectangle { + id: avatarFrame; + border.width: 2; + radius: 4; + height: wrapper.height-6 + width: height; + x: 3; y: 3; } + + Image { + id: avatar + anchors.fill: avatarFrame; + anchors.leftMargin: 3; + anchors.rightMargin: 3; + anchors.topMargin: 3; + anchors.bottomMargin: 3; + + source: avatarSource + fillMode: Image.PreserveAspectFit + } + } + + Item { + id: mainLabel; + height: nameTxt.height + 16; + property real contactId: 0; + anchors.left: mainAvatar.right; + anchors.right: parent.right; + anchors.leftMargin:8; + anchors.rightMargin: 4; + anchors.topMargin: 4; + anchors.bottomMargin: 4; + Text { + x:8; y:8; + anchors.left: parent.left; + anchors.right: parent.right; id: nameTxt text: name + color: "white"; } - Item { - id: details - opacity: wrapper.detailsOpacity + } + + Item { + id: details + property color textColor: "#ffffdd"; + anchors.top: mainLabel.bottom; + anchors.bottom: parent.bottom; + anchors.left: mainAvatar.right; + anchors.right: parent.right; + anchors.leftMargin:8; + anchors.rightMargin: 4; + anchors.bottomMargin: 4; + opacity: wrapper.detailsOpacity + + Column { Text { - y: nameTxt.height id: emailId text: email - } - Text { - y: emailId.y + emailId.height - id: accountPathId - text: accountPath - } - Text { - y: accountPathId.y - x: accountPathId.x + accountPathId.width + 5 - id: presenceId - text: presence + color: details.textColor; } - } + Row { + spacing: 5 + Text { + id: accountPathId + text: accountPath + color: details.textColor; + } + Text { + id: presenceId + text: presence + color: details.textColor; + } + } + } } - /* - Image { - id: avatar - height: wrapper.height-6 - source: avatarsource - x: wrapper.width - avatar.width - 3 - y: 3 - opacity: details.opacity - fillMode: Image.PreserveAspectFit - }*/ + states: State { name: "Details" - PropertyChanges { target: wrapper; height: presenceId.y + presenceId.height } PropertyChanges { target: wrapper; detailsOpacity: 1; } + PropertyChanges { target: wrapper; topColor: "#666666"; } + PropertyChanges { target: wrapper; bottomColor: "#222222"; } + PropertyChanges { target: wrapper; height: mainLabel.height + emailId.height + accountPathId.height + presenceId.height; } } transitions: Transition { @@ -117,13 +171,11 @@ to: "Details" reversible: true ParallelAnimation { - NumberAnimation { - duration: 300; property: "detailsOpacity" } - NumberAnimation { - duration: 300; property: "height" } + ColorAnimation { duration: 150; properties: "topColor, bottomColor";} + NumberAnimation { duration: 100; properties: "detailsOpacity,height" } } } - MouseRegion { + MouseArea { id: mr width: topItem.width; height: wrapper.height; @@ -149,13 +201,12 @@ width: parent.width; height: parent.height delegate: listdelegate highlight: listhighlight - //highlightFollowsCurrentItem: true + highlightFollowsCurrentItem: true focus: true anchors.fill: parent highlightMoveSpeed: 5000 } - ListModel { id: nameModel } @@ -163,13 +214,14 @@ // Attach scrollbar to the right edge of the view. ScrollBar { id: verticalScrollBar - opacity: 0.1 + opacity: 0 orientation: "Vertical" position: mainList.visibleArea.yPosition pageSize: mainList.visibleArea.heightRatio - width: 40 + width: 20 height: mainList.height anchors.right: mainList.right + fgColor: "white" // Only show the scrollbar when the view is moving. states: [ State { @@ -179,9 +231,6 @@ ] transitions: [ Transition { NumberAnimation { property: "opacity"; duration: 400 } } ] } - - - } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/main.cpp --- a/qtmobility/examples/qmlcontacts/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/qmlcontacts/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,13 +41,13 @@ #include #include -#include -#include +#include +#include #include -#include -#include +#include #include #include "qmlcontactsa.h" +#include "qmlcontact.h" QT_USE_NAMESPACE QTM_USE_NAMESPACE @@ -56,40 +56,23 @@ QApplication app(argc, argv); - QmlEngine engine; - QmlComponent component(&engine, ":example.qml"); -// QMLContactManager *qcm = qobject_cast(component.create()); -// if (qcm) { -// qWarning() << "Available back ends: " << qcm->availableManagers(); -// qWarning() << "Current Backend: " << qcm->manager(); -// //qWarning() << "They wear a" << person->shoeSize() << "sized shoe"; -// } else { -// -// qWarning() << "An error occured"; -// qWarning() << component.errorsString(); -// exit(-1); -// } -// QmlGraphicsItem *qcm = qobject_cast(component.create()); -// if(!qcm){ -// qWarning() << "An error occured"; -// qWarning() << component.errorsString(); -// exit(-1); -// -// } -// qcm->show(); + QDeclarativeEngine engine; + QDeclarativeComponent component(&engine, ":example.qml"); - QWidget *b = new QWidget; + qmlRegisterType("QmlContact", 1, 0, "QmlContact"); + qmlRegisterType("QMLContactManagerAsync", 1, 0, "QMLContactManagerAsync"); + + QWidget *b = new QWidget(); QVBoxLayout *vbox = new QVBoxLayout; vbox->setMargin(0); - b->setLayout(vbox); - QmlView *view = new QmlView(b); + QDeclarativeView *view = new QDeclarativeView(b); view->setFocusPolicy(Qt::StrongFocus); - view->setContentResizable(true); - view->setUrl(QUrl("qrc:/example.qml")); - view->execute(); + view->setResizeMode(QDeclarativeView::SizeViewToRootObject); + view->setSource(QUrl("qrc:/example.qml")); vbox->addWidget(view); - b->resize(800,480); + b->setLayout(vbox); +// b->resize(800,480); b->show(); return app.exec(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/qmlcontact.cpp --- a/qtmobility/examples/qmlcontacts/qmlcontact.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/qmlcontacts/qmlcontact.cpp Mon May 03 13:18:40 2010 +0300 @@ -47,7 +47,7 @@ QT_USE_NAMESPACE QTM_USE_NAMESPACE -QmlContact::QmlContact(QContact& contact, QObject *parent) +QmlContact::QmlContact(const QContact& contact, QObject *parent) : QObject(parent), m_contact(contact) { } @@ -75,50 +75,7 @@ QString QmlContact::name() { - QList allNames = m_contact.details(QContactName::DefinitionName); - - const QLatin1String space(" "); - - // synthesise the display label from the name. - for (int i=0; i < allNames.size(); i++) { - const QContactName& name = allNames.at(i); - - QString result; - if (!name.value(QContactName::FieldPrefix).trimmed().isEmpty()) { - result += name.value(QContactName::FieldPrefix); - } - - if (!name.value(QContactName::FieldFirst).trimmed().isEmpty()) { - if (!result.isEmpty()) - result += space; - result += name.value(QContactName::FieldFirst); - } - - if (!name.value(QContactName::FieldMiddle).trimmed().isEmpty()) { - if (!result.isEmpty()) - result += space; - result += name.value(QContactName::FieldMiddle); - } - - if (!name.value(QContactName::FieldLast).trimmed().isEmpty()) { - if (!result.isEmpty()) - result += space; - result += name.value(QContactName::FieldLast); - } - - if (!name.value(QContactName::FieldSuffix).trimmed().isEmpty()) { - if (!result.isEmpty()) - result += space; - result += name.value(QContactName::FieldSuffix); - } - - if (!result.isEmpty()) { - return result; - } - } - - - return QString("noName"); + return m_contact.displayLabel(); } void QmlContact::setName(QString name) @@ -190,5 +147,3 @@ } #include "moc_qmlcontact.cpp" - -QML_DEFINE_TYPE(QmlContact, 1, 0, QmlContact, QmlContact) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/qmlcontact.h --- a/qtmobility/examples/qmlcontacts/qmlcontact.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/qmlcontacts/qmlcontact.h Mon May 03 13:18:40 2010 +0300 @@ -45,7 +45,7 @@ #include #include #include -#include +#include QTM_USE_NAMESPACE @@ -59,7 +59,7 @@ Q_PROPERTY(QStringList details READ details) Q_PROPERTY(QStringList contexts READ contexts) public: - QmlContact(QContact& contact, QObject *parent = 0); + explicit QmlContact(const QContact& contact, QObject *parent = 0); QmlContact(); ~QmlContact(); @@ -90,6 +90,6 @@ QContact m_contact; }; -QML_DECLARE_TYPE(QmlContact); +QML_DECLARE_TYPE(QmlContact) #endif // QMLCONTACT_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/qmlcontacts.cpp --- a/qtmobility/examples/qmlcontacts/qmlcontacts.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/qmlcontacts/qmlcontacts.cpp Mon May 03 13:18:40 2010 +0300 @@ -54,10 +54,9 @@ // ![0] QMLContactManagerAsync::QMLContactManagerAsync(QObject *parent) -: QObject(parent) + : QObject(parent) { qc = new QContactManager(); - } QMLContactManagerAsync::~QMLContactManagerAsync() @@ -84,21 +83,17 @@ reader.setDevice(&file); if (reader.startReading() && reader.waitForFinished()) { QVersitContactImporter importer; - QList contacts = importer.importContacts(reader.results()); - QMap errors; - manager->saveContacts(&contacts, &errors); + importer.importDocuments(reader.results()); + QList contacts = importer.contacts(); + manager->saveContacts(&contacts, 0); } } - - } void QMLContactManagerAsync::setManager(QString manager) { delete qc; qc = new QContactManager(manager); - if(!qc) - qc = new QContactManager(); connect(qc, SIGNAL(contactsAdded(QList)), this, SIGNAL(contactsAdded(QList))); connect(qc, SIGNAL(contactsChanged(QList)), this, SIGNAL(contactsChanged(QList))); connect(qc, SIGNAL(contactsRemoved(QList)), this, SIGNAL(contactsRemoved(QList))); @@ -116,11 +111,10 @@ QString QMLContactManagerAsync::contactListToQString(const QList& contactIds) const { QString list; - int i; - for (i = 0; i < contactIds.count(); i++) { - list += QString::number(contactIds.at(i)) + " "; - } + for (int i = 0; i < contactIds.count(); i++) { + list += QString::number(contactIds.at(i)) + ' '; + } return list; } @@ -128,9 +122,8 @@ QStringList QMLContactManagerAsync::contactListToQString(const QList& contact) const { QStringList list; - int i; - for (i = 0; i < contact.count(); i++) { + for (int i = 0; i < contact.count(); i++) { list += qc->synthesizedDisplayLabel(contact.at(i)); } @@ -139,11 +132,7 @@ int QMLContactManagerAsync::numContacts() { - QList qlid; - - qlid = qc->contactIds(); - - return qlid.count(); + return qc->contactIds().count(); } void QMLContactManagerAsync::contacts() @@ -170,8 +159,7 @@ } if(request->contacts().count() > 0) { - QContact c; - foreach(c, request->contacts()) { + foreach(const QContact& c, request->contacts()) { QmlContact qmlc(c); emit contactsLoaded(&qmlc); } @@ -182,7 +170,6 @@ request->deleteLater(); emit contactsLoadedDone(); } - } QString QMLContactManagerAsync::idToName(QString name) @@ -194,5 +181,3 @@ // ![0] #include "moc_qmlcontactsa.cpp" - -QML_DEFINE_TYPE(QMLContactManagerAsync, 1, 0, QMLContactManagerAsync, QMLContactManagerAsync); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/qmlcontacts.pro --- a/qtmobility/examples/qmlcontacts/qmlcontacts.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/qmlcontacts/qmlcontacts.pro Mon May 03 13:18:40 2010 +0300 @@ -25,26 +25,9 @@ qmlcontact.h RESOURCES += qmlcontacts.qrc OTHER_FILES += example.qml \ - Recipes.qml \ - contents/pics/vegetable-soup.jpg \ - contents/pics/trash.png \ - contents/pics/pancakes.jpg \ - contents/pics/moreUp.png \ - contents/pics/moreDown.png \ - contents/pics/list-remove.png \ - contents/pics/list-add.png \ - contents/pics/lemonade.jpg \ - contents/pics/hamburger.jpg \ - contents/pics/go-up.png \ - contents/pics/go-down.png \ - contents/pics/fruit-salad.jpg \ - contents/pics/del.png \ - contents/pics/button.png \ - contents/pics/button-pressed.png \ - contents/pics/archive-remove.png \ - contents/pics/archive-insert.png \ - contents/pics/add.png \ - contents/example.vcf + contents/example.vcf \ + contents/MediaButton.qml \ + ScrollBar.qml symbian: { TARGET.CAPABILITY = ReadUserData \ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/qmlcontacts.qrc --- a/qtmobility/examples/qmlcontacts/qmlcontacts.qrc Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/qmlcontacts/qmlcontacts.qrc Mon May 03 13:18:40 2010 +0300 @@ -4,5 +4,6 @@ contents/MediaButton.qml ScrollBar.qml contents/example.vcf + contents/default.svg diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/qmlcontacts/qmlcontactsa.h --- a/qtmobility/examples/qmlcontacts/qmlcontactsa.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/qmlcontacts/qmlcontactsa.h Mon May 03 13:18:40 2010 +0300 @@ -56,7 +56,7 @@ QTM_USE_NAMESPACE // ![0] -#include +#include class QMLContactManagerAsync : public QObject { Q_OBJECT @@ -105,7 +105,7 @@ QString contactListToQString(const QList& contactIds) const; QStringList contactListToQString(const QList& contact) const; }; -QML_DECLARE_TYPE(QMLContactManagerAsync); +QML_DECLARE_TYPE(QMLContactManagerAsync) // ![0] #endif // QMLCONTACTS_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/querymessages/main.cpp --- a/qtmobility/examples/querymessages/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/querymessages/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -112,11 +112,11 @@ } else if ((arg == "to") || (arg == "cc") || (arg == "bcc")) { QStringList addresses; foreach (const QMessageAddress &addr, (arg == "to" ? message.to() : (arg == "cc" ? message.cc() : message.bcc()))) { - addresses.append(addr.recipient()); + addresses.append(addr.addressee()); } result.append(addresses.join(",")); } else if (arg == "from") { - result.append(message.from().recipient()); + result.append(message.from().addressee()); } else if (arg == "type") { result.append(message.contentType() + '/' + message.contentSubType()); } else if (arg == "body") { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/quickstart/quickstart.pro --- a/qtmobility/examples/quickstart/quickstart.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/quickstart/quickstart.pro Mon May 03 13:18:40 2010 +0300 @@ -11,3 +11,9 @@ # Input SOURCES += main.cpp + +#! [1] +symbian { + TARGET.CAPABILITIES = LocalServices ReadUserData WriteUserData NetworkServices UserEnvironment Location TrustedUI ReadDeviceData +} +#! [1] diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/radio/radio.cpp --- a/qtmobility/examples/radio/radio.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/radio/radio.cpp Mon May 03 13:18:40 2010 +0300 @@ -51,10 +51,6 @@ if(radio->isBandSupported(QRadioTuner::FM)) radio->setBand(QRadioTuner::FM); - else { - qWarning()<<"Currently only works for FM"; - exit(0); - } QWidget *window = new QWidget; QVBoxLayout* layout = new QVBoxLayout; @@ -71,7 +67,10 @@ topBar->addWidget(freq); signal = new QLabel; - signal->setText(tr("No Signal")); + if (radio->isAvailable()) + signal->setText(tr("No Signal")); + else + signal->setText(tr("No radio found")); topBar->addWidget(signal); volumeSlider = new QSlider(Qt::Vertical,this); @@ -79,7 +78,6 @@ #if defined Q_OS_SYMBIAN volumeSlider->setRange(0,10); #endif - qWarning()<volume(); volumeSlider->setValue(radio->volume()); connect(volumeSlider,SIGNAL(valueChanged(int)),this,SLOT(updateVolume(int))); topBar->addWidget(volumeSlider); @@ -102,7 +100,7 @@ #else buttonBar->addWidget(left); #endif - + right = new QPushButton; connect(right,SIGNAL(clicked()),SLOT(freqUp())); right->setText(tr("Freq Up")); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/rom/qtmobilityexamples.iby --- a/qtmobility/examples/rom/qtmobilityexamples.iby Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,125 +0,0 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU Lesser General Public License as published by -* the Free Software Foundation, version 2.1 of the License. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU Lesser General Public License for more details. -* -* You should have received a copy of the GNU Lesser General Public License -* along with this program. If not, -* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". -* -* Description: -* -*/ - -#ifndef __QT_MOBILITYEXAMPLES_IBY__ -#define __QT_MOBILITYEXAMPLES_IBY__ - -#include - -#define UPGRADABLE_APP_REG_RSC(NAME) data=DATAZ_\PRIVATE\10003A3F\IMPORT\APPS\ ## NAME ## _reg.rsc Private\10003a3f\import\apps\ ## NAME ## _reg.rsc - -S60_APP_EXE(audiorecorder) -S60_APP_RESOURCE(audiorecorder) -UPGRADABLE_APP_REG_RSC(audiorecorder) - -S60_APP_EXE(battery-publisher) -S60_APP_RESOURCE(battery-publisher) -UPGRADABLE_APP_REG_RSC(battery-publisher) - -S60_APP_EXE(battery-subscriber) -S60_APP_RESOURCE(battery-subscriber) -UPGRADABLE_APP_REG_RSC(battery-subscriber) - -S60_APP_EXE(bearercloud) -S60_APP_RESOURCE(bearercloud) -UPGRADABLE_APP_REG_RSC(bearercloud) - -S60_APP_EXE(bearermonitor) -S60_APP_RESOURCE(bearermonitor) -UPGRADABLE_APP_REG_RSC(bearermonitor) - -file=ABI_DIR\BUILD_DIR\serviceframework_bluetoothtransferplugin.dll SHARED_LIB_DIR\serviceframework_bluetoothtransferplugin.dll PAGED -data=\epoc32\data\z\resource\qt\plugins\serviceframework_bluetoothtransferplugin.qtplugin resource\qt\plugins\serviceframework_bluetoothtransferplugin.qtplugin - -S60_APP_EXE(cameracapture) -S60_APP_RESOURCE(cameracapture) -UPGRADABLE_APP_REG_RSC(cameracapture) - -S60_APP_EXE(sfw-kinetic-example) -S60_APP_RESOURCE(sfw-kinetic-example) -UPGRADABLE_APP_REG_RSC(sfw-kinetic-example) -file=ABI_DIR\BUILD_DIR\serviceframework_landlinedialerservice.dll SHARED_LIB_DIR\serviceframework_landlinedialerservice.dll PAGED -file=ABI_DIR\BUILD_DIR\serviceframework_voipdialerservice.dll SHARED_LIB_DIR\serviceframework_voipdialerservice.dll PAGED - -file=ABI_DIR\BUILD_DIR\serviceframework_filemanagerplugin.dll SHARED_LIB_DIR\serviceframework_filemanagerplugin.dll PAGED -data=\epoc32\data\z\resource\qt\plugins\serviceframework_filemanagerplugin.qtplugin resource\qt\plugins\serviceframework_filemanagerplugin.qtplugin - -S60_APP_EXE(keepintouch) -S60_APP_RESOURCE(keepintouch) -UPGRADABLE_APP_REG_RSC(keepintouch) - -file=ABI_DIR\BUILD_DIR\serviceframework_notesmanagerplugin.dll SHARED_LIB_DIR\serviceframework_notesmanagerplugin.dll PAGED -data=\epoc32\data\z\resource\qt\plugins\serviceframework_notesmanagerplugin.qtplugin resource\qt\plugins\serviceframework_notesmanagerplugin.qtplugin - -S60_APP_EXE(player) -S60_APP_RESOURCE(player) -UPGRADABLE_APP_REG_RSC(player) - -S60_APP_EXE(publish-subscribe) -S60_APP_RESOURCE(publish-subscribe) -UPGRADABLE_APP_REG_RSC(publish-subscribe) -data=\epoc32\data\z\resource\qt\crml\example.qcrml resource\qt\crml\example.qcrml - -S60_APP_EXE(querymessages) -S60_APP_RESOURCE(querymessages) -UPGRADABLE_APP_REG_RSC(querymessages) - -S60_APP_EXE(quickstart) -S60_APP_RESOURCE(quickstart) -UPGRADABLE_APP_REG_RSC(quickstart) - -S60_APP_EXE(radio) -S60_APP_RESOURCE(radio) -UPGRADABLE_APP_REG_RSC(radio) - -S60_APP_EXE(recorder) -S60_APP_RESOURCE(recorder) -UPGRADABLE_APP_REG_RSC(recorder) - -S60_APP_EXE(satellitedialog) -S60_APP_RESOURCE(satellitedialog) -UPGRADABLE_APP_REG_RSC(satellitedialog) - -S60_APP_EXE(serviceactions) -S60_APP_RESOURCE(serviceactions) -UPGRADABLE_APP_REG_RSC(serviceactions) - -S60_APP_EXE(serviceinstaller_sfw_symbian) -S60_APP_RESOURCE(serviceinstaller_sfw_symbian) -UPGRADABLE_APP_REG_RSC(serviceinstaller_sfw_symbian) - -S60_APP_EXE(slideshow) -S60_APP_RESOURCE(slideshow) -UPGRADABLE_APP_REG_RSC(slideshow) - -S60_APP_EXE(streamplayer) -S60_APP_RESOURCE(streamplayer) -UPGRADABLE_APP_REG_RSC(streamplayer) - -S60_APP_EXE(sysinfo) -S60_APP_RESOURCE(sysinfo) -UPGRADABLE_APP_REG_RSC(sysinfo) - -S60_APP_EXE(writemessage) -S60_APP_RESOURCE(writemessage) -UPGRADABLE_APP_REG_RSC(writemessage) - -#endif //__QT_MOBILITYEXAMPLES_IBY__ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/s60installs/qtmobilityexamples.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/s60installs/qtmobilityexamples.iby Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,128 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ + +#ifndef __QT_MOBILITYEXAMPLES_IBY__ +#define __QT_MOBILITYEXAMPLES_IBY__ + +#include + +#define UPGRADABLE_APP_REG_RSC(NAME) data=DATAZ_\PRIVATE\10003A3F\IMPORT\APPS\ ## NAME ## _reg.rsc Private\10003a3f\import\apps\ ## NAME ## _reg.rsc + +S60_APP_EXE(audiorecorder) +S60_APP_RESOURCE(audiorecorder) +UPGRADABLE_APP_REG_RSC(audiorecorder) + +S60_APP_EXE(battery-publisher) +S60_APP_RESOURCE(battery-publisher) +UPGRADABLE_APP_REG_RSC(battery-publisher) + +S60_APP_EXE(battery-subscriber) +S60_APP_RESOURCE(battery-subscriber) +UPGRADABLE_APP_REG_RSC(battery-subscriber) + +S60_APP_EXE(bearercloud) +S60_APP_RESOURCE(bearercloud) +UPGRADABLE_APP_REG_RSC(bearercloud) + +S60_APP_EXE(bearermonitor) +S60_APP_RESOURCE(bearermonitor) +UPGRADABLE_APP_REG_RSC(bearermonitor) + +file=ABI_DIR\BUILD_DIR\serviceframework_bluetoothtransferplugin.dll SHARED_LIB_DIR\serviceframework_bluetoothtransferplugin.dll PAGED +data=\epoc32\data\z\resource\qt\plugins\serviceframework_bluetoothtransferplugin.qtplugin resource\qt\plugins\serviceframework_bluetoothtransferplugin.qtplugin + +S60_APP_EXE(sfw-kinetic-example) +S60_APP_RESOURCE(sfw-kinetic-example) +UPGRADABLE_APP_REG_RSC(sfw-kinetic-example) +file=ABI_DIR\BUILD_DIR\serviceframework_landlinedialerservice.dll SHARED_LIB_DIR\serviceframework_landlinedialerservice.dll PAGED +file=ABI_DIR\BUILD_DIR\serviceframework_voipdialerservice.dll SHARED_LIB_DIR\serviceframework_voipdialerservice.dll PAGED + +file=ABI_DIR\BUILD_DIR\serviceframework_filemanagerplugin.dll SHARED_LIB_DIR\serviceframework_filemanagerplugin.dll PAGED +data=\epoc32\data\z\resource\qt\plugins\serviceframework_filemanagerplugin.qtplugin resource\qt\plugins\serviceframework_filemanagerplugin.qtplugin + +file=ABI_DIR\BUILD_DIR\serviceframework_notesmanagerplugin.dll SHARED_LIB_DIR\serviceframework_notesmanagerplugin.dll PAGED +data=\epoc32\data\z\resource\qt\plugins\serviceframework_notesmanagerplugin.qtplugin resource\qt\plugins\serviceframework_notesmanagerplugin.qtplugin + +S60_APP_EXE(player) +S60_APP_RESOURCE(player) +UPGRADABLE_APP_REG_RSC(player) + +S60_APP_EXE(publish-subscribe) +S60_APP_RESOURCE(publish-subscribe) +UPGRADABLE_APP_REG_RSC(publish-subscribe) +data=\epoc32\data\z\resource\qt\crml\example.qcrml resource\qt\crml\example.qcrml + +S60_APP_EXE(querymessages) +S60_APP_RESOURCE(querymessages) +UPGRADABLE_APP_REG_RSC(querymessages) + +S60_APP_EXE(quickstart) +S60_APP_RESOURCE(quickstart) +UPGRADABLE_APP_REG_RSC(quickstart) + +S60_APP_EXE(radio) +S60_APP_RESOURCE(radio) +UPGRADABLE_APP_REG_RSC(radio) + +S60_APP_EXE(satellitedialog) +S60_APP_RESOURCE(satellitedialog) +UPGRADABLE_APP_REG_RSC(satellitedialog) + +S60_APP_EXE(accel) +S60_APP_RESOURCE(accel) +UPGRADABLE_APP_REG_RSC(accel) + +S60_APP_EXE(grueapp) +S60_APP_RESOURCE(grueapp) +UPGRADABLE_APP_REG_RSC(grueapp) + +file=ABI_DIR\BUILD_DIR\grueplugin.dll SHARED_LIB_DIR\grueplugin.dll PAGED +data=\epoc32\data\z\resource\qt\plugins\sensors\grueplugin.qtplugin resource\qt\plugins\sensors\grueplugin.qtplugin + +S60_APP_EXE(orientation) +S60_APP_RESOURCE(orientation) +UPGRADABLE_APP_REG_RSC(orientation) + +S60_APP_EXE(reading_perf) +S60_APP_RESOURCE(reading_perf) +UPGRADABLE_APP_REG_RSC(reading_perf) + +S60_APP_EXE(sensor_explorer) +S60_APP_RESOURCE(sensor_explorer) +UPGRADABLE_APP_REG_RSC(sensor_explorer) + +S60_APP_EXE(serviceactions) +S60_APP_RESOURCE(serviceactions) +UPGRADABLE_APP_REG_RSC(serviceactions) + +S60_APP_EXE(slideshow) +S60_APP_RESOURCE(slideshow) +UPGRADABLE_APP_REG_RSC(slideshow) + +S60_APP_EXE(sysinfo) +S60_APP_RESOURCE(sysinfo) +UPGRADABLE_APP_REG_RSC(sysinfo) + +S60_APP_EXE(writemessage) +S60_APP_RESOURCE(writemessage) +UPGRADABLE_APP_REG_RSC(writemessage) + +#endif //__QT_MOBILITYEXAMPLES_IBY__ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/s60installs/s60installs.pro --- a/qtmobility/examples/s60installs/s60installs.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/s60installs/s60installs.pro Mon May 03 13:18:40 2010 +0300 @@ -1,12 +1,8 @@ !symbian:error(This example is for Symbian packaging purposes only.) -TEMPLATE = app -TARGET = S60Examples - -include(../../staticconfig.pri) - TEMPLATE = subdirs +include(../../staticconfig.pri) load(data_caging_paths) #ServiceFramework examples @@ -128,3 +124,5 @@ # ensure that dependency to QtMobility sis package is added CONFIG+=mobility + +BLD_INF_RULES.prj_exports += "./qtmobilityexamples.iby $$CUSTOMER_VARIANT_APP_LAYER_IBY_EXPORT_PATH(qtmobilityexamples.iby)" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/samplephonebook/contacteditor.cpp --- a/qtmobility/examples/samplephonebook/contacteditor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/samplephonebook/contacteditor.cpp Mon May 03 13:18:40 2010 +0300 @@ -49,60 +49,72 @@ m_manager = 0; m_contactId = QContactLocalId(0); -#ifdef Q_OS_SYMBIAN - // In symbian "save" and "cancel" buttons are softkeys. - m_saveBtn = new QAction("Save", this); - m_saveBtn->setSoftKeyRole(QAction::PositiveSoftKey); - addAction(m_saveBtn); - connect(m_saveBtn, SIGNAL(triggered(bool)), this, SLOT(saveClicked())); - m_cancelBtn = new QAction("Cancel", this); - m_cancelBtn->setSoftKeyRole(QAction::NegativeSoftKey); - addAction(m_cancelBtn); - connect(m_cancelBtn, SIGNAL(triggered(bool)), this, SLOT(cancelClicked())); -#else - m_saveBtn = new QPushButton("Save", this); - connect(m_saveBtn, SIGNAL(clicked()), this, SLOT(saveClicked())); - m_cancelBtn = new QPushButton("Cancel", this); - connect(m_cancelBtn, SIGNAL(clicked()), this, SLOT(cancelClicked())); -#endif - m_nameEdit = new QLineEdit(this); m_phoneEdit = new QLineEdit(this); m_emailEdit = new QLineEdit(this); m_addrEdit = new QLineEdit(this); - m_avatarBtn = new QPushButton("Add image", this); + m_avatarBtn = new QPushButton(tr("Add image"), this); m_avatarBtn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); connect(m_avatarBtn, SIGNAL(clicked()), this, SLOT(avatarClicked())); + QFormLayout *detailsLayout = new QFormLayout; - detailsLayout->addRow(new QLabel("Name", this)); - detailsLayout->addRow(m_nameEdit); - detailsLayout->addRow(new QLabel("Phone", this)); - detailsLayout->addRow(m_phoneEdit); - detailsLayout->addRow(new QLabel("Email", this)); - detailsLayout->addRow(m_emailEdit); - detailsLayout->addRow(new QLabel("Address", this)); - detailsLayout->addRow(m_addrEdit); - detailsLayout->addRow(new QLabel("Avatar", this)); - detailsLayout->addRow(m_avatarBtn); + QLabel *nameLabel = new QLabel(tr("Name"), this); + QLabel *phoneLabel = new QLabel(tr("Phone"), this); + QLabel *emailLabel = new QLabel(tr("Email"), this); + QLabel *addressLabel = new QLabel(tr("Address"), this); + QLabel *avatarLabel = new QLabel(tr("Avatar"), this); + if (QApplication::desktop()->availableGeometry().width() < 360) { + // Narrow screen: put label on separate line to textbox + detailsLayout->addRow(nameLabel); + detailsLayout->addRow(m_nameEdit); + detailsLayout->addRow(phoneLabel); + detailsLayout->addRow(m_phoneEdit); + detailsLayout->addRow(emailLabel); + detailsLayout->addRow(m_emailEdit); + detailsLayout->addRow(addressLabel); + detailsLayout->addRow(m_addrEdit); + detailsLayout->addRow(avatarLabel); + detailsLayout->addRow(m_avatarBtn); + } else { + // Wide screen: put label on same line as textbox + detailsLayout->addRow(nameLabel, m_nameEdit); + detailsLayout->addRow(phoneLabel, m_phoneEdit); + detailsLayout->addRow(emailLabel, m_emailEdit); + detailsLayout->addRow(addressLabel, m_addrEdit); + detailsLayout->addRow(avatarLabel, m_avatarBtn); + } detailsLayout->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow); detailsLayout->setSizeConstraint(QLayout::SetMinAndMaxSize); - + QScrollArea *detailsScrollArea = new QScrollArea(this); detailsScrollArea->setWidgetResizable(true); QWidget *detailsContainer = new QWidget(detailsScrollArea); detailsContainer->setLayout(detailsLayout); detailsScrollArea->setWidget(detailsContainer); -#ifndef Q_OS_SYMBIAN + QVBoxLayout *editLayout = new QVBoxLayout; + editLayout->addWidget(detailsScrollArea); + +#ifdef Q_OS_SYMBIAN + // In symbian "save" and "cancel" buttons are softkeys. + m_saveBtn = new QAction(tr("Save"), this); + m_saveBtn->setSoftKeyRole(QAction::PositiveSoftKey); + addAction(m_saveBtn); + connect(m_saveBtn, SIGNAL(triggered(bool)), this, SLOT(saveClicked())); + m_cancelBtn = new QAction(tr("Cancel"), this); + m_cancelBtn->setSoftKeyRole(QAction::NegativeSoftKey); + addAction(m_cancelBtn); + connect(m_cancelBtn, SIGNAL(triggered(bool)), this, SLOT(cancelClicked())); +#else + m_saveBtn = new QPushButton(tr("&Save"), this); + m_saveBtn->setDefault(true); + connect(m_saveBtn, SIGNAL(clicked()), this, SLOT(saveClicked())); + m_cancelBtn = new QPushButton(tr("&Cancel"), this); + connect(m_cancelBtn, SIGNAL(clicked()), this, SLOT(cancelClicked())); QHBoxLayout *btnLayout = new QHBoxLayout; btnLayout->addWidget(m_saveBtn); btnLayout->addWidget(m_cancelBtn); -#endif - - QVBoxLayout *editLayout = new QVBoxLayout; - editLayout->addWidget(detailsScrollArea); -#ifndef Q_OS_SYMBIAN editLayout->addLayout(btnLayout); #endif @@ -119,18 +131,16 @@ m_contactId = currentId; m_newAvatarPath = QString(); - if (manager == 0 || currentId == 0) { - // clear the UI and return. - m_nameEdit->setText(""); - m_phoneEdit->setText(""); - m_emailEdit->setText(""); - m_addrEdit->setText(""); - m_avatarBtn->setText("Add image"); - m_avatarBtn->setIcon(QIcon()); + // Clear UI + m_nameEdit->clear(); + m_phoneEdit->clear(); + m_emailEdit->clear(); + m_addrEdit->clear(); + m_avatarBtn->setText("Add image"); + m_avatarBtn->setIcon(QIcon()); - if (manager == 0) - m_saveBtn->setEnabled(false); - + if (manager == 0) { + m_saveBtn->setEnabled(false); return; } @@ -138,30 +148,65 @@ m_saveBtn->setEnabled(true); // otherwise, build from the contact details. - QContact curr = manager->contact(m_contactId); - QContactName nm = curr.detail(QContactName::DefinitionName); + QContact curr; + if (m_contactId != QContactLocalId(0)) + curr = manager->contact(m_contactId); + + // Disable fields & buttons according to what the backend supports + QMap defs = m_manager->detailDefinitions(QContactType::TypeContact); + + // name + //QContactName nm = curr.detail(QContactName::DefinitionName); + if (m_contactId != QContactLocalId(0)) + m_nameEdit->setText(manager->synthesizedDisplayLabel(curr)); + + // phonenumber QContactPhoneNumber phn = curr.detail(QContactPhoneNumber::DefinitionName); - QContactEmailAddress em = curr.detail(QContactEmailAddress::DefinitionName); - QContactAddress adr = curr.detail(QContactAddress::DefinitionName); - QContactAvatar av = curr.detail(QContactAvatar::DefinitionName); - - m_nameEdit->setText(manager->synthesizedDisplayLabel(curr)); m_phoneEdit->setText(phn.value(QContactPhoneNumber::FieldNumber)); - m_emailEdit->setText(em.value(QContactEmailAddress::FieldEmailAddress)); - m_addrEdit->setText(adr.value(QContactAddress::FieldStreet)); // ugly hack. - - m_avatarBtn->setText(QString()); - m_avatarBtn->setIcon(QIcon()); - - if (av.pixmap().isNull()) { - if (av.avatar().isEmpty()) { - m_avatarBtn->setText("Add image"); + + // email + if (defs.contains(QContactEmailAddress::DefinitionName)) { + QContactEmailAddress em = curr.detail(QContactEmailAddress::DefinitionName); + m_emailEdit->setText(em.value(QContactEmailAddress::FieldEmailAddress)); + m_emailEdit->setReadOnly(false); + } else { + m_emailEdit->setText(""); + m_emailEdit->setReadOnly(true); + } + + // address + if (defs.contains(QContactAddress::DefinitionName)) { + QContactAddress adr = curr.detail(QContactAddress::DefinitionName); + m_addrEdit->setText(adr.value(QContactAddress::FieldStreet)); // ugly hack. + m_addrEdit->setReadOnly(false); + } else { + m_addrEdit->setText(""); + m_addrEdit->setReadOnly(true); + } + + // avatar button + if (defs.contains(QContactAvatar::DefinitionName)) { + QContactAvatar av = curr.detail(QContactAvatar::DefinitionName); + QContactThumbnail thumb = curr.detail(QContactThumbnail::DefinitionName); + m_avatarBtn->setText(QString()); + m_avatarBtn->setIcon(QIcon()); + if (thumb.thumbnail().isNull()) { + if (av.imageUrl().isEmpty()) { + m_avatarBtn->setText("Add image"); + } else { + m_avatarBtn->setIcon(QIcon(QPixmap(av.imageUrl().toLocalFile()))); + m_thumbnail = QImage(av.imageUrl().toLocalFile()); + } } else { - m_avatarBtn->setIcon(QIcon(QPixmap(av.avatar()))); + m_newAvatarPath = av.imageUrl().toLocalFile(); + m_thumbnail = thumb.thumbnail(); + m_avatarBtn->setIcon(QIcon(QPixmap::fromImage(thumb.thumbnail()))); } + m_avatarBtn->setDisabled(false); } else { - m_newAvatarPath = av.avatar(); - m_avatarBtn->setIcon(QIcon(av.pixmap())); + m_avatarBtn->setIcon(QIcon()); + m_avatarBtn->setText(""); + m_avatarBtn->setDisabled(true); } } @@ -187,9 +232,10 @@ // put up a file dialog, and update the new avatar path. QString fileName = QFileDialog::getOpenFileName(this, tr("Select Avatar Image"), ".", tr("Image Files (*.png *.jpg *.bmp)")); - + if (!fileName.isEmpty()) { m_newAvatarPath = fileName; + m_thumbnail = QImage(m_newAvatarPath); m_avatarBtn->setText(QString()); m_avatarBtn->setIcon(QIcon(m_newAvatarPath)); } @@ -203,38 +249,52 @@ QContact curr; if (m_contactId != QContactLocalId(0)) curr = m_manager->contact(m_contactId); - QContactName nm = curr.detail(QContactName::DefinitionName); - QContactPhoneNumber phn = curr.detail(QContactPhoneNumber::DefinitionName); - QContactEmailAddress em = curr.detail(QContactEmailAddress::DefinitionName); - QContactAddress adr = curr.detail(QContactAddress::DefinitionName); - QContactAvatar av = curr.detail(QContactAvatar::DefinitionName); + + if (m_nameEdit->text().isEmpty()) { + QMessageBox::information(this, "Failed!", "You must give a name for the contact!"); + return; + } - QString saveNameField = nameField(); - if (!saveNameField.isEmpty()) { + if (m_nameEdit->text() != m_manager->synthesizedDisplayLabel(curr)) { // if the name has changed (ie, is different to the synthed label) then save it as a custom label. - if (m_nameEdit->text() != m_manager->synthesizedDisplayLabel(curr)) { - nm.setValue(nameField(), m_nameEdit->text()); + QString saveNameField = nameField(); + if (!saveNameField.isEmpty()) { + QContactName nm = curr.detail(QContactName::DefinitionName); + nm.setValue(saveNameField, m_nameEdit->text()); + curr.saveDetail(&nm); } } + + QContactPhoneNumber phn = curr.detail(QContactPhoneNumber::DefinitionName); phn.setNumber(m_phoneEdit->text()); - em.setEmailAddress(m_emailEdit->text()); - adr.setStreet(m_addrEdit->text()); - av.setAvatar(m_newAvatarPath); + curr.saveDetail(&phn); + + if (!m_emailEdit->isReadOnly()) { + QContactEmailAddress em = curr.detail(QContactEmailAddress::DefinitionName); + em.setEmailAddress(m_emailEdit->text()); + curr.saveDetail(&em); + } - QPixmap pix(m_newAvatarPath); - av.setPixmap(pix); + if (!m_addrEdit->isReadOnly()) { + QContactAddress adr = curr.detail(QContactAddress::DefinitionName); + adr.setStreet(m_addrEdit->text()); + curr.saveDetail(&adr); + } - curr.saveDetail(&nm); - curr.saveDetail(&phn); - curr.saveDetail(&em); - curr.saveDetail(&adr); - curr.saveDetail(&av); + if (m_avatarBtn->isEnabled()) { + QContactAvatar av = curr.detail(QContactAvatar::DefinitionName); + av.setImageUrl(QUrl(m_newAvatarPath)); + curr.saveDetail(&av); + + QContactThumbnail thumb = curr.detail(QContactThumbnail::DefinitionName); + QImage img(m_thumbnail); + thumb.setThumbnail(img); + curr.saveDetail(&thumb); + } bool success = m_manager->saveContact(&curr); - if (success) - QMessageBox::information(this, "Success!", "Contact saved successfully!"); - else - QMessageBox::information(this, "Failed!", "Failed to save contact!"); + if (!success) + QMessageBox::information(this, "Failed!", QString("Failed to save contact!\n(error code %1)").arg(m_manager->error())); } emit showListPage(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/samplephonebook/contacteditor.h --- a/qtmobility/examples/samplephonebook/contacteditor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/samplephonebook/contacteditor.h Mon May 03 13:18:40 2010 +0300 @@ -96,6 +96,7 @@ QContactManager *m_manager; QContactLocalId m_contactId; QString m_newAvatarPath; + QImage m_thumbnail; }; #endif // CONTACTEDITOR_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/samplephonebook/contactlistpage.cpp --- a/qtmobility/examples/samplephonebook/contactlistpage.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/samplephonebook/contactlistpage.cpp Mon May 03 13:18:40 2010 +0300 @@ -49,59 +49,119 @@ #include -ContactListPage::ContactListPage(QWidget *parent) - : QWidget(parent) +ContactListPage::ContactListPage(QMainWindow *mainWindow, QWidget *parent) + : QWidget(parent), m_mainWindow(mainWindow) { m_manager = 0; m_currentFilter = QContactFilter(); m_backendsCombo = new QComboBox(this); QStringList availableManagers = QContactManager::availableManagers(); + availableManagers.removeAll("invalid"); + foreach(QString managerName, availableManagers) { + + QMap params; + QString managerUri = QContactManager::buildUri(managerName, params); + + // Add some parameters to SIM backend so that we can use + // all the stores. + if (managerName == "symbiansim") { + availableManagers.removeAll("symbiansim"); + + availableManagers.append("symbiansim:adn"); + params.insert("store", "ADN"); + managerUri = QContactManager::buildUri(managerName, params); + m_availableManagers.insert(availableManagers.last(), managerUri); + + availableManagers.append("symbiansim:fdn"); + params.clear(); + params.insert("store", "FDN"); + managerUri = QContactManager::buildUri(managerName, params); + m_availableManagers.insert(availableManagers.last(), managerUri); + + availableManagers.append("symbiansim:sdn"); + params.clear(); + params.insert("store", "SDN"); + managerUri = QContactManager::buildUri(managerName, params); + m_availableManagers.insert(availableManagers.last(), managerUri); + } + else { + m_availableManagers.insert(managerName, managerUri); + } + } m_backendsCombo->addItems(availableManagers); connect(m_backendsCombo, SIGNAL(currentIndexChanged(QString)), this, SLOT(backendSelected())); - m_filterActiveLabel = new QLabel("Inactive"); + m_filterActiveLabel = new QLabel(tr("Filter active")); m_filterActiveLabel->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); + QVBoxLayout *bookLayout = new QVBoxLayout; + QFormLayout *backendLayout = new QFormLayout; + backendLayout->addRow(tr("Store:"), m_backendsCombo); + backendLayout->addRow(m_filterActiveLabel); + bookLayout->addLayout(backendLayout); + m_contactsList = new QListWidget(this); + bookLayout->addWidget(m_contactsList); - QPushButton* m_addContactBtn = new QPushButton("Add", this); - connect(m_addContactBtn, SIGNAL(clicked()), this, SLOT(addContactClicked())); - QPushButton* m_editBtn = new QPushButton("Edit", this); - connect(m_editBtn, SIGNAL(clicked()), this, SLOT(editClicked())); - QPushButton* m_deleteBtn = new QPushButton("Delete", this); - connect(m_deleteBtn, SIGNAL(clicked()), this, SLOT(deleteClicked())); - QPushButton* m_filterBtn = new QPushButton("Filter", this); - connect(m_filterBtn, SIGNAL(clicked()), this, SLOT(filterClicked())); - QPushButton* m_importBtn = new QPushButton("Import"); - connect(m_importBtn, SIGNAL(clicked()), this, SLOT(importClicked())); - QPushButton* m_exportBtn = new QPushButton("Export"); - connect(m_exportBtn, SIGNAL(clicked()), this, SLOT(exportClicked())); + // Action buttons at the bottom + QHBoxLayout *btnLayout1 = new QHBoxLayout; + QPushButton* addBtn = new QPushButton(tr("&Add"), this); + connect(addBtn, SIGNAL(clicked()), this, SLOT(addClicked())); + btnLayout1->addWidget(addBtn); - QFormLayout *backendLayout = new QFormLayout; - backendLayout->addRow("Store:", m_backendsCombo); - backendLayout->addRow("Filter:", m_filterActiveLabel); - - QHBoxLayout *btnLayout1 = new QHBoxLayout; - btnLayout1->addWidget(m_addContactBtn); - btnLayout1->addWidget(m_editBtn); - btnLayout1->addWidget(m_deleteBtn); - btnLayout1->addWidget(m_filterBtn); + QPushButton* editBtn = new QPushButton(tr("&Edit"), this); + connect(editBtn, SIGNAL(clicked()), this, SLOT(editClicked())); + btnLayout1->addWidget(editBtn); - QHBoxLayout *btnLayout2 = new QHBoxLayout; - btnLayout2->addWidget(m_importBtn); - btnLayout2->addWidget(m_exportBtn); + QPushButton* deleteBtn = new QPushButton(tr("&Delete"), this); + connect(deleteBtn, SIGNAL(clicked()), this, SLOT(deleteClicked())); + btnLayout1->addWidget(deleteBtn); - QVBoxLayout *bookLayout = new QVBoxLayout; - bookLayout->addLayout(backendLayout); - bookLayout->addWidget(m_contactsList); bookLayout->addLayout(btnLayout1); -#ifdef BUILD_VERSIT - bookLayout->addLayout(btnLayout2); -#endif setLayout(bookLayout); + // Add items to the menu + if (m_mainWindow) { +#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + QMenuBar *optionsMenu = m_mainWindow->menuBar(); +#else + QMenu *optionsMenu = new QMenu(tr("&Contacts"), this); + m_mainWindow->menuBar()->addMenu(optionsMenu); +#endif + QAction* addAction = new QAction(tr("&Add Contact..."), this); + connect(addAction, SIGNAL(triggered()), this, SLOT(addClicked())); + optionsMenu->addAction(addAction); + QAction* editAction = new QAction(tr("&Edit Contact..."), this); + connect(editAction, SIGNAL(triggered()), this, SLOT(editClicked())); + optionsMenu->addAction(editAction); + QAction* deleteAction = new QAction(tr("&Delete Contact"), this); + connect(deleteAction, SIGNAL(triggered()), this, SLOT(deleteClicked())); + optionsMenu->addAction(deleteAction); + optionsMenu->addSeparator(); + QAction* filterAction = new QAction(tr("Apply &Filter..."), this); + connect(filterAction, SIGNAL(triggered()), this, SLOT(filterClicked())); + optionsMenu->addAction(filterAction); + QAction* clearFilterAction = new QAction(tr("&Clear Filter"), this); + connect(clearFilterAction, SIGNAL(triggered()), this, SIGNAL(clearFilter())); + optionsMenu->addAction(clearFilterAction); + optionsMenu->addSeparator(); + +#ifdef BUILD_VERSIT + QAction* importAction = new QAction(tr("&Import contacts..."), this); + connect(importAction, SIGNAL(triggered()), this, SLOT(importClicked())); + optionsMenu->addAction(importAction); + QAction* exportAction = new QAction(tr("Ex&port contacts..."), this); + connect(exportAction, SIGNAL(triggered()), this, SLOT(exportClicked())); + optionsMenu->addAction(exportAction); + optionsMenu->addSeparator(); +#endif + QAction* exitAction = new QAction(tr("E&xit"), this); + connect(exitAction, SIGNAL(triggered()), qApp, SLOT(quit())); + optionsMenu->addAction(exitAction); + } + // force update to backend. QTimer::singleShot(0, this, SLOT(backendSelected())); } @@ -117,18 +177,24 @@ void ContactListPage::backendSelected() { - QString backend = m_backendsCombo->currentText(); + QString managerUri = m_availableManagers.value(m_backendsCombo->currentText()); // first, check to see if they reselected the same backend. - if (m_manager && m_manager->managerName() == backend) + if (m_manager && m_manager->managerUri() == managerUri) return; // the change is real. update. - if (m_initialisedManagers.contains(backend)) { - m_manager = m_initialisedManagers.value(backend); + if (m_initialisedManagers.contains(managerUri)) { + m_manager = m_initialisedManagers.value(managerUri); } else { - m_manager = new QContactManager(backend); - m_initialisedManagers.insert(backend, m_manager); + m_manager = QContactManager::fromUri(managerUri); + if (m_manager->error()) { + QMessageBox::information(this, tr("Failed!"), QString("Failed to open store!\n(error code %1)").arg(m_manager->error())); + delete m_manager; + m_manager = 0; + return; + } + m_initialisedManagers.insert(managerUri, m_manager); } // signal that the manager has changed. @@ -140,14 +206,11 @@ void ContactListPage::rebuildList(const QContactFilter& filter) { - // first, check to see whether the filter does anything - if (filter == QContactFilter()) - m_filterActiveLabel->setText("Inactive"); - else - m_filterActiveLabel->setText("Active"); + m_currentFilter = QContactManagerEngine::canonicalizedFilter(filter); + + m_filterActiveLabel->setVisible(m_currentFilter != QContactFilter()); QContact currContact; - m_currentFilter = filter; m_contactsList->clear(); m_idToListIndex.clear(); QList contactIds = m_manager->contactIds(m_currentFilter); @@ -161,9 +224,10 @@ } } -void ContactListPage::addContactClicked() +void ContactListPage::addClicked() { - emit showEditorPage(QContactLocalId(0)); + if (m_manager) + emit showEditorPage(QContactLocalId(0)); } void ContactListPage::editClicked() @@ -175,7 +239,8 @@ void ContactListPage::filterClicked() { - emit showFilterPage(m_currentFilter); + if (m_manager) + emit showFilterPage(m_currentFilter); } void ContactListPage::deleteClicked() @@ -189,12 +254,11 @@ qWarning() << "Nothing to delete."; return; } - + QContactLocalId contactId = QContactLocalId(m_contactsList->currentItem()->data(Qt::UserRole).toUInt()); bool success = m_manager->removeContact(contactId); if (success) { delete m_contactsList->takeItem(m_contactsList->currentRow()); - QMessageBox::information(this, "Success!", "Contact deleted successfully!"); } else QMessageBox::information(this, "Failed!", "Failed to delete contact!"); @@ -216,10 +280,12 @@ reader.setDevice(&file); if (reader.startReading() && reader.waitForFinished()) { QVersitContactImporter importer; - QList contacts = importer.importContacts(reader.results()); - QMap errorMap; - m_manager->saveContacts(&contacts, &errorMap); - rebuildList(m_currentFilter); + if (importer.importDocuments(reader.results())) { + QList contacts = importer.contacts(); + QMap errorMap; + m_manager->saveContacts(&contacts, &errorMap); + rebuildList(m_currentFilter); + } } } #endif @@ -232,7 +298,7 @@ qWarning() << "No manager selected; cannot import"; return; } - QList contacts = m_manager->contacts(QList(), QStringList()); + QList contacts = m_manager->contacts(QList(), QContactFetchHint()); QString fileName = QFileDialog::getSaveFileName(this, tr("Save vCard"), "./contacts.vcf", tr("vCards (*.vcf)")); @@ -240,11 +306,13 @@ file.open(QIODevice::WriteOnly); if (file.isWritable()) { QVersitContactExporter exporter; - QList documents = exporter.exportContacts(contacts); - QVersitWriter writer; - writer.setDevice(&file); - writer.startWriting(documents); - writer.waitForFinished(); + if(exporter.exportContacts(contacts, QVersitDocument::VCard30Type)) { + QList documents = exporter.documents(); + QVersitWriter writer; + writer.setDevice(&file); + writer.startWriting(documents); + writer.waitForFinished(); + } } #endif } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/samplephonebook/contactlistpage.h --- a/qtmobility/examples/samplephonebook/contactlistpage.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/samplephonebook/contactlistpage.h Mon May 03 13:18:40 2010 +0300 @@ -54,6 +54,7 @@ class QComboBox; class QLabel; class QLineEdit; +class QMainWindow; QT_END_NAMESPACE QTM_USE_NAMESPACE @@ -63,7 +64,7 @@ Q_OBJECT public: - ContactListPage(QWidget *parent = 0); + ContactListPage(QMainWindow *mainWindow = 0, QWidget *parent = 0); ~ContactListPage(); void rebuildList(const QContactFilter& filter); @@ -72,10 +73,11 @@ void showEditorPage(QContactLocalId contactId); void showFilterPage(const QContactFilter& filter); void managerChanged(QContactManager *manager); + void clearFilter(); private slots: void backendSelected(); - void addContactClicked(); + void addClicked(); void editClicked(); void filterClicked(); void deleteClicked(); @@ -89,6 +91,8 @@ QListWidget *m_contactsList; + // The main window that the page can add actions to + QMainWindow *m_mainWindow; // data QContactManager *m_manager; @@ -96,6 +100,7 @@ QMap m_initialisedManagers; QContactFilter m_currentFilter; + QMap m_availableManagers; }; #endif // CONTACTLISTPAGE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/samplephonebook/filterpage.cpp --- a/qtmobility/examples/samplephonebook/filterpage.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/samplephonebook/filterpage.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,83 +46,62 @@ FilterPage::FilterPage(QWidget* parent) : QWidget(parent) { - m_valueCriteriaEdit = new QLineEdit(this); - m_fieldCriteriaCombo = new QComboBox(this); - m_criteriaTypeCombo = new QComboBox(this); - m_joinMethodCombo = new QComboBox(this); - m_cumulativeExpressionLabel = new QLabel("Match All Contacts", this); - m_cumulativeExpressionLabel->setWordWrap(true); - m_cumulativeExpressionLabel->setFocusPolicy(Qt::StrongFocus); - -#ifdef Q_OS_SYMBIAN - // In symbian use softkeys instead of normal buttons - m_addBtn = new QAction("Add", this); - m_addBtn->setSoftKeyRole(QAction::PositiveSoftKey); - addAction(m_addBtn); - connect(m_addBtn, SIGNAL(triggered(bool)), this, SLOT(addClicked())); - m_filterBtn = new QAction("Filter", this); - m_filterBtn->setSoftKeyRole(QAction::NegativeSoftKey); - addAction(m_filterBtn); - connect(m_filterBtn, SIGNAL(triggered(bool)), this, SLOT(filterClicked())); -#else - m_addBtn = new QPushButton("Add", this); - connect(m_addBtn, SIGNAL(clicked()), this, SLOT(addClicked())); - m_filterBtn = new QPushButton("Filter", this); - connect(m_filterBtn, SIGNAL(clicked()), this, SLOT(filterClicked())); -#endif - m_clearBtn = new QPushButton("Clear", this); - connect(m_clearBtn, SIGNAL(clicked()), this, SLOT(clearClicked())); - - QStringList filterableFields; - filterableFields.append("Name"); - filterableFields.append("Phone Number"); - filterableFields.append("Email"); - m_fieldCriteriaCombo->addItems(filterableFields); + m_nameEdit = new QLineEdit(this); + m_phoneEdit = new QLineEdit(this); + m_emailEdit = new QLineEdit(this); + m_addressEdit = new QLineEdit(this); + QLabel *nameLabel = new QLabel(tr("Name"), this); + QLabel *phoneLabel = new QLabel(tr("Phone"), this); + QLabel *emailLabel = new QLabel(tr("Email"), this); + QLabel *addressLabel = new QLabel(tr("Address"), this); - m_criteriaTypeCombo->addItem("Equals", QContactFilter::MatchExactly); - m_criteriaTypeCombo->addItem("Contains", QContactFilter::MatchContains); - m_criteriaTypeCombo->addItem("Starts with", QContactFilter::MatchStartsWith); - m_criteriaTypeCombo->addItem("Ends with", QContactFilter::MatchEndsWith); + QFormLayout *formLayout = new QFormLayout; + if (QApplication::desktop()->availableGeometry().width() < 360) { + // Narrow screen: put label on separate line to textbox + formLayout->addRow(nameLabel); + formLayout->addRow(m_nameEdit); + formLayout->addRow(phoneLabel); + formLayout->addRow(m_phoneEdit); + formLayout->addRow(emailLabel); + formLayout->addRow(m_emailEdit); + formLayout->addRow(addressLabel); + formLayout->addRow(m_addressEdit); + } else { + // Wide screen: put label on same line as textbox + formLayout->addRow(nameLabel, m_nameEdit); + formLayout->addRow(phoneLabel, m_phoneEdit); + formLayout->addRow(emailLabel, m_emailEdit); + formLayout->addRow(addressLabel, m_addressEdit); + } - QStringList joinTypes; - joinTypes.append("AND"); - joinTypes.append("OR"); - m_joinMethodCombo->addItems(joinTypes); - - QFormLayout *formLayout = new QFormLayout; - formLayout->addRow(new QLabel("Search String:", this)); - formLayout->addRow(m_valueCriteriaEdit); - formLayout->addRow(new QLabel("Search Field:", this)); - formLayout->addRow(m_fieldCriteriaCombo); - formLayout->addRow(new QLabel("Criteria Type:", this)); - formLayout->addRow(m_criteriaTypeCombo); - formLayout->addRow(new QLabel("Join Method:", this)); - formLayout->addRow(m_joinMethodCombo); - QFrame* separatorFrame = new QFrame(this); - separatorFrame->setFrameShape(QFrame::HLine); - separatorFrame->setFrameShadow(QFrame::Plain); - separatorFrame->setLineWidth(2); - formLayout->addRow(separatorFrame); - formLayout->addRow(new QLabel("Filter Expression:", this)); - formLayout->addRow(m_cumulativeExpressionLabel); -#ifdef Q_OS_SYMBIAN - formLayout->addRow(m_clearBtn); -#endif - QVBoxLayout *pageLayout = new QVBoxLayout; - + QScrollArea *formScrollArea = new QScrollArea(this); formScrollArea->setWidgetResizable(true); QWidget *formContainer = new QWidget(formScrollArea); formContainer->setLayout(formLayout); formScrollArea->setWidget(formContainer); pageLayout->addWidget(formScrollArea); - -#ifndef Q_OS_SYMBIAN + +#ifdef Q_OS_SYMBIAN + m_filterBtn = new QAction(tr("Filter"), this); + m_filterBtn->setSoftKeyRole(QAction::PositiveSoftKey); + addAction(m_filterBtn); + connect(m_filterBtn, SIGNAL(triggered(bool)), this, SLOT(filterClicked())); + m_cancelBtn = new QAction(tr("Cancel"), this); + m_cancelBtn->setSoftKeyRole(QAction::NegativeSoftKey); + addAction(m_cancelBtn); + connect(m_cancelBtn, SIGNAL(triggered(bool)), this, SLOT(cancelClicked())); +#else + m_filterBtn = new QPushButton(tr("&Filter"), this); + m_filterBtn->setDefault(true); + connect(m_filterBtn, SIGNAL(clicked()), this, SLOT(filterClicked())); + m_cancelBtn = new QPushButton(tr("&Cancel"), this); + connect(m_cancelBtn, SIGNAL(clicked()), this, SLOT(cancelClicked())); + QHBoxLayout *btnLayout = new QHBoxLayout; - btnLayout->addWidget(m_addBtn); - btnLayout->addWidget(m_clearBtn); btnLayout->addWidget(m_filterBtn); + btnLayout->addWidget(m_cancelBtn); pageLayout->addLayout(btnLayout); #endif @@ -133,94 +112,90 @@ { } -void FilterPage::addClicked() +void FilterPage::clearFilter() { - QContactDetailFilter fil; - QString defName; - QString fieldName; - QString exprName; - QString exprMatch; - QString exprJoin; - switch (m_fieldCriteriaCombo->currentIndex()) { - case 0: - { - // name - defName = QString(QLatin1String(QContactDisplayLabel::DefinitionName)); - fieldName = QString(QLatin1String(QContactDisplayLabel::FieldLabel)); - - exprName = "Name"; - } - break; - - case 1: - { - // phone number - defName = QString(QLatin1String(QContactPhoneNumber::DefinitionName)); - fieldName = QString(QLatin1String(QContactPhoneNumber::FieldNumber)); - - exprName = "Phone Number"; - } - break; - - default: - { - // email address - defName = QString(QLatin1String(QContactEmailAddress::DefinitionName)); - fieldName = QString(QLatin1String(QContactEmailAddress::FieldEmailAddress)); - - exprName = "Email Address"; - } - break; - - } - fil.setDetailDefinitionName(defName, fieldName); - fil.setValue(m_valueCriteriaEdit->text()); - - int flag = m_criteriaTypeCombo->itemData(m_criteriaTypeCombo->currentIndex()).toInt(); - fil.setMatchFlags(QContactFilter::MatchFlags(flag)); - exprMatch = m_criteriaTypeCombo->currentText().toLower(); - - // if OR then join with OR - if (m_joinMethodCombo->currentIndex() == 1) { - QContactUnionFilter ufil; - ufil << m_cumulativeFilter << fil; - QContactIntersectionFilter ifil; - ifil << ufil; - m_cumulativeFilter = ifil; - exprJoin = "OR"; - } else { - // otherwise, just AND. - QContactIntersectionFilter ifil(m_cumulativeFilter); - ifil << fil; - m_cumulativeFilter = ifil; - exprJoin = "AND"; - } - - // set the expression so far - if (!m_cumulativeExpression.isEmpty()) - m_cumulativeExpression += " " + exprJoin + " "; - m_cumulativeExpression += exprName + " " + exprMatch + " \"" + m_valueCriteriaEdit->text() + "\""; - - // and clear the UI ready for the next filter expression. - m_valueCriteriaEdit->setText(""); - m_fieldCriteriaCombo->setCurrentIndex(0); - m_criteriaTypeCombo->setCurrentIndex(0); - m_joinMethodCombo->setCurrentIndex(0); - m_cumulativeExpressionLabel->setText(m_cumulativeExpression); -} - -void FilterPage::clearClicked() -{ - m_cumulativeExpression = QString(); - m_valueCriteriaEdit->setText(""); - m_fieldCriteriaCombo->setCurrentIndex(0); - m_criteriaTypeCombo->setCurrentIndex(0); - m_joinMethodCombo->setCurrentIndex(0); - m_cumulativeExpressionLabel->setText("Match All Contacts"); - m_cumulativeFilter = QContactFilter(); + m_name.clear(); + m_phone.clear(); + m_email.clear(); + m_address.clear(); + m_nameEdit->clear(); + m_phoneEdit->clear(); + m_emailEdit->clear(); + m_addressEdit->clear(); + m_currentFilter = QContactIntersectionFilter(); + emit showListPage(m_currentFilter); } void FilterPage::filterClicked() { - emit showListPage(m_cumulativeFilter); + m_name = m_nameEdit->text(); + m_phone = m_phoneEdit->text(); + m_email = m_emailEdit->text(); + m_address = m_addressEdit->text(); + // The intersection filter ensures that non-empty field value must be found in the contact. + m_currentFilter = QContactIntersectionFilter(); + if (!m_nameEdit->text().isEmpty()) { + // Search all fields of the name by building a union filter + QContactUnionFilter nameFilter; + QStringList nameFields; + nameFields << QContactName::FieldCustomLabel; + nameFields << QContactName::FieldFirstName; + nameFields << QContactName::FieldLastName; + nameFields << QContactName::FieldMiddleName; + nameFields << QContactName::FieldPrefix; + nameFields << QContactName::FieldSuffix; + foreach (const QString& fieldName, nameFields) { + QContactDetailFilter subFilter; + subFilter.setDetailDefinitionName(QContactName::DefinitionName, fieldName); + subFilter.setValue(m_nameEdit->text()); + subFilter.setMatchFlags(QContactFilter::MatchContains); + nameFilter.append(subFilter); + } + m_currentFilter.append(nameFilter); + } + if (!m_phoneEdit->text().isEmpty()) { + QContactDetailFilter phoneFilter; + phoneFilter.setDetailDefinitionName(QContactPhoneNumber::DefinitionName, + QContactPhoneNumber::FieldNumber); + phoneFilter.setValue(m_phoneEdit->text()); + phoneFilter.setMatchFlags(QContactFilter::MatchContains); + m_currentFilter.append(phoneFilter); + } + if (!m_emailEdit->text().isEmpty()) { + QContactDetailFilter emailFilter; + emailFilter.setDetailDefinitionName(QContactEmailAddress::DefinitionName, + QContactEmailAddress::FieldEmailAddress); + emailFilter.setValue(m_emailEdit->text()); + emailFilter.setMatchFlags(QContactFilter::MatchContains); + m_currentFilter.append(emailFilter); + } + if (!m_addressEdit->text().isEmpty()) { + // Search all fields of the address by building a union filter + QContactUnionFilter addressFilter; + QStringList addressFields; + addressFields << QContactAddress::FieldCountry; + addressFields << QContactAddress::FieldLocality; + addressFields << QContactAddress::FieldPostcode; + addressFields << QContactAddress::FieldPostOfficeBox; + addressFields << QContactAddress::FieldRegion; + addressFields << QContactAddress::FieldStreet; + foreach (const QString& fieldName, addressFields) { + QContactDetailFilter subFilter; + subFilter.setDetailDefinitionName(QContactAddress::DefinitionName, fieldName); + subFilter.setValue(m_addressEdit->text()); + subFilter.setMatchFlags(QContactFilter::MatchContains); + addressFilter.append(subFilter); + } + m_currentFilter.append(addressFilter); + } + emit showListPage(m_currentFilter); } + +void FilterPage::cancelClicked() +{ + m_nameEdit->setText(m_name); + m_phoneEdit->setText(m_phone); + m_emailEdit->setText(m_email); + m_addressEdit->setText(m_address); + emit showListPage(m_currentFilter); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/samplephonebook/filterpage.h --- a/qtmobility/examples/samplephonebook/filterpage.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/samplephonebook/filterpage.h Mon May 03 13:18:40 2010 +0300 @@ -70,31 +70,30 @@ void showListPage(const QContactFilter& filter); public slots: + void clearFilter(); private slots: - void addClicked(); - void clearClicked(); void filterClicked(); + void cancelClicked(); private: - QLineEdit *m_valueCriteriaEdit; - QComboBox *m_fieldCriteriaCombo; - QComboBox *m_criteriaTypeCombo; - QComboBox *m_joinMethodCombo; - - QLabel *m_cumulativeExpressionLabel; + QString m_name; + QString m_phone; + QString m_email; + QString m_address; + QLineEdit *m_nameEdit; + QLineEdit *m_phoneEdit; + QLineEdit *m_emailEdit; + QLineEdit *m_addressEdit; #ifdef Q_OS_SYMBIAN - QAction *m_addBtn; QAction *m_filterBtn; + QAction *m_cancelBtn; #else - QPushButton *m_addBtn; QPushButton *m_filterBtn; + QPushButton *m_cancelBtn; #endif - QPushButton *m_clearBtn; - - QString m_cumulativeExpression; - QContactFilter m_cumulativeFilter; + QContactIntersectionFilter m_currentFilter; }; #endif // FILTERPAGE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/samplephonebook/phonebook.cpp --- a/qtmobility/examples/samplephonebook/phonebook.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/samplephonebook/phonebook.cpp Mon May 03 13:18:40 2010 +0300 @@ -57,10 +57,11 @@ m_filterPage = new FilterPage(centralWidget); connect(m_filterPage, SIGNAL(showListPage(QContactFilter)), this, SLOT(activateList(QContactFilter))); - m_listPage = new ContactListPage(centralWidget); + m_listPage = new ContactListPage(this, centralWidget); connect(m_listPage, SIGNAL(showEditorPage(QContactLocalId)), this, SLOT(activateEditor(QContactLocalId))); connect(m_listPage, SIGNAL(showFilterPage(QContactFilter)), this, SLOT(activateFind())); connect(m_listPage, SIGNAL(managerChanged(QContactManager*)), this, SLOT(managerChanged(QContactManager*))); + connect(m_listPage, SIGNAL(clearFilter()), m_filterPage, SLOT(clearFilter())); m_stackedWidget = new QStackedWidget(centralWidget); m_stackedWidget->addWidget(m_listPage); @@ -81,24 +82,32 @@ void PhoneBook::activateEditor(QContactLocalId contactId) { + menuBar()->setVisible(false); m_editorPage->setCurrentContact(m_manager, contactId); m_stackedWidget->setCurrentIndex(1); // list = 0, editor = 1, find = 2. } void PhoneBook::activateList(const QContactFilter& filter) -{ +{ +#if !(defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) + menuBar()->setVisible(true); +#endif m_currentFilter = filter; activateList(); // call base now. } void PhoneBook::activateList() { +#if !(defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) + menuBar()->setVisible(true); +#endif m_listPage->rebuildList(m_currentFilter); m_stackedWidget->setCurrentIndex(0); // list = 0, editor = 1, find = 2. } void PhoneBook::activateFind() { + menuBar()->setVisible(false); m_stackedWidget->setCurrentIndex(2); // list = 0, editor = 1, find = 2. } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/satellitedialog/main.cpp --- a/qtmobility/examples/satellitedialog/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/satellitedialog/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,7 @@ #include #include +#include #include #include #include @@ -58,8 +59,14 @@ SatelliteDialog::ScaleToMaxPossible); QGeoPositionInfoSource *posSource = QGeoPositionInfoSource::createDefaultSource(0); + QGeoSatelliteInfoSource *satSource = QGeoSatelliteInfoSource::createDefaultSource(0); + + if ((posSource == 0) || (satSource == 0)) { + QMessageBox::critical(0, "SatelliteDialog", "This examples requires a valid location source and no valid location sources are available on this platform."); + return -1; + } + posSource->setUpdateInterval(5000); - QGeoSatelliteInfoSource *satSource = QGeoSatelliteInfoSource::createDefaultSource(0); dialog->connectSources(posSource, satSource); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/satellitedialog/satellitedialog.cpp --- a/qtmobility/examples/satellitedialog/satellitedialog.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/satellitedialog/satellitedialog.cpp Mon May 03 13:18:40 2010 +0300 @@ -405,24 +405,24 @@ setLayout(mainLayout); -#if defined(Q_OS_SYMBIAN) +/*#if defined(Q_OS_SYMBIAN) // workaround for QTBUG-4771 oldTitle = windowTitle(); connect(this, SIGNAL(finished(int)), this, SLOT(restoreWindowTitle())); -#endif +#endif*/ setWindowTitle(tr("Waiting for GPS fix")); setModal(true); } -#if defined(Q_OS_SYMBIAN) +/*#if defined(Q_OS_SYMBIAN) // workaround for QTBUG-4771 void SatelliteDialog::restoreWindowTitle() { setWindowTitle(oldTitle); } -#endif +#endif*/ void SatelliteDialog::connectSources(QGeoPositionInfoSource *posSource, QGeoSatelliteInfoSource *satSource) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/satellitedialog/satellitedialog.h --- a/qtmobility/examples/satellitedialog/satellitedialog.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/satellitedialog/satellitedialog.h Mon May 03 13:18:40 2010 +0300 @@ -108,10 +108,10 @@ void switchButtonClicked(); void noSatelliteTimeout(); -#if defined(Q_OS_SYMBIAN) +/*#if defined(Q_OS_SYMBIAN) // workaround for QTBUG-4771 void restoreWindowTitle(); -#endif +#endif*/ private: int m_noSatelliteTimeoutSeconds; @@ -124,10 +124,10 @@ SatelliteWidget *satelliteWidget; QPushButton *switchButton; QPushButton *cancelButton; -#if defined(Q_OS_SYMBIAN) +/*#if defined(Q_OS_SYMBIAN) // workaround for QTBUG-4771 QString oldTitle; -#endif +#endif*/ }; #endif // #ifndef QGEOSATELLITEDIALOG_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/accel/main.cpp --- a/qtmobility/examples/sensors/accel/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/accel/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -51,25 +51,12 @@ public: bool filter(QAccelerometerReading *reading) { -#if 0 - QAccelerometerReading *lastReading = accelerometer->reading(); - qDebug() << "acceleration: " - << QString().sprintf("%0.2f (%0.2f) %0.2f (%0.2f) %0.2f (%0.2f)", - reading->x(), - lastReading->x() - reading->x(), - reading->y(), - lastReading->y() - reading->y(), - reading->z(), - lastReading->z() - reading->z()); - return true; // so the last reading is available! -#else qDebug() << "acceleration: " << QString().sprintf("%0.2f %0.2f %0.2f", reading->x(), reading->y(), reading->z()); return false; // don't store the reading in the sensor -#endif } }; @@ -79,16 +66,14 @@ QAccelerometer sensor; accelerometer = &sensor; - if (!sensor.connect()) { - qWarning("No Accelerometer available!"); + AccelerometerFilter filter; + sensor.addFilter(&filter); + sensor.start(); + + if (!sensor.isActive()) { + qWarning("Accelerometer didn't start!"); return 1; } - AccelerometerFilter filter; - sensor.setSignalEnabled(false); - sensor.addFilter(&filter); - //sensor.setUpdatePolicy(QSensor::InfrequentUpdates); - sensor.setUpdateInterval(100); // as fast as the sensor can go! - sensor.start(); return app.exec(); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/accel_perf/README --- a/qtmobility/examples/sensors/accel_perf/README Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -Note that this really belongs in a unit test that builds the library -since it depends on a change to the library. - -For this to work accurately a check in QSensorBackend::newReadingAvailable() -needs to be commented out while building the library. The check is: - - if (d->updatePolicy == QSensor::PolledUpdates) - return; // We don't emit the signal if we're polling - -With this check in place, the use of sensor.poll() to measure performance -does not work. diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/accel_perf/accel_perf.pro --- a/qtmobility/examples/sensors/accel_perf/accel_perf.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -TEMPLATE=app -TARGET=accel_perf -include(../../examples.pri) -QT=core testlib -#CONFIG+=release -CONFIG+=mobility -MOBILITY+=sensors -INCLUDEPATH += ../../../src/sensors -SOURCES=main.cpp - -CONFIG+=strict_flags - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/accel_perf/main.cpp --- a/qtmobility/examples/sensors/accel_perf/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,151 +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 Qt Mobility Components. -** -** $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 -#include -#include - -QTM_USE_NAMESPACE - -class accel_perf : public QObject -{ - Q_OBJECT -private slots: - void accel_speed_raw(); - void accel_speed_raw_nosignal(); - void accel_speed_raw_signal(); - void accel_speed_filter(); - void accel_speed_filter_nosignal(); - void accel_speed_filter_signal(); -}; - -class receiver : public QObject, public QAccelerometerFilter -{ - Q_OBJECT -public: - bool filter(QAccelerometerReading *reading) - { - Q_UNUSED(reading) - //qDebug() << "filter"; - return true; - } -public slots: - void sensorChanged() - { - //qDebug() << "sensorChanged"; - } -}; - -void accel_perf::accel_speed_raw() -{ - QAccelerometer sensor; - //sensor.setIdentifier("dummy.accelerometer"); // We want the dummy accelerometer - QVERIFY(sensor.connect()); - sensor.setUpdatePolicy(QSensor::PolledUpdates); - sensor.start(); - QBENCHMARK { sensor.poll(); } -} - -void accel_perf::accel_speed_raw_nosignal() -{ - QAccelerometer sensor; - //sensor.setIdentifier("dummy.accelerometer"); // We want the dummy accelerometer - QVERIFY(sensor.connect()); - sensor.setUpdatePolicy(QSensor::PolledUpdates); - sensor.setSignalEnabled(false); - sensor.start(); - QBENCHMARK { sensor.poll(); } -} - -void accel_perf::accel_speed_raw_signal() -{ - QAccelerometer sensor; - //sensor.setIdentifier("dummy.accelerometer"); // We want the dummy accelerometer - QVERIFY(sensor.connect()); - sensor.setUpdatePolicy(QSensor::PolledUpdates); - receiver r; - connect(&sensor, SIGNAL(readingChanged()), &r, SLOT(sensorChanged())); - sensor.start(); - QBENCHMARK { sensor.poll(); } -} - -void accel_perf::accel_speed_filter() -{ - QAccelerometer sensor; - //sensor.setIdentifier("dummy.accelerometer"); // We want the dummy accelerometer - QVERIFY(sensor.connect()); - sensor.setUpdatePolicy(QSensor::PolledUpdates); - receiver r; - sensor.addFilter(&r); - sensor.start(); - QBENCHMARK { sensor.poll(); } -} - -void accel_perf::accel_speed_filter_nosignal() -{ - QAccelerometer sensor; - //sensor.setIdentifier("dummy.accelerometer"); // We want the dummy accelerometer - QVERIFY(sensor.connect()); - sensor.setUpdatePolicy(QSensor::PolledUpdates); - sensor.setSignalEnabled(false); - receiver r; - sensor.addFilter(&r); - sensor.start(); - QBENCHMARK { sensor.poll(); } -} - -void accel_perf::accel_speed_filter_signal() -{ - QAccelerometer sensor; - //sensor.setIdentifier("dummy.accelerometer"); // We want the dummy accelerometer - QVERIFY(sensor.connect()); - sensor.setUpdatePolicy(QSensor::PolledUpdates); - receiver r; - sensor.addFilter(&r); - connect(&sensor, SIGNAL(readingChanged()), &r, SLOT(sensorChanged())); - sensor.start(); - QBENCHMARK { sensor.poll(); } -} - -QTEST_MAIN(accel_perf) - -#include "main.moc" - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/camera.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/camera.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1052 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 "camera.h" +#include +#include + +/*! + \class Camera + \brief The Camera class defines the projection to apply to simulate a camera's position, orientation, and optics. + \since 4.7 + \ingroup qt3d + \ingroup qt3d::viewing + + \section1 Modelview and projection transformations + + A Camera instance is applied to the scene in two phases: + modelview transformation and projection transformation. + + During the modelview transformation, the eye(), center(), and + upVector() are used to generate a 4x4 transformation matrix that + reflects the viewer's current position and orientation. + + During the projection transformation, the projectionType(), + nearPlane(), farPlane(), fieldOfView(), and viewSize() are used + to define a viewing volume as a 4x4 transformation matrix. + + The modelview transformation matrix is returned by modelViewMatrix(). + The projection transformation matrix is returned by projectionMatrix(). + + \section1 Positioning and orienting the view + + The viewer position and orientation are defined by eye(), center(), + and upVector(). The location of the viewer in world co-ordinates is + given by eye(), the viewer is looking at the object of interest located + at center(), and the upVector() specifies the direction that should + be considered "up" with respect to the viewer. + + The vector from the eye() to the center() is called the "view vector", + and the cross-product of the view vector and upVector() is called + the "side vector". The view vector specifies the direction the + viewer is looking, and the side vector points off to the right of + the viewer. + + It is recommended that the view vector and upVector() be at right angles + to each other, but this is not required as long as the angle between + them is close to 90 degrees. + + The most common use of view and up vectors that are not at right angles + is to simulate a human eye at a specific height above the ground looking + down at a lower object or up at a higher object. In this case, the + the view vector will not be true horizontal, but the upVector() indicating + the human's upright stance will be true vertical. + + \section1 Zooming the camera image + + There are two ways to zoom the image seen through the camera: either + the camera eye() position can be moved closer to the object of interest, + or the field of view of the camera lens can be changed to make it appear + as though the object is moving closer. + + Changing the eye() position changes the lighting calculation in the + scene because the viewer is in a different position, changing the + angle of light reflection on the object's surface. + + The setFieldOfView() function can be used to simulate the effect of a + camera lens. The smaller the fieldOfView(), the closer the object + will appear. The lighting calculation will be the same as for the + unzoomed scene. + + If fieldOfView() is zero, then a standard perspective frustum of + viewSize() is used to define the viewing volume. The viewSize() + can be adjusted with setViewSize() to zoom the view. A smaller + viewSize() will make the the object appear closer. + + The fieldOfView() or viewSize() is applied as part of the + projectionMatrix(). + + \section1 Rotating the viewer or object of interest + + Rotating a viewer in 3D space is a very delicate process. It is very + easy to construct the rotation incorrectly and end up in a "gimbal lock" + state where further rotations are impossible in certain directions. + + To help alleviate this problem, Camera uses a quaternion-based + approach to generate rotations. A quaternion is a compact representation + of a rotation in 3D space. Rotations can be combined through quaternion + multiplication. More information on quaternions can be found in the + documentation for QQuaternion. + + Before rotating the view, you should first decide the type + of rotation you want to perform: + + \list + \i Tilting or panning a fixed eye to reveal the scene in different + directions and orientations. This is equivalent to mounting a camera + on a fixed tripod and then adjusting the direction of view and + orientation with the tripod controls. + \i Rotating a moving viewer about the object of interest. This is + equivalent to moving the viewer around the object at a fixed distance, + but with the viewer always pointing at the object. + \endlist + + In the Camera class, the first type of rotation is performed with + rotateEye() and the second with rotateCenter(). Each of these functions + take a quaternion argument that defines the type of rotation to perform. + + The tilt(), pan(), and roll() functions return values that can help with + constructing the rotation quaternions to pass to rotateEye() and + rotateCenter(). Tilt and pan are also known as "pitch" and "yaw" in + flight dynamics. + + Three axes of rotation are used to compute the quaternions. The tilt() + quaternion is computed with respect to the side vector, the pan() + quaterion is computed with respect to the upVector(), and the roll() + quaternion is computed with respect to the view vector. + + The following example tilts the direction the eye() is pointing + by 5 degrees, and then pans by 45 degrees: + + \code + camera.rotateEye(camera.tilt(5)); + camera.rotateEye(camera.pan(45)); + \endcode + + The next example performs the two rotations in a single fluid step + (note that the rotation to be performed first is multiplied last): + + \code + camera.rotateEye(camera.pan(45) * camera.tilt(5)); + \endcode + + These two examples will not produce the same visual result, even though + it looks like they might. In the first example, the upVector() is tilted + before the pan() quaternion is computed. In the second example, the pan() + quaternion is computed using the original upVector(). + + This difference in behavior is useful in different situations. Some + applications may wish to perform all rotations relative to the original + viewer orientation, and other applications may wish to perform rotations + relative to the current viewer orientation. These application types + correspond to the second and first examples above. + + \section1 Moving the viewer or object of interest + + The simplest way to move the viewer or object of interest is to call + setEye() or setCenter() respectively and supply a new position in + world co-ordinates. However, this can lead to non-intuitive movements + if the viewer orientation is not aligned with the world co-ordinate axes. + + For example, subtracting 3 from the eye() x co-ordinate will appear to + move the eye left 3 units if the viewer orientation is aligned with the + world co-ordinate axes. But it will not appear to move the eye left 3 + units in any other orientation. + + The translation() function can be used to construct a translation + vector that is aligned with the viewer's current orientation. + Movement in the x direction will move along the side vector, movement in + the y direction will move along upVector(), and movement in the z + direction will move along the view vector. + + The translation() function is useful when implementing operations such + as "step left", "jump up", and so on where the movement should be + interpreted relative to the viewer's current orientation, not the + world co-ordinate axes, + + In other words, the following two lines of code are not equivalent + unless the view is oriented with the world co-ordinate axes: + + \code + camera.translateEye(camera.translation(x, y, z)); + + camera.translateEye(QVector3D(x, y, z)); + \endcode + + The following example translates the eye() position while + keeping the object of interest at the original center(): + + \code + camera.translateEye(camera.translation(x, y, z)); + \endcode + + The following example translates the object of interest at + center() while keeping the eye() position fixed: + + \code + camera.translateCenter(camera.translation(x, y, z)); + \endcode + + The following example translates both the eye() and the center() + by the same amount, which will maintain the original view vector. + + \code + QVector3D vector = camera.translation(x, y, z); + camera.translateEye(vector); + camera.translateCenter(vector); + \endcode + + It is important that the translation vector for center() be computed + before eye() is translated if both eye() and center() must move by the + same amount. The following code translates center() in the viewer + orientation after the eye() is translated: + + \code + camera.translateEye(camera.translation(x, y, z)); + camera.translateCenter(camera.translation(x, y, z)); + \endcode + + Translating both eye() and center() by the same amount can be used + to simulate sliding a viewer past a scene while always looking in the + same direction (for example, filming a scene from a moving vehicle). + An alternative is to fix the viewer and move the scene itself: + the negation of the translation() vector can be applied to the + scene's modelview transformation. + + \section1 Motion tracking + + Viewing of 3D scenes can be enhanced if there is some way to track + the motion of the viewer or the orientation of the display device. + + Applications can use setMotionAdjustment() to alter the position + of the camera to account for the viewer's motion. This indicates + the viewer's position relative to the center of the screen. + The motionAdjustment() vector is used to determine by how much + the camera position should be adjusted. The distance of the viewer + from the screen is ignored. + + On handheld devices that use accelerometers to determine the + orientation of the device, the down vector due to gravity + can be adjusted to serve as a motion tracking vector. + + The output of motion tracking hardware can be very noisy, + with minor fluctuations due to viewer twitch movements or + environmental factors. The application is responsible for + cleaning up the signal and removing these fluctuations before + setMotionAdjustment() is called. +*/ + +class CameraPrivate +{ +public: + CameraPrivate(); + + Camera::ProjectionType projectionType; + qreal fieldOfView; + qreal nearPlane; + qreal farPlane; + QSizeF viewSize; + QSizeF minViewSize; + int screenRotation; + QVector3D eye; + QVector3D upVector; + QVector3D center; + QVector3D viewVector; + qreal eyeSeparation; + QVector3D motionAdjustment; + QQuaternion motionQuaternion; + bool adjustForAspectRatio; +}; + +CameraPrivate::CameraPrivate() + : projectionType(Camera::Perspective), + fieldOfView(0.0f), + nearPlane(5.0f), + farPlane(1000.0f), + viewSize(2.0f, 2.0f), + minViewSize(0.0001f, 0.0001f), + screenRotation(0), + eye(0.0f, 0.0f, 10.0f), + upVector(0.0f, 1.0f, 0.0f), + center(0.0f, 0.0f, 0.0f), + viewVector(0.0f, 0.0f, -10.0f), + eyeSeparation(0.0f), + motionAdjustment(0.0f, 0.0f, 1.0f), + adjustForAspectRatio(true) +{ +} + +/*! + Constructs a Camera with the default properties and + attaches it to \a parent. +*/ +Camera::Camera(QObject *parent) + : QObject(parent), d_ptr(new CameraPrivate) +{ +} + +/*! + Destroys this Camera object. +*/ +Camera::~Camera() +{ + delete d_ptr; +} + +/*! + \enum Camera::ProjectionType + This enum defines the type of view projection to use for a Camera. + + \value Perspective Use a perspective view. + \value Orthographic Use an ortographic view. +*/ + +/*! + \property Camera::projectionType + \brief the projection type for this camera. The default is Perspective. +*/ +Camera::ProjectionType Camera::projectionType() const +{ + Q_D(const Camera); + return d->projectionType; +} + +void Camera::setProjectionType(Camera::ProjectionType value) +{ + Q_D(Camera); + if (d->projectionType != value) { + d->projectionType = value; + emit projectionChanged(); + } +} + +/*! + \property Camera::fieldOfView + \brief the field of view in degrees for a perspective projection. + + The default value is zero, which indicates a standard perspective + frustum view volume of viewSize() in size. If the value is not + zero, then viewSize() is ignored. + + This value is ignored if projectionType() is Orthographic. + + \sa viewSize() +*/ +qreal Camera::fieldOfView() const +{ + Q_D(const Camera); + return d->fieldOfView; +} + +void Camera::setFieldOfView(qreal angle) +{ + Q_D(Camera); + if (d->fieldOfView != angle) { + d->fieldOfView = angle; + emit projectionChanged(); + } +} + +/*! + \property Camera::nearPlane + \brief the distance from the eye to the near clipping plane. + The default value is 5. + + \sa farPlane() +*/ +qreal Camera::nearPlane() const +{ + Q_D(const Camera); + return d->nearPlane; +} + +void Camera::setNearPlane(qreal value) +{ + Q_D(Camera); + if (d->nearPlane != value) { + d->nearPlane = value; + emit projectionChanged(); + } +} + +/*! + \property Camera::farPlane + \brief the distance from the eye to the far clipping plane. + The default value is 1000. + + \sa nearPlane() +*/ +qreal Camera::farPlane() const +{ + Q_D(const Camera); + return d->farPlane; +} + +void Camera::setFarPlane(qreal value) +{ + Q_D(Camera); + if (d->farPlane != value) { + d->farPlane = value; + emit projectionChanged(); + } +} + +/*! + \property Camera::viewSize + \brief the size of the front of the projection viewing volume. + The viewing volume is assumed to be centered on the origin. + + The default value is (2, 2), which indicates a viewing volume front + from (-1, -1) to (1, 1). + + If the width or height of the viewing volume is negative, then the + co-ordinates will be swapped. For example, a size of (2, -2) will + flip the vertical axis upside down for a viewing volume from + (-1, 1) to (1, -1). + + The view size will be further adjusted by the window's aspect ratio + when projectionMatrix() is called. For best results, the width and + height of the view size should be the same to define an ideal square + viewing volume, which is then extended to the final viewing volume + width and height based on the window's aspect ratio. + + \sa projectionMatrix(), minViewSize() +*/ +QSizeF Camera::viewSize() const +{ + Q_D(const Camera); + return d->viewSize; +} + +void Camera::setViewSize(const QSizeF& size) +{ + Q_D(Camera); + QSizeF sz(size); + if (sz.width() < d->minViewSize.width()) + sz.setWidth(d->minViewSize.width()); + if (sz.height() < d->minViewSize.height()) + sz.setHeight(d->minViewSize.height()); + if (d->viewSize != sz) { + d->viewSize = sz; + emit projectionChanged(); + } +} + +/*! + \property Camera::minViewSize + \brief the minimum size of the front of the projection viewing volume. + + The minimum view size is used to clamp viewSize() when zooming + the camera closer to an object to prevent it "passing through" + the object and causing the scale factor to become infinite. + + The default value is (0.0001, 0.0001). + + \sa projectionMatrix(), viewSize() +*/ +QSizeF Camera::minViewSize() const +{ + Q_D(const Camera); + return d->minViewSize; +} + +void Camera::setMinViewSize(const QSizeF& size) +{ + Q_D(Camera); + if (d->viewSize != size) { + d->viewSize = size; + emit projectionChanged(); + } +} + +/*! + \property Camera::screenRotation + \brief the screen rotation angle in degrees. The default + value is 0. If this value is 90 or 270, then the view + will be flipped width for height. The only supported values + are 0, 90, 180, and 270. The screen is rotated around the + positive z axis. + + This setting is intended for simple screen rotations on handheld + devices that can be held in either portrait or landscape orientations. + The entire screen image is rotated so that it can be viewed in a + different device orientation. + + Use rotateEye() or rotateCenter() for more complex rotations + that are not aligned with 0, 90, 180, or 270 degrees. +*/ +int Camera::screenRotation() const +{ + Q_D(const Camera); + return d->screenRotation; +} + +void Camera::setScreenRotation(int angle) +{ + Q_D(Camera); + if (d->screenRotation != angle) { + d->screenRotation = angle; + emit projectionChanged(); + } +} + +/*! + \property Camera::xEye + \brief the x position of the viewer's eye. The default value is 0. + + \sa eye(), translateEye(), upVector(), center(), eyeSeparation() + \sa motionAdjustment() +*/ +qreal Camera::xEye() const +{ + Q_D(Camera); + return d->eye.x(); +} + +void Camera::setXEye(qreal value) +{ + Q_D(Camera); + d->eye.setX(value); + emit viewChanged(); +} + +/*! + \property Camera::yEye + \brief the y position of the viewer's eye. The default value is 0. + + \sa eye(), translateEye(), upVector(), center(), eyeSeparation() + \sa motionAdjustment() +*/ +qreal Camera::yEye() const +{ + Q_D(Camera); + return d->eye.y(); +} + +void Camera::setYEye(qreal value) +{ + Q_D(Camera); + d->eye.setY(value); + emit viewChanged(); +} + +/*! + \property Camera::zEye + \brief the z position of the viewer's eye. The default value is 10. + + \sa eye(), translateEye(), upVector(), center(), eyeSeparation() + \sa motionAdjustment() +*/ +qreal Camera::zEye() const +{ + Q_D(Camera); + return d->eye.z(); +} + +void Camera::setZEye(qreal value) +{ + Q_D(Camera); + d->eye.setZ(value); + emit viewChanged(); +} + +/*! + \property Camera::eye + \brief the position of the viewer's eye. The default value is (0, 0, 10). + + \sa translateEye(), upVector(), center(), eyeSeparation() + \sa motionAdjustment() +*/ +QVector3D Camera::eye() const +{ + Q_D(const Camera); + return d->eye; +} + +void Camera::setEye(const QVector3D& vertex) +{ + Q_D(Camera); + if (d->eye != vertex) { + d->eye = vertex; + d->viewVector = d->center - d->eye; + emit viewChanged(); + } +} + +/*! + Adjusts the position of the viewer's eye by the components of \a vector. + The final position is eye() + \a vector. + + \sa eye(), setEye(), translateCenter() +*/ +void Camera::translateEye(const QVector3D& vector) +{ + Q_D(Camera); + d->eye += vector; + d->viewVector = d->center - d->eye; + emit viewChanged(); +} + +/*! + \property Camera::upVector + \brief the up vector for the viewer. The default value is (0, 1, 0). + + \sa eye(), center() +*/ +QVector3D Camera::upVector() const +{ + Q_D(const Camera); + return d->upVector; +} + +void Camera::setUpVector(const QVector3D& vector) +{ + Q_D(Camera); + if (d->upVector != vector) { + d->upVector = vector; + emit viewChanged(); + } +} + +/*! + \property Camera::xCentre + \brief the x position of the center of the view visible from the viewer's + position. The default value is 0. + + \sa eye(), translateEye(), upVector(), center(), eyeSeparation() + \sa motionAdjustment() +*/ +qreal Camera::xCentre() const +{ + Q_D(Camera); + return d->center.x(); +} + +void Camera::setXCentre(qreal value) +{ + Q_D(Camera); + d->center.setX(value); + emit viewChanged(); +} + +/*! + \property Camera::yCentre + \brief the y position of the center of the view visible from the + viewer's position. The default value is 0. + + \sa eye(), translateEye(), upVector(), center(), eyeSeparation() + \sa motionAdjustment() +*/ +qreal Camera::yCentre() const +{ + Q_D(Camera); + return d->center.y(); +} + +void Camera::setYCentre(qreal value) +{ + Q_D(Camera); + d->center.setY(value); + emit viewChanged(); +} + +/*! + \property Camera::zCentre + \brief the z position of the center of the view visible from the + viewer's position. The default value is 0. + + \sa eye(), translateEye(), upVector(), center(), eyeSeparation() + \sa motionAdjustment() +*/ +qreal Camera::zCentre() const +{ + Q_D(Camera); + return d->center.z(); +} + +void Camera::setZCentre(qreal value) +{ + Q_D(Camera); + d->center.setZ(value); + emit viewChanged(); +} + +/*! + \property Camera::center + \brief the center of the view visible from the viewer's position. + The default value is (0, 0, 0). + + \sa translateCenter(), eye(), upVector() +*/ +QVector3D Camera::center() const +{ + Q_D(const Camera); + return d->center; +} + +void Camera::setCenter(const QVector3D& vertex) +{ + Q_D(Camera); + if (d->center != vertex) { + d->center = vertex; + d->viewVector = d->center - d->eye; + emit viewChanged(); + } +} + +/*! + Adjusts the center of the view by the components of \a vector. + The final position is center() + \a vector. + + \sa center(), setCenter(), translateEye() +*/ +void Camera::translateCenter(const QVector3D& vector) +{ + Q_D(Camera); + d->center += vector; + d->viewVector = d->center - d->eye; + emit viewChanged(); +} + +/*! + \property Camera::eyeSeparation + \brief the separation between the eyes when stereo viewing is in use, + with eye() specifying the mid-point between the eyes. The default + value is 0. + + \sa eye() +*/ +qreal Camera::eyeSeparation() const +{ + Q_D(const Camera); + return d->eyeSeparation; +} + +void Camera::setEyeSeparation(qreal value) +{ + Q_D(Camera); + if (d->eyeSeparation != value) { + d->eyeSeparation = value; + emit viewChanged(); + } +} + +/*! + \property Camera::motionAdjustment + \brief the adjustment vector to apply to the eye() for user motion. + + This property is typically used to implement motion tracking. + It is interpreted as a vector from the center of the screen to the + current position of the viewer. The angle between the motion + adjustment vector and the screen center is used to adjust the + position of the eye() when apply() is called. + + The default value is (0, 0, 1), which indicates a viewer + directly in front of the center of the screen. + + The units for the vector are unspecified. They could be + meters, centimeters, or the force due to gravity in various + directions from an accelerometer. The angle defined + by the vector is used to perform the adjustment, not its + magnitude. + + The output of motion tracking hardware can be very noisy, + with minor fluctuations due to viewer twitch movements or + environmental factors. The application is responsible for + cleaning up the signal and removing these fluctuations before + altering this property. + + \sa eye(), apply() +*/ + +QVector3D Camera::motionAdjustment() const +{ + Q_D(const Camera); + return d->motionAdjustment; +} + +void Camera::setMotionAdjustment(const QVector3D& vector) +{ + Q_D(Camera); + if (d->motionAdjustment != vector) { + d->motionAdjustment = vector; + if (vector.x() == 0.0f && vector.y() == 0.0f) { + // If the vector is centered, then don't perform any rotations. + d->motionQuaternion = QQuaternion(); + } else { + // Determine the pan and tilt angles from the vector. + QVector3D view = -vector.normalized(); + if (view.z() < 0.0f) + view = -view; + qreal xangle = asin(view.x()) * 180.0f / M_PI; + qreal yangle = asin(-view.y()) * 180.0f / M_PI; + + // Construct the pan and tilt quaternions. + if (qFuzzyIsNull(xangle)) + d->motionQuaternion = tilt(yangle); + else if (qFuzzyIsNull(yangle)) + d->motionQuaternion = pan(xangle); + else + d->motionQuaternion = tilt(yangle) * pan(xangle); + } + emit viewChanged(); + } +} + +/*! + \property Camera::adjustForAspectRatio + \brief the adjustment state of the aspect ratio in the viewing volume. + + By default, Camera adjusts the viewing volume for the aspect + ratio of the window so that pixels appear square without the + application needing to adjust viewSize() manually. + + If this property is false, then the aspect ratio adjustment is + not performed. +*/ + +bool Camera::adjustForAspectRatio() const +{ + Q_D(const Camera); + return d->adjustForAspectRatio; +} + +void Camera::setAdjustForAspectRatio(bool value) +{ + Q_D(Camera); + if (d->adjustForAspectRatio != value) { + d->adjustForAspectRatio = value; + emit viewChanged(); + } +} + +/*! + Returns the quaternion corresponding to tilting the view up or + down by \a angle degrees. The returned quaternion can be applied to + the eye() position with rotateEye() or to the center() position with + rotateCenter(). + + \sa pan(), roll(), rotateEye(), rotateCenter() +*/ +QQuaternion Camera::tilt(qreal angle) const +{ + Q_D(const Camera); + QVector3D side = QVector3D::crossProduct(d->viewVector, d->upVector); + return QQuaternion::fromAxisAndAngle(side, angle); +} + +/*! + Returns the quaternion corresponding to panning the view left or + right by \a angle degrees. The returned quaternion can be applied to + the eye() position with rotateEye() or to the center() position with + rotateCenter(). + + \sa tilt(), roll(), rotateEye(), rotateCenter() +*/ +QQuaternion Camera::pan(qreal angle) const +{ + Q_D(const Camera); + return QQuaternion::fromAxisAndAngle(d->upVector, angle); +} + +/*! + Returns the quaternion corresponding to rolling the view left or + right by \a angle degrees. The returned quaternion can be applied to + the eye() position with rotateEye() or to the center() position with + rotateCenter(). + + \sa tilt(), pan(), rotateEye(), rotateCenter() +*/ +QQuaternion Camera::roll(qreal angle) const +{ + Q_D(const Camera); + return QQuaternion::fromAxisAndAngle(d->viewVector, angle); +} + +/*! + Rotates the orientation of the eye() according to the quaternion \a q. + The eye() will remain in the same position, but the upVector() and + center() may be altered by the rotation. + + \sa rotateCenter(), tilt(), pan(), roll() +*/ +void Camera::rotateEye(const QQuaternion& q) +{ + Q_D(Camera); + d->upVector = q.rotatedVector(d->upVector); + d->viewVector = q.rotatedVector(d->viewVector); + d->center = d->eye + d->viewVector; + emit viewChanged(); +} + +/*! + Rotates the position and orientation of the eye() around center() + according to the quaternion \a q. The center() will remain in the + same position, but the upVector() and eye() may be altered by + the rotation. + + \sa rotateEye(), tilt(), pan(), roll() +*/ +void Camera::rotateCenter(const QQuaternion& q) +{ + Q_D(Camera); + d->upVector = q.rotatedVector(d->upVector); + d->viewVector = q.rotatedVector(d->viewVector); + d->eye = d->center - d->viewVector; + emit viewChanged(); +} + +/*! + Returns a translation vector that can be used to adjust the eye() + or center() by \a x units side-ways, \a y units up, + and \a z units forwards. + + This function is useful when implementing operations such as + "step left", "jump up", and so on where the movement should be + interpreted relative to the viewer's current orientation, not the + world co-ordinate axes, + + The translation vector can be applied to eye() or center() by + calling translateEye() or translateCenter() respectively. + + \sa translateEye(), translateCenter() +*/ +QVector3D Camera::translation(qreal x, qreal y, qreal z) const +{ + Q_D(const Camera); + QVector3D vector(0.0f, 0.0f, 0.0f); + if (x != 0.0f) + vector += QVector3D::normal(d->viewVector, d->upVector) * x; + if (y != 0.0f) + vector += d->upVector.normalized() * y; + if (z != 0.0f) + vector += d->viewVector.normalized() * z; + return vector; +} + +/*! + Returns the transformation matrix to apply to the projection matrix + to present the scene as viewed from the camera position. + + The \a aspectRatio specifies the aspect ratio of the window the + camera view is being displayed in. An \a aspectRatio of 1 indicates that + the window is square. An \a aspectRatio greater than 1 indicates that + the window is wider than it is high. An \a aspectRatio less than 1 + indicates that the window is higher than it is wide. + + \sa apply(), modelViewMatrix() +*/ +QMatrix4x4 Camera::projectionMatrix(qreal aspectRatio) const +{ + Q_D(const Camera); + QMatrix4x4 m; + if (!d->adjustForAspectRatio) + aspectRatio = 1.0f; + if (d->screenRotation != 0) { + m.rotate((qreal)(d->screenRotation), 0.0f, 0.0f, 1.0f); + if (d->screenRotation == 90 || d->screenRotation == 270) { + if (aspectRatio != 0.0f) + aspectRatio = 1.0f / aspectRatio; + } + } + if (d->projectionType == Perspective && d->fieldOfView != 0.0f) { + m.perspective(d->fieldOfView, aspectRatio, + d->nearPlane, d->farPlane); + } else { + qreal halfWidth = d->viewSize.width() / 2.0f; + qreal halfHeight = d->viewSize.height() / 2.0f; + if (aspectRatio > 1.0f) { + halfWidth *= aspectRatio; + } else if (aspectRatio > 0.0f && aspectRatio < 1.0f) { + halfHeight /= aspectRatio; + } + if (d->projectionType == Perspective) { + m.frustum(-halfWidth, halfWidth, -halfHeight, halfHeight, + d->nearPlane, d->farPlane); + } else { + m.ortho(-halfWidth, halfWidth, -halfHeight, halfHeight, + d->nearPlane, d->farPlane); + } + } + return m; +} + +/*! + Returns the transformation to apply to the modelview matrix + to present the scene as viewed from the eye() position. + + \sa apply(), projectionMatrix() +*/ +QMatrix4x4 Camera::modelViewMatrix() const +{ + Q_D(const Camera); + QMatrix4x4 m; + if (d->motionQuaternion.isIdentity()) { + m.lookAt(d->eye, d->center, d->upVector); + } else { + QVector3D up = d->motionQuaternion.rotatedVector(d->upVector); + QVector3D view = d->motionQuaternion.rotatedVector(d->viewVector); + QVector3D eye = d->center - view; + m.lookAt(eye, d->center, up); + } + return m; +} + +/*! + \fn void Camera::projectionChanged() + + This signal is emitted when one of projectionType(), fieldOfView(), + nearPlane(), farPlane(), viewSize(), or screenRotation() changes, + indicating a modification to the optical properties of the camera + looking at the scene. + + \sa viewChanged() +*/ + +/*! + \fn void Camera::viewChanged() + + This signal is emitted when one of eye(), upVector(), or center() + changes, indicating a modification to the viewer's position or + orientation. + + \sa projectionChanged() +*/ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/camera.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/camera.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,167 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 CAMERA_H +#define CAMERA_H + +#include +#include +#include +#include +#include + +class CameraPrivate; +class QGLPainter; + +class Camera : public QObject +{ + Q_OBJECT + Q_ENUMS(ProjectionType) + Q_PROPERTY(ProjectionType projectionType READ projectionType WRITE setProjectionType NOTIFY projectionChanged) + Q_PROPERTY(qreal fieldOfView READ fieldOfView WRITE setFieldOfView NOTIFY projectionChanged) + Q_PROPERTY(qreal nearPlane READ nearPlane WRITE setNearPlane NOTIFY projectionChanged) + Q_PROPERTY(qreal farPlane READ farPlane WRITE setFarPlane NOTIFY projectionChanged) + Q_PROPERTY(QSizeF viewSize READ viewSize WRITE setViewSize NOTIFY projectionChanged) + Q_PROPERTY(QSizeF minViewSize READ minViewSize WRITE setMinViewSize NOTIFY projectionChanged) + Q_PROPERTY(int screenRotation READ screenRotation WRITE setScreenRotation NOTIFY projectionChanged) + Q_PROPERTY(qreal xEye READ xEye WRITE setXEye NOTIFY viewChanged) + Q_PROPERTY(qreal yEye READ yEye WRITE setYEye NOTIFY viewChanged) + Q_PROPERTY(qreal zEye READ zEye WRITE setZEye NOTIFY viewChanged) + Q_PROPERTY(QVector3D eye READ eye WRITE setEye NOTIFY viewChanged) + Q_PROPERTY(QVector3D upVector READ upVector WRITE setUpVector NOTIFY viewChanged) + Q_PROPERTY(qreal xCentre READ xCentre WRITE setXCentre NOTIFY viewChanged) + Q_PROPERTY(qreal yCentre READ yCentre WRITE setYCentre NOTIFY viewChanged) + Q_PROPERTY(qreal zCentre READ zCentre WRITE setZCentre NOTIFY viewChanged) + Q_PROPERTY(QVector3D center READ center WRITE setCenter NOTIFY viewChanged) + Q_PROPERTY(qreal eyeSeparation READ eyeSeparation WRITE setEyeSeparation NOTIFY viewChanged) + Q_PROPERTY(QVector3D motionAdjustment READ motionAdjustment WRITE setMotionAdjustment DESIGNABLE false NOTIFY viewChanged) + Q_PROPERTY(bool adjustForAspectRatio READ adjustForAspectRatio WRITE setAdjustForAspectRatio NOTIFY viewChanged) +public: + explicit Camera(QObject *parent = 0); + ~Camera(); + + enum ProjectionType + { + Perspective, + Orthographic + }; + + Camera::ProjectionType projectionType() const; + void setProjectionType(Camera::ProjectionType value); + + qreal fieldOfView() const; + void setFieldOfView(qreal angle); + + qreal nearPlane() const; + void setNearPlane(qreal value); + + qreal farPlane() const; + void setFarPlane(qreal value); + + QSizeF viewSize() const; + void setViewSize(const QSizeF& size); + + QSizeF minViewSize() const; + void setMinViewSize(const QSizeF& size); + + int screenRotation() const; + void setScreenRotation(int angle); + + qreal xEye() const; + void setXEye(qreal value); + qreal yEye() const; + void setYEye(qreal value); + qreal zEye() const; + void setZEye(qreal value); + + QVector3D eye() const; + void setEye(const QVector3D& vertex); + + QVector3D upVector() const; + void setUpVector(const QVector3D& vector); + + qreal xCentre() const; + void setXCentre(qreal value); + qreal yCentre() const; + void setYCentre(qreal value); + qreal zCentre() const; + void setZCentre(qreal value); + + QVector3D center() const; + void setCenter(const QVector3D& vertex); + + qreal eyeSeparation() const; + void setEyeSeparation(qreal value); + + QVector3D motionAdjustment() const; + void setMotionAdjustment(const QVector3D& vector); + + bool adjustForAspectRatio() const; + void setAdjustForAspectRatio(bool value); + + QQuaternion tilt(qreal angle) const; + QQuaternion pan(qreal angle) const; + QQuaternion roll(qreal angle) const; + + void rotateEye(const QQuaternion& q); + void rotateCenter(const QQuaternion& q); + + QVector3D translation(qreal x, qreal y, qreal z) const; + + void translateEye(const QVector3D& vector); + void translateCenter(const QVector3D& vector); + + QMatrix4x4 projectionMatrix(qreal aspectRatio) const; + QMatrix4x4 modelViewMatrix() const; + +Q_SIGNALS: + void projectionChanged(); + void viewChanged(); + +private: + CameraPrivate *d_ptr; + + CameraPrivate *d_func() const { return d_ptr; } + + Q_DISABLE_COPY(Camera) +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/cube.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/cube.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,90 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 CUBE_H +#define CUBE_H + +#define CUBE_SIZE (6 * 6 * (3 + 3 + 2)) +static float const cubeVertices[CUBE_SIZE] = { + -0.5f, -0.5f, -0.5f, -1.0f, 0.0f, 0.0f, 1.0f, 0.0f, + -0.5f, -0.5f, 0.5f, -1.0f, 0.0f, 0.0f, 1.0f, 1.0f, + -0.5f, 0.5f, 0.5f, -1.0f, 0.0f, 0.0f, 0.0f, 1.0f, + -0.5f, -0.5f, -0.5f, -1.0f, 0.0f, 0.0f, 1.0f, 0.0f, + -0.5f, 0.5f, 0.5f, -1.0f, 0.0f, 0.0f, 0.0f, 1.0f, + -0.5f, 0.5f, -0.5f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, + + -0.5f, 0.5f, -0.5f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, + -0.5f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f, + 0.5f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, + -0.5f, 0.5f, -0.5f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, + 0.5f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0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1.0f, 1.0f, 1.0f, + -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 1.0f, + 0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 1.0f, 0.0f, + -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 1.0f, + -0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/cubehouse.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/cubehouse.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,31 @@ +TEMPLATE = app +TARGET = cubehouse +CONFIG += qt debug warn_on +requires(contains(QT_CONFIG,opengl)) +QT += opengl +include(../../examples.pri) +CONFIG+=mobility +MOBILITY+=sensors +INCLUDEPATH += ../../../src/sensors +SOURCES = \ + view.cpp \ + main.cpp \ + camera.cpp \ + light.cpp \ + lightmodel.cpp \ + material.cpp \ + painter.cpp +HEADERS = \ + view.h \ + teapot.h \ + cube.h \ + camera.h light.h \ + lightmodel.h \ + material.h \ + painter.h +contains(QT_CONFIG,opengles2) { + SOURCES += painter_shader.cpp +} else { + SOURCES += painter_fixed.cpp +} +RESOURCES = cubehouse.qrc diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/cubehouse.qrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/cubehouse.qrc Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,8 @@ + + + qtlogo.png + lighting.vsh + material.fsh + texture.fsh + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/light.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/light.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,676 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 "light.h" +#include +#include + +/*! + \class Light + \brief The Light class represents the parameters of a light in a 3D scene. + \since 4.7 + \ingroup qt3d + \ingroup qt3d::painting + + The functions in this class are a convenience wrapper for the OpenGL enumerations + which control each light source in a 3D scene. For the general ambient light in a + scene, not from a source refer to QGLLightModel. + + The ambient, diffuse and specular components of the light can be controlled for by + colour, and are set by the following functions: + \list + \o setAmbientColor() + \o setDiffuseColor() + \o setSpecularColor() + \endlist + Other than changing intensity by using darker color values, see below for how to + change the intensity of the light with distance from the lit object. + + Light sources are of two types, directional and positional, described by the + enumeration Light::LightType. By default a light source is directional. + + A directional light source is infinitely distant, such that its rays are all + parallel, to a direction \bold vector. This vector is set by the setDirection() + function. If the light source is not directional when setDirection() is called, its + type is changed to Directional. Directional light sources model real world light + sources like the sun. Such light sources are not located at any particular point + and affect the scene evenly. + + In the OpenGL model-view, a directional light is represented by a 4d vector, with + the 4th value, \c w, set to 0.0f. This means that the spatial data of the light + is not changed during certain transformations, for example translation. + See \l {3D Math Basis} for a fuller explanation of this. + + Calling the setPosition() function defines the light source to be located at a given + \bold point, a finite distance from the lit object. If the light source is not + positional when this function is called its type is changed to Positional. + + A positional light source models a real world lamp, such as a light-bulb or + car headlight. Since it is a finite distance from the lit object the rays diverge + and lighting calculations are thus more complex. + + In OpenGL the light has its spatial data \c w value set to 1.0f, resulting in the + lights position being changed along with other objects in the scene by transformations + such as translation. See \l {3D Math Basis} for more. + + Positional lights are by default point sources, like the light-bulb where light + radiates in all directions. Calling the spotAngle() function sets an angle to + restrict the light from a positional source to a cone like the car headlight. This + makes the light behave like a spotlight, where objects outside of the cone of the + light do not receive any light from that source. + + The spotlight may be further specified by its spotExponent() which dictates the + behaviour of the cutoff at the lighting cone; and by the attenuation functions + which are the terms in the following equation: + \image attenuation.png + here \c d is the distance of the light from the lit object, and A is the attenuation + factor which is a multiplier of the light source, determining its intensity at the + lit object. The terms in the denominator are: + \list + \o constantAttenuation() - default 1.0 + \raw HTML + kc + \endraw + \o linearAttenuation() - default 0.0 + \raw HTML + kl + \endraw + \o quadraticAttenuation() - default 0.0 + \raw HTML + kq + \endraw + \endlist + When these terms are large the light contributed by the source becomes much weaker + with distance from the object. +*/ + +class LightPrivate +{ +public: + LightPrivate() : + type(Light::Directional), + position(0.0f, 0.0f, 1.0f), + ambientColor(0, 0, 0, 255), + diffuseColor(255, 255, 255, 255), + specularColor(255, 255, 255, 255), + spotDirection(0.0f, 0.0f, -1.0f), + spotExponent(0.0f), + spotAngle(180.0f), + spotCosAngle(-1.0f), + constantAttenuation(1.0f), + linearAttenuation(0.0f), + quadraticAttenuation(0.0f) + { + } + + Light::LightType type; + QVector3D position; + QColor ambientColor; + QColor diffuseColor; + QColor specularColor; + QVector3D spotDirection; + qreal spotExponent; + qreal spotAngle; + qreal spotCosAngle; + qreal constantAttenuation; + qreal linearAttenuation; + qreal quadraticAttenuation; +}; + + +/*! + \enum Light::LightType + This enum defines the possible types of light. + + \value Directional The default. Directional lights are infinitely + distant from the lit object, and its rays are parallel to a + direction vector. Use setDirection() to make a light Directional. + \value Positional Positional lights are a finite distance from the + lit object. Complex lighting with spot-lights, and attenuation + are enabled with Positional lighting. Use setPosition() to + make a light Positional. +*/ + +/*! + Constructs a new light parameters object with default values + and attaches it to \a parent. +*/ +Light::Light(QObject *parent) + : QObject(parent), d_ptr(new LightPrivate) +{ +} + +/*! + Destroys this light parameters object. +*/ +Light::~Light() +{ +} + +/*! + \property Light::type + \brief the type of this light; Positional or Directional. + + \sa position(), direction() +*/ +Light::LightType Light::type() const +{ + Q_D(const Light); + return d->type; +} + +/*! + \property Light::position + \brief the position of this light if it is Positional; or a null + QVector3D if it is Directional. By default, the light is Directional. + + For a Positional light, the return value is the location in model space + of the light, at some finite distance from the origin. The value is + transformed by the model-view transformation when the light + parameters are applied. + + When the light is Positional OpenGL will obey other parameters relating + to the light's position, such as attenuation and spot angle. + + Setting the position converts the light from Directional to Positional. + + \sa direction(), type(), positionChanged() +*/ +QVector3D Light::position() const +{ + Q_D(const Light); + if (d->type == Positional) + return d->position; + else + return QVector3D(); +} + +void Light::setPosition(const QVector3D& point) +{ + Q_D(Light); + if (d->type == Positional) { + if (d->position != point) { + // Only the position() has changed. + d->position = point; + emit positionChanged(); + emit lightChanged(); + } + } else { + // Both the position() and direction() are changed. + d->type = Positional; + d->position = point; + emit positionChanged(); + emit directionChanged(); + emit lightChanged(); + } +} + +/*! + \property Light::direction + \brief the direction of this light if it is Directional; or a null + QVector3D if it is Positional. By default, the light is Directional. + + For a Directional light, the return value is the direction vector of + an infinitely distant directional light, like the sun. + + The default value is (0, 0, 1), for a directional light pointing along + the positive z-axis. + + OpenGL will ignore other parameters such as attenuation and spot angle + when this value is set, since a directional light has no location. + In order to set the direction of a spot light, use the setSpotDirection() + function. + + Setting the direction converts the light from Positional to Directional. + + \sa position(), type(), directionChanged() +*/ +QVector3D Light::direction() const +{ + Q_D(const Light); + if (d->type == Directional) + return d->position; + else + return QVector3D(); +} + +void Light::setDirection(const QVector3D& value) +{ + Q_D(Light); + if (d->type == Directional) { + if (d->position != value) { + // Only the direction() has changed. + d->position = value; + emit directionChanged(); + emit lightChanged(); + } + } else { + // Both the position() and direction() are changed. + d->type = Directional; + d->position = value; + emit positionChanged(); + emit directionChanged(); + emit lightChanged(); + } +} + +/*! + \property Light::ambientColor + \brief the ambient color of this light. The default value is black. + + \sa diffuseColor(), specularColor(), ambientColorChanged() +*/ +QColor Light::ambientColor() const +{ + Q_D(const Light); + return d->ambientColor; +} + +void Light::setAmbientColor(const QColor& value) +{ + Q_D(Light); + if (d->ambientColor != value) { + d->ambientColor = value; + emit ambientColorChanged(); + emit lightChanged(); + } +} + +/*! + \property Light::diffuseColor + \brief the diffuse color of this light. The default value is white. + + \sa ambientColor(), specularColor(), diffuseColorChanged() +*/ +QColor Light::diffuseColor() const +{ + Q_D(const Light); + return d->diffuseColor; +} + +void Light::setDiffuseColor(const QColor& value) +{ + Q_D(Light); + if (d->diffuseColor != value) { + d->diffuseColor = value; + emit diffuseColorChanged(); + emit lightChanged(); + } +} + +/*! + \property Light::specularColor + \brief the specular color of this light. The default value is white. + + \sa ambientColor(), diffuseColor(), specularColorChanged() +*/ +QColor Light::specularColor() const +{ + Q_D(const Light); + return d->specularColor; +} + +void Light::setSpecularColor(const QColor& value) +{ + Q_D(Light); + if (d->specularColor != value) { + d->specularColor = value; + emit specularColorChanged(); + emit lightChanged(); + } +} + +/*! + \property Light::spotDirection + \brief the direction that a spot-light is shining in. + + A spotlight is a positional light that has a value other than the default + for spot angle. The default value is (0, 0, -1). + + This parameter has no effect on a Directional light. + + \sa spotExponent(), spotDirectionChanged() +*/ +QVector3D Light::spotDirection() const +{ + Q_D(const Light); + return d->spotDirection; +} + +void Light::setSpotDirection(const QVector3D& vector) +{ + Q_D(Light); + if (d->spotDirection != vector) { + d->spotDirection = vector; + emit spotDirectionChanged(); + emit lightChanged(); + } +} + +/*! + \property Light::spotExponent + \brief the exponent value between 0 and 128 that indicates the + intensity distribution of a spot-light. The default value is 0, + indicating uniform light distribution. + + This parameter has no effect on a Directional light. + + \sa spotAngle(), setPosition(), spotExponentChanged() +*/ +qreal Light::spotExponent() const +{ + Q_D(const Light); + return d->spotExponent; +} + +void Light::setSpotExponent(qreal value) +{ + Q_D(Light); + if (d->spotExponent != value) { + d->spotExponent = value; + emit spotExponentChanged(); + emit lightChanged(); + } +} + +/*! + \property Light::spotAngle + \brief the angle over which light is spread from this light. + It should be between 0 and 90 for spot lights, and 180 for + uniform light distribution from a remote light source. + The default value is 180. + + This parameter has no effect on a Directional light. + + \sa spotCosAngle(), spotAngleChanged() +*/ +qreal Light::spotAngle() const +{ + Q_D(const Light); + return d->spotAngle; +} + +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + +void Light::setSpotAngle(qreal value) +{ + Q_D(Light); + if (d->spotAngle != value) { + d->spotAngle = value; + if (value != 180.0f) + d->spotCosAngle = qCos(value * M_PI / 180.0f); + else + d->spotCosAngle = -1.0f; + emit spotAngleChanged(); + emit lightChanged(); + } +} + +/*! + Returns the cosine of spotAngle(), or -1 if spotAngle() is 180. + + The cosine of spotAngle() is useful in lighting algorithms. + This function returns a cached copy of the cosine so that it + does not need to be computed every time the lighting parameters + are read. + + \sa spotAngle() +*/ +qreal Light::spotCosAngle() const +{ + Q_D(const Light); + return d->spotCosAngle; +} + +/*! + \property Light::constantAttenuation + \brief the constant light attenuation factor. The default value is 1. + + This parameter has no effect on a Directional light. + + \sa linearAttenuation(), quadraticAttenuation() + \sa constantAttenuationChanged() +*/ +qreal Light::constantAttenuation() const +{ + Q_D(const Light); + return d->constantAttenuation; +} + +void Light::setConstantAttenuation(qreal value) +{ + Q_D(Light); + if (d->constantAttenuation != value) { + d->constantAttenuation = value; + emit constantAttenuationChanged(); + emit lightChanged(); + } +} + +/*! + \property Light::linearAttenuation + \brief the linear light attenuation factor. The default value is 0. + + This parameter has no effect on a Directional light. + + \sa constantAttenuation(), quadraticAttenuation() + \sa linearAttenuationChanged() +*/ +qreal Light::linearAttenuation() const +{ + Q_D(const Light); + return d->linearAttenuation; +} + +void Light::setLinearAttenuation(qreal value) +{ + Q_D(Light); + if (d->linearAttenuation != value) { + d->linearAttenuation = value; + emit linearAttenuationChanged(); + emit lightChanged(); + } +} + +/*! + \property Light::quadraticAttenuation + \brief the quadratic light attenuation factor. The default value is 0. + + This parameter has no effect on a Directional light. + + \sa constantAttenuation(), linearAttenuation() + \sa quadraticAttenuationChanged() +*/ +qreal Light::quadraticAttenuation() const +{ + Q_D(const Light); + return d->quadraticAttenuation; +} + +void Light::setQuadraticAttenuation(qreal value) +{ + Q_D(Light); + if (d->quadraticAttenuation != value) { + d->quadraticAttenuation = value; + emit quadraticAttenuationChanged(); + emit lightChanged(); + } +} + +/*! + Returns the position of this light after transforming it from + world co-ordinates to eye co-ordinates using \a transform. + + If the light is Directional, then direction() will be transformed, + after setting the w co-ordinate to 0. If the light is Positional, + then position() will be transformed after setting the w co-ordinate + to 1. + + The returned result is suitable to be applied to the GL_POSITION + property of \c{glLight()}, assuming that the modelview transformation + in the GL context is set to the identity. + + \sa eyeSpotDirection() +*/ +QVector4D Light::eyePosition(const QMatrix4x4& transform) const +{ + Q_D(const Light); + if (d->type == Directional) + return transform * QVector4D(d->position, 0.0f); + else + return transform * QVector4D(d->position, 1.0f); +} + +/*! + Returns the spotDirection() for this light after transforming it + from world co-ordinates to eye co-ordinates using the top-left + 3x3 submatrix within \a transform. + + The returned result is suitable to be applied to the GL_SPOT_DIRECTION + property of \c{glLight()}, assuming that the modelview transformation + in the GL context is set to the identity. + + \sa eyePosition() +*/ +QVector3D Light::eyeSpotDirection + (const QMatrix4x4& transform) const +{ + Q_D(const Light); + return transform.mapVector(d->spotDirection); +} + +/*! + \fn void Light::positionChanged() + + This signal is emitted when position() changes, or when the type() + changes between Directional and Positional. + + \sa position(), lightChanged() +*/ + +/*! + \fn void Light::directionChanged() + + This signal is emitted when direction() changes, or when the type() + changes between Directional and Positional. + + \sa direction(), lightChanged() +*/ + +/*! + \fn void Light::ambientColorChanged() + + This signal is emitted when ambientColor() changes. + + \sa ambientColor(), lightChanged() +*/ + +/*! + \fn void Light::diffuseColorChanged() + + This signal is emitted when diffuseColor() changes. + + \sa diffuseColor(), lightChanged() +*/ + +/*! + \fn void Light::specularColorChanged() + + This signal is emitted when specularColor() changes. + + \sa specularColor(), lightChanged() +*/ + +/*! + \fn void Light::spotDirectionChanged() + + This signal is emitted when spotDirection() changes. + + \sa spotDirection(), lightChanged() +*/ + +/*! + \fn void Light::spotExponentChanged() + + This signal is emitted when spotExponent() changes. + + \sa spotExponent(), lightChanged() +*/ + +/*! + \fn void Light::spotAngleChanged() + + This signal is emitted when spotAngle() changes. + + \sa spotAngle(), lightChanged() +*/ + +/*! + \fn void Light::constantAttenuationChanged() + + This signal is emitted when constantAttenuation() changes. + + \sa constantAttenuation(), lightChanged() +*/ + +/*! + \fn void Light::linearAttenuationChanged() + + This signal is emitted when linearAttenuation() changes. + + \sa linearAttenuation(), lightChanged() +*/ + +/*! + \fn void Light::quadraticAttenuationChanged() + + This signal is emitted when quadraticAttenuation() changes. + + \sa quadraticAttenuation(), lightChanged() +*/ + +/*! + \fn void Light::lightChanged() + + This signal is emitted when any of the properties on the light changes. +*/ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/light.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/light.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,142 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 LIGHT_H +#define LIGHT_H + +#include +#include +#include +#include +#include + +class LightPrivate; +QT_BEGIN_NAMESPACE +class QMatrix4x4; +QT_END_NAMESPACE + +class Light : public QObject +{ + Q_OBJECT + Q_ENUMS(LightType) + Q_PROPERTY(LightType type READ type) + Q_PROPERTY(QVector3D position READ position WRITE setPosition NOTIFY positionChanged) + Q_PROPERTY(QVector3D direction READ direction WRITE setDirection NOTIFY directionChanged) + Q_PROPERTY(QColor ambientColor READ ambientColor WRITE setAmbientColor NOTIFY ambientColorChanged) + Q_PROPERTY(QColor diffuseColor READ diffuseColor WRITE setDiffuseColor NOTIFY diffuseColorChanged) + Q_PROPERTY(QColor specularColor READ specularColor WRITE setSpecularColor NOTIFY specularColorChanged) + Q_PROPERTY(QVector3D spotDirection READ spotDirection WRITE setSpotDirection NOTIFY spotDirectionChanged) + Q_PROPERTY(qreal spotExponent READ spotExponent WRITE setSpotExponent NOTIFY spotExponentChanged) + Q_PROPERTY(qreal spotAngle READ spotAngle WRITE setSpotAngle NOTIFY spotAngleChanged) + Q_PROPERTY(qreal constantAttenuation READ constantAttenuation WRITE setConstantAttenuation NOTIFY constantAttenuationChanged) + Q_PROPERTY(qreal linearAttenuation READ linearAttenuation WRITE setLinearAttenuation NOTIFY linearAttenuationChanged) + Q_PROPERTY(qreal quadraticAttenuation READ quadraticAttenuation WRITE setQuadraticAttenuation NOTIFY quadraticAttenuationChanged) +public: + enum LightType { + Directional, + Positional + }; + + Light(QObject *parent = 0); + ~Light(); + + Light::LightType type() const; + + QVector3D position() const; + void setPosition(const QVector3D& value); + + QVector3D direction() const; + void setDirection(const QVector3D& value); + + QColor ambientColor() const; + void setAmbientColor(const QColor& value); + + QColor diffuseColor() const; + void setDiffuseColor(const QColor& value); + + QColor specularColor() const; + void setSpecularColor(const QColor& value); + + QVector3D spotDirection() const; + void setSpotDirection(const QVector3D& value); + + qreal spotExponent() const; + void setSpotExponent(qreal value); + + qreal spotAngle() const; + void setSpotAngle(qreal value); + + qreal spotCosAngle() const; + + qreal constantAttenuation() const; + void setConstantAttenuation(qreal value); + + qreal linearAttenuation() const; + void setLinearAttenuation(qreal value); + + qreal quadraticAttenuation() const; + void setQuadraticAttenuation(qreal value); + + QVector4D eyePosition(const QMatrix4x4& transform) const; + QVector3D eyeSpotDirection(const QMatrix4x4& transform) const; + +Q_SIGNALS: + void positionChanged(); + void directionChanged(); + void ambientColorChanged(); + void diffuseColorChanged(); + void specularColorChanged(); + void spotDirectionChanged(); + void spotExponentChanged(); + void spotAngleChanged(); + void constantAttenuationChanged(); + void linearAttenuationChanged(); + void quadraticAttenuationChanged(); + void lightChanged(); + +private: + QScopedPointer d_ptr; + + Q_DECLARE_PRIVATE(Light) + Q_DISABLE_COPY(Light) +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/lighting.vsh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/lighting.vsh Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,81 @@ +// Algorithm from section 2.14.1 of OpenGL 2.1 specification. + +attribute highp vec4 vertex; +attribute highp vec3 normal; +attribute highp vec4 texcoord; +uniform mediump mat4 matrix; +uniform mediump mat4 modelView; +uniform mediump mat3 normalMatrix; +varying highp vec4 qTexCoord; + +uniform mediump vec4 scli; // Specular intensity of the light +uniform mediump vec3 pli; // Position of the light +uniform mediump float pliw; // 0 for directional, 1 for positional. +uniform mediump vec4 acm; // Ambient color of the material +uniform mediump vec4 dcm; // Diffuse color of the material +uniform mediump vec4 scm; // Specular color of the material +uniform mediump float srm; // Specular exponent of the material +uniform mediump vec4 acs; // Light model's ambient color of the scene +uniform bool viewerAtInfinity; // Light model indicates viewer at infinity + +varying mediump vec4 qColor; +varying mediump vec4 qSecondaryColor; + +void qLightVertex(vec4 vertex, vec3 normal) +{ + int i, material; + vec3 toEye, toLight, h; + float angle, spot, attenuation; + vec4 color, scolor; + vec4 adcomponent, scomponent; + + // Start with the material's emissive color and the ambient scene color. + // ecm is assumed to be black. + color = acm * acs; + scolor = vec4(0, 0, 0, 0); + + // Vector from the vertex to the eye position (i.e. the origin). + if (viewerAtInfinity) + toEye = vec3(0, 0, 1); + else + toEye = normalize(-vertex.xyz); + + // Determine the cosine of the angle between the normal and the + // vector from the vertex to the light. + if (pliw == 0.0) + toLight = normalize(pli); + else + toLight = normalize(pli - vertex.xyz); + angle = max(dot(normal, toLight), 0.0); + + // Calculate the ambient and diffuse light components. + // Assumptions: acli = (0, 0, 0, 1), dcli = (1, 1, 1, 1). + adcomponent = acm * vec4(0, 0, 0, 1) + angle * dcm; + + // Calculate the specular light components. + if (angle != 0.0) { + h = normalize(toLight + toEye); + angle = max(dot(normal, h), 0.0); + scomponent = pow(angle, srm) * scm; // scli = (1, 1, 1, 1). + } else { + scomponent = vec4(0, 0, 0, 0); + } + + // Add up the color components we computed. + color += adcomponent; + scolor += scomponent; + + // Generate the final output colors. + float alpha = dcm.a; + qColor = vec4(clamp(color.rgb, 0.0, 1.0), alpha); + qSecondaryColor = clamp(scolor, 0.0, 1.0); +} + +void main(void) +{ + gl_Position = matrix * vertex; + highp vec4 vertex = modelView * vertex; + highp vec3 norm = normalize(normalMatrix * normal); + qLightVertex(vertex, norm); + qTexCoord = texcoord; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/lightmodel.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/lightmodel.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,244 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 "lightmodel.h" + +/*! + \class LightModel + \brief The LightModel class defines the lighting model to use for the scene. + \since 4.7 + \ingroup qt3d + \ingroup qt3d::painting +*/ + +/*! + \enum LightModel::Model + This enum defines the type of lighting model to use: one-sided or two-sided. + + \value OneSided One-sided lighting, with the front face material used for both front and back faces. + \value TwoSided Two-sided lighting, with separate front and back face materials. +*/ + +/*! + \enum LightModel::ColorControl + This enum controls the number of colors to be generated by the lighting computation. + + \value SingleColor A single color is generated by the lighting computation. + \value SeparateSpecularColor A separate specular color computation is + performed and then summed into the pixel color after texture mapping. +*/ + +/*! + \enum LightModel::ViewerPosition + This enum defines the position of the viewer for the purposes of lighting calculations. + + \value ViewerAtInfinity The viewer is at infinity along the -z axis. + \value LocalViewer The viewer is at the local origin in eye coordinates. +*/ + +class LightModelPrivate +{ +public: + LightModelPrivate() + : model(LightModel::OneSided), + colorControl(LightModel::SingleColor), + viewerPosition(LightModel::ViewerAtInfinity) + { + ambientSceneColor.setRgbF(0.2, 0.2, 0.2, 1.0); + } + + LightModel::Model model; + LightModel::ColorControl colorControl; + LightModel::ViewerPosition viewerPosition; + QColor ambientSceneColor; +}; + +/*! + Constructs a light model object with default values and attach + it to \a parent. +*/ +LightModel::LightModel(QObject *parent) + : QObject(parent), d_ptr(new LightModelPrivate) +{ +} + +/*! + Destroys this light model. +*/ +LightModel::~LightModel() +{ +} + +/*! + \property LightModel::model + \brief the lighting model to use, either OneSided or TwoSided. + The default is OneSided. + + \sa modelChanged() +*/ +LightModel::Model LightModel::model() const +{ + Q_D(const LightModel); + return d->model; +} + +void LightModel::setModel(LightModel::Model value) +{ + Q_D(LightModel); + if (d->model != value) { + d->model = value; + emit modelChanged(); + emit lightModelChanged(); + } +} + +/*! + \property LightModel::colorControl + \brief the color control mode, either SingleColor or + SeparateSpecularColor. The default value is SingleColor. + + If SingleColor is specified, then a single color is calculated + by the lighting computation for a vertex. If SeparateSpecularColor + is specified, then a separate specular color computation is + performed and then summed into the pixel color after texture mapping. + + \sa colorControlChanged() +*/ +LightModel::ColorControl LightModel::colorControl() const +{ + Q_D(const LightModel); + return d->colorControl; +} + +void LightModel::setColorControl(LightModel::ColorControl value) +{ + Q_D(LightModel); + if (d->colorControl != value) { + d->colorControl = value; + emit colorControlChanged(); + emit lightModelChanged(); + } +} + +/*! + \property LightModel::viewerPosition + \brief the viewer position, either ViewerAtInfinity or LocalViewer. + The default value is ViewerAtInfinity. + + \sa viewerPositionChanged() +*/ +LightModel::ViewerPosition LightModel::viewerPosition() const +{ + Q_D(const LightModel); + return d->viewerPosition; +} + +void LightModel::setViewerPosition(LightModel::ViewerPosition value) +{ + Q_D(LightModel); + if (d->viewerPosition != value) { + d->viewerPosition = value; + emit viewerPositionChanged(); + emit lightModelChanged(); + } +} + +/*! + \property LightModel::ambientSceneColor + \brief the ambient color of the entire scene. The default value + is (0.2, 0.2, 0.2, 1.0). + + \sa ambientSceneColorChanged() +*/ +QColor LightModel::ambientSceneColor() const +{ + Q_D(const LightModel); + return d->ambientSceneColor; +} + +void LightModel::setAmbientSceneColor(const QColor& value) +{ + Q_D(LightModel); + if (d->ambientSceneColor != value) { + d->ambientSceneColor = value; + emit ambientSceneColorChanged(); + emit lightModelChanged(); + } +} + +/*! + \fn void LightModel::modelChanged() + + This signal is emitted when model() changes. + + \sa model(), lightModelChanged() +*/ + +/*! + \fn void LightModel::colorControlChanged() + + This signal is emitted when colorControl() changes. + + \sa colorControl(), lightModelChanged() +*/ + +/*! + \fn void LightModel::viewerPositionChanged() + + This signal is emitted when viewerPosition() changes. + + \sa viewerPosition(), lightModelChanged() +*/ + +/*! + \fn void LightModel::ambientSceneColorChanged() + + This signal is emitted when ambientSceneColor() changes. + + \sa ambientSceneColor(), lightModelChanged() +*/ + +/*! + \fn void LightModel::lightModelChanged() + + This signal is emitted when one of model(), colorControl(), + viewerPosition(), or ambientSceneColor() changes. +*/ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/lightmodel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/lightmodel.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,109 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 LIGHTMODEL_H +#define LIGHTMODEL_H + +#include +#include +#include + +class LightModelPrivate; + +class LightModel : public QObject +{ + Q_OBJECT + Q_ENUMS(Model) + Q_ENUMS(ColorControl) + Q_ENUMS(ViewerPosition) + Q_PROPERTY(Model model READ model WRITE setModel NOTIFY modelChanged) + Q_PROPERTY(ColorControl colorControl READ colorControl WRITE setColorControl NOTIFY colorControlChanged) + Q_PROPERTY(ViewerPosition viewerPosition READ viewerPosition WRITE setViewerPosition NOTIFY viewerPositionChanged) + Q_PROPERTY(QColor ambientSceneColor READ ambientSceneColor WRITE setAmbientSceneColor NOTIFY ambientSceneColorChanged) +public: + explicit LightModel(QObject *parent = 0); + ~LightModel(); + + enum Model + { + OneSided, + TwoSided + }; + + enum ColorControl + { + SingleColor, + SeparateSpecularColor + }; + + enum ViewerPosition + { + ViewerAtInfinity, + LocalViewer + }; + + LightModel::Model model() const; + void setModel(LightModel::Model value); + + LightModel::ColorControl colorControl() const; + void setColorControl(LightModel::ColorControl value); + + LightModel::ViewerPosition viewerPosition() const; + void setViewerPosition(LightModel::ViewerPosition value); + + QColor ambientSceneColor() const; + void setAmbientSceneColor(const QColor& value); + +Q_SIGNALS: + void modelChanged(); + void colorControlChanged(); + void viewerPositionChanged(); + void ambientSceneColorChanged(); + void lightModelChanged(); + +private: + QScopedPointer d_ptr; + + Q_DECLARE_PRIVATE(LightModel) + Q_DISABLE_COPY(LightModel) +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,58 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 +#include "view.h" + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + View view; + if (QApplication::arguments().contains("-framerate")) + view.setShowFrameRate(true); + if (QApplication::arguments().contains("-maximize")) + view.showMaximized(); + else if (QApplication::arguments().contains("-fullscreen")) + view.showFullScreen(); + else + view.show(); + return app.exec(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/material.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/material.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,332 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 "material.h" + +/*! + \class Material + \brief The Material class describes material properties for OpenGL drawing. + \since 4.7 + \ingroup qt3d + \ingroup qt3d::painting +*/ + +class MaterialPrivate +{ +public: + explicit MaterialPrivate(); + + QColor basicColor; + QColor ambientColor; + QColor diffuseColor; + QColor specularColor; + QColor emittedLight; + qreal shininess; +}; + +MaterialPrivate::MaterialPrivate() + : basicColor(255, 255, 255, 255), + specularColor(0, 0, 0, 255), + emittedLight(0, 0, 0, 255), + shininess(0) +{ + ambientColor.setRgbF(0.2f, 0.2f, 0.2f, 1.0f); + diffuseColor.setRgbF(0.8f, 0.8f, 0.8f, 1.0f); +} + +/*! + Constructs a Material object with its default values, + and attaches it to \a parent. +*/ +Material::Material(QObject *parent) + : QObject(parent), d_ptr(new MaterialPrivate) +{ +} + +/*! + Destroys this Material object. +*/ +Material::~Material() +{ +} + +/*! + \property Material::basicColor + \brief the basic color of the material. The default value + is (1.0, 1.0, 1.0, 1.0). + + The basic color is used by effects that don't implement + material-based lighting. It is ignored by material-based + lighting effects. + + \sa ambientColor(), diffuseColor(), basicColorChanged(), setColor() +*/ +QColor Material::basicColor() const +{ + Q_D(const Material); + return d->basicColor; +} + +void Material::setBasicColor(const QColor& value) +{ + Q_D(Material); + if (d->basicColor != value) { + d->basicColor = value; + emit basicColorChanged(); + emit materialChanged(); + } +} + +/*! + \property Material::ambientColor + \brief the ambient color of the material. The default value + is (0.2, 0.2, 0.2, 1.0). + + \sa diffuseColor(), specularColor(), ambientColorChanged() +*/ +QColor Material::ambientColor() const +{ + Q_D(const Material); + return d->ambientColor; +} + +void Material::setAmbientColor(const QColor& value) +{ + Q_D(Material); + if (d->ambientColor != value) { + d->ambientColor = value; + emit ambientColorChanged(); + emit materialChanged(); + } +} + +/*! + \property Material::diffuseColor + \brief the diffuse color of the material. The default value + is (0.8, 0.8, 0.8, 1.0). + + \sa ambientColor(), specularColor(), diffuseColorChanged() +*/ +QColor Material::diffuseColor() const +{ + Q_D(const Material); + return d->diffuseColor; +} + +void Material::setDiffuseColor(const QColor& value) +{ + Q_D(Material); + if (d->diffuseColor != value) { + d->diffuseColor = value; + emit diffuseColorChanged(); + emit materialChanged(); + } +} + +/*! + \property Material::specularColor + \brief the specular color of the material. The default value + is (0, 0, 0, 1). + + \sa ambientColor(), diffuseColor(), specularColorChanged() +*/ +QColor Material::specularColor() const +{ + Q_D(const Material); + return d->specularColor; +} + +void Material::setSpecularColor(const QColor& value) +{ + Q_D(Material); + if (d->specularColor != value) { + d->specularColor = value; + emit specularColorChanged(); + emit materialChanged(); + } +} + +/*! + \property Material::emittedLight + \brief the emitted light intensity of the material. + The default value is (0.0, 0.0, 0.0, 1.0), which indicates + that the material does not emit any light. + + \sa emittedLightChanged() +*/ +QColor Material::emittedLight() const +{ + Q_D(const Material); + return d->emittedLight; +} + +void Material::setEmittedLight(const QColor& value) +{ + Q_D(Material); + if (d->emittedLight != value) { + d->emittedLight = value; + emit emittedLightChanged(); + emit materialChanged(); + } +} + +/*! + \property Material::color + \brief the overall color of the material. The default value + is (1.0, 1.0, 1.0, 1.0). + + This is a convenience property. When read it returns basicColor(). + When written, it sets basicColor() to the value, ambientColor() + to 20% of the value, and diffuseColor() to 80% of the value. + The result is that regardless of whether lighting is used or not, + the material will appear to have a similar color. + + \sa basicColor(), ambientColor(), diffuseColor() +*/ +QColor Material::color() const +{ + Q_D(const Material); + return d->basicColor; +} + +void Material::setColor(const QColor& value) +{ + Q_D(Material); + d->basicColor = value; + d->ambientColor.setRgbF + (value.redF() * 0.2f, value.greenF() * 0.2f, + value.blueF() * 0.2f, value.alphaF()); + d->diffuseColor.setRgbF + (value.redF() * 0.8f, value.greenF() * 0.8f, + value.blueF() * 0.8f, value.alphaF()); + emit basicColorChanged(); + emit ambientColorChanged(); + emit diffuseColorChanged(); + emit materialChanged(); +} + +/*! + \property Material::shininess + \brief the specular exponent of the material, or how shiny it is. + Must be between 0 and 128. The default value is 0. A value outside + this range will be clamped to the range when the property is set. + + \sa shininessChanged() +*/ +qreal Material::shininess() const +{ + Q_D(const Material); + return d->shininess; +} + +void Material::setShininess(qreal value) +{ + Q_D(Material); + if (value < 0) + value = 0; + else if (value > 128) + value = 128; + if (d->shininess != value) { + d->shininess = value; + emit shininessChanged(); + emit materialChanged(); + } +} + +/*! + \fn void Material::basicColorChanged() + + This signal is emitted when basicColor() changes. + + \sa basicColor(), setBasicColor(), materialChanged() +*/ + +/*! + \fn void Material::ambientColorChanged() + + This signal is emitted when ambientColor() changes. + + \sa ambientColor(), setAmbientColor(), materialChanged() +*/ + +/*! + \fn void Material::diffuseColorChanged() + + This signal is emitted when diffuseColor() changes. + + \sa diffuseColor(), setDiffuseColor(), materialChanged() +*/ + +/*! + \fn void Material::specularColorChanged() + + This signal is emitted when specularColor() changes. + + \sa specularColor(), setSpecularColor(), materialChanged() +*/ + +/*! + \fn void Material::emittedLightChanged() + + This signal is emitted when emittedLight() changes. + + \sa emittedLight(), setEmittedLight(), materialChanged() +*/ + +/*! + \fn void Material::shininessChanged() + + This signal is emitted when shininess() changes. + + \sa shininess(), setShininess(), materialChanged() +*/ + +/*! + \fn void Material::materialChanged() + + This signal is emitted when one of basicColor(), ambientColor(), + diffuseColor(), specularColor(), emittedLight(), shiniess(), + or texture() changes. + + \sa basicColorChanged(), ambientColorChanged(), diffuseColorChanged() + \sa specularColorChanged(), emittedLightChanged(), shininessChanged() + \sa texturesChanged() +*/ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/material.fsh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/material.fsh Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,7 @@ +varying mediump vec4 qColor; +varying mediump vec4 qSecondaryColor; + +void main(void) +{ + gl_FragColor = clamp(qColor + vec4(qSecondaryColor.xyz, 0.0), 0.0, 1.0); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/material.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/material.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,102 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 MATERIAL_H +#define MATERIAL_H + +#include +#include +#include + +class MaterialPrivate; + +class Material : public QObject +{ + Q_OBJECT + Q_PROPERTY(QColor basicColor READ basicColor WRITE setBasicColor NOTIFY basicColorChanged) + Q_PROPERTY(QColor ambientColor READ ambientColor WRITE setAmbientColor NOTIFY ambientColorChanged) + Q_PROPERTY(QColor diffuseColor READ diffuseColor WRITE setDiffuseColor NOTIFY diffuseColorChanged) + Q_PROPERTY(QColor specularColor READ specularColor WRITE setSpecularColor NOTIFY specularColorChanged) + Q_PROPERTY(QColor emittedLight READ emittedLight WRITE setEmittedLight NOTIFY emittedLightChanged) + Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY basicColorChanged) + Q_PROPERTY(qreal shininess READ shininess WRITE setShininess NOTIFY shininessChanged) +public: + explicit Material(QObject *parent = 0); + ~Material(); + + QColor basicColor() const; + void setBasicColor(const QColor& value); + + QColor ambientColor() const; + void setAmbientColor(const QColor& value); + + QColor diffuseColor() const; + void setDiffuseColor(const QColor& value); + + QColor specularColor() const; + void setSpecularColor(const QColor& value); + + QColor emittedLight() const; + void setEmittedLight(const QColor& value); + + QColor color() const; + void setColor(const QColor& value); + + qreal shininess() const; + void setShininess(qreal value); + +Q_SIGNALS: + void basicColorChanged(); + void ambientColorChanged(); + void diffuseColorChanged(); + void specularColorChanged(); + void emittedLightChanged(); + void shininessChanged(); + void materialChanged(); + +private: + QScopedPointer d_ptr; + + Q_DECLARE_PRIVATE(Material) + Q_DISABLE_COPY(Material) +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/painter.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/painter.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,84 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 "painter.h" +#include + +void Painter::drawQuad(const QVector3D &c1, const QVector3D &c2, + const QVector3D &c3, const QVector3D &c4, + const QVector3D &normal) +{ + QVarLengthArray vertices; + QVarLengthArray normals; + + vertices.append(c1.x()); + vertices.append(c1.y()); + vertices.append(c1.z()); + normals.append(normal.x()); + normals.append(normal.y()); + normals.append(normal.z()); + + vertices.append(c2.x()); + vertices.append(c2.y()); + vertices.append(c2.z()); + normals.append(normal.x()); + normals.append(normal.y()); + normals.append(normal.z()); + + vertices.append(c3.x()); + vertices.append(c3.y()); + vertices.append(c3.z()); + normals.append(normal.x()); + normals.append(normal.y()); + normals.append(normal.z()); + + vertices.append(c4.x()); + vertices.append(c4.y()); + vertices.append(c4.z()); + normals.append(normal.x()); + normals.append(normal.y()); + normals.append(normal.z()); + + setVertices(vertices.constData(), 3); + setNormals(normals.constData(), 3); + + glDrawArrays(GL_TRIANGLE_FAN, 0, 4); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/painter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/painter.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,116 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 PAINTER_H +#define PAINTER_H + +#include +#include + +class Light; +class LightModel; +class Material; +class QGLShaderProgram; + +class Painter +{ +public: + Painter() : light(0), lightModel(0) {} + virtual ~Painter() {} + + virtual void setMatrices(const QMatrix4x4 &mv, const QMatrix4x4 &proj) = 0; + virtual void selectMaterial(Material *material) = 0; + virtual void selectTexturedMaterial(Material *material) = 0; + virtual void setVertices(const float *array, int stride) = 0; + virtual void setTexCoords(const float *array, int stride) = 0; + virtual void setNormals(const float *array, int stride) = 0; + + void drawQuad(const QVector3D &c1, const QVector3D &c2, + const QVector3D &c3, const QVector3D &c4, + const QVector3D &normal); + + void setLight(Light *value) { light = value; } + void setLightModel(LightModel *value) { lightModel = value; } + +protected: + Light *light; + LightModel *lightModel; +}; + +class FixedFunctionPainter : public Painter +{ +public: + FixedFunctionPainter(); + + void setMatrices(const QMatrix4x4 &mv, const QMatrix4x4 &proj); + void selectMaterial(Material *material); + void selectTexturedMaterial(Material *material); + void setVertices(const float *array, int stride); + void setTexCoords(const float *array, int stride); + void setNormals(const float *array, int stride); +}; + +class ShaderPainter : public Painter +{ +public: + ShaderPainter(); + ~ShaderPainter(); + + void setMatrices(const QMatrix4x4 &mv, const QMatrix4x4 &proj); + void selectMaterial(Material *material); + void selectTexturedMaterial(Material *material); + void setVertices(const float *array, int stride); + void setTexCoords(const float *array, int stride); + void setNormals(const float *array, int stride); + +private: + QGLShaderProgram *materialProgram; + QGLShaderProgram *textureProgram; + QGLShaderProgram *currentProgram; + QMatrix4x4 combinedMatrix; + QMatrix4x4 modelViewMatrix; + QMatrix3x3 normalMatrix; + bool matricesChanged; + + void updateMaterials(QGLShaderProgram *program, Material *material); +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/painter_fixed.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/painter_fixed.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,243 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 "painter.h" +#include "light.h" +#include "lightmodel.h" +#include "material.h" + +FixedFunctionPainter::FixedFunctionPainter() +{ + glEnable(GL_LIGHTING); + glEnable(GL_LIGHT0); + glDisable(GL_CULL_FACE); +} + +static void setMatrix(GLenum type, const QMatrix4x4 &matrix) +{ + glMatrixMode(type); + if (sizeof(qreal) == sizeof(GLfloat)) { + glLoadMatrixf(reinterpret_cast(matrix.constData())); + } else { + GLfloat mat[16]; + const qreal *m = matrix.constData(); + for (int index = 0; index < 16; ++index) + mat[index] = m[index]; + glLoadMatrixf(mat); + } +} + +void FixedFunctionPainter::setMatrices + (const QMatrix4x4 &mv, const QMatrix4x4 &proj) +{ + setMatrix(GL_PROJECTION, proj); + setMatrix(GL_MODELVIEW, mv); +} + +static void setLight(int light, const Light *parameters, + const QMatrix4x4& transform = QMatrix4x4()) +{ + GLfloat params[4]; + + glMatrixMode(GL_MODELVIEW); + glPushMatrix(); + glLoadIdentity(); + + QColor color = parameters->ambientColor(); + params[0] = color.redF(); + params[1] = color.greenF(); + params[2] = color.blueF(); + params[3] = color.alphaF(); + glLightfv(light, GL_AMBIENT, params); + + color = parameters->diffuseColor(); + params[0] = color.redF(); + params[1] = color.greenF(); + params[2] = color.blueF(); + params[3] = color.alphaF(); + glLightfv(light, GL_DIFFUSE, params); + + color = parameters->specularColor(); + params[0] = color.redF(); + params[1] = color.greenF(); + params[2] = color.blueF(); + params[3] = color.alphaF(); + glLightfv(light, GL_SPECULAR, params); + + QVector4D vector = parameters->eyePosition(transform); + params[0] = vector.x(); + params[1] = vector.y(); + params[2] = vector.z(); + params[3] = vector.w(); + glLightfv(light, GL_POSITION, params); + + QVector3D spotDirection = parameters->eyeSpotDirection(transform); + params[0] = spotDirection.x(); + params[1] = spotDirection.y(); + params[2] = spotDirection.z(); + glLightfv(light, GL_SPOT_DIRECTION, params); + + params[0] = parameters->spotExponent(); + glLightfv(light, GL_SPOT_EXPONENT, params); + + params[0] = parameters->spotAngle(); + glLightfv(light, GL_SPOT_CUTOFF, params); + + params[0] = parameters->constantAttenuation(); + glLightfv(light, GL_CONSTANT_ATTENUATION, params); + + params[0] = parameters->linearAttenuation(); + glLightfv(light, GL_LINEAR_ATTENUATION, params); + + params[0] = parameters->quadraticAttenuation(); + glLightfv(light, GL_QUADRATIC_ATTENUATION, params); + + glPopMatrix(); +} + +static void setLightModel(const LightModel *lightModel) +{ + GLfloat values[4]; +#ifdef GL_LIGHT_MODEL_TWO_SIDE + if (lightModel->model() == LightModel::TwoSided) + values[0] = 1.0f; + else + values[0] = 0.0f; + glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, values); +#endif +#ifdef GL_LIGHT_MODEL_COLOR_CONTROL + if (lightModel->colorControl() == LightModel::SeparateSpecularColor) + values[0] = GL_SEPARATE_SPECULAR_COLOR; + else + values[0] = GL_SINGLE_COLOR; + glLightModelfv(GL_LIGHT_MODEL_COLOR_CONTROL, values); +#endif +#ifdef GL_LIGHT_MODEL_LOCAL_VIEWER + if (lightModel->viewerPosition() == LightModel::LocalViewer) + values[0] = 1.0f; + else + values[0] = 0.0f; + glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, values); +#endif +#ifdef GL_LIGHT_MODEL_AMBIENT + QColor color = lightModel->ambientSceneColor(); + values[0] = color.redF(); + values[1] = color.blueF(); + values[2] = color.greenF(); + values[3] = color.alphaF(); + glLightModelfv(GL_LIGHT_MODEL_AMBIENT, values); +#endif +} + +static void setMaterial(int face, const Material *parameters) +{ + GLfloat params[17]; + + QColor mcolor = parameters->ambientColor(); + params[0] = mcolor.redF(); + params[1] = mcolor.greenF(); + params[2] = mcolor.blueF(); + params[3] = mcolor.alphaF(); + + mcolor = parameters->diffuseColor(); + params[4] = mcolor.redF(); + params[5] = mcolor.greenF(); + params[6] = mcolor.blueF(); + params[7] = mcolor.alphaF(); + + mcolor = parameters->specularColor(); + params[8] = mcolor.redF(); + params[9] = mcolor.greenF(); + params[10] = mcolor.blueF(); + params[11] = mcolor.alphaF(); + + mcolor = parameters->emittedLight(); + params[12] = mcolor.redF(); + params[13] = mcolor.greenF(); + params[14] = mcolor.blueF(); + params[15] = mcolor.alphaF(); + + params[16] = parameters->shininess(); + + glMaterialfv(face, GL_AMBIENT, params); + glMaterialfv(face, GL_DIFFUSE, params + 4); + glMaterialfv(face, GL_SPECULAR, params + 8); + glMaterialfv(face, GL_EMISSION, params + 12); + glMaterialfv(face, GL_SHININESS, params + 16); +} + +void FixedFunctionPainter::selectMaterial(Material *material) +{ + ::setLight(GL_LIGHT0, light); + ::setLightModel(lightModel); + ::setMaterial(GL_FRONT_AND_BACK, material); + glDisable(GL_TEXTURE_2D); + glEnableClientState(GL_VERTEX_ARRAY); + glEnableClientState(GL_NORMAL_ARRAY); + glDisableClientState(GL_TEXTURE_COORD_ARRAY); +} + +void FixedFunctionPainter::selectTexturedMaterial(Material *material) +{ + ::setLight(GL_LIGHT0, light); + ::setLightModel(lightModel); + ::setMaterial(GL_FRONT_AND_BACK, material); + glEnable(GL_TEXTURE_2D); + glEnableClientState(GL_VERTEX_ARRAY); + glEnableClientState(GL_NORMAL_ARRAY); + glEnableClientState(GL_TEXTURE_COORD_ARRAY); + glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); +} + +void FixedFunctionPainter::setVertices(const float *array, int stride) +{ + glVertexPointer(3, GL_FLOAT, stride * sizeof(float), array); +} + +void FixedFunctionPainter::setTexCoords(const float *array, int stride) +{ + glTexCoordPointer(2, GL_FLOAT, stride * sizeof(float), array); +} + +void FixedFunctionPainter::setNormals(const float *array, int stride) +{ + glNormalPointer(GL_FLOAT, stride * sizeof(float), array); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/painter_shader.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/painter_shader.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,160 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 "painter.h" +#include "light.h" +#include "lightmodel.h" +#include "material.h" +#include + +ShaderPainter::ShaderPainter() +{ + materialProgram = new QGLShaderProgram(); + materialProgram->addShaderFromSourceFile + (QGLShader::Vertex, QLatin1String(":/lighting.vsh")); + materialProgram->addShaderFromSourceFile + (QGLShader::Fragment, QLatin1String(":/material.fsh")); + materialProgram->bindAttributeLocation("vertex", 0); + materialProgram->bindAttributeLocation("normal", 1); + materialProgram->bindAttributeLocation("texcoord", 2); + materialProgram->link(); + + textureProgram = new QGLShaderProgram(); + textureProgram->addShaderFromSourceFile + (QGLShader::Vertex, QLatin1String(":/lighting.vsh")); + textureProgram->addShaderFromSourceFile + (QGLShader::Fragment, QLatin1String(":/texture.fsh")); + textureProgram->bindAttributeLocation("vertex", 0); + textureProgram->bindAttributeLocation("normal", 1); + textureProgram->bindAttributeLocation("texcoord", 2); + textureProgram->link(); + + currentProgram = 0; + matricesChanged = false; +} + +ShaderPainter::~ShaderPainter() +{ + delete materialProgram; + delete textureProgram; +} + +void ShaderPainter::setMatrices(const QMatrix4x4 &mv, const QMatrix4x4 &proj) +{ + combinedMatrix = proj * mv; + modelViewMatrix = mv; + normalMatrix = mv.normalMatrix(); + matricesChanged = true; +} + +void ShaderPainter::selectMaterial(Material *material) +{ + if (currentProgram != materialProgram) { + materialProgram->bind(); + materialProgram->enableAttributeArray(0); + materialProgram->enableAttributeArray(1); + materialProgram->disableAttributeArray(2); + currentProgram = materialProgram; + matricesChanged = true; + } + if (matricesChanged) { + materialProgram->setUniformValue("matrix", combinedMatrix); + materialProgram->setUniformValue("modelView", modelViewMatrix); + materialProgram->setUniformValue("normalMatrix", normalMatrix); + matricesChanged = false; + } + updateMaterials(materialProgram, material); +} + +void ShaderPainter::selectTexturedMaterial(Material *material) +{ + if (currentProgram != textureProgram) { + textureProgram->bind(); + textureProgram->enableAttributeArray(0); + textureProgram->enableAttributeArray(1); + textureProgram->enableAttributeArray(2); + textureProgram->setUniformValue("tex", 0); + currentProgram = textureProgram; + matricesChanged = true; + } + if (matricesChanged) { + textureProgram->setUniformValue("matrix", combinedMatrix); + textureProgram->setUniformValue("modelView", modelViewMatrix); + textureProgram->setUniformValue("normalMatrix", normalMatrix); + matricesChanged = false; + } + updateMaterials(textureProgram, material); +} + +void ShaderPainter::setVertices(const float *array, int stride) +{ + // Doesn't matter which program we use - they have the same locations. + materialProgram->setAttributeArray(0, array, 3, stride * sizeof(float)); +} + +void ShaderPainter::setTexCoords(const float *array, int stride) +{ + materialProgram->setAttributeArray(2, array, 2, stride * sizeof(float)); +} + +void ShaderPainter::setNormals(const float *array, int stride) +{ + materialProgram->setAttributeArray(1, array, 3, stride * sizeof(float)); +} + +void ShaderPainter::updateMaterials + (QGLShaderProgram *program, Material *material) +{ + // Set the uniform variables for the light. + QVector4D pli = light->eyePosition(QMatrix4x4()); + program->setUniformValue("pli", QVector3D(pli.x(), pli.y(), pli.z())); + program->setUniformValue("pliw", GLfloat(pli.w())); + + // Set the uniform variables for the light model. + program->setUniformValue("viewerAtInfinity", (int)(lightModel->viewerPosition() == LightModel::ViewerAtInfinity)); + program->setUniformValue("acs", lightModel->ambientSceneColor()); + + // Set the uniform variables for the material. + program->setUniformValue("acm", material->ambientColor()); + program->setUniformValue("dcm", material->diffuseColor()); + program->setUniformValue("scm", material->specularColor()); + program->setUniformValue("srm", (float)(material->shininess())); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/qtlogo.png Binary file qtmobility/examples/sensors/cubehouse/qtlogo.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/teapot.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/teapot.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,4551 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 TEAPOT_H +#define TEAPOT_H + +#define teapotVertexCount 3488 +#define teapotVertexStride 8 +#define teapotTriangleCount 4032 + +static float const teapotVertexData[] = { + 0.700000, 0.450000, -0.000000, -0.902860, -0.429934, 0.000000, 0.000000, 0.000000, + 0.000000, 0.450000, 0.700000, -0.000000, -0.429934, -0.902860, 1.000000, 0.000000, + 0.750000, 0.450000, -0.000000, 0.902860, 0.429934, -0.000000, 0.000000, 1.000000, + 0.000000, 0.450000, 0.750000, 0.000000, 0.429934, 0.902860, 1.000000, 1.000000, + 0.497000, 0.450000, 0.497000, -0.639602, -0.426402, -0.639602, 0.500000, 0.000000, + 0.701563, 0.499219, -0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.500000, + 0.498109, 0.499219, 0.498109, 0.000000, 1.000000, -0.000000, 0.500000, 0.500000, + 0.000000, 0.499219, 0.701563, 0.000000, 1.000000, -0.000000, 1.000000, 0.500000, + 0.532500, 0.450000, 0.532500, 0.639602, 0.426402, 0.639602, 0.500000, 1.000000, + 0.645750, 0.450000, 0.274750, -0.833528, -0.429664, -0.347303, 0.250000, 0.000000, + 0.690234, 0.486914, -0.000000, -0.995495, 0.094810, 0.000000, 0.000000, 0.250000, + 0.636741, 0.486914, 0.270917, -0.918925, 0.094737, -0.382885, 0.250000, 0.250000, + 0.490066, 0.486914, 0.490066, -0.703896, 0.095194, -0.703896, 0.500000, 0.250000, + 0.647191, 0.499219, 0.275363, 0.000000, 1.000000, -0.000000, 0.250000, 0.500000, + 0.686000, 0.450000, 0.142625, -0.885319, -0.429953, -0.177064, 0.125000, 0.000000, + 0.691895, 0.471533, -0.000000, -0.969231, -0.246154, 0.000000, 0.000000, 0.125000, + 0.678057, 0.471533, 0.140974, -0.950406, -0.246166, -0.190081, 0.125000, 0.125000, + 0.638273, 0.471533, 0.271569, -0.894539, -0.246731, -0.372725, 0.250000, 0.125000, + 0.676430, 0.486914, 0.140635, -0.976163, 0.094813, -0.195233, 0.125000, 0.250000, + 0.581875, 0.450000, 0.393750, -0.749476, -0.430917, -0.502590, 0.375000, 0.000000, + 0.638273, 0.471533, 0.271569, -0.894539, -0.246731, -0.372725, 0.250000, 0.125000, + 0.575137, 0.471533, 0.389191, -0.804852, -0.246803, -0.539724, 0.375000, 0.125000, + 0.491245, 0.471533, 0.491245, -0.685179, -0.247099, -0.685180, 0.500000, 0.125000, + 0.573757, 0.486914, 0.388257, -0.826782, 0.095071, -0.554430, 0.375000, 0.250000, + 0.676430, 0.486914, 0.140635, -0.976163, 0.094813, -0.195233, 0.125000, 0.250000, + 0.693848, 0.496143, -0.000000, -0.724137, 0.689656, 0.000000, 0.000000, 0.375000, + 0.679971, 0.496143, 0.141371, -0.710057, 0.689675, -0.142011, 0.125000, 0.375000, + 0.640074, 0.496143, 0.272335, -0.667641, 0.690558, -0.278184, 0.250000, 0.375000, + 0.687531, 0.499219, 0.142943, 0.000000, 1.000000, -0.000000, 0.125000, 0.500000, + 0.573757, 0.486914, 0.388257, -0.826782, 0.095071, -0.554430, 0.375000, 0.250000, + 0.640074, 0.496143, 0.272335, -0.667641, 0.690558, -0.278184, 0.250000, 0.375000, + 0.576761, 0.496143, 0.390289, -0.600626, 0.690668, -0.402773, 0.375000, 0.375000, + 0.492632, 0.496143, 0.492632, -0.511047, 0.691132, -0.511046, 0.500000, 0.375000, + 0.583174, 0.499219, 0.394629, 0.000000, 1.000000, -0.000000, 0.375000, 0.500000, + 0.274750, 0.450000, 0.645750, -0.347353, -0.429394, -0.833647, 0.750000, 0.000000, + 0.490066, 0.486914, 0.490066, -0.703896, 0.095194, -0.703896, 0.500000, 0.250000, + 0.270917, 0.486914, 0.636741, -0.382888, 0.094664, -0.918932, 0.750000, 0.250000, + 0.000000, 0.486914, 0.690234, 0.000000, 0.094810, -0.995495, 1.000000, 0.250000, + 0.275363, 0.499219, 0.647191, 0.000000, 1.000000, -0.000000, 0.750000, 0.500000, + 0.393750, 0.450000, 0.581875, -0.502594, -0.430900, -0.749483, 0.625000, 0.000000, + 0.491245, 0.471533, 0.491245, -0.685180, -0.247099, -0.685179, 0.500000, 0.125000, + 0.389191, 0.471533, 0.575137, -0.539726, -0.246792, -0.804854, 0.625000, 0.125000, + 0.271569, 0.471533, 0.638273, -0.372725, -0.246731, -0.894539, 0.750000, 0.125000, + 0.388257, 0.486914, 0.573757, -0.554431, 0.095066, -0.826782, 0.625000, 0.250000, + 0.142625, 0.450000, 0.686000, -0.177068, -0.429904, -0.885342, 0.875000, 0.000000, + 0.271569, 0.471533, 0.638273, -0.372725, -0.246731, -0.894539, 0.750000, 0.125000, + 0.140974, 0.471533, 0.678057, -0.190083, -0.246134, -0.950414, 0.875000, 0.125000, + 0.000000, 0.471533, 0.691895, -0.000000, -0.246154, -0.969231, 1.000000, 0.125000, + 0.140635, 0.486914, 0.676430, -0.195233, 0.094801, -0.976164, 0.875000, 0.250000, + 0.388257, 0.486914, 0.573757, -0.554431, 0.095066, -0.826782, 0.625000, 0.250000, + 0.492632, 0.496143, 0.492632, -0.511046, 0.691132, -0.511047, 0.500000, 0.375000, + 0.390289, 0.496143, 0.576761, -0.402782, 0.690651, -0.600640, 0.625000, 0.375000, + 0.272335, 0.496143, 0.640074, -0.278184, 0.690558, -0.667641, 0.750000, 0.375000, + 0.394629, 0.499219, 0.583174, 0.000000, 1.000000, -0.000000, 0.625000, 0.500000, + 0.140635, 0.486914, 0.676430, -0.195233, 0.094801, -0.976164, 0.875000, 0.250000, + 0.272335, 0.496143, 0.640074, -0.278184, 0.690558, -0.667641, 0.750000, 0.375000, + 0.141371, 0.496143, 0.679971, -0.142021, 0.689625, -0.710104, 0.875000, 0.375000, + 0.000000, 0.496143, 0.693848, 0.000000, 0.689656, -0.724137, 1.000000, 0.375000, + 0.142943, 0.499219, 0.687531, 0.000000, 1.000000, -0.000000, 0.875000, 0.500000, + 0.647191, 0.499219, 0.275363, 0.000000, 1.000000, -0.000000, 0.250000, 0.500000, + 0.724609, 0.486914, -0.000000, 0.690476, 0.723356, -0.000000, 0.000000, 0.750000, + 0.668452, 0.486914, 0.284409, 0.637619, 0.723090, 0.265674, 0.250000, 0.750000, + 0.514473, 0.486914, 0.514473, 0.487196, 0.724762, 0.487196, 0.500000, 0.750000, + 0.691875, 0.450000, 0.294375, 0.833528, 0.429664, 0.347303, 0.250000, 1.000000, + 0.687531, 0.499219, 0.142943, 0.000000, 1.000000, -0.000000, 0.125000, 0.500000, + 0.712207, 0.496143, -0.000000, 0.464835, 0.885397, -0.000000, 0.000000, 0.625000, + 0.697963, 0.496143, 0.145112, 0.455789, 0.885407, 0.091158, 0.125000, 0.625000, + 0.657011, 0.496143, 0.279541, 0.428239, 0.885874, 0.178433, 0.250000, 0.625000, + 0.710117, 0.486914, 0.147639, 0.677049, 0.723373, 0.135410, 0.125000, 0.750000, + 0.583174, 0.499219, 0.394629, 0.000000, 1.000000, -0.000000, 0.375000, 0.500000, + 0.657011, 0.496143, 0.279541, 0.428239, 0.885874, 0.178433, 0.250000, 0.625000, + 0.592022, 0.496143, 0.400616, 0.385216, 0.885934, 0.258322, 0.375000, 0.625000, + 0.505667, 0.496143, 0.505667, 0.327637, 0.886176, 0.327636, 0.500000, 0.625000, + 0.602332, 0.486914, 0.407593, 0.572629, 0.724322, 0.383998, 0.375000, 0.750000, + 0.710117, 0.486914, 0.147639, 0.677049, 0.723373, 0.135410, 0.125000, 0.750000, + 0.737598, 0.471533, -0.000000, 0.819842, 0.572589, -0.000000, 0.000000, 0.875000, + 0.722846, 0.471533, 0.150286, 0.803908, 0.572609, 0.160782, 0.125000, 0.875000, + 0.680434, 0.471533, 0.289507, 0.756157, 0.573550, 0.315066, 0.250000, 0.875000, + 0.735000, 0.450000, 0.152812, 0.885319, 0.429952, 0.177064, 0.125000, 1.000000, + 0.602332, 0.486914, 0.407593, 0.572628, 0.724322, 0.383998, 0.375000, 0.750000, + 0.680434, 0.471533, 0.289507, 0.756158, 0.573550, 0.315065, 0.250000, 0.875000, + 0.613128, 0.471533, 0.414899, 0.680288, 0.573668, 0.456193, 0.375000, 0.875000, + 0.523694, 0.471533, 0.523694, 0.578938, 0.574162, 0.578938, 0.500000, 0.875000, + 0.623438, 0.450000, 0.421875, 0.749476, 0.430918, 0.502589, 0.375000, 1.000000, + 0.275363, 0.499219, 0.647191, 0.000000, 1.000000, -0.000000, 0.750000, 0.500000, + 0.514473, 0.486914, 0.514473, 0.487196, 0.724762, 0.487196, 0.500000, 0.750000, + 0.284409, 0.486914, 0.668452, 0.265781, 0.722825, 0.637875, 0.750000, 0.750000, + 0.000000, 0.486914, 0.724609, 0.000000, 0.723356, 0.690476, 1.000000, 0.750000, + 0.294375, 0.450000, 0.691875, 0.347353, 0.429394, 0.833647, 0.750000, 1.000000, + 0.394629, 0.499219, 0.583174, 0.000000, 1.000000, -0.000000, 0.625000, 0.500000, + 0.505667, 0.496143, 0.505667, 0.327636, 0.886176, 0.327637, 0.500000, 0.625000, + 0.400616, 0.496143, 0.592022, 0.258332, 0.885924, 0.385231, 0.625000, 0.625000, + 0.279541, 0.496143, 0.657011, 0.178433, 0.885874, 0.428239, 0.750000, 0.625000, + 0.407593, 0.486914, 0.602332, 0.384008, 0.724305, 0.572644, 0.625000, 0.750000, + 0.142943, 0.499219, 0.687531, 0.000000, 1.000000, -0.000000, 0.875000, 0.500000, + 0.279541, 0.496143, 0.657011, 0.178433, 0.885874, 0.428239, 0.750000, 0.625000, + 0.145112, 0.496143, 0.697963, 0.091168, 0.885381, 0.455839, 0.875000, 0.625000, + 0.000000, 0.496143, 0.712207, 0.000000, 0.885397, 0.464835, 1.000000, 0.625000, + 0.147639, 0.486914, 0.710117, 0.135420, 0.723325, 0.677099, 0.875000, 0.750000, + 0.407593, 0.486914, 0.602332, 0.384008, 0.724305, 0.572643, 0.625000, 0.750000, + 0.523694, 0.471533, 0.523694, 0.578938, 0.574162, 0.578938, 0.500000, 0.875000, + 0.414899, 0.471533, 0.613128, 0.456201, 0.573650, 0.680299, 0.625000, 0.875000, + 0.289507, 0.471533, 0.680434, 0.315065, 0.573550, 0.756158, 0.750000, 0.875000, + 0.421875, 0.450000, 0.623438, 0.502594, 0.430901, 0.749482, 0.625000, 1.000000, + 0.147639, 0.486914, 0.710117, 0.135420, 0.723325, 0.677099, 0.875000, 0.750000, + 0.289507, 0.471533, 0.680434, 0.315066, 0.573550, 0.756157, 0.750000, 0.875000, + 0.150286, 0.471533, 0.722846, 0.160789, 0.572555, 0.803945, 0.875000, 0.875000, + 0.000000, 0.471533, 0.737598, 0.000000, 0.572589, 0.819842, 1.000000, 0.875000, + 0.152812, 0.450000, 0.735000, 0.177068, 0.429904, 0.885342, 0.875000, 1.000000, + 0.000000, 0.450000, 0.700000, -0.000000, -0.429934, -0.902860, 0.000000, 0.000000, + -0.700000, 0.450000, -0.000000, 0.902860, -0.429934, 0.000000, 1.000000, 0.000000, + 0.000000, 0.450000, 0.750000, 0.000000, 0.429934, 0.902860, 0.000000, 1.000000, + -0.750000, 0.450000, -0.000000, -0.902860, 0.429934, 0.000000, 1.000000, 1.000000, + -0.497000, 0.450000, 0.497000, 0.639602, -0.426402, -0.639602, 0.500000, 0.000000, + 0.000000, 0.499219, 0.701563, 0.000000, 1.000000, -0.000000, 0.000000, 0.500000, + -0.498109, 0.499219, 0.498109, 0.000000, 1.000000, 0.000000, 0.500000, 0.500000, + -0.701563, 0.499219, -0.000000, 0.000000, 1.000000, 0.000000, 1.000000, 0.500000, + -0.532500, 0.450000, 0.532500, -0.639602, 0.426402, 0.639602, 0.500000, 1.000000, + -0.274750, 0.450000, 0.645750, 0.347303, -0.429664, -0.833528, 0.250000, 0.000000, + 0.000000, 0.486914, 0.690234, 0.000000, 0.094810, -0.995495, 0.000000, 0.250000, + -0.270917, 0.486914, 0.636741, 0.382885, 0.094737, -0.918925, 0.250000, 0.250000, + -0.490066, 0.486914, 0.490066, 0.703896, 0.095194, -0.703896, 0.500000, 0.250000, + -0.275363, 0.499219, 0.647191, 0.000000, 1.000000, 0.000000, 0.250000, 0.500000, + -0.142625, 0.450000, 0.686000, 0.177064, -0.429953, -0.885319, 0.125000, 0.000000, + 0.000000, 0.471533, 0.691895, -0.000000, -0.246154, -0.969231, 0.000000, 0.125000, + -0.140974, 0.471533, 0.678057, 0.190081, -0.246166, -0.950406, 0.125000, 0.125000, + -0.271569, 0.471533, 0.638273, 0.372725, -0.246731, -0.894539, 0.250000, 0.125000, + -0.140635, 0.486914, 0.676430, 0.195233, 0.094813, -0.976163, 0.125000, 0.250000, + -0.393750, 0.450000, 0.581875, 0.502590, -0.430917, -0.749476, 0.375000, 0.000000, + -0.271569, 0.471533, 0.638273, 0.372725, -0.246731, -0.894539, 0.250000, 0.125000, + -0.389191, 0.471533, 0.575137, 0.539724, -0.246803, -0.804852, 0.375000, 0.125000, + -0.491245, 0.471533, 0.491245, 0.685180, -0.247099, -0.685179, 0.500000, 0.125000, + -0.388257, 0.486914, 0.573757, 0.554430, 0.095071, -0.826782, 0.375000, 0.250000, + -0.140635, 0.486914, 0.676430, 0.195233, 0.094813, -0.976163, 0.125000, 0.250000, + 0.000000, 0.496143, 0.693848, 0.000000, 0.689656, -0.724137, 0.000000, 0.375000, + -0.141371, 0.496143, 0.679971, 0.142011, 0.689675, -0.710057, 0.125000, 0.375000, + -0.272335, 0.496143, 0.640074, 0.278184, 0.690558, -0.667641, 0.250000, 0.375000, + -0.142943, 0.499219, 0.687531, 0.000000, 1.000000, 0.000000, 0.125000, 0.500000, + -0.388257, 0.486914, 0.573757, 0.554430, 0.095071, -0.826782, 0.375000, 0.250000, + -0.272335, 0.496143, 0.640074, 0.278184, 0.690558, -0.667641, 0.250000, 0.375000, + -0.390289, 0.496143, 0.576761, 0.402773, 0.690668, -0.600626, 0.375000, 0.375000, + -0.492632, 0.496143, 0.492632, 0.511046, 0.691132, -0.511047, 0.500000, 0.375000, + -0.394629, 0.499219, 0.583174, 0.000000, 1.000000, 0.000000, 0.375000, 0.500000, + -0.645750, 0.450000, 0.274750, 0.833647, -0.429394, -0.347353, 0.750000, 0.000000, + -0.490066, 0.486914, 0.490066, 0.703896, 0.095194, -0.703896, 0.500000, 0.250000, + -0.636741, 0.486914, 0.270917, 0.918932, 0.094664, -0.382888, 0.750000, 0.250000, + -0.690234, 0.486914, -0.000000, 0.995495, 0.094810, 0.000000, 1.000000, 0.250000, + -0.647191, 0.499219, 0.275363, 0.000000, 1.000000, 0.000000, 0.750000, 0.500000, + -0.581875, 0.450000, 0.393750, 0.749483, -0.430900, -0.502594, 0.625000, 0.000000, + -0.491245, 0.471533, 0.491245, 0.685179, -0.247099, -0.685180, 0.500000, 0.125000, + -0.575137, 0.471533, 0.389191, 0.804854, -0.246792, -0.539726, 0.625000, 0.125000, + -0.638273, 0.471533, 0.271569, 0.894539, -0.246731, -0.372725, 0.750000, 0.125000, + -0.573757, 0.486914, 0.388257, 0.826782, 0.095066, -0.554431, 0.625000, 0.250000, + -0.686000, 0.450000, 0.142625, 0.885342, -0.429904, -0.177068, 0.875000, 0.000000, + -0.638273, 0.471533, 0.271569, 0.894539, -0.246731, -0.372725, 0.750000, 0.125000, + -0.678057, 0.471533, 0.140974, 0.950414, -0.246134, -0.190083, 0.875000, 0.125000, + -0.691895, 0.471533, -0.000000, 0.969231, -0.246154, 0.000000, 1.000000, 0.125000, + -0.676430, 0.486914, 0.140635, 0.976164, 0.094801, -0.195233, 0.875000, 0.250000, + -0.573757, 0.486914, 0.388257, 0.826782, 0.095066, -0.554431, 0.625000, 0.250000, + -0.492632, 0.496143, 0.492632, 0.511047, 0.691132, -0.511046, 0.500000, 0.375000, + -0.576761, 0.496143, 0.390289, 0.600640, 0.690651, -0.402782, 0.625000, 0.375000, + -0.640074, 0.496143, 0.272335, 0.667641, 0.690558, -0.278184, 0.750000, 0.375000, + -0.583174, 0.499219, 0.394629, 0.000000, 1.000000, 0.000000, 0.625000, 0.500000, + -0.676430, 0.486914, 0.140635, 0.976164, 0.094801, -0.195233, 0.875000, 0.250000, + -0.640074, 0.496143, 0.272335, 0.667641, 0.690558, -0.278184, 0.750000, 0.375000, + -0.679971, 0.496143, 0.141371, 0.710104, 0.689625, -0.142021, 0.875000, 0.375000, + -0.693848, 0.496143, -0.000000, 0.724137, 0.689656, 0.000000, 1.000000, 0.375000, + -0.687531, 0.499219, 0.142943, 0.000000, 1.000000, 0.000000, 0.875000, 0.500000, + -0.275363, 0.499219, 0.647191, 0.000000, 1.000000, 0.000000, 0.250000, 0.500000, + 0.000000, 0.486914, 0.724609, 0.000000, 0.723356, 0.690476, 0.000000, 0.750000, + -0.284409, 0.486914, 0.668452, -0.265674, 0.723090, 0.637619, 0.250000, 0.750000, + -0.514473, 0.486914, 0.514473, -0.487196, 0.724762, 0.487196, 0.500000, 0.750000, + -0.294375, 0.450000, 0.691875, -0.347303, 0.429664, 0.833528, 0.250000, 1.000000, + -0.142943, 0.499219, 0.687531, 0.000000, 1.000000, 0.000000, 0.125000, 0.500000, + 0.000000, 0.496143, 0.712207, 0.000000, 0.885397, 0.464835, 0.000000, 0.625000, + -0.145112, 0.496143, 0.697963, -0.091158, 0.885407, 0.455789, 0.125000, 0.625000, + -0.279541, 0.496143, 0.657011, -0.178433, 0.885874, 0.428239, 0.250000, 0.625000, + -0.147639, 0.486914, 0.710117, -0.135410, 0.723373, 0.677049, 0.125000, 0.750000, + -0.394629, 0.499219, 0.583174, 0.000000, 1.000000, 0.000000, 0.375000, 0.500000, + -0.279541, 0.496143, 0.657011, -0.178433, 0.885874, 0.428239, 0.250000, 0.625000, + -0.400616, 0.496143, 0.592022, -0.258322, 0.885934, 0.385216, 0.375000, 0.625000, + -0.505667, 0.496143, 0.505667, -0.327636, 0.886176, 0.327637, 0.500000, 0.625000, + -0.407593, 0.486914, 0.602332, -0.383998, 0.724322, 0.572629, 0.375000, 0.750000, + -0.147639, 0.486914, 0.710117, -0.135410, 0.723373, 0.677049, 0.125000, 0.750000, + 0.000000, 0.471533, 0.737598, 0.000000, 0.572589, 0.819842, 0.000000, 0.875000, + -0.150286, 0.471533, 0.722846, -0.160782, 0.572609, 0.803908, 0.125000, 0.875000, + -0.289507, 0.471533, 0.680434, -0.315066, 0.573550, 0.756157, 0.250000, 0.875000, + -0.152812, 0.450000, 0.735000, -0.177064, 0.429952, 0.885319, 0.125000, 1.000000, + -0.407593, 0.486914, 0.602332, -0.383998, 0.724322, 0.572628, 0.375000, 0.750000, + -0.289507, 0.471533, 0.680434, -0.315065, 0.573550, 0.756158, 0.250000, 0.875000, + -0.414899, 0.471533, 0.613128, -0.456193, 0.573668, 0.680288, 0.375000, 0.875000, + -0.523694, 0.471533, 0.523694, -0.578938, 0.574162, 0.578938, 0.500000, 0.875000, + -0.421875, 0.450000, 0.623438, -0.502589, 0.430918, 0.749476, 0.375000, 1.000000, + -0.647191, 0.499219, 0.275363, 0.000000, 1.000000, 0.000000, 0.750000, 0.500000, + -0.514473, 0.486914, 0.514473, -0.487196, 0.724762, 0.487196, 0.500000, 0.750000, + -0.668452, 0.486914, 0.284409, -0.637875, 0.722825, 0.265781, 0.750000, 0.750000, + -0.724609, 0.486914, -0.000000, -0.690476, 0.723356, 0.000000, 1.000000, 0.750000, + -0.691875, 0.450000, 0.294375, -0.833647, 0.429394, 0.347353, 0.750000, 1.000000, + -0.583174, 0.499219, 0.394629, 0.000000, 1.000000, 0.000000, 0.625000, 0.500000, + -0.505667, 0.496143, 0.505667, -0.327637, 0.886176, 0.327636, 0.500000, 0.625000, + -0.592022, 0.496143, 0.400616, -0.385231, 0.885924, 0.258332, 0.625000, 0.625000, + -0.657011, 0.496143, 0.279541, -0.428239, 0.885874, 0.178433, 0.750000, 0.625000, + -0.602332, 0.486914, 0.407593, -0.572644, 0.724305, 0.384008, 0.625000, 0.750000, + -0.687531, 0.499219, 0.142943, 0.000000, 1.000000, 0.000000, 0.875000, 0.500000, + -0.657011, 0.496143, 0.279541, -0.428239, 0.885874, 0.178433, 0.750000, 0.625000, + -0.697963, 0.496143, 0.145112, -0.455839, 0.885381, 0.091168, 0.875000, 0.625000, + -0.712207, 0.496143, -0.000000, -0.464835, 0.885397, 0.000000, 1.000000, 0.625000, + -0.710117, 0.486914, 0.147639, -0.677099, 0.723325, 0.135420, 0.875000, 0.750000, + -0.602332, 0.486914, 0.407593, -0.572643, 0.724305, 0.384008, 0.625000, 0.750000, + -0.523694, 0.471533, 0.523694, -0.578938, 0.574162, 0.578938, 0.500000, 0.875000, + -0.613128, 0.471533, 0.414899, -0.680299, 0.573650, 0.456201, 0.625000, 0.875000, + -0.680434, 0.471533, 0.289507, -0.756158, 0.573550, 0.315065, 0.750000, 0.875000, + -0.623438, 0.450000, 0.421875, -0.749482, 0.430901, 0.502594, 0.625000, 1.000000, + -0.710117, 0.486914, 0.147639, -0.677099, 0.723325, 0.135420, 0.875000, 0.750000, + -0.680434, 0.471533, 0.289507, -0.756157, 0.573550, 0.315066, 0.750000, 0.875000, + -0.722846, 0.471533, 0.150286, -0.803945, 0.572555, 0.160789, 0.875000, 0.875000, + -0.737598, 0.471533, -0.000000, -0.819842, 0.572589, 0.000000, 1.000000, 0.875000, + -0.735000, 0.450000, 0.152812, -0.885342, 0.429904, 0.177068, 0.875000, 1.000000, + -0.700000, 0.450000, -0.000000, 0.902860, -0.429934, 0.000000, 0.000000, 0.000000, + 0.000000, 0.450000, -0.700000, 0.000000, -0.429934, 0.902860, 1.000000, 0.000000, + -0.750000, 0.450000, -0.000000, -0.902860, 0.429934, 0.000000, 0.000000, 1.000000, + 0.000000, 0.450000, -0.750000, 0.000000, 0.429934, -0.902860, 1.000000, 1.000000, + -0.497000, 0.450000, -0.497000, 0.639602, -0.426402, 0.639602, 0.500000, 0.000000, + -0.701563, 0.499219, -0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.500000, + -0.498109, 0.499219, -0.498109, 0.000000, 1.000000, 0.000000, 0.500000, 0.500000, + 0.000000, 0.499219, -0.701563, -0.000000, 1.000000, 0.000000, 1.000000, 0.500000, + -0.532500, 0.450000, -0.532500, -0.639602, 0.426402, -0.639602, 0.500000, 1.000000, + -0.645750, 0.450000, -0.274750, 0.833528, -0.429664, 0.347303, 0.250000, 0.000000, + -0.690234, 0.486914, -0.000000, 0.995495, 0.094810, 0.000000, 0.000000, 0.250000, + -0.636741, 0.486914, -0.270917, 0.918925, 0.094737, 0.382885, 0.250000, 0.250000, + -0.490066, 0.486914, -0.490066, 0.703896, 0.095194, 0.703896, 0.500000, 0.250000, + -0.647191, 0.499219, -0.275363, 0.000000, 1.000000, 0.000000, 0.250000, 0.500000, + -0.686000, 0.450000, -0.142625, 0.885319, -0.429953, 0.177064, 0.125000, 0.000000, + -0.691895, 0.471533, -0.000000, 0.969231, -0.246154, 0.000000, 0.000000, 0.125000, + -0.678057, 0.471533, -0.140974, 0.950406, -0.246166, 0.190081, 0.125000, 0.125000, + -0.638273, 0.471533, -0.271569, 0.894539, -0.246731, 0.372725, 0.250000, 0.125000, + -0.676430, 0.486914, -0.140635, 0.976163, 0.094813, 0.195233, 0.125000, 0.250000, + -0.581875, 0.450000, -0.393750, 0.749476, -0.430917, 0.502590, 0.375000, 0.000000, + -0.638273, 0.471533, -0.271569, 0.894539, -0.246731, 0.372725, 0.250000, 0.125000, + -0.575137, 0.471533, -0.389191, 0.804852, -0.246803, 0.539724, 0.375000, 0.125000, + -0.491245, 0.471533, -0.491245, 0.685179, -0.247099, 0.685180, 0.500000, 0.125000, + -0.573757, 0.486914, -0.388257, 0.826782, 0.095071, 0.554430, 0.375000, 0.250000, + -0.676430, 0.486914, -0.140635, 0.976163, 0.094813, 0.195233, 0.125000, 0.250000, + -0.693848, 0.496143, -0.000000, 0.724137, 0.689656, 0.000000, 0.000000, 0.375000, + -0.679971, 0.496143, -0.141371, 0.710057, 0.689675, 0.142011, 0.125000, 0.375000, + -0.640074, 0.496143, -0.272335, 0.667641, 0.690558, 0.278184, 0.250000, 0.375000, + -0.687531, 0.499219, -0.142943, 0.000000, 1.000000, 0.000000, 0.125000, 0.500000, + -0.573757, 0.486914, -0.388257, 0.826782, 0.095071, 0.554430, 0.375000, 0.250000, + -0.640074, 0.496143, -0.272335, 0.667641, 0.690558, 0.278184, 0.250000, 0.375000, + -0.576761, 0.496143, -0.390289, 0.600626, 0.690668, 0.402773, 0.375000, 0.375000, + -0.492632, 0.496143, -0.492632, 0.511047, 0.691132, 0.511046, 0.500000, 0.375000, + -0.583174, 0.499219, -0.394629, 0.000000, 1.000000, 0.000000, 0.375000, 0.500000, + -0.274750, 0.450000, -0.645750, 0.347353, -0.429394, 0.833647, 0.750000, 0.000000, + -0.490066, 0.486914, -0.490066, 0.703896, 0.095194, 0.703896, 0.500000, 0.250000, + -0.270917, 0.486914, -0.636741, 0.382888, 0.094664, 0.918932, 0.750000, 0.250000, + 0.000000, 0.486914, -0.690234, -0.000000, 0.094810, 0.995495, 1.000000, 0.250000, + -0.275363, 0.499219, -0.647191, 0.000000, 1.000000, 0.000000, 0.750000, 0.500000, + -0.393750, 0.450000, -0.581875, 0.502594, -0.430900, 0.749483, 0.625000, 0.000000, + -0.491245, 0.471533, -0.491245, 0.685180, -0.247099, 0.685179, 0.500000, 0.125000, + -0.389191, 0.471533, -0.575137, 0.539726, -0.246792, 0.804854, 0.625000, 0.125000, + -0.271569, 0.471533, -0.638273, 0.372725, -0.246731, 0.894539, 0.750000, 0.125000, + -0.388257, 0.486914, -0.573757, 0.554431, 0.095066, 0.826782, 0.625000, 0.250000, + -0.142625, 0.450000, -0.686000, 0.177068, -0.429904, 0.885342, 0.875000, 0.000000, + -0.271569, 0.471533, -0.638273, 0.372725, -0.246731, 0.894539, 0.750000, 0.125000, + -0.140974, 0.471533, -0.678057, 0.190083, -0.246134, 0.950414, 0.875000, 0.125000, + 0.000000, 0.471533, -0.691895, 0.000000, -0.246154, 0.969231, 1.000000, 0.125000, + -0.140635, 0.486914, -0.676430, 0.195233, 0.094801, 0.976164, 0.875000, 0.250000, + -0.388257, 0.486914, -0.573757, 0.554431, 0.095066, 0.826782, 0.625000, 0.250000, + -0.492632, 0.496143, -0.492632, 0.511046, 0.691132, 0.511047, 0.500000, 0.375000, + -0.390289, 0.496143, -0.576761, 0.402782, 0.690651, 0.600640, 0.625000, 0.375000, + -0.272335, 0.496143, -0.640074, 0.278184, 0.690558, 0.667641, 0.750000, 0.375000, + -0.394629, 0.499219, -0.583174, 0.000000, 1.000000, 0.000000, 0.625000, 0.500000, + -0.140635, 0.486914, -0.676430, 0.195233, 0.094801, 0.976164, 0.875000, 0.250000, + -0.272335, 0.496143, -0.640074, 0.278184, 0.690558, 0.667641, 0.750000, 0.375000, + -0.141371, 0.496143, -0.679971, 0.142021, 0.689625, 0.710104, 0.875000, 0.375000, + 0.000000, 0.496143, -0.693848, -0.000000, 0.689656, 0.724137, 1.000000, 0.375000, + -0.142943, 0.499219, -0.687531, 0.000000, 1.000000, 0.000000, 0.875000, 0.500000, + -0.647191, 0.499219, -0.275363, 0.000000, 1.000000, 0.000000, 0.250000, 0.500000, + -0.724609, 0.486914, -0.000000, -0.690476, 0.723356, 0.000000, 0.000000, 0.750000, + -0.668452, 0.486914, -0.284409, -0.637619, 0.723090, -0.265674, 0.250000, 0.750000, + -0.514473, 0.486914, -0.514473, -0.487196, 0.724762, -0.487196, 0.500000, 0.750000, + -0.691875, 0.450000, -0.294375, -0.833528, 0.429664, -0.347303, 0.250000, 1.000000, + -0.687531, 0.499219, -0.142943, 0.000000, 1.000000, 0.000000, 0.125000, 0.500000, + -0.712207, 0.496143, -0.000000, -0.464835, 0.885397, 0.000000, 0.000000, 0.625000, + -0.697963, 0.496143, -0.145112, -0.455789, 0.885407, -0.091158, 0.125000, 0.625000, + -0.657011, 0.496143, -0.279541, -0.428239, 0.885874, -0.178433, 0.250000, 0.625000, + -0.710117, 0.486914, -0.147639, -0.677049, 0.723373, -0.135410, 0.125000, 0.750000, + -0.583174, 0.499219, -0.394629, 0.000000, 1.000000, 0.000000, 0.375000, 0.500000, + -0.657011, 0.496143, -0.279541, -0.428239, 0.885874, -0.178433, 0.250000, 0.625000, + -0.592022, 0.496143, -0.400616, -0.385216, 0.885934, -0.258322, 0.375000, 0.625000, + -0.505667, 0.496143, -0.505667, -0.327637, 0.886176, -0.327636, 0.500000, 0.625000, + -0.602332, 0.486914, -0.407593, -0.572629, 0.724322, -0.383998, 0.375000, 0.750000, + -0.710117, 0.486914, -0.147639, -0.677049, 0.723373, -0.135410, 0.125000, 0.750000, + -0.737598, 0.471533, -0.000000, -0.819842, 0.572589, 0.000000, 0.000000, 0.875000, + -0.722846, 0.471533, -0.150286, -0.803908, 0.572609, -0.160782, 0.125000, 0.875000, + -0.680434, 0.471533, -0.289507, -0.756157, 0.573550, -0.315066, 0.250000, 0.875000, + -0.735000, 0.450000, -0.152812, -0.885319, 0.429952, -0.177064, 0.125000, 1.000000, + -0.602332, 0.486914, -0.407593, -0.572628, 0.724322, -0.383998, 0.375000, 0.750000, + -0.680434, 0.471533, -0.289507, -0.756158, 0.573550, -0.315065, 0.250000, 0.875000, + -0.613128, 0.471533, -0.414899, -0.680288, 0.573668, -0.456193, 0.375000, 0.875000, + -0.523694, 0.471533, -0.523694, -0.578938, 0.574162, -0.578938, 0.500000, 0.875000, + -0.623438, 0.450000, -0.421875, -0.749476, 0.430918, -0.502589, 0.375000, 1.000000, + -0.275363, 0.499219, -0.647191, 0.000000, 1.000000, 0.000000, 0.750000, 0.500000, + -0.514473, 0.486914, -0.514473, -0.487196, 0.724762, -0.487196, 0.500000, 0.750000, + -0.284409, 0.486914, -0.668452, -0.265781, 0.722825, -0.637875, 0.750000, 0.750000, + 0.000000, 0.486914, -0.724609, 0.000000, 0.723356, -0.690476, 1.000000, 0.750000, + -0.294375, 0.450000, -0.691875, -0.347353, 0.429394, -0.833647, 0.750000, 1.000000, + -0.394629, 0.499219, -0.583174, 0.000000, 1.000000, 0.000000, 0.625000, 0.500000, + -0.505667, 0.496143, -0.505667, -0.327636, 0.886176, -0.327637, 0.500000, 0.625000, + -0.400616, 0.496143, -0.592022, -0.258332, 0.885924, -0.385231, 0.625000, 0.625000, + -0.279541, 0.496143, -0.657011, -0.178433, 0.885874, -0.428239, 0.750000, 0.625000, + -0.407593, 0.486914, -0.602332, -0.384008, 0.724305, -0.572644, 0.625000, 0.750000, + -0.142943, 0.499219, -0.687531, 0.000000, 1.000000, 0.000000, 0.875000, 0.500000, + -0.279541, 0.496143, -0.657011, -0.178433, 0.885874, -0.428239, 0.750000, 0.625000, + -0.145112, 0.496143, -0.697963, -0.091168, 0.885381, -0.455839, 0.875000, 0.625000, + 0.000000, 0.496143, -0.712207, 0.000000, 0.885397, -0.464835, 1.000000, 0.625000, + -0.147639, 0.486914, -0.710117, -0.135420, 0.723325, -0.677099, 0.875000, 0.750000, + -0.407593, 0.486914, -0.602332, -0.384008, 0.724305, -0.572643, 0.625000, 0.750000, + -0.523694, 0.471533, -0.523694, -0.578938, 0.574162, -0.578938, 0.500000, 0.875000, + -0.414899, 0.471533, -0.613128, -0.456201, 0.573650, -0.680299, 0.625000, 0.875000, + -0.289507, 0.471533, -0.680434, -0.315065, 0.573550, -0.756158, 0.750000, 0.875000, + -0.421875, 0.450000, -0.623438, -0.502594, 0.430901, -0.749482, 0.625000, 1.000000, + -0.147639, 0.486914, -0.710117, -0.135420, 0.723325, -0.677099, 0.875000, 0.750000, + -0.289507, 0.471533, -0.680434, -0.315066, 0.573550, -0.756157, 0.750000, 0.875000, + -0.150286, 0.471533, -0.722846, -0.160789, 0.572555, -0.803945, 0.875000, 0.875000, + 0.000000, 0.471533, -0.737598, 0.000000, 0.572589, -0.819842, 1.000000, 0.875000, + -0.152812, 0.450000, -0.735000, -0.177068, 0.429904, -0.885342, 0.875000, 1.000000, + 0.000000, 0.450000, -0.700000, 0.000000, -0.429934, 0.902860, 0.000000, 0.000000, + 0.700000, 0.450000, -0.000000, -0.902860, -0.429934, 0.000000, 1.000000, 0.000000, + 0.000000, 0.450000, -0.750000, 0.000000, 0.429934, -0.902860, 0.000000, 1.000000, + 0.750000, 0.450000, -0.000000, 0.902860, 0.429934, -0.000000, 1.000000, 1.000000, + 0.497000, 0.450000, -0.497000, -0.639602, -0.426402, 0.639602, 0.500000, 0.000000, + 0.000000, 0.499219, -0.701563, -0.000000, 1.000000, 0.000000, 0.000000, 0.500000, + 0.498109, 0.499219, -0.498109, -0.000000, 1.000000, 0.000000, 0.500000, 0.500000, + 0.701563, 0.499219, -0.000000, 0.000000, 1.000000, 0.000000, 1.000000, 0.500000, + 0.532500, 0.450000, -0.532500, 0.639602, 0.426402, -0.639602, 0.500000, 1.000000, + 0.274750, 0.450000, -0.645750, -0.347303, -0.429664, 0.833528, 0.250000, 0.000000, + 0.000000, 0.486914, -0.690234, -0.000000, 0.094810, 0.995495, 0.000000, 0.250000, + 0.270917, 0.486914, -0.636741, -0.382885, 0.094737, 0.918925, 0.250000, 0.250000, + 0.490066, 0.486914, -0.490066, -0.703896, 0.095194, 0.703896, 0.500000, 0.250000, + 0.275363, 0.499219, -0.647191, -0.000000, 1.000000, 0.000000, 0.250000, 0.500000, + 0.142625, 0.450000, -0.686000, -0.177064, -0.429953, 0.885319, 0.125000, 0.000000, + 0.000000, 0.471533, -0.691895, 0.000000, -0.246154, 0.969231, 0.000000, 0.125000, + 0.140974, 0.471533, -0.678057, -0.190081, -0.246166, 0.950406, 0.125000, 0.125000, + 0.271569, 0.471533, -0.638273, -0.372725, -0.246731, 0.894539, 0.250000, 0.125000, + 0.140635, 0.486914, -0.676430, -0.195233, 0.094813, 0.976163, 0.125000, 0.250000, + 0.393750, 0.450000, -0.581875, -0.502590, -0.430917, 0.749476, 0.375000, 0.000000, + 0.271569, 0.471533, -0.638273, -0.372725, -0.246731, 0.894539, 0.250000, 0.125000, + 0.389191, 0.471533, -0.575137, -0.539724, -0.246803, 0.804852, 0.375000, 0.125000, + 0.491245, 0.471533, -0.491245, -0.685180, -0.247099, 0.685179, 0.500000, 0.125000, + 0.388257, 0.486914, -0.573757, -0.554430, 0.095071, 0.826782, 0.375000, 0.250000, + 0.140635, 0.486914, -0.676430, -0.195233, 0.094813, 0.976163, 0.125000, 0.250000, + 0.000000, 0.496143, -0.693848, -0.000000, 0.689656, 0.724137, 0.000000, 0.375000, + 0.141371, 0.496143, -0.679971, -0.142011, 0.689675, 0.710057, 0.125000, 0.375000, + 0.272335, 0.496143, -0.640074, -0.278184, 0.690558, 0.667641, 0.250000, 0.375000, + 0.142943, 0.499219, -0.687531, -0.000000, 1.000000, 0.000000, 0.125000, 0.500000, + 0.388257, 0.486914, -0.573757, -0.554430, 0.095071, 0.826782, 0.375000, 0.250000, + 0.272335, 0.496143, -0.640074, -0.278184, 0.690558, 0.667641, 0.250000, 0.375000, + 0.390289, 0.496143, -0.576761, -0.402773, 0.690668, 0.600626, 0.375000, 0.375000, + 0.492632, 0.496143, -0.492632, -0.511046, 0.691132, 0.511047, 0.500000, 0.375000, + 0.394629, 0.499219, -0.583174, -0.000000, 1.000000, 0.000000, 0.375000, 0.500000, + 0.645750, 0.450000, -0.274750, -0.833647, -0.429394, 0.347353, 0.750000, 0.000000, + 0.490066, 0.486914, -0.490066, -0.703896, 0.095194, 0.703896, 0.500000, 0.250000, + 0.636741, 0.486914, -0.270917, -0.918932, 0.094664, 0.382888, 0.750000, 0.250000, + 0.690234, 0.486914, -0.000000, -0.995495, 0.094810, 0.000000, 1.000000, 0.250000, + 0.647191, 0.499219, -0.275363, -0.000000, 1.000000, 0.000000, 0.750000, 0.500000, + 0.581875, 0.450000, -0.393750, -0.749483, -0.430900, 0.502594, 0.625000, 0.000000, + 0.491245, 0.471533, -0.491245, -0.685179, -0.247099, 0.685180, 0.500000, 0.125000, + 0.575137, 0.471533, -0.389191, -0.804854, -0.246792, 0.539726, 0.625000, 0.125000, + 0.638273, 0.471533, -0.271569, -0.894539, -0.246731, 0.372725, 0.750000, 0.125000, + 0.573757, 0.486914, -0.388257, -0.826782, 0.095066, 0.554431, 0.625000, 0.250000, + 0.686000, 0.450000, -0.142625, -0.885342, -0.429904, 0.177068, 0.875000, 0.000000, + 0.638273, 0.471533, -0.271569, -0.894539, -0.246731, 0.372725, 0.750000, 0.125000, + 0.678057, 0.471533, -0.140974, -0.950414, -0.246134, 0.190083, 0.875000, 0.125000, + 0.691895, 0.471533, -0.000000, -0.969231, -0.246154, 0.000000, 1.000000, 0.125000, + 0.676430, 0.486914, -0.140635, -0.976164, 0.094801, 0.195233, 0.875000, 0.250000, + 0.573757, 0.486914, -0.388257, -0.826782, 0.095066, 0.554431, 0.625000, 0.250000, + 0.492632, 0.496143, -0.492632, -0.511047, 0.691132, 0.511046, 0.500000, 0.375000, + 0.576761, 0.496143, -0.390289, -0.600640, 0.690651, 0.402782, 0.625000, 0.375000, + 0.640074, 0.496143, -0.272335, -0.667641, 0.690558, 0.278184, 0.750000, 0.375000, + 0.583174, 0.499219, -0.394629, -0.000000, 1.000000, 0.000000, 0.625000, 0.500000, + 0.676430, 0.486914, -0.140635, -0.976164, 0.094801, 0.195233, 0.875000, 0.250000, + 0.640074, 0.496143, -0.272335, -0.667641, 0.690558, 0.278184, 0.750000, 0.375000, + 0.679971, 0.496143, -0.141371, -0.710104, 0.689625, 0.142021, 0.875000, 0.375000, + 0.693848, 0.496143, -0.000000, -0.724137, 0.689656, 0.000000, 1.000000, 0.375000, + 0.687531, 0.499219, -0.142943, -0.000000, 1.000000, 0.000000, 0.875000, 0.500000, + 0.275363, 0.499219, -0.647191, -0.000000, 1.000000, 0.000000, 0.250000, 0.500000, + 0.000000, 0.486914, -0.724609, 0.000000, 0.723356, -0.690476, 0.000000, 0.750000, + 0.284409, 0.486914, -0.668452, 0.265674, 0.723090, -0.637619, 0.250000, 0.750000, + 0.514473, 0.486914, -0.514473, 0.487196, 0.724762, -0.487196, 0.500000, 0.750000, + 0.294375, 0.450000, -0.691875, 0.347303, 0.429664, -0.833528, 0.250000, 1.000000, + 0.142943, 0.499219, -0.687531, -0.000000, 1.000000, 0.000000, 0.125000, 0.500000, + 0.000000, 0.496143, -0.712207, 0.000000, 0.885397, -0.464835, 0.000000, 0.625000, + 0.145112, 0.496143, -0.697963, 0.091158, 0.885407, -0.455789, 0.125000, 0.625000, + 0.279541, 0.496143, -0.657011, 0.178433, 0.885874, -0.428239, 0.250000, 0.625000, + 0.147639, 0.486914, -0.710117, 0.135410, 0.723373, -0.677049, 0.125000, 0.750000, + 0.394629, 0.499219, -0.583174, -0.000000, 1.000000, 0.000000, 0.375000, 0.500000, + 0.279541, 0.496143, -0.657011, 0.178433, 0.885874, -0.428239, 0.250000, 0.625000, + 0.400616, 0.496143, -0.592022, 0.258322, 0.885934, -0.385216, 0.375000, 0.625000, + 0.505667, 0.496143, -0.505667, 0.327636, 0.886176, -0.327637, 0.500000, 0.625000, + 0.407593, 0.486914, -0.602332, 0.383998, 0.724322, -0.572629, 0.375000, 0.750000, + 0.147639, 0.486914, -0.710117, 0.135410, 0.723373, -0.677049, 0.125000, 0.750000, + 0.000000, 0.471533, -0.737598, 0.000000, 0.572589, -0.819842, 0.000000, 0.875000, + 0.150286, 0.471533, -0.722846, 0.160782, 0.572609, -0.803908, 0.125000, 0.875000, + 0.289507, 0.471533, -0.680434, 0.315066, 0.573550, -0.756157, 0.250000, 0.875000, + 0.152812, 0.450000, -0.735000, 0.177064, 0.429952, -0.885319, 0.125000, 1.000000, + 0.407593, 0.486914, -0.602332, 0.383998, 0.724322, -0.572628, 0.375000, 0.750000, + 0.289507, 0.471533, -0.680434, 0.315065, 0.573550, -0.756158, 0.250000, 0.875000, + 0.414899, 0.471533, -0.613128, 0.456193, 0.573668, -0.680288, 0.375000, 0.875000, + 0.523694, 0.471533, -0.523694, 0.578938, 0.574162, -0.578938, 0.500000, 0.875000, + 0.421875, 0.450000, -0.623438, 0.502589, 0.430918, -0.749476, 0.375000, 1.000000, + 0.647191, 0.499219, -0.275363, -0.000000, 1.000000, 0.000000, 0.750000, 0.500000, + 0.514473, 0.486914, -0.514473, 0.487196, 0.724762, -0.487196, 0.500000, 0.750000, + 0.668452, 0.486914, -0.284409, 0.637875, 0.722825, -0.265781, 0.750000, 0.750000, + 0.724609, 0.486914, -0.000000, 0.690476, 0.723356, -0.000000, 1.000000, 0.750000, + 0.691875, 0.450000, -0.294375, 0.833647, 0.429394, -0.347353, 0.750000, 1.000000, + 0.583174, 0.499219, -0.394629, -0.000000, 1.000000, 0.000000, 0.625000, 0.500000, + 0.505667, 0.496143, -0.505667, 0.327637, 0.886176, -0.327636, 0.500000, 0.625000, + 0.592022, 0.496143, -0.400616, 0.385231, 0.885924, -0.258332, 0.625000, 0.625000, + 0.657011, 0.496143, -0.279541, 0.428239, 0.885874, -0.178433, 0.750000, 0.625000, + 0.602332, 0.486914, -0.407593, 0.572644, 0.724305, -0.384008, 0.625000, 0.750000, + 0.687531, 0.499219, -0.142943, -0.000000, 1.000000, 0.000000, 0.875000, 0.500000, + 0.657011, 0.496143, -0.279541, 0.428239, 0.885874, -0.178433, 0.750000, 0.625000, + 0.697963, 0.496143, -0.145112, 0.455839, 0.885381, -0.091168, 0.875000, 0.625000, + 0.712207, 0.496143, -0.000000, 0.464835, 0.885397, -0.000000, 1.000000, 0.625000, + 0.710117, 0.486914, -0.147639, 0.677099, 0.723325, -0.135420, 0.875000, 0.750000, + 0.602332, 0.486914, -0.407593, 0.572643, 0.724305, -0.384008, 0.625000, 0.750000, + 0.523694, 0.471533, -0.523694, 0.578938, 0.574162, -0.578938, 0.500000, 0.875000, + 0.613128, 0.471533, -0.414899, 0.680299, 0.573650, -0.456201, 0.625000, 0.875000, + 0.680434, 0.471533, -0.289507, 0.756158, 0.573550, -0.315065, 0.750000, 0.875000, + 0.623438, 0.450000, -0.421875, 0.749482, 0.430901, -0.502594, 0.625000, 1.000000, + 0.710117, 0.486914, -0.147639, 0.677099, 0.723325, -0.135420, 0.875000, 0.750000, + 0.680434, 0.471533, -0.289507, 0.756157, 0.573550, -0.315066, 0.750000, 0.875000, + 0.722846, 0.471533, -0.150286, 0.803945, 0.572555, -0.160789, 0.875000, 0.875000, + 0.737598, 0.471533, -0.000000, 0.819842, 0.572589, -0.000000, 1.000000, 0.875000, + 0.735000, 0.450000, -0.152812, 0.885342, 0.429904, -0.177068, 0.875000, 1.000000, + 0.750000, 0.450000, -0.000000, 0.902861, 0.429934, -0.000000, 0.000000, 0.000000, + 0.000000, 0.450000, 0.750000, 0.000000, 0.429934, 0.902861, 1.000000, 0.000000, + 1.000000, -0.300000, -0.000000, 1.000000, 0.000000, -0.000000, 0.000000, 1.000000, + 0.000000, -0.300000, 1.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000, + 0.532500, 0.450000, 0.532500, 0.639602, 0.426401, 0.639602, 0.500000, 0.000000, + 0.921875, 0.060938, -0.000000, 0.937749, 0.347314, -0.000000, 0.000000, 0.500000, + 0.654531, 0.060938, 0.654531, 0.663890, 0.344239, 0.663890, 0.500000, 0.500000, + 0.000000, 0.060938, 0.921875, 0.000000, 0.347314, 0.937749, 1.000000, 0.500000, + 0.710000, -0.300000, 0.710000, 0.707107, 0.000000, 0.707107, 0.500000, 1.000000, + 0.691875, 0.450000, 0.294375, 0.833528, 0.429664, 0.347303, 0.250000, 0.000000, + 0.841797, 0.253711, -0.000000, 0.911768, 0.410706, -0.000000, 0.000000, 0.250000, + 0.776558, 0.253711, 0.330405, 0.841741, 0.410444, 0.350725, 0.250000, 0.250000, + 0.597676, 0.253711, 0.597676, 0.644272, 0.412102, 0.644272, 0.500000, 0.250000, + 0.850430, 0.060938, 0.361836, 0.865695, 0.347079, 0.360706, 0.250000, 0.500000, + 0.735000, 0.450000, 0.152812, 0.885319, 0.429952, 0.177064, 0.125000, 0.000000, + 0.796631, 0.351636, -0.000000, 0.905094, 0.425212, -0.000000, 0.000000, 0.125000, + 0.780698, 0.351636, 0.162314, 0.887509, 0.425230, 0.177502, 0.125000, 0.125000, + 0.734892, 0.351636, 0.312678, 0.835093, 0.426082, 0.347956, 0.250000, 0.125000, + 0.824961, 0.253711, 0.171516, 0.894054, 0.410724, 0.178811, 0.125000, 0.250000, + 0.623438, 0.450000, 0.421875, 0.749476, 0.430917, 0.502590, 0.375000, 0.000000, + 0.734892, 0.351636, 0.312678, 0.835093, 0.426082, 0.347956, 0.250000, 0.125000, + 0.662199, 0.351636, 0.448105, 0.751338, 0.426189, 0.503839, 0.375000, 0.125000, + 0.565608, 0.351636, 0.565608, 0.639524, 0.426636, 0.639524, 0.500000, 0.125000, + 0.699744, 0.253711, 0.473511, 0.756904, 0.411664, 0.507571, 0.375000, 0.250000, + 0.824961, 0.253711, 0.171516, 0.894054, 0.410724, 0.178811, 0.125000, 0.250000, + 0.884033, 0.156665, -0.000000, 0.922766, 0.385361, -0.000000, 0.000000, 0.375000, + 0.866353, 0.156665, 0.180122, 0.904839, 0.385379, 0.180968, 0.125000, 0.375000, + 0.815521, 0.156665, 0.346983, 0.851467, 0.386182, 0.354778, 0.250000, 0.375000, + 0.903437, 0.060938, 0.187832, 0.919533, 0.347330, 0.183906, 0.125000, 0.500000, + 0.699744, 0.253711, 0.473511, 0.756904, 0.411665, 0.507571, 0.375000, 0.250000, + 0.815521, 0.156665, 0.346983, 0.851467, 0.386182, 0.354778, 0.250000, 0.375000, + 0.734853, 0.156665, 0.497269, 0.766078, 0.386283, 0.513723, 0.375000, 0.375000, + 0.627664, 0.156665, 0.627664, 0.652097, 0.386703, 0.652097, 0.500000, 0.375000, + 0.766309, 0.060938, 0.518555, 0.778577, 0.348172, 0.522105, 0.375000, 0.500000, + 0.294375, 0.450000, 0.691875, 0.347353, 0.429394, 0.833647, 0.750000, 0.000000, + 0.597676, 0.253711, 0.597676, 0.644272, 0.412102, 0.644272, 0.500000, 0.250000, + 0.330405, 0.253711, 0.776558, 0.350771, 0.410181, 0.841850, 0.750000, 0.250000, + 0.000000, 0.253711, 0.841797, 0.000000, 0.410706, 0.911768, 1.000000, 0.250000, + 0.361836, 0.060938, 0.850430, 0.360739, 0.346844, 0.865775, 0.750000, 0.500000, + 0.421875, 0.450000, 0.623438, 0.502594, 0.430900, 0.749483, 0.625000, 0.000000, + 0.565608, 0.351636, 0.565608, 0.639524, 0.426636, 0.639524, 0.500000, 0.125000, + 0.448105, 0.351636, 0.662199, 0.503843, 0.426172, 0.751345, 0.625000, 0.125000, + 0.312678, 0.351636, 0.734892, 0.347956, 0.426082, 0.835093, 0.750000, 0.125000, + 0.473511, 0.253711, 0.699744, 0.507575, 0.411648, 0.756911, 0.625000, 0.250000, + 0.152812, 0.450000, 0.735000, 0.177068, 0.429903, 0.885342, 0.875000, 0.000000, + 0.312678, 0.351636, 0.734892, 0.347956, 0.426082, 0.835093, 0.750000, 0.125000, + 0.162314, 0.351636, 0.780698, 0.177506, 0.425181, 0.887532, 0.875000, 0.125000, + 0.000000, 0.351636, 0.796631, 0.000000, 0.425212, 0.905094, 1.000000, 0.125000, + 0.171516, 0.253711, 0.824961, 0.178815, 0.410676, 0.894075, 0.875000, 0.250000, + 0.473511, 0.253711, 0.699744, 0.507575, 0.411648, 0.756910, 0.625000, 0.250000, + 0.627664, 0.156665, 0.627664, 0.652097, 0.386703, 0.652097, 0.500000, 0.375000, + 0.497269, 0.156665, 0.734853, 0.513726, 0.386267, 0.766083, 0.625000, 0.375000, + 0.346983, 0.156665, 0.815521, 0.354778, 0.386182, 0.851467, 0.750000, 0.375000, + 0.518555, 0.060938, 0.766309, 0.522108, 0.348157, 0.778582, 0.625000, 0.500000, + 0.171516, 0.253711, 0.824961, 0.178815, 0.410676, 0.894075, 0.875000, 0.250000, + 0.346983, 0.156665, 0.815521, 0.354778, 0.386182, 0.851467, 0.750000, 0.375000, + 0.180122, 0.156665, 0.866353, 0.180972, 0.385333, 0.904858, 0.875000, 0.375000, + 0.000000, 0.156665, 0.884033, 0.000000, 0.385361, 0.922766, 1.000000, 0.375000, + 0.187832, 0.060938, 0.903437, 0.183909, 0.347288, 0.919548, 0.875000, 0.500000, + 0.850430, 0.060938, 0.361836, 0.865695, 0.347079, 0.360706, 0.250000, 0.500000, + 0.978516, -0.124805, -0.000000, 0.975288, 0.220939, -0.000000, 0.000000, 0.750000, + 0.902681, -0.124805, 0.384067, 0.900299, 0.220777, 0.375125, 0.250000, 0.750000, + 0.694746, -0.124805, 0.694746, 0.689494, 0.221799, 0.689495, 0.500000, 0.750000, + 0.922500, -0.300000, 0.392500, 0.923077, 0.000000, 0.384615, 0.250000, 1.000000, + 0.903437, 0.060938, 0.187832, 0.919533, 0.347330, 0.183906, 0.125000, 0.500000, + 0.953857, -0.033032, -0.000000, 0.955877, 0.293768, -0.000000, 0.000000, 0.625000, + 0.934780, -0.033032, 0.194348, 0.937310, 0.293782, 0.187462, 0.125000, 0.625000, + 0.879933, -0.033032, 0.374389, 0.882157, 0.294439, 0.367565, 0.250000, 0.625000, + 0.958945, -0.124805, 0.199373, 0.956346, 0.220950, 0.191269, 0.125000, 0.750000, + 0.766309, 0.060938, 0.518555, 0.778578, 0.348172, 0.522105, 0.375000, 0.500000, + 0.879933, -0.033032, 0.374389, 0.882157, 0.294439, 0.367565, 0.250000, 0.625000, + 0.792894, -0.033032, 0.536545, 0.793705, 0.294522, 0.532249, 0.375000, 0.625000, + 0.677239, -0.033032, 0.677239, 0.675668, 0.294866, 0.675668, 0.500000, 0.625000, + 0.813391, -0.124805, 0.550415, 0.809908, 0.221529, 0.543115, 0.375000, 0.750000, + 0.958945, -0.124805, 0.199373, 0.956346, 0.220950, 0.191269, 0.125000, 0.750000, + 0.994385, -0.213940, -0.000000, 0.992240, 0.124341, -0.000000, 0.000000, 0.875000, + 0.974497, -0.213940, 0.202606, 0.972970, 0.124347, 0.194594, 0.125000, 0.875000, + 0.917320, -0.213940, 0.390296, 0.915878, 0.124647, 0.381616, 0.250000, 0.875000, + 0.980000, -0.300000, 0.203750, 0.980581, 0.000000, 0.196116, 0.125000, 1.000000, + 0.813391, -0.124805, 0.550415, 0.809908, 0.221529, 0.543115, 0.375000, 0.750000, + 0.917320, -0.213940, 0.390296, 0.915878, 0.124647, 0.381616, 0.250000, 0.875000, + 0.826582, -0.213940, 0.559341, 0.824063, 0.124685, 0.552607, 0.375000, 0.875000, + 0.706013, -0.213940, 0.706013, 0.701575, 0.124842, 0.701575, 0.500000, 0.875000, + 0.831250, -0.300000, 0.562500, 0.830544, 0.000000, 0.556953, 0.375000, 1.000000, + 0.361836, 0.060938, 0.850430, 0.360740, 0.346844, 0.865775, 0.750000, 0.500000, + 0.694746, -0.124805, 0.694746, 0.689495, 0.221799, 0.689494, 0.500000, 0.750000, + 0.384067, -0.124805, 0.902681, 0.375139, 0.220616, 0.900333, 0.750000, 0.750000, + 0.000000, -0.124805, 0.978516, 0.000000, 0.220939, 0.975288, 1.000000, 0.750000, + 0.392500, -0.300000, 0.922500, 0.384615, 0.000000, 0.923077, 0.750000, 1.000000, + 0.518555, 0.060938, 0.766309, 0.522108, 0.348157, 0.778582, 0.625000, 0.500000, + 0.677239, -0.033032, 0.677239, 0.675668, 0.294866, 0.675668, 0.500000, 0.625000, + 0.536545, -0.033032, 0.792894, 0.532252, 0.294509, 0.793708, 0.625000, 0.625000, + 0.374389, -0.033032, 0.879933, 0.367565, 0.294439, 0.882157, 0.750000, 0.625000, + 0.550415, -0.124805, 0.813391, 0.543116, 0.221518, 0.809910, 0.625000, 0.750000, + 0.187832, 0.060938, 0.903437, 0.183910, 0.347287, 0.919548, 0.875000, 0.500000, + 0.374389, -0.033032, 0.879933, 0.367565, 0.294439, 0.882157, 0.750000, 0.625000, + 0.194348, -0.033032, 0.934780, 0.187464, 0.293744, 0.937321, 0.875000, 0.625000, + 0.000000, -0.033032, 0.953857, 0.000000, 0.293768, 0.955877, 1.000000, 0.625000, + 0.199373, -0.124805, 0.958945, 0.191271, 0.220920, 0.956352, 0.875000, 0.750000, + 0.550415, -0.124805, 0.813391, 0.543116, 0.221518, 0.809910, 0.625000, 0.750000, + 0.706013, -0.213940, 0.706013, 0.701575, 0.124842, 0.701575, 0.500000, 0.875000, + 0.559341, -0.213940, 0.826582, 0.552607, 0.124679, 0.824063, 0.625000, 0.875000, + 0.390296, -0.213940, 0.917320, 0.381616, 0.124647, 0.915878, 0.750000, 0.875000, + 0.562500, -0.300000, 0.831250, 0.556953, 0.000000, 0.830544, 0.625000, 1.000000, + 0.199373, -0.124805, 0.958945, 0.191271, 0.220920, 0.956352, 0.875000, 0.750000, + 0.390296, -0.213940, 0.917320, 0.381616, 0.124647, 0.915878, 0.750000, 0.875000, + 0.202606, -0.213940, 0.974497, 0.194595, 0.124330, 0.972972, 0.875000, 0.875000, + 0.000000, -0.213940, 0.994385, 0.000000, 0.124341, 0.992240, 1.000000, 0.875000, + 0.203750, -0.300000, 0.980000, 0.196116, 0.000000, 0.980581, 0.875000, 1.000000, + 0.000000, 0.450000, 0.750000, 0.000000, 0.429934, 0.902861, 0.000000, 0.000000, + -0.750000, 0.450000, -0.000000, -0.902861, 0.429934, 0.000000, 1.000000, 0.000000, + 0.000000, -0.300000, 1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 1.000000, + -1.000000, -0.300000, -0.000000, -1.000000, -0.000000, -0.000000, 1.000000, 1.000000, + -0.532500, 0.450000, 0.532500, -0.639602, 0.426401, 0.639602, 0.500000, 0.000000, + 0.000000, 0.060938, 0.921875, 0.000000, 0.347314, 0.937749, 0.000000, 0.500000, + -0.654531, 0.060938, 0.654531, -0.663890, 0.344239, 0.663890, 0.500000, 0.500000, + -0.921875, 0.060938, -0.000000, -0.937749, 0.347314, 0.000000, 1.000000, 0.500000, + -0.710000, -0.300000, 0.710000, -0.707107, 0.000000, 0.707107, 0.500000, 1.000000, + -0.294375, 0.450000, 0.691875, -0.347303, 0.429664, 0.833528, 0.250000, 0.000000, + 0.000000, 0.253711, 0.841797, 0.000000, 0.410706, 0.911768, 0.000000, 0.250000, + -0.330405, 0.253711, 0.776558, -0.350725, 0.410444, 0.841741, 0.250000, 0.250000, + -0.597676, 0.253711, 0.597676, -0.644272, 0.412102, 0.644272, 0.500000, 0.250000, + -0.361836, 0.060938, 0.850430, -0.360706, 0.347079, 0.865695, 0.250000, 0.500000, + -0.152812, 0.450000, 0.735000, -0.177064, 0.429952, 0.885319, 0.125000, 0.000000, + 0.000000, 0.351636, 0.796631, 0.000000, 0.425212, 0.905094, 0.000000, 0.125000, + -0.162314, 0.351636, 0.780698, -0.177502, 0.425230, 0.887509, 0.125000, 0.125000, + -0.312678, 0.351636, 0.734892, -0.347956, 0.426082, 0.835093, 0.250000, 0.125000, + -0.171516, 0.253711, 0.824961, -0.178811, 0.410724, 0.894054, 0.125000, 0.250000, + -0.421875, 0.450000, 0.623438, -0.502590, 0.430917, 0.749476, 0.375000, 0.000000, + -0.312678, 0.351636, 0.734892, -0.347956, 0.426082, 0.835093, 0.250000, 0.125000, + -0.448105, 0.351636, 0.662199, -0.503839, 0.426189, 0.751338, 0.375000, 0.125000, + -0.565608, 0.351636, 0.565608, -0.639524, 0.426636, 0.639524, 0.500000, 0.125000, + -0.473511, 0.253711, 0.699744, -0.507571, 0.411664, 0.756904, 0.375000, 0.250000, + -0.171516, 0.253711, 0.824961, -0.178811, 0.410724, 0.894054, 0.125000, 0.250000, + 0.000000, 0.156665, 0.884033, 0.000000, 0.385361, 0.922766, 0.000000, 0.375000, + -0.180122, 0.156665, 0.866353, -0.180968, 0.385379, 0.904839, 0.125000, 0.375000, + -0.346983, 0.156665, 0.815521, -0.354778, 0.386182, 0.851467, 0.250000, 0.375000, + -0.187832, 0.060938, 0.903437, -0.183906, 0.347330, 0.919533, 0.125000, 0.500000, + -0.473511, 0.253711, 0.699744, -0.507571, 0.411665, 0.756904, 0.375000, 0.250000, + -0.346983, 0.156665, 0.815521, -0.354778, 0.386182, 0.851467, 0.250000, 0.375000, + -0.497269, 0.156665, 0.734853, -0.513723, 0.386283, 0.766078, 0.375000, 0.375000, + -0.627664, 0.156665, 0.627664, -0.652097, 0.386703, 0.652097, 0.500000, 0.375000, + -0.518555, 0.060938, 0.766309, -0.522105, 0.348172, 0.778577, 0.375000, 0.500000, + -0.691875, 0.450000, 0.294375, -0.833647, 0.429394, 0.347353, 0.750000, 0.000000, + -0.597676, 0.253711, 0.597676, -0.644272, 0.412102, 0.644272, 0.500000, 0.250000, + -0.776558, 0.253711, 0.330405, -0.841850, 0.410181, 0.350771, 0.750000, 0.250000, + -0.841797, 0.253711, -0.000000, -0.911768, 0.410706, 0.000000, 1.000000, 0.250000, + -0.850430, 0.060938, 0.361836, -0.865775, 0.346844, 0.360739, 0.750000, 0.500000, + -0.623438, 0.450000, 0.421875, -0.749483, 0.430900, 0.502594, 0.625000, 0.000000, + -0.565608, 0.351636, 0.565608, -0.639524, 0.426636, 0.639524, 0.500000, 0.125000, + -0.662199, 0.351636, 0.448105, -0.751345, 0.426172, 0.503843, 0.625000, 0.125000, + -0.734892, 0.351636, 0.312678, -0.835093, 0.426082, 0.347956, 0.750000, 0.125000, + -0.699744, 0.253711, 0.473511, -0.756911, 0.411648, 0.507575, 0.625000, 0.250000, + -0.735000, 0.450000, 0.152812, -0.885342, 0.429903, 0.177068, 0.875000, 0.000000, + -0.734892, 0.351636, 0.312678, -0.835093, 0.426082, 0.347956, 0.750000, 0.125000, + -0.780698, 0.351636, 0.162314, -0.887532, 0.425181, 0.177506, 0.875000, 0.125000, + -0.796631, 0.351636, -0.000000, -0.905094, 0.425212, 0.000000, 1.000000, 0.125000, + -0.824961, 0.253711, 0.171516, -0.894075, 0.410676, 0.178815, 0.875000, 0.250000, + -0.699744, 0.253711, 0.473511, -0.756910, 0.411648, 0.507575, 0.625000, 0.250000, + -0.627664, 0.156665, 0.627664, -0.652097, 0.386703, 0.652097, 0.500000, 0.375000, + -0.734853, 0.156665, 0.497269, -0.766083, 0.386267, 0.513726, 0.625000, 0.375000, + -0.815521, 0.156665, 0.346983, -0.851467, 0.386182, 0.354778, 0.750000, 0.375000, + -0.766309, 0.060938, 0.518555, -0.778582, 0.348157, 0.522108, 0.625000, 0.500000, + -0.824961, 0.253711, 0.171516, -0.894075, 0.410676, 0.178815, 0.875000, 0.250000, + -0.815521, 0.156665, 0.346983, -0.851467, 0.386182, 0.354778, 0.750000, 0.375000, + -0.866353, 0.156665, 0.180122, -0.904858, 0.385333, 0.180972, 0.875000, 0.375000, + -0.884033, 0.156665, -0.000000, -0.922766, 0.385361, 0.000000, 1.000000, 0.375000, + -0.903437, 0.060938, 0.187832, -0.919548, 0.347288, 0.183909, 0.875000, 0.500000, + -0.361836, 0.060938, 0.850430, -0.360706, 0.347079, 0.865695, 0.250000, 0.500000, + 0.000000, -0.124805, 0.978516, 0.000000, 0.220939, 0.975288, 0.000000, 0.750000, + -0.384067, -0.124805, 0.902681, -0.375125, 0.220777, 0.900299, 0.250000, 0.750000, + -0.694746, -0.124805, 0.694746, -0.689495, 0.221799, 0.689494, 0.500000, 0.750000, + -0.392500, -0.300000, 0.922500, -0.384615, 0.000000, 0.923077, 0.250000, 1.000000, + -0.187832, 0.060938, 0.903437, -0.183906, 0.347330, 0.919533, 0.125000, 0.500000, + 0.000000, -0.033032, 0.953857, 0.000000, 0.293768, 0.955877, 0.000000, 0.625000, + -0.194348, -0.033032, 0.934780, -0.187462, 0.293782, 0.937310, 0.125000, 0.625000, + -0.374389, -0.033032, 0.879933, -0.367565, 0.294439, 0.882157, 0.250000, 0.625000, + -0.199373, -0.124805, 0.958945, -0.191269, 0.220950, 0.956346, 0.125000, 0.750000, + -0.518555, 0.060938, 0.766309, -0.522105, 0.348172, 0.778578, 0.375000, 0.500000, + -0.374389, -0.033032, 0.879933, -0.367565, 0.294439, 0.882157, 0.250000, 0.625000, + -0.536545, -0.033032, 0.792894, -0.532249, 0.294522, 0.793705, 0.375000, 0.625000, + -0.677239, -0.033032, 0.677239, -0.675668, 0.294866, 0.675668, 0.500000, 0.625000, + -0.550415, -0.124805, 0.813391, -0.543115, 0.221529, 0.809908, 0.375000, 0.750000, + -0.199373, -0.124805, 0.958945, -0.191269, 0.220950, 0.956346, 0.125000, 0.750000, + 0.000000, -0.213940, 0.994385, 0.000000, 0.124341, 0.992240, 0.000000, 0.875000, + -0.202606, -0.213940, 0.974497, -0.194594, 0.124347, 0.972970, 0.125000, 0.875000, + -0.390296, -0.213940, 0.917320, -0.381616, 0.124647, 0.915878, 0.250000, 0.875000, + -0.203750, -0.300000, 0.980000, -0.196116, 0.000000, 0.980581, 0.125000, 1.000000, + -0.550415, -0.124805, 0.813391, -0.543115, 0.221529, 0.809908, 0.375000, 0.750000, + -0.390296, -0.213940, 0.917320, -0.381616, 0.124647, 0.915878, 0.250000, 0.875000, + -0.559341, -0.213940, 0.826582, -0.552607, 0.124685, 0.824063, 0.375000, 0.875000, + -0.706013, -0.213940, 0.706013, -0.701575, 0.124842, 0.701575, 0.500000, 0.875000, + -0.562500, -0.300000, 0.831250, -0.556953, 0.000000, 0.830544, 0.375000, 1.000000, + -0.850430, 0.060938, 0.361836, -0.865775, 0.346844, 0.360740, 0.750000, 0.500000, + -0.694746, -0.124805, 0.694746, -0.689494, 0.221799, 0.689495, 0.500000, 0.750000, + -0.902681, -0.124805, 0.384067, -0.900333, 0.220616, 0.375139, 0.750000, 0.750000, + -0.978516, -0.124805, -0.000000, -0.975288, 0.220939, 0.000000, 1.000000, 0.750000, + -0.922500, -0.300000, 0.392500, -0.923077, 0.000000, 0.384615, 0.750000, 1.000000, + -0.766309, 0.060938, 0.518555, -0.778582, 0.348157, 0.522108, 0.625000, 0.500000, + -0.677239, -0.033032, 0.677239, -0.675668, 0.294866, 0.675668, 0.500000, 0.625000, + -0.792894, -0.033032, 0.536545, -0.793708, 0.294509, 0.532252, 0.625000, 0.625000, + -0.879933, -0.033032, 0.374389, -0.882157, 0.294439, 0.367565, 0.750000, 0.625000, + -0.813391, -0.124805, 0.550415, -0.809910, 0.221518, 0.543116, 0.625000, 0.750000, + -0.903437, 0.060938, 0.187832, -0.919548, 0.347287, 0.183910, 0.875000, 0.500000, + -0.879933, -0.033032, 0.374389, -0.882157, 0.294439, 0.367565, 0.750000, 0.625000, + -0.934780, -0.033032, 0.194348, -0.937321, 0.293744, 0.187464, 0.875000, 0.625000, + -0.953857, -0.033032, -0.000000, -0.955877, 0.293768, 0.000000, 1.000000, 0.625000, + -0.958945, -0.124805, 0.199373, -0.956352, 0.220920, 0.191271, 0.875000, 0.750000, + -0.813391, -0.124805, 0.550415, -0.809910, 0.221518, 0.543116, 0.625000, 0.750000, + -0.706013, -0.213940, 0.706013, -0.701575, 0.124842, 0.701575, 0.500000, 0.875000, + -0.826582, -0.213940, 0.559341, -0.824063, 0.124679, 0.552607, 0.625000, 0.875000, + -0.917320, -0.213940, 0.390296, -0.915878, 0.124647, 0.381616, 0.750000, 0.875000, + -0.831250, -0.300000, 0.562500, -0.830544, 0.000000, 0.556953, 0.625000, 1.000000, + -0.958945, -0.124805, 0.199373, -0.956352, 0.220920, 0.191271, 0.875000, 0.750000, + -0.917320, -0.213940, 0.390296, -0.915878, 0.124647, 0.381616, 0.750000, 0.875000, + -0.974497, -0.213940, 0.202606, -0.972972, 0.124330, 0.194595, 0.875000, 0.875000, + -0.994385, -0.213940, -0.000000, -0.992240, 0.124341, 0.000000, 1.000000, 0.875000, + -0.980000, -0.300000, 0.203750, -0.980581, 0.000000, 0.196116, 0.875000, 1.000000, + -0.750000, 0.450000, -0.000000, -0.902861, 0.429934, 0.000000, 0.000000, 0.000000, + 0.000000, 0.450000, -0.750000, 0.000000, 0.429934, -0.902861, 1.000000, 0.000000, + -1.000000, -0.300000, -0.000000, -1.000000, -0.000000, -0.000000, 0.000000, 1.000000, + 0.000000, -0.300000, -1.000000, 0.000000, 0.000000, -1.000000, 1.000000, 1.000000, + -0.532500, 0.450000, -0.532500, -0.639602, 0.426401, -0.639602, 0.500000, 0.000000, + -0.921875, 0.060938, -0.000000, -0.937749, 0.347314, 0.000000, 0.000000, 0.500000, + -0.654531, 0.060938, -0.654531, -0.663890, 0.344239, -0.663890, 0.500000, 0.500000, + 0.000000, 0.060938, -0.921875, 0.000000, 0.347314, -0.937749, 1.000000, 0.500000, + -0.710000, -0.300000, -0.710000, -0.707107, -0.000000, -0.707107, 0.500000, 1.000000, + -0.691875, 0.450000, -0.294375, -0.833528, 0.429664, -0.347303, 0.250000, 0.000000, + -0.841797, 0.253711, -0.000000, -0.911768, 0.410706, 0.000000, 0.000000, 0.250000, + -0.776558, 0.253711, -0.330405, -0.841741, 0.410444, -0.350725, 0.250000, 0.250000, + -0.597676, 0.253711, -0.597676, -0.644272, 0.412102, -0.644272, 0.500000, 0.250000, + -0.850430, 0.060938, -0.361836, -0.865695, 0.347079, -0.360706, 0.250000, 0.500000, + -0.735000, 0.450000, -0.152812, -0.885319, 0.429952, -0.177064, 0.125000, 0.000000, + -0.796631, 0.351636, -0.000000, -0.905094, 0.425212, 0.000000, 0.000000, 0.125000, + -0.780698, 0.351636, -0.162314, -0.887509, 0.425230, -0.177502, 0.125000, 0.125000, + -0.734892, 0.351636, -0.312678, -0.835093, 0.426082, -0.347956, 0.250000, 0.125000, + -0.824961, 0.253711, -0.171516, -0.894054, 0.410724, -0.178811, 0.125000, 0.250000, + -0.623438, 0.450000, -0.421875, -0.749476, 0.430917, -0.502590, 0.375000, 0.000000, + -0.734892, 0.351636, -0.312678, -0.835093, 0.426082, -0.347956, 0.250000, 0.125000, + -0.662199, 0.351636, -0.448105, -0.751338, 0.426189, -0.503839, 0.375000, 0.125000, + -0.565608, 0.351636, -0.565608, -0.639524, 0.426636, -0.639524, 0.500000, 0.125000, + -0.699744, 0.253711, -0.473511, -0.756904, 0.411664, -0.507571, 0.375000, 0.250000, + -0.824961, 0.253711, -0.171516, -0.894054, 0.410724, -0.178811, 0.125000, 0.250000, + -0.884033, 0.156665, -0.000000, -0.922766, 0.385361, 0.000000, 0.000000, 0.375000, + -0.866353, 0.156665, -0.180122, -0.904839, 0.385379, -0.180968, 0.125000, 0.375000, + -0.815521, 0.156665, -0.346983, -0.851467, 0.386182, -0.354778, 0.250000, 0.375000, + -0.903437, 0.060938, -0.187832, -0.919533, 0.347330, -0.183906, 0.125000, 0.500000, + -0.699744, 0.253711, -0.473511, -0.756904, 0.411665, -0.507571, 0.375000, 0.250000, + -0.815521, 0.156665, -0.346983, -0.851467, 0.386182, -0.354778, 0.250000, 0.375000, + -0.734853, 0.156665, -0.497269, -0.766078, 0.386283, -0.513723, 0.375000, 0.375000, + -0.627664, 0.156665, -0.627664, -0.652097, 0.386703, -0.652097, 0.500000, 0.375000, + -0.766309, 0.060938, -0.518555, -0.778577, 0.348172, -0.522105, 0.375000, 0.500000, + -0.294375, 0.450000, -0.691875, -0.347353, 0.429394, -0.833647, 0.750000, 0.000000, + -0.597676, 0.253711, -0.597676, -0.644272, 0.412102, -0.644272, 0.500000, 0.250000, + -0.330405, 0.253711, -0.776558, -0.350771, 0.410181, -0.841850, 0.750000, 0.250000, + 0.000000, 0.253711, -0.841797, 0.000000, 0.410706, -0.911768, 1.000000, 0.250000, + -0.361836, 0.060938, -0.850430, -0.360739, 0.346844, -0.865775, 0.750000, 0.500000, + -0.421875, 0.450000, -0.623438, -0.502594, 0.430900, -0.749483, 0.625000, 0.000000, + -0.565608, 0.351636, -0.565608, -0.639524, 0.426636, -0.639524, 0.500000, 0.125000, + -0.448105, 0.351636, -0.662199, -0.503843, 0.426172, -0.751345, 0.625000, 0.125000, + -0.312678, 0.351636, -0.734892, -0.347956, 0.426082, -0.835093, 0.750000, 0.125000, + -0.473511, 0.253711, -0.699744, -0.507575, 0.411648, -0.756911, 0.625000, 0.250000, + -0.152812, 0.450000, -0.735000, -0.177068, 0.429903, -0.885342, 0.875000, 0.000000, + -0.312678, 0.351636, -0.734892, -0.347956, 0.426082, -0.835093, 0.750000, 0.125000, + -0.162314, 0.351636, -0.780698, -0.177506, 0.425181, -0.887532, 0.875000, 0.125000, + 0.000000, 0.351636, -0.796631, 0.000000, 0.425212, -0.905094, 1.000000, 0.125000, + -0.171516, 0.253711, -0.824961, -0.178815, 0.410676, -0.894075, 0.875000, 0.250000, + -0.473511, 0.253711, -0.699744, -0.507575, 0.411648, -0.756910, 0.625000, 0.250000, + -0.627664, 0.156665, -0.627664, -0.652097, 0.386703, -0.652097, 0.500000, 0.375000, + -0.497269, 0.156665, -0.734853, -0.513726, 0.386267, -0.766083, 0.625000, 0.375000, + -0.346983, 0.156665, -0.815521, -0.354778, 0.386182, -0.851467, 0.750000, 0.375000, + -0.518555, 0.060938, -0.766309, -0.522108, 0.348157, -0.778582, 0.625000, 0.500000, + -0.171516, 0.253711, -0.824961, -0.178815, 0.410676, -0.894075, 0.875000, 0.250000, + -0.346983, 0.156665, -0.815521, -0.354778, 0.386182, -0.851467, 0.750000, 0.375000, + -0.180122, 0.156665, -0.866353, -0.180972, 0.385333, -0.904858, 0.875000, 0.375000, + 0.000000, 0.156665, -0.884033, 0.000000, 0.385361, -0.922766, 1.000000, 0.375000, + -0.187832, 0.060938, -0.903437, -0.183909, 0.347288, -0.919548, 0.875000, 0.500000, + -0.850430, 0.060938, -0.361836, -0.865695, 0.347079, -0.360706, 0.250000, 0.500000, + -0.978516, -0.124805, -0.000000, -0.975288, 0.220939, 0.000000, 0.000000, 0.750000, + -0.902681, -0.124805, -0.384067, -0.900299, 0.220777, -0.375125, 0.250000, 0.750000, + -0.694746, -0.124805, -0.694746, -0.689494, 0.221799, -0.689495, 0.500000, 0.750000, + -0.922500, -0.300000, -0.392500, -0.923077, -0.000000, -0.384615, 0.250000, 1.000000, + -0.903437, 0.060938, -0.187832, -0.919533, 0.347330, -0.183906, 0.125000, 0.500000, + -0.953857, -0.033032, -0.000000, -0.955877, 0.293768, 0.000000, 0.000000, 0.625000, + -0.934780, -0.033032, -0.194348, -0.937310, 0.293782, -0.187462, 0.125000, 0.625000, + -0.879933, -0.033032, -0.374389, -0.882157, 0.294439, -0.367565, 0.250000, 0.625000, + -0.958945, -0.124805, -0.199373, -0.956346, 0.220950, -0.191269, 0.125000, 0.750000, + -0.766309, 0.060938, -0.518555, -0.778578, 0.348172, -0.522105, 0.375000, 0.500000, + -0.879933, -0.033032, -0.374389, -0.882157, 0.294439, -0.367565, 0.250000, 0.625000, + -0.792894, -0.033032, -0.536545, -0.793705, 0.294522, -0.532249, 0.375000, 0.625000, + -0.677239, -0.033032, -0.677239, -0.675668, 0.294866, -0.675668, 0.500000, 0.625000, + -0.813391, -0.124805, -0.550415, -0.809908, 0.221529, -0.543115, 0.375000, 0.750000, + -0.958945, -0.124805, -0.199373, -0.956346, 0.220950, -0.191269, 0.125000, 0.750000, + -0.994385, -0.213940, -0.000000, -0.992240, 0.124341, 0.000000, 0.000000, 0.875000, + -0.974497, -0.213940, -0.202606, -0.972970, 0.124347, -0.194594, 0.125000, 0.875000, + -0.917320, -0.213940, -0.390296, -0.915878, 0.124647, -0.381616, 0.250000, 0.875000, + -0.980000, -0.300000, -0.203750, -0.980581, -0.000000, -0.196116, 0.125000, 1.000000, + -0.813391, -0.124805, -0.550415, -0.809908, 0.221529, -0.543115, 0.375000, 0.750000, + -0.917320, -0.213940, -0.390296, -0.915878, 0.124647, -0.381616, 0.250000, 0.875000, + -0.826582, -0.213940, -0.559341, -0.824063, 0.124685, -0.552607, 0.375000, 0.875000, + -0.706013, -0.213940, -0.706013, -0.701575, 0.124842, -0.701575, 0.500000, 0.875000, + -0.831250, -0.300000, -0.562500, -0.830544, -0.000000, -0.556953, 0.375000, 1.000000, + -0.361836, 0.060938, -0.850430, -0.360740, 0.346844, -0.865775, 0.750000, 0.500000, + -0.694746, -0.124805, -0.694746, -0.689495, 0.221799, -0.689494, 0.500000, 0.750000, + -0.384067, -0.124805, -0.902681, -0.375139, 0.220616, -0.900333, 0.750000, 0.750000, + 0.000000, -0.124805, -0.978516, 0.000000, 0.220939, -0.975288, 1.000000, 0.750000, + -0.392500, -0.300000, -0.922500, -0.384615, -0.000000, -0.923077, 0.750000, 1.000000, + -0.518555, 0.060938, -0.766309, -0.522108, 0.348157, -0.778582, 0.625000, 0.500000, + -0.677239, -0.033032, -0.677239, -0.675668, 0.294866, -0.675668, 0.500000, 0.625000, + -0.536545, -0.033032, -0.792894, -0.532252, 0.294509, -0.793708, 0.625000, 0.625000, + -0.374389, -0.033032, -0.879933, -0.367565, 0.294439, -0.882157, 0.750000, 0.625000, + -0.550415, -0.124805, -0.813391, -0.543116, 0.221518, -0.809910, 0.625000, 0.750000, + -0.187832, 0.060938, -0.903437, -0.183910, 0.347287, -0.919548, 0.875000, 0.500000, + -0.374389, -0.033032, -0.879933, -0.367565, 0.294439, -0.882157, 0.750000, 0.625000, + -0.194348, -0.033032, -0.934780, -0.187464, 0.293744, -0.937321, 0.875000, 0.625000, + 0.000000, -0.033032, -0.953857, 0.000000, 0.293768, -0.955877, 1.000000, 0.625000, + -0.199373, -0.124805, -0.958945, -0.191271, 0.220920, -0.956352, 0.875000, 0.750000, + -0.550415, -0.124805, -0.813391, -0.543116, 0.221518, -0.809910, 0.625000, 0.750000, + -0.706013, -0.213940, -0.706013, -0.701575, 0.124842, -0.701575, 0.500000, 0.875000, + -0.559341, -0.213940, -0.826582, -0.552607, 0.124679, -0.824063, 0.625000, 0.875000, + -0.390296, -0.213940, -0.917320, -0.381616, 0.124647, -0.915878, 0.750000, 0.875000, + -0.562500, -0.300000, -0.831250, -0.556953, -0.000000, -0.830544, 0.625000, 1.000000, + -0.199373, -0.124805, -0.958945, -0.191271, 0.220920, -0.956352, 0.875000, 0.750000, + -0.390296, -0.213940, -0.917320, -0.381616, 0.124647, -0.915878, 0.750000, 0.875000, + -0.202606, -0.213940, -0.974497, -0.194595, 0.124330, -0.972972, 0.875000, 0.875000, + 0.000000, -0.213940, -0.994385, 0.000000, 0.124341, -0.992240, 1.000000, 0.875000, + -0.203750, -0.300000, -0.980000, -0.196116, -0.000000, -0.980581, 0.875000, 1.000000, + 0.000000, 0.450000, -0.750000, 0.000000, 0.429934, -0.902861, 0.000000, 0.000000, + 0.750000, 0.450000, -0.000000, 0.902861, 0.429934, -0.000000, 1.000000, 0.000000, + 0.000000, -0.300000, -1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 1.000000, + 1.000000, -0.300000, -0.000000, 1.000000, 0.000000, -0.000000, 1.000000, 1.000000, + 0.532500, 0.450000, -0.532500, 0.639602, 0.426401, -0.639602, 0.500000, 0.000000, + 0.000000, 0.060938, -0.921875, 0.000000, 0.347314, -0.937749, 0.000000, 0.500000, + 0.654531, 0.060938, -0.654531, 0.663890, 0.344239, -0.663890, 0.500000, 0.500000, + 0.921875, 0.060938, -0.000000, 0.937749, 0.347314, -0.000000, 1.000000, 0.500000, + 0.710000, -0.300000, -0.710000, 0.707107, 0.000000, -0.707107, 0.500000, 1.000000, + 0.294375, 0.450000, -0.691875, 0.347303, 0.429664, -0.833528, 0.250000, 0.000000, + 0.000000, 0.253711, -0.841797, 0.000000, 0.410706, -0.911768, 0.000000, 0.250000, + 0.330405, 0.253711, -0.776558, 0.350725, 0.410444, -0.841741, 0.250000, 0.250000, + 0.597676, 0.253711, -0.597676, 0.644272, 0.412102, -0.644272, 0.500000, 0.250000, + 0.361836, 0.060938, -0.850430, 0.360706, 0.347079, -0.865695, 0.250000, 0.500000, + 0.152812, 0.450000, -0.735000, 0.177064, 0.429952, -0.885319, 0.125000, 0.000000, + 0.000000, 0.351636, -0.796631, 0.000000, 0.425212, -0.905094, 0.000000, 0.125000, + 0.162314, 0.351636, -0.780698, 0.177502, 0.425230, -0.887509, 0.125000, 0.125000, + 0.312678, 0.351636, -0.734892, 0.347956, 0.426082, -0.835093, 0.250000, 0.125000, + 0.171516, 0.253711, -0.824961, 0.178811, 0.410724, -0.894054, 0.125000, 0.250000, + 0.421875, 0.450000, -0.623438, 0.502590, 0.430917, -0.749476, 0.375000, 0.000000, + 0.312678, 0.351636, -0.734892, 0.347956, 0.426082, -0.835093, 0.250000, 0.125000, + 0.448105, 0.351636, -0.662199, 0.503839, 0.426189, -0.751338, 0.375000, 0.125000, + 0.565608, 0.351636, -0.565608, 0.639524, 0.426636, -0.639524, 0.500000, 0.125000, + 0.473511, 0.253711, -0.699744, 0.507571, 0.411664, -0.756904, 0.375000, 0.250000, + 0.171516, 0.253711, -0.824961, 0.178811, 0.410724, -0.894054, 0.125000, 0.250000, + 0.000000, 0.156665, -0.884033, 0.000000, 0.385361, -0.922766, 0.000000, 0.375000, + 0.180122, 0.156665, -0.866353, 0.180968, 0.385379, -0.904839, 0.125000, 0.375000, + 0.346983, 0.156665, -0.815521, 0.354778, 0.386182, -0.851467, 0.250000, 0.375000, + 0.187832, 0.060938, -0.903437, 0.183906, 0.347330, -0.919533, 0.125000, 0.500000, + 0.473511, 0.253711, -0.699744, 0.507571, 0.411665, -0.756904, 0.375000, 0.250000, + 0.346983, 0.156665, -0.815521, 0.354778, 0.386182, -0.851467, 0.250000, 0.375000, + 0.497269, 0.156665, -0.734853, 0.513723, 0.386283, -0.766078, 0.375000, 0.375000, + 0.627664, 0.156665, -0.627664, 0.652097, 0.386703, -0.652097, 0.500000, 0.375000, + 0.518555, 0.060938, -0.766309, 0.522105, 0.348172, -0.778577, 0.375000, 0.500000, + 0.691875, 0.450000, -0.294375, 0.833647, 0.429394, -0.347353, 0.750000, 0.000000, + 0.597676, 0.253711, -0.597676, 0.644272, 0.412102, -0.644272, 0.500000, 0.250000, + 0.776558, 0.253711, -0.330405, 0.841850, 0.410181, -0.350771, 0.750000, 0.250000, + 0.841797, 0.253711, -0.000000, 0.911768, 0.410706, -0.000000, 1.000000, 0.250000, + 0.850430, 0.060938, -0.361836, 0.865775, 0.346844, -0.360739, 0.750000, 0.500000, + 0.623438, 0.450000, -0.421875, 0.749483, 0.430900, -0.502594, 0.625000, 0.000000, + 0.565608, 0.351636, -0.565608, 0.639524, 0.426636, -0.639524, 0.500000, 0.125000, + 0.662199, 0.351636, -0.448105, 0.751345, 0.426172, -0.503843, 0.625000, 0.125000, + 0.734892, 0.351636, -0.312678, 0.835093, 0.426082, -0.347956, 0.750000, 0.125000, + 0.699744, 0.253711, -0.473511, 0.756911, 0.411648, -0.507575, 0.625000, 0.250000, + 0.735000, 0.450000, -0.152812, 0.885342, 0.429903, -0.177068, 0.875000, 0.000000, + 0.734892, 0.351636, -0.312678, 0.835093, 0.426082, -0.347956, 0.750000, 0.125000, + 0.780698, 0.351636, -0.162314, 0.887532, 0.425181, -0.177506, 0.875000, 0.125000, + 0.796631, 0.351636, -0.000000, 0.905094, 0.425212, -0.000000, 1.000000, 0.125000, + 0.824961, 0.253711, -0.171516, 0.894075, 0.410676, -0.178815, 0.875000, 0.250000, + 0.699744, 0.253711, -0.473511, 0.756910, 0.411648, -0.507575, 0.625000, 0.250000, + 0.627664, 0.156665, -0.627664, 0.652097, 0.386703, -0.652097, 0.500000, 0.375000, + 0.734853, 0.156665, -0.497269, 0.766083, 0.386267, -0.513726, 0.625000, 0.375000, + 0.815521, 0.156665, -0.346983, 0.851467, 0.386182, -0.354778, 0.750000, 0.375000, + 0.766309, 0.060938, -0.518555, 0.778582, 0.348157, -0.522108, 0.625000, 0.500000, + 0.824961, 0.253711, -0.171516, 0.894075, 0.410676, -0.178815, 0.875000, 0.250000, + 0.815521, 0.156665, -0.346983, 0.851467, 0.386182, -0.354778, 0.750000, 0.375000, + 0.866353, 0.156665, -0.180122, 0.904858, 0.385333, -0.180972, 0.875000, 0.375000, + 0.884033, 0.156665, -0.000000, 0.922766, 0.385361, -0.000000, 1.000000, 0.375000, + 0.903437, 0.060938, -0.187832, 0.919548, 0.347288, -0.183909, 0.875000, 0.500000, + 0.361836, 0.060938, -0.850430, 0.360706, 0.347079, -0.865695, 0.250000, 0.500000, + 0.000000, -0.124805, -0.978516, 0.000000, 0.220939, -0.975288, 0.000000, 0.750000, + 0.384067, -0.124805, -0.902681, 0.375125, 0.220777, -0.900299, 0.250000, 0.750000, + 0.694746, -0.124805, -0.694746, 0.689495, 0.221799, -0.689494, 0.500000, 0.750000, + 0.392500, -0.300000, -0.922500, 0.384615, 0.000000, -0.923077, 0.250000, 1.000000, + 0.187832, 0.060938, -0.903437, 0.183906, 0.347330, -0.919533, 0.125000, 0.500000, + 0.000000, -0.033032, -0.953857, 0.000000, 0.293768, -0.955877, 0.000000, 0.625000, + 0.194348, -0.033032, -0.934780, 0.187462, 0.293782, -0.937310, 0.125000, 0.625000, + 0.374389, -0.033032, -0.879933, 0.367565, 0.294439, -0.882157, 0.250000, 0.625000, + 0.199373, -0.124805, -0.958945, 0.191269, 0.220950, -0.956346, 0.125000, 0.750000, + 0.518555, 0.060938, -0.766309, 0.522105, 0.348172, -0.778578, 0.375000, 0.500000, + 0.374389, -0.033032, -0.879933, 0.367565, 0.294439, -0.882157, 0.250000, 0.625000, + 0.536545, -0.033032, -0.792894, 0.532249, 0.294522, -0.793705, 0.375000, 0.625000, + 0.677239, -0.033032, -0.677239, 0.675668, 0.294866, -0.675668, 0.500000, 0.625000, + 0.550415, -0.124805, -0.813391, 0.543115, 0.221529, -0.809908, 0.375000, 0.750000, + 0.199373, -0.124805, -0.958945, 0.191269, 0.220950, -0.956346, 0.125000, 0.750000, + 0.000000, -0.213940, -0.994385, 0.000000, 0.124341, -0.992240, 0.000000, 0.875000, + 0.202606, -0.213940, -0.974497, 0.194594, 0.124347, -0.972970, 0.125000, 0.875000, + 0.390296, -0.213940, -0.917320, 0.381616, 0.124647, -0.915878, 0.250000, 0.875000, + 0.203750, -0.300000, -0.980000, 0.196116, 0.000000, -0.980581, 0.125000, 1.000000, + 0.550415, -0.124805, -0.813391, 0.543115, 0.221529, -0.809908, 0.375000, 0.750000, + 0.390296, -0.213940, -0.917320, 0.381616, 0.124647, -0.915878, 0.250000, 0.875000, + 0.559341, -0.213940, -0.826582, 0.552607, 0.124685, -0.824063, 0.375000, 0.875000, + 0.706013, -0.213940, -0.706013, 0.701575, 0.124842, -0.701575, 0.500000, 0.875000, + 0.562500, -0.300000, -0.831250, 0.556953, 0.000000, -0.830544, 0.375000, 1.000000, + 0.850430, 0.060938, -0.361836, 0.865775, 0.346844, -0.360740, 0.750000, 0.500000, + 0.694746, -0.124805, -0.694746, 0.689494, 0.221799, -0.689495, 0.500000, 0.750000, + 0.902681, -0.124805, -0.384067, 0.900333, 0.220616, -0.375139, 0.750000, 0.750000, + 0.978516, -0.124805, -0.000000, 0.975288, 0.220939, -0.000000, 1.000000, 0.750000, + 0.922500, -0.300000, -0.392500, 0.923077, 0.000000, -0.384615, 0.750000, 1.000000, + 0.766309, 0.060938, -0.518555, 0.778582, 0.348157, -0.522108, 0.625000, 0.500000, + 0.677239, -0.033032, -0.677239, 0.675668, 0.294866, -0.675668, 0.500000, 0.625000, + 0.792894, -0.033032, -0.536545, 0.793708, 0.294509, -0.532252, 0.625000, 0.625000, + 0.879933, -0.033032, -0.374389, 0.882157, 0.294439, -0.367565, 0.750000, 0.625000, + 0.813391, -0.124805, -0.550415, 0.809910, 0.221518, -0.543116, 0.625000, 0.750000, + 0.903437, 0.060938, -0.187832, 0.919548, 0.347287, -0.183910, 0.875000, 0.500000, + 0.879933, -0.033032, -0.374389, 0.882157, 0.294439, -0.367565, 0.750000, 0.625000, + 0.934780, -0.033032, -0.194348, 0.937321, 0.293744, -0.187464, 0.875000, 0.625000, + 0.953857, -0.033032, -0.000000, 0.955877, 0.293768, -0.000000, 1.000000, 0.625000, + 0.958945, -0.124805, -0.199373, 0.956352, 0.220920, -0.191271, 0.875000, 0.750000, + 0.813391, -0.124805, -0.550415, 0.809910, 0.221518, -0.543116, 0.625000, 0.750000, + 0.706013, -0.213940, -0.706013, 0.701575, 0.124842, -0.701575, 0.500000, 0.875000, + 0.826582, -0.213940, -0.559341, 0.824063, 0.124679, -0.552607, 0.625000, 0.875000, + 0.917320, -0.213940, -0.390296, 0.915878, 0.124647, -0.381616, 0.750000, 0.875000, + 0.831250, -0.300000, -0.562500, 0.830544, 0.000000, -0.556953, 0.625000, 1.000000, + 0.958945, -0.124805, -0.199373, 0.956352, 0.220920, -0.191271, 0.875000, 0.750000, + 0.917320, -0.213940, -0.390296, 0.915878, 0.124647, -0.381616, 0.750000, 0.875000, + 0.974497, -0.213940, -0.202606, 0.972972, 0.124330, -0.194595, 0.875000, 0.875000, + 0.994385, -0.213940, -0.000000, 0.992240, 0.124341, -0.000000, 1.000000, 0.875000, + 0.980000, -0.300000, -0.203750, 0.980581, 0.000000, -0.196116, 0.875000, 1.000000, + 1.000000, -0.300000, -0.000000, 1.000000, 0.000000, -0.000000, 0.000000, 0.000000, + 0.000000, -0.300000, 1.000000, 0.000000, 0.000000, 1.000000, 1.000000, 0.000000, + 0.750000, -0.675000, -0.000000, 1.000000, 0.000000, -0.000000, 0.000000, 1.000000, + 0.000000, -0.675000, 0.750000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000, + 0.710000, -0.300000, 0.710000, 0.707107, 0.000000, 0.707107, 0.500000, 0.000000, + 0.875000, -0.557812, -0.000000, 0.698100, -0.716000, 0.000000, 0.000000, 0.500000, + 0.621250, -0.557812, 0.621250, 0.496182, -0.712466, 0.496182, 0.500000, 0.500000, + 0.000000, -0.557812, 0.875000, 0.000000, -0.716000, 0.698100, 1.000000, 0.500000, + 0.532500, -0.675000, 0.532500, 0.707107, 0.000000, 0.707107, 0.500000, 1.000000, + 0.922500, -0.300000, 0.392500, 0.923077, 0.000000, 0.384615, 0.250000, 0.000000, + 0.960938, -0.448242, -0.000000, 0.876976, -0.480535, 0.000000, 0.000000, 0.250000, + 0.886465, -0.448242, 0.377168, 0.809660, -0.480250, 0.337358, 0.250000, 0.250000, + 0.682266, -0.448242, 0.682266, 0.619529, -0.482045, 0.619529, 0.500000, 0.250000, + 0.807187, -0.557812, 0.343437, 0.644654, -0.715732, 0.268606, 0.250000, 0.500000, + 0.980000, -0.300000, 0.203750, 0.980581, 0.000000, 0.196116, 0.125000, 0.000000, + 0.989258, -0.379175, -0.000000, 0.963722, -0.266906, 0.000000, 0.000000, 0.125000, + 0.969473, -0.379175, 0.201561, 0.945004, -0.266919, 0.189001, 0.125000, 0.125000, + 0.912590, -0.379175, 0.388284, 0.889432, -0.267526, 0.370596, 0.250000, 0.125000, + 0.941719, -0.448242, 0.195791, 0.859935, -0.480554, 0.171987, 0.125000, 0.250000, + 0.831250, -0.300000, 0.562500, 0.830544, 0.000000, 0.556953, 0.375000, 0.000000, + 0.912590, -0.379175, 0.388284, 0.889431, -0.267526, 0.370597, 0.250000, 0.125000, + 0.822320, -0.379175, 0.556458, 0.800254, -0.267602, 0.536641, 0.375000, 0.125000, + 0.702373, -0.379175, 0.702373, 0.681256, -0.267921, 0.681256, 0.500000, 0.125000, + 0.798779, -0.448242, 0.540527, 0.727894, -0.481571, 0.488118, 0.375000, 0.250000, + 0.941719, -0.448242, 0.195791, 0.859935, -0.480554, 0.171987, 0.125000, 0.250000, + 0.920898, -0.507642, -0.000000, 0.779645, -0.626221, 0.000000, 0.000000, 0.375000, + 0.902480, -0.507642, 0.187633, 0.764489, -0.626241, 0.152898, 0.125000, 0.375000, + 0.849529, -0.507642, 0.361453, 0.718967, -0.627172, 0.299570, 0.250000, 0.375000, + 0.857500, -0.557812, 0.178281, 0.684525, -0.716019, 0.136905, 0.125000, 0.500000, + 0.798779, -0.448242, 0.540527, 0.727894, -0.481572, 0.488118, 0.375000, 0.250000, + 0.849529, -0.507642, 0.361453, 0.718967, -0.627172, 0.299570, 0.250000, 0.375000, + 0.765497, -0.507642, 0.518005, 0.646817, -0.627288, 0.433748, 0.375000, 0.375000, + 0.653838, -0.507642, 0.653838, 0.550409, -0.627775, 0.550409, 0.500000, 0.375000, + 0.727344, -0.557812, 0.492188, 0.578969, -0.716978, 0.388249, 0.375000, 0.500000, + 0.392500, -0.300000, 0.922500, 0.384615, 0.000000, 0.923077, 0.750000, 0.000000, + 0.682266, -0.448242, 0.682266, 0.619529, -0.482045, 0.619529, 0.500000, 0.250000, + 0.377168, -0.448242, 0.886465, 0.337418, -0.479966, 0.809804, 0.750000, 0.250000, + 0.000000, -0.448242, 0.960938, 0.000000, -0.480535, 0.876976, 1.000000, 0.250000, + 0.343437, -0.557812, 0.807187, 0.268712, -0.715463, 0.644908, 0.750000, 0.500000, + 0.562500, -0.300000, 0.831250, 0.556953, 0.000000, 0.830544, 0.625000, 0.000000, + 0.702373, -0.379175, 0.702373, 0.681256, -0.267921, 0.681256, 0.500000, 0.125000, + 0.556458, -0.379175, 0.822320, 0.536643, -0.267590, 0.800256, 0.625000, 0.125000, + 0.388284, -0.379175, 0.912590, 0.370597, -0.267526, 0.889431, 0.750000, 0.125000, + 0.540527, -0.448242, 0.798779, 0.488123, -0.481553, 0.727903, 0.625000, 0.250000, + 0.203750, -0.300000, 0.980000, 0.196116, 0.000000, 0.980581, 0.875000, 0.000000, + 0.388284, -0.379175, 0.912590, 0.370596, -0.267526, 0.889432, 0.750000, 0.125000, + 0.201561, -0.379175, 0.969473, 0.189003, -0.266885, 0.945014, 0.875000, 0.125000, + 0.000000, -0.379175, 0.989258, 0.000000, -0.266906, 0.963722, 1.000000, 0.125000, + 0.195791, -0.448242, 0.941719, 0.171993, -0.480502, 0.859963, 0.875000, 0.250000, + 0.540527, -0.448242, 0.798779, 0.488123, -0.481553, 0.727903, 0.625000, 0.250000, + 0.653838, -0.507642, 0.653838, 0.550409, -0.627775, 0.550409, 0.500000, 0.375000, + 0.518005, -0.507642, 0.765497, 0.433756, -0.627270, 0.646829, 0.625000, 0.375000, + 0.361453, -0.507642, 0.849529, 0.299570, -0.627172, 0.718967, 0.750000, 0.375000, + 0.492188, -0.557812, 0.727344, 0.388259, -0.716961, 0.578983, 0.625000, 0.500000, + 0.195791, -0.448242, 0.941719, 0.171993, -0.480502, 0.859963, 0.875000, 0.250000, + 0.361453, -0.507642, 0.849529, 0.299570, -0.627172, 0.718967, 0.750000, 0.375000, + 0.187633, -0.507642, 0.902480, 0.152906, -0.626188, 0.764532, 0.875000, 0.375000, + 0.000000, -0.507642, 0.920898, 0.000000, -0.626221, 0.779645, 1.000000, 0.375000, + 0.178281, -0.557812, 0.857500, 0.136915, -0.715970, 0.684574, 0.875000, 0.500000, + 0.807187, -0.557812, 0.343437, 0.644654, -0.715731, 0.268606, 0.250000, 0.500000, + 0.789062, -0.632227, -0.000000, 0.636383, -0.771373, 0.000000, 0.000000, 0.750000, + 0.727910, -0.632227, 0.309707, 0.587700, -0.771133, 0.244875, 0.250000, 0.750000, + 0.560234, -0.632227, 0.560234, 0.448897, -0.772647, 0.448897, 0.500000, 0.750000, + 0.691875, -0.675000, 0.294375, 0.923077, 0.000000, 0.384615, 0.250000, 1.000000, + 0.857500, -0.557812, 0.178281, 0.684525, -0.716018, 0.136905, 0.125000, 0.500000, + 0.829102, -0.599194, -0.000000, 0.645429, -0.763821, 0.000000, 0.000000, 0.625000, + 0.812519, -0.599194, 0.168929, 0.632876, -0.763837, 0.126575, 0.125000, 0.625000, + 0.764846, -0.599194, 0.325422, 0.594912, -0.764614, 0.247880, 0.250000, 0.625000, + 0.773281, -0.632227, 0.160771, 0.624005, -0.771390, 0.124801, 0.125000, 0.750000, + 0.727344, -0.557812, 0.492188, 0.578969, -0.716978, 0.388249, 0.375000, 0.500000, + 0.764846, -0.599194, 0.325422, 0.594912, -0.764614, 0.247880, 0.250000, 0.625000, + 0.689191, -0.599194, 0.466370, 0.535179, -0.764712, 0.358885, 0.375000, 0.625000, + 0.588662, -0.599194, 0.588662, 0.455299, -0.765118, 0.455299, 0.500000, 0.625000, + 0.655908, -0.632227, 0.443848, 0.527662, -0.772248, 0.353844, 0.375000, 0.750000, + 0.773281, -0.632227, 0.160771, 0.624005, -0.771390, 0.124801, 0.125000, 0.750000, + 0.760742, -0.657349, -0.000000, 0.720596, -0.693356, 0.000000, 0.000000, 0.875000, + 0.745527, -0.657349, 0.155001, 0.706584, -0.693375, 0.141317, 0.125000, 0.875000, + 0.701785, -0.657349, 0.298591, 0.664366, -0.694254, 0.276819, 0.250000, 0.875000, + 0.735000, -0.675000, 0.152812, 0.980581, 0.000000, 0.196116, 0.125000, 1.000000, + 0.655908, -0.632227, 0.443848, 0.527662, -0.772249, 0.353844, 0.375000, 0.750000, + 0.701785, -0.657349, 0.298591, 0.664366, -0.694254, 0.276819, 0.250000, 0.875000, + 0.632367, -0.657349, 0.427917, 0.597679, -0.694365, 0.400796, 0.375000, 0.875000, + 0.540127, -0.657349, 0.540127, 0.508537, -0.694825, 0.508536, 0.500000, 0.875000, + 0.623438, -0.675000, 0.421875, 0.830544, 0.000000, 0.556953, 0.375000, 1.000000, + 0.343437, -0.557812, 0.807187, 0.268712, -0.715463, 0.644909, 0.750000, 0.500000, + 0.560234, -0.632227, 0.560234, 0.448897, -0.772647, 0.448897, 0.500000, 0.750000, + 0.309707, -0.632227, 0.727910, 0.244987, -0.770892, 0.587969, 0.750000, 0.750000, + 0.000000, -0.632227, 0.789062, 0.000000, -0.771373, 0.636383, 1.000000, 0.750000, + 0.294375, -0.675000, 0.691875, 0.384615, 0.000000, 0.923077, 0.750000, 1.000000, + 0.492188, -0.557812, 0.727344, 0.388259, -0.716961, 0.578983, 0.625000, 0.500000, + 0.588662, -0.599194, 0.588662, 0.455299, -0.765118, 0.455299, 0.500000, 0.625000, + 0.466370, -0.599194, 0.689191, 0.358895, -0.764697, 0.535195, 0.625000, 0.625000, + 0.325422, -0.599194, 0.764846, 0.247880, -0.764614, 0.594912, 0.750000, 0.625000, + 0.443848, -0.632227, 0.655908, 0.353854, -0.772233, 0.527677, 0.625000, 0.750000, + 0.178281, -0.557812, 0.857500, 0.136915, -0.715969, 0.684575, 0.875000, 0.500000, + 0.325422, -0.599194, 0.764846, 0.247880, -0.764614, 0.594912, 0.750000, 0.625000, + 0.168929, -0.599194, 0.812519, 0.126585, -0.763793, 0.632927, 0.875000, 0.625000, + 0.000000, -0.599194, 0.829102, 0.000000, -0.763821, 0.645429, 1.000000, 0.625000, + 0.160771, -0.632227, 0.773281, 0.124811, -0.771346, 0.624057, 0.875000, 0.750000, + 0.443848, -0.632227, 0.655908, 0.353854, -0.772233, 0.527677, 0.625000, 0.750000, + 0.540127, -0.657349, 0.540127, 0.508536, -0.694825, 0.508537, 0.500000, 0.875000, + 0.427917, -0.657349, 0.632367, 0.400806, -0.694347, 0.597693, 0.625000, 0.875000, + 0.298591, -0.657349, 0.701785, 0.276819, -0.694254, 0.664366, 0.750000, 0.875000, + 0.421875, -0.675000, 0.623438, 0.556953, 0.000000, 0.830544, 0.625000, 1.000000, + 0.160771, -0.632227, 0.773281, 0.124811, -0.771346, 0.624057, 0.875000, 0.750000, + 0.298591, -0.657349, 0.701785, 0.276819, -0.694254, 0.664366, 0.750000, 0.875000, + 0.155001, -0.657349, 0.745527, 0.141326, -0.693324, 0.706632, 0.875000, 0.875000, + 0.000000, -0.657349, 0.760742, 0.000000, -0.693356, 0.720596, 1.000000, 0.875000, + 0.152812, -0.675000, 0.735000, 0.196116, 0.000000, 0.980581, 0.875000, 1.000000, + 0.000000, -0.300000, 1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, + -1.000000, -0.300000, -0.000000, -1.000000, -0.000000, -0.000000, 1.000000, 0.000000, + 0.000000, -0.675000, 0.750000, 0.000000, 0.000000, 1.000000, 0.000000, 1.000000, + -0.750000, -0.675000, -0.000000, -1.000000, -0.000000, -0.000000, 1.000000, 1.000000, + -0.710000, -0.300000, 0.710000, -0.707107, 0.000000, 0.707107, 0.500000, 0.000000, + 0.000000, -0.557812, 0.875000, 0.000000, -0.716000, 0.698100, 0.000000, 0.500000, + -0.621250, -0.557812, 0.621250, -0.496182, -0.712466, 0.496182, 0.500000, 0.500000, + -0.875000, -0.557812, -0.000000, -0.698100, -0.716000, -0.000000, 1.000000, 0.500000, + -0.532500, -0.675000, 0.532500, -0.707107, 0.000000, 0.707107, 0.500000, 1.000000, + -0.392500, -0.300000, 0.922500, -0.384615, 0.000000, 0.923077, 0.250000, 0.000000, + 0.000000, -0.448242, 0.960938, 0.000000, -0.480535, 0.876976, 0.000000, 0.250000, + -0.377168, -0.448242, 0.886465, -0.337358, -0.480250, 0.809660, 0.250000, 0.250000, + -0.682266, -0.448242, 0.682266, -0.619529, -0.482045, 0.619529, 0.500000, 0.250000, + -0.343437, -0.557812, 0.807187, -0.268606, -0.715732, 0.644654, 0.250000, 0.500000, + -0.203750, -0.300000, 0.980000, -0.196116, 0.000000, 0.980581, 0.125000, 0.000000, + 0.000000, -0.379175, 0.989258, 0.000000, -0.266906, 0.963722, 0.000000, 0.125000, + -0.201561, -0.379175, 0.969473, -0.189001, -0.266919, 0.945004, 0.125000, 0.125000, + -0.388284, -0.379175, 0.912590, -0.370596, -0.267526, 0.889432, 0.250000, 0.125000, + -0.195791, -0.448242, 0.941719, -0.171987, -0.480554, 0.859935, 0.125000, 0.250000, + -0.562500, -0.300000, 0.831250, -0.556953, 0.000000, 0.830544, 0.375000, 0.000000, + -0.388284, -0.379175, 0.912590, -0.370597, -0.267526, 0.889431, 0.250000, 0.125000, + -0.556458, -0.379175, 0.822320, -0.536641, -0.267602, 0.800254, 0.375000, 0.125000, + -0.702373, -0.379175, 0.702373, -0.681256, -0.267921, 0.681256, 0.500000, 0.125000, + -0.540527, -0.448242, 0.798779, -0.488118, -0.481571, 0.727894, 0.375000, 0.250000, + -0.195791, -0.448242, 0.941719, -0.171987, -0.480554, 0.859935, 0.125000, 0.250000, + 0.000000, -0.507642, 0.920898, 0.000000, -0.626221, 0.779645, 0.000000, 0.375000, + -0.187633, -0.507642, 0.902480, -0.152898, -0.626241, 0.764489, 0.125000, 0.375000, + -0.361453, -0.507642, 0.849529, -0.299570, -0.627172, 0.718967, 0.250000, 0.375000, + -0.178281, -0.557812, 0.857500, -0.136905, -0.716019, 0.684525, 0.125000, 0.500000, + -0.540527, -0.448242, 0.798779, -0.488118, -0.481572, 0.727894, 0.375000, 0.250000, + -0.361453, -0.507642, 0.849529, -0.299570, -0.627172, 0.718967, 0.250000, 0.375000, + -0.518005, -0.507642, 0.765497, -0.433748, -0.627288, 0.646817, 0.375000, 0.375000, + -0.653838, -0.507642, 0.653838, -0.550409, -0.627775, 0.550409, 0.500000, 0.375000, + -0.492188, -0.557812, 0.727344, -0.388249, -0.716978, 0.578969, 0.375000, 0.500000, + -0.922500, -0.300000, 0.392500, -0.923077, 0.000000, 0.384615, 0.750000, 0.000000, + -0.682266, -0.448242, 0.682266, -0.619529, -0.482045, 0.619529, 0.500000, 0.250000, + -0.886465, -0.448242, 0.377168, -0.809804, -0.479966, 0.337418, 0.750000, 0.250000, + -0.960938, -0.448242, -0.000000, -0.876976, -0.480535, -0.000000, 1.000000, 0.250000, + -0.807187, -0.557812, 0.343437, -0.644908, -0.715463, 0.268712, 0.750000, 0.500000, + -0.831250, -0.300000, 0.562500, -0.830544, 0.000000, 0.556953, 0.625000, 0.000000, + -0.702373, -0.379175, 0.702373, -0.681256, -0.267921, 0.681256, 0.500000, 0.125000, + -0.822320, -0.379175, 0.556458, -0.800256, -0.267590, 0.536643, 0.625000, 0.125000, + -0.912590, -0.379175, 0.388284, -0.889431, -0.267526, 0.370597, 0.750000, 0.125000, + -0.798779, -0.448242, 0.540527, -0.727903, -0.481553, 0.488123, 0.625000, 0.250000, + -0.980000, -0.300000, 0.203750, -0.980581, 0.000000, 0.196116, 0.875000, 0.000000, + -0.912590, -0.379175, 0.388284, -0.889432, -0.267526, 0.370596, 0.750000, 0.125000, + -0.969473, -0.379175, 0.201561, -0.945014, -0.266885, 0.189003, 0.875000, 0.125000, + -0.989258, -0.379175, -0.000000, -0.963722, -0.266906, -0.000000, 1.000000, 0.125000, + -0.941719, -0.448242, 0.195791, -0.859963, -0.480502, 0.171993, 0.875000, 0.250000, + -0.798779, -0.448242, 0.540527, -0.727903, -0.481553, 0.488123, 0.625000, 0.250000, + -0.653838, -0.507642, 0.653838, -0.550409, -0.627775, 0.550409, 0.500000, 0.375000, + -0.765497, -0.507642, 0.518005, -0.646829, -0.627270, 0.433756, 0.625000, 0.375000, + -0.849529, -0.507642, 0.361453, -0.718967, -0.627172, 0.299570, 0.750000, 0.375000, + -0.727344, -0.557812, 0.492188, -0.578983, -0.716961, 0.388259, 0.625000, 0.500000, + -0.941719, -0.448242, 0.195791, -0.859963, -0.480502, 0.171993, 0.875000, 0.250000, + -0.849529, -0.507642, 0.361453, -0.718967, -0.627172, 0.299570, 0.750000, 0.375000, + -0.902480, -0.507642, 0.187633, -0.764532, -0.626188, 0.152906, 0.875000, 0.375000, + -0.920898, -0.507642, -0.000000, -0.779645, -0.626221, -0.000000, 1.000000, 0.375000, + -0.857500, -0.557812, 0.178281, -0.684574, -0.715970, 0.136915, 0.875000, 0.500000, + -0.343437, -0.557812, 0.807187, -0.268606, -0.715731, 0.644654, 0.250000, 0.500000, + 0.000000, -0.632227, 0.789062, 0.000000, -0.771373, 0.636383, 0.000000, 0.750000, + -0.309707, -0.632227, 0.727910, -0.244875, -0.771133, 0.587700, 0.250000, 0.750000, + -0.560234, -0.632227, 0.560234, -0.448897, -0.772647, 0.448897, 0.500000, 0.750000, + -0.294375, -0.675000, 0.691875, -0.384615, 0.000000, 0.923077, 0.250000, 1.000000, + -0.178281, -0.557812, 0.857500, -0.136905, -0.716018, 0.684525, 0.125000, 0.500000, + 0.000000, -0.599194, 0.829102, 0.000000, -0.763821, 0.645429, 0.000000, 0.625000, + -0.168929, -0.599194, 0.812519, -0.126575, -0.763837, 0.632876, 0.125000, 0.625000, + -0.325422, -0.599194, 0.764846, -0.247880, -0.764614, 0.594912, 0.250000, 0.625000, + -0.160771, -0.632227, 0.773281, -0.124801, -0.771390, 0.624005, 0.125000, 0.750000, + -0.492188, -0.557812, 0.727344, -0.388249, -0.716978, 0.578969, 0.375000, 0.500000, + -0.325422, -0.599194, 0.764846, -0.247880, -0.764614, 0.594912, 0.250000, 0.625000, + -0.466370, -0.599194, 0.689191, -0.358885, -0.764712, 0.535179, 0.375000, 0.625000, + -0.588662, -0.599194, 0.588662, -0.455299, -0.765118, 0.455299, 0.500000, 0.625000, + -0.443848, -0.632227, 0.655908, -0.353844, -0.772248, 0.527662, 0.375000, 0.750000, + -0.160771, -0.632227, 0.773281, -0.124801, -0.771390, 0.624005, 0.125000, 0.750000, + 0.000000, -0.657349, 0.760742, 0.000000, -0.693356, 0.720596, 0.000000, 0.875000, + -0.155001, -0.657349, 0.745527, -0.141317, -0.693375, 0.706584, 0.125000, 0.875000, + -0.298591, -0.657349, 0.701785, -0.276819, -0.694254, 0.664366, 0.250000, 0.875000, + -0.152812, -0.675000, 0.735000, -0.196116, 0.000000, 0.980581, 0.125000, 1.000000, + -0.443848, -0.632227, 0.655908, -0.353844, -0.772249, 0.527662, 0.375000, 0.750000, + -0.298591, -0.657349, 0.701785, -0.276819, -0.694254, 0.664366, 0.250000, 0.875000, + -0.427917, -0.657349, 0.632367, -0.400796, -0.694365, 0.597679, 0.375000, 0.875000, + -0.540127, -0.657349, 0.540127, -0.508536, -0.694825, 0.508537, 0.500000, 0.875000, + -0.421875, -0.675000, 0.623438, -0.556953, 0.000000, 0.830544, 0.375000, 1.000000, + -0.807187, -0.557812, 0.343437, -0.644909, -0.715463, 0.268712, 0.750000, 0.500000, + -0.560234, -0.632227, 0.560234, -0.448897, -0.772647, 0.448897, 0.500000, 0.750000, + -0.727910, -0.632227, 0.309707, -0.587969, -0.770892, 0.244987, 0.750000, 0.750000, + -0.789062, -0.632227, -0.000000, -0.636383, -0.771373, -0.000000, 1.000000, 0.750000, + -0.691875, -0.675000, 0.294375, -0.923077, 0.000000, 0.384615, 0.750000, 1.000000, + -0.727344, -0.557812, 0.492188, -0.578983, -0.716961, 0.388259, 0.625000, 0.500000, + -0.588662, -0.599194, 0.588662, -0.455299, -0.765118, 0.455299, 0.500000, 0.625000, + -0.689191, -0.599194, 0.466370, -0.535195, -0.764697, 0.358895, 0.625000, 0.625000, + -0.764846, -0.599194, 0.325422, -0.594912, -0.764614, 0.247880, 0.750000, 0.625000, + -0.655908, -0.632227, 0.443848, -0.527677, -0.772233, 0.353854, 0.625000, 0.750000, + -0.857500, -0.557812, 0.178281, -0.684575, -0.715969, 0.136915, 0.875000, 0.500000, + -0.764846, -0.599194, 0.325422, -0.594912, -0.764614, 0.247880, 0.750000, 0.625000, + -0.812519, -0.599194, 0.168929, -0.632927, -0.763793, 0.126585, 0.875000, 0.625000, + -0.829102, -0.599194, -0.000000, -0.645429, -0.763821, -0.000000, 1.000000, 0.625000, + -0.773281, -0.632227, 0.160771, -0.624057, -0.771346, 0.124811, 0.875000, 0.750000, + -0.655908, -0.632227, 0.443848, -0.527677, -0.772233, 0.353854, 0.625000, 0.750000, + -0.540127, -0.657349, 0.540127, -0.508537, -0.694825, 0.508536, 0.500000, 0.875000, + -0.632367, -0.657349, 0.427917, -0.597693, -0.694347, 0.400806, 0.625000, 0.875000, + -0.701785, -0.657349, 0.298591, -0.664366, -0.694254, 0.276819, 0.750000, 0.875000, + -0.623438, -0.675000, 0.421875, -0.830544, 0.000000, 0.556953, 0.625000, 1.000000, + -0.773281, -0.632227, 0.160771, -0.624057, -0.771346, 0.124811, 0.875000, 0.750000, + -0.701785, -0.657349, 0.298591, -0.664366, -0.694254, 0.276819, 0.750000, 0.875000, + -0.745527, -0.657349, 0.155001, -0.706632, -0.693324, 0.141326, 0.875000, 0.875000, + -0.760742, -0.657349, -0.000000, -0.720596, -0.693356, -0.000000, 1.000000, 0.875000, + -0.735000, -0.675000, 0.152812, -0.980581, 0.000000, 0.196116, 0.875000, 1.000000, + -1.000000, -0.300000, -0.000000, -1.000000, -0.000000, -0.000000, 0.000000, 0.000000, + 0.000000, -0.300000, -1.000000, 0.000000, 0.000000, -1.000000, 1.000000, 0.000000, + -0.750000, -0.675000, -0.000000, -1.000000, -0.000000, -0.000000, 0.000000, 1.000000, + 0.000000, -0.675000, -0.750000, 0.000000, 0.000000, -1.000000, 1.000000, 1.000000, + -0.710000, -0.300000, -0.710000, -0.707107, -0.000000, -0.707107, 0.500000, 0.000000, + -0.875000, -0.557812, -0.000000, -0.698100, -0.716000, -0.000000, 0.000000, 0.500000, + -0.621250, -0.557812, -0.621250, -0.496182, -0.712466, -0.496182, 0.500000, 0.500000, + 0.000000, -0.557812, -0.875000, 0.000000, -0.716000, -0.698100, 1.000000, 0.500000, + -0.532500, -0.675000, -0.532500, -0.707107, -0.000000, -0.707107, 0.500000, 1.000000, + -0.922500, -0.300000, -0.392500, -0.923077, -0.000000, -0.384615, 0.250000, 0.000000, + -0.960938, -0.448242, -0.000000, -0.876976, -0.480535, -0.000000, 0.000000, 0.250000, + -0.886465, -0.448242, -0.377168, -0.809660, -0.480250, -0.337358, 0.250000, 0.250000, + -0.682266, -0.448242, -0.682266, -0.619529, -0.482045, -0.619529, 0.500000, 0.250000, + -0.807187, -0.557812, -0.343437, -0.644654, -0.715732, -0.268606, 0.250000, 0.500000, + -0.980000, -0.300000, -0.203750, -0.980581, -0.000000, -0.196116, 0.125000, 0.000000, + -0.989258, -0.379175, -0.000000, -0.963722, -0.266906, -0.000000, 0.000000, 0.125000, + -0.969473, -0.379175, -0.201561, -0.945004, -0.266919, -0.189001, 0.125000, 0.125000, + -0.912590, -0.379175, -0.388284, -0.889432, -0.267526, -0.370596, 0.250000, 0.125000, + -0.941719, -0.448242, -0.195791, -0.859935, -0.480554, -0.171987, 0.125000, 0.250000, + -0.831250, -0.300000, -0.562500, -0.830544, -0.000000, -0.556953, 0.375000, 0.000000, + -0.912590, -0.379175, -0.388284, -0.889431, -0.267526, -0.370597, 0.250000, 0.125000, + -0.822320, -0.379175, -0.556458, -0.800254, -0.267602, -0.536641, 0.375000, 0.125000, + -0.702373, -0.379175, -0.702373, -0.681256, -0.267921, -0.681256, 0.500000, 0.125000, + -0.798779, -0.448242, -0.540527, -0.727894, -0.481571, -0.488118, 0.375000, 0.250000, + -0.941719, -0.448242, -0.195791, -0.859935, -0.480554, -0.171987, 0.125000, 0.250000, + -0.920898, -0.507642, -0.000000, -0.779645, -0.626221, -0.000000, 0.000000, 0.375000, + -0.902480, -0.507642, -0.187633, -0.764489, -0.626241, -0.152898, 0.125000, 0.375000, + -0.849529, -0.507642, -0.361453, -0.718967, -0.627172, -0.299570, 0.250000, 0.375000, + -0.857500, -0.557812, -0.178281, -0.684525, -0.716019, -0.136905, 0.125000, 0.500000, + -0.798779, -0.448242, -0.540527, -0.727894, -0.481572, -0.488118, 0.375000, 0.250000, + -0.849529, -0.507642, -0.361453, -0.718967, -0.627172, -0.299570, 0.250000, 0.375000, + -0.765497, -0.507642, -0.518005, -0.646817, -0.627288, -0.433748, 0.375000, 0.375000, + -0.653838, -0.507642, -0.653838, -0.550409, -0.627775, -0.550409, 0.500000, 0.375000, + -0.727344, -0.557812, -0.492188, -0.578969, -0.716978, -0.388249, 0.375000, 0.500000, + -0.392500, -0.300000, -0.922500, -0.384615, -0.000000, -0.923077, 0.750000, 0.000000, + -0.682266, -0.448242, -0.682266, -0.619529, -0.482045, -0.619529, 0.500000, 0.250000, + -0.377168, -0.448242, -0.886465, -0.337418, -0.479966, -0.809804, 0.750000, 0.250000, + 0.000000, -0.448242, -0.960938, 0.000000, -0.480535, -0.876976, 1.000000, 0.250000, + -0.343437, -0.557812, -0.807187, -0.268712, -0.715463, -0.644908, 0.750000, 0.500000, + -0.562500, -0.300000, -0.831250, -0.556953, -0.000000, -0.830544, 0.625000, 0.000000, + -0.702373, -0.379175, -0.702373, -0.681256, -0.267921, -0.681256, 0.500000, 0.125000, + -0.556458, -0.379175, -0.822320, -0.536643, -0.267590, -0.800256, 0.625000, 0.125000, + -0.388284, -0.379175, -0.912590, -0.370597, -0.267526, -0.889431, 0.750000, 0.125000, + -0.540527, -0.448242, -0.798779, -0.488123, -0.481553, -0.727903, 0.625000, 0.250000, + -0.203750, -0.300000, -0.980000, -0.196116, -0.000000, -0.980581, 0.875000, 0.000000, + -0.388284, -0.379175, -0.912590, -0.370596, -0.267526, -0.889432, 0.750000, 0.125000, + -0.201561, -0.379175, -0.969473, -0.189003, -0.266885, -0.945014, 0.875000, 0.125000, + 0.000000, -0.379175, -0.989258, 0.000000, -0.266906, -0.963722, 1.000000, 0.125000, + -0.195791, -0.448242, -0.941719, -0.171993, -0.480502, -0.859963, 0.875000, 0.250000, + -0.540527, -0.448242, -0.798779, -0.488123, -0.481553, -0.727903, 0.625000, 0.250000, + -0.653838, -0.507642, -0.653838, -0.550409, -0.627775, -0.550409, 0.500000, 0.375000, + -0.518005, -0.507642, -0.765497, -0.433756, -0.627270, -0.646829, 0.625000, 0.375000, + -0.361453, -0.507642, -0.849529, -0.299570, -0.627172, -0.718967, 0.750000, 0.375000, + -0.492188, -0.557812, -0.727344, -0.388259, -0.716961, -0.578983, 0.625000, 0.500000, + -0.195791, -0.448242, -0.941719, -0.171993, -0.480502, -0.859963, 0.875000, 0.250000, + -0.361453, -0.507642, -0.849529, -0.299570, -0.627172, -0.718967, 0.750000, 0.375000, + -0.187633, -0.507642, -0.902480, -0.152906, -0.626188, -0.764532, 0.875000, 0.375000, + 0.000000, -0.507642, -0.920898, 0.000000, -0.626221, -0.779645, 1.000000, 0.375000, + -0.178281, -0.557812, -0.857500, -0.136915, -0.715970, -0.684574, 0.875000, 0.500000, + -0.807187, -0.557812, -0.343437, -0.644654, -0.715731, -0.268606, 0.250000, 0.500000, + -0.789062, -0.632227, -0.000000, -0.636383, -0.771373, -0.000000, 0.000000, 0.750000, + -0.727910, -0.632227, -0.309707, -0.587700, -0.771133, -0.244875, 0.250000, 0.750000, + -0.560234, -0.632227, -0.560234, -0.448897, -0.772647, -0.448897, 0.500000, 0.750000, + -0.691875, -0.675000, -0.294375, -0.923077, -0.000000, -0.384615, 0.250000, 1.000000, + -0.857500, -0.557812, -0.178281, -0.684525, -0.716018, -0.136905, 0.125000, 0.500000, + -0.829102, -0.599194, -0.000000, -0.645429, -0.763821, -0.000000, 0.000000, 0.625000, + -0.812519, -0.599194, -0.168929, -0.632876, -0.763837, -0.126575, 0.125000, 0.625000, + -0.764846, -0.599194, -0.325422, -0.594912, -0.764614, -0.247880, 0.250000, 0.625000, + -0.773281, -0.632227, -0.160771, -0.624005, -0.771390, -0.124801, 0.125000, 0.750000, + -0.727344, -0.557812, -0.492188, -0.578969, -0.716978, -0.388249, 0.375000, 0.500000, + -0.764846, -0.599194, -0.325422, -0.594912, -0.764614, -0.247880, 0.250000, 0.625000, + -0.689191, -0.599194, -0.466370, -0.535179, -0.764712, -0.358885, 0.375000, 0.625000, + -0.588662, -0.599194, -0.588662, -0.455299, -0.765118, -0.455299, 0.500000, 0.625000, + -0.655908, -0.632227, -0.443848, -0.527662, -0.772248, -0.353844, 0.375000, 0.750000, + -0.773281, -0.632227, -0.160771, -0.624005, -0.771390, -0.124801, 0.125000, 0.750000, + -0.760742, -0.657349, -0.000000, -0.720596, -0.693356, -0.000000, 0.000000, 0.875000, + -0.745527, -0.657349, -0.155001, -0.706584, -0.693375, -0.141317, 0.125000, 0.875000, + -0.701785, -0.657349, -0.298591, -0.664366, -0.694254, -0.276819, 0.250000, 0.875000, + -0.735000, -0.675000, -0.152812, -0.980581, -0.000000, -0.196116, 0.125000, 1.000000, + -0.655908, -0.632227, -0.443848, -0.527662, -0.772249, -0.353844, 0.375000, 0.750000, + -0.701785, -0.657349, -0.298591, -0.664366, -0.694254, -0.276819, 0.250000, 0.875000, + -0.632367, -0.657349, -0.427917, -0.597679, -0.694365, -0.400796, 0.375000, 0.875000, + -0.540127, -0.657349, -0.540127, -0.508537, -0.694825, -0.508536, 0.500000, 0.875000, + -0.623438, -0.675000, -0.421875, -0.830544, -0.000000, -0.556953, 0.375000, 1.000000, + -0.343437, -0.557812, -0.807187, -0.268712, -0.715463, -0.644909, 0.750000, 0.500000, + -0.560234, -0.632227, -0.560234, -0.448897, -0.772647, -0.448897, 0.500000, 0.750000, + -0.309707, -0.632227, -0.727910, -0.244987, -0.770892, -0.587969, 0.750000, 0.750000, + 0.000000, -0.632227, -0.789062, 0.000000, -0.771373, -0.636383, 1.000000, 0.750000, + -0.294375, -0.675000, -0.691875, -0.384615, -0.000000, -0.923077, 0.750000, 1.000000, + -0.492188, -0.557812, -0.727344, -0.388259, -0.716961, -0.578983, 0.625000, 0.500000, + -0.588662, -0.599194, -0.588662, -0.455299, -0.765118, -0.455299, 0.500000, 0.625000, + -0.466370, -0.599194, -0.689191, -0.358895, -0.764697, -0.535195, 0.625000, 0.625000, + -0.325422, -0.599194, -0.764846, -0.247880, -0.764614, -0.594912, 0.750000, 0.625000, + -0.443848, -0.632227, -0.655908, -0.353854, -0.772233, -0.527677, 0.625000, 0.750000, + -0.178281, -0.557812, -0.857500, -0.136915, -0.715969, -0.684575, 0.875000, 0.500000, + -0.325422, -0.599194, -0.764846, -0.247880, -0.764614, -0.594912, 0.750000, 0.625000, + -0.168929, -0.599194, -0.812519, -0.126585, -0.763793, -0.632927, 0.875000, 0.625000, + 0.000000, -0.599194, -0.829102, 0.000000, -0.763821, -0.645429, 1.000000, 0.625000, + -0.160771, -0.632227, -0.773281, -0.124811, -0.771346, -0.624057, 0.875000, 0.750000, + -0.443848, -0.632227, -0.655908, -0.353854, -0.772233, -0.527677, 0.625000, 0.750000, + -0.540127, -0.657349, -0.540127, -0.508536, -0.694825, -0.508537, 0.500000, 0.875000, + -0.427917, -0.657349, -0.632367, -0.400806, -0.694347, -0.597693, 0.625000, 0.875000, + -0.298591, -0.657349, -0.701785, -0.276819, -0.694254, -0.664366, 0.750000, 0.875000, + -0.421875, -0.675000, -0.623438, -0.556953, -0.000000, -0.830544, 0.625000, 1.000000, + -0.160771, -0.632227, -0.773281, -0.124811, -0.771346, -0.624057, 0.875000, 0.750000, + -0.298591, -0.657349, -0.701785, -0.276819, -0.694254, -0.664366, 0.750000, 0.875000, + -0.155001, -0.657349, -0.745527, -0.141326, -0.693324, -0.706632, 0.875000, 0.875000, + 0.000000, -0.657349, -0.760742, 0.000000, -0.693356, -0.720596, 1.000000, 0.875000, + -0.152812, -0.675000, -0.735000, -0.196116, -0.000000, -0.980581, 0.875000, 1.000000, + 0.000000, -0.300000, -1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, + 1.000000, -0.300000, -0.000000, 1.000000, 0.000000, -0.000000, 1.000000, 0.000000, + 0.000000, -0.675000, -0.750000, 0.000000, 0.000000, -1.000000, 0.000000, 1.000000, + 0.750000, -0.675000, -0.000000, 1.000000, 0.000000, -0.000000, 1.000000, 1.000000, + 0.710000, -0.300000, -0.710000, 0.707107, 0.000000, -0.707107, 0.500000, 0.000000, + 0.000000, -0.557812, -0.875000, 0.000000, -0.716000, -0.698100, 0.000000, 0.500000, + 0.621250, -0.557812, -0.621250, 0.496182, -0.712466, -0.496182, 0.500000, 0.500000, + 0.875000, -0.557812, -0.000000, 0.698100, -0.716000, 0.000000, 1.000000, 0.500000, + 0.532500, -0.675000, -0.532500, 0.707107, 0.000000, -0.707107, 0.500000, 1.000000, + 0.392500, -0.300000, -0.922500, 0.384615, 0.000000, -0.923077, 0.250000, 0.000000, + 0.000000, -0.448242, -0.960938, 0.000000, -0.480535, -0.876976, 0.000000, 0.250000, + 0.377168, -0.448242, -0.886465, 0.337358, -0.480250, -0.809660, 0.250000, 0.250000, + 0.682266, -0.448242, -0.682266, 0.619529, -0.482045, -0.619529, 0.500000, 0.250000, + 0.343437, -0.557812, -0.807187, 0.268606, -0.715732, -0.644654, 0.250000, 0.500000, + 0.203750, -0.300000, -0.980000, 0.196116, 0.000000, -0.980581, 0.125000, 0.000000, + 0.000000, -0.379175, -0.989258, 0.000000, -0.266906, -0.963722, 0.000000, 0.125000, + 0.201561, -0.379175, -0.969473, 0.189001, -0.266919, -0.945004, 0.125000, 0.125000, + 0.388284, -0.379175, -0.912590, 0.370596, -0.267526, -0.889432, 0.250000, 0.125000, + 0.195791, -0.448242, -0.941719, 0.171987, -0.480554, -0.859935, 0.125000, 0.250000, + 0.562500, -0.300000, -0.831250, 0.556953, 0.000000, -0.830544, 0.375000, 0.000000, + 0.388284, -0.379175, -0.912590, 0.370597, -0.267526, -0.889431, 0.250000, 0.125000, + 0.556458, -0.379175, -0.822320, 0.536641, -0.267602, -0.800254, 0.375000, 0.125000, + 0.702373, -0.379175, -0.702373, 0.681256, -0.267921, -0.681256, 0.500000, 0.125000, + 0.540527, -0.448242, -0.798779, 0.488118, -0.481571, -0.727894, 0.375000, 0.250000, + 0.195791, -0.448242, -0.941719, 0.171987, -0.480554, -0.859935, 0.125000, 0.250000, + 0.000000, -0.507642, -0.920898, 0.000000, -0.626221, -0.779645, 0.000000, 0.375000, + 0.187633, -0.507642, -0.902480, 0.152898, -0.626241, -0.764489, 0.125000, 0.375000, + 0.361453, -0.507642, -0.849529, 0.299570, -0.627172, -0.718967, 0.250000, 0.375000, + 0.178281, -0.557812, -0.857500, 0.136905, -0.716019, -0.684525, 0.125000, 0.500000, + 0.540527, -0.448242, -0.798779, 0.488118, -0.481572, -0.727894, 0.375000, 0.250000, + 0.361453, -0.507642, -0.849529, 0.299570, -0.627172, -0.718967, 0.250000, 0.375000, + 0.518005, -0.507642, -0.765497, 0.433748, -0.627288, -0.646817, 0.375000, 0.375000, + 0.653838, -0.507642, -0.653838, 0.550409, -0.627775, -0.550409, 0.500000, 0.375000, + 0.492188, -0.557812, -0.727344, 0.388249, -0.716978, -0.578969, 0.375000, 0.500000, + 0.922500, -0.300000, -0.392500, 0.923077, 0.000000, -0.384615, 0.750000, 0.000000, + 0.682266, -0.448242, -0.682266, 0.619529, -0.482045, -0.619529, 0.500000, 0.250000, + 0.886465, -0.448242, -0.377168, 0.809804, -0.479966, -0.337418, 0.750000, 0.250000, + 0.960938, -0.448242, -0.000000, 0.876976, -0.480535, 0.000000, 1.000000, 0.250000, + 0.807187, -0.557812, -0.343437, 0.644908, -0.715463, -0.268712, 0.750000, 0.500000, + 0.831250, -0.300000, -0.562500, 0.830544, 0.000000, -0.556953, 0.625000, 0.000000, + 0.702373, -0.379175, -0.702373, 0.681256, -0.267921, -0.681256, 0.500000, 0.125000, + 0.822320, -0.379175, -0.556458, 0.800256, -0.267590, -0.536643, 0.625000, 0.125000, + 0.912590, -0.379175, -0.388284, 0.889431, -0.267526, -0.370597, 0.750000, 0.125000, + 0.798779, -0.448242, -0.540527, 0.727903, -0.481553, -0.488123, 0.625000, 0.250000, + 0.980000, -0.300000, -0.203750, 0.980581, 0.000000, -0.196116, 0.875000, 0.000000, + 0.912590, -0.379175, -0.388284, 0.889432, -0.267526, -0.370596, 0.750000, 0.125000, + 0.969473, -0.379175, -0.201561, 0.945014, -0.266885, -0.189003, 0.875000, 0.125000, + 0.989258, -0.379175, -0.000000, 0.963722, -0.266906, 0.000000, 1.000000, 0.125000, + 0.941719, -0.448242, -0.195791, 0.859963, -0.480502, -0.171993, 0.875000, 0.250000, + 0.798779, -0.448242, -0.540527, 0.727903, -0.481553, -0.488123, 0.625000, 0.250000, + 0.653838, -0.507642, -0.653838, 0.550409, -0.627775, -0.550409, 0.500000, 0.375000, + 0.765497, -0.507642, -0.518005, 0.646829, -0.627270, -0.433756, 0.625000, 0.375000, + 0.849529, -0.507642, -0.361453, 0.718967, -0.627172, -0.299570, 0.750000, 0.375000, + 0.727344, -0.557812, -0.492188, 0.578983, -0.716961, -0.388259, 0.625000, 0.500000, + 0.941719, -0.448242, -0.195791, 0.859963, -0.480502, -0.171993, 0.875000, 0.250000, + 0.849529, -0.507642, -0.361453, 0.718967, -0.627172, -0.299570, 0.750000, 0.375000, + 0.902480, -0.507642, -0.187633, 0.764532, -0.626188, -0.152906, 0.875000, 0.375000, + 0.920898, -0.507642, -0.000000, 0.779645, -0.626221, 0.000000, 1.000000, 0.375000, + 0.857500, -0.557812, -0.178281, 0.684574, -0.715970, -0.136915, 0.875000, 0.500000, + 0.343437, -0.557812, -0.807187, 0.268606, -0.715731, -0.644654, 0.250000, 0.500000, + 0.000000, -0.632227, -0.789062, 0.000000, -0.771373, -0.636383, 0.000000, 0.750000, + 0.309707, -0.632227, -0.727910, 0.244875, -0.771133, -0.587700, 0.250000, 0.750000, + 0.560234, -0.632227, -0.560234, 0.448897, -0.772647, -0.448897, 0.500000, 0.750000, + 0.294375, -0.675000, -0.691875, 0.384615, 0.000000, -0.923077, 0.250000, 1.000000, + 0.178281, -0.557812, -0.857500, 0.136905, -0.716018, -0.684525, 0.125000, 0.500000, + 0.000000, -0.599194, -0.829102, 0.000000, -0.763821, -0.645429, 0.000000, 0.625000, + 0.168929, -0.599194, -0.812519, 0.126575, -0.763837, -0.632876, 0.125000, 0.625000, + 0.325422, -0.599194, -0.764846, 0.247880, -0.764614, -0.594912, 0.250000, 0.625000, + 0.160771, -0.632227, -0.773281, 0.124801, -0.771390, -0.624005, 0.125000, 0.750000, + 0.492188, -0.557812, -0.727344, 0.388249, -0.716978, -0.578969, 0.375000, 0.500000, + 0.325422, -0.599194, -0.764846, 0.247880, -0.764614, -0.594912, 0.250000, 0.625000, + 0.466370, -0.599194, -0.689191, 0.358885, -0.764712, -0.535179, 0.375000, 0.625000, + 0.588662, -0.599194, -0.588662, 0.455299, -0.765118, -0.455299, 0.500000, 0.625000, + 0.443848, -0.632227, -0.655908, 0.353844, -0.772248, -0.527662, 0.375000, 0.750000, + 0.160771, -0.632227, -0.773281, 0.124801, -0.771390, -0.624005, 0.125000, 0.750000, + 0.000000, -0.657349, -0.760742, 0.000000, -0.693356, -0.720596, 0.000000, 0.875000, + 0.155001, -0.657349, -0.745527, 0.141317, -0.693375, -0.706584, 0.125000, 0.875000, + 0.298591, -0.657349, -0.701785, 0.276819, -0.694254, -0.664366, 0.250000, 0.875000, + 0.152812, -0.675000, -0.735000, 0.196116, 0.000000, -0.980581, 0.125000, 1.000000, + 0.443848, -0.632227, -0.655908, 0.353844, -0.772249, -0.527662, 0.375000, 0.750000, + 0.298591, -0.657349, -0.701785, 0.276819, -0.694254, -0.664366, 0.250000, 0.875000, + 0.427917, -0.657349, -0.632367, 0.400796, -0.694365, -0.597679, 0.375000, 0.875000, + 0.540127, -0.657349, -0.540127, 0.508536, -0.694825, -0.508537, 0.500000, 0.875000, + 0.421875, -0.675000, -0.623438, 0.556953, 0.000000, -0.830544, 0.375000, 1.000000, + 0.807187, -0.557812, -0.343437, 0.644909, -0.715463, -0.268712, 0.750000, 0.500000, + 0.560234, -0.632227, -0.560234, 0.448897, -0.772647, -0.448897, 0.500000, 0.750000, + 0.727910, -0.632227, -0.309707, 0.587969, -0.770892, -0.244987, 0.750000, 0.750000, + 0.789062, -0.632227, -0.000000, 0.636383, -0.771373, 0.000000, 1.000000, 0.750000, + 0.691875, -0.675000, -0.294375, 0.923077, 0.000000, -0.384615, 0.750000, 1.000000, + 0.727344, -0.557812, -0.492188, 0.578983, -0.716961, -0.388259, 0.625000, 0.500000, + 0.588662, -0.599194, -0.588662, 0.455299, -0.765118, -0.455299, 0.500000, 0.625000, + 0.689191, -0.599194, -0.466370, 0.535195, -0.764697, -0.358895, 0.625000, 0.625000, + 0.764846, -0.599194, -0.325422, 0.594912, -0.764614, -0.247880, 0.750000, 0.625000, + 0.655908, -0.632227, -0.443848, 0.527677, -0.772233, -0.353854, 0.625000, 0.750000, + 0.857500, -0.557812, -0.178281, 0.684575, -0.715969, -0.136915, 0.875000, 0.500000, + 0.764846, -0.599194, -0.325422, 0.594912, -0.764614, -0.247880, 0.750000, 0.625000, + 0.812519, -0.599194, -0.168929, 0.632927, -0.763793, -0.126585, 0.875000, 0.625000, + 0.829102, -0.599194, -0.000000, 0.645429, -0.763821, 0.000000, 1.000000, 0.625000, + 0.773281, -0.632227, -0.160771, 0.624057, -0.771346, -0.124811, 0.875000, 0.750000, + 0.655908, -0.632227, -0.443848, 0.527677, -0.772233, -0.353854, 0.625000, 0.750000, + 0.540127, -0.657349, -0.540127, 0.508537, -0.694825, -0.508536, 0.500000, 0.875000, + 0.632367, -0.657349, -0.427917, 0.597693, -0.694347, -0.400806, 0.625000, 0.875000, + 0.701785, -0.657349, -0.298591, 0.664366, -0.694254, -0.276819, 0.750000, 0.875000, + 0.623438, -0.675000, -0.421875, 0.830544, 0.000000, -0.556953, 0.625000, 1.000000, + 0.773281, -0.632227, -0.160771, 0.624057, -0.771346, -0.124811, 0.875000, 0.750000, + 0.701785, -0.657349, -0.298591, 0.664366, -0.694254, -0.276819, 0.750000, 0.875000, + 0.745527, -0.657349, -0.155001, 0.706632, -0.693324, -0.141326, 0.875000, 0.875000, + 0.760742, -0.657349, -0.000000, 0.720596, -0.693356, 0.000000, 1.000000, 0.875000, + 0.735000, -0.675000, -0.152812, 0.980581, 0.000000, -0.196116, 0.875000, 1.000000, + -0.800000, 0.262500, -0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, + -0.750000, 0.375000, -0.000000, 0.000000, 1.000000, 0.000000, 1.000000, 0.000000, + -1.350000, 0.150000, -0.000000, 1.000000, 0.000000, -0.000000, 0.000000, 1.000000, + -1.500000, 0.150000, -0.000000, -1.000000, -0.000000, -0.000000, 1.000000, 1.000000, + -0.775000, 0.318750, 0.112500, 0.000000, -0.000000, 1.000000, 0.500000, 0.000000, + -1.206250, 0.248438, -0.000000, 0.148341, -0.988936, 0.000000, 0.000000, 0.500000, + -1.259375, 0.297656, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.500000, + -1.312500, 0.346875, -0.000000, -0.219512, 0.975610, 0.000000, 1.000000, 0.500000, + -1.425000, 0.150000, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 1.000000, + -0.792188, 0.280078, 0.084375, 0.000000, -0.871576, 0.490261, 0.250000, 0.000000, + -1.033594, 0.260742, -0.000000, 0.025853, -0.999666, 0.000000, 0.000000, 0.250000, + -1.040552, 0.278046, 0.084375, 0.024475, -0.872955, 0.487186, 0.250000, 0.250000, + -1.055859, 0.316113, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.250000, + -1.222852, 0.263818, 0.084375, 0.140206, -0.856814, 0.496198, 0.250000, 0.500000, + -0.797852, 0.267334, 0.049219, 0.000000, -0.976900, 0.213697, 0.125000, 0.000000, + -0.924121, 0.262280, -0.000000, 0.005639, -0.999984, 0.000000, 0.000000, 0.125000, + -0.924192, 0.267105, 0.049219, 0.005639, -0.976986, 0.213230, 0.125000, 0.125000, + -0.924381, 0.279824, 0.084375, 0.005349, -0.872040, 0.489406, 0.250000, 0.125000, + -1.035507, 0.265501, 0.049219, 0.025883, -0.976801, 0.212578, 0.125000, 0.250000, + -0.784180, 0.298096, 0.105469, 0.000000, -0.579524, 0.814955, 0.375000, 0.000000, + -0.924381, 0.279824, 0.084375, 0.005349, -0.872040, 0.489406, 0.250000, 0.125000, + -0.924646, 0.297807, 0.105469, 0.003808, -0.580397, 0.814324, 0.375000, 0.125000, + -0.924951, 0.318420, 0.112500, 0.000000, -0.000000, 1.000000, 0.500000, 0.125000, + -1.047684, 0.295782, 0.105469, 0.017593, -0.580836, 0.813830, 0.375000, 0.250000, + -1.035507, 0.265501, 0.049219, 0.025883, -0.976801, 0.212578, 0.125000, 0.250000, + -1.127832, 0.256567, -0.000000, 0.068483, -0.997652, 0.000000, 0.000000, 0.375000, + -1.131235, 0.261146, 0.049219, 0.068616, -0.974722, 0.212623, 0.125000, 0.375000, + -1.140207, 0.273219, 0.084375, 0.065384, -0.869606, 0.489398, 0.250000, 0.375000, + -1.210815, 0.252667, 0.049219, 0.148598, -0.965146, 0.215435, 0.125000, 0.500000, + -1.047684, 0.295782, 0.105469, 0.017593, -0.580836, 0.813830, 0.375000, 0.250000, + -1.140207, 0.273219, 0.084375, 0.065384, -0.869606, 0.489398, 0.250000, 0.375000, + -1.152891, 0.290286, 0.105469, 0.046704, -0.577184, 0.815278, 0.375000, 0.375000, + -1.167432, 0.309851, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.375000, + -1.239868, 0.279584, 0.105469, 0.099732, -0.560496, 0.822130, 0.375000, 0.500000, + -0.757812, 0.357422, 0.084375, 0.000000, 0.871576, 0.490261, 0.750000, 0.000000, + -1.055859, 0.316113, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.250000, + -1.071167, 0.354181, 0.084375, -0.031326, 0.872200, 0.488145, 0.750000, 0.250000, + -1.078125, 0.371484, -0.000000, -0.037474, 0.999298, 0.000000, 1.000000, 0.250000, + -1.295898, 0.331494, 0.084375, -0.180412, 0.841138, 0.509842, 0.750000, 0.500000, + -0.765820, 0.339404, 0.105469, 0.000000, 0.579524, 0.814955, 0.625000, 0.000000, + -0.924951, 0.318420, 0.112500, 0.000000, -0.000000, 1.000000, 0.500000, 0.125000, + -0.925256, 0.339034, 0.105469, -0.004308, 0.580398, 0.814321, 0.625000, 0.125000, + -0.925522, 0.357017, 0.084375, -0.006764, 0.872035, 0.489397, 0.750000, 0.125000, + -1.064035, 0.336445, 0.105469, -0.020004, 0.580169, 0.814250, 0.625000, 0.250000, + -0.752148, 0.370166, 0.049219, 0.000000, 0.976900, 0.213697, 0.875000, 0.000000, + -0.925522, 0.357017, 0.084375, -0.006764, 0.872035, 0.489398, 0.750000, 0.125000, + -0.925710, 0.369736, 0.049219, -0.007768, 0.976972, 0.213224, 0.875000, 0.125000, + -0.925781, 0.374561, -0.000000, -0.008035, 0.999968, 0.000000, 1.000000, 0.125000, + -1.076211, 0.366726, 0.049219, -0.036201, 0.976302, 0.213364, 0.875000, 0.250000, + -1.064035, 0.336445, 0.105469, -0.020004, 0.580169, 0.814250, 0.625000, 0.250000, + -1.167432, 0.309851, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.375000, + -1.181972, 0.329416, 0.105469, -0.053190, 0.573905, 0.817192, 0.625000, 0.375000, + -1.194656, 0.346484, 0.084375, -0.084210, 0.865181, 0.494338, 0.750000, 0.375000, + -1.278882, 0.315729, 0.105469, -0.112865, 0.550447, 0.827206, 0.625000, 0.500000, + -1.076211, 0.366726, 0.049219, -0.036201, 0.976302, 0.213364, 0.875000, 0.250000, + -1.194656, 0.346484, 0.084375, -0.084210, 0.865181, 0.494339, 0.750000, 0.375000, + -1.203628, 0.358556, 0.049219, -0.097201, 0.971485, 0.216262, 0.875000, 0.375000, + -1.207031, 0.363135, -0.000000, -0.100735, 0.994913, 0.000000, 1.000000, 0.375000, + -1.307935, 0.342645, 0.049219, -0.211316, 0.951005, 0.225686, 0.875000, 0.500000, + -1.222852, 0.263818, 0.084375, 0.140206, -0.856814, 0.496198, 0.250000, 0.500000, + -1.313281, 0.215039, -0.000000, 0.546885, -0.837207, 0.000000, 0.000000, 0.750000, + -1.335132, 0.225201, 0.084375, 0.483435, -0.674422, 0.558073, 0.250000, 0.750000, + -1.383203, 0.247559, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.750000, + -1.373438, 0.150000, 0.084375, 0.800000, 0.000000, 0.600000, 0.250000, 1.000000, + -1.210815, 0.252667, 0.049219, 0.148598, -0.965146, 0.215435, 0.125000, 0.500000, + -1.268262, 0.235034, -0.000000, 0.293811, -0.955864, 0.000000, 0.000000, 0.625000, + -1.273687, 0.238688, 0.049219, 0.293318, -0.928882, 0.226146, 0.125000, 0.625000, + -1.287991, 0.248321, 0.084375, 0.274428, -0.809737, 0.518667, 0.250000, 0.625000, + -1.319290, 0.217834, 0.049219, 0.540058, -0.804093, 0.248541, 0.125000, 0.750000, + -1.239868, 0.279584, 0.105469, 0.099732, -0.560497, 0.822130, 0.375000, 0.500000, + -1.287991, 0.248321, 0.084375, 0.274428, -0.809736, 0.518669, 0.250000, 0.625000, + -1.308214, 0.261940, 0.105469, 0.187187, -0.510240, 0.839414, 0.375000, 0.625000, + -1.331396, 0.277551, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.625000, + -1.357529, 0.235618, 0.105469, 0.310389, -0.395752, 0.864314, 0.375000, 0.750000, + -1.319290, 0.217834, 0.049219, 0.540058, -0.804093, 0.248541, 0.125000, 0.750000, + -1.340723, 0.187134, -0.000000, 0.868244, -0.496138, 0.000000, 0.000000, 0.875000, + -1.347063, 0.188729, 0.049219, 0.840433, -0.466702, 0.275432, 0.125000, 0.875000, + -1.363779, 0.192936, 0.084375, 0.713833, -0.367656, 0.596046, 0.250000, 0.875000, + -1.356445, 0.150000, 0.049219, 0.960000, 0.000000, 0.280000, 0.125000, 1.000000, + -1.357529, 0.235618, 0.105469, 0.310389, -0.395752, 0.864314, 0.375000, 0.750000, + -1.363779, 0.192936, 0.084375, 0.713834, -0.367656, 0.596045, 0.250000, 0.875000, + -1.387411, 0.198883, 0.105469, 0.426484, -0.201800, 0.881696, 0.375000, 0.875000, + -1.414502, 0.205701, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.875000, + -1.397461, 0.150000, 0.105469, 0.470589, 0.000000, 0.882353, 0.375000, 1.000000, + -1.295898, 0.331494, 0.084375, -0.180412, 0.841138, 0.509842, 0.750000, 0.500000, + -1.383203, 0.247559, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.750000, + -1.431274, 0.269916, 0.084375, -0.562646, 0.585663, 0.583462, 0.750000, 0.750000, + -1.453125, 0.280078, -0.000000, -0.711485, 0.702701, 0.000000, 1.000000, 0.750000, + -1.476562, 0.150000, 0.084375, -0.800000, 0.000000, 0.600000, 0.750000, 1.000000, + -1.278882, 0.315729, 0.105469, -0.112865, 0.550447, 0.827206, 0.625000, 0.500000, + -1.331396, 0.277551, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.625000, + -1.354579, 0.293163, 0.105469, -0.207595, 0.488130, 0.847722, 0.625000, 0.625000, + -1.374802, 0.306782, 0.084375, -0.343732, 0.765920, 0.543338, 0.750000, 0.625000, + -1.408878, 0.259499, 0.105469, -0.330606, 0.361483, 0.871797, 0.625000, 0.750000, + -1.307935, 0.342645, 0.049219, -0.211317, 0.951005, 0.225686, 0.875000, 0.500000, + -1.374802, 0.306782, 0.084375, -0.343732, 0.765919, 0.543338, 0.750000, 0.625000, + -1.389106, 0.316415, 0.049219, -0.407011, 0.879764, 0.245675, 0.875000, 0.625000, + -1.394531, 0.320068, -0.000000, -0.424434, 0.905459, 0.000000, 1.000000, 0.625000, + -1.447116, 0.277283, 0.049219, -0.680178, 0.681081, 0.271085, 0.875000, 0.750000, + -1.408878, 0.259499, 0.105469, -0.330606, 0.361483, 0.871797, 0.625000, 0.750000, + -1.414502, 0.205701, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.875000, + -1.441593, 0.212518, 0.105469, -0.434397, 0.175246, 0.883509, 0.625000, 0.875000, + -1.465225, 0.218465, 0.084375, -0.745462, 0.283642, 0.603187, 0.750000, 0.875000, + -1.452539, 0.150000, 0.105469, -0.470588, 0.000000, 0.882353, 0.625000, 1.000000, + -1.447116, 0.277283, 0.049219, -0.680178, 0.681081, 0.271085, 0.875000, 0.750000, + -1.465225, 0.218465, 0.084375, -0.745462, 0.283642, 0.603187, 0.750000, 0.875000, + -1.481941, 0.222672, 0.049219, -0.900243, 0.331346, 0.282440, 0.875000, 0.875000, + -1.488281, 0.224268, -0.000000, -0.940042, 0.341058, 0.000000, 1.000000, 0.875000, + -1.493555, 0.150000, 0.049219, -0.960000, 0.000000, 0.280000, 0.875000, 1.000000, + -0.750000, 0.375000, -0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, + -0.800000, 0.262500, -0.000000, 0.000000, -1.000000, 0.000000, 1.000000, 0.000000, + -1.500000, 0.150000, -0.000000, -1.000000, -0.000000, -0.000000, 0.000000, 1.000000, + -1.350000, 0.150000, -0.000000, 1.000000, 0.000000, -0.000000, 1.000000, 1.000000, + -0.775000, 0.318750, -0.112500, -0.000000, 0.000000, -1.000000, 0.500000, 0.000000, + -1.312500, 0.346875, -0.000000, -0.219512, 0.975610, 0.000000, 0.000000, 0.500000, + -1.259375, 0.297656, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.500000, + -1.206250, 0.248438, -0.000000, 0.148341, -0.988936, 0.000000, 1.000000, 0.500000, + -1.425000, 0.150000, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 1.000000, + -0.757812, 0.357422, -0.084375, 0.000000, 0.871576, -0.490261, 0.250000, 0.000000, + -1.078125, 0.371484, -0.000000, -0.037474, 0.999298, 0.000000, 0.000000, 0.250000, + -1.071167, 0.354181, -0.084375, -0.031612, 0.872168, -0.488184, 0.250000, 0.250000, + -1.055859, 0.316113, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.250000, + -1.295898, 0.331494, -0.084375, -0.182095, 0.840441, -0.510393, 0.250000, 0.500000, + -0.752148, 0.370166, -0.049219, 0.000000, 0.976900, -0.213697, 0.125000, 0.000000, + -0.925781, 0.374561, -0.000000, -0.008035, 0.999968, 0.000000, 0.000000, 0.125000, + -0.925710, 0.369736, -0.049219, -0.007783, 0.976972, -0.213224, 0.125000, 0.125000, + -0.925522, 0.357017, -0.084375, -0.006764, 0.872035, -0.489398, 0.250000, 0.125000, + -1.076211, 0.366726, -0.049219, -0.036277, 0.976298, -0.213369, 0.125000, 0.250000, + -0.765820, 0.339404, -0.105469, 0.000000, 0.579524, -0.814955, 0.375000, 0.000000, + -0.925522, 0.357017, -0.084375, -0.006764, 0.872035, -0.489397, 0.250000, 0.125000, + -0.925256, 0.339034, -0.105469, -0.004329, 0.580399, -0.814321, 0.375000, 0.125000, + -0.924951, 0.318420, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.125000, + -1.064035, 0.336445, -0.105469, -0.020108, 0.580140, -0.814268, 0.375000, 0.250000, + -1.076211, 0.366726, -0.049219, -0.036277, 0.976298, -0.213369, 0.125000, 0.250000, + -1.207031, 0.363135, -0.000000, -0.100735, 0.994913, 0.000000, 0.000000, 0.375000, + -1.203628, 0.358556, -0.049219, -0.097411, 0.971458, -0.216288, 0.125000, 0.375000, + -1.194656, 0.346484, -0.084375, -0.084210, 0.865181, -0.494339, 0.250000, 0.375000, + -1.307935, 0.342645, -0.049219, -0.211778, 0.950885, -0.225758, 0.125000, 0.500000, + -1.064035, 0.336445, -0.105469, -0.020108, 0.580141, -0.814268, 0.375000, 0.250000, + -1.194656, 0.346484, -0.084375, -0.084210, 0.865181, -0.494338, 0.250000, 0.375000, + -1.181972, 0.329416, -0.105469, -0.053470, 0.573763, -0.817274, 0.375000, 0.375000, + -1.167432, 0.309851, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.375000, + -1.278882, 0.315729, -0.105469, -0.113428, 0.550012, -0.827418, 0.375000, 0.500000, + -0.792188, 0.280078, -0.084375, -0.000000, -0.871576, -0.490261, 0.750000, 0.000000, + -1.055859, 0.316113, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.250000, + -1.040552, 0.278046, -0.084375, 0.024919, -0.872908, -0.487248, 0.750000, 0.250000, + -1.033594, 0.260742, -0.000000, 0.025853, -0.999666, 0.000000, 1.000000, 0.250000, + -1.222852, 0.263818, -0.084375, 0.142803, -0.855858, -0.497107, 0.750000, 0.500000, + -0.784180, 0.298096, -0.105469, -0.000000, -0.579524, -0.814955, 0.625000, 0.000000, + -0.924951, 0.318420, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.125000, + -0.924646, 0.297807, -0.105469, 0.003835, -0.580398, -0.814324, 0.625000, 0.125000, + -0.924381, 0.279824, -0.084375, 0.005349, -0.872040, -0.489406, 0.750000, 0.125000, + -1.047684, 0.295782, -0.105469, 0.017725, -0.580800, -0.813853, 0.625000, 0.250000, + -0.797852, 0.267334, -0.049219, -0.000000, -0.976900, -0.213697, 0.875000, 0.000000, + -0.924381, 0.279824, -0.084375, 0.005349, -0.872040, -0.489406, 0.750000, 0.125000, + -0.924192, 0.267105, -0.049219, 0.005668, -0.976986, -0.213230, 0.875000, 0.125000, + -0.924121, 0.262280, -0.000000, 0.005639, -0.999984, 0.000000, 1.000000, 0.125000, + -1.035507, 0.265501, -0.049219, 0.026018, -0.976795, -0.212588, 0.875000, 0.250000, + -1.047684, 0.295782, -0.105469, 0.017725, -0.580800, -0.813853, 0.625000, 0.250000, + -1.167432, 0.309851, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.375000, + -1.152891, 0.290286, -0.105469, 0.047058, -0.577006, -0.815383, 0.625000, 0.375000, + -1.140207, 0.273219, -0.084375, 0.065384, -0.869606, -0.489398, 0.750000, 0.375000, + -1.239868, 0.279584, -0.105469, 0.100453, -0.559950, -0.822414, 0.625000, 0.500000, + -1.035507, 0.265501, -0.049219, 0.026018, -0.976795, -0.212588, 0.875000, 0.250000, + -1.140207, 0.273219, -0.084375, 0.065384, -0.869606, -0.489398, 0.750000, 0.375000, + -1.131235, 0.261146, -0.049219, 0.068986, -0.974686, -0.212671, 0.875000, 0.375000, + -1.127832, 0.256567, -0.000000, 0.068483, -0.997652, 0.000000, 1.000000, 0.375000, + -1.210815, 0.252667, -0.049219, 0.149411, -0.964989, -0.215573, 0.875000, 0.500000, + -1.295898, 0.331494, -0.084375, -0.182096, 0.840441, -0.510393, 0.250000, 0.500000, + -1.453125, 0.280078, -0.000000, -0.711485, 0.702701, 0.000000, 0.000000, 0.750000, + -1.431274, 0.269916, -0.084375, -0.565483, 0.582130, -0.584255, 0.250000, 0.750000, + -1.383203, 0.247559, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.750000, + -1.476562, 0.150000, -0.084375, -0.800000, -0.000000, -0.600000, 0.250000, 1.000000, + -1.307935, 0.342645, -0.049219, -0.211779, 0.950885, -0.225758, 0.125000, 0.500000, + -1.394531, 0.320068, -0.000000, -0.424434, 0.905459, 0.000000, 0.000000, 0.625000, + -1.389106, 0.316415, -0.049219, -0.407810, 0.879359, -0.245803, 0.125000, 0.625000, + -1.374802, 0.306782, -0.084375, -0.343732, 0.765919, -0.543338, 0.250000, 0.625000, + -1.447116, 0.277283, -0.049219, -0.681018, 0.680194, -0.271202, 0.125000, 0.750000, + -1.278882, 0.315729, -0.105469, -0.113428, 0.550012, -0.827418, 0.375000, 0.500000, + -1.374802, 0.306782, -0.084375, -0.343732, 0.765920, -0.543338, 0.250000, 0.625000, + -1.354579, 0.293163, -0.105469, -0.208448, 0.487192, -0.848053, 0.375000, 0.625000, + -1.331396, 0.277551, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.625000, + -1.408878, 0.259499, -0.105469, -0.331408, 0.360091, -0.872068, 0.375000, 0.750000, + -1.447116, 0.277283, -0.049219, -0.681018, 0.680194, -0.271202, 0.125000, 0.750000, + -1.488281, 0.224268, -0.000000, -0.940042, 0.341058, 0.000000, 0.000000, 0.875000, + -1.481941, 0.222672, -0.049219, -0.900521, 0.330571, -0.282462, 0.125000, 0.875000, + -1.465225, 0.218465, -0.084375, -0.745462, 0.283642, -0.603187, 0.250000, 0.875000, + -1.493555, 0.150000, -0.049219, -0.960000, -0.000000, -0.280000, 0.125000, 1.000000, + -1.408878, 0.259499, -0.105469, -0.331408, 0.360091, -0.872068, 0.375000, 0.750000, + -1.465225, 0.218465, -0.084375, -0.745462, 0.283642, -0.603187, 0.250000, 0.875000, + -1.441593, 0.212518, -0.105469, -0.434695, 0.174222, -0.883565, 0.375000, 0.875000, + -1.414502, 0.205701, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.875000, + -1.452539, 0.150000, -0.105469, -0.470588, -0.000000, -0.882353, 0.375000, 1.000000, + -1.222852, 0.263818, -0.084375, 0.142803, -0.855858, -0.497107, 0.750000, 0.500000, + -1.383203, 0.247559, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.750000, + -1.335132, 0.225201, -0.084375, 0.489273, -0.668472, -0.560140, 0.750000, 0.750000, + -1.313281, 0.215039, -0.000000, 0.546885, -0.837207, 0.000000, 1.000000, 0.750000, + -1.373438, 0.150000, -0.084375, 0.800000, 0.000000, -0.600000, 0.750000, 1.000000, + -1.239868, 0.279584, -0.105469, 0.100453, -0.559950, -0.822414, 0.625000, 0.500000, + -1.331396, 0.277551, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.625000, + -1.308214, 0.261940, -0.105469, 0.188332, -0.509017, -0.839900, 0.625000, 0.625000, + -1.287991, 0.248321, -0.084375, 0.274428, -0.809736, -0.518669, 0.750000, 0.625000, + -1.357529, 0.235618, -0.105469, 0.311577, -0.393781, -0.864787, 0.625000, 0.750000, + -1.210815, 0.252667, -0.049219, 0.149411, -0.964989, -0.215573, 0.875000, 0.500000, + -1.287991, 0.248321, -0.084375, 0.274428, -0.809737, -0.518667, 0.750000, 0.625000, + -1.273687, 0.238688, -0.049219, 0.294850, -0.928329, -0.226427, 0.875000, 0.625000, + -1.268262, 0.235034, -0.000000, 0.293811, -0.955864, 0.000000, 1.000000, 0.625000, + -1.319290, 0.217834, -0.049219, 0.542231, -0.802508, -0.248931, 0.875000, 0.750000, + -1.357529, 0.235618, -0.105469, 0.311577, -0.393780, -0.864787, 0.625000, 0.750000, + -1.414502, 0.205701, -0.112500, 0.000000, -0.000000, -1.000000, 0.500000, 0.875000, + -1.387411, 0.198883, -0.105469, 0.426972, -0.200197, -0.881825, 0.625000, 0.875000, + -1.363779, 0.192936, -0.084375, 0.713834, -0.367656, -0.596045, 0.750000, 0.875000, + -1.397461, 0.150000, -0.105469, 0.470589, 0.000000, -0.882353, 0.625000, 1.000000, + -1.319290, 0.217834, -0.049219, 0.542231, -0.802508, -0.248931, 0.875000, 0.750000, + -1.363779, 0.192936, -0.084375, 0.713833, -0.367656, -0.596046, 0.750000, 0.875000, + -1.347063, 0.188729, -0.049219, 0.841606, -0.464481, -0.275602, 0.875000, 0.875000, + -1.340723, 0.187134, -0.000000, 0.868244, -0.496138, 0.000000, 1.000000, 0.875000, + -1.356445, 0.150000, -0.049219, 0.960000, 0.000000, -0.280000, 0.875000, 1.000000, + -1.350000, 0.150000, -0.000000, 1.000000, 0.000000, -0.000000, 0.000000, 0.000000, + -1.500000, 0.150000, -0.000000, -1.000000, -0.000000, -0.000000, 1.000000, 0.000000, + -1.000000, -0.300000, -0.000000, 0.410365, 0.911922, -0.000000, 0.000000, 1.000000, + -0.950000, -0.450000, -0.000000, -0.410365, -0.911922, -0.000000, 1.000000, 1.000000, + -1.425000, 0.150000, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.000000, + -1.268750, -0.075000, -0.000000, 0.832050, 0.554700, -0.000000, 0.000000, 0.500000, + -1.317188, -0.123047, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.500000, + -1.365625, -0.171094, -0.000000, -0.743581, -0.668646, -0.000000, 1.000000, 0.500000, + -0.975000, -0.375000, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 1.000000, + -1.373438, 0.150000, 0.084375, 0.800000, 0.000000, 0.600000, 0.250000, 0.000000, + -1.330469, 0.048047, -0.000000, 0.945778, 0.324813, -0.000000, 0.000000, 0.250000, + -1.351770, 0.038205, 0.084375, 0.754441, 0.269277, 0.598589, 0.250000, 0.250000, + -1.398633, 0.016553, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.250000, + -1.283887, -0.090015, 0.084375, 0.678042, 0.478207, 0.558191, 0.250000, 0.500000, + -1.356445, 0.150000, 0.049219, 0.960000, 0.000000, 0.280000, 0.125000, 0.000000, + -1.345215, 0.102979, -0.000000, 0.982777, 0.184796, -0.000000, 0.000000, 0.125000, + -1.351511, 0.101413, 0.049219, 0.943027, 0.178069, 0.281055, 0.125000, 0.125000, + -1.368111, 0.097285, 0.084375, 0.784625, 0.149799, 0.601602, 0.250000, 0.125000, + -1.336327, 0.045340, 0.049219, 0.907104, 0.315107, 0.279051, 0.125000, 0.250000, + -1.397461, 0.150000, 0.105469, 0.470589, 0.000000, 0.882353, 0.375000, 0.000000, + -1.368111, 0.097285, 0.084375, 0.784624, 0.149799, 0.601603, 0.250000, 0.125000, + -1.391579, 0.091449, 0.105469, 0.460503, 0.089006, 0.883184, 0.375000, 0.125000, + -1.418481, 0.084760, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.125000, + -1.373604, 0.028117, 0.105469, 0.441858, 0.163868, 0.881991, 0.375000, 0.250000, + -1.336327, 0.045340, 0.049219, 0.907105, 0.315106, 0.279051, 0.125000, 0.250000, + -1.305176, -0.012158, -0.000000, 0.895694, 0.444671, -0.000000, 0.000000, 0.375000, + -1.310318, -0.015685, 0.049219, 0.859856, 0.433367, 0.269890, 0.125000, 0.375000, + -1.323875, -0.024981, 0.084375, 0.717810, 0.376810, 0.585460, 0.250000, 0.375000, + -1.272913, -0.079129, 0.049219, 0.801010, 0.542879, 0.252321, 0.125000, 0.500000, + -1.373604, 0.028117, 0.105469, 0.441858, 0.163868, 0.881991, 0.375000, 0.250000, + -1.323875, -0.024981, 0.084375, 0.717810, 0.376810, 0.585460, 0.250000, 0.375000, + -1.343043, -0.038125, 0.105469, 0.423804, 0.233330, 0.875184, 0.375000, 0.375000, + -1.365015, -0.053192, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.375000, + -1.299402, -0.105405, 0.105469, 0.408072, 0.304992, 0.860498, 0.375000, 0.500000, + -1.476562, 0.150000, 0.084375, -0.800000, 0.000000, 0.600000, 0.750000, 0.000000, + -1.398633, 0.016553, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.250000, + -1.445496, -0.005099, 0.084375, -0.741739, -0.300819, 0.599442, 0.750000, 0.250000, + -1.466797, -0.014941, -0.000000, -0.923524, -0.383540, -0.000000, 1.000000, 0.250000, + -1.350488, -0.156079, 0.084375, -0.625724, -0.540260, 0.562662, 0.750000, 0.500000, + -1.452539, 0.150000, 0.105469, -0.470588, 0.000000, 0.882353, 0.625000, 0.000000, + -1.418481, 0.084760, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.125000, + -1.445384, 0.078070, 0.105469, -0.460057, -0.090956, 0.883218, 0.625000, 0.125000, + -1.468852, 0.072234, 0.084375, -0.783295, -0.156125, 0.601726, 0.750000, 0.125000, + -1.423662, 0.004988, 0.105469, -0.437541, -0.173581, 0.882285, 0.625000, 0.250000, + -1.493555, 0.150000, 0.049219, -0.960000, 0.000000, 0.280000, 0.875000, 0.000000, + -1.468852, 0.072234, 0.084375, -0.783295, -0.156125, 0.601726, 0.750000, 0.125000, + -1.485452, 0.068106, 0.049219, -0.940981, -0.188412, 0.281170, 0.875000, 0.125000, + -1.491748, 0.066541, -0.000000, -0.980463, -0.196702, -0.000000, 1.000000, 0.125000, + -1.460939, -0.012235, 0.049219, -0.887370, -0.366235, 0.280082, 0.875000, 0.250000, + -1.423662, 0.004988, 0.105469, -0.437541, -0.173581, 0.882285, 0.625000, 0.250000, + -1.365015, -0.053192, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.375000, + -1.386987, -0.068259, 0.105469, -0.412980, -0.249957, 0.875768, 0.625000, 0.375000, + -1.406154, -0.081403, 0.084375, -0.685340, -0.430186, 0.587579, 0.750000, 0.375000, + -1.334973, -0.140689, 0.105469, -0.389863, -0.324451, 0.861822, 0.625000, 0.500000, + -1.460939, -0.012235, 0.049219, -0.887370, -0.366235, 0.280082, 0.875000, 0.250000, + -1.406154, -0.081403, 0.084375, -0.685340, -0.430186, 0.587580, 0.750000, 0.375000, + -1.419711, -0.090700, 0.049219, -0.810168, -0.519360, 0.271832, 0.875000, 0.375000, + -1.424854, -0.094226, -0.000000, -0.839602, -0.543202, -0.000000, 1.000000, 0.375000, + -1.361462, -0.166965, 0.049219, -0.722234, -0.642490, 0.256095, 0.875000, 0.500000, + -1.283887, -0.090015, 0.084375, 0.678042, 0.478207, 0.558191, 0.250000, 0.500000, + -1.160156, -0.198047, -0.000000, 0.655687, 0.755033, -0.000000, 0.000000, 0.750000, + -1.165466, -0.216586, 0.084375, 0.553444, 0.668090, 0.497350, 0.250000, 0.750000, + -1.177148, -0.257373, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.750000, + -0.992188, -0.323438, 0.084375, 0.354770, 0.788378, 0.502591, 0.250000, 1.000000, + -1.272913, -0.079129, 0.049219, 0.801011, 0.542878, 0.252321, 0.125000, 0.500000, + -1.220605, -0.137842, -0.000000, 0.752687, 0.658378, -0.000000, 0.000000, 0.625000, + -1.223536, -0.142460, 0.049219, 0.726886, 0.646097, 0.232800, 0.125000, 0.625000, + -1.231264, -0.154636, 0.084375, 0.623037, 0.578584, 0.526370, 0.250000, 0.625000, + -1.161617, -0.203145, 0.049219, 0.635572, 0.742022, 0.213194, 0.125000, 0.750000, + -1.299402, -0.105405, 0.105469, 0.408072, 0.304992, 0.860498, 0.375000, 0.500000, + -1.231264, -0.154636, 0.084375, 0.623037, 0.578584, 0.526370, 0.250000, 0.625000, + -1.242188, -0.171850, 0.105469, 0.386230, 0.377876, 0.841449, 0.375000, 0.625000, + -1.254712, -0.191583, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.625000, + -1.170909, -0.235589, 0.105469, 0.355340, 0.450452, 0.819040, 0.375000, 0.750000, + -1.161617, -0.203145, 0.049219, 0.635572, 0.742022, 0.213194, 0.125000, 0.750000, + -1.086816, -0.252979, -0.000000, 0.540758, 0.841178, -0.000000, 0.000000, 0.875000, + -1.086579, -0.258651, 0.049219, 0.525642, 0.825088, 0.207198, 0.125000, 0.875000, + -1.085954, -0.273607, 0.084375, 0.462854, 0.744576, 0.481012, 0.250000, 0.875000, + -0.997852, -0.306445, 0.049219, 0.400263, 0.889473, 0.220515, 0.125000, 1.000000, + -1.170909, -0.235589, 0.105469, 0.355340, 0.450452, 0.819040, 0.375000, 0.750000, + -1.085954, -0.273607, 0.084375, 0.462854, 0.744576, 0.481012, 0.250000, 0.875000, + -1.085071, -0.294750, 0.105469, 0.302868, 0.501527, 0.810396, 0.375000, 0.875000, + -1.084058, -0.318988, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.875000, + -0.984180, -0.347461, 0.105469, 0.232611, 0.516912, 0.823829, 0.375000, 1.000000, + -1.350488, -0.156079, 0.084375, -0.625724, -0.540260, 0.562662, 0.750000, 0.500000, + -1.177148, -0.257373, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.750000, + -1.188831, -0.298160, 0.084375, -0.492641, -0.706153, 0.508579, 0.750000, 0.750000, + -1.194141, -0.316699, -0.000000, -0.558748, -0.829337, -0.000000, 1.000000, 0.750000, + -0.957812, -0.426562, 0.084375, -0.354770, -0.788378, 0.502591, 0.750000, 1.000000, + -1.334973, -0.140689, 0.105469, -0.389864, -0.324451, 0.861822, 0.625000, 0.500000, + -1.254712, -0.191583, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.625000, + -1.267236, -0.211316, 0.105469, -0.362855, -0.394979, 0.843995, 0.625000, 0.625000, + -1.278160, -0.228531, 0.084375, -0.558837, -0.634504, 0.533952, 0.750000, 0.625000, + -1.183388, -0.279157, 0.105469, -0.331427, -0.460343, 0.823553, 0.625000, 0.750000, + -1.361462, -0.166965, 0.049219, -0.722234, -0.642490, 0.256095, 0.875000, 0.500000, + -1.278160, -0.228531, 0.084375, -0.558837, -0.634504, 0.533953, 0.750000, 0.625000, + -1.285887, -0.240706, 0.049219, -0.632854, -0.736497, 0.238887, 0.875000, 0.625000, + -1.288818, -0.245325, -0.000000, -0.647649, -0.761939, -0.000000, 1.000000, 0.625000, + -1.192680, -0.311601, 0.049219, -0.548245, -0.806248, 0.222240, 0.875000, 0.750000, + -1.183388, -0.279157, 0.105469, -0.331427, -0.460343, 0.823553, 0.625000, 0.750000, + -1.084058, -0.318988, 0.112500, 0.000000, 0.000000, 1.000000, 0.500000, 0.875000, + -1.083045, -0.343226, 0.105469, -0.286990, -0.503756, 0.814780, 0.625000, 0.875000, + -1.082161, -0.364370, 0.084375, -0.423555, -0.760495, 0.492187, 0.750000, 0.875000, + -0.965820, -0.402539, 0.105469, -0.232611, -0.516913, 0.823829, 0.625000, 1.000000, + -1.192680, -0.311601, 0.049219, -0.548245, -0.806248, 0.222240, 0.875000, 0.750000, + -1.082161, -0.364370, 0.084375, -0.423555, -0.760495, 0.492188, 0.750000, 0.875000, + -1.081536, -0.379325, 0.049219, -0.470388, -0.855760, 0.215428, 0.875000, 0.875000, + -1.081299, -0.384998, -0.000000, -0.479572, -0.877503, -0.000000, 1.000000, 0.875000, + -0.952148, -0.443555, 0.049219, -0.400263, -0.889473, 0.220515, 0.875000, 1.000000, + -1.500000, 0.150000, -0.000000, -1.000000, -0.000000, -0.000000, 0.000000, 0.000000, + -1.350000, 0.150000, -0.000000, 1.000000, 0.000000, -0.000000, 1.000000, 0.000000, + -0.950000, -0.450000, -0.000000, -0.410365, -0.911922, -0.000000, 0.000000, 1.000000, + -1.000000, -0.300000, -0.000000, 0.410365, 0.911922, -0.000000, 1.000000, 1.000000, + -1.425000, 0.150000, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.000000, + -1.365625, -0.171094, -0.000000, -0.743581, -0.668646, -0.000000, 0.000000, 0.500000, + -1.317188, -0.123047, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.500000, + -1.268750, -0.075000, -0.000000, 0.832050, 0.554700, -0.000000, 1.000000, 0.500000, + -0.975000, -0.375000, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 1.000000, + -1.476562, 0.150000, -0.084375, -0.800000, -0.000000, -0.600000, 0.250000, 0.000000, + -1.466797, -0.014941, -0.000000, -0.923524, -0.383540, -0.000000, 0.000000, 0.250000, + -1.445496, -0.005099, -0.084375, -0.741200, -0.302104, -0.599462, 0.250000, 0.250000, + -1.398633, 0.016553, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.250000, + -1.350488, -0.156079, -0.084375, -0.623402, -0.542826, -0.562770, 0.250000, 0.500000, + -1.493555, 0.150000, -0.049219, -0.960000, -0.000000, -0.280000, 0.125000, 0.000000, + -1.491748, 0.066541, -0.000000, -0.980463, -0.196702, -0.000000, 0.000000, 0.125000, + -1.485452, 0.068106, -0.049219, -0.940967, -0.188477, -0.281171, 0.125000, 0.125000, + -1.468852, 0.072234, -0.084375, -0.783295, -0.156125, -0.601726, 0.250000, 0.125000, + -1.460939, -0.012235, -0.049219, -0.887220, -0.366595, -0.280086, 0.125000, 0.250000, + -1.452539, 0.150000, -0.105469, -0.470588, -0.000000, -0.882353, 0.375000, 0.000000, + -1.468852, 0.072234, -0.084375, -0.783295, -0.156125, -0.601726, 0.250000, 0.125000, + -1.445384, 0.078070, -0.105469, -0.460039, -0.091036, -0.883219, 0.375000, 0.125000, + -1.418481, 0.084760, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.125000, + -1.423662, 0.004988, -0.105469, -0.437356, -0.173995, -0.882296, 0.375000, 0.250000, + -1.460939, -0.012235, -0.049219, -0.887221, -0.366595, -0.280086, 0.125000, 0.250000, + -1.424854, -0.094226, -0.000000, -0.839602, -0.543202, -0.000000, 0.000000, 0.375000, + -1.419711, -0.090700, -0.049219, -0.809767, -0.519983, -0.271837, 0.125000, 0.375000, + -1.406154, -0.081403, -0.084375, -0.685340, -0.430186, -0.587580, 0.250000, 0.375000, + -1.361462, -0.166965, -0.049219, -0.721599, -0.643198, -0.256108, 0.125000, 0.500000, + -1.423662, 0.004988, -0.105469, -0.437356, -0.173994, -0.882296, 0.375000, 0.250000, + -1.406154, -0.081403, -0.084375, -0.685340, -0.430186, -0.587579, 0.250000, 0.375000, + -1.386987, -0.068259, -0.105469, -0.412506, -0.250677, -0.875785, 0.375000, 0.375000, + -1.365015, -0.053192, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.375000, + -1.334973, -0.140689, -0.105469, -0.389066, -0.325292, -0.861866, 0.375000, 0.500000, + -1.373438, 0.150000, -0.084375, 0.800000, 0.000000, -0.600000, 0.750000, 0.000000, + -1.398633, 0.016553, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.250000, + -1.351770, 0.038205, -0.084375, 0.753631, 0.271366, -0.598666, 0.750000, 0.250000, + -1.330469, 0.048047, -0.000000, 0.945778, 0.324813, -0.000000, 1.000000, 0.250000, + -1.283887, -0.090015, -0.084375, 0.674847, 0.482249, -0.558585, 0.750000, 0.500000, + -1.397461, 0.150000, -0.105469, 0.470589, 0.000000, -0.882353, 0.625000, 0.000000, + -1.418481, 0.084760, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.125000, + -1.391579, 0.091449, -0.105469, 0.460478, 0.089118, -0.883187, 0.625000, 0.125000, + -1.368111, 0.097285, -0.084375, 0.784624, 0.149799, -0.601603, 0.750000, 0.125000, + -1.373604, 0.028117, -0.105469, 0.441621, 0.164404, -0.882010, 0.625000, 0.250000, + -1.356445, 0.150000, -0.049219, 0.960000, 0.000000, -0.280000, 0.875000, 0.000000, + -1.368111, 0.097285, -0.084375, 0.784625, 0.149799, -0.601602, 0.750000, 0.125000, + -1.351511, 0.101413, -0.049219, 0.942997, 0.178224, -0.281057, 0.875000, 0.125000, + -1.345215, 0.102979, -0.000000, 0.982777, 0.184796, -0.000000, 1.000000, 0.125000, + -1.336327, 0.045340, -0.049219, 0.906857, 0.315800, -0.279070, 0.875000, 0.250000, + -1.373604, 0.028117, -0.105469, 0.441621, 0.164404, -0.882010, 0.625000, 0.250000, + -1.365015, -0.053192, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.375000, + -1.343043, -0.038125, -0.105469, 0.423222, 0.234233, -0.875224, 0.625000, 0.375000, + -1.323875, -0.024981, -0.084375, 0.717810, 0.376810, -0.585460, 0.750000, 0.375000, + -1.299402, -0.105405, -0.105469, 0.407093, 0.306052, -0.860586, 0.625000, 0.500000, + -1.336327, 0.045340, -0.049219, 0.906858, 0.315799, -0.279070, 0.875000, 0.250000, + -1.323875, -0.024981, -0.084375, 0.717810, 0.376810, -0.585460, 0.750000, 0.375000, + -1.310318, -0.015685, -0.049219, 0.859273, 0.434496, -0.269932, 0.875000, 0.375000, + -1.305176, -0.012158, -0.000000, 0.895694, 0.444671, -0.000000, 1.000000, 0.375000, + -1.272913, -0.079129, -0.049219, 0.800087, 0.544204, -0.252394, 0.875000, 0.500000, + -1.350488, -0.156079, -0.084375, -0.623402, -0.542826, -0.562770, 0.250000, 0.500000, + -1.194141, -0.316699, -0.000000, -0.558748, -0.829337, -0.000000, 0.000000, 0.750000, + -1.188831, -0.298160, -0.084375, -0.490104, -0.707628, -0.508980, 0.250000, 0.750000, + -1.177148, -0.257373, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.750000, + -0.957812, -0.426562, -0.084375, -0.354770, -0.788378, -0.502591, 0.250000, 1.000000, + -1.361462, -0.166965, -0.049219, -0.721599, -0.643198, -0.256108, 0.125000, 0.500000, + -1.288818, -0.245325, -0.000000, -0.647649, -0.761939, -0.000000, 0.000000, 0.625000, + -1.285887, -0.240706, -0.049219, -0.632123, -0.737115, -0.238917, 0.125000, 0.625000, + -1.278160, -0.228531, -0.084375, -0.558837, -0.634504, -0.533953, 0.250000, 0.625000, + -1.192680, -0.311601, -0.049219, -0.547600, -0.806671, -0.222295, 0.125000, 0.750000, + -1.334973, -0.140689, -0.105469, -0.389066, -0.325292, -0.861866, 0.375000, 0.500000, + -1.278160, -0.228531, -0.084375, -0.558837, -0.634504, -0.533952, 0.250000, 0.625000, + -1.267236, -0.211316, -0.105469, -0.361844, -0.395706, -0.844088, 0.375000, 0.625000, + -1.254712, -0.191583, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.625000, + -1.183388, -0.279157, -0.105469, -0.330412, -0.460754, -0.823731, 0.375000, 0.750000, + -1.192680, -0.311601, -0.049219, -0.547601, -0.806671, -0.222295, 0.125000, 0.750000, + -1.081299, -0.384998, -0.000000, -0.479572, -0.877503, -0.000000, 0.000000, 0.875000, + -1.081536, -0.379325, -0.049219, -0.470000, -0.855960, -0.215482, 0.125000, 0.875000, + -1.082161, -0.364370, -0.084375, -0.423555, -0.760495, -0.492188, 0.250000, 0.875000, + -0.952148, -0.443555, -0.049219, -0.400263, -0.889473, -0.220515, 0.125000, 1.000000, + -1.183388, -0.279157, -0.105469, -0.330412, -0.460754, -0.823731, 0.375000, 0.750000, + -1.082161, -0.364370, -0.084375, -0.423555, -0.760495, -0.492187, 0.250000, 0.875000, + -1.083045, -0.343226, -0.105469, -0.286325, -0.503846, -0.814958, 0.375000, 0.875000, + -1.084058, -0.318988, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.875000, + -0.965820, -0.402539, -0.105469, -0.232611, -0.516913, -0.823829, 0.375000, 1.000000, + -1.283887, -0.090015, -0.084375, 0.674847, 0.482249, -0.558585, 0.750000, 0.500000, + -1.177148, -0.257373, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.750000, + -1.165466, -0.216586, -0.084375, 0.549511, 0.670716, -0.498173, 0.750000, 0.750000, + -1.160156, -0.198047, -0.000000, 0.655687, 0.755033, -0.000000, 1.000000, 0.750000, + -0.992188, -0.323438, -0.084375, 0.354770, 0.788378, -0.502591, 0.750000, 1.000000, + -1.299402, -0.105405, -0.105469, 0.407093, 0.306051, -0.860586, 0.625000, 0.500000, + -1.254712, -0.191583, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.625000, + -1.242188, -0.171850, -0.105469, 0.384959, 0.378821, -0.841606, 0.625000, 0.625000, + -1.231264, -0.154636, -0.084375, 0.623037, 0.578584, -0.526370, 0.750000, 0.625000, + -1.170909, -0.235589, -0.105469, 0.354017, 0.451010, -0.819306, 0.625000, 0.750000, + -1.272913, -0.079129, -0.049219, 0.800088, 0.544202, -0.252394, 0.875000, 0.500000, + -1.231264, -0.154636, -0.084375, 0.623037, 0.578584, -0.526370, 0.750000, 0.625000, + -1.223536, -0.142460, -0.049219, 0.725742, 0.647344, -0.232905, 0.875000, 0.625000, + -1.220605, -0.137842, -0.000000, 0.752687, 0.658378, -0.000000, 1.000000, 0.625000, + -1.161617, -0.203145, -0.049219, 0.634450, 0.742942, -0.213332, 0.875000, 0.750000, + -1.170909, -0.235589, -0.105469, 0.354017, 0.451010, -0.819306, 0.625000, 0.750000, + -1.084058, -0.318988, -0.112500, 0.000000, 0.000000, -1.000000, 0.500000, 0.875000, + -1.085071, -0.294750, -0.105469, 0.301978, 0.501655, -0.810649, 0.625000, 0.875000, + -1.085954, -0.273607, -0.084375, 0.462854, 0.744576, -0.481012, 0.750000, 0.875000, + -0.984180, -0.347461, -0.105469, 0.232611, 0.516912, -0.823829, 0.625000, 1.000000, + -1.161617, -0.203145, -0.049219, 0.634450, 0.742942, -0.213332, 0.875000, 0.750000, + -1.085954, -0.273607, -0.084375, 0.462854, 0.744576, -0.481012, 0.750000, 0.875000, + -1.086579, -0.258651, -0.049219, 0.524892, 0.825535, -0.207317, 0.875000, 0.875000, + -1.086816, -0.252979, -0.000000, 0.540758, 0.841178, -0.000000, 1.000000, 0.875000, + -0.997852, -0.306445, -0.049219, 0.400263, 0.889473, -0.220515, 0.875000, 1.000000, + 0.850000, -0.037500, -0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, + 0.850000, -0.450000, -0.000000, 0.158678, -0.987330, 0.000000, 1.000000, 0.000000, + 1.350000, 0.450000, -0.000000, -0.600000, 0.800000, 0.000000, 0.000000, 1.000000, + 1.650000, 0.450000, -0.000000, 0.384615, -0.923077, 0.000000, 1.000000, 1.000000, + 0.850000, -0.243750, 0.247500, -0.000000, 0.000000, 1.000000, 0.500000, 0.000000, + 1.193750, 0.150000, -0.000000, -0.920582, 0.390550, 0.000000, 0.000000, 0.500000, + 1.268750, 0.060938, 0.170625, 0.213724, 0.177140, 0.960699, 0.500000, 0.500000, + 1.343750, -0.028125, -0.000000, 0.957826, -0.287348, 0.000000, 1.000000, 0.500000, + 1.500000, 0.450000, 0.093750, 0.000000, 0.000000, 1.000000, 0.500000, 1.000000, + 0.850000, -0.101953, 0.185625, -0.024132, 0.729325, 0.683742, 0.250000, 0.000000, + 1.089844, 0.017578, -0.000000, -0.544548, 0.838729, 0.000000, 0.000000, 0.250000, + 1.108154, -0.030212, 0.167607, -0.371220, 0.678515, 0.633887, 0.250000, 0.250000, + 1.148438, -0.135352, 0.223477, 0.171854, 0.062939, 0.983110, 0.500000, 0.250000, + 1.217188, 0.122168, 0.127969, -0.695041, 0.414771, 0.587267, 0.250000, 0.500000, + 0.850000, -0.055225, 0.108281, -0.009231, 0.939467, 0.342514, 0.125000, 0.000000, + 0.992480, -0.022705, -0.000000, -0.235151, 0.971959, 0.000000, 0.000000, 0.125000, + 0.995678, -0.038346, 0.105391, -0.221262, 0.921126, 0.320265, 0.125000, 0.125000, + 1.004108, -0.079582, 0.180670, -0.165703, 0.736103, 0.656273, 0.250000, 0.125000, + 1.094879, 0.004436, 0.097771, -0.507507, 0.807721, 0.300039, 0.125000, 0.250000, + 0.850000, -0.168018, 0.232031, -0.025797, 0.392308, 0.919472, 0.375000, 0.000000, + 1.004108, -0.079582, 0.180670, -0.165703, 0.736103, 0.656273, 0.250000, 0.125000, + 1.016026, -0.137881, 0.225838, -0.059540, 0.413822, 0.908409, 0.375000, 0.125000, + 1.029688, -0.204712, 0.240894, 0.079921, 0.015529, 0.996680, 0.500000, 0.125000, + 1.126923, -0.079198, 0.209509, -0.127458, 0.418405, 0.899273, 0.375000, 0.250000, + 1.094879, 0.004436, 0.097771, -0.507507, 0.807721, 0.300039, 0.125000, 0.250000, + 1.153223, 0.077197, -0.000000, -0.801883, 0.597481, 0.000000, 0.000000, 0.375000, + 1.159190, 0.066780, 0.086998, -0.756895, 0.593502, 0.273617, 0.125000, 0.375000, + 1.174921, 0.039317, 0.149139, -0.577629, 0.549531, 0.603623, 0.250000, 0.375000, + 1.200195, 0.142346, 0.074648, -0.876990, 0.403565, 0.260813, 0.125000, 0.500000, + 1.126923, -0.079198, 0.209509, -0.127458, 0.418405, 0.899273, 0.375000, 0.250000, + 1.174921, 0.039317, 0.149139, -0.577629, 0.549531, 0.603623, 0.250000, 0.375000, + 1.197161, 0.000490, 0.186424, -0.218772, 0.394191, 0.892610, 0.375000, 0.375000, + 1.222656, -0.044019, 0.198853, 0.229848, 0.129312, 0.964597, 0.500000, 0.375000, + 1.241211, 0.093640, 0.159961, -0.296452, 0.354445, 0.886840, 0.375000, 0.500000, + 0.850000, -0.385547, 0.185625, 0.102331, -0.725708, 0.680351, 0.750000, 0.000000, + 1.148438, -0.135352, 0.223477, 0.171854, 0.062939, 0.983110, 0.500000, 0.250000, + 1.188721, -0.240491, 0.167607, 0.612561, -0.529591, 0.586772, 0.750000, 0.250000, + 1.207031, -0.288281, -0.000000, 0.718240, -0.695795, 0.000000, 1.000000, 0.250000, + 1.320312, -0.000293, 0.127969, 0.837979, -0.174710, 0.516979, 0.750000, 0.500000, + 0.850000, -0.319482, 0.232031, 0.048061, -0.391985, 0.918715, 0.625000, 0.000000, + 1.029688, -0.204712, 0.240894, 0.079921, 0.015529, 0.996680, 0.500000, 0.125000, + 1.043350, -0.271543, 0.225838, 0.224876, -0.377046, 0.898480, 0.625000, 0.125000, + 1.055267, -0.329842, 0.180670, 0.342821, -0.685430, 0.642386, 0.750000, 0.125000, + 1.169952, -0.191505, 0.209509, 0.435323, -0.278094, 0.856247, 0.625000, 0.250000, + 0.850000, -0.432275, 0.108281, 0.144604, -0.929633, 0.338929, 0.875000, 0.000000, + 1.055267, -0.329842, 0.180670, 0.342821, -0.685430, 0.642386, 0.750000, 0.125000, + 1.063697, -0.371078, 0.105391, 0.408872, -0.857837, 0.311351, 0.875000, 0.125000, + 1.066895, -0.386719, -0.000000, 0.427109, -0.904200, 0.000000, 1.000000, 0.125000, + 1.201996, -0.275139, 0.097771, 0.697781, -0.660281, 0.277723, 0.875000, 0.250000, + 1.169952, -0.191505, 0.209509, 0.435322, -0.278094, 0.856247, 0.625000, 0.250000, + 1.222656, -0.044019, 0.198853, 0.229848, 0.129312, 0.964597, 0.500000, 0.375000, + 1.248151, -0.088527, 0.186424, 0.585763, -0.133695, 0.799380, 0.625000, 0.375000, + 1.270392, -0.127354, 0.149139, 0.789294, -0.317418, 0.525605, 0.750000, 0.375000, + 1.296289, 0.028235, 0.159961, 0.613165, -0.021542, 0.789661, 0.625000, 0.500000, + 1.201996, -0.275139, 0.097771, 0.697781, -0.660281, 0.277723, 0.875000, 0.250000, + 1.270392, -0.127354, 0.149139, 0.789294, -0.317418, 0.525605, 0.750000, 0.375000, + 1.286123, -0.154817, 0.086998, 0.877362, -0.413464, 0.243482, 0.875000, 0.375000, + 1.292090, -0.165234, -0.000000, 0.897596, -0.440819, 0.000000, 1.000000, 0.375000, + 1.337305, -0.020471, 0.074648, 0.935156, -0.261048, 0.239452, 0.875000, 0.500000, + 1.217188, 0.122168, 0.127969, -0.695041, 0.414772, 0.587267, 0.250000, 0.500000, + 1.250781, 0.310547, -0.000000, -0.928477, 0.371391, 0.000000, 0.000000, 0.750000, + 1.279346, 0.300476, 0.088330, -0.634799, 0.386374, 0.669138, 0.250000, 0.750000, + 1.342187, 0.278320, 0.117773, 0.067770, 0.175606, 0.982125, 0.500000, 0.750000, + 1.396875, 0.450000, 0.070312, -0.390971, 0.593197, 0.703747, 0.250000, 1.000000, + 1.200195, 0.142346, 0.074648, -0.876990, 0.403566, 0.260813, 0.125000, 0.500000, + 1.222558, 0.229834, -0.000000, -0.950213, 0.311602, 0.000000, 0.000000, 0.625000, + 1.229482, 0.224792, 0.062299, -0.900661, 0.331376, 0.281068, 0.125000, 0.625000, + 1.247736, 0.211501, 0.106798, -0.702257, 0.362674, 0.612620, 0.250000, 0.625000, + 1.258636, 0.307777, 0.051526, -0.858527, 0.385856, 0.337708, 0.125000, 0.750000, + 1.241211, 0.093640, 0.159961, -0.296452, 0.354445, 0.886840, 0.375000, 0.500000, + 1.247736, 0.211501, 0.106798, -0.702256, 0.362674, 0.612621, 0.250000, 0.625000, + 1.273542, 0.192709, 0.133498, -0.321036, 0.326352, 0.889062, 0.375000, 0.625000, + 1.303125, 0.171167, 0.142397, 0.144754, 0.193543, 0.970354, 0.500000, 0.625000, + 1.308624, 0.290154, 0.110413, -0.297769, 0.322801, 0.898406, 0.375000, 0.750000, + 1.258636, 0.307777, 0.051526, -0.858527, 0.385856, 0.337708, 0.125000, 0.750000, + 1.289551, 0.385986, -0.000000, -0.828868, 0.559444, 0.000000, 0.000000, 0.875000, + 1.299244, 0.384960, 0.043906, -0.742962, 0.544199, 0.389686, 0.125000, 0.875000, + 1.324799, 0.382256, 0.075267, -0.517529, 0.474866, 0.711805, 0.250000, 0.875000, + 1.362891, 0.450000, 0.041016, -0.541369, 0.750540, 0.378959, 0.125000, 1.000000, + 1.308624, 0.290154, 0.110413, -0.297769, 0.322801, 0.898406, 0.375000, 0.750000, + 1.324799, 0.382256, 0.075267, -0.517529, 0.474866, 0.711805, 0.250000, 0.875000, + 1.360928, 0.378432, 0.094084, -0.253078, 0.335498, 0.907410, 0.375000, 0.875000, + 1.402344, 0.374048, 0.100356, 0.015086, 0.130164, 0.991378, 0.500000, 0.875000, + 1.444922, 0.450000, 0.087891, -0.203320, 0.348629, 0.914942, 0.375000, 1.000000, + 1.320312, -0.000293, 0.127969, 0.837979, -0.174710, 0.516979, 0.750000, 0.500000, + 1.342187, 0.278320, 0.117773, 0.067770, 0.175606, 0.982125, 0.500000, 0.750000, + 1.405029, 0.256165, 0.088330, 0.697661, -0.240664, 0.674796, 0.750000, 0.750000, + 1.433594, 0.246094, -0.000000, 0.897727, -0.440551, 0.000000, 1.000000, 0.750000, + 1.603125, 0.450000, 0.070312, 0.328506, -0.736502, 0.591311, 0.750000, 1.000000, + 1.296289, 0.028235, 0.159961, 0.613165, -0.021543, 0.789661, 0.625000, 0.500000, + 1.303125, 0.171167, 0.142397, 0.144754, 0.193543, 0.970354, 0.500000, 0.625000, + 1.332708, 0.149625, 0.133498, 0.543037, 0.012500, 0.839616, 0.625000, 0.625000, + 1.358514, 0.130833, 0.106798, 0.802971, -0.151273, 0.576501, 0.750000, 0.625000, + 1.375751, 0.266487, 0.110413, 0.409019, -0.025151, 0.912179, 0.625000, 0.750000, + 1.337305, -0.020471, 0.074648, 0.935156, -0.261048, 0.239452, 0.875000, 0.500000, + 1.358514, 0.130833, 0.106798, 0.802972, -0.151273, 0.576501, 0.750000, 0.625000, + 1.376768, 0.117542, 0.062299, 0.928216, -0.252378, 0.273351, 0.875000, 0.625000, + 1.383691, 0.112500, -0.000000, 0.958492, -0.285121, 0.000000, 1.000000, 0.625000, + 1.425738, 0.248863, 0.051526, 0.856186, -0.391161, 0.337548, 0.875000, 0.750000, + 1.375751, 0.266487, 0.110413, 0.409019, -0.025151, 0.912179, 0.625000, 0.750000, + 1.402344, 0.374048, 0.100356, 0.015086, 0.130164, 0.991378, 0.500000, 0.875000, + 1.443760, 0.369664, 0.094084, 0.287699, -0.145568, 0.946593, 0.625000, 0.875000, + 1.479889, 0.365840, 0.075267, 0.529482, -0.444837, 0.722336, 0.750000, 0.875000, + 1.555078, 0.450000, 0.087891, 0.197370, -0.414974, 0.888167, 0.625000, 1.000000, + 1.425738, 0.248863, 0.051526, 0.856187, -0.391160, 0.337548, 0.875000, 0.750000, + 1.479889, 0.365840, 0.075267, 0.529481, -0.444836, 0.722337, 0.750000, 0.875000, + 1.505444, 0.363135, 0.043906, 0.670506, -0.648431, 0.360497, 0.875000, 0.875000, + 1.515137, 0.362109, -0.000000, 0.704117, -0.710084, 0.000000, 1.000000, 0.875000, + 1.637109, 0.450000, 0.041016, 0.376658, -0.888038, 0.263661, 0.875000, 1.000000, + 0.850000, -0.450000, -0.000000, 0.158678, -0.987330, 0.000000, 0.000000, 0.000000, + 0.850000, -0.037500, -0.000000, 0.000000, 1.000000, 0.000000, 1.000000, 0.000000, + 1.650000, 0.450000, -0.000000, 0.384615, -0.923077, 0.000000, 0.000000, 1.000000, + 1.350000, 0.450000, -0.000000, -0.600000, 0.800000, 0.000000, 1.000000, 1.000000, + 0.850000, -0.243750, -0.247500, 0.000000, 0.000000, -1.000000, 0.500000, 0.000000, + 1.343750, -0.028125, -0.000000, 0.957826, -0.287348, 0.000000, 0.000000, 0.500000, + 1.268750, 0.060938, -0.170625, 0.200450, 0.166138, -0.965514, 0.500000, 0.500000, + 1.193750, 0.150000, -0.000000, -0.920582, 0.390550, 0.000000, 1.000000, 0.500000, + 1.500000, 0.450000, -0.093750, 0.000000, 0.000000, -1.000000, 0.500000, 1.000000, + 0.850000, -0.385547, -0.185625, 0.105312, -0.725480, -0.680138, 0.250000, 0.000000, + 1.207031, -0.288281, -0.000000, 0.718240, -0.695795, 0.000000, 0.000000, 0.250000, + 1.188721, -0.240491, -0.167607, 0.612003, -0.530032, -0.586957, 0.250000, 0.250000, + 1.148438, -0.135352, -0.223477, 0.171854, 0.062939, -0.983110, 0.500000, 0.250000, + 1.320312, -0.000293, -0.127969, 0.836313, -0.178498, -0.518380, 0.250000, 0.500000, + 0.850000, -0.432275, -0.108281, 0.145471, -0.929513, -0.338885, 0.125000, 0.000000, + 1.066895, -0.386719, -0.000000, 0.427109, -0.904200, 0.000000, 0.000000, 0.125000, + 1.063697, -0.371078, -0.105391, 0.409189, -0.857696, -0.311324, 0.125000, 0.125000, + 1.055267, -0.329842, -0.180670, 0.342821, -0.685430, -0.642386, 0.250000, 0.125000, + 1.201996, -0.275139, -0.097771, 0.697590, -0.660469, -0.277758, 0.125000, 0.250000, + 0.850000, -0.319482, -0.232031, 0.048978, -0.391968, -0.918674, 0.375000, 0.000000, + 1.055267, -0.329842, -0.180670, 0.342821, -0.685430, -0.642386, 0.250000, 0.125000, + 1.043350, -0.271543, -0.225838, 0.224881, -0.377045, -0.898480, 0.375000, 0.125000, + 1.029688, -0.204712, -0.240894, 0.079921, 0.015529, -0.996680, 0.500000, 0.125000, + 1.169952, -0.191505, -0.209509, 0.434362, -0.278625, -0.856562, 0.375000, 0.250000, + 1.201996, -0.275139, -0.097771, 0.697590, -0.660469, -0.277758, 0.125000, 0.250000, + 1.292090, -0.165234, -0.000000, 0.897596, -0.440819, 0.000000, 0.000000, 0.375000, + 1.286123, -0.154817, -0.086998, 0.877008, -0.414138, -0.243610, 0.125000, 0.375000, + 1.270392, -0.127354, -0.149139, 0.789294, -0.317418, -0.525605, 0.250000, 0.375000, + 1.337305, -0.020471, -0.074648, 0.934784, -0.262203, -0.239644, 0.125000, 0.500000, + 1.169952, -0.191505, -0.209509, 0.434362, -0.278625, -0.856562, 0.375000, 0.250000, + 1.270392, -0.127354, -0.149139, 0.789294, -0.317418, -0.525605, 0.250000, 0.375000, + 1.248151, -0.088527, -0.186424, 0.584302, -0.135007, -0.800227, 0.375000, 0.375000, + 1.222656, -0.044019, -0.198853, 0.229848, 0.129312, -0.964597, 0.500000, 0.375000, + 1.296289, 0.028235, -0.159961, 0.611590, -0.023659, -0.790821, 0.375000, 0.500000, + 0.850000, -0.101953, -0.185625, -0.029616, 0.729217, -0.683641, 0.750000, 0.000000, + 1.148438, -0.135352, -0.223477, 0.171854, 0.062939, -0.983110, 0.500000, 0.250000, + 1.108154, -0.030212, -0.167607, -0.375101, 0.676680, -0.633564, 0.750000, 0.250000, + 1.089844, 0.017578, -0.000000, -0.544548, 0.838729, 0.000000, 1.000000, 0.250000, + 1.217188, 0.122168, -0.127969, -0.694334, 0.415688, -0.587455, 0.750000, 0.500000, + 0.850000, -0.168018, -0.232031, -0.027062, 0.392295, -0.919441, 0.625000, 0.000000, + 1.029688, -0.204712, -0.240894, 0.079921, 0.015529, -0.996680, 0.500000, 0.125000, + 1.016026, -0.137881, -0.225838, -0.060933, 0.413563, -0.908434, 0.625000, 0.125000, + 1.004108, -0.079582, -0.180670, -0.165703, 0.736103, -0.656273, 0.750000, 0.125000, + 1.126923, -0.079198, -0.209509, -0.128837, 0.417897, -0.899313, 0.625000, 0.250000, + 0.850000, -0.055225, -0.108281, -0.011227, 0.939448, -0.342507, 0.875000, 0.000000, + 1.004108, -0.079582, -0.180670, -0.165703, 0.736103, -0.656273, 0.750000, 0.125000, + 0.995678, -0.038346, -0.105391, -0.222729, 0.920780, -0.320245, 0.875000, 0.125000, + 0.992480, -0.022705, -0.000000, -0.235151, 0.971959, 0.000000, 1.000000, 0.125000, + 1.094879, 0.004436, -0.097771, -0.508167, 0.807322, -0.299996, 0.875000, 0.250000, + 1.126923, -0.079198, -0.209509, -0.128837, 0.417897, -0.899313, 0.625000, 0.250000, + 1.222656, -0.044019, -0.198853, 0.229848, 0.129312, -0.964597, 0.500000, 0.375000, + 1.197161, 0.000490, -0.186424, -0.219827, 0.393598, -0.892612, 0.625000, 0.375000, + 1.174921, 0.039317, -0.149139, -0.577629, 0.549531, -0.603623, 0.750000, 0.375000, + 1.241211, 0.093640, -0.159961, -0.296846, 0.354114, -0.886840, 0.625000, 0.500000, + 1.094879, 0.004436, -0.097771, -0.508167, 0.807322, -0.299996, 0.875000, 0.250000, + 1.174921, 0.039317, -0.149139, -0.577629, 0.549531, -0.603623, 0.750000, 0.375000, + 1.159190, 0.066780, -0.086998, -0.756738, 0.593689, -0.273644, 0.875000, 0.375000, + 1.153223, 0.077197, -0.000000, -0.801883, 0.597481, 0.000000, 1.000000, 0.375000, + 1.200195, 0.142346, -0.074648, -0.876392, 0.404760, -0.260971, 0.875000, 0.500000, + 1.320312, -0.000293, -0.127969, 0.836313, -0.178498, -0.518380, 0.250000, 0.500000, + 1.433594, 0.246094, -0.000000, 0.897727, -0.440551, 0.000000, 0.000000, 0.750000, + 1.405029, 0.256165, -0.088330, 0.694944, -0.248071, -0.674918, 0.250000, 0.750000, + 1.342187, 0.278320, -0.117773, 0.067770, 0.175606, -0.982125, 0.500000, 0.750000, + 1.603125, 0.450000, -0.070312, 0.325932, -0.741335, -0.586677, 0.250000, 1.000000, + 1.337305, -0.020471, -0.074648, 0.934784, -0.262203, -0.239644, 0.125000, 0.500000, + 1.383691, 0.112500, -0.000000, 0.958492, -0.285121, 0.000000, 0.000000, 0.625000, + 1.376768, 0.117542, -0.062299, 0.927697, -0.254079, -0.273535, 0.125000, 0.625000, + 1.358514, 0.130833, -0.106798, 0.802972, -0.151273, -0.576501, 0.250000, 0.625000, + 1.425738, 0.248863, -0.051526, 0.855222, -0.393324, -0.337479, 0.125000, 0.750000, + 1.296289, 0.028235, -0.159961, 0.611590, -0.023659, -0.790821, 0.375000, 0.500000, + 1.358514, 0.130833, -0.106798, 0.802971, -0.151273, -0.576501, 0.250000, 0.625000, + 1.332708, 0.149625, -0.133498, 0.541544, 0.009652, -0.840617, 0.375000, 0.625000, + 1.303125, 0.171167, -0.142397, 0.144754, 0.193543, -0.970354, 0.500000, 0.625000, + 1.375751, 0.266487, -0.110413, 0.408001, -0.028503, -0.912536, 0.375000, 0.750000, + 1.425738, 0.248863, -0.051526, 0.855222, -0.393323, -0.337479, 0.125000, 0.750000, + 1.515137, 0.362109, -0.000000, 0.704117, -0.710084, 0.000000, 0.000000, 0.875000, + 1.505444, 0.363135, -0.043906, 0.669146, -0.650146, -0.359936, 0.125000, 0.875000, + 1.479889, 0.365840, -0.075267, 0.529481, -0.444836, -0.722337, 0.250000, 0.875000, + 1.637109, 0.450000, -0.041016, 0.375683, -0.888654, -0.262978, 0.125000, 1.000000, + 1.375751, 0.266487, -0.110413, 0.408001, -0.028503, -0.912536, 0.375000, 0.750000, + 1.479889, 0.365840, -0.075267, 0.529482, -0.444837, -0.722336, 0.250000, 0.875000, + 1.443760, 0.369664, -0.094084, 0.287200, -0.148873, -0.946231, 0.375000, 0.875000, + 1.402344, 0.374048, -0.100356, 0.015086, 0.130164, -0.991378, 0.500000, 0.875000, + 1.555078, 0.450000, -0.087891, 0.197089, -0.417806, -0.886901, 0.375000, 1.000000, + 1.217188, 0.122168, -0.127969, -0.694334, 0.415688, -0.587455, 0.750000, 0.500000, + 1.342187, 0.278320, -0.117773, 0.067770, 0.175606, -0.982125, 0.500000, 0.750000, + 1.279346, 0.300476, -0.088330, -0.631401, 0.393081, -0.668446, 0.750000, 0.750000, + 1.250781, 0.310547, -0.000000, -0.928477, 0.371391, 0.000000, 1.000000, 0.750000, + 1.396875, 0.450000, -0.070312, -0.386984, 0.604180, -0.696571, 0.750000, 1.000000, + 1.241211, 0.093640, -0.159961, -0.296846, 0.354114, -0.886840, 0.625000, 0.500000, + 1.303125, 0.171167, -0.142397, 0.144754, 0.193543, -0.970354, 0.500000, 0.625000, + 1.273542, 0.192709, -0.133498, -0.320819, 0.326623, -0.889040, 0.625000, 0.625000, + 1.247736, 0.211501, -0.106798, -0.702256, 0.362674, -0.612621, 0.750000, 0.625000, + 1.308624, 0.290154, -0.110413, -0.297312, 0.323820, -0.898191, 0.625000, 0.750000, + 1.200195, 0.142346, -0.074648, -0.876392, 0.404761, -0.260971, 0.875000, 0.500000, + 1.247736, 0.211501, -0.106798, -0.702257, 0.362674, -0.612620, 0.750000, 0.625000, + 1.229482, 0.224792, -0.062299, -0.899738, 0.333705, -0.281268, 0.875000, 0.625000, + 1.222558, 0.229834, -0.000000, -0.950213, 0.311602, 0.000000, 1.000000, 0.625000, + 1.258636, 0.307777, -0.051526, -0.857015, 0.389291, -0.337605, 0.875000, 0.750000, + 1.308624, 0.290154, -0.110413, -0.297312, 0.323820, -0.898191, 0.625000, 0.750000, + 1.402344, 0.374048, -0.100356, 0.015086, 0.130164, -0.991378, 0.500000, 0.875000, + 1.360928, 0.378432, -0.094084, -0.252654, 0.337465, -0.906799, 0.625000, 0.875000, + 1.324799, 0.382256, -0.075267, -0.517529, 0.474866, -0.711805, 0.750000, 0.875000, + 1.444922, 0.450000, -0.087891, -0.203025, 0.352273, -0.913611, 0.625000, 1.000000, + 1.258636, 0.307777, -0.051526, -0.857015, 0.389291, -0.337606, 0.875000, 0.750000, + 1.324799, 0.382256, -0.075267, -0.517529, 0.474866, -0.711805, 0.750000, 0.875000, + 1.299244, 0.384960, -0.043906, -0.740671, 0.547951, -0.388789, 0.875000, 0.875000, + 1.289551, 0.385986, -0.000000, -0.828868, 0.559444, 0.000000, 1.000000, 0.875000, + 1.362891, 0.450000, -0.041016, -0.538815, 0.753273, -0.377171, 0.875000, 1.000000, + 1.350000, 0.450000, -0.000000, -0.599999, 0.800000, 0.000000, 0.000000, 0.000000, + 1.650000, 0.450000, -0.000000, 0.384615, -0.923077, 0.000000, 1.000000, 0.000000, + 1.400000, 0.450000, -0.000000, 0.599998, -0.800001, 0.000000, 0.000000, 1.000000, + 1.600000, 0.450000, -0.000000, -0.410365, 0.911922, 0.000000, 1.000000, 1.000000, + 1.500000, 0.450000, 0.093750, 0.000000, 0.000000, 1.000000, 0.500000, 0.000000, + 1.412500, 0.478125, -0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.500000, + 1.563281, 0.483398, 0.075000, -0.030653, 0.998390, 0.047730, 0.500000, 0.500000, + 1.714062, 0.488672, -0.000000, 0.106533, 0.994309, 0.000000, 1.000000, 0.500000, + 1.500000, 0.450000, 0.056250, 0.000000, -0.000000, -1.000000, 0.500000, 1.000000, + 1.396875, 0.450000, 0.070312, -0.390970, 0.593197, 0.703746, 0.250000, 0.000000, + 1.385937, 0.471094, -0.000000, -0.393919, 0.919145, 0.000000, 0.000000, 0.250000, + 1.436139, 0.472124, 0.065918, -0.261242, 0.825249, 0.500716, 0.250000, 0.250000, + 1.546582, 0.474390, 0.087891, -0.010489, 0.543162, 0.839563, 0.500000, 0.250000, + 1.459619, 0.479773, 0.056250, -0.028676, 0.999488, -0.014204, 0.250000, 0.500000, + 1.362891, 0.450000, 0.041016, -0.541370, 0.750538, 0.378960, 0.125000, 0.000000, + 1.368555, 0.462305, -0.000000, -0.502135, 0.864789, 0.000000, 0.000000, 0.125000, + 1.382164, 0.462453, 0.040311, -0.452660, 0.827269, 0.332754, 0.125000, 0.125000, + 1.418043, 0.462845, 0.069104, -0.328007, 0.714730, 0.617715, 0.250000, 0.125000, + 1.399743, 0.471377, 0.038452, -0.354757, 0.895428, 0.268992, 0.125000, 0.250000, + 1.444922, 0.450000, 0.087891, -0.203320, 0.348630, 0.914942, 0.375000, 0.000000, + 1.418043, 0.462845, 0.069104, -0.328007, 0.714730, 0.617715, 0.250000, 0.125000, + 1.468768, 0.463400, 0.086380, -0.177466, 0.531475, 0.828275, 0.375000, 0.125000, + 1.526917, 0.464035, 0.092139, -0.002586, 0.248712, 0.968574, 0.500000, 0.125000, + 1.487595, 0.473179, 0.082397, -0.146800, 0.719542, 0.678756, 0.375000, 0.250000, + 1.399743, 0.471377, 0.038452, -0.354755, 0.895429, 0.268990, 0.125000, 0.250000, + 1.400977, 0.476367, -0.000000, -0.252422, 0.967617, 0.000000, 0.000000, 0.375000, + 1.414538, 0.476757, 0.035825, -0.228367, 0.958759, 0.169205, 0.125000, 0.375000, + 1.450289, 0.477783, 0.061414, -0.171147, 0.934241, 0.312892, 0.250000, 0.375000, + 1.425458, 0.478578, 0.032812, -0.011150, 0.999718, -0.020946, 0.125000, 0.500000, + 1.487595, 0.473179, 0.082397, -0.146800, 0.719545, 0.678753, 0.375000, 0.250000, + 1.450289, 0.477783, 0.061414, -0.171148, 0.934242, 0.312891, 0.250000, 0.375000, + 1.500835, 0.479235, 0.076767, -0.104867, 0.896864, 0.429695, 0.375000, 0.375000, + 1.558777, 0.480899, 0.081885, -0.023691, 0.837628, 0.545728, 0.500000, 0.375000, + 1.507916, 0.481462, 0.070312, -0.038175, 0.999104, 0.018273, 0.375000, 0.500000, + 1.603125, 0.450000, 0.070312, 0.328506, -0.736502, 0.591311, 0.750000, 0.000000, + 1.546582, 0.474390, 0.087891, -0.010489, 0.543162, 0.839563, 0.500000, 0.250000, + 1.657025, 0.476656, 0.065918, 0.419012, -0.340104, 0.841878, 0.750000, 0.250000, + 1.707227, 0.477686, -0.000000, 0.537133, -0.843498, 0.000000, 1.000000, 0.250000, + 1.666943, 0.487024, 0.056250, 0.017233, 0.992921, 0.117519, 0.750000, 0.500000, + 1.555078, 0.450000, 0.087891, 0.197370, -0.414975, 0.888167, 0.625000, 0.000000, + 1.526917, 0.464035, 0.092139, -0.002586, 0.248712, 0.968574, 0.500000, 0.125000, + 1.585065, 0.464670, 0.086380, 0.201774, -0.178320, 0.963062, 0.625000, 0.125000, + 1.635790, 0.465225, 0.069104, 0.367189, -0.618011, 0.695150, 0.750000, 0.125000, + 1.605569, 0.475600, 0.082397, 0.182564, 0.209574, 0.960598, 0.625000, 0.250000, + 1.637109, 0.450000, 0.041016, 0.376658, -0.888038, 0.263661, 0.875000, 0.000000, + 1.635790, 0.465225, 0.069104, 0.367189, -0.618009, 0.695153, 0.750000, 0.125000, + 1.671669, 0.465617, 0.040311, 0.430592, -0.845391, 0.316077, 0.875000, 0.125000, + 1.685278, 0.465765, -0.000000, 0.438412, -0.898774, 0.000000, 1.000000, 0.125000, + 1.693421, 0.477402, 0.038452, 0.528248, -0.743422, 0.410218, 0.875000, 0.250000, + 1.605569, 0.475600, 0.082397, 0.182565, 0.209570, 0.960599, 0.625000, 0.250000, + 1.558777, 0.480899, 0.081885, -0.023691, 0.837628, 0.545728, 0.500000, 0.375000, + 1.616719, 0.482563, 0.076767, 0.105864, 0.722978, 0.682712, 0.625000, 0.375000, + 1.667265, 0.484015, 0.061414, 0.368189, 0.433463, 0.822524, 0.750000, 0.375000, + 1.618646, 0.485335, 0.070312, -0.017857, 0.995236, 0.095847, 0.625000, 0.500000, + 1.693421, 0.477402, 0.038452, 0.528244, -0.743425, 0.410215, 0.875000, 0.250000, + 1.667265, 0.484015, 0.061414, 0.368191, 0.433462, 0.822524, 0.750000, 0.375000, + 1.703016, 0.485041, 0.035825, 0.754900, -0.180907, 0.630395, 0.875000, 0.375000, + 1.716577, 0.485431, -0.000000, 0.859737, -0.510736, 0.000000, 1.000000, 0.375000, + 1.701105, 0.488219, 0.032812, 0.072271, 0.992935, 0.094111, 0.875000, 0.500000, + 1.459619, 0.479773, 0.056250, -0.028676, 0.999488, -0.014203, 0.250000, 0.500000, + 1.420312, 0.471094, -0.000000, 0.948684, -0.316227, 0.000000, 0.000000, 0.750000, + 1.460321, 0.472536, 0.046582, 0.388841, 0.140631, -0.910508, 0.250000, 0.750000, + 1.548340, 0.475708, 0.062109, -0.020139, 0.565841, -0.824268, 0.500000, 0.750000, + 1.431250, 0.450000, 0.042188, 0.370536, -0.559922, -0.741073, 0.250000, 1.000000, + 1.425458, 0.478578, 0.032812, -0.011151, 0.999718, -0.020945, 0.125000, 0.500000, + 1.419336, 0.476367, -0.000000, 0.650788, 0.759260, -0.000000, 0.000000, 0.625000, + 1.431414, 0.476827, 0.029800, 0.466018, 0.764069, -0.446123, 0.125000, 0.625000, + 1.463255, 0.478041, 0.051086, 0.212314, 0.799230, -0.562276, 0.250000, 0.625000, + 1.431315, 0.471490, 0.027173, 0.736672, -0.149641, -0.659487, 0.125000, 0.750000, + 1.507916, 0.481462, 0.070312, -0.038175, 0.999104, 0.018273, 0.375000, 0.500000, + 1.463255, 0.478041, 0.051086, 0.212315, 0.799230, -0.562276, 0.250000, 0.625000, + 1.508271, 0.479756, 0.063858, 0.061046, 0.840539, -0.538301, 0.375000, 0.625000, + 1.559876, 0.481723, 0.068115, -0.033383, 0.880730, -0.472440, 0.500000, 0.625000, + 1.501330, 0.474014, 0.058228, 0.143907, 0.380043, -0.913706, 0.375000, 0.750000, + 1.431315, 0.471490, 0.027173, 0.736673, -0.149623, -0.659489, 0.125000, 0.750000, + 1.414258, 0.462305, -0.000000, 0.727013, -0.686624, 0.000000, 0.000000, 0.875000, + 1.424072, 0.462553, 0.025314, 0.622016, -0.580709, -0.525236, 0.125000, 0.875000, + 1.449944, 0.463206, 0.043396, 0.394296, -0.328022, -0.858448, 0.250000, 0.875000, + 1.408594, 0.450000, 0.024609, 0.532585, -0.738082, -0.414232, 0.125000, 1.000000, + 1.501330, 0.474014, 0.058228, 0.143907, 0.380043, -0.913706, 0.375000, 0.750000, + 1.449944, 0.463206, 0.043396, 0.394294, -0.328020, -0.858449, 0.250000, 0.875000, + 1.486523, 0.464130, 0.054245, 0.177862, -0.043211, -0.983106, 0.375000, 0.875000, + 1.528455, 0.465189, 0.057861, -0.006299, 0.244403, -0.969653, 0.500000, 0.875000, + 1.463281, 0.450000, 0.052734, 0.186166, -0.314478, -0.930831, 0.375000, 1.000000, + 1.666943, 0.487024, 0.056250, 0.017234, 0.992921, 0.117521, 0.750000, 0.500000, + 1.548340, 0.475708, 0.062109, -0.020139, 0.565841, -0.824268, 0.500000, 0.750000, + 1.636358, 0.478880, 0.046582, -0.236122, 0.847054, -0.476179, 0.750000, 0.750000, + 1.676367, 0.480322, -0.000000, -0.309738, 0.950822, 0.000000, 1.000000, 0.750000, + 1.568750, 0.450000, 0.042188, -0.325285, 0.686256, -0.650571, 0.750000, 1.000000, + 1.618646, 0.485335, 0.070312, -0.017856, 0.995235, 0.095852, 0.625000, 0.500000, + 1.559876, 0.481723, 0.068115, -0.033384, 0.880731, -0.472439, 0.500000, 0.625000, + 1.611480, 0.483690, 0.063858, -0.102068, 0.914951, -0.390443, 0.625000, 0.625000, + 1.656496, 0.485405, 0.051086, -0.157379, 0.946540, -0.281590, 0.750000, 0.625000, + 1.595350, 0.477402, 0.058228, -0.142748, 0.722340, -0.676645, 0.625000, 0.750000, + 1.701105, 0.488219, 0.032812, 0.072275, 0.992935, 0.094114, 0.875000, 0.500000, + 1.656496, 0.485405, 0.051086, -0.157378, 0.946540, -0.281592, 0.750000, 0.625000, + 1.688337, 0.486619, 0.029800, -0.197992, 0.969370, -0.145333, 0.875000, 0.625000, + 1.700415, 0.487079, -0.000000, -0.212233, 0.977219, 0.000000, 1.000000, 0.625000, + 1.665365, 0.479926, 0.027173, -0.292302, 0.927391, -0.233464, 0.875000, 0.750000, + 1.595350, 0.477402, 0.058228, -0.142748, 0.722338, -0.676646, 0.625000, 0.750000, + 1.528455, 0.465189, 0.057861, -0.006299, 0.244403, -0.969653, 0.500000, 0.875000, + 1.570386, 0.466248, 0.054245, -0.163578, 0.526337, -0.834393, 0.625000, 0.875000, + 1.606965, 0.467171, 0.043396, -0.282838, 0.759561, -0.585721, 0.750000, 0.875000, + 1.536719, 0.450000, 0.052734, -0.182506, 0.366028, -0.912532, 0.625000, 1.000000, + 1.665365, 0.479926, 0.027173, -0.292302, 0.927391, -0.233463, 0.875000, 0.750000, + 1.606965, 0.467171, 0.043396, -0.282837, 0.759559, -0.585724, 0.750000, 0.875000, + 1.632838, 0.467825, 0.025314, -0.349511, 0.893333, -0.282485, 0.875000, 0.875000, + 1.642651, 0.468073, -0.000000, -0.366863, 0.930275, 0.000000, 1.000000, 0.875000, + 1.591406, 0.450000, 0.024609, -0.394896, 0.865864, -0.307141, 0.875000, 1.000000, + 1.650000, 0.450000, -0.000000, 0.384615, -0.923077, 0.000000, 0.000000, 0.000000, + 1.350000, 0.450000, -0.000000, -0.599999, 0.800000, 0.000000, 1.000000, 0.000000, + 1.600000, 0.450000, -0.000000, -0.410365, 0.911922, 0.000000, 0.000000, 1.000000, + 1.400000, 0.450000, -0.000000, 0.599998, -0.800001, 0.000000, 1.000000, 1.000000, + 1.500000, 0.450000, -0.093750, 0.000000, 0.000000, -1.000000, 0.500000, 0.000000, + 1.714062, 0.488672, -0.000000, 0.106533, 0.994309, 0.000000, 0.000000, 0.500000, + 1.563281, 0.483398, -0.075000, -0.030594, 0.996500, -0.077797, 0.500000, 0.500000, + 1.412500, 0.478125, -0.000000, 0.000000, 1.000000, 0.000000, 1.000000, 0.500000, + 1.500000, 0.450000, -0.056250, 0.000000, 0.000000, 1.000000, 0.500000, 1.000000, + 1.603125, 0.450000, -0.070312, 0.325932, -0.741335, -0.586677, 0.250000, 0.000000, + 1.707227, 0.477686, -0.000000, 0.537133, -0.843498, 0.000000, 0.000000, 0.250000, + 1.657025, 0.476656, -0.065918, 0.416712, -0.355669, -0.836570, 0.250000, 0.250000, + 1.546582, 0.474390, -0.087891, -0.010489, 0.543162, -0.839563, 0.500000, 0.250000, + 1.666943, 0.487024, -0.056250, 0.020713, 0.991902, -0.125308, 0.250000, 0.500000, + 1.637109, 0.450000, -0.041016, 0.375683, -0.888653, -0.262978, 0.125000, 0.000000, + 1.685278, 0.465765, -0.000000, 0.438412, -0.898774, 0.000000, 0.000000, 0.125000, + 1.671669, 0.465617, -0.040311, 0.429299, -0.846413, -0.315099, 0.125000, 0.125000, + 1.635790, 0.465225, -0.069104, 0.367189, -0.618009, -0.695153, 0.250000, 0.125000, + 1.693421, 0.477402, -0.038452, 0.526088, -0.745922, -0.408450, 0.125000, 0.250000, + 1.555078, 0.450000, -0.087891, 0.197089, -0.417807, -0.886901, 0.375000, 0.000000, + 1.635790, 0.465225, -0.069104, 0.367189, -0.618011, -0.695150, 0.250000, 0.125000, + 1.585065, 0.464670, -0.086380, 0.201644, -0.183060, -0.962200, 0.375000, 0.125000, + 1.526917, 0.464035, -0.092139, -0.002586, 0.248712, -0.968574, 0.500000, 0.125000, + 1.605569, 0.475600, -0.082397, 0.183016, 0.202049, -0.962123, 0.375000, 0.250000, + 1.693421, 0.477402, -0.038452, 0.526085, -0.745926, -0.408447, 0.125000, 0.250000, + 1.716577, 0.485431, -0.000000, 0.859737, -0.510736, 0.000000, 0.000000, 0.375000, + 1.703016, 0.485041, -0.035825, 0.753057, -0.194596, -0.628520, 0.125000, 0.375000, + 1.667265, 0.484015, -0.061414, 0.368191, 0.433462, -0.822524, 0.250000, 0.375000, + 1.701105, 0.488219, -0.032812, 0.074241, 0.992625, -0.095834, 0.125000, 0.500000, + 1.605569, 0.475600, -0.082397, 0.183016, 0.202045, -0.962124, 0.375000, 0.250000, + 1.667265, 0.484015, -0.061414, 0.368189, 0.433463, -0.822524, 0.250000, 0.375000, + 1.616719, 0.482563, -0.076767, 0.107208, 0.716766, -0.689024, 0.375000, 0.375000, + 1.558777, 0.480899, -0.081885, -0.023691, 0.837628, -0.545728, 0.500000, 0.375000, + 1.618646, 0.485335, -0.070312, -0.017113, 0.994843, -0.099972, 0.375000, 0.500000, + 1.396875, 0.450000, -0.070312, -0.386984, 0.604180, -0.696570, 0.750000, 0.000000, + 1.546582, 0.474390, -0.087891, -0.010489, 0.543162, -0.839563, 0.500000, 0.250000, + 1.436139, 0.472124, -0.065918, -0.260333, 0.826693, -0.498803, 0.750000, 0.250000, + 1.385937, 0.471094, -0.000000, -0.393919, 0.919145, 0.000000, 1.000000, 0.250000, + 1.459619, 0.479773, -0.056250, -0.031625, 0.999471, 0.007533, 0.750000, 0.500000, + 1.444922, 0.450000, -0.087891, -0.203025, 0.352273, -0.913611, 0.625000, 0.000000, + 1.526917, 0.464035, -0.092139, -0.002586, 0.248712, -0.968574, 0.500000, 0.125000, + 1.468768, 0.463400, -0.086380, -0.177235, 0.533433, -0.827065, 0.625000, 0.125000, + 1.418043, 0.462845, -0.069104, -0.328007, 0.714730, -0.617715, 0.750000, 0.125000, + 1.487595, 0.473179, -0.082397, -0.146760, 0.719769, -0.678524, 0.625000, 0.250000, + 1.362891, 0.450000, -0.041016, -0.538816, 0.753272, -0.377172, 0.875000, 0.000000, + 1.418043, 0.462845, -0.069104, -0.328007, 0.714730, -0.617715, 0.750000, 0.125000, + 1.382164, 0.462453, -0.040311, -0.450802, 0.828846, -0.331350, 0.875000, 0.125000, + 1.368555, 0.462305, -0.000000, -0.502135, 0.864789, 0.000000, 1.000000, 0.125000, + 1.399743, 0.471377, -0.038452, -0.353662, 0.896127, -0.268105, 0.875000, 0.250000, + 1.487595, 0.473179, -0.082397, -0.146759, 0.719772, -0.678521, 0.625000, 0.250000, + 1.558777, 0.480899, -0.081885, -0.023691, 0.837628, -0.545728, 0.500000, 0.375000, + 1.500835, 0.479235, -0.076767, -0.105172, 0.895971, -0.431480, 0.625000, 0.375000, + 1.450289, 0.477783, -0.061414, -0.171148, 0.934242, -0.312891, 0.750000, 0.375000, + 1.507916, 0.481462, -0.070312, -0.038808, 0.999007, -0.021872, 0.625000, 0.500000, + 1.399743, 0.471377, -0.038452, -0.353660, 0.896128, -0.268103, 0.875000, 0.250000, + 1.450289, 0.477783, -0.061414, -0.171147, 0.934241, -0.312892, 0.750000, 0.375000, + 1.414538, 0.476757, -0.035825, -0.228267, 0.958797, -0.169120, 0.875000, 0.375000, + 1.400977, 0.476367, -0.000000, -0.252422, 0.967617, 0.000000, 1.000000, 0.375000, + 1.425458, 0.478578, -0.032812, -0.012463, 0.999726, 0.019791, 0.875000, 0.500000, + 1.666943, 0.487024, -0.056250, 0.020714, 0.991901, -0.125310, 0.250000, 0.500000, + 1.676367, 0.480322, -0.000000, -0.309738, 0.950822, 0.000000, 0.000000, 0.750000, + 1.636358, 0.478880, -0.046582, -0.235472, 0.848126, 0.474589, 0.250000, 0.750000, + 1.548340, 0.475708, -0.062109, -0.020139, 0.565841, 0.824268, 0.500000, 0.750000, + 1.568750, 0.450000, -0.042188, -0.323573, 0.690291, 0.647147, 0.250000, 1.000000, + 1.701105, 0.488219, -0.032812, 0.074245, 0.992624, -0.095838, 0.125000, 0.500000, + 1.700415, 0.487079, -0.000000, -0.212233, 0.977219, 0.000000, 0.000000, 0.625000, + 1.688337, 0.486619, -0.029800, -0.197930, 0.969391, 0.145277, 0.125000, 0.625000, + 1.656496, 0.485405, -0.051086, -0.157378, 0.946540, 0.281592, 0.250000, 0.625000, + 1.665365, 0.479926, -0.027173, -0.292143, 0.927478, 0.233317, 0.125000, 0.750000, + 1.618646, 0.485335, -0.070312, -0.017112, 0.994843, -0.099978, 0.375000, 0.500000, + 1.656496, 0.485405, -0.051086, -0.157379, 0.946540, 0.281590, 0.250000, 0.625000, + 1.611480, 0.483690, -0.063858, -0.102043, 0.915022, 0.390285, 0.375000, 0.625000, + 1.559876, 0.481723, -0.068115, -0.033384, 0.880731, 0.472439, 0.500000, 0.625000, + 1.595350, 0.477402, -0.058228, -0.142797, 0.721999, 0.676998, 0.375000, 0.750000, + 1.665365, 0.479926, -0.027173, -0.292143, 0.927478, 0.233317, 0.125000, 0.750000, + 1.642651, 0.468073, -0.000000, -0.366863, 0.930275, 0.000000, 0.000000, 0.875000, + 1.632838, 0.467825, -0.025314, -0.349075, 0.893625, 0.282102, 0.125000, 0.875000, + 1.606965, 0.467171, -0.043396, -0.282837, 0.759559, 0.585724, 0.250000, 0.875000, + 1.591406, 0.450000, -0.024609, -0.394161, 0.866402, 0.306569, 0.125000, 1.000000, + 1.595350, 0.477402, -0.058228, -0.142797, 0.721999, 0.676998, 0.375000, 0.750000, + 1.606965, 0.467171, -0.043396, -0.282838, 0.759561, 0.585721, 0.250000, 0.875000, + 1.570386, 0.466248, -0.054245, -0.163533, 0.526860, 0.834072, 0.375000, 0.875000, + 1.528455, 0.465189, -0.057861, -0.006299, 0.244403, 0.969653, 0.500000, 0.875000, + 1.536719, 0.450000, -0.052734, -0.182345, 0.368116, 0.911724, 0.375000, 1.000000, + 1.459619, 0.479773, -0.056250, -0.031626, 0.999471, 0.007532, 0.750000, 0.500000, + 1.548340, 0.475708, -0.062109, -0.020139, 0.565841, 0.824268, 0.500000, 0.750000, + 1.460321, 0.472536, -0.046582, 0.390568, 0.119605, 0.912771, 0.750000, 0.750000, + 1.420312, 0.471094, -0.000000, 0.948684, -0.316227, 0.000000, 1.000000, 0.750000, + 1.431250, 0.450000, -0.042188, 0.367398, -0.570170, 0.734796, 0.750000, 1.000000, + 1.507916, 0.481462, -0.070312, -0.038808, 0.999007, -0.021872, 0.625000, 0.500000, + 1.559876, 0.481723, -0.068115, -0.033383, 0.880730, 0.472440, 0.500000, 0.625000, + 1.508271, 0.479756, -0.063858, 0.060846, 0.841199, 0.537292, 0.625000, 0.625000, + 1.463255, 0.478041, -0.051086, 0.212315, 0.799230, 0.562276, 0.750000, 0.625000, + 1.501330, 0.474014, -0.058228, 0.144240, 0.376853, 0.914974, 0.625000, 0.750000, + 1.425458, 0.478578, -0.032812, -0.012465, 0.999726, 0.019790, 0.875000, 0.500000, + 1.463255, 0.478041, -0.051086, 0.212314, 0.799230, 0.562276, 0.750000, 0.625000, + 1.431414, 0.476827, -0.029800, 0.465501, 0.764644, 0.445677, 0.875000, 0.625000, + 1.419336, 0.476367, -0.000000, 0.650788, 0.759260, -0.000000, 1.000000, 0.625000, + 1.431315, 0.471490, -0.027173, 0.736016, -0.156276, 0.658680, 0.875000, 0.750000, + 1.501330, 0.474014, -0.058228, 0.144240, 0.376852, 0.914974, 0.625000, 0.750000, + 1.528455, 0.465189, -0.057861, -0.006299, 0.244403, 0.969653, 0.500000, 0.875000, + 1.486523, 0.464130, -0.054245, 0.177936, -0.047578, 0.982891, 0.625000, 0.875000, + 1.449944, 0.463206, -0.043396, 0.394294, -0.328020, 0.858449, 0.750000, 0.875000, + 1.463281, 0.450000, -0.052734, 0.185972, -0.317450, 0.929860, 0.625000, 1.000000, + 1.431315, 0.471490, -0.027173, 0.736017, -0.156259, 0.658682, 0.875000, 0.750000, + 1.449944, 0.463206, -0.043396, 0.394296, -0.328022, 0.858448, 0.750000, 0.875000, + 1.424072, 0.462553, -0.025314, 0.619509, -0.585423, 0.522962, 0.875000, 0.875000, + 1.414258, 0.462305, -0.000000, 0.727013, -0.686624, 0.000000, 1.000000, 0.875000, + 1.408594, 0.450000, -0.024609, 0.530206, -0.740826, 0.412382, 0.875000, 1.000000, + 0.000000, 0.825000, -0.000000, 0.674579, 0.299813, 0.674579, 0.000000, 0.000000, + 0.000000, 0.825000, -0.000000, 0.674579, 0.299813, 0.674579, 1.000000, 0.000000, + 0.100000, 0.600000, -0.000000, 0.600000, 0.800000, -0.000000, 0.000000, 1.000000, + 0.000000, 0.600000, 0.100000, 0.000000, 0.800000, 0.600000, 1.000000, 1.000000, + 0.000000, 0.825000, -0.000000, 0.674579, 0.299813, 0.674579, 0.500000, 0.000000, + 0.162500, 0.740625, -0.000000, 0.780869, -0.624695, 0.000000, 0.000000, 0.500000, + 0.115516, 0.740625, 0.115516, 0.553962, -0.621492, 0.553962, 0.500000, 0.500000, + 0.000000, 0.740625, 0.162500, 0.000000, -0.624695, 0.780869, 1.000000, 0.500000, + 0.071000, 0.600000, 0.071000, 0.427005, 0.797078, 0.427005, 0.500000, 1.000000, + 0.000000, 0.825000, -0.000000, 0.452928, 0.872306, 0.184222, 0.250000, 0.000000, + 0.170313, 0.800391, -0.000000, 0.600000, 0.800000, -0.000000, 0.000000, 0.250000, + 0.157173, 0.800391, 0.067026, 0.554284, 0.799965, 0.229837, 0.250000, 0.250000, + 0.121080, 0.800391, 0.121080, 0.422824, 0.801523, 0.422824, 0.500000, 0.250000, + 0.149959, 0.740625, 0.063939, 0.721237, -0.624756, 0.299162, 0.250000, 0.500000, + 0.000000, 0.825000, -0.000000, 0.142954, 0.989332, 0.028025, 0.125000, 0.000000, + 0.115039, 0.818408, -0.000000, 0.152452, 0.988311, -0.000000, 0.000000, 0.125000, + 0.112750, 0.818408, 0.023522, 0.149493, 0.988317, 0.029677, 0.125000, 0.125000, + 0.106164, 0.818408, 0.045274, 0.140386, 0.988384, 0.058210, 0.250000, 0.125000, + 0.166924, 0.800391, 0.034822, 0.588416, 0.800075, 0.116818, 0.125000, 0.250000, + 0.000000, 0.825000, -0.000000, 0.120585, 0.989432, 0.080516, 0.375000, 0.000000, + 0.106164, 0.818408, 0.045274, 0.140386, 0.988384, 0.058209, 0.250000, 0.125000, + 0.095702, 0.818408, 0.064836, 0.126226, 0.988401, 0.084441, 0.375000, 0.125000, + 0.081785, 0.818408, 0.081785, 0.107233, 0.988434, 0.107233, 0.500000, 0.125000, + 0.141684, 0.800391, 0.095986, 0.497465, 0.801110, 0.332794, 0.375000, 0.250000, + 0.166924, 0.800391, 0.034822, 0.588416, 0.800075, 0.116818, 0.125000, 0.250000, + 0.181055, 0.773584, -0.000000, 0.978147, -0.207916, 0.000000, 0.000000, 0.375000, + 0.177452, 0.773584, 0.037016, 0.959398, -0.208008, 0.190496, 0.125000, 0.375000, + 0.167085, 0.773584, 0.071249, 0.903388, -0.208673, 0.374628, 0.250000, 0.375000, + 0.159265, 0.740625, 0.033217, 0.765799, -0.624831, 0.152111, 0.125000, 0.500000, + 0.141684, 0.800391, 0.095986, 0.497465, 0.801110, 0.332794, 0.375000, 0.250000, + 0.167085, 0.773584, 0.071249, 0.903388, -0.208673, 0.374627, 0.250000, 0.375000, + 0.150618, 0.773584, 0.102036, 0.812814, -0.208889, 0.543782, 0.375000, 0.375000, + 0.128714, 0.773584, 0.128714, 0.691459, -0.209208, 0.691459, 0.500000, 0.375000, + 0.135177, 0.740625, 0.091571, 0.647897, -0.626344, 0.433501, 0.375000, 0.500000, + 0.000000, 0.825000, -0.000000, 0.184222, 0.872306, 0.452928, 0.750000, 0.000000, + 0.121080, 0.800391, 0.121080, 0.422824, 0.801523, 0.422824, 0.500000, 0.250000, + 0.067026, 0.800391, 0.157173, 0.229949, 0.799746, 0.554553, 0.750000, 0.250000, + 0.000000, 0.800391, 0.170313, 0.000000, 0.800000, 0.600000, 1.000000, 0.250000, + 0.063939, 0.740625, 0.149959, 0.299246, -0.624481, 0.721440, 0.750000, 0.500000, + 0.000000, 0.825000, -0.000000, 0.080516, 0.989432, 0.120585, 0.625000, 0.000000, + 0.081785, 0.818408, 0.081785, 0.107233, 0.988434, 0.107233, 0.500000, 0.125000, + 0.064836, 0.818408, 0.095702, 0.084445, 0.988400, 0.126232, 0.625000, 0.125000, + 0.045274, 0.818408, 0.106164, 0.058209, 0.988384, 0.140386, 0.750000, 0.125000, + 0.095986, 0.800391, 0.141684, 0.332805, 0.801096, 0.497480, 0.625000, 0.250000, + 0.000000, 0.825000, -0.000000, 0.028025, 0.989332, 0.142954, 0.875000, 0.000000, + 0.045274, 0.818408, 0.106164, 0.058210, 0.988384, 0.140386, 0.750000, 0.125000, + 0.023522, 0.818408, 0.112750, 0.029681, 0.988314, 0.149513, 0.875000, 0.125000, + 0.000000, 0.818408, 0.115039, 0.000000, 0.988311, 0.152452, 1.000000, 0.125000, + 0.034822, 0.800391, 0.166924, 0.116828, 0.800035, 0.588468, 0.875000, 0.250000, + 0.095986, 0.800391, 0.141684, 0.332805, 0.801096, 0.497480, 0.625000, 0.250000, + 0.128714, 0.773584, 0.128714, 0.691459, -0.209208, 0.691459, 0.500000, 0.375000, + 0.102036, 0.773584, 0.150618, 0.543783, -0.208883, 0.812815, 0.625000, 0.375000, + 0.071249, 0.773584, 0.167085, 0.374627, -0.208673, 0.903388, 0.750000, 0.375000, + 0.091571, 0.740625, 0.135177, 0.433508, -0.626329, 0.647907, 0.625000, 0.500000, + 0.034822, 0.800391, 0.166924, 0.116828, 0.800035, 0.588468, 0.875000, 0.250000, + 0.071249, 0.773584, 0.167085, 0.374628, -0.208673, 0.903388, 0.750000, 0.375000, + 0.037016, 0.773584, 0.177452, 0.190497, -0.207986, 0.959402, 0.875000, 0.375000, + 0.000000, 0.773584, 0.181055, 0.000000, -0.207916, 0.978147, 1.000000, 0.375000, + 0.033217, 0.740625, 0.159265, 0.152118, -0.624784, 0.765837, 0.875000, 0.500000, + 0.149959, 0.740625, 0.063939, 0.721237, -0.624756, 0.299162, 0.250000, 0.500000, + 0.098437, 0.666797, -0.000000, 0.819843, -0.572589, 0.000000, 0.000000, 0.750000, + 0.090828, 0.666797, 0.038696, 0.756991, -0.572775, 0.314474, 0.250000, 0.750000, + 0.069943, 0.666797, 0.069943, 0.578481, -0.575083, 0.578480, 0.500000, 0.750000, + 0.092250, 0.600000, 0.039250, 0.554119, 0.799779, 0.230883, 0.250000, 1.000000, + 0.159265, 0.740625, 0.033217, 0.765799, -0.624831, 0.152111, 0.125000, 0.500000, + 0.129883, 0.704150, -0.000000, 0.733920, -0.679236, 0.000000, 0.000000, 0.625000, + 0.127296, 0.704150, 0.026539, 0.719711, -0.679374, 0.143067, 0.125000, 0.625000, + 0.119854, 0.704150, 0.051090, 0.676763, -0.680523, 0.280858, 0.250000, 0.625000, + 0.096475, 0.666797, 0.020097, 0.803930, -0.572768, 0.160103, 0.125000, 0.750000, + 0.135177, 0.740625, 0.091571, 0.647897, -0.626344, 0.433501, 0.375000, 0.500000, + 0.119854, 0.704150, 0.051090, 0.676763, -0.680523, 0.280858, 0.250000, 0.625000, + 0.108035, 0.704150, 0.073175, 0.608679, -0.680856, 0.407364, 0.375000, 0.625000, + 0.092316, 0.704150, 0.092316, 0.517530, -0.681414, 0.517530, 0.500000, 0.625000, + 0.081863, 0.666797, 0.055433, 0.680115, -0.574467, 0.455446, 0.375000, 0.750000, + 0.096475, 0.666797, 0.020097, 0.803930, -0.572768, 0.160103, 0.125000, 0.750000, + 0.083398, 0.631201, -0.000000, 0.998653, -0.051878, 0.000000, 0.000000, 0.875000, + 0.081732, 0.631201, 0.017004, 0.979312, -0.052085, 0.195539, 0.125000, 0.875000, + 0.076941, 0.631201, 0.032751, 0.921944, -0.052662, 0.383727, 0.250000, 0.875000, + 0.098000, 0.600000, 0.020375, 0.588328, 0.800016, 0.117666, 0.125000, 1.000000, + 0.081863, 0.666797, 0.055433, 0.680115, -0.574467, 0.455446, 0.375000, 0.750000, + 0.076941, 0.631201, 0.032751, 0.921944, -0.052662, 0.383728, 0.250000, 0.875000, + 0.069336, 0.631201, 0.046930, 0.829512, -0.053050, 0.555963, 0.375000, 0.875000, + 0.059228, 0.631201, 0.059228, 0.706103, -0.053279, 0.706102, 0.500000, 0.875000, + 0.083125, 0.600000, 0.056250, 0.497431, 0.800807, 0.333571, 0.375000, 1.000000, + 0.063939, 0.740625, 0.149959, 0.299246, -0.624480, 0.721440, 0.750000, 0.500000, + 0.069943, 0.666797, 0.069943, 0.578480, -0.575083, 0.578481, 0.500000, 0.750000, + 0.038696, 0.666797, 0.090828, 0.314542, -0.572521, 0.757155, 0.750000, 0.750000, + 0.000000, 0.666797, 0.098437, 0.000000, -0.572589, 0.819843, 1.000000, 0.750000, + 0.039250, 0.600000, 0.092250, 0.230996, 0.799557, 0.554392, 0.750000, 1.000000, + 0.091571, 0.740625, 0.135177, 0.433508, -0.626329, 0.647907, 0.625000, 0.500000, + 0.092316, 0.704150, 0.092316, 0.517530, -0.681414, 0.517530, 0.500000, 0.625000, + 0.073175, 0.704150, 0.108035, 0.407370, -0.680843, 0.608689, 0.625000, 0.625000, + 0.051090, 0.704150, 0.119854, 0.280858, -0.680523, 0.676763, 0.750000, 0.625000, + 0.055433, 0.666797, 0.081863, 0.455449, -0.574459, 0.680120, 0.625000, 0.750000, + 0.033217, 0.740625, 0.159265, 0.152118, -0.624783, 0.765837, 0.875000, 0.500000, + 0.051090, 0.704150, 0.119854, 0.280858, -0.680523, 0.676763, 0.750000, 0.625000, + 0.026539, 0.704150, 0.127296, 0.143075, -0.679330, 0.719750, 0.875000, 0.625000, + 0.000000, 0.704150, 0.129883, 0.000000, -0.679236, 0.733920, 1.000000, 0.625000, + 0.020097, 0.666797, 0.096475, 0.160109, -0.572729, 0.803957, 0.875000, 0.750000, + 0.055433, 0.666797, 0.081863, 0.455449, -0.574459, 0.680120, 0.625000, 0.750000, + 0.059228, 0.631201, 0.059228, 0.706102, -0.053279, 0.706103, 0.500000, 0.875000, + 0.046930, 0.631201, 0.069336, 0.555963, -0.053067, 0.829512, 0.625000, 0.875000, + 0.032751, 0.631201, 0.076941, 0.383728, -0.052662, 0.921944, 0.750000, 0.875000, + 0.056250, 0.600000, 0.083125, 0.333582, 0.800793, 0.497447, 0.625000, 1.000000, + 0.020097, 0.666797, 0.096475, 0.160109, -0.572729, 0.803957, 0.875000, 0.750000, + 0.032751, 0.631201, 0.076941, 0.383727, -0.052662, 0.921944, 0.750000, 0.875000, + 0.017004, 0.631201, 0.081732, 0.195539, -0.052105, 0.979311, 0.875000, 0.875000, + 0.000000, 0.631201, 0.083398, 0.000000, -0.051878, 0.998653, 1.000000, 0.875000, + 0.020375, 0.600000, 0.098000, 0.117676, 0.799975, 0.588381, 0.875000, 1.000000, + 0.000000, 0.825000, -0.000000, -0.674579, 0.299813, 0.674579, 0.000000, 0.000000, + 0.000000, 0.825000, -0.000000, -0.674579, 0.299813, 0.674579, 1.000000, 0.000000, + 0.000000, 0.600000, 0.100000, 0.000000, 0.800000, 0.600000, 0.000000, 1.000000, + -0.100000, 0.600000, -0.000000, -0.600000, 0.800000, 0.000000, 1.000000, 1.000000, + 0.000000, 0.825000, -0.000000, -0.674579, 0.299813, 0.674579, 0.500000, 0.000000, + 0.000000, 0.740625, 0.162500, 0.000000, -0.624695, 0.780869, 0.000000, 0.500000, + -0.115516, 0.740625, 0.115516, -0.553962, -0.621492, 0.553962, 0.500000, 0.500000, + -0.162500, 0.740625, -0.000000, -0.780869, -0.624695, -0.000000, 1.000000, 0.500000, + -0.071000, 0.600000, 0.071000, -0.427005, 0.797078, 0.427005, 0.500000, 1.000000, + 0.000000, 0.825000, -0.000000, -0.184222, 0.872306, 0.452928, 0.250000, 0.000000, + 0.000000, 0.800391, 0.170313, 0.000000, 0.800000, 0.600000, 0.000000, 0.250000, + -0.067026, 0.800391, 0.157173, -0.229837, 0.799965, 0.554284, 0.250000, 0.250000, + -0.121080, 0.800391, 0.121080, -0.422824, 0.801523, 0.422824, 0.500000, 0.250000, + -0.063939, 0.740625, 0.149959, -0.299162, -0.624756, 0.721237, 0.250000, 0.500000, + 0.000000, 0.825000, -0.000000, -0.028025, 0.989332, 0.142954, 0.125000, 0.000000, + 0.000000, 0.818408, 0.115039, 0.000000, 0.988311, 0.152452, 0.000000, 0.125000, + -0.023522, 0.818408, 0.112750, -0.029677, 0.988317, 0.149493, 0.125000, 0.125000, + -0.045274, 0.818408, 0.106164, -0.058210, 0.988384, 0.140386, 0.250000, 0.125000, + -0.034822, 0.800391, 0.166924, -0.116818, 0.800075, 0.588416, 0.125000, 0.250000, + 0.000000, 0.825000, -0.000000, -0.080516, 0.989432, 0.120585, 0.375000, 0.000000, + -0.045274, 0.818408, 0.106164, -0.058209, 0.988384, 0.140386, 0.250000, 0.125000, + -0.064836, 0.818408, 0.095702, -0.084441, 0.988401, 0.126226, 0.375000, 0.125000, + -0.081785, 0.818408, 0.081785, -0.107233, 0.988434, 0.107233, 0.500000, 0.125000, + -0.095986, 0.800391, 0.141684, -0.332794, 0.801110, 0.497465, 0.375000, 0.250000, + -0.034822, 0.800391, 0.166924, -0.116818, 0.800075, 0.588416, 0.125000, 0.250000, + 0.000000, 0.773584, 0.181055, 0.000000, -0.207916, 0.978147, 0.000000, 0.375000, + -0.037016, 0.773584, 0.177452, -0.190496, -0.208008, 0.959398, 0.125000, 0.375000, + -0.071249, 0.773584, 0.167085, -0.374628, -0.208673, 0.903388, 0.250000, 0.375000, + -0.033217, 0.740625, 0.159265, -0.152111, -0.624831, 0.765799, 0.125000, 0.500000, + -0.095986, 0.800391, 0.141684, -0.332794, 0.801110, 0.497465, 0.375000, 0.250000, + -0.071249, 0.773584, 0.167085, -0.374627, -0.208673, 0.903388, 0.250000, 0.375000, + -0.102036, 0.773584, 0.150618, -0.543782, -0.208889, 0.812814, 0.375000, 0.375000, + -0.128714, 0.773584, 0.128714, -0.691459, -0.209208, 0.691459, 0.500000, 0.375000, + -0.091571, 0.740625, 0.135177, -0.433501, -0.626344, 0.647897, 0.375000, 0.500000, + 0.000000, 0.825000, -0.000000, -0.452928, 0.872306, 0.184222, 0.750000, 0.000000, + -0.121080, 0.800391, 0.121080, -0.422824, 0.801523, 0.422824, 0.500000, 0.250000, + -0.157173, 0.800391, 0.067026, -0.554553, 0.799746, 0.229949, 0.750000, 0.250000, + -0.170313, 0.800391, -0.000000, -0.600000, 0.800000, 0.000000, 1.000000, 0.250000, + -0.149959, 0.740625, 0.063939, -0.721440, -0.624481, 0.299246, 0.750000, 0.500000, + 0.000000, 0.825000, -0.000000, -0.120585, 0.989432, 0.080516, 0.625000, 0.000000, + -0.081785, 0.818408, 0.081785, -0.107233, 0.988434, 0.107233, 0.500000, 0.125000, + -0.095702, 0.818408, 0.064836, -0.126232, 0.988400, 0.084445, 0.625000, 0.125000, + -0.106164, 0.818408, 0.045274, -0.140386, 0.988384, 0.058209, 0.750000, 0.125000, + -0.141684, 0.800391, 0.095986, -0.497480, 0.801096, 0.332805, 0.625000, 0.250000, + 0.000000, 0.825000, -0.000000, -0.142954, 0.989332, 0.028025, 0.875000, 0.000000, + -0.106164, 0.818408, 0.045274, -0.140386, 0.988384, 0.058210, 0.750000, 0.125000, + -0.112750, 0.818408, 0.023522, -0.149513, 0.988314, 0.029681, 0.875000, 0.125000, + -0.115039, 0.818408, -0.000000, -0.152452, 0.988311, 0.000000, 1.000000, 0.125000, + -0.166924, 0.800391, 0.034822, -0.588468, 0.800035, 0.116828, 0.875000, 0.250000, + -0.141684, 0.800391, 0.095986, -0.497480, 0.801096, 0.332805, 0.625000, 0.250000, + -0.128714, 0.773584, 0.128714, -0.691459, -0.209208, 0.691459, 0.500000, 0.375000, + -0.150618, 0.773584, 0.102036, -0.812815, -0.208883, 0.543783, 0.625000, 0.375000, + -0.167085, 0.773584, 0.071249, -0.903388, -0.208673, 0.374627, 0.750000, 0.375000, + -0.135177, 0.740625, 0.091571, -0.647907, -0.626329, 0.433508, 0.625000, 0.500000, + -0.166924, 0.800391, 0.034822, -0.588468, 0.800035, 0.116828, 0.875000, 0.250000, + -0.167085, 0.773584, 0.071249, -0.903388, -0.208673, 0.374628, 0.750000, 0.375000, + -0.177452, 0.773584, 0.037016, -0.959402, -0.207986, 0.190497, 0.875000, 0.375000, + -0.181055, 0.773584, -0.000000, -0.978147, -0.207916, -0.000000, 1.000000, 0.375000, + -0.159265, 0.740625, 0.033217, -0.765837, -0.624784, 0.152118, 0.875000, 0.500000, + -0.063939, 0.740625, 0.149959, -0.299162, -0.624756, 0.721237, 0.250000, 0.500000, + 0.000000, 0.666797, 0.098437, 0.000000, -0.572589, 0.819843, 0.000000, 0.750000, + -0.038696, 0.666797, 0.090828, -0.314474, -0.572775, 0.756991, 0.250000, 0.750000, + -0.069943, 0.666797, 0.069943, -0.578480, -0.575083, 0.578481, 0.500000, 0.750000, + -0.039250, 0.600000, 0.092250, -0.230883, 0.799779, 0.554119, 0.250000, 1.000000, + -0.033217, 0.740625, 0.159265, -0.152111, -0.624831, 0.765799, 0.125000, 0.500000, + 0.000000, 0.704150, 0.129883, 0.000000, -0.679236, 0.733920, 0.000000, 0.625000, + -0.026539, 0.704150, 0.127296, -0.143067, -0.679374, 0.719711, 0.125000, 0.625000, + -0.051090, 0.704150, 0.119854, -0.280858, -0.680523, 0.676763, 0.250000, 0.625000, + -0.020097, 0.666797, 0.096475, -0.160103, -0.572768, 0.803930, 0.125000, 0.750000, + -0.091571, 0.740625, 0.135177, -0.433501, -0.626344, 0.647897, 0.375000, 0.500000, + -0.051090, 0.704150, 0.119854, -0.280858, -0.680523, 0.676763, 0.250000, 0.625000, + -0.073175, 0.704150, 0.108035, -0.407364, -0.680856, 0.608679, 0.375000, 0.625000, + -0.092316, 0.704150, 0.092316, -0.517530, -0.681414, 0.517530, 0.500000, 0.625000, + -0.055433, 0.666797, 0.081863, -0.455446, -0.574467, 0.680115, 0.375000, 0.750000, + -0.020097, 0.666797, 0.096475, -0.160103, -0.572768, 0.803930, 0.125000, 0.750000, + 0.000000, 0.631201, 0.083398, 0.000000, -0.051878, 0.998653, 0.000000, 0.875000, + -0.017004, 0.631201, 0.081732, -0.195539, -0.052085, 0.979312, 0.125000, 0.875000, + -0.032751, 0.631201, 0.076941, -0.383727, -0.052662, 0.921944, 0.250000, 0.875000, + -0.020375, 0.600000, 0.098000, -0.117666, 0.800016, 0.588328, 0.125000, 1.000000, + -0.055433, 0.666797, 0.081863, -0.455446, -0.574467, 0.680115, 0.375000, 0.750000, + -0.032751, 0.631201, 0.076941, -0.383728, -0.052662, 0.921944, 0.250000, 0.875000, + -0.046930, 0.631201, 0.069336, -0.555963, -0.053050, 0.829512, 0.375000, 0.875000, + -0.059228, 0.631201, 0.059228, -0.706102, -0.053279, 0.706103, 0.500000, 0.875000, + -0.056250, 0.600000, 0.083125, -0.333571, 0.800807, 0.497431, 0.375000, 1.000000, + -0.149959, 0.740625, 0.063939, -0.721440, -0.624480, 0.299246, 0.750000, 0.500000, + -0.069943, 0.666797, 0.069943, -0.578481, -0.575083, 0.578480, 0.500000, 0.750000, + -0.090828, 0.666797, 0.038696, -0.757155, -0.572521, 0.314542, 0.750000, 0.750000, + -0.098437, 0.666797, -0.000000, -0.819843, -0.572589, -0.000000, 1.000000, 0.750000, + -0.092250, 0.600000, 0.039250, -0.554392, 0.799557, 0.230996, 0.750000, 1.000000, + -0.135177, 0.740625, 0.091571, -0.647907, -0.626329, 0.433508, 0.625000, 0.500000, + -0.092316, 0.704150, 0.092316, -0.517530, -0.681414, 0.517530, 0.500000, 0.625000, + -0.108035, 0.704150, 0.073175, -0.608689, -0.680843, 0.407370, 0.625000, 0.625000, + -0.119854, 0.704150, 0.051090, -0.676763, -0.680523, 0.280858, 0.750000, 0.625000, + -0.081863, 0.666797, 0.055433, -0.680120, -0.574459, 0.455449, 0.625000, 0.750000, + -0.159265, 0.740625, 0.033217, -0.765837, -0.624783, 0.152118, 0.875000, 0.500000, + -0.119854, 0.704150, 0.051090, -0.676763, -0.680523, 0.280858, 0.750000, 0.625000, + -0.127296, 0.704150, 0.026539, -0.719750, -0.679330, 0.143075, 0.875000, 0.625000, + -0.129883, 0.704150, -0.000000, -0.733920, -0.679236, -0.000000, 1.000000, 0.625000, + -0.096475, 0.666797, 0.020097, -0.803957, -0.572729, 0.160109, 0.875000, 0.750000, + -0.081863, 0.666797, 0.055433, -0.680120, -0.574459, 0.455449, 0.625000, 0.750000, + -0.059228, 0.631201, 0.059228, -0.706103, -0.053279, 0.706102, 0.500000, 0.875000, + -0.069336, 0.631201, 0.046930, -0.829512, -0.053067, 0.555963, 0.625000, 0.875000, + -0.076941, 0.631201, 0.032751, -0.921944, -0.052662, 0.383728, 0.750000, 0.875000, + -0.083125, 0.600000, 0.056250, -0.497447, 0.800793, 0.333582, 0.625000, 1.000000, + -0.096475, 0.666797, 0.020097, -0.803957, -0.572729, 0.160109, 0.875000, 0.750000, + -0.076941, 0.631201, 0.032751, -0.921944, -0.052662, 0.383727, 0.750000, 0.875000, + -0.081732, 0.631201, 0.017004, -0.979311, -0.052105, 0.195539, 0.875000, 0.875000, + -0.083398, 0.631201, -0.000000, -0.998653, -0.051878, -0.000000, 1.000000, 0.875000, + -0.098000, 0.600000, 0.020375, -0.588381, 0.799975, 0.117676, 0.875000, 1.000000, + 0.000000, 0.825000, -0.000000, -0.674579, 0.299813, -0.674579, 0.000000, 0.000000, + 0.000000, 0.825000, -0.000000, -0.674579, 0.299813, -0.674579, 1.000000, 0.000000, + -0.100000, 0.600000, -0.000000, -0.600000, 0.800000, 0.000000, 0.000000, 1.000000, + 0.000000, 0.600000, -0.100000, 0.000000, 0.800000, -0.600000, 1.000000, 1.000000, + 0.000000, 0.825000, -0.000000, -0.674579, 0.299813, -0.674579, 0.500000, 0.000000, + -0.162500, 0.740625, -0.000000, -0.780869, -0.624695, -0.000000, 0.000000, 0.500000, + -0.115516, 0.740625, -0.115516, -0.553962, -0.621492, -0.553962, 0.500000, 0.500000, + 0.000000, 0.740625, -0.162500, 0.000000, -0.624695, -0.780869, 1.000000, 0.500000, + -0.071000, 0.600000, -0.071000, -0.427005, 0.797078, -0.427005, 0.500000, 1.000000, + 0.000000, 0.825000, -0.000000, -0.452928, 0.872306, -0.184222, 0.250000, 0.000000, + -0.170313, 0.800391, -0.000000, -0.600000, 0.800000, 0.000000, 0.000000, 0.250000, + -0.157173, 0.800391, -0.067026, -0.554284, 0.799965, -0.229837, 0.250000, 0.250000, + -0.121080, 0.800391, -0.121080, -0.422824, 0.801523, -0.422824, 0.500000, 0.250000, + -0.149959, 0.740625, -0.063939, -0.721237, -0.624756, -0.299162, 0.250000, 0.500000, + 0.000000, 0.825000, -0.000000, -0.142954, 0.989332, -0.028025, 0.125000, 0.000000, + -0.115039, 0.818408, -0.000000, -0.152452, 0.988311, 0.000000, 0.000000, 0.125000, + -0.112750, 0.818408, -0.023522, -0.149493, 0.988317, -0.029677, 0.125000, 0.125000, + -0.106164, 0.818408, -0.045274, -0.140386, 0.988384, -0.058210, 0.250000, 0.125000, + -0.166924, 0.800391, -0.034822, -0.588416, 0.800075, -0.116818, 0.125000, 0.250000, + 0.000000, 0.825000, -0.000000, -0.120585, 0.989432, -0.080516, 0.375000, 0.000000, + -0.106164, 0.818408, -0.045274, -0.140386, 0.988384, -0.058209, 0.250000, 0.125000, + -0.095702, 0.818408, -0.064836, -0.126226, 0.988401, -0.084441, 0.375000, 0.125000, + -0.081785, 0.818408, -0.081785, -0.107233, 0.988434, -0.107233, 0.500000, 0.125000, + -0.141684, 0.800391, -0.095986, -0.497465, 0.801110, -0.332794, 0.375000, 0.250000, + -0.166924, 0.800391, -0.034822, -0.588416, 0.800075, -0.116818, 0.125000, 0.250000, + -0.181055, 0.773584, -0.000000, -0.978147, -0.207916, -0.000000, 0.000000, 0.375000, + -0.177452, 0.773584, -0.037016, -0.959398, -0.208008, -0.190496, 0.125000, 0.375000, + -0.167085, 0.773584, -0.071249, -0.903388, -0.208673, -0.374628, 0.250000, 0.375000, + -0.159265, 0.740625, -0.033217, -0.765799, -0.624831, -0.152111, 0.125000, 0.500000, + -0.141684, 0.800391, -0.095986, -0.497465, 0.801110, -0.332794, 0.375000, 0.250000, + -0.167085, 0.773584, -0.071249, -0.903388, -0.208673, -0.374627, 0.250000, 0.375000, + -0.150618, 0.773584, -0.102036, -0.812814, -0.208889, -0.543782, 0.375000, 0.375000, + -0.128714, 0.773584, -0.128714, -0.691459, -0.209208, -0.691459, 0.500000, 0.375000, + -0.135177, 0.740625, -0.091571, -0.647897, -0.626344, -0.433501, 0.375000, 0.500000, + 0.000000, 0.825000, -0.000000, -0.184222, 0.872306, -0.452928, 0.750000, 0.000000, + -0.121080, 0.800391, -0.121080, -0.422824, 0.801523, -0.422824, 0.500000, 0.250000, + -0.067026, 0.800391, -0.157173, -0.229949, 0.799746, -0.554553, 0.750000, 0.250000, + 0.000000, 0.800391, -0.170313, 0.000000, 0.800000, -0.600000, 1.000000, 0.250000, + -0.063939, 0.740625, -0.149959, -0.299246, -0.624481, -0.721440, 0.750000, 0.500000, + 0.000000, 0.825000, -0.000000, -0.080516, 0.989432, -0.120585, 0.625000, 0.000000, + -0.081785, 0.818408, -0.081785, -0.107233, 0.988434, -0.107233, 0.500000, 0.125000, + -0.064836, 0.818408, -0.095702, -0.084445, 0.988400, -0.126232, 0.625000, 0.125000, + -0.045274, 0.818408, -0.106164, -0.058209, 0.988384, -0.140386, 0.750000, 0.125000, + -0.095986, 0.800391, -0.141684, -0.332805, 0.801096, -0.497480, 0.625000, 0.250000, + 0.000000, 0.825000, -0.000000, -0.028025, 0.989332, -0.142954, 0.875000, 0.000000, + -0.045274, 0.818408, -0.106164, -0.058210, 0.988384, -0.140386, 0.750000, 0.125000, + -0.023522, 0.818408, -0.112750, -0.029681, 0.988314, -0.149513, 0.875000, 0.125000, + 0.000000, 0.818408, -0.115039, 0.000000, 0.988311, -0.152452, 1.000000, 0.125000, + -0.034822, 0.800391, -0.166924, -0.116828, 0.800035, -0.588468, 0.875000, 0.250000, + -0.095986, 0.800391, -0.141684, -0.332805, 0.801096, -0.497480, 0.625000, 0.250000, + -0.128714, 0.773584, -0.128714, -0.691459, -0.209208, -0.691459, 0.500000, 0.375000, + -0.102036, 0.773584, -0.150618, -0.543783, -0.208883, -0.812815, 0.625000, 0.375000, + -0.071249, 0.773584, -0.167085, -0.374627, -0.208673, -0.903388, 0.750000, 0.375000, + -0.091571, 0.740625, -0.135177, -0.433508, -0.626329, -0.647907, 0.625000, 0.500000, + -0.034822, 0.800391, -0.166924, -0.116828, 0.800035, -0.588468, 0.875000, 0.250000, + -0.071249, 0.773584, -0.167085, -0.374628, -0.208673, -0.903388, 0.750000, 0.375000, + -0.037016, 0.773584, -0.177452, -0.190497, -0.207986, -0.959402, 0.875000, 0.375000, + 0.000000, 0.773584, -0.181055, 0.000000, -0.207916, -0.978147, 1.000000, 0.375000, + -0.033217, 0.740625, -0.159265, -0.152118, -0.624784, -0.765837, 0.875000, 0.500000, + -0.149959, 0.740625, -0.063939, -0.721237, -0.624756, -0.299162, 0.250000, 0.500000, + -0.098437, 0.666797, -0.000000, -0.819843, -0.572589, -0.000000, 0.000000, 0.750000, + -0.090828, 0.666797, -0.038696, -0.756991, -0.572775, -0.314474, 0.250000, 0.750000, + -0.069943, 0.666797, -0.069943, -0.578481, -0.575083, -0.578480, 0.500000, 0.750000, + -0.092250, 0.600000, -0.039250, -0.554119, 0.799779, -0.230883, 0.250000, 1.000000, + -0.159265, 0.740625, -0.033217, -0.765799, -0.624831, -0.152111, 0.125000, 0.500000, + -0.129883, 0.704150, -0.000000, -0.733920, -0.679236, -0.000000, 0.000000, 0.625000, + -0.127296, 0.704150, -0.026539, -0.719711, -0.679374, -0.143067, 0.125000, 0.625000, + -0.119854, 0.704150, -0.051090, -0.676763, -0.680523, -0.280858, 0.250000, 0.625000, + -0.096475, 0.666797, -0.020097, -0.803930, -0.572768, -0.160103, 0.125000, 0.750000, + -0.135177, 0.740625, -0.091571, -0.647897, -0.626344, -0.433501, 0.375000, 0.500000, + -0.119854, 0.704150, -0.051090, -0.676763, -0.680523, -0.280858, 0.250000, 0.625000, + -0.108035, 0.704150, -0.073175, -0.608679, -0.680856, -0.407364, 0.375000, 0.625000, + -0.092316, 0.704150, -0.092316, -0.517530, -0.681414, -0.517530, 0.500000, 0.625000, + -0.081863, 0.666797, -0.055433, -0.680115, -0.574467, -0.455446, 0.375000, 0.750000, + -0.096475, 0.666797, -0.020097, -0.803930, -0.572768, -0.160103, 0.125000, 0.750000, + -0.083398, 0.631201, -0.000000, -0.998653, -0.051878, -0.000000, 0.000000, 0.875000, + -0.081732, 0.631201, -0.017004, -0.979312, -0.052085, -0.195539, 0.125000, 0.875000, + -0.076941, 0.631201, -0.032751, -0.921944, -0.052662, -0.383727, 0.250000, 0.875000, + -0.098000, 0.600000, -0.020375, -0.588328, 0.800016, -0.117666, 0.125000, 1.000000, + -0.081863, 0.666797, -0.055433, -0.680115, -0.574467, -0.455446, 0.375000, 0.750000, + -0.076941, 0.631201, -0.032751, -0.921944, -0.052662, -0.383728, 0.250000, 0.875000, + -0.069336, 0.631201, -0.046930, -0.829512, -0.053050, -0.555963, 0.375000, 0.875000, + -0.059228, 0.631201, -0.059228, -0.706103, -0.053279, -0.706102, 0.500000, 0.875000, + -0.083125, 0.600000, -0.056250, -0.497431, 0.800807, -0.333571, 0.375000, 1.000000, + -0.063939, 0.740625, -0.149959, -0.299246, -0.624480, -0.721440, 0.750000, 0.500000, + -0.069943, 0.666797, -0.069943, -0.578480, -0.575083, -0.578481, 0.500000, 0.750000, + -0.038696, 0.666797, -0.090828, -0.314542, -0.572521, -0.757155, 0.750000, 0.750000, + 0.000000, 0.666797, -0.098437, 0.000000, -0.572589, -0.819843, 1.000000, 0.750000, + -0.039250, 0.600000, -0.092250, -0.230996, 0.799557, -0.554392, 0.750000, 1.000000, + -0.091571, 0.740625, -0.135177, -0.433508, -0.626329, -0.647907, 0.625000, 0.500000, + -0.092316, 0.704150, -0.092316, -0.517530, -0.681414, -0.517530, 0.500000, 0.625000, + -0.073175, 0.704150, -0.108035, -0.407370, -0.680843, -0.608689, 0.625000, 0.625000, + -0.051090, 0.704150, -0.119854, -0.280858, -0.680523, -0.676763, 0.750000, 0.625000, + -0.055433, 0.666797, -0.081863, -0.455449, -0.574459, -0.680120, 0.625000, 0.750000, + -0.033217, 0.740625, -0.159265, -0.152118, -0.624783, -0.765837, 0.875000, 0.500000, + -0.051090, 0.704150, -0.119854, -0.280858, -0.680523, -0.676763, 0.750000, 0.625000, + -0.026539, 0.704150, -0.127296, -0.143075, -0.679330, -0.719750, 0.875000, 0.625000, + 0.000000, 0.704150, -0.129883, 0.000000, -0.679236, -0.733920, 1.000000, 0.625000, + -0.020097, 0.666797, -0.096475, -0.160109, -0.572729, -0.803957, 0.875000, 0.750000, + -0.055433, 0.666797, -0.081863, -0.455449, -0.574459, -0.680120, 0.625000, 0.750000, + -0.059228, 0.631201, -0.059228, -0.706102, -0.053279, -0.706103, 0.500000, 0.875000, + -0.046930, 0.631201, -0.069336, -0.555963, -0.053067, -0.829512, 0.625000, 0.875000, + -0.032751, 0.631201, -0.076941, -0.383728, -0.052662, -0.921944, 0.750000, 0.875000, + -0.056250, 0.600000, -0.083125, -0.333582, 0.800793, -0.497447, 0.625000, 1.000000, + -0.020097, 0.666797, -0.096475, -0.160109, -0.572729, -0.803957, 0.875000, 0.750000, + -0.032751, 0.631201, -0.076941, -0.383727, -0.052662, -0.921944, 0.750000, 0.875000, + -0.017004, 0.631201, -0.081732, -0.195539, -0.052105, -0.979311, 0.875000, 0.875000, + 0.000000, 0.631201, -0.083398, 0.000000, -0.051878, -0.998653, 1.000000, 0.875000, + -0.020375, 0.600000, -0.098000, -0.117676, 0.799975, -0.588381, 0.875000, 1.000000, + 0.000000, 0.825000, -0.000000, 0.674579, 0.299813, -0.674579, 0.000000, 0.000000, + 0.000000, 0.825000, -0.000000, 0.674579, 0.299813, -0.674579, 1.000000, 0.000000, + 0.000000, 0.600000, -0.100000, 0.000000, 0.800000, -0.600000, 0.000000, 1.000000, + 0.100000, 0.600000, -0.000000, 0.600000, 0.800000, -0.000000, 1.000000, 1.000000, + 0.000000, 0.825000, -0.000000, 0.674579, 0.299813, -0.674579, 0.500000, 0.000000, + 0.000000, 0.740625, -0.162500, 0.000000, -0.624695, -0.780869, 0.000000, 0.500000, + 0.115516, 0.740625, -0.115516, 0.553962, -0.621492, -0.553962, 0.500000, 0.500000, + 0.162500, 0.740625, -0.000000, 0.780869, -0.624695, 0.000000, 1.000000, 0.500000, + 0.071000, 0.600000, -0.071000, 0.427005, 0.797078, -0.427005, 0.500000, 1.000000, + 0.000000, 0.825000, -0.000000, 0.184222, 0.872306, -0.452928, 0.250000, 0.000000, + 0.000000, 0.800391, -0.170313, 0.000000, 0.800000, -0.600000, 0.000000, 0.250000, + 0.067026, 0.800391, -0.157173, 0.229837, 0.799965, -0.554284, 0.250000, 0.250000, + 0.121080, 0.800391, -0.121080, 0.422824, 0.801523, -0.422824, 0.500000, 0.250000, + 0.063939, 0.740625, -0.149959, 0.299162, -0.624756, -0.721237, 0.250000, 0.500000, + 0.000000, 0.825000, -0.000000, 0.028025, 0.989332, -0.142954, 0.125000, 0.000000, + 0.000000, 0.818408, -0.115039, 0.000000, 0.988311, -0.152452, 0.000000, 0.125000, + 0.023522, 0.818408, -0.112750, 0.029677, 0.988317, -0.149493, 0.125000, 0.125000, + 0.045274, 0.818408, -0.106164, 0.058210, 0.988384, -0.140386, 0.250000, 0.125000, + 0.034822, 0.800391, -0.166924, 0.116818, 0.800075, -0.588416, 0.125000, 0.250000, + 0.000000, 0.825000, -0.000000, 0.080516, 0.989432, -0.120585, 0.375000, 0.000000, + 0.045274, 0.818408, -0.106164, 0.058209, 0.988384, -0.140386, 0.250000, 0.125000, + 0.064836, 0.818408, -0.095702, 0.084441, 0.988401, -0.126226, 0.375000, 0.125000, + 0.081785, 0.818408, -0.081785, 0.107233, 0.988434, -0.107233, 0.500000, 0.125000, + 0.095986, 0.800391, -0.141684, 0.332794, 0.801110, -0.497465, 0.375000, 0.250000, + 0.034822, 0.800391, -0.166924, 0.116818, 0.800075, -0.588416, 0.125000, 0.250000, + 0.000000, 0.773584, -0.181055, 0.000000, -0.207916, -0.978147, 0.000000, 0.375000, + 0.037016, 0.773584, -0.177452, 0.190496, -0.208008, -0.959398, 0.125000, 0.375000, + 0.071249, 0.773584, -0.167085, 0.374628, -0.208673, -0.903388, 0.250000, 0.375000, + 0.033217, 0.740625, -0.159265, 0.152111, -0.624831, -0.765799, 0.125000, 0.500000, + 0.095986, 0.800391, -0.141684, 0.332794, 0.801110, -0.497465, 0.375000, 0.250000, + 0.071249, 0.773584, -0.167085, 0.374627, -0.208673, -0.903388, 0.250000, 0.375000, + 0.102036, 0.773584, -0.150618, 0.543782, -0.208889, -0.812814, 0.375000, 0.375000, + 0.128714, 0.773584, -0.128714, 0.691459, -0.209208, -0.691459, 0.500000, 0.375000, + 0.091571, 0.740625, -0.135177, 0.433501, -0.626344, -0.647897, 0.375000, 0.500000, + 0.000000, 0.825000, -0.000000, 0.452928, 0.872306, -0.184222, 0.750000, 0.000000, + 0.121080, 0.800391, -0.121080, 0.422824, 0.801523, -0.422824, 0.500000, 0.250000, + 0.157173, 0.800391, -0.067026, 0.554553, 0.799746, -0.229949, 0.750000, 0.250000, + 0.170313, 0.800391, -0.000000, 0.600000, 0.800000, -0.000000, 1.000000, 0.250000, + 0.149959, 0.740625, -0.063939, 0.721440, -0.624481, -0.299246, 0.750000, 0.500000, + 0.000000, 0.825000, -0.000000, 0.120585, 0.989432, -0.080516, 0.625000, 0.000000, + 0.081785, 0.818408, -0.081785, 0.107233, 0.988434, -0.107233, 0.500000, 0.125000, + 0.095702, 0.818408, -0.064836, 0.126232, 0.988400, -0.084445, 0.625000, 0.125000, + 0.106164, 0.818408, -0.045274, 0.140386, 0.988384, -0.058209, 0.750000, 0.125000, + 0.141684, 0.800391, -0.095986, 0.497480, 0.801096, -0.332805, 0.625000, 0.250000, + 0.000000, 0.825000, -0.000000, 0.142954, 0.989332, -0.028025, 0.875000, 0.000000, + 0.106164, 0.818408, -0.045274, 0.140386, 0.988384, -0.058210, 0.750000, 0.125000, + 0.112750, 0.818408, -0.023522, 0.149513, 0.988314, -0.029681, 0.875000, 0.125000, + 0.115039, 0.818408, -0.000000, 0.152452, 0.988311, -0.000000, 1.000000, 0.125000, + 0.166924, 0.800391, -0.034822, 0.588468, 0.800035, -0.116828, 0.875000, 0.250000, + 0.141684, 0.800391, -0.095986, 0.497480, 0.801096, -0.332805, 0.625000, 0.250000, + 0.128714, 0.773584, -0.128714, 0.691459, -0.209208, -0.691459, 0.500000, 0.375000, + 0.150618, 0.773584, -0.102036, 0.812815, -0.208883, -0.543783, 0.625000, 0.375000, + 0.167085, 0.773584, -0.071249, 0.903388, -0.208673, -0.374627, 0.750000, 0.375000, + 0.135177, 0.740625, -0.091571, 0.647907, -0.626329, -0.433508, 0.625000, 0.500000, + 0.166924, 0.800391, -0.034822, 0.588468, 0.800035, -0.116828, 0.875000, 0.250000, + 0.167085, 0.773584, -0.071249, 0.903388, -0.208673, -0.374628, 0.750000, 0.375000, + 0.177452, 0.773584, -0.037016, 0.959402, -0.207986, -0.190497, 0.875000, 0.375000, + 0.181055, 0.773584, -0.000000, 0.978147, -0.207916, 0.000000, 1.000000, 0.375000, + 0.159265, 0.740625, -0.033217, 0.765837, -0.624784, -0.152118, 0.875000, 0.500000, + 0.063939, 0.740625, -0.149959, 0.299162, -0.624756, -0.721237, 0.250000, 0.500000, + 0.000000, 0.666797, -0.098437, 0.000000, -0.572589, -0.819843, 0.000000, 0.750000, + 0.038696, 0.666797, -0.090828, 0.314474, -0.572775, -0.756991, 0.250000, 0.750000, + 0.069943, 0.666797, -0.069943, 0.578480, -0.575083, -0.578481, 0.500000, 0.750000, + 0.039250, 0.600000, -0.092250, 0.230883, 0.799779, -0.554119, 0.250000, 1.000000, + 0.033217, 0.740625, -0.159265, 0.152111, -0.624831, -0.765799, 0.125000, 0.500000, + 0.000000, 0.704150, -0.129883, 0.000000, -0.679236, -0.733920, 0.000000, 0.625000, + 0.026539, 0.704150, -0.127296, 0.143067, -0.679374, -0.719711, 0.125000, 0.625000, + 0.051090, 0.704150, -0.119854, 0.280858, -0.680523, -0.676763, 0.250000, 0.625000, + 0.020097, 0.666797, -0.096475, 0.160103, -0.572768, -0.803930, 0.125000, 0.750000, + 0.091571, 0.740625, -0.135177, 0.433501, -0.626344, -0.647897, 0.375000, 0.500000, + 0.051090, 0.704150, -0.119854, 0.280858, -0.680523, -0.676763, 0.250000, 0.625000, + 0.073175, 0.704150, -0.108035, 0.407364, -0.680856, -0.608679, 0.375000, 0.625000, + 0.092316, 0.704150, -0.092316, 0.517530, -0.681414, -0.517530, 0.500000, 0.625000, + 0.055433, 0.666797, -0.081863, 0.455446, -0.574467, -0.680115, 0.375000, 0.750000, + 0.020097, 0.666797, -0.096475, 0.160103, -0.572768, -0.803930, 0.125000, 0.750000, + 0.000000, 0.631201, -0.083398, 0.000000, -0.051878, -0.998653, 0.000000, 0.875000, + 0.017004, 0.631201, -0.081732, 0.195539, -0.052085, -0.979312, 0.125000, 0.875000, + 0.032751, 0.631201, -0.076941, 0.383727, -0.052662, -0.921944, 0.250000, 0.875000, + 0.020375, 0.600000, -0.098000, 0.117666, 0.800016, -0.588328, 0.125000, 1.000000, + 0.055433, 0.666797, -0.081863, 0.455446, -0.574467, -0.680115, 0.375000, 0.750000, + 0.032751, 0.631201, -0.076941, 0.383728, -0.052662, -0.921944, 0.250000, 0.875000, + 0.046930, 0.631201, -0.069336, 0.555963, -0.053050, -0.829512, 0.375000, 0.875000, + 0.059228, 0.631201, -0.059228, 0.706102, -0.053279, -0.706103, 0.500000, 0.875000, + 0.056250, 0.600000, -0.083125, 0.333571, 0.800807, -0.497431, 0.375000, 1.000000, + 0.149959, 0.740625, -0.063939, 0.721440, -0.624480, -0.299246, 0.750000, 0.500000, + 0.069943, 0.666797, -0.069943, 0.578481, -0.575083, -0.578480, 0.500000, 0.750000, + 0.090828, 0.666797, -0.038696, 0.757155, -0.572521, -0.314542, 0.750000, 0.750000, + 0.098437, 0.666797, -0.000000, 0.819843, -0.572589, 0.000000, 1.000000, 0.750000, + 0.092250, 0.600000, -0.039250, 0.554392, 0.799557, -0.230996, 0.750000, 1.000000, + 0.135177, 0.740625, -0.091571, 0.647907, -0.626329, -0.433508, 0.625000, 0.500000, + 0.092316, 0.704150, -0.092316, 0.517530, -0.681414, -0.517530, 0.500000, 0.625000, + 0.108035, 0.704150, -0.073175, 0.608689, -0.680843, -0.407370, 0.625000, 0.625000, + 0.119854, 0.704150, -0.051090, 0.676763, -0.680523, -0.280858, 0.750000, 0.625000, + 0.081863, 0.666797, -0.055433, 0.680120, -0.574459, -0.455449, 0.625000, 0.750000, + 0.159265, 0.740625, -0.033217, 0.765837, -0.624783, -0.152118, 0.875000, 0.500000, + 0.119854, 0.704150, -0.051090, 0.676763, -0.680523, -0.280858, 0.750000, 0.625000, + 0.127296, 0.704150, -0.026539, 0.719750, -0.679330, -0.143075, 0.875000, 0.625000, + 0.129883, 0.704150, -0.000000, 0.733920, -0.679236, 0.000000, 1.000000, 0.625000, + 0.096475, 0.666797, -0.020097, 0.803957, -0.572729, -0.160109, 0.875000, 0.750000, + 0.081863, 0.666797, -0.055433, 0.680120, -0.574459, -0.455449, 0.625000, 0.750000, + 0.059228, 0.631201, -0.059228, 0.706103, -0.053279, -0.706102, 0.500000, 0.875000, + 0.069336, 0.631201, -0.046930, 0.829512, -0.053067, -0.555963, 0.625000, 0.875000, + 0.076941, 0.631201, -0.032751, 0.921944, -0.052662, -0.383728, 0.750000, 0.875000, + 0.083125, 0.600000, -0.056250, 0.497447, 0.800793, -0.333582, 0.625000, 1.000000, + 0.096475, 0.666797, -0.020097, 0.803957, -0.572729, -0.160109, 0.875000, 0.750000, + 0.076941, 0.631201, -0.032751, 0.921944, -0.052662, -0.383727, 0.750000, 0.875000, + 0.081732, 0.631201, -0.017004, 0.979311, -0.052105, -0.195539, 0.875000, 0.875000, + 0.083398, 0.631201, -0.000000, 0.998653, -0.051878, 0.000000, 1.000000, 0.875000, + 0.098000, 0.600000, -0.020375, 0.588381, 0.799975, -0.117676, 0.875000, 1.000000, + 0.100000, 0.600000, -0.000000, 0.600000, 0.800000, -0.000000, 0.000000, 0.000000, + 0.000000, 0.600000, 0.100000, 0.000000, 0.800000, 0.600000, 1.000000, 0.000000, + 0.650000, 0.450000, -0.000000, 1.000000, 0.000000, -0.000000, 0.000000, 1.000000, + 0.000000, 0.450000, 0.650000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000, + 0.071000, 0.600000, 0.071000, 0.427006, 0.797077, 0.427006, 0.500000, 0.000000, + 0.412500, 0.525000, -0.000000, 0.148340, 0.988936, -0.000000, 0.000000, 0.500000, + 0.292875, 0.525000, 0.292875, 0.105934, 0.988714, 0.105934, 0.500000, 0.500000, + 0.000000, 0.525000, 0.412500, 0.000000, 0.988936, 0.148340, 1.000000, 0.500000, + 0.461500, 0.450000, 0.461500, 0.707107, 0.000000, 0.707107, 0.500000, 1.000000, + 0.092250, 0.600000, 0.039250, 0.554119, 0.799778, 0.230883, 0.250000, 0.000000, + 0.228125, 0.555469, -0.000000, 0.203954, 0.978980, -0.000000, 0.000000, 0.250000, + 0.210445, 0.555469, 0.089539, 0.188404, 0.978949, 0.078502, 0.250000, 0.250000, + 0.161969, 0.555469, 0.161969, 0.143654, 0.979146, 0.143654, 0.500000, 0.250000, + 0.380531, 0.525000, 0.161906, 0.137033, 0.988920, 0.057097, 0.250000, 0.500000, + 0.098000, 0.600000, 0.020375, 0.588329, 0.800015, 0.117666, 0.125000, 0.000000, + 0.152344, 0.575098, -0.000000, 0.317497, 0.948259, -0.000000, 0.000000, 0.125000, + 0.149297, 0.575098, 0.031040, 0.311317, 0.948264, 0.062263, 0.125000, 0.125000, + 0.140537, 0.575098, 0.059795, 0.292417, 0.948497, 0.121840, 0.250000, 0.125000, + 0.223562, 0.555469, 0.046480, 0.199984, 0.978983, 0.039997, 0.125000, 0.250000, + 0.083125, 0.600000, 0.056250, 0.497432, 0.800807, 0.333572, 0.375000, 0.000000, + 0.140537, 0.575098, 0.059795, 0.292417, 0.948497, 0.121840, 0.250000, 0.125000, + 0.126636, 0.575098, 0.085693, 0.263031, 0.948527, 0.176386, 0.375000, 0.125000, + 0.108164, 0.575098, 0.108164, 0.223681, 0.948648, 0.223681, 0.500000, 0.125000, + 0.189629, 0.555469, 0.128320, 0.168938, 0.979094, 0.113288, 0.375000, 0.250000, + 0.223562, 0.555469, 0.046480, 0.199985, 0.978982, 0.039997, 0.125000, 0.250000, + 0.317969, 0.539355, -0.000000, 0.157389, 0.987537, -0.000000, 0.000000, 0.375000, + 0.311609, 0.539355, 0.064786, 0.154325, 0.987538, 0.030865, 0.125000, 0.375000, + 0.293326, 0.539355, 0.124803, 0.144929, 0.987598, 0.060387, 0.250000, 0.375000, + 0.404250, 0.525000, 0.084047, 0.145452, 0.988938, 0.029090, 0.125000, 0.500000, + 0.189629, 0.555469, 0.128320, 0.168939, 0.979094, 0.113289, 0.375000, 0.250000, + 0.293326, 0.539355, 0.124803, 0.144929, 0.987598, 0.060387, 0.250000, 0.375000, + 0.264312, 0.539355, 0.178857, 0.130361, 0.987605, 0.087419, 0.375000, 0.375000, + 0.225758, 0.539355, 0.225758, 0.110849, 0.987636, 0.110849, 0.500000, 0.375000, + 0.342891, 0.525000, 0.232031, 0.122865, 0.988997, 0.082392, 0.375000, 0.500000, + 0.039250, 0.600000, 0.092250, 0.230997, 0.799556, 0.554392, 0.750000, 0.000000, + 0.161969, 0.555469, 0.161969, 0.143654, 0.979146, 0.143654, 0.500000, 0.250000, + 0.089539, 0.555469, 0.210445, 0.078560, 0.978918, 0.188544, 0.750000, 0.250000, + 0.000000, 0.555469, 0.228125, 0.000000, 0.978980, 0.203954, 1.000000, 0.250000, + 0.161906, 0.525000, 0.380531, 0.057140, 0.988903, 0.137136, 0.750000, 0.500000, + 0.056250, 0.600000, 0.083125, 0.333583, 0.800793, 0.497447, 0.625000, 0.000000, + 0.108164, 0.575098, 0.108164, 0.223681, 0.948648, 0.223681, 0.500000, 0.125000, + 0.085693, 0.575098, 0.126636, 0.176393, 0.948522, 0.263043, 0.625000, 0.125000, + 0.059795, 0.575098, 0.140537, 0.121840, 0.948497, 0.292417, 0.750000, 0.125000, + 0.128320, 0.555469, 0.189629, 0.113293, 0.979092, 0.168946, 0.625000, 0.250000, + 0.020375, 0.600000, 0.098000, 0.117676, 0.799975, 0.588382, 0.875000, 0.000000, + 0.059795, 0.575098, 0.140537, 0.121840, 0.948497, 0.292417, 0.750000, 0.125000, + 0.031040, 0.575098, 0.149297, 0.062271, 0.948251, 0.311356, 0.875000, 0.125000, + 0.000000, 0.575098, 0.152344, 0.000000, 0.948259, 0.317497, 1.000000, 0.125000, + 0.046480, 0.555469, 0.223562, 0.040002, 0.978977, 0.200010, 0.875000, 0.250000, + 0.128320, 0.555469, 0.189629, 0.113294, 0.979092, 0.168947, 0.625000, 0.250000, + 0.225758, 0.539355, 0.225758, 0.110849, 0.987636, 0.110849, 0.500000, 0.375000, + 0.178857, 0.539355, 0.264312, 0.087423, 0.987604, 0.130368, 0.625000, 0.375000, + 0.124803, 0.539355, 0.293326, 0.060387, 0.987598, 0.144929, 0.750000, 0.375000, + 0.232031, 0.525000, 0.342891, 0.082396, 0.988996, 0.122871, 0.625000, 0.500000, + 0.046480, 0.555469, 0.223562, 0.040002, 0.978977, 0.200011, 0.875000, 0.250000, + 0.124803, 0.539355, 0.293326, 0.060387, 0.987598, 0.144929, 0.750000, 0.375000, + 0.064786, 0.539355, 0.311609, 0.030869, 0.987535, 0.154346, 0.875000, 0.375000, + 0.000000, 0.539355, 0.317969, 0.000000, 0.987537, 0.157389, 1.000000, 0.375000, + 0.084047, 0.525000, 0.404250, 0.029094, 0.988935, 0.145472, 0.875000, 0.500000, + 0.380531, 0.525000, 0.161906, 0.137032, 0.988920, 0.057097, 0.250000, 0.500000, + 0.578125, 0.494531, -0.000000, 0.258736, 0.965948, -0.000000, 0.000000, 0.750000, + 0.533320, 0.494531, 0.226914, 0.239005, 0.965898, 0.099585, 0.250000, 0.750000, + 0.410469, 0.494531, 0.410469, 0.182258, 0.966211, 0.182258, 0.500000, 0.750000, + 0.599625, 0.450000, 0.255125, 0.923077, 0.000000, 0.384615, 0.250000, 1.000000, + 0.404250, 0.525000, 0.084047, 0.145452, 0.988938, 0.029090, 0.125000, 0.500000, + 0.502344, 0.510645, -0.000000, 0.174370, 0.984680, -0.000000, 0.000000, 0.625000, + 0.492297, 0.510645, 0.102353, 0.170975, 0.984682, 0.034195, 0.125000, 0.625000, + 0.463412, 0.510645, 0.197170, 0.160568, 0.984755, 0.066903, 0.250000, 0.625000, + 0.566563, 0.494531, 0.117793, 0.253699, 0.965951, 0.050740, 0.125000, 0.750000, + 0.342891, 0.525000, 0.232031, 0.122865, 0.988997, 0.082392, 0.375000, 0.500000, + 0.463412, 0.510645, 0.197170, 0.160568, 0.984755, 0.066903, 0.250000, 0.625000, + 0.417573, 0.510645, 0.282568, 0.144429, 0.984764, 0.096852, 0.375000, 0.625000, + 0.356664, 0.510645, 0.356664, 0.122811, 0.984802, 0.122811, 0.500000, 0.625000, + 0.480566, 0.494531, 0.325195, 0.214330, 0.966129, 0.143727, 0.375000, 0.750000, + 0.566563, 0.494531, 0.117793, 0.253699, 0.965951, 0.050740, 0.125000, 0.750000, + 0.630469, 0.474902, -0.000000, 0.505546, 0.862799, -0.000000, 0.000000, 0.875000, + 0.617859, 0.474902, 0.128458, 0.495710, 0.862811, 0.099142, 0.125000, 0.875000, + 0.581607, 0.474902, 0.247459, 0.465791, 0.863349, 0.194079, 0.250000, 0.875000, + 0.637000, 0.450000, 0.132437, 0.980581, 0.000000, 0.196116, 0.125000, 1.000000, + 0.480566, 0.494531, 0.325195, 0.214330, 0.966129, 0.143727, 0.375000, 0.750000, + 0.581607, 0.474902, 0.247459, 0.465791, 0.863349, 0.194080, 0.250000, 0.875000, + 0.524077, 0.474902, 0.354639, 0.419002, 0.863417, 0.280978, 0.375000, 0.875000, + 0.447633, 0.474902, 0.447633, 0.356389, 0.863698, 0.356389, 0.500000, 0.875000, + 0.540312, 0.450000, 0.365625, 0.830544, 0.000000, 0.556953, 0.375000, 1.000000, + 0.161906, 0.525000, 0.380531, 0.057140, 0.988903, 0.137136, 0.750000, 0.500000, + 0.410469, 0.494531, 0.410469, 0.182258, 0.966211, 0.182258, 0.500000, 0.750000, + 0.226914, 0.494531, 0.533320, 0.099657, 0.965848, 0.239176, 0.750000, 0.750000, + 0.000000, 0.494531, 0.578125, 0.000000, 0.965948, 0.258736, 1.000000, 0.750000, + 0.255125, 0.450000, 0.599625, 0.384615, 0.000000, 0.923077, 0.750000, 1.000000, + 0.232031, 0.525000, 0.342891, 0.082396, 0.988996, 0.122871, 0.625000, 0.500000, + 0.356664, 0.510645, 0.356664, 0.122811, 0.984802, 0.122811, 0.500000, 0.625000, + 0.282568, 0.510645, 0.417573, 0.096857, 0.984762, 0.144436, 0.625000, 0.625000, + 0.197170, 0.510645, 0.463412, 0.066903, 0.984755, 0.160568, 0.750000, 0.625000, + 0.325195, 0.494531, 0.480566, 0.143734, 0.966126, 0.214340, 0.625000, 0.750000, + 0.084047, 0.525000, 0.404250, 0.029094, 0.988935, 0.145472, 0.875000, 0.500000, + 0.197170, 0.510645, 0.463412, 0.066903, 0.984755, 0.160568, 0.750000, 0.625000, + 0.102353, 0.510645, 0.492297, 0.034200, 0.984678, 0.170999, 0.875000, 0.625000, + 0.000000, 0.510645, 0.502344, 0.000000, 0.984680, 0.174370, 1.000000, 0.625000, + 0.117793, 0.494531, 0.566563, 0.050746, 0.965942, 0.253732, 0.875000, 0.750000, + 0.325195, 0.494531, 0.480566, 0.143734, 0.966126, 0.214340, 0.625000, 0.750000, + 0.447633, 0.474902, 0.447633, 0.356389, 0.863698, 0.356389, 0.500000, 0.875000, + 0.354639, 0.474902, 0.524077, 0.280988, 0.863406, 0.419017, 0.625000, 0.875000, + 0.247459, 0.474902, 0.581607, 0.194080, 0.863349, 0.465791, 0.750000, 0.875000, + 0.365625, 0.450000, 0.540312, 0.556953, 0.000000, 0.830544, 0.625000, 1.000000, + 0.117793, 0.494531, 0.566563, 0.050747, 0.965942, 0.253732, 0.875000, 0.750000, + 0.247459, 0.474902, 0.581607, 0.194079, 0.863349, 0.465791, 0.750000, 0.875000, + 0.128458, 0.474902, 0.617859, 0.099152, 0.862780, 0.495761, 0.875000, 0.875000, + 0.000000, 0.474902, 0.630469, 0.000000, 0.862799, 0.505546, 1.000000, 0.875000, + 0.132437, 0.450000, 0.637000, 0.196116, 0.000000, 0.980581, 0.875000, 1.000000, + 0.000000, 0.600000, 0.100000, 0.000000, 0.800000, 0.600000, 0.000000, 0.000000, + -0.100000, 0.600000, -0.000000, -0.600000, 0.800000, 0.000000, 1.000000, 0.000000, + 0.000000, 0.450000, 0.650000, 0.000000, 0.000000, 1.000000, 0.000000, 1.000000, + -0.650000, 0.450000, -0.000000, -1.000000, -0.000000, -0.000000, 1.000000, 1.000000, + -0.071000, 0.600000, 0.071000, -0.427006, 0.797077, 0.427006, 0.500000, 0.000000, + 0.000000, 0.525000, 0.412500, 0.000000, 0.988936, 0.148340, 0.000000, 0.500000, + -0.292875, 0.525000, 0.292875, -0.105934, 0.988714, 0.105934, 0.500000, 0.500000, + -0.412500, 0.525000, -0.000000, -0.148340, 0.988936, 0.000000, 1.000000, 0.500000, + -0.461500, 0.450000, 0.461500, -0.707107, 0.000000, 0.707107, 0.500000, 1.000000, + -0.039250, 0.600000, 0.092250, -0.230883, 0.799778, 0.554119, 0.250000, 0.000000, + 0.000000, 0.555469, 0.228125, 0.000000, 0.978980, 0.203954, 0.000000, 0.250000, + -0.089539, 0.555469, 0.210445, -0.078502, 0.978949, 0.188404, 0.250000, 0.250000, + -0.161969, 0.555469, 0.161969, -0.143654, 0.979146, 0.143654, 0.500000, 0.250000, + -0.161906, 0.525000, 0.380531, -0.057097, 0.988920, 0.137033, 0.250000, 0.500000, + -0.020375, 0.600000, 0.098000, -0.117666, 0.800015, 0.588329, 0.125000, 0.000000, + 0.000000, 0.575098, 0.152344, 0.000000, 0.948259, 0.317497, 0.000000, 0.125000, + -0.031040, 0.575098, 0.149297, -0.062263, 0.948264, 0.311317, 0.125000, 0.125000, + -0.059795, 0.575098, 0.140537, -0.121840, 0.948497, 0.292417, 0.250000, 0.125000, + -0.046480, 0.555469, 0.223562, -0.039997, 0.978983, 0.199984, 0.125000, 0.250000, + -0.056250, 0.600000, 0.083125, -0.333572, 0.800807, 0.497432, 0.375000, 0.000000, + -0.059795, 0.575098, 0.140537, -0.121840, 0.948497, 0.292417, 0.250000, 0.125000, + -0.085693, 0.575098, 0.126636, -0.176386, 0.948527, 0.263031, 0.375000, 0.125000, + -0.108164, 0.575098, 0.108164, -0.223681, 0.948648, 0.223681, 0.500000, 0.125000, + -0.128320, 0.555469, 0.189629, -0.113288, 0.979094, 0.168938, 0.375000, 0.250000, + -0.046480, 0.555469, 0.223562, -0.039997, 0.978982, 0.199985, 0.125000, 0.250000, + 0.000000, 0.539355, 0.317969, 0.000000, 0.987537, 0.157389, 0.000000, 0.375000, + -0.064786, 0.539355, 0.311609, -0.030865, 0.987538, 0.154325, 0.125000, 0.375000, + -0.124803, 0.539355, 0.293326, -0.060387, 0.987598, 0.144929, 0.250000, 0.375000, + -0.084047, 0.525000, 0.404250, -0.029090, 0.988938, 0.145452, 0.125000, 0.500000, + -0.128320, 0.555469, 0.189629, -0.113289, 0.979094, 0.168939, 0.375000, 0.250000, + -0.124803, 0.539355, 0.293326, -0.060387, 0.987598, 0.144929, 0.250000, 0.375000, + -0.178857, 0.539355, 0.264312, -0.087419, 0.987605, 0.130361, 0.375000, 0.375000, + -0.225758, 0.539355, 0.225758, -0.110849, 0.987636, 0.110849, 0.500000, 0.375000, + -0.232031, 0.525000, 0.342891, -0.082392, 0.988997, 0.122865, 0.375000, 0.500000, + -0.092250, 0.600000, 0.039250, -0.554392, 0.799556, 0.230997, 0.750000, 0.000000, + -0.161969, 0.555469, 0.161969, -0.143654, 0.979146, 0.143654, 0.500000, 0.250000, + -0.210445, 0.555469, 0.089539, -0.188544, 0.978918, 0.078560, 0.750000, 0.250000, + -0.228125, 0.555469, -0.000000, -0.203954, 0.978980, 0.000000, 1.000000, 0.250000, + -0.380531, 0.525000, 0.161906, -0.137136, 0.988903, 0.057140, 0.750000, 0.500000, + -0.083125, 0.600000, 0.056250, -0.497447, 0.800793, 0.333583, 0.625000, 0.000000, + -0.108164, 0.575098, 0.108164, -0.223681, 0.948648, 0.223681, 0.500000, 0.125000, + -0.126636, 0.575098, 0.085693, -0.263043, 0.948522, 0.176393, 0.625000, 0.125000, + -0.140537, 0.575098, 0.059795, -0.292417, 0.948497, 0.121840, 0.750000, 0.125000, + -0.189629, 0.555469, 0.128320, -0.168946, 0.979092, 0.113293, 0.625000, 0.250000, + -0.098000, 0.600000, 0.020375, -0.588382, 0.799975, 0.117676, 0.875000, 0.000000, + -0.140537, 0.575098, 0.059795, -0.292417, 0.948497, 0.121840, 0.750000, 0.125000, + -0.149297, 0.575098, 0.031040, -0.311356, 0.948251, 0.062271, 0.875000, 0.125000, + -0.152344, 0.575098, -0.000000, -0.317497, 0.948259, 0.000000, 1.000000, 0.125000, + -0.223562, 0.555469, 0.046480, -0.200010, 0.978977, 0.040002, 0.875000, 0.250000, + -0.189629, 0.555469, 0.128320, -0.168947, 0.979092, 0.113294, 0.625000, 0.250000, + -0.225758, 0.539355, 0.225758, -0.110849, 0.987636, 0.110849, 0.500000, 0.375000, + -0.264312, 0.539355, 0.178857, -0.130368, 0.987604, 0.087423, 0.625000, 0.375000, + -0.293326, 0.539355, 0.124803, -0.144929, 0.987598, 0.060387, 0.750000, 0.375000, + -0.342891, 0.525000, 0.232031, -0.122871, 0.988996, 0.082396, 0.625000, 0.500000, + -0.223562, 0.555469, 0.046480, -0.200011, 0.978977, 0.040002, 0.875000, 0.250000, + -0.293326, 0.539355, 0.124803, -0.144929, 0.987598, 0.060387, 0.750000, 0.375000, + -0.311609, 0.539355, 0.064786, -0.154346, 0.987535, 0.030869, 0.875000, 0.375000, + -0.317969, 0.539355, -0.000000, -0.157389, 0.987537, 0.000000, 1.000000, 0.375000, + -0.404250, 0.525000, 0.084047, -0.145472, 0.988935, 0.029094, 0.875000, 0.500000, + -0.161906, 0.525000, 0.380531, -0.057097, 0.988920, 0.137032, 0.250000, 0.500000, + 0.000000, 0.494531, 0.578125, 0.000000, 0.965948, 0.258736, 0.000000, 0.750000, + -0.226914, 0.494531, 0.533320, -0.099585, 0.965898, 0.239005, 0.250000, 0.750000, + -0.410469, 0.494531, 0.410469, -0.182258, 0.966211, 0.182258, 0.500000, 0.750000, + -0.255125, 0.450000, 0.599625, -0.384615, 0.000000, 0.923077, 0.250000, 1.000000, + -0.084047, 0.525000, 0.404250, -0.029090, 0.988938, 0.145452, 0.125000, 0.500000, + 0.000000, 0.510645, 0.502344, 0.000000, 0.984680, 0.174370, 0.000000, 0.625000, + -0.102353, 0.510645, 0.492297, -0.034195, 0.984682, 0.170975, 0.125000, 0.625000, + -0.197170, 0.510645, 0.463412, -0.066903, 0.984755, 0.160568, 0.250000, 0.625000, + -0.117793, 0.494531, 0.566563, -0.050740, 0.965951, 0.253699, 0.125000, 0.750000, + -0.232031, 0.525000, 0.342891, -0.082392, 0.988997, 0.122865, 0.375000, 0.500000, + -0.197170, 0.510645, 0.463412, -0.066903, 0.984755, 0.160568, 0.250000, 0.625000, + -0.282568, 0.510645, 0.417573, -0.096852, 0.984764, 0.144429, 0.375000, 0.625000, + -0.356664, 0.510645, 0.356664, -0.122811, 0.984802, 0.122811, 0.500000, 0.625000, + -0.325195, 0.494531, 0.480566, -0.143727, 0.966129, 0.214330, 0.375000, 0.750000, + -0.117793, 0.494531, 0.566563, -0.050740, 0.965951, 0.253699, 0.125000, 0.750000, + 0.000000, 0.474902, 0.630469, 0.000000, 0.862799, 0.505546, 0.000000, 0.875000, + -0.128458, 0.474902, 0.617859, -0.099142, 0.862811, 0.495710, 0.125000, 0.875000, + -0.247459, 0.474902, 0.581607, -0.194079, 0.863349, 0.465791, 0.250000, 0.875000, + -0.132437, 0.450000, 0.637000, -0.196116, 0.000000, 0.980581, 0.125000, 1.000000, + -0.325195, 0.494531, 0.480566, -0.143727, 0.966129, 0.214330, 0.375000, 0.750000, + -0.247459, 0.474902, 0.581607, -0.194080, 0.863349, 0.465791, 0.250000, 0.875000, + -0.354639, 0.474902, 0.524077, -0.280978, 0.863417, 0.419002, 0.375000, 0.875000, + -0.447633, 0.474902, 0.447633, -0.356389, 0.863698, 0.356389, 0.500000, 0.875000, + -0.365625, 0.450000, 0.540312, -0.556953, 0.000000, 0.830544, 0.375000, 1.000000, + -0.380531, 0.525000, 0.161906, -0.137136, 0.988903, 0.057140, 0.750000, 0.500000, + -0.410469, 0.494531, 0.410469, -0.182258, 0.966211, 0.182258, 0.500000, 0.750000, + -0.533320, 0.494531, 0.226914, -0.239176, 0.965848, 0.099657, 0.750000, 0.750000, + -0.578125, 0.494531, -0.000000, -0.258736, 0.965948, 0.000000, 1.000000, 0.750000, + -0.599625, 0.450000, 0.255125, -0.923077, 0.000000, 0.384615, 0.750000, 1.000000, + -0.342891, 0.525000, 0.232031, -0.122871, 0.988996, 0.082396, 0.625000, 0.500000, + -0.356664, 0.510645, 0.356664, -0.122811, 0.984802, 0.122811, 0.500000, 0.625000, + -0.417573, 0.510645, 0.282568, -0.144436, 0.984762, 0.096857, 0.625000, 0.625000, + -0.463412, 0.510645, 0.197170, -0.160568, 0.984755, 0.066903, 0.750000, 0.625000, + -0.480566, 0.494531, 0.325195, -0.214340, 0.966126, 0.143734, 0.625000, 0.750000, + -0.404250, 0.525000, 0.084047, -0.145472, 0.988935, 0.029094, 0.875000, 0.500000, + -0.463412, 0.510645, 0.197170, -0.160568, 0.984755, 0.066903, 0.750000, 0.625000, + -0.492297, 0.510645, 0.102353, -0.170999, 0.984678, 0.034200, 0.875000, 0.625000, + -0.502344, 0.510645, -0.000000, -0.174370, 0.984680, 0.000000, 1.000000, 0.625000, + -0.566563, 0.494531, 0.117793, -0.253732, 0.965942, 0.050746, 0.875000, 0.750000, + -0.480566, 0.494531, 0.325195, -0.214340, 0.966126, 0.143734, 0.625000, 0.750000, + -0.447633, 0.474902, 0.447633, -0.356389, 0.863698, 0.356389, 0.500000, 0.875000, + -0.524077, 0.474902, 0.354639, -0.419017, 0.863406, 0.280988, 0.625000, 0.875000, + -0.581607, 0.474902, 0.247459, -0.465791, 0.863349, 0.194080, 0.750000, 0.875000, + -0.540312, 0.450000, 0.365625, -0.830544, 0.000000, 0.556953, 0.625000, 1.000000, + -0.566563, 0.494531, 0.117793, -0.253732, 0.965942, 0.050747, 0.875000, 0.750000, + -0.581607, 0.474902, 0.247459, -0.465791, 0.863349, 0.194079, 0.750000, 0.875000, + -0.617859, 0.474902, 0.128458, -0.495761, 0.862780, 0.099152, 0.875000, 0.875000, + -0.630469, 0.474902, -0.000000, -0.505546, 0.862799, 0.000000, 1.000000, 0.875000, + -0.637000, 0.450000, 0.132437, -0.980581, 0.000000, 0.196116, 0.875000, 1.000000, + -0.100000, 0.600000, -0.000000, -0.600000, 0.800000, 0.000000, 0.000000, 0.000000, + 0.000000, 0.600000, -0.100000, 0.000000, 0.800000, -0.600000, 1.000000, 0.000000, + -0.650000, 0.450000, -0.000000, -1.000000, -0.000000, -0.000000, 0.000000, 1.000000, + 0.000000, 0.450000, -0.650000, 0.000000, 0.000000, -1.000000, 1.000000, 1.000000, + -0.071000, 0.600000, -0.071000, -0.427006, 0.797077, -0.427006, 0.500000, 0.000000, + -0.412500, 0.525000, -0.000000, -0.148340, 0.988936, 0.000000, 0.000000, 0.500000, + -0.292875, 0.525000, -0.292875, -0.105934, 0.988714, -0.105934, 0.500000, 0.500000, + 0.000000, 0.525000, -0.412500, 0.000000, 0.988936, -0.148340, 1.000000, 0.500000, + -0.461500, 0.450000, -0.461500, -0.707107, -0.000000, -0.707107, 0.500000, 1.000000, + -0.092250, 0.600000, -0.039250, -0.554119, 0.799778, -0.230883, 0.250000, 0.000000, + -0.228125, 0.555469, -0.000000, -0.203954, 0.978980, 0.000000, 0.000000, 0.250000, + -0.210445, 0.555469, -0.089539, -0.188404, 0.978949, -0.078502, 0.250000, 0.250000, + -0.161969, 0.555469, -0.161969, -0.143654, 0.979146, -0.143654, 0.500000, 0.250000, + -0.380531, 0.525000, -0.161906, -0.137033, 0.988920, -0.057097, 0.250000, 0.500000, + -0.098000, 0.600000, -0.020375, -0.588329, 0.800015, -0.117666, 0.125000, 0.000000, + -0.152344, 0.575098, -0.000000, -0.317497, 0.948259, 0.000000, 0.000000, 0.125000, + -0.149297, 0.575098, -0.031040, -0.311317, 0.948264, -0.062263, 0.125000, 0.125000, + -0.140537, 0.575098, -0.059795, -0.292417, 0.948497, -0.121840, 0.250000, 0.125000, + -0.223562, 0.555469, -0.046480, -0.199984, 0.978983, -0.039997, 0.125000, 0.250000, + -0.083125, 0.600000, -0.056250, -0.497432, 0.800807, -0.333572, 0.375000, 0.000000, + -0.140537, 0.575098, -0.059795, -0.292417, 0.948497, -0.121840, 0.250000, 0.125000, + -0.126636, 0.575098, -0.085693, -0.263031, 0.948527, -0.176386, 0.375000, 0.125000, + -0.108164, 0.575098, -0.108164, -0.223681, 0.948648, -0.223681, 0.500000, 0.125000, + -0.189629, 0.555469, -0.128320, -0.168938, 0.979094, -0.113288, 0.375000, 0.250000, + -0.223562, 0.555469, -0.046480, -0.199985, 0.978982, -0.039997, 0.125000, 0.250000, + -0.317969, 0.539355, -0.000000, -0.157389, 0.987537, 0.000000, 0.000000, 0.375000, + -0.311609, 0.539355, -0.064786, -0.154325, 0.987538, -0.030865, 0.125000, 0.375000, + -0.293326, 0.539355, -0.124803, -0.144929, 0.987598, -0.060387, 0.250000, 0.375000, + -0.404250, 0.525000, -0.084047, -0.145452, 0.988938, -0.029090, 0.125000, 0.500000, + -0.189629, 0.555469, -0.128320, -0.168939, 0.979094, -0.113289, 0.375000, 0.250000, + -0.293326, 0.539355, -0.124803, -0.144929, 0.987598, -0.060387, 0.250000, 0.375000, + -0.264312, 0.539355, -0.178857, -0.130361, 0.987605, -0.087419, 0.375000, 0.375000, + -0.225758, 0.539355, -0.225758, -0.110849, 0.987636, -0.110849, 0.500000, 0.375000, + -0.342891, 0.525000, -0.232031, -0.122865, 0.988997, -0.082392, 0.375000, 0.500000, + -0.039250, 0.600000, -0.092250, -0.230997, 0.799556, -0.554392, 0.750000, 0.000000, + -0.161969, 0.555469, -0.161969, -0.143654, 0.979146, -0.143654, 0.500000, 0.250000, + -0.089539, 0.555469, -0.210445, -0.078560, 0.978918, -0.188544, 0.750000, 0.250000, + 0.000000, 0.555469, -0.228125, 0.000000, 0.978980, -0.203954, 1.000000, 0.250000, + -0.161906, 0.525000, -0.380531, -0.057140, 0.988903, -0.137136, 0.750000, 0.500000, + -0.056250, 0.600000, -0.083125, -0.333583, 0.800793, -0.497447, 0.625000, 0.000000, + -0.108164, 0.575098, -0.108164, -0.223681, 0.948648, -0.223681, 0.500000, 0.125000, + -0.085693, 0.575098, -0.126636, -0.176393, 0.948522, -0.263043, 0.625000, 0.125000, + -0.059795, 0.575098, -0.140537, -0.121840, 0.948497, -0.292417, 0.750000, 0.125000, + -0.128320, 0.555469, -0.189629, -0.113293, 0.979092, -0.168946, 0.625000, 0.250000, + -0.020375, 0.600000, -0.098000, -0.117676, 0.799975, -0.588382, 0.875000, 0.000000, + -0.059795, 0.575098, -0.140537, -0.121840, 0.948497, -0.292417, 0.750000, 0.125000, + -0.031040, 0.575098, -0.149297, -0.062271, 0.948251, -0.311356, 0.875000, 0.125000, + 0.000000, 0.575098, -0.152344, 0.000000, 0.948259, -0.317497, 1.000000, 0.125000, + -0.046480, 0.555469, -0.223562, -0.040002, 0.978977, -0.200010, 0.875000, 0.250000, + -0.128320, 0.555469, -0.189629, -0.113294, 0.979092, -0.168947, 0.625000, 0.250000, + -0.225758, 0.539355, -0.225758, -0.110849, 0.987636, -0.110849, 0.500000, 0.375000, + -0.178857, 0.539355, -0.264312, -0.087423, 0.987604, -0.130368, 0.625000, 0.375000, + -0.124803, 0.539355, -0.293326, -0.060387, 0.987598, -0.144929, 0.750000, 0.375000, + -0.232031, 0.525000, -0.342891, -0.082396, 0.988996, -0.122871, 0.625000, 0.500000, + -0.046480, 0.555469, -0.223562, -0.040002, 0.978977, -0.200011, 0.875000, 0.250000, + -0.124803, 0.539355, -0.293326, -0.060387, 0.987598, -0.144929, 0.750000, 0.375000, + -0.064786, 0.539355, -0.311609, -0.030869, 0.987535, -0.154346, 0.875000, 0.375000, + 0.000000, 0.539355, -0.317969, 0.000000, 0.987537, -0.157389, 1.000000, 0.375000, + -0.084047, 0.525000, -0.404250, -0.029094, 0.988935, -0.145472, 0.875000, 0.500000, + -0.380531, 0.525000, -0.161906, -0.137032, 0.988920, -0.057097, 0.250000, 0.500000, + -0.578125, 0.494531, -0.000000, -0.258736, 0.965948, 0.000000, 0.000000, 0.750000, + -0.533320, 0.494531, -0.226914, -0.239005, 0.965898, -0.099585, 0.250000, 0.750000, + -0.410469, 0.494531, -0.410469, -0.182258, 0.966211, -0.182258, 0.500000, 0.750000, + -0.599625, 0.450000, -0.255125, -0.923077, -0.000000, -0.384615, 0.250000, 1.000000, + -0.404250, 0.525000, -0.084047, -0.145452, 0.988938, -0.029090, 0.125000, 0.500000, + -0.502344, 0.510645, -0.000000, -0.174370, 0.984680, 0.000000, 0.000000, 0.625000, + -0.492297, 0.510645, -0.102353, -0.170975, 0.984682, -0.034195, 0.125000, 0.625000, + -0.463412, 0.510645, -0.197170, -0.160568, 0.984755, -0.066903, 0.250000, 0.625000, + -0.566563, 0.494531, -0.117793, -0.253699, 0.965951, -0.050740, 0.125000, 0.750000, + -0.342891, 0.525000, -0.232031, -0.122865, 0.988997, -0.082392, 0.375000, 0.500000, + -0.463412, 0.510645, -0.197170, -0.160568, 0.984755, -0.066903, 0.250000, 0.625000, + -0.417573, 0.510645, -0.282568, -0.144429, 0.984764, -0.096852, 0.375000, 0.625000, + -0.356664, 0.510645, -0.356664, -0.122811, 0.984802, -0.122811, 0.500000, 0.625000, + -0.480566, 0.494531, -0.325195, -0.214330, 0.966129, -0.143727, 0.375000, 0.750000, + -0.566563, 0.494531, -0.117793, -0.253699, 0.965951, -0.050740, 0.125000, 0.750000, + -0.630469, 0.474902, -0.000000, -0.505546, 0.862799, 0.000000, 0.000000, 0.875000, + -0.617859, 0.474902, -0.128458, -0.495710, 0.862811, -0.099142, 0.125000, 0.875000, + -0.581607, 0.474902, -0.247459, -0.465791, 0.863349, -0.194079, 0.250000, 0.875000, + -0.637000, 0.450000, -0.132437, -0.980581, -0.000000, -0.196116, 0.125000, 1.000000, + -0.480566, 0.494531, -0.325195, -0.214330, 0.966129, -0.143727, 0.375000, 0.750000, + -0.581607, 0.474902, -0.247459, -0.465791, 0.863349, -0.194080, 0.250000, 0.875000, + -0.524077, 0.474902, -0.354639, -0.419002, 0.863417, -0.280978, 0.375000, 0.875000, + -0.447633, 0.474902, -0.447633, -0.356389, 0.863698, -0.356389, 0.500000, 0.875000, + -0.540312, 0.450000, -0.365625, -0.830544, -0.000000, -0.556953, 0.375000, 1.000000, + -0.161906, 0.525000, -0.380531, -0.057140, 0.988903, -0.137136, 0.750000, 0.500000, + -0.410469, 0.494531, -0.410469, -0.182258, 0.966211, -0.182258, 0.500000, 0.750000, + -0.226914, 0.494531, -0.533320, -0.099657, 0.965848, -0.239176, 0.750000, 0.750000, + 0.000000, 0.494531, -0.578125, 0.000000, 0.965948, -0.258736, 1.000000, 0.750000, + -0.255125, 0.450000, -0.599625, -0.384615, -0.000000, -0.923077, 0.750000, 1.000000, + -0.232031, 0.525000, -0.342891, -0.082396, 0.988996, -0.122871, 0.625000, 0.500000, + -0.356664, 0.510645, -0.356664, -0.122811, 0.984802, -0.122811, 0.500000, 0.625000, + -0.282568, 0.510645, -0.417573, -0.096857, 0.984762, -0.144436, 0.625000, 0.625000, + -0.197170, 0.510645, -0.463412, -0.066903, 0.984755, -0.160568, 0.750000, 0.625000, + -0.325195, 0.494531, -0.480566, -0.143734, 0.966126, -0.214340, 0.625000, 0.750000, + -0.084047, 0.525000, -0.404250, -0.029094, 0.988935, -0.145472, 0.875000, 0.500000, + -0.197170, 0.510645, -0.463412, -0.066903, 0.984755, -0.160568, 0.750000, 0.625000, + -0.102353, 0.510645, -0.492297, -0.034200, 0.984678, -0.170999, 0.875000, 0.625000, + 0.000000, 0.510645, -0.502344, 0.000000, 0.984680, -0.174370, 1.000000, 0.625000, + -0.117793, 0.494531, -0.566563, -0.050746, 0.965942, -0.253732, 0.875000, 0.750000, + -0.325195, 0.494531, -0.480566, -0.143734, 0.966126, -0.214340, 0.625000, 0.750000, + -0.447633, 0.474902, -0.447633, -0.356389, 0.863698, -0.356389, 0.500000, 0.875000, + -0.354639, 0.474902, -0.524077, -0.280988, 0.863406, -0.419017, 0.625000, 0.875000, + -0.247459, 0.474902, -0.581607, -0.194080, 0.863349, -0.465791, 0.750000, 0.875000, + -0.365625, 0.450000, -0.540312, -0.556953, -0.000000, -0.830544, 0.625000, 1.000000, + -0.117793, 0.494531, -0.566563, -0.050747, 0.965942, -0.253732, 0.875000, 0.750000, + -0.247459, 0.474902, -0.581607, -0.194079, 0.863349, -0.465791, 0.750000, 0.875000, + -0.128458, 0.474902, -0.617859, -0.099152, 0.862780, -0.495761, 0.875000, 0.875000, + 0.000000, 0.474902, -0.630469, 0.000000, 0.862799, -0.505546, 1.000000, 0.875000, + -0.132437, 0.450000, -0.637000, -0.196116, -0.000000, -0.980581, 0.875000, 1.000000, + 0.000000, 0.600000, -0.100000, 0.000000, 0.800000, -0.600000, 0.000000, 0.000000, + 0.100000, 0.600000, -0.000000, 0.600000, 0.800000, -0.000000, 1.000000, 0.000000, + 0.000000, 0.450000, -0.650000, 0.000000, 0.000000, -1.000000, 0.000000, 1.000000, + 0.650000, 0.450000, -0.000000, 1.000000, 0.000000, -0.000000, 1.000000, 1.000000, + 0.071000, 0.600000, -0.071000, 0.427006, 0.797077, -0.427006, 0.500000, 0.000000, + 0.000000, 0.525000, -0.412500, 0.000000, 0.988936, -0.148340, 0.000000, 0.500000, + 0.292875, 0.525000, -0.292875, 0.105934, 0.988714, -0.105934, 0.500000, 0.500000, + 0.412500, 0.525000, -0.000000, 0.148340, 0.988936, -0.000000, 1.000000, 0.500000, + 0.461500, 0.450000, -0.461500, 0.707107, 0.000000, -0.707107, 0.500000, 1.000000, + 0.039250, 0.600000, -0.092250, 0.230883, 0.799778, -0.554119, 0.250000, 0.000000, + 0.000000, 0.555469, -0.228125, 0.000000, 0.978980, -0.203954, 0.000000, 0.250000, + 0.089539, 0.555469, -0.210445, 0.078502, 0.978949, -0.188404, 0.250000, 0.250000, + 0.161969, 0.555469, -0.161969, 0.143654, 0.979146, -0.143654, 0.500000, 0.250000, + 0.161906, 0.525000, -0.380531, 0.057097, 0.988920, -0.137033, 0.250000, 0.500000, + 0.020375, 0.600000, -0.098000, 0.117666, 0.800015, -0.588329, 0.125000, 0.000000, + 0.000000, 0.575098, -0.152344, 0.000000, 0.948259, -0.317497, 0.000000, 0.125000, + 0.031040, 0.575098, -0.149297, 0.062263, 0.948264, -0.311317, 0.125000, 0.125000, + 0.059795, 0.575098, -0.140537, 0.121840, 0.948497, -0.292417, 0.250000, 0.125000, + 0.046480, 0.555469, -0.223562, 0.039997, 0.978983, -0.199984, 0.125000, 0.250000, + 0.056250, 0.600000, -0.083125, 0.333572, 0.800807, -0.497432, 0.375000, 0.000000, + 0.059795, 0.575098, -0.140537, 0.121840, 0.948497, -0.292417, 0.250000, 0.125000, + 0.085693, 0.575098, -0.126636, 0.176386, 0.948527, -0.263031, 0.375000, 0.125000, + 0.108164, 0.575098, -0.108164, 0.223681, 0.948648, -0.223681, 0.500000, 0.125000, + 0.128320, 0.555469, -0.189629, 0.113288, 0.979094, -0.168938, 0.375000, 0.250000, + 0.046480, 0.555469, -0.223562, 0.039997, 0.978982, -0.199985, 0.125000, 0.250000, + 0.000000, 0.539355, -0.317969, 0.000000, 0.987537, -0.157389, 0.000000, 0.375000, + 0.064786, 0.539355, -0.311609, 0.030865, 0.987538, -0.154325, 0.125000, 0.375000, + 0.124803, 0.539355, -0.293326, 0.060387, 0.987598, -0.144929, 0.250000, 0.375000, + 0.084047, 0.525000, -0.404250, 0.029090, 0.988938, -0.145452, 0.125000, 0.500000, + 0.128320, 0.555469, -0.189629, 0.113289, 0.979094, -0.168939, 0.375000, 0.250000, + 0.124803, 0.539355, -0.293326, 0.060387, 0.987598, -0.144929, 0.250000, 0.375000, + 0.178857, 0.539355, -0.264312, 0.087419, 0.987605, -0.130361, 0.375000, 0.375000, + 0.225758, 0.539355, -0.225758, 0.110849, 0.987636, -0.110849, 0.500000, 0.375000, + 0.232031, 0.525000, -0.342891, 0.082392, 0.988997, -0.122865, 0.375000, 0.500000, + 0.092250, 0.600000, -0.039250, 0.554392, 0.799556, -0.230997, 0.750000, 0.000000, + 0.161969, 0.555469, -0.161969, 0.143654, 0.979146, -0.143654, 0.500000, 0.250000, + 0.210445, 0.555469, -0.089539, 0.188544, 0.978918, -0.078560, 0.750000, 0.250000, + 0.228125, 0.555469, -0.000000, 0.203954, 0.978980, -0.000000, 1.000000, 0.250000, + 0.380531, 0.525000, -0.161906, 0.137136, 0.988903, -0.057140, 0.750000, 0.500000, + 0.083125, 0.600000, -0.056250, 0.497447, 0.800793, -0.333583, 0.625000, 0.000000, + 0.108164, 0.575098, -0.108164, 0.223681, 0.948648, -0.223681, 0.500000, 0.125000, + 0.126636, 0.575098, -0.085693, 0.263043, 0.948522, -0.176393, 0.625000, 0.125000, + 0.140537, 0.575098, -0.059795, 0.292417, 0.948497, -0.121840, 0.750000, 0.125000, + 0.189629, 0.555469, -0.128320, 0.168946, 0.979092, -0.113293, 0.625000, 0.250000, + 0.098000, 0.600000, -0.020375, 0.588382, 0.799975, -0.117676, 0.875000, 0.000000, + 0.140537, 0.575098, -0.059795, 0.292417, 0.948497, -0.121840, 0.750000, 0.125000, + 0.149297, 0.575098, -0.031040, 0.311356, 0.948251, -0.062271, 0.875000, 0.125000, + 0.152344, 0.575098, -0.000000, 0.317497, 0.948259, -0.000000, 1.000000, 0.125000, + 0.223562, 0.555469, -0.046480, 0.200010, 0.978977, -0.040002, 0.875000, 0.250000, + 0.189629, 0.555469, -0.128320, 0.168947, 0.979092, -0.113294, 0.625000, 0.250000, + 0.225758, 0.539355, -0.225758, 0.110849, 0.987636, -0.110849, 0.500000, 0.375000, + 0.264312, 0.539355, -0.178857, 0.130368, 0.987604, -0.087423, 0.625000, 0.375000, + 0.293326, 0.539355, -0.124803, 0.144929, 0.987598, -0.060387, 0.750000, 0.375000, + 0.342891, 0.525000, -0.232031, 0.122871, 0.988996, -0.082396, 0.625000, 0.500000, + 0.223562, 0.555469, -0.046480, 0.200011, 0.978977, -0.040002, 0.875000, 0.250000, + 0.293326, 0.539355, -0.124803, 0.144929, 0.987598, -0.060387, 0.750000, 0.375000, + 0.311609, 0.539355, -0.064786, 0.154346, 0.987535, -0.030869, 0.875000, 0.375000, + 0.317969, 0.539355, -0.000000, 0.157389, 0.987537, -0.000000, 1.000000, 0.375000, + 0.404250, 0.525000, -0.084047, 0.145472, 0.988935, -0.029094, 0.875000, 0.500000, + 0.161906, 0.525000, -0.380531, 0.057097, 0.988920, -0.137032, 0.250000, 0.500000, + 0.000000, 0.494531, -0.578125, 0.000000, 0.965948, -0.258736, 0.000000, 0.750000, + 0.226914, 0.494531, -0.533320, 0.099585, 0.965898, -0.239005, 0.250000, 0.750000, + 0.410469, 0.494531, -0.410469, 0.182258, 0.966211, -0.182258, 0.500000, 0.750000, + 0.255125, 0.450000, -0.599625, 0.384615, 0.000000, -0.923077, 0.250000, 1.000000, + 0.084047, 0.525000, -0.404250, 0.029090, 0.988938, -0.145452, 0.125000, 0.500000, + 0.000000, 0.510645, -0.502344, 0.000000, 0.984680, -0.174370, 0.000000, 0.625000, + 0.102353, 0.510645, -0.492297, 0.034195, 0.984682, -0.170975, 0.125000, 0.625000, + 0.197170, 0.510645, -0.463412, 0.066903, 0.984755, -0.160568, 0.250000, 0.625000, + 0.117793, 0.494531, -0.566563, 0.050740, 0.965951, -0.253699, 0.125000, 0.750000, + 0.232031, 0.525000, -0.342891, 0.082392, 0.988997, -0.122865, 0.375000, 0.500000, + 0.197170, 0.510645, -0.463412, 0.066903, 0.984755, -0.160568, 0.250000, 0.625000, + 0.282568, 0.510645, -0.417573, 0.096852, 0.984764, -0.144429, 0.375000, 0.625000, + 0.356664, 0.510645, -0.356664, 0.122811, 0.984802, -0.122811, 0.500000, 0.625000, + 0.325195, 0.494531, -0.480566, 0.143727, 0.966129, -0.214330, 0.375000, 0.750000, + 0.117793, 0.494531, -0.566563, 0.050740, 0.965951, -0.253699, 0.125000, 0.750000, + 0.000000, 0.474902, -0.630469, 0.000000, 0.862799, -0.505546, 0.000000, 0.875000, + 0.128458, 0.474902, -0.617859, 0.099142, 0.862811, -0.495710, 0.125000, 0.875000, + 0.247459, 0.474902, -0.581607, 0.194079, 0.863349, -0.465791, 0.250000, 0.875000, + 0.132437, 0.450000, -0.637000, 0.196116, 0.000000, -0.980581, 0.125000, 1.000000, + 0.325195, 0.494531, -0.480566, 0.143727, 0.966129, -0.214330, 0.375000, 0.750000, + 0.247459, 0.474902, -0.581607, 0.194080, 0.863349, -0.465791, 0.250000, 0.875000, + 0.354639, 0.474902, -0.524077, 0.280978, 0.863417, -0.419002, 0.375000, 0.875000, + 0.447633, 0.474902, -0.447633, 0.356389, 0.863698, -0.356389, 0.500000, 0.875000, + 0.365625, 0.450000, -0.540312, 0.556953, 0.000000, -0.830544, 0.375000, 1.000000, + 0.380531, 0.525000, -0.161906, 0.137136, 0.988903, -0.057140, 0.750000, 0.500000, + 0.410469, 0.494531, -0.410469, 0.182258, 0.966211, -0.182258, 0.500000, 0.750000, + 0.533320, 0.494531, -0.226914, 0.239176, 0.965848, -0.099657, 0.750000, 0.750000, + 0.578125, 0.494531, -0.000000, 0.258736, 0.965948, -0.000000, 1.000000, 0.750000, + 0.599625, 0.450000, -0.255125, 0.923077, 0.000000, -0.384615, 0.750000, 1.000000, + 0.342891, 0.525000, -0.232031, 0.122871, 0.988996, -0.082396, 0.625000, 0.500000, + 0.356664, 0.510645, -0.356664, 0.122811, 0.984802, -0.122811, 0.500000, 0.625000, + 0.417573, 0.510645, -0.282568, 0.144436, 0.984762, -0.096857, 0.625000, 0.625000, + 0.463412, 0.510645, -0.197170, 0.160568, 0.984755, -0.066903, 0.750000, 0.625000, + 0.480566, 0.494531, -0.325195, 0.214340, 0.966126, -0.143734, 0.625000, 0.750000, + 0.404250, 0.525000, -0.084047, 0.145472, 0.988935, -0.029094, 0.875000, 0.500000, + 0.463412, 0.510645, -0.197170, 0.160568, 0.984755, -0.066903, 0.750000, 0.625000, + 0.492297, 0.510645, -0.102353, 0.170999, 0.984678, -0.034200, 0.875000, 0.625000, + 0.502344, 0.510645, -0.000000, 0.174370, 0.984680, -0.000000, 1.000000, 0.625000, + 0.566563, 0.494531, -0.117793, 0.253732, 0.965942, -0.050746, 0.875000, 0.750000, + 0.480566, 0.494531, -0.325195, 0.214340, 0.966126, -0.143734, 0.625000, 0.750000, + 0.447633, 0.474902, -0.447633, 0.356389, 0.863698, -0.356389, 0.500000, 0.875000, + 0.524077, 0.474902, -0.354639, 0.419017, 0.863406, -0.280988, 0.625000, 0.875000, + 0.581607, 0.474902, -0.247459, 0.465791, 0.863349, -0.194080, 0.750000, 0.875000, + 0.540312, 0.450000, -0.365625, 0.830544, 0.000000, -0.556953, 0.625000, 1.000000, + 0.566563, 0.494531, -0.117793, 0.253732, 0.965942, -0.050747, 0.875000, 0.750000, + 0.581607, 0.474902, -0.247459, 0.465791, 0.863349, -0.194079, 0.750000, 0.875000, + 0.617859, 0.474902, -0.128458, 0.495761, 0.862780, -0.099152, 0.875000, 0.875000, + 0.630469, 0.474902, -0.000000, 0.505546, 0.862799, -0.000000, 1.000000, 0.875000, + 0.637000, 0.450000, -0.132437, 0.980581, 0.000000, -0.196116, 0.875000, 1.000000, + 0.000000, -0.750000, -0.000000, 0.099015, -0.990148, -0.099015, 0.000000, 0.000000, + 0.000000, -0.750000, -0.000000, 0.099015, -0.990148, -0.099015, 1.000000, 0.000000, + 0.750000, -0.675000, -0.000000, 1.000000, -0.000000, 0.000000, 0.000000, 1.000000, + 0.000000, -0.675000, -0.750000, 0.000000, 0.000000, -1.000000, 1.000000, 1.000000, + 0.000000, -0.750000, -0.000000, 0.099015, -0.990148, -0.099015, 0.500000, 0.000000, + 0.642187, -0.726562, -0.000000, 0.141421, -0.989949, 0.000000, 0.000000, 0.500000, + 0.455953, -0.726562, -0.455953, 0.100995, -0.989748, -0.100995, 0.500000, 0.500000, + 0.000000, -0.726562, -0.642187, -0.000000, -0.989949, -0.141421, 1.000000, 0.500000, + 0.532500, -0.675000, -0.532500, 0.707107, 0.000000, -0.707107, 0.500000, 1.000000, + 0.000000, -0.750000, -0.000000, 0.036468, -0.999224, -0.014895, 0.250000, 0.000000, + 0.417773, -0.743555, -0.000000, 0.039517, -0.999219, 0.000000, 0.000000, 0.250000, + 0.385396, -0.743555, -0.163976, 0.036505, -0.999218, -0.015211, 0.250000, 0.250000, + 0.296619, -0.743555, -0.296619, 0.027829, -0.999225, -0.027829, 0.500000, 0.250000, + 0.592418, -0.726562, -0.252059, 0.130641, -0.989934, -0.054434, 0.250000, 0.500000, + 0.000000, -0.750000, -0.000000, 0.015426, -0.999876, -0.003046, 0.125000, 0.000000, + 0.236792, -0.748315, -0.000000, 0.015871, -0.999874, 0.000000, 0.000000, 0.125000, + 0.232056, -0.748315, -0.048246, 0.015562, -0.999874, -0.003112, 0.125000, 0.125000, + 0.218441, -0.748315, -0.092941, 0.014614, -0.999875, -0.006089, 0.250000, 0.125000, + 0.409418, -0.743555, -0.085121, 0.038747, -0.999219, -0.007749, 0.125000, 0.250000, + 0.000000, -0.750000, -0.000000, 0.013015, -0.999877, -0.008711, 0.375000, 0.000000, + 0.218441, -0.748315, -0.092941, 0.014614, -0.999875, -0.006089, 0.250000, 0.125000, + 0.196833, -0.748315, -0.133195, 0.013145, -0.999875, -0.008815, 0.375000, 0.125000, + 0.168122, -0.748315, -0.168122, 0.011177, -0.999875, -0.011177, 0.500000, 0.125000, + 0.347274, -0.743555, -0.234998, 0.032729, -0.999223, -0.021947, 0.375000, 0.250000, + 0.409418, -0.743555, -0.085121, 0.038748, -0.999219, -0.007750, 0.125000, 0.250000, + 0.550415, -0.736157, -0.000000, 0.076999, -0.997031, 0.000000, 0.000000, 0.375000, + 0.539407, -0.736157, -0.112147, 0.075499, -0.997032, -0.015100, 0.125000, 0.375000, + 0.507758, -0.736157, -0.216038, 0.070899, -0.997046, -0.029541, 0.250000, 0.375000, + 0.629344, -0.726562, -0.130846, 0.138668, -0.989950, -0.027734, 0.125000, 0.500000, + 0.347274, -0.743555, -0.234998, 0.032729, -0.999223, -0.021948, 0.375000, 0.250000, + 0.507758, -0.736157, -0.216038, 0.070899, -0.997046, -0.029541, 0.250000, 0.375000, + 0.457533, -0.736157, -0.309608, 0.063773, -0.997048, -0.042765, 0.375000, 0.375000, + 0.390795, -0.736157, -0.390795, 0.054226, -0.997055, -0.054226, 0.500000, 0.375000, + 0.533818, -0.726562, -0.361230, 0.117134, -0.990005, -0.078549, 0.375000, 0.500000, + 0.000000, -0.750000, -0.000000, 0.014895, -0.999224, -0.036468, 0.750000, 0.000000, + 0.296619, -0.743555, -0.296619, 0.027829, -0.999225, -0.027829, 0.500000, 0.250000, + 0.163976, -0.743555, -0.385396, 0.015222, -0.999216, -0.036533, 0.750000, 0.250000, + 0.000000, -0.743555, -0.417773, -0.000000, -0.999219, -0.039517, 1.000000, 0.250000, + 0.252059, -0.726562, -0.592418, 0.054475, -0.989919, -0.130740, 0.750000, 0.500000, + 0.000000, -0.750000, -0.000000, 0.008711, -0.999877, -0.013015, 0.625000, 0.000000, + 0.168122, -0.748315, -0.168122, 0.011177, -0.999875, -0.011177, 0.500000, 0.125000, + 0.133195, -0.748315, -0.196833, 0.008815, -0.999875, -0.013145, 0.625000, 0.125000, + 0.092941, -0.748315, -0.218441, 0.006089, -0.999875, -0.014614, 0.750000, 0.125000, + 0.234998, -0.743555, -0.347274, 0.021948, -0.999223, -0.032730, 0.625000, 0.250000, + 0.000000, -0.750000, -0.000000, 0.003046, -0.999876, -0.015426, 0.875000, 0.000000, + 0.092941, -0.748315, -0.218441, 0.006089, -0.999875, -0.014614, 0.750000, 0.125000, + 0.048246, -0.748315, -0.232056, 0.003113, -0.999874, -0.015564, 0.875000, 0.125000, + 0.000000, -0.748315, -0.236792, -0.000000, -0.999874, -0.015871, 1.000000, 0.125000, + 0.085121, -0.743555, -0.409418, 0.007751, -0.999219, -0.038753, 0.875000, 0.250000, + 0.234998, -0.743555, -0.347274, 0.021949, -0.999223, -0.032731, 0.625000, 0.250000, + 0.390795, -0.736157, -0.390795, 0.054226, -0.997055, -0.054226, 0.500000, 0.375000, + 0.309608, -0.736157, -0.457533, 0.042767, -0.997047, -0.063776, 0.625000, 0.375000, + 0.216038, -0.736157, -0.507758, 0.029541, -0.997046, -0.070899, 0.750000, 0.375000, + 0.361230, -0.726562, -0.533818, 0.078553, -0.990004, -0.117140, 0.625000, 0.500000, + 0.085121, -0.743555, -0.409418, 0.007751, -0.999219, -0.038753, 0.875000, 0.250000, + 0.216038, -0.736157, -0.507758, 0.029541, -0.997046, -0.070899, 0.750000, 0.375000, + 0.112147, -0.736157, -0.539407, 0.015102, -0.997031, -0.075510, 0.875000, 0.375000, + 0.000000, -0.736157, -0.550415, -0.000000, -0.997031, -0.076999, 1.000000, 0.375000, + 0.130846, -0.726562, -0.629344, 0.027737, -0.989948, -0.138687, 0.875000, 0.500000, + 0.592418, -0.726562, -0.252059, 0.130641, -0.989934, -0.054434, 0.250000, 0.500000, + 0.733008, -0.702539, -0.000000, 0.514495, -0.857493, 0.000000, 0.000000, 0.750000, + 0.676200, -0.702539, -0.287706, 0.475188, -0.857318, -0.197995, 0.250000, 0.750000, + 0.520436, -0.702539, -0.520436, 0.362711, -0.858418, -0.362711, 0.500000, 0.750000, + 0.691875, -0.675000, -0.294375, 0.923077, 0.000000, -0.384615, 0.250000, 1.000000, + 0.629344, -0.726562, -0.130846, 0.138668, -0.989950, -0.027734, 0.125000, 0.500000, + 0.700562, -0.715210, -0.000000, 0.263929, -0.964542, 0.000000, 0.000000, 0.625000, + 0.686550, -0.715210, -0.142739, 0.258791, -0.964546, -0.051758, 0.125000, 0.625000, + 0.646268, -0.715210, -0.274970, 0.243061, -0.964709, -0.101276, 0.250000, 0.625000, + 0.718348, -0.702539, -0.149350, 0.504486, -0.857505, -0.100897, 0.125000, 0.750000, + 0.533818, -0.726562, -0.361230, 0.117134, -0.990005, -0.078549, 0.375000, 0.500000, + 0.646268, -0.715210, -0.274970, 0.243061, -0.964709, -0.101276, 0.250000, 0.625000, + 0.582342, -0.715210, -0.394066, 0.218633, -0.964730, -0.146613, 0.375000, 0.625000, + 0.497399, -0.715210, -0.497399, 0.185918, -0.964815, -0.185918, 0.500000, 0.625000, + 0.609313, -0.702539, -0.412317, 0.426431, -0.858128, -0.285959, 0.375000, 0.750000, + 0.718348, -0.702539, -0.149350, 0.504485, -0.857505, -0.100897, 0.125000, 0.750000, + 0.746997, -0.688989, -0.000000, 0.885831, -0.464008, 0.000000, 0.000000, 0.875000, + 0.732057, -0.688989, -0.152201, 0.868619, -0.464027, -0.173724, 0.125000, 0.875000, + 0.689105, -0.688989, -0.293196, 0.817250, -0.464917, -0.340521, 0.250000, 0.875000, + 0.735000, -0.675000, -0.152812, 0.980581, 0.000000, -0.196116, 0.125000, 1.000000, + 0.609313, -0.702539, -0.412317, 0.426430, -0.858129, -0.285959, 0.375000, 0.750000, + 0.689105, -0.688989, -0.293196, 0.817250, -0.464917, -0.340521, 0.250000, 0.875000, + 0.620941, -0.688989, -0.420186, 0.735277, -0.465030, -0.493068, 0.375000, 0.875000, + 0.530368, -0.688989, -0.530368, 0.625826, -0.465494, -0.625825, 0.500000, 0.875000, + 0.623438, -0.675000, -0.421875, 0.830544, 0.000000, -0.556953, 0.375000, 1.000000, + 0.252059, -0.726562, -0.592418, 0.054475, -0.989919, -0.130740, 0.750000, 0.500000, + 0.520436, -0.702539, -0.520436, 0.362711, -0.858418, -0.362711, 0.500000, 0.750000, + 0.287706, -0.702539, -0.676200, 0.198107, -0.857143, -0.475457, 0.750000, 0.750000, + 0.000000, -0.702539, -0.733008, -0.000000, -0.857493, -0.514495, 1.000000, 0.750000, + 0.294375, -0.675000, -0.691875, 0.384615, 0.000000, -0.923077, 0.750000, 1.000000, + 0.361230, -0.726562, -0.533818, 0.078553, -0.990004, -0.117140, 0.625000, 0.500000, + 0.497399, -0.715210, -0.497399, 0.185918, -0.964815, -0.185918, 0.500000, 0.625000, + 0.394066, -0.715210, -0.582342, 0.146620, -0.964727, -0.218643, 0.625000, 0.625000, + 0.274970, -0.715210, -0.646268, 0.101276, -0.964709, -0.243061, 0.750000, 0.625000, + 0.412317, -0.702539, -0.609313, 0.285969, -0.858117, -0.426446, 0.625000, 0.750000, + 0.130846, -0.726562, -0.629344, 0.027737, -0.989948, -0.138687, 0.875000, 0.500000, + 0.274970, -0.715210, -0.646268, 0.101276, -0.964709, -0.243061, 0.750000, 0.625000, + 0.142739, -0.715210, -0.686550, 0.051765, -0.964536, -0.258825, 0.875000, 0.625000, + 0.000000, -0.715210, -0.700562, -0.000000, -0.964542, -0.263929, 1.000000, 0.625000, + 0.149350, -0.702539, -0.718348, 0.100908, -0.857473, -0.504538, 0.875000, 0.750000, + 0.412317, -0.702539, -0.609313, 0.285969, -0.858118, -0.426445, 0.625000, 0.750000, + 0.530368, -0.688989, -0.530368, 0.625825, -0.465494, -0.625826, 0.500000, 0.875000, + 0.420186, -0.688989, -0.620941, 0.493073, -0.465012, -0.735284, 0.625000, 0.875000, + 0.293196, -0.688989, -0.689105, 0.340521, -0.464917, -0.817250, 0.750000, 0.875000, + 0.421875, -0.675000, -0.623438, 0.556953, 0.000000, -0.830544, 0.625000, 1.000000, + 0.149350, -0.702539, -0.718348, 0.100907, -0.857473, -0.504537, 0.875000, 0.750000, + 0.293196, -0.688989, -0.689105, 0.340521, -0.464917, -0.817250, 0.750000, 0.875000, + 0.152201, -0.688989, -0.732057, 0.173729, -0.463975, -0.868645, 0.875000, 0.875000, + 0.000000, -0.688989, -0.746997, -0.000000, -0.464008, -0.885831, 1.000000, 0.875000, + 0.152812, -0.675000, -0.735000, 0.196116, 0.000000, -0.980581, 0.875000, 1.000000, + 0.000000, -0.750000, -0.000000, -0.099015, -0.990148, -0.099015, 0.000000, 0.000000, + 0.000000, -0.750000, -0.000000, -0.099015, -0.990148, -0.099015, 1.000000, 0.000000, + 0.000000, -0.675000, -0.750000, 0.000000, 0.000000, -1.000000, 0.000000, 1.000000, + -0.750000, -0.675000, -0.000000, -1.000000, 0.000000, 0.000000, 1.000000, 1.000000, + 0.000000, -0.750000, -0.000000, -0.099015, -0.990148, -0.099015, 0.500000, 0.000000, + 0.000000, -0.726562, -0.642187, -0.000000, -0.989949, -0.141421, 0.000000, 0.500000, + -0.455953, -0.726562, -0.455953, -0.100995, -0.989748, -0.100995, 0.500000, 0.500000, + -0.642187, -0.726562, -0.000000, -0.141421, -0.989949, 0.000000, 1.000000, 0.500000, + -0.532500, -0.675000, -0.532500, -0.707107, 0.000000, -0.707107, 0.500000, 1.000000, + 0.000000, -0.750000, -0.000000, -0.014895, -0.999224, -0.036468, 0.250000, 0.000000, + 0.000000, -0.743555, -0.417773, -0.000000, -0.999219, -0.039517, 0.000000, 0.250000, + -0.163976, -0.743555, -0.385396, -0.015211, -0.999218, -0.036505, 0.250000, 0.250000, + -0.296619, -0.743555, -0.296619, -0.027829, -0.999225, -0.027829, 0.500000, 0.250000, + -0.252059, -0.726562, -0.592418, -0.054434, -0.989934, -0.130641, 0.250000, 0.500000, + 0.000000, -0.750000, -0.000000, -0.003046, -0.999876, -0.015426, 0.125000, 0.000000, + 0.000000, -0.748315, -0.236792, -0.000000, -0.999874, -0.015871, 0.000000, 0.125000, + -0.048246, -0.748315, -0.232056, -0.003112, -0.999874, -0.015562, 0.125000, 0.125000, + -0.092941, -0.748315, -0.218441, -0.006089, -0.999875, -0.014614, 0.250000, 0.125000, + -0.085121, -0.743555, -0.409418, -0.007749, -0.999219, -0.038747, 0.125000, 0.250000, + 0.000000, -0.750000, -0.000000, -0.008711, -0.999877, -0.013015, 0.375000, 0.000000, + -0.092941, -0.748315, -0.218441, -0.006089, -0.999875, -0.014614, 0.250000, 0.125000, + -0.133195, -0.748315, -0.196833, -0.008815, -0.999875, -0.013145, 0.375000, 0.125000, + -0.168122, -0.748315, -0.168122, -0.011177, -0.999875, -0.011177, 0.500000, 0.125000, + -0.234998, -0.743555, -0.347274, -0.021947, -0.999223, -0.032729, 0.375000, 0.250000, + -0.085121, -0.743555, -0.409418, -0.007750, -0.999219, -0.038748, 0.125000, 0.250000, + 0.000000, -0.736157, -0.550415, -0.000000, -0.997031, -0.076999, 0.000000, 0.375000, + -0.112147, -0.736157, -0.539407, -0.015100, -0.997032, -0.075499, 0.125000, 0.375000, + -0.216038, -0.736157, -0.507758, -0.029541, -0.997046, -0.070899, 0.250000, 0.375000, + -0.130846, -0.726562, -0.629344, -0.027734, -0.989950, -0.138668, 0.125000, 0.500000, + -0.234998, -0.743555, -0.347274, -0.021948, -0.999223, -0.032729, 0.375000, 0.250000, + -0.216038, -0.736157, -0.507758, -0.029541, -0.997046, -0.070899, 0.250000, 0.375000, + -0.309608, -0.736157, -0.457533, -0.042765, -0.997048, -0.063773, 0.375000, 0.375000, + -0.390795, -0.736157, -0.390795, -0.054226, -0.997055, -0.054226, 0.500000, 0.375000, + -0.361230, -0.726562, -0.533818, -0.078549, -0.990005, -0.117134, 0.375000, 0.500000, + 0.000000, -0.750000, -0.000000, -0.036468, -0.999224, -0.014895, 0.750000, 0.000000, + -0.296619, -0.743555, -0.296619, -0.027829, -0.999225, -0.027829, 0.500000, 0.250000, + -0.385396, -0.743555, -0.163976, -0.036533, -0.999216, -0.015222, 0.750000, 0.250000, + -0.417773, -0.743555, -0.000000, -0.039517, -0.999219, 0.000000, 1.000000, 0.250000, + -0.592418, -0.726562, -0.252059, -0.130740, -0.989919, -0.054475, 0.750000, 0.500000, + 0.000000, -0.750000, -0.000000, -0.013015, -0.999877, -0.008711, 0.625000, 0.000000, + -0.168122, -0.748315, -0.168122, -0.011177, -0.999875, -0.011177, 0.500000, 0.125000, + -0.196833, -0.748315, -0.133195, -0.013145, -0.999875, -0.008815, 0.625000, 0.125000, + -0.218441, -0.748315, -0.092941, -0.014614, -0.999875, -0.006089, 0.750000, 0.125000, + -0.347274, -0.743555, -0.234998, -0.032730, -0.999223, -0.021948, 0.625000, 0.250000, + 0.000000, -0.750000, -0.000000, -0.015426, -0.999876, -0.003046, 0.875000, 0.000000, + -0.218441, -0.748315, -0.092941, -0.014614, -0.999875, -0.006089, 0.750000, 0.125000, + -0.232056, -0.748315, -0.048246, -0.015564, -0.999874, -0.003113, 0.875000, 0.125000, + -0.236792, -0.748315, -0.000000, -0.015871, -0.999874, 0.000000, 1.000000, 0.125000, + -0.409418, -0.743555, -0.085121, -0.038753, -0.999219, -0.007751, 0.875000, 0.250000, + -0.347274, -0.743555, -0.234998, -0.032731, -0.999223, -0.021949, 0.625000, 0.250000, + -0.390795, -0.736157, -0.390795, -0.054226, -0.997055, -0.054226, 0.500000, 0.375000, + -0.457533, -0.736157, -0.309608, -0.063776, -0.997047, -0.042767, 0.625000, 0.375000, + -0.507758, -0.736157, -0.216038, -0.070899, -0.997046, -0.029541, 0.750000, 0.375000, + -0.533818, -0.726562, -0.361230, -0.117140, -0.990004, -0.078553, 0.625000, 0.500000, + -0.409418, -0.743555, -0.085121, -0.038753, -0.999219, -0.007751, 0.875000, 0.250000, + -0.507758, -0.736157, -0.216038, -0.070899, -0.997046, -0.029541, 0.750000, 0.375000, + -0.539407, -0.736157, -0.112147, -0.075510, -0.997031, -0.015102, 0.875000, 0.375000, + -0.550415, -0.736157, -0.000000, -0.076999, -0.997031, 0.000000, 1.000000, 0.375000, + -0.629344, -0.726562, -0.130846, -0.138687, -0.989948, -0.027737, 0.875000, 0.500000, + -0.252059, -0.726562, -0.592418, -0.054434, -0.989934, -0.130641, 0.250000, 0.500000, + 0.000000, -0.702539, -0.733008, -0.000000, -0.857493, -0.514495, 0.000000, 0.750000, + -0.287706, -0.702539, -0.676200, -0.197995, -0.857318, -0.475188, 0.250000, 0.750000, + -0.520436, -0.702539, -0.520436, -0.362711, -0.858418, -0.362711, 0.500000, 0.750000, + -0.294375, -0.675000, -0.691875, -0.384615, 0.000000, -0.923077, 0.250000, 1.000000, + -0.130846, -0.726562, -0.629344, -0.027734, -0.989950, -0.138668, 0.125000, 0.500000, + 0.000000, -0.715210, -0.700562, -0.000000, -0.964542, -0.263929, 0.000000, 0.625000, + -0.142739, -0.715210, -0.686550, -0.051758, -0.964546, -0.258791, 0.125000, 0.625000, + -0.274970, -0.715210, -0.646268, -0.101276, -0.964709, -0.243061, 0.250000, 0.625000, + -0.149350, -0.702539, -0.718348, -0.100897, -0.857505, -0.504486, 0.125000, 0.750000, + -0.361230, -0.726562, -0.533818, -0.078549, -0.990005, -0.117134, 0.375000, 0.500000, + -0.274970, -0.715210, -0.646268, -0.101276, -0.964709, -0.243061, 0.250000, 0.625000, + -0.394066, -0.715210, -0.582342, -0.146613, -0.964730, -0.218633, 0.375000, 0.625000, + -0.497399, -0.715210, -0.497399, -0.185918, -0.964815, -0.185918, 0.500000, 0.625000, + -0.412317, -0.702539, -0.609313, -0.285959, -0.858128, -0.426431, 0.375000, 0.750000, + -0.149350, -0.702539, -0.718348, -0.100897, -0.857505, -0.504485, 0.125000, 0.750000, + 0.000000, -0.688989, -0.746997, -0.000000, -0.464008, -0.885831, 0.000000, 0.875000, + -0.152201, -0.688989, -0.732057, -0.173724, -0.464027, -0.868619, 0.125000, 0.875000, + -0.293196, -0.688989, -0.689105, -0.340521, -0.464917, -0.817250, 0.250000, 0.875000, + -0.152812, -0.675000, -0.735000, -0.196116, 0.000000, -0.980581, 0.125000, 1.000000, + -0.412317, -0.702539, -0.609313, -0.285959, -0.858129, -0.426430, 0.375000, 0.750000, + -0.293196, -0.688989, -0.689105, -0.340521, -0.464917, -0.817250, 0.250000, 0.875000, + -0.420186, -0.688989, -0.620941, -0.493068, -0.465030, -0.735277, 0.375000, 0.875000, + -0.530368, -0.688989, -0.530368, -0.625825, -0.465494, -0.625826, 0.500000, 0.875000, + -0.421875, -0.675000, -0.623438, -0.556953, 0.000000, -0.830544, 0.375000, 1.000000, + -0.592418, -0.726562, -0.252059, -0.130740, -0.989919, -0.054475, 0.750000, 0.500000, + -0.520436, -0.702539, -0.520436, -0.362711, -0.858418, -0.362711, 0.500000, 0.750000, + -0.676200, -0.702539, -0.287706, -0.475457, -0.857143, -0.198107, 0.750000, 0.750000, + -0.733008, -0.702539, -0.000000, -0.514495, -0.857493, 0.000000, 1.000000, 0.750000, + -0.691875, -0.675000, -0.294375, -0.923077, 0.000000, -0.384615, 0.750000, 1.000000, + -0.533818, -0.726562, -0.361230, -0.117140, -0.990004, -0.078553, 0.625000, 0.500000, + -0.497399, -0.715210, -0.497399, -0.185918, -0.964815, -0.185918, 0.500000, 0.625000, + -0.582342, -0.715210, -0.394066, -0.218643, -0.964727, -0.146620, 0.625000, 0.625000, + -0.646268, -0.715210, -0.274970, -0.243061, -0.964709, -0.101276, 0.750000, 0.625000, + -0.609313, -0.702539, -0.412317, -0.426446, -0.858117, -0.285969, 0.625000, 0.750000, + -0.629344, -0.726562, -0.130846, -0.138687, -0.989948, -0.027737, 0.875000, 0.500000, + -0.646268, -0.715210, -0.274970, -0.243061, -0.964709, -0.101276, 0.750000, 0.625000, + -0.686550, -0.715210, -0.142739, -0.258825, -0.964536, -0.051765, 0.875000, 0.625000, + -0.700562, -0.715210, -0.000000, -0.263929, -0.964542, 0.000000, 1.000000, 0.625000, + -0.718348, -0.702539, -0.149350, -0.504538, -0.857473, -0.100908, 0.875000, 0.750000, + -0.609313, -0.702539, -0.412317, -0.426445, -0.858118, -0.285969, 0.625000, 0.750000, + -0.530368, -0.688989, -0.530368, -0.625826, -0.465494, -0.625825, 0.500000, 0.875000, + -0.620941, -0.688989, -0.420186, -0.735284, -0.465012, -0.493073, 0.625000, 0.875000, + -0.689105, -0.688989, -0.293196, -0.817250, -0.464917, -0.340521, 0.750000, 0.875000, + -0.623438, -0.675000, -0.421875, -0.830544, 0.000000, -0.556953, 0.625000, 1.000000, + -0.718348, -0.702539, -0.149350, -0.504537, -0.857473, -0.100907, 0.875000, 0.750000, + -0.689105, -0.688989, -0.293196, -0.817250, -0.464917, -0.340521, 0.750000, 0.875000, + -0.732057, -0.688989, -0.152201, -0.868645, -0.463975, -0.173729, 0.875000, 0.875000, + -0.746997, -0.688989, -0.000000, -0.885831, -0.464008, 0.000000, 1.000000, 0.875000, + -0.735000, -0.675000, -0.152812, -0.980581, 0.000000, -0.196116, 0.875000, 1.000000, + 0.000000, -0.750000, -0.000000, -0.099015, -0.990148, 0.099015, 0.000000, 0.000000, + 0.000000, -0.750000, -0.000000, -0.099015, -0.990148, 0.099015, 1.000000, 0.000000, + -0.750000, -0.675000, -0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 1.000000, + 0.000000, -0.675000, 0.750000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000, + 0.000000, -0.750000, -0.000000, -0.099015, -0.990148, 0.099015, 0.500000, 0.000000, + -0.642187, -0.726562, -0.000000, -0.141421, -0.989949, 0.000000, 0.000000, 0.500000, + -0.455953, -0.726562, 0.455953, -0.100995, -0.989748, 0.100995, 0.500000, 0.500000, + 0.000000, -0.726562, 0.642187, 0.000000, -0.989949, 0.141421, 1.000000, 0.500000, + -0.532500, -0.675000, 0.532500, -0.707107, 0.000000, 0.707107, 0.500000, 1.000000, + 0.000000, -0.750000, -0.000000, -0.036468, -0.999224, 0.014895, 0.250000, 0.000000, + -0.417773, -0.743555, -0.000000, -0.039517, -0.999219, 0.000000, 0.000000, 0.250000, + -0.385396, -0.743555, 0.163976, -0.036505, -0.999218, 0.015211, 0.250000, 0.250000, + -0.296619, -0.743555, 0.296619, -0.027829, -0.999225, 0.027829, 0.500000, 0.250000, + -0.592418, -0.726562, 0.252059, -0.130641, -0.989934, 0.054434, 0.250000, 0.500000, + 0.000000, -0.750000, -0.000000, -0.015426, -0.999876, 0.003046, 0.125000, 0.000000, + -0.236792, -0.748315, -0.000000, -0.015871, -0.999874, 0.000000, 0.000000, 0.125000, + -0.232056, -0.748315, 0.048246, -0.015562, -0.999874, 0.003112, 0.125000, 0.125000, + -0.218441, -0.748315, 0.092941, -0.014614, -0.999875, 0.006089, 0.250000, 0.125000, + -0.409418, -0.743555, 0.085121, -0.038747, -0.999219, 0.007749, 0.125000, 0.250000, + 0.000000, -0.750000, -0.000000, -0.013015, -0.999877, 0.008711, 0.375000, 0.000000, + -0.218441, -0.748315, 0.092941, -0.014614, -0.999875, 0.006089, 0.250000, 0.125000, + -0.196833, -0.748315, 0.133195, -0.013145, -0.999875, 0.008815, 0.375000, 0.125000, + -0.168122, -0.748315, 0.168122, -0.011177, -0.999875, 0.011177, 0.500000, 0.125000, + -0.347274, -0.743555, 0.234998, -0.032729, -0.999223, 0.021947, 0.375000, 0.250000, + -0.409418, -0.743555, 0.085121, -0.038748, -0.999219, 0.007750, 0.125000, 0.250000, + -0.550415, -0.736157, -0.000000, -0.076999, -0.997031, 0.000000, 0.000000, 0.375000, + -0.539407, -0.736157, 0.112147, -0.075499, -0.997032, 0.015100, 0.125000, 0.375000, + -0.507758, -0.736157, 0.216038, -0.070899, -0.997046, 0.029541, 0.250000, 0.375000, + -0.629344, -0.726562, 0.130846, -0.138668, -0.989950, 0.027734, 0.125000, 0.500000, + -0.347274, -0.743555, 0.234998, -0.032729, -0.999223, 0.021948, 0.375000, 0.250000, + -0.507758, -0.736157, 0.216038, -0.070899, -0.997046, 0.029541, 0.250000, 0.375000, + -0.457533, -0.736157, 0.309608, -0.063773, -0.997048, 0.042765, 0.375000, 0.375000, + -0.390795, -0.736157, 0.390795, -0.054226, -0.997055, 0.054226, 0.500000, 0.375000, + -0.533818, -0.726562, 0.361230, -0.117134, -0.990005, 0.078549, 0.375000, 0.500000, + 0.000000, -0.750000, -0.000000, -0.014895, -0.999224, 0.036468, 0.750000, 0.000000, + -0.296619, -0.743555, 0.296619, -0.027829, -0.999225, 0.027829, 0.500000, 0.250000, + -0.163976, -0.743555, 0.385396, -0.015222, -0.999216, 0.036533, 0.750000, 0.250000, + 0.000000, -0.743555, 0.417773, 0.000000, -0.999219, 0.039517, 1.000000, 0.250000, + -0.252059, -0.726562, 0.592418, -0.054475, -0.989919, 0.130740, 0.750000, 0.500000, + 0.000000, -0.750000, -0.000000, -0.008711, -0.999877, 0.013015, 0.625000, 0.000000, + -0.168122, -0.748315, 0.168122, -0.011177, -0.999875, 0.011177, 0.500000, 0.125000, + -0.133195, -0.748315, 0.196833, -0.008815, -0.999875, 0.013145, 0.625000, 0.125000, + -0.092941, -0.748315, 0.218441, -0.006089, -0.999875, 0.014614, 0.750000, 0.125000, + -0.234998, -0.743555, 0.347274, -0.021948, -0.999223, 0.032730, 0.625000, 0.250000, + 0.000000, -0.750000, -0.000000, -0.003046, -0.999876, 0.015426, 0.875000, 0.000000, + -0.092941, -0.748315, 0.218441, -0.006089, -0.999875, 0.014614, 0.750000, 0.125000, + -0.048246, -0.748315, 0.232056, -0.003113, -0.999874, 0.015564, 0.875000, 0.125000, + 0.000000, -0.748315, 0.236792, 0.000000, -0.999874, 0.015871, 1.000000, 0.125000, + -0.085121, -0.743555, 0.409418, -0.007751, -0.999219, 0.038753, 0.875000, 0.250000, + -0.234998, -0.743555, 0.347274, -0.021949, -0.999223, 0.032731, 0.625000, 0.250000, + -0.390795, -0.736157, 0.390795, -0.054226, -0.997055, 0.054226, 0.500000, 0.375000, + -0.309608, -0.736157, 0.457533, -0.042767, -0.997047, 0.063776, 0.625000, 0.375000, + -0.216038, -0.736157, 0.507758, -0.029541, -0.997046, 0.070899, 0.750000, 0.375000, + -0.361230, -0.726562, 0.533818, -0.078553, -0.990004, 0.117140, 0.625000, 0.500000, + -0.085121, -0.743555, 0.409418, -0.007751, -0.999219, 0.038753, 0.875000, 0.250000, + -0.216038, -0.736157, 0.507758, -0.029541, -0.997046, 0.070899, 0.750000, 0.375000, + -0.112147, -0.736157, 0.539407, -0.015102, -0.997031, 0.075510, 0.875000, 0.375000, + 0.000000, -0.736157, 0.550415, 0.000000, -0.997031, 0.076999, 1.000000, 0.375000, + -0.130846, -0.726562, 0.629344, -0.027737, -0.989948, 0.138687, 0.875000, 0.500000, + -0.592418, -0.726562, 0.252059, -0.130641, -0.989934, 0.054434, 0.250000, 0.500000, + -0.733008, -0.702539, -0.000000, -0.514495, -0.857493, 0.000000, 0.000000, 0.750000, + -0.676200, -0.702539, 0.287706, -0.475188, -0.857318, 0.197995, 0.250000, 0.750000, + -0.520436, -0.702539, 0.520436, -0.362711, -0.858418, 0.362711, 0.500000, 0.750000, + -0.691875, -0.675000, 0.294375, -0.923077, 0.000000, 0.384615, 0.250000, 1.000000, + -0.629344, -0.726562, 0.130846, -0.138668, -0.989950, 0.027734, 0.125000, 0.500000, + -0.700562, -0.715210, -0.000000, -0.263929, -0.964542, 0.000000, 0.000000, 0.625000, + -0.686550, -0.715210, 0.142739, -0.258791, -0.964546, 0.051758, 0.125000, 0.625000, + -0.646268, -0.715210, 0.274970, -0.243061, -0.964709, 0.101276, 0.250000, 0.625000, + -0.718348, -0.702539, 0.149350, -0.504486, -0.857505, 0.100897, 0.125000, 0.750000, + -0.533818, -0.726562, 0.361230, -0.117134, -0.990005, 0.078549, 0.375000, 0.500000, + -0.646268, -0.715210, 0.274970, -0.243061, -0.964709, 0.101276, 0.250000, 0.625000, + -0.582342, -0.715210, 0.394066, -0.218633, -0.964730, 0.146613, 0.375000, 0.625000, + -0.497399, -0.715210, 0.497399, -0.185918, -0.964815, 0.185918, 0.500000, 0.625000, + -0.609313, -0.702539, 0.412317, -0.426431, -0.858128, 0.285959, 0.375000, 0.750000, + -0.718348, -0.702539, 0.149350, -0.504485, -0.857505, 0.100897, 0.125000, 0.750000, + -0.746997, -0.688989, -0.000000, -0.885831, -0.464008, 0.000000, 0.000000, 0.875000, + -0.732057, -0.688989, 0.152201, -0.868619, -0.464027, 0.173724, 0.125000, 0.875000, + -0.689105, -0.688989, 0.293196, -0.817250, -0.464917, 0.340521, 0.250000, 0.875000, + -0.735000, -0.675000, 0.152812, -0.980581, 0.000000, 0.196116, 0.125000, 1.000000, + -0.609313, -0.702539, 0.412317, -0.426430, -0.858129, 0.285959, 0.375000, 0.750000, + -0.689105, -0.688989, 0.293196, -0.817250, -0.464917, 0.340521, 0.250000, 0.875000, + -0.620941, -0.688989, 0.420186, -0.735277, -0.465030, 0.493068, 0.375000, 0.875000, + -0.530368, -0.688989, 0.530368, -0.625826, -0.465494, 0.625825, 0.500000, 0.875000, + -0.623438, -0.675000, 0.421875, -0.830544, 0.000000, 0.556953, 0.375000, 1.000000, + -0.252059, -0.726562, 0.592418, -0.054475, -0.989919, 0.130740, 0.750000, 0.500000, + -0.520436, -0.702539, 0.520436, -0.362711, -0.858418, 0.362711, 0.500000, 0.750000, + -0.287706, -0.702539, 0.676200, -0.198107, -0.857143, 0.475457, 0.750000, 0.750000, + 0.000000, -0.702539, 0.733008, 0.000000, -0.857493, 0.514495, 1.000000, 0.750000, + -0.294375, -0.675000, 0.691875, -0.384615, 0.000000, 0.923077, 0.750000, 1.000000, + -0.361230, -0.726562, 0.533818, -0.078553, -0.990004, 0.117140, 0.625000, 0.500000, + -0.497399, -0.715210, 0.497399, -0.185918, -0.964815, 0.185918, 0.500000, 0.625000, + -0.394066, -0.715210, 0.582342, -0.146620, -0.964727, 0.218643, 0.625000, 0.625000, + -0.274970, -0.715210, 0.646268, -0.101276, -0.964709, 0.243061, 0.750000, 0.625000, + -0.412317, -0.702539, 0.609313, -0.285969, -0.858117, 0.426446, 0.625000, 0.750000, + -0.130846, -0.726562, 0.629344, -0.027737, -0.989948, 0.138687, 0.875000, 0.500000, + -0.274970, -0.715210, 0.646268, -0.101276, -0.964709, 0.243061, 0.750000, 0.625000, + -0.142739, -0.715210, 0.686550, -0.051765, -0.964536, 0.258825, 0.875000, 0.625000, + 0.000000, -0.715210, 0.700562, 0.000000, -0.964542, 0.263929, 1.000000, 0.625000, + -0.149350, -0.702539, 0.718348, -0.100908, -0.857473, 0.504538, 0.875000, 0.750000, + -0.412317, -0.702539, 0.609313, -0.285969, -0.858118, 0.426445, 0.625000, 0.750000, + -0.530368, -0.688989, 0.530368, -0.625825, -0.465494, 0.625826, 0.500000, 0.875000, + -0.420186, -0.688989, 0.620941, -0.493073, -0.465012, 0.735284, 0.625000, 0.875000, + -0.293196, -0.688989, 0.689105, -0.340521, -0.464917, 0.817250, 0.750000, 0.875000, + -0.421875, -0.675000, 0.623438, -0.556953, 0.000000, 0.830544, 0.625000, 1.000000, + -0.149350, -0.702539, 0.718348, -0.100907, -0.857473, 0.504537, 0.875000, 0.750000, + -0.293196, -0.688989, 0.689105, -0.340521, -0.464917, 0.817250, 0.750000, 0.875000, + -0.152201, -0.688989, 0.732057, -0.173729, -0.463975, 0.868645, 0.875000, 0.875000, + 0.000000, -0.688989, 0.746997, 0.000000, -0.464008, 0.885831, 1.000000, 0.875000, + -0.152812, -0.675000, 0.735000, -0.196116, 0.000000, 0.980581, 0.875000, 1.000000, + 0.000000, -0.750000, -0.000000, 0.099015, -0.990148, 0.099015, 0.000000, 0.000000, + 0.000000, -0.750000, -0.000000, 0.099015, -0.990148, 0.099015, 1.000000, 0.000000, + 0.000000, -0.675000, 0.750000, 0.000000, 0.000000, 1.000000, 0.000000, 1.000000, + 0.750000, -0.675000, -0.000000, 1.000000, -0.000000, 0.000000, 1.000000, 1.000000, + 0.000000, -0.750000, -0.000000, 0.099015, -0.990148, 0.099015, 0.500000, 0.000000, + 0.000000, -0.726562, 0.642187, 0.000000, -0.989949, 0.141421, 0.000000, 0.500000, + 0.455953, -0.726562, 0.455953, 0.100995, -0.989748, 0.100995, 0.500000, 0.500000, + 0.642187, -0.726562, -0.000000, 0.141421, -0.989949, 0.000000, 1.000000, 0.500000, + 0.532500, -0.675000, 0.532500, 0.707107, -0.000000, 0.707107, 0.500000, 1.000000, + 0.000000, -0.750000, -0.000000, 0.014895, -0.999224, 0.036468, 0.250000, 0.000000, + 0.000000, -0.743555, 0.417773, 0.000000, -0.999219, 0.039517, 0.000000, 0.250000, + 0.163976, -0.743555, 0.385396, 0.015211, -0.999218, 0.036505, 0.250000, 0.250000, + 0.296619, -0.743555, 0.296619, 0.027829, -0.999225, 0.027829, 0.500000, 0.250000, + 0.252059, -0.726562, 0.592418, 0.054434, -0.989934, 0.130641, 0.250000, 0.500000, + 0.000000, -0.750000, -0.000000, 0.003046, -0.999876, 0.015426, 0.125000, 0.000000, + 0.000000, -0.748315, 0.236792, 0.000000, -0.999874, 0.015871, 0.000000, 0.125000, + 0.048246, -0.748315, 0.232056, 0.003112, -0.999874, 0.015562, 0.125000, 0.125000, + 0.092941, -0.748315, 0.218441, 0.006089, -0.999875, 0.014614, 0.250000, 0.125000, + 0.085121, -0.743555, 0.409418, 0.007749, -0.999219, 0.038747, 0.125000, 0.250000, + 0.000000, -0.750000, -0.000000, 0.008711, -0.999877, 0.013015, 0.375000, 0.000000, + 0.092941, -0.748315, 0.218441, 0.006089, -0.999875, 0.014614, 0.250000, 0.125000, + 0.133195, -0.748315, 0.196833, 0.008815, -0.999875, 0.013145, 0.375000, 0.125000, + 0.168122, -0.748315, 0.168122, 0.011177, -0.999875, 0.011177, 0.500000, 0.125000, + 0.234998, -0.743555, 0.347274, 0.021947, -0.999223, 0.032729, 0.375000, 0.250000, + 0.085121, -0.743555, 0.409418, 0.007750, -0.999219, 0.038748, 0.125000, 0.250000, + 0.000000, -0.736157, 0.550415, 0.000000, -0.997031, 0.076999, 0.000000, 0.375000, + 0.112147, -0.736157, 0.539407, 0.015100, -0.997032, 0.075499, 0.125000, 0.375000, + 0.216038, -0.736157, 0.507758, 0.029541, -0.997046, 0.070899, 0.250000, 0.375000, + 0.130846, -0.726562, 0.629344, 0.027734, -0.989950, 0.138668, 0.125000, 0.500000, + 0.234998, -0.743555, 0.347274, 0.021948, -0.999223, 0.032729, 0.375000, 0.250000, + 0.216038, -0.736157, 0.507758, 0.029541, -0.997046, 0.070899, 0.250000, 0.375000, + 0.309608, -0.736157, 0.457533, 0.042765, -0.997048, 0.063773, 0.375000, 0.375000, + 0.390795, -0.736157, 0.390795, 0.054226, -0.997055, 0.054226, 0.500000, 0.375000, + 0.361230, -0.726562, 0.533818, 0.078549, -0.990005, 0.117134, 0.375000, 0.500000, + 0.000000, -0.750000, -0.000000, 0.036468, -0.999224, 0.014895, 0.750000, 0.000000, + 0.296619, -0.743555, 0.296619, 0.027829, -0.999225, 0.027829, 0.500000, 0.250000, + 0.385396, -0.743555, 0.163976, 0.036533, -0.999216, 0.015222, 0.750000, 0.250000, + 0.417773, -0.743555, -0.000000, 0.039517, -0.999219, 0.000000, 1.000000, 0.250000, + 0.592418, -0.726562, 0.252059, 0.130740, -0.989919, 0.054475, 0.750000, 0.500000, + 0.000000, -0.750000, -0.000000, 0.013015, -0.999877, 0.008711, 0.625000, 0.000000, + 0.168122, -0.748315, 0.168122, 0.011177, -0.999875, 0.011177, 0.500000, 0.125000, + 0.196833, -0.748315, 0.133195, 0.013145, -0.999875, 0.008815, 0.625000, 0.125000, + 0.218441, -0.748315, 0.092941, 0.014614, -0.999875, 0.006089, 0.750000, 0.125000, + 0.347274, -0.743555, 0.234998, 0.032730, -0.999223, 0.021948, 0.625000, 0.250000, + 0.000000, -0.750000, -0.000000, 0.015426, -0.999876, 0.003046, 0.875000, 0.000000, + 0.218441, -0.748315, 0.092941, 0.014614, -0.999875, 0.006089, 0.750000, 0.125000, + 0.232056, -0.748315, 0.048246, 0.015564, -0.999874, 0.003113, 0.875000, 0.125000, + 0.236792, -0.748315, -0.000000, 0.015871, -0.999874, 0.000000, 1.000000, 0.125000, + 0.409418, -0.743555, 0.085121, 0.038753, -0.999219, 0.007751, 0.875000, 0.250000, + 0.347274, -0.743555, 0.234998, 0.032731, -0.999223, 0.021949, 0.625000, 0.250000, + 0.390795, -0.736157, 0.390795, 0.054226, -0.997055, 0.054226, 0.500000, 0.375000, + 0.457533, -0.736157, 0.309608, 0.063776, -0.997047, 0.042767, 0.625000, 0.375000, + 0.507758, -0.736157, 0.216038, 0.070899, -0.997046, 0.029541, 0.750000, 0.375000, + 0.533818, -0.726562, 0.361230, 0.117140, -0.990004, 0.078553, 0.625000, 0.500000, + 0.409418, -0.743555, 0.085121, 0.038753, -0.999219, 0.007751, 0.875000, 0.250000, + 0.507758, -0.736157, 0.216038, 0.070899, -0.997046, 0.029541, 0.750000, 0.375000, + 0.539407, -0.736157, 0.112147, 0.075510, -0.997031, 0.015102, 0.875000, 0.375000, + 0.550415, -0.736157, -0.000000, 0.076999, -0.997031, 0.000000, 1.000000, 0.375000, + 0.629344, -0.726562, 0.130846, 0.138687, -0.989948, 0.027737, 0.875000, 0.500000, + 0.252059, -0.726562, 0.592418, 0.054434, -0.989934, 0.130641, 0.250000, 0.500000, + 0.000000, -0.702539, 0.733008, 0.000000, -0.857493, 0.514495, 0.000000, 0.750000, + 0.287706, -0.702539, 0.676200, 0.197995, -0.857318, 0.475188, 0.250000, 0.750000, + 0.520436, -0.702539, 0.520436, 0.362711, -0.858418, 0.362711, 0.500000, 0.750000, + 0.294375, -0.675000, 0.691875, 0.384615, -0.000000, 0.923077, 0.250000, 1.000000, + 0.130846, -0.726562, 0.629344, 0.027734, -0.989950, 0.138668, 0.125000, 0.500000, + 0.000000, -0.715210, 0.700562, 0.000000, -0.964542, 0.263929, 0.000000, 0.625000, + 0.142739, -0.715210, 0.686550, 0.051758, -0.964546, 0.258791, 0.125000, 0.625000, + 0.274970, -0.715210, 0.646268, 0.101276, -0.964709, 0.243061, 0.250000, 0.625000, + 0.149350, -0.702539, 0.718348, 0.100897, -0.857505, 0.504486, 0.125000, 0.750000, + 0.361230, -0.726562, 0.533818, 0.078549, -0.990005, 0.117134, 0.375000, 0.500000, + 0.274970, -0.715210, 0.646268, 0.101276, -0.964709, 0.243061, 0.250000, 0.625000, + 0.394066, -0.715210, 0.582342, 0.146613, -0.964730, 0.218633, 0.375000, 0.625000, + 0.497399, -0.715210, 0.497399, 0.185918, -0.964815, 0.185918, 0.500000, 0.625000, + 0.412317, -0.702539, 0.609313, 0.285959, -0.858128, 0.426431, 0.375000, 0.750000, + 0.149350, -0.702539, 0.718348, 0.100897, -0.857505, 0.504485, 0.125000, 0.750000, + 0.000000, -0.688989, 0.746997, 0.000000, -0.464008, 0.885831, 0.000000, 0.875000, + 0.152201, -0.688989, 0.732057, 0.173724, -0.464027, 0.868619, 0.125000, 0.875000, + 0.293196, -0.688989, 0.689105, 0.340521, -0.464917, 0.817250, 0.250000, 0.875000, + 0.152812, -0.675000, 0.735000, 0.196116, -0.000000, 0.980581, 0.125000, 1.000000, + 0.412317, -0.702539, 0.609313, 0.285959, -0.858129, 0.426430, 0.375000, 0.750000, + 0.293196, -0.688989, 0.689105, 0.340521, -0.464917, 0.817250, 0.250000, 0.875000, + 0.420186, -0.688989, 0.620941, 0.493068, -0.465030, 0.735277, 0.375000, 0.875000, + 0.530368, -0.688989, 0.530368, 0.625825, -0.465494, 0.625826, 0.500000, 0.875000, + 0.421875, -0.675000, 0.623438, 0.556953, -0.000000, 0.830544, 0.375000, 1.000000, + 0.592418, -0.726562, 0.252059, 0.130740, -0.989919, 0.054475, 0.750000, 0.500000, + 0.520436, -0.702539, 0.520436, 0.362711, -0.858418, 0.362711, 0.500000, 0.750000, + 0.676200, -0.702539, 0.287706, 0.475457, -0.857143, 0.198107, 0.750000, 0.750000, + 0.733008, -0.702539, -0.000000, 0.514495, -0.857493, 0.000000, 1.000000, 0.750000, + 0.691875, -0.675000, 0.294375, 0.923077, -0.000000, 0.384615, 0.750000, 1.000000, + 0.533818, -0.726562, 0.361230, 0.117140, -0.990004, 0.078553, 0.625000, 0.500000, + 0.497399, -0.715210, 0.497399, 0.185918, -0.964815, 0.185918, 0.500000, 0.625000, + 0.582342, -0.715210, 0.394066, 0.218643, -0.964727, 0.146620, 0.625000, 0.625000, + 0.646268, -0.715210, 0.274970, 0.243061, -0.964709, 0.101276, 0.750000, 0.625000, + 0.609313, -0.702539, 0.412317, 0.426446, -0.858117, 0.285969, 0.625000, 0.750000, + 0.629344, -0.726562, 0.130846, 0.138687, -0.989948, 0.027737, 0.875000, 0.500000, + 0.646268, -0.715210, 0.274970, 0.243061, -0.964709, 0.101276, 0.750000, 0.625000, + 0.686550, -0.715210, 0.142739, 0.258825, -0.964536, 0.051765, 0.875000, 0.625000, + 0.700562, -0.715210, -0.000000, 0.263929, -0.964542, 0.000000, 1.000000, 0.625000, + 0.718348, -0.702539, 0.149350, 0.504538, -0.857473, 0.100908, 0.875000, 0.750000, + 0.609313, -0.702539, 0.412317, 0.426445, -0.858118, 0.285969, 0.625000, 0.750000, + 0.530368, -0.688989, 0.530368, 0.625826, -0.465494, 0.625825, 0.500000, 0.875000, + 0.620941, -0.688989, 0.420186, 0.735284, -0.465012, 0.493073, 0.625000, 0.875000, + 0.689105, -0.688989, 0.293196, 0.817250, -0.464917, 0.340521, 0.750000, 0.875000, + 0.623438, -0.675000, 0.421875, 0.830544, -0.000000, 0.556953, 0.625000, 1.000000, + 0.718348, -0.702539, 0.149350, 0.504537, -0.857473, 0.100907, 0.875000, 0.750000, + 0.689105, -0.688989, 0.293196, 0.817250, -0.464917, 0.340521, 0.750000, 0.875000, + 0.732057, -0.688989, 0.152201, 0.868645, -0.463975, 0.173729, 0.875000, 0.875000, + 0.746997, -0.688989, -0.000000, 0.885831, -0.464008, 0.000000, 1.000000, 0.875000, + 0.735000, -0.675000, 0.152812, 0.980581, -0.000000, 0.196116, 0.875000, 1.000000 +}; + +static ushort const teapotTriangleData[] = { + 0, 14, 15, 14, 16, 15, 14, 9, 16, 9, 17, 16, + 15, 16, 10, 16, 18, 10, 16, 17, 18, 17, 11, 18, + 9, 19, 20, 19, 21, 20, 19, 4, 21, 4, 22, 21, + 20, 21, 11, 21, 23, 11, 21, 22, 23, 22, 12, 23, + 10, 24, 25, 24, 26, 25, 24, 11, 26, 11, 27, 26, + 25, 26, 5, 26, 28, 5, 26, 27, 28, 27, 13, 28, + 11, 29, 30, 29, 31, 30, 29, 12, 31, 12, 32, 31, + 30, 31, 13, 31, 33, 13, 31, 32, 33, 32, 6, 33, + 4, 39, 40, 39, 41, 40, 39, 34, 41, 34, 42, 41, + 40, 41, 35, 41, 43, 35, 41, 42, 43, 42, 36, 43, + 34, 44, 45, 44, 46, 45, 44, 1, 46, 1, 47, 46, + 45, 46, 36, 46, 48, 36, 46, 47, 48, 47, 37, 48, + 35, 49, 50, 49, 51, 50, 49, 36, 51, 36, 52, 51, + 50, 51, 6, 51, 53, 6, 51, 52, 53, 52, 38, 53, + 36, 54, 55, 54, 56, 55, 54, 37, 56, 37, 57, 56, + 55, 56, 38, 56, 58, 38, 56, 57, 58, 57, 7, 58, + 5, 64, 65, 64, 66, 65, 64, 59, 66, 59, 67, 66, + 65, 66, 60, 66, 68, 60, 66, 67, 68, 67, 61, 68, + 59, 69, 70, 69, 71, 70, 69, 6, 71, 6, 72, 71, + 70, 71, 61, 71, 73, 61, 71, 72, 73, 72, 62, 73, + 60, 74, 75, 74, 76, 75, 74, 61, 76, 61, 77, 76, + 75, 76, 2, 76, 78, 2, 76, 77, 78, 77, 63, 78, + 61, 79, 80, 79, 81, 80, 79, 62, 81, 62, 82, 81, + 80, 81, 63, 81, 83, 63, 81, 82, 83, 82, 8, 83, + 6, 89, 90, 89, 91, 90, 89, 84, 91, 84, 92, 91, + 90, 91, 85, 91, 93, 85, 91, 92, 93, 92, 86, 93, + 84, 94, 95, 94, 96, 95, 94, 7, 96, 7, 97, 96, + 95, 96, 86, 96, 98, 86, 96, 97, 98, 97, 87, 98, + 85, 99, 100, 99, 101, 100, 99, 86, 101, 86, 102, 101, + 100, 101, 8, 101, 103, 8, 101, 102, 103, 102, 88, 103, + 86, 104, 105, 104, 106, 105, 104, 87, 106, 87, 107, 106, + 105, 106, 88, 106, 108, 88, 106, 107, 108, 107, 3, 108, + 109, 123, 124, 123, 125, 124, 123, 118, 125, 118, 126, 125, + 124, 125, 119, 125, 127, 119, 125, 126, 127, 126, 120, 127, + 118, 128, 129, 128, 130, 129, 128, 113, 130, 113, 131, 130, + 129, 130, 120, 130, 132, 120, 130, 131, 132, 131, 121, 132, + 119, 133, 134, 133, 135, 134, 133, 120, 135, 120, 136, 135, + 134, 135, 114, 135, 137, 114, 135, 136, 137, 136, 122, 137, + 120, 138, 139, 138, 140, 139, 138, 121, 140, 121, 141, 140, + 139, 140, 122, 140, 142, 122, 140, 141, 142, 141, 115, 142, + 113, 148, 149, 148, 150, 149, 148, 143, 150, 143, 151, 150, + 149, 150, 144, 150, 152, 144, 150, 151, 152, 151, 145, 152, + 143, 153, 154, 153, 155, 154, 153, 110, 155, 110, 156, 155, + 154, 155, 145, 155, 157, 145, 155, 156, 157, 156, 146, 157, + 144, 158, 159, 158, 160, 159, 158, 145, 160, 145, 161, 160, + 159, 160, 115, 160, 162, 115, 160, 161, 162, 161, 147, 162, + 145, 163, 164, 163, 165, 164, 163, 146, 165, 146, 166, 165, + 164, 165, 147, 165, 167, 147, 165, 166, 167, 166, 116, 167, + 114, 173, 174, 173, 175, 174, 173, 168, 175, 168, 176, 175, + 174, 175, 169, 175, 177, 169, 175, 176, 177, 176, 170, 177, + 168, 178, 179, 178, 180, 179, 178, 115, 180, 115, 181, 180, + 179, 180, 170, 180, 182, 170, 180, 181, 182, 181, 171, 182, + 169, 183, 184, 183, 185, 184, 183, 170, 185, 170, 186, 185, + 184, 185, 111, 185, 187, 111, 185, 186, 187, 186, 172, 187, + 170, 188, 189, 188, 190, 189, 188, 171, 190, 171, 191, 190, + 189, 190, 172, 190, 192, 172, 190, 191, 192, 191, 117, 192, + 115, 198, 199, 198, 200, 199, 198, 193, 200, 193, 201, 200, + 199, 200, 194, 200, 202, 194, 200, 201, 202, 201, 195, 202, + 193, 203, 204, 203, 205, 204, 203, 116, 205, 116, 206, 205, + 204, 205, 195, 205, 207, 195, 205, 206, 207, 206, 196, 207, + 194, 208, 209, 208, 210, 209, 208, 195, 210, 195, 211, 210, + 209, 210, 117, 210, 212, 117, 210, 211, 212, 211, 197, 212, + 195, 213, 214, 213, 215, 214, 213, 196, 215, 196, 216, 215, + 214, 215, 197, 215, 217, 197, 215, 216, 217, 216, 112, 217, + 218, 232, 233, 232, 234, 233, 232, 227, 234, 227, 235, 234, + 233, 234, 228, 234, 236, 228, 234, 235, 236, 235, 229, 236, + 227, 237, 238, 237, 239, 238, 237, 222, 239, 222, 240, 239, + 238, 239, 229, 239, 241, 229, 239, 240, 241, 240, 230, 241, + 228, 242, 243, 242, 244, 243, 242, 229, 244, 229, 245, 244, + 243, 244, 223, 244, 246, 223, 244, 245, 246, 245, 231, 246, + 229, 247, 248, 247, 249, 248, 247, 230, 249, 230, 250, 249, + 248, 249, 231, 249, 251, 231, 249, 250, 251, 250, 224, 251, + 222, 257, 258, 257, 259, 258, 257, 252, 259, 252, 260, 259, + 258, 259, 253, 259, 261, 253, 259, 260, 261, 260, 254, 261, + 252, 262, 263, 262, 264, 263, 262, 219, 264, 219, 265, 264, + 263, 264, 254, 264, 266, 254, 264, 265, 266, 265, 255, 266, + 253, 267, 268, 267, 269, 268, 267, 254, 269, 254, 270, 269, + 268, 269, 224, 269, 271, 224, 269, 270, 271, 270, 256, 271, + 254, 272, 273, 272, 274, 273, 272, 255, 274, 255, 275, 274, + 273, 274, 256, 274, 276, 256, 274, 275, 276, 275, 225, 276, + 223, 282, 283, 282, 284, 283, 282, 277, 284, 277, 285, 284, + 283, 284, 278, 284, 286, 278, 284, 285, 286, 285, 279, 286, + 277, 287, 288, 287, 289, 288, 287, 224, 289, 224, 290, 289, + 288, 289, 279, 289, 291, 279, 289, 290, 291, 290, 280, 291, + 278, 292, 293, 292, 294, 293, 292, 279, 294, 279, 295, 294, + 293, 294, 220, 294, 296, 220, 294, 295, 296, 295, 281, 296, + 279, 297, 298, 297, 299, 298, 297, 280, 299, 280, 300, 299, + 298, 299, 281, 299, 301, 281, 299, 300, 301, 300, 226, 301, + 224, 307, 308, 307, 309, 308, 307, 302, 309, 302, 310, 309, + 308, 309, 303, 309, 311, 303, 309, 310, 311, 310, 304, 311, + 302, 312, 313, 312, 314, 313, 312, 225, 314, 225, 315, 314, + 313, 314, 304, 314, 316, 304, 314, 315, 316, 315, 305, 316, + 303, 317, 318, 317, 319, 318, 317, 304, 319, 304, 320, 319, + 318, 319, 226, 319, 321, 226, 319, 320, 321, 320, 306, 321, + 304, 322, 323, 322, 324, 323, 322, 305, 324, 305, 325, 324, + 323, 324, 306, 324, 326, 306, 324, 325, 326, 325, 221, 326, + 327, 341, 342, 341, 343, 342, 341, 336, 343, 336, 344, 343, + 342, 343, 337, 343, 345, 337, 343, 344, 345, 344, 338, 345, + 336, 346, 347, 346, 348, 347, 346, 331, 348, 331, 349, 348, + 347, 348, 338, 348, 350, 338, 348, 349, 350, 349, 339, 350, + 337, 351, 352, 351, 353, 352, 351, 338, 353, 338, 354, 353, + 352, 353, 332, 353, 355, 332, 353, 354, 355, 354, 340, 355, + 338, 356, 357, 356, 358, 357, 356, 339, 358, 339, 359, 358, + 357, 358, 340, 358, 360, 340, 358, 359, 360, 359, 333, 360, + 331, 366, 367, 366, 368, 367, 366, 361, 368, 361, 369, 368, + 367, 368, 362, 368, 370, 362, 368, 369, 370, 369, 363, 370, + 361, 371, 372, 371, 373, 372, 371, 328, 373, 328, 374, 373, + 372, 373, 363, 373, 375, 363, 373, 374, 375, 374, 364, 375, + 362, 376, 377, 376, 378, 377, 376, 363, 378, 363, 379, 378, + 377, 378, 333, 378, 380, 333, 378, 379, 380, 379, 365, 380, + 363, 381, 382, 381, 383, 382, 381, 364, 383, 364, 384, 383, + 382, 383, 365, 383, 385, 365, 383, 384, 385, 384, 334, 385, + 332, 391, 392, 391, 393, 392, 391, 386, 393, 386, 394, 393, + 392, 393, 387, 393, 395, 387, 393, 394, 395, 394, 388, 395, + 386, 396, 397, 396, 398, 397, 396, 333, 398, 333, 399, 398, + 397, 398, 388, 398, 400, 388, 398, 399, 400, 399, 389, 400, + 387, 401, 402, 401, 403, 402, 401, 388, 403, 388, 404, 403, + 402, 403, 329, 403, 405, 329, 403, 404, 405, 404, 390, 405, + 388, 406, 407, 406, 408, 407, 406, 389, 408, 389, 409, 408, + 407, 408, 390, 408, 410, 390, 408, 409, 410, 409, 335, 410, + 333, 416, 417, 416, 418, 417, 416, 411, 418, 411, 419, 418, + 417, 418, 412, 418, 420, 412, 418, 419, 420, 419, 413, 420, + 411, 421, 422, 421, 423, 422, 421, 334, 423, 334, 424, 423, + 422, 423, 413, 423, 425, 413, 423, 424, 425, 424, 414, 425, + 412, 426, 427, 426, 428, 427, 426, 413, 428, 413, 429, 428, + 427, 428, 335, 428, 430, 335, 428, 429, 430, 429, 415, 430, + 413, 431, 432, 431, 433, 432, 431, 414, 433, 414, 434, 433, + 432, 433, 415, 433, 435, 415, 433, 434, 435, 434, 330, 435, + 436, 450, 451, 450, 452, 451, 450, 445, 452, 445, 453, 452, + 451, 452, 446, 452, 454, 446, 452, 453, 454, 453, 447, 454, + 445, 455, 456, 455, 457, 456, 455, 440, 457, 440, 458, 457, + 456, 457, 447, 457, 459, 447, 457, 458, 459, 458, 448, 459, + 446, 460, 461, 460, 462, 461, 460, 447, 462, 447, 463, 462, + 461, 462, 441, 462, 464, 441, 462, 463, 464, 463, 449, 464, + 447, 465, 466, 465, 467, 466, 465, 448, 467, 448, 468, 467, + 466, 467, 449, 467, 469, 449, 467, 468, 469, 468, 442, 469, + 440, 475, 476, 475, 477, 476, 475, 470, 477, 470, 478, 477, + 476, 477, 471, 477, 479, 471, 477, 478, 479, 478, 472, 479, + 470, 480, 481, 480, 482, 481, 480, 437, 482, 437, 483, 482, + 481, 482, 472, 482, 484, 472, 482, 483, 484, 483, 473, 484, + 471, 485, 486, 485, 487, 486, 485, 472, 487, 472, 488, 487, + 486, 487, 442, 487, 489, 442, 487, 488, 489, 488, 474, 489, + 472, 490, 491, 490, 492, 491, 490, 473, 492, 473, 493, 492, + 491, 492, 474, 492, 494, 474, 492, 493, 494, 493, 443, 494, + 441, 500, 501, 500, 502, 501, 500, 495, 502, 495, 503, 502, + 501, 502, 496, 502, 504, 496, 502, 503, 504, 503, 497, 504, + 495, 505, 506, 505, 507, 506, 505, 442, 507, 442, 508, 507, + 506, 507, 497, 507, 509, 497, 507, 508, 509, 508, 498, 509, + 496, 510, 511, 510, 512, 511, 510, 497, 512, 497, 513, 512, + 511, 512, 438, 512, 514, 438, 512, 513, 514, 513, 499, 514, + 497, 515, 516, 515, 517, 516, 515, 498, 517, 498, 518, 517, + 516, 517, 499, 517, 519, 499, 517, 518, 519, 518, 444, 519, + 442, 525, 526, 525, 527, 526, 525, 520, 527, 520, 528, 527, + 526, 527, 521, 527, 529, 521, 527, 528, 529, 528, 522, 529, + 520, 530, 531, 530, 532, 531, 530, 443, 532, 443, 533, 532, + 531, 532, 522, 532, 534, 522, 532, 533, 534, 533, 523, 534, + 521, 535, 536, 535, 537, 536, 535, 522, 537, 522, 538, 537, + 536, 537, 444, 537, 539, 444, 537, 538, 539, 538, 524, 539, + 522, 540, 541, 540, 542, 541, 540, 523, 542, 523, 543, 542, + 541, 542, 524, 542, 544, 524, 542, 543, 544, 543, 439, 544, + 545, 559, 560, 559, 561, 560, 559, 554, 561, 554, 562, 561, + 560, 561, 555, 561, 563, 555, 561, 562, 563, 562, 556, 563, + 554, 564, 565, 564, 566, 565, 564, 549, 566, 549, 567, 566, + 565, 566, 556, 566, 568, 556, 566, 567, 568, 567, 557, 568, + 555, 569, 570, 569, 571, 570, 569, 556, 571, 556, 572, 571, + 570, 571, 550, 571, 573, 550, 571, 572, 573, 572, 558, 573, + 556, 574, 575, 574, 576, 575, 574, 557, 576, 557, 577, 576, + 575, 576, 558, 576, 578, 558, 576, 577, 578, 577, 551, 578, + 549, 584, 585, 584, 586, 585, 584, 579, 586, 579, 587, 586, + 585, 586, 580, 586, 588, 580, 586, 587, 588, 587, 581, 588, + 579, 589, 590, 589, 591, 590, 589, 546, 591, 546, 592, 591, + 590, 591, 581, 591, 593, 581, 591, 592, 593, 592, 582, 593, + 580, 594, 595, 594, 596, 595, 594, 581, 596, 581, 597, 596, + 595, 596, 551, 596, 598, 551, 596, 597, 598, 597, 583, 598, + 581, 599, 600, 599, 601, 600, 599, 582, 601, 582, 602, 601, + 600, 601, 583, 601, 603, 583, 601, 602, 603, 602, 552, 603, + 550, 609, 610, 609, 611, 610, 609, 604, 611, 604, 612, 611, + 610, 611, 605, 611, 613, 605, 611, 612, 613, 612, 606, 613, + 604, 614, 615, 614, 616, 615, 614, 551, 616, 551, 617, 616, + 615, 616, 606, 616, 618, 606, 616, 617, 618, 617, 607, 618, + 605, 619, 620, 619, 621, 620, 619, 606, 621, 606, 622, 621, + 620, 621, 547, 621, 623, 547, 621, 622, 623, 622, 608, 623, + 606, 624, 625, 624, 626, 625, 624, 607, 626, 607, 627, 626, + 625, 626, 608, 626, 628, 608, 626, 627, 628, 627, 553, 628, + 551, 634, 635, 634, 636, 635, 634, 629, 636, 629, 637, 636, + 635, 636, 630, 636, 638, 630, 636, 637, 638, 637, 631, 638, + 629, 639, 640, 639, 641, 640, 639, 552, 641, 552, 642, 641, + 640, 641, 631, 641, 643, 631, 641, 642, 643, 642, 632, 643, + 630, 644, 645, 644, 646, 645, 644, 631, 646, 631, 647, 646, + 645, 646, 553, 646, 648, 553, 646, 647, 648, 647, 633, 648, + 631, 649, 650, 649, 651, 650, 649, 632, 651, 632, 652, 651, + 650, 651, 633, 651, 653, 633, 651, 652, 653, 652, 548, 653, + 654, 668, 669, 668, 670, 669, 668, 663, 670, 663, 671, 670, + 669, 670, 664, 670, 672, 664, 670, 671, 672, 671, 665, 672, + 663, 673, 674, 673, 675, 674, 673, 658, 675, 658, 676, 675, + 674, 675, 665, 675, 677, 665, 675, 676, 677, 676, 666, 677, + 664, 678, 679, 678, 680, 679, 678, 665, 680, 665, 681, 680, + 679, 680, 659, 680, 682, 659, 680, 681, 682, 681, 667, 682, + 665, 683, 684, 683, 685, 684, 683, 666, 685, 666, 686, 685, + 684, 685, 667, 685, 687, 667, 685, 686, 687, 686, 660, 687, + 658, 693, 694, 693, 695, 694, 693, 688, 695, 688, 696, 695, + 694, 695, 689, 695, 697, 689, 695, 696, 697, 696, 690, 697, + 688, 698, 699, 698, 700, 699, 698, 655, 700, 655, 701, 700, + 699, 700, 690, 700, 702, 690, 700, 701, 702, 701, 691, 702, + 689, 703, 704, 703, 705, 704, 703, 690, 705, 690, 706, 705, + 704, 705, 660, 705, 707, 660, 705, 706, 707, 706, 692, 707, + 690, 708, 709, 708, 710, 709, 708, 691, 710, 691, 711, 710, + 709, 710, 692, 710, 712, 692, 710, 711, 712, 711, 661, 712, + 659, 718, 719, 718, 720, 719, 718, 713, 720, 713, 721, 720, + 719, 720, 714, 720, 722, 714, 720, 721, 722, 721, 715, 722, + 713, 723, 724, 723, 725, 724, 723, 660, 725, 660, 726, 725, + 724, 725, 715, 725, 727, 715, 725, 726, 727, 726, 716, 727, + 714, 728, 729, 728, 730, 729, 728, 715, 730, 715, 731, 730, + 729, 730, 656, 730, 732, 656, 730, 731, 732, 731, 717, 732, + 715, 733, 734, 733, 735, 734, 733, 716, 735, 716, 736, 735, + 734, 735, 717, 735, 737, 717, 735, 736, 737, 736, 662, 737, + 660, 743, 744, 743, 745, 744, 743, 738, 745, 738, 746, 745, + 744, 745, 739, 745, 747, 739, 745, 746, 747, 746, 740, 747, + 738, 748, 749, 748, 750, 749, 748, 661, 750, 661, 751, 750, + 749, 750, 740, 750, 752, 740, 750, 751, 752, 751, 741, 752, + 739, 753, 754, 753, 755, 754, 753, 740, 755, 740, 756, 755, + 754, 755, 662, 755, 757, 662, 755, 756, 757, 756, 742, 757, + 740, 758, 759, 758, 760, 759, 758, 741, 760, 741, 761, 760, + 759, 760, 742, 760, 762, 742, 760, 761, 762, 761, 657, 762, + 763, 777, 778, 777, 779, 778, 777, 772, 779, 772, 780, 779, + 778, 779, 773, 779, 781, 773, 779, 780, 781, 780, 774, 781, + 772, 782, 783, 782, 784, 783, 782, 767, 784, 767, 785, 784, + 783, 784, 774, 784, 786, 774, 784, 785, 786, 785, 775, 786, + 773, 787, 788, 787, 789, 788, 787, 774, 789, 774, 790, 789, + 788, 789, 768, 789, 791, 768, 789, 790, 791, 790, 776, 791, + 774, 792, 793, 792, 794, 793, 792, 775, 794, 775, 795, 794, + 793, 794, 776, 794, 796, 776, 794, 795, 796, 795, 769, 796, + 767, 802, 803, 802, 804, 803, 802, 797, 804, 797, 805, 804, + 803, 804, 798, 804, 806, 798, 804, 805, 806, 805, 799, 806, + 797, 807, 808, 807, 809, 808, 807, 764, 809, 764, 810, 809, + 808, 809, 799, 809, 811, 799, 809, 810, 811, 810, 800, 811, + 798, 812, 813, 812, 814, 813, 812, 799, 814, 799, 815, 814, + 813, 814, 769, 814, 816, 769, 814, 815, 816, 815, 801, 816, + 799, 817, 818, 817, 819, 818, 817, 800, 819, 800, 820, 819, + 818, 819, 801, 819, 821, 801, 819, 820, 821, 820, 770, 821, + 768, 827, 828, 827, 829, 828, 827, 822, 829, 822, 830, 829, + 828, 829, 823, 829, 831, 823, 829, 830, 831, 830, 824, 831, + 822, 832, 833, 832, 834, 833, 832, 769, 834, 769, 835, 834, + 833, 834, 824, 834, 836, 824, 834, 835, 836, 835, 825, 836, + 823, 837, 838, 837, 839, 838, 837, 824, 839, 824, 840, 839, + 838, 839, 765, 839, 841, 765, 839, 840, 841, 840, 826, 841, + 824, 842, 843, 842, 844, 843, 842, 825, 844, 825, 845, 844, + 843, 844, 826, 844, 846, 826, 844, 845, 846, 845, 771, 846, + 769, 852, 853, 852, 854, 853, 852, 847, 854, 847, 855, 854, + 853, 854, 848, 854, 856, 848, 854, 855, 856, 855, 849, 856, + 847, 857, 858, 857, 859, 858, 857, 770, 859, 770, 860, 859, + 858, 859, 849, 859, 861, 849, 859, 860, 861, 860, 850, 861, + 848, 862, 863, 862, 864, 863, 862, 849, 864, 849, 865, 864, + 863, 864, 771, 864, 866, 771, 864, 865, 866, 865, 851, 866, + 849, 867, 868, 867, 869, 868, 867, 850, 869, 850, 870, 869, + 868, 869, 851, 869, 871, 851, 869, 870, 871, 870, 766, 871, + 872, 886, 887, 886, 888, 887, 886, 881, 888, 881, 889, 888, + 887, 888, 882, 888, 890, 882, 888, 889, 890, 889, 883, 890, + 881, 891, 892, 891, 893, 892, 891, 876, 893, 876, 894, 893, + 892, 893, 883, 893, 895, 883, 893, 894, 895, 894, 884, 895, + 882, 896, 897, 896, 898, 897, 896, 883, 898, 883, 899, 898, + 897, 898, 877, 898, 900, 877, 898, 899, 900, 899, 885, 900, + 883, 901, 902, 901, 903, 902, 901, 884, 903, 884, 904, 903, + 902, 903, 885, 903, 905, 885, 903, 904, 905, 904, 878, 905, + 876, 911, 912, 911, 913, 912, 911, 906, 913, 906, 914, 913, + 912, 913, 907, 913, 915, 907, 913, 914, 915, 914, 908, 915, + 906, 916, 917, 916, 918, 917, 916, 873, 918, 873, 919, 918, + 917, 918, 908, 918, 920, 908, 918, 919, 920, 919, 909, 920, + 907, 921, 922, 921, 923, 922, 921, 908, 923, 908, 924, 923, + 922, 923, 878, 923, 925, 878, 923, 924, 925, 924, 910, 925, + 908, 926, 927, 926, 928, 927, 926, 909, 928, 909, 929, 928, + 927, 928, 910, 928, 930, 910, 928, 929, 930, 929, 879, 930, + 877, 936, 937, 936, 938, 937, 936, 931, 938, 931, 939, 938, + 937, 938, 932, 938, 940, 932, 938, 939, 940, 939, 933, 940, + 931, 941, 942, 941, 943, 942, 941, 878, 943, 878, 944, 943, + 942, 943, 933, 943, 945, 933, 943, 944, 945, 944, 934, 945, + 932, 946, 947, 946, 948, 947, 946, 933, 948, 933, 949, 948, + 947, 948, 874, 948, 950, 874, 948, 949, 950, 949, 935, 950, + 933, 951, 952, 951, 953, 952, 951, 934, 953, 934, 954, 953, + 952, 953, 935, 953, 955, 935, 953, 954, 955, 954, 880, 955, + 878, 961, 962, 961, 963, 962, 961, 956, 963, 956, 964, 963, + 962, 963, 957, 963, 965, 957, 963, 964, 965, 964, 958, 965, + 956, 966, 967, 966, 968, 967, 966, 879, 968, 879, 969, 968, + 967, 968, 958, 968, 970, 958, 968, 969, 970, 969, 959, 970, + 957, 971, 972, 971, 973, 972, 971, 958, 973, 958, 974, 973, + 972, 973, 880, 973, 975, 880, 973, 974, 975, 974, 960, 975, + 958, 976, 977, 976, 978, 977, 976, 959, 978, 959, 979, 978, + 977, 978, 960, 978, 980, 960, 978, 979, 980, 979, 875, 980, + 981, 995, 996, 995, 997, 996, 995, 990, 997, 990, 998, 997, + 996, 997, 991, 997, 999, 991, 997, 998, 999, 998, 992, 999, + 990, 1000, 1001, 1000, 1002, 1001, 1000, 985, 1002, 985, 1003, 1002, + 1001, 1002, 992, 1002, 1004, 992, 1002, 1003, 1004, 1003, 993, 1004, + 991, 1005, 1006, 1005, 1007, 1006, 1005, 992, 1007, 992, 1008, 1007, + 1006, 1007, 986, 1007, 1009, 986, 1007, 1008, 1009, 1008, 994, 1009, + 992, 1010, 1011, 1010, 1012, 1011, 1010, 993, 1012, 993, 1013, 1012, + 1011, 1012, 994, 1012, 1014, 994, 1012, 1013, 1014, 1013, 987, 1014, + 985, 1020, 1021, 1020, 1022, 1021, 1020, 1015, 1022, 1015, 1023, 1022, + 1021, 1022, 1016, 1022, 1024, 1016, 1022, 1023, 1024, 1023, 1017, 1024, + 1015, 1025, 1026, 1025, 1027, 1026, 1025, 982, 1027, 982, 1028, 1027, + 1026, 1027, 1017, 1027, 1029, 1017, 1027, 1028, 1029, 1028, 1018, 1029, + 1016, 1030, 1031, 1030, 1032, 1031, 1030, 1017, 1032, 1017, 1033, 1032, + 1031, 1032, 987, 1032, 1034, 987, 1032, 1033, 1034, 1033, 1019, 1034, + 1017, 1035, 1036, 1035, 1037, 1036, 1035, 1018, 1037, 1018, 1038, 1037, + 1036, 1037, 1019, 1037, 1039, 1019, 1037, 1038, 1039, 1038, 988, 1039, + 986, 1045, 1046, 1045, 1047, 1046, 1045, 1040, 1047, 1040, 1048, 1047, + 1046, 1047, 1041, 1047, 1049, 1041, 1047, 1048, 1049, 1048, 1042, 1049, + 1040, 1050, 1051, 1050, 1052, 1051, 1050, 987, 1052, 987, 1053, 1052, + 1051, 1052, 1042, 1052, 1054, 1042, 1052, 1053, 1054, 1053, 1043, 1054, + 1041, 1055, 1056, 1055, 1057, 1056, 1055, 1042, 1057, 1042, 1058, 1057, + 1056, 1057, 983, 1057, 1059, 983, 1057, 1058, 1059, 1058, 1044, 1059, + 1042, 1060, 1061, 1060, 1062, 1061, 1060, 1043, 1062, 1043, 1063, 1062, + 1061, 1062, 1044, 1062, 1064, 1044, 1062, 1063, 1064, 1063, 989, 1064, + 987, 1070, 1071, 1070, 1072, 1071, 1070, 1065, 1072, 1065, 1073, 1072, + 1071, 1072, 1066, 1072, 1074, 1066, 1072, 1073, 1074, 1073, 1067, 1074, + 1065, 1075, 1076, 1075, 1077, 1076, 1075, 988, 1077, 988, 1078, 1077, + 1076, 1077, 1067, 1077, 1079, 1067, 1077, 1078, 1079, 1078, 1068, 1079, + 1066, 1080, 1081, 1080, 1082, 1081, 1080, 1067, 1082, 1067, 1083, 1082, + 1081, 1082, 989, 1082, 1084, 989, 1082, 1083, 1084, 1083, 1069, 1084, + 1067, 1085, 1086, 1085, 1087, 1086, 1085, 1068, 1087, 1068, 1088, 1087, + 1086, 1087, 1069, 1087, 1089, 1069, 1087, 1088, 1089, 1088, 984, 1089, + 1090, 1104, 1105, 1104, 1106, 1105, 1104, 1099, 1106, 1099, 1107, 1106, + 1105, 1106, 1100, 1106, 1108, 1100, 1106, 1107, 1108, 1107, 1101, 1108, + 1099, 1109, 1110, 1109, 1111, 1110, 1109, 1094, 1111, 1094, 1112, 1111, + 1110, 1111, 1101, 1111, 1113, 1101, 1111, 1112, 1113, 1112, 1102, 1113, + 1100, 1114, 1115, 1114, 1116, 1115, 1114, 1101, 1116, 1101, 1117, 1116, + 1115, 1116, 1095, 1116, 1118, 1095, 1116, 1117, 1118, 1117, 1103, 1118, + 1101, 1119, 1120, 1119, 1121, 1120, 1119, 1102, 1121, 1102, 1122, 1121, + 1120, 1121, 1103, 1121, 1123, 1103, 1121, 1122, 1123, 1122, 1096, 1123, + 1094, 1129, 1130, 1129, 1131, 1130, 1129, 1124, 1131, 1124, 1132, 1131, + 1130, 1131, 1125, 1131, 1133, 1125, 1131, 1132, 1133, 1132, 1126, 1133, + 1124, 1134, 1135, 1134, 1136, 1135, 1134, 1091, 1136, 1091, 1137, 1136, + 1135, 1136, 1126, 1136, 1138, 1126, 1136, 1137, 1138, 1137, 1127, 1138, + 1125, 1139, 1140, 1139, 1141, 1140, 1139, 1126, 1141, 1126, 1142, 1141, + 1140, 1141, 1096, 1141, 1143, 1096, 1141, 1142, 1143, 1142, 1128, 1143, + 1126, 1144, 1145, 1144, 1146, 1145, 1144, 1127, 1146, 1127, 1147, 1146, + 1145, 1146, 1128, 1146, 1148, 1128, 1146, 1147, 1148, 1147, 1097, 1148, + 1095, 1154, 1155, 1154, 1156, 1155, 1154, 1149, 1156, 1149, 1157, 1156, + 1155, 1156, 1150, 1156, 1158, 1150, 1156, 1157, 1158, 1157, 1151, 1158, + 1149, 1159, 1160, 1159, 1161, 1160, 1159, 1096, 1161, 1096, 1162, 1161, + 1160, 1161, 1151, 1161, 1163, 1151, 1161, 1162, 1163, 1162, 1152, 1163, + 1150, 1164, 1165, 1164, 1166, 1165, 1164, 1151, 1166, 1151, 1167, 1166, + 1165, 1166, 1092, 1166, 1168, 1092, 1166, 1167, 1168, 1167, 1153, 1168, + 1151, 1169, 1170, 1169, 1171, 1170, 1169, 1152, 1171, 1152, 1172, 1171, + 1170, 1171, 1153, 1171, 1173, 1153, 1171, 1172, 1173, 1172, 1098, 1173, + 1096, 1179, 1180, 1179, 1181, 1180, 1179, 1174, 1181, 1174, 1182, 1181, + 1180, 1181, 1175, 1181, 1183, 1175, 1181, 1182, 1183, 1182, 1176, 1183, + 1174, 1184, 1185, 1184, 1186, 1185, 1184, 1097, 1186, 1097, 1187, 1186, + 1185, 1186, 1176, 1186, 1188, 1176, 1186, 1187, 1188, 1187, 1177, 1188, + 1175, 1189, 1190, 1189, 1191, 1190, 1189, 1176, 1191, 1176, 1192, 1191, + 1190, 1191, 1098, 1191, 1193, 1098, 1191, 1192, 1193, 1192, 1178, 1193, + 1176, 1194, 1195, 1194, 1196, 1195, 1194, 1177, 1196, 1177, 1197, 1196, + 1195, 1196, 1178, 1196, 1198, 1178, 1196, 1197, 1198, 1197, 1093, 1198, + 1199, 1213, 1214, 1213, 1215, 1214, 1213, 1208, 1215, 1208, 1216, 1215, + 1214, 1215, 1209, 1215, 1217, 1209, 1215, 1216, 1217, 1216, 1210, 1217, + 1208, 1218, 1219, 1218, 1220, 1219, 1218, 1203, 1220, 1203, 1221, 1220, + 1219, 1220, 1210, 1220, 1222, 1210, 1220, 1221, 1222, 1221, 1211, 1222, + 1209, 1223, 1224, 1223, 1225, 1224, 1223, 1210, 1225, 1210, 1226, 1225, + 1224, 1225, 1204, 1225, 1227, 1204, 1225, 1226, 1227, 1226, 1212, 1227, + 1210, 1228, 1229, 1228, 1230, 1229, 1228, 1211, 1230, 1211, 1231, 1230, + 1229, 1230, 1212, 1230, 1232, 1212, 1230, 1231, 1232, 1231, 1205, 1232, + 1203, 1238, 1239, 1238, 1240, 1239, 1238, 1233, 1240, 1233, 1241, 1240, + 1239, 1240, 1234, 1240, 1242, 1234, 1240, 1241, 1242, 1241, 1235, 1242, + 1233, 1243, 1244, 1243, 1245, 1244, 1243, 1200, 1245, 1200, 1246, 1245, + 1244, 1245, 1235, 1245, 1247, 1235, 1245, 1246, 1247, 1246, 1236, 1247, + 1234, 1248, 1249, 1248, 1250, 1249, 1248, 1235, 1250, 1235, 1251, 1250, + 1249, 1250, 1205, 1250, 1252, 1205, 1250, 1251, 1252, 1251, 1237, 1252, + 1235, 1253, 1254, 1253, 1255, 1254, 1253, 1236, 1255, 1236, 1256, 1255, + 1254, 1255, 1237, 1255, 1257, 1237, 1255, 1256, 1257, 1256, 1206, 1257, + 1204, 1263, 1264, 1263, 1265, 1264, 1263, 1258, 1265, 1258, 1266, 1265, + 1264, 1265, 1259, 1265, 1267, 1259, 1265, 1266, 1267, 1266, 1260, 1267, + 1258, 1268, 1269, 1268, 1270, 1269, 1268, 1205, 1270, 1205, 1271, 1270, + 1269, 1270, 1260, 1270, 1272, 1260, 1270, 1271, 1272, 1271, 1261, 1272, + 1259, 1273, 1274, 1273, 1275, 1274, 1273, 1260, 1275, 1260, 1276, 1275, + 1274, 1275, 1201, 1275, 1277, 1201, 1275, 1276, 1277, 1276, 1262, 1277, + 1260, 1278, 1279, 1278, 1280, 1279, 1278, 1261, 1280, 1261, 1281, 1280, + 1279, 1280, 1262, 1280, 1282, 1262, 1280, 1281, 1282, 1281, 1207, 1282, + 1205, 1288, 1289, 1288, 1290, 1289, 1288, 1283, 1290, 1283, 1291, 1290, + 1289, 1290, 1284, 1290, 1292, 1284, 1290, 1291, 1292, 1291, 1285, 1292, + 1283, 1293, 1294, 1293, 1295, 1294, 1293, 1206, 1295, 1206, 1296, 1295, + 1294, 1295, 1285, 1295, 1297, 1285, 1295, 1296, 1297, 1296, 1286, 1297, + 1284, 1298, 1299, 1298, 1300, 1299, 1298, 1285, 1300, 1285, 1301, 1300, + 1299, 1300, 1207, 1300, 1302, 1207, 1300, 1301, 1302, 1301, 1287, 1302, + 1285, 1303, 1304, 1303, 1305, 1304, 1303, 1286, 1305, 1286, 1306, 1305, + 1304, 1305, 1287, 1305, 1307, 1287, 1305, 1306, 1307, 1306, 1202, 1307, + 1308, 1322, 1323, 1322, 1324, 1323, 1322, 1317, 1324, 1317, 1325, 1324, + 1323, 1324, 1318, 1324, 1326, 1318, 1324, 1325, 1326, 1325, 1319, 1326, + 1317, 1327, 1328, 1327, 1329, 1328, 1327, 1312, 1329, 1312, 1330, 1329, + 1328, 1329, 1319, 1329, 1331, 1319, 1329, 1330, 1331, 1330, 1320, 1331, + 1318, 1332, 1333, 1332, 1334, 1333, 1332, 1319, 1334, 1319, 1335, 1334, + 1333, 1334, 1313, 1334, 1336, 1313, 1334, 1335, 1336, 1335, 1321, 1336, + 1319, 1337, 1338, 1337, 1339, 1338, 1337, 1320, 1339, 1320, 1340, 1339, + 1338, 1339, 1321, 1339, 1341, 1321, 1339, 1340, 1341, 1340, 1314, 1341, + 1312, 1347, 1348, 1347, 1349, 1348, 1347, 1342, 1349, 1342, 1350, 1349, + 1348, 1349, 1343, 1349, 1351, 1343, 1349, 1350, 1351, 1350, 1344, 1351, + 1342, 1352, 1353, 1352, 1354, 1353, 1352, 1309, 1354, 1309, 1355, 1354, + 1353, 1354, 1344, 1354, 1356, 1344, 1354, 1355, 1356, 1355, 1345, 1356, + 1343, 1357, 1358, 1357, 1359, 1358, 1357, 1344, 1359, 1344, 1360, 1359, + 1358, 1359, 1314, 1359, 1361, 1314, 1359, 1360, 1361, 1360, 1346, 1361, + 1344, 1362, 1363, 1362, 1364, 1363, 1362, 1345, 1364, 1345, 1365, 1364, + 1363, 1364, 1346, 1364, 1366, 1346, 1364, 1365, 1366, 1365, 1315, 1366, + 1313, 1372, 1373, 1372, 1374, 1373, 1372, 1367, 1374, 1367, 1375, 1374, + 1373, 1374, 1368, 1374, 1376, 1368, 1374, 1375, 1376, 1375, 1369, 1376, + 1367, 1377, 1378, 1377, 1379, 1378, 1377, 1314, 1379, 1314, 1380, 1379, + 1378, 1379, 1369, 1379, 1381, 1369, 1379, 1380, 1381, 1380, 1370, 1381, + 1368, 1382, 1383, 1382, 1384, 1383, 1382, 1369, 1384, 1369, 1385, 1384, + 1383, 1384, 1310, 1384, 1386, 1310, 1384, 1385, 1386, 1385, 1371, 1386, + 1369, 1387, 1388, 1387, 1389, 1388, 1387, 1370, 1389, 1370, 1390, 1389, + 1388, 1389, 1371, 1389, 1391, 1371, 1389, 1390, 1391, 1390, 1316, 1391, + 1314, 1397, 1398, 1397, 1399, 1398, 1397, 1392, 1399, 1392, 1400, 1399, + 1398, 1399, 1393, 1399, 1401, 1393, 1399, 1400, 1401, 1400, 1394, 1401, + 1392, 1402, 1403, 1402, 1404, 1403, 1402, 1315, 1404, 1315, 1405, 1404, + 1403, 1404, 1394, 1404, 1406, 1394, 1404, 1405, 1406, 1405, 1395, 1406, + 1393, 1407, 1408, 1407, 1409, 1408, 1407, 1394, 1409, 1394, 1410, 1409, + 1408, 1409, 1316, 1409, 1411, 1316, 1409, 1410, 1411, 1410, 1396, 1411, + 1394, 1412, 1413, 1412, 1414, 1413, 1412, 1395, 1414, 1395, 1415, 1414, + 1413, 1414, 1396, 1414, 1416, 1396, 1414, 1415, 1416, 1415, 1311, 1416, + 1417, 1431, 1432, 1431, 1433, 1432, 1431, 1426, 1433, 1426, 1434, 1433, + 1432, 1433, 1427, 1433, 1435, 1427, 1433, 1434, 1435, 1434, 1428, 1435, + 1426, 1436, 1437, 1436, 1438, 1437, 1436, 1421, 1438, 1421, 1439, 1438, + 1437, 1438, 1428, 1438, 1440, 1428, 1438, 1439, 1440, 1439, 1429, 1440, + 1427, 1441, 1442, 1441, 1443, 1442, 1441, 1428, 1443, 1428, 1444, 1443, + 1442, 1443, 1422, 1443, 1445, 1422, 1443, 1444, 1445, 1444, 1430, 1445, + 1428, 1446, 1447, 1446, 1448, 1447, 1446, 1429, 1448, 1429, 1449, 1448, + 1447, 1448, 1430, 1448, 1450, 1430, 1448, 1449, 1450, 1449, 1423, 1450, + 1421, 1456, 1457, 1456, 1458, 1457, 1456, 1451, 1458, 1451, 1459, 1458, + 1457, 1458, 1452, 1458, 1460, 1452, 1458, 1459, 1460, 1459, 1453, 1460, + 1451, 1461, 1462, 1461, 1463, 1462, 1461, 1418, 1463, 1418, 1464, 1463, + 1462, 1463, 1453, 1463, 1465, 1453, 1463, 1464, 1465, 1464, 1454, 1465, + 1452, 1466, 1467, 1466, 1468, 1467, 1466, 1453, 1468, 1453, 1469, 1468, + 1467, 1468, 1423, 1468, 1470, 1423, 1468, 1469, 1470, 1469, 1455, 1470, + 1453, 1471, 1472, 1471, 1473, 1472, 1471, 1454, 1473, 1454, 1474, 1473, + 1472, 1473, 1455, 1473, 1475, 1455, 1473, 1474, 1475, 1474, 1424, 1475, + 1422, 1481, 1482, 1481, 1483, 1482, 1481, 1476, 1483, 1476, 1484, 1483, + 1482, 1483, 1477, 1483, 1485, 1477, 1483, 1484, 1485, 1484, 1478, 1485, + 1476, 1486, 1487, 1486, 1488, 1487, 1486, 1423, 1488, 1423, 1489, 1488, + 1487, 1488, 1478, 1488, 1490, 1478, 1488, 1489, 1490, 1489, 1479, 1490, + 1477, 1491, 1492, 1491, 1493, 1492, 1491, 1478, 1493, 1478, 1494, 1493, + 1492, 1493, 1419, 1493, 1495, 1419, 1493, 1494, 1495, 1494, 1480, 1495, + 1478, 1496, 1497, 1496, 1498, 1497, 1496, 1479, 1498, 1479, 1499, 1498, + 1497, 1498, 1480, 1498, 1500, 1480, 1498, 1499, 1500, 1499, 1425, 1500, + 1423, 1506, 1507, 1506, 1508, 1507, 1506, 1501, 1508, 1501, 1509, 1508, + 1507, 1508, 1502, 1508, 1510, 1502, 1508, 1509, 1510, 1509, 1503, 1510, + 1501, 1511, 1512, 1511, 1513, 1512, 1511, 1424, 1513, 1424, 1514, 1513, + 1512, 1513, 1503, 1513, 1515, 1503, 1513, 1514, 1515, 1514, 1504, 1515, + 1502, 1516, 1517, 1516, 1518, 1517, 1516, 1503, 1518, 1503, 1519, 1518, + 1517, 1518, 1425, 1518, 1520, 1425, 1518, 1519, 1520, 1519, 1505, 1520, + 1503, 1521, 1522, 1521, 1523, 1522, 1521, 1504, 1523, 1504, 1524, 1523, + 1522, 1523, 1505, 1523, 1525, 1505, 1523, 1524, 1525, 1524, 1420, 1525, + 1526, 1540, 1541, 1540, 1542, 1541, 1540, 1535, 1542, 1535, 1543, 1542, + 1541, 1542, 1536, 1542, 1544, 1536, 1542, 1543, 1544, 1543, 1537, 1544, + 1535, 1545, 1546, 1545, 1547, 1546, 1545, 1530, 1547, 1530, 1548, 1547, + 1546, 1547, 1537, 1547, 1549, 1537, 1547, 1548, 1549, 1548, 1538, 1549, + 1536, 1550, 1551, 1550, 1552, 1551, 1550, 1537, 1552, 1537, 1553, 1552, + 1551, 1552, 1531, 1552, 1554, 1531, 1552, 1553, 1554, 1553, 1539, 1554, + 1537, 1555, 1556, 1555, 1557, 1556, 1555, 1538, 1557, 1538, 1558, 1557, + 1556, 1557, 1539, 1557, 1559, 1539, 1557, 1558, 1559, 1558, 1532, 1559, + 1530, 1565, 1566, 1565, 1567, 1566, 1565, 1560, 1567, 1560, 1568, 1567, + 1566, 1567, 1561, 1567, 1569, 1561, 1567, 1568, 1569, 1568, 1562, 1569, + 1560, 1570, 1571, 1570, 1572, 1571, 1570, 1527, 1572, 1527, 1573, 1572, + 1571, 1572, 1562, 1572, 1574, 1562, 1572, 1573, 1574, 1573, 1563, 1574, + 1561, 1575, 1576, 1575, 1577, 1576, 1575, 1562, 1577, 1562, 1578, 1577, + 1576, 1577, 1532, 1577, 1579, 1532, 1577, 1578, 1579, 1578, 1564, 1579, + 1562, 1580, 1581, 1580, 1582, 1581, 1580, 1563, 1582, 1563, 1583, 1582, + 1581, 1582, 1564, 1582, 1584, 1564, 1582, 1583, 1584, 1583, 1533, 1584, + 1531, 1590, 1591, 1590, 1592, 1591, 1590, 1585, 1592, 1585, 1593, 1592, + 1591, 1592, 1586, 1592, 1594, 1586, 1592, 1593, 1594, 1593, 1587, 1594, + 1585, 1595, 1596, 1595, 1597, 1596, 1595, 1532, 1597, 1532, 1598, 1597, + 1596, 1597, 1587, 1597, 1599, 1587, 1597, 1598, 1599, 1598, 1588, 1599, + 1586, 1600, 1601, 1600, 1602, 1601, 1600, 1587, 1602, 1587, 1603, 1602, + 1601, 1602, 1528, 1602, 1604, 1528, 1602, 1603, 1604, 1603, 1589, 1604, + 1587, 1605, 1606, 1605, 1607, 1606, 1605, 1588, 1607, 1588, 1608, 1607, + 1606, 1607, 1589, 1607, 1609, 1589, 1607, 1608, 1609, 1608, 1534, 1609, + 1532, 1615, 1616, 1615, 1617, 1616, 1615, 1610, 1617, 1610, 1618, 1617, + 1616, 1617, 1611, 1617, 1619, 1611, 1617, 1618, 1619, 1618, 1612, 1619, + 1610, 1620, 1621, 1620, 1622, 1621, 1620, 1533, 1622, 1533, 1623, 1622, + 1621, 1622, 1612, 1622, 1624, 1612, 1622, 1623, 1624, 1623, 1613, 1624, + 1611, 1625, 1626, 1625, 1627, 1626, 1625, 1612, 1627, 1612, 1628, 1627, + 1626, 1627, 1534, 1627, 1629, 1534, 1627, 1628, 1629, 1628, 1614, 1629, + 1612, 1630, 1631, 1630, 1632, 1631, 1630, 1613, 1632, 1613, 1633, 1632, + 1631, 1632, 1614, 1632, 1634, 1614, 1632, 1633, 1634, 1633, 1529, 1634, + 1635, 1649, 1650, 1649, 1651, 1650, 1649, 1644, 1651, 1644, 1652, 1651, + 1650, 1651, 1645, 1651, 1653, 1645, 1651, 1652, 1653, 1652, 1646, 1653, + 1644, 1654, 1655, 1654, 1656, 1655, 1654, 1639, 1656, 1639, 1657, 1656, + 1655, 1656, 1646, 1656, 1658, 1646, 1656, 1657, 1658, 1657, 1647, 1658, + 1645, 1659, 1660, 1659, 1661, 1660, 1659, 1646, 1661, 1646, 1662, 1661, + 1660, 1661, 1640, 1661, 1663, 1640, 1661, 1662, 1663, 1662, 1648, 1663, + 1646, 1664, 1665, 1664, 1666, 1665, 1664, 1647, 1666, 1647, 1667, 1666, + 1665, 1666, 1648, 1666, 1668, 1648, 1666, 1667, 1668, 1667, 1641, 1668, + 1639, 1674, 1675, 1674, 1676, 1675, 1674, 1669, 1676, 1669, 1677, 1676, + 1675, 1676, 1670, 1676, 1678, 1670, 1676, 1677, 1678, 1677, 1671, 1678, + 1669, 1679, 1680, 1679, 1681, 1680, 1679, 1636, 1681, 1636, 1682, 1681, + 1680, 1681, 1671, 1681, 1683, 1671, 1681, 1682, 1683, 1682, 1672, 1683, + 1670, 1684, 1685, 1684, 1686, 1685, 1684, 1671, 1686, 1671, 1687, 1686, + 1685, 1686, 1641, 1686, 1688, 1641, 1686, 1687, 1688, 1687, 1673, 1688, + 1671, 1689, 1690, 1689, 1691, 1690, 1689, 1672, 1691, 1672, 1692, 1691, + 1690, 1691, 1673, 1691, 1693, 1673, 1691, 1692, 1693, 1692, 1642, 1693, + 1640, 1699, 1700, 1699, 1701, 1700, 1699, 1694, 1701, 1694, 1702, 1701, + 1700, 1701, 1695, 1701, 1703, 1695, 1701, 1702, 1703, 1702, 1696, 1703, + 1694, 1704, 1705, 1704, 1706, 1705, 1704, 1641, 1706, 1641, 1707, 1706, + 1705, 1706, 1696, 1706, 1708, 1696, 1706, 1707, 1708, 1707, 1697, 1708, + 1695, 1709, 1710, 1709, 1711, 1710, 1709, 1696, 1711, 1696, 1712, 1711, + 1710, 1711, 1637, 1711, 1713, 1637, 1711, 1712, 1713, 1712, 1698, 1713, + 1696, 1714, 1715, 1714, 1716, 1715, 1714, 1697, 1716, 1697, 1717, 1716, + 1715, 1716, 1698, 1716, 1718, 1698, 1716, 1717, 1718, 1717, 1643, 1718, + 1641, 1724, 1725, 1724, 1726, 1725, 1724, 1719, 1726, 1719, 1727, 1726, + 1725, 1726, 1720, 1726, 1728, 1720, 1726, 1727, 1728, 1727, 1721, 1728, + 1719, 1729, 1730, 1729, 1731, 1730, 1729, 1642, 1731, 1642, 1732, 1731, + 1730, 1731, 1721, 1731, 1733, 1721, 1731, 1732, 1733, 1732, 1722, 1733, + 1720, 1734, 1735, 1734, 1736, 1735, 1734, 1721, 1736, 1721, 1737, 1736, + 1735, 1736, 1643, 1736, 1738, 1643, 1736, 1737, 1738, 1737, 1723, 1738, + 1721, 1739, 1740, 1739, 1741, 1740, 1739, 1722, 1741, 1722, 1742, 1741, + 1740, 1741, 1723, 1741, 1743, 1723, 1741, 1742, 1743, 1742, 1638, 1743, + 1744, 1758, 1759, 1758, 1760, 1759, 1758, 1753, 1760, 1753, 1761, 1760, + 1759, 1760, 1754, 1760, 1762, 1754, 1760, 1761, 1762, 1761, 1755, 1762, + 1753, 1763, 1764, 1763, 1765, 1764, 1763, 1748, 1765, 1748, 1766, 1765, + 1764, 1765, 1755, 1765, 1767, 1755, 1765, 1766, 1767, 1766, 1756, 1767, + 1754, 1768, 1769, 1768, 1770, 1769, 1768, 1755, 1770, 1755, 1771, 1770, + 1769, 1770, 1749, 1770, 1772, 1749, 1770, 1771, 1772, 1771, 1757, 1772, + 1755, 1773, 1774, 1773, 1775, 1774, 1773, 1756, 1775, 1756, 1776, 1775, + 1774, 1775, 1757, 1775, 1777, 1757, 1775, 1776, 1777, 1776, 1750, 1777, + 1748, 1783, 1784, 1783, 1785, 1784, 1783, 1778, 1785, 1778, 1786, 1785, + 1784, 1785, 1779, 1785, 1787, 1779, 1785, 1786, 1787, 1786, 1780, 1787, + 1778, 1788, 1789, 1788, 1790, 1789, 1788, 1745, 1790, 1745, 1791, 1790, + 1789, 1790, 1780, 1790, 1792, 1780, 1790, 1791, 1792, 1791, 1781, 1792, + 1779, 1793, 1794, 1793, 1795, 1794, 1793, 1780, 1795, 1780, 1796, 1795, + 1794, 1795, 1750, 1795, 1797, 1750, 1795, 1796, 1797, 1796, 1782, 1797, + 1780, 1798, 1799, 1798, 1800, 1799, 1798, 1781, 1800, 1781, 1801, 1800, + 1799, 1800, 1782, 1800, 1802, 1782, 1800, 1801, 1802, 1801, 1751, 1802, + 1749, 1808, 1809, 1808, 1810, 1809, 1808, 1803, 1810, 1803, 1811, 1810, + 1809, 1810, 1804, 1810, 1812, 1804, 1810, 1811, 1812, 1811, 1805, 1812, + 1803, 1813, 1814, 1813, 1815, 1814, 1813, 1750, 1815, 1750, 1816, 1815, + 1814, 1815, 1805, 1815, 1817, 1805, 1815, 1816, 1817, 1816, 1806, 1817, + 1804, 1818, 1819, 1818, 1820, 1819, 1818, 1805, 1820, 1805, 1821, 1820, + 1819, 1820, 1746, 1820, 1822, 1746, 1820, 1821, 1822, 1821, 1807, 1822, + 1805, 1823, 1824, 1823, 1825, 1824, 1823, 1806, 1825, 1806, 1826, 1825, + 1824, 1825, 1807, 1825, 1827, 1807, 1825, 1826, 1827, 1826, 1752, 1827, + 1750, 1833, 1834, 1833, 1835, 1834, 1833, 1828, 1835, 1828, 1836, 1835, + 1834, 1835, 1829, 1835, 1837, 1829, 1835, 1836, 1837, 1836, 1830, 1837, + 1828, 1838, 1839, 1838, 1840, 1839, 1838, 1751, 1840, 1751, 1841, 1840, + 1839, 1840, 1830, 1840, 1842, 1830, 1840, 1841, 1842, 1841, 1831, 1842, + 1829, 1843, 1844, 1843, 1845, 1844, 1843, 1830, 1845, 1830, 1846, 1845, + 1844, 1845, 1752, 1845, 1847, 1752, 1845, 1846, 1847, 1846, 1832, 1847, + 1830, 1848, 1849, 1848, 1850, 1849, 1848, 1831, 1850, 1831, 1851, 1850, + 1849, 1850, 1832, 1850, 1852, 1832, 1850, 1851, 1852, 1851, 1747, 1852, + 1853, 1867, 1868, 1867, 1869, 1868, 1867, 1862, 1869, 1862, 1870, 1869, + 1868, 1869, 1863, 1869, 1871, 1863, 1869, 1870, 1871, 1870, 1864, 1871, + 1862, 1872, 1873, 1872, 1874, 1873, 1872, 1857, 1874, 1857, 1875, 1874, + 1873, 1874, 1864, 1874, 1876, 1864, 1874, 1875, 1876, 1875, 1865, 1876, + 1863, 1877, 1878, 1877, 1879, 1878, 1877, 1864, 1879, 1864, 1880, 1879, + 1878, 1879, 1858, 1879, 1881, 1858, 1879, 1880, 1881, 1880, 1866, 1881, + 1864, 1882, 1883, 1882, 1884, 1883, 1882, 1865, 1884, 1865, 1885, 1884, + 1883, 1884, 1866, 1884, 1886, 1866, 1884, 1885, 1886, 1885, 1859, 1886, + 1857, 1892, 1893, 1892, 1894, 1893, 1892, 1887, 1894, 1887, 1895, 1894, + 1893, 1894, 1888, 1894, 1896, 1888, 1894, 1895, 1896, 1895, 1889, 1896, + 1887, 1897, 1898, 1897, 1899, 1898, 1897, 1854, 1899, 1854, 1900, 1899, + 1898, 1899, 1889, 1899, 1901, 1889, 1899, 1900, 1901, 1900, 1890, 1901, + 1888, 1902, 1903, 1902, 1904, 1903, 1902, 1889, 1904, 1889, 1905, 1904, + 1903, 1904, 1859, 1904, 1906, 1859, 1904, 1905, 1906, 1905, 1891, 1906, + 1889, 1907, 1908, 1907, 1909, 1908, 1907, 1890, 1909, 1890, 1910, 1909, + 1908, 1909, 1891, 1909, 1911, 1891, 1909, 1910, 1911, 1910, 1860, 1911, + 1858, 1917, 1918, 1917, 1919, 1918, 1917, 1912, 1919, 1912, 1920, 1919, + 1918, 1919, 1913, 1919, 1921, 1913, 1919, 1920, 1921, 1920, 1914, 1921, + 1912, 1922, 1923, 1922, 1924, 1923, 1922, 1859, 1924, 1859, 1925, 1924, + 1923, 1924, 1914, 1924, 1926, 1914, 1924, 1925, 1926, 1925, 1915, 1926, + 1913, 1927, 1928, 1927, 1929, 1928, 1927, 1914, 1929, 1914, 1930, 1929, + 1928, 1929, 1855, 1929, 1931, 1855, 1929, 1930, 1931, 1930, 1916, 1931, + 1914, 1932, 1933, 1932, 1934, 1933, 1932, 1915, 1934, 1915, 1935, 1934, + 1933, 1934, 1916, 1934, 1936, 1916, 1934, 1935, 1936, 1935, 1861, 1936, + 1859, 1942, 1943, 1942, 1944, 1943, 1942, 1937, 1944, 1937, 1945, 1944, + 1943, 1944, 1938, 1944, 1946, 1938, 1944, 1945, 1946, 1945, 1939, 1946, + 1937, 1947, 1948, 1947, 1949, 1948, 1947, 1860, 1949, 1860, 1950, 1949, + 1948, 1949, 1939, 1949, 1951, 1939, 1949, 1950, 1951, 1950, 1940, 1951, + 1938, 1952, 1953, 1952, 1954, 1953, 1952, 1939, 1954, 1939, 1955, 1954, + 1953, 1954, 1861, 1954, 1956, 1861, 1954, 1955, 1956, 1955, 1941, 1956, + 1939, 1957, 1958, 1957, 1959, 1958, 1957, 1940, 1959, 1940, 1960, 1959, + 1958, 1959, 1941, 1959, 1961, 1941, 1959, 1960, 1961, 1960, 1856, 1961, + 1962, 1976, 1977, 1976, 1978, 1977, 1976, 1971, 1978, 1971, 1979, 1978, + 1977, 1978, 1972, 1978, 1980, 1972, 1978, 1979, 1980, 1979, 1973, 1980, + 1971, 1981, 1982, 1981, 1983, 1982, 1981, 1966, 1983, 1966, 1984, 1983, + 1982, 1983, 1973, 1983, 1985, 1973, 1983, 1984, 1985, 1984, 1974, 1985, + 1972, 1986, 1987, 1986, 1988, 1987, 1986, 1973, 1988, 1973, 1989, 1988, + 1987, 1988, 1967, 1988, 1990, 1967, 1988, 1989, 1990, 1989, 1975, 1990, + 1973, 1991, 1992, 1991, 1993, 1992, 1991, 1974, 1993, 1974, 1994, 1993, + 1992, 1993, 1975, 1993, 1995, 1975, 1993, 1994, 1995, 1994, 1968, 1995, + 1966, 2001, 2002, 2001, 2003, 2002, 2001, 1996, 2003, 1996, 2004, 2003, + 2002, 2003, 1997, 2003, 2005, 1997, 2003, 2004, 2005, 2004, 1998, 2005, + 1996, 2006, 2007, 2006, 2008, 2007, 2006, 1963, 2008, 1963, 2009, 2008, + 2007, 2008, 1998, 2008, 2010, 1998, 2008, 2009, 2010, 2009, 1999, 2010, + 1997, 2011, 2012, 2011, 2013, 2012, 2011, 1998, 2013, 1998, 2014, 2013, + 2012, 2013, 1968, 2013, 2015, 1968, 2013, 2014, 2015, 2014, 2000, 2015, + 1998, 2016, 2017, 2016, 2018, 2017, 2016, 1999, 2018, 1999, 2019, 2018, + 2017, 2018, 2000, 2018, 2020, 2000, 2018, 2019, 2020, 2019, 1969, 2020, + 1967, 2026, 2027, 2026, 2028, 2027, 2026, 2021, 2028, 2021, 2029, 2028, + 2027, 2028, 2022, 2028, 2030, 2022, 2028, 2029, 2030, 2029, 2023, 2030, + 2021, 2031, 2032, 2031, 2033, 2032, 2031, 1968, 2033, 1968, 2034, 2033, + 2032, 2033, 2023, 2033, 2035, 2023, 2033, 2034, 2035, 2034, 2024, 2035, + 2022, 2036, 2037, 2036, 2038, 2037, 2036, 2023, 2038, 2023, 2039, 2038, + 2037, 2038, 1964, 2038, 2040, 1964, 2038, 2039, 2040, 2039, 2025, 2040, + 2023, 2041, 2042, 2041, 2043, 2042, 2041, 2024, 2043, 2024, 2044, 2043, + 2042, 2043, 2025, 2043, 2045, 2025, 2043, 2044, 2045, 2044, 1970, 2045, + 1968, 2051, 2052, 2051, 2053, 2052, 2051, 2046, 2053, 2046, 2054, 2053, + 2052, 2053, 2047, 2053, 2055, 2047, 2053, 2054, 2055, 2054, 2048, 2055, + 2046, 2056, 2057, 2056, 2058, 2057, 2056, 1969, 2058, 1969, 2059, 2058, + 2057, 2058, 2048, 2058, 2060, 2048, 2058, 2059, 2060, 2059, 2049, 2060, + 2047, 2061, 2062, 2061, 2063, 2062, 2061, 2048, 2063, 2048, 2064, 2063, + 2062, 2063, 1970, 2063, 2065, 1970, 2063, 2064, 2065, 2064, 2050, 2065, + 2048, 2066, 2067, 2066, 2068, 2067, 2066, 2049, 2068, 2049, 2069, 2068, + 2067, 2068, 2050, 2068, 2070, 2050, 2068, 2069, 2070, 2069, 1965, 2070, + 2071, 2085, 2086, 2085, 2087, 2086, 2085, 2080, 2087, 2080, 2088, 2087, + 2086, 2087, 2081, 2087, 2089, 2081, 2087, 2088, 2089, 2088, 2082, 2089, + 2080, 2090, 2091, 2090, 2092, 2091, 2090, 2075, 2092, 2075, 2093, 2092, + 2091, 2092, 2082, 2092, 2094, 2082, 2092, 2093, 2094, 2093, 2083, 2094, + 2081, 2095, 2096, 2095, 2097, 2096, 2095, 2082, 2097, 2082, 2098, 2097, + 2096, 2097, 2076, 2097, 2099, 2076, 2097, 2098, 2099, 2098, 2084, 2099, + 2082, 2100, 2101, 2100, 2102, 2101, 2100, 2083, 2102, 2083, 2103, 2102, + 2101, 2102, 2084, 2102, 2104, 2084, 2102, 2103, 2104, 2103, 2077, 2104, + 2075, 2110, 2111, 2110, 2112, 2111, 2110, 2105, 2112, 2105, 2113, 2112, + 2111, 2112, 2106, 2112, 2114, 2106, 2112, 2113, 2114, 2113, 2107, 2114, + 2105, 2115, 2116, 2115, 2117, 2116, 2115, 2072, 2117, 2072, 2118, 2117, + 2116, 2117, 2107, 2117, 2119, 2107, 2117, 2118, 2119, 2118, 2108, 2119, + 2106, 2120, 2121, 2120, 2122, 2121, 2120, 2107, 2122, 2107, 2123, 2122, + 2121, 2122, 2077, 2122, 2124, 2077, 2122, 2123, 2124, 2123, 2109, 2124, + 2107, 2125, 2126, 2125, 2127, 2126, 2125, 2108, 2127, 2108, 2128, 2127, + 2126, 2127, 2109, 2127, 2129, 2109, 2127, 2128, 2129, 2128, 2078, 2129, + 2076, 2135, 2136, 2135, 2137, 2136, 2135, 2130, 2137, 2130, 2138, 2137, + 2136, 2137, 2131, 2137, 2139, 2131, 2137, 2138, 2139, 2138, 2132, 2139, + 2130, 2140, 2141, 2140, 2142, 2141, 2140, 2077, 2142, 2077, 2143, 2142, + 2141, 2142, 2132, 2142, 2144, 2132, 2142, 2143, 2144, 2143, 2133, 2144, + 2131, 2145, 2146, 2145, 2147, 2146, 2145, 2132, 2147, 2132, 2148, 2147, + 2146, 2147, 2073, 2147, 2149, 2073, 2147, 2148, 2149, 2148, 2134, 2149, + 2132, 2150, 2151, 2150, 2152, 2151, 2150, 2133, 2152, 2133, 2153, 2152, + 2151, 2152, 2134, 2152, 2154, 2134, 2152, 2153, 2154, 2153, 2079, 2154, + 2077, 2160, 2161, 2160, 2162, 2161, 2160, 2155, 2162, 2155, 2163, 2162, + 2161, 2162, 2156, 2162, 2164, 2156, 2162, 2163, 2164, 2163, 2157, 2164, + 2155, 2165, 2166, 2165, 2167, 2166, 2165, 2078, 2167, 2078, 2168, 2167, + 2166, 2167, 2157, 2167, 2169, 2157, 2167, 2168, 2169, 2168, 2158, 2169, + 2156, 2170, 2171, 2170, 2172, 2171, 2170, 2157, 2172, 2157, 2173, 2172, + 2171, 2172, 2079, 2172, 2174, 2079, 2172, 2173, 2174, 2173, 2159, 2174, + 2157, 2175, 2176, 2175, 2177, 2176, 2175, 2158, 2177, 2158, 2178, 2177, + 2176, 2177, 2159, 2177, 2179, 2159, 2177, 2178, 2179, 2178, 2074, 2179, + 2194, 2196, 2195, 2189, 2197, 2196, 2195, 2196, 2190, 2196, 2198, 2190, + 2196, 2197, 2198, 2197, 2191, 2198, 2199, 2201, 2200, 2184, 2202, 2201, + 2200, 2201, 2191, 2201, 2203, 2191, 2201, 2202, 2203, 2202, 2192, 2203, + 2190, 2204, 2205, 2204, 2206, 2205, 2204, 2191, 2206, 2191, 2207, 2206, + 2205, 2206, 2185, 2206, 2208, 2185, 2206, 2207, 2208, 2207, 2193, 2208, + 2191, 2209, 2210, 2209, 2211, 2210, 2209, 2192, 2211, 2192, 2212, 2211, + 2210, 2211, 2193, 2211, 2213, 2193, 2211, 2212, 2213, 2212, 2186, 2213, + 2219, 2221, 2220, 2214, 2222, 2221, 2220, 2221, 2215, 2221, 2223, 2215, + 2221, 2222, 2223, 2222, 2216, 2223, 2224, 2226, 2225, 2181, 2227, 2226, + 2225, 2226, 2216, 2226, 2228, 2216, 2226, 2227, 2228, 2227, 2217, 2228, + 2215, 2229, 2230, 2229, 2231, 2230, 2229, 2216, 2231, 2216, 2232, 2231, + 2230, 2231, 2186, 2231, 2233, 2186, 2231, 2232, 2233, 2232, 2218, 2233, + 2216, 2234, 2235, 2234, 2236, 2235, 2234, 2217, 2236, 2217, 2237, 2236, + 2235, 2236, 2218, 2236, 2238, 2218, 2236, 2237, 2238, 2237, 2187, 2238, + 2185, 2244, 2245, 2244, 2246, 2245, 2244, 2239, 2246, 2239, 2247, 2246, + 2245, 2246, 2240, 2246, 2248, 2240, 2246, 2247, 2248, 2247, 2241, 2248, + 2239, 2249, 2250, 2249, 2251, 2250, 2249, 2186, 2251, 2186, 2252, 2251, + 2250, 2251, 2241, 2251, 2253, 2241, 2251, 2252, 2253, 2252, 2242, 2253, + 2240, 2254, 2255, 2254, 2256, 2255, 2254, 2241, 2256, 2241, 2257, 2256, + 2255, 2256, 2182, 2256, 2258, 2182, 2256, 2257, 2258, 2257, 2243, 2258, + 2241, 2259, 2260, 2259, 2261, 2260, 2259, 2242, 2261, 2242, 2262, 2261, + 2260, 2261, 2243, 2261, 2263, 2243, 2261, 2262, 2263, 2262, 2188, 2263, + 2186, 2269, 2270, 2269, 2271, 2270, 2269, 2264, 2271, 2264, 2272, 2271, + 2270, 2271, 2265, 2271, 2273, 2265, 2271, 2272, 2273, 2272, 2266, 2273, + 2264, 2274, 2275, 2274, 2276, 2275, 2274, 2187, 2276, 2187, 2277, 2276, + 2275, 2276, 2266, 2276, 2278, 2266, 2276, 2277, 2278, 2277, 2267, 2278, + 2265, 2279, 2280, 2279, 2281, 2280, 2279, 2266, 2281, 2266, 2282, 2281, + 2280, 2281, 2188, 2281, 2283, 2188, 2281, 2282, 2283, 2282, 2268, 2283, + 2266, 2284, 2285, 2284, 2286, 2285, 2284, 2267, 2286, 2267, 2287, 2286, + 2285, 2286, 2268, 2286, 2288, 2268, 2286, 2287, 2288, 2287, 2183, 2288, + 2303, 2305, 2304, 2298, 2306, 2305, 2304, 2305, 2299, 2305, 2307, 2299, + 2305, 2306, 2307, 2306, 2300, 2307, 2308, 2310, 2309, 2293, 2311, 2310, + 2309, 2310, 2300, 2310, 2312, 2300, 2310, 2311, 2312, 2311, 2301, 2312, + 2299, 2313, 2314, 2313, 2315, 2314, 2313, 2300, 2315, 2300, 2316, 2315, + 2314, 2315, 2294, 2315, 2317, 2294, 2315, 2316, 2317, 2316, 2302, 2317, + 2300, 2318, 2319, 2318, 2320, 2319, 2318, 2301, 2320, 2301, 2321, 2320, + 2319, 2320, 2302, 2320, 2322, 2302, 2320, 2321, 2322, 2321, 2295, 2322, + 2328, 2330, 2329, 2323, 2331, 2330, 2329, 2330, 2324, 2330, 2332, 2324, + 2330, 2331, 2332, 2331, 2325, 2332, 2333, 2335, 2334, 2290, 2336, 2335, + 2334, 2335, 2325, 2335, 2337, 2325, 2335, 2336, 2337, 2336, 2326, 2337, + 2324, 2338, 2339, 2338, 2340, 2339, 2338, 2325, 2340, 2325, 2341, 2340, + 2339, 2340, 2295, 2340, 2342, 2295, 2340, 2341, 2342, 2341, 2327, 2342, + 2325, 2343, 2344, 2343, 2345, 2344, 2343, 2326, 2345, 2326, 2346, 2345, + 2344, 2345, 2327, 2345, 2347, 2327, 2345, 2346, 2347, 2346, 2296, 2347, + 2294, 2353, 2354, 2353, 2355, 2354, 2353, 2348, 2355, 2348, 2356, 2355, + 2354, 2355, 2349, 2355, 2357, 2349, 2355, 2356, 2357, 2356, 2350, 2357, + 2348, 2358, 2359, 2358, 2360, 2359, 2358, 2295, 2360, 2295, 2361, 2360, + 2359, 2360, 2350, 2360, 2362, 2350, 2360, 2361, 2362, 2361, 2351, 2362, + 2349, 2363, 2364, 2363, 2365, 2364, 2363, 2350, 2365, 2350, 2366, 2365, + 2364, 2365, 2291, 2365, 2367, 2291, 2365, 2366, 2367, 2366, 2352, 2367, + 2350, 2368, 2369, 2368, 2370, 2369, 2368, 2351, 2370, 2351, 2371, 2370, + 2369, 2370, 2352, 2370, 2372, 2352, 2370, 2371, 2372, 2371, 2297, 2372, + 2295, 2378, 2379, 2378, 2380, 2379, 2378, 2373, 2380, 2373, 2381, 2380, + 2379, 2380, 2374, 2380, 2382, 2374, 2380, 2381, 2382, 2381, 2375, 2382, + 2373, 2383, 2384, 2383, 2385, 2384, 2383, 2296, 2385, 2296, 2386, 2385, + 2384, 2385, 2375, 2385, 2387, 2375, 2385, 2386, 2387, 2386, 2376, 2387, + 2374, 2388, 2389, 2388, 2390, 2389, 2388, 2375, 2390, 2375, 2391, 2390, + 2389, 2390, 2297, 2390, 2392, 2297, 2390, 2391, 2392, 2391, 2377, 2392, + 2375, 2393, 2394, 2393, 2395, 2394, 2393, 2376, 2395, 2376, 2396, 2395, + 2394, 2395, 2377, 2395, 2397, 2377, 2395, 2396, 2397, 2396, 2292, 2397, + 2412, 2414, 2413, 2407, 2415, 2414, 2413, 2414, 2408, 2414, 2416, 2408, + 2414, 2415, 2416, 2415, 2409, 2416, 2417, 2419, 2418, 2402, 2420, 2419, + 2418, 2419, 2409, 2419, 2421, 2409, 2419, 2420, 2421, 2420, 2410, 2421, + 2408, 2422, 2423, 2422, 2424, 2423, 2422, 2409, 2424, 2409, 2425, 2424, + 2423, 2424, 2403, 2424, 2426, 2403, 2424, 2425, 2426, 2425, 2411, 2426, + 2409, 2427, 2428, 2427, 2429, 2428, 2427, 2410, 2429, 2410, 2430, 2429, + 2428, 2429, 2411, 2429, 2431, 2411, 2429, 2430, 2431, 2430, 2404, 2431, + 2437, 2439, 2438, 2432, 2440, 2439, 2438, 2439, 2433, 2439, 2441, 2433, + 2439, 2440, 2441, 2440, 2434, 2441, 2442, 2444, 2443, 2399, 2445, 2444, + 2443, 2444, 2434, 2444, 2446, 2434, 2444, 2445, 2446, 2445, 2435, 2446, + 2433, 2447, 2448, 2447, 2449, 2448, 2447, 2434, 2449, 2434, 2450, 2449, + 2448, 2449, 2404, 2449, 2451, 2404, 2449, 2450, 2451, 2450, 2436, 2451, + 2434, 2452, 2453, 2452, 2454, 2453, 2452, 2435, 2454, 2435, 2455, 2454, + 2453, 2454, 2436, 2454, 2456, 2436, 2454, 2455, 2456, 2455, 2405, 2456, + 2403, 2462, 2463, 2462, 2464, 2463, 2462, 2457, 2464, 2457, 2465, 2464, + 2463, 2464, 2458, 2464, 2466, 2458, 2464, 2465, 2466, 2465, 2459, 2466, + 2457, 2467, 2468, 2467, 2469, 2468, 2467, 2404, 2469, 2404, 2470, 2469, + 2468, 2469, 2459, 2469, 2471, 2459, 2469, 2470, 2471, 2470, 2460, 2471, + 2458, 2472, 2473, 2472, 2474, 2473, 2472, 2459, 2474, 2459, 2475, 2474, + 2473, 2474, 2400, 2474, 2476, 2400, 2474, 2475, 2476, 2475, 2461, 2476, + 2459, 2477, 2478, 2477, 2479, 2478, 2477, 2460, 2479, 2460, 2480, 2479, + 2478, 2479, 2461, 2479, 2481, 2461, 2479, 2480, 2481, 2480, 2406, 2481, + 2404, 2487, 2488, 2487, 2489, 2488, 2487, 2482, 2489, 2482, 2490, 2489, + 2488, 2489, 2483, 2489, 2491, 2483, 2489, 2490, 2491, 2490, 2484, 2491, + 2482, 2492, 2493, 2492, 2494, 2493, 2492, 2405, 2494, 2405, 2495, 2494, + 2493, 2494, 2484, 2494, 2496, 2484, 2494, 2495, 2496, 2495, 2485, 2496, + 2483, 2497, 2498, 2497, 2499, 2498, 2497, 2484, 2499, 2484, 2500, 2499, + 2498, 2499, 2406, 2499, 2501, 2406, 2499, 2500, 2501, 2500, 2486, 2501, + 2484, 2502, 2503, 2502, 2504, 2503, 2502, 2485, 2504, 2485, 2505, 2504, + 2503, 2504, 2486, 2504, 2506, 2486, 2504, 2505, 2506, 2505, 2401, 2506, + 2521, 2523, 2522, 2516, 2524, 2523, 2522, 2523, 2517, 2523, 2525, 2517, + 2523, 2524, 2525, 2524, 2518, 2525, 2526, 2528, 2527, 2511, 2529, 2528, + 2527, 2528, 2518, 2528, 2530, 2518, 2528, 2529, 2530, 2529, 2519, 2530, + 2517, 2531, 2532, 2531, 2533, 2532, 2531, 2518, 2533, 2518, 2534, 2533, + 2532, 2533, 2512, 2533, 2535, 2512, 2533, 2534, 2535, 2534, 2520, 2535, + 2518, 2536, 2537, 2536, 2538, 2537, 2536, 2519, 2538, 2519, 2539, 2538, + 2537, 2538, 2520, 2538, 2540, 2520, 2538, 2539, 2540, 2539, 2513, 2540, + 2546, 2548, 2547, 2541, 2549, 2548, 2547, 2548, 2542, 2548, 2550, 2542, + 2548, 2549, 2550, 2549, 2543, 2550, 2551, 2553, 2552, 2508, 2554, 2553, + 2552, 2553, 2543, 2553, 2555, 2543, 2553, 2554, 2555, 2554, 2544, 2555, + 2542, 2556, 2557, 2556, 2558, 2557, 2556, 2543, 2558, 2543, 2559, 2558, + 2557, 2558, 2513, 2558, 2560, 2513, 2558, 2559, 2560, 2559, 2545, 2560, + 2543, 2561, 2562, 2561, 2563, 2562, 2561, 2544, 2563, 2544, 2564, 2563, + 2562, 2563, 2545, 2563, 2565, 2545, 2563, 2564, 2565, 2564, 2514, 2565, + 2512, 2571, 2572, 2571, 2573, 2572, 2571, 2566, 2573, 2566, 2574, 2573, + 2572, 2573, 2567, 2573, 2575, 2567, 2573, 2574, 2575, 2574, 2568, 2575, + 2566, 2576, 2577, 2576, 2578, 2577, 2576, 2513, 2578, 2513, 2579, 2578, + 2577, 2578, 2568, 2578, 2580, 2568, 2578, 2579, 2580, 2579, 2569, 2580, + 2567, 2581, 2582, 2581, 2583, 2582, 2581, 2568, 2583, 2568, 2584, 2583, + 2582, 2583, 2509, 2583, 2585, 2509, 2583, 2584, 2585, 2584, 2570, 2585, + 2568, 2586, 2587, 2586, 2588, 2587, 2586, 2569, 2588, 2569, 2589, 2588, + 2587, 2588, 2570, 2588, 2590, 2570, 2588, 2589, 2590, 2589, 2515, 2590, + 2513, 2596, 2597, 2596, 2598, 2597, 2596, 2591, 2598, 2591, 2599, 2598, + 2597, 2598, 2592, 2598, 2600, 2592, 2598, 2599, 2600, 2599, 2593, 2600, + 2591, 2601, 2602, 2601, 2603, 2602, 2601, 2514, 2603, 2514, 2604, 2603, + 2602, 2603, 2593, 2603, 2605, 2593, 2603, 2604, 2605, 2604, 2594, 2605, + 2592, 2606, 2607, 2606, 2608, 2607, 2606, 2593, 2608, 2593, 2609, 2608, + 2607, 2608, 2515, 2608, 2610, 2515, 2608, 2609, 2610, 2609, 2595, 2610, + 2593, 2611, 2612, 2611, 2613, 2612, 2611, 2594, 2613, 2594, 2614, 2613, + 2612, 2613, 2595, 2613, 2615, 2595, 2613, 2614, 2615, 2614, 2510, 2615, + 2616, 2630, 2631, 2630, 2632, 2631, 2630, 2625, 2632, 2625, 2633, 2632, + 2631, 2632, 2626, 2632, 2634, 2626, 2632, 2633, 2634, 2633, 2627, 2634, + 2625, 2635, 2636, 2635, 2637, 2636, 2635, 2620, 2637, 2620, 2638, 2637, + 2636, 2637, 2627, 2637, 2639, 2627, 2637, 2638, 2639, 2638, 2628, 2639, + 2626, 2640, 2641, 2640, 2642, 2641, 2640, 2627, 2642, 2627, 2643, 2642, + 2641, 2642, 2621, 2642, 2644, 2621, 2642, 2643, 2644, 2643, 2629, 2644, + 2627, 2645, 2646, 2645, 2647, 2646, 2645, 2628, 2647, 2628, 2648, 2647, + 2646, 2647, 2629, 2647, 2649, 2629, 2647, 2648, 2649, 2648, 2622, 2649, + 2620, 2655, 2656, 2655, 2657, 2656, 2655, 2650, 2657, 2650, 2658, 2657, + 2656, 2657, 2651, 2657, 2659, 2651, 2657, 2658, 2659, 2658, 2652, 2659, + 2650, 2660, 2661, 2660, 2662, 2661, 2660, 2617, 2662, 2617, 2663, 2662, + 2661, 2662, 2652, 2662, 2664, 2652, 2662, 2663, 2664, 2663, 2653, 2664, + 2651, 2665, 2666, 2665, 2667, 2666, 2665, 2652, 2667, 2652, 2668, 2667, + 2666, 2667, 2622, 2667, 2669, 2622, 2667, 2668, 2669, 2668, 2654, 2669, + 2652, 2670, 2671, 2670, 2672, 2671, 2670, 2653, 2672, 2653, 2673, 2672, + 2671, 2672, 2654, 2672, 2674, 2654, 2672, 2673, 2674, 2673, 2623, 2674, + 2621, 2680, 2681, 2680, 2682, 2681, 2680, 2675, 2682, 2675, 2683, 2682, + 2681, 2682, 2676, 2682, 2684, 2676, 2682, 2683, 2684, 2683, 2677, 2684, + 2675, 2685, 2686, 2685, 2687, 2686, 2685, 2622, 2687, 2622, 2688, 2687, + 2686, 2687, 2677, 2687, 2689, 2677, 2687, 2688, 2689, 2688, 2678, 2689, + 2676, 2690, 2691, 2690, 2692, 2691, 2690, 2677, 2692, 2677, 2693, 2692, + 2691, 2692, 2618, 2692, 2694, 2618, 2692, 2693, 2694, 2693, 2679, 2694, + 2677, 2695, 2696, 2695, 2697, 2696, 2695, 2678, 2697, 2678, 2698, 2697, + 2696, 2697, 2679, 2697, 2699, 2679, 2697, 2698, 2699, 2698, 2624, 2699, + 2622, 2705, 2706, 2705, 2707, 2706, 2705, 2700, 2707, 2700, 2708, 2707, + 2706, 2707, 2701, 2707, 2709, 2701, 2707, 2708, 2709, 2708, 2702, 2709, + 2700, 2710, 2711, 2710, 2712, 2711, 2710, 2623, 2712, 2623, 2713, 2712, + 2711, 2712, 2702, 2712, 2714, 2702, 2712, 2713, 2714, 2713, 2703, 2714, + 2701, 2715, 2716, 2715, 2717, 2716, 2715, 2702, 2717, 2702, 2718, 2717, + 2716, 2717, 2624, 2717, 2719, 2624, 2717, 2718, 2719, 2718, 2704, 2719, + 2702, 2720, 2721, 2720, 2722, 2721, 2720, 2703, 2722, 2703, 2723, 2722, + 2721, 2722, 2704, 2722, 2724, 2704, 2722, 2723, 2724, 2723, 2619, 2724, + 2725, 2739, 2740, 2739, 2741, 2740, 2739, 2734, 2741, 2734, 2742, 2741, + 2740, 2741, 2735, 2741, 2743, 2735, 2741, 2742, 2743, 2742, 2736, 2743, + 2734, 2744, 2745, 2744, 2746, 2745, 2744, 2729, 2746, 2729, 2747, 2746, + 2745, 2746, 2736, 2746, 2748, 2736, 2746, 2747, 2748, 2747, 2737, 2748, + 2735, 2749, 2750, 2749, 2751, 2750, 2749, 2736, 2751, 2736, 2752, 2751, + 2750, 2751, 2730, 2751, 2753, 2730, 2751, 2752, 2753, 2752, 2738, 2753, + 2736, 2754, 2755, 2754, 2756, 2755, 2754, 2737, 2756, 2737, 2757, 2756, + 2755, 2756, 2738, 2756, 2758, 2738, 2756, 2757, 2758, 2757, 2731, 2758, + 2729, 2764, 2765, 2764, 2766, 2765, 2764, 2759, 2766, 2759, 2767, 2766, + 2765, 2766, 2760, 2766, 2768, 2760, 2766, 2767, 2768, 2767, 2761, 2768, + 2759, 2769, 2770, 2769, 2771, 2770, 2769, 2726, 2771, 2726, 2772, 2771, + 2770, 2771, 2761, 2771, 2773, 2761, 2771, 2772, 2773, 2772, 2762, 2773, + 2760, 2774, 2775, 2774, 2776, 2775, 2774, 2761, 2776, 2761, 2777, 2776, + 2775, 2776, 2731, 2776, 2778, 2731, 2776, 2777, 2778, 2777, 2763, 2778, + 2761, 2779, 2780, 2779, 2781, 2780, 2779, 2762, 2781, 2762, 2782, 2781, + 2780, 2781, 2763, 2781, 2783, 2763, 2781, 2782, 2783, 2782, 2732, 2783, + 2730, 2789, 2790, 2789, 2791, 2790, 2789, 2784, 2791, 2784, 2792, 2791, + 2790, 2791, 2785, 2791, 2793, 2785, 2791, 2792, 2793, 2792, 2786, 2793, + 2784, 2794, 2795, 2794, 2796, 2795, 2794, 2731, 2796, 2731, 2797, 2796, + 2795, 2796, 2786, 2796, 2798, 2786, 2796, 2797, 2798, 2797, 2787, 2798, + 2785, 2799, 2800, 2799, 2801, 2800, 2799, 2786, 2801, 2786, 2802, 2801, + 2800, 2801, 2727, 2801, 2803, 2727, 2801, 2802, 2803, 2802, 2788, 2803, + 2786, 2804, 2805, 2804, 2806, 2805, 2804, 2787, 2806, 2787, 2807, 2806, + 2805, 2806, 2788, 2806, 2808, 2788, 2806, 2807, 2808, 2807, 2733, 2808, + 2731, 2814, 2815, 2814, 2816, 2815, 2814, 2809, 2816, 2809, 2817, 2816, + 2815, 2816, 2810, 2816, 2818, 2810, 2816, 2817, 2818, 2817, 2811, 2818, + 2809, 2819, 2820, 2819, 2821, 2820, 2819, 2732, 2821, 2732, 2822, 2821, + 2820, 2821, 2811, 2821, 2823, 2811, 2821, 2822, 2823, 2822, 2812, 2823, + 2810, 2824, 2825, 2824, 2826, 2825, 2824, 2811, 2826, 2811, 2827, 2826, + 2825, 2826, 2733, 2826, 2828, 2733, 2826, 2827, 2828, 2827, 2813, 2828, + 2811, 2829, 2830, 2829, 2831, 2830, 2829, 2812, 2831, 2812, 2832, 2831, + 2830, 2831, 2813, 2831, 2833, 2813, 2831, 2832, 2833, 2832, 2728, 2833, + 2834, 2848, 2849, 2848, 2850, 2849, 2848, 2843, 2850, 2843, 2851, 2850, + 2849, 2850, 2844, 2850, 2852, 2844, 2850, 2851, 2852, 2851, 2845, 2852, + 2843, 2853, 2854, 2853, 2855, 2854, 2853, 2838, 2855, 2838, 2856, 2855, + 2854, 2855, 2845, 2855, 2857, 2845, 2855, 2856, 2857, 2856, 2846, 2857, + 2844, 2858, 2859, 2858, 2860, 2859, 2858, 2845, 2860, 2845, 2861, 2860, + 2859, 2860, 2839, 2860, 2862, 2839, 2860, 2861, 2862, 2861, 2847, 2862, + 2845, 2863, 2864, 2863, 2865, 2864, 2863, 2846, 2865, 2846, 2866, 2865, + 2864, 2865, 2847, 2865, 2867, 2847, 2865, 2866, 2867, 2866, 2840, 2867, + 2838, 2873, 2874, 2873, 2875, 2874, 2873, 2868, 2875, 2868, 2876, 2875, + 2874, 2875, 2869, 2875, 2877, 2869, 2875, 2876, 2877, 2876, 2870, 2877, + 2868, 2878, 2879, 2878, 2880, 2879, 2878, 2835, 2880, 2835, 2881, 2880, + 2879, 2880, 2870, 2880, 2882, 2870, 2880, 2881, 2882, 2881, 2871, 2882, + 2869, 2883, 2884, 2883, 2885, 2884, 2883, 2870, 2885, 2870, 2886, 2885, + 2884, 2885, 2840, 2885, 2887, 2840, 2885, 2886, 2887, 2886, 2872, 2887, + 2870, 2888, 2889, 2888, 2890, 2889, 2888, 2871, 2890, 2871, 2891, 2890, + 2889, 2890, 2872, 2890, 2892, 2872, 2890, 2891, 2892, 2891, 2841, 2892, + 2839, 2898, 2899, 2898, 2900, 2899, 2898, 2893, 2900, 2893, 2901, 2900, + 2899, 2900, 2894, 2900, 2902, 2894, 2900, 2901, 2902, 2901, 2895, 2902, + 2893, 2903, 2904, 2903, 2905, 2904, 2903, 2840, 2905, 2840, 2906, 2905, + 2904, 2905, 2895, 2905, 2907, 2895, 2905, 2906, 2907, 2906, 2896, 2907, + 2894, 2908, 2909, 2908, 2910, 2909, 2908, 2895, 2910, 2895, 2911, 2910, + 2909, 2910, 2836, 2910, 2912, 2836, 2910, 2911, 2912, 2911, 2897, 2912, + 2895, 2913, 2914, 2913, 2915, 2914, 2913, 2896, 2915, 2896, 2916, 2915, + 2914, 2915, 2897, 2915, 2917, 2897, 2915, 2916, 2917, 2916, 2842, 2917, + 2840, 2923, 2924, 2923, 2925, 2924, 2923, 2918, 2925, 2918, 2926, 2925, + 2924, 2925, 2919, 2925, 2927, 2919, 2925, 2926, 2927, 2926, 2920, 2927, + 2918, 2928, 2929, 2928, 2930, 2929, 2928, 2841, 2930, 2841, 2931, 2930, + 2929, 2930, 2920, 2930, 2932, 2920, 2930, 2931, 2932, 2931, 2921, 2932, + 2919, 2933, 2934, 2933, 2935, 2934, 2933, 2920, 2935, 2920, 2936, 2935, + 2934, 2935, 2842, 2935, 2937, 2842, 2935, 2936, 2937, 2936, 2922, 2937, + 2920, 2938, 2939, 2938, 2940, 2939, 2938, 2921, 2940, 2921, 2941, 2940, + 2939, 2940, 2922, 2940, 2942, 2922, 2940, 2941, 2942, 2941, 2837, 2942, + 2943, 2957, 2958, 2957, 2959, 2958, 2957, 2952, 2959, 2952, 2960, 2959, + 2958, 2959, 2953, 2959, 2961, 2953, 2959, 2960, 2961, 2960, 2954, 2961, + 2952, 2962, 2963, 2962, 2964, 2963, 2962, 2947, 2964, 2947, 2965, 2964, + 2963, 2964, 2954, 2964, 2966, 2954, 2964, 2965, 2966, 2965, 2955, 2966, + 2953, 2967, 2968, 2967, 2969, 2968, 2967, 2954, 2969, 2954, 2970, 2969, + 2968, 2969, 2948, 2969, 2971, 2948, 2969, 2970, 2971, 2970, 2956, 2971, + 2954, 2972, 2973, 2972, 2974, 2973, 2972, 2955, 2974, 2955, 2975, 2974, + 2973, 2974, 2956, 2974, 2976, 2956, 2974, 2975, 2976, 2975, 2949, 2976, + 2947, 2982, 2983, 2982, 2984, 2983, 2982, 2977, 2984, 2977, 2985, 2984, + 2983, 2984, 2978, 2984, 2986, 2978, 2984, 2985, 2986, 2985, 2979, 2986, + 2977, 2987, 2988, 2987, 2989, 2988, 2987, 2944, 2989, 2944, 2990, 2989, + 2988, 2989, 2979, 2989, 2991, 2979, 2989, 2990, 2991, 2990, 2980, 2991, + 2978, 2992, 2993, 2992, 2994, 2993, 2992, 2979, 2994, 2979, 2995, 2994, + 2993, 2994, 2949, 2994, 2996, 2949, 2994, 2995, 2996, 2995, 2981, 2996, + 2979, 2997, 2998, 2997, 2999, 2998, 2997, 2980, 2999, 2980, 3000, 2999, + 2998, 2999, 2981, 2999, 3001, 2981, 2999, 3000, 3001, 3000, 2950, 3001, + 2948, 3007, 3008, 3007, 3009, 3008, 3007, 3002, 3009, 3002, 3010, 3009, + 3008, 3009, 3003, 3009, 3011, 3003, 3009, 3010, 3011, 3010, 3004, 3011, + 3002, 3012, 3013, 3012, 3014, 3013, 3012, 2949, 3014, 2949, 3015, 3014, + 3013, 3014, 3004, 3014, 3016, 3004, 3014, 3015, 3016, 3015, 3005, 3016, + 3003, 3017, 3018, 3017, 3019, 3018, 3017, 3004, 3019, 3004, 3020, 3019, + 3018, 3019, 2945, 3019, 3021, 2945, 3019, 3020, 3021, 3020, 3006, 3021, + 3004, 3022, 3023, 3022, 3024, 3023, 3022, 3005, 3024, 3005, 3025, 3024, + 3023, 3024, 3006, 3024, 3026, 3006, 3024, 3025, 3026, 3025, 2951, 3026, + 2949, 3032, 3033, 3032, 3034, 3033, 3032, 3027, 3034, 3027, 3035, 3034, + 3033, 3034, 3028, 3034, 3036, 3028, 3034, 3035, 3036, 3035, 3029, 3036, + 3027, 3037, 3038, 3037, 3039, 3038, 3037, 2950, 3039, 2950, 3040, 3039, + 3038, 3039, 3029, 3039, 3041, 3029, 3039, 3040, 3041, 3040, 3030, 3041, + 3028, 3042, 3043, 3042, 3044, 3043, 3042, 3029, 3044, 3029, 3045, 3044, + 3043, 3044, 2951, 3044, 3046, 2951, 3044, 3045, 3046, 3045, 3031, 3046, + 3029, 3047, 3048, 3047, 3049, 3048, 3047, 3030, 3049, 3030, 3050, 3049, + 3048, 3049, 3031, 3049, 3051, 3031, 3049, 3050, 3051, 3050, 2946, 3051, + 3066, 3068, 3067, 3061, 3069, 3068, 3067, 3068, 3062, 3068, 3070, 3062, + 3068, 3069, 3070, 3069, 3063, 3070, 3071, 3073, 3072, 3056, 3074, 3073, + 3072, 3073, 3063, 3073, 3075, 3063, 3073, 3074, 3075, 3074, 3064, 3075, + 3062, 3076, 3077, 3076, 3078, 3077, 3076, 3063, 3078, 3063, 3079, 3078, + 3077, 3078, 3057, 3078, 3080, 3057, 3078, 3079, 3080, 3079, 3065, 3080, + 3063, 3081, 3082, 3081, 3083, 3082, 3081, 3064, 3083, 3064, 3084, 3083, + 3082, 3083, 3065, 3083, 3085, 3065, 3083, 3084, 3085, 3084, 3058, 3085, + 3091, 3093, 3092, 3086, 3094, 3093, 3092, 3093, 3087, 3093, 3095, 3087, + 3093, 3094, 3095, 3094, 3088, 3095, 3096, 3098, 3097, 3053, 3099, 3098, + 3097, 3098, 3088, 3098, 3100, 3088, 3098, 3099, 3100, 3099, 3089, 3100, + 3087, 3101, 3102, 3101, 3103, 3102, 3101, 3088, 3103, 3088, 3104, 3103, + 3102, 3103, 3058, 3103, 3105, 3058, 3103, 3104, 3105, 3104, 3090, 3105, + 3088, 3106, 3107, 3106, 3108, 3107, 3106, 3089, 3108, 3089, 3109, 3108, + 3107, 3108, 3090, 3108, 3110, 3090, 3108, 3109, 3110, 3109, 3059, 3110, + 3057, 3116, 3117, 3116, 3118, 3117, 3116, 3111, 3118, 3111, 3119, 3118, + 3117, 3118, 3112, 3118, 3120, 3112, 3118, 3119, 3120, 3119, 3113, 3120, + 3111, 3121, 3122, 3121, 3123, 3122, 3121, 3058, 3123, 3058, 3124, 3123, + 3122, 3123, 3113, 3123, 3125, 3113, 3123, 3124, 3125, 3124, 3114, 3125, + 3112, 3126, 3127, 3126, 3128, 3127, 3126, 3113, 3128, 3113, 3129, 3128, + 3127, 3128, 3054, 3128, 3130, 3054, 3128, 3129, 3130, 3129, 3115, 3130, + 3113, 3131, 3132, 3131, 3133, 3132, 3131, 3114, 3133, 3114, 3134, 3133, + 3132, 3133, 3115, 3133, 3135, 3115, 3133, 3134, 3135, 3134, 3060, 3135, + 3058, 3141, 3142, 3141, 3143, 3142, 3141, 3136, 3143, 3136, 3144, 3143, + 3142, 3143, 3137, 3143, 3145, 3137, 3143, 3144, 3145, 3144, 3138, 3145, + 3136, 3146, 3147, 3146, 3148, 3147, 3146, 3059, 3148, 3059, 3149, 3148, + 3147, 3148, 3138, 3148, 3150, 3138, 3148, 3149, 3150, 3149, 3139, 3150, + 3137, 3151, 3152, 3151, 3153, 3152, 3151, 3138, 3153, 3138, 3154, 3153, + 3152, 3153, 3060, 3153, 3155, 3060, 3153, 3154, 3155, 3154, 3140, 3155, + 3138, 3156, 3157, 3156, 3158, 3157, 3156, 3139, 3158, 3139, 3159, 3158, + 3157, 3158, 3140, 3158, 3160, 3140, 3158, 3159, 3160, 3159, 3055, 3160, + 3175, 3177, 3176, 3170, 3178, 3177, 3176, 3177, 3171, 3177, 3179, 3171, + 3177, 3178, 3179, 3178, 3172, 3179, 3180, 3182, 3181, 3165, 3183, 3182, + 3181, 3182, 3172, 3182, 3184, 3172, 3182, 3183, 3184, 3183, 3173, 3184, + 3171, 3185, 3186, 3185, 3187, 3186, 3185, 3172, 3187, 3172, 3188, 3187, + 3186, 3187, 3166, 3187, 3189, 3166, 3187, 3188, 3189, 3188, 3174, 3189, + 3172, 3190, 3191, 3190, 3192, 3191, 3190, 3173, 3192, 3173, 3193, 3192, + 3191, 3192, 3174, 3192, 3194, 3174, 3192, 3193, 3194, 3193, 3167, 3194, + 3200, 3202, 3201, 3195, 3203, 3202, 3201, 3202, 3196, 3202, 3204, 3196, + 3202, 3203, 3204, 3203, 3197, 3204, 3205, 3207, 3206, 3162, 3208, 3207, + 3206, 3207, 3197, 3207, 3209, 3197, 3207, 3208, 3209, 3208, 3198, 3209, + 3196, 3210, 3211, 3210, 3212, 3211, 3210, 3197, 3212, 3197, 3213, 3212, + 3211, 3212, 3167, 3212, 3214, 3167, 3212, 3213, 3214, 3213, 3199, 3214, + 3197, 3215, 3216, 3215, 3217, 3216, 3215, 3198, 3217, 3198, 3218, 3217, + 3216, 3217, 3199, 3217, 3219, 3199, 3217, 3218, 3219, 3218, 3168, 3219, + 3166, 3225, 3226, 3225, 3227, 3226, 3225, 3220, 3227, 3220, 3228, 3227, + 3226, 3227, 3221, 3227, 3229, 3221, 3227, 3228, 3229, 3228, 3222, 3229, + 3220, 3230, 3231, 3230, 3232, 3231, 3230, 3167, 3232, 3167, 3233, 3232, + 3231, 3232, 3222, 3232, 3234, 3222, 3232, 3233, 3234, 3233, 3223, 3234, + 3221, 3235, 3236, 3235, 3237, 3236, 3235, 3222, 3237, 3222, 3238, 3237, + 3236, 3237, 3163, 3237, 3239, 3163, 3237, 3238, 3239, 3238, 3224, 3239, + 3222, 3240, 3241, 3240, 3242, 3241, 3240, 3223, 3242, 3223, 3243, 3242, + 3241, 3242, 3224, 3242, 3244, 3224, 3242, 3243, 3244, 3243, 3169, 3244, + 3167, 3250, 3251, 3250, 3252, 3251, 3250, 3245, 3252, 3245, 3253, 3252, + 3251, 3252, 3246, 3252, 3254, 3246, 3252, 3253, 3254, 3253, 3247, 3254, + 3245, 3255, 3256, 3255, 3257, 3256, 3255, 3168, 3257, 3168, 3258, 3257, + 3256, 3257, 3247, 3257, 3259, 3247, 3257, 3258, 3259, 3258, 3248, 3259, + 3246, 3260, 3261, 3260, 3262, 3261, 3260, 3247, 3262, 3247, 3263, 3262, + 3261, 3262, 3169, 3262, 3264, 3169, 3262, 3263, 3264, 3263, 3249, 3264, + 3247, 3265, 3266, 3265, 3267, 3266, 3265, 3248, 3267, 3248, 3268, 3267, + 3266, 3267, 3249, 3267, 3269, 3249, 3267, 3268, 3269, 3268, 3164, 3269, + 3284, 3286, 3285, 3279, 3287, 3286, 3285, 3286, 3280, 3286, 3288, 3280, + 3286, 3287, 3288, 3287, 3281, 3288, 3289, 3291, 3290, 3274, 3292, 3291, + 3290, 3291, 3281, 3291, 3293, 3281, 3291, 3292, 3293, 3292, 3282, 3293, + 3280, 3294, 3295, 3294, 3296, 3295, 3294, 3281, 3296, 3281, 3297, 3296, + 3295, 3296, 3275, 3296, 3298, 3275, 3296, 3297, 3298, 3297, 3283, 3298, + 3281, 3299, 3300, 3299, 3301, 3300, 3299, 3282, 3301, 3282, 3302, 3301, + 3300, 3301, 3283, 3301, 3303, 3283, 3301, 3302, 3303, 3302, 3276, 3303, + 3309, 3311, 3310, 3304, 3312, 3311, 3310, 3311, 3305, 3311, 3313, 3305, + 3311, 3312, 3313, 3312, 3306, 3313, 3314, 3316, 3315, 3271, 3317, 3316, + 3315, 3316, 3306, 3316, 3318, 3306, 3316, 3317, 3318, 3317, 3307, 3318, + 3305, 3319, 3320, 3319, 3321, 3320, 3319, 3306, 3321, 3306, 3322, 3321, + 3320, 3321, 3276, 3321, 3323, 3276, 3321, 3322, 3323, 3322, 3308, 3323, + 3306, 3324, 3325, 3324, 3326, 3325, 3324, 3307, 3326, 3307, 3327, 3326, + 3325, 3326, 3308, 3326, 3328, 3308, 3326, 3327, 3328, 3327, 3277, 3328, + 3275, 3334, 3335, 3334, 3336, 3335, 3334, 3329, 3336, 3329, 3337, 3336, + 3335, 3336, 3330, 3336, 3338, 3330, 3336, 3337, 3338, 3337, 3331, 3338, + 3329, 3339, 3340, 3339, 3341, 3340, 3339, 3276, 3341, 3276, 3342, 3341, + 3340, 3341, 3331, 3341, 3343, 3331, 3341, 3342, 3343, 3342, 3332, 3343, + 3330, 3344, 3345, 3344, 3346, 3345, 3344, 3331, 3346, 3331, 3347, 3346, + 3345, 3346, 3272, 3346, 3348, 3272, 3346, 3347, 3348, 3347, 3333, 3348, + 3331, 3349, 3350, 3349, 3351, 3350, 3349, 3332, 3351, 3332, 3352, 3351, + 3350, 3351, 3333, 3351, 3353, 3333, 3351, 3352, 3353, 3352, 3278, 3353, + 3276, 3359, 3360, 3359, 3361, 3360, 3359, 3354, 3361, 3354, 3362, 3361, + 3360, 3361, 3355, 3361, 3363, 3355, 3361, 3362, 3363, 3362, 3356, 3363, + 3354, 3364, 3365, 3364, 3366, 3365, 3364, 3277, 3366, 3277, 3367, 3366, + 3365, 3366, 3356, 3366, 3368, 3356, 3366, 3367, 3368, 3367, 3357, 3368, + 3355, 3369, 3370, 3369, 3371, 3370, 3369, 3356, 3371, 3356, 3372, 3371, + 3370, 3371, 3278, 3371, 3373, 3278, 3371, 3372, 3373, 3372, 3358, 3373, + 3356, 3374, 3375, 3374, 3376, 3375, 3374, 3357, 3376, 3357, 3377, 3376, + 3375, 3376, 3358, 3376, 3378, 3358, 3376, 3377, 3378, 3377, 3273, 3378, + 3393, 3395, 3394, 3388, 3396, 3395, 3394, 3395, 3389, 3395, 3397, 3389, + 3395, 3396, 3397, 3396, 3390, 3397, 3398, 3400, 3399, 3383, 3401, 3400, + 3399, 3400, 3390, 3400, 3402, 3390, 3400, 3401, 3402, 3401, 3391, 3402, + 3389, 3403, 3404, 3403, 3405, 3404, 3403, 3390, 3405, 3390, 3406, 3405, + 3404, 3405, 3384, 3405, 3407, 3384, 3405, 3406, 3407, 3406, 3392, 3407, + 3390, 3408, 3409, 3408, 3410, 3409, 3408, 3391, 3410, 3391, 3411, 3410, + 3409, 3410, 3392, 3410, 3412, 3392, 3410, 3411, 3412, 3411, 3385, 3412, + 3418, 3420, 3419, 3413, 3421, 3420, 3419, 3420, 3414, 3420, 3422, 3414, + 3420, 3421, 3422, 3421, 3415, 3422, 3423, 3425, 3424, 3380, 3426, 3425, + 3424, 3425, 3415, 3425, 3427, 3415, 3425, 3426, 3427, 3426, 3416, 3427, + 3414, 3428, 3429, 3428, 3430, 3429, 3428, 3415, 3430, 3415, 3431, 3430, + 3429, 3430, 3385, 3430, 3432, 3385, 3430, 3431, 3432, 3431, 3417, 3432, + 3415, 3433, 3434, 3433, 3435, 3434, 3433, 3416, 3435, 3416, 3436, 3435, + 3434, 3435, 3417, 3435, 3437, 3417, 3435, 3436, 3437, 3436, 3386, 3437, + 3384, 3443, 3444, 3443, 3445, 3444, 3443, 3438, 3445, 3438, 3446, 3445, + 3444, 3445, 3439, 3445, 3447, 3439, 3445, 3446, 3447, 3446, 3440, 3447, + 3438, 3448, 3449, 3448, 3450, 3449, 3448, 3385, 3450, 3385, 3451, 3450, + 3449, 3450, 3440, 3450, 3452, 3440, 3450, 3451, 3452, 3451, 3441, 3452, + 3439, 3453, 3454, 3453, 3455, 3454, 3453, 3440, 3455, 3440, 3456, 3455, + 3454, 3455, 3381, 3455, 3457, 3381, 3455, 3456, 3457, 3456, 3442, 3457, + 3440, 3458, 3459, 3458, 3460, 3459, 3458, 3441, 3460, 3441, 3461, 3460, + 3459, 3460, 3442, 3460, 3462, 3442, 3460, 3461, 3462, 3461, 3387, 3462, + 3385, 3468, 3469, 3468, 3470, 3469, 3468, 3463, 3470, 3463, 3471, 3470, + 3469, 3470, 3464, 3470, 3472, 3464, 3470, 3471, 3472, 3471, 3465, 3472, + 3463, 3473, 3474, 3473, 3475, 3474, 3473, 3386, 3475, 3386, 3476, 3475, + 3474, 3475, 3465, 3475, 3477, 3465, 3475, 3476, 3477, 3476, 3466, 3477, + 3464, 3478, 3479, 3478, 3480, 3479, 3478, 3465, 3480, 3465, 3481, 3480, + 3479, 3480, 3387, 3480, 3482, 3387, 3480, 3481, 3482, 3481, 3467, 3482, + 3465, 3483, 3484, 3483, 3485, 3484, 3483, 3466, 3485, 3466, 3486, 3485, + 3484, 3485, 3467, 3485, 3487, 3467, 3485, 3486, 3487, 3486, 3382, 3487 +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/texture.fsh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/texture.fsh Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,11 @@ +uniform sampler2D tex; +varying mediump vec4 qColor; +varying mediump vec4 qSecondaryColor; +varying highp vec4 qTexCoord; + +void main(void) +{ + mediump vec4 col = texture2D(tex, qTexCoord.st); + mediump vec4 lcolor = clamp(qColor + vec4(qSecondaryColor.xyz, 0.0), 0.0, 1.0); + gl_FragColor = vec4(clamp(lcolor.rgb * (1.0 - col.a) + col.rgb * col.a, 0.0, 1.0), lcolor.a); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/view.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/view.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,240 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 "view.h" +#include "teapot.h" +#include "cube.h" +#include +#include +#include +#include "qaccelerometer.h" + +#if defined(QT_OPENGL_ES) +#define USE_BUFFERS 1 +#endif + +View::View(QWidget *parent) + : QGLWidget(parent), + sensitivity(0.1f), + painter(0), + showFrameRate(false) +{ + mainCamera = new Camera(this); + + roomCamera = new Camera(this); + roomCamera->setAdjustForAspectRatio(false); + + sensor = new QAccelerometer(this); + connect(sensor, SIGNAL(readingChanged()), this, SLOT(accelerometerTimeout())); + sensor->start(); + + time.start(); + + vertexBuffer = 0; + indexBuffer = 0; +} + +View::~View() +{ + delete painter; +} + +void View::resizeGL(int width, int height) +{ + glViewport(0, 0, width, height); +} + +void View::initializeGL() +{ +#if defined(QT_OPENGL_ES_2) + painter = new ShaderPainter(); +#else + painter = new FixedFunctionPainter(); +#endif + + glEnable(GL_DEPTH_TEST); + + roomMaterialBack = new Material(); + roomMaterialBack->setDiffuseColor(QColor(128, 100, 0)); + + roomMaterialLeftRight = new Material(); + roomMaterialLeftRight->setDiffuseColor(Qt::cyan); + + roomMaterialTopBottom = new Material(); + roomMaterialTopBottom->setDiffuseColor(Qt::yellow); + + cubeMaterial = new Material(); + cubeMaterial->setColor(QColor(170, 202, 0)); + + teapotMaterial = new Material(); + teapotMaterial->setAmbientColor(QColor(192, 150, 128)); + teapotMaterial->setSpecularColor(QColor(60, 60, 60)); + teapotMaterial->setShininess(128); + + roomModel = new LightModel(this); + roomModel->setAmbientSceneColor(Qt::white); + roomModel->setViewerPosition(LightModel::LocalViewer); + + normalModel = new LightModel(this); + + Light *light = new Light(this); + light->setPosition(QVector3D(0.0f, 0.0f, 3.0f)); + painter->setLight(light); + + texture = bindTexture(QImage(QLatin1String(":/qtlogo.png"))); + +#ifdef USE_BUFFERS + // Upload the teapot data into GL buffers for quicker rendering. + glGenBuffers(1, &vertexBuffer); + glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer); + glBufferData(GL_ARRAY_BUFFER, + teapotVertexCount * teapotVertexStride * sizeof(float), + teapotVertexData, GL_STATIC_DRAW); + glBindBuffer(GL_ARRAY_BUFFER, 0); + + glGenBuffers(1, &indexBuffer); + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuffer); + glBufferData(GL_ELEMENT_ARRAY_BUFFER, + teapotTriangleCount * 3 * sizeof(ushort), + teapotTriangleData, GL_STATIC_DRAW); + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); +#endif +} + +void View::paintGL() +{ + if (showFrameRate) + qWarning("time since last frame: %d ms", time.restart()); + + qreal aspectRatio = qreal(width()) / qreal(height()); + QMatrix4x4 mv, mv2; + QMatrix4x4 proj; + + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + + mv = roomCamera->modelViewMatrix(); + proj = roomCamera->projectionMatrix(aspectRatio); + painter->setLightModel(roomModel); + painter->setMatrices(mv, proj); + + painter->selectMaterial(roomMaterialBack); + painter->drawQuad(QVector3D(-3.0f, -3.0f, -15.0f), + QVector3D( 3.0f, -3.0f, -15.0f), + QVector3D( 3.0f, 3.0f, -15.0f), + QVector3D(-3.0f, 3.0f, -15.0f), + QVector3D(0.0f, 0.0f, 1.0f)); + + painter->selectMaterial(roomMaterialLeftRight); + painter->drawQuad(QVector3D(-3.0f, -3.0f, -15.0f), + QVector3D(-3.0f, 3.0f, -15.0f), + QVector3D(-3.0f, 3.0f, 0.0f), + QVector3D(-3.0f, -3.0f, 0.0f), + QVector3D(1.0f, 0.0f, 0.0f)); + painter->drawQuad(QVector3D(3.0f, 3.0f, -15.0f), + QVector3D(3.0f, -3.0f, -15.0f), + QVector3D(3.0f, -3.0f, 0.0f), + QVector3D(3.0f, 3.0f, 0.0f), + QVector3D(-1.0f, 0.0f, 0.0f)); + + painter->selectMaterial(roomMaterialTopBottom); + painter->drawQuad(QVector3D(-3.0f, 3.0f, -15.0f), + QVector3D( 3.0f, 3.0f, -15.0f), + QVector3D( 3.0f, 3.0f, 0.0f), + QVector3D(-3.0f, 3.0f, 0.0f), + QVector3D(0.0f, -1.0f, 0.0f)); + painter->drawQuad(QVector3D(-3.0f, -3.0f, -15.0f), + QVector3D(-3.0f, -3.0f, 0.0f), + QVector3D( 3.0f, -3.0f, 0.0f), + QVector3D( 3.0f, -3.0f, -15.0f), + QVector3D(0.0f, 1.0f, 0.0f)); + + mv = mv2 = mainCamera->modelViewMatrix(); + proj = mainCamera->projectionMatrix(aspectRatio); + mv.translate(1.0f, -0.5f, 0.0f); + mv.rotate(45.0f, 1.0f, 1.0f, 1.0f); + painter->setMatrices(mv, proj); + painter->setLightModel(normalModel); + painter->selectTexturedMaterial(cubeMaterial); + painter->setVertices(cubeVertices, 8); + painter->setNormals(cubeVertices + 3, 8); + painter->setTexCoords(cubeVertices + 6, 8); + glDrawArrays(GL_TRIANGLES, 0, 36); + + mv2.translate(-0.8f, -1.5f, -3.0f); + painter->setMatrices(mv2, proj); + painter->selectMaterial(teapotMaterial); +#ifdef USE_BUFFERS + glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer); + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuffer); + painter->setVertices(0, 8); + painter->setNormals(reinterpret_cast(3 * sizeof(float)), 8); + painter->setTexCoords(reinterpret_cast(6 * sizeof(float)), 8); + glDrawElements(GL_TRIANGLES, teapotTriangleCount * 3, + GL_UNSIGNED_SHORT, 0); + glBindBuffer(GL_ARRAY_BUFFER, 0); + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); +#else + painter->setVertices(teapotVertexData, 8); + painter->setNormals(teapotVertexData + 3, 8); + painter->setTexCoords(teapotVertexData + 6, 8); + glDrawElements(GL_TRIANGLES, teapotTriangleCount * 3, + GL_UNSIGNED_SHORT, teapotTriangleData); +#endif +} + +void View::accelerometerTimeout() +{ + QVector3D g = gravity(); + mainCamera->setMotionAdjustment(g); + roomCamera->setMotionAdjustment(g); + update(); +} + +#define ACCEL_TO_G(v) (v / 9.80665) + +QVector3D View::gravity() const +{ + qreal x = ACCEL_TO_G(sensor->reading()->x()) * sensitivity; + qreal y = ACCEL_TO_G(sensor->reading()->y()) * sensitivity; + qreal z = ACCEL_TO_G(sensor->reading()->z()); + + return QVector3D(x, y, z); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/cubehouse/view.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/cubehouse/view.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,98 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt3D 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 VIEW_H +#define VIEW_H + +#include +#include +#include +#include "camera.h" +#include "light.h" +#include "lightmodel.h" +#include "material.h" +#include "painter.h" + +namespace QtMobility { +class QAccelerometer; +} +using namespace QtMobility; + +class View : public QGLWidget +{ + Q_OBJECT +public: + View(QWidget *parent = 0); + ~View(); + + void setShowFrameRate(bool value) { showFrameRate = value; } + +protected: + void resizeGL(int width, int height); + void initializeGL(); + void paintGL(); + +private slots: + void accelerometerTimeout(); + +private: + GLuint texture; + GLuint vertexBuffer; + GLuint indexBuffer; + Camera *mainCamera; + Camera *roomCamera; + qreal sensitivity; + LightModel *roomModel; + LightModel *normalModel; + Material *cubeMaterial; + Material *teapotMaterial; + Material *roomMaterialBack; + Material *roomMaterialLeftRight; + Material *roomMaterialTopBottom; + Painter *painter; + QTime time; + bool showFrameRate; + QAccelerometer *sensor; + + QVector3D gravity() const; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/grueapp/main.cpp --- a/qtmobility/examples/sensors/grueapp/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/grueapp/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -1,3 +1,44 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 #include @@ -18,17 +59,17 @@ { QCoreApplication app(argc, argv); - QSensor sensor; - sensor.setType("GrueSensor"); - if (!sensor.connect()) { - qWarning("Grue sensor is not available!"); - return 1; - } + QSensor sensor("GrueSensor"); Filter filter; sensor.addFilter(&filter); sensor.start(); + if (!sensor.isActive()) { + qWarning("Grue sensor didn't start!"); + return 1; + } + return app.exec(); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/grueplugin/gruesensor.h --- a/qtmobility/examples/sensors/grueplugin/gruesensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/grueplugin/gruesensor.h Mon May 03 13:18:40 2010 +0300 @@ -72,8 +72,7 @@ { Q_OBJECT public: - explicit GrueSensor(QObject *parent = 0) : QSensor(parent) - { setType(GrueSensor::type); } + explicit GrueSensor(QObject *parent = 0) : QSensor(GrueSensor::type, parent) {} virtual ~GrueSensor() {} GrueSensorReading *reading() const { return static_cast(QSensor::reading()); } static const char *type; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/grueplugin/gruesensorimpl.cpp --- a/qtmobility/examples/sensors/grueplugin/gruesensorimpl.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/grueplugin/gruesensorimpl.cpp Mon May 03 13:18:40 2010 +0300 @@ -48,15 +48,18 @@ : QSensorBackend(sensor) { lightSensor = new QAmbientLightSensor(this); - lightSensor->setUpdatePolicy(QSensor::OccasionalUpdates); lightSensor->addFilter(this); + lightSensor->connectToBackend(); - setSupportedUpdatePolicies(QSensor::OnChangeUpdates | QSensor::OccasionalUpdates); setReading(&m_reading); + setDataRates(lightSensor); + addOutputRange(0, 1, 0.1); + setDescription(QLatin1String("Grue Sensor")); } void gruesensorimpl::start() { + lightSensor->setDataRate(sensor()->dataRate()); lightSensor->start(); } @@ -65,11 +68,6 @@ lightSensor->stop(); } -void gruesensorimpl::poll() -{ - lightSensor->poll(); -} - bool gruesensorimpl::filter(QAmbientLightReading *reading) { qreal chance; @@ -89,8 +87,7 @@ break; } - if (QSensorBackend::m_sensor->updatePolicy() == QSensor::OccasionalUpdates || - chance != m_reading.chanceOfBeingEaten()) { + if (chance != m_reading.chanceOfBeingEaten()) { m_reading.setTimestamp(reading->timestamp()); m_reading.setChanceOfBeingEaten(chance); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/grueplugin/gruesensorimpl.h --- a/qtmobility/examples/sensors/grueplugin/gruesensorimpl.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/grueplugin/gruesensorimpl.h Mon May 03 13:18:40 2010 +0300 @@ -57,7 +57,6 @@ void start(); void stop(); - void poll(); bool filter(QAmbientLightReading *reading); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/orientation/main.cpp --- a/qtmobility/examples/sensors/orientation/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/orientation/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -48,15 +48,12 @@ QTM_USE_NAMESPACE QML_DECLARE_TYPE(QOrientationSensor) -QML_DEFINE_TYPE(Qt, 4, 6, OrientationSensor, QOrientationSensor) QML_DECLARE_TYPE(QSensorReading) -QML_DEFINE_NOCREATE_TYPE(QSensorReading) QML_DECLARE_TYPE(QOrientationReading) //### while we don't want to explicitly create this type in QML, we need to define it so // we can specify enum values like OrientationReading.LeftUp -QML_DEFINE_TYPE(Qt, 4, 6, OrientationReading, QOrientationReading) class MainWidget : public QWidget { @@ -66,7 +63,7 @@ MainWidget(); private: - QmlView *view; + QDeclarativeView *view; }; MainWidget::MainWidget() @@ -75,15 +72,18 @@ vbox->setMargin(0); setLayout(vbox); - view = new QmlView(this); + view = new QDeclarativeView(this); vbox->addWidget(view); - view->setUrl(QUrl("qrc:/orientation.qml")); - view->execute(); + view->setSource(QUrl("qrc:/orientation.qml")); + view->show(); } int main(int argc, char *argv[]) { + qmlRegisterType("Qt", 4, 6, "OrientationReading"); + qmlRegisterType("Qt", 4, 6, "OrientationSensor"); + QApplication app(argc, argv); MainWidget mainWidget; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/orientation/orientation.qml --- a/qtmobility/examples/sensors/orientation/orientation.qml Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/orientation/orientation.qml Mon May 03 13:18:40 2010 +0300 @@ -50,18 +50,20 @@ id: orientation onReadingChanged: { - if (reading.orientation == OrientationReading.LeftUp) - content.state = "Portrait"; - else if (reading.orientation == OrientationReading.BottomDown) - content.state = ""; + if (reading.orientation == OrientationReading.TopUp) + content.state = "TopUp"; + else if (reading.orientation == OrientationReading.TopDown) + content.state = "TopDown"; + else if (reading.orientation == OrientationReading.LeftUp) + content.state = "LeftUp"; else if (reading.orientation == OrientationReading.RightUp) - content.state = "ReversePortrait"; - else if (reading.orientation == OrientationReading.BottomUp) - content.state = "ReverseLandscape"; + content.state = "RightUp"; else if (reading.orientation == OrientationReading.FaceUp) content.state = "FaceUp"; else if (reading.orientation == OrientationReading.FaceDown) content.state = "FaceDown"; + else + content.state = ""; } } Component.onCompleted: orientation.start() @@ -72,7 +74,7 @@ anchors.centerIn: parent Text { id: text - text: "hello world" + text: "Orientation: Unknown" color: "white" font.pointSize: 24 anchors.centerIn: parent @@ -80,24 +82,43 @@ states: [ State { - name: "Portrait" - PropertyChanges { target: content; rotation: -90 } + name: "TopUp" + changes: [ + PropertyChanges { target: text; text: "Orientation: TopUp" } + ] + }, + State { + name: "TopDown" + changes: [ + PropertyChanges { target: content; rotation: 180 }, + PropertyChanges { target: text; text: "Orientation: TopDown" } + ] }, State { - name: "ReversePortrait" - PropertyChanges { target: content; rotation: 90 } + name: "LeftUp" + changes: [ + PropertyChanges { target: content; rotation: -90 }, + PropertyChanges { target: text; text: "Orientation: LeftUp" } + ] }, State { - name: "ReverseLandscape" - PropertyChanges { target: content; rotation: 180 } + name: "RightUp" + changes: [ + PropertyChanges { target: content; rotation: 90 }, + PropertyChanges { target: text; text: "Orientation: RightUp" } + ] }, State { name: "FaceUp" - PropertyChanges { target: text; text: "hello roof" } + changes: [ + PropertyChanges { target: text; text: "Orientation: FaceUp" } + ] }, State { name: "FaceDown" - PropertyChanges { target: text; text: "hello ground" } + changes: [ + PropertyChanges { target: text; text: "Orientation: FaceDown" } + ] } ] diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/reading_perf/main.cpp --- a/qtmobility/examples/sensors/reading_perf/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/reading_perf/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -51,14 +51,13 @@ private slots: void reading_speed_direct(); void reading_speed_propname(); - void reading_speed_propindex_slow(); - void reading_speed_propindex_fast(); + void reading_speed_propindex(); }; void reading_perf::reading_speed_direct() { QAccelerometer sensor; - QVERIFY(sensor.connect()); + QVERIFY(sensor.connectToBackend()); QAccelerometerReading *reading = sensor.reading(); qreal x; QBENCHMARK { x = reading->x(); } @@ -66,29 +65,17 @@ void reading_perf::reading_speed_propname() { - QSensor sensor; - sensor.setType("QAccelerometer"); - QVERIFY(sensor.connect()); + QSensor sensor("QAccelerometer"); + QVERIFY(sensor.connectToBackend()); QSensorReading *reading = sensor.reading(); qreal x; QBENCHMARK { x = reading->property("x").value(); } } -void reading_perf::reading_speed_propindex_slow() +void reading_perf::reading_speed_propindex() { - QSensor sensor; - sensor.setType("QAccelerometer"); - QVERIFY(sensor.connect()); - QSensorReading *reading = sensor.reading(); - qreal x; - QBENCHMARK { x = reading->QSensorReading::value(0).value(); } -} - -void reading_perf::reading_speed_propindex_fast() -{ - QSensor sensor; - sensor.setType("QAccelerometer"); - QVERIFY(sensor.connect()); + QSensor sensor("QAccelerometer"); + QVERIFY(sensor.connectToBackend()); QSensorReading *reading = sensor.reading(); qreal x; QBENCHMARK { x = reading->value(0).value(); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/sensor_explorer/explorer.cpp --- a/qtmobility/examples/sensors/sensor_explorer/explorer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/sensor_explorer/explorer.cpp Mon May 03 13:18:40 2010 +0300 @@ -50,14 +50,17 @@ Explorer::Explorer(QWidget *parent) : QMainWindow(parent) + , m_sensor(0) + , ignoreItemChanged(false) { - setupUi(this); + ui.setupUi(this); +#ifdef MAEMO5 + ui.label->hide(); +#endif // Clear out example data from the .ui file - m_sensors->clear(); + ui.sensors->clear(); + clearSensorProperties(); clearReading(); - // We need to know when this widget resizes - // so we can resize the columns - m_reading->installEventFilter(this); } Explorer::~Explorer() @@ -69,90 +72,91 @@ qDebug() << "Explorer::loadSensors"; // Clear out anything that's in there now - m_sensors->clear(); + ui.sensors->clear(); foreach (const QByteArray &type, QSensor::sensorTypes()) { qDebug() << "Found type" << type; - // The type item. We don't add it yet because there may not be any sensors of this type - // and we only show types that have sensors available. - QTreeWidgetItem *typeItem = new QTreeWidgetItem(QStringList() << QString::fromLatin1(type)); - bool added = false; foreach (const QByteArray &identifier, QSensor::sensorsForType(type)) { qDebug() << "Found identifier" << identifier; // Don't put in sensors we can't connect to - QSensor sensor; - sensor.setType(type); + QSensor sensor(type); sensor.setIdentifier(identifier); - if (!sensor.connect()) { + if (!sensor.connectToBackend()) { qDebug() << "Couldn't connect to" << identifier; continue; } - // Since we're adding a sensor we can go ahead and add the type (unless it has - // already been added). - if (!added) { - qDebug() << "Adding type" << type; - m_sensors->addTopLevelItem(typeItem); - added = true; - } qDebug() << "Adding identifier" << identifier; - (void)new QTreeWidgetItem(typeItem, QStringList() << QString::fromLatin1(identifier)); - } - // Cleanup if we didn't add the type - if (!added) { - qDebug() << "Didn't add type" << type; - delete typeItem; + QTreeWidgetItem *item = new QTreeWidgetItem(QStringList() << QString::fromLatin1(identifier)); + item->setData(0, Qt::UserRole, QString::fromLatin1(type)); + ui.sensors->addTopLevelItem(item); } } - // Don't hide stuff - m_sensors->expandAll(); + resizeSensors(); +} + +void Explorer::resizeSensors() +{ + ui.sensors->resizeColumnToContents(0); + int length = ui.sensors->header()->length() + 4; + ui.sensors->setFixedWidth(length); } -void Explorer::clearReading() +void Explorer::on_sensors_currentItemChanged() { - m_reading->setRowCount(0); -} - -void Explorer::loadReading() -{ - qDebug() << "Explorer::loadReading"; + qDebug() << "Explorer::sensorSelected"; // Clear out anything that's in there now + if (m_sensor) { + delete m_sensor; + m_sensor = 0; + } + clearSensorProperties(); clearReading(); // Check that we've selected an item - QTreeWidgetItem *item = m_sensors->currentItem(); + QTreeWidgetItem *item = ui.sensors->currentItem(); if (!item) { qWarning() << "Didn't select an item!"; return; } - // Check that we've selected a sensor (which has a parent) - QTreeWidgetItem *parent = item->parent(); - if (!parent) { - qWarning() << "Didn't select a sensor!"; - return; - } - - QByteArray type = parent->data(0, Qt::DisplayRole).toString().toLatin1(); + QByteArray type = item->data(0, Qt::UserRole).toString().toLatin1(); QByteArray identifier = item->data(0, Qt::DisplayRole).toString().toLatin1(); // Connect to the sensor so we can probe it - QSensor sensor; - sensor.setType(type); - sensor.setIdentifier(identifier); - if (!sensor.connect()) { + m_sensor = new QSensor(type, this); + connect(m_sensor, SIGNAL(readingChanged()), this, SLOT(sensor_changed())); + m_sensor->setIdentifier(identifier); + if (!m_sensor->connectToBackend()) { + delete m_sensor; + m_sensor = 0; qWarning() << "Can't connect to the sensor!"; return; } + loadSensorProperties(); + loadReading(); + + adjustTableColumns(ui.sensorprops); + adjustTableColumns(ui.reading); + QTimer::singleShot(100, this, SLOT(adjustSizes())); +} + +void Explorer::clearReading() +{ + ui.reading->setRowCount(0); +} + +void Explorer::loadReading() +{ // Probe the reading using Qt's meta-object facilities - QSensorReading *reading = sensor.reading(); + QSensorReading *reading = m_sensor->reading(); const QMetaObject *mo = reading->metaObject(); int firstProperty = QSensorReading::staticMetaObject.propertyOffset(); - m_reading->setRowCount(mo->propertyCount() - firstProperty); + ui.reading->setRowCount(mo->propertyCount() - firstProperty); for(int i = firstProperty; i < mo->propertyCount(); ++i) { int row = i - firstProperty; @@ -163,13 +167,100 @@ else index = new QTableWidgetItem(QVariant(row - 1).toString()); QTableWidgetItem *prop = new QTableWidgetItem(mo->property(i).name()); - QTableWidgetItem *type = new QTableWidgetItem(mo->property(i).typeName()); - m_reading->setItem(row, 0, index); - m_reading->setItem(row, 1, prop); - m_reading->setItem(row, 2, type); + QString typeName = QLatin1String(mo->property(i).typeName()); + int crap = typeName.lastIndexOf("::"); + if (crap != -1) + typeName = typeName.mid(crap + 2); + QTableWidgetItem *type = new QTableWidgetItem(typeName); + QTableWidgetItem *value = new QTableWidgetItem(); + + index->setFlags(value->flags() ^ Qt::ItemIsEditable); + prop->setFlags(value->flags() ^ Qt::ItemIsEditable); + type->setFlags(value->flags() ^ Qt::ItemIsEditable); + value->setFlags(value->flags() ^ Qt::ItemIsEditable); + + ui.reading->setItem(row, 0, index); + ui.reading->setItem(row, 1, prop); + ui.reading->setItem(row, 2, type); + ui.reading->setItem(row, 3, value); + } +} + +void Explorer::clearSensorProperties() +{ + ui.sensorprops->setRowCount(0); +} + +void Explorer::loadSensorProperties() +{ + ignoreItemChanged = true; + + // Probe the sensor using Qt's meta-object facilities + const QMetaObject *mo = m_sensor->metaObject(); + int firstProperty = QSensor::staticMetaObject.propertyOffset(); + + int rows = mo->propertyCount() - firstProperty; + ui.sensorprops->setRowCount(rows); + + int offset = 0; + for(int i = firstProperty; i < mo->propertyCount(); ++i) { + int row = i - firstProperty - offset; + QLatin1String name(mo->property(i).name()); + if (name == "sensorid" || + //name == "type" || + name == "reading" || + name == "connected" || + name == "running" || + name == "supportsPolling") { + ++offset; + continue; + } + QTableWidgetItem *prop = new QTableWidgetItem(name); + QString typeName = QLatin1String(mo->property(i).typeName()); + int crap = typeName.lastIndexOf("::"); + if (crap != -1) + typeName = typeName.mid(crap + 2); + QTableWidgetItem *type = new QTableWidgetItem(typeName); + QVariant v = mo->property(i).read(m_sensor); + QString val; + if (typeName == "qrangelist") { + qrangelist rl = v.value(); + QStringList out; + foreach (const qrange &r, rl) { + if (r.first == r.second) + out << QString("%1 Hz").arg(r.first); + else + out << QString("%1-%2 Hz").arg(r.first).arg(r.second); + } + val = out.join(", "); + } else if (typeName == "qoutputrangelist") { + qoutputrangelist rl = v.value(); + QStringList out; + foreach (const qoutputrange &r, rl) { + out << QString("(%1, %2) += %3").arg(r.minimum).arg(r.maximum).arg(r.accuracy); + } + val = out.join(", "); + } else { + val = v.toString(); + } + QTableWidgetItem *value = new QTableWidgetItem(val); + + prop->setFlags(value->flags() ^ Qt::ItemIsEditable); + type->setFlags(value->flags() ^ Qt::ItemIsEditable); + if (!mo->property(i).isWritable()) { + // clear the editable flag + value->setFlags(value->flags() ^ Qt::ItemIsEditable); + } + + ui.sensorprops->setItem(row, 0, prop); + ui.sensorprops->setItem(row, 1, type); + ui.sensorprops->setItem(row, 2, value); } - adjustReadingColumns(); + // We don't add all properties + ui.sensorprops->setRowCount(rows - offset); + + ignoreItemChanged = false; } void Explorer::showEvent(QShowEvent *event) @@ -183,17 +274,32 @@ // Resize columns to fit the space. // This shouldn't be so hard! -void Explorer::adjustReadingColumns() +void Explorer::adjustTableColumns(QTableWidget *table) { - // At least this is easy to do - m_reading->resizeColumnsToContents(); + if (table->rowCount() == 0) { + table->setFixedHeight(0); + return; + } - int indexWidth = m_reading->columnWidth(0); - int propWidth = m_reading->columnWidth(1); - int typeWidth = m_reading->columnWidth(2); + // At least this is easy to do + table->resizeColumnsToContents(); + int length = table->verticalHeader()->length(); + length += (length / static_cast(table->verticalHeader()->count())); // Add 1 more (the header itself) +#ifdef MAEMO5 + length += 10; // required for N900 UI +#endif + table->setFixedHeight(length); - int suggestedWidth = indexWidth + propWidth + typeWidth; - int actualWidth = m_reading->size().width(); + int columns = table->columnCount(); + QList width; + int suggestedWidth = 0; + for (int i = 0; i < columns; ++i) { + int cwidth = table->columnWidth(i); + width << cwidth; + suggestedWidth += cwidth; + } + + int actualWidth = table->size().width(); //qDebug() << "suggestedWidth" << suggestedWidth << "actualWidth" << actualWidth; // We only scale the columns up, we don't scale down @@ -201,40 +307,124 @@ return; qreal multiplier = actualWidth / static_cast(suggestedWidth); - indexWidth = multiplier * indexWidth; - propWidth = multiplier * propWidth; - typeWidth = multiplier * typeWidth; + int currentSpace = 4; + for (int i = 0; i < columns; ++i) { + width[i] = multiplier * width[i]; + currentSpace += width[i]; + } // It ends up too big due to cell decorations or something. // Make things smaller one pixel at a time in round robin fashion until we're good. - int currentSpace = indexWidth + propWidth + typeWidth + 4; - while (actualWidth < currentSpace) { - if (actualWidth < currentSpace) { - --indexWidth; - --currentSpace; - } - if (actualWidth < currentSpace) { - --propWidth; - --currentSpace; - } - if (actualWidth < currentSpace) { - --typeWidth; - --currentSpace; + int i = 0; + while (currentSpace > actualWidth) { + --width[i]; + --currentSpace; + i = (i + 1) % columns; + } + + for (int i = 0; i < columns; ++i) { + table->setColumnWidth(i, width[i]); + } + + table->setMinimumWidth(suggestedWidth); +} + +void Explorer::adjustSizes() +{ + adjustTableColumns(ui.reading); + adjustTableColumns(ui.sensorprops); +} + +void Explorer::resizeEvent(QResizeEvent *event) +{ + resizeSensors(); + adjustSizes(); + + QMainWindow::resizeEvent(event); +} + +void Explorer::on_start_clicked() +{ + m_sensor->start(); + QTimer::singleShot(0, this, SLOT(loadSensorProperties())); +} + +void Explorer::on_stop_clicked() +{ + m_sensor->stop(); + QTimer::singleShot(0, this, SLOT(loadSensorProperties())); +} + +void Explorer::sensor_changed() +{ + QSensorReading *reading = m_sensor->reading(); + filter(reading); +} + +bool Explorer::filter(QSensorReading *reading) +{ + const QMetaObject *mo = reading->metaObject(); + int firstProperty = QSensorReading::staticMetaObject.propertyOffset(); + + for(int i = firstProperty; i < mo->propertyCount(); ++i) { + int row = i - firstProperty; + QString typeName = QLatin1String(mo->property(i).typeName()); + int crap = typeName.lastIndexOf("::"); + if (crap != -1) + typeName = typeName.mid(crap + 2); + QLatin1String name(mo->property(i).name()); + QTableWidgetItem *value = ui.reading->item(row, 3); + QVariant val = mo->property(i).read(reading); + if (typeName == "qtimestamp") { + value->setText(QString("%1").arg(val.value())); + } else if (typeName == "LightLevel") { + QString text; + switch (val.toInt()) { + case 1: + text = "Dark"; + break; + case 2: + text = "Twilight"; + break; + case 3: + text = "Light"; + break; + case 4: + text = "Bright"; + break; + case 5: + text = "Sunny"; + break; + default: + text = "Undefined"; + break; + } + value->setText(text); + } else { + value->setText(val.toString()); } } - m_reading->setColumnWidth(0, indexWidth); - m_reading->setColumnWidth(1, propWidth); - m_reading->setColumnWidth(2, typeWidth); + adjustTableColumns(ui.reading); + //QTimer::singleShot(0, this, SLOT(adjustSizes())); + + return false; } -bool Explorer::eventFilter(QObject *obj, QEvent *event) +void Explorer::on_sensorprops_itemChanged(QTableWidgetItem *item) { - if (obj == m_reading && event->type() == QEvent::Resize) { - // If the table resizes, adjust the column sizes automatically - adjustReadingColumns(); - } + if (ignoreItemChanged) + return; + if (!(item->flags() & Qt::ItemIsEditable)) + return; - return QMainWindow::eventFilter(obj, event); + int row = item->row(); + QString name = ui.sensorprops->item(row, 0)->text(); + QVariant value = item->text(); + + qDebug() << "setProperty" << name << value; + m_sensor->setProperty(name.toLatin1().constData(), QVariant(value)); + + QTimer::singleShot(0, this, SLOT(loadSensorProperties())); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/sensor_explorer/explorer.h --- a/qtmobility/examples/sensors/sensor_explorer/explorer.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/sensor_explorer/explorer.h Mon May 03 13:18:40 2010 +0300 @@ -44,24 +44,42 @@ #include #include +#include -class Explorer : public QMainWindow, public Ui::Explorer +QTM_USE_NAMESPACE + +class Explorer : public QMainWindow, public QSensorFilter { Q_OBJECT public: Explorer(QWidget *parent = 0); ~Explorer(); + bool filter(QSensorReading *reading); + private slots: void loadSensors(); - void loadReading(); + void on_sensors_currentItemChanged(); + void on_sensorprops_itemChanged(QTableWidgetItem *item); + void on_start_clicked(); + void on_stop_clicked(); + void sensor_changed(); + void adjustSizes(); + void loadSensorProperties(); private: void showEvent(QShowEvent *event); + void resizeEvent(QResizeEvent *event); void clearReading(); - void adjustReadingColumns(); - bool eventFilter(QObject *obj, QEvent *event); + void loadReading(); + void clearSensorProperties(); + void adjustTableColumns(QTableWidget *table); + void resizeSensors(); + + Ui::Explorer ui; + QSensor *m_sensor; + bool ignoreItemChanged; }; #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/sensor_explorer/explorer.ui --- a/qtmobility/examples/sensors/sensor_explorer/explorer.ui Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/sensor_explorer/explorer.ui Mon May 03 13:18:40 2010 +0300 @@ -1,46 +1,4 @@ - Explorer @@ -48,8 +6,8 @@ 0 0 - 665 - 547 + 760 + 636 @@ -62,7 +20,10 @@ MainWindow - + + + 9 + @@ -77,159 +38,363 @@ - - - - 0 - 0 - - - - Qt::Horizontal - - - - Sensor + + + + 9 + + + 0 - - - 3 - - - - - - 0 - 0 - + + + + + 9 + + + 0 - - true - - - QAbstractItemView::SelectRows - - - false - - - 1 + + + + Sensor + + + sensors + + + + + + + + 0 + 0 + + + + true + + + QAbstractItemView::SelectRows + + + false + + + false + + + false + + + false + + + false + + + + Sensor + + + + + dummy.accelerometer + + + + + + + + + + + QFrame::NoFrame + + + true + + + + + 0 + 0 + 477 + 556 + - - false - - - false - - - - Sensor + + + 9 - - - - QAccelerometer + + 0 - - dummy.accelerometer - + + + + 0 + 0 + + + + + 9 + + + 0 + + + + + Sensor Properties + + + + + + + + 0 + 0 + + + + Qt::ScrollBarAlwaysOff + + + true + + + 3 + + + false + + + false + + + + 1 + + + + + Name + + + + + Type + + + + + Value + + + + + supportedIntervals + + + + + qrangelist + + + + + + + + + + + + + + + + + 9 + + + 0 + + + + + start + + + + + + + stop + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + - + + + + + 0 + 0 + + + + + 9 + + + 0 + + + + + Reading Properties + + + + + + + + 0 + 0 + + + + Qt::ScrollBarAlwaysOff + + + true + + + 4 + + + false + + + false + + + + 1 + + + + + 2 + + + + + Index + + + + + Value + + + + + Type + + + + + Value + + + + + 0 + + + + + x + + + + + qreal + + + + + 9.8 + + + + + 0 + + + + + changeOfBeingEaten + + + + + bool + + + + + true + + + + + + + + + + + Qt::Vertical + + + + 0 + 18 + + + + + - - - - - - Properties - - - - 3 - - - - - - 0 - 0 - - - - true - - - QAbstractItemView::ExtendedSelection - - - 3 - - - false - - - false - - - - 1 - - - - - 2 - - - - - Index - - - - - Name - - - - - Type - - - - - 0 - - - - - x - - - - - qreal - - - - - 0 - - - - - changeOfBeingEaten - - - - - 1 - - - - - - + + + @@ -237,25 +402,5 @@ - - - m_sensors - currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*) - Explorer - loadReading() - - - 148 - 316 - - - 594 - 460 - - - - - - loadReading() - + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/sensor_explorer/sensor_explorer.pro --- a/qtmobility/examples/sensors/sensor_explorer/sensor_explorer.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/sensor_explorer/sensor_explorer.pro Mon May 03 13:18:40 2010 +0300 @@ -18,3 +18,5 @@ CONFIG+=strict_flags +maemo5:DEFINES+=MAEMO5 + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/sensors.pro --- a/qtmobility/examples/sensors/sensors.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sensors/sensors.pro Mon May 03 13:18:40 2010 +0300 @@ -2,7 +2,7 @@ include(../../common.pri) -SUBDIRS += accel accel_perf +SUBDIRS += accel contains(QT_CONFIG, declarative) { SUBDIRS += orientation @@ -14,3 +14,7 @@ SUBDIRS += reading_perf +SUBDIRS += small_screen_sensors + +contains(QT_CONFIG,opengl):SUBDIRS += cubehouse + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/accelerationform.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/accelerationform.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,74 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "accelerationform.h" + +AccelerationForm::AccelerationForm(QWidget *parent) + : QWidget(parent) +{ + setupUi(this); + m_accelerationSensor.connectToBackend(); + + // Usually sensor operates -2g-2g range on Symbian platforms + qoutputrange range = {-2.0f*9.80665f, -2.0f*9.80665f, 0.0f}; + if(m_accelerationSensor.outputRange()<-1) + range = m_accelerationSensor.outputRanges()[m_accelerationSensor.outputRange()]; + + horizontalSliderX->setRange(range.minimum, range.maximum); + horizontalSliderY->setRange(range.minimum, range.maximum); + horizontalSliderZ->setRange(range.minimum, range.maximum); + m_accelerationSensor.addFilter(this); + m_accelerationSensor.start(); +} + +bool AccelerationForm::filter(QAccelerometerReading *reading) +{ + horizontalSliderX->setValue(reading->x()); + labelX->setText(QString("X = %1").arg(reading->x())); + + horizontalSliderY->setValue(reading->y()); + labelY->setText(QString("Y = %1").arg(reading->y())); + + horizontalSliderZ->setValue(reading->z()); + labelZ->setText(QString("Z = %1").arg(reading->z())); + + return false; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/accelerationform.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/accelerationform.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,68 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 ACCELERATIONFORM_H +#define ACCELERATIONFORM_H + +#include +#include "ui_accelerationform.h" + +#include + +QTM_USE_NAMESPACE + +class AccelerationForm : public QWidget, + private Ui::AccelerationForm, + public QAccelerometerFilter +{ + Q_OBJECT + +public: + AccelerationForm(QWidget *parent = 0); + +protected: //from QAccelerometerFilter + bool filter(QAccelerometerReading *reading); + +private: + QAccelerometer m_accelerationSensor; +}; + +#endif // ACCELERATIONFORM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/accelerationform.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/accelerationform.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,180 @@ + + AccelerationForm + + + + 0 + 0 + 400 + 300 + + + + Form + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 0 + 0 + + + + X = 0 + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + 0 + 0 + + + + -100 + + + 100 + + + Qt::Horizontal + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 0 + 0 + + + + Y = 0 + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + 0 + 0 + + + + -100 + + + 100 + + + Qt::Horizontal + + + false + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 0 + 0 + + + + Z = 0 + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + 0 + 0 + + + + -100 + + + 100 + + + Qt::Horizontal + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/freefallform.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/freefallform.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,91 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "freefallform.h" + +const int KTreshold = 2; + +FreeFallForm::FreeFallForm(QWidget *parent) + : QWidget(parent) +{ + setupUi(this); + dropItLabel->setText(""); + + m_accelerationSensor.addFilter(this); + m_accelerationSensor.start(); + m_freeFallState = StateNotStarted; +} + +void FreeFallForm::on_setupButton_clicked() +{ + setupButton->setDisabled(true); + dropItLabel->setText("Drop it!"); + freeFallTimeLabel->setText("-"); + freeFallHeightLabel->setText("-"); + m_freeFallState = StateSetup; +} + +bool FreeFallForm::filter(QAccelerometerReading *reading) +{ + switch (m_freeFallState) { + case StateSetup: + if (abs(reading->x()) < KTreshold && abs(reading->y()) < KTreshold && abs(reading->z()) < KTreshold) { + m_freeFallTimer.start(); + m_freeFallState = StateFalling; + } + break; + case StateFalling: + if (abs(reading->x()) > KTreshold || abs(reading->y()) > KTreshold || abs(reading->z()) > KTreshold) { + freeFallTimeLabel->setNum(m_freeFallTimer.elapsed()); + qreal t = (qreal(m_freeFallTimer.elapsed()) / 1000); + freeFallHeightLabel->setNum(9.81 / 2 * t * t); + m_freeFallState = StateNotStarted; + setupButton->setEnabled(true); + setupButton->setFocus(); + dropItLabel->setText(""); + } + break; + default: + break; + } + + return false; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/freefallform.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/freefallform.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,81 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 FREEFALLFORM_H +#define FREEFALLFORM_H + +#include +#include "ui_freefallform.h" + +#include + +QTM_USE_NAMESPACE + +class FreeFallForm : public QWidget, + private Ui::FreeFallForm, + public QAccelerometerFilter +{ + Q_OBJECT + +public: + FreeFallForm(QWidget *parent = 0); + +protected: //from QAccelerometerFilter + bool filter(QAccelerometerReading *reading); + +private Q_SLOTS: + void on_setupButton_clicked(); + +private: + QAccelerometer m_accelerationSensor; + + enum FreeFallState + { + StateNotStarted, + StateSetup, + StateFalling + }; + + FreeFallState m_freeFallState; + QTime m_freeFallTimer; +}; + +#endif // FREEFALLFORM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/freefallform.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/freefallform.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,123 @@ + + FreeFallForm + + + + 0 + 0 + 418 + 356 + + + + Form + + + + + + Setup free fall trigger + + + + + + + Drop it! + + + Qt::AlignCenter + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + 0 + 0 + + + + Free fall time (ms): + + + + + + + + 0 + 0 + + + + - + + + + + + + + + + + + 0 + 0 + + + + Height (m): + + + + + + + + 0 + 0 + + + + - + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,56 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include "sensorswindow.h" + +int main(int argc, char *argv[]) +{ + QApplication application(argc, argv); + SensorsWindow window; + +#ifdef QTM_EXAMPLES_SMALL_SCREEN + window.showMaximized(); +#else + window.show(); +#endif + return application.exec(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/orientationform.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/orientationform.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,98 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "orientationform.h" + +OrientationForm::OrientationForm(QWidget *parent) + : QWidget(parent) +{ + setupUi(this); + connect(&m_orientation, SIGNAL(readingChanged()), this, SLOT(orientationChanged())); + + // Copy-pasted from documentation + horizontalSliderX->setRange(-90, 90); + horizontalSliderY->setRange(-180, 180); + horizontalSliderZ->setRange(-180, 180); + + m_rotation.addFilter(this); + m_rotation.start(); + m_orientation.start(); +} + +bool OrientationForm::filter(QRotationReading *reading) +{ + horizontalSliderX->setValue(reading->x()); + labelX->setText(QString("X = %1").arg(reading->x())); + + horizontalSliderY->setValue(reading->y()); + labelY->setText(QString("Y = %1").arg(reading->y())); + + horizontalSliderZ->setValue(reading->z()); + labelZ->setText(QString("Z = %1").arg(reading->z())); + + return false; +} + +void OrientationForm::orientationChanged() +{ + label->setText(mapOrientationToString(m_orientation.reading())); +} + +QString OrientationForm::mapOrientationToString(QOrientationReading *reading) +{ + switch(reading->orientation()) + { + case QOrientationReading::TopUp: + return tr("Top up"); + case QOrientationReading::TopDown: + return tr("Top down"); + case QOrientationReading::LeftUp: + return tr("Left up"); + case QOrientationReading::RightUp: + return tr("Right up"); + case QOrientationReading::FaceUp: + return tr("Face up"); + case QOrientationReading::FaceDown: + return tr("Face down"); + default: + return tr("Undefined"); + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/orientationform.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/orientationform.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,75 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 ORIENTATIONFORM_H +#define ORIENTATIONFORM_H + +#include +#include "ui_orientationform.h" + +#include +#include + +QTM_USE_NAMESPACE + +class OrientationForm : public QWidget, + private Ui::OrientationForm, + public QRotationFilter +{ + Q_OBJECT + +public: + OrientationForm(QWidget *parent = 0); + + //from QRotationFilter + bool filter(QRotationReading *reading); + +private Q_SLOTS: + void orientationChanged(); + +private: + QString mapOrientationToString(QOrientationReading *reading); + + QRotationSensor m_rotation; + QOrientationSensor m_orientation; +}; + +#endif // ORIENTATIONFORM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/orientationform.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/orientationform.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,188 @@ + + + OrientationForm + + + + 0 + 0 + 400 + 300 + + + + Form + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 0 + 0 + + + + X = 0 + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + 0 + 0 + + + + 0 + + + 359 + + + Qt::Horizontal + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 0 + 0 + + + + Y = 0 + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + 0 + 0 + + + + 0 + + + 359 + + + Qt::Horizontal + + + false + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 0 + 0 + + + + Z = 0 + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + 0 + 0 + + + + 0 + + + 359 + + + Qt::Horizontal + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/sensorswindow.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/sensorswindow.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,86 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "sensorswindow.h" +#include "freefallform.h" +#include "accelerationform.h" +#include "orientationform.h" + +SensorsWindow::SensorsWindow(QWidget *parent) + : QMainWindow(parent) + , m_currentCentralWidget(NULL) +{ + setupUi(this); + + m_formNames + << "Free fall" + << "Acceleration" + << "Orientation"; + + QSignalMapper *signalMapper = new QSignalMapper(this); + + for (int i = 0; i < m_formNames.length(); ++i) { + QAction *action = new QAction(m_formNames.at(i), this); + connect(action, SIGNAL(triggered()), signalMapper, SLOT(map())); + signalMapper->setMapping(action, i); + menuBar()->addAction(action); + } + connect(signalMapper, SIGNAL(mapped(int)), this, SLOT(changeForm(int))); + changeForm(0); +} + +void SensorsWindow::changeForm(int formIndex) +{ + delete m_currentCentralWidget; + m_currentCentralWidget = createForm(formIndex); + setCentralWidget(m_currentCentralWidget); + setWindowTitle(QString("Sensors - ") + m_formNames.at(formIndex)); +} + +QWidget *SensorsWindow::createForm(int formIndex) +{ + switch (formIndex) { + case 0: return new FreeFallForm(this); + case 1: return new AccelerationForm(this); + case 2: return new OrientationForm(this); + default: return new QWidget(this); + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/sensorswindow.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/sensorswindow.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,67 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 SENSORSWINDOW_H +#define SENSORSWINDOW_H + +#include +#include "ui_sensorswindow.h" + +class SensorsWindow : public QMainWindow, + private Ui::SensorsWindowClass +{ + Q_OBJECT + +public: + SensorsWindow(QWidget *parent = 0); + +private Q_SLOTS: + void changeForm(int formIndex); + +private: + QWidget *createForm(int formIndex); + +private: + QWidget *m_currentCentralWidget; + QStringList m_formNames; +}; + +#endif // SENSORSWINDOW_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/sensorswindow.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/sensorswindow.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,43 @@ + + + SensorsWindowClass + + + + 0 + 0 + 452 + 417 + + + + Sensor + + + + + 0 + + + QLayout::SetDefaultConstraint + + + 0 + + + + + + Acceleration + + + + + Orientation + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sensors/small_screen_sensors/small_screen_sensors.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/sensors/small_screen_sensors/small_screen_sensors.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,27 @@ +TARGET = SmallSensors +TEMPLATE = app + +include(../../examples.pri) + +QT=core gui +CONFIG+=mobility +MOBILITY+=sensors +INCLUDEPATH += ../../../src/sensors + +SOURCES += main.cpp \ + sensorswindow.cpp \ + freefallform.cpp \ + accelerationform.cpp \ + orientationform.cpp + +HEADERS += sensorswindow.h \ + freefallform.h \ + accelerationform.h \ + orientationform.h + +FORMS += sensorswindow.ui \ + freefallform.ui \ + accelerationform.ui \ + orientationform.ui + +symbian:TARGET.CAPABILITY += ReadDeviceData diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/serviceactions/mainwindow.cpp --- a/qtmobility/examples/serviceactions/mainwindow.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/serviceactions/mainwindow.cpp Mon May 03 13:18:40 2010 +0300 @@ -186,8 +186,17 @@ void AccountsWidget::load() { static bool runonce = false; + //#define NOTHREAD +#ifdef NOTHREAD + QMessageManager manager; if(!runonce) - m_loader.start(); + setIds(manager.queryAccounts()); + // m_loader.start(); + +#else + if(!runonce) + m_loader.start(); +#endif runonce = true; } @@ -373,6 +382,7 @@ void RecentMessagesWidget::stateChanged(QMessageService::State newState) { + qDebug() << "stateChanged state=" << m_state << " newState=" << newState << "error=" << m_service->error(); if (newState == QMessageService::FinishedState) { if ((m_state != LoadFailed) && (m_service->error() == QMessageManager::NoError)) { m_state = LoadFinished; @@ -491,13 +501,13 @@ void RecentMessagesWidget::load() { m_ids.clear(); + m_state = Loading; + bool b; - if(!m_service->queryMessages(QMessageFilter(),QMessageSortOrder::byReceptionTimeStamp(Qt::DescendingOrder),m_maxRecent)) - m_state = LoadFailed; - else - m_state = Loading; -} + b=m_service->queryMessages(QMessageFilter(),QMessageSortOrder::byReceptionTimeStamp(Qt::DescendingOrder),m_maxRecent); + qDebug() << "RecentMessagesWidget::load" << b << m_state; //! [load-message] +}; //! [process-results2] void RecentMessagesWidget::processResults() @@ -881,6 +891,7 @@ void MessageViewWidget::stateChanged(QMessageService::State newState) { + qDebug() << "stateChanged state=" << m_state << " newState=" << newState << "error=" << m_service->error(); if (m_state == LoadFailed) return; @@ -1022,7 +1033,7 @@ else bodyText = QString("

Download

").arg(downloadLinkURL()); m_messageBrowser->setHtml(htmlTemplate\ - .arg(message.from().recipient())\ + .arg(message.from().addressee())\ .arg(message.subject())\ .arg(message.receivedDate().toString())\ .arg(bodyText)); @@ -1264,6 +1275,7 @@ << new ShowWidget(m_service,this) << new RetrieveWidget(this) << new StoreSignalsWidget(this)) { + m_widgetStack->addWidget(exampleWidget); #ifdef _WIN32_WCE exampleWidget->installEventFilter(this); @@ -1311,6 +1323,7 @@ setWindowTitle(WindowTitle); resize(WindowGeometry); + } #ifdef _WIN32_WCE @@ -1325,6 +1338,7 @@ void MainWindow::serviceStateChanged(QMessageService::State newState) { + qDebug() << "MainWindow::serviceStateChanged"; if ((newState == QMessageService::FinishedState) && (m_service->error() != QMessageManager::NoError)) QMessageBox::critical(this,"Error","One or more service actions failed"); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicebrowser/servicebrowser.pro --- a/qtmobility/examples/servicebrowser/servicebrowser.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/servicebrowser/servicebrowser.pro Mon May 03 13:18:40 2010 +0300 @@ -20,5 +20,5 @@ addFiles.path = xmldata DEPLOYMENT += addFiles - TARGET.CAPABILITY = ALL -TCB + TARGET.CAPABILITY = ReadUserData WriteUserData } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/serviceinstaller_sfw_symbian/exampleinstaller/exampleinstaller.pro --- a/qtmobility/examples/serviceinstaller_sfw_symbian/exampleinstaller/exampleinstaller.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/serviceinstaller_sfw_symbian/exampleinstaller/exampleinstaller.pro Mon May 03 13:18:40 2010 +0300 @@ -12,5 +12,5 @@ symbian { TARGET.UID3 = 0xE00b7e42 - TARGET.CAPABILITY = ALL -TCB + TARGET.CAPABILITY = ReadUserData WriteUserData } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/declarative-sfw-notes/Button.qml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/declarative-sfw-notes/Button.qml Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,32 @@ +import Qt 4.6 + +Rectangle { + id: container + + signal clicked + property string image: "" + property string text: "" + + color: activePalette.button; smooth: true + border.width: 1; border.color: Qt.darker(activePalette.button); radius: 8; + + gradient: Gradient { + GradientStop { + id: topGrad; position: 0.0 + color :if (mr.pressed) { activePalette.dark } else { activePalette.light } } + GradientStop { position: 1.0; color: activePalette.button } + } + + Image { + id: imgItem; + smooth: true + width: 16; height: 16; + source: container.image; anchors.centerIn: container + } + + MouseArea { id: mr; anchors.fill: parent; onClicked: container.clicked() } + + Text { + id: txtItem; text: container.text; anchors.centerIn: container; color: activePalette.buttonText + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/declarative-sfw-notes/Dialog.qml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/declarative-sfw-notes/Dialog.qml Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,60 @@ +import Qt 4.6 + +Rectangle { + property string text: "" + property bool alert: false + signal confirmed(); + + id: page + opacity: 0 + border.width: 1; color: "lightgray"; radius: 5 + + width: 200; height: dialogText.height + okButton.height + 35 + anchors.verticalCenter: mainWindow.verticalCenter + anchors.horizontalCenter: mainWindow.horizontalCenter + + Text { + id: dialogText + text: page.text + wrap: true + x: 15; y: 15 + color: activePalette.buttonText + anchors.horizontalCenter: page.horizontalCenter + } + + Button { + id: okButton + text: "Ok" + width: 75; height: 25 + anchors.top: dialogText.bottom; anchors.topMargin: 7 + + onClicked: { + page.confirmed(); + page.opacity = 0; + } + } + + Button { + id: noButton + text: "Cancel" + width: 75; height: 25 + anchors.left: page.horizontalCenter; anchors.leftMargin: 5 + anchors.top: dialogText.bottom; anchors.topMargin: 7 + + onClicked: { + page.opacity = 0; + } + } + + Component.onCompleted: { + if (alert == true) + { + noButton.opacity = 0; + okButton.anchors.horizontalCenter = page.horizontalCenter; + } + else { + okButton.anchors.right = page.horizontalCenter; + okButton.anchors.rightMargin = 5; + } + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/declarative-sfw-notes/InputDialog.qml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/declarative-sfw-notes/InputDialog.qml Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,70 @@ +import Qt 4.6 + +Rectangle { + property string text: "" + property int size: 0 + signal confirmed(string input); + + id: page + opacity: 0 + + width: dialogText.width + 30 + size; height: dialogText.height + okButton.height + inputText.height + 44 + anchors.verticalCenter: mainWindow.verticalCenter + anchors.horizontalCenter: mainWindow.horizontalCenter + + border.width: 1; color: "lightgray"; radius: 5 + + Text { + id: dialogText + text: page.text + x: 15; y: 15 + color: activePalette.buttonText + } + + Rectangle { + id: inputArea + width: page.width - 30 + height: inputText.height + 4 + border.width: 1; color: "white"; radius: 1 + anchors.left: dialogText.left + anchors.top: dialogText.bottom; anchors.topMargin: 7 + } + + TextInput { + id: inputText + width: inputArea.width - 10 + anchors.verticalCenter: inputArea.verticalCenter + anchors.horizontalCenter: inputArea.horizontalCenter + } + + Button { + id: okButton + text: "Ok" + width: 75; height: 25 + anchors.right: page.horizontalCenter; anchors.rightMargin: 5 + anchors.top: inputArea.bottom; anchors.topMargin: 10 + + onClicked: { + page.confirmed(inputText.text); + forceClose(); + } + } + + Button { + id: noButton + text: "Cancel" + width: 75; height: 25 + anchors.left: page.horizontalCenter; anchors.leftMargin: 5 + anchors.top: inputArea.bottom; anchors.topMargin: 10 + + onClicked: { + forceClose(); + } + } + + function forceClose() + { + page.opacity = 0; + inputText.text = ""; + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/declarative-sfw-notes/declarative-sfw-notes.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/declarative-sfw-notes/declarative-sfw-notes.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,19 @@ +TEMPLATE = app +TARGET = declarative-sfw-notes +INCLUDEPATH += ../../../src/serviceframework + +include(../../examples.pri) + +QT += declarative + +HEADERS += note.h \ + sfwnotes.h +SOURCES += sfwnotes.cpp \ + main.cpp + +CONFIG += mobility +MOBILITY = serviceframework + +RESOURCES += sfwnotes.qrc + +OTHER_FILES = declarative-sfw-notes.qml diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/declarative-sfw-notes/declarative-sfw-notes.qml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/declarative-sfw-notes/declarative-sfw-notes.qml Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,258 @@ +import Qt 4.6 +import QtSFW 1.0 + +Rectangle { + property int size: 0 + property int curr: 0 + property string search: "" + property variant notesObject: notesService.serviceObject() + + id: mainWindow + color: "lightgray" + width: 220; height: 265 + + SystemPalette { id: activePalette } + + Rectangle { + id: datetimeArea + width: 160; height: 20 + x: 30; y: 120 + color: "#FFFF7F" + } + + Rectangle { + id: noteArea + width: 160; height: 110 + x: 30; y: 140 + color: "#FFFF7F" + } + + + Text { + id: title + text: "ToDoTool" + font.pointSize: 24; font.family: "Nimbus Roman No9 L"; font.bold: true; font.italic:true + color: "blue" + y: 5; anchors.horizontalCenter: mainWindow.horizontalCenter + } + + Text { + id: countLabel + text: curr + "/" + size + font.pointSize:10 + y: 90 + anchors.horizontalCenter: mainWindow.horizontalCenter + } + + Text { + id: datetimeLabel + text: "" + font.pointSize:10 + x: 30; y: 120 + anchors.right: datetimeArea.right + } + + Text { + id: noteLabel + text: "Click + to add a new note" + font.pointSize: 18; font.family: "Comic Sans MS"; font.italic:true + horizontalAlignment: Text.AlignHCenter + wrap: true + width: noteArea.width + anchors.verticalCenter: noteArea.verticalCenter + anchors.horizontalCenter: title.horizontalCenter + } + + Button { + id: addButton + image: "../icons/addIcon.png" + width: 60; height: 30 + x: 20; y: 40 + + onClicked: { + addDialog.opacity = 1; + } + } + + Button { + id: deleteButton + image: "../icons/deleteIcon.png" + width: 60; height: 30 + x: 80; y: 40 + + onClicked: { + deleteDialog.opacity = 1; + } + } + + Button { + id: searchButton + image: "../icons/searchIcon.png" + width: 60; height: 30 + x: 140; y: 40 + + onClicked: { + searchDialog.opacity = 1; + } + } + + Button { + id: nextButton + image: "../icons/nextIcon.png" + width: 40; height: 30 + x: 130; y: 80 + + onClicked: { + if (curr < size) { + curr++; + refreshNotes(); + } + } + } + + Button { + id: prevButton + image: "../icons/prevIcon.png" + width: 40; height: 30 + x: 50; y: 80 + + onClicked: { + if (curr > 1) { + curr--; + refreshNotes(); + } + } + } + + DateTimeFormatter { + id: myDateTime + dateTime: "2000-01-01 00:00:00" + dateTimeFormat: "yyyy-MM-dd hh:mm" + } + + InputDialog { + id: addDialog + text: "Add a new note + alarm of format:\nnote#yyyy-mm-dd#hh:mm" + + onConfirmed: { + var note = input.split("#"); + + if (note.length == 3) { + var date = note[1].split("-"); + var time = note[2].split(":"); + + if (date.length == 3 && time.length ==2) { + myDateTime.dateTime = note[1] + " " + note[2] + ":00"; + notesObject.addNote(note[0], myDateTime.dateTime); + } + } else { + myDateTime.dateTime = currentDateTime() + ":00"; + notesObject.addNote(note[0], myDateTime.dateTime); + } + + refreshNotes(); + } + } + + InputDialog { + id: searchDialog + text: "Find a note:" + size: 100 + + onConfirmed: { + search = input; + curr = 1; + refreshNotes() + } + } + + Connections { + target: notesObject + + onSoundAlarm: { + alarmDialog.text = "ALERT SOUNDED!!!" + "\n\n" + + formatDateTime(alarm) + "\n\n" + notesObject.alarmMessage; + alarmDialog.opacity = 1; + } + } + + Dialog { + id: deleteDialog + text: "Confirm removing this note item?" + + onConfirmed: { + var list = notesObject.noteSet; + notesObject.removeNote(list[curr-1].index); + + if (curr > 1) { curr--; } + + refreshNotes(); + } + } + + Dialog { + id: alarmDialog + text: "ALERT SOUNDED!!!" + alert: true + } + + Script { + function refreshNotes() + { + notesObject.setSearch(search); + var list = notesObject.noteSet; + size = list.length; + + if (size < 1) curr = 0; + else if (size > 0 && curr == 0) curr = 1; + + if (size > 0) { + noteLabel.text = list[curr-1].message; + datetimeLabel.text = formatDateTime(list[curr-1].alarm); + } else { + noteLabel.text = "Click + to add a new note"; + datetimeLabel.text = ""; + } + } + + function formatDateTime(datetime) + { + var dt = new Date(datetime); + + var month = (dt.getMonth() + 1) + ""; + if (month.length == 1) month = "0" + month; + + var date = dt.getDate() + ""; + if (date.length == 1) date= "0" + date; + + var hour = dt.getHours() + ""; + if (hour.length == 1) hour = "0" + hour; + + var mins = dt.getMinutes() + ""; + if (mins.length == 1) mins = "0" + mins; + + return (dt.getFullYear() + "-" + month + "-" + date + " " + hour + ":" + mins); + } + + function currentDateTime() + { + var dt = new Date(); + + return formatDateTime(dt); + } + } + + Service { + id: notesService + interfaceName: "com.nokia.qt.examples.NotesManager" + serviceName: "NotesManagerService" + version: "1.2" + } + + Component.onCompleted: { + var list = notesObject.noteSet; + if (list.length > 0) {curr = 1;} + + refreshNotes(); + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/declarative-sfw-notes/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/declarative-sfw-notes/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,66 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include +#include +#include +#include +#include + +#include "sfwnotes.h" +#include "note.h" + +int main(int argc, char* argv[]) +{ + qmlRegisterType("QtSFW", 1, 0, "Service"); + //QML_REGISTER_TYPE(QtSFW,1,0,Service, ServiceWrapper); + //QML_REGISTER_NOCREATE_TYPE(Note); + + QApplication app(argc, argv); + + QDeclarativeView canvas; + canvas.setSource(QUrl("qrc:/declarative-sfw-notes.qml")); + canvas.show(); + + return app.exec(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/declarative-sfw-notes/note.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/declarative-sfw-notes/note.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,95 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $QT_BEGIN_LICENSE:LGPL$ +** 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 NOTE_H +#define NOTE_H + +#include +#include +#include + +class Note : public QObject +{ + Q_OBJECT + Q_PROPERTY(int index READ index WRITE setIndex) + Q_PROPERTY(QString message READ message WRITE setMessage) + Q_PROPERTY(QDateTime alarm READ alarm WRITE setAlarm) + +public: + Note(QObject *parent =0) : QObject(parent) {} + ~Note() {} + +public slots: + int index() const { return m_index; } + void setIndex(int index) { m_index = index; } + + QString message() const { return m_message; } + void setMessage(const QString &message) { m_message = message; } + + QDateTime alarm() const { return m_alarm; } + void setAlarm(const QDateTime &alarm) { m_alarm = alarm; } + +private: + int m_index; + QString m_message; + QDateTime m_alarm; +}; + +//QML_DECLARE_TYPE(Note) + +class NoteSet : public QObject +{ + Q_OBJECT + Q_PROPERTY(QList* noteset READ noteset WRITE setnoteset) + +public: + NoteSet(QObject *parent =0) : QObject(parent) {}; + ~NoteSet() {}; + + QList *noteset() { return &m_noteset; } + void setnoteset(QList* set) { m_noteset = *set; } + +private: + QList m_noteset; +}; + +//QML_DECLARE_TYPE(NoteSet) + +#endif + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/declarative-sfw-notes/sfwnotes.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/declarative-sfw-notes/sfwnotes.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,185 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "sfwnotes.h" + +ServiceWrapper::ServiceWrapper() +: serviceInstance(0) +{ + serviceManager = new QServiceManager(this); + + registerExampleServices(); +} + +ServiceWrapper::~ServiceWrapper() +{ + delete serviceInstance; + unregisterExampleServices(); +} + +QString ServiceWrapper::interfaceName() const +{ + return m_interface; +} + +void ServiceWrapper::setInterfaceName(const QString &interface) +{ + m_interface = interface; +} + +QString ServiceWrapper::serviceName() const +{ + return m_service; +} + +void ServiceWrapper::setServiceName(const QString &service) +{ + m_service = service; +} + +QString ServiceWrapper::version() const +{ + return m_version; +} + +void ServiceWrapper::setVersion(const QString &version) +{ + m_version = version; +} + +bool ServiceWrapper::existsInterface() +{ + return (m_interface != ""); +} + +bool ServiceWrapper::existsService() +{ + return (m_service != ""); +} + +bool ServiceWrapper::existsVersion() +{ + return (m_version != ""); +} + +void ServiceWrapper::findServiceInterface() +{ + QServiceFilter filter; + filter.setServiceName(m_service); + + if (existsInterface()) + filter.setInterface(m_interface, m_version, QServiceFilter::ExactVersionMatch); + + QList list = serviceManager->findInterfaces(filter); + + if (list.size() == 0) return; + + if (existsInterface()) { + if (existsVersion()) { + m_descriptor = list[0]; + } else { + m_descriptor = serviceManager->interfaceDefault(m_interface); + } + + } else if (existsService()) { + if (existsVersion()) { + for (int i=0; i major) { + major = currMajor; + minor = -1; + } + + if (currMinor > minor) { + minor = currMinor; + m_descriptor = list[i]; + } + } + } + } +} + +QObject* ServiceWrapper::serviceObject() +{ + findServiceInterface(); + + if (serviceInstance) { + return serviceInstance; + } + + if (m_descriptor.isValid()) { + QServiceManager manager; + serviceInstance = manager.loadInterface(m_descriptor); + return serviceInstance; + } else { + return 0; + } +} + +void ServiceWrapper::registerExampleServices() +{ + QStringList exampleXmlFiles; + exampleXmlFiles << "notesmanagerservice.xml"; + foreach (const QString &fileName, exampleXmlFiles) { + QString path = QCoreApplication::applicationDirPath() + "/xmldata/" + fileName; + serviceManager->addService(path); + } +} + +void ServiceWrapper::unregisterExampleServices() +{ + serviceManager->removeService("NotesManagerService"); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/declarative-sfw-notes/sfwnotes.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/declarative-sfw-notes/sfwnotes.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,97 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 SFWNOTES_H +#define SFWNOTES_H + +#include +#include +#include +#include + +QTM_USE_NAMESPACE + +Q_DECLARE_METATYPE(QServiceInterfaceDescriptor) + +class ServiceWrapper : public QObject { + Q_OBJECT + Q_PROPERTY(QString interfaceName READ interfaceName WRITE setInterfaceName); + Q_PROPERTY(QString serviceName READ serviceName WRITE setServiceName); + Q_PROPERTY(QString version READ version WRITE setVersion); + +public: + ServiceWrapper(); + ~ServiceWrapper(); + + QString interfaceName() const; + void setInterfaceName(const QString& interface); + + QString serviceName() const; + void setServiceName(const QString& service); + + QString version() const; + void setVersion(const QString& version); + + Q_INVOKABLE QObject* serviceObject(); + +private: + void registerExampleServices(); + void unregisterExampleServices(); + void findServiceInterface(); + + bool existsInterface(); + bool existsService(); + bool existsVersion(); + + QString m_interface; + QString m_service; + QString m_version; + + QServiceInterfaceDescriptor m_descriptor; + QObject* serviceInstance; + + QServiceManager* serviceManager; +}; + +QML_DECLARE_TYPE(ServiceWrapper) + +#endif + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/declarative-sfw-notes/sfwnotes.qrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/declarative-sfw-notes/sfwnotes.qrc Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,13 @@ + + + declarative-sfw-notes.qml + Button.qml + Dialog.qml + InputDialog.qml + ../icons/addIcon.png + ../icons/deleteIcon.png + ../icons/searchIcon.png + ../icons/nextIcon.png + ../icons/prevIcon.png + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/icons/addIcon.png Binary file qtmobility/examples/servicenotesmanager/icons/addIcon.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/icons/deleteIcon.png Binary file qtmobility/examples/servicenotesmanager/icons/deleteIcon.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/icons/drawing.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/icons/drawing.svg Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,203 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/icons/nextIcon.png Binary file qtmobility/examples/servicenotesmanager/icons/nextIcon.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/icons/prevIcon.png Binary file qtmobility/examples/servicenotesmanager/icons/prevIcon.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/icons/searchIcon.png Binary file qtmobility/examples/servicenotesmanager/icons/searchIcon.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/icons/todotool.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/icons/todotool.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,305 @@ + + + ToDoToolDiaog + + + + 0 + 0 + 222 + 264 + + + + ToDoTool + + + + + 20 + 40 + 61 + 31 + + + + + + + + addIcon.pngaddIcon.png + + + + + + 80 + 40 + 61 + 31 + + + + + + + + deleteIcon.pngdeleteIcon.png + + + + + + 140 + 40 + 61 + 31 + + + + + + + + searchIcon.pngsearchIcon.png + + + + + + 50 + 80 + 41 + 31 + + + + + + + + prevIcon.pngprevIcon.png + + + + + + 130 + 80 + 41 + 31 + + + + + + + + nextIcon.pngnextIcon.png + + + + + + 90 + 80 + 41 + 31 + + + + 6/10 + + + Qt::AlignCenter + + + + + + 20 + 10 + 181 + 21 + + + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + + + 126 + 125 + 124 + + + + + + + 126 + 125 + 124 + + + + + + + + + Nimbus Roman No9 L + 24 + 75 + true + true + + + + ToDoTool + + + Qt::AutoText + + + Qt::AlignCenter + + + + + + 30 + 120 + 161 + 131 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 127 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 127 + + + + + + + + + 255 + 255 + 127 + + + + + + + 255 + 255 + 127 + + + + + + + + + Comic Sans MS + 18 + true + + + + true + + + Service the car nand buy tyres + + + Qt::AlignCenter + + + true + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/servicenotesmanager.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/servicenotesmanager.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,2 @@ +TEMPLATE = subdirs +SUBDIRS = declarative-sfw-notes sfw-notes diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/sfw-notes/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/sfw-notes/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,58 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include "sfwnotes.h" + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + ToDoTool dialog; + +#ifdef Q_OS_SYMBIAN + dialog.showMaximused(); +#else + dialog.show(); +#endif + + return app.exec(); +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/sfw-notes/sfw-notes.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/sfw-notes/sfw-notes.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,40 @@ +TEMPLATE = app +TARGET = sfw-notes +INCLUDEPATH += ../../../src/serviceframework + +include(../../examples.pri) + +QT += gui + +# Input +HEADERS += sfwnotes.h +SOURCES += sfwnotes.cpp \ + main.cpp + +CONFIG += mobility +MOBILITY = serviceframework + +RESOURCES += sfwnotes.qrc + +win32 { + FORMS += sfwnotes.ui +} + +unix: { + linux-*: { + FORMS += sfwnotes.ui + } + + mac: { + FORMS += sfwnotes.ui + } +} + +symbian { + #addFiles.sources = ../../notesmanagerplugin/notesmanagerservice.xml + #addFiles.path = xmldata + #DEPLOYMENT += addFiles + + #TARGET.CAPABILITY = ReadUserData WriteUserData + #FORMS += sfwnotes.ui #change to sfwnotes_small.ui +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/sfw-notes/sfwnotes.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/sfw-notes/sfwnotes.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,235 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 + +#include +#include + +#include "sfwnotes.h" + +Q_DECLARE_METATYPE(QServiceInterfaceDescriptor) + +ToDoTool::ToDoTool(QWidget *parent, Qt::WindowFlags flags) + : QWidget(parent, flags) +{ + setupUi(this); + + serviceManager = new QServiceManager(this); + + registerExampleServices(); + + setWindowTitle(tr("ToDoTool")); + + init(); +} + +ToDoTool::~ToDoTool() +{ + unregisterExampleServices(); +} + +void ToDoTool::soundAlarm(const QDateTime& alarm) +{ + QString message = notesManager->property("alarmMessage").toString(); + + QMessageBox msgBox; + msgBox.setWindowTitle("Alert"); + msgBox.setText("ALARM SOUNDED!!!\n\n" +alarm.toString("yyyy-MM-dd HH:mm") + "\n\n" + message); + msgBox.resize(200, msgBox.height()); + msgBox.exec(); +} + +void ToDoTool::init() +{ + QServiceManager mgr; + QServiceFilter filter; + filter.setServiceName("NotesManagerService"); + QList list = serviceManager->findInterfaces(filter); + + notesManager = mgr.loadInterface(list[0]); + + if (notesManager) + notesManager->setParent(this); + + { + currentNote = 1; + searchWord = ""; + refreshList(); + + QObject::connect(notesManager, SIGNAL(soundAlarm(QDateTime)), + this, SLOT(soundAlarm(QDateTime))); + } +} + +void ToDoTool::registerExampleServices() +{ + QStringList exampleXmlFiles; + exampleXmlFiles << "notesmanagerservice.xml"; + foreach (const QString &fileName, exampleXmlFiles) { + QString path = QCoreApplication::applicationDirPath() + "/xmldata/" + fileName; + serviceManager->addService(path); + } +} + +void ToDoTool::unregisterExampleServices() +{ + serviceManager->removeService("NotesManagerService"); +} + +void ToDoTool::refreshList() +{ + QMetaObject::invokeMethod(notesManager, "getNotes", + Q_RETURN_ARG(QList, ret), + Q_ARG(QString, searchWord)); + + totalNotes = ret.size(); + + if (totalNotes < 1) { currentNote = 0; } + else if (totalNotes > 0 && currentNote == 0) { currentNote = 1; } + + refreshNotes(); +} + +void ToDoTool::refreshNotes() +{ + countLabel->setText(QString::number(currentNote) + "/" + QString::number(totalNotes)); + + if (currentNote == 0) { + dateLabel->setText(""); + noteLabel->setText("Click + to add a note"); + } + else { + QDateTime alarm; + QMetaObject::invokeMethod(ret[currentNote-1], "alarm", Q_RETURN_ARG(QDateTime, alarm)); + dateLabel->setText(alarm.toString("yyyy-MM-dd HH:mm")); + + QString note; + QMetaObject::invokeMethod(ret[currentNote-1], "message", Q_RETURN_ARG(QString, note)); + noteLabel->setText(note); + } +} + +void ToDoTool::on_nextButton_clicked() +{ + if (currentNote < totalNotes) { + currentNote++; + refreshNotes(); + } +} + +void ToDoTool::on_prevButton_clicked() +{ + if (currentNote > 1) { + currentNote--; + refreshNotes(); + } +} + +void ToDoTool::on_addButton_clicked() +{ + // re-implement date-time input method + + bool ok; + QString newNote = QInputDialog::getText(this, tr("ToDoTool"), + tr("Add a new note + alarm of format:\nnote#yyyy-mm-dd#hh:mm"), + QLineEdit::Normal, "", &ok); + + if (ok && !newNote.isEmpty()) { + QStringList note = newNote.split(QRegExp("#")); + + if (note.size() == 3) { + + QStringList date = note.at(1).split("-"); + QStringList time = note.at(2).split(":"); + + if (date.size() == 3 && time.size() == 2) { + QDateTime alarm = QDateTime::fromString(note.at(1)+" "+note.at(2),"yyyy-MM-dd HH:mm"); + QMetaObject::invokeMethod(notesManager, "addNote", + Q_ARG(QString, note.at(0)), + Q_ARG(QDateTime, alarm)); + } + } else { + QMetaObject::invokeMethod(notesManager, "addNote", + Q_ARG(QString, note.at(0)), + Q_ARG(QDateTime, QDateTime::currentDateTime())); + } + + refreshList(); + } +} + +void ToDoTool::on_deleteButton_clicked() +{ + if (currentNote != 0) { + QMessageBox msgBox; + msgBox.setText("Confirm removing this note?"); + msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); + + if (msgBox.exec() == QMessageBox::Ok) { + int index; + QMetaObject::invokeMethod(ret[currentNote-1], "index", Q_RETURN_ARG(int, index)); + + QMetaObject::invokeMethod(notesManager, "removeNote", Q_ARG(int, index)); + if (currentNote > 1) + currentNote--; + + refreshList(); + } + } +} + +void ToDoTool::on_searchButton_clicked() +{ + bool ok; + QString searchNote = QInputDialog::getText(this, tr("ToDoTool"), tr("Find a note:"), + QLineEdit::Normal, "", &ok); + if (ok) { + if (searchNote.isEmpty()) + searchWord = ""; + else + searchWord = searchNote; + + currentNote = 1; + refreshList(); + } +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/sfw-notes/sfwnotes.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/sfw-notes/sfwnotes.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,96 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 SFWNOTES_H +#define SFWNOTES_H + +#include +#include +#include +#include + +//#ifdef Q_OS_SYMBIAN +//#include "ui_sfwnotes.h" +//#else +#include "ui_sfwnotes.h" +//#endif + +QTM_BEGIN_NAMESPACE +class QServiceManager; +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE + +class ToDoTool : public QWidget, public Ui_ToDoTool +{ + Q_OBJECT +public: + ToDoTool(QWidget *parent = 0, Qt::WindowFlags flags = 0); + ~ToDoTool(); + +private slots: + void on_nextButton_clicked(); + void on_prevButton_clicked(); + void on_addButton_clicked(); + void on_deleteButton_clicked(); + void on_searchButton_clicked(); + void soundAlarm(const QDateTime &alarm); + +private: + void init(); + void refreshList(); + void refreshNotes(); + void registerExampleServices(); + void unregisterExampleServices(); + + QServiceManager *serviceManager; + QObject *notesManager; + + QList ret; + + QString searchWord; + int currentNote; + int totalNotes; + +}; + +#endif + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/sfw-notes/sfwnotes.qrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/sfw-notes/sfwnotes.qrc Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,9 @@ + + + ../icons/searchIcon.png + ../icons/nextIcon.png + ../icons/prevIcon.png + ../icons/deleteIcon.png + ../icons/addIcon.png + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/sfw-notes/sfwnotes.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/sfw-notes/sfwnotes.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,398 @@ + + + ToDoTool + + + + 0 + 0 + 220 + 265 + + + + Qt::DefaultContextMenu + + + ToDoTool + + + + + 20 + 40 + 60 + 30 + + + + + + + + :/icons/addIcon.png:/icons/addIcon.png + + + + + + 80 + 40 + 60 + 30 + + + + + + + + :/icons/deleteIcon.png:/icons/deleteIcon.png + + + + + + 140 + 40 + 60 + 30 + + + + + + + + :/icons/searchIcon.png:/icons/searchIcon.png + + + + + + 50 + 80 + 40 + 30 + + + + + + + + :/icons/prevIcon.png:/icons/prevIcon.png + + + + + + 130 + 80 + 40 + 30 + + + + + + + + :/icons/nextIcon.png:/icons/nextIcon.png + + + + + + 90 + 80 + 40 + 30 + + + + 0/0 + + + Qt::AlignCenter + + + + + + 20 + 10 + 180 + 20 + + + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + + + 126 + 125 + 124 + + + + + + + 126 + 125 + 124 + + + + + + + + + Nimbus Roman No9 L + 24 + 75 + true + true + + + + ToDoTool + + + Qt::AutoText + + + Qt::AlignCenter + + + + + + 30 + 140 + 160 + 110 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 127 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 127 + + + + + + + + + 255 + 255 + 127 + + + + + + + 255 + 255 + 127 + + + + + + + + + Comic Sans MS + 18 + true + + + + true + + + Service the car and buy tyres + + + Qt::AlignCenter + + + true + + + + + + 30 + 120 + 160 + 20 + + + + + + + + + 255 + 255 + 127 + + + + + + + 255 + 255 + 127 + + + + + + + + + 255 + 255 + 127 + + + + + + + 255 + 255 + 127 + + + + + + + + + 255 + 255 + 127 + + + + + + + 255 + 255 + 127 + + + + + + + + + 10 + + + + true + + + Jan 1, 2010 - 8:00PM + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/servicenotesmanager/sfw-notes/sfwnotes_small.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/examples/servicenotesmanager/sfw-notes/sfwnotes_small.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,398 @@ + + + ToDoTool + + + + 0 + 0 + 221 + 264 + + + + Qt::DefaultContextMenu + + + ToDoTool + + + + + 20 + 40 + 61 + 31 + + + + + + + + :/icons/icons/addIcon.png:/icons/icons/addIcon.png + + + + + + 80 + 40 + 61 + 31 + + + + + + + + :/icons/icons/deleteIcon.png:/icons/icons/deleteIcon.png + + + + + + 140 + 40 + 61 + 31 + + + + + + + + :/icons/icons/searchIcon.png:/icons/icons/searchIcon.png + + + + + + 50 + 80 + 41 + 31 + + + + + + + + :/icons/icons/prevIcon.png:/icons/icons/prevIcon.png + + + + + + 130 + 80 + 41 + 31 + + + + + + + + :/icons/icons/nextIcon.png:/icons/icons/nextIcon.png + + + + + + 90 + 80 + 41 + 31 + + + + 0/0 + + + Qt::AlignCenter + + + + + + 20 + 10 + 181 + 21 + + + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + + + 126 + 125 + 124 + + + + + + + 126 + 125 + 124 + + + + + + + + + Nimbus Roman No9 L + 24 + 75 + true + true + + + + ToDoTool + + + Qt::AutoText + + + Qt::AlignCenter + + + + + + 30 + 140 + 161 + 111 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 127 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 127 + + + + + + + + + 255 + 255 + 127 + + + + + + + 255 + 255 + 127 + + + + + + + + + Comic Sans MS + 18 + true + + + + true + + + Service the car nand buy tyres + + + Qt::AlignCenter + + + true + + + + + + 30 + 120 + 161 + 21 + + + + + + + + + 255 + 255 + 127 + + + + + + + 255 + 255 + 127 + + + + + + + + + 255 + 255 + 127 + + + + + + + 255 + 255 + 127 + + + + + + + + + 255 + 255 + 127 + + + + + + + 255 + 255 + 127 + + + + + + + + + 10 + + + + true + + + Jan 1, 2010 - 8:00PM + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/slideshow/main.cpp --- a/qtmobility/examples/slideshow/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/slideshow/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -48,7 +48,11 @@ QApplication app(argc, argv); SlideShow slideShow; +#ifdef Q_OS_SYMBIAN + slideShow.showMaximized(); +#else slideShow.show(); +#endif return app.exec(); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/slideshow/slideshow.cpp --- a/qtmobility/examples/slideshow/slideshow.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/slideshow/slideshow.cpp Mon May 03 13:18:40 2010 +0300 @@ -51,25 +51,40 @@ : QWidget(parent) , imageViewer(0) , playlist(0) - , imageLabel(0) + , statusLabel(0) + , countdownLabel(0) , playButton(0) , stopButton(0) + , viewerLayout(0) { imageViewer = new QMediaImageViewer(this); connect(imageViewer, SIGNAL(stateChanged(QMediaImageViewer::State)), this, SLOT(stateChanged(QMediaImageViewer::State))); + connect(imageViewer, SIGNAL(mediaStatusChanged(QMediaImageViewer::MediaStatus)), + this, SLOT(statusChanged(QMediaImageViewer::MediaStatus))); + connect(imageViewer, SIGNAL(elapsedTimeChanged(int)), this, SLOT(elapsedTimeChanged(int))); playlist = new QMediaPlaylist; playlist->setMediaObject(imageViewer); + connect(playlist, SIGNAL(loaded()), this, SLOT(playlistLoaded())); + connect(playlist, SIGNAL(loadFailed()), this, SLOT(playlistLoadFailed())); + QVideoWidget *videoWidget = new QVideoWidget; videoWidget->setMediaObject(imageViewer); + statusLabel = new QLabel(tr("%1 Images").arg(0)); + statusLabel->setAlignment(Qt::AlignCenter); + + viewerLayout = new QStackedLayout; + viewerLayout->setStackingMode(QStackedLayout::StackAll); + viewerLayout->addWidget(videoWidget); + viewerLayout->addWidget(statusLabel); + QMenu *openMenu = new QMenu(this); openMenu->addAction(tr("Directory..."), this, SLOT(openDirectory())); openMenu->addAction(tr("Playlist..."), this, SLOT(openPlaylist())); - openMenu->addAction(tr("Location..."), this, SLOT(openLocation())); QToolButton *openButton = new QToolButton; openButton->setIcon(style()->standardIcon(QStyle::SP_DialogOpenButton)); @@ -78,8 +93,10 @@ playButton = new QToolButton; playButton->setIcon(style()->standardIcon(QStyle::SP_MediaPlay)); + playButton->setEnabled(false); connect(playButton, SIGNAL(clicked()), this, SLOT(play())); + connect(this, SIGNAL(enableButtons(bool)), playButton, SLOT(setEnabled(bool))); stopButton = new QToolButton; stopButton->setIcon(style()->standardIcon(QStyle::SP_MediaStop)); @@ -89,13 +106,19 @@ QAbstractButton *nextButton = new QToolButton; nextButton->setIcon(style()->standardIcon(QStyle::SP_MediaSkipForward)); + nextButton->setEnabled(false); connect(nextButton, SIGNAL(clicked()), playlist, SLOT(next())); + connect(this, SIGNAL(enableButtons(bool)), nextButton, SLOT(setEnabled(bool))); QAbstractButton *previousButton = new QToolButton; previousButton->setIcon(style()->standardIcon(QStyle::SP_MediaSkipBackward)); + previousButton->setEnabled(false); connect(previousButton, SIGNAL(clicked()), playlist, SLOT(previous())); + connect(this, SIGNAL(enableButtons(bool)), previousButton, SLOT(setEnabled(bool))); + + countdownLabel = new QLabel; QBoxLayout *controlLayout = new QHBoxLayout; controlLayout->setMargin(0); @@ -106,9 +129,10 @@ controlLayout->addWidget(playButton); controlLayout->addWidget(nextButton); controlLayout->addStretch(1); + controlLayout->addWidget(countdownLabel); QBoxLayout *layout = new QVBoxLayout; - layout->addWidget(videoWidget, Qt::AlignCenter); + layout->addLayout(viewerLayout); layout->addLayout(controlLayout); setLayout(layout); @@ -120,11 +144,8 @@ QString path = QFileDialog::getOpenFileName(this); if (!path.isEmpty()) { -#ifndef Q_OS_WIN - playlist->load(QUrl(QLatin1String("file://") + path)); -#else - playlist->load(QUrl(QLatin1String("file:///") + path)); -#endif + playlist->clear(); + playlist->load(QUrl::fromLocalFile(path)); } } @@ -137,40 +158,12 @@ QDir dir(path); - foreach (const QString &fileName, dir.entryList(QDir::Files)) { - QString absolutePath = dir.absoluteFilePath(fileName); -#ifndef Q_OS_WIN - playlist->addMedia(QUrl(QLatin1String("file://") + absolutePath)); -#else - playlist->addMedia(QUrl(QLatin1String("file:///") + absolutePath)); -#endif - } - } -} - -void SlideShow::openLocation() -{ - QLineEdit *urlEdit = new QLineEdit; + foreach (const QString &fileName, dir.entryList(QDir::Files)) + playlist->addMedia(QUrl::fromLocalFile(dir.absoluteFilePath(fileName))); - QDialogButtonBox *buttons = new QDialogButtonBox( - QDialogButtonBox::Ok | QDialogButtonBox::Cancel); - - QFormLayout *layout = new QFormLayout; - layout->addRow(tr("Location"), urlEdit); - layout->addWidget(buttons); - - QDialog dialog(this); - dialog.setLayout(layout); + statusChanged(imageViewer->mediaStatus()); - connect(urlEdit, SIGNAL(returnPressed()), &dialog, SLOT(accept())); - connect(buttons, SIGNAL(accepted()), &dialog, SLOT(accept())); - connect(buttons, SIGNAL(rejected()), &dialog, SLOT(reject())); - - if (dialog.exec() == QDialog::Accepted) { - QUrl url(urlEdit->text()); - - if (url.isValid()) - playlist->load(url); + emit enableButtons(playlist->mediaCount() > 0); } } @@ -204,3 +197,57 @@ break; } } + +void SlideShow::statusChanged(QMediaImageViewer::MediaStatus status) +{ + switch (status) { + case QMediaImageViewer::NoMedia: + statusLabel->setText(tr("%1 Images").arg(playlist->mediaCount())); + viewerLayout->setCurrentIndex(1); + break; + case QMediaImageViewer::LoadingMedia: + statusLabel->setText(tr("Image %1 of %2\nLoading...") + .arg(playlist->currentIndex()) + .arg(playlist->mediaCount())); + viewerLayout->setCurrentIndex(1); + break; + case QMediaImageViewer::LoadedMedia: + statusLabel->setText(tr("Image %1 of %2") + .arg(playlist->currentIndex()) + .arg(playlist->mediaCount())); + viewerLayout->setCurrentIndex(0); + break; + case QMediaImageViewer::InvalidMedia: + statusLabel->setText(tr("Image %1 of %2\nInvalid") + .arg(playlist->currentIndex()) + .arg(playlist->mediaCount())); + viewerLayout->setCurrentIndex(1); + break; + default: + break; + } +} + +void SlideShow::playlistLoaded() +{ + statusChanged(imageViewer->mediaStatus()); + + emit enableButtons(playlist->mediaCount() > 0); +} + +void SlideShow::playlistLoadFailed() +{ + statusLabel->setText(playlist->errorString()); + viewerLayout->setCurrentIndex(1); + + emit enableButtons(false); +} + +void SlideShow::elapsedTimeChanged(int time) +{ + const int remaining = (imageViewer->timeout() - time) / 1000; + + countdownLabel->setText(tr("%1:%2") + .arg(remaining / 60, 2, 10, QLatin1Char('0')) + .arg(remaining % 60, 2, 10, QLatin1Char('0'))); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/slideshow/slideshow.h --- a/qtmobility/examples/slideshow/slideshow.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/slideshow/slideshow.h Mon May 03 13:18:40 2010 +0300 @@ -48,6 +48,7 @@ QT_BEGIN_NAMESPACE class QAbstractButton; class QLabel; +class QStackedLayout; QT_END_NAMESPACE QTM_BEGIN_NAMESPACE @@ -62,21 +63,31 @@ public: SlideShow(QWidget *parent = 0); +signals: + void enableButtons(bool enable); + private slots: void openPlaylist(); void openDirectory(); - void openLocation(); void play(); void stateChanged(QMediaImageViewer::State state); + void statusChanged(QMediaImageViewer::MediaStatus status); + + void playlistLoaded(); + void playlistLoadFailed(); + + void elapsedTimeChanged(int time); private: QMediaImageViewer *imageViewer; QMediaPlaylist *playlist; - QLabel *imageLabel; + QLabel *statusLabel; + QLabel *countdownLabel; QAbstractButton *playButton; QAbstractButton *stopButton; + QStackedLayout *viewerLayout; }; #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/streamplayer/main.cpp --- a/qtmobility/examples/streamplayer/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +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 Qt Mobility Components. -** -** $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 "streamplayer.h" - -#include - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - - QString fileName = QFileDialog::getOpenFileName(); - - if (!fileName.isEmpty()) { - StreamPlayer player; - player.setFileName(fileName); - player.play(); - player.show(); - - return app.exec(); - } else { - return 0; - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/streamplayer/streamplayer.cpp --- a/qtmobility/examples/streamplayer/streamplayer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -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 Qt Mobility Components. -** -** $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 "streamplayer.h" - -#include - -#include - -StreamPlayer::StreamPlayer(QWidget *parent) - : QWidget(parent) - , player(0) - , progress(0) -{ - player = new QMediaPlayer; - connect(player, SIGNAL(metaDataChanged()), this, SLOT(metaDataChanged())); - connect(player, SIGNAL(durationChanged(qint64)), this, SLOT(durationChanged(qint64))); - connect(player, SIGNAL(positionChanged(qint64)), this, SLOT(positionChanged(qint64))); - - progress = new QProgressBar; - progress->setRange(0, 0); - - QBoxLayout *layout = new QVBoxLayout; - layout->addWidget(progress); - - setLayout(layout); -} - -StreamPlayer::~StreamPlayer() -{ - delete player; -} - -void StreamPlayer::setFileName(const QString &fileName) -{ - file.setFileName(fileName); - - if (file.open(QIODevice::ReadOnly)) { - player->setMedia(QMediaContent(), &file); - } -} - -void StreamPlayer::play() -{ - player->play(); -} - -void StreamPlayer::durationChanged(qint64 duration) -{ - progress->setMaximum(duration / 1000); -} - -void StreamPlayer::positionChanged(qint64 position) -{ - progress->setValue(position / 1000); -} - -void StreamPlayer::metaDataChanged() -{ - setWindowTitle(player->metaData(QtMedia::Title).toString()); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/streamplayer/streamplayer.h --- a/qtmobility/examples/streamplayer/streamplayer.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +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 Qt Mobility Components. -** -** $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 STREAMPLAYER_H -#define STREAMPLAYER_H - -#include -#include -#include - -QT_BEGIN_NAMESPACE -class QProgressBar; -QT_END_NAMESPACE - -QTM_BEGIN_NAMESPACE -class QMediaPlayer; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE -class StreamPlayer : public QWidget -{ - Q_OBJECT -public: - StreamPlayer(QWidget *parent = 0); - ~StreamPlayer(); - - void setFileName(const QString &fileName); - - void play(); - -private slots: - void durationChanged(qint64 duration); - void positionChanged(qint64 position); - void metaDataChanged(); - -private: - QMediaPlayer *player; - QProgressBar *progress; - QFile file; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/streamplayer/streamplayer.pro --- a/qtmobility/examples/streamplayer/streamplayer.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -TEMPLATE = app -TARGET=streamplayer - -INCLUDEPATH+=../../src/multimedia -include (../examples.pri) - -CONFIG += mobility -MOBILITY = multimedia - -HEADERS = \ - streamplayer.h - -SOURCES = \ - main.cpp \ - streamplayer.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/sysinfo/dialog.cpp --- a/qtmobility/examples/sysinfo/dialog.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/sysinfo/dialog.cpp Mon May 03 13:18:40 2010 +0300 @@ -294,6 +294,9 @@ homeMMCLabel->setText(ni->homeMobileCountryCode()); homeMNCLabel->setText(ni->homeMobileNetworkCode()); + + networkModeChanged(ni->currentMode()); + } void Dialog::netStatusComboActivated(int index) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/icons/addIcon.png Binary file qtmobility/examples/todotool/icons/addIcon.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/icons/deleteIcon.png Binary file qtmobility/examples/todotool/icons/deleteIcon.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/icons/drawing.svg --- a/qtmobility/examples/todotool/icons/drawing.svg Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,203 +0,0 @@ - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/icons/nextIcon.png Binary file qtmobility/examples/todotool/icons/nextIcon.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/icons/prevIcon.png Binary file qtmobility/examples/todotool/icons/prevIcon.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/icons/searchIcon.png Binary file qtmobility/examples/todotool/icons/searchIcon.png has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/icons/todotool.ui --- a/qtmobility/examples/todotool/icons/todotool.ui Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,305 +0,0 @@ - - - ToDoToolDiaog - - - - 0 - 0 - 222 - 264 - - - - ToDoTool - - - - - 20 - 40 - 61 - 31 - - - - - - - - addIcon.pngaddIcon.png - - - - - - 80 - 40 - 61 - 31 - - - - - - - - deleteIcon.pngdeleteIcon.png - - - - - - 140 - 40 - 61 - 31 - - - - - - - - searchIcon.pngsearchIcon.png - - - - - - 50 - 80 - 41 - 31 - - - - - - - - prevIcon.pngprevIcon.png - - - - - - 130 - 80 - 41 - 31 - - - - - - - - nextIcon.pngnextIcon.png - - - - - - 90 - 80 - 41 - 31 - - - - 6/10 - - - Qt::AlignCenter - - - - - - 20 - 10 - 181 - 21 - - - - - - - - - 0 - 0 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - - - 0 - 0 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - - - 126 - 125 - 124 - - - - - - - 126 - 125 - 124 - - - - - - - - - Nimbus Roman No9 L - 24 - 75 - true - true - - - - ToDoTool - - - Qt::AutoText - - - Qt::AlignCenter - - - - - - 30 - 120 - 161 - 131 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 127 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 127 - - - - - - - - - 255 - 255 - 127 - - - - - - - 255 - 255 - 127 - - - - - - - - - Comic Sans MS - 18 - true - - - - true - - - Service the car nand buy tyres - - - Qt::AlignCenter - - - true - - - - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/main.cpp --- a/qtmobility/examples/todotool/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +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 Qt Mobility Components. -** -** $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 -#include "todotool.h" - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - ToDoTool dialog; - -#ifdef Q_OS_SYMBIAN - dialog.showMaximused(); -#else - dialog.show(); -#endif - - return app.exec(); -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/resource.qrc --- a/qtmobility/examples/todotool/resource.qrc Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ - - - icons/searchIcon.png - icons/nextIcon.png - icons/prevIcon.png - icons/deleteIcon.png - icons/addIcon.png - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/todotool.cpp --- a/qtmobility/examples/todotool/todotool.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,230 +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 Qt Mobility Components. -** -** $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 -#include - -#include -#include - -#include "todotool.h" - -Q_DECLARE_METATYPE(QServiceInterfaceDescriptor) - -ToDoTool::ToDoTool(QWidget *parent, Qt::WindowFlags flags) - : QWidget(parent, flags) -{ - setupUi(this); - - serviceManager = new QServiceManager(this); - - registerExampleServices(); - - setWindowTitle(tr("ToDoTool")); - - init(); -} - -ToDoTool::~ToDoTool() -{ - unregisterExampleServices(); -} - -void ToDoTool::soundAlarm(const QDateTime& alarm) -{ - QString message = notesObject->property("message").toString(); - - QMessageBox msgBox; - msgBox.setWindowTitle("Alert"); - msgBox.setText(alarm.toString() + "\n\n" + message); - msgBox.exec(); -} - -void ToDoTool::init() -{ - QServiceManager mgr; - QServiceFilter filter; - filter.setServiceName("NotesManagerService"); - QList list = serviceManager->findInterfaces(filter); - - notesObject = mgr.loadInterface(list[0]); - - if (notesObject) - notesObject->setParent(this); - - { - currentNote = 1; - searchWord = ""; - refreshList(); - - QObject::connect(notesObject, SIGNAL(soundAlarm(QDateTime)), - this, SLOT(soundAlarm(QDateTime))); - } -} - -void ToDoTool::registerExampleServices() -{ - QStringList exampleXmlFiles; - exampleXmlFiles << "notesmanagerservice.xml"; - foreach (const QString &fileName, exampleXmlFiles) { - QString path = QCoreApplication::applicationDirPath() + "/xmldata/" + fileName; - serviceManager->addService(path); - } -} - -void ToDoTool::unregisterExampleServices() -{ - serviceManager->removeService("DatabaseManagerService"); -} - -void ToDoTool::refreshList() -{ - QMetaObject::invokeMethod(notesObject, "getNotes", - Q_RETURN_ARG(QList, ret), - Q_ARG(QString, searchWord)); - - totalNotes = ret.size(); - - if (totalNotes < 1) - currentNote = 0; - - refreshNotes(); -} - -void ToDoTool::refreshNotes() -{ - countLabel->setText(QString::number(currentNote) + "/" + QString::number(totalNotes)); - - if (currentNote == 0) { - dateLabel->setText(""); - noteLabel->setText("Click + to add a note"); - } - else { - dateLabel->setText(ret[currentNote-1].alert.toString()); - noteLabel->setText(ret[currentNote-1].message); - } -} - -void ToDoTool::on_nextButton_clicked() -{ - if (currentNote < totalNotes) { - currentNote++; - refreshNotes(); - } -} - -void ToDoTool::on_prevButton_clicked() -{ - if (currentNote > 1) { - currentNote--; - refreshNotes(); - } -} - -void ToDoTool::on_addButton_clicked() -{ - // re-implement date-time input method - - bool ok; - QString newNote = QInputDialog::getText(this, tr("ToDoTool"), - tr("Add a new note + alarm of format:\nnote#yyyy-mm-dd#hh:mm"), - QLineEdit::Normal, QDir::home().dirName(), &ok); - if (ok && !newNote.isEmpty()) { - QStringList note = newNote.split(QRegExp("#")); - - if (note.size() == 3) { - - QStringList date = note.at(1).split("-"); - QStringList time = note.at(2).split(":"); - - if (date.size() == 3 && time.size() == 2) { - QDateTime alarm = QDateTime::fromString(note.at(1)+" "+note.at(2),"yyyy-MM-dd HH:mm"); - QMetaObject::invokeMethod(notesObject, "addNote", - Q_ARG(QString, note.at(0)), - Q_ARG(QDateTime, alarm)); - refreshList(); - } - } else { - QMetaObject::invokeMethod(notesObject, "addNote", - Q_ARG(QString, note.at(0)), - Q_ARG(QDateTime, QDateTime::currentDateTime())); - } - - refreshList(); - } -} - -void ToDoTool::on_deleteButton_clicked() -{ - if (currentNote != 0) { - QMessageBox msgBox; - msgBox.setWindowTitle("ToDoTool"); - msgBox.setText("Are you sure you want to remove this note item?"); - msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); - - if (msgBox.exec() == QMessageBox::Ok) { - int index = ret[currentNote-1].index; - - QMetaObject::invokeMethod(notesObject, "removeNote", Q_ARG(int, index)); - if (currentNote > 1) - currentNote--; - - refreshList(); - } - } -} - -void ToDoTool::on_searchButton_clicked() -{ - bool ok; - QString searchNote = QInputDialog::getText(this, tr("ToDoTool"), tr("Find a note:"), - QLineEdit::Normal, QDir::home().dirName(), &ok); - if (ok) { - if (searchNote.isEmpty()) - searchWord = ""; - else - searchWord = searchNote; - - currentNote = 1; - refreshList(); - } -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/todotool.h --- a/qtmobility/examples/todotool/todotool.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,111 +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 Qt Mobility Components. -** -** $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 TODOTOOL_H -#define TODOTOOL_H - -#include -#include -#include -#include -#ifdef Q_OS_SYMBIAN -#include "ui_todotool_s60.h" -#else -#include "ui_todotool.h" -#endif - -QT_BEGIN_NAMESPACE -class QAbstractButton; -class QGroupBox; -class QListWidget; -class QListWidgetItem; -class QPushButton; -class QRadioButton; -QT_END_NAMESPACE - -QTM_BEGIN_NAMESPACE -class QServiceManager; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -typedef struct -{ - int index; - QString message; - QDateTime alert; -} Note; - -class ToDoTool : public QWidget, public Ui_ToDoTool -{ - Q_OBJECT -public: - ToDoTool(QWidget *parent = 0, Qt::WindowFlags flags = 0); - ~ToDoTool(); - -private slots: - void on_nextButton_clicked(); - void on_prevButton_clicked(); - void on_addButton_clicked(); - void on_deleteButton_clicked(); - void on_searchButton_clicked(); - void soundAlarm(const QDateTime &alarm); - -private: - void init(); - void refreshList(); - void refreshNotes(); - void registerExampleServices(); - void unregisterExampleServices(); - - QServiceManager *serviceManager; - QObject *notesObject; - - QList ret; - - QString searchWord; - int currentNote; - int totalNotes; - -}; - -#endif - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/todotool.pro --- a/qtmobility/examples/todotool/todotool.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -TEMPLATE = app -TARGET = todotool -INCLUDEPATH += ../../src/serviceframework - -include(../examples.pri) - -QT += gui - -# Input -HEADERS += todotool.h -SOURCES += todotool.cpp \ - main.cpp - -CONFIG += mobility -MOBILITY = serviceframework - -RESOURCES += resource.qrc - -win32 { - FORMS += todotool.ui -} - -unix: { - linux-*: { - FORMS += todotool.ui - } - - mac: { - FORMS += todotool.ui - } -} - -symbian { - addFiles.sources = ../notesmanagerplugin/notesmanagerservice.xml - addFiles.path = xmldata - DEPLOYMENT += addFiles - - TARGET.CAPABILITY = ALL -TCB - FORMS += todotool.ui #change to todotool_s60.ui -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/todotool.ui --- a/qtmobility/examples/todotool/todotool.ui Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,398 +0,0 @@ - - - ToDoTool - - - - 0 - 0 - 221 - 264 - - - - Qt::DefaultContextMenu - - - ToDoTool - - - - - 20 - 40 - 61 - 31 - - - - - - - - :/icons/icons/addIcon.png:/icons/icons/addIcon.png - - - - - - 80 - 40 - 61 - 31 - - - - - - - - :/icons/icons/deleteIcon.png:/icons/icons/deleteIcon.png - - - - - - 140 - 40 - 61 - 31 - - - - - - - - :/icons/icons/searchIcon.png:/icons/icons/searchIcon.png - - - - - - 50 - 80 - 41 - 31 - - - - - - - - :/icons/icons/prevIcon.png:/icons/icons/prevIcon.png - - - - - - 130 - 80 - 41 - 31 - - - - - - - - :/icons/icons/nextIcon.png:/icons/icons/nextIcon.png - - - - - - 90 - 80 - 41 - 31 - - - - 0/0 - - - Qt::AlignCenter - - - - - - 20 - 10 - 181 - 21 - - - - - - - - - 0 - 0 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - - - 0 - 0 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - - - 126 - 125 - 124 - - - - - - - 126 - 125 - 124 - - - - - - - - - Nimbus Roman No9 L - 24 - 75 - true - true - - - - ToDoTool - - - Qt::AutoText - - - Qt::AlignCenter - - - - - - 30 - 140 - 161 - 111 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 127 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 127 - - - - - - - - - 255 - 255 - 127 - - - - - - - 255 - 255 - 127 - - - - - - - - - Comic Sans MS - 18 - true - - - - true - - - Service the car nand buy tyres - - - Qt::AlignCenter - - - true - - - - - - 30 - 120 - 161 - 21 - - - - - - - - - 255 - 255 - 127 - - - - - - - 255 - 255 - 127 - - - - - - - - - 255 - 255 - 127 - - - - - - - 255 - 255 - 127 - - - - - - - - - 255 - 255 - 127 - - - - - - - 255 - 255 - 127 - - - - - - - - - 10 - - - - true - - - Jan 1, 2010 - 8:00PM - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/todotool/todotool_small.ui --- a/qtmobility/examples/todotool/todotool_small.ui Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,398 +0,0 @@ - - - ToDoTool - - - - 0 - 0 - 221 - 264 - - - - Qt::DefaultContextMenu - - - ToDoTool - - - - - 20 - 40 - 61 - 31 - - - - - - - - :/icons/icons/addIcon.png:/icons/icons/addIcon.png - - - - - - 80 - 40 - 61 - 31 - - - - - - - - :/icons/icons/deleteIcon.png:/icons/icons/deleteIcon.png - - - - - - 140 - 40 - 61 - 31 - - - - - - - - :/icons/icons/searchIcon.png:/icons/icons/searchIcon.png - - - - - - 50 - 80 - 41 - 31 - - - - - - - - :/icons/icons/prevIcon.png:/icons/icons/prevIcon.png - - - - - - 130 - 80 - 41 - 31 - - - - - - - - :/icons/icons/nextIcon.png:/icons/icons/nextIcon.png - - - - - - 90 - 80 - 41 - 31 - - - - 0/0 - - - Qt::AlignCenter - - - - - - 20 - 10 - 181 - 21 - - - - - - - - - 0 - 0 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - - - 0 - 0 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - - - 126 - 125 - 124 - - - - - - - 126 - 125 - 124 - - - - - - - - - Nimbus Roman No9 L - 24 - 75 - true - true - - - - ToDoTool - - - Qt::AutoText - - - Qt::AlignCenter - - - - - - 30 - 140 - 161 - 111 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 127 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 127 - - - - - - - - - 255 - 255 - 127 - - - - - - - 255 - 255 - 127 - - - - - - - - - Comic Sans MS - 18 - true - - - - true - - - Service the car nand buy tyres - - - Qt::AlignCenter - - - true - - - - - - 30 - 120 - 161 - 21 - - - - - - - - - 255 - 255 - 127 - - - - - - - 255 - 255 - 127 - - - - - - - - - 255 - 255 - 127 - - - - - - - 255 - 255 - 127 - - - - - - - - - 255 - 255 - 127 - - - - - - - 255 - 255 - 127 - - - - - - - - - 10 - - - - true - - - Jan 1, 2010 - 8:00PM - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/weatherinfo/weatherinfo.cpp --- a/qtmobility/examples/weatherinfo/weatherinfo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/weatherinfo/weatherinfo.cpp Mon May 03 13:18:40 2010 +0300 @@ -159,8 +159,8 @@ const bool canStartIAP = (manager.capabilities() & QNetworkConfigurationManager::CanStartAndStopInterfaces); // Is there default access point, use it - QNetworkConfiguration cfg = manager.defaultConfiguration(); - if (!cfg.isValid() || (!canStartIAP && cfg.state() != QNetworkConfiguration::Active)) { + QTM_PREPEND_NAMESPACE(QNetworkConfiguration) cfg = manager.defaultConfiguration(); + if (!cfg.isValid() || (!canStartIAP && cfg.state() != QTM_PREPEND_NAMESPACE(QNetworkConfiguration)::Active)) { QMessageBox::information(this, tr("Weather Info"), tr( "Available Access Points not found.")); return; @@ -261,7 +261,6 @@ QUrl url = networkReply->url(); if (!networkReply->error()) { QString data = QString::fromUtf8(networkReply->readAll()); - qDebug() << data; if (data.contains("", Qt::CaseInsensitive)) { requestWeatherOfTown(data); } else { @@ -299,6 +298,8 @@ void setupScene() { + m_scene.setBackgroundBrush(QBrush(palette().color(QPalette::Base))); + QColor textColor = palette().color(QPalette::WindowText); QFont textFont = font(); textFont.setBold(true); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/weatherinfo/weatherinfo.pro --- a/qtmobility/examples/weatherinfo/weatherinfo.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/weatherinfo/weatherinfo.pro Mon May 03 13:18:40 2010 +0300 @@ -1,5 +1,5 @@ TEMPLATE = app -TARGET = weatherinfo +TARGET = weatherinfo_with_location HEADERS = ../satellitedialog/satellitedialog.h \ ../flickrdemo/connectivityhelper.h diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/examples/writemessage/messagesender.cpp --- a/qtmobility/examples/writemessage/messagesender.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/examples/writemessage/messagesender.cpp Mon May 03 13:18:40 2010 +0300 @@ -145,6 +145,11 @@ QGroupBox *attachmentsGroup = new QGroupBox(tr("Attachments")); attachmentsGroup->setLayout(attachmentsLayout); +#ifdef Q_WS_MAEMO_5 + // Maemo 5 style doesn't take group box titles into account. + int spacingHack = QFontMetrics(QFont()).height(); + attachmentsLayout->setContentsMargins(0, spacingHack, 0, 0); +#endif textEdit = new QTextEdit; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/features/mobility.prf --- a/qtmobility/features/mobility.prf Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/features/mobility.prf Mon May 03 13:18:40 2010 +0300 @@ -1,6 +1,3 @@ -MOBILITY_PREFIX=$${EPOCROOT}sf/mw/qtextensions/qtmobility -MOBILITY_INCLUDE=$${EPOCROOT}sf/mw/qtextensions/qtmobility/include -MOBILITY_LIB=$${EPOCROOT}sf/mw/qtextensions/qtmobility/lib !symbian { INCLUDEPATH += $${MOBILITY_INCLUDE} @@ -10,7 +7,7 @@ INCLUDEPATH+=$$APP_LAYER_SYSTEMINCLUDE } - contains(MOBILITY,bearer|location|publishsubscribe|systeminfo|multimedia|messaging|serviceframework) { + contains(MOBILITY,bearer|location|publishsubscribe|systeminfo|multimedia|messaging|serviceframework|sensors) { INCLUDEPATH+=$$MW_LAYER_SYSTEMINCLUDE } } @@ -18,6 +15,7 @@ LIBS+= -L$${MOBILITY_LIB} contains(MOBILITY, bearer) { + DEFINES += QT_MOBILITY_BEARER qtAddLibrary(QtBearer) } @@ -40,6 +38,8 @@ } contains(MOBILITY, multimedia) { + QT += network multimedia + contains(QT_CONFIG, opengl): QT += opengl qtAddLibrary(QtMedia) } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/features/mobility.prf.template --- a/qtmobility/features/mobility.prf.template Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/features/mobility.prf.template Mon May 03 13:18:40 2010 +0300 @@ -7,7 +7,7 @@ INCLUDEPATH+=$$APP_LAYER_SYSTEMINCLUDE } - contains(MOBILITY,bearer|location|publishsubscribe|systeminfo|multimedia|messaging|serviceframework) { + contains(MOBILITY,bearer|location|publishsubscribe|systeminfo|multimedia|messaging|serviceframework|sensors) { INCLUDEPATH+=$$MW_LAYER_SYSTEMINCLUDE } } @@ -15,6 +15,7 @@ LIBS+= -L$${MOBILITY_LIB} contains(MOBILITY, bearer) { + DEFINES += QT_MOBILITY_BEARER qtAddLibrary(QtBearer) } @@ -37,6 +38,8 @@ } contains(MOBILITY, multimedia) { + QT += network multimedia + contains(QT_CONFIG, opengl): QT += opengl qtAddLibrary(QtMedia) } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/contacts.pro --- a/qtmobility/plugins/contacts/contacts.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/contacts.pro Mon May 03 13:18:40 2010 +0300 @@ -19,3 +19,4 @@ } wince*:SUBDIRS += wince maemo6:SUBDIRS += qtcontacts-tracker +maemo5:SUBDIRS += maemo5 diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/maemo5/maemo5.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/maemo5/maemo5.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,22 @@ +TEMPLATE = lib +CONFIG += plugin +TARGET = $$qtLibraryTarget(qtcontacts_maemo5) +PLUGIN_TYPE=contacts + +include(../../../common.pri) + +HEADERS += \ + qcontactabook_p.h \ + qcontactmaemo5backend_p.h \ + qcontactmaemo5debug_p.h +SOURCES += \ + qcontactabook.cpp \ + qcontactmaemo5backend.cpp \ + +INCLUDEPATH += $$SOURCE_DIR/src/contacts $$SOURCE_DIR/src/contacts/details $$SOURCE_DIR/src/contacts/filters $$SOURCE_DIR/src/contacts/requests + +target.path=$$QT_MOBILITY_PREFIX/plugins/contacts +INSTALLS += target +CONFIG += mobility link_pkgconfig +MOBILITY = contacts +PKGCONFIG += libosso-abook-1.0 diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/maemo5/osso-abook-workaround.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/maemo5/osso-abook-workaround.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,138 @@ +/* This file is a workaround for Maemo5 PR 1.1 + * This file should be deleted in PR 1.2 and + * replaced by + */ +#ifndef OSSO_ABOOK_WORKAROUND_H +#define OSSO_ABOOK_WORKAROUND_H + +#include +#include + +#include +#include +#include +#include +#include + +//### Remove in PR 1.2 +extern "C" { + typedef void GtkWindow; + struct _OssoABookContact { + EContact parent; + }; + + OssoABookRoster* osso_abook_roster_new (const char *name, + EBookView *book_view, + const char *vcard_field); + gboolean osso_abook_roster_is_running (OssoABookRoster *roster); + void osso_abook_roster_start (OssoABookRoster *roster); + + gboolean osso_abook_contact_has_valid_name (OssoABookContact *contact); + gboolean osso_abook_contact_is_roster_contact(OssoABookContact *contact); + + OssoABookRoster* osso_abook_aggregator_get_default (GError **error); + GList* osso_abook_aggregator_list_master_contacts + (OssoABookAggregator *aggregator); + unsigned osso_abook_aggregator_get_master_contact_count + (OssoABookAggregator *aggregator); + GList* osso_abook_aggregator_lookup (OssoABookAggregator *aggregator, + const char *uid); + const char* osso_abook_contact_get_uid (OssoABookContact *contact); + EBook* osso_abook_roster_get_book (OssoABookRoster *roster); + char* osso_abook_contact_to_string (OssoABookContact *contact, + EVCardFormat format, + gboolean inline_avatar); + char* osso_abook_contact_get_value (EContact *contact, + const char *attr_name); + GList* osso_abook_aggregator_find_contacts (OssoABookAggregator *aggregator, + EBookQuery *query); + GList* osso_abook_contact_get_values (EContact *contact, + const char *attr_name); + GList* osso_abook_contact_get_attributes (EContact *contact, + const char *attr_name); + GList* osso_abook_contact_get_roster_contacts + (OssoABookContact *master_contact); + McProfile* osso_abook_contact_get_profile (OssoABookContact *contact); + McAccount* osso_abook_contact_get_account (OssoABookContact *contact); + gboolean osso_abook_contact_delete (OssoABookContact *contact, + EBook *book, + GtkWindow *window); + GList* osso_abook_aggregator_find_contacts (OssoABookAggregator *aggregator, + EBookQuery *query); + const char* osso_abook_contact_get_display_name (OssoABookContact *contact); + GdkPixbuf* osso_abook_avatar_get_image_rounded (OssoABookAvatar *avatar, + int width, + int height, + gboolean crop, + int radius, + const guint8 border_color[4]); + OssoABookContact* osso_abook_contact_new (void); + guint osso_abook_contact_async_add (OssoABookContact *contact, + EBook *book, + EBookIdCallback callback, + gpointer user_data); + guint osso_abook_contact_async_commit (OssoABookContact *contact, + EBook *book, + EBookCallback callback, + gpointer user_data); + gboolean osso_abook_contact_add_value (EContact *contact, + const char *attr_name, + GCompareFunc value_check, + const char *value); + void osso_abook_contact_set_pixbuf (OssoABookContact *contact, + GdkPixbuf *pixbuf, + EBook *book, + GtkWindow *window); + + OssoABookSelfContact* osso_abook_self_contact_get_default + (void); + + // osso-abook-account-manager.h + const GList* osso_abook_account_manager_get_primary_vcard_fields + (OssoABookAccountManager *manager); + OssoABookAccountManager* osso_abook_account_manager_get_default(void); + const char* osso_abook_account_manager_get_vcard_field + (OssoABookAccountManager *manager, + const char *account_name); + // osso-abook-caps.h + typedef enum { + OSSO_ABOOK_CAPS_NONE = (0), + OSSO_ABOOK_CAPS_EMAIL = (1 << 0), + OSSO_ABOOK_CAPS_CHAT = (1 << 1), + OSSO_ABOOK_CAPS_CHAT_ADDITIONAL = (1 << 2), + OSSO_ABOOK_CAPS_VOICE = (1 << 3), + OSSO_ABOOK_CAPS_VOICE_ADDITIONAL = (1 << 4), + OSSO_ABOOK_CAPS_VIDEO = (1 << 5), + OSSO_ABOOK_CAPS_PHONE = (1 << 6), + OSSO_ABOOK_CAPS_ADDRESSBOOK = (1 << 7), + OSSO_ABOOK_CAPS_IMMUTABLE_STREAMS= (1 << 8), + OSSO_ABOOK_CAPS_SMS = (1 << 9), + + OSSO_ABOOK_CAPS_ALL = (OSSO_ABOOK_CAPS_EMAIL | OSSO_ABOOK_CAPS_CHAT | + OSSO_ABOOK_CAPS_VOICE | OSSO_ABOOK_CAPS_VIDEO | + OSSO_ABOOK_CAPS_PHONE | OSSO_ABOOK_CAPS_SMS) + } OssoABookCapsFlags; + GType osso_abook_caps_get_type (void) G_GNUC_CONST; + + typedef struct _OssoABookCaps OssoABookCaps; + #define OSSO_ABOOK_TYPE_CAPS \ + (osso_abook_caps_get_type ()) + + #define OSSO_ABOOK_CAPS(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + OSSO_ABOOK_TYPE_CAPS, \ + OssoABookCaps)) + + OssoABookCapsFlags osso_abook_caps_get_capabilities (OssoABookCaps *caps); + void osso_abook_contact_reject_for_uid (OssoABookContact *contact, + const char *master_uid, + GtkWindow *parent); + GType osso_abook_contact_get_type(void) G_GNUC_CONST; + #define OSSO_ABOOK_TYPE_CONTACT \ + (osso_abook_contact_get_type ()) + #define OSSO_ABOOK_IS_CONTACT(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + OSSO_ABOOK_TYPE_CONTACT)) +} + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/maemo5/qcontactabook.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/maemo5/qcontactabook.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1930 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qcontactmaemo5backend_p.h" +#include "qcontactabook_p.h" + +#include +#include + + +/* Error handling Macros */ +#define FATAL_IF_ERROR(x) if(x) { \ + QString message(x->message); \ + g_error_free(x); \ + qFatal(qPrintable(message)); \ + } +#define WARNING_IF_ERROR(x) if(x) { \ + QString message(x->message); \ + g_error_free(x); \ + qWarning(qPrintable(message)); \ + } + +/* Casting Macros */ +#define A_CONTACT(x) reinterpret_cast(x) +#define A_ROSTER(x) reinterpret_cast(x) +#define CONST_CHAR(x) static_cast(x) +#define FREE(x) free((void*)x) + +struct cbSharedData{ + QContactIDsHash* hash; + QContactABook *that; +}; + +struct jobSharedData{ + QContactABook* that; + bool *result; + char *uid; +}; + +/* QContactABook */ +QContactABook::QContactABook(QObject* parent) :QObject(parent), m_cbSD(0), m_deleteJobSD(0), m_saveJobSD(0) +{ + //Initialize QContactDetail context list + initAddressBook(); +} + +QContactABook::~QContactABook() +{ + OssoABookAggregator *roster = reinterpret_cast(m_abookAgregator); + if (g_signal_handler_is_connected(roster, m_contactAddedHandlerId)) + g_signal_handler_disconnect(roster, m_contactAddedHandlerId); + if (g_signal_handler_is_connected(roster, m_contactChangedHandlerId)) + g_signal_handler_disconnect(roster, m_contactChangedHandlerId); + if (g_signal_handler_is_connected(roster, m_contactRemovedHandlerId)) + g_signal_handler_disconnect(roster, m_contactRemovedHandlerId); + + // XXX FIXME: memory leak? + //g_object_unref(m_abookAgregator); + delete m_cbSD; + m_cbSD = 0; + delete m_deleteJobSD; + m_deleteJobSD = 0; + delete m_saveJobSD; + m_saveJobSD = 0; +} + +static void contactsAddedCB(OssoABookRoster *roster, OssoABookContact **contacts, gpointer data) +{ + QCM5_DEBUG << "CONTACT ADDED"; + Q_UNUSED(roster) + + cbSharedData* d = static_cast(data); + if (!d){ + qWarning() << "d has been deleted"; + return; + } + + OssoABookContact **p; + QList contactIds; + + for (p = contacts; *p; ++p) { + if (osso_abook_contact_is_roster_contact(*p)) + continue; + + // Add a new localID to the local ID hash + const char* uid = CONST_CHAR(e_contact_get_const(E_CONTACT(*p), E_CONTACT_UID)); + QContactLocalId id = d->hash->append(uid); + + if (id) + contactIds << id; + } + d->that->_contactsAdded(contactIds); +} + +static void contactsChangedCB(OssoABookRoster *roster, OssoABookContact **contacts, gpointer data) +{ + QCM5_DEBUG << "CONTACT CHANGED"; + Q_UNUSED(roster) + + cbSharedData* d = static_cast(data); + if (!d){ + qWarning() << "d has been deleted"; + return; + } + + OssoABookContact **p; + QList contactIds; + + for (p = contacts; *p; ++p) { + if (osso_abook_contact_is_roster_contact(*p)) + continue; + + const char* uid = CONST_CHAR(e_contact_get_const(E_CONTACT(*p), E_CONTACT_UID)); + QContactLocalId id = d->hash->find(uid); + //FREE(uid); + if (id) + contactIds << id; + } + d->that->_contactsChanged(contactIds); +} + +static void contactsRemovedCB(OssoABookRoster *roster, const char **ids, gpointer data) +{ + QCM5_DEBUG << "CONTACT REMOVED"; + Q_UNUSED(roster) + + cbSharedData* d = static_cast(data); + if (!d){ + qWarning() << "d has been deleted"; + return; + } + + const char **p; + QList contactIds; + + for (p = ids; *p; ++p) { + QContactLocalId id = d->hash->take(*p); + QCM5_DEBUG << "Contact" << id << "has been removed"; + if (id) + contactIds << id; + } + + d->that->_contactsRemoved(contactIds); +} + +void QContactABook::initAddressBook(){ + /* Open AddressBook */ + GError *gError = NULL; + OssoABookRoster* roster = NULL; + + roster = osso_abook_aggregator_get_default(&gError); + FATAL_IF_ERROR(gError) + + osso_abook_waitable_run((OssoABookWaitable *) roster, g_main_context_default(), &gError); + FATAL_IF_ERROR(gError) + + if (!osso_abook_waitable_is_ready ((OssoABookWaitable *) roster, &gError)) + FATAL_IF_ERROR(gError) + + m_abookAgregator = reinterpret_cast(roster); + + /* Initialize local Id Hash */ + initLocalIdHash(); + + /* Initialize callbacks shared data */ + m_cbSD = new cbSharedData; + m_cbSD->hash = &m_localIds; + m_cbSD->that = this; + + /* Setup signals */ + m_contactAddedHandlerId = g_signal_connect(roster, "contacts-added", + G_CALLBACK (contactsAddedCB), m_cbSD); + m_contactChangedHandlerId = g_signal_connect(roster, "contacts-changed", + G_CALLBACK (contactsChangedCB), m_cbSD); + m_contactRemovedHandlerId = g_signal_connect(roster, "contacts-removed", + G_CALLBACK (contactsRemovedCB), m_cbSD); + +#if 0 + //TEST List supported fields + EBook *book = NULL; + GList *l; + book = osso_abook_roster_get_book(roster); + e_book_get_supported_fields (book, &l, NULL); + while (l) { + qDebug() << "SUPPORTED FIELD" << (const char*)l->data; + l = l->next; + } + g_list_free(l); +#endif +} + +/*! Fill LocalId Hash associating an internal QContactLocalId to any + * master contact ID. + * NOTE: master contact IDs are string like "1" or "osso-abook-tmc1". + */ +void QContactABook::initLocalIdHash() +{ + GList *contactList = NULL; + GList *node; + + contactList = osso_abook_aggregator_list_master_contacts(m_abookAgregator); + + if (!contactList) { + qWarning() << "There are no Master contacts. LocalId hash is empty."; + return; + } + + for (node = contactList; node != NULL; node = g_list_next (node)) { + EContact *contact = E_CONTACT(node->data); + const char* data = CONST_CHAR(e_contact_get_const(contact, E_CONTACT_UID)); + QByteArray eContactUID(data); + //FREE(data); + m_localIds << eContactUID; //FIXME MemLeak + QCM5_DEBUG << "eContactID " << eContactUID << "has been stored in m_localIDs with key" << m_localIds[eContactUID]; + + // Useful for debugging. + if (QCM5_DEBUG_ENABLED) e_vcard_dump_structure((EVCard*)contact); + } + + g_list_free(contactList); +} + +QList QContactABook::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const +{ + QList rtn; + + /* Sorting */ + //NOTE Native sorting is possible thanks to g_list_sort. + // It's limited just to one filter. + // Multi filters support need non native sorting. + // Native filtering needs a lot of coding since we need + // detailDefinitionName * detailFieldName functions + // to compare couple of contacts + if (sortOrders.count()){ + QCM5_DEBUG << "Sorting..."; + // We don't need + // Fill Ids + QList Ids; + { + QList so; + QContactManager::Error e; + Ids = contactIds(filter, so, &e); + } + + // Fill Contact List + QList contacts; + foreach(QContactLocalId id, Ids){ + QContact *c; + QContactManager::Error e; + c = getQContact(id, &e); + if (e == QContactManager::NoError) + contacts << *c; + else + *error = e; + } + + // Non native sorting + return QContactManagerEngine::sortContacts(contacts, sortOrders); + } + + /* Matching action filter */ + //NOTE The code was not really tested */ + if(filter.type() == QContactFilter::ActionFilter){ + QContactActionFilter af(filter); + /* This looks a bit strange for me */ + QList descriptors = QContactAction::actionDescriptors(af.actionName(), af.vendorName(), af.implementationVersion()); + + GList *masterContacts = osso_abook_aggregator_list_master_contacts(m_abookAgregator); + for(; masterContacts; ){ + OssoABookContact *masterContact = A_CONTACT(masterContacts->data); + bool match = contactActionsMatch(masterContact, descriptors); + if(!match) { + GList *rosterContacts = osso_abook_contact_get_roster_contacts(masterContact); + for(; rosterContacts && !match; ){ + OssoABookContact *rosterContact = A_CONTACT(rosterContacts->data); + match = contactActionsMatch(rosterContact, descriptors); + rosterContacts = g_list_delete_link(rosterContacts, rosterContacts); + } + g_list_free(rosterContacts); + } + if(match){ + EContact *contact = E_CONTACT(masterContact); + const char* data = CONST_CHAR(e_contact_get_const(contact, E_CONTACT_UID)); + QByteArray localId(data); + m_localIds << localId; + rtn.append(m_localIds[localId]); + QCM5_DEBUG << "eContactID " << localId << "has been stored in m_localIDs with key" << m_localIds[localId]; + } + masterContacts = g_list_delete_link(masterContacts, masterContacts); + } + *error = QContactManager::NoError; + return rtn; + } + + EBookQuery* query = convert(filter); + + GList* l = osso_abook_aggregator_find_contacts(m_abookAgregator, query); + if (query) + e_book_query_unref(query); + + while (l){ + EContact *contact = E_CONTACT(l->data); + const char* data = CONST_CHAR(e_contact_get_const(contact, E_CONTACT_UID)); + QByteArray localId(data); + m_localIds << localId; + rtn.append(m_localIds[localId]); + QCM5_DEBUG << "eContactID " << localId << "has been stored in m_localIDs with key" << m_localIds[localId]; + l = g_list_delete_link(l, l); + } + + *error = QContactManager::NoError; + return rtn; +} + +QContact* QContactABook::getQContact(const QContactLocalId& contactId, QContactManager::Error* error) const +{ + QContact *rtn; + OssoABookContact* aContact = getAContact(contactId); + if (!aContact) { + qWarning() << "Unable to get a valid AContact"; + *error = QContactManager::DoesNotExistError; + return new QContact; + } + + //Convert aContact => qContact + rtn = convert(E_CONTACT(aContact)); + return rtn; +} + +static void delContactCB(EBook *book, EBookStatus status, gpointer closure) +{ + Q_UNUSED(book); + QCM5_DEBUG << "Contact Removed"; + + jobSharedData *sd = static_cast(closure); + if (!sd) + return; + + *sd->result = (status != E_BOOK_ERROR_OK && + status != E_BOOK_ERROR_CONTACT_NOT_FOUND) ? false : true; + sd->that->_jobRemovingCompleted(); +} + +//### FIXME error is not managed +bool QContactABook::removeContact(const QContactLocalId& contactId, QContactManager::Error* error) +{ + Q_UNUSED(error); + QMutexLocker locker(&m_delContactMutex); + + bool ok = false; + + OssoABookRoster *roster = A_ROSTER(m_abookAgregator); + EBook *book = osso_abook_roster_get_book(roster); + OssoABookContact *aContact = getAContact(contactId); + if (!OSSO_ABOOK_IS_CONTACT(aContact)){ + qWarning() << "aCtontact is not a valid ABook contact"; + return false; + } + + // ASync => Sync + QEventLoop loop; + connect(this, SIGNAL(jobRemovingCompleted()), &loop, SLOT(quit())); + + // Prepare shared data + if (m_deleteJobSD){ + delete m_deleteJobSD; + m_deleteJobSD = 0; + } + m_deleteJobSD = new jobSharedData; + m_deleteJobSD->that = this; + m_deleteJobSD->result = &ok; + + //Remove photos + EContactPhoto *photo = NULL; + GFile *file = NULL; + photo = (EContactPhoto*) e_contact_get(E_CONTACT (aContact), E_CONTACT_PHOTO); + if (photo) { + if (photo->type == E_CONTACT_PHOTO_TYPE_URI && photo->data.uri) { + file = g_file_new_for_uri(photo->data.uri); + g_file_delete(file, NULL, NULL); + g_object_unref (file); + } + e_contact_photo_free (photo); + } + + //Remove all roster contacts from their roster + GList* rosterContacts = NULL; + rosterContacts = osso_abook_contact_get_roster_contacts(aContact); + const char *masterUid = CONST_CHAR(e_contact_get_const(E_CONTACT(aContact), E_CONTACT_UID)); + while(rosterContacts){ + OssoABookContact *rosterContact = A_CONTACT(rosterContacts->data); + osso_abook_contact_reject_for_uid(rosterContact, masterUid, NULL); + rosterContacts = rosterContacts->next; + } + + // Remove contact + e_book_async_remove_contact(book, E_CONTACT(aContact), + delContactCB, m_deleteJobSD); + + loop.exec(QEventLoop::AllEvents|QEventLoop::WaitForMoreEvents); + + return ok; +} + +static void commitContactCB(EBook* book, EBookStatus status, gpointer user_data) +{ + Q_UNUSED(book) + jobSharedData *sd = static_cast(user_data); + + *sd->result = (status == E_BOOK_ERROR_OK) ? true : false; + sd->that->_jobSavingCompleted(); +} + +static void addContactCB(EBook* book, EBookStatus status, const char *uid, gpointer user_data) +{ + jobSharedData *sd = static_cast(user_data); + if (uid) + sd->uid = strdup(uid); + + //osso_abook_contact_set_roster(OssoABookContact *contact, OssoABookRoster *roster) + commitContactCB(book, status, user_data); +} + +bool QContactABook::saveContact(QContact* contact, QContactManager::Error* error) +{ + QMutexLocker locker(&m_saveContactMutex); + + if (!contact) { + *error = QContactManager::BadArgumentError; + return false; + } + + bool ok = false; + + OssoABookContact *aContact = NULL; + const char *uid; + EBook *book; + { + OssoABookRoster* roster = reinterpret_cast(m_abookAgregator); + book = osso_abook_roster_get_book(roster); + } + + // Conver QContact to AContact + aContact = convert(contact); + if (!aContact){ + *error = QContactManager::UnspecifiedError; + return false; + } + + // ASync => Sync + QEventLoop loop; + connect(this, SIGNAL(jobSavingCompleted()), &loop, SLOT(quit())); + + // Prepare shared data + if (m_saveJobSD){ + delete m_saveJobSD; + m_saveJobSD = 0; + } + m_saveJobSD = new jobSharedData; + m_saveJobSD->that = this; + m_saveJobSD->result = &ok; + + // Add/Commit the contact + uid = CONST_CHAR(e_contact_get_const(E_CONTACT (aContact), E_CONTACT_UID)); + if (uid) { + osso_abook_contact_async_commit(aContact, book, commitContactCB, m_saveJobSD); + } else { + osso_abook_contact_async_add(aContact, book, addContactCB, m_saveJobSD); + } + + loop.exec(QEventLoop::AllEvents|QEventLoop::WaitForMoreEvents); + + // set the id of the contact. + QContactId cId; + cId.setLocalId(m_localIds[m_saveJobSD->uid]); + contact->setId(cId); + //free(m_saveJobSD->uid); + + return ok; +} + +QContactLocalId QContactABook::selfContactId(QContactManager::Error* errors) const +{ + QContactLocalId id; + EContact *self = E_CONTACT(osso_abook_self_contact_get_default()); + if (self) { + *errors = QContactManager::NoError; + const char* data = CONST_CHAR(e_contact_get_const(self, E_CONTACT_UID)); + const QByteArray eContactUID(data); + QContactLocalId localId = m_localIds[eContactUID]; + if (localId) + id = localId; + else { + m_localIds << eContactUID; //FIXME MemLeak + id = m_localIds[eContactUID]; + QCM5_DEBUG << "eContactID " << eContactUID << "has been stored in m_localIDs with key" << id; + } + } else { + qWarning() << "Cannot find self contact"; + *errors = QContactManager::DoesNotExistError; + id = 0; + } + g_object_unref(self); + return id; +} + +bool QContactABook::contactActionsMatch(OssoABookContact *contact, QList descriptors) const +{ + OssoABookCapsFlags capsFlags = osso_abook_caps_get_capabilities(OSSO_ABOOK_CAPS(contact)); + + if(capsFlags & OSSO_ABOOK_CAPS_NONE) + return false; + + /* ActionNames could be incorrect */ + OssoABookCapsFlags actionFlags = OSSO_ABOOK_CAPS_NONE; + for(int i = 0; i < descriptors.size(); i++){ + QString actionName = descriptors.at(i).actionName(); + QCM5_DEBUG << actionName; + if(!actionName.compare("Phone")) + actionFlags = (OssoABookCapsFlags)(actionFlags | OSSO_ABOOK_CAPS_PHONE); + else if(!actionName.compare("Voice")) + actionFlags = (OssoABookCapsFlags)(actionFlags | OSSO_ABOOK_CAPS_VOICE); + else if(!actionName.compare("SendEmail")) + actionFlags = (OssoABookCapsFlags)(actionFlags | OSSO_ABOOK_CAPS_EMAIL); + else if(!actionName.compare("Chat")) + actionFlags = (OssoABookCapsFlags)(actionFlags | OSSO_ABOOK_CAPS_CHAT); + else if(!actionName.compare("ChatAdditional")) + actionFlags = (OssoABookCapsFlags)(actionFlags | OSSO_ABOOK_CAPS_CHAT_ADDITIONAL); + else if(!actionName.compare("VoiceAdditional")) + actionFlags = (OssoABookCapsFlags)(actionFlags | OSSO_ABOOK_CAPS_VOICE_ADDITIONAL); + else if(!actionName.compare("Video")) + actionFlags = (OssoABookCapsFlags)(actionFlags | OSSO_ABOOK_CAPS_VIDEO); + else if(!actionName.compare("Addressbook")) + actionFlags = (OssoABookCapsFlags)(actionFlags | OSSO_ABOOK_CAPS_ADDRESSBOOK); + } + return ((actionFlags & capsFlags) == actionFlags); +} + +EBookQuery* QContactABook::convert(const QContactFilter& filter) const +{ + EBookQuery* query = NULL; + + switch(filter.type()){ + case QContactFilter::DefaultFilter: + { + QCM5_DEBUG << "QContactFilter::DefaultFilter"; + query = e_book_query_any_field_contains(""); //Match all contacts + } break; + case QContactFilter::LocalIdFilter: + { + QCM5_DEBUG << "LocalIdFilter"; + const QContactLocalIdFilter f(filter); + QList ids = f.ids(); + if (ids.isEmpty()) + return NULL; + + query= NULL; + foreach(const QContactLocalId id, ids){ + EBookQuery* q = NULL; + + // Looking for the eContact local id inside the localId hash + const char* eContactId = m_localIds[id]; + if (!eContactId[0]) + return NULL; + + q = e_book_query_field_test(E_CONTACT_UID, E_BOOK_QUERY_IS, eContactId); + if (!q) + continue; + if (query) + query = e_book_query_orv(query, q, NULL); + else + query = q; + } + } break; + case QContactFilter::ContactDetailFilter: + { + QCM5_DEBUG << "ContactDetailFilter"; + const QContactDetailFilter f(filter); + QString queryStr; + if (!f.value().isValid()) + return NULL; + switch (f.matchFlags()){ + case QContactFilter::MatchContains: queryStr = "contains"; break; + case QContactFilter::MatchFixedString: + case QContactFilter::MatchCaseSensitive: + case QContactFilter::MatchExactly: queryStr = "is"; break; + case QContactFilter::MatchStartsWith: queryStr = "beginswith"; break; + case QContactFilter::MatchEndsWith: queryStr = "endswith"; break; + default: + queryStr = "contains"; + qWarning() << "Match flag not supported"; + } + static QHash hash; + if (hash.isEmpty()){ + hash[QContactAddress::DefinitionName] = "address"; + hash[QContactBirthday::DefinitionName] = "birth-date"; + hash[QContactDisplayLabel::DefinitionName] = "full-name"; //hack + hash[QContactEmailAddress::DefinitionName] = "email"; + hash[QContactName::DefinitionName] = "full-name"; + hash[QContactNickname::DefinitionName] = "nickname"; + hash[QContactNote::DefinitionName] = "note"; + hash[QContactOrganization::DefinitionName] = "title"; + hash[QContactPhoneNumber::DefinitionName] = "phone"; + hash[QContactUrl::DefinitionName] = "homepage-url"; + } + + QString eDetail = hash[f.detailDefinitionName()]; + if (eDetail.isEmpty()){ + qWarning() << "Unable to found an ebook detail for " << f.detailDefinitionName(); + return NULL; + } + queryStr = queryStr + " \"" + eDetail + "\" \"" + f.value().toString() + "\""; + query = e_book_query_from_string(qPrintable(queryStr)); + } break; + case QContactFilter::ActionFilter: + QCM5_DEBUG << "ActionFilter"; //eQuery doesn't support ActionFilter + break; + case QContactFilter::IntersectionFilter: + { + QCM5_DEBUG << "IntersectionFilter"; + const QContactIntersectionFilter f(filter); + const QList fs= f.filters(); + QContactFilter i; + foreach(i, fs){ + EBookQuery* q = convert(i); + if (!q){ + qWarning() << "Query is null"; + continue; + } + if (query) + query = e_book_query_andv(query, q, NULL); + else + query = q; + } + } break; + case QContactFilter::UnionFilter: + { + QCM5_DEBUG << "UnionFilter"; + const QContactUnionFilter f(filter); + const QList fs= f.filters(); + QContactFilter i; + foreach(i, fs){ + EBookQuery* q = convert(i); + if (!q){ + qWarning() << "Query is null"; + continue; + } + if (query) + query = e_book_query_orv(query, q, NULL); + else + query = q; + } + } break; + case QContactFilter::InvalidFilter: + { + QCM5_DEBUG << "InvalidFilter"; + query = e_book_query_from_string("(is \"id\" \"-1\")"); + } break; + default: + QCM5_DEBUG << "Filter not supported"; + } + + //Debugging + const char *queryString = e_book_query_to_string(query); + QCM5_DEBUG << "QUERY" << queryString; + FREE(queryString); + + return query; +} + +QContact* QContactABook::convert(EContact *eContact) const +{ + QContact *contact = new QContact(); + QList detailList; + + /* Id */ + contact->setId(getContactId(eContact)); + + /* Address */ + QList addressList = getAddressDetail(eContact); + QContactAddress* address; + foreach(address, addressList) + detailList << address; + + /* Avatar */ + detailList << getAvatarDetail(eContact); // XXX TODO: FIXME + detailList << getThumbnailDetail(eContact); + + /* BirthDay */ + detailList << getBirthdayDetail(eContact); + + /* Email */ + QList emailList = getEmailDetail(eContact); + QContactEmailAddress* email; + foreach(email, emailList) + detailList << email; + + /* Gender */ + detailList << getGenderDetail(eContact); + + /* Global UID*/ + detailList << getGuidDetail(eContact); + + /* Name & NickName*/ + detailList << getNameDetail(eContact); + detailList << getNicknameDetail(eContact); + + /* Note */ + detailList << getNoteDetail(eContact); + + /* Online Account */ + QList onlineAccountList = getOnlineAccountDetail(eContact); + QContactOnlineAccount* onlineAccount; + foreach(onlineAccount, onlineAccountList) + detailList << onlineAccount; + + /* Organization */ + detailList << getOrganizationDetail(eContact); + + /* Phone*/ + QList phoneNumberList = getPhoneDetail(eContact); + QContactPhoneNumber* phoneNumber; + foreach(phoneNumber, phoneNumberList) + detailList << phoneNumber; + + /* TimeStamp */ + detailList << getTimestampDetail(eContact); + + /* Url */ + detailList << getUrlDetail(eContact); + + bool ok; + QContactDetail* detail; + + foreach(detail, detailList){ + if (detail->isEmpty()){ + delete detail; + continue; + } + + ok = contact->saveDetail(detail); + if (!ok){ + qWarning() << "Detail can't be saved into QContact"; + delete detail; + continue; + } + delete detail; + } + + return contact; +} + +bool QContactABook::setDetailValues(const QVariantMap& data, QContactDetail* detail) const +{ + QMapIterator i(data); + QVariant value; + while (i.hasNext()) { + i.next(); + value = i.value(); + + if (value.isNull()) + continue; + + if (value.canConvert() && value.toString().isEmpty()) + continue; + + QCM5_DEBUG << "Set" << i.key() << i.value(); + detail->setValue(i.key(), i.value()); + + } + + if (detail->isEmpty()) + return false; + return true; +} + +OssoABookContact* QContactABook::getAContact(const QContactLocalId& contactId) const +{ + OssoABookContact* rtn = NULL; + + QCM5_DEBUG << "Getting aContact with id " << m_localIds[contactId] << "local contactId is" << contactId; + + if(QString(m_localIds[contactId]).compare("osso-abook-self") == 0) { + rtn = A_CONTACT(osso_abook_self_contact_get_default()); + } else { + EBookQuery* query; + GList* contacts; + + query = e_book_query_field_test(E_CONTACT_UID, E_BOOK_QUERY_IS, m_localIds[contactId]); + contacts = osso_abook_aggregator_find_contacts(m_abookAgregator, query); + if (query) + e_book_query_unref(query); + + if (g_list_length(contacts) == 1) { + rtn = A_CONTACT(contacts->data); + } else { + qWarning("List is empty or several contacts have the same UID or contactId belongs to a roster contact."); + } + if (contacts) + g_list_free(contacts); + } + + return rtn; +} + +QContactId QContactABook::getContactId(EContact *eContact) const +{ + QContactId rtn; + /* Set LocalId */ + { + const char* data = CONST_CHAR(e_contact_get_const(eContact, E_CONTACT_UID)); + const QByteArray eContactUID(data); + QContactLocalId localId = m_localIds[eContactUID]; + if (!localId) + qWarning("Unable to get valid localId for the specified eContaact UID"); + rtn.setLocalId(localId); + } + return rtn; +} + +QList QContactABook::getAddressDetail(EContact *eContact) const +{ + QList rtnList; + + //Ordered list of Fields + QStringList addressFields; + addressFields << QContactAddress::FieldPostOfficeBox + << "Estension" //FIXME I'm not sure we have to use a new field + << QContactAddress::FieldStreet + << QContactAddress::FieldLocality + << QContactAddress::FieldRegion + << QContactAddress::FieldPostcode + << QContactAddress::FieldCountry; + + GList* attrList = osso_abook_contact_get_attributes(eContact, EVC_ADR); + + for (GList *node = g_list_last(attrList); node != NULL; node = g_list_previous(node)) { + QContactAddress *address = new QContactAddress; + QVariantMap map; + + EVCardAttribute *attr = static_cast(node->data); + + + // Set Address Context using attribute parameter value + EVCardAttributeParam *param = NULL; + GList* p = e_vcard_attribute_get_params(attr); + + if (p) + param = static_cast(p->data); + + if (param){ + GList *v = e_vcard_attribute_param_get_values(param); + QString context = CONST_CHAR(v->data); + if (context == "HOME") + address->setContexts(QContactDetail::ContextHome); + else if (context == "WORK") + address->setContexts(QContactDetail::ContextWork); + } + + // Set Address Values + GList *v = NULL; + v =e_vcard_attribute_get_values(attr); + if (!v) + qFatal("ADR attribute data is corrupted"); + if (g_list_length(v) != 7){ + g_list_free(v); + qCritical() << "ADR attribute data is corrupted"; + } + int i = 0; + while (v){ + map[addressFields[i]] = QString::fromLatin1(CONST_CHAR(v->data)); + i++; + v = v->next; + } + g_list_free(v); + map[QContactDetail::FieldDetailUri] = QString::number(g_list_position(attrList, node)); + setDetailValues(map, address); + + rtnList << address; + } + + g_list_free(attrList); + + return rtnList; +} + +QContactName* QContactABook::getNameDetail(EContact *eContact) const +{ + QContactName* rtn = new QContactName; + QVariantMap map; + + //Try to get the structure (looks that this is not supported in Maemo5) + EContactName* eContactName = static_cast (e_contact_get(eContact, E_CONTACT_NAME)); + if (eContactName){ + map[QContactName::FieldCustomLabel] = eContactName->additional; + map[QContactName::FieldFirstName] = eContactName->given; + map[QContactName::FieldLastName] = eContactName->family; + //map[QContactName::FieldMiddleName] = eContactName-> + map[QContactName::FieldPrefix] = eContactName->prefixes; + map[QContactName::FieldSuffix] = eContactName->suffixes; + e_contact_name_free (eContactName); + } else { + //Looks that Maemo use just these two fields + map[QContactName::FieldFirstName] = CONST_CHAR(e_contact_get_const(eContact, E_CONTACT_GIVEN_NAME)); + map[QContactName::FieldLastName] = CONST_CHAR(e_contact_get_const(eContact, E_CONTACT_FAMILY_NAME)); + } + setDetailValues(map, rtn); + return rtn; +} + +QContactNickname* QContactABook::getNicknameDetail(EContact *eContact) const +{ + QContactNickname* rtn = new QContactNickname; + QVariantMap map; + map[QContactNickname::FieldNickname] = CONST_CHAR (e_contact_get_const(eContact, E_CONTACT_NICKNAME)); + setDetailValues(map, rtn); + return rtn; +} + +QList QContactABook::getEmailDetail(EContact *eContact) const +{ + QList rtnList; + + GList* attrList = osso_abook_contact_get_attributes(eContact, EVC_EMAIL); //FIXME MemLeak + + for (GList *node = g_list_last(attrList); node != NULL; node = g_list_previous(node)) { + QContactEmailAddress *email = new QContactEmailAddress; + QVariantMap map; + + EVCardAttribute *attr = static_cast(node->data); + + // Set Address Context using attribute parameter value + EVCardAttributeParam *param = NULL; + GList* p = e_vcard_attribute_get_params(attr); + + if (p) + param = static_cast(p->data); + + if (param){ + GList *v = e_vcard_attribute_param_get_values(param); + QString context = CONST_CHAR(v->data); + if (context == "HOME") + email->setContexts(QContactDetail::ContextHome); + else if (context == "WORK") + email->setContexts(QContactDetail::ContextWork); + } + + // Set Address Values + GList *v = e_vcard_attribute_get_values(attr); + int i = 0; + while (v){ + map[QContactEmailAddress::FieldEmailAddress] = QString::fromLatin1(CONST_CHAR(v->data)); + i++; + v = v->next; + } + g_list_free(v); + + map[QContactDetail::FieldDetailUri] = QString::number(g_list_position(attrList, node)); + setDetailValues(map, email); + rtnList << email; + } + g_list_free(attrList); + + return rtnList; +} + +QContactAvatar* QContactABook::getAvatarDetail(EContact *eContact) const +{ + Q_UNUSED(eContact); +// XXX TODO: FIXME +// QContactAvatar* rtn = new QContactAvatar; +// QVariantMap map; +// +// OssoABookContact *aContact = A_CONTACT(eContact); +// if (!aContact) +// return rtn; +// +// //GdkPixbuf* pixbuf = osso_abook_contact_get_avatar_pixbuf(aContact, NULL, NULL); +// GdkPixbuf* pixbuf = osso_abook_avatar_get_image_rounded(OSSO_ABOOK_AVATAR(aContact), 64, 64, true, 4, NULL); +// if (!GDK_IS_PIXBUF(pixbuf)){ +// FREE(pixbuf); +// return rtn; +// } +// +// const uchar* bdata = (const uchar*)gdk_pixbuf_get_pixels(pixbuf); +// QSize bsize(gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf)); +// +// //Convert GdkPixbuf to QPixmap +// QImage converted(bdata, bsize.width(), bsize.height(), QImage::Format_ARGB32_Premultiplied); +// map[QContactAvatar::FieldPixmap] = QPixmap::fromImage(converted); +// g_object_unref(pixbuf); +// setDetailValues(map, rtn); +// +// return rtn; + + QContactAvatar* empty = new QContactAvatar; + return empty; +} + +QContactBirthday* QContactABook::getBirthdayDetail(EContact *eContact) const +{ + QContactBirthday* rtn = new QContactBirthday; + QVariantMap map; + EContactDate *date =static_cast(e_contact_get(eContact, E_CONTACT_BIRTH_DATE)); + if (!date) + return rtn; + QDate birthday(date->year, date->month, date->day); + e_contact_date_free(date); + map[QContactBirthday::FieldBirthday] = birthday; + setDetailValues(map, rtn); + return rtn; +} + +QContactGender* QContactABook::getGenderDetail(EContact *eContact) const +{ + QContactGender* rtn = new QContactGender; + QVariantMap map; + const char* g = CONST_CHAR(osso_abook_contact_get_value(eContact, "X-GENDER")); + QString gender = QString::fromLatin1(g); + if (gender == "male") + gender = "Male"; + else if (gender == "female") + gender = "Female"; + else if (gender == "unspecified") + gender = "Unspecified"; + + map[QContactGender::FieldGender] = gender; + FREE(g); + setDetailValues(map, rtn); + return rtn; +} + +//NOTE Using UID as GUID +QContactGuid* QContactABook::getGuidDetail(EContact *eContact) const +{ + QContactGuid* rtn = new QContactGuid; + QVariantMap map; + const char* uid = CONST_CHAR(e_contact_get(eContact, E_CONTACT_UID)); + map[QContactGuid::FieldGuid] = uid; + FREE(uid); + setDetailValues(map, rtn); + return rtn; +} + +QContactNote* QContactABook::getNoteDetail(EContact *eContact) const +{ + QContactNote* rtn = new QContactNote; + QVariantMap map; + const char* note = CONST_CHAR(e_contact_get(eContact, E_CONTACT_NOTE)); + map[QContactNote::FieldNote] = QString::fromLatin1(note); + FREE(note); + setDetailValues(map, rtn); + return rtn; +} + +static const QStringList vcardsManagedByTelepathy(){ + QStringList rtn; + OssoABookAccountManager* accountMgr = osso_abook_account_manager_get_default(); + const GList *vcardFields = osso_abook_account_manager_get_primary_vcard_fields(accountMgr); + while (vcardFields){ + QString field = (const char*)vcardFields->data; + if (!rtn.contains(field)) + rtn << field; + vcardFields = vcardFields->next; + } + + return rtn; +} + +QList QContactABook::getOnlineAccountDetail(EContact *eContact) const +{ + QList rtnList; + + QStringList evcardToSkip = vcardsManagedByTelepathy(); + + // Gets info of online accounts from roster contacts associated to the master one + if (!osso_abook_contact_is_roster_contact (A_CONTACT(eContact))) { + QContactOnlineAccount* rtn = new QContactOnlineAccount; + + GList *contacts = osso_abook_contact_get_roster_contacts(A_CONTACT(eContact)); + GList *node; + for (node = contacts; node != NULL; node = g_list_next(node)){ + OssoABookContact *rosterContact = A_CONTACT(node->data); + + McProfile* id = osso_abook_contact_get_profile(rosterContact); + McAccount* account = osso_abook_contact_get_account(rosterContact); + + // Avoid to look for Roster contacts into the VCard + QString accountVCard = QString::fromLatin1(mc_profile_get_vcard_field(id)); + evcardToSkip.removeOne(accountVCard); + + // Presence + OssoABookPresence *presence = OSSO_ABOOK_PRESENCE (rosterContact); + TpConnectionPresenceType presenceType = osso_abook_presence_get_presence_type (presence); + QString presenceTypeString; + QContactPresence::PresenceState presenceTypeEnum; + switch (presenceType) { + case TP_CONNECTION_PRESENCE_TYPE_UNSET: presenceTypeString = "Unset"; presenceTypeEnum = QContactPresence::PresenceUnknown; break; + case TP_CONNECTION_PRESENCE_TYPE_OFFLINE: presenceTypeString = "Offline"; presenceTypeEnum = QContactPresence::PresenceOffline; break; + case TP_CONNECTION_PRESENCE_TYPE_AVAILABLE: presenceTypeString = "Available"; presenceTypeEnum = QContactPresence::PresenceAvailable; break; + case TP_CONNECTION_PRESENCE_TYPE_AWAY: presenceTypeString = "Away"; presenceTypeEnum = QContactPresence::PresenceAway; break; + case TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY: presenceTypeString = "Extended Away"; presenceTypeEnum = QContactPresence::PresenceExtendedAway; break; + case TP_CONNECTION_PRESENCE_TYPE_HIDDEN: presenceTypeString = "Hidden"; presenceTypeEnum = QContactPresence::PresenceHidden; break; + case TP_CONNECTION_PRESENCE_TYPE_BUSY: presenceTypeString = "Busy"; presenceTypeEnum = QContactPresence::PresenceBusy; break; + case TP_CONNECTION_PRESENCE_TYPE_UNKNOWN: presenceTypeString = "Unknown"; presenceTypeEnum = QContactPresence::PresenceUnknown; break; + case TP_CONNECTION_PRESENCE_TYPE_ERROR: presenceTypeString = "Error"; presenceTypeEnum = QContactPresence::PresenceUnknown; break; + default: + qCritical() << "Presence type is not vaild" << presenceType; + } + + QVariantMap map; + map[QContactOnlineAccount::FieldServiceProvider] = mc_profile_get_unique_name(id); + map[QContactOnlineAccount::FieldDetailUri] = mc_profile_get_unique_name(id); // use this as detail URI so we can link to presence. + map["AccountPath"] = account->name; //MCAccount name: variable part of the D-Bus object path. + + setDetailValues(map, rtn); + } + rtnList << rtn; + g_list_free (contacts); + } + + /* Users can add Online account details manually. Eg: IRC username. + * evcardToSkip stringlist contains evCard attributes that have been already processed. + */ + GList *attributeList = e_vcard_get_attributes((EVCard*)eContact); + GList *node; + + if (attributeList) { + for (node = attributeList; node != NULL; node = g_list_next (node)) { + EVCardAttribute* attr = (EVCardAttribute*)node->data; + if (!attr) + continue; + QString attributeName = QString::fromLatin1(e_vcard_attribute_get_name(attr)); + + // Skip attributes processed scanning roster contacts. + if (!evcardToSkip.contains(attributeName)) + continue; + + GList *params = e_vcard_attribute_get_params(attr); + GList *nodeP; + QString type; + // If the parameter list lenght is 1, X-OSSO-VALID is not specified + bool ossoValidIsOk = (g_list_length(params) == 1) ? true : false; + + for (nodeP = params; nodeP != NULL; nodeP = g_list_next (nodeP)) { + EVCardAttributeParam* p = (EVCardAttributeParam*) nodeP->data; + QString paramName = QString::fromLatin1(e_vcard_attribute_param_get_name(p)); + bool attrIsType = false; + bool attrIsOssoValid = false; + + //If type is empty check if the attribute is "TYPE" + if (type.isEmpty()) + attrIsType = paramName.contains(EVC_TYPE); + + if(!ossoValidIsOk) + attrIsOssoValid = paramName.contains("X-OSSO-VALID"); + + if (!attrIsType && !attrIsOssoValid) { + qWarning () << "Skipping attribute parameter checking for" << paramName; + continue; + } + + GList *values = e_vcard_attribute_param_get_values(p); + GList *node; + for (node = values; node != NULL; node = g_list_next (node)) { + QString attributeParameterValue = QString::fromLatin1(CONST_CHAR(node->data)); + if (attrIsOssoValid) { + ossoValidIsOk = (attributeParameterValue == "yes")? true : false; + if (!ossoValidIsOk) { + qWarning() << "X-OSSO-VALID is false."; + break; + } + } else if (type.isEmpty()) { + type = attributeParameterValue; + if (type.isEmpty()) + qCritical() << "TYPE is empty"; + } + } + + if (ossoValidIsOk && !type.isEmpty()) { + QContactOnlineAccount* rtn = new QContactOnlineAccount; + QVariantMap map; + map[QContactOnlineAccount::FieldServiceProvider] = type; + setDetailValues(map, rtn); + rtnList << rtn; + } + } + } + } + + return rtnList; +} + +QContactOrganization* QContactABook::getOrganizationDetail(EContact *eContact) const +{ + QContactOrganization* rtn = new QContactOrganization; + QVariantMap map; + const char* title = CONST_CHAR(e_contact_get(eContact, E_CONTACT_TITLE)); + map[QContactOrganization::FieldTitle] = title; + FREE(title); + setDetailValues(map, rtn); + return rtn; +} + +QList QContactABook::getPhoneDetail(EContact *eContact) const +{ + QList rtnList; + + GList *l = osso_abook_contact_get_attributes(eContact, EVC_TEL); + + for (GList *node = g_list_last(l); node != NULL; node = g_list_previous(node)) { + QContactPhoneNumber* phoneNumber = new QContactPhoneNumber; + QVariantMap map; + + EVCardAttribute *attr = static_cast(node->data); + GList* p = e_vcard_attribute_get_param(attr, EVC_TYPE); + + //Set Contexts and SubTypes + while (p) { + QString value = QString::fromLatin1(CONST_CHAR(p->data)); + + if (value == "HOME") + phoneNumber->setContexts(QContactDetail::ContextHome); + else if (value == "WORK") + phoneNumber->setContexts(QContactDetail::ContextWork); + else + if (value == "CELL") + phoneNumber->setSubTypes(QContactPhoneNumber::SubTypeMobile); + else if (value == "VOICE") + phoneNumber->setSubTypes(QContactPhoneNumber::SubTypeVoice); + + p = p->next; + } + g_list_free(p); + + //Set Phone Number + GList* phoneNumbers = e_vcard_attribute_get_values(attr); + const char* normalized = e_normalize_phone_number(CONST_CHAR(phoneNumbers->data)); //FIXME Valgrind complains about this + QString phoneNumberStr(normalized); + FREE(normalized); + map[QContactPhoneNumber::FieldNumber] = phoneNumberStr; + map[QContactDetail::FieldDetailUri] = QString::number(g_list_position(l, node)); + setDetailValues(map, phoneNumber); + + rtnList << phoneNumber; + } + g_list_free(l); + + return rtnList; +} + + +QList QContactABook::getPresenceDetail(EContact *eContact) const +{ + QList rtnList; + + QStringList evcardToSkip = vcardsManagedByTelepathy(); + + // Gets info of online accounts from roster contacts associated to the master one + if (!osso_abook_contact_is_roster_contact (A_CONTACT(eContact))) { + QContactPresence* rtn = new QContactPresence; + + GList *contacts = osso_abook_contact_get_roster_contacts(A_CONTACT(eContact)); + GList *node; + for (node = contacts; node != NULL; node = g_list_next(node)){ + OssoABookContact *rosterContact = A_CONTACT(node->data); + + McProfile* id = osso_abook_contact_get_profile(rosterContact); + McAccount* account = osso_abook_contact_get_account(rosterContact); + + // Avoid to look for Roster contacts into the VCard + QString accountVCard = QString::fromLatin1(mc_profile_get_vcard_field(id)); + evcardToSkip.removeOne(accountVCard); + + // Presence + OssoABookPresence *presence = OSSO_ABOOK_PRESENCE (rosterContact); + TpConnectionPresenceType presenceType = osso_abook_presence_get_presence_type (presence); + QString presenceTypeString; + QContactPresence::PresenceState presenceTypeEnum; + switch (presenceType) { + case TP_CONNECTION_PRESENCE_TYPE_UNSET: presenceTypeString = "Unset"; presenceTypeEnum = QContactPresence::PresenceUnknown; break; + case TP_CONNECTION_PRESENCE_TYPE_OFFLINE: presenceTypeString = "Offline"; presenceTypeEnum = QContactPresence::PresenceOffline; break; + case TP_CONNECTION_PRESENCE_TYPE_AVAILABLE: presenceTypeString = "Available"; presenceTypeEnum = QContactPresence::PresenceAvailable; break; + case TP_CONNECTION_PRESENCE_TYPE_AWAY: presenceTypeString = "Away"; presenceTypeEnum = QContactPresence::PresenceAway; break; + case TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY: presenceTypeString = "Extended Away"; presenceTypeEnum = QContactPresence::PresenceExtendedAway; break; + case TP_CONNECTION_PRESENCE_TYPE_HIDDEN: presenceTypeString = "Hidden"; presenceTypeEnum = QContactPresence::PresenceHidden; break; + case TP_CONNECTION_PRESENCE_TYPE_BUSY: presenceTypeString = "Busy"; presenceTypeEnum = QContactPresence::PresenceBusy; break; + case TP_CONNECTION_PRESENCE_TYPE_UNKNOWN: presenceTypeString = "Unknown"; presenceTypeEnum = QContactPresence::PresenceUnknown; break; + case TP_CONNECTION_PRESENCE_TYPE_ERROR: presenceTypeString = "Error"; presenceTypeEnum = QContactPresence::PresenceUnknown; break; + default: + qCritical() << "Presence type is not valid" << presenceType; + } + + QVariantMap map; // XXX FIXME + map[QContactPresence::FieldNickname] = osso_abook_contact_get_display_name(rosterContact); + map[QContactPresence::FieldPresenceState] = presenceTypeEnum; + map[QContactPresence::FieldPresenceStateText] = QString::fromLatin1(osso_abook_presence_get_presence_status_message(presence)); + map[QContactPresence::FieldLinkedDetailUris] = mc_profile_get_unique_name(id); //use the unique name as a detail uri of the online account. + map["AccountPath"] = account->name; //MCAccount name: variable part of the D-Bus object path. + + setDetailValues(map, rtn); + } + rtnList << rtn; + g_list_free (contacts); + } + + /* Users can add Online account details manually. Eg: IRC username. + * evcardToSkip stringlist contains evCard attributes that have been already processed. + */ + GList *attributeList = e_vcard_get_attributes((EVCard*)eContact); + GList *node; + + if (attributeList) { + for (node = attributeList; node != NULL; node = g_list_next (node)) { + EVCardAttribute* attr = (EVCardAttribute*)node->data; + if (!attr) + continue; + QString attributeName = QString::fromLatin1(e_vcard_attribute_get_name(attr)); + + // Skip attributes processed scanning roster contacts. + if (!evcardToSkip.contains(attributeName)) + continue; + + GList *params = e_vcard_attribute_get_params(attr); + GList *nodeP; + QString type; + // If the parameter list lenght is 1, X-OSSO-VALID is not specified + bool ossoValidIsOk = (g_list_length(params) == 1) ? true : false; + + for (nodeP = params; nodeP != NULL; nodeP = g_list_next (nodeP)) { + EVCardAttributeParam* p = (EVCardAttributeParam*) nodeP->data; + QString paramName = QString::fromLatin1(e_vcard_attribute_param_get_name(p)); + bool attrIsType = false; + bool attrIsOssoValid = false; + + //If type is empty check if the attribute is "TYPE" + if (type.isEmpty()) + attrIsType = paramName.contains(EVC_TYPE); + + if(!ossoValidIsOk) + attrIsOssoValid = paramName.contains("X-OSSO-VALID"); + + if (!attrIsType && !attrIsOssoValid) { + qWarning () << "Skipping attribute parameter checking for" << paramName; + continue; + } + + GList *values = e_vcard_attribute_param_get_values(p); + GList *node; + for (node = values; node != NULL; node = g_list_next (node)) { + QString attributeParameterValue = QString::fromLatin1(CONST_CHAR(node->data)); + if (attrIsOssoValid) { + ossoValidIsOk = (attributeParameterValue == "yes")? true : false; + if (!ossoValidIsOk) { + qWarning() << "X-OSSO-VALID is false."; + break; + } + } else if (type.isEmpty()) { + type = attributeParameterValue; + if (type.isEmpty()) + qCritical() << "TYPE is empty"; + } + } + + if (ossoValidIsOk && !type.isEmpty()) { + QContactPresence* rtn = new QContactPresence; + QVariantMap map; + map[QContactPresence::FieldNickname] = QString::fromLatin1(e_vcard_attribute_get_value(attr)); + map[QContactPresence::FieldLinkedDetailUris] = type; // XXX FIXME + setDetailValues(map, rtn); + rtnList << rtn; + } + } + } + } + + return rtnList; +} + +QContactTimestamp* QContactABook::getTimestampDetail(EContact *eContact) const +{ + QContactTimestamp* rtn = new QContactTimestamp; + QVariantMap map; + const char* rev = CONST_CHAR(e_contact_get(eContact, E_CONTACT_REV)); + map[QContactTimestamp::FieldModificationTimestamp] = QDateTime::fromString(rev, Qt::ISODate); + FREE(rev); + setDetailValues(map, rtn); + return rtn; +} + +QContactThumbnail* QContactABook::getThumbnailDetail(EContact *eContact) const +{ + QContactThumbnail* rtn = new QContactThumbnail; + QVariantMap map; + + OssoABookContact *aContact = A_CONTACT(eContact); + if (!aContact) + return rtn; + + //GdkPixbuf* pixbuf = osso_abook_contact_get_avatar_pixbuf(aContact, NULL, NULL); + GdkPixbuf* pixbuf = osso_abook_avatar_get_image_rounded(OSSO_ABOOK_AVATAR(aContact), 64, 64, true, 4, NULL); + if (!GDK_IS_PIXBUF(pixbuf)){ + FREE(pixbuf); + return rtn; + } + + const uchar* bdata = (const uchar*)gdk_pixbuf_get_pixels(pixbuf); + QSize bsize(gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf)); + + //Convert GdkPixbuf to QPixmap + QImage converted(bdata, bsize.width(), bsize.height(), QImage::Format_ARGB32_Premultiplied); + map[QContactThumbnail::FieldThumbnail] = converted; + g_object_unref(pixbuf); + setDetailValues(map, rtn); + + return rtn; +} + +QContactUrl* QContactABook::getUrlDetail(EContact *eContact) const +{ + QContactUrl* rtn = new QContactUrl; + QVariantMap map; + const char* url = CONST_CHAR(e_contact_get(eContact, E_CONTACT_HOMEPAGE_URL)); + map[QContactUrl::FieldUrl] = url; + FREE(url); + setDetailValues(map, rtn); + return rtn; +} + +static void addAttributeToAContact(const OssoABookContact* contact, + const QString& attrName, const QStringList& attrValues, + const QString& paramName = QString(), const QStringList& paramValues = QStringList(), + bool overwrite = true, + const int index = 0) +{ + if (!contact) + return; + + EVCard *vcard = E_VCARD (contact); + EVCardAttribute *attr = NULL; + EVCardAttributeParam* param = NULL; + + QCM5_DEBUG << "Adding attribute" << attrName << "AttrValues:" << attrValues + << "ParamName:" << paramName << "ParamValues:" << paramValues + << "overwrite" << overwrite << "Index" << index; + + if (overwrite) + { + GList *attributeList = osso_abook_contact_get_attributes(E_CONTACT(contact), qPrintable(attrName)); + + for (GList *node = g_list_last(attributeList); node != NULL; node = g_list_previous(node)) { + EVCardAttribute* eAttr = (EVCardAttribute*)node->data; + int pos = g_list_position(attributeList, node); + + if (index > pos){ + qWarning() << "Attribute doesn't found at position" << index; + return; + } + + if (index != pos) + continue; + + // Select the current EVCard Attribute if it contains the same parameters of + // attribute we want to modify/add + int matchedParams = 0; + GList* p = NULL; + p = e_vcard_attribute_get_param(eAttr, qPrintable(paramName)); + + while (p){ + foreach(QString paramV, paramValues){ + QString value = CONST_CHAR(p->data); + if (paramV == value) + ++matchedParams; + } + p = p->next; + } + g_list_free(p); + + if (matchedParams == paramValues.count()) { + attr = eAttr; + break; + } + } + } + + // Check if attrValues contains something + bool noValues = true; + foreach(QString s, attrValues){ + if (!s.isEmpty()){ + noValues = false; + break; + } + } + + if (attr) { + if (noValues){ + e_vcard_remove_attribute(vcard, attr); + return; + } else { + e_vcard_attribute_remove_values(attr); + } + } else { + if (noValues) + return; + + // Create Attribute with right parameters + attr = e_vcard_attribute_new(NULL, qPrintable(attrName)); + if (!paramName.isEmpty()){ + param = e_vcard_attribute_param_new(qPrintable(paramName)); + + foreach(QString paramV, paramValues) + e_vcard_attribute_param_add_value(param, qPrintable(paramV)); + + e_vcard_attribute_add_param(attr, param); + } + // Save the attribute to the VCard + e_vcard_add_attribute(vcard, attr); + } + + // Add values to the attribute + foreach(QString attrV, attrValues) { + e_vcard_attribute_add_value(attr, qPrintable(attrV)); + } + + // Debugging + { + const char* dbgStr = e_vcard_to_string(vcard, EVC_FORMAT_VCARD_30); + QCM5_DEBUG << "Modified VCard" << dbgStr; + FREE(dbgStr); + } +} + +OssoABookContact* QContactABook::convert(const QContact *contact) const +{ + Q_CHECK_PTR(contact); + + OssoABookContact* rtn; + + // Get aContact if it exists or create a new one if it doesn't + QContactLocalId id = contact->localId(); + QCM5_DEBUG << "Converting QContact id:" << id << " to aContact"; + if (id){ + rtn = getAContact(id); + // It's not safe to commit changes to a contact that has been modified. + // This problem affects attributes with the same name and parameters such as + // EMail, Address... + QContactTimestamp* ts = getTimestampDetail(E_CONTACT(rtn)); + if (*ts != contact->detail()){ + delete ts; + return NULL; + } + delete ts; + } else { + rtn = osso_abook_contact_new(); + } + + QList allDetails = contact->details(); + foreach(const QContactDetail &detail, allDetails){ + QString definitionName = detail.definitionName(); + + QCM5_DEBUG << "Saving" << definitionName; + + //QContactDisplayLabel::DefinitionName + if (definitionName == QContactAddress::DefinitionName){ + setAddressDetail(rtn, detail); + } else + if (definitionName == QContactAvatar::DefinitionName){ + setAvatarDetail(rtn, detail); + } else + if (definitionName == QContactBirthday::DefinitionName){ + setBirthdayDetail(rtn, detail); + } else + if (definitionName == QContactEmailAddress::DefinitionName){ + setEmailDetail(rtn, detail); + } else + if (definitionName == QContactGender::DefinitionName){ + setGenderDetail(rtn, detail); + } else + if (definitionName == QContactName::DefinitionName){ + setNameDetail(rtn, detail); + } else + if (definitionName == QContactNickname::DefinitionName){ + setNicknameDetail(rtn, detail); + } else + if (definitionName == QContactNote::DefinitionName){ + setNoteDetail(rtn, detail); + } else + if (definitionName == QContactOnlineAccount::DefinitionName){ + setOnlineAccountDetail(rtn, detail); + } else + if (definitionName == QContactOrganization::DefinitionName){ + setOrganizationDetail(rtn, detail); + } else + if (definitionName == QContactPhoneNumber::DefinitionName){ + setPhoneDetail(rtn, detail); + } else + if (definitionName == QContactThumbnail::DefinitionName){ + setThumbnailDetail(rtn, detail); + } else + if (definitionName == QContactUrl::DefinitionName){ + setUrlDetail(rtn, detail); + } + } + + return rtn; +} + +void QContactABook::setAddressDetail(const OssoABookContact* aContact, const QContactAddress& detail) const +{ + if (!aContact) return; + + uint detailUri; + const uint nAddressElems = 7; + QStringList adrAttrValues, + lblAttrValues, + paramValues; + + // Get parameters + foreach(QString c, detail.contexts()) + paramValues << c.toUpper(); + + // Initialize adrAttrValues; + for (uint i = 0; i < nAddressElems; ++i) + adrAttrValues << ""; + + // Fill adrAttrValues + QVariantMap vm = detail.variantValues(); + QMapIterator i(vm); + + while (i.hasNext()) { + i.next(); + int index = -1; + QString key = i.key(); + + if (key == QContactAddress::FieldPostOfficeBox) index = 0; + else if (key == "Estension") index = 1; + else if (key == QContactAddress::FieldStreet) index = 2; + else if (key == QContactAddress::FieldLocality) index = 3; + else if (key == QContactAddress::FieldRegion) index = 4; + else if (key == QContactAddress::FieldPostcode) index = 5; + else if (key == QContactAddress::FieldCountry) index = 6; + else if (key == QContactDetail::FieldContext) continue; + else if (key == QContactDetail::FieldDetailUri) detailUri = i.value().toInt(); + else { + qWarning() << "Address contains an invalid field:" << key; + return; + } + + if (index != -1) + adrAttrValues[index] = i.value().toString(); + } + + // Fill lblAttrValues + QStringList labelValues; + labelValues << adrAttrValues[1] + << adrAttrValues[2] + << adrAttrValues[0] + << adrAttrValues[3] + << adrAttrValues[4] + << adrAttrValues[5] + << adrAttrValues[6]; + lblAttrValues << labelValues.join(", "); + + // Skip if adrAttrValues contains only empty strings + bool noValues = true; + foreach(QString s, adrAttrValues){ + if (!s.isEmpty()){ + noValues = false; + break; + } + } + if (noValues) + return; + + // Saving LABEL and ADR attributes into the VCard + addAttributeToAContact(aContact, EVC_ADR, adrAttrValues, EVC_TYPE, paramValues, true, detailUri); + + //BUG Label attribute contains a bug + //It contains TYPE(TYPE) if ADDRESS doesn't contain any parameter value. + if (paramValues.isEmpty()) + paramValues << EVC_TYPE; + + addAttributeToAContact(aContact, EVC_LABEL, lblAttrValues, EVC_TYPE, paramValues, true, detailUri); +} + +void QContactABook::setThumbnailDetail(const OssoABookContact* aContact, const QContactThumbnail& detail) const +{ + if (!aContact) return; + + EBook *book; + { + OssoABookRoster* roster = A_ROSTER(m_abookAgregator); + book = osso_abook_roster_get_book(roster); + } + + QImage image = detail.thumbnail(); + + if (image.isNull()) + return; + + if (image.format() != QImage::Format_ARGB32_Premultiplied) + image = image.convertToFormat(QImage::Format_ARGB32_Premultiplied); + GdkPixbuf *pixbuf = gdk_pixbuf_new_from_data(image.bits(), GDK_COLORSPACE_RGB, + image.hasAlphaChannel(), 8, + image.width(), image.height(), + image.bytesPerLine(), 0, 0); + osso_abook_contact_set_pixbuf((OssoABookContact*)aContact, pixbuf, book, 0); + g_object_unref(pixbuf); +} + +void QContactABook::setAvatarDetail(const OssoABookContact* aContact, const QContactAvatar& detail) const +{ + Q_UNUSED(aContact) + Q_UNUSED(detail); +// XXX TODO: FIXME +// if (!aContact) return; +// +// EBook *book; +// { +// OssoABookRoster* roster = A_ROSTER(m_abookAgregator); +// book = osso_abook_roster_get_book(roster); +// } +// +// QImage image = detail.pixmap().toImage(); +// if (image.format() != QImage::Format_ARGB32_Premultiplied) +// image = image.convertToFormat(QImage::Format_ARGB32_Premultiplied); +// GdkPixbuf *pixbuf = gdk_pixbuf_new_from_data(image.bits(), GDK_COLORSPACE_RGB, +// image.hasAlphaChannel(), 8, +// image.width(), image.height(), +// image.bytesPerLine(), 0, 0); +// osso_abook_contact_set_pixbuf((OssoABookContact*)aContact, pixbuf, book, 0); +// g_object_unref(pixbuf); +} + +void QContactABook::setBirthdayDetail(const OssoABookContact* aContact, const QContactBirthday& detail) const +{ + if (!aContact) return; + + QStringList attrValues; + attrValues << detail.value(QContactBirthday::FieldBirthday); + + addAttributeToAContact(aContact, EVC_BDAY, attrValues); +} + +void QContactABook::setEmailDetail(const OssoABookContact* aContact, const QContactEmailAddress& detail) const +{ + if (!aContact) return; + QStringList attrValues, + paramValues; + + QVariantMap vm = detail.variantValues(); + QMapIterator i(vm); + while (i.hasNext()) { + i.next(); + QString key = i.key(); + + // We don't want to save the Detail URI + if (key == QContactDetail::FieldDetailUri) + continue; + + if (key == QContactDetail::FieldContext) + paramValues << i.value().toString().toUpper(); + else + attrValues << i.value().toString(); + } + + addAttributeToAContact(aContact, EVC_EMAIL, attrValues, EVC_TYPE, paramValues, true, detail.detailUri().toInt()); +} + +void QContactABook::setGenderDetail(const OssoABookContact* aContact, const QContactGender& detail) const +{ + if (!aContact) return; + + QStringList attrValues; + attrValues << detail.value(QContactGender::FieldGender).toLower(); + + addAttributeToAContact(aContact, "X-GENDER", attrValues); +} + +void QContactABook::setNameDetail(const OssoABookContact* aContact, const QContactName& detail) const +{ + if (!aContact) return; + + QStringList attrValues; + // Save First and Last name in the N vcard attribute + { + QStringList supportedDetailValues; + supportedDetailValues << QContactName::FieldFirstName << QContactName::FieldLastName; + + foreach(QString key, supportedDetailValues){ + attrValues << detail.value(key); + } + + //REMOVE ME - We don't want to support custom label + if (attrValues[0].isEmpty()){ + qWarning() << "QContactName::FieldFirstName is empty"; + attrValues[0] = detail.customLabel(); + } + + addAttributeToAContact(aContact, EVC_N, attrValues); + } + + // Save Fist + Last name in the FN card attribute + { + attrValues << attrValues.join(" "); + addAttributeToAContact(aContact, EVC_FN, attrValues); + } +} + +void QContactABook::setNicknameDetail(const OssoABookContact* aContact, const QContactNickname& detail) const +{ + if (!aContact) return; + + QStringList attrValues; + attrValues << detail.value(QContactNickname::FieldNickname); + + addAttributeToAContact(aContact, EVC_NICKNAME, attrValues); +} + +void QContactABook::setNoteDetail(const OssoABookContact* aContact, const QContactNote& detail) const +{ + if (!aContact) return; + + QStringList attrValues; + attrValues << detail.value(QContactNote::FieldNote); + + addAttributeToAContact(aContact, EVC_NOTE, attrValues); +} + +/*NOTE: Online details comes from Telepathy or can be added manually by the user. + * OnlineDetals coming from Telepathy/Roster contacts can't be saved. + */ +void QContactABook::setOnlineAccountDetail(const OssoABookContact* aContact, const QContactOnlineAccount& detail) const +{ + if (!aContact) + return; + + Q_UNUSED(detail); +} + +void QContactABook::setOrganizationDetail(const OssoABookContact* aContact, const QContactOrganization& detail) const +{ + if (!aContact) return; + + QStringList attrValues; + attrValues << detail.value(QContactOrganization::FieldTitle); + + addAttributeToAContact(aContact, EVC_ORG, attrValues); +} + +void QContactABook::setPhoneDetail(const OssoABookContact* aContact, const QContactPhoneNumber& detail) const +{ + if (!aContact) return; + QStringList attrValues, + paramValues; + + QVariantMap vm = detail.variantValues(); + QMapIterator i(vm); + while (i.hasNext()) { + i.next(); + const QString key = i.key(); + + // We don't want to save the Detail URI + if (key == QContactDetail::FieldDetailUri) + continue; + + if (key == QContactDetail::FieldContext || + key == QContactPhoneNumber::FieldSubTypes){ + QString value = i.value().toString(); + if (value == QContactPhoneNumber::SubTypeMobile) + value = "CELL"; + paramValues << value.toUpper(); + } else + attrValues << i.value().toString(); + } + + // Avoid unsupported type + if (paramValues.isEmpty()) + paramValues << "VOICE"; + + addAttributeToAContact(aContact, EVC_TEL, attrValues, EVC_TYPE, paramValues, true, detail.detailUri().toInt()); +} + +void QContactABook::setUrlDetail(const OssoABookContact* aContact, const QContactUrl& detail) const +{ + if (!aContact) return; + + QStringList attrValues; + attrValues << detail.value(QContactUrl::FieldUrl); + + addAttributeToAContact(aContact, EVC_URL, attrValues); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/maemo5/qcontactabook_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/maemo5/qcontactabook_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,162 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QCONTACTABOOK_P_H +#define QCONTACTABOOK_P_H + +#include +#include + +#include "qtcontacts.h" +#include "qcontactmaemo5debug_p.h" + +#include + +#include "osso-abook-workaround.h" +#include "qcontactidshash.h" + +QTM_USE_NAMESPACE + +/* Data shared with contact changes/added/removed callbacks */ +struct cbSharedData; +/* Data shared with job callbacks */ +struct jobSharedData; + +class QContactABook : public QObject +{ + Q_OBJECT + +public: + QContactABook(QObject* parent = 0); + ~QContactABook(); + + QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const; + //QList contactIds(const QList& sortOrders, QContactManager::Error* error) const; + QContact* getQContact(const QContactLocalId& contactId, QContactManager::Error* error) const; + bool removeContact(const QContactLocalId& contactId, QContactManager::Error* error); + bool saveContact(QContact* contact, QContactManager::Error* error); + + QContactLocalId selfContactId(QContactManager::Error* errors) const; + +Q_SIGNALS: + void contactsAdded(const QList& contactIds); + void contactsChanged(const QList& contactIds); + void contactsRemoved(const QList& contactIds); + void jobSavingCompleted(); + void jobRemovingCompleted(); + +public: + /* Members used by callbacks */ + void _contactsAdded(const QList& contactIds ){ emit contactsAdded(contactIds); }; + void _contactsRemoved(const QList& contactIds ){ emit contactsRemoved(contactIds); }; + void _contactsChanged(const QList& contactIds ){ emit contactsChanged(contactIds); }; + void _jobSavingCompleted(){ emit jobSavingCompleted(); }; + void _jobRemovingCompleted(){ emit jobRemovingCompleted(); }; + +private: + void initAddressBook(); + void initLocalIdHash(); + + bool setDetailValues(const QVariantMap& data, QContactDetail* detail) const; + + OssoABookContact* getAContact(const QContactLocalId& contactId) const; + + /* Filtering */ + bool contactActionsMatch(OssoABookContact *contact, QList descriptors) const; + EBookQuery* convert(const QContactFilter& filter) const; + + /* Reading - eContact/abookContact to QContact methods */ + QContact* convert(EContact *eContact) const; + + QContactId getContactId(EContact *eContact) const; + QList getAddressDetail(EContact *eContact) const; + QContactName* getNameDetail(EContact *eContact) const; + QContactNickname* getNicknameDetail(EContact *eContact) const; + QList getEmailDetail(EContact *eContact) const; + QContactAvatar* getAvatarDetail(EContact *eContact) const; + QContactBirthday* getBirthdayDetail(EContact *eContact) const; + QContactGender* getGenderDetail(EContact *eContact) const; + QContactGuid* getGuidDetail(EContact *eContact) const; + QContactNote* getNoteDetail(EContact *eContact) const; + QList getOnlineAccountDetail(EContact *eContact) const; + QContactOrganization* getOrganizationDetail(EContact *eContact) const; + QList getPhoneDetail(EContact *eContact) const; + QList getPresenceDetail(EContact *eContact) const; + QContactTimestamp* getTimestampDetail(EContact *eContact) const; + QContactThumbnail* getThumbnailDetail(EContact *eContact) const; + QContactUrl* getUrlDetail(EContact *eContact) const; + + /* Saving - QContact to abookContact */ + OssoABookContact* convert(const QContact *contact) const; + + /* Save QDetails in OssoABookContact attributes */ + void setAddressDetail(const OssoABookContact* aContact, const QContactAddress& detail) const; + void setAvatarDetail(const OssoABookContact* aContact, const QContactAvatar& detail) const; + void setBirthdayDetail(const OssoABookContact* aContact, const QContactBirthday& detail) const; + void setEmailDetail(const OssoABookContact* aContact, const QContactEmailAddress& detail) const; + void setGenderDetail(const OssoABookContact* aContact, const QContactGender& detail) const; + void setNameDetail(const OssoABookContact* aContact, const QContactName& detail) const; + void setNicknameDetail(const OssoABookContact* aContact, const QContactNickname& detail) const; + void setNoteDetail(const OssoABookContact* aContact, const QContactNote& detail) const; + void setOnlineAccountDetail(const OssoABookContact* aContact, const QContactOnlineAccount& detail) const; + void setOrganizationDetail(const OssoABookContact* aContact, const QContactOrganization& detail) const; + void setPhoneDetail(const OssoABookContact* aContact, const QContactPhoneNumber& detail) const; + void setPresenceDetail(const OssoABookContact* aContact, const QContactPresence& detail) const; + void setThumbnailDetail(const OssoABookContact* aContact, const QContactThumbnail& detail) const; + void setUrlDetail(const OssoABookContact* aContact, const QContactUrl& detail) const; + + /* Internal Vars */ + gulong m_contactAddedHandlerId; + gulong m_contactChangedHandlerId; + gulong m_contactRemovedHandlerId; + + OssoABookAggregator *m_abookAgregator; + mutable QContactIDsHash m_localIds; //Converts QLocalId <=> eContactId + + QMutex m_saveContactMutex; + QMutex m_delContactMutex; + + cbSharedData *m_cbSD; + jobSharedData *m_deleteJobSD; + jobSharedData *m_saveJobSD; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/maemo5/qcontactidshash.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/maemo5/qcontactidshash.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,104 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QCONTACTIDSHASH_H +#define QCONTACTIDSHASH_H + +#include +#include "qcontactmaemo5debug_p.h" +#include "qtcontacts.h" + +QTM_USE_NAMESPACE + +/* QContactIDsHash stores abookContact IDs (strings)*/ +class QContactIDsHash{ +public: + QContactIDsHash(){}; + + /* Append */ + QContactIDsHash& operator<< (const QByteArray& eContactId){ + const QContactLocalId key = qChecksum(eContactId, eContactId.size()); + if (m_localIds.contains(key)) + return (*this); + m_localIds[key] = eContactId; + QCM5_DEBUG << "Add key:" << key << "eContactId:" << eContactId; + return (*this); + }; + + const QContactLocalId append(const QByteArray& eContactId){ + const QContactLocalId key = qChecksum(eContactId, eContactId.size()); + if (m_localIds.contains(key)) + return key; + m_localIds[key] = eContactId; + QCM5_DEBUG << "Add key:" << key << "eContactId:" << eContactId; + return key; + }; + + /* Find */ + const char* operator[] (const QContactLocalId localId) { return m_localIds.value(localId).constData(); }; + const char* find(const QContactLocalId localId) { return m_localIds.value(localId).constData(); }; + const QContactLocalId operator[] (const QByteArray& eContactId) { return m_localIds.key(eContactId, 0); }; + const QContactLocalId find(const QByteArray& eContactId) { return m_localIds.key(eContactId, 0); }; + + /* Remove */ + bool remove(const QContactLocalId localId){ bool removed = (m_localIds.remove(localId) == 1) ? true : false; + QCM5_DEBUG << "Remove QContactLocalId:" << localId << ((removed) ? "OK" : "NO"); + return removed; + }; + bool remove(const QByteArray& eContactId){ + const QContactLocalId hashKey = m_localIds.key(eContactId, 0); + bool removed = remove(hashKey); + QCM5_DEBUG << "Remove QContactLocalId:" << hashKey << ((removed) ? "OK" : "NO"); + return removed; + }; + + /* Take */ + const QContactLocalId take(const QByteArray& eContactId){ + const QContactLocalId hashKey = m_localIds.key(eContactId, 0); + remove(hashKey); + return hashKey; + }; + +private: + QHash m_localIds; //[int/QContactLocalId Maemo5LocalId, QByteArray eContactID] +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/maemo5/qcontactmaemo5backend.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/maemo5/qcontactmaemo5backend.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,363 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qcontactmaemo5backend_p.h" + +#include + +#include "qcontactmaemo5debug_p.h" + +DEFINE_GLOBAL_DEBUG_VAR + +QContactManagerEngine* ContactMaemo5Factory::engine(const QMap& parameters, QContactManager::Error* error) +{ + Q_UNUSED(parameters); + Q_UNUSED(error); + + initDebugLogger(); + return new QContactMaemo5Engine(); //FIXME Wonderfull memory leak :D +} + +QString ContactMaemo5Factory::managerName() const +{ + return QString("maemo5"); +} + +Q_EXPORT_PLUGIN2(qtcontacts_maemo5, ContactMaemo5Factory); + +/*! + \class QContactMaemo5Engine + \brief The QContactMaemo5Engine class provides an implementation of + QContactManagerEngine whose functions always return an error. + + The Maemo5 engine. + */ + +/*! Constructs a new invalid contacts backend. */ +QContactMaemo5Engine::QContactMaemo5Engine() : d(new QContactMaemo5EngineData) +{ + QContactABook *abook = d->m_abook; + connect(abook, SIGNAL(contactsAdded(const QList&)), SIGNAL(contactsAdded(const QList&))); + connect(abook, SIGNAL(contactsChanged(const QList&)), SIGNAL(contactsChanged(const QList&))); + connect(abook, SIGNAL(contactsRemoved(const QList&)), SIGNAL(contactsRemoved(const QList&))); +} + +/*! \reimp */ +QContactMaemo5Engine& QContactMaemo5Engine::operator=(const QContactMaemo5Engine& other) +{ + d = other.d; + return *this; +} + +/*! \reimp */ +QString QContactMaemo5Engine::managerName() const +{ + return QString(QLatin1String("maemo5")); +} + +/* Synthesise the display label of a contact */ +QString QContactMaemo5Engine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const +{ + Q_UNUSED(error) + QString label = QContactManagerEngine::synthesizedDisplayLabel(contact, error); + + if (label.isEmpty()) { + QContactNickname n = contact.detail(QContactNickname::DefinitionName); + label = n.nickname(); + } + + if (label.isEmpty()) + label = "No name"; + + return label; +} + +bool QContactMaemo5Engine::validateContact(const QContact& contact, QContactManager::Error* error) const +{ + return QContactManagerEngine::validateContact(contact, error); +} + +bool QContactMaemo5Engine::validateDefinition(const QContactDetailDefinition& definition, QContactManager::Error* error) const +{ + QContactDetailDefinition existing = detailDefinition(definition.name(), QContactType::TypeContact, error); + if (existing == definition) { + *error = QContactManager::NoError; + return true; + } + + *error = QContactManager::NotSupportedError; // XXX TODO: mutable definitions? + return false; +} + +QContactLocalId QContactMaemo5Engine::selfContactId(QContactManager::Error* error) const +{ + Q_CHECK_PTR(d->m_abook); + + return d->m_abook->selfContactId(error); +} + +QList QContactMaemo5Engine::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const +{ + Q_CHECK_PTR(d->m_abook); + + //return QContactManagerEngine::contactIds(filter, sortOrders, error); + return d->m_abook->contactIds(filter, sortOrders, error); +} + +QList QContactMaemo5Engine::contacts(const QContactFilter & filter, const QList & sortOrders, const QContactFetchHint & fetchHint, + QContactManager::Error* error ) const +{ + Q_UNUSED(fetchHint); // no optimisations currently, ignore the fetchhint. + Q_CHECK_PTR(d->m_abook); + QList rtn; + + QList ids = contactIds(filter, sortOrders,error); + foreach (QContactLocalId id, ids) + rtn << contact(id, QContactFetchHint(), error); + return rtn; +} + +QContact QContactMaemo5Engine::contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const +{ + Q_UNUSED(fetchHint); //TODO + Q_CHECK_PTR(d->m_abook); + + QContact *contact = d->m_abook->getQContact(contactId, error); + QContact rtn(*contact); + delete contact; + if (*error == QContactManager::NoError) { + setContactDisplayLabel(&rtn, synthesizedDisplayLabel(rtn, error)); + QContactId cid; + cid.setLocalId(contactId); + cid.setManagerUri(managerUri()); + rtn.setId(cid); + } + return rtn; +} + +bool QContactMaemo5Engine::saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error) +{ + *error = QContactManager::NoError; + QContactManager::Error tempError = QContactManager::NoError; + QContact curr; + for (int i = 0; i < contacts->size(); i++) { + curr = contacts->at(i); + if (!saveContact(&curr, &tempError)) { + errorMap->insert(i, tempError); + *error = tempError; + } else { + contacts->replace(i, curr); + } + } + + return (*error == QContactManager::NoError); +} + +bool QContactMaemo5Engine::removeContacts(const QList& ids, QMap* errorMap, QContactManager::Error* error) +{ + *error = QContactManager::NoError; + QContactManager::Error tempError = QContactManager::NoError; + QContact curr; + for (int i = 0; i < ids.size(); i++) { + if (!removeContact(ids.at(i), &tempError)) { + errorMap->insert(i, tempError); + *error = tempError; + } + } + + return (*error == QContactManager::NoError); +} + +bool QContactMaemo5Engine::saveContact(QContact* contact, QContactManager::Error* error) +{ + Q_CHECK_PTR(d->m_abook); + + if (!contact) { + *error = QContactManager::BadArgumentError; + return false; + } + + // synthesize the display label for the contact + setContactDisplayLabel(contact, synthesizedDisplayLabel(*contact, error)); + + // ensure that the contact's details conform to their definitions + if (!validateContact(*contact, error)) { + QCM5_DEBUG << "Validate Contact failed"; + return false; + } + + bool retn = d->m_abook->saveContact(contact, error); + QContactId cId = contact->id(); + cId.setManagerUri(managerUri()); + contact->setId(cId); + return retn; +} + +bool QContactMaemo5Engine::removeContact(const QContactLocalId& contactId, QContactManager::Error* error) +{ + Q_CHECK_PTR(d->m_abook); + return d->m_abook->removeContact(contactId, error); +} + +QMap QContactMaemo5Engine::detailDefinitions(const QString& contactType, QContactManager::Error* error) const +{ + + QMap > defns = QContactManagerEngine::schemaDefinitions(); + + QMap fields; + + QContactDetailFieldDefinition gsfd; //Generic string field definition + gsfd.setDataType(QVariant::String); + + // QContactAddress + fields = defns[contactType][QContactAddress::DefinitionName].fields(); + //fields.remove(QContactAddress::FieldSubTypes); + fields.insert("Estension", gsfd); + fields.insert(QContactDetail::FieldDetailUri, gsfd); + defns[contactType][QContactAddress::DefinitionName].setFields(fields); + + // QContactAnniversary + defns[contactType].remove(QContactAnniversary::DefinitionName); + + // QContactAvatar + // TODO setUnique(true); + // QContactBirthday + // QContactDisplayLabel + + // QContactEmailAddress + fields = defns[contactType][QContactEmailAddress::DefinitionName].fields(); + fields.insert(QContactDetail::FieldDetailUri, gsfd); + defns[contactType][QContactEmailAddress::DefinitionName].setFields(fields); + + // QContactFamily + // QContactGender + // QContactGeoLocation + defns[contactType].remove(QContactGeoLocation::DefinitionName); + + // QContactGuid + // QContactName + fields = defns[contactType][QContactName::DefinitionName].fields(); + fields.remove(QContactName::FieldCustomLabel); + fields.remove(QContactName::FieldPrefix); + fields.remove(QContactName::FieldSuffix); + defns[contactType][QContactName::DefinitionName].setFields(fields); + + // QContactNickname + // QContactNote + // QContactOnlineAccount + fields = defns[contactType][QContactOnlineAccount::DefinitionName].fields(); + fields.remove(QContactOnlineAccount::FieldAccountUri); + fields.remove(QContactOnlineAccount::FieldSubTypes); + fields.insert("AccountPath", gsfd); + defns[contactType][QContactOnlineAccount::DefinitionName].setFields(fields); + + // QContactOrganization + fields = defns[contactType][QContactOrganization::DefinitionName].fields(); + fields.remove(QContactOrganization::FieldAssistantName); + fields.remove(QContactOrganization::FieldDepartment); + fields.remove(QContactOrganization::FieldLocation); + fields.remove(QContactOrganization::FieldLogoUrl); + fields.remove(QContactOrganization::FieldName); + fields.remove(QContactOrganization::FieldRole); + defns[contactType][QContactOrganization::DefinitionName].setFields(fields); + + // QContactPhoneNumber + fields = defns[contactType][QContactPhoneNumber::DefinitionName].fields(); + fields.insert(QContactDetail::FieldDetailUri, gsfd); + defns[contactType][QContactPhoneNumber::DefinitionName].setFields(fields); + + // QContactSyncTarget + defns[contactType].remove(QContactSyncTarget::DefinitionName); + + // QContactTimestamp + // QContactType + // QContactUrl + fields = defns[contactType][QContactUrl::DefinitionName].fields(); + fields.remove(QContactUrl::FieldSubType); + defns[contactType][QContactUrl::DefinitionName].setFields(fields); + + //Still unmanaged: GlobalPresence, Presence, Ringtone, Tag + + QCM5_DEBUG << "Contact type" << contactType << "Keys" << defns.keys(); + + *error = QContactManager::NoError; + return defns[contactType]; +} + +QContactDetailDefinition QContactMaemo5Engine::detailDefinition(const QString& definitionName, const QString& contactType, QContactManager::Error* error) const +{ + return QContactManagerEngine::detailDefinition(definitionName, contactType, error); +} + +bool QContactMaemo5Engine::hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const { + Q_UNUSED(contactType); + if (feature == QContactManager::Anonymous) + return true; + + return false; +} + +bool QContactMaemo5Engine::isFilterSupported(const QContactFilter& filter) const { + switch (filter.type()) { + case QContactFilter::InvalidFilter: + case QContactFilter::DefaultFilter: + case QContactFilter::LocalIdFilter: + case QContactFilter::ContactDetailFilter: + case QContactFilter::ActionFilter: + case QContactFilter::IntersectionFilter: + case QContactFilter::UnionFilter: + return true; + default: + return false; + } +} + +QList QContactMaemo5Engine::supportedDataTypes() const { + QList st; + st.append(QVariant::String); + st.append(QVariant::Int); + st.append(QVariant::UInt); + st.append(QVariant::Double); + st.append(QVariant::Date); + st.append(QVariant::DateTime); + + return st; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/maemo5/qcontactmaemo5backend_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/maemo5/qcontactmaemo5backend_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,161 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QCONTACTMAEMO5BACKEND_P_H +#define QCONTACTMAEMO5BACKEND_P_H + +#include "qcontactmanager.h" +#include "qcontactmanager_p.h" + +#include +#include +#include + +#include + +#include "qtcontacts.h" +#include "qcontactabook_p.h" +#include "qcontactchangeset.h" + +#define MAEMO5_ENGINE_VERSION 0.1 + +QTM_USE_NAMESPACE + +class Q_DECL_EXPORT ContactMaemo5Factory : public QObject, public QContactManagerEngineFactory +{ + Q_OBJECT + Q_INTERFACES(QtMobility::QContactManagerEngineFactory) + public: + QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error*); + QString managerName() const; +}; + +class QContactMaemo5EngineData : public QSharedData +{ +public: + QContactMaemo5EngineData() + : QSharedData(), + m_refCount(QAtomicInt(1)), + m_abook(new QContactABook) + { + } + + QContactMaemo5EngineData(const QContactMaemo5EngineData& other) + : QSharedData(other), + m_refCount(QAtomicInt(1)), + m_abook(other.m_abook) + { + } + + ~QContactMaemo5EngineData() + { + delete m_abook; + } + + QAtomicInt m_refCount; + QContactABook *m_abook; +}; + +class QContactMaemo5Engine : public QContactManagerEngine +{ + Q_OBJECT + public: + QContactMaemo5Engine(); + QContactMaemo5Engine& operator=(const QContactMaemo5Engine& other); + + QString managerName() const; + QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const; + bool validateContact(const QContact&, QContactManager::Error* error) const; + bool validateDefinition(const QContactDetailDefinition&, QContactManager::Error* error) const; + + /* "Self" contact id (MyCard) */ + QContactLocalId selfContactId(QContactManager::Error* errors) const; + + /* Filtering */ + QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const; + + /* Contacts - Accessors and Mutators */ + QContact contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; + QList contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error ) const; + bool saveContact(QContact* contact, QContactManager::Error* error); + bool removeContact(const QContactLocalId& contactId, QContactManager::Error* error); + bool saveContacts(QList*, QMap*, QContactManager::Error* error); // implemented in terms of the singular saveContact + bool removeContacts(const QList&, QMap*, QContactManager::Error* error); // implemented in terms of the singular removeContact + + /* Definitions - Accessors and Mutators */ + QMap detailDefinitions(const QString& contactType, QContactManager::Error* error) const; + QContactDetailDefinition detailDefinition(const QString& definitionName, const QString& contactType, QContactManager::Error* error) const; // implemented in terms of the plural detailDefinitions + + /* Version Reporting */ + int implementationVersion() const { return MAEMO5_ENGINE_VERSION; }; + int managerVersion() const { return MAEMO5_ENGINE_VERSION; }; + + /* Capabilities reporting */ + bool hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const; + bool isFilterSupported(const QContactFilter& filter) const; + QList supportedDataTypes() const; + QStringList supportedContactTypes() const {return (QStringList() << QContactType::TypeContact);} + + // XXX TODO: FIXME - these are pure virtual and so MUST be implemented by the backend. Stubs here. + QMap managerParameters() const {return QMap();} + + QContact compatibleContact(const QContact&, QContactManager::Error* error) const {*error = QContactManager::NotSupportedError;return QContact();} + + bool setSelfContactId(const QContactLocalId&, QContactManager::Error* error) {*error = QContactManager::NotSupportedError; return false;} + bool saveDetailDefinition(const QContactDetailDefinition&, const QString&, QContactManager::Error* error) {*error = QContactManager::NotSupportedError; return false;} + bool removeDetailDefinition(const QString&, const QString&, QContactManager::Error* error) {*error = QContactManager::NotSupportedError; return false;} + + void requestDestroyed(QContactAbstractRequest*) {} + bool startRequest(QContactAbstractRequest*) {return false;} + bool cancelRequest(QContactAbstractRequest*) {return false;} + bool waitForRequestFinished(QContactAbstractRequest*, int) {return false;} + + bool saveRelationships(QList*, QMap*, QContactManager::Error* error) {*error = QContactManager::NotSupportedError; return false;} + bool removeRelationships(const QList&, QMap*, QContactManager::Error* error) {*error = QContactManager::NotSupportedError; return false;} + bool isRelationshipTypeSupported(const QString&, const QString&) const {return false;} + QList relationships(const QString&, const QContactId&, QContactRelationship::Role, QContactManager::Error* error) const {*error = QContactManager::NotSupportedError; return QList();} + + private: + QSharedDataPointer d; +}; + +#endif + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/maemo5/qcontactmaemo5debug_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/maemo5/qcontactmaemo5debug_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,65 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QCONTACTMAEMO5DEBUG_P_H +#define QCONTACTMAEMO5DEBUG_P_H + +#include + +/* To Enable debugging of Maemo5 Contact plugin set QCONTACT_MAEMO5_DEBUG env var + * eg: export QCONTACT_MAEMO5_DEBUG=1 + */ + +extern bool QCM5_DEBUG_ENABLED; + +/* This Macro must be defined only one time*/ +#define DEFINE_GLOBAL_DEBUG_VAR bool QCM5_DEBUG_ENABLED; + +/* Define Macros for debugging */ +#define QCM5_DEBUG if (QCM5_DEBUG_ENABLED) qDebug() +#define QCM5_DEBUG_ARG(x) if (QCM5_DEBUG_ENABLED) qDebug() << x; + +/* Check env var and switch on/off debugging */ +static inline void initDebugLogger(){ + QCM5_DEBUG_ENABLED = !qgetenv("QCONTACT_MAEMO5_DEBUG").isEmpty(); + QCM5_DEBUG << "Logging has been enabled"; +} +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/.gitignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/.gitignore Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,21 @@ +.moc +.obj +core +Makefile +*.so +*.pro.user* +*.o +moc_*.cpp + +/build-stamp +/configure-stamp +/debian/files +/debian/libqtcontacts-tracker.substvars +/debian/libqtcontacts-tracker/ +/tests/ut_qtcontacts_add_async/ut_qtcontacts_add_async +/tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch +/tests/ut_qtcontacts_sparql/ut_qtcontacts_sparql +/tests/ut_qtcontacts_trackerplugin_definitions/ut_qtcontacts_trackerplugin_definitions + +*~ + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qcontacttrackerbackend.cpp --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qcontacttrackerbackend.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qcontacttrackerbackend.cpp Mon May 03 13:18:40 2010 +0300 @@ -60,10 +60,11 @@ #include -QContactManagerEngine* ContactTrackerFactory::engine(const QMap& parameters, QContactManager::Error& error) +QContactManagerEngine* ContactTrackerFactory::engine(const QMap& parameters, QContactManager::Error* error) { Q_UNUSED(error); - return new QContactTrackerEngine(managerName(), 1, parameters); + QString version = QLatin1String(VERSION_INFO); + return new QContactTrackerEngine(managerName(), version.toInt(), parameters); } QString ContactTrackerFactory::managerName() const @@ -101,7 +102,7 @@ void QContactTrackerEngine::connectToSignals() { - TrackerChangeListener *listener = new TrackerChangeListener(this); + TrackerChangeListener *listener = new TrackerChangeListener(this, this); connect(listener, SIGNAL(contactsAdded(const QList&)), SIGNAL(contactsAdded(const QList&))); connect(listener, SIGNAL(contactsChanged(const QList&)), SIGNAL(contactsChanged(const QList&))); connect(listener, SIGNAL(contactsRemoved(const QList&)), SIGNAL(contactsRemoved(const QList&))); @@ -130,12 +131,12 @@ delete this; } -QList QContactTrackerEngine::contactIds(const QList& sortOrders, QContactManager::Error& error) const +QList QContactTrackerEngine::contactIds(const QList& sortOrders, QContactManager::Error* error) const { return contactIds(QContactFilter(), sortOrders, error); } -QList QContactTrackerEngine::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error& error) const +QList QContactTrackerEngine::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const { QContactLocalIdFetchRequest request; request.setFilter(filter); @@ -146,25 +147,20 @@ // 10 seconds should be enough engine.waitForRequestFinished(&request, 10000); if(!request.isFinished()) { - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; } else { // leave the code for now while not all other code is fixed - error = request.error(); + *error = request.error(); } return request.ids(); } -QList QContactTrackerEngine::contacts(const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const -{ - return contacts(QContactFilter(), sortOrders, definitionRestrictions, error); -} - -QList QContactTrackerEngine::contacts(const QContactFilter& filter, const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QList QContactTrackerEngine::contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const { // the rest of the code is for internal usage, unit tests etc. QContactFetchRequest request; - request.setDefinitionRestrictions(definitionRestrictions); + request.setFetchHint(fetchHint); request.setFilter(filter); request.setSorting(sortOrders); @@ -174,44 +170,57 @@ engine.waitForRequestFinished(&request, 10000); if( !request.isFinished()) { - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; } else { // leave the code for now while not all other code is fixed - error = request.error(); + *error = request.error(); } return request.contacts(); } -QContact QContactTrackerEngine::contact(const QContactLocalId& contactId, QContactManager::Error& error ) const +QContact QContactTrackerEngine::contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const { - qWarning() << "QContactManager::contact()" << "api is not supported for tracker plugin. Please use asynchronous API QContactFetchRequest."; - return contact_impl(contactId, error); + // plan to keep this warning for a while - as message to customers using the API + qWarning() << "QContactManager::contact()" << "api is blocking on dbus roundtrip while accessing tracker. Please, consider using asynchronous API QContactFetchRequest and not fetching contacts by id \n" + "- reading 100 ids and 100 contact by ids is ~100 times slower then reading 100 contacts at once with QContactFetchRequest."; + return contact_impl(contactId, fetchHint, error); } + +QContactLocalId QContactTrackerEngine::selfContactId(QContactManager::Error* error) const +{ + *error = QContactManager::NoError; + return QContactLocalId(0xFFFFFFFF); +} + // used in tests, removed warning while decided if to provide sync api. Until then customers are advised to use async -QContact QContactTrackerEngine::contact_impl(const QContactLocalId& contactId, QContactManager::Error& error ) const +QContact QContactTrackerEngine::contact_impl(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error ) const { - // the rest of the code is for internal usage, unit tests etc. QContactLocalIdFilter idlist; QList ids; ids << contactId; idlist.setIds(ids); QContactFetchRequest request; - QStringList fields; + QStringList definitionNames = fetchHint.detailDefinitionsHint(); + if (fetchHint.detailDefinitionsHint().isEmpty()) + { + definitionNames << QContactAvatar::DefinitionName + << QContactBirthday::DefinitionName + << QContactAddress::DefinitionName + << QContactEmailAddress::DefinitionName + << QContactDisplayLabel::DefinitionName + << QContactGender::DefinitionName + << QContactAnniversary::DefinitionName + << QContactName::DefinitionName + << QContactOnlineAccount::DefinitionName + << QContactOrganization::DefinitionName + << QContactPhoneNumber::DefinitionName + << QContactOnlineAccount::DefinitionName + << QContactUrl::DefinitionName; + } - fields << QContactAvatar::DefinitionName - << QContactBirthday::DefinitionName - << QContactAddress::DefinitionName - << QContactEmailAddress::DefinitionName - << QContactDisplayLabel::DefinitionName - << QContactGender::DefinitionName - << QContactAnniversary::DefinitionName - << QContactName::DefinitionName - << QContactOnlineAccount::DefinitionName - << QContactOrganization::DefinitionName - << QContactPhoneNumber::DefinitionName - << QContactOnlineAccount::DefinitionName - << QContactUrl::DefinitionName; - request.setDefinitionRestrictions(fields); + QContactFetchHint modifiedHint; + modifiedHint.setDetailDefinitionsHint(definitionNames); + request.setFetchHint(modifiedHint); request.setFilter(idlist); QContactTrackerEngine engine(*this); @@ -220,17 +229,17 @@ engine.waitForRequestFinished(&request, 10000); if( !request.isFinished()) { - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; return QContact(); } else if(request.contacts().size() == 0) { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return QContact(); } else { // leave the code for now while not all other code is fixed - error = request.error(); + *error = request.error(); return request.contacts()[0]; } @@ -257,7 +266,7 @@ } -bool QContactTrackerEngine::saveContact( QContact* contact, QContactManager::Error& error) +bool QContactTrackerEngine::saveContact( QContact* contact, QContactManager::Error* error) { // Signal emitted from TrackerChangeListener QContactSaveRequest request; @@ -267,19 +276,19 @@ engine.startRequest(&request); // 10 seconds should be enough engine.waitForRequestFinished(&request, 10000); - error = request.error(); + *error = request.error(); Q_ASSERT(request.contacts().size() == 1); *contact = request.contacts()[0]; - if( request.isFinished() && error == QContactManager::NoError) + if( request.isFinished() && *error == QContactManager::NoError) return true; else return false; } -bool QContactTrackerEngine::removeContact(const QContactLocalId& contactId, QContactManager::Error& error) +bool QContactTrackerEngine::removeContact(const QContactLocalId& contactId, QContactManager::Error* error) { - error = QContactManager::NoError; + *error = QContactManager::NoError; // TODO: Do with LiveNodes when they support strict querying. RDFVariable RDFContact = RDFVariable::fromType(); @@ -289,7 +298,7 @@ query.addColumn("contact_uri", RDFContact); LiveNodes ncoContacts = ::tracker()->modelQuery(query); if(ncoContacts->rowCount() == 0) { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return false; } @@ -309,15 +318,15 @@ return true; } -bool QContactTrackerEngine::saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error& error) +bool QContactTrackerEngine::saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error) { // @todo: Handle errors per saved contact. Q_UNUSED(errorMap) - error = QContactManager::NoError; + *error = QContactManager::NoError; if(contacts == 0) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } @@ -336,38 +345,30 @@ if (request.isFinished() == false) { qWarning() << "QContactTrackerEngine::saveContacts:" << "request not finished"; } - error = request.error(); + *error = request.error(); for (int i = 0; i < contacts->size(); ++i) { (*contacts)[i] = request.contacts().at(i); } // Returns false if we have any errors - true if everything went ok. - return (request.errorMap().isEmpty() && error == QContactManager::NoError); + return (request.errorMap().isEmpty() && *error == QContactManager::NoError); } -bool QContactTrackerEngine::removeContacts(QList* contactIds, QMap* errorMap, QContactManager::Error& error) +bool QContactTrackerEngine::removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error) { // Cannot report errors - giving up. if(!errorMap) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } // let's clear the error hash so there is nothing old haunting us. errorMap->clear(); - if (!contactIds) { - error = QContactManager::BadArgumentError; - return false; - } - - for (int i = 0; i < contactIds->count(); i++) { + for (int i = 0; i < contactIds.count(); i++) { QContactManager::Error lastError; - removeContact(contactIds->at(i), lastError); - if (lastError == QContactManager::NoError) { - (*contactIds)[i] = 0; - } - else { + removeContact(contactIds.at(i), &lastError); + if (lastError != QContactManager::NoError) { errorMap->insert(i, lastError); } } @@ -378,10 +379,10 @@ } QMap QContactTrackerEngine::detailDefinitions(const QString& contactType, - QContactManager::Error& error) const + QContactManager::Error* error) const { if (contactType != QContactType::TypeContact) { - error = QContactManager::InvalidContactTypeError; + *error = QContactManager::InvalidContactTypeError; return QMap(); } @@ -389,14 +390,7 @@ if (d->m_definitions.isEmpty()) { // none in the list? get the schema definitions, and modify them to match our capabilities. d->m_definitions = QContactManagerEngine::schemaDefinitions().value(QContactType::TypeContact); - { - qDebug() << "the definitions"; - QList defs = d->m_definitions.keys(); - foreach(QString def, defs) - { - qDebug() << def; - } - } + // modification: name is unique QContactDetailDefinition nameDef = d->m_definitions.value(QContactName::DefinitionName); nameDef.setUnique(true); @@ -426,6 +420,7 @@ fields.insert(QContactUrl::FieldSubType, f); newUrlDef.setFields(fields); newUrlDef.setUnique(true); + newUrlDef.setName(QContactUrl::DefinitionName); d->m_definitions.insert(QContactUrl::DefinitionName, newUrlDef); } @@ -442,25 +437,29 @@ fields.insert("Account", f); fields.insert("AccountPath", f); newAccountDefinition.setFields(fields); + newAccountDefinition.setName(QContactOnlineAccount::DefinitionName); d->m_definitions.insert(QContactOnlineAccount::DefinitionName, newAccountDefinition); } - - } - error = QContactManager::NoError; + *error = QContactManager::NoError; return d->m_definitions; } /*! * \reimp */ -bool QContactTrackerEngine::hasFeature(QContactManager::ManagerFeature feature) const +bool QContactTrackerEngine::hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const { + if (!supportedContactTypes().contains(contactType)) { + return false; + } + switch (feature) { case QContactManager::Groups: case QContactManager::ActionPreferences: case QContactManager::Relationships: + case QContactManager::SelfContact: return true; case QContactManager::ArbitraryRelationshipTypes: return true; @@ -481,7 +480,7 @@ * Definition identifiers which are natively (fast) filterable * on the default backend store managed by the manager from which the capabilities object was accessed */ -bool QContactTrackerEngine::filterSupported(const QContactFilter& filter) const +bool QContactTrackerEngine::isFilterSupported(const QContactFilter& filter) const { switch (filter.type()) { case QContactFilter::InvalidFilter: @@ -524,9 +523,9 @@ } /*! - * Returns the implementation version of this engine + * Returns the manager version of this engine */ -int QContactTrackerEngine::implementationVersion() const +int QContactTrackerEngine::managerVersion() const { return d->m_engineVersion; } @@ -535,13 +534,13 @@ const QString& fieldName) const { if (definitionName == QContactName::DefinitionName) { - if (fieldName == QContactName::FieldFirst) { + if (fieldName == QContactName::FieldFirstName) { return rdfContact.property(); } - else if (fieldName == QContactName::FieldLast) { + else if (fieldName == QContactName::FieldLastName) { return rdfContact.property(); } - else if (fieldName == QContactName::FieldMiddle) { + else if (fieldName == QContactName::FieldMiddleName) { return rdfContact.property(); } else if (fieldName == QContactName::FieldPrefix) { @@ -596,12 +595,15 @@ } /*! \reimp */ -QString QContactTrackerEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const +QString QContactTrackerEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const { QString label = QContactManagerEngine::synthesizedDisplayLabel(contact, error); if (label.isEmpty()) label = contact.detail().nickname(); - if(label.isEmpty()) - label = contact.detail().nickname(); + //XXX TODO: FIXME - take the nickname from the presence field associated with the online account + //if(label.isEmpty()) + // label = contact.detail().nickname(); + + qDebug() << Q_FUNC_INFO << label; return label; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qcontacttrackerbackend_p.h --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qcontacttrackerbackend_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qcontacttrackerbackend_p.h Mon May 03 13:18:40 2010 +0300 @@ -59,7 +59,7 @@ #include #include -#include "qtcontacts.h" +#include #include using namespace SopranoLive; @@ -109,29 +109,30 @@ public: QContactTrackerEngine(const QString& managerName, int managerVersion, const QMap& parameters); - QContactTrackerEngine(const QMap& parameters); - QContactTrackerEngine(const QContactTrackerEngine& other); + QContactTrackerEngine(const QMap& parameters); // XXX FIXME: I don't think this is used in your factory code either? + QContactTrackerEngine(const QContactTrackerEngine& other); // XXX FIXME: not used in your factory code...? ~QContactTrackerEngine(); - QContactTrackerEngine& operator=(const QContactTrackerEngine& other); - QContactManagerEngine* clone(); - void deref(); + QContactTrackerEngine& operator=(const QContactTrackerEngine& other); // XXX FIXME: not used in your factory code...? + QContactManagerEngine* clone(); // XXX FIXME: no longer part of the engine API + void deref(); // XXX FIXME: no longer part of the engine API // sync methods, wrapping async methods & waitForFinished - QList contactIds(const QList& sortOrders, QContactManager::Error& error) const; - QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error& error) const; - QList contacts(const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - QList contacts(const QContactFilter& filter, const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - QContact contact(const QContactLocalId& contactId, QContactManager::Error& error) const; + QList contactIds(const QList& sortOrders, QContactManager::Error* error) const; // XXX FIXME: no longer part of engine API. + QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const; + QList contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; + QContact contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; /* Save contacts - single and in batch */ - bool saveContact( QContact* contact, QContactManager::Error& error); - bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error& error); + bool saveContact( QContact* contact, QContactManager::Error* error); + bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error); - bool removeContact(const QContactLocalId& contactId, QContactManager::Error& error); - bool removeContacts(QList* contactIds, QMap* errorMap, QContactManager::Error& error) ; + bool removeContact(const QContactLocalId& contactId, QContactManager::Error* error); + bool removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error) ; /* Definitions - Accessors and Mutators */ - QMap detailDefinitions(const QString& contactType, QContactManager::Error& error) const; + QMap detailDefinitions(const QString& contactType, QContactManager::Error* error) const; + + QContactLocalId selfContactId(QContactManager::Error* error) const; /* Asynchronous Request Support */ void requestDestroyed(QContactAbstractRequest* req); @@ -139,23 +140,42 @@ bool waitForRequestFinished(QContactAbstractRequest* req, int msecs); /* Capabilities reporting */ - bool hasFeature(QContactManager::ManagerFeature feature) const; - bool filterSupported(const QContactFilter& filter) const; + bool hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const; + + bool isFilterSupported(const QContactFilter& filter) const; QList supportedDataTypes() const; /* Version Reporting */ QString managerName() const; - int implementationVersion() const; + int managerVersion() const; /* Synthesise the display label of a contact */ - QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const; + QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const; + + + + /* XXX TODO: pure virtual unimplemented functions! */ + QMap managerParameters() const {return QMap();} + bool setSelfContactId(const QContactLocalId&, QContactManager::Error* error) {*error = QContactManager::NotSupportedError; return false;} + QList relationships(const QString&, const QContactId&, QContactRelationship::Role, QContactManager::Error* error) const {*error = QContactManager::NotSupportedError; return QList();} + bool saveRelationships(QList*, QMap*, QContactManager::Error* error) {*error = QContactManager::NotSupportedError; return false;} + bool removeRelationships(const QList&, QMap*, QContactManager::Error* error) {*error = QContactManager::NotSupportedError; return false;} + QContact compatibleContact(const QContact&, QContactManager::Error* error) const {*error = QContactManager::NotSupportedError; return QContact();} + bool validateContact(const QContact&, QContactManager::Error* error) const {*error = QContactManager::NotSupportedError; return false;} + bool validateDefinition(const QContactDetailDefinition&, QContactManager::Error* error) const {*error = QContactManager::NotSupportedError; return false;} + QContactDetailDefinition detailDefinition(const QString&, const QString&, QContactManager::Error* error) const {*error = QContactManager::NotSupportedError; return QContactDetailDefinition();} + bool saveDetailDefinition(const QContactDetailDefinition&, const QString&, QContactManager::Error* error) {*error = QContactManager::NotSupportedError; return false;} + bool removeDetailDefinition(const QString&, const QString&, QContactManager::Error* error) {*error = QContactManager::NotSupportedError; return false;} + bool cancelRequest(QContactAbstractRequest*) {return false;} + bool isRelationshipTypeSupported(const QString&, const QString&) const {return false;} + QStringList supportedContactTypes() const {return (QStringList() << QContactType::TypeContact);} private: //called from both constructors, connecting to all contact NodeList changes signals void connectToSignals(); RDFVariable contactDetail2Rdf(const RDFVariable& rdfContact, const QString& definitionName, const QString& fieldName) const; - QContact contact_impl(const QContactLocalId& contactId, QContactManager::Error& error) const; + QContact contact_impl(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; private: QSharedDataPointer d; const QString contactArchiveFile; @@ -168,7 +188,7 @@ Q_OBJECT Q_INTERFACES(QtMobility::QContactManagerEngineFactory) public: - QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error&); + QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error*); QString managerName() const; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtcontacts-tracker.pro --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtcontacts-tracker.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtcontacts-tracker.pro Mon May 03 13:18:40 2010 +0300 @@ -15,6 +15,8 @@ include(version.pri) include(../../../common.pri) +DEFINES += VERSION_INFO=\\\"$${VERSION_INT}\\\" + INCLUDEPATH += $$SOURCE_DIR/src/contacts INCLUDEPATH += $$SOURCE_DIR/src/contacts/details INCLUDEPATH += $$SOURCE_DIR/src/contacts/filters @@ -24,21 +26,22 @@ HEADERS += qcontacttrackerbackend_p.h \ qtrackercontactasyncrequest.h \ - trackerchangelistener.h \ + qtrackercontactfetchrequest.h \ qtrackercontactslive.h \ qtrackercontactsaverequest.h \ qtrackerrelationshipfetchrequest.h \ qtrackerrelationshipsaverequest.h \ - qtrackercontactidfetchrequest.h + qtrackercontactidfetchrequest.h \ + trackerchangelistener.h SOURCES += qcontacttrackerbackend.cpp \ - qtrackercontactasyncrequest.cpp \ - trackerchangelistener.cpp \ + qtrackercontactfetchrequest.cpp \ qtrackercontactslive.cpp \ qtrackercontactsaverequest.cpp \ qtrackerrelationshipfetchrequest.cpp \ qtrackerrelationshipsaverequest.cpp \ - qtrackercontactidfetchrequest.cpp + qtrackercontactidfetchrequest.cpp \ + trackerchangelistener.cpp target.path=$$QT_MOBILITY_PREFIX/plugins/contacts INSTALLS+=target diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactasyncrequest.cpp --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactasyncrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1110 +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 Qt Mobility Components. -** -** $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 -#include -#include -#include -#include -#include - -using namespace SopranoLive; - -class ConversionLookup: public QHash -{ -public: - ConversionLookup& operator<<(const QPair &conversion) - { - this->insert(conversion.first, conversion.second); - return *this; - } -}; - - -const QString FieldQContactLocalId("QContactLocalId"); -const QString FieldAccountPath("AccountPath"); -const ConversionLookup presenceConversion(ConversionLookup() - <("presence-status-offline", QContactOnlineAccount::PresenceOffline) - <("presence-status-available", QContactOnlineAccount::PresenceAvailable) - <("presence-status-away", QContactOnlineAccount::PresenceAway) - <("presence-status-extended-away", QContactOnlineAccount::PresenceExtendedAway) - <("presence-status-busy", QContactOnlineAccount::PresenceBusy) - <("presence-status-unknown", QContactOnlineAccount::PresenceUnknown) - <("presence-status-hidden", QContactOnlineAccount::PresenceHidden) - <("presence-status-dnd", QContactOnlineAccount::PresenceBusy) -); - -void matchPhoneNumber(RDFVariable &variable, QContactDetailFilter &filter) -{ - // This here is the first implementation of filtering that takes into account also affiliations. - // needs to be applied for other filters too - TODO - RDFVariable officeContact; - RDFVariable homeContact; - - RDFVariable rdfPhoneNumber; - rdfPhoneNumber = homeContact.property().property(); - - RDFVariable rdfOfficePhoneNumber; - rdfOfficePhoneNumber = officeContact.property().property().property(); - - QString filterValue = filter.value().toString(); - if (filter.matchFlags() == Qt::MatchEndsWith) - { - QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Nokia","Trackerplugin"); - int matchDigitCount = settings.value("phoneNumberMatchDigitCount", "7").toInt(); - filterValue = filterValue.right(matchDigitCount); - qDebug() << "match with:" << matchDigitCount << ":" << filterValue; - rdfPhoneNumber.hasSuffix(filterValue); - rdfOfficePhoneNumber.hasSuffix(filterValue); - } - else - { // default to exact match - rdfOfficePhoneNumber.matchesRegexp(filterValue); - rdfPhoneNumber.matchesRegexp(filterValue); - } - // This is the key part, including both contacts and affiliations - variable.isMemberOf(RDFVariableList()< ().isMemberOf(QStringList() << filter.value().toString()); - } - else if (filter.detailFieldName() == FieldAccountPath) - { - // as it uses telepathy:account path - variable.property().equal(QUrl(QString("telepathy:")+filter.value().toString())); - } - else if (filter.detailFieldName() == QContactOnlineAccount::FieldServiceProvider) - { - variable.property().property ().isMemberOf(QStringList() << filter.value().toString()); - } - else - qWarning() << "QTrackerContactFetchRequest," << __FUNCTION__ - << "Unsupported detail filter by QContactOnlineAccount."; - } - else - { - qWarning() << "QTrackerContactFetchRequest," << __FUNCTION__ - << "Unsupported match flag in detail filter by QContactOnlineAccount. Use QContactFilter::MatchExactly"; - } -} - -void matchName(RDFVariable &variable, QContactDetailFilter &filter) -{ - if (filter.detailDefinitionName() != QContactName::DefinitionName) { - qWarning() << "QTrackerContactFetchRequest," << __FUNCTION__ - << "Unsupported definition name in detail filter, should be QContactName::DefinitionName"; - return; - } - QString filterValue = filter.value().toString(); - QString field = filter.detailFieldName(); - if ((filter.matchFlags() & QContactFilter::MatchExactly) == QContactFilter::MatchExactly) { - if (field == QContactName::FieldFirst) { - variable.property() = LiteralValue(filterValue); - } else if (field == QContactName::FieldLast) { - variable.property() = LiteralValue(filterValue); - } else if (field == QContactName::FieldMiddle) { - variable.property() = LiteralValue(filterValue); - } else if (field == QContactName::FieldPrefix) { - variable.property() = LiteralValue(filterValue); - } else if (field == QContactName::FieldSuffix) { - variable.property() = LiteralValue(filterValue); - } - } else { - qWarning() << "QTrackerContactFetchRequest," << __FUNCTION__ - << "Unsupported match flag in detail filter by QContactName"; - } -} - -/* - * RDFVariable describes all contacts in tracker before filter is applied. - * This method translates QContactFilter to tracker rdf filter. When query is made - * after this method, it would return only contacts that fit the filter. - */ -QContactManager::Error QTrackerContactFetchRequest::applyFilterToContact(RDFVariable &variable, - const QContactFilter &filter) -{ - if (filter.type() == QContactFilter::LocalIdFilter) { - QContactLocalIdFilter filt = filter; - if (!filt.ids().isEmpty()) { - variable.property().isMemberOf(filt.ids()); - } else { - qWarning() << Q_FUNC_INFO << "QContactLocalIdFilter idlist is empty"; - return QContactManager::BadArgumentError; - } - } else if (filter.type() == QContactFilter::ContactDetailFilter) { - // this one is tricky as we need to match in contacts or in affiliations - - QContactDetailFilter filt = filter; - if ( QContactPhoneNumber::DefinitionName == filt.detailDefinitionName() - && QContactPhoneNumber::FieldNumber == filt.detailFieldName()) { - matchPhoneNumber(variable, filt); - } - else if(QContactOnlineAccount::DefinitionName == filt.detailDefinitionName()) - { - matchOnlineAccount(variable, filt); - } - else if (QContactName::DefinitionName == filt.detailDefinitionName()) { - matchName(variable, filt); - } - else if (filt.matchFlags() == Qt::MatchExactly) { - if (QContactEmailAddress::DefinitionName == filt.detailDefinitionName() - && QContactEmailAddress::FieldEmailAddress == filt.detailFieldName()) { - RDFVariable rdfEmailAddress; - rdfEmailAddress = variable.property(); - rdfEmailAddress.property() = LiteralValue(filt.value().toString()); - } else { - qWarning() << __PRETTY_FUNCTION__ << "QContactTrackerEngine: Unsupported QContactFilter::ContactDetail" - << filt.detailDefinitionName(); - return QContactManager::NotSupportedError; - } - } - } - else if (filter.type() == QContactFilter::ContactDetailRangeFilter) - { - return applyDetailRangeFilterToContact(variable, filter); - } - else if (filter.type() == QContactFilter::ChangeLogFilter) { - const QContactChangeLogFilter& clFilter = static_cast(filter); - // do not return facebook and telepathy contacts here - // it is a temp implementation for the what to offer to synchronization constraint - variable.property().property() = LiteralValue("addressbook"); - - if (clFilter.eventType() == QContactChangeLogFilter::EventRemoved) { // Removed since - qWarning() << "QContactTrackerEngine: Unsupported QContactChangeLogFilter::Removed (contacts removed since)"; - return QContactManager::NotSupportedError; - } else if (clFilter.eventType() == QContactChangeLogFilter::EventAdded) { // Added since - variable.property() >= LiteralValue(clFilter.since().toString(Qt::ISODate)); - } else if (clFilter.eventType() == QContactChangeLogFilter::EventChanged) { // Changed since - variable.property() >= LiteralValue(clFilter.since().toString(Qt::ISODate)); - } - } else if (filter.type() == QContactFilter::UnionFilter) { - const QContactUnionFilter unionFilter(filter); - foreach (QContactFilter f, unionFilter.filters()) { - QContactManager::Error error = applyFilterToContact(variable, f); - if (QContactManager::NoError != error) - return error; - } - } - else if(filter.type() == QContactFilter::InvalidFilter || filter.type() == QContactFilter::DefaultFilter) - return QContactManager::NoError; - else - return QContactManager::NotSupportedError; - return QContactManager::NoError; -} - -//!\sa applyFilterToContact -QContactManager::Error QTrackerContactFetchRequest::applyDetailRangeFilterToContact(RDFVariable &variable, const QContactFilter &filter) -{ - Q_ASSERT(filter.type() == QContactFilter::ContactDetailRangeFilter); - if (filter.type() == QContactFilter::ContactDetailRangeFilter) { - QContactDetailRangeFilter filt = filter; - // birthday range - if (QContactBirthday::DefinitionName == filt.detailDefinitionName() - && QContactBirthday::FieldBirthday == filt.detailFieldName()) - { - RDFVariable time = variable.property(); - if (filt.rangeFlags() & QContactDetailRangeFilter::IncludeUpper) - time <= LiteralValue(filt.maxValue().toDateTime().toString(Qt::ISODate)); - else - time < LiteralValue(filt.maxValue().toDateTime().toString(Qt::ISODate)); - if (filt.rangeFlags() & QContactDetailRangeFilter::ExcludeLower) - time > LiteralValue(filt.minValue().toDateTime().toString(Qt::ISODate)); - else - time >= LiteralValue(filt.minValue().toDateTime().toString(Qt::ISODate)); - return QContactManager::NoError; - } - } - qWarning() << __PRETTY_FUNCTION__ << "Unsupported detail range filter"; - return QContactManager::NotSupportedError; -} - - -/* - * To understand why all the following methods have for affiliation param, check nco ontology: - * every contact has all these properties and also linked to affiliations (also contacts - nco:Role) - * that again have the same properties. So it was needed to make the same query 2-ce - once for contact - * and once for affiliations - */ -RDFSelect preparePhoneNumbersQuery(RDFVariable &rdfcontact1, bool forAffiliations) -{ - RDFVariable phone; - if (!forAffiliations) - phone = rdfcontact1.property(); - else - phone = rdfcontact1.property().property(); - RDFVariable type = phone.type(); - type.property().notEqual(nco::ContactMedium::iri()); // sparql cannot handle exact type but returns all super types as junk rows - type.property().notEqual(rdfs::Resource::iri()); // sparql cannot handle exact type but returns all super types as junk rows - // therefore we eliminate those rows that are not of interest - // columns - RDFSelect queryidsnumbers; - queryidsnumbers.addColumn("contactId", rdfcontact1.property ()); - queryidsnumbers.addColumn("phoneno", phone.property ()); - queryidsnumbers.addColumn("type", type); - queryidsnumbers.distinct(); - return queryidsnumbers; -} - -RDFSelect prepareEmailAddressesQuery(RDFVariable &rdfcontact1, bool forAffiliations) -{ - RDFVariable email; - if (!forAffiliations) - email = rdfcontact1.property(); - else - email = rdfcontact1.property().property(); - const RDFVariable& type = email.type(); - type.property().notEqual(nco::Resource::iri()); // sparql cannot handle exact type but returns all super types as junk rows - // therefore we eliminate those rows that are not of interest - // columns - RDFSelect queryidsnumbers; - queryidsnumbers.addColumn("contactId", rdfcontact1.property ()); - queryidsnumbers.addColumn("emailaddress", email.property ()); - rdfcontact1.property ().isOfType( nco::EmailAddress::iri(), true); - queryidsnumbers.addColumn("type", type); - queryidsnumbers.distinct(); - return queryidsnumbers; -} - -RDFSelect prepareIMContactsQuery(RDFVariable &imcontact ) -{ - // columns - RDFSelect queryidsimacccounts; - imcontact = queryidsimacccounts.newColumn("contact"); - queryidsimacccounts.groupBy(imcontact); - queryidsimacccounts.addColumn("contactId", imcontact.property ()); - - queryidsimacccounts.addColumn("IMId", imcontact.property ()); - queryidsimacccounts.addColumn("status", imcontact.optional().property ()); - queryidsimacccounts.addColumn("message", imcontact.optional().property ()); - queryidsimacccounts.addColumn("nick", imcontact.optional().property ()); - queryidsimacccounts.addColumn("type", imcontact.optional().property ()); - queryidsimacccounts.addColumn("capabilities", - imcontact.optional().property().filter("GROUP_CONCAT", LiteralValue(","))); - queryidsimacccounts.addColumn("metacontact", imcontact.optional().property ()); - queryidsimacccounts.addColumn("serviceprovider", imcontact.optional().property().property()); - - return queryidsimacccounts; - -} - -RDFSelect prepareIMAccountsQuery(RDFVariable &rdfPersonContact) -{ - RDFVariable imAccount; - imAccount = rdfPersonContact.property (); - RDFSelect queryidsimaccounts; - - queryidsimaccounts.addColumn("protocol", imAccount.property ()); - queryidsimaccounts.addColumn("presence",imAccount.optional().property ()); - queryidsimaccounts.addColumn("message", imAccount.optional().property ()); - queryidsimaccounts.addColumn("nick", imAccount.optional().property ()); - queryidsimaccounts.addColumn("displayname", imAccount.optional().property ()); - - return queryidsimaccounts; -} - - -QTrackerContactAsyncRequest::QTrackerContactAsyncRequest(QContactAbstractRequest* request) -: req(request) -{ -} - -const QString rdfPhoneType2QContactSubtype(const QString rdfPhoneType) -{ - if( rdfPhoneType.endsWith("VoicePhoneNumber") ) - return QContactPhoneNumber::SubTypeVoice; - else if ( rdfPhoneType.endsWith("CarPhoneNumber") ) - return QContactPhoneNumber::SubTypeCar; - else if ( rdfPhoneType.endsWith("CellPhoneNumber") ) - return QContactPhoneNumber::SubTypeMobile; - else if ( rdfPhoneType.endsWith("BbsPhoneNumber") ) - return QContactPhoneNumber::SubTypeBulletinBoardSystem; - else if ( rdfPhoneType.endsWith("FaxNumber") ) - return QContactPhoneNumber::SubTypeFacsimile; - else if ( rdfPhoneType.endsWith("ModemNumber") ) - return QContactPhoneNumber::SubTypeModem; - else if ( rdfPhoneType.endsWith("PagerNumber") ) - return QContactPhoneNumber::SubTypePager; - else if ( rdfPhoneType.endsWith("MessagingNumber") ) - return QContactPhoneNumber::SubTypeMessagingCapable; - else - qWarning() << Q_FUNC_INFO << "Not handled phone number type:" << rdfPhoneType; - return ""; -} - -QTrackerContactAsyncRequest::~QTrackerContactAsyncRequest() -{ - -} - -/*! - * The method was initially created to add default fields in case client did not supply - * fields constraint - in that case the constraint is that default contact fields (ones - * being edited in contact card and synchronized) are queried. - */ -void QTrackerContactFetchRequest::validateRequest() -{ - Q_ASSERT(req); - Q_ASSERT(req->type() == QContactAbstractRequest::ContactFetchRequest); - QContactFetchRequest* r = qobject_cast (req); - if (r && r->definitionRestrictions().isEmpty()) { - QStringList fields; - fields << QContactAvatar::DefinitionName - << QContactBirthday::DefinitionName - << QContactAddress::DefinitionName - << QContactEmailAddress::DefinitionName - << QContactGender::DefinitionName - << QContactAnniversary::DefinitionName - << QContactName::DefinitionName - << QContactOnlineAccount::DefinitionName - << QContactOrganization::DefinitionName - << QContactPhoneNumber::DefinitionName - << QContactUrl::DefinitionName; - r->setDefinitionRestrictions(fields); - } -} - -QTrackerContactFetchRequest::QTrackerContactFetchRequest(QContactAbstractRequest* request, - QContactManagerEngine* parent) : - QObject(parent),QTrackerContactAsyncRequest(request), - queryPhoneNumbersNodesPending(0), - queryEmailAddressNodesPending(0) -{ - Q_ASSERT(parent); - Q_ASSERT(request); - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::ActiveState); - - QTimer::singleShot(0, this, SLOT(run())); -} - -void QTrackerContactFetchRequest::run() -{ - validateRequest(); - QContactFetchRequest* r = qobject_cast (req); - - RDFVariable RDFContact = RDFVariable::fromType(); - QContactManager::Error error = applyFilterToContact(RDFContact, r->filter()); - if (error != QContactManager::NoError) - { - emitFinished(error); - return; - } - if (r->definitionRestrictions().contains(QContactPhoneNumber::DefinitionName)) { - queryPhoneNumbersNodes.clear(); - queryPhoneNumbersNodesPending = 2; - for(int forAffiliations = 0; forAffiliations <= 1; forAffiliations++) { - // prepare query to get all phone numbers - RDFVariable rdfcontact1 = RDFVariable::fromType(); - applyFilterToContact(rdfcontact1, r->filter()); - // criteria - only those with phone numbers - RDFSelect queryidsnumbers = preparePhoneNumbersQuery(rdfcontact1, forAffiliations); - queryPhoneNumbersNodes << ::tracker()->modelQuery(queryidsnumbers); - // need to store LiveNodes in order to receive notification from model - QObject::connect(queryPhoneNumbersNodes[forAffiliations].model(), - SIGNAL(modelUpdated()), this, SLOT(phoneNumbersReady())); - } - } - - if (r->definitionRestrictions().contains(QContactEmailAddress::DefinitionName)) { - queryEmailAddressNodes.clear(); - queryEmailAddressNodesPending = 2; - for(int forAffiliations = 0; forAffiliations <= 1; forAffiliations++) { - // prepare query to get all email addresses - RDFVariable rdfcontact1 = RDFVariable::fromType(); - applyFilterToContact(rdfcontact1, r->filter()); - // criteria - only those with email addresses - RDFSelect queryidsnumbers = prepareEmailAddressesQuery(rdfcontact1,forAffiliations); - queryEmailAddressNodes << ::tracker()->modelQuery(queryidsnumbers); - // need to store LiveNodes in order to receive notification from model - QObject::connect(queryEmailAddressNodes[forAffiliations].model(), - SIGNAL(modelUpdated()), this, SLOT(emailAddressesReady())); - } - } - - if ( r->definitionRestrictions().contains( QContactOnlineAccount::DefinitionName) ) { - queryIMAccountNodesPending = 1; - - RDFSelect queryidsimaccounts; - RDFVariable rdfIMContact; - rdfIMContact = rdfIMContact.fromType (); - - if(isMeContact(r->filter())) { - RDFVariable rdfPersonContact; - rdfPersonContact = rdfPersonContact.fromType (); - // Prepare a query to get all IMAccounts from all accounts. - // nco:PersonContact -- nco:hasIMAccount -- nco:IMAccount - queryidsimaccounts = prepareIMAccountsQuery(rdfPersonContact); - } else { - // Prepare a query to get all IMContacts from all accounts. - queryidsimaccounts = prepareIMContactsQuery(rdfIMContact); - } - - if( r->filter().type() != QContactFilter::DefaultFilter ) - { - // need to get all IMContacts with the same contact id (1) and all IMContacts - // that have the same metacontact (2) - - // (1)rdfcontact1 represent the contacts that fits to the filter - RDFVariable rdfcontact1; - applyFilterToContact(rdfcontact1, r->filter()); - - // (2) select all contacts that have the same metacontact as some contact corresponding to given filter - // and if metacontact exist. - RDFVariable rdfcontact3; - rdfcontact3.property () = rdfcontact1.optional().property (); - - // aggregated criteria - only those with im contacts that match rdfcontact1 (same id) or rdfcontact3 (same metacontact) - rdfIMContact.isMemberOf(RDFVariableList()<modelQuery(queryidsimaccounts); - QObject::connect(queryIMAccountNodes.model(), - SIGNAL(modelUpdated()), SLOT(iMAcountsReady())); - } - - QList ids; - RDFVariable RDFContact1 = RDFVariable::fromType(); - applyFilterToContact(RDFContact1, r->filter()); - RDFSelect quer; - RDFVariable prefix = RDFContact1.optional().property (); - RDFVariable lastname = RDFContact1.optional().property (); - RDFVariable middlename = RDFContact1.optional().property (); - RDFVariable firstname = RDFContact1.optional().property (); - RDFVariable nickname = RDFContact1.optional().property (); - quer.addColumn("contactId", RDFContact1.property ()); - quer.addColumn("metacontact",RDFContact1.optional().property ()); - quer.addColumn("prefix", prefix); - quer.addColumn("firstname", firstname); - quer.addColumn("middlename", middlename); - quer.addColumn("secondname", lastname); - quer.addColumn("photo", RDFContact1.optional().property ()); - quer.addColumn("nickname", nickname); - - // for now adding columns to main query. later separate queries - if (r->definitionRestrictions().contains(QContactAddress::DefinitionName)) { - RDFVariable address = RDFContact.optional().property< nco::hasPostalAddress> (); - quer.addColumn("street",address.optional().property ()); - quer.addColumn("city", address.optional().property ()); - quer.addColumn("country", address.optional().property ()); - quer.addColumn("pcode", address.optional().property ()); - quer.addColumn("reg", address.optional().property ()); - } - if (r->definitionRestrictions().contains(QContactUrl::DefinitionName)) { - quer.addColumn("homepage", RDFContact.optional().property ()); - quer.addColumn("url", RDFContact.optional().property ()); - quer.addColumn("work_homepage", RDFContact.optional().property ().property ()); - quer.addColumn("work_url", RDFContact.optional().property ().property ()); - } - if (r->definitionRestrictions().contains(QContactBirthday::DefinitionName)) { - quer.addColumn("birth",RDFContact.optional().property ()); - } - if (r->definitionRestrictions().contains(QContactGender::DefinitionName)) { - quer.addColumn("gender", RDFContact.optional().property ()); - } - if (r->definitionRestrictions().contains(QContactOrganization::DefinitionName)) { - RDFVariable rdforg = RDFContact.optional().property ().optional().property (); - quer.addColumn("org", rdforg.optional().property ()); - quer.addColumn("logo", rdforg.optional().property ()); - } - - - // QContactAnniversary - no such thing in tracker - // QContactGeolocation - nco:hasLocation is not having class defined in nco yet. no properties. maybe rdfs:Resource:label - - // supporting sorting only here, difficult and no requirements in UI for sorting in multivalue details (phones, emails) - foreach(QContactSortOrder sort, r->sorting()) { - if (sort.detailDefinitionName() == QContactName::DefinitionName) { - if (sort.detailFieldName() == QContactName::FieldFirst) - quer.orderBy(firstname); - else if (sort.detailFieldName() == QContactName::FieldLast) - quer.orderBy(lastname); - else - qWarning() << "QTrackerContactFetchRequest" << "sorting by" - << sort.detailDefinitionName() - << sort.detailFieldName() << "is not yet supported"; - } else { - qWarning() << "QTrackerContactFetchRequest" << "sorting by" - << sort.detailDefinitionName() - << "is not yet supported"; - } - } - query = ::tracker()->modelQuery(quer); - // need to store LiveNodes in order to receive notification from model - QObject::connect(query.model(), SIGNAL(modelUpdated()), this, SLOT(contactsReady())); -} - -bool detailExisting(const QString &definitionName, const QContact &contact, const QContactDetail &adetail) -{ - QList details = contact.details(definitionName); - foreach(const QContactDetail &detail, details) { - if (detail == adetail) { - return true; - } - } - return false; -} - -void QTrackerContactFetchRequest::contactsReady() -{ - // 1) process IMContacts: queryIMAccountNodes - // 2) process contacts: query and during it handle metacontacts - // 3) process phonenumbers: queryPhoneNumbersNodes - // 4) process emails: queryPhoneNumbersNodes - // 5) update display label details - - QContactFetchRequest* request = qobject_cast (req); - Q_ASSERT( request ); // signal is supposed to be used only for contact fetch - // fastest way to get this working. refactor - if (!request) { - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); - return; - } - - /* - * 1) process IMContacts: queryIMAccountNodes - * Processing IMContacts need to be called before processing PersonContacts - \sa result is filled with IMContacts first, - * then metacontacts are processed while processing addressbook contacts. This is because QContactOnlineAccount details - * need to be constructed before linking contacts with same metacontact. - */ - if (request->definitionRestrictions().contains(QContactOnlineAccount::DefinitionName)) { - processQueryIMContacts(queryIMAccountNodes); - } - - // 2) process contacts: query and during it handle metacontacts - for(int i = 0; i < query->rowCount(); i++) { - QContact contact; // one we will be filling with this row - - bool ok; - QContactLocalId contactid = query->index(i, 0).data().toUInt(&ok); - if (!ok) { - qWarning()<< Q_FUNC_INFO <<"Invalid contact ID: "<< query->index(i, 0).data().toString(); - continue; - } - QContactId id; id.setLocalId(contactid); - - QContactManagerEngine *engine = qobject_cast(parent()); - Q_ASSERT(engine); - if(engine) - id.setManagerUri(engine->managerUri()); - - contact.setId(id); - QString metacontact = query->index(i, 1).data().toString(); - - // using redundancy to get less queries to tracker - it is possible - // that rows are repeating: information for one contact is in several rows - // that's why we update existing contact and append details to it if they - // are not already in QContact - QHash::const_iterator it = id2ContactLookup.find(contactid); - // - int index = result.size(); // where to place new contact - if (id2ContactLookup.end() != it) { - if (it.value() < result.size() && it.value() >= 0) { - index = it.value(); - contact = result[index]; - } - Q_ASSERT(query->index(i, 0).data().toUInt() == contact.localId()); - } - - readFromQueryRowToContact(contact ,i); - addContactToResultSet(contact, metacontact); - } - - // 3) process phonenumbers: queryPhoneNumbersNodes - if (request->definitionRestrictions().contains(QContactPhoneNumber::DefinitionName)) { - Q_ASSERT(queryPhoneNumbersNodes.size() == 2); - for( int cnt = 0; cnt < queryPhoneNumbersNodes.size(); cnt++) { - processQueryPhoneNumbers(queryPhoneNumbersNodes[cnt], cnt); - } - } - - // 4) process emails: queryPhoneNumbersNodes - if (request->definitionRestrictions().contains(QContactEmailAddress::DefinitionName)) { - qDebug() << "processQueryEmailAddresses"; - Q_ASSERT(queryEmailAddressNodes.size() == 2); - for (int cnt = 0; cnt < queryEmailAddressNodes.size(); cnt++) { - processQueryEmailAddresses(queryEmailAddressNodes[cnt], cnt); - } - } - - // 5) update display labels - QContactManagerEngine *engine = dynamic_cast(parent()); - Q_ASSERT(engine); - for(int i = 0; i < result.count(); i++) - { - QContact &cont(result[i]); - QContactDisplayLabel dl = cont.detail(QContactDisplayLabel::DefinitionName); - if (dl.label().isEmpty()) { - QContactManager::Error synthError; - result[i] = engine->setContactDisplayLabel(engine->synthesizedDisplayLabel(cont, synthError), cont); - } - } - emitFinished(); -} - -void QTrackerContactFetchRequest::emitFinished(QContactManager::Error error) -{ - QContactFetchRequest *fetchRequest = qobject_cast(req); - Q_ASSERT(fetchRequest); - if(fetchRequest) { - QContactManagerEngine::updateRequestState(fetchRequest, QContactAbstractRequest::FinishedState); - QContactManagerEngine::updateContactFetchRequest(fetchRequest, result, error); - } -} - -/*! - * Appending contact to \sa result, id2ContactLookup, of the request - during the operation it is resolved if to - * link (merge) contact with existing one in result, to add it as new or to replace existing in result. - */ -void QTrackerContactFetchRequest::addContactToResultSet(QContact &contact, const QString &metacontact) -{ - QHash::const_iterator it = id2ContactLookup.find(contact.localId()); - int index = -1; // where to place new contact, -1 - not defined - if (id2ContactLookup.end() != it) { - if (it.value() < result.size() && it.value() >= 0) - index = it.value(); - } - QContact *contact_ = &contact; - if( -1 == index && !metacontact.isEmpty() ) { - if( metacontactLookup.contains(metacontact) ) - { - // we'll link them and update contact on existing position - index = metacontactLookup[metacontact]; - contact_ = &(linkContactsWithSameMetaContact(contact, result[index])); - - } - } - - if ( -1 == index ) { - result.append(*contact_); - id2ContactLookup[contact_->localId()] = result.size()-1; - if( !metacontact.isEmpty()) - { - metacontactLookup[metacontact] = result.size()-1; - } - } else { - result[index] = *contact_; - id2ContactLookup[contact_->localId()] = index; - } -} - -/*! - * brief Processes one query record-row during read from tracker to QContact. - * Order or columns in query is fixed to order defined in \sa run() - */ -void QTrackerContactFetchRequest::readFromQueryRowToContact(QContact &contact, int i) -{ - int column = 2; // 0 - for QContactLocalId, 1 for metacontact - QContactName name = contact.detail(QContactName::DefinitionName); - name.setPrefix(query->index(i, column++).data().toString()); - name.setFirstName(query->index(i, column++).data().toString()); - name.setMiddleName(query->index(i, column++).data().toString()); - name.setLastName(query->index(i, column++).data().toString()); - contact.saveDetail(&name); - - QContactAvatar avatar = contact.detail(QContactAvatar::DefinitionName); - avatar.setAvatar(query->index(i, column++).data().toString()); - if (!avatar.avatar().isEmpty()) { - contact.saveDetail(&avatar); - } - QContactNickname nick = contact.detail(QContactNickname::DefinitionName); - nick.setNickname(query->index(i, column++).data().toString()); - contact.saveDetail(&nick); - - QContactFetchRequest* request = qobject_cast (req); - Q_ASSERT( request ); // this is handled already in caller - if( !request ) - return; - // TODO extract generic from bellow ... mapping field names - if (request->definitionRestrictions().contains(QContactAddress::DefinitionName)) { - QString street = query->index(i, column++).data().toString(); - QString loc = query->index(i, column++).data().toString(); - QString country = query->index(i, column++).data().toString(); - QString pcode = query->index(i, column++).data().toString(); - QString region = query->index(i, column++).data().toString(); - if (!(country.isEmpty() && pcode.isEmpty() && region.isEmpty() - && street.isEmpty() && loc.isEmpty())) { - // for multivalue fields is a bit tricky - try to find existing an - QContactAddress a; - a.setStreet(street); - a.setLocality(loc); - a.setCountry(country); - a.setPostcode(pcode); - a.setRegion(region); - if (!detailExisting(QContactAddress::DefinitionName, contact, a)) { - contact.saveDetail(&a); - } - } - } - if (request->definitionRestrictions().contains(QContactUrl::DefinitionName)) { - // check query preparation (at the moment in constructor TODO refactor) - // home website - // if it is websiteUrl then interpret as homepage, if it is nco:url then fovourite url - QContactUrl url; - url.setSubType(QContactUrl::SubTypeHomePage); - url.setContexts(QContactUrl::ContextHome); - url.setUrl(query->index(i, column++).data().toString()); - if (url.url().isEmpty()) { - // website url is at the same time url, so we handle duplication here - // if only url then set it as favourite - url.setUrl(query->index(i, column++).data().toString()); - url.setSubType(QContactUrl::SubTypeFavourite); - } - - if (!url.url().isEmpty() && !detailExisting(QContactUrl::DefinitionName, contact, url)) { - contact.saveDetail(&url); - } - // office website - QContactUrl workurl; - workurl.setContexts(QContactUrl::ContextWork); - workurl.setSubType(QContactUrl::SubTypeHomePage); - workurl.setUrl(query->index(i, column++).data().toString()); - if (workurl.url().isEmpty()) { - workurl.setUrl(query->index(i, column++).data().toString()); - workurl.setSubType(QContactUrl::SubTypeFavourite); - } - if (!workurl.url().isEmpty() && !detailExisting(QContactUrl::DefinitionName, contact, workurl)) { - contact.saveDetail(&workurl); - } - } - if (request->definitionRestrictions().contains(QContactBirthday::DefinitionName)) { - QVariant var = query->index(i, column++).data(); - if (!var.toString().isEmpty() /* enable reading wrong && var.toDate().isValid()*/) { - QContactBirthday birth = contact.detail(QContactBirthday::DefinitionName); - birth.setDate(var.toDate()); - contact.saveDetail(&birth); - } - } - if (request->definitionRestrictions().contains(QContactGender::DefinitionName)) { - QString var = query->index(i, column++).data().toString(); - if (!var.isEmpty()) { - QContactGender g = contact.detail(QContactGender::DefinitionName); - g.setGender(var); - contact.saveDetail(&g); - } - } - if (request->definitionRestrictions().contains(QContactOrganization::DefinitionName)) { - QString org = query->index(i, column++).data().toString(); - QString logo = query->index(i, column++).data().toString(); - if (!( org.isEmpty() && logo.isEmpty())) { - QContactOrganization o; - o.setName(org); - o.setLogo(logo); - if (!detailExisting(QContactOrganization::DefinitionName, contact, o)) { - contact.saveDetail(&o); - } - } - } - -} - -/*! - * When 2 contacts have the same metacontact, decide which of these 2 contacts needs - * to be returned as addressbook contact - the other one is void from returned set - * Info about linking stored in returned contact - reference to either first or second - */ -QContact &QTrackerContactFetchRequest::linkContactsWithSameMetaContact(QContact &first, QContact &second) -{ - bool returnFirst = true; - // 1) resolve which one to return as metacontact(mastercontact) contact - // 2) insert link the one not returned - // now we only merge IMContacts to addressbook contacts - if that change, changing this too - // check if there is existence of previous merging information or online account info - QList details = first.details(QContactOnlineAccount::DefinitionName); - - // 1) resolve which one is to be returned and which one linked from it - bool allreadyContainsLinkingInfo(false); - foreach (QContactDetail detail, details) - { - if( !detail.value(FieldQContactLocalId).isEmpty()) - { - allreadyContainsLinkingInfo = true; - break; - } - else if( !detail.value(FieldAccountPath).isEmpty() || !detail.value(QContactOnlineAccount::FieldPresence).isEmpty() ) - { - returnFirst = false; - break; - } - } - QContact *returned, *linked; - if( returnFirst ) - { - returned = &first; - linked = &second; - } - else - { - returned = &second; - linked = &first; - } - - // 2) now insert linking information to returned contact - details = linked->details(QContactOnlineAccount::DefinitionName); - - foreach (QContactDetail detail, details) - { - detail.setValue(FieldQContactLocalId, linked->localId()); - returned->saveDetail(&detail); - } - return *returned; -} - - -void QTrackerContactFetchRequest::phoneNumbersReady() -{ - queryPhoneNumbersNodesPending--; -} - -void QTrackerContactFetchRequest::emailAddressesReady() -{ - queryEmailAddressNodesPending--; -} - -void QTrackerContactFetchRequest::iMAcountsReady() -{ - queryIMAccountNodesPending--; - // now we know that the query is ready before get all contacts, check how it works with transactions -} - -/*! - * An internal helper method for converting nco:PhoneNumber subtype to - * QContactPhoneNumber:: subtype attribute - */ -void QTrackerContactFetchRequest::processQueryPhoneNumbers(SopranoLive::LiveNodes queryPhoneNumbers, - bool affiliationNumbers ) -{ - Q_ASSERT_X( queryPhoneNumbersNodesPending==0, Q_FUNC_INFO, "Phonenumbers query was supposed to be ready and it is not." ); - for (int i = 0; i < queryPhoneNumbers->rowCount(); i++) { - // ignore if next one is the same - asked iridian about making query to ignore supertypes - // TODO remove after his answer - if ( i-1 >= 0 - && (queryPhoneNumbers->index(i, 0).data().toString() - == queryPhoneNumbers->index(i-1, 0).data().toString()) - && (queryPhoneNumbers->index(i, 1).data().toString() - == queryPhoneNumbers->index(i-1, 1).data().toString())) { - // this is for ignoring duplicates. bad approach, asked iridian about - // how to eliminate super types in query results - continue; - } - - QString subtype = rdfPhoneType2QContactSubtype(queryPhoneNumbers->index(i, 2).data().toString()); - QContactLocalId contactid = queryPhoneNumbers->index(i, 0).data().toUInt(); - - QHash::const_iterator it = id2ContactLookup.find(contactid); - if (it != id2ContactLookup.end() && it.key() == contactid && it.value() >= 0 && it.value() < result.size()) - { - QContactPhoneNumber number; - if( affiliationNumbers ) - number.setContexts(QContactPhoneNumber::ContextWork); - else - number.setContexts(QContactPhoneNumber::ContextHome); - number.setNumber(queryPhoneNumbers->index(i, 1).data().toString()); - number.setSubTypes(subtype); - result[it.value()].saveDetail(&number); - } - else - Q_ASSERT(false); - } -} - -void QTrackerContactFetchRequest::processQueryEmailAddresses( SopranoLive::LiveNodes queryEmailAddresses, - bool affiliationEmails) -{ - Q_ASSERT_X(queryEmailAddressNodesPending == 0, Q_FUNC_INFO, "Email query was supposed to be ready and it is not." ); - for (int i = 0; i < queryEmailAddresses->rowCount(); i++) { - // ignore if next one is the same - asked iridian about making query to ignore supertypes - // TODO remove after his answer - if ( i-1 >= 0 - && (queryEmailAddresses->index(i, 0).data().toString() - == queryEmailAddresses->index(i-1, 0).data().toString()) - && (queryEmailAddresses->index(i, 1).data().toString() - == queryEmailAddresses->index(i-1, 1).data().toString())) { - // this is for ignoring duplicates. bad approach, asked iridian - // about how to eliminate super types in query results - continue; - } - - //QString subtype = rdfPhoneType2QContactSubtype(queryEmailAddresses->index(i, 2).data().toString()); - QContactLocalId contactid = queryEmailAddresses->index(i, 0).data().toUInt(); - - QHash::const_iterator it = id2ContactLookup.find(contactid); - if (it != id2ContactLookup.end() && it.key() == contactid && it.value() >= 0 && it.value() < result.size()) - { - QContactEmailAddress email; - if (affiliationEmails) - email.setContexts(QContactEmailAddress::ContextWork); - else - email.setContexts(QContactEmailAddress::ContextHome); - email.setEmailAddress(queryEmailAddresses->index(i, 1).data().toString()); - //email.setSubTypes(subtype); - result[it.value()].saveDetail(&email); - } - else - Q_ASSERT(false); - } -} - - -/*! - * \brief Processes one query record-row during read from tracker to QContactOnlineAccount. - * Order or columns in query is fixed to order defined in \sa prepareIMContactsQuery() - */ -QContactOnlineAccount QTrackerContactFetchRequest::getOnlineAccountFromIMQuery(LiveNodes imAccountQuery, int queryRow) -{ - QContactOnlineAccount account; - QContactFetchRequest* r = qobject_cast (req); - if(isMeContact(r->filter())) { - account = getIMAccountFromIMQuery(imAccountQuery, queryRow); - } else { - account = getIMContactFromIMQuery(imAccountQuery, queryRow); - } - return account; -} - -/*! - * \brief processes IMQuery results. \sa prepareIMContactsQuery, contactsReady - * Note: in contactsReady(), this method is called before processing PersonContacts - \sa result is filled with IMContacts first, - * then metacontacts are processed while processing addressbook contacts - this is because QContactOnlineAccount details - * need to be constructed before linking contacts with same metacontact. - */ -void QTrackerContactFetchRequest::processQueryIMContacts(SopranoLive::LiveNodes queryIMContacts) -{ - Q_ASSERT_X(queryIMAccountNodesPending == 0, Q_FUNC_INFO, "IMAccount query was supposed to be ready and it is not." ); - for (int i = 0; i < queryIMContacts->rowCount(); i++) { - QContactOnlineAccount account = getOnlineAccountFromIMQuery(queryIMContacts, i); - QContactLocalId contactid = queryIMContacts->index(i, IMContact::ContactId).data().toUInt(); - - QHash::const_iterator it = id2ContactLookup.find(contactid); - if (it != id2ContactLookup.end() && it.key() == contactid && it.value() >= 0 && it.value() < result.size()) - { - result[it.value()].saveDetail(&account); - } - else - { - QContact contact; - QContactId id; id.setLocalId(contactid); - - QContactManagerEngine *engine = qobject_cast(parent()); - Q_ASSERT(engine); - if(engine) - id.setManagerUri(engine->managerUri()); - - contact.setId(id); - contact.saveDetail(&account); - QString metacontact = queryIMContacts->index(i, IMContact::MetaContact).data().toString(); // \sa prepareIMContactsQuery() - addContactToResultSet(contact, metacontact); - } - } -} - -bool QTrackerContactFetchRequest::isMeContact(const QContactFilter &filter) { - if (filter.type() == QContactFilter::LocalIdFilter) { - QContactManagerEngine *engine = dynamic_cast(parent()); - if(!engine) { - qWarning() << __PRETTY_FUNCTION__ << ": Could not get QContactManager. Cannot retrieve IMAccounts for me-contact."; - return false; - } - - QContactManager::Error e; - QContactLocalId selfId = engine->selfContactId(e); - QContactLocalIdFilter filt = filter; - if (filt.ids().contains(selfId)) { - return true; - } - } - return false; -} - - -QContactOnlineAccount QTrackerContactFetchRequest::getIMAccountFromIMQuery(LiveNodes imAccountQuery, int queryRow) { - QContactOnlineAccount account; - - // Custom value in QContactrOnlineAccount detail to store the account path to - to determine in My Profile to ignore the ring-account. - account.setValue("Account", imAccountQuery->index(queryRow, IMAccount::ContactIMId).data().toString()); // IMId - // the same is supposed to be in FieldAccountUri field - account.setValue(QContactOnlineAccount::FieldAccountUri, imAccountQuery->index(queryRow, IMAccount::ContactIMId).data().toString()); // IMId - - account.setNickname(imAccountQuery->index(queryRow, IMAccount::ContactNickname).data().toString()); // nick - - QString presence = imAccountQuery->index(queryRow, IMAccount::ContactPresence).data().toString(); // imPresence iri - presence = presence.right(presence.length() - presence.lastIndexOf("presence-status")); - account.setPresence(presenceConversion[presence]); - qDebug() << "Presence converted: " << account.presence() << "raw presence: " << presence; - - account.setStatusMessage(imAccountQuery->index(queryRow, IMAccount::ContactMessage).data().toString()); // imStatusMessage - - return account; -} - -QContactOnlineAccount QTrackerContactFetchRequest::getIMContactFromIMQuery(LiveNodes imContactQuery, int queryRow) { - QContactOnlineAccount account; - - account.setValue("Account", imContactQuery->index(queryRow, IMContact::ContactIMId).data().toString()); // IMId - if (!imContactQuery->index(queryRow, IMContact::AccountType).data().toString().isEmpty()) { - QString accountPathURI = imContactQuery->index(queryRow, IMContact::AccountType).data().toString(); - QStringList decoded = accountPathURI.split(":"); - // taking out the prefix "telepathy:" - qDebug() << __PRETTY_FUNCTION__ << decoded.value(1); - account.setValue(FieldAccountPath, decoded.value(1)); - } - account.setNickname(imContactQuery->index(queryRow, IMContact::ContactNickname).data().toString()); // nick - - QString cap = imContactQuery->index(queryRow, IMContact::Capabilities).data().toString(); - cap = cap.right(cap.length() - cap.lastIndexOf("im-capability")); - account.setValue(QContactOnlineAccount::FieldCapabilities, cap); - - QString presence = imContactQuery->index(queryRow, IMContact::ContactPresence).data().toString(); // imPresence iri - presence = presence.right(presence.length() - presence.lastIndexOf("presence-status")); - account.setPresence(presenceConversion[presence]); - - account.setStatusMessage(imContactQuery->index(queryRow, IMContact::ContactMessage).data().toString()); // imStatusMessage - account.setServiceProvider(imContactQuery->index(queryRow, IMContact::ServiceProvider).data().toString()); // service name - - return account; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactasyncrequest.h --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactasyncrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactasyncrequest.h Mon May 03 13:18:40 2010 +0300 @@ -42,20 +42,8 @@ #ifndef QTRACKERCONTACTASYNCREQUEST_H_ #define QTRACKERCONTACTASYNCREQUEST_H_ -#include - -#include -#include - #include -#include -#include -#include - -QTM_BEGIN_NAMESPACE -class QContactAbstractRequest; -class QContactManagerEngine; -QTM_END_NAMESPACE +#include QTM_USE_NAMESPACE @@ -73,88 +61,4 @@ QContactAbstractRequest* req; }; -namespace IMAccount { - enum IMResultColumn { - URI, - ContactIMId, - ContactPresence, - ContactMessage, - ContactNickname, - ContactDisplayname - }; -}; - -namespace IMContact { - enum IMResultColumn { - URI, - ContactId, - ContactIMId, - ContactPresence, - ContactMessage, - ContactNickname, - AccountType, - Capabilities, - MetaContact, - ServiceProvider - }; -}; - -/*! - * Running QContactFetchRequest. Doing the async tracker query and when data is ready setting the - * finished status of request. \sa QTrackerContactFetchRequest - */ -class QTrackerContactFetchRequest : public QObject, public QTrackerContactAsyncRequest -{ - Q_OBJECT -// Q_ENUMS(IMResultColumn) -public: - QTrackerContactFetchRequest(QContactAbstractRequest* req, QContactManagerEngine* parent); -public slots: - void contactsReady(); - void phoneNumbersReady(); - void emailAddressesReady(); - void iMAcountsReady(); - -protected slots: - virtual void run(); - virtual void emitFinished(QContactManager::Error error = QContactManager::NoError); - -protected: - QContactManager::Error applyFilterToContact(SopranoLive::RDFVariable &variable, const QContactFilter &filter); - QContactManager::Error applyDetailRangeFilterToContact(SopranoLive::RDFVariable &variable, const QContactFilter &filter); - - // contacts query - SopranoLive::LiveNodes query; - - QList queryPhoneNumbersNodes; // 2 - one for affiliations and another one for PersonContact - int queryPhoneNumbersNodesPending; - QList queryEmailAddressNodes; // 2 - one for affiliations and another one for PersonContact - int queryEmailAddressNodesPending; - SopranoLive::LiveNodes queryIMAccountNodes; - int queryIMAccountNodesPending; - - // result of the request - multiple queries updating it - QList result; - -private: - bool isMeContact(const QContactFilter &filter); - // fills received phone number from tracker to list of contacts to QContactPhoneMumber details - // all the following methods update \sa result - void processQueryPhoneNumbers(SopranoLive::LiveNodes queryPhoneNumbers, bool affiliationNumbers); - void processQueryEmailAddresses(SopranoLive::LiveNodes queryEmailAddresses, bool affiliationEmails); - void processQueryIMContacts(SopranoLive::LiveNodes queryIMContacts); - void validateRequest(); - void readFromQueryRowToContact(QContact &contact, int queryRow); - QContact &linkContactsWithSameMetaContact(QContact &first, QContact &second); - void addContactToResultSet(QContact &contact, const QString &metacontact); - QContactOnlineAccount getOnlineAccountFromIMQuery(SopranoLive::LiveNodes imAccountQuery, int queryRow); - QContactOnlineAccount getIMAccountFromIMQuery(SopranoLive::LiveNodes imAccountQuery, int queryRow) ; - QContactOnlineAccount getIMContactFromIMQuery(SopranoLive::LiveNodes imAccountQuery, int queryRow); - - // access existing contacts in result list, contactid to index in \sa result lookup - QHash id2ContactLookup; - // metacontact to index in \sa result lookup - index of metacontact contact: only 1 contact returned when multiple have the same metacontact - QHash metacontactLookup; -}; - #endif /* QTRACKERCONTACTASYNCREQUEST_H_ */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactfetchrequest.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactfetchrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1090 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qtrackercontactfetchrequest.h" + +#include + +#include +#include + +using namespace SopranoLive; + +class ConversionLookup: public QHash +{ +public: + ConversionLookup& operator<<(const QPair &conversion) + { + this->insert(conversion.first, conversion.second); + return *this; + } +}; + +const QString FieldQContactLocalId("QContactLocalId"); +const QString FieldAccountPath("AccountPath"); +const ConversionLookup presenceConversion(ConversionLookup() + <("presence-status-offline", QContactPresence::PresenceOffline) + <("presence-status-available", QContactPresence::PresenceAvailable) + <("presence-status-away", QContactPresence::PresenceAway) + <("presence-status-extended-away", QContactPresence::PresenceExtendedAway) + <("presence-status-busy", QContactPresence::PresenceBusy) + <("presence-status-unknown", QContactPresence::PresenceUnknown) + <("presence-status-hidden", QContactPresence::PresenceHidden) + <("presence-status-dnd", QContactPresence::PresenceBusy) +); + +void matchPhoneNumber(RDFVariable &variable, QContactDetailFilter &filter) +{ + // This here is the first implementation of filtering that takes into account also affiliations. + // needs to be applied for other filters too - TODO + RDFVariable officeContact; + RDFVariable homeContact; + + RDFVariable rdfPhoneNumber; + rdfPhoneNumber = homeContact.property().property(); + + RDFVariable rdfOfficePhoneNumber; + rdfOfficePhoneNumber = officeContact.property().property().property(); + + QString filterValue = filter.value().toString(); + if (filter.matchFlags() == Qt::MatchEndsWith) + { + QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Nokia","Trackerplugin"); + int matchDigitCount = settings.value("phoneNumberMatchDigitCount", "7").toInt(); + filterValue = filterValue.right(matchDigitCount); + qDebug() << "match with:" << matchDigitCount << ":" << filterValue; + rdfPhoneNumber.hasSuffix(filterValue); + rdfOfficePhoneNumber.hasSuffix(filterValue); + } + else + { // default to exact match + rdfOfficePhoneNumber.matchesRegexp(filterValue); + rdfPhoneNumber.matchesRegexp(filterValue); + } + // This is the key part, including both contacts and affiliations + variable.isMemberOf(RDFVariableList()< hasIMContact -> IMAddress - the same IMAddress as contact \a variable + * has as PersonContact -> hasIMAddress -> IMAddress + */ +void matchOnlineAccount(RDFVariable &variable, QContactDetailFilter &filter) +{ + if ((filter.matchFlags() & QContactFilter::MatchExactly) == QContactFilter::MatchExactly) + { + // \a variable PersonContact -> hasIMAddress -> imaddress + RDFVariable imaddress = variable.property(); + if (filter.detailFieldName() == "Account" || filter.detailFieldName() == QContactOnlineAccount::FieldAccountUri) + { + imaddress.property ().isMemberOf(QStringList() << filter.value().toString()); + } + else if (filter.detailFieldName() == FieldAccountPath) + { + // need to find IMAccount -> hasIMContact -> imaddress + RDFVariable imaccount; + imaccount.property() = imaddress; + imaccount.equal(QUrl(QString("telepathy:")+filter.value().toString())); + } + else if (filter.detailFieldName() == QContactOnlineAccount::FieldServiceProvider) + { + // need to find IMAccount -> hasIMContact -> imaddress + RDFVariable imaccount; + imaccount.property() = imaddress; + imaccount.property ().isMemberOf(QStringList() << filter.value().toString()); + } + else + qWarning() << "QTrackerContactFetchRequest," << __FUNCTION__ + << "Unsupported detail filter by QContactOnlineAccount."; + } + else + { + qWarning() << "QTrackerContactFetchRequest," << __FUNCTION__ + << "Unsupported match flag in detail filter by QContactOnlineAccount. Use QContactFilter::MatchExactly"; + } +} + +void matchName(RDFVariable &variable, QContactDetailFilter &filter) +{ + if (filter.detailDefinitionName() != QContactName::DefinitionName) { + qWarning() << "QTrackerContactFetchRequest," << __FUNCTION__ + << "Unsupported definition name in detail filter, should be QContactName::DefinitionName"; + return; + } + QString filterValue = filter.value().toString(); + QString field = filter.detailFieldName(); + if ((filter.matchFlags() & QContactFilter::MatchExactly) == QContactFilter::MatchExactly) { + if (field == QContactName::FieldFirstName) { + variable.property() = LiteralValue(filterValue); + } else if (field == QContactName::FieldLastName) { + variable.property() = LiteralValue(filterValue); + } else if (field == QContactName::FieldMiddleName) { + variable.property() = LiteralValue(filterValue); + } else if (field == QContactName::FieldPrefix) { + variable.property() = LiteralValue(filterValue); + } else if (field == QContactName::FieldSuffix) { + variable.property() = LiteralValue(filterValue); + } + } else { + qWarning() << "QTrackerContactFetchRequest," << __FUNCTION__ + << "Unsupported match flag in detail filter by QContactName"; + } +} + +/* + * RDFVariable describes all contacts in tracker before filter is applied. + * This method translates QContactFilter to tracker rdf filter. When query is made + * after this method, it would return only contacts that fit the filter. + */ +QContactManager::Error QTrackerContactFetchRequest::applyFilterToContact(RDFVariable &variable, + const QContactFilter &filter) +{ + + QContactFetchRequest* r = qobject_cast (req); + + if (!r) { + return QContactManager::BadArgumentError; + } + + if (filter.type() == QContactFilter::LocalIdFilter) { + QContactLocalIdFilter filt = filter; + if (!filt.ids().isEmpty()) { + if (!isMeContact(r->filter())) { + variable.property().isMemberOf(filt.ids()); + } else { + variable == nco::default_contact_me::iri(); + } + } else { + qWarning() << Q_FUNC_INFO << "QContactLocalIdFilter idlist is empty"; + return QContactManager::BadArgumentError; + } + } else if (filter.type() == QContactFilter::ContactDetailFilter) { + // this one is tricky as we need to match in contacts or in affiliations + + QContactDetailFilter filt = filter; + if ( QContactPhoneNumber::DefinitionName == filt.detailDefinitionName() + && QContactPhoneNumber::FieldNumber == filt.detailFieldName()) { + matchPhoneNumber(variable, filt); + } + else if(QContactOnlineAccount::DefinitionName == filt.detailDefinitionName()) + { + matchOnlineAccount(variable, filt); + } + else if (QContactName::DefinitionName == filt.detailDefinitionName()) { + matchName(variable, filt); + } + else if (filt.matchFlags() == Qt::MatchExactly) { + if (QContactEmailAddress::DefinitionName == filt.detailDefinitionName() + && QContactEmailAddress::FieldEmailAddress == filt.detailFieldName()) { + RDFVariable rdfEmailAddress; + rdfEmailAddress = variable.property(); + rdfEmailAddress.property() = LiteralValue(filt.value().toString()); + } else { + qWarning() << __PRETTY_FUNCTION__ << "QContactTrackerEngine: Unsupported QContactFilter::ContactDetail" + << filt.detailDefinitionName(); + return QContactManager::NotSupportedError; + } + } + } + else if (filter.type() == QContactFilter::ContactDetailRangeFilter) + { + return applyDetailRangeFilterToContact(variable, filter); + } + else if (filter.type() == QContactFilter::ChangeLogFilter) { + const QContactChangeLogFilter& clFilter = static_cast(filter); + // do not return facebook and telepathy contacts here + // it is a temp implementation for the what to offer to synchronization constraint + variable.property().property() = LiteralValue("addressbook"); + + if (clFilter.eventType() == QContactChangeLogFilter::EventRemoved) { // Removed since + qWarning() << "QContactTrackerEngine: Unsupported QContactChangeLogFilter::Removed (contacts removed since)"; + return QContactManager::NotSupportedError; + } else if (clFilter.eventType() == QContactChangeLogFilter::EventAdded) { // Added since + variable.property() >= LiteralValue(clFilter.since().toString(Qt::ISODate)); + } else if (clFilter.eventType() == QContactChangeLogFilter::EventChanged) { // Changed since + variable.property() >= LiteralValue(clFilter.since().toString(Qt::ISODate)); + } + } else if (filter.type() == QContactFilter::UnionFilter) { + const QContactUnionFilter unionFilter(filter); + foreach (const QContactFilter& f, unionFilter.filters()) { + QContactManager::Error error = applyFilterToContact(variable, f); + if (QContactManager::NoError != error) + return error; + } + } + else if(filter.type() == QContactFilter::InvalidFilter || filter.type() == QContactFilter::DefaultFilter) + return QContactManager::NoError; + else + return QContactManager::NotSupportedError; + return QContactManager::NoError; +} + +//!\sa applyFilterToContact +QContactManager::Error QTrackerContactFetchRequest::applyDetailRangeFilterToContact(RDFVariable &variable, const QContactFilter &filter) +{ + Q_ASSERT(filter.type() == QContactFilter::ContactDetailRangeFilter); + if (filter.type() == QContactFilter::ContactDetailRangeFilter) { + QContactDetailRangeFilter filt = filter; + // birthday range + if (QContactBirthday::DefinitionName == filt.detailDefinitionName() + && QContactBirthday::FieldBirthday == filt.detailFieldName()) + { + RDFVariable time = variable.property(); + if (filt.rangeFlags() & QContactDetailRangeFilter::IncludeUpper) + time <= LiteralValue(filt.maxValue().toDateTime().toString(Qt::ISODate)); + else + time < LiteralValue(filt.maxValue().toDateTime().toString(Qt::ISODate)); + if (filt.rangeFlags() & QContactDetailRangeFilter::ExcludeLower) + time > LiteralValue(filt.minValue().toDateTime().toString(Qt::ISODate)); + else + time >= LiteralValue(filt.minValue().toDateTime().toString(Qt::ISODate)); + return QContactManager::NoError; + } + } + qWarning() << __PRETTY_FUNCTION__ << "Unsupported detail range filter"; + return QContactManager::NotSupportedError; +} + + +/* + * To understand why all the following methods have for affiliation param, check nco ontology: + * every contact has all these properties and also linked to affiliations (also contacts - nco:Role) + * that again have the same properties. So it was needed to make the same query 2-ce - once for contact + * and once for affiliations + */ +RDFSelect preparePhoneNumbersQuery(RDFVariable &rdfcontact1, bool forAffiliations) +{ + RDFVariable phone; + if (!forAffiliations) + phone = rdfcontact1.property(); + else + phone = rdfcontact1.property().property(); + RDFVariable type = phone.type(); + type.property().notEqual(nco::ContactMedium::iri()); // sparql cannot handle exact type but returns all super types as junk rows + type.property().notEqual(rdfs::Resource::iri()); // sparql cannot handle exact type but returns all super types as junk rows + // therefore we eliminate those rows that are not of interest + // columns + RDFSelect queryidsnumbers; + queryidsnumbers.addColumn("contactId", rdfcontact1.property ()); + queryidsnumbers.addColumn("phoneno", phone.property ()); + queryidsnumbers.addColumn("type", type); + queryidsnumbers.distinct(); + return queryidsnumbers; +} + +RDFSelect prepareEmailAddressesQuery(RDFVariable &rdfcontact1, bool forAffiliations) +{ + RDFVariable email; + if (!forAffiliations) + email = rdfcontact1.property(); + else + email = rdfcontact1.property().property(); + const RDFVariable& type = email.type(); + type.property().notEqual(nco::Resource::iri()); // sparql cannot handle exact type but returns all super types as junk rows + // therefore we eliminate those rows that are not of interest + // columns + RDFSelect queryidsnumbers; + queryidsnumbers.addColumn("contactId", rdfcontact1.property ()); + queryidsnumbers.addColumn("emailaddress", email.property ()); + rdfcontact1.property ().isOfType( nco::EmailAddress::iri(), true); + queryidsnumbers.addColumn("type", type); + queryidsnumbers.distinct(); + return queryidsnumbers; +} + + +/*! + * \a contact here describes rdf graph - when making query, depending on filters applied + * to \a contact, query results to any set of contacts + */ +RDFSelect prepareIMAddressesQuery(RDFVariable &contact) +{ + RDFSelect queryidsimacccounts; + // this establishes query graph relationship: imaddress that we want is a property in contact + RDFVariable imaddress = contact.property(); + contact != nco::default_contact_me::iri(); + + // in the query, we need to get imaccount where this imaddress resides. + // i.e. from which local account we have established connection to imaddress + RDFVariable imaccount = RDFVariable::fromType(); + // define link between imaccount to imaddress. + imaccount.property() = imaddress; + + queryidsimacccounts.addColumn("imaddress", imaddress); + queryidsimacccounts.addColumn("contactId", contact.property ()); + queryidsimacccounts.groupBy(imaddress); + queryidsimacccounts.addColumn("IMId", imaddress.property ()); + queryidsimacccounts.addColumn("status", imaddress.optional().property ()); + queryidsimacccounts.addColumn("message", imaddress.optional().property ()); + queryidsimacccounts.addColumn("nick", imaddress.optional().property ()); + queryidsimacccounts.addColumn("type", imaccount); // account path + queryidsimacccounts.addColumn("capabilities", + imaddress.optional().property().filter("GROUP_CONCAT", LiteralValue(","))); + queryidsimacccounts.addColumn("serviceprovider", imaccount.property()); + return queryidsimacccounts; +} + +RDFSelect prepareIMAccountsQuery(RDFVariable &contact) +{ + RDFVariable imAccount; + imAccount = RDFVariable::fromType(); + RDFSelect queryidsimaccounts; + + RDFVariable address = imAccount.property(); + queryidsimaccounts.addColumn("uri", contact); + queryidsimaccounts.addColumn("presence", address.property()); + queryidsimaccounts.addColumn("message", address.property()); + queryidsimaccounts.addColumn("nick", address.property()); + queryidsimaccounts.addColumn("distinct ", address.property()); + queryidsimaccounts.addColumn("address_uri", address); + queryidsimaccounts.addColumn("photo",address.optional().property()); + + return queryidsimaccounts; +} + + +QTrackerContactAsyncRequest::QTrackerContactAsyncRequest(QContactAbstractRequest* request) +: req(request) +{ +} + +const QString rdfPhoneType2QContactSubtype(const QString rdfPhoneType) +{ + if( rdfPhoneType.endsWith("VoicePhoneNumber") ) + return QContactPhoneNumber::SubTypeVoice; + else if ( rdfPhoneType.endsWith("CarPhoneNumber") ) + return QContactPhoneNumber::SubTypeCar; + else if ( rdfPhoneType.endsWith("CellPhoneNumber") ) + return QContactPhoneNumber::SubTypeMobile; + else if ( rdfPhoneType.endsWith("BbsPhoneNumber") ) + return QContactPhoneNumber::SubTypeBulletinBoardSystem; + else if ( rdfPhoneType.endsWith("FaxNumber") ) + return QContactPhoneNumber::SubTypeFax; + else if ( rdfPhoneType.endsWith("ModemNumber") ) + return QContactPhoneNumber::SubTypeModem; + else if ( rdfPhoneType.endsWith("PagerNumber") ) + return QContactPhoneNumber::SubTypePager; + else if ( rdfPhoneType.endsWith("MessagingNumber") ) + return QContactPhoneNumber::SubTypeMessagingCapable; + else + qWarning() << Q_FUNC_INFO << "Not handled phone number type:" << rdfPhoneType; + return ""; +} + +QTrackerContactAsyncRequest::~QTrackerContactAsyncRequest() +{ + +} + +/*! + * The method was initially created to add default fields in case client did not supply + * fields constraint - in that case the constraint is that default contact fields (ones + * being edited in contact card and synchronized) are queried. + */ +void QTrackerContactFetchRequest::validateRequest() +{ + Q_ASSERT(req); + Q_ASSERT(req->type() == QContactAbstractRequest::ContactFetchRequest); + QContactFetchRequest* r = qobject_cast (req); + QContactFetchHint fetchHint = r->fetchHint(); + if (r && fetchHint.detailDefinitionsHint().isEmpty()) { + QStringList definitionNames; + definitionNames << QContactAvatar::DefinitionName + << QContactBirthday::DefinitionName + << QContactAddress::DefinitionName + << QContactEmailAddress::DefinitionName + << QContactGender::DefinitionName + << QContactAnniversary::DefinitionName + << QContactName::DefinitionName + << QContactOnlineAccount::DefinitionName + << QContactOrganization::DefinitionName + << QContactPhoneNumber::DefinitionName + << QContactUrl::DefinitionName; + fetchHint.setDetailDefinitionsHint(definitionNames); + r->setFetchHint(fetchHint); + } +} + +QTrackerContactFetchRequest::QTrackerContactFetchRequest(QContactAbstractRequest* request, + QContactManagerEngine* parent) : + QObject(parent),QTrackerContactAsyncRequest(request), + queryPhoneNumbersNodesPending(0), + queryEmailAddressNodesPending(0) +{ + Q_ASSERT(parent); + Q_ASSERT(request); + QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::ActiveState); + + QTimer::singleShot(0, this, SLOT(run())); +} + +void QTrackerContactFetchRequest::run() +{ + validateRequest(); + QContactFetchRequest* r = qobject_cast (req); + QContactFetchHint fetchHint = r->fetchHint(); + QStringList definitionNames = fetchHint.detailDefinitionsHint(); + + RDFVariable RDFContact = RDFVariable::fromType(); + QContactManager::Error error = applyFilterToContact(RDFContact, r->filter()); + if (error != QContactManager::NoError) + { + emitFinished(error); + return; + } + if (definitionNames.contains(QContactPhoneNumber::DefinitionName)) { + queryPhoneNumbersNodes.clear(); + queryPhoneNumbersNodesPending = 2; + for(int forAffiliations = 0; forAffiliations <= 1; forAffiliations++) { + // prepare query to get all phone numbers + RDFVariable rdfcontact1 = RDFVariable::fromType(); + applyFilterToContact(rdfcontact1, r->filter()); + // criteria - only those with phone numbers + RDFSelect queryidsnumbers = preparePhoneNumbersQuery(rdfcontact1, forAffiliations); + queryPhoneNumbersNodes << ::tracker()->modelQuery(queryidsnumbers); + // need to store LiveNodes in order to receive notification from model + QObject::connect(queryPhoneNumbersNodes[forAffiliations].model(), + SIGNAL(modelUpdated()), this, SLOT(phoneNumbersReady())); + } + } + + if (definitionNames.contains(QContactEmailAddress::DefinitionName)) { + queryEmailAddressNodes.clear(); + queryEmailAddressNodesPending = 2; + for(int forAffiliations = 0; forAffiliations <= 1; forAffiliations++) { + // prepare query to get all email addresses + RDFVariable rdfcontact1 = RDFVariable::fromType(); + applyFilterToContact(rdfcontact1, r->filter()); + // criteria - only those with email addresses + RDFSelect queryidsnumbers = prepareEmailAddressesQuery(rdfcontact1,forAffiliations); + queryEmailAddressNodes << ::tracker()->modelQuery(queryidsnumbers); + // need to store LiveNodes in order to receive notification from model + QObject::connect(queryEmailAddressNodes[forAffiliations].model(), + SIGNAL(modelUpdated()), this, SLOT(emailAddressesReady())); + } + } + + if (definitionNames.contains( QContactOnlineAccount::DefinitionName)) { + queryIMAccountNodesPending = 1; + + RDFSelect queryidsimaccounts; + if(isMeContact(r->filter())) { + // Prepare a query to get all IMAccounts + RDFVariable meContact = RDFVariable::fromInstance(); + queryidsimaccounts = prepareIMAccountsQuery(meContact); + } else { + RDFVariable rdfIMContact; + rdfIMContact = rdfIMContact.fromType (); + applyFilterToContact(rdfIMContact, r->filter()); + queryidsimaccounts = prepareIMAddressesQuery(rdfIMContact); + } + queryIMAccountNodes = ::tracker()->modelQuery(queryidsimaccounts); + QObject::connect(queryIMAccountNodes.model(), + SIGNAL(modelUpdated()), SLOT(iMAcountsReady())); + } + + QList ids; + RDFVariable RDFContact1 = RDFVariable::fromType(); + applyFilterToContact(RDFContact1, r->filter()); + RDFSelect quer; + RDFVariable prefix = RDFContact1.optional().property (); + RDFVariable lastname = RDFContact1.optional().property (); + RDFVariable middlename = RDFContact1.optional().property (); + RDFVariable firstname = RDFContact1.optional().property (); + RDFVariable nickname = RDFContact1.optional().property (); + quer.addColumn("contactId", RDFContact1.optional().property ()); + quer.addColumn("prefix", prefix); + quer.addColumn("firstname", firstname); + quer.addColumn("middlename", middlename); + quer.addColumn("secondname", lastname); + quer.addColumn("photo", RDFContact1.optional().property ()); + quer.addColumn("nickname", nickname); + + // for now adding columns to main query. later separate queries + if (definitionNames.contains(QContactAddress::DefinitionName)) { + RDFVariable address = RDFContact.optional().property< nco::hasPostalAddress> (); + quer.addColumn("street",address.optional().property ()); + quer.addColumn("city", address.optional().property ()); + quer.addColumn("country", address.optional().property ()); + quer.addColumn("pcode", address.optional().property ()); + quer.addColumn("reg", address.optional().property ()); + } + if (definitionNames.contains(QContactUrl::DefinitionName)) { + quer.addColumn("homepage", RDFContact.optional().property ()); + quer.addColumn("url", RDFContact.optional().property ()); + quer.addColumn("work_homepage", RDFContact.optional().property ().property ()); + quer.addColumn("work_url", RDFContact.optional().property ().property ()); + } + if (definitionNames.contains(QContactBirthday::DefinitionName)) { + quer.addColumn("birth",RDFContact.optional().property ()); + } + if (definitionNames.contains(QContactGender::DefinitionName)) { + quer.addColumn("gender", RDFContact.optional().property ()); + } + if (definitionNames.contains(QContactOrganization::DefinitionName)) { + RDFVariable rdforg = RDFContact.optional().property ().optional().property (); + quer.addColumn("org", rdforg.optional().property ()); + quer.addColumn("logo", rdforg.optional().property ()); + } + + + // QContactAnniversary - no such thing in tracker + // QContactGeolocation - nco:hasLocation is not having class defined in nco yet. no properties. maybe rdfs:Resource:label + + // supporting sorting only here, difficult and no requirements in UI for sorting in multivalue details (phones, emails) + foreach(const QContactSortOrder& sort, r->sorting()) { + if (sort.detailDefinitionName() == QContactName::DefinitionName) { + if (sort.detailFieldName() == QContactName::FieldFirstName) + quer.orderBy(firstname); + else if (sort.detailFieldName() == QContactName::FieldLastName) + quer.orderBy(lastname); + else + qWarning() << "QTrackerContactFetchRequest" << "sorting by" + << sort.detailDefinitionName() + << sort.detailFieldName() << "is not yet supported"; + } else { + qWarning() << "QTrackerContactFetchRequest" << "sorting by" + << sort.detailDefinitionName() + << "is not yet supported"; + } + } + query = ::tracker()->modelQuery(quer); + // need to store LiveNodes in order to receive notification from model + QObject::connect(query.model(), SIGNAL(modelUpdated()), this, SLOT(contactsReady())); +} + +bool detailExisting(const QString &definitionName, const QContact &contact, const QContactDetail &adetail) +{ + QList details = contact.details(definitionName); + foreach(const QContactDetail &detail, details) { + if (detail == adetail) { + return true; + } + } + return false; +} + +void QTrackerContactFetchRequest::contactsReady() +{ + // 1) process contacts: + // 2) process IMAddresses: queryIMAccountNodes + // 3) process phonenumbers: queryPhoneNumbersNodes + // 4) process emails: queryPhoneNumbersNodes + // 5) update display label details + + QContactFetchRequest* request = qobject_cast (req); + Q_ASSERT( request ); // signal is supposed to be used only for contact fetch + // fastest way to get this working. refactor + if (!request) { + QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); + return; + } + + QContactManagerEngine *engine = qobject_cast(parent()); + Q_ASSERT(engine); + + // 1) process contacts: + QContactFetchHint fetchHint = request->fetchHint(); + QStringList definitionNames = fetchHint.detailDefinitionsHint(); + for(int i = 0; i < query->rowCount(); i++) { + bool ok; + QContactLocalId contactid = query->index(i, 0).data().toUInt(&ok); + + + QContact contact; // one we will be filling with this row + if (isMeContact(request->filter())) { + /* Me Contact does not have any cotactUID so assigning 0*/ + if(engine) { + QContactManager::Error error; + contactid = engine->selfContactId(&error); + ok = true; + } + } + + if (!ok) { + qWarning()<< Q_FUNC_INFO <<"Invalid contact ID: "<< query->index(i, 0).data().toString(); + continue; + } + QContactId id; id.setLocalId(contactid); + + if(engine) + id.setManagerUri(engine->managerUri()); + + contact.setId(id); + + // using redundancy to get less queries to tracker - it is possible + // that rows are repeating: information for one contact is in several rows + // that's why we update existing contact and append details to it if they + // are not already in QContact + QHash::const_iterator it = id2ContactLookup.find(contactid); + // + int index = result.size(); // where to place new contact + if (id2ContactLookup.end() != it) { + if (it.value() < result.size() && it.value() >= 0) { + index = it.value(); + contact = result[index]; + } + Q_ASSERT(query->index(i, 0).data().toUInt() == contact.localId()); + } + + readFromQueryRowToContact(contact ,i); + //to prevent me contact getting list in the contact list + if (!isMeContact(request->filter())) { + addContactToResultSet(contact); + } + } + + /* + * 2) process IMAddresses _ To be replaced with derivedObjects + */ + if (definitionNames.contains(QContactOnlineAccount::DefinitionName)) { + processQueryIMContacts(queryIMAccountNodes); + } + + // 3) process phonenumbers: queryPhoneNumbersNodes + if (definitionNames.contains(QContactPhoneNumber::DefinitionName)) { + Q_ASSERT(queryPhoneNumbersNodes.size() == 2); + for( int cnt = 0; cnt < queryPhoneNumbersNodes.size(); cnt++) { + processQueryPhoneNumbers(queryPhoneNumbersNodes[cnt], cnt); + } + } + + // 4) process emails: queryPhoneNumbersNodes + if (definitionNames.contains(QContactEmailAddress::DefinitionName)) { + Q_ASSERT(queryEmailAddressNodes.size() == 2); + for (int cnt = 0; cnt < queryEmailAddressNodes.size(); cnt++) { + processQueryEmailAddresses(queryEmailAddressNodes[cnt], cnt); + } + } + + // 5) update display labels + for(int i = 0; i < result.count(); i++) + { + QContact &cont(result[i]); + QContactDisplayLabel dl = cont.detail(QContactDisplayLabel::DefinitionName); + if (dl.label().isEmpty()) { + QContactManager::Error synthError; + QContactManagerEngine::setContactDisplayLabel(&cont, engine->synthesizedDisplayLabel(cont, &synthError)); + } + } + emitFinished(); +} + +void QTrackerContactFetchRequest::emitFinished(QContactManager::Error error) +{ + QContactFetchRequest *fetchRequest = qobject_cast(req); + Q_ASSERT(fetchRequest); + if(fetchRequest) { + QContactManagerEngine::updateContactFetchRequest(fetchRequest, result, error, QContactAbstractRequest::FinishedState); + } +} + +/*! + * Appending contact to \sa result, id2ContactLookup, of the request - to add it as new or to replace existing in result. + */ +void QTrackerContactFetchRequest::addContactToResultSet(QContact &contact) +{ + QHash::const_iterator it = id2ContactLookup.find(contact.localId()); + int index = -1; // where to place new contact, -1 - not defined + if (id2ContactLookup.end() != it) { + if (it.value() < result.size() && it.value() >= 0) + index = it.value(); + } + QContact *contact_ = &contact; + if ( -1 == index ) { + result.append(*contact_); + id2ContactLookup[contact_->localId()] = result.size()-1; + } else { + result[index] = *contact_; + id2ContactLookup[contact_->localId()] = index; + } +} + +/*! + * brief Processes one query record-row during read from tracker to QContact. + * Order or columns in query is fixed to order defined in \sa run() + */ +void QTrackerContactFetchRequest::readFromQueryRowToContact(QContact &contact, int i) +{ + QContactFetchRequest* request = qobject_cast (req); + Q_ASSERT( request ); // this is handled already in caller + if( !request ) + return; + + int column = 1; // 0 - for QContactLocalId + QContactName name = contact.detail(QContactName::DefinitionName); + name.setPrefix(query->index(i, column++).data().toString()); + name.setFirstName(query->index(i, column++).data().toString()); + name.setMiddleName(query->index(i, column++).data().toString()); + name.setLastName(query->index(i, column++).data().toString()); + contact.saveDetail(&name); + + QContactAvatar avatar = contact.detail(QContactAvatar::DefinitionName); + avatar.setImageUrl(QUrl(query->index(i, column++).data().toString())); // FIXME!!! + //avatar.setAvatar(query->index(i, column++).data().toString()); + if (!avatar.imageUrl().isValid()) { // FIXME? + contact.saveDetail(&avatar); + } + + QContactNickname nick = contact.detail(QContactNickname::DefinitionName); + nick.setNickname(query->index(i, column++).data().toString()); + contact.saveDetail(&nick); + + // TODO extract generic from bellow ... mapping field names + QContactFetchHint fetchHint = request->fetchHint(); + QStringList definitionNames = fetchHint.detailDefinitionsHint(); + if (definitionNames.contains(QContactAddress::DefinitionName)) { + QString street = query->index(i, column++).data().toString(); + QString loc = query->index(i, column++).data().toString(); + QString country = query->index(i, column++).data().toString(); + QString pcode = query->index(i, column++).data().toString(); + QString region = query->index(i, column++).data().toString(); + if (!(country.isEmpty() && pcode.isEmpty() && region.isEmpty() + && street.isEmpty() && loc.isEmpty())) { + // for multivalue fields is a bit tricky - try to find existing an + QContactAddress a; + a.setStreet(street); + a.setLocality(loc); + a.setCountry(country); + a.setPostcode(pcode); + a.setRegion(region); + if (!detailExisting(QContactAddress::DefinitionName, contact, a)) { + contact.saveDetail(&a); + } + } + } + if (definitionNames.contains(QContactUrl::DefinitionName)) { + // check query preparation (at the moment in constructor TODO refactor) + // home website + // if it is websiteUrl then interpret as homepage, if it is nco:url then fovourite url + QContactUrl url; + url.setSubType(QContactUrl::SubTypeHomePage); + url.setContexts(QContactUrl::ContextHome); + url.setUrl(query->index(i, column++).data().toString()); + if (url.url().isEmpty()) { + // website url is at the same time url, so we handle duplication here + // if only url then set it as favourite + url.setUrl(query->index(i, column++).data().toString()); + url.setSubType(QContactUrl::SubTypeFavourite); + } + + if (!url.url().isEmpty() && !detailExisting(QContactUrl::DefinitionName, contact, url)) { + contact.saveDetail(&url); + } + // office website + QContactUrl workurl; + workurl.setContexts(QContactUrl::ContextWork); + workurl.setSubType(QContactUrl::SubTypeHomePage); + workurl.setUrl(query->index(i, column++).data().toString()); + if (workurl.url().isEmpty()) { + workurl.setUrl(query->index(i, column++).data().toString()); + workurl.setSubType(QContactUrl::SubTypeFavourite); + } + if (!workurl.url().isEmpty() && !detailExisting(QContactUrl::DefinitionName, contact, workurl)) { + contact.saveDetail(&workurl); + } + } + if (definitionNames.contains(QContactBirthday::DefinitionName)) { + QVariant var = query->index(i, column++).data(); + if (!var.toString().isEmpty() /* enable reading wrong && var.toDate().isValid()*/) { + QContactBirthday birth = contact.detail(QContactBirthday::DefinitionName); + birth.setDate(var.toDate()); + contact.saveDetail(&birth); + } + } + if (definitionNames.contains(QContactGender::DefinitionName)) { + QString var = query->index(i, column++).data().toString(); + if (!var.isEmpty()) { + QContactGender g = contact.detail(QContactGender::DefinitionName); + g.setGender(var); + contact.saveDetail(&g); + } + } + if (definitionNames.contains(QContactOrganization::DefinitionName)) { + QString org = query->index(i, column++).data().toString(); + QString logo = query->index(i, column++).data().toString(); + if (!( org.isEmpty() && logo.isEmpty())) { + QContactOrganization o; + o.setName(org); + o.setLogoUrl(QUrl(logo)); + if (!detailExisting(QContactOrganization::DefinitionName, contact, o)) { + contact.saveDetail(&o); + } + } + } + +} + + +void QTrackerContactFetchRequest::phoneNumbersReady() +{ + queryPhoneNumbersNodesPending--; +} + +void QTrackerContactFetchRequest::emailAddressesReady() +{ + queryEmailAddressNodesPending--; +} + +void QTrackerContactFetchRequest::imAcountsReady() +{ + queryIMAccountNodesPending--; + // now we know that the query is ready before get all contacts, check how it works with transactions +} + +/*! + * An internal helper method for converting nco:PhoneNumber subtype to + * QContactPhoneNumber:: subtype attribute + */ +void QTrackerContactFetchRequest::processQueryPhoneNumbers(SopranoLive::LiveNodes queryPhoneNumbers, + bool affiliationNumbers ) +{ + Q_ASSERT_X( queryPhoneNumbersNodesPending==0, Q_FUNC_INFO, "Phonenumbers query was supposed to be ready and it is not." ); + for (int i = 0; i < queryPhoneNumbers->rowCount(); i++) { + // ignore if next one is the same - asked iridian about making query to ignore supertypes + // TODO remove after his answer + if ( i-1 >= 0 + && (queryPhoneNumbers->index(i, 0).data().toString() + == queryPhoneNumbers->index(i-1, 0).data().toString()) + && (queryPhoneNumbers->index(i, 1).data().toString() + == queryPhoneNumbers->index(i-1, 1).data().toString())) { + // this is for ignoring duplicates. bad approach, asked iridian about + // how to eliminate super types in query results + continue; + } + + QString subtype = rdfPhoneType2QContactSubtype(queryPhoneNumbers->index(i, 2).data().toString()); + QContactLocalId contactid = queryPhoneNumbers->index(i, 0).data().toUInt(); + + QHash::const_iterator it = id2ContactLookup.find(contactid); + if (it != id2ContactLookup.end() && it.key() == contactid && it.value() >= 0 && it.value() < result.size()) + { + QContactPhoneNumber number; + if( affiliationNumbers ) + number.setContexts(QContactPhoneNumber::ContextWork); + else + number.setContexts(QContactPhoneNumber::ContextHome); + number.setNumber(queryPhoneNumbers->index(i, 1).data().toString()); + number.setSubTypes(subtype); + result[it.value()].saveDetail(&number); + } + else + Q_ASSERT(false); + } +} + +void QTrackerContactFetchRequest::processQueryEmailAddresses( SopranoLive::LiveNodes queryEmailAddresses, + bool affiliationEmails) +{ + Q_ASSERT_X(queryEmailAddressNodesPending == 0, Q_FUNC_INFO, "Email query was supposed to be ready and it is not." ); + for (int i = 0; i < queryEmailAddresses->rowCount(); i++) { + // ignore if next one is the same - asked iridian about making query to ignore supertypes + // TODO remove after his answer + if ( i-1 >= 0 + && (queryEmailAddresses->index(i, 0).data().toString() + == queryEmailAddresses->index(i-1, 0).data().toString()) + && (queryEmailAddresses->index(i, 1).data().toString() + == queryEmailAddresses->index(i-1, 1).data().toString())) { + // this is for ignoring duplicates. bad approach, asked iridian + // about how to eliminate super types in query results + continue; + } + + //QString subtype = rdfPhoneType2QContactSubtype(queryEmailAddresses->index(i, 2).data().toString()); + QContactLocalId contactid = queryEmailAddresses->index(i, 0).data().toUInt(); + + QHash::const_iterator it = id2ContactLookup.find(contactid); + if (it != id2ContactLookup.end() && it.key() == contactid && it.value() >= 0 && it.value() < result.size()) + { + QContactEmailAddress email; + if (affiliationEmails) + email.setContexts(QContactEmailAddress::ContextWork); + else + email.setContexts(QContactEmailAddress::ContextHome); + email.setEmailAddress(queryEmailAddresses->index(i, 1).data().toString()); + //email.setSubTypes(subtype); + result[it.value()].saveDetail(&email); + } + else + Q_ASSERT(false); + } +} + + +/*! + * \brief Processes one query record-row during read from tracker to QContactOnlineAccount. + * Order or columns in query is fixed to order defined in \sa prepareIMAddressesQuery() + */ +QContactOnlineAccount QTrackerContactFetchRequest::getOnlineAccountFromIMQuery(LiveNodes imAccountQuery, int queryRow) +{ + QContactOnlineAccount account; + QContactFetchRequest* r = qobject_cast (req); + if(isMeContact(r->filter())) { + account = getIMAccountFromIMQuery(imAccountQuery, queryRow); + } else { + account = getIMContactFromIMQuery(imAccountQuery, queryRow); + } + return account; +} + +/*! + * \brief processes IMQuery results. \sa prepareIMAddressesQuery, contactsReady + */ +void QTrackerContactFetchRequest::processQueryIMContacts(SopranoLive::LiveNodes queryIMContacts) +{ + //Q_ASSERT_X(queryEmailAddressNodes == 0, Q_FUNC_INFO, "IMAccount query was supposed to be ready and it is not." ); + QContactFetchRequest* r = qobject_cast (req); + QContactManagerEngine *engine = qobject_cast(parent()); + Q_ASSERT(engine); + if (!r || !engine) { + return; + } + + for (int i = 0; i < queryIMContacts->rowCount(); i++) { + QContactOnlineAccount account = getOnlineAccountFromIMQuery(queryIMContacts, i); + QContactLocalId contactid = queryIMContacts->index(i, IMContact::ContactId).data().toUInt(); + // Need special treatment for me contact since the avatar is not working :( + // + if (isMeContact(r->filter())) { + QString avatarURI = queryIMAccountNodes->index(i, IMAccount::ContactAvatar).data().toString(); + QContact meContact; + QContactLocalId meContactLocalId; + QContactManager::Error error; + meContactLocalId = engine->selfContactId(&error); + QContactId id; id.setLocalId(meContactLocalId); + meContact.setId(id); + QContactAvatar avatar = meContact.detail(QContactAvatar::DefinitionName); + avatar.setImageUrl(QUrl(avatarURI)); // FIXME? + //nick + + QContactNickname qnick = meContact.detail(QContactNickname::DefinitionName); + QString nick = queryIMAccountNodes->index(i, IMAccount::ContactNickname).data().toString(); // nick + qnick.setNickname(nick); + + + if (!avatarURI.isEmpty()) { + meContact.saveDetail(&account); + meContact.saveDetail(&avatar); + meContact.saveDetail(&qnick); + addContactToResultSet(meContact); + } + } + + QHash::const_iterator it = id2ContactLookup.find(contactid); + if (it != id2ContactLookup.end() && it.key() == contactid && it.value() >= 0 && it.value() < result.size()) + { + result[it.value()].saveDetail(&account); + } + } +} + +bool QTrackerContactFetchRequest::isMeContact(const QContactFilter &filter) { + if (filter.type() == QContactFilter::LocalIdFilter) { + QContactManagerEngine *engine = dynamic_cast(parent()); + if(!engine) { + qWarning() << __PRETTY_FUNCTION__ << ": Could not get QContactManager. Cannot retrieve IMAccounts for me-contact."; + return false; + } + + QContactManager::Error e; + QContactLocalId selfId = engine->selfContactId(&e); + QContactLocalIdFilter filt = filter; + if (filt.ids().contains(selfId)) { + return true; + } + } + return false; +} + + +QContactOnlineAccount QTrackerContactFetchRequest::getIMAccountFromIMQuery(LiveNodes imAccountQuery, int queryRow) { + QContactOnlineAccount account; + + // Custom value in QContactrOnlineAccount detail to store the account path to - to determine in My Profile to ignore the ring-account. + account.setValue("Account", imAccountQuery->index(queryRow, IMAccount::ContactIMId).data().toString()); // IMId + // the same is supposed to be in FieldAccountUri field + account.setValue(QContactOnlineAccount::FieldAccountUri, imAccountQuery->index(queryRow, IMAccount::ContactIMId).data().toString()); // IMId + + // XXX FIXME -- TODO VIA PRESENCE + //account.setNickname(imAccountQuery->index(queryRow, IMAccount::ContactNickname).data().toString()); // nick + //qDebug() << Q_FUNC_INFO << imAccountQuery->index(queryRow, IMAccount::ContactNickname).data().toString(); + + //QString presence = imAccountQuery->index(queryRow, IMAccount::ContactPresence).data().toString(); // imPresence iri + //presence = presence.right(presence.length() - presence.lastIndexOf("presence-status")); + //account.setPresence(presenceConversion[presence]); + //qDebug() << Q_FUNC_INFO << "Presence converted: " << account.presence() << "raw presence: " << presence; + + //account.setStatusMessage(imAccountQuery->index(queryRow, IMAccount::ContactMessage).data().toString()); // imStatusMessage + + return account; +} + +QContactOnlineAccount QTrackerContactFetchRequest::getIMContactFromIMQuery(LiveNodes imContactQuery, int queryRow) { + QContactOnlineAccount account; + + account.setValue("Account", imContactQuery->index(queryRow, IMContact::ContactIMId).data().toString()); // IMId + if (!imContactQuery->index(queryRow, IMContact::AccountType).data().toString().isEmpty()) { + QString accountPathURI = imContactQuery->index(queryRow, IMContact::AccountType).data().toString(); + QStringList decoded = accountPathURI.split(":"); + // taking out the prefix "telepathy:" + account.setValue(FieldAccountPath, decoded.value(1)); + } + + + // XXX FIXME -- TODO VIA PRESENCE + //account.setNickname(imContactQuery->index(queryRow, IMContact::ContactNickname).data().toString()); // nick + + QString cap = imContactQuery->index(queryRow, IMContact::Capabilities).data().toString(); + cap = cap.right(cap.length() - cap.lastIndexOf("im-capability")); + account.setValue(QContactOnlineAccount::FieldCapabilities, cap); + + // XXX FIXME -- TODO VIA PRESENCE + //QString presence = imContactQuery->index(queryRow, IMContact::ContactPresence).data().toString(); // imPresence iri + //presence = presence.right(presence.length() - presence.lastIndexOf("presence-status")); + //account.setPresence(presenceConversion[presence]); + // + //account.setStatusMessage(imContactQuery->index(queryRow, IMContact::ContactMessage).data().toString()); // imStatusMessage + + account.setServiceProvider(imContactQuery->index(queryRow, IMContact::ServiceProvider).data().toString()); // service name + return account; +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactfetchrequest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactfetchrequest.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,142 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QTRACKERCONTACTFETCHREQUEST_H_ +#define QTRACKERCONTACTFETCHREQUEST_H_ + +#include "qtrackercontactasyncrequest.h" + +#include +#include +#include + +#include +#include + +QTM_BEGIN_NAMESPACE +class QContactAbstractRequest; +class QContactManagerEngine; +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE + +namespace IMAccount { + enum IMResultColumn { + URI = 0, + ContactPresence, + ContactMessage, + ContactNickname, + ContactDisplayname, + ContactIMId, + ContactAvatar + }; +}; + +namespace IMContact { + enum IMResultColumn { + URI, + ContactId, + ContactIMId, + ContactPresence, + ContactMessage, + ContactNickname, + AccountType, + Capabilities, + ServiceProvider + }; +}; + +/*! + * Running QContactFetchRequest. Doing the async tracker query and when data is ready setting the + * finished status of request. \sa QTrackerContactFetchRequest + */ +class QTrackerContactFetchRequest : public QObject, public QTrackerContactAsyncRequest +{ + Q_OBJECT +// Q_ENUMS(IMResultColumn) +public: + QTrackerContactFetchRequest(QContactAbstractRequest* req, QContactManagerEngine* parent); +public slots: + void contactsReady(); + void phoneNumbersReady(); + void emailAddressesReady(); + void imAcountsReady(); + +protected slots: + virtual void run(); + virtual void emitFinished(QContactManager::Error error = QContactManager::NoError); + +protected: + QContactManager::Error applyFilterToContact(SopranoLive::RDFVariable &variable, const QContactFilter &filter); + QContactManager::Error applyDetailRangeFilterToContact(SopranoLive::RDFVariable &variable, const QContactFilter &filter); + + // contacts query + SopranoLive::LiveNodes query; + + QList queryPhoneNumbersNodes; // 2 - one for affiliations and another one for PersonContact + int queryPhoneNumbersNodesPending; + QList queryEmailAddressNodes; // 2 - one for affiliations and another one for PersonContact + int queryEmailAddressNodesPending; + SopranoLive::LiveNodes queryIMAccountNodes; + int queryIMAccountNodesPending; + + // result of the request - multiple queries updating it + QList result; + +private: + bool isMeContact(const QContactFilter &filter); + // fills received phone number from tracker to list of contacts to QContactPhoneMumber details + // all the following methods update \sa result + void processQueryPhoneNumbers(SopranoLive::LiveNodes queryPhoneNumbers, bool affiliationNumbers); + void processQueryEmailAddresses(SopranoLive::LiveNodes queryEmailAddresses, bool affiliationEmails); + void processQueryIMContacts(SopranoLive::LiveNodes queryIMContacts); + void validateRequest(); + void readFromQueryRowToContact(QContact &contact, int queryRow); + void addContactToResultSet(QContact &contact); + QContactOnlineAccount getOnlineAccountFromIMQuery(SopranoLive::LiveNodes imAccountQuery, int queryRow); + QContactOnlineAccount getIMAccountFromIMQuery(SopranoLive::LiveNodes imAccountQuery, int queryRow) ; + QContactOnlineAccount getIMContactFromIMQuery(SopranoLive::LiveNodes imAccountQuery, int queryRow); + + // access existing contacts in result list, contactid to index in \sa result lookup + QHash id2ContactLookup; +}; + +#endif /* QTRACKERCONTACTFETCHREQUEST_H_ */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactidfetchrequest.cpp --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactidfetchrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactidfetchrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,6 @@ ** ****************************************************************************/ - #include #include @@ -63,18 +62,19 @@ { fetchReq->setFilter(idfetchrequest->filter()); // IMContacts needs to be fetched to use metacontact matching - fetchReq->setDefinitionRestrictions(QStringList()<setFetchHint(fetchHint); } } -void QTrackerContactIdFetchRequest::emitFinished() +void QTrackerContactIdFetchRequest::emitFinished(QContactManager::Error error) { // for now this only serves get all contacts QList results; foreach(const QContact &c, result) { results << c.localId(); } - QContactManagerEngine::updateContactLocalIdFetchRequest(idfetchrequest, results, QContactManager::NoError); - QContactManagerEngine::updateRequestState(idfetchrequest, QContactAbstractRequest::FinishedState); + QContactManagerEngine::updateContactLocalIdFetchRequest(idfetchrequest, results, error, QContactAbstractRequest::FinishedState); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactidfetchrequest.h --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactidfetchrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactidfetchrequest.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,7 @@ #ifndef QTRACKERCONTACTIDFETCHREQUEST_H_ #define QTRACKERCONTACTIDFETCHREQUEST_H_ -#include -#include +#include QTM_BEGIN_NAMESPACE class QContactAbstractRequest; @@ -64,12 +63,10 @@ QTrackerContactIdFetchRequest(QContactAbstractRequest* req, QContactManagerEngine* parent); protected slots: //!\ reimp - void emitFinished(); + void emitFinished(QContactManager::Error error = QContactManager::NoError); private: QContactLocalIdFetchRequest *idfetchrequest; }; - #endif /* QTRACKERCONTACTIDFETCHREQUEST_H_ */ - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactsaverequest.cpp --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactsaverequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactsaverequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -67,13 +67,15 @@ QMap errors; errors[0] = QContactManager::BadArgumentError; QContactSaveRequest* saveRequest = qobject_cast(req); - QContactManagerEngine::updateContactSaveRequest(saveRequest, contacts, QContactManager::BadArgumentError, - errors); + QContactManagerEngine::updateContactSaveRequest(saveRequest, contacts, QContactManager::BadArgumentError, errors, r->state()); return; } QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::ActiveState); + TrackerChangeListener *changeListener = new TrackerChangeListener(parent, this); + connect(changeListener, SIGNAL(contactsChanged(const QList &)),SLOT(onTrackerSignal(const QList &))); + connect(changeListener, SIGNAL(contactsAdded(const QList &)),SLOT(onTrackerSignal(const QList &))); // Save contacts with batch size /// @todo where to get reasonable batch size @@ -99,6 +101,8 @@ foreach (QContactLocalId id, addedIds) { pendingContactIds.remove(id); + // since if was OK, remove entry for error + errorsOfContactsFinished.remove(id2Index[id]); } if (pendingContactIds.count() == 0) { @@ -112,8 +116,8 @@ break; } } - QContactManagerEngine::updateContactSaveRequest(r, contactsFinished, error, errorsOfContactsFinished); - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); + + QContactManagerEngine::updateContactSaveRequest(r, contactsFinished, error, errorsOfContactsFinished, QContactAbstractRequest::FinishedState); } } @@ -125,20 +129,21 @@ QSettings definitions(QSettings::IniFormat, QSettings::UserScope, "Nokia", "Trackerplugin"); QTrackerContactsLive cLive; RDFServicePtr service = cLive.service(); - bool isModified = false; foreach(QContact contact, contacts) { +/* + Validation is disabled because it blocks saving contacts parsed from vcards + TODO left the commented code while opaque (custom) details are under discussion as remainder QContactManager::Error error; - - // Ensure that the contact data is ok. This comes from QContactModelEngine if(!engine->validateContact(contact, error)) { contactsFinished << contact; errorsOfContactsFinished[errorCount++] = error; computeProgress(QList()); continue; } - +*/ Live ncoContact; + bool newContact = false; if(contact.localId() == 0) { // Save new contact. compute ID @@ -154,8 +159,8 @@ contact.setId(id); ncoContact->setContactUID(QString::number(m_lastUsedId)); ncoContact->setContentCreated(QDateTime::currentDateTime()); + newContact = true; } else { - isModified = true; ncoContact = service->liveNode(QUrl("contact:"+QString::number(contact.localId()))); /// @note Following needed in case we save new contact with given localId ncoContact->setContactUID(QString::number(contact.localId())); @@ -174,7 +179,7 @@ rdfContact.property() = LiteralValue(QString::number(contact.localId())); addTag(service, rdfContact, "addressbook"); - saveContactDetails( service, ncoContact, contact); + saveContactDetails( service, ncoContact, contact, newContact); // name & nickname - different way from other details cLive.setLiveContact(ncoContact); @@ -183,20 +188,11 @@ cLive.saveName(); } - // TODO add async signal handling of for transaction's commitFinished contactsFinished << contact; - errorsOfContactsFinished[errorCount++] = QContactManager::NoError; // TODO ask how to get error code from tracker + id2Index[contact.localId()] = errorCount; + // we fill error here - once response come that everything is OK, remove entry for this contact + errorsOfContactsFinished[errorCount++] = QContactManager::BadArgumentError; } - - TrackerChangeListener *changeListener = new TrackerChangeListener(this); - if (isModified) { - connect(changeListener, SIGNAL(contactsChanged(const QList &)), - SLOT(onTrackerSignal(const QList &))); - } else { - connect(changeListener, SIGNAL(contactsAdded(const QList &)), - SLOT(onTrackerSignal(const QList &))); - } - // remember to commit the transaction, otherwise all changes will be rolled back. cLive.commit(); } @@ -244,7 +240,8 @@ void QTrackerContactSaveRequest::saveContactDetails( RDFServicePtr service, Live& ncoContact, - const QContact& contact) + const QContact& contact, + bool newContact) { QStringList detailDefinitionsToSave = detailsDefinitionsInContact(contact); @@ -252,8 +249,10 @@ RDFVariable rdfPerson = RDFVariable::fromType(); rdfPerson.property() = LiteralValue(QString::number(contact.localId())); - // Delete all existing phone numbers - office and home - deletePhoneNumbers(service, rdfPerson); + if(not newContact) { + // Delete all existing phone numbers - office and home + deletePhoneNumbers(service, rdfPerson); + } foreach(QString definition, detailDefinitionsToSave) { @@ -268,9 +267,15 @@ QList workDetails; QList homeDetails; foreach(const QContactDetail& det, details) { + // details can be for both contexts, so check for both seperately if( det.contexts().contains(QContactDetail::ContextWork) ) { workDetails << det; - } else { + } + if( det.contexts().contains(QContactDetail::ContextHome)) { + homeDetails << det; + } + if( !det.contexts().contains(QContactDetail::ContextHome) + && !det.contexts().contains(QContactDetail::ContextWork)) { homeDetails << det; } } @@ -278,29 +283,29 @@ /* Save details */ if(definition == QContactPhoneNumber::DefinitionName) { if (!homeDetails.isEmpty()) { - savePhoneNumbers(service, rdfPerson, homeDetails); + savePhoneNumbers(service, rdfPerson, homeDetails, newContact); } if( !workDetails.isEmpty()) { - savePhoneNumbers(service, rdfAffiliation, workDetails); + savePhoneNumbers(service, rdfAffiliation, workDetails, newContact); } } else if(definition == QContactEmailAddress::DefinitionName) { if (!homeDetails.isEmpty()) - saveEmails(service, rdfPerson, homeDetails); + saveEmails(service, rdfPerson, homeDetails, newContact); if( !workDetails.isEmpty()) - saveEmails(service, rdfAffiliation, workDetails); + saveEmails(service, rdfAffiliation, workDetails, newContact); } else if(definition == QContactAddress::DefinitionName) { if (!homeDetails.isEmpty()) - saveAddresses(service, rdfPerson, homeDetails); + saveAddresses(service, rdfPerson, homeDetails, newContact); if( !workDetails.isEmpty()) - saveAddresses(service, rdfAffiliation, workDetails); + saveAddresses(service, rdfAffiliation, workDetails, newContact); } else if(definition == QContactUrl::DefinitionName) { if (!homeDetails.isEmpty()) - saveUrls(service, rdfPerson, homeDetails); + saveUrls(service, rdfPerson, homeDetails, newContact); if( !workDetails.isEmpty()) - saveUrls(service, rdfAffiliation, workDetails); + saveUrls(service, rdfAffiliation, workDetails, newContact); } else { // TODO refactor (bug: editing photo doesn't work) @@ -308,7 +313,7 @@ { definition = det.definitionName(); if(definition == QContactAvatar::DefinitionName) { - QUrl avatar = det.value(QContactAvatar::FieldAvatar); + QUrl avatar = det.value(QContactAvatar::FieldImageUrl); Live fdo = service->liveNode( avatar ); ncoContact->setPhoto(fdo); } @@ -347,7 +352,7 @@ * TODO this is temporary code for creating new, saving contacts need to handle only what was * changed. */ -void QTrackerContactSaveRequest::savePhoneNumbers(RDFServicePtr service, RDFVariable &var, const QList &details ) +void QTrackerContactSaveRequest::savePhoneNumbers(RDFServicePtr service, RDFVariable &var, const QList &details, bool newContact ) { RDFUpdate up; RDFVariable varForInsert = var.deepCopy(); @@ -364,6 +369,9 @@ // using RFC 3966 canonical URI form QUrl newPhone = QString("tel:%1").arg(value); Live ncoPhone = service->liveNode(newPhone); + if(not newContact) { + ncoPhone->remove(); + } QStringList subtypes = det.value(QContactPhoneNumber::FieldSubTypes); @@ -373,7 +381,7 @@ up.addInsertion(newPhone, rdf::type::iri(), nco::CarPhoneNumber::iri()); else if( subtypes.contains(QContactPhoneNumber::SubTypeBulletinBoardSystem)) up.addInsertion(newPhone, rdf::type::iri(), nco::BbsNumber::iri()); - else if( subtypes.contains(QContactPhoneNumber::SubTypeFacsimile)) + else if( subtypes.contains(QContactPhoneNumber::SubTypeFax)) up.addInsertion(newPhone, rdf::type::iri(), nco::FaxNumber::iri()); else if( subtypes.contains(QContactPhoneNumber::SubTypeModem)) up.addInsertion(newPhone, rdf::type::iri(), nco::ModemNumber::iri()); @@ -395,13 +403,15 @@ * TODO this is temporary code for creating new, saving contacts need to handle only what was * changed. */ -void QTrackerContactSaveRequest::saveEmails(RDFServicePtr service, RDFVariable &var, const QList &details ) +void QTrackerContactSaveRequest::saveEmails(RDFServicePtr service, RDFVariable &var, const QList &details, bool newContact ) { RDFUpdate up; RDFVariable varForInsert = var.deepCopy(); RDFVariable emails = var.property(); - // delete previous references - keep email IRIs - up.addDeletion(RDFVariableStatement(var, nco::hasEmailAddress::iri(), emails)); + if(not newContact) { + // delete previous references - keep email IRIs + up.addDeletion(RDFVariableStatement(var, nco::hasEmailAddress::iri(), emails)); + } foreach(const QContactDetail& det, details) { @@ -421,7 +431,7 @@ * TODO this is temporary code for creating new, saving contacts need to handle only what was * changed. */ -void QTrackerContactSaveRequest::saveUrls(RDFServicePtr service, RDFVariable &rdfContact, const QList &details ) +void QTrackerContactSaveRequest::saveUrls(RDFServicePtr service, RDFVariable &rdfContact, const QList &details, bool newContact ) { RDFUpdate up; RDFVariable varForInsert = rdfContact.deepCopy(); @@ -431,9 +441,11 @@ RDFVariable websiteUrls = rdfContact.property(); RDFVariable websiteUrlTypes = websiteUrls.property(); - up.addDeletion(RDFVariableStatement(rdfContact, nco::url::iri(), urls)); - up.addDeletion(RDFVariableStatement(rdfContact, nco::websiteUrl::iri(), websiteUrls)); - // first part - deleting previous before adding new again is to be removed + if(not newContact) { + // first part - deleting previous before adding new again is to be removed + up.addDeletion(RDFVariableStatement(rdfContact, nco::url::iri(), urls)); + up.addDeletion(RDFVariableStatement(rdfContact, nco::websiteUrl::iri(), websiteUrls)); + } // second part, write all urls foreach(const QContactDetail& det, details) @@ -456,14 +468,16 @@ * TODO this is temporary code for creating new, saving contacts need to handle only what was * changed. */ -void QTrackerContactSaveRequest::saveAddresses(RDFServicePtr service, RDFVariable &var, const QList &details ) +void QTrackerContactSaveRequest::saveAddresses(RDFServicePtr service, RDFVariable &var, const QList &details, bool newContact ) { RDFUpdate up; RDFVariable varForInsert = var.deepCopy(); RDFVariable addresses = var.property(); RDFVariable types = addresses.property(); - up.addDeletion(RDFVariableStatement(var, nco::hasPostalAddress::iri(), addresses)); - up.addDeletion(addresses, rdf::type::iri(), types); + if(not newContact) { + up.addDeletion(RDFVariableStatement(var, nco::hasPostalAddress::iri(), addresses)); + up.addDeletion(addresses, rdf::type::iri(), types); + } foreach(const QContactDetail& det, details) { QUrl newPostalAddress = ::tracker()->createLiveNode().uri(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactsaverequest.h --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactsaverequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactsaverequest.h Mon May 03 13:18:40 2010 +0300 @@ -76,11 +76,11 @@ void saveContacts(const QList &contacts); void computeProgress(const QList &addedIds); void addAffiliation(SopranoLive::RDFServicePtr service, QContactLocalId contactId); - void saveContactDetails(SopranoLive::RDFServicePtr service,SopranoLive::Live& ncoContact,const QContact &contact); - void saveAddresses(SopranoLive::RDFServicePtr service, SopranoLive::RDFVariable &var, const QList &details ); - void saveEmails(SopranoLive::RDFServicePtr service, SopranoLive::RDFVariable &var, const QList &details ); - void saveUrls(SopranoLive::RDFServicePtr service, SopranoLive::RDFVariable &var, const QList &details ); - void savePhoneNumbers(SopranoLive::RDFServicePtr service, SopranoLive::RDFVariable &var, const QList &details ); + void saveContactDetails(SopranoLive::RDFServicePtr service,SopranoLive::Live& ncoContact,const QContact &contact, bool newContact); + void saveAddresses(SopranoLive::RDFServicePtr service, SopranoLive::RDFVariable &var, const QList &details, bool newContact ); + void saveEmails(SopranoLive::RDFServicePtr service, SopranoLive::RDFVariable &var, const QList &details, bool newContact ); + void saveUrls(SopranoLive::RDFServicePtr service, SopranoLive::RDFVariable &var, const QList &details, bool newContact ); + void savePhoneNumbers(SopranoLive::RDFServicePtr service, SopranoLive::RDFVariable &var, const QList &details, bool newContact ); void deletePhoneNumbers(SopranoLive::RDFServicePtr service, const SopranoLive::RDFVariable& rdfContactIn); void addTag(SopranoLive::RDFServicePtr service, SopranoLive::RDFVariable &var, const QString &tag); void createTagIfItDoesntExistAlready(SopranoLive::RDFServicePtr service, const QString &tag); @@ -88,8 +88,10 @@ private: /*holding the data about status of async operation*/ QList contactsFinished; - //QList errorsOfContactsFinished; + QMap errorsOfContactsFinished; + // needed for error reporting - errorsOfContactsFinished is map (array index -> error) + QMap id2Index; int errorCount; /* extracted utilities */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactslive.h --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactslive.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackercontactslive.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,6 @@ #ifndef QTRACKERCONTACTSLIVE_H #define QTRACKERCONTACTSLIVE_H -#include #include #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipfetchrequest.cpp --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipfetchrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipfetchrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -57,14 +57,12 @@ if( !r ) { - QContactManagerEngine::updateRelationshipFetchRequest(r, QList(), QContactManager::UnspecifiedError); - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); + QContactManagerEngine::updateRelationshipFetchRequest(r, QList(), QContactManager::UnspecifiedError, QContactAbstractRequest::FinishedState); return; } - if (not r->relationshipType().isEmpty() && QContactRelationship::Is != r->relationshipType()) + if (not r->relationshipType().isEmpty() && QContactRelationship::IsSameAs != r->relationshipType()) { - QContactManagerEngine::updateRelationshipFetchRequest(r, r->relationships(), QContactManager::NotSupportedError); - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); + QContactManagerEngine::updateRelationshipFetchRequest(r, r->relationships(), QContactManager::NotSupportedError, QContactAbstractRequest::FinishedState); return; } QList dummy; @@ -101,8 +99,7 @@ QContactRelationshipFetchRequest* r = qobject_cast(req); if( !engine ) { - QContactManagerEngine::updateRelationshipFetchRequest(r, QList(), QContactManager::UnspecifiedError); - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); + QContactManagerEngine::updateRelationshipFetchRequest(r, QList(), QContactManager::UnspecifiedError, QContactAbstractRequest::FinishedState); return; } @@ -123,12 +120,11 @@ QContactRelationship rel; rel.setFirst(idfirst); rel.setSecond(idsecond); - rel.setRelationshipType(QContactRelationship::Is); + rel.setRelationshipType(QContactRelationship::IsSameAs); result.append(rel); } } - QContactManagerEngine::updateRelationshipFetchRequest(r, result, QContactManager::NoError); - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); + QContactManagerEngine::updateRelationshipFetchRequest(r, result, QContactManager::NoError, QContactAbstractRequest::FinishedState); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipfetchrequest.h --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipfetchrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipfetchrequest.h Mon May 03 13:18:40 2010 +0300 @@ -43,14 +43,11 @@ #define QTRACKERRELATIONSHIPFETCHREQUEST_H_ #include +#include #include #include - #include #include -#include - -#include #include QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipsaverequest.cpp --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipsaverequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipsaverequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -62,8 +62,7 @@ if(links.isEmpty()) { QMap errors; errors[0] = QContactManager::BadArgumentError; - QContactManagerEngine::updateRelationshipSaveRequest(r, links, QContactManager::BadArgumentError, errors); - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); + QContactManagerEngine::updateRelationshipSaveRequest(r, links, QContactManager::BadArgumentError, errors, QContactAbstractRequest::FinishedState); return; } QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::ActiveState); @@ -83,10 +82,10 @@ RDFVariable contact; QStringList idstrings(QStringList(ids.toList())); contact.property().isMemberOf(idstrings); - nodes = ::tracker()->modelVariable(contact); + m_nodes = ::tracker()->modelVariable(contact); // need to store LiveNodes in order to receive notification from model - QObject::connect(nodes.model(), SIGNAL(modelUpdated()), this, SLOT(nodesDataReady())); + QObject::connect(m_nodes.model(), SIGNAL(modelUpdated()), this, SLOT(nodesDataReady())); } @@ -98,9 +97,9 @@ connect(transaction_.data(), SIGNAL(commitError(QString)), this, SLOT(commitError(QString))); QHash > lContacts; - for(int i = 0; i < nodes->rowCount();i++) + for(int i = 0; i < m_nodes->rowCount(); i++) { - Live contact = nodes->liveNode(i); + Live contact = m_nodes->liveNode(i); lContacts[contact->getContactUID()] = contact; } QContactRelationshipSaveRequest* r = qobject_cast(req); @@ -109,9 +108,10 @@ QList links = r->relationships(); foreach(QContactRelationship rel, links) { - Live first = lContacts[QString::number(rel.first().localId())]; - Live second = lContacts[QString::number(rel.second().localId())]; - second->setMetacontact(first->getMetacontact()); + Live first = lContacts.value(QString::number(rel.first().localId())); + Live second = lContacts.value(QString::number(rel.second().localId())); + //TODO: we should prefer the local contact information over the remote info. + mergeContacts(first, second); } transaction_->commit(false); @@ -119,6 +119,14 @@ commitFinished(); } +void QTrackerRelationshipSaveRequest::mergeContacts(const Live& preferedContact, const Live& inferiorContact) +{ + QList mergedNodes = preferedContact->getHasIMAddresss(); + mergedNodes += inferiorContact->getHasIMAddresss(); + preferedContact->setHasIMAddresss( mergedNodes ); + inferiorContact->remove(); +} + void QTrackerRelationshipSaveRequest::commitFinished() { QContactRelationshipSaveRequest* r = qobject_cast(req); @@ -127,8 +135,7 @@ QContactManager::Error error = QContactManager::NoError; QMap errors; errors[0] = error; - QContactManagerEngine::updateRelationshipSaveRequest(r, r->relationships(), error, errors); - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); + QContactManagerEngine::updateRelationshipSaveRequest(r, r->relationships(), error, errors, QContactAbstractRequest::FinishedState); } else qWarning()< errors; errors[0] = error; - QContactManagerEngine::updateRelationshipSaveRequest(r, r->relationships(), error, errors); - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); + QContactManagerEngine::updateRelationshipSaveRequest(r, r->relationships(), error, errors, QContactAbstractRequest::FinishedState); } else { QMap errors; errors[0] = QContactManager::UnspecifiedError; - QContactManagerEngine::updateRelationshipSaveRequest(r, QList(), QContactManager::UnspecifiedError, errors); - QContactManagerEngine::updateRequestState(req, QContactAbstractRequest::FinishedState); + QContactManagerEngine::updateRelationshipSaveRequest(r, QList(), QContactManager::UnspecifiedError, errors, QContactAbstractRequest::FinishedState); return; } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipsaverequest.h --- a/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipsaverequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/qtrackerrelationshipsaverequest.h Mon May 03 13:18:40 2010 +0300 @@ -43,12 +43,12 @@ #define QTRACKERRELATIONSHIPSAVEREQUEST_H_ #include - +#include +#include #include -#include -#include -#include +#include + QTM_BEGIN_NAMESPACE class QContactAbstractRequest; @@ -71,7 +71,8 @@ void nodesDataReady(); private: - SopranoLive::LiveNodes nodes; + void mergeContacts(const SopranoLive::Live&, const SopranoLive::Live&); + SopranoLive::LiveNodes m_nodes; }; #endif /* QTRACKERCONTACTSAVEREQUEST_H_ */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/tests.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/tests.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,8 @@ +TEMPLATE = subdirs + +SUBDIRS = \ + ut_qtcontacts_add_async \ + ut_qtcontacts_fetch \ + ut_qtcontacts_sparql \ + ut_qtcontacts_trackerplugin \ + ut_qtcontacts_trackerplugin_definitions diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_add_async/ut_qtcontacts_add_async.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_add_async/ut_qtcontacts_add_async.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,262 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "ut_qtcontacts_add_async.h" + +#include +#include +#include +#include +#include +#include + +// Note that we try to avoid using any names that might already be in the database: +const char* TESTNAME_FIRST = "ut_qtcontacts_add_firstname"; +const char* TESTNAME_LAST = "ut_qtcontacts_add_firstlast"; + +ut_qtcontacts_add::ut_qtcontacts_add() +: getExistingContactFinishedCallback(0), + waiting(false) +{ +} + +ut_qtcontacts_add::~ut_qtcontacts_add() +{ + +} + +void ut_qtcontacts_add::initTestCase() +{ +} + +void ut_qtcontacts_add::cleanupTestCase() +{ +} + +void ut_qtcontacts_add::init() +{ +} + +void ut_qtcontacts_add::cleanup() +{ + waiting = false; +} + +bool ut_qtcontacts_add::waitForStop() +{ + waiting = true; + + const int max_secs = 100000; + + // wait for signal + int i = 0; + while(waiting && i++ < max_secs) { + // Allow the mainloop to run: + QTest::qWait(10); + } + + return !waiting; +} + +QContactManager* ut_qtcontacts_add::getContactManager() +{ + static QContactManager manager("tracker"); + return &manager; +} + +void ut_qtcontacts_add::onContactFetchRequestProgress() +{ + //qDebug() << "onContactFetchRequestProgress"; + if (!contactFetchRequest.isFinished()) + return; + + //Store the contact so the callback can use it. + if(!(contactFetchRequest.contacts().isEmpty())) { + contact = contactFetchRequest.contacts()[0]; + QVERIFY(contact.localId() != 0); + contactFetchRequest.cancel(); //Stop any more slot calls. + } + + //qDebug() << "debug: fetched localId=" << contact.localId(); + + //Avoid more slot calls, though this is unlikely because it has finished. + contactFetchRequest.cancel(); + + //Call the callback method that was specified to getExistingContact(): + if(getExistingContactFinishedCallback) { + FinishedCallbackFunc func = getExistingContactFinishedCallback; + getExistingContactFinishedCallback = 0; + (this->*func)(); + } +} + + +void ut_qtcontacts_add::getExistingContact(FinishedCallbackFunc finishedCallback) +{ + QContactManager* manager = getContactManager(); + Q_ASSERT(manager); + + // Stop pending fetch requests + if (contactFetchRequest.isActive()) + contactFetchRequest.cancel(); + + // Initialize the result. + contact = QContact(); + + //TODO: How can we AND on both the first and last name? + getExistingContactFinishedCallback = finishedCallback; //Call this when the contact has been retrieved. + connect(&contactFetchRequest, SIGNAL(resultsAvailable()), + SLOT(onContactFetchRequestProgress())); + + QContactDetailFilter nameFilter; + nameFilter.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + nameFilter.setValue(QLatin1String(TESTNAME_FIRST)); + nameFilter.setMatchFlags(QContactFilter::MatchExactly); + contactFetchRequest.setManager(manager); + contactFetchRequest.setFilter(nameFilter); + + //qDebug() << "debug: start request"; + contactFetchRequest.start(); +} + +//This is our actual test function: +void ut_qtcontacts_add::ut_testAddContact() +{ + //qDebug() << "debug: ut_testAddContact"; + //Make sure that the contact is not already in the database. + getExistingContact(&ut_qtcontacts_add::onContactFoundThenRemoveAndTest); + + //Block (allowing the mainloop to run) until we have finished. + waitForStop(); +} + +void ut_qtcontacts_add::onContactFoundThenRemoveAndTest() +{ + //qDebug() << "debug: Removing the existing contact, if it exists."; + QContactManager* manager = getContactManager(); + Q_ASSERT(manager); + + //TODO: Find and use an async API that tells us when it has finished. + manager->removeContact(contact.localId()); + + // Run the Qt UI's main loop, showing the editor while it is running: + QTimer::singleShot(2000, this, SLOT(onTimeoutAddContact())); +} + +void ut_qtcontacts_add::onTimeoutAddContact() +{ + //qDebug() << "debug: Trying to add contact."; + + // Offer a UI to edit a prefilled contact. + QContactName name; + name.setFirstName(QLatin1String(TESTNAME_FIRST)); + name.setLastName(QLatin1String(TESTNAME_LAST)); + //TODO: Find and use an async API that tells us when it has finished. + contact.saveDetail(&name); + //const bool saved = contact.saveDetail(&name); + //Q_ASSERT(saved); //This won't necessarily be useful because our implementation doesn't support sync methods. + + //Save the contact. + //But note that our QContactManager backend does not set localId when returning. + QContactManager* manager = getContactManager(); + Q_ASSERT(manager); + + + manager->saveContact(&contact); + //This works too: + //QContact copy(contact); + //manager->saveContact(©); + + //Check that it was really saved: + //qDebug() << "debug: checking that the contact was saved."; + getExistingContact(&ut_qtcontacts_add::onContactFoundThenCheck); +} + +void ut_qtcontacts_add::onContactFoundThenCheck() +{ + //Check that it was really saved: + // The ContactManager::saveContact() documentation suggests that localeId=0 is for non-saved contacts. + //QEXPECT_FAIL("", "QContactManager::saveContact() saves the contact (see it by running the contacts UI), but returns false and doesn't set error(). Find out why.", Continue); + QVERIFY(contact.localId() != 0); + + //Check that the correct details were saved: + const QContactName name = contact.detail(); + QVERIFY(name.firstName() == QLatin1String(TESTNAME_FIRST)); + QVERIFY(name.lastName() == QLatin1String(TESTNAME_LAST)); + + //Try to restore original conditions: + getExistingContact(&ut_qtcontacts_add::onContactFoundThenRemoveAndStop); +} + +void ut_qtcontacts_add::onContactFoundThenRemoveAndStop() +{ + //qDebug() << "debug: ut_qtcontacts_add::onContactFoundThenRemoveAndStop"; + QContactManager* manager = getContactManager(); + Q_ASSERT(manager); + manager->removeContact(contact.localId()); + + // Allow the actual test function to return: + waiting = false; +} + +void ut_qtcontacts_add::checkSubTypes() +{ + QContact contact; + + QContactManager* manager = getContactManager(); + + QContactPhoneNumber phone; + + phone.setSubTypes(QContactPhoneNumber::SubTypeMobile); + phone.setContexts(QContactPhoneNumber::ContextHome); + phone.setNumber("12345"); + + contact.saveDetail(&phone); + manager->saveContact(&contact); + + phone.setSubTypes(QContactPhoneNumber::SubTypeFacsimile); + + contact.saveDetail(&phone); + manager->saveContact(&contact); + +} + +QTEST_MAIN(ut_qtcontacts_add) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_add_async/ut_qtcontacts_add_async.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_add_async/ut_qtcontacts_add_async.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,103 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 UT_CONTACTSGUI_EDITCONTACT_H_ +#define UT_CONTACTSGUI_EDITCONTACT_H_ + +#include +#include +#include +#include + +QTM_USE_NAMESPACE + +class ut_qtcontacts_add : public QObject +{ +Q_OBJECT +public: + ut_qtcontacts_add(); + ~ut_qtcontacts_add(); + +// Private slots are called by the QTest framework. +private slots: + // Per test class: + void initTestCase(); + void cleanupTestCase(); + + // Per test-function: + void init(); + void cleanup(); + + // Test functions: + void ut_testAddContact(); + + void checkSubTypes(); + +// Protected or public slots are _not_ called by the QTest framework. +protected slots: + void onContactFetchRequestProgress(); + void onContactFoundThenRemoveAndTest(); + void onTimeoutAddContact(); + void onContactFoundThenCheck(); + void onContactFoundThenRemoveAndStop(); + +private: + + QContactManager* getContactManager(); + + typedef void (ut_qtcontacts_add::*FinishedCallbackFunc)(void); + + // Get the contact ID for the test contact if it exists already. + void getExistingContact(FinishedCallbackFunc finishedCallback); + + // wait (allowing the mainloop to respond) until this->waiting is false. + bool waitForStop(); + + //A hacky way to bind an extra parameter to the Qt slot. + FinishedCallbackFunc getExistingContactFinishedCallback; + + QContact contact; + QContactFetchRequest contactFetchRequest; + + bool waiting; +}; + +#endif /* UT_CONTACTSGUI_H_ */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_add_async/ut_qtcontacts_add_async.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_add_async/ut_qtcontacts_add_async.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,49 @@ +TARGET = ut_qtcontacts_add_async + +test.depends = all +QMAKE_EXTRA_TARGETS += test +QCONTACTS_TRACKER_BACKENDDIR = ../../ + +CONFIG += test +QT += testlib + +LIBS += -lqttracker +LIBS += -lQtContacts + +MOC_DIR = .moc +OBJECTS_DIR = .obj + +CONFIG += mobility +MOBILITY += contacts + +INCLUDEPATH += /usr/include/qt4/QtContacts \ + /usr/include \ + $$QCONTACTS_TRACKER_BACKENDDIR + +DEFINES += VERSION_INFO=\\\"0\\\" + +## Include source files under test. +HEADERS += $$QCONTACTS_TRACKER_BACKENDDIR/qcontacttrackerbackend_p.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactasyncrequest.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/trackerchangelistener.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactslive.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactsaverequest.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipfetchrequest.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipsaverequest.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactidfetchrequest.h + + +SOURCES += $$QCONTACTS_TRACKER_BACKENDDIR/qcontacttrackerbackend.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactasyncrequest.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/trackerchangelistener.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactslive.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactsaverequest.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipfetchrequest.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipsaverequest.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactidfetchrequest.cpp + + +## Include unit test files +HEADERS += ut_qtcontacts_add_async.h + +SOURCES += ut_qtcontacts_add_async.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_common/ut_qtcontacts_common.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_common/ut_qtcontacts_common.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,286 @@ +#include "ut_qtcontacts_common.h" + +#include +#include +#include +#include + +ut_qtcontacts_common::ut_qtcontacts_common() + : mContactManager(0) +{ +} + +void ut_qtcontacts_common::initTestCase() +{ +} + +void ut_qtcontacts_common::cleanupTestCase() +{ +} + +void ut_qtcontacts_common::init() +{ + QVERIFY(0 == mContactManager); + mContactManager = new QContactManager("tracker"); + QVERIFY(0 != mContactManager); +} + +void ut_qtcontacts_common::cleanup() +{ + if (mContactManager) { + if (not mLocalIds.isEmpty()) { +#if 0 // FIXME: qtcontacts-tracker doesn't implement QContactRemoveRequest yet + QContactRemoveRequest request; + request.setManager(mContactManager); + request.setContactIds(mLocalIds); + + if (not request.start()) + qDebug() << "error code" << request.error(); + //QVERIFY(request.start()); + + waitForRequest(request); + CHECK_CURRENT_TEST_FAILED; + + QVERIFY(request.isFinished()); + QCOMPARE(request.error(), QContactManager::NoError); +#else + QMap errors; + bool success = mContactManager->removeContacts(&mLocalIds, &errors); + QCOMPARE(mContactManager->error(), QContactManager::NoError); + QVERIFY(errors.isEmpty()); + QVERIFY(success); +#endif + + mLocalIds.clear(); + } + + mContactManager->deleteLater(); + mContactManager = 0; + } +} + +void ut_qtcontacts_common::waitForRequest(QContactAbstractRequest &request, int ms) +{ + if (request.isFinished()) + return; + + // check pre-conditions + QCOMPARE((int) request.state(), (int) QContactAbstractRequest::ActiveState); + + // wait for the request to do its work (or get canceled) + QTime timer; + timer.start(); + + while (request.isActive() && timer.elapsed() < ms) { + QTest::qWait(10); + } + + // check post-conditions + QVERIFY2(not request.isActive(), "timeout expired"); + + qDebug() << request.metaObject()->className() << "finished after" << timer.elapsed() << "ms"; +} + +// FIXME: remove again once QtMobility provides more verbose contact validation utilities +static bool validateContact(QContactManager *manager, const QContact &contact, QContactManager::Error &error_, QString &what) +{ + QList uniqueDefinitionIds; + + // check that each detail conforms to its definition as supported by this manager. + for (int i=0; i < contact.details().count(); i++) { + const QContactDetail& d = contact.details().at(i); + QVariantMap values = d.variantValues(); + QContactDetailDefinition def = manager->detailDefinition(d.definitionName(), contact.type()); + // check that the definition is supported + if (def.isEmpty()) { + error_ = QContactManager::InvalidDetailError; + what = "Unsupported definition: " + d.definitionName(); + return false; + } + + // check uniqueness + if (def.isUnique()) { + if (uniqueDefinitionIds.contains(def.name())) { + error_ = QContactManager::AlreadyExistsError; + what = "Detail must be unique: " + d.definitionName(); + return false; + } + uniqueDefinitionIds.append(def.name()); + } + + QList keys = values.keys(); + for (int i=0; i < keys.count(); i++) { + const QString& key = keys.at(i); + // check that no values exist for nonexistent fields. + if (!def.fields().contains(key)) { + error_ = QContactManager::InvalidDetailError; + what = "Value for nonexistent field: " + d.definitionName() + "::" + key; + return false; + } + + QContactDetailFieldDefinition field = def.fields().value(key); + // check that the type of each value corresponds to the allowable field type + if (static_cast(field.dataType()) != values.value(key).userType()) { + error_ = QContactManager::InvalidDetailError; + what = "Type doesn't match: " + d.definitionName() + "::" + key; + return false; + } + + // check that the value is allowable + // if the allowable values is an empty list, any are allowed. + if (!field.allowableValues().isEmpty()) { + // if the field datatype is a list, check that it contains only allowable values + if (field.dataType() == QVariant::List || field.dataType() == QVariant::StringList) { + QList innerValues = values.value(key).toList(); + for (int i = 0; i < innerValues.size(); i++) { + if (!field.allowableValues().contains(innerValues.at(i))) { + error_ = QContactManager::InvalidDetailError; + what = QString("Value not allowed: %1 (%2)"). + arg(d.definitionName() + "::" + key, + innerValues.at(i).toString()); + return false; + } + } + } else if (!field.allowableValues().contains(values.value(key))) { + // the datatype is not a list; the value wasn't allowed. + error_ = QContactManager::InvalidDetailError; + what = QString("Value not allowed: %1 (%2)"). + arg(d.definitionName() + "::" + key, + values.value(key).toString()); + return false; + } + } + } + } + + return true; +} + +void ut_qtcontacts_common::saveContact(QContact &contact, int timeout) +{ + QList contactList; + contactList.append(contact); + + saveContacts(contactList, timeout); + + QCOMPARE(contactList.count(), 1); + contact = contactList[0]; +} + +void ut_qtcontacts_common::saveContacts(QList &contacts, int timeout) +{ + QVERIFY(not contacts.isEmpty()); + + foreach(const QContact &contact, contacts) { + QContactManager::Error error; + QString what; + + if (not validateContact(mContactManager, contact, error, what)) { + foreach(const QContactDetail &d, contact.details()) { + qDebug() << d.definitionName() << d.variantValues(); + } + + QFAIL(qPrintable(QString("error %1: %2").arg(error).arg(what))); + } + } + + // add the contact to database + QContactSaveRequest request; + request.setManager(mContactManager); + request.setContacts(contacts); + QVERIFY(request.start()); + + qDebug() << "saving" << request.contacts().count() << "contacts"; + waitForRequest(request, timeout); + CHECK_CURRENT_TEST_FAILED; + + // verify the contact got saved + QVERIFY(request.isFinished()); + + QCOMPARE((int) request.error(), + (int) QContactManager::NoError); + + // copy back the saved contacts + contacts = request.contacts(); + + // remember the local id so that we can remove the contact from database later + foreach(const QContact &contact, contacts) { + QVERIFY(contact.localId()); + mLocalIds.append(contact.localId()); + } +} + +void ut_qtcontacts_common::fetchContact(const QContactLocalId &id, + QContact &result, int timeout) +{ + QList contactList; + fetchContacts(QList() << id, contactList, timeout); + QCOMPARE(contactList.count(), 1); + result = contactList[0]; +} + +void ut_qtcontacts_common::fetchContact(const QContactFilter &filter, + QContact &result, int timeout) +{ + QList contactList; + fetchContacts(filter, contactList, timeout); + QCOMPARE(contactList.count(), 1); + result = contactList[0]; +} + +void ut_qtcontacts_common::fetchContacts(const QList &ids, + QList &result, int timeout) +{ + QContactLocalIdFilter filter; + + filter.setIds(ids); + fetchContacts(filter, result, timeout); + CHECK_CURRENT_TEST_FAILED; + + QCOMPARE(result.count(), ids.count()); +} + +void ut_qtcontacts_common::fetchContacts(const QContactFilter &filter, + QList &result, int timeout) +{ + QContactFetchRequest request; + + request.setManager(mContactManager); + + if (QContactFilter::InvalidFilter != filter.type()) + request.setFilter(filter); + + QVERIFY(request.start()); + + qDebug() << "fetching contacts"; + waitForRequest(request, timeout); + CHECK_CURRENT_TEST_FAILED; + + QVERIFY(request.isFinished()); + result = request.contacts(); +} + +QSet ut_qtcontacts_common::testSlotNames() +{ + QSet testSlots; + + for(int i = 0; i < metaObject()->methodCount(); ++i) { + const QMetaMethod &method = metaObject()->method(i); + + if (QMetaMethod::Private != method.access() || + QMetaMethod::Slot != method.methodType()) { + continue; + } + + const char *signature = method.signature(); + const char *parenthesis = strchr(signature, '('); + + if (0 != qstrcmp(parenthesis, "()")) { + continue; + } + + testSlots.insert(QString::fromLatin1(signature, parenthesis - signature)); + } + + return testSlots; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_common/ut_qtcontacts_common.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_common/ut_qtcontacts_common.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,92 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 UT_QTCONTACTS_TRACKERPLUGIN_COMMON_H +#define UT_QTCONTACTS_TRACKERPLUGIN_COMMON_H + +#include +#include +#include + +#define CHECK_CURRENT_TEST_FAILED \ +do { \ + if (QTest::currentTestFailed()) { \ + qWarning("failing test called from %s(%d)", __FILE__, __LINE__); \ + return; \ + } \ +} while (0) + +QTM_USE_NAMESPACE + +class ut_qtcontacts_common : public QObject +{ + Q_OBJECT + +public: + static const int DefaultTimeout = 5000; + + ut_qtcontacts_common(); + +private slots: + // fixture setup + virtual void initTestCase(); + virtual void cleanupTestCase(); + + // function setup + virtual void init(); + virtual void cleanup(); + +protected: + QSet testSlotNames(); + + void saveContact(QContact &contact, int timeout = DefaultTimeout); + void saveContacts(QList &contacts, int timeout = DefaultTimeout); + void fetchContact(const QContactLocalId &id, QContact &result, int timeout = DefaultTimeout); + void fetchContact(const QContactFilter &filter, QContact &result, int timeout = DefaultTimeout); + void fetchContacts(const QList &ids, QList &result, int timeout = DefaultTimeout); + void fetchContacts(const QContactFilter &filter, QList &result, int timeout = DefaultTimeout); + void waitForRequest(QContactAbstractRequest &request, int timeout = DefaultTimeout); + + QContactManager* mContactManager; + QList mLocalIds; +}; + +#endif /* UT_QTCONTACTS_TRACKERPLUGIN_COMMON_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_common/ut_qtcontacts_common.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_common/ut_qtcontacts_common.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,13 @@ +CONFIG += mobility test +MOBILITY += contacts +QT += testlib + +MOC_DIR = .moc +OBJECTS_DIR = .obj + +DEPENDPATH += $$PWD +INCLUDEPATH += $$PWD +LIBS += -lqttracker + +HEADERS += $$PWD/ut_qtcontacts_common.h +SOURCES += $$PWD/ut_qtcontacts_common.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,174 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "ut_qtcontacts_fetch.h" + +#include +#include +#include +#include + +#include + +typedef QSet QStringSet; + +ut_qtcontacts_fetch::ut_qtcontacts_fetch() +{ + mUuid = QUuid::createUuid(); + mFirstName = "ut_qtcontacts_fetch_firstname_" + mUuid; + mLastName = "ut_qtcontacts_fetch_lastname_" + mUuid; + mWebPage = "ut_qtcontacts_fetch_url_" + mUuid; + + mNameFilter.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + mNameFilter.setMatchFlags(QContactFilter::MatchExactly); + mNameFilter.setValue(mFirstName); +} + +void ut_qtcontacts_fetch::setupTestContact(QContact &contact) +{ + QContactName name; + name.setFirstName(mFirstName); + name.setLastName(mLastName); + QVERIFY(contact.saveDetail(&name)); + + QContactUrl url; + url.setUrl(mWebPage); + QVERIFY(contact.saveDetail(&url)); +} + +void ut_qtcontacts_fetch::checkDatabaseEmpty() +{ + // try to fetch our testing contact + QContactFetchRequest request; + request.setManager(mContactManager); + request.setFilter(mNameFilter); + QVERIFY(request.start()); + + // wait for the request to finish + waitForRequest(request); + CHECK_CURRENT_TEST_FAILED; + + // dump unexpected contacts + foreach(const QContact &c, request.contacts()) { + qWarning() << "unexpected contact" << c.localId(); + foreach(const QContactDetail &d, c.details()) + qWarning() << " " << d.definitionName() << d.variantValues(); + } + + // verify that there really is no test contact yet + QVERIFY(request.isFinished()); + QVERIFY(request.contacts().isEmpty()); +} + +void ut_qtcontacts_fetch::testSaveContact() +{ + // check that we start with a clean database + checkDatabaseEmpty(); + CHECK_CURRENT_TEST_FAILED; + + // create a named contact and save it + QContact contact; + + setupTestContact(contact); + CHECK_CURRENT_TEST_FAILED; + + saveContact(contact); + CHECK_CURRENT_TEST_FAILED; +} + +void ut_qtcontacts_fetch::testSaveContactCopy() +{ + // check that we start with a clean database + checkDatabaseEmpty(); + CHECK_CURRENT_TEST_FAILED; + + // create a named contact + QContact contact; + + setupTestContact(contact); + CHECK_CURRENT_TEST_FAILED; + + // add copy of the contact to database + QContact copy(contact); + + saveContact(copy); + CHECK_CURRENT_TEST_FAILED; +} + +void ut_qtcontacts_fetch::testFetchSavedContact() +{ + // check that we start with a clean database + checkDatabaseEmpty(); + CHECK_CURRENT_TEST_FAILED; + + // create a named contact and save it + QContact savedContact; + + setupTestContact(savedContact); + CHECK_CURRENT_TEST_FAILED; + + saveContact(savedContact); + CHECK_CURRENT_TEST_FAILED; + mLocalIds.clear(); + + // fetch the saved contact + QContact fetchedContact; + fetchContact(mNameFilter, fetchedContact); + CHECK_CURRENT_TEST_FAILED; + + QVERIFY(0 != fetchedContact.localId()); + + // check that the fetched contact has the expected properties + QList details(fetchedContact.details(QContactName::DefinitionName)); + + QCOMPARE(details.count(), 1); + QCOMPARE(details[0].value(QContactName::FieldFirstName), mFirstName); + QCOMPARE(details[0].value(QContactName::FieldLastName), mLastName); + + details = fetchedContact.details(QContactUrl::DefinitionName); + + QEXPECT_FAIL("", "cannot restore URL field right now", Continue); + + QCOMPARE(details.count(), 1); + QCOMPARE(details[0].value(QContactUrl::FieldUrl), mWebPage); +} + +QTEST_MAIN(ut_qtcontacts_fetch) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,74 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 UT_QTCONTACTS_TRACKERPLUGIN_FETCH_H +#define UT_QTCONTACTS_TRACKERPLUGIN_FETCH_H + +#include "ut_qtcontacts_common.h" + +QTM_USE_NAMESPACE + +class ut_qtcontacts_fetch : public ut_qtcontacts_common +{ + Q_OBJECT + +public: + ut_qtcontacts_fetch(); + +private slots: + void checkDatabaseEmpty(); + + void testSaveContact(); + void testSaveContactCopy(); + void testFetchSavedContact(); + +private: + void setupTestContact(QContact &contact); + + QContactDetailFilter mNameFilter; + + QString mUuid; + QString mFirstName; + QString mLastName; + QString mWebPage; +}; + +#endif /* UT_QTCONTACTS_TRACKERPLUGIN_FETCH_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,11 @@ +include(../ut_qtcontacts_common/ut_qtcontacts_common.pri) + +TARGET = ut_qtcontacts_fetch + +test.depends = all +QMAKE_EXTRA_TARGETS += test +QCONTACTS_TRACKER_BACKENDDIR = ../../ + +## Include unit test files +HEADERS += ut_qtcontacts_fetch.h +SOURCES += ut_qtcontacts_fetch.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_sparql/ut_qtcontacts_sparql.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_sparql/ut_qtcontacts_sparql.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,209 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "ut_qtcontacts_sparql.h" + +#include +#include +#include +#include + +#include +#include + +#include + +using namespace SopranoLive; + +ut_qtcontacts_sparql::ut_qtcontacts_sparql() +{ + const QString uuid(QUuid::createUuid()); + + mFirstName = "ut_qtcontacts_sparql_firstname_" + uuid; + mLastName = "ut_qtcontacts_sparql_lastname_" + uuid; + mPhoneNumber = "ut_qtcontacts_sparql_phone_" + uuid; + mPhoneNumber = mPhoneNumber.replace('-', '_'); + + mNameFilter.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + mNameFilter.setMatchFlags(QContactFilter::MatchExactly); + mNameFilter.setValue(mFirstName); +} + +void ut_qtcontacts_sparql::setupTestContact(QContact &contact) +{ + // attach a name to the contact + QContactName name; + + name.setFirstName(mFirstName); + name.setLastName(mLastName); + + QVERIFY(contact.saveDetail(&name)); + + // attach a phone number to the contact + QContactPhoneNumber phone; + + phone.setSubTypes(QContactPhoneNumber::SubTypeMobile); + phone.setContexts(QContactPhoneNumber::ContextHome); + phone.setNumber(mPhoneNumber); + + QVERIFY(contact.saveDetail(&phone)); +} + +void ut_qtcontacts_sparql::checkDatabaseEmpty() +{ + // try to sparql our testing contact + QContactFetchRequest request; + + request.setManager(mContactManager); + request.setFilter(mNameFilter); + request.start(); + + // wait for the request to finish + waitForRequest(request); + CHECK_CURRENT_TEST_FAILED; + + // verify that there really is no test contact yet + QVERIFY(request.isFinished()); + QVERIFY(request.contacts().isEmpty()); +} + +template +void ut_qtcontacts_sparql::checkOntology(QContactLocalId contactId, int expectedCount) +{ + // fetch contact from tracker + const QUrl id(QString("contact:%1").arg(contactId)); + Live contact = ::tracker()->liveNode(id); + QCOMPARE(contact->getContactUID(), QString::number(contactId)); + + // check first name property of the contact + const QStringList givenNames(contact->getNameGivens()); + QCOMPARE(givenNames.count(), 1); + QCOMPARE(givenNames[0], mFirstName); + + // check last name property of the contact + const QStringList familyNames(contact->getNameFamilys()); + QCOMPARE(familyNames.count(), 1); + QCOMPARE(familyNames[0], mLastName); + + // check if the contact has the expected number of phone numbers + const QList< Live > hasPhoneNumbers(contact->getHasPhoneNumbers()); + QCOMPARE(hasPhoneNumbers.count(), expectedCount); + + // check if the contact's actual phone number + const QStringList phoneNumbers(hasPhoneNumbers[0]->getPhoneNumbers()); + QCOMPARE(phoneNumbers.count(), 1); + QCOMPARE(phoneNumbers[0], mPhoneNumber); +} + +void ut_qtcontacts_sparql::testSaveContact() +{ + // check that we start with a clean database + checkDatabaseEmpty(); + CHECK_CURRENT_TEST_FAILED; + + // create a named contact and save it + QContact contact; + + setupTestContact(contact); + CHECK_CURRENT_TEST_FAILED; + + saveContact(contact); + CHECK_CURRENT_TEST_FAILED; + + // now use RDF queries to check what landed within the database + checkOntology(contact.localId()); + CHECK_CURRENT_TEST_FAILED; +} + +// this test basically checks for NB#158859 +void ut_qtcontacts_sparql::testModifyContact() +{ + // check that we start with a clean database + checkDatabaseEmpty(); + CHECK_CURRENT_TEST_FAILED; + + // create a named contact and save it + QContact contact; + + setupTestContact(contact); + CHECK_CURRENT_TEST_FAILED; + + saveContact(contact); + CHECK_CURRENT_TEST_FAILED; + + // check that the contact's phone number has the expected subtype + QList details(contact.details(QContactPhoneNumber::DefinitionName)); + QCOMPARE(details.count(), 1); + + QContactPhoneNumber phoneNumber(details[0]); + QCOMPARE(phoneNumber.subTypes(), QStringList(QContactPhoneNumber::SubTypeMobile)); + + // modify the phone number's subtype and save the modified contact + phoneNumber.setSubTypes(QContactPhoneNumber::SubTypeFacsimile); + QVERIFY(contact.saveDetail(&phoneNumber)); + + saveContact(contact); + CHECK_CURRENT_TEST_FAILED; + + // check that the saved contact's phone number has the expected subtype + details = contact.details(QContactPhoneNumber::DefinitionName); + QCOMPARE(details.count(), 1); + + phoneNumber = details[0]; + QCOMPARE(phoneNumber.subTypes(), QStringList(QContactPhoneNumber::SubTypeFacsimile)); + + // now use RDF queries to check what landed within the database + checkOntology(contact.localId()); + CHECK_CURRENT_TEST_FAILED; + + // we should have got a fax number assigned... + checkOntology(contact.localId()); + CHECK_CURRENT_TEST_FAILED; + + checkOntology(contact.localId()); + CHECK_CURRENT_TEST_FAILED; + + // ...and the cell phone numbers shall be gone + checkOntology(contact.localId(), 0); + CHECK_CURRENT_TEST_FAILED; +} + +QTEST_MAIN(ut_qtcontacts_sparql) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_sparql/ut_qtcontacts_sparql.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_sparql/ut_qtcontacts_sparql.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,76 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 UT_QTCONTACTS_TRACKERPLUGIN_SPARQL_H +#define UT_QTCONTACTS_TRACKERPLUGIN_SPARQL_H + +#include "ut_qtcontacts_common.h" + +QTM_USE_NAMESPACE + +class ut_qtcontacts_sparql : public ut_qtcontacts_common +{ + Q_OBJECT + +public: + ut_qtcontacts_sparql(); + +// private slots are called by the QTest framework. +private slots: + // Test functions: + void checkDatabaseEmpty(); + void testSaveContact(); + void testModifyContact(); + +private: + void setupTestContact(QContact &contact); + + template + void checkOntology(QContactLocalId contactId, int expectedCount = 1); + + QContactDetailFilter mNameFilter; + + QString mFirstName; + QString mLastName; + QString mPhoneNumber; +}; + +#endif /* UT_QTCONTACTS_TRACKERPLUGIN_SPARQL_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_sparql/ut_qtcontacts_sparql.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_sparql/ut_qtcontacts_sparql.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,11 @@ +include(../ut_qtcontacts_common/ut_qtcontacts_common.pri) + +TARGET = ut_qtcontacts_sparql + +test.depends = all +QMAKE_EXTRA_TARGETS += test +QCONTACTS_TRACKER_BACKENDDIR = ../../ + +## Include unit test files +HEADERS += ut_qtcontacts_sparql.h +SOURCES += ut_qtcontacts_sparql.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/.gitignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/.gitignore Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1 @@ +ut_qtcontacts_trackerplugin diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/contactmanager.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/contactmanager.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,59 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "contactmanager.h" + +QContactManager* ContactManager::instance_ = 0; + +ContactManager::ContactManager() { + // empty on purpose +} + +QContactManager* ContactManager::instance() +{ + // do we have an instance? this is all just normal boring singleton stuff + if ( ContactManager::instance_ == 0 ) { + ContactManager::instance_ = new QContactManager("tracker"); + } + + return ContactManager::instance_; +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/contactmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/contactmanager.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,72 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 CONTACTMANAGER_H +#define CONTACTMANAGER_H + +#include + +QTM_USE_NAMESPACE + +/** + * Constructs a single instance of QContactManager for "tracker" + * backend. This way the plugin loading is done only once. For other + * backends use the QContactManager constructor directly. + */ +class ContactManager +{ + public: + /** + * Public static getter for the singleton instance. + * + * @return CStateManager instance or NULL in case of memory allocation error. + */ + static QContactManager * instance (); + + private: + ContactManager(); //Private to make instantiation impossible + + //! the singleton instance of actual contact manager + static QContactManager* instance_; +}; + +#endif // CONTACTMANAGER_H + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1820 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "ut_qtcontacts_trackerplugin.h" + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "contactmanager.h" + +// update this when creating debian package +const QString PATH_TO_SPARQL_TESTS("./ut_qtcontacts_trackerplugin_data"); + +ut_qtcontacts_trackerplugin::ut_qtcontacts_trackerplugin() +{ + +} + +void ut_qtcontacts_trackerplugin::initTestCase() +{ + QMap trackerEngineParams; + trackerEngine = new QContactTrackerEngine(trackerEngineParams); + errorMap = new QMap(); +} + +void ut_qtcontacts_trackerplugin::testContacts() +{ + QContact c1; + QContact c2; + + trackerEngine->saveContact(&c1, error); + trackerEngine->saveContact(&c2, error); + QVERIFY2((error == QContactManager::NoError),"Saving contact"); + QList contacts = trackerEngine->contactIds(queryFilter, sortOrders, error); + QVERIFY2(contacts.contains(c1.localId()), "Previously added contact is not found"); + QVERIFY2(contacts.contains(c2.localId()), "Previously added contact is not found"); +} + +void ut_qtcontacts_trackerplugin::testContact() +{ + // Test invalid contact id + QContact invalidContact = trackerEngine->contact_impl( -1, QStringList(), error); + QVERIFY(error != QContactManager::NoError); + + // Add a contact + QContact newContact; + const QContactLocalId oldid = newContact.localId(); + QVERIFY( trackerEngine->saveContact( &newContact, error ) ); + + QContactLocalId id = newContact.localId(); + QVERIFY( id != oldid ); + + // Find the added contact + QContact c = trackerEngine->contact_impl( id, QStringList(), error ); + QVERIFY( c.localId() == newContact.localId() ); +} + +void ut_qtcontacts_trackerplugin::testSaveName() +{ + QContact c; + QContactLocalId initialId = c.localId(); + int detailsAdded = 0; + + QMap nameValues; + QContactName name; + nameValues.insert(QLatin1String(QContactName::FieldPrefix), "Mr"); + nameValues.insert(QLatin1String(QContactName::FieldFirst), "John"); + nameValues.insert(QLatin1String(QContactName::FieldMiddle), "Rupert"); + nameValues.insert(QLatin1String(QContactName::FieldLast), "Doe"); +// nameValues.insert(QContactName::FieldSuffix, "III"); + + foreach (QString field, nameValues.keys()) { + name.setValue(field, nameValues.value(field)); + } + c.saveDetail(&name); + + QContactNickname nick; + nick.setValue(QLatin1String(QContactNickname::FieldNickname), "Johnny"); + c.saveDetail(&nick); + + QVERIFY(c.detail().prefix() == "Mr"); + QVERIFY(c.detail().firstName() == "John"); + QVERIFY(c.detail().middleName() == "Rupert"); + QVERIFY(c.detail().lastName() == "Doe"); + QVERIFY(c.detail().nickname() == "Johnny"); + + detailsAdded++; + + trackerEngine->saveContact(&c, error); + QCOMPARE(error, QContactManager::NoError); + QVERIFY(c.localId() != initialId); + QContact contact = this->contact(c.localId()); + QList details = contact.details(); + QList details2 = contact.details(); + QCOMPARE(details.count(), detailsAdded); + QCOMPARE(details2.count(), detailsAdded); + // Name is unique + foreach(QString field, nameValues.keys()) { + QCOMPARE(details.at(0).value(field), nameValues.value(field)); + } + QCOMPARE(details2.at(0).value(QLatin1String(QContactNickname::FieldNickname)), QString("Johnny")); + + // Try changing the name of the saved contact. + { + QMap nameValues; + QContactName name = c.detail(); + nameValues.insert(QLatin1String(QContactName::FieldPrefix), "Mr2"); + nameValues.insert(QLatin1String(QContactName::FieldFirst), "John2"); + nameValues.insert(QLatin1String(QContactName::FieldMiddle), "Rupert2"); + nameValues.insert(QLatin1String(QContactName::FieldLast), ""); + // nameValues.insert(QContactName::FieldSuffix, "III"); + + foreach (QString field, nameValues.keys()) { + name.setValue(field, nameValues.value(field)); + } + c.saveDetail(&name); + + QContactNickname nick = c.detail(); + nick.setValue(QLatin1String(QContactNickname::FieldNickname), "Johnny2"); + c.saveDetail(&nick); + + + QVERIFY(trackerEngine->saveContact(&c, error)); + QCOMPARE(error, QContactManager::NoError); + QVERIFY(c.localId() != initialId); + + QContact contact = trackerEngine->contact_impl(c.localId(), QStringList(), error); + QCOMPARE(error, QContactManager::NoError); + QList details = contact.details(); + QList details2 = contact.details(); + QCOMPARE(details.count(), detailsAdded); + QCOMPARE(details2.count(), detailsAdded); + // Name is unique + foreach(QString field, nameValues.keys()) { + QCOMPARE(details.at(0).value(field), nameValues.value(field)); + } + QCOMPARE(details2.at(0).value(QLatin1String(QContactNickname::FieldNickname)), QString("Johnny2")); + + // now try to add new name detail fails - this is how currently unique fields are implemented + // so cover it in unit tests + QContactName name1; + name1.setValue(QContactName::FieldFirst, "Something that wont be stored as name is unique"); + c.saveDetail(&name1); + // validate that unique name is not saved + QVERIFY(!trackerEngine->saveContact(&c, error)); + details = contact.details(); + details2 = contact.details(); + QCOMPARE(details.count(), detailsAdded); + QCOMPARE(details2.count(), detailsAdded); + } +} + +void ut_qtcontacts_trackerplugin::testSavePhoneNumber() +{ + // use the same values for 2 contacts + for (int i = 0; i <2; i++ ) + { + QContact c; + QContactLocalId initialId = c.localId(); + int detailsAdded = 0; + QContactName name; + name.setFirstName("I have phone numbers"); + name.setLastName("Girl"); + c.saveDetail(&name); + + // key: phonenumber; value: context,subtype + QMap > phoneValues; + + phoneValues.insert("(704)486-6472", QPair(QLatin1String(QContactDetail::ContextHome), QString())); + phoneValues.insert("(765)957-1663", QPair(QLatin1String(QContactDetail::ContextHome), QString())); + phoneValues.insert("(999)888-1111", QPair(QLatin1String(QContactDetail::ContextHome), + QLatin1String(QContactPhoneNumber::SubTypeMobile))); + + phoneValues.insert("(792)123-6113", QPair(QLatin1String(QContactDetail::ContextWork), QString())); + phoneValues.insert("(918)491-7361", QPair(QLatin1String(QContactDetail::ContextWork), + QLatin1String(QContactPhoneNumber::SubTypeMobile))); + phoneValues.insert("(412)670-1514", QPair(QLatin1String(QContactDetail::ContextWork), + QLatin1String(QContactPhoneNumber::SubTypeCar))); + QMap > formattedPhoneValues; + + + foreach (QString number, phoneValues.keys()) { + QContactPhoneNumber phone; + phone.setNumber(number); + // Stripped automatically on saving RFC 3966 visual-separators reg exp "[(|-|.|)| ]" + formattedPhoneValues.insert(QString(number).replace( QRegExp("[\\(|" \ + "\\-|" \ + "\\.|" \ + "\\)|" \ + " ]"), ""),phoneValues.value(number)); + if (!phoneValues.value(number).first.isEmpty()) { + phone.setContexts(phoneValues.value(number).first); + } + if (!phoneValues.value(number).second.isEmpty()) { + phone.setSubTypes(phoneValues.value(number).second); + } + c.saveDetail(&phone); + detailsAdded++; + } + + trackerEngine->saveContact(&c, error); + QCOMPARE(error, QContactManager::NoError); + QVERIFY(c.localId() != initialId); + // wait for commit transaction to be done, no signals yet + for(int i = 0; i < 100; i++) + { + usleep(10000); + QCoreApplication::processEvents(); + } + + + // verify with synchronous read too + QContact contact = trackerEngine->contact_impl(c.localId(), QStringList(), error); + QCOMPARE(error, QContactManager::NoError); + QList details = contact.details(); + + + QCOMPARE(details.count(), detailsAdded); + + + foreach (QContactPhoneNumber detail, details) { + // Verify that the stored values and attributes are the same as given + QVERIFY(formattedPhoneValues.contains(detail.number())); + QCOMPARE(detail.contexts()[0], formattedPhoneValues.value(detail.number()).first); + if( formattedPhoneValues.value(detail.number()).second.isEmpty()) // default empty is voice + QCOMPARE(detail.subTypes()[0], QLatin1String(QContactPhoneNumber::SubTypeVoice)); + else + QCOMPARE(detail.subTypes()[0], formattedPhoneValues.value(detail.number()).second); + } + + // edit one of numbers . values, context and subtypes and save again + QString editedPhoneValue = "+7044866473"; + QContactPhoneNumber phone = details[0]; + phone.setNumber(editedPhoneValue); + phone.setContexts(QContactDetail::ContextWork); + phone.setSubTypes(QContactPhoneNumber::SubTypeMobile); + c = contact; + c.saveDetail(&phone); + trackerEngine->saveContact(&c, error); + QCOMPARE(error, QContactManager::NoError); + c = this->contact(c.localId(), QStringList()<(); + QCOMPARE(details.count(), detailsAdded); + bool found = false; + foreach (QContactPhoneNumber detail, details) { + if(detail.number() == phone.number()) + { + found = true; + QVERIFY(detail.subTypes().contains(QContactPhoneNumber::SubTypeMobile)); + QVERIFY(detail.contexts().contains(QContactPhoneNumber::ContextWork)); + break; + } + } + QVERIFY(found); + } +} + +void ut_qtcontacts_trackerplugin::testPhoneNumberContext() +{ + QContact c; + QContactPhoneNumber phone; + phone.setContexts(QContactDetail::ContextHome); + phone.setNumber("555-888"); + phone.setSubTypes(QContactPhoneNumber::SubTypeMobile); + c.saveDetail(&phone); + QContact contactToSave = c; + // Let's do this all twice, first time save new detail, and next iteration change the context + for (int iterations = 0; iterations < 2; iterations++) { + QVERIFY(trackerEngine->saveContact(&contactToSave, error)); + // wait for commit transaction to be done, no signals yet + for(int i = 0; i < 100; i++) { + usleep(10000); + QCoreApplication::processEvents(); + } + + QContactFetchRequest request; + QContactLocalIdFilter filter; + QList ids; + ids.append(contactToSave.localId()); + filter.setIds(ids); + request.setFilter(filter); + + QStringList details; + details << QContactPhoneNumber::DefinitionName; + request.setDefinitionRestrictions(details); + + Slots slot; + QObject::connect(&request, SIGNAL(resultsAvailable()), + &slot, SLOT(resultsAvailable())); + + trackerEngine->startRequest(&request); + + for(int i = 0; i < 100; i++) { + usleep(100000); + QCoreApplication::processEvents(); + if(request.isFinished() ) + break; + } + + // if it takes more, then something is wrong + QVERIFY(request.isFinished()); + QVERIFY(!slot.contacts.isEmpty()); + + QContact contactToTest; + foreach (QContact savedContact, slot.contacts) { + if (savedContact.localId() == contactToSave.localId()) { + contactToTest = savedContact; + } + } + QVERIFY(contactToTest.localId() == contactToSave.localId()); // Just to be sure we got the saved contact + qDebug()<().count(); + + QVERIFY(contactToTest.details().count() == 1); + if (0 == iterations) { + // perform context change + QContactPhoneNumber phoneToEdit = contactToTest.detail(); + phoneToEdit.setContexts(QContactDetail::ContextWork); + contactToTest.saveDetail(&phoneToEdit); + contactToSave = contactToTest; + } + QVERIFY(contactToTest.details().count() == 1); + } +} + +void ut_qtcontacts_trackerplugin::testWritingOnlyWorkMobile() +{ + QContact c; + QContactPhoneNumber phone; + phone.setContexts(QContactDetail::ContextWork); + phone.setNumber("555999"); + phone.setSubTypes(QContactPhoneNumber::SubTypeMobile); + c.saveDetail(&phone); + QContact& contactToSave = c; + QVERIFY(trackerEngine->saveContact(&contactToSave, error)); + // wait for commit transaction to be done, no signals yet + for(int i = 0; i < 100; i++) { + usleep(10000); + QCoreApplication::processEvents(); + } + + QContactFetchRequest request; + QContactLocalIdFilter filter; + QList ids; + ids.append(contactToSave.localId()); + filter.setIds(ids); + request.setFilter(filter); + QStringList details; + details << QContactPhoneNumber::DefinitionName; + request.setDefinitionRestrictions(details); + + Slots slot; + QObject::connect(&request, SIGNAL(resultsAvailable()), + &slot, SLOT(resultsAvailable())); + + trackerEngine->startRequest(&request); + + for(int i = 0; i < 100; i++) { + usleep(100000); + QCoreApplication::processEvents(); + if(request.isFinished() ) + break; + } + + // if it takes more, then something is wrong + QVERIFY(request.isFinished()); + QVERIFY(!slot.contacts.isEmpty()); + + QContact contactToTest; + foreach (QContact savedContact, slot.contacts) { + if (savedContact.localId() == c.localId()) { + contactToTest = savedContact; + } + } + QVERIFY(contactToTest.localId() == c.localId()); // Just to be sure we got the saved contact + QVERIFY(contactToTest.details().count() == 1); + QVERIFY(contactToTest.detail().number() == phone.number()); + QVERIFY(contactToTest.detail().subTypes() == phone.subTypes()); + QVERIFY(contactToTest.detail().contexts() == phone.contexts()); +} + +void ut_qtcontacts_trackerplugin::testSaveAddress() +{ + QContact c; + QContactName name; + name.setFirstName("Aruba & Barbados"); + name.setLastName("Girl"); + c.saveDetail(&name); + QContactLocalId initialId = c.localId(); + int detailsAdded = 0; + + // List of pairs of field-value map and context + typedef QMap typeAddress; + typedef QPair typeAddressWithContext; + QList addressValues; + + // TODO check status of 137174 and other libqttracker1pre6 bugs before refactoring + typeAddress values; + values.insert(QLatin1String(QContactAddress::FieldCountry), "Barbados"); + values.insert(QLatin1String(QContactAddress::FieldPostcode), "55555"); + values.insert(QLatin1String(QContactAddress::FieldStreet), "Martindales Rd"); + values.insert(QLatin1String(QContactAddress::FieldRegion), "Bridgetown"); + addressValues.append(typeAddressWithContext(values, QLatin1String(QContactDetail::ContextHome))); + values.clear(); + values.insert(QLatin1String(QContactAddress::FieldCountry), "Aruba"); + values.insert(QLatin1String(QContactAddress::FieldPostcode), "44444"); + values.insert(QLatin1String(QContactAddress::FieldStreet), "Brazilie Straat"); + values.insert(QLatin1String(QContactAddress::FieldRegion), "Oranjestad"); + addressValues.append(typeAddressWithContext(values, QLatin1String(QContactDetail::ContextHome))); + values.clear(); + values.insert(QLatin1String(QContactAddress::FieldCountry), "ArubaWork"); + values.insert(QLatin1String(QContactAddress::FieldPostcode), "44445"); + values.insert(QLatin1String(QContactAddress::FieldStreet), "Sunset Blvd"); + values.insert(QLatin1String(QContactAddress::FieldRegion), "Oranjestad"); + addressValues.append(typeAddressWithContext(values, QLatin1String(QContactDetail::ContextHome))); + foreach (typeAddressWithContext addressWithContext, addressValues) { + QContactAddress address; + foreach (QString field, addressWithContext.first.keys()) { + address.setValue(field, addressWithContext.first.value(field)); + } + address.setContexts(addressWithContext.second); + c.saveDetail(&address); + detailsAdded++; + } + + trackerEngine->saveContact(&c, error); + QCOMPARE(error, QContactManager::NoError); + QVERIFY(c.localId() != initialId); + QContact contact = trackerEngine->contact_impl(c.localId(), QStringList(), error); + QList details = contact.details(); + QCOMPARE(details.count(), detailsAdded); + bool found = false; + // Test if inserted values are found in some of the details + foreach (typeAddressWithContext addressWithContext, addressValues) { + foreach (QContactAddress detail, details) { + foreach (QString field, addressWithContext.first.keys()) { + found = (detail.value(field) == addressWithContext.first.value(field)); + if (!found) + break; + } + if (found) + break; + } + QVERIFY2(found, "Inserted detail was not found in the fetched details"); + } +} + +void ut_qtcontacts_trackerplugin::testSaveEmailAddress() +{ + QContact c; + QContactLocalId initialId = c.localId(); + int detailsAdded = 0; + + QMap values; + values.insert("john.does@hotmail.com", QContactDetail::ContextHome); + values.insert("john.doe@gmail.com", QContactDetail::ContextWork); + values.insert("john.doe@nokia.com", QContactDetail::ContextWork); + values.insert("john.doe@johndoe.com", QContactDetail::ContextHome); + foreach(QString address, values.keys()) { + QContactEmailAddress emailAddress; + emailAddress.setEmailAddress(address); + emailAddress.setContexts(values.value(address)); + c.saveDetail(&emailAddress); + detailsAdded++; + } + QContactName name; + name.setFirstName("Jo"); + name.setLastName("H N Doe"); + c.saveDetail(&name); + trackerEngine->saveContact(&c, error); + QCOMPARE(error, QContactManager::NoError); + QVERIFY(c.localId() != initialId); + QContact contact = trackerEngine->contact_impl(c.localId(), QStringList(), error); + QList details = contact.details(); + QCOMPARE(details.count(), detailsAdded); + foreach (QContactEmailAddress detail, details) { + QString address = detail.value(QContactEmailAddress::FieldEmailAddress); + QVERIFY(values.contains(address)); + QCOMPARE(detail.contexts()[0], values.value(address)); + } +} + +void ut_qtcontacts_trackerplugin::testRemoveContact() +{ + QContact c; + QContactPhoneNumber phone; + phone.setNumber("+358501234567"); + c.saveDetail(&phone); + QContactEmailAddress email; + email.setEmailAddress("super.man@hotmail.com"); + c.saveDetail(&email); + QContactName name; + name.setFirstName("Super"); + name.setLastName("Man"); + c.saveDetail(&name); + + QVERIFY2(trackerEngine->saveContact(&c, error) && error == QContactManager::NoError, "Saving a contact failed"); + QVERIFY2(trackerEngine->removeContact(c.localId(), error), "Removing a contact failed"); + QCOMPARE(error, QContactManager::NoError); + QVERIFY2(trackerEngine->contact_impl(c.localId(), QStringList(), error) == QContact(), "Found a contact, which should have been removed"); +} + +void ut_qtcontacts_trackerplugin::testSaveContacts() +{ + QList contacts; + for (int i = 0; i < 3; i++) { + QContact c; + QContactName name; + name.setFirstName("John"); + name.setLastName(QString::number(i,10)); + c.saveDetail(&name); + contacts.append(c); + } + + QMap* errorMap; + trackerEngine->saveContacts(&contacts, errorMap, error); + QCOMPARE(error, QContactManager::NoError); + for (int i = 0; i < contacts.count(); i++) { + QVERIFY(contacts[i].localId() != 0); + QList details = trackerEngine->contact_impl(contacts[i].localId(), QStringList(), error).details(); + QVERIFY(details.count()); + QCOMPARE(details.at(0).lastName(), + QString("%1").arg(QString::number(i,10))); + } +} + +void ut_qtcontacts_trackerplugin::testRemoveContacts() +{ + QList addedIds; + for (int i = 0; i < 5; i++) { + QContact c; + QContactName name; + name.setFirstName(QString("John%1").arg(QString::number(i,10))); + c.saveDetail(&name); + QVERIFY2(trackerEngine->saveContact(&c, error) && error == QContactManager::NoError, "Saving a contact failed"); + addedIds.append(c.localId()); + } + QList toApiRemove; + toApiRemove.append(addedIds.takeLast()); + toApiRemove.append(addedIds.takeLast()); + QList toPluginRemove(addedIds); + // Remove all, but last of the added contacts + bool success = trackerEngine->removeContacts(&toPluginRemove, errorMap, error); + QCOMPARE(success, true); + for (int i = 0; i < errorMap->count(); i++) { + QVERIFY(toPluginRemove[i] == 0); + } + QCOMPARE(error, QContactManager::NoError); + + success = ContactManager::instance()->removeContacts(&toApiRemove, errorMap); + QCOMPARE(success, true); + for (int i = 0; i < errorMap->count(); i++) { + QVERIFY(toApiRemove[i] == 0); + } + + // Try to remove some previously removed contacts, but one valid contact + success = trackerEngine->removeContacts(&addedIds, errorMap, error); + QCOMPARE(errorMap->count(), addedIds.count()); + for (int i = 0; i < errorMap->count() - 1; i++) { + QVERIFY2(addedIds[i] != 0, "Manager should not mark id as zero"); + } +} + +void ut_qtcontacts_trackerplugin::testAvatar() +{ + QContact contactWithAvatar; + QContactAvatar avatar; + + avatar.setAvatar("file:///home/user/.contacts/avatars/default_avatar.png"); + contactWithAvatar.saveDetail(&avatar); + QContactName name; + name.setFirstName("John");name.setLastName("A Frog"); + contactWithAvatar.saveDetail(&name); + QVERIFY(trackerEngine->saveContact( &contactWithAvatar, error)); + + QContact c = trackerEngine->contact_impl( contactWithAvatar.localId(), QStringList(), error); + QList avatars = c.details(); + QVERIFY( avatars.size() ); + QCOMPARE( avatars[0].avatar(), avatar.avatar() ); +} + +void ut_qtcontacts_trackerplugin::testUrl() +{ + + //Context home, homepage url + QContact contactWithUrl1; + QContactUrl url1; + url1.setUrl("http://home.homepage"); + url1.setContexts(QContactDetail::ContextHome); + url1.setSubType(QContactUrl::SubTypeHomePage); + QContactName name; + name.setFirstName("John");name.setLastName("TestUrl1"); + contactWithUrl1.saveDetail(&name); + contactWithUrl1.saveDetail(&url1); + QVERIFY(trackerEngine->saveContact(&contactWithUrl1, error)); + + //Context work, homepage url + QContact contactWithUrl2; + QContactUrl url2; + url2.setUrl("http://work.homepage"); + url2.setContexts(QContactDetail::ContextWork); + url2.setSubType(QContactUrl::SubTypeHomePage); + QContactName name2; + name2.setLastName("TestUrl2"); + contactWithUrl2.saveDetail(&name2); + contactWithUrl2.saveDetail(&url2); + QVERIFY(trackerEngine->saveContact(&contactWithUrl2, error)); + + //Context home, favourite url + QContact contactWithUrl3; + QContactUrl url3; + url3.setUrl("http://home.favourite"); + url3.setContexts(QContactDetail::ContextHome); + url3.setSubType(QContactUrl::SubTypeFavourite); + + name2.setLastName("TestUrl3"); + contactWithUrl3.saveDetail(&name2); + contactWithUrl3.saveDetail(&url3); + QVERIFY(trackerEngine->saveContact(&contactWithUrl3, error)); + + + QContactLocalId id1 = contactWithUrl1.localId(); + QContactLocalId id2 = contactWithUrl2.localId(); + QContactLocalId id3 = contactWithUrl3.localId(); + QCOMPARE(contact(id1).detail().url(), QString("http://home.homepage")); + QCOMPARE(contact(id2).detail().url(), QString("http://work.homepage")); + QCOMPARE(contact(id3).detail().url(), QString("http://home.favourite")); + + QVERIFY(contact(id1).detail().contexts()[0] == QContactDetail::ContextHome ); + QVERIFY(contact(id2).detail().contexts()[0] == QContactDetail::ContextWork ); + QVERIFY(contact(id3).detail().contexts()[0] == QContactDetail::ContextHome ); + + QVERIFY(contact(id1).detail().subType() == QContactUrl::SubTypeHomePage ); + QVERIFY(contact(id2).detail().subType() == QContactUrl::SubTypeHomePage ); + QVERIFY(contact(id3).detail().subType() == QContactUrl::SubTypeFavourite ); + +} + +/* +void ut_qtcontacts_trackerplugin::testGroups() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} + +void ut_qtcontacts_trackerplugin::testGroup() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} + +void ut_qtcontacts_trackerplugin::testSaveGroup() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} + +void ut_qtcontacts_trackerplugin::testRemoveGroup() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} + +void ut_qtcontacts_trackerplugin::testDetailDefinitions() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} + +void ut_qtcontacts_trackerplugin::testDetailDefinition() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} + +void ut_qtcontacts_trackerplugin::testSaveDetailDefinition() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} + +void ut_qtcontacts_trackerplugin::testRemoveDetailDefinition() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} +*/ + +void ut_qtcontacts_trackerplugin::testSyncContactManagerContactsAddedSince() +{ + // FIXME move this code out: not supposed to compile in and load the same code as dll plugin + QSKIP("Statically and dinamically linking the same code is not working", SkipAll); + + QDateTime start; + QList addedIds; + syncContactsAddedSinceHelper(start, addedIds); + + QContactChangeLogFilter filter(QContactChangeLogFilter::EventAdded); + filter.setSince(start); + + QList sortOrder; + + QList contactIds = ContactManager::instance()->contacts( filter, sortOrder, QStringList() ); + qDebug() << "addedIds" << addedIds.size(); + qDebug() << "contactIds" << contactIds.size(); + QVERIFY2( contactIds.size() == addedIds.size(), "Incorrect number of filtered contacts"); +} + +void ut_qtcontacts_trackerplugin::testSyncTrackerEngineContactsIdsAddedSince() +{ + QDateTime start; + QList addedIds; + syncContactsAddedSinceHelper(start, addedIds); + + QContactChangeLogFilter filter(QContactChangeLogFilter::EventAdded); + filter.setSince(start); + + QList sortOrder; + QContactManager::Error error; + + QList contactIds = trackerEngine->contactIds( filter, sortOrder, error ); + qDebug() << "addedIds" << addedIds; + qDebug() << "contactIds" << contactIds; + QVERIFY2( contactIds.size() == addedIds.size(), "Incorrect number of filtered contacts"); +} + +void ut_qtcontacts_trackerplugin::testSyncContactManagerContactIdsAddedSince() +{ + // FIXME move this code out: not supposed to compile in and load the same code as dll plugin + QSKIP("Statically and dinamically linking the same code is not working", SkipAll); + QDateTime start; + QList addedIds; + syncContactsAddedSinceHelper(start, addedIds); + QContactChangeLogFilter filter(QContactChangeLogFilter::EventAdded); + filter.setSince(start); + QList sortOrder; + + + QList contactIds = ContactManager::instance()->contactIds(filter, sortOrder); + qDebug() << "addedIds" << addedIds; + qDebug() << "contactIds" << contactIds; + QVERIFY2( contactIds.size() == addedIds.size(), "Incorrect number of filtered contacts"); +} + + +void ut_qtcontacts_trackerplugin::syncContactsAddedSinceHelper(QDateTime& start, QList& addedIds) +{ + for (int i = 0; i < 3; i++) { + QContact c; + QContactName name; + name.setFirstName("A"+QString::number(i)); + QVERIFY2(c.saveDetail(&name), "Failed to save detail"); + QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); + } + + QTest::qWait(1000); + start = QDateTime::currentDateTime(); + + for (int i = 0; i < 3; i++) { + QContact c; + QContactName name; + name.setFirstName("B"+QString::number(i)); + QVERIFY2(c.saveDetail(&name), "Failed to save detail"); + QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); + addedIds.append(c.localId()); + } +} + +void ut_qtcontacts_trackerplugin::testContactsAddedSince() +{ + QList addedIds; + QDateTime start; + for (int i = 0; i < 3; i++) { + QContact c; + QContactName name; + name.setFirstName("A"+QString::number(i)); + QVERIFY2(c.saveDetail(&name), "Failed to save detail"); + QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); + } + + QTest::qWait(1000); + start = QDateTime::currentDateTime(); + + for (int i = 0; i < 3; i++) { + QContact c; + QContactName name; + name.setFirstName("B"+QString::number(i)); + QVERIFY2(c.saveDetail(&name), "Failed to save detail"); + QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); + addedIds.append(c.localId()); + } + + // now one asynchronous request to read all the + QContactFetchRequest request; + QContactChangeLogFilter filter(QContactChangeLogFilter::EventAdded); + filter.setSince(start); + request.setFilter(filter); + + // here You specify which details are of interest + QStringList details; + details << QContactAvatar::DefinitionName + << QContactBirthday::DefinitionName + << QContactAddress::DefinitionName + << QContactEmailAddress::DefinitionName + << QContactDisplayLabel::DefinitionName + << QContactGender::DefinitionName + << QContactAnniversary::DefinitionName + << QContactName::DefinitionName + << QContactOnlineAccount::DefinitionName + << QContactOrganization::DefinitionName + << QContactPhoneNumber::DefinitionName; + request.setDefinitionRestrictions(details); + + Slots slot; + QObject::connect(&request, SIGNAL(resultsAvailable()), + &slot, SLOT(resultsAvailable())); + + // start. clients should, instead of following use + // request.setManager(trackermanagerinstance); + // request.start(); + trackerEngine->startRequest(&request); + trackerEngine->waitForRequestFinished(&request, 10000); + // if it takes more, then something is wrong + QVERIFY(request.isFinished()); + QCOMPARE(slot.contacts.count(), addedIds.count()); + + foreach(QContact cont, slot.contacts) { + QVERIFY2(addedIds.contains(cont.localId()), "One of the added contacts was not reported as added"); + } + + QContactLocalIdFetchRequest idreq; + filter.setSince(start); + idreq.setFilter(filter); + + Slots slot2; + QObject::connect(&idreq, SIGNAL(resultsAvailable()), + &slot2, SLOT(idResultsAvailable())); + trackerEngine->startRequest(&idreq); + trackerEngine->waitForRequestFinished(&idreq, 10000); + QVERIFY(idreq.isFinished()); + QCOMPARE(slot2.ids.count(), addedIds.count()); + foreach(QContactLocalId id, slot2.ids) { + QVERIFY2(addedIds.contains(id), "One of the added contacts was not reported as added"); + } + +} + +void ut_qtcontacts_trackerplugin::testContactsModifiedSince() +{ + QDateTime start; + QList addedIds; + QList modified; + + const int contactsToAdd = 5; + const int contactsToModify = 3; + QVERIFY2(contactsToAdd >= contactsToModify, "Cannot modify more contacts than this test has added"); + QVERIFY2(contactsToModify+1 <= contactsToAdd, "Cannot modify more contacts than this test has added"); + + // Add contacts with only first name and store them to list of added + for (int i = 0; i < contactsToAdd; i++) { + QContact c; + QContactName name; + name.setFirstName("A"+QString::number(i)); + QVERIFY2(c.saveDetail(&name), "Failed to save detail"); + QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); + addedIds.append(c.localId()); + } + + QTest::qWait(2000); + start = QDateTime::currentDateTime(); + + // Modify and save rest of the contacts + for (int i = 0; i < contactsToModify; i++) { + QContact c = contact(addedIds[i]); + QContactName name = c.detail(); + // Modify name + name.setFirstName("B"+QString::number(i)); + QVERIFY2(c.saveDetail(&name), "Failed to save detail"); + QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); + modified.append(c.localId()); + } + // Set filter + QContactChangeLogFilter filter(QContactChangeLogFilter::EventChanged); + filter.setSince(start); + + QContactLocalIdFetchRequest idfetch; + QContactFetchRequest fetch; + idfetch.setFilter(filter); + fetch.setFilter(filter); + trackerEngine->startRequest(&idfetch); + trackerEngine->waitForRequestFinished(&idfetch, 10000); + QVERIFY2(idfetch.isFinished(), "Id fetch request did not finish on time"); + QVERIFY2(idfetch.error() == QContactManager::NoError, "Id fetch request finished with errors"); + QList actuallyModifiedIds = idfetch.ids(); + trackerEngine->startRequest(&fetch); + trackerEngine->waitForRequestFinished(&fetch, 10000); + QVERIFY2(fetch.isFinished(), "Fetch request did not finish on time"); + QVERIFY2(fetch.error() == QContactManager::NoError, "Fetch request finished with errors"); + QList actuallyModified = fetch.contacts(); + + // Num of actually modified should be same as supposedly modified + QCOMPARE(actuallyModifiedIds.count(), modified.count()); + QCOMPARE(actuallyModified.count(), modified.count()); + // All the ids of the modified contacts should be found in the result list + foreach (QContactLocalId id, modified) { + QVERIFY2(actuallyModifiedIds.contains(id), "One the modified contacts was not reported as modified"); + } +} + +void ut_qtcontacts_trackerplugin::testContactsRemovedSince() +{ + QDateTime start = QDateTime::currentDateTime(); + QContactChangeLogFilter filter(QContactChangeLogFilter::EventRemoved); + filter.setSince(start); + QList sorts; + QList actuallyRemoved = trackerEngine->contactIds(filter, sorts, error); + QVERIFY(actuallyRemoved.isEmpty()); + QVERIFY(error == QContactManager::NotSupportedError); +} +/* +void ut_qtcontacts_trackerplugin::testGroupsAddedSince() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} + +void ut_qtcontacts_trackerplugin::testGroupsModifiedSince() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} + +void ut_qtcontacts_trackerplugin::testGroupsRemovedSince() +{ + qDebug() << "Not implemented"; + QVERIFY(false); +} +*/ + +void ut_qtcontacts_trackerplugin::cleanupTestCase() +{ + delete trackerEngine; + delete errorMap; +} + +void ut_qtcontacts_trackerplugin::cleanup() +{ + foreach (QContactLocalId id, addedContacts) { + trackerEngine->removeContact(id, error); + } + addedContacts.clear(); +} + + +void ut_qtcontacts_trackerplugin::testNcoTypes() +{ + using namespace SopranoLive; + + QList ids; + RDFVariable RDFContact = RDFVariable::fromType(); + RDFSelect query; + + query.addColumn("contact_uri", RDFContact); + query.addColumn("contactId", RDFContact.property()); + LiveNodes ncoContacts = ::tracker()->modelQuery(query); + foreach( Live p, ncoContacts ) { + QVERIFY(p.hasType()); + QVERIFY(p.hasType()); + QVERIFY(p.hasType()); + } +} + +void ut_qtcontacts_trackerplugin::testAsyncReadContacts() +{ + addedContacts.clear(); + // Add at least one contact to be sure that this doesn't fail because tracker is clean + + QStringList firstNames, lastNames; + firstNames << "aa" << "ab" << "ac" << "dd" << "fe"; + lastNames << "fe" << "ab" << "dd" << "dd" << "aa"; + for (int i = 0; i < firstNames.count(); i++) { + QContact c; + QContactName name; + name.setFirstName(firstNames.at(i)); + name.setLastName(lastNames.at(i)); + QContactAvatar avatar; + avatar.setAvatar("default_avatar.png"); + avatar.setSubType(QContactAvatar::SubTypeImage); + QVERIFY(c.saveDetail(&name)); + QVERIFY(c.saveDetail(&avatar)); + QVERIFY(trackerEngine->saveContact(&c, error)); + addedContacts.append(c.localId()); + } + + // Prepare the filter for the request - we really should test only the contact we add here. + QContactLocalIdFilter filter; + filter.setIds(addedContacts); + + // this one will get complete contacts + + Slots slot; + QContactFetchRequest request; + QList sorting; + QContactSortOrder sort, sort1; + sort.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldLast); + sort1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + sorting << sort << sort1; + QStringList details; details << QContactName::DefinitionName << QContactAvatar::DefinitionName; + request.setDefinitionRestrictions(details); + request.setSorting(sorting); + request.setFilter(filter); + + QObject::connect(&request, SIGNAL(resultsAvailable()), + &slot, SLOT(resultsAvailable())); + + // this one only ids + QContactLocalIdFetchRequest request1; + request1.setFilter(filter); + QObject::connect(&request1, SIGNAL(resultsAvailable()), + &slot, SLOT(idResultsAvailable())); + + // the purpose is to compare if all contacts are loaded, and + // if optional fields are defined properly in request + + // start both at once + trackerEngine->startRequest(&request); + trackerEngine->startRequest(&request1); + trackerEngine->waitForRequestFinished(&request, 10000); + trackerEngine->waitForRequestFinished(&request1, 10000); + + + // if it takes more, then something is wrong + QVERIFY(request.isFinished()); + QVERIFY(request1.isFinished()); + + // there need1 to be something added to be verified + QVERIFY(!request.contacts().isEmpty()); + // now ask for one contact + QVERIFY(!slot.contacts.isEmpty()); + // there need to be something added to be verified + QVERIFY(!request1.ids().isEmpty()); + // now ask for one contact + QVERIFY(!slot.ids.isEmpty()); + + QVERIFY2(slot.contacts.count() == slot.ids.count(), "not all contacts were loaded"); + QVERIFY(slot.contacts.count() >= firstNames.count()); + for( int i = 0; i < slot.contacts.size() -1 ; i++) + { + QContact contact = slot.contacts[i]; + QContact contact1 = slot.contacts[i+1]; + QString last0 = contact.detail().lastName(); + QString first0 = contact.detail().firstName(); + QString last1 = contact1.detail().lastName(); + QString first1 = contact1.detail().firstName(); + // sorting + qDebug() << "contacts:" << contact.localId() << first0 << last0; + bool test = last0 < last1 || (last0 == last1 && first0 <= first1); + if (!test) { + qDebug() << "contacts sort failed. First: " << contact1.localId() << first0 << last1 << "lasts: " << last0 << last1; + } + QVERIFY2(test, "Sorting failed."); + } + +} + +void ut_qtcontacts_trackerplugin::testFilterContacts() +{ + // this one will get complete contacts + QContact c; + QContactName name; + name.setFirstName("Zuba"); + name.setLastName("Zub"); + c.saveDetail(&name); + QContactPhoneNumber phone; + + phone.setNumber("4872444"); + c.saveDetail(&phone); + + QContactBirthday birthday; + birthday.setDate(QDate(2010, 2, 14)); + c.saveDetail(&birthday); + + trackerEngine->saveContact(&c, error); + + QStringList details; + details << QContactName::DefinitionName << QContactAvatar::DefinitionName + << QContactPhoneNumber::DefinitionName; + + QContactFetchRequest request; + QContactDetailFilter filter; + filter.setDetailDefinitionName(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber); + + Slots slot; + QObject::connect(&request, SIGNAL(resultsAvailable()), + &slot, SLOT(resultsAvailable())); + filter.setValue(QString("4872444")); + filter.setMatchFlags(QContactFilter::MatchEndsWith); + + request.setDefinitionRestrictions(details); + request.setFilter(filter); + + trackerEngine->startRequest(&request); + + for(int i = 0; i < 100; i++) + { + usleep(100000); + QCoreApplication::processEvents(); + if(request.isFinished() ) + break; + } + + // if it takes more, then something is wrong + QVERIFY(request.isFinished()); + QVERIFY(!request.contacts().isEmpty()); + + QVERIFY(!slot.contacts.isEmpty()); + + bool containsThisId = false; + foreach(const QContact &contact, slot.contacts) + { + if( contact.localId() == c.localId()) + containsThisId = true; + bool containsPhone = false; + foreach(const QContactDetail &detail, contact.details(QContactPhoneNumber::DefinitionName)) + { + if(detail.value(QContactPhoneNumber::FieldNumber).contains("4872444")) + { + containsPhone = true; + break; + } + } + QVERIFY(containsPhone); + } + QVERIFY(containsThisId); + + // filter by birthday range + QContactDetailRangeFilter rangeFilter; + rangeFilter.setDetailDefinitionName(QContactBirthday::DefinitionName, QContactBirthday::FieldBirthday); + // include lower & exclude upper by default + rangeFilter.setRange(QDate(2010, 2, 14), QDate(2010, 2, 15)); + QList contacts = trackerEngine->contacts(rangeFilter, QList(), QStringList()<< QContactBirthday::DefinitionName, error); + QVERIFY(!contacts.isEmpty()); + bool containsOurContact(false); + foreach(const QContact &cont, contacts) + { + QVERIFY(cont.detail().date() == QDate(2010, 2, 14)); + if( c.id() == cont.id() ) + containsOurContact = true; + } + QVERIFY(containsOurContact); +} + +void ut_qtcontacts_trackerplugin::testFilterContactsEndsWith() +{ + QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Nokia", "Trackerplugin"); + QString restoreValue = settings.value("phoneNumberMatchDigitCount", "7").toString(); + + QContact matchingContact; + QContactName name; + name.setFirstName("Zuba"); + name.setLastName("Zub"); + matchingContact.saveDetail(&name); + QContactPhoneNumber phone; + // TODO doesnt work yet phone.setContexts(QContactPhoneNumber::ContextWork); + phone.setNumber("3210987654321"); + matchingContact.saveDetail(&phone); + trackerEngine->saveContact(&matchingContact, error); + + QStringList details; + details << QContactName::DefinitionName << QContactAvatar::DefinitionName + << QContactPhoneNumber::DefinitionName; + + QContactFetchRequest request; + QContactDetailFilter filter; + filter.setDetailDefinitionName(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber); + + Slots slot; + QObject::connect(&request, SIGNAL(resultsAvailable()), + &slot, SLOT(resultsAvailable())); + + { + // test matching of 7 last digits + int matchCount = 7; + qDebug() << "Test matching of" << matchCount << "last digits."; + settings.setValue("phoneNumberMatchDigitCount", matchCount); + QString matchValue = "3000007654321"; + QContact nonMatchingContact; + nonMatchingContact.saveDetail(&name); + phone.setNumber("3210980654321"); + nonMatchingContact.saveDetail(&phone); + trackerEngine->saveContact(&nonMatchingContact, error); + + filter.setValue(matchValue); + filter.setMatchFlags(QContactFilter::MatchEndsWith); + + request.setDefinitionRestrictions(details); + request.setFilter(filter); + + trackerEngine->startRequest(&request); + + for(int i = 0; i < 100; i++) { + usleep(100000); + QCoreApplication::processEvents(); + if (request.isFinished()) + break; + } + QVERIFY(request.isFinished()); + QVERIFY(!slot.contacts.isEmpty()); + + bool containsMatchingId = false; + bool containsNonMatchingId = false; + foreach(const QContact &contact, slot.contacts) { + if (contact.localId() == nonMatchingContact.localId()) + containsNonMatchingId = true; + if (contact.localId() == matchingContact.localId()) + containsMatchingId = true; + bool containsPhone = false; + foreach(const QContactDetail &detail, contact.details(QContactPhoneNumber::DefinitionName)) { + if (detail.value(QContactPhoneNumber::FieldNumber).endsWith(matchValue.right(matchCount))) { + containsPhone = true; + break; + } + } + QVERIFY(containsPhone); + } + QVERIFY(containsMatchingId); + QVERIFY(!containsNonMatchingId); + } + + { + // test matching of 11 last digits + int matchCount = 11; + qDebug() << "Test matching of" << matchCount << "last digits."; + settings.setValue("phoneNumberMatchDigitCount", matchCount); + QString matchValue = "3010987654321"; + QContact nonMatchingContact; + nonMatchingContact.saveDetail(&name); + phone.setNumber("3200987654321"); + nonMatchingContact.saveDetail(&phone); + trackerEngine->saveContact(&nonMatchingContact, error); + + QContact matchingContactWithShorterNumber; + QContactName name1; + name1.setFirstName("ShortNumber"); + name1.setLastName("Zub1"); + matchingContactWithShorterNumber.saveDetail(&name1); + QContactPhoneNumber phone1; + phone1.setNumber("54321"); + matchingContactWithShorterNumber.saveDetail(&phone1); + trackerEngine->saveContact(&matchingContactWithShorterNumber, error); + QVERIFY(QContactManager::NoError == error); + + + filter.setValue(matchValue); + filter.setMatchFlags(QContactFilter::MatchEndsWith); + + request.setDefinitionRestrictions(details); + request.setFilter(filter); + + trackerEngine->startRequest(&request); + + for(int i = 0; i < 100; i++) { + usleep(100000); + QCoreApplication::processEvents(); + if (request.isFinished()) + break; + } + QVERIFY(request.isFinished()); + QVERIFY(!slot.contacts.isEmpty()); + + bool containsMatchingId = false; + bool containsNonMatchingId = false; + foreach(const QContact &contact, slot.contacts) { + if (contact.localId() == nonMatchingContact.localId()) + containsNonMatchingId = true; + if (contact.localId() == matchingContact.localId()) + containsMatchingId = true; + bool containsPhone = false; + foreach(const QContactDetail &detail, contact.details(QContactPhoneNumber::DefinitionName)) { + if (detail.value(QContactPhoneNumber::FieldNumber).endsWith(matchValue.right(matchCount))) { + containsPhone = true; + break; + } + } + QVERIFY(containsPhone); + } + QVERIFY(containsMatchingId); + QVERIFY(!containsNonMatchingId); + + // now verify with short number + filter.setValue("54321"); + filter.setMatchFlags(QContactFilter::MatchEndsWith); + + request.setDefinitionRestrictions(details); + request.setFilter(filter); + + trackerEngine->startRequest(&request); + + for(int i = 0; i < 100; i++) { + usleep(100000); + QCoreApplication::processEvents(); + if (request.isFinished()) + break; + } + QVERIFY(request.isFinished()); + QVERIFY(!slot.contacts.isEmpty()); + bool containsShort = false; + foreach(const QContact &contact, slot.contacts) { + if (contact.localId() == matchingContactWithShorterNumber.localId()) + containsShort = true; + } + QVERIFY(containsShort); + } + settings.setValue("phoneNumberMatchDigitCount", restoreValue); +} + +void ut_qtcontacts_trackerplugin::testFilterTwoNameFields() +{ + // init test + QMap names; + for (int i = 0; i < 3; i++) { + QContact c; + QContactName name; + name.setFirstName(QUuid::createUuid().toString() + QString::number(i)); + name.setLastName(QUuid::createUuid().toString() + QString::number(i)); + c.saveDetail(&name); + QContactAvatar avatar; + avatar.setAvatar(QUuid::createUuid().toString()); + c.saveDetail(&avatar); + QVERIFY(trackerEngine->saveContact(&c, error)); + names.insert(c.localId(), name); + QCOMPARE(error, QContactManager::NoError); + addedContacts.append(c.localId()); + } + + // Init filter + QContactLocalId searchId = names.keys().at(1); + QString searchFirst = names.value(searchId).firstName(); + QString searchLast = names.value(searchId).lastName(); + QContactUnionFilter ufilter; + QContactDetailFilter filterFirst; + filterFirst.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + filterFirst.setMatchFlags(QContactFilter::MatchExactly); + filterFirst.setValue(searchFirst); + QContactDetailFilter filterLast; + filterLast.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldLast); + filterLast.setMatchFlags(QContactFilter::MatchExactly); + filterLast.setValue(searchLast); + ufilter.setFilters(QList() << filterFirst << filterLast); + + // Init request + QContactFetchRequest request; + request.setFilter(ufilter); + trackerEngine->startRequest(&request); + trackerEngine->waitForRequestFinished(&request, 10000); + + + // Test fetch result + QCOMPARE(request.contacts().count(), 1); + QCOMPARE(request.contacts().at(0).localId(), searchId); + QCOMPARE(request.contacts().at(0).detail().firstName(), searchFirst); + QCOMPARE(request.contacts().at(0).detail().lastName(), searchLast); +} + +void ut_qtcontacts_trackerplugin::testTrackerUriToUniqueId() +{ + QString uri = "contact:1234567"; + QContactLocalId id = url2UniqueId( uri ); + QCOMPARE( (int)id, 1234567 ); +} + +void ut_qtcontacts_trackerplugin::testQRelationshipAndMergingContacts() +{ + QContact firstContact; + QContactName name; + name.setFirstName("FirstMeta"); + firstContact.saveDetail(&name); + QVERIFY(trackerEngine->saveContact(&firstContact, error)); + + QList secondIds; + QStringList names(QStringList()<<"SecondMeta"<<"ThirdMeta"); + foreach (QString firstname, names) + { + QContact secondContact; + QContactName name1; + name1.setFirstName(firstname); + secondContact.saveDetail(&name1); + QVERIFY(trackerEngine->saveContact(&secondContact, error)); + secondIds<()<startRequest(&req)); + trackerEngine->waitForRequestFinished(&req, 10000); + // if it takes more, then something is wrong + QVERIFY(req.isFinished()); + QVERIFY(QContactManager::NoError == req.error()); + } + + // once they are merged - that's it - no contacts or relationship track exists + foreach( QContactLocalId mergedId, secondIds) + { + QContact second = contact(mergedId, QStringList()< contacts; + for( int i = 0; i < 3; i++ ) + { + unsigned int contactid = 555+i; + insertContact(QString("contact:") + QString::number(contactid), + contactid, QString::number(contactid)+ "@ovi.com", "nco:presence-status-available", QString("/org/freedesktop/fake/account/%1").arg(contactid),"ovi.com"); + QContact c = contact(contactid, QStringList()<()<startRequest(&req)); + trackerEngine->waitForRequestFinished(&req, 1000); + QVERIFY(req.isFinished()); + QVERIFY(QContactManager::NoError == req.error()); + + QList onlineAccounts = contacts.at(0).details(); + qDebug() << onlineAccounts.size(); + QEXPECT_FAIL("", "Do net yet support merging multiple im contacts", Continue); + QVERIFY(onlineAccounts.size() == 2); +} + +void ut_qtcontacts_trackerplugin::testIMContactsAndMetacontactMasterPresence() +{ + if( !QFileInfo(PATH_TO_SPARQL_TESTS).exists() ) + { + qWarning()< idstomerge; + QContactLocalId masterContactId; // using one master contact later for additional testing + for( int i = 0; i < 2; i++ ) + { + unsigned int contactid = 999998+i; + idstomerge << contactid; + insertContact(QString("contact:") + QString::number(999998+i), + contactid, QString::number(999998 + i)+ "@ovi.com", "nco:presence-status-available", QString("/org/freedesktop/fake/account/%1").arg(999998+i),"ovi.com"); + QContact c = contact(contactid, QStringList()<().serviceProvider() == "ovi.com"); + QContact firstContact; + QContactName name; + name.setFirstName("FirstMetaWithIM"+QString::number(contactid)); + firstContact.saveDetail(&name); + QVERIFY(trackerEngine->saveContact(&firstContact, error)); + + // save metarelationship + QContactRelationship rel; + rel.setRelationshipType(QContactRelationship::Is); + rel.setFirst(firstContact.id()); + masterContactId = firstContact.localId(); + rel.setSecond(c.id()); + QContactRelationshipSaveRequest req; + req.setRelationships(QList()<startRequest(&req)); + trackerEngine->waitForRequestFinished(&req, 1000); + QVERIFY(req.isFinished()); + QVERIFY(QContactManager::NoError == req.error()); + } + + // expected behavior - is that master contact contains all details aggregated + { + QList cons = contacts(QList () + << masterContactId << 999999, QStringList() + << QContactOnlineAccount::DefinitionName); + QVERIFY(cons.size() == 1); + QVERIFY(cons[0].id().localId() == masterContactId); + + bool containDetail = false; + foreach(QContactOnlineAccount det, cons[0].details()) + { + if (det.value("Account") == "999999@ovi.com" // deprecated, going to account URI + || det.accountUri() == "999999@ovi.com") + { + QVERIFY(det.presence() == QContactOnlineAccount::PresenceAvailable); + containDetail = true; + } + } + QVERIFY(containDetail); + } + //now update presence to IM Address and check it in contact (TODO and if signal is emitted) + updateIMContactStatus("telepathy:/org/freedesktop/fake/account/999999/999999@ovi.com", "nco:presence-status-offline"); + { + QList cons = contacts(QList () + << masterContactId << 999999, QStringList() + << QContactOnlineAccount::DefinitionName); + QVERIFY(cons.size() == 1); + QVERIFY(cons[0].id().localId() == masterContactId); + + bool containDetail = false; + foreach(QContactOnlineAccount det, cons[0].details()) + { + if (det.value("Account") == "999999@ovi.com" // deprecated, going to account URI + || det.accountUri() == "999999@ovi.com") + { + QVERIFY(det.presence() == QContactOnlineAccount::PresenceOffline); + containDetail = true; + } + } + QVERIFY(containDetail); + } + + // load contact should load also all merged content from other contacts (that dont exis anymore) + { + QList cons = contacts(QList () + << masterContactId, QStringList() + << QContactOnlineAccount::DefinitionName); + QVERIFY(cons.size() == 1); + QVERIFY(cons[0].id().localId() == masterContactId); + + bool containDetail = false; + foreach(QContactOnlineAccount det, cons[0].details()) + { + if (det.value("Account") == "999999@ovi.com" // deprecated, going to account URI + || det.accountUri() == "999999@ovi.com") + { + QVERIFY(det.presence() == QContactOnlineAccount::PresenceOffline); + containDetail = true; + } + } + QVERIFY(containDetail); + } + + // remove them + QVERIFY2(trackerEngine->removeContact(masterContactId, error), "Removing a contact failed"); + + foreach(unsigned int id, idstomerge) + { + QVERIFY2(!trackerEngine->removeContact(id, error), "Merged contact doesn't exist and removing it shoudl fail"); + } +} + +void ut_qtcontacts_trackerplugin::testIMContactsFilterring() +{ + QList idstoremove; + QList idsToRetrieveThroughFilter; + for( int i = 0; i < 3; i++ ) + { + unsigned int contactid = qHash(QString("/org/freedesktop/fake/account/") + QString::number(999995+i) + "@ovi.com"); + idstoremove << contactid; + insertContact(QString("telepathy:/org/freedesktop/fake/account/") + QString::number(999995+i) + "@ovi.com", + contactid, QString::number(999995 + i)+ "@ovi.com", "nco:presence-status-available", + QString("/org/freedesktop/fake/account/%1").arg(i/2), QString("ovi%1.com").arg(i/2)); + if(!i/2) + idsToRetrieveThroughFilter << contactid; + } + + { + // now filter by service provider ovi0.com needs to return 2 contacts, 999995 & 999996 + QList ids(idsToRetrieveThroughFilter); + + QContactFetchRequest request; + QContactDetailFilter filter; + filter.setDetailDefinitionName(QContactOnlineAccount::DefinitionName, QContactOnlineAccount::FieldServiceProvider); + + Slots slot; + QObject::connect(&request, SIGNAL(resultsAvailable()), + &slot, SLOT(resultsAvailable())); + filter.setValue(QString("ovi0.com")); + filter.setMatchFlags(QContactFilter::MatchExactly); + + request.setDefinitionRestrictions(QStringList()<startRequest(&request); + + for(int i = 0; i < 100; i++) + { + usleep(100000); + QCoreApplication::processEvents(); + if(request.isFinished() ) + break; + } + + // if it takes more, then something is wrong + QVERIFY(request.isFinished()); + QVERIFY(!request.contacts().isEmpty()); + + QVERIFY(request.contacts().size() >= 2); + foreach(const QContact &contact, request.contacts()) + { + //qDebug() << contact.localId()<< "acc"<().serviceProvider(); + QVERIFY(contact.detail().serviceProvider() == "ovi0.com"); + ids.removeOne(contact.localId()); + } + QVERIFY(ids.isEmpty()); + } + + // now account path filter + { + // now filter by account path 999995 & 999996 + QList ids(idsToRetrieveThroughFilter); + + QContactFetchRequest request; + QContactDetailFilter filter; + filter.setDetailDefinitionName(QContactOnlineAccount::DefinitionName, "AccountPath"); + + Slots slot; + QObject::connect(&request, SIGNAL(resultsAvailable()), + &slot, SLOT(resultsAvailable())); + // see insertTpContact + filter.setValue(QString("/org/freedesktop/fake/account/0")); + filter.setMatchFlags(QContactFilter::MatchExactly); + + request.setDefinitionRestrictions(QStringList()<startRequest(&request); + + for(int i = 0; i < 100; i++) + { + usleep(100000); + QCoreApplication::processEvents(); + if(request.isFinished() ) + break; + } + + // if it takes more, then something is wrong + QVERIFY(request.isFinished()); + QVERIFY(!request.contacts().isEmpty()); + + QVERIFY(request.contacts().size() >= 2); + foreach(const QContact &contact, request.contacts()) + { + QVERIFY(contact.detail().serviceProvider() == "ovi0.com"); + ids.removeOne(contact.localId()); + } + QVERIFY(ids.isEmpty()); + } + + + // remove them + foreach(unsigned int id, idstoremove) + { + QVERIFY2(trackerEngine->removeContact(id, error), "Removing a contact failed"); + } + +} + +void ut_qtcontacts_trackerplugin::testContactsWithoutMeContact() { + QContact c; + QContactName name; + name.setFirstName("Totally"); + name.setLastName("Unique"); + c.saveDetail(&name); + trackerEngine->saveContact(&c, error); + QContactLocalId id = c.localId(); // Store ID for later removal. + + // Prepare the filter for the request - we fetch only the one contact saved above. + QList ids; + ids << id; + QContactLocalIdFilter filter; + filter.setIds(ids); + + // Prepare the requst - give filter to it and specify which fields to fetch. We fetch only the name. + QStringList details; + details << QContactName::DefinitionName; + + QContactLocalIdFetchRequest nameFetchRequest; + nameFetchRequest.setFilter(filter); + + // Start the request and wait for it to finish. + trackerEngine->startRequest(&nameFetchRequest); + trackerEngine->waitForRequestFinished(&nameFetchRequest, 1000); + + // Requst finished. Test that only one contact is removed. + QList contacts = nameFetchRequest.ids(); + QVERIFY2(contacts.count() < 2, "We expected to get only one contact. Got more."); + QVERIFY2(contacts.count() != 0, "We expected to get one contact. Got none."); + QVERIFY2(contacts.first() == id, "Did not get the requested contact back."); + + // Cleaning up. + trackerEngine->removeContact(id, error); + +} + +void ut_qtcontacts_trackerplugin::testDefinitionNames() +{ + QContactManager *cm(ContactManager::instance()); + QMap defs(cm->detailDefinitions()); + + foreach(QString key, defs.keys()) { + QCOMPARE(defs[key].name(), key); + } +} + + +/*************************** Helper functions for unit tests ***************'*/ + +QContact ut_qtcontacts_trackerplugin::contact(QContactLocalId id, QStringList details) +{ + QContactManager::Error error; + return trackerEngine->contact_impl(id, details, error); +} + +QList ut_qtcontacts_trackerplugin::contacts(QList ids, QStringList details) +{ + QContactFetchRequest request; + QContactLocalIdFilter filter; + filter.setIds(ids); + request.setFilter(filter); + + request.setDefinitionRestrictions(details); + + trackerEngine->startRequest(&request); + trackerEngine->waitForRequestFinished(&request, 1000); + + return request.contacts(); +} + +void Slots::idResultsAvailable() +{ + QContactLocalIdFetchRequest* self = qobject_cast(sender()); + ids << self->ids(); +} + +void Slots::resultsAvailable() +{ + QContactFetchRequest* self = qobject_cast(sender()); + contacts = self->contacts(); + QList idsFromAllContactReq; + foreach( QContact contact, contacts) + { + idsFromAllContactReq << contact.localId(); + } +} + +QTEST_MAIN(ut_qtcontacts_trackerplugin) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,146 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 UT_QTCONTACTS_TRACKERPLUGIN_H +#define UT_QTCONTACTS_TRACKERPLUGIN_H + +#include +#include +#include +#include + +QTM_BEGIN_NAMESPACE +class QContactLocalIdFetchRequest; +class QContactFetchRequest; +QTM_END_NAMESPACE + +class QContactTrackerEngine; +QTM_USE_NAMESPACE + +/** + * QtContacts Tracker plugin unittests + */ +class ut_qtcontacts_trackerplugin : public QObject +{ +Q_OBJECT +public: + ut_qtcontacts_trackerplugin(); +private slots: + void initTestCase(); + void cleanupTestCase(); + void cleanup(); + void testSavePhoneNumber(); + void testPhoneNumberContext(); + void testWritingOnlyWorkMobile(); + void testContacts(); + void testContact(); + void testAvatar(); + + void testSaveEmailAddress(); + void testSaveName(); + void testSaveAddress(); + + void testRemoveContact(); + void testSaveContacts(); + void testRemoveContacts(); + void testUrl(); + +// void testGroups(); +// void testGroup(); +// void testSaveGroup(); +// void testRemoveGroup(); +// void testDetailDefinitions(); +// void testDetailDefinition(); +// void testSaveDetailDefinition(); +// void testRemoveDetailDefinition(); + void testSyncContactManagerContactsAddedSince(); + void testSyncTrackerEngineContactsIdsAddedSince(); + void testSyncContactManagerContactIdsAddedSince(); + void testContactsAddedSince(); + void testContactsModifiedSince(); + void testContactsRemovedSince(); +// void testGroupsAddedSince(); +// void testGroupsModifiedSince(); +// void testGroupsRemovedSince(); + void testNcoTypes(); + void testMergeTwoOnlineContacts(); + void testQRelationshipAndMergingContacts(); + void testAsyncReadContacts(); + void testFilterContacts(); + void testFilterContactsEndsWith(); + void testFilterTwoNameFields(); + void testTrackerUriToUniqueId(); + void testIMContactsAndMetacontactMasterPresence(); + void testIMContactsFilterring(); + void testContactsWithoutMeContact(); + void testDefinitionNames(); + +private: + void syncContactsAddedSinceHelper(QDateTime& start, QList& addedIds); + + void insertContact(const QString& contactURI, QContactLocalId uid, QString imId, QString imStatus, QString accountPath, QString protocol = "jabber"); + void updateIMContactStatus(const QString& uri, QString imStatus); + QContact contact(QContactLocalId uid, QStringList detailsToLoad = QStringList()); + QList contacts(QList uids, QStringList detailsToLoad = QStringList()); + +private: + QContactTrackerEngine *trackerEngine; + QContactManager::Error error; + QMap* errorMap; + // Filtering and sort options used for QContactTrackerEngine. + // Not used. + QContactFilter queryFilter; + QList sortOrders; + QList addedContacts; +}; + +class Slots: public QObject +{ + Q_OBJECT +public: + QList ids; + QList contacts; +public slots: + void idResultsAvailable(); + void resultsAvailable(); + +}; +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,46 @@ +TARGET = ut_qtcontacts_trackerplugin + +test.depends = all +QMAKE_EXTRA_TARGETS += test +QCONTACTS_TRACKER_BACKENDDIR = ../../ + +CONFIG += test mobility +MOBILITY += contacts +QT += testlib + +LIBS += -lqttracker + +MOC_DIR = .moc +OBJECTS_DIR = .obj + +# CONFIG += contacts +INCLUDEPATH += $$QCONTACTS_TRACKER_BACKENDDIR + +DEFINES += VERSION_INFO=\\\"0\\\" + +## Include source files under test. +HEADERS += $$QCONTACTS_TRACKER_BACKENDDIR/qcontacttrackerbackend_p.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactasyncrequest.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/trackerchangelistener.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactslive.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactsaverequest.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipfetchrequest.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipsaverequest.h \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactidfetchrequest.h + +SOURCES += $$QCONTACTS_TRACKER_BACKENDDIR/qcontacttrackerbackend.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactasyncrequest.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/trackerchangelistener.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactslive.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactsaverequest.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipfetchrequest.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipsaverequest.cpp \ + $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactidfetchrequest.cpp + +## Include unit test files +HEADERS += ut_qtcontacts_trackerplugin.h \ + contactmanager.h + +SOURCES += ut_qtcontacts_trackerplugin.cpp \ + contactmanager.cpp + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin_data/insertTpContact.sparql --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin_data/insertTpContact.sparql Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,42 @@ +#!/bin/bash + +if [ -z "$1" ]; then +echo "usage: $0 " +exit 1 +fi + +echo "create nco:IMAddress" +tracker-sparql --update --query " +INSERT { + nco:IMAddress; + nco:imID '$3'; + nco:imNickname '$8$9'; + nco:imPresence $5; + nco:imStatusMessage '$6'; + nco:imCapability +} +" + +echo "create nco:IMAccount" +tracker-sparql -u -q " +INSERT +{ + + +; +nco:imDisplayName '$7'; +nco:hasIMContact +} +" + +echo "create nco:PersonContact" +tracker-sparql -u -q " +INSERT +{ + <$1> nco:PersonContact; + nco:contactUID '$2'; + nco:hasIMAddress ; + nco:nameGiven '$8'; + nco:nameFamily '$9' +} +" \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin_data/updateTpStatus.sparql --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin_data/updateTpStatus.sparql Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ -z "$1" ]; then +echo "usage: $0 " +exit 1 +fi +tracker-sparql --update --query " +DELETE { <$1> nco:imPresence ?status } +WHERE { <$1> nco:imPresence ?status } +INSERT { <$1> nco:imPresence $2 } +" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin_definitions/ut_qtcontacts_trackerplugin_definitions.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin_definitions/ut_qtcontacts_trackerplugin_definitions.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,483 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "ut_qtcontacts_trackerplugin_definitions.h" + +#include + +typedef QSet QStringSet; + +void ut_qtcontacts_trackerplugin_definitions::checkAllDefitionsTested() +{ + const QStringSet testSlots(testSlotNames()); + + foreach(const QContactDetailDefinition d, mContactManager->detailDefinitions()) { + const QString saveAndFetchOne(QLatin1String("saveAndFetchOne") + d.name()); + QVERIFY2(testSlots.contains(saveAndFetchOne), qPrintable(d.name())); + const QString saveAndFetchMany(QLatin1String("saveAndFetchMany") + d.name()); + QVERIFY2(testSlots.contains(saveAndFetchMany), qPrintable(d.name())); + const QString saveAndFetchAll(QLatin1String("saveAndFetchAll") + d.name()); + QVERIFY2(testSlots.contains(saveAndFetchAll), qPrintable(d.name())); + } +} + +class SampleGenerator +{ +public: + SampleGenerator(QVariant::Type type, const QVariantList &allowedValues) : + mType(type), mComplete(false), mIndex(0) + { + if (allowedValues.isEmpty()) { + QVariant sample; + + switch(type) { + case QVariant::Date: + sample.setValue(QDate::currentDate()); + break; + + case QVariant::DateTime: + sample.setValue(QDateTime::currentDateTime()); + break; + + case QVariant::Double: + sample.setValue(double(qrand()) / RAND_MAX); + break; + + case QVariant::Pixmap: + sample.setValue(QPixmap(2, 2)); + break; + + case QVariant::String: + sample.setValue(QUuid::createUuid().toString()); + break; + + case QVariant::StringList: + sample.setValue(QStringList(QUuid::createUuid().toString()) << + QLatin1String("1") << QLatin1String("2") << + QLatin1String("3")); + break; + + default: + QFAIL(qPrintable(QString("unsupported variant type: %1"). + arg(QVariant::typeToName(type)))); + } + + mValues.append(sample); + } else { + mValues.append(allowedValues); + + switch(type) { + case QVariant::StringList: + for(int i = 2; i <= allowedValues.count(); ++i) { + QStringList stringList; + + for(int j = 0; j < i; ++j) + stringList.append(allowedValues[j].toString()); + + mValues.append(QVariant(stringList)); + } + + break; + + default: + break; + } + } + } + + void nextSample(QVariant &result) + { + currentSample(result); + + if (++mIndex == mValues.count()) { + mComplete = true; + mIndex = 0; + } + } + + void currentSample(QVariant &result) + { + result.setValue(mValues[mIndex]); + + if (result.isValid()) { + QVERIFY2(result.convert(mType), QVariant::typeToName(mType)); + } + } + + bool isComplete() const + { + return mComplete; + } + +private: + QVariant::Type mType; + QVariantList mValues; + bool mComplete; + int mIndex; +}; + +void ut_qtcontacts_trackerplugin_definitions::createTestContacts(const QString &definitionName, QList &result) +{ + const QContactDetailDefinition &definition + (mContactManager->detailDefinition(definitionName)); + + typedef QMap FieldMap; + const FieldMap fields(definition.fields()); + + typedef QHash GeneratorMap; + GeneratorMap generators; + + for(FieldMap::const_iterator i(fields.begin()), e(fields.end()); i != e; ++i) { + const QContactDetailFieldDefinition &field(i.value()); + generators.insert(i.key(), SampleGenerator(field.dataType(), field.allowableValues())); + CHECK_CURRENT_TEST_FAILED; + } + + QList detailList; + + for(GeneratorMap::iterator i(generators.begin()), e(generators.end()); i != e; ++i) { + QVariant sample; + SampleGenerator &generator(i.value()); + generator.currentSample(sample); + CHECK_CURRENT_TEST_FAILED; + + QContactDetail detail(definition.name()); + detail.setValue(i.key(), sample); + detailList.append(detail); + } + + forever { + QContactDetail detail(definition.name()); + bool samplesComplete = true; + + for(GeneratorMap::iterator i(generators.begin()), e(generators.end()); i != e; ++i) { + QVariant sample; + SampleGenerator &generator(i.value()); + generator.nextSample(sample); + CHECK_CURRENT_TEST_FAILED; + + if (not generator.isComplete()) + samplesComplete = false; + + if (sample.isValid()) + detail.setValue(i.key(), sample); + } + + detailList.append(detail); + + if (samplesComplete) + break; + } + + foreach(QContactDetail detail, detailList) { + QContact contact; + QVERIFY(contact.saveDetail(&detail)); + result.append(contact); + } +} + +static bool localIdOrder(const QContact &a, const QContact &b) +{ + return a.localId() < b.localId(); +} + +static bool isEmpty(const QVariant &value) +{ + const QVariant empty(value.type()); + return value == empty; +} + +static const QStringSet newBrokenDetails() +{ + return (QStringSet() << + QLatin1String("Anniversary") << // FIXME: doesn't load at all + QLatin1String("Avatar") << // FIXME: doesn't load at all + QLatin1String("Birthday") << // FIXME: doesn't load at all + QLatin1String("EmailAddress") << // FIXME: doesn't load for work context + QLatin1String("Gender") << // FIXME: doesn't load at all + QLatin1String("GeoLocation") << // FIXME: doesn't load at all + QLatin1String("Guid") << // FIXME: doesn't load at all + QLatin1String("Note") << // FIXME: doesn't load at all + QLatin1String("OnlineAccount") << // FIXME: doesn't load at all + QLatin1String("Organization") << // FIXME: doesn't load at all + QLatin1String("StreetAddress") << // FIXME: doesn't load at all + QLatin1String("SyncTarget") << // FIXME: doesn't load at all + QLatin1String("Timestamp") << // FIXME: doesn't load at all + QLatin1String("Url")); // FIXME: doesn't load at all +} + +static const QHash newBrokenFields() +{ + QHash brokenFields; + + brokenFields.insert(QLatin1String("EmailAddress"), + QStringSet() << QLatin1String("Context")); + + brokenFields.insert(QLatin1String("Name"), + QStringSet() << QLatin1String("Context") // FIXME: meaning of this field? + << QLatin1String("CustomLabel") // FIXME: meaning of this field? + << QLatin1String("Suffix")); + + brokenFields.insert(QLatin1String("Nickname"), + QStringSet() << QLatin1String("Context")); // FIXME: meaning of this field? + + brokenFields.insert(QLatin1String("PhoneNumber"), + QStringSet() << QLatin1String("Context") + << QLatin1String("PhoneNumber") + << QLatin1String("SubTypes")); + + return brokenFields; +} + +static const QStringSet newSynthesizedDetails() +{ + return (QStringSet() << + QLatin1String("DisplayLabel") << + QLatin1String("Type")); +} + +static const QStringSet brokenDetails(newBrokenDetails()); +static const QHash brokenFields(newBrokenFields()); +static const QStringSet synthesizedDetails(newSynthesizedDetails()); + +void ut_qtcontacts_trackerplugin_definitions::verifyContacts(const QString &definitionName, + QList &savedContacts, + QList &fetchedContacts) +{ + qSort(savedContacts.begin(), savedContacts.end(), localIdOrder); + qSort(fetchedContacts.begin(), fetchedContacts.end(), localIdOrder); + + QCOMPARE(fetchedContacts.count(), savedContacts.count()); + + for(int i = 0, l = savedContacts.count(); i < l; ++i) { + const QList &savedDetails(savedContacts[i].details(definitionName)); + const QList &fetchedDetails(fetchedContacts[i].details(definitionName)); + + QCOMPARE(savedDetails.count(), 1); + QCOMPARE(fetchedDetails.count(), 1); + + QVariantMap savedValues(savedDetails[0].variantValues()); + QVariantMap fetchedValues(fetchedDetails[0].variantValues()); + + QStringSet fieldNames(savedValues.keys().toSet()); + fieldNames.unite(fetchedValues.keys().toSet()); + + foreach(const QString &key, fieldNames) { + if (brokenFields[definitionName].contains(key)) { + const QString msg(QString::fromLatin1("ignoring broken %1 field").arg(key)); + QEXPECT_FAIL("", qPrintable(msg), Continue); + } + + if (not savedValues.contains(key)) { + QVERIFY(isEmpty(fetchedValues[key])); + } else if (not fetchedValues.contains(key)) { + QVERIFY(isEmpty(savedValues[key])); + } else { + QCOMPARE(savedValues[key], fetchedValues[key]); + } + } + } +} + +void ut_qtcontacts_trackerplugin_definitions::saveAndFetchOne(const QString &definitionName) +{ + qDebug() << "==============================================================================="; + qDebug() << qPrintable(definitionName); + qDebug() << "==============================================================================="; + + if (brokenDetails.contains(definitionName)) { + QSKIP("support for this detail is broken right now", SkipAll); + } + + if (synthesizedDetails.contains(definitionName)) { + QSKIP("synthesized details are out of scope for now", SkipAll); + } + + QList savedContacts; + QList savedContactIds; + + createTestContacts(definitionName, savedContacts); + CHECK_CURRENT_TEST_FAILED; + + saveContacts(savedContacts); + CHECK_CURRENT_TEST_FAILED; + + foreach(const QContact &contact, savedContacts) { + savedContactIds.append(contact.localId()); + } + + QCOMPARE(savedContactIds.toSet().count(), savedContacts.count()); + + QList fetchedContacts; + + foreach(const QContactLocalId &id, savedContactIds) { + QContact contact; + fetchContact(id, contact); + CHECK_CURRENT_TEST_FAILED; + fetchedContacts.append(contact); + } + + verifyContacts(definitionName, savedContacts, fetchedContacts); +} + +void ut_qtcontacts_trackerplugin_definitions::saveAndFetchMany(const QString &definitionName) +{ + qDebug() << "==============================================================================="; + qDebug() << qPrintable(definitionName); + qDebug() << "==============================================================================="; + + if (brokenDetails.contains(definitionName)) { + QSKIP("support for this detail is broken right now", SkipAll); + } + + if (synthesizedDetails.contains(definitionName)) { + QSKIP("synthesized details are out of scope for now", SkipAll); + } + + QList savedContacts; + QList savedContactIds; + + createTestContacts(definitionName, savedContacts); + CHECK_CURRENT_TEST_FAILED; + + saveContacts(savedContacts); + CHECK_CURRENT_TEST_FAILED; + + foreach(const QContact &contact, savedContacts) { + savedContactIds.append(contact.localId()); + } + + QCOMPARE(savedContactIds.toSet().count(), savedContacts.count()); + + QList fetchedContacts; + fetchContacts(savedContactIds, fetchedContacts); + CHECK_CURRENT_TEST_FAILED; + + verifyContacts(definitionName, savedContacts, fetchedContacts); +} + +void ut_qtcontacts_trackerplugin_definitions::saveAndFetchAll(const QString &definitionName) +{ + qDebug() << "==============================================================================="; + qDebug() << qPrintable(definitionName); + qDebug() << "==============================================================================="; + + if (brokenDetails.contains(definitionName)) { + QSKIP("support for this detail is broken right now", SkipAll); + } + + if (synthesizedDetails.contains(definitionName)) { + QSKIP("synthesized details are out of scope for now", SkipAll); + } + + QList savedContacts; + QSet savedContactIds; + + createTestContacts(definitionName, savedContacts); + CHECK_CURRENT_TEST_FAILED; + + saveContacts(savedContacts); + CHECK_CURRENT_TEST_FAILED; + + foreach(const QContact &contact, savedContacts) { + savedContactIds.insert(contact.localId()); + } + + QCOMPARE(savedContactIds.count(), savedContacts.count()); + + QList fetchedContacts; + fetchContacts(QContactInvalidFilter(), fetchedContacts); + CHECK_CURRENT_TEST_FAILED; + + QList::iterator i = fetchedContacts.begin(); + + while (i != fetchedContacts.end()) { + if (not savedContactIds.contains(i->localId())) { + i = fetchedContacts.erase(i); + } else { + ++i; + } + } + + verifyContacts(definitionName, savedContacts, fetchedContacts); +} + +#define IMPLEMENT_SAVE_AND_FETCH(DefinitionName) \ + \ +void ut_qtcontacts_trackerplugin_definitions::saveAndFetchOne##DefinitionName() \ +{ \ + saveAndFetchOne(QString::fromLatin1(#DefinitionName)); \ + CHECK_CURRENT_TEST_FAILED; \ +} \ + \ +void ut_qtcontacts_trackerplugin_definitions::saveAndFetchMany##DefinitionName() \ +{ \ + saveAndFetchMany(QString::fromLatin1(#DefinitionName)); \ + CHECK_CURRENT_TEST_FAILED; \ +} \ + \ +void ut_qtcontacts_trackerplugin_definitions::saveAndFetchAll##DefinitionName() \ +{ \ + saveAndFetchAll(QString::fromLatin1(#DefinitionName)); \ + CHECK_CURRENT_TEST_FAILED; \ +} + +IMPLEMENT_SAVE_AND_FETCH(Anniversary) +IMPLEMENT_SAVE_AND_FETCH(Avatar) +IMPLEMENT_SAVE_AND_FETCH(Birthday) +IMPLEMENT_SAVE_AND_FETCH(DisplayLabel) +IMPLEMENT_SAVE_AND_FETCH(EmailAddress) +IMPLEMENT_SAVE_AND_FETCH(Gender) +IMPLEMENT_SAVE_AND_FETCH(GeoLocation) +IMPLEMENT_SAVE_AND_FETCH(Guid) +IMPLEMENT_SAVE_AND_FETCH(Name) +IMPLEMENT_SAVE_AND_FETCH(Nickname) +IMPLEMENT_SAVE_AND_FETCH(Note) +IMPLEMENT_SAVE_AND_FETCH(OnlineAccount) +IMPLEMENT_SAVE_AND_FETCH(Organization) +IMPLEMENT_SAVE_AND_FETCH(PhoneNumber) +IMPLEMENT_SAVE_AND_FETCH(StreetAddress) +IMPLEMENT_SAVE_AND_FETCH(SyncTarget) +IMPLEMENT_SAVE_AND_FETCH(Timestamp) +IMPLEMENT_SAVE_AND_FETCH(Type) +IMPLEMENT_SAVE_AND_FETCH(Url) + +QTEST_MAIN(ut_qtcontacts_trackerplugin_definitions) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin_definitions/ut_qtcontacts_trackerplugin_definitions.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin_definitions/ut_qtcontacts_trackerplugin_definitions.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,126 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 UT_QTCONTACTS_TRACKERPLUGIN_DEFINITIONS_H +#define UT_QTCONTACTS_TRACKERPLUGIN_DEFINITIONS_H + +#include "ut_qtcontacts_common.h" + +QTM_USE_NAMESPACE + +class ut_qtcontacts_trackerplugin_definitions : public ut_qtcontacts_common +{ + Q_OBJECT + +private slots: + void checkAllDefitionsTested(); + + void saveAndFetchOneAnniversary(); + void saveAndFetchOneAvatar(); + void saveAndFetchOneBirthday(); + void saveAndFetchOneDisplayLabel(); + void saveAndFetchOneEmailAddress(); + void saveAndFetchOneGender(); + void saveAndFetchOneGeoLocation(); + void saveAndFetchOneGuid(); + void saveAndFetchOneName(); + void saveAndFetchOneNickname(); + void saveAndFetchOneNote(); + void saveAndFetchOneOnlineAccount(); + void saveAndFetchOneOrganization(); + void saveAndFetchOnePhoneNumber(); + void saveAndFetchOneStreetAddress(); + void saveAndFetchOneSyncTarget(); + void saveAndFetchOneTimestamp(); + void saveAndFetchOneType(); + void saveAndFetchOneUrl(); + + void saveAndFetchManyAnniversary(); + void saveAndFetchManyAvatar(); + void saveAndFetchManyBirthday(); + void saveAndFetchManyDisplayLabel(); + void saveAndFetchManyEmailAddress(); + void saveAndFetchManyGender(); + void saveAndFetchManyGeoLocation(); + void saveAndFetchManyGuid(); + void saveAndFetchManyName(); + void saveAndFetchManyNickname(); + void saveAndFetchManyNote(); + void saveAndFetchManyOnlineAccount(); + void saveAndFetchManyOrganization(); + void saveAndFetchManyPhoneNumber(); + void saveAndFetchManyStreetAddress(); + void saveAndFetchManySyncTarget(); + void saveAndFetchManyTimestamp(); + void saveAndFetchManyType(); + void saveAndFetchManyUrl(); + + void saveAndFetchAllAnniversary(); + void saveAndFetchAllAvatar(); + void saveAndFetchAllBirthday(); + void saveAndFetchAllDisplayLabel(); + void saveAndFetchAllEmailAddress(); + void saveAndFetchAllGender(); + void saveAndFetchAllGeoLocation(); + void saveAndFetchAllGuid(); + void saveAndFetchAllName(); + void saveAndFetchAllNickname(); + void saveAndFetchAllNote(); + void saveAndFetchAllOnlineAccount(); + void saveAndFetchAllOrganization(); + void saveAndFetchAllPhoneNumber(); + void saveAndFetchAllStreetAddress(); + void saveAndFetchAllSyncTarget(); + void saveAndFetchAllTimestamp(); + void saveAndFetchAllType(); + void saveAndFetchAllUrl(); + +private: + void createTestContacts(const QString &definitionName, QList &result); + void verifyContacts(const QString &definitionName, QList &savedContacts, + QList &fetchedContacts); + + void saveAndFetchOne(const QString &definitionName); + void saveAndFetchMany(const QString &definitionName); + void saveAndFetchAll(const QString &definitionName); +}; + +#endif /* UT_QTCONTACTS_TRACKERPLUGIN_DEFINITIONS_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin_definitions/ut_qtcontacts_trackerplugin_definitions.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/tests/ut_qtcontacts_trackerplugin_definitions/ut_qtcontacts_trackerplugin_definitions.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,11 @@ +include(../ut_qtcontacts_common/ut_qtcontacts_common.pri) + +TARGET = ut_qtcontacts_trackerplugin_definitions + +test.depends = all +QMAKE_EXTRA_TARGETS += test +QCONTACTS_TRACKER_BACKENDDIR = ../../ + +## Include unit test files +HEADERS += ut_qtcontacts_trackerplugin_definitions.h +SOURCES += ut_qtcontacts_trackerplugin_definitions.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/trackerchangelistener.cpp --- a/qtmobility/plugins/contacts/qtcontacts-tracker/trackerchangelistener.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/trackerchangelistener.cpp Mon May 03 13:18:40 2010 +0300 @@ -47,39 +47,52 @@ using namespace SopranoLive; -TrackerChangeListener::TrackerChangeListener(QObject* parent) -:QObject(parent) +TrackerChangeListener::TrackerChangeListener(QContactManagerEngine *eng, QObject* parent) : + QObject(parent), engine(eng) { - signaler_contact = SopranoLive::BackEnds::Tracker::ClassUpdateSignaler::get( - nco::Contact::iri()); - connectSignals(signaler_contact); + signaler_contact = SopranoLive::BackEnds::Tracker::ClassUpdateSignaler::get(nco::Contact::iri()); + if (signaler_contact) + { + SopranoLive::BackEnds::Tracker::ClassUpdateSignaler * signaler = signaler_contact; + connect(signaler, SIGNAL(subjectsAdded(const QStringList &)), SLOT(contactsAdded(const QStringList &))); + connect(signaler,SIGNAL(subjectsRemoved(const QStringList &)),SLOT(contactsRemoved(const QStringList &))); + connect(signaler,SIGNAL(subjectsChanged(const QStringList &)),SLOT(contactsChanged(const QStringList &))); + } - signaler_imaccount = SopranoLive::BackEnds::Tracker::ClassUpdateSignaler::get( - nco::IMAccount::iri()); - connectSignals(signaler_imaccount); + signaler_imaccount = SopranoLive::BackEnds::Tracker::ClassUpdateSignaler::get(nco::IMAccount::iri()); + if (signaler_imaccount) + { + // same for all signals - emit selfContact changed + SopranoLive::BackEnds::Tracker::ClassUpdateSignaler * signaler = signaler_imaccount; + connect(signaler, SIGNAL(subjectsAdded(const QStringList &)),SLOT(imAccountsChanged(const QStringList &))); + connect(signaler,SIGNAL(subjectsRemoved(const QStringList &)),SLOT(imAccountsChanged(const QStringList &))); + connect(signaler,SIGNAL(subjectsChanged(const QStringList &)),SLOT(imAccountsChanged(const QStringList &))); + } + + signaler_imaddress = SopranoLive::BackEnds::Tracker::ClassUpdateSignaler::get(nco::IMAddress::iri()); + if (signaler_imaddress) + { + // same for all signals - contact changed to be emitted + SopranoLive::BackEnds::Tracker::ClassUpdateSignaler * signaler = signaler_imaddress; + connect(signaler, SIGNAL(subjectsAdded(const QStringList &)),SLOT(imAddressesChanged(const QStringList &))); + connect(signaler,SIGNAL(subjectsRemoved(const QStringList &)),SLOT(imAddressesChanged(const QStringList &))); + connect(signaler,SIGNAL(subjectsChanged(const QStringList &)),SLOT(imAddressesChanged(const QStringList &))); + } + } TrackerChangeListener::~TrackerChangeListener() { + if (signaler_imaddress) + signaler_imaddress->disconnect(this); + if (signaler_contact) + signaler_contact->disconnect(this); + if (signaler_imaccount) + signaler_imaccount->disconnect(this); } -// TEMPORARY here we'll for now extract ids from tracker contact URI. -// In future need nonblocking async way to get contact ids from tracker contact urls -// let's see which signals will be used from libqttracker + QContactLocalId url2UniqueId(const QString &contactUrl) { - - /* Telepathy URI would look like telepathy:///org/freedesktop... - convert the URI component which contains the - account + contat id to uint32 expected by - qcontactlocalid - */ - if (contactUrl.contains("telepathy")) { - QContactLocalId id = 0; - QStringList decoded = contactUrl.split(":"); - id = qHash(decoded.value(1).remove(0,1)); - return id; - } - /* handle conatact:interger URL types comming from which are non telepathy url's */ @@ -93,10 +106,9 @@ if( !conversion ) qWarning() << Q_FUNC_INFO << "unparsed uri to uniqueI:" << contactUrl; return id; - } -void TrackerChangeListener::subjectsAdded(const QStringList &subjects) +void TrackerChangeListener::contactsAdded(const QStringList &subjects) { QList added; foreach(const QString &uri, subjects) @@ -106,7 +118,7 @@ emit contactsAdded(added); } -void TrackerChangeListener::subjectsRemoved(const QStringList &subjects) +void TrackerChangeListener::contactsRemoved(const QStringList &subjects) { QList added; foreach(const QString &uri, subjects) @@ -116,8 +128,8 @@ emit contactsRemoved(added); } -// TODO data changed for full query -void TrackerChangeListener::subjectsChanged(const QStringList &subjects) + +void TrackerChangeListener::contactsChanged(const QStringList &subjects) { QList changed; foreach(const QString &uri, subjects) { @@ -129,33 +141,21 @@ emit contactsChanged(changed); } - -AsyncQuery::AsyncQuery(RDFSelect selectQuery) +void TrackerChangeListener::imAccountsChanged(const QStringList &subjects) { - nodes = ::tracker()->modelQuery(selectQuery); - QObject::connect(nodes.model(), SIGNAL(modelUpdated()), this, - SLOT(queryReady())); -} - -void AsyncQuery::queryReady() -{ - emit queryReady(this); + Q_UNUSED(subjects) + QContactManager::Error error; + QContactLocalId selfId = engine->selfContactId(&error); + if (engine && QContactManager::NoError == error) { + emit contactsChanged(QList()< #include +#include #include - #include #include - -#include -#include +#include QTM_USE_NAMESPACE QContactLocalId url2UniqueId(const QString &contactUrl); /*! - * Helper class to handle multiple async queries at the same time inside TrackerChangeListener. - * This class is designed to be generic, and initially used to get all contacts that correspond - * to list of IMAccounts. When we get signal that multiple IMAccounts have changed, we read - * all contacts and emit signal contacts changed for them. - * - * Usage: construct AsyncQuery with RDFSelect query. When signal queryReady(AsyncQuery *self) - * is received, read data from rows in self->nodes (self-nodes()->rowCount() ...) - * - * Intention: The class has been created to wrap LiveNodes::modelUpdated signal, - * and to know which query it corresponds to (not possible to fetch it from sender()). - * \sa queryReady(AsyncQuery *) - */ -class AsyncQuery: public QObject -{ - Q_OBJECT -public: - AsyncQuery(SopranoLive::RDFSelect selectQuery); - SopranoLive::LiveNodes nodes; - -private slots: - void queryReady(); -signals: - // emitted when modelUpdated() from LiveNodes related to selectQuery is received - void queryReady(AsyncQuery *self); -}; - -/*! * \class TrackerChangeListener * \brief Translates signals from tracker and to contact signals * Listen for tracker signals, computes which contacts are and what si changed and emits @@ -94,7 +65,7 @@ { Q_OBJECT public: - TrackerChangeListener(QObject *parent=0); + explicit TrackerChangeListener(QContactManagerEngine *engine, QObject *parent); virtual ~TrackerChangeListener(); signals: @@ -104,16 +75,16 @@ void contactsRemoved(const QList& contactIds); private slots: - void subjectsAdded(const QStringList &subjects); - void subjectsRemoved(const QStringList &subjects); - void subjectsChanged(const QStringList &subjects); + void contactsAdded(const QStringList &subjects); + void contactsRemoved(const QStringList &subjects); + void contactsChanged(const QStringList &subjects); + void imAccountsChanged(const QStringList &subjects); + void imAddressesChanged(const QStringList &subjects); private: SopranoLive::BackEnds::Tracker::ClassUpdateSignaler *signaler_contact; SopranoLive::BackEnds::Tracker::ClassUpdateSignaler *signaler_imaccount; - - void connectSignals(SopranoLive::BackEnds::Tracker::ClassUpdateSignaler *signaler); - - QHash > pendingQueries; + SopranoLive::BackEnds::Tracker::ClassUpdateSignaler *signaler_imaddress; + QContactManagerEngine *engine; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/qtcontacts-tracker/version.pri --- a/qtmobility/plugins/contacts/qtcontacts-tracker/version.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/qtcontacts-tracker/version.pri Mon May 03 13:18:40 2010 +0300 @@ -1,1 +1,2 @@ VERSION = 0.3.25 +VERSION_INT = 325 diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/cntabstractrelationship.h --- a/qtmobility/plugins/contacts/symbian/inc/cntabstractrelationship.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/cntabstractrelationship.h Mon May 03 13:18:40 2010 +0300 @@ -56,10 +56,10 @@ virtual ~CntAbstractRelationship(); public: - virtual QList relationshipsL(const QContactId &participantId, QContactRelationshipFilter::Role role, QContactManager::Error &error) = 0; - virtual bool saveRelationshipL(QSet *affectedContactIds, QContactRelationship *relationship, QContactManager::Error &error) = 0; - virtual bool removeRelationshipL(QSet *affectedContactIds, const QContactRelationship &relationship, QContactManager::Error &error) = 0; - virtual bool validateRelationship(const QContactRelationship &relationship, QContactManager::Error &error) = 0; + virtual QList relationshipsL(const QContactId &participantId, QContactRelationship::Role role, QContactManager::Error *error) = 0; + virtual bool saveRelationshipL(QSet *affectedContactIds, QContactRelationship *relationship, QContactManager::Error *error) = 0; + virtual bool removeRelationshipL(QSet *affectedContactIds, const QContactRelationship &relationship, QContactManager::Error *error) = 0; + virtual bool validateRelationship(const QContactRelationship &relationship, QContactManager::Error *error) = 0; QString relationshipType() const; protected: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/cntdisplaylabel.h --- a/qtmobility/plugins/contacts/symbian/inc/cntdisplaylabel.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/cntdisplaylabel.h Mon May 03 13:18:40 2010 +0300 @@ -62,7 +62,7 @@ CntDisplayLabel(); virtual ~CntDisplayLabel(); - QString synthesizedDisplayLabel( const QContact& contact, QContactManager::Error& error) const; + QString synthesizedDisplayLabel( const QContact& contact, QContactManager::Error* error) const; QString unNamned() const; QList > contactFilterDetails() const; QList > groupFilterDetails() const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/cntrelationship.h --- a/qtmobility/plugins/contacts/symbian/inc/cntrelationship.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/cntrelationship.h Mon May 03 13:18:40 2010 +0300 @@ -57,13 +57,13 @@ public: /* Relationships between contacts */ - QStringList supportedRelationshipTypes(const QString &contactType) const; - QList relationships(const QString &relationshipType, const QContactId &participantId, QContactRelationshipFilter::Role role, QContactManager::Error &error) const; - bool saveRelationship(QSet *affectedContactIds, QContactRelationship *relationship, QContactManager::Error &error); - QList saveRelationships(QSet *affectedContactIds, QList *relationships, QContactManager::Error &error); - bool removeRelationship(QSet *affectedContactIds, const QContactRelationship &relationship, QContactManager::Error &error); - QList removeRelationships(QSet *affectedContactIds, const QList &relationships, QContactManager::Error &error); - bool validateRelationship(const QContactRelationship &relationship, QContactManager::Error &error); + bool isRelationshipTypeSupported(const QString& relationshipType, const QString& contactType) const; + QList relationships(const QString &relationshipType, const QContactId &participantId, QContactRelationship::Role role, QContactManager::Error *error) const; + bool saveRelationship(QSet *affectedContactIds, QContactRelationship *relationship, QContactManager::Error *error); + bool saveRelationships(QSet *affectedContactIds, QList *relationships, QMap* errorMap, QContactManager::Error *error); + bool removeRelationship(QSet *affectedContactIds, const QContactRelationship &relationship, QContactManager::Error *error); + bool removeRelationships(QSet *affectedContactIds, const QList &relationships, QMap* errorMap, QContactManager::Error *error); + bool validateRelationship(const QContactRelationship &relationship, QContactManager::Error *error); private: CContactDatabase *m_contactDatabase; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/cntrelationshipgroup.h --- a/qtmobility/plugins/contacts/symbian/inc/cntrelationshipgroup.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/cntrelationshipgroup.h Mon May 03 13:18:40 2010 +0300 @@ -52,10 +52,10 @@ virtual ~CntRelationshipGroup(); public: - QList relationshipsL(const QContactId &participantId, QContactRelationshipFilter::Role role, QContactManager::Error &error); - bool saveRelationshipL(QSet *affectedContactIds, QContactRelationship *relationship, QContactManager::Error &error); - bool removeRelationshipL(QSet *affectedContactIds, const QContactRelationship &relationship, QContactManager::Error &error); - bool validateRelationship(const QContactRelationship &relationship, QContactManager::Error &error); + QList relationshipsL(const QContactId &participantId, QContactRelationship::Role role, QContactManager::Error *error); + bool saveRelationshipL(QSet *affectedContactIds, QContactRelationship *relationship, QContactManager::Error *error); + bool removeRelationshipL(QSet *affectedContactIds, const QContactRelationship &relationship, QContactManager::Error *error); + bool validateRelationship(const QContactRelationship &relationship, QContactManager::Error *error); private: void isGroupMemberL(const CContactItem *contactItem, const TContactItemId groupId) const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/cntsymbiandatabase.h --- a/qtmobility/plugins/contacts/symbian/inc/cntsymbiandatabase.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/cntsymbiandatabase.h Mon May 03 13:18:40 2010 +0300 @@ -70,7 +70,7 @@ Q_OBJECT public: - CntSymbianDatabase(QContactManagerEngine *engine, QContactManager::Error& error); + CntSymbianDatabase(QContactManagerEngine *engine, QContactManager::Error* error); ~CntSymbianDatabase(); public: @@ -83,6 +83,12 @@ void HandleDatabaseEventL(TContactDbObserverEvent aEvent); private: + void initializeL(); + void updateGroupMembershipsL(); + void updateGroupMembershipsL(QContactLocalId groupId, QSet &added, QSet &removed); + QSet groupMembersL(QContactLocalId groupId); + +private: CContactDatabase* m_contactDatabase; #ifndef SYMBIAN_BACKEND_USE_SQLITE CContactChangeNotifier* m_contactChangeNotifier; @@ -90,6 +96,7 @@ QContactManagerEngine *m_engine; QList m_contactsEmitted; QContactLocalId m_currentOwnCardId; + QMap > m_groupContents; #ifdef CNTSYMBIANDATABASE_UNIT_TEST friend class TestCntSymbianDatabase; #endif //CNTSYMBIANDATABASE_UNIT_TEST diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/cntsymbianengine.h --- a/qtmobility/plugins/contacts/symbian/inc/cntsymbianengine.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/cntsymbianengine.h Mon May 03 13:18:40 2010 +0300 @@ -86,66 +86,76 @@ Q_OBJECT public: - CntSymbianEngine(const QMap& parameters, QContactManager::Error& error); + CntSymbianEngine(const QMap& parameters, QContactManager::Error* error); CntSymbianEngine(const CntSymbianEngine& other); ~CntSymbianEngine(); - void deref(); /* URI reporting */ QString managerName() const; + /* XXX TODO - implement these correctly */ + QMap managerParameters() const {return QMap();} + int managerVersion() const { return 1;} + QContact compatibleContact(const QContact&, QContactManager::Error* error) const {*error = QContactManager::NotSupportedError;return QContact();} + bool validateContact(const QContact& contact, QContactManager::Error* error) const {return QContactManagerEngine::validateContact(contact, error);} + bool validateDefinition(const QContactDetailDefinition& def, QContactManager::Error* error) const {return QContactManagerEngine::validateDefinition(def, error);} + QContactDetailDefinition detailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) const {return QContactManagerEngine::detailDefinition(definitionId, contactType, error);} + bool saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error* error) {return QContactManagerEngine::saveDetailDefinition(def, contactType, error);} + bool removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) {return QContactManagerEngine::removeDetailDefinition(definitionId, contactType, error);} + QStringList supportedContactTypes() const {return QContactManagerEngine::supportedContactTypes();} + + /* Functions that are optional in the base API */ + bool saveRelationship(QContactRelationship* relationship, QContactManager::Error* error); + bool removeRelationship(const QContactRelationship& relationship, QContactManager::Error* error); + bool saveContact(QContact* contact, QContactManager::Error* error); + bool removeContact(const QContactLocalId& contactId, QContactManager::Error* error); + /* Contacts - Accessors and Mutators */ - QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error& error) const; - QList contactIds(const QList& sortOrders, QContactManager::Error& error) const; - QList contacts(const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - QList contacts(const QContactFilter& filter, const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - QContact contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - - bool saveContact(QContact* contact, QContactManager::Error& error); - bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error& error); - bool removeContact(const QContactLocalId& contactId, QContactManager::Error& error); - bool removeContacts(QList* contactIds, QMap* errorMap, QContactManager::Error& error); + QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const; + QList contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; + QContact contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; + + bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error); + bool removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error); /* Synthesize the display label of a contact */ - QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const; + QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const; /* "Self" contact id (MyCard) */ - bool setSelfContactId(const QContactLocalId& contactId, QContactManager::Error& error); - QContactLocalId selfContactId(QContactManager::Error& error) const; + bool setSelfContactId(const QContactLocalId& contactId, QContactManager::Error* error); + QContactLocalId selfContactId(QContactManager::Error* error) const; /* Relationships between contacts */ - QList relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationshipFilter::Role role, QContactManager::Error& error) const; - bool saveRelationship(QContactRelationship* relationship, QContactManager::Error& error); - QList saveRelationships(QList* relationships, QContactManager::Error& error); - bool removeRelationship(const QContactRelationship& relationship, QContactManager::Error& error); - QList removeRelationships(const QList& relationships, QContactManager::Error& error); + QList relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) const; + bool saveRelationships(QList* relationships, QMap* errorMap, QContactManager::Error* error); + bool removeRelationships(const QList& relationships, QMap* errorMap, QContactManager::Error* error); /* Definitions - Accessors and Mutators */ - QMap detailDefinitions(const QString& contactType, QContactManager::Error& error) const; + QMap detailDefinitions(const QString& contactType, QContactManager::Error* error) const; /* Capabilities reporting */ bool hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const; - QStringList supportedRelationshipTypes(const QString& contactType) const; + bool isRelationshipTypeSupported(const QString& relationshipType, const QString& contactType) const; bool isFilterSupported(const QContactFilter& filter) const; QList supportedDataTypes() const; private: - QList slowFilter(const QContactFilter& filter, const QList& contacts, QContactManager::Error& error) const; - QList slowSort(const QList& contactIds, const QList& sortOrders, QContactManager::Error& error) const; - bool doSaveContact(QContact* contact, QContactChangeSet& changeSet, QContactManager::Error& error); + QList slowFilter(const QContactFilter& filter, const QList& contacts, QContactManager::Error* error) const; + QList slowSort(const QList& contactIds, const QList& sortOrders, QContactManager::Error* error) const; + bool doSaveContact(QContact* contact, QContactChangeSet& changeSet, QContactManager::Error* error); QContact fetchContactL(const QContactLocalId &localId, const QStringList& definitionRestrictions) const; /* Add contact */ - bool addContact(QContact& contact, QContactChangeSet& changeSet, QContactManager::Error& qtError); + bool addContact(QContact& contact, QContactChangeSet& changeSet, QContactManager::Error* qtError); int addContactL(QContact &contact); /* Update contact */ - bool updateContact(QContact& contact, QContactChangeSet& changeSet, QContactManager::Error& qtError); + bool updateContact(QContact& contact, QContactChangeSet& changeSet, QContactManager::Error* qtError); void updateContactL(QContact &contact); /* Remove contact */ - bool removeContact(const QContactLocalId &id, QContactChangeSet& changeSet, QContactManager::Error& qtError); + bool removeContact(const QContactLocalId &id, QContactChangeSet& changeSet, QContactManager::Error* qtError); int removeContactL(QContactLocalId id); void updateDisplayLabel(QContact& contact) const; @@ -172,15 +182,16 @@ QQueue m_asynchronousOperations; // async requests to be performed. #ifdef PBK_UNIT_TEST friend class TestSymbianEngine; + friend class TestCntRelationship; #endif //PBK_UNIT_TEST }; #ifndef PBK_UNIT_TEST -class Q_DECL_EXPORT CntSymbianFactory : public QObject, public QContactManagerEngineFactory +class CntSymbianFactory : public QObject, public QContactManagerEngineFactory { Q_OBJECT Q_INTERFACES(QtMobility::QContactManagerEngineFactory) public: - QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error& error); + QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error* error); QString managerName() const; }; #endif //PBK_UNIT_TEST diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/cntsymbiantransformerror.h --- a/qtmobility/plugins/contacts/symbian/inc/cntsymbiantransformerror.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/cntsymbiantransformerror.h Mon May 03 13:18:40 2010 +0300 @@ -52,7 +52,7 @@ class CntSymbianTransformError { public: - static void transformError(TInt symbianError, QContactManager::Error& qtError); + static void transformError(TInt symbianError, QContactManager::Error* qtError); }; #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntabstractcontactfilter.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntabstractcontactfilter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntabstractcontactfilter.h Mon May 03 13:18:40 2010 +0300 @@ -53,18 +53,26 @@ { public: enum FilterSupport { - /* The filter not supported */ + /* The filter is not supported */ NotSupported = 0, - /* The filter is supported */ + /* The filter is illegal. Filtering is not allowed and the operation + * should fail immediately with an error. + */ + IllegalFilter, + /* The filter is supported natively */ Supported, - /* The filter is not directly supported, but for performance reasons - * the contact filter implementation pretends supporting the filter - * when it actually maps the filter to another, less strict filter. - * For example if the caller uses match flag QContactFilter::MatchExactly, the - * filter actually gives the result as QContactFilter::MatchContains (because of - * the limitations in the underlying database). + /* The filter is not fully natively supported, but for performance + * reasons the contact filter implementation pretends supporting the + * filter when it actually maps the filter to another, less strict + * filter. + * + * For example if the caller uses match flag QContactFilter::MatchExactly, + * the filter actually gives the result as QContactFilter::MatchContains + * (because of the limitations in the underlying database). + * * The result then needs to be filtered by the caller (for example by - * using QContactManagerEngine::testFilter). */ + * using QContactManagerEngine::testFilter). + */ SupportedPreFilterOnly }; public: @@ -72,7 +80,7 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error) = 0; + QContactManager::Error* error) = 0; virtual bool filterSupported(const QContactFilter& filter) = 0; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntabstractcontactsorter.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntabstractcontactsorter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntabstractcontactsorter.h Mon May 03 13:18:40 2010 +0300 @@ -53,12 +53,12 @@ public: virtual QList contacts( const QList& sortOrders, - QContactManager::Error& error) = 0; + QContactManager::Error* error) = 0; virtual QList sort( QList contactIds, const QList& sortOrders, - QContactManager::Error& error) = 0; + QContactManager::Error* error) = 0; virtual bool sortOrderSupported(const QList& sortOrders) = 0; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntdbinfo.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntdbinfo.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntdbinfo.h Mon May 03 13:18:40 2010 +0300 @@ -44,8 +44,11 @@ #define CNTDBINFO_H_ #include +#include #include -#include +#include + +QTM_USE_NAMESPACE class CntSymbianSrvConnection; class CntSymbianFilter; @@ -67,16 +70,14 @@ QString& tableName, QString& columnName ) const; bool SupportsUid(int uid); + + QString getSortQuery(const QList &sortOrders, + const QString& selectQuery, + QContactManager::Error* error); private: QHash contactsTableIdColumNameMapping; QHash commAddrTableIdColumNameMapping; - }; - - - - - #endif /* CNTDBINFO_H_ */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntdisplaylabelsqlfilter.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntdisplaylabelsqlfilter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntdisplaylabelsqlfilter.h Mon May 03 13:18:40 2010 +0300 @@ -56,7 +56,7 @@ void createSqlQuery(const QContactDetailFilter& filter, QString& sqlQuery, - QContactManager::Error& error); + QContactManager::Error* error); private: void createQuerySingleSearchValue(QString& sqlQuery, const QString &searchValue, const QStringList &columns) const; void createQueryMultipleSearchValues(QString& sqlQuery, const QStringList &searchValues, const QStringList &columns) const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilteraction.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilteraction.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilteraction.h Mon May 03 13:18:40 2010 +0300 @@ -55,12 +55,12 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error); + QContactManager::Error* error); bool filterSupported(const QContactFilter& filter); void createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error); + QContactManager::Error* error); private: protected: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterchangelog.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterchangelog.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterchangelog.h Mon May 03 13:18:40 2010 +0300 @@ -55,12 +55,12 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error); + QContactManager::Error* error); bool filterSupported(const QContactFilter& filter); void createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error); + QContactManager::Error* error); private: protected: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdefault.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdefault.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdefault.h Mon May 03 13:18:40 2010 +0300 @@ -55,12 +55,12 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error); + QContactManager::Error* error); bool filterSupported(const QContactFilter& filter); void createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error); + QContactManager::Error* error); private: protected: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdetail.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdetail.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdetail.h Mon May 03 13:18:40 2010 +0300 @@ -44,7 +44,6 @@ #include "cntabstractcontactfilter.h" #include "cntsymbiansrvconnection.h" -#include "qcontactdetailfilter.h" #include "cntdbinfo.h" #include @@ -60,7 +59,7 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error); + QContactManager::Error* error); bool filterSupported(const QContactFilter& filter) ; //bool isFilterSupported(const QContactFilter& filter) const; @@ -68,19 +67,19 @@ void getTableNameWhereClause( const QContactDetailFilter& filter, QString& tableName, QString& sqlWhereClause , - QContactManager::Error& error) const; + QContactManager::Error* error) const; void createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error); + QContactManager::Error* error); private: void updateForMatchFlag( const QContactDetailFilter& filter, QString& fieldToUpdate , - QContactManager::Error& error) const; + QContactManager::Error* error) const; QList HandlePhonenumberDetailFilter(const QContactFilter& filter); QList HandlePredictiveSearchFilter(const QContactFilter& filter, - QContactManager::Error& error); + QContactManager::Error* error); TInt CntFilterDetail::searchPhoneNumbers( CContactIdArray*& idArray, diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdetaildisplaylabel.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdetaildisplaylabel.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdetaildisplaylabel.h Mon May 03 13:18:40 2010 +0300 @@ -59,10 +59,10 @@ public: QString createSelectQuery(const QContactFilter& filter, const QList& sortOrders, - QContactManager::Error& error) const; + QContactManager::Error* error) const; void createSelectQuery(const QContactFilter& detailFilter, QString& sqlQuery, - QContactManager::Error& error); + QContactManager::Error* error); private: void createQuerySingleSearchValue(QString& sqlQuery, const QString &searchValue, const QStringList &columns) const; void createQueryMultipleSearchValues(QString& sqlQuery, const QStringList &searchValues, const QStringList &columns) const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdetailrange.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdetailrange.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterdetailrange.h Mon May 03 13:18:40 2010 +0300 @@ -55,12 +55,12 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error); + QContactManager::Error* error); bool filterSupported(const QContactFilter& filter); void createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error); + QContactManager::Error* error); private: protected: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterintersection.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterintersection.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterintersection.h Mon May 03 13:18:40 2010 +0300 @@ -44,8 +44,8 @@ #include "cntabstractcontactfilter.h" #include "cntsymbiansrvconnection.h" +#include "cntdbinfo.h" #include "qcontactdetailfilter.h" -#include "cntdbinfo.h" class CntFilterIntersection : public CntAbstractContactFilter { @@ -57,21 +57,21 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error) ; + QContactManager::Error* error) ; bool filterSupported(const QContactFilter& filter); void getSqlQuery( const QContactIntersectionFilter& filter, - QString& tableName, - QString& sqlWhereClause , - QContactManager::Error& error) const; + QString& tableName, + QString& sqlWhereClause , + QContactManager::Error* error) const; void createSelectQuery(const QContactFilter& filter, QString& selectquery, - QContactManager::Error& error); + QContactManager::Error* error); private: - void getSelectQueryforFilter(const QContactFilter& filter,QString& sqlSelectQuery,QContactManager::Error& error); - + void getSelectQueryforFilter(const QContactFilter& filter,QString& sqlSelectQuery,QContactManager::Error* error); + protected: CContactDatabase& m_contactdatabase; CntSymbianSrvConnection &m_srvConnection; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterinvalid.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterinvalid.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterinvalid.h Mon May 03 13:18:40 2010 +0300 @@ -55,11 +55,11 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error); + QContactManager::Error* error); bool filterSupported(const QContactFilter& filter); void createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error); + QContactManager::Error* error); private: protected: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterlocalid.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterlocalid.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterlocalid.h Mon May 03 13:18:40 2010 +0300 @@ -56,12 +56,12 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error); + QContactManager::Error* error); bool filterSupported(const QContactFilter& filter); void createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error); + QContactManager::Error* error); private: protected: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterrelationship.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterrelationship.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterrelationship.h Mon May 03 13:18:40 2010 +0300 @@ -44,7 +44,6 @@ #include "cntabstractcontactfilter.h" #include "cntsymbiansrvconnection.h" -#include "qcontactdetailfilter.h" #include "cntdbinfo.h" #include @@ -60,17 +59,17 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error); + QContactManager::Error* error); bool filterSupported(const QContactFilter& filter) ; //bool isFilterSupported(const QContactFilter& filter) const; void CntFilterRelationship::getSqlquery( const QContactRelationshipFilter& relationfilter, QString& sqlquery , - QContactManager::Error& error) const; + QContactManager::Error* error) const; void CntFilterRelationship::createSelectQuery(const QContactFilter& detailFilter, QString& sqlQuery, - QContactManager::Error& error); + QContactManager::Error* error); protected: CContactDatabase& m_contactdatabase; CntSymbianSrvConnection &m_srvConnection; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterunion.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterunion.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntfilterunion.h Mon May 03 13:18:40 2010 +0300 @@ -44,7 +44,6 @@ #include "cntabstractcontactfilter.h" #include "cntsymbiansrvconnection.h" -#include "qcontactdetailfilter.h" #include "cntdbinfo.h" #include @@ -60,16 +59,16 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupported, - QContactManager::Error &error) ; + QContactManager::Error* error) ; bool filterSupported(const QContactFilter& filter) ; void createSelectQuery(const QContactFilter& filter, QString& selectquery, - QContactManager::Error& error); + QContactManager::Error* error); private: - void getSelectQueryforFilter(const QContactFilter& filter,QString& sqlSelectQuery,QContactManager::Error& error); - + void getSelectQueryforFilter(const QContactFilter& filter,QString& sqlSelectQuery,QContactManager::Error* error); + protected: CContactDatabase& m_contactdatabase; CntSymbianSrvConnection &m_srvConnection; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbianfilterdbms.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbianfilterdbms.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbianfilterdbms.h Mon May 03 13:18:40 2010 +0300 @@ -69,13 +69,13 @@ QList contacts(const QContactFilter& filter, const QList& sortOrders, bool &filterSupported, - QContactManager::Error& error); + QContactManager::Error* error); bool filterSupported(const QContactFilter& filter); private: FilterSupport filterSupportLevel(const QContactFilter& filter); QList filterContacts(const QContactFilter& filter, - QContactManager::Error& error); + QContactManager::Error* error); void transformDetailFilterL(const QContactDetailFilter& detailFilter, CContactItemFieldDef*& fieldDef); TInt findContacts( CContactIdArray*& idArray, @@ -94,7 +94,7 @@ CntAbstractContactSorter *m_contactSorter; CntTransformContact *m_transformContact; #ifdef PBK_UNIT_TEST - friend class ut_cntfilteringdbms; + friend class tst_cntfilteringdbms; #endif }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbianfiltersql.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbianfiltersql.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbianfiltersql.h Mon May 03 13:18:40 2010 +0300 @@ -64,7 +64,7 @@ const QContactFilter& filter, const QList& sortOrders, bool &filterSupportedflag, - QContactManager::Error& error) ; + QContactManager::Error* error) ; void initializeFilters(); @@ -72,7 +72,7 @@ protected: void createSelectQuery(const QContactFilter& /*detailFilter*/, QString& /*sqlQuery*/, - QContactManager::Error& /*error*/){}; + QContactManager::Error* /*error*/){}; private: CContactDatabase& m_contactDatabase; CntDbInfo* m_dbInfo; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbianfiltersqlhelper.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbianfiltersqlhelper.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,140 +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 QtCore 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 CNTSYMBIANFILTERSQLHELPER_H -#define CNTSYMBIANFILTERSQLHELPER_H - -// System includes -#include -// User includes -#include "qcontactdetailfilter.h" -#include "qcontactphonenumber.h" -#include "qcontactmanager.h" -#include "cntsymbiansrvconnection.h" -#include "cntabstractcontactfilter.h" - -// Forward declarations -class CntSqlSearch; -// External data types - -// Constants -QTM_USE_NAMESPACE -class CntSymbianFilterSqlHelper -{ -public: - Q_DECLARE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::SingleQuote,"'") ; - Q_DECLARE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::PercentSign,"%") ; - Q_DECLARE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::Space," ") ; - Q_DECLARE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::EqualTo,"=") ; - Q_DECLARE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::SqlLike," LIKE ") ; - Q_DECLARE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::SqlNotNull," NOT NULL ") ; - Q_DECLARE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::SqlWhere," WHERE ") ; - Q_DECLARE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::SqlOr," OR ") ; - Q_DECLARE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::contactsTable," contact ") ; - Q_DECLARE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::commAddrTable," comm_addr ") ; - - //This is copied from pltables.h from cntmodel. - // This definition needs to be exported and the file included - // so that duplicity is avoided - enum TCommAddrType - { - EPhoneNumber, - EEmailAddress, - ESipAddress - }; -public: - CntSymbianFilterSqlHelper(CContactDatabase &contactDatabase); - virtual ~CntSymbianFilterSqlHelper(); - -public: - /*Generic functions for all filters*/ - QList searchContacts(const QContactFilter& filter, - const QList& sortOrders, - QContactManager::Error& error); - CntAbstractContactFilter::FilterSupport filterSupportLevel(const QContactFilter& filter); - -private: - void appendSortOrderQuery(QString& sqlQuery, const QList& sortOrders); - void columnName( QString &columnName, const QString &detailDefinitionName, const QString & detailFieldName); - void createSqlQuery(const QContactFilter& filter, - QString& sqlQuery, - QContactManager::Error& error); - /* Return true if this filter is leaf filter*/ - bool isSingleFilter(const QContactFilter& filter) const; - /*Local helper functions used for creating the sql query */ - void updateSqlQueryForSingleFilter(const QContactFilter& filter, - QString& sqlQuery, - QContactManager::Error& error); - void updateSqlQueryForDetailFilter(const QContactFilter& filter, - QString& sqlQuery, - QContactManager::Error& error); - - void getSqlDbTableAndColumnNameforDetailFilter( - const QContactDetailFilter& filter , - bool& isSubType, - QString& tableName, - QString& columnName ); - - - void updateFieldForDeatilFilterMatchFlag( const QContactDetailFilter& filter, - QString& fieldToUpdate , - QContactManager::Error& error) const; - QList CntSymbianFilterSqlHelper::HandlePhonenumberDetailFilter(const QContactDetailFilter detailFilter); - void getMatchLengthL(TInt& matchLength); - TInt CntSymbianFilterSqlHelper::searchPhoneNumbers( - CContactIdArray*& idArray, - const TDesC& phoneNumber, - const TInt matchLength); - CntAbstractContactFilter::FilterSupport checkIfDetailFilterSupported(const QContactDetailFilter& detailFilter) const; - QList HandlePredictiveSearchFilter(const QContactFilter& filter, bool& isPredSearch, QContactManager::Error& error); - -private: - CntSymbianSrvConnection* m_srvConnection; - CntSqlSearch* m_sqlSearch; - CContactDatabase &m_contactDatabase; - bool isPhoneNumberSearchforDetailFilter; - QHash contactsTableIdColumNameMapping; - QHash commAddrTableIdColumNameMapping; - - friend class ut_cntsymbianfiltersqlhelper; - -}; - -#endif//CNTSYMBIANFILTERSQLHELPER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbiansorterdbms.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbiansorterdbms.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbiansorterdbms.h Mon May 03 13:18:40 2010 +0300 @@ -59,11 +59,11 @@ /* from CntAbstractContactFilter */ QList contacts( const QList& sortOrders, - QContactManager::Error& error); + QContactManager::Error* error); QList sort( QList contactIds, const QList& sortOrders, - QContactManager::Error& error); + QContactManager::Error* error); bool sortOrderSupported(const QList& sortOrders); private: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbiansrvconnection.h --- a/qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbiansrvconnection.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/filtering/cntsymbiansrvconnection.h Mon May 03 13:18:40 2010 +0300 @@ -65,7 +65,7 @@ public: /* QT like functions */ QList searchContacts(const QString& searchQuery, - QContactManager::Error& error); + QContactManager::Error* error); private: /* Symbian Leaving functions */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/transform/cnttransformavatarsimple.h --- a/qtmobility/plugins/contacts/symbian/inc/transform/cnttransformavatarsimple.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,69 +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 Qt Mobility Components. -** -** $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 TRANSFORMAVATAR_SIMPLE_H -#define TRANSFORMAVATAR_SIMPLE_H - -#include "cnttransformcontactdata.h" - -class CntThumbnailCreator; - -QTM_USE_NAMESPACE - -class CntTransformAvatarSimple : public CntTransformContactData -{ -public: - CntTransformAvatarSimple(); - ~CntTransformAvatarSimple(); - -protected: - QList transformDetailL(const QContactDetail &detail); - QContactDetail *transformItemField(const CContactItemField& field, const QContact &contact); - bool supportsField(TUint32 fieldType) const; - bool supportsDetail(QString detailName) const; - QList supportedSortingFieldTypes(QString detailFieldName) const; - bool supportsSubType(const QString& subType) const; - quint32 getIdForField(const QString& fieldName) const; - void detailDefinitions(QMap &definitions, const QString& contactType) const; -private: - CntThumbnailCreator* m_thumbnailCreator; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/transform/cnttransformcontact.h --- a/qtmobility/plugins/contacts/symbian/inc/transform/cnttransformcontact.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/inc/transform/cnttransformcontact.h Mon May 03 13:18:40 2010 +0300 @@ -75,7 +75,7 @@ CContactItem &contactItem) const; QList supportedSortingFieldTypes( QString detailDefinitionName, QString detailFieldName ); TUint32 GetIdForDetailL(const QContactDetailFilter& detailFilter,bool& isSubtype) const; - void detailDefinitions(QMap& defaultSchema, const QString& contactType, QContactManager::Error& error) const; + void detailDefinitions(QMap& defaultSchema, const QString& contactType, QContactManager::Error* error) const; QContactDetail *transformGuidItemFieldL(const CContactItem &contactItem, const CContactDatabase &contactDatabase) const; QContactDetail *transformTimestampItemFieldL(const CContactItem &contactItem, const CContactDatabase &contactDatabase) const; private: @@ -97,6 +97,8 @@ Geolocation, Note, Family, + Ringtone, + Thumbnail, Empty }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/transform/cnttransformringtone.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbian/inc/transform/cnttransformringtone.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,61 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 TRANSFORMRINGTONE_H +#define TRANSFORMRINGTONE_H + +#include "cnttransformcontactdata.h" + +QTM_USE_NAMESPACE + +class CntTransformRingtone : public CntTransformContactData +{ +protected: + QList transformDetailL(const QContactDetail &detail); + QContactDetail *transformItemField(const CContactItemField& field, const QContact &contact); + bool supportsField(TUint32 fieldType) const; + bool supportsDetail(QString detailName) const; + QList supportedSortingFieldTypes(QString detailFieldName) const; + bool supportsSubType(const QString& subType) const; + quint32 getIdForField(const QString& fieldName) const; + void detailDefinitions(QMap &definitions, const QString& contactType) const; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/inc/transform/cnttransformthumbnail.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbian/inc/transform/cnttransformthumbnail.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,68 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 TRANSFORMTHUMBNAIL_H +#define TRANSFORMTHUMBNAIL_H + +#include "cnttransformcontactdata.h" +#include "cntthumbnailcreator.h" + +QTM_USE_NAMESPACE + +class CntTransformThumbnail : public CntTransformContactData +{ +public: + CntTransformThumbnail(); + ~CntTransformThumbnail(); + +protected: + QList transformDetailL(const QContactDetail &detail); + QContactDetail *transformItemField(const CContactItemField& field, const QContact &contact); + bool supportsField(TUint32 fieldType) const; + bool supportsDetail(QString detailName) const; + QList supportedSortingFieldTypes(QString detailFieldName) const; + bool supportsSubType(const QString& subType) const; + quint32 getIdForField(const QString& fieldName) const; + void detailDefinitions(QMap &definitions, const QString& contactType) const; +private: + CntThumbnailCreator* m_thumbnailCreator; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/plugin_commonU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbian/plugin_commonU.def Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,16 @@ +; ============================================================================== +; Generated by qmake (2.01a) (Qt 4.6.1) on: 2010-03-19T12:47:52 +; This file is generated by qmake and should not be modified by the +; user. +; Name : plugin_commonU.def +; Part of : mobapicontactspluginsymbian +; Description : Fixes common plugin symbols to known ordinals +; Version : +; +; ============================================================================== + + +EXPORTS + qt_plugin_query_verification_data @ 1 NONAME + qt_plugin_instance @ 2 NONAME + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/rss/.gitignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbian/rss/.gitignore Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,69 @@ +.DS_Store +.obj +*.moc +Makefile* +*.dylib +*.so.* +*.so +*.so.debug +*.o +*~ +.cd.rc +*.swp +core +moc_*.cpp +*.Debug +*.Release +*.pdb +*.idb +*.ib_pdb_index +build +include/* +config.pri +config.in +config.log +mobility.prf +bin/servicexmlgen* +bin/servicefw* +bin/vsexplorer* +bin/examples/* +bin/sysinfo* +bin/qcrmlgen* +bin/icheck* +install/* +lib/* +*.app +config.tests/networkmanager/networkmanager +config.tests/qmf/qmf +.qmake.cache + +#Symbian specific +*.mmp +*.pkg +bld.inf* +ABLD.BAT +*.mk +*.sis +*.sisx +.make.cache +qmakepluginstubs + +#Carbide project files +*.project +*.cproject +*.settings +plugin_commonU.def + +#Visual Studio files +*.sln +*.vcproj +*.suo +*.ncb +*.user + +#QtCreator project files +*.pro.user +======= +*.pro.user* +*~ + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/rss/cntmodel.rss --- a/qtmobility/plugins/contacts/symbian/rss/cntmodel.rss Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/rss/cntmodel.rss Mon May 03 13:18:40 2010 +0300 @@ -213,6 +213,19 @@ category=EContactCategoryHome; fieldName=STRING_r_cntui_new_field_defns11; }, + FIELD // Number: video calls (Home) + { + fieldStorageType=KStorageTypeText; + contactFieldType=KUidContactFieldPhoneNumberValue; + vCardMapping=KIntContactFieldVCardMapTEL; + extraMapping= + { + MAPPING { mapping=KIntContactFieldVCardMapHOME; }, + MAPPING { mapping=KIntContactFieldVCardMapVIDEO; } + }; + category=EContactCategoryHome; + fieldName=qtn_phob_lbl_video_home; + }, FIELD // Email Address (Home) { fieldStorageType = KStorageTypeText; @@ -417,6 +430,19 @@ category = EContactCategoryWork; fieldName = qtn_phob_lbl_fax_work; }, + FIELD // Number: video calls (Work) + { + fieldStorageType=KStorageTypeText; + contactFieldType=KUidContactFieldPhoneNumberValue; + vCardMapping=KIntContactFieldVCardMapTEL; + extraMapping= + { + MAPPING { mapping=KIntContactFieldVCardMapWORK; }, + MAPPING { mapping=KIntContactFieldVCardMapVIDEO; } + }; + category=EContactCategoryWork; + fieldName=qtn_phob_lbl_video_work; + }, FIELD //Assistant number { fieldStorageType=KStorageTypeText; @@ -604,7 +630,18 @@ category = EContactCategoryNone; fieldName = qtn_phob_lbl_fax; }, - + FIELD // Number: video calls (general) + { + fieldStorageType=KStorageTypeText; + contactFieldType=KUidContactFieldPhoneNumberValue; + vCardMapping=KIntContactFieldVCardMapTEL; + extraMapping= + { + MAPPING { mapping=KIntContactFieldVCardMapVIDEO; } + }; + category=EContactCategoryNone; + fieldName=qtn_phob_lbl_video; + }, FIELD // Email Address (general) { fieldStorageType = KStorageTypeText; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/runtest.cmd --- a/qtmobility/plugins/contacts/symbian/runtest.cmd Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -cd tsrc -call del MON.sym -call del MON.dat -call del profile.txt - -call qmake -call bldmake bldfiles -call abld clean -call abld reallyclean -call ctcwrap -i d -C "EXCLUDE+*\moc*.cpp" -C "EXCLUDE+..\src\cnttransformanniversarysimple.cpp" -C "EXCLUDE+..\src\cnttransformavatarsimple.cpp" -C "EXCLUDE+..\src\cnttransformempty.cpp" abld build winscw udeb - -call \epoc32\release\winscw\udeb\ut_cntsymbianengine.exe -xml -o c:\testresults_symbianengine.xml -call \epoc32\release\winscw\udeb\ut_transformcontactdata.exe -xml -o c:\testresults_transformcontactdata.xml -call \epoc32\release\winscw\udeb\ut_cntfiltering.exe -xml -o c:\testresults_cntfiltering.xml -call \epoc32\release\winscw\udeb\ut_cntsymbiandatabase.exe -xml -o c:\testresults_symbiandatabase.xml -call \epoc32\release\winscw\udeb\ut_cntrelationship.exe -xml -o c:\testresults_relationship.xml -rem call \epoc32\release\winscw\udeb\tst_details.exe -xml -o c:\testresults_details.xml - -call ctcpost MON.sym MON.dat -p profile.txt -call ctc2html -i profile.txt -nsb -cd .. \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/cntdisplaylabel.cpp --- a/qtmobility/plugins/contacts/symbian/src/cntdisplaylabel.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/cntdisplaylabel.cpp Mon May 03 13:18:40 2010 +0300 @@ -74,8 +74,8 @@ //Contact //Preferred details QList > contactPrefferedDisplayLabelDetails; - contactPrefferedDisplayLabelDetails.append(qMakePair(QLatin1String(QContactName::DefinitionName), QLatin1String(QContactName::FieldFirst))); - contactPrefferedDisplayLabelDetails.append(qMakePair(QLatin1String(QContactName::DefinitionName), QLatin1String(QContactName::FieldLast))); + contactPrefferedDisplayLabelDetails.append(qMakePair(QLatin1String(QContactName::DefinitionName), QLatin1String(QContactName::FieldFirstName))); + contactPrefferedDisplayLabelDetails.append(qMakePair(QLatin1String(QContactName::DefinitionName), QLatin1String(QContactName::FieldLastName))); m_contactDisplayLabelDetails.append(contactPrefferedDisplayLabelDetails); //if preferred details doesn't exist use these @@ -95,10 +95,10 @@ * \a error On return, contains the possible error. * \return synthesised display label */ -QString CntDisplayLabel::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const +QString CntDisplayLabel::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const { QString displayLabel; - error = QContactManager::NoError; + *error = QContactManager::NoError; //contact if(contact.type() == QContactType::TypeContact) { @@ -112,7 +112,7 @@ //invalid type else { - error = QContactManager::InvalidContactTypeError; + *error = QContactManager::InvalidContactTypeError; } return displayLabel; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/cntrelationship.cpp --- a/qtmobility/plugins/contacts/symbian/src/cntrelationship.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/cntrelationship.cpp Mon May 03 13:18:40 2010 +0300 @@ -71,6 +71,7 @@ { QMap::iterator itr; + /* XXX maybe use qDeleteAll? */ for (itr = m_relationshipMap.begin(); itr != m_relationshipMap.end(); ++itr) { CntAbstractRelationship* value = itr.value(); @@ -80,18 +81,21 @@ } /*! - * \return The supported relationship types. + * \return whether relationships of type \a relationshipType is supported by contacts of \a contactType */ -QStringList CntRelationship::supportedRelationshipTypes(const QString &contactType) const +bool CntRelationship::isRelationshipTypeSupported(const QString &relationshipType, const QString &contactType) const { Q_UNUSED(contactType); - + return m_relationshipMap.contains(relationshipType); + + /* XXX Old code: QStringList supportedTypes; - foreach(QString type, m_relationshipMap.keys()) { + foreach(const QString& type, m_relationshipMap.keys()) { supportedTypes.append(type); } return supportedTypes; + */ } /* ! @@ -102,21 +106,21 @@ * \a role The contact role * \a error Error returned */ -QList CntRelationship::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationshipFilter::Role role, QContactManager::Error& error) const +QList CntRelationship::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) const { QList returnValue; - error = QContactManager::NoError; + *error = QContactManager::NoError; // if relationshipType is empty, relationships of any type are returned. if (relationshipType.isEmpty()) { - foreach (QString type, m_relationshipMap.keys()) + foreach (const QString& type, m_relationshipMap.keys()) { // get the relationship CntAbstractRelationship *abstractRelationship = m_relationshipMap.value(type); // retrieve the relationships - TRAPD(symbianError, QT_TRYCATCH_LEAVING(returnValue.append(abstractRelationship->relationshipsL(participantId, role, error)))); + TRAPD(symbianError, returnValue.append(abstractRelationship->relationshipsL(participantId, role, error))); // if error translate it into a qt error if (symbianError != KErrNone){ @@ -124,14 +128,14 @@ } // return empty list if there was an error - if (error != QContactManager::NoError && error != QContactManager::DoesNotExistError) { + if (*error != QContactManager::NoError && *error != QContactManager::DoesNotExistError) { return QList(); } } // if relationships found, update error - if (!returnValue.isEmpty() && error == QContactManager::DoesNotExistError) { + if (!returnValue.isEmpty() && *error == QContactManager::DoesNotExistError) { // this can be the case if nothing is found for last relationship type - error = QContactManager::NoError; + *error = QContactManager::NoError; } } //check if we support the relationship @@ -141,7 +145,7 @@ CntAbstractRelationship *abstractRelationship = m_relationshipMap.value(relationshipType); //retrieve the relationships - TRAPD(symbianError, QT_TRYCATCH_LEAVING(returnValue = abstractRelationship->relationshipsL(participantId, role, error))); + TRAPD(symbianError, returnValue = abstractRelationship->relationshipsL(participantId, role, error)); //if error translate it into a qt error if (symbianError != KErrNone){ @@ -149,12 +153,12 @@ } } else{ - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; } // No relationships found? - if (error == QContactManager::NoError && returnValue.count() == 0 ) { - error = QContactManager::DoesNotExistError; + if (*error == QContactManager::NoError && returnValue.count() == 0 ) { + *error = QContactManager::DoesNotExistError; } return returnValue; @@ -167,10 +171,10 @@ * \a relationship to be saved * \a error Error returned */ -bool CntRelationship::saveRelationship(QSet *affectedContactIds, QContactRelationship* relationship, QContactManager::Error& error) +bool CntRelationship::saveRelationship(QSet *affectedContactIds, QContactRelationship* relationship, QContactManager::Error* error) { bool returnValue(false); - error = QContactManager::NoError; + *error = QContactManager::NoError; if (validateRelationship(*relationship, error)) { // Update manager uri to this manager if it is empty @@ -184,7 +188,7 @@ CntAbstractRelationship *abstractRelationship = m_relationshipMap.value(relationship->relationshipType()); //save the relationship - TRAPD(symbianError, QT_TRYCATCH_LEAVING(returnValue = abstractRelationship->saveRelationshipL(affectedContactIds, relationship, error))); + TRAPD(symbianError, returnValue = abstractRelationship->saveRelationshipL(affectedContactIds, relationship, error)); //if symbian error translate it into a qt error if (symbianError != KErrNone){ @@ -200,24 +204,31 @@ * * \a affectedContactIds will include the affected contact ids * \a relationships to be saved - * \return a list of errors + * \a errorMap storage place for errors + * \return true if there were no errors saving */ -QList CntRelationship::saveRelationships(QSet *affectedContactIds, QList* relationships, QContactManager::Error& error) +bool CntRelationship::saveRelationships(QSet *affectedContactIds, QList* relationships, QMap* errorMap, QContactManager::Error* error) { - QList returnValue; - error = QContactManager::NoError; QContactManager::Error singleError; + bool returnValue(true); + + *error = QContactManager::NoError; // loop through the relationships for (int i = 0; i < relationships->count(); i++) { // save the relationship - saveRelationship(affectedContactIds, &(relationships->operator[](i)), singleError); - returnValue.append(singleError); + saveRelationship(affectedContactIds, &(relationships->operator[](i)), &singleError); + if (errorMap && singleError != QContactManager::NoError) { + errorMap->insert(i, singleError); + } // update the total error - if (singleError != QContactManager::NoError) - error = singleError; + if (singleError != QContactManager::NoError) { + *error = singleError; + returnValue = false; + } + } return returnValue; @@ -231,16 +242,16 @@ * \a error Error returned * \return true if no error otherwise false */ -bool CntRelationship::removeRelationship(QSet *affectedContactIds, const QContactRelationship &relationship, QContactManager::Error& error) +bool CntRelationship::removeRelationship(QSet *affectedContactIds, const QContactRelationship &relationship, QContactManager::Error* error) { bool returnValue(false); - error = QContactManager::NoError; + *error = QContactManager::NoError; if (validateRelationship(relationship, error)) { //get the relationship CntAbstractRelationship *abstractRelationship = m_relationshipMap.value(relationship.relationshipType()); - TRAPD(symbianError, QT_TRYCATCH_LEAVING(returnValue = abstractRelationship->removeRelationshipL(affectedContactIds, relationship, error))); + TRAPD(symbianError, returnValue = abstractRelationship->removeRelationshipL(affectedContactIds, relationship, error)); //if symbian error translate it into a qt error if (symbianError != KErrNone){ @@ -256,35 +267,39 @@ * * \a affectedContactIds will include the affected contact ids * \a relationships to be removed - * \return a list of errors + * \a errorMap storage place for errors + * \return true if there were no errors removing, false otherwise */ -QList CntRelationship::removeRelationships(QSet *affectedContactIds, const QList& relationships, QContactManager::Error& error) +bool CntRelationship::removeRelationships(QSet *affectedContactIds, const QList& relationships, QMap* errorMap, QContactManager::Error* error) { - QList returnValue; - error = QContactManager::NoError; + bool returnValue(true); + *error = QContactManager::NoError; QContactManager::Error qtError(QContactManager::NoError); //loop through the relationships for(int i = 0; i < relationships.count(); i++) { //remove the relationships - removeRelationship(affectedContactIds, relationships.at(i), qtError); - returnValue.append(qtError); + removeRelationship(affectedContactIds, relationships.at(i), &qtError); + if (errorMap && qtError != QContactManager::NoError) + errorMap->insert(i, qtError); // update the total error - if (qtError != QContactManager::NoError) - error = qtError; + if (qtError != QContactManager::NoError) { + returnValue = false; + *error = qtError; + } } return returnValue; } -bool CntRelationship::validateRelationship(const QContactRelationship &relationship, QContactManager::Error& error) +bool CntRelationship::validateRelationship(const QContactRelationship &relationship, QContactManager::Error* error) { - error = QContactManager::NoError; + *error = QContactManager::NoError; // check if supported in this manager if (!m_relationshipMap.contains(relationship.relationshipType())) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return false; } @@ -293,13 +308,13 @@ // zero id contacts not accepted if (!(first.localId() && second.localId())) { - error = QContactManager::InvalidRelationshipError; + *error = QContactManager::InvalidRelationshipError; return false; } // "first" must be a contact in this manager if (!first.managerUri().isEmpty() && first.managerUri() != m_managerUri) { - error = QContactManager::InvalidRelationshipError; + *error = QContactManager::InvalidRelationshipError; return false; } @@ -307,7 +322,7 @@ CContactItem* contact = 0; TRAP_IGNORE(contact = m_contactDatabase->ReadContactL(first.localId())); if (!contact) { - error = QContactManager::InvalidRelationshipError; + *error = QContactManager::InvalidRelationshipError; return false; } delete contact; @@ -317,7 +332,7 @@ { // circular relationships not allowed if (first.localId() == second.localId()) { - error = QContactManager::InvalidRelationshipError; + *error = QContactManager::InvalidRelationshipError; return false; } @@ -325,7 +340,7 @@ contact = 0; TRAP_IGNORE(contact = m_contactDatabase->ReadContactL(second.localId())); if (!contact) { - error = QContactManager::InvalidRelationshipError; + *error = QContactManager::InvalidRelationshipError; return false; } delete contact; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/cntrelationshipgroup.cpp --- a/qtmobility/plugins/contacts/symbian/src/cntrelationshipgroup.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/cntrelationshipgroup.cpp Mon May 03 13:18:40 2010 +0300 @@ -69,7 +69,7 @@ * \a relationship to be saved * \a error t */ -bool CntRelationshipGroup::saveRelationshipL(QSet *affectedContactIds, QContactRelationship* relationship, QContactManager::Error& error) +bool CntRelationshipGroup::saveRelationshipL(QSet *affectedContactIds, QContactRelationship* relationship, QContactManager::Error* error) { //get the ids of the relationship QScopedPointer groupId(new QContactId(relationship->first())); @@ -83,11 +83,11 @@ affectedContactIds->insert(groupId->localId()); affectedContactIds->insert(contactId->localId()); - error = QContactManager::NoError; + *error = QContactManager::NoError; return true; } -bool CntRelationshipGroup::removeRelationshipL(QSet *affectedContactIds, const QContactRelationship& relationship, QContactManager::Error& error) +bool CntRelationshipGroup::removeRelationshipL(QSet *affectedContactIds, const QContactRelationship& relationship, QContactManager::Error* error) { //get the ids of the relationship QScopedPointer groupId(new QContactId(relationship.first())); @@ -110,15 +110,15 @@ CleanupStack::PopAndDestroy(contact); CleanupStack::PopAndDestroy(groupContact); - error = QContactManager::NoError; + *error = QContactManager::NoError; return true; } -bool CntRelationshipGroup::validateRelationship(const QContactRelationship &relationship, QContactManager::Error& error) +bool CntRelationshipGroup::validateRelationship(const QContactRelationship &relationship, QContactManager::Error* error) { // check that "second" is in this manager if (!relationship.second().managerUri().isEmpty() && relationship.second().managerUri() != managerUri()) { - error = QContactManager::InvalidRelationshipError; + *error = QContactManager::InvalidRelationshipError; return false; } @@ -162,20 +162,20 @@ } //retrieve all the groups that the contact is part of -QList CntRelationshipGroup::relationshipsL(const QContactId& participantId, QContactRelationshipFilter::Role role, QContactManager::Error& error) +QList CntRelationshipGroup::relationshipsL(const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) { QList returnValue; if (participantId != QContactId()) { //role is a group - if(role == QContactRelationshipFilter::First || role == QContactRelationshipFilter::Either) + if(role == QContactRelationship::First || role == QContactRelationship::Either) { fetchGroupMembersL(participantId.localId(), &returnValue); } //role is member of a group - if(role == QContactRelationshipFilter::Second || role == QContactRelationshipFilter::Either) + if(role == QContactRelationship::Second || role == QContactRelationship::Either) { fetchMemberOfGroupsL(participantId.localId(), &returnValue); } @@ -188,7 +188,7 @@ } if (returnValue.isEmpty()) - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return returnValue; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/cntsymbiandatabase.cpp --- a/qtmobility/plugins/contacts/symbian/src/cntsymbiandatabase.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/cntsymbiandatabase.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,7 @@ //system includes #include #include +#include //user includes #include "cntsymbiandatabase.h" @@ -51,37 +52,51 @@ // Constant typedef QPair QOwnCardPair; -CntSymbianDatabase::CntSymbianDatabase(QContactManagerEngine *engine, QContactManager::Error& error) : +CntSymbianDatabase::CntSymbianDatabase(QContactManagerEngine *engine, QContactManager::Error* error) : + m_engine(engine), m_contactDatabase(0), m_currentOwnCardId(0) { - TRAPD(err, m_contactDatabase = CContactDatabase::OpenL()) + TRAPD(err, initializeL()); + CntSymbianTransformError::transformError(err, error); +} - //Database not found, create it - if(err == KErrNotFound) - { - TRAP(err, m_contactDatabase = CContactDatabase::CreateL()) +void CntSymbianDatabase::initializeL() +{ + User::LeaveIfNull(m_engine); + + TRAPD(err, m_contactDatabase = CContactDatabase::OpenL()); + + // Database not found, create it + if(err == KErrNotFound) { + m_contactDatabase = CContactDatabase::CreateL(); } - //Database opened successfully - if (err == KErrNone) - { +#ifndef SYMBIAN_BACKEND_USE_SQLITE // In pre 10.1 platforms the AddObserverL & RemoveObserver functions are not // exported so we need to use CContactChangeNotifier. -#ifndef SYMBIAN_BACKEND_USE_SQLITE - TRAP(err, m_contactChangeNotifier = CContactChangeNotifier::NewL(*m_contactDatabase, this)); + TRAP(err, m_contactChangeNotifier = CContactChangeNotifier::NewL(*m_contactDatabase, this)); #else - TRAP(err, m_contactDatabase->AddObserverL(*this)); + TRAP(err, m_contactDatabase->AddObserverL(*this)); #endif - if (err == KErrNone) - m_engine = engine; + + // Read current own card id (self contact id) + TContactItemId myCard = m_contactDatabase->OwnCardId(); + if (myCard > 0) + m_currentOwnCardId = QContactLocalId(myCard); - // Read current own card id (self contact id) - TContactItemId myCard = m_contactDatabase->OwnCardId(); - if (myCard > 0) - m_currentOwnCardId = QContactLocalId(myCard); - } - CntSymbianTransformError::transformError(err, error); + // Currently the group membership check is only used in pre-10.1 + // platforms. In 10.1 we need to check the performance penalty + // caused in the instantiation of QContactManager. If the + // performance is too bad, then the MContactDbObserver API needs to + // be changed in 10.1 so that we don't need the group membership + // buffer in the engine level. In other words events like + // EContactDbObserverEventGroupMembersAdded and + // EContactDbObserverEventGroupMembersRemoved need to be added to + // MContactDbObserver. +#ifndef SYMBIAN_BACKEND_USE_SQLITE + updateGroupMembershipsL(); +#endif } CntSymbianDatabase::~CntSymbianDatabase() @@ -130,46 +145,87 @@ if(m_contactsEmitted.contains(id)) m_contactsEmitted.removeOne(id); else - changeSet.addedContacts().insert(id); + changeSet.insertAddedContact(id); break; case EContactDbObserverEventOwnCardDeleted: + m_currentOwnCardId = QContactLocalId(0); + // ...and send contact deleted event case EContactDbObserverEventContactDeleted: if(m_contactsEmitted.contains(id)) m_contactsEmitted.removeOne(id); else - changeSet.removedContacts().insert(id); + changeSet.insertRemovedContact(id); break; case EContactDbObserverEventContactChanged: if(m_contactsEmitted.contains(id)) m_contactsEmitted.removeOne(id); else - changeSet.changedContacts().insert(id); + changeSet.insertChangedContact(id); break; case EContactDbObserverEventGroupAdded: - if(m_contactsEmitted.contains(id)) - m_contactsEmitted.removeOne(id); - else - changeSet.addedRelationshipsContacts().insert(id); + if(m_contactsEmitted.contains(id)) { + // adding a group triggers also a "changed" event. The work-around + // is to leave the id to m_contactsEmitted + } else { + changeSet.insertAddedContact(id); + m_contactsEmitted.append(id); + } break; case EContactDbObserverEventGroupDeleted: if(m_contactsEmitted.contains(id)) m_contactsEmitted.removeOne(id); else - changeSet.removedRelationshipsContacts().insert(id); + changeSet.insertRemovedContact(id); break; case EContactDbObserverEventGroupChanged: if(m_contactsEmitted.contains(id)) m_contactsEmitted.removeOne(id); - else - changeSet.changedContacts().insert(id); //group is a contact + else { +#ifndef SYMBIAN_BACKEND_USE_SQLITE + // Contact DB observer API does not give information of contacts + // possibly added to or removed from the group + QSet added; + QSet removed; + TRAPD(err, updateGroupMembershipsL(id, added, removed)); + if(err != KErrNone){ + changeSet.setDataChanged(true); + } else if(removed.count()) { + // The group changed event was caused by removing contacts + // from the group + changeSet.insertRemovedRelationshipsContact(id); + changeSet.insertRemovedRelationshipsContacts(removed.toList()); + } else if(added.count()) { + // The group changed event was caused by adding contacts + // to the group + changeSet.insertAddedRelationshipsContact(id); + changeSet.insertAddedRelationshipsContacts(added.toList()); + } else { + // The group changed event was caused by modifying the group + changeSet.insertChangedContact(id); + } +#else + // Currently the group membership check is only used in pre-10.1 + // platforms. In 10.1 we need to check the performance penalty + // caused in the instantiation of QContactManager. If the + // performance is too bad, then the MContactDbObserver API needs to + // be changed in 10.1 so that we don't need the group membership + // buffer in the engine level. In other words events like + // EContactDbObserverEventGroupMembersAdded and + // EContactDbObserverEventGroupMembersRemoved need to be added to + // MContactDbObserver. + changeSet.insertChangedContact(id); //group is a contact +#endif + } break; case EContactDbObserverEventOwnCardChanged: - { + if(m_contactsEmitted.contains(id)) + m_contactsEmitted.removeOne(id); + else { QOwnCardPair ownCard(m_currentOwnCardId, QContactLocalId(id)); - changeSet.oldAndNewSelfContactId() = ownCard; + changeSet.setOldAndNewSelfContactId(ownCard); m_currentOwnCardId = QContactLocalId(id); - break; } + break; default: break; // ignore other events } @@ -177,8 +233,62 @@ changeSet.emitSignals(m_engine); } +/* + * Private implementation for updating the buffer containing the members of all + * groups. + */ +void CntSymbianDatabase::updateGroupMembershipsL() +{ + CContactIdArray *groupIds = m_contactDatabase->GetGroupIdListL(); + for (TInt i(0); i < groupIds->Count(); ++i) { + QContactLocalId id = (*groupIds)[i]; + QSet dummySet; + updateGroupMembershipsL(id, dummySet, dummySet); + } + delete groupIds; +} - +/* + * Private implementation for updating the buffer containing the members of a + * group. + */ +void CntSymbianDatabase::updateGroupMembershipsL( + QContactLocalId groupId, + QSet &added, + QSet &removed) +{ + QSet groupMembersNew = groupMembersL(groupId); + QSet groupMembersOld = m_groupContents.value(groupId); + if(groupMembersOld.count() < groupMembersNew.count()) { + added = groupMembersNew - groupMembersOld; + m_groupContents.remove(groupId); + m_groupContents.insert(groupId, groupMembersNew); + } else if(groupMembersOld.count() > groupMembersNew.count()) { + removed = groupMembersOld - groupMembersNew; + m_groupContents.remove(groupId); + m_groupContents.insert(groupId, groupMembersNew); + } +} +/* + * Private implementation for fetching the members of a group. + */ +QSet CntSymbianDatabase::groupMembersL(QContactLocalId groupId) +{ + QSet groupMembers; + CContactItem *contactItem = m_contactDatabase->ReadContactLC(TContactItemId(groupId)); + Q_ASSERT(contactItem && contactItem->Type() == KUidContactGroup); + CContactGroup *group = static_cast(contactItem); + + const CContactIdArray *idArray = group->ItemsContained(); + + //loop through all the contacts and add them to the list + for (int i(0); i < idArray->Count(); i++) { + groupMembers.insert((*idArray)[i]); + } + CleanupStack::PopAndDestroy(contactItem); + + return groupMembers; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/cntsymbianengine.cpp --- a/qtmobility/plugins/contacts/symbian/src/cntsymbianengine.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/cntsymbianengine.cpp Mon May 03 13:18:40 2010 +0300 @@ -74,14 +74,14 @@ #define QT_TRYCATCH_LEAVING QT_TRANSLATE_EXCEPTION_TO_SYMBIAN_LEAVE #endif -CntSymbianEngine::CntSymbianEngine(const QMap& parameters, QContactManager::Error& error) +CntSymbianEngine::CntSymbianEngine(const QMap& parameters, QContactManager::Error* error) { - error = QContactManager::NoError; + *error = QContactManager::NoError; m_dataBase = new CntSymbianDatabase(this, error); //Database opened successfully - if(error == QContactManager::NoError) { + if(*error == QContactManager::NoError) { m_managerUri = QContactManager::buildUri(CNT_SYMBIAN_MANAGER_NAME, parameters); m_transformContact = new CntTransformContact; #ifdef SYMBIAN_BACKEND_USE_SQLITE @@ -117,11 +117,6 @@ delete m_displayLabel; } -void CntSymbianEngine::deref() -{ - delete this; -} - /*! * Returns a list of the ids of contacts that match the supplied \a filter, sorted according to the given \a sortOrders. * Any error that occurs will be stored in \a error. Uses either the Symbian backend native filtering or in case of an @@ -130,51 +125,57 @@ QList CntSymbianEngine::contactIds( const QContactFilter& filter, const QList& sortOrders, - QContactManager::Error& error) const + QContactManager::Error* error) const { - error = QContactManager::NoError; + *error = QContactManager::NoError; QList result; if (filter.type() == QContactFilter::RelationshipFilter) { QContactRelationshipFilter rf = static_cast(filter); + // XXX enum changed classes - engine API will reflect this eventually QList relationshipsList = relationships( rf.relationshipType(), rf.relatedContactId(), rf.relatedContactRole(), error); - if(error == QContactManager::NoError) { - foreach(QContactRelationship r, relationshipsList) { - if(rf.relatedContactRole() == QContactRelationshipFilter::First) { + if(*error == QContactManager::NoError) { + foreach(const QContactRelationship& r, relationshipsList) { + if(rf.relatedContactRole() == QContactRelationship::First) { result += r.second().localId(); - } else if (rf.relatedContactRole() == QContactRelationshipFilter::Second) { + } else if (rf.relatedContactRole() == QContactRelationship::Second) { result += r.first().localId(); - } else if (rf.relatedContactRole() == QContactRelationshipFilter::Either) { + } else if (rf.relatedContactRole() == QContactRelationship::Either) { result += r.first().localId(); result += r.second().localId(); } } + + //slow sorting until it's supported in SQL requests + result = slowSort(result, sortOrders, error); } } else { bool filterSupported(true); result = m_contactFilter->contacts(filter, sortOrders, filterSupported, error); - - //slow sorting until it's supported in SQL requests - result = slowSort(result, sortOrders, error); #ifdef SYMBIAN_BACKEND_USE_SQLITE // Remove possible false positives - if(!filterSupported && error == QContactManager::NotSupportedError) + if(!filterSupported && *error == QContactManager::NotSupportedError) + { result = slowFilter(filter, result, error); - + + //slow sorting until it's supported in SQL requests + result = slowSort(result, sortOrders, error); + } + #else // Remove possible false positives - if(!filterSupported && error == QContactManager::NoError) + if(!filterSupported && *error == QContactManager::NoError) result = slowFilter(filter, result, error); // Sort the matching contacts - if(!sortOrders.isEmpty()&& error == QContactManager::NoError ) { + if(!sortOrders.isEmpty()&& *error == QContactManager::NoError ) { if(m_contactSorter->sortOrderSupported(sortOrders)) { result = m_contactSorter->sort(result, sortOrders, error); } else { @@ -186,7 +187,9 @@ return result; } -QList CntSymbianEngine::contactIds(const QList& sortOrders, QContactManager::Error& error) const +#if 0 +// These functions are not used anymore - there is always a filter (which may be the default filter) +QList CntSymbianEngine::contactIds(const QList& sortOrders, QContactManager::Error* error) const { // Check if sorting is supported by backend if(m_contactSorter->sortOrderSupported(sortOrders)) @@ -198,22 +201,22 @@ // Get unsorted contact ids QList noSortOrders; QList unsortedIds = m_contactSorter->contacts(noSortOrders, error); - if (error != QContactManager::NoError) + if (*error != QContactManager::NoError) return QList(); // Sort contacts return slowSort(unsortedIds, sortOrders, error); } -QList CntSymbianEngine::contacts(const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QList CntSymbianEngine::contacts(const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error* error) const { - error = QContactManager::NoError; + *error = QContactManager::NoError; QList contacts; QList contactIds = this->contactIds(sortOrders, error); - if (error == QContactManager::NoError ) { + if (*error == QContactManager::NoError ) { foreach (QContactLocalId id, contactIds) { QContact contact = this->contact(id, definitionRestrictions, error); - if (error != QContactManager::NoError) { + if (*error != QContactManager::NoError) { return QList(); // return empty list if error occurred } contacts.append(contact); @@ -221,16 +224,17 @@ } return contacts; } +#endif -QList CntSymbianEngine::contacts(const QContactFilter& filter, const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QList CntSymbianEngine::contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fh, QContactManager::Error* error) const { - error = QContactManager::NoError; + *error = QContactManager::NoError; QList contacts; QList contactIds = this->contactIds(filter, sortOrders, error); - if (error == QContactManager::NoError ) { + if (*error == QContactManager::NoError ) { foreach (QContactLocalId id, contactIds) { - QContact contact = this->contact(id, definitionRestrictions, error); - if (error != QContactManager::NoError) { + QContact contact = this->contact(id, fh, error); + if (*error != QContactManager::NoError) { return QList(); // return empty list if error occurred } contacts.append(contact); @@ -247,22 +251,23 @@ * \return A QContact for the requested QContactLocalId value or 0 if the read * operation was unsuccessful (e.g. contact not found). */ -QContact CntSymbianEngine::contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QContact CntSymbianEngine::contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const { QContact* contact = new QContact(); - TRAPD(err, *contact = fetchContactL(contactId, definitionRestrictions)); + TRAPD(err, *contact = fetchContactL(contactId, fetchHint.detailDefinitionsHint())); CntSymbianTransformError::transformError(err, error); - if(error == QContactManager::NoError) { + if(*error == QContactManager::NoError) { updateDisplayLabel(*contact); //check relationship only if there are no definition restrictions, otherwise //skip this time expensive operation. - if( definitionRestrictions.isEmpty()) { + if( (!fetchHint.optimizationHints() & QContactFetchHint::NoRelationships)) { QContactManager::Error relationshipError; - QList relationships = this->relationships(QString(), contact->id(), QContactRelationshipFilter::Either, relationshipError); + // XXX can also consult fetchHint.relationships list + QList relationships = this->relationships(QString(), contact->id(), QContactRelationship::Either, &relationshipError); if (relationshipError != QContactManager::NoError && relationshipError != QContactManager::DoesNotExistError) { // means that no relationships found - error = relationshipError; + *error = relationshipError; } QContactManagerEngine::setContactRelationships(contact, relationships); } @@ -270,7 +275,7 @@ return *QScopedPointer(contact); } -bool CntSymbianEngine::saveContact(QContact* contact, QContactManager::Error& error) +bool CntSymbianEngine::saveContact(QContact* contact, QContactManager::Error* error) { QContactChangeSet changeSet; TBool ret = doSaveContact(contact, changeSet, error); @@ -279,9 +284,9 @@ } /*! \reimp */ -bool CntSymbianEngine::saveContacts(QList *contacts, QMap *errorMap, QContactManager::Error& error) +bool CntSymbianEngine::saveContacts(QList *contacts, QMap *errorMap, QContactManager::Error* error) { - error = QContactManager::NoError; + *error = QContactManager::NoError; if (errorMap) { // if the errormap argument is null, we just don't do fine-grained reporting. @@ -289,7 +294,7 @@ } if (!contacts) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } @@ -297,8 +302,8 @@ for (int i = 0; i < contacts->count(); i++) { QContact current = contacts->at(i); QContactManager::Error functionError = QContactManager::NoError; - if (!doSaveContact(¤t, changeSet, functionError)) { - error = functionError; + if (!doSaveContact(¤t, changeSet, &functionError)) { + *error = functionError; if (errorMap) { errorMap->insert(i, functionError); } @@ -307,7 +312,7 @@ } } changeSet.emitSignals(this); - return (error == QContactManager::NoError); + return (*error == QContactManager::NoError); } /*! @@ -318,7 +323,7 @@ QList CntSymbianEngine::slowFilter( const QContactFilter& filter, const QList& contacts, - QContactManager::Error& error + QContactManager::Error* error ) const { QList result; @@ -326,7 +331,7 @@ QContactLocalId id = contacts.at(i); // Check if this is a false positive. If not, add to the result set. - if(QContactManagerEngine::testFilter(filter, contact(id, QStringList(), error))) + if(QContactManagerEngine::testFilter(filter, contact(id, QContactFetchHint(), error))) result << id; } return result; @@ -335,20 +340,20 @@ QList CntSymbianEngine::slowSort( const QList& contactIds, const QList& sortOrders, - QContactManager::Error& error) const + QContactManager::Error* error) const { // Get unsorted contacts QList unsortedContacts; foreach (QContactLocalId id, contactIds) { - QContact c = contact(id, QStringList(), error); - if (error != QContactManager::NoError) + QContact c = contact(id, QContactFetchHint(), error); + if (*error != QContactManager::NoError) return QList(); unsortedContacts << c; } return QContactManagerEngine::sortContacts(unsortedContacts, sortOrders); } -bool CntSymbianEngine::doSaveContact(QContact* contact, QContactChangeSet& changeSet, QContactManager::Error& error) +bool CntSymbianEngine::doSaveContact(QContact* contact, QContactChangeSet& changeSet, QContactManager::Error* error) { bool ret = false; if(contact && !validateContact(*contact, error)) @@ -364,7 +369,7 @@ QContactManager::Error err; QList localIdList = contactIds(guidFilter, - QList(), err); + QList(), &err); if (err == QContactManager::NoError && localIdList.count() > 0) { QScopedPointer contactId(new QContactId()); contactId->setLocalId(localIdList.at(0)); @@ -375,14 +380,14 @@ // Check parameters if(!contact) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; ret = false; // Update an existing contact } else if(contact->localId()) { if(contact->id().managerUri() == m_managerUri) { ret = updateContact(*contact, changeSet, error); } else { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; ret = false; } // Create new contact @@ -430,7 +435,7 @@ * \param qtError Qt error code. * \return Error status */ -bool CntSymbianEngine::addContact(QContact& contact, QContactChangeSet& changeSet, QContactManager::Error& qtError) +bool CntSymbianEngine::addContact(QContact& contact, QContactChangeSet& changeSet, QContactManager::Error* qtError) { // Attempt to persist contact, trapping errors int err(0); @@ -438,7 +443,7 @@ TRAP(err, id = addContactL(contact)); if(err == KErrNone) { - changeSet.addedContacts().insert(id); + changeSet.insertAddedContact(id); m_dataBase->appendContactEmitted(id); } CntSymbianTransformError::transformError(err, qtError); @@ -509,14 +514,14 @@ * \param qtError Qt error code. * \return Error status. */ -bool CntSymbianEngine::updateContact(QContact& contact, QContactChangeSet& changeSet, QContactManager::Error& qtError) +bool CntSymbianEngine::updateContact(QContact& contact, QContactChangeSet& changeSet, QContactManager::Error* qtError) { int err(0); TRAP(err, updateContactL(contact)); if(err == KErrNone) { //TODO: check what to do with groupsChanged - changeSet.changedContacts().insert(contact.localId()); + changeSet.insertChangedContact(contact.localId()); m_dataBase->appendContactEmitted(contact.localId()); } CntSymbianTransformError::transformError(err, qtError); @@ -567,14 +572,14 @@ * \param qtError Qt error code. * \return Error status. */ -bool CntSymbianEngine::removeContact(const QContactLocalId &id, QContactChangeSet& changeSet, QContactManager::Error& qtError) +bool CntSymbianEngine::removeContact(const QContactLocalId &id, QContactChangeSet& changeSet, QContactManager::Error* qtError) { // removeContactL() can't throw c++ exception TRAPD(err, removeContactL(id)); if(err == KErrNone) { //TODO: check what to do with groupsChanged? - changeSet.removedContacts().insert(id); + changeSet.insertRemovedContact(id); m_dataBase->appendContactEmitted(id); } CntSymbianTransformError::transformError(err, qtError); @@ -613,15 +618,15 @@ return 0; } -bool CntSymbianEngine::removeContact(const QContactLocalId& contactId, QContactManager::Error& error) +bool CntSymbianEngine::removeContact(const QContactLocalId& contactId, QContactManager::Error* error) { QContactManager::Error err; - QContactLocalId selfCntId = selfContactId(err); // err ignored + QContactLocalId selfCntId = selfContactId(&err); // err ignored QContactChangeSet changeSet; TBool ret = removeContact(contactId, changeSet, error); if (ret && contactId == selfCntId ) { QOwnCardPair ownCard(selfCntId, QContactLocalId(0)); - changeSet.oldAndNewSelfContactId() = ownCard; + changeSet.setOldAndNewSelfContactId(ownCard); } changeSet.emitSignals(this); return ret; @@ -630,73 +635,74 @@ void CntSymbianEngine::updateDisplayLabel(QContact& contact) const { QContactManager::Error error(QContactManager::NoError); - QString label = synthesizedDisplayLabel(contact, error); + QString label = synthesizedDisplayLabel(contact, &error); if(error == QContactManager::NoError) { - contact = setContactDisplayLabel(label, contact); + setContactDisplayLabel(&contact, label); } } -bool CntSymbianEngine::removeContacts(QList *contactIds, QMap *errorMap, QContactManager::Error& error) +bool CntSymbianEngine::removeContacts(const QList& contactIds, QMap *errorMap, QContactManager::Error* error) { - error = QContactManager::NoError; + *error = QContactManager::NoError; if (errorMap) { // if the errormap argument is null, we just don't do fine-grained reporting. errorMap->clear(); - } + } - if (!contactIds) { - error = QContactManager::BadArgumentError; + if (contactIds.count() == 0) { + *error = QContactManager::BadArgumentError; return false; } - + QContactManager::Error err; - QContactLocalId selfCntId = selfContactId(err); // err ignored + QContactLocalId selfCntId = selfContactId(&err); // err ignored QContactChangeSet changeSet; - for (int i = 0; i < contactIds->count(); i++) { - QContactLocalId current = contactIds->at(i); + for (int i = 0; i < contactIds.count(); i++) { + QContactLocalId current = contactIds.at(i); QContactManager::Error functionError = QContactManager::NoError; - if (!removeContact(current, changeSet, functionError)) { - error = functionError; + if (!removeContact(current, changeSet, &functionError)) { + *error = functionError; if (errorMap) { errorMap->insert(i, functionError); } } else { - (*contactIds)[i] = 0; if (current == selfCntId ) { QOwnCardPair ownCard(selfCntId, QContactLocalId(0)); - changeSet.oldAndNewSelfContactId() = ownCard; + changeSet.setOldAndNewSelfContactId(ownCard); } } } changeSet.emitSignals(this); - return (error == QContactManager::NoError); + return (*error == QContactManager::NoError); } /* relationships */ -QStringList CntSymbianEngine::supportedRelationshipTypes(const QString& contactType) const +bool CntSymbianEngine::isRelationshipTypeSupported(const QString &relationshipType, const QString &contactType) const { - return m_relationship->supportedRelationshipTypes(contactType); + return m_relationship->isRelationshipTypeSupported(relationshipType, contactType); } -QList CntSymbianEngine::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationshipFilter::Role role, QContactManager::Error& error) const +QList CntSymbianEngine::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) const { //retrieve the relationships return m_relationship->relationships(relationshipType, participantId, role, error); } -bool CntSymbianEngine::saveRelationship(QContactRelationship* relationship, QContactManager::Error& error) +bool CntSymbianEngine::saveRelationship(QContactRelationship* relationship, QContactManager::Error* error) { //affected contacts QContactChangeSet changeSet; //save the relationship - bool returnValue = m_relationship->saveRelationship(&changeSet.addedRelationshipsContacts(), relationship, error); + QSet affectedContactIds; + bool returnValue = m_relationship->saveRelationship(&affectedContactIds, relationship, error); + changeSet.insertAddedRelationshipsContacts(affectedContactIds.toList()); //add contacts to the list that shouldn't be emitted - m_dataBase->appendContactsEmitted(changeSet.addedRelationshipsContacts().toList()); + m_dataBase->appendContactsEmitted(affectedContactIds.toList()); //emit signals changeSet.emitSignals(this); @@ -704,16 +710,18 @@ return returnValue; } -QList CntSymbianEngine::saveRelationships(QList* relationships, QContactManager::Error& error) +bool CntSymbianEngine::saveRelationships(QList* relationships, QMap* errorMap, QContactManager::Error* error) { //affected contacts QContactChangeSet changeSet; //save the relationships - QList returnValue = m_relationship->saveRelationships(&changeSet.addedRelationshipsContacts(), relationships, error); + QSet affectedContactIds; + bool returnValue = m_relationship->saveRelationships(&affectedContactIds, relationships, errorMap, error); + changeSet.insertAddedRelationshipsContacts(affectedContactIds.toList()); //add contacts to the list that shouldn't be emitted - m_dataBase->appendContactsEmitted(changeSet.addedRelationshipsContacts().toList()); + m_dataBase->appendContactsEmitted(affectedContactIds.toList()); //emit signals changeSet.emitSignals(this); @@ -721,16 +729,18 @@ return returnValue; } -bool CntSymbianEngine::removeRelationship(const QContactRelationship& relationship, QContactManager::Error& error) +bool CntSymbianEngine::removeRelationship(const QContactRelationship& relationship, QContactManager::Error* error) { //affected contacts QContactChangeSet changeSet; //remove the relationship - bool returnValue = m_relationship->removeRelationship(&changeSet.removedRelationshipsContacts(), relationship, error); + QSet affectedContactIds; + bool returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, error); + changeSet.insertRemovedRelationshipsContacts(affectedContactIds.toList()); //add contacts to the list that shouldn't be emitted - m_dataBase->appendContactsEmitted(changeSet.removedRelationshipsContacts().toList()); + m_dataBase->appendContactsEmitted(affectedContactIds.toList()); //emit signals changeSet.emitSignals(this); @@ -738,16 +748,18 @@ return returnValue; } -QList CntSymbianEngine::removeRelationships(const QList& relationships, QContactManager::Error& error) +bool CntSymbianEngine::removeRelationships(const QList& relationships, QMap* errorMap, QContactManager::Error* error) { //affected contacts QContactChangeSet changeSet; //remove the relationships - QList returnValue = m_relationship->removeRelationships(&changeSet.removedRelationshipsContacts(), relationships, error); + QSet affectedContactIds; + bool returnValue = m_relationship->removeRelationships(&affectedContactIds, relationships, errorMap, error); + changeSet.insertRemovedRelationshipsContacts(affectedContactIds.toList()); //add contacts to the list that shouldn't be emitted - m_dataBase->appendContactsEmitted(changeSet.removedRelationshipsContacts().toList()); + m_dataBase->appendContactsEmitted(affectedContactIds.toList()); //emit signals changeSet.emitSignals(this); @@ -755,15 +767,15 @@ return returnValue; } -QMap CntSymbianEngine::detailDefinitions(const QString& contactType, QContactManager::Error& error) const +QMap CntSymbianEngine::detailDefinitions(const QString& contactType, QContactManager::Error* error) const { // TODO: update for SIM contacts later if (contactType != QContactType::TypeContact && contactType != QContactType::TypeGroup) { - error = QContactManager::InvalidContactTypeError; + *error = QContactManager::InvalidContactTypeError; return QMap(); } - error = QContactManager::NoError; + *error = QContactManager::NoError; // First get the default definitions QMap > schemaDefinitions = QContactManagerEngine::schemaDefinitions(); @@ -818,16 +830,16 @@ } /* Synthesise the display label of a contact */ -QString CntSymbianEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const +QString CntSymbianEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const { - error = QContactManager::NoError; + *error = QContactManager::NoError; return m_displayLabel->synthesizedDisplayLabel(contact, error); } -bool CntSymbianEngine::setSelfContactId(const QContactLocalId& contactId, QContactManager::Error& error) +bool CntSymbianEngine::setSelfContactId(const QContactLocalId& contactId, QContactManager::Error* error) { if (contactId <= 0) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } @@ -842,14 +854,14 @@ return (err==KErrNone); } -QContactLocalId CntSymbianEngine::selfContactId(QContactManager::Error& error) const +QContactLocalId CntSymbianEngine::selfContactId(QContactManager::Error* error) const { - error = QContactManager::NoError; + *error = QContactManager::NoError; QContactLocalId id = 0; TContactItemId myCard = m_dataBase->contactDatabase()->OwnCardId(); if (myCard < 0) { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; } else { id = myCard; @@ -957,15 +969,13 @@ QContactFetchRequest* r = static_cast(currentRequest); QContactFilter filter = r->filter(); QList sorting = r->sorting(); - QStringList defs = r->definitionRestrictions(); + QContactFetchHint fh = r->fetchHint(); QContactManager::Error operationError; - QList requestedContacts = QContactManagerEngine::contacts(filter, sorting, defs, operationError); + QList requestedContacts = contacts(filter, sorting, fh, &operationError); // update the request with the results. - if (!requestedContacts.isEmpty() || operationError != QContactManager::NoError) - updateContactFetchRequest(r, requestedContacts, operationError); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateContactFetchRequest(r, requestedContacts, operationError, QContactAbstractRequest::FinishedState); // emit resultsAvailable() } break; @@ -976,11 +986,9 @@ QList sorting = r->sorting(); QContactManager::Error operationError = QContactManager::NoError; - QList requestedContactIds = QContactManagerEngine::contactIds(filter, sorting, operationError); + QList requestedContactIds = contactIds(filter, sorting, &operationError); - if (!requestedContactIds.isEmpty() || operationError != QContactManager::NoError) - updateContactLocalIdFetchRequest(r, requestedContactIds, operationError); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateContactLocalIdFetchRequest(r, requestedContactIds, operationError, QContactAbstractRequest::FinishedState); } break; @@ -991,10 +999,9 @@ QContactManager::Error operationError = QContactManager::NoError; QMap errorMap; - saveContacts(&contacts, &errorMap, operationError); + saveContacts(&contacts, &errorMap, &operationError); - updateContactSaveRequest(r, contacts, operationError, errorMap); // there will always be results of some form. emit resultsAvailable(). - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateContactSaveRequest(r, contacts, operationError, errorMap, QContactAbstractRequest::FinishedState); // there will always be results of some form. emit resultsAvailable(). } break; @@ -1012,17 +1019,15 @@ for (int i = 0; i < contactsToRemove.size(); i++) { QContactManager::Error tempError; - removeContact(contactsToRemove.at(i), changeSet, tempError); + removeContact(contactsToRemove.at(i), changeSet, &tempError); + errorMap.insert(i, tempError); if (tempError != QContactManager::NoError) { - errorMap.insert(i, tempError); operationError = tempError; } } - if (!errorMap.isEmpty() || operationError != QContactManager::NoError) - updateContactRemoveRequest(r, operationError, errorMap); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateContactRemoveRequest(r, operationError, errorMap, QContactAbstractRequest::FinishedState); } break; @@ -1034,84 +1039,41 @@ QMap requestedDefinitions; QStringList names = r->definitionNames(); if (names.isEmpty()) - names = detailDefinitions(r->contactType(), operationError).keys(); // all definitions. + names = detailDefinitions(r->contactType(), &operationError).keys(); // all definitions. QContactManager::Error tempError; for (int i = 0; i < names.size(); i++) { - QContactDetailDefinition current = detailDefinition(names.at(i), r->contactType(), tempError); + QContactDetailDefinition current = detailDefinition(names.at(i), r->contactType(), &tempError); requestedDefinitions.insert(names.at(i), current); + errorMap.insert(i, tempError); if (tempError != QContactManager::NoError) { - errorMap.insert(i, tempError); operationError = tempError; } } - if (!errorMap.isEmpty() || !requestedDefinitions.isEmpty() || operationError != QContactManager::NoError) - updateDefinitionFetchRequest(r, requestedDefinitions, operationError, errorMap); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateDefinitionFetchRequest(r, requestedDefinitions, operationError, errorMap, QContactAbstractRequest::FinishedState); } break; -// symbian engine currently does not support mutable definitions. -// -// case QContactAbstractRequest::DetailDefinitionSaveRequest: -// { -// QContactDetailDefinitionSaveRequest* r = static_cast(currentRequest); -// QContactManager::Error operationError = QContactManager::NoError; -// QMap errorMap; -// QList definitions = r->definitions(); -// QList savedDefinitions; -// -// QContactManager::Error tempError; -// for (int i = 0; i < definitions.size(); i++) { -// QContactDetailDefinition current = definitions.at(i); -// saveDetailDefinition(current, r->contactType(), changeSet, tempError); -// savedDefinitions.append(current); -// -// if (tempError != QContactManager::NoError) { -// errorMap.insert(i, tempError); -// operationError = tempError; -// } -// } -// -// // update the request with the results. -// updateDefinitionSaveRequest(r, savedDefinitions, operationError, errorMap); // there will always be results of some form. emit resultsAvailable(). -// updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); -// } -// break; -// -// case QContactAbstractRequest::DetailDefinitionRemoveRequest: -// { -// QContactDetailDefinitionRemoveRequest* r = static_cast(currentRequest); -// QStringList names = r->definitionNames(); -// -// QContactManager::Error operationError = QContactManager::NoError; -// QMap errorMap; -// -// for (int i = 0; i < names.size(); i++) { -// QContactManager::Error tempError; -// removeDetailDefinition(names.at(i), r->contactType(), changeSet, tempError); -// -// if (tempError != QContactManager::NoError) { -// errorMap.insert(i, tempError); -// operationError = tempError; -// } -// } -// -// // there are no results, so just update the status with the error. -// if (!errorMap.isEmpty() || operationError != QContactManager::NoError) -// updateDefinitionRemoveRequest(r, operationError, errorMap); // emit resultsAvailable() -// updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); -// } -// break; + case QContactAbstractRequest::DetailDefinitionSaveRequest: + { + // symbian engine currently does not support mutable definitions. + } + break; + + case QContactAbstractRequest::DetailDefinitionRemoveRequest: + { + // symbian engine currently does not support mutable definitions. + } + break; case QContactAbstractRequest::RelationshipFetchRequest: { QContactRelationshipFetchRequest* r = static_cast(currentRequest); QContactManager::Error operationError = QContactManager::NoError; QList operationErrors; - QList allRelationships = relationships(QString(), QContactId(), QContactRelationshipFilter::Either, operationError); + QList allRelationships = relationships(QString(), QContactId(), QContactRelationship::Either, &operationError); QList requestedRelationships; // select the requested relationships. @@ -1127,9 +1089,7 @@ } // update the request with the results. - if (!requestedRelationships.isEmpty() || operationError != QContactManager::NoError) - updateRelationshipFetchRequest(r, requestedRelationships, operationError); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateRelationshipFetchRequest(r, requestedRelationships, operationError, QContactAbstractRequest::FinishedState); } break; @@ -1140,23 +1100,17 @@ QList relationshipsToRemove = r->relationships(); QMap errorMap; - bool foundMatch = false; for (int i = 0; i < relationshipsToRemove.size(); i++) { QContactManager::Error tempError; - removeRelationship(relationshipsToRemove.at(i), tempError); + removeRelationship(relationshipsToRemove.at(i), &tempError); + errorMap.insert(i, tempError); if (tempError != QContactManager::NoError) { - errorMap.insert(i, tempError); operationError = tempError; } } - if (foundMatch == false && operationError == QContactManager::NoError) - operationError = QContactManager::DoesNotExistError; - - if (!errorMap.isEmpty() || operationError != QContactManager::NoError) - updateRelationshipRemoveRequest(r, operationError, errorMap); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateRelationshipRemoveRequest(r, operationError, errorMap, QContactAbstractRequest::FinishedState); } break; @@ -1171,18 +1125,17 @@ QContactManager::Error tempError; for (int i = 0; i < requestRelationships.size(); i++) { QContactRelationship current = requestRelationships.at(i); - saveRelationship(¤t, tempError); + saveRelationship(¤t, &tempError); savedRelationships.append(current); + errorMap.insert(i, tempError); if (tempError != QContactManager::NoError) { - errorMap.insert(i, tempError); operationError = tempError; } } // update the request with the results. - updateRelationshipSaveRequest(r, savedRelationships, operationError, errorMap); // there will always be results of some form. emit resultsAvailable(). - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateRelationshipSaveRequest(r, savedRelationships, operationError, errorMap, QContactAbstractRequest::FinishedState); } break; @@ -1196,7 +1149,7 @@ #ifndef PBK_UNIT_TEST /* Factory lives here in the basement */ -QContactManagerEngine* CntSymbianFactory::engine(const QMap& parameters, QContactManager::Error& error) +QContactManagerEngine* CntSymbianFactory::engine(const QMap& parameters, QContactManager::Error* error) { return new CntSymbianEngine(parameters, error); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/cntsymbiantransformerror.cpp --- a/qtmobility/plugins/contacts/symbian/src/cntsymbiantransformerror.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/cntsymbiantransformerror.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,59 +46,59 @@ * \param symbianError Symbian error. * \param QtError Qt error. */ -void CntSymbianTransformError::transformError(TInt symbianError, QContactManager::Error& qtError) +void CntSymbianTransformError::transformError(TInt symbianError, QContactManager::Error* qtError) { switch(symbianError) { case KErrNone: { - qtError = QContactManager::NoError; + *qtError = QContactManager::NoError; break; } case KErrNotFound: { - qtError = QContactManager::DoesNotExistError; + *qtError = QContactManager::DoesNotExistError; break; } case KErrAlreadyExists: { - qtError = QContactManager::AlreadyExistsError; + *qtError = QContactManager::AlreadyExistsError; break; } case KErrLocked: { - qtError = QContactManager::LockedError; + *qtError = QContactManager::LockedError; break; } case KErrAccessDenied: case KErrPermissionDenied: { - qtError = QContactManager::PermissionsError; + *qtError = QContactManager::PermissionsError; break; } case KErrNoMemory: { - qtError = QContactManager::OutOfMemoryError; + *qtError = QContactManager::OutOfMemoryError; break; } case KErrNotSupported: { - qtError = QContactManager::NotSupportedError; + *qtError = QContactManager::NotSupportedError; break; } case KErrArgument: { - qtError = QContactManager::BadArgumentError; + *qtError = QContactManager::BadArgumentError; break; } case KErrInvalidContactDetail: { - qtError = QContactManager::InvalidDetailError; + *qtError = QContactManager::InvalidDetailError; break; } default: { - qtError = QContactManager::UnspecifiedError; + *qtError = QContactManager::UnspecifiedError; break; } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntdbinfo.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntdbinfo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntdbinfo.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,8 @@ #include #include "cntdbinfo.h" #include "cntmodelextuids.h" +#include "cntfilterdetail.h" +#include "cnttransformcontact.h" CntDbInfo::CntDbInfo() @@ -58,6 +60,7 @@ commAddrTableIdColumNameMapping.insert(KUidContactFieldVCardMapSWIS.iUid,ESipAddress ); commAddrTableIdColumNameMapping.insert(KUidContactFieldIMPP.iUid,ESipAddress ); commAddrTableIdColumNameMapping.insert(KUidContactFieldEMail.iUid,EEmailAddress ); + commAddrTableIdColumNameMapping.insert(KUidContactFieldPhoneNumber.iUid,EPhoneNumber ); } CntDbInfo::~CntDbInfo() @@ -100,7 +103,7 @@ tableName = "contact"; } - if( ("" == columnName) || ("" == tableName)){ + if( (columnName.isEmpty()) || (tableName.isEmpty())){ //Search comm Addr table if (commAddrTableIdColumNameMapping.contains(fieldId)){ // communication address table has slightly differnt format, so we make the column name as @@ -115,3 +118,79 @@ } +QString CntDbInfo::getSortQuery( const QList &sortOrders, + const QString& selectQuery, + QContactManager::Error* error) +{ + // Set to initial select query + QString sortQuery = selectQuery; + + if(*error == QContactManager::NoError) + { + QList list; + foreach(const QContactSortOrder& s, sortOrders ) + { + // Find uids for sortings + // Get the field id for the detail field name + bool isSubType; + QString tableName; + QString columnName; + CntTransformContact transformContact; + QContactDetailFilter filter; + + // Get column names for sort order + filter.setDetailDefinitionName(s.detailDefinitionName(), s.detailFieldName()); + quint32 fieldId = transformContact.GetIdForDetailL(filter, isSubType); + getDbTableAndColumnName(fieldId,tableName,columnName); + + if (tableName.compare("contact") != 0 + || columnName.isEmpty()) + { + // Skip invalid sort clause + continue; + } + else + { + if( s.direction() == Qt::DescendingOrder ) + { + QString col; + if(s.caseSensitivity() == Qt::CaseInsensitive) + col= ' ' + columnName + ' ' + "COLLATE NOCASE DESC"; + else + col= ' ' + columnName + ' ' + "DESC"; + list.append(col); + } + else + { + // Default sort order + QString col; + if(s.caseSensitivity() == Qt::CaseInsensitive) + col= ' ' + columnName + ' ' + "COLLATE NOCASE ASC"; + else + col= ' ' + columnName + ' ' + "ASC"; + list.append(col); + } + } + } + + if(list.count() > 0) + { + // Recreate query + // SELECT DISTINCT contact_id FROM contact WHERE contact_id in ( + // SELECT .. + // ) ORDER BY + sortQuery = " SELECT DISTINCT contact_id FROM contact WHERE contact_id in ("; + QString clause = " ORDER BY " + list.at(0); + for (int i = 1; i < list.size(); ++i) + { + clause += " ," + list.at(i); + } + sortQuery += selectQuery + ')'; + sortQuery += clause; + } + } + + return sortQuery; +} + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntdisplaylabelsqlfilter.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntdisplaylabelsqlfilter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntdisplaylabelsqlfilter.cpp Mon May 03 13:18:40 2010 +0300 @@ -59,9 +59,9 @@ void CntDisplayLabelSqlFilter::createSqlQuery(const QContactDetailFilter& filter, QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { - error = QContactManager::NoError; + *error = QContactManager::NoError; //get the contact fields that should be checked CntDisplayLabel displayLabel; @@ -98,15 +98,15 @@ } if(!subQuery.isEmpty()){ - sqlQuery += " AND (" + subQuery + ")"; + sqlQuery += " AND (" + subQuery + ')'; } - error = QContactManager::NoError; + *error = QContactManager::NoError; } //if specified more filter criterias than contact fields return error else if(searchStrings.count() > contactFields.count()){ - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; } } @@ -155,7 +155,7 @@ */ QString CntDisplayLabelSqlFilter::createSubQuery(const QString &searchValue, const QString &column) const { - return ("(" + column + " LIKE \'" + searchValue + "%\' OR " + column + " LIKE \'% " + searchValue + "%\')"); + return ('(' + column + " LIKE \'" + searchValue + "%\' OR " + column + " LIKE \'% " + searchValue + "%\')"); } /* @@ -171,12 +171,12 @@ //Name detail if(detail.first == QContactName::DefinitionName) { - if(detail.second == QContactName::FieldFirst) + if(detail.second == QContactName::FieldFirstName) { columnName = "first_name"; } - else if(detail.second == QContactName::FieldLast) + else if(detail.second == QContactName::FieldLastName) { columnName = "last_name"; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilteraction.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilteraction.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilteraction.cpp Mon May 03 13:18:40 2010 +0300 @@ -60,14 +60,14 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedflag, - QContactManager::Error &error) + QContactManager::Error* error) { Q_UNUSED(sortOrders); Q_UNUSED(filterSupportedflag); //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QList(); } QList idList; @@ -77,7 +77,7 @@ createSelectQuery( filter,sqlQuery,error); //fetch the contacts - if(error != QContactManager::NotSupportedError) + if(*error != QContactManager::NotSupportedError) { idList = m_srvConnection.searchContacts(sqlQuery, error); } @@ -103,13 +103,13 @@ void CntFilterAction::createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; } //For default filter, just return the below query sqlQuery = ""; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilterchangelog.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterchangelog.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterchangelog.cpp Mon May 03 13:18:40 2010 +0300 @@ -60,14 +60,14 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedflag, - QContactManager::Error &error) + QContactManager::Error* error) { Q_UNUSED(sortOrders); Q_UNUSED(filterSupportedflag); //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QList(); } QList idList; @@ -77,7 +77,7 @@ createSelectQuery( filter,sqlQuery,error); //fetch the contacts - if(error != QContactManager::NotSupportedError) + if(*error != QContactManager::NotSupportedError) { idList = m_srvConnection.searchContacts(sqlQuery, error); } @@ -103,13 +103,13 @@ void CntFilterChangeLog::createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; } //Not supported yet. sqlQuery = ""; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdefault.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdefault.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdefault.cpp Mon May 03 13:18:40 2010 +0300 @@ -60,14 +60,14 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedflag, - QContactManager::Error &error) + QContactManager::Error* error) { Q_UNUSED(sortOrders); Q_UNUSED(filterSupportedflag); //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QList(); } QList idList; @@ -77,7 +77,7 @@ createSelectQuery( filter,sqlQuery,error); //fetch the contacts - if(error == QContactManager::NoError) + if(*error == QContactManager::NoError) { idList = m_srvConnection.searchContacts(sqlQuery, error); } @@ -101,13 +101,13 @@ void CntFilterDefault::createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; } //For default filter, just return the below query sqlQuery = "SELECT DISTINCT contact_id FROM contact WHERE (type_flags>>24)=0 OR (type_flags>>24)=3"; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdetail.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdetail.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdetail.cpp Mon May 03 13:18:40 2010 +0300 @@ -74,25 +74,26 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedflag, - QContactManager::Error &error) + QContactManager::Error* error) { Q_UNUSED(sortOrders); Q_UNUSED(filterSupportedflag); //Check if any invalid filter is passed if(!filterSupported(filter) ) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QList(); } QList idList; QContactDetailFilter detailFilter(filter); QString sqlQuery; //Check for phonenumber. Special handling needed - if(detailFilter.detailDefinitionName() == QContactPhoneNumber::DefinitionName ) + if( (detailFilter.detailDefinitionName() == QContactPhoneNumber::DefinitionName ) && + (detailFilter.detailFieldName() != QContactPhoneNumber::FieldSubTypes)) { //Handle phonenumber ... - idList = HandlePhonenumberDetailFilter(filter); + } else if (detailFilter.matchFlags() == QContactFilter::MatchKeypadCollation) { @@ -104,10 +105,12 @@ else { createSelectQuery(filter,sqlQuery,error); - if(error == QContactManager::NoError) + QString sortQuery = m_dbInfo.getSortQuery(sortOrders, sqlQuery, error); + + if(*error == QContactManager::NoError) { //fetch the contacts - idList = m_srvConnection.searchContacts(sqlQuery, error); + idList = m_srvConnection.searchContacts(sortQuery, error); } } @@ -131,12 +134,12 @@ void CntFilterDetail::createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { if(!filterSupported(filter) ) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return; } QContactDetailFilter detailFilter(filter); @@ -159,10 +162,10 @@ { if(detailFilter.detailFieldName() == QContactGuid::FieldGuid) { - QStringList fullGuidValue = detailFilter.value().toString().split("-"); + QStringList fullGuidValue = detailFilter.value().toString().split('-'); if (fullGuidValue.count() == 3) { QString localGuidValue = fullGuidValue.at(1); - sqlQuery = "SELECT contact_id FROM contact WHERE guid_string = '" + localGuidValue + "'"; + sqlQuery = "SELECT contact_id FROM contact WHERE guid_string = '" + localGuidValue + '\''; } } } @@ -183,7 +186,7 @@ */ void CntFilterDetail::updateForMatchFlag( const QContactDetailFilter& filter, QString& fieldToUpdate , - QContactManager::Error& error) const + QContactManager::Error* error) const { // Modify the filed depending on the query switch(filter.matchFlags()) @@ -193,8 +196,8 @@ // Pattern for MatchExactly: // " ='xyz'" fieldToUpdate = " ='" - + filter.value().toString() + "'"; - error = QContactManager::NoError; + + filter.value().toString() + '\''; + *error = QContactManager::NoError; break; } case QContactFilter::MatchContains: @@ -202,7 +205,7 @@ // Pattern for MatchContains: // " LIKE '%xyz%'" fieldToUpdate = " LIKE '%" + filter.value().toString() + "%'" ; - error = QContactManager::NoError; + *error = QContactManager::NoError; break; } case QContactFilter::MatchStartsWith: @@ -210,30 +213,30 @@ // Pattern for MatchStartsWith: // " LIKE 'xyz%'" fieldToUpdate = " LIKE '" + filter.value().toString() + "%'" ; - error = QContactManager::NoError; + *error = QContactManager::NoError; break; } case QContactFilter::MatchEndsWith: { // Pattern for MatchEndsWith: // " LIKE '%xyz'" - fieldToUpdate = " LIKE '%" + filter.value().toString() + "'" ; - error = QContactManager::NoError; + fieldToUpdate = " LIKE '%" + filter.value().toString() + '\'' ; + *error = QContactManager::NoError; break; } case QContactFilter::MatchFixedString: { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; break; } case QContactFilter::MatchCaseSensitive: { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; break; } default: { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; break; } } @@ -243,7 +246,7 @@ void CntFilterDetail::getTableNameWhereClause( const QContactDetailFilter& detailfilter, QString& tableName, QString& sqlWhereClause , - QContactManager::Error& error) const + QContactManager::Error* error) const { //Get the table name and the column name bool isSubType; @@ -253,35 +256,36 @@ CntTransformContact transformContact; quint32 fieldId = transformContact.GetIdForDetailL(detailfilter, isSubType); m_dbInfo.getDbTableAndColumnName(fieldId,tableName,columnName); - + //return if tableName is empty - if(tableName == "" ){ - error = QContactManager::NotSupportedError; + if(tableName.isEmpty()) + { + *error = QContactManager::NotSupportedError; return; - } + } //check columnName - if(columnName == "") { - error = QContactManager::NotSupportedError; + if(columnName.isEmpty()) + { + *error = QContactManager::NotSupportedError; return; - } - else if(isSubType) { + } + else if(isSubType) + { sqlWhereClause += columnName; sqlWhereClause += " NOT NULL "; - } - else { - - sqlWhereClause += " " + columnName + " "; + } + else + { + sqlWhereClause += ' ' + columnName + ' '; QString fieldToUpdate; //Update the value depending on the match flag updateForMatchFlag(detailfilter,fieldToUpdate,error); sqlWhereClause += fieldToUpdate; - } - - + } } -QList CntFilterDetail::HandlePredictiveSearchFilter(const QContactFilter& filter,QContactManager::Error& error) +QList CntFilterDetail::HandlePredictiveSearchFilter(const QContactFilter& filter,QContactManager::Error* error) { QString sqlQuery; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdetaildisplaylabel.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdetaildisplaylabel.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdetaildisplaylabel.cpp Mon May 03 13:18:40 2010 +0300 @@ -79,7 +79,7 @@ void CntFilterDetailDisplayLabel::createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { //Commented currently since this will be checked in contacts call intially @@ -87,7 +87,7 @@ { const QContactDetailFilter detailFilter(filter); - error = QContactManager::NoError; + *error = QContactManager::NoError; //get the contact fields that should be checked CntDisplayLabel displayLabel; @@ -124,15 +124,15 @@ } if(!subQuery.isEmpty()){ - sqlQuery += " AND (" + subQuery + ")"; + sqlQuery += " AND (" + subQuery + ')'; } - error = QContactManager::NoError; + *error = QContactManager::NoError; } //if specified more filter criterias than contact fields return error else if(searchStrings.count() > contactFields.count()){ - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; } } @@ -140,7 +140,7 @@ QString CntFilterDetailDisplayLabel::createSelectQuery(const QContactFilter& filter, const QList& sortOrders, - QContactManager::Error& error) const + QContactManager::Error* error) const { Q_UNUSED(sortOrders); QString result; @@ -149,7 +149,7 @@ { const QContactDetailFilter detailFilter(filter); - error = QContactManager::NoError; + *error = QContactManager::NoError; //get the contact fields that should be checked CntDisplayLabel displayLabel; @@ -186,15 +186,15 @@ } if(!subQuery.isEmpty()){ - result += " AND (" + subQuery + ")"; + result += " AND (" + subQuery + ')'; } - error = QContactManager::NoError; + *error = QContactManager::NoError; } //if specified more filter criterias than contact fields return error else if(searchStrings.count() > contactFields.count()){ - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; } } @@ -246,7 +246,7 @@ */ QString CntFilterDetailDisplayLabel::createSubQuery(const QString &searchValue, const QString &column) const { - return ("(" + column + " LIKE \'" + searchValue + "%\' OR " + column + " LIKE \'% " + searchValue + "%\')"); + return ('(' + column + " LIKE \'" + searchValue + "%\' OR " + column + " LIKE \'% " + searchValue + "%\')"); } /* @@ -262,12 +262,12 @@ //Name detail if(detail.first == QContactName::DefinitionName) { - if(detail.second == QContactName::FieldFirst) + if(detail.second == QContactName::FieldFirstName) { columnName = "first_name"; } - else if(detail.second == QContactName::FieldLast) + else if(detail.second == QContactName::FieldLastName) { columnName = "last_name"; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdetailrange.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdetailrange.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterdetailrange.cpp Mon May 03 13:18:40 2010 +0300 @@ -61,14 +61,14 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedflag, - QContactManager::Error &error) + QContactManager::Error* error) { Q_UNUSED(sortOrders); Q_UNUSED(filterSupportedflag); //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QList(); } QList idList; @@ -78,7 +78,7 @@ createSelectQuery( filter,sqlQuery,error); //fetch the contacts - if(error != QContactManager::NotSupportedError) + if(*error != QContactManager::NotSupportedError) { idList = m_srvConnection.searchContacts(sqlQuery, error); } @@ -103,13 +103,13 @@ void CntFilterdetailrange::createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; } //Not yet supported sqlQuery = ""; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilterintersection.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterintersection.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterintersection.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,7 +45,6 @@ #include "cntfilterdefault.h" #include "cntfilterrelationship.h" #include "cnttransformcontact.h" -#include "qcontactintersectionfilter.h" CntFilterIntersection::CntFilterIntersection(CContactDatabase& contactDatabase,CntSymbianSrvConnection &cntServer,CntDbInfo& dbInfo) : m_contactdatabase(contactDatabase), @@ -65,23 +64,24 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedflag, - QContactManager::Error &error) + QContactManager::Error* error) { Q_UNUSED(sortOrders); Q_UNUSED(filterSupportedflag); //Check if any invalid filter is passed if(filterSupported(filter) == false) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QList(); } QList idList; - QString sqlQuery; - this->createSelectQuery( filter,sqlQuery,error) ; + QString sqlQuery; + createSelectQuery(filter,sqlQuery,error); + QString sortQuery = m_dbInfo.getSortQuery(sortOrders, sqlQuery, error); //fetch the contacts - if(error == QContactManager::NoError ) + if(*error == QContactManager::NoError ) { - idList = m_srvConnection.searchContacts(sqlQuery, error); + idList = m_srvConnection.searchContacts(sortQuery, error); } return idList; } @@ -100,13 +100,13 @@ void CntFilterIntersection::createSelectQuery(const QContactFilter& filter, QString& selectquery, - QContactManager::Error& error) + QContactManager::Error* error) { const QContactIntersectionFilter& intersectionfilter = static_cast(filter); if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return; } QList individualFilters = intersectionfilter.filters(); @@ -120,7 +120,7 @@ QString query; getSelectQueryforFilter(individualFilters[i],query,error); - if(error == QContactManager::NoError ) + if(*error == QContactManager::NoError ) { selectquery.append(" INTERSECT "); selectquery += query; @@ -130,7 +130,8 @@ } -void CntFilterIntersection::getSelectQueryforFilter(const QContactFilter& filter,QString& sqlSelectQuery,QContactManager::Error& error) + +void CntFilterIntersection::getSelectQueryforFilter(const QContactFilter& filter,QString& sqlSelectQuery,QContactManager::Error* error) { switch(filter.type()) { @@ -145,7 +146,7 @@ QContactDetailFilter detailfilter(filter); if(detailfilter.detailDefinitionName() == QContactPhoneNumber::DefinitionName ) { - error=QContactManager::NotSupportedError; + *error=QContactManager::NotSupportedError; } else { @@ -154,12 +155,18 @@ } break; } + case QContactFilter::RelationshipFilter: + { + CntFilterRelationship relationfltr(m_contactdatabase,m_srvConnection,m_dbInfo); + relationfltr.createSelectQuery(filter,sqlSelectQuery,error); + break; + } case QContactFilter::IntersectionFilter: { sqlSelectQuery += "SELECT DISTINCT contact_id FROM ("; CntFilterIntersection intersectionfltr(m_contactdatabase,m_srvConnection,m_dbInfo); intersectionfltr.createSelectQuery(filter,sqlSelectQuery,error); - sqlSelectQuery += ")"; + sqlSelectQuery += ')'; break; } case QContactFilter::UnionFilter: @@ -167,12 +174,12 @@ sqlSelectQuery += "SELECT DISTINCT contact_id FROM ("; CntFilterUnion unionfltr(m_contactdatabase,m_srvConnection,m_dbInfo); unionfltr.createSelectQuery(filter,sqlSelectQuery,error); - sqlSelectQuery += ")"; + sqlSelectQuery += ')'; break; } default: { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; break; } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilterinvalid.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterinvalid.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterinvalid.cpp Mon May 03 13:18:40 2010 +0300 @@ -60,7 +60,7 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedflag, - QContactManager::Error &error) + QContactManager::Error* error) { Q_UNUSED(filter); Q_UNUSED(sortOrders); @@ -75,22 +75,22 @@ bool CntFilterInvalid::filterSupported(const QContactFilter& filter) { bool result = false; - if(QContactFilter::InvalidFilter == filter.type()) - { - result = true; - } + if(QContactFilter::InvalidFilter == filter.type()) + { + result = true; + } - return result; + return result; } void CntFilterInvalid::createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { - Q_UNUSED(filter); Q_UNUSED(sqlQuery); - Q_UNUSED(error); - //Not implementation needed in this case - + if(!filterSupported(filter)) + { + *error = QContactManager::NotSupportedError; + } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilterlocalid.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterlocalid.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterlocalid.cpp Mon May 03 13:18:40 2010 +0300 @@ -59,14 +59,14 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedflag, - QContactManager::Error &error) + QContactManager::Error* error) { Q_UNUSED(sortOrders); Q_UNUSED(filterSupportedflag); //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QList(); } QList idList; @@ -76,7 +76,7 @@ createSelectQuery( filter,sqlQuery,error); //fetch the contacts - if(error != QContactManager::NotSupportedError) + if(*error != QContactManager::NotSupportedError) { idList = m_srvConnection.searchContacts(sqlQuery, error); } @@ -101,13 +101,13 @@ void CntFilterLocalId::createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; } //Not yet supported sqlQuery = ""; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilterrelationship.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterrelationship.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterrelationship.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,7 +40,6 @@ ****************************************************************************/ #include "cntfilterrelationship.h" -#include "qcontactrelationshipfilter.h" #include "cnttransformcontact.h" QTM_USE_NAMESPACE @@ -64,29 +63,25 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedflag, - QContactManager::Error &error) + QContactManager::Error *error) { Q_UNUSED(sortOrders); Q_UNUSED(filterSupportedflag); //Check if any invalid filter is passed if(!filterSupported(filter) ) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QList(); } QList idList; - QContactRelationshipFilter relationfilter(filter); - QString sqlQuery; - getSqlquery(relationfilter,sqlQuery,error); - - + createSelectQuery(filter,sqlQuery,error); //fetch the contacts - idList = m_srvConnection.searchContacts(sqlQuery, error); + if(*error == QContactManager::NoError ) + { + idList = m_srvConnection.searchContacts(sqlQuery, error); + } return idList; - - - } @@ -107,41 +102,41 @@ void CntFilterRelationship::createSelectQuery(const QContactFilter& filter, QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { - //Notthing done as of now - Q_UNUSED(filter); - Q_UNUSED(sqlQuery); - Q_UNUSED(error); - + if(!filterSupported(filter)) + { + *error = QContactManager::NotSupportedError; + return; + } + + QContactRelationshipFilter relationfilter(filter); + QContactId id_to_search = relationfilter.relatedContactId(); + + if(relationfilter.relatedContactRole() == QContactRelationship::First ) + { + sqlQuery = QString("SELECT DISTINCT contact_group_member_id FROM groups WHERE contact_group_id = %1").arg(id_to_search.localId()); + } + else if(relationfilter.relatedContactRole() == QContactRelationship::Second ) + { + sqlQuery = QString("SELECT DISTINCT contact_group_id FROM groups WHERE contact_group_member_id = %1").arg(id_to_search.localId()); + } + else if(relationfilter.relatedContactRole() == QContactRelationship::Either ) + { + sqlQuery = QString("SELECT contact_group_member_id FROM groups WHERE contact_group_id = %1").arg(id_to_search.localId()); + + " union " + + QString("SELECT DISTINCT contact_group_id FROM groups WHERE contact_group_id = %1").arg(id_to_search.localId()); + } } void CntFilterRelationship::getSqlquery( const QContactRelationshipFilter& relationfilter, QString& sqlquery , - QContactManager::Error& error) const + QContactManager::Error* error) const { - + Q_UNUSED(relationfilter); + Q_UNUSED(sqlquery); Q_UNUSED(error); -QContactId id_to_search = relationfilter.otherParticipantId(); - -if(relationfilter.role() == QContactRelationshipFilter::First ) - { - sqlquery = QString("SELECT DISTINCT contact_group_id FROM groups WHERE contact_group_member_id = %1").arg(id_to_search.localId()); - - } -else if(relationfilter.role() == QContactRelationshipFilter::Second ) - { - sqlquery = QString("SELECT DISTINCT contact_group_member_id FROM groups WHERE contact_group_id = %1").arg(id_to_search.localId()); - - } -else if(relationfilter.role() == QContactRelationshipFilter::Either ) - { - sqlquery = QString("SELECT contact_group_member_id FROM groups WHERE contact_group_id = %1").arg(id_to_search.localId()); - + " union " + - QString("SELECT DISTINCT contact_group_id FROM groups WHERE contact_group_id = %1").arg(id_to_search.localId()); - } - } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntfilterunion.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterunion.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterunion.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,9 +42,9 @@ #include "cntfilterunion.h" #include "cntfilterdetail.h" #include "cntfilterdefault.h" +#include "cntfilterrelationship.h" #include "cntfilterintersection.h" #include "cnttransformcontact.h" -#include "qcontactunionfilter.h" CntFilterUnion::CntFilterUnion(CContactDatabase& contactDatabase,CntSymbianSrvConnection &cntServer,CntDbInfo& dbInfo) : m_contactdatabase(contactDatabase), @@ -64,23 +64,24 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedflag, - QContactManager::Error &error) + QContactManager::Error* error) { Q_UNUSED(sortOrders); Q_UNUSED(filterSupportedflag); //Check if any invalid filter is passed if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QList(); } QList idList; QString sqlQuery; - this->createSelectQuery( filter,sqlQuery,error) ; + createSelectQuery(filter,sqlQuery,error); + QString sortQuery = m_dbInfo.getSortQuery(sortOrders, sqlQuery, error); //fetch the contacts - if(error == QContactManager::NoError ) + if(*error == QContactManager::NoError ) { - idList = m_srvConnection.searchContacts(sqlQuery, error); + idList = m_srvConnection.searchContacts(sortQuery, error); } return idList; } @@ -101,13 +102,13 @@ void CntFilterUnion::createSelectQuery(const QContactFilter& filter, QString& selectquery, - QContactManager::Error& error) + QContactManager::Error* error) { const QContactUnionFilter& unionfilter = static_cast(filter); if(!filterSupported(filter)) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return; } QList individualFilters = unionfilter.filters(); @@ -121,7 +122,7 @@ QString query; getSelectQueryforFilter(individualFilters[i],query,error); - if(error == QContactManager::NoError ) + if(*error == QContactManager::NoError ) { selectquery.append(" UNION "); selectquery += query; @@ -131,7 +132,8 @@ } -void CntFilterUnion::getSelectQueryforFilter(const QContactFilter& filter,QString& sqlSelectQuery,QContactManager::Error& error) + +void CntFilterUnion::getSelectQueryforFilter(const QContactFilter& filter,QString& sqlSelectQuery,QContactManager::Error* error) { switch(filter.type()) { @@ -146,7 +148,7 @@ QContactDetailFilter detailfilter(filter); if(detailfilter.detailDefinitionName() == QContactPhoneNumber::DefinitionName ) { - error=QContactManager::NotSupportedError; + *error=QContactManager::NotSupportedError; } else { @@ -155,12 +157,18 @@ } break; } + case QContactFilter::RelationshipFilter: + { + CntFilterRelationship relationfltr(m_contactdatabase,m_srvConnection,m_dbInfo); + relationfltr.createSelectQuery(filter,sqlSelectQuery,error); + break; + } case QContactFilter::IntersectionFilter: { sqlSelectQuery += "SELECT DISTINCT contact_id FROM ("; CntFilterIntersection intersectionfltr(m_contactdatabase,m_srvConnection,m_dbInfo); intersectionfltr.createSelectQuery(filter,sqlSelectQuery,error); - sqlSelectQuery += ")"; + sqlSelectQuery += ')'; break; } case QContactFilter::UnionFilter: @@ -168,12 +176,12 @@ sqlSelectQuery += "SELECT DISTINCT contact_id FROM ("; CntFilterUnion unionfltr(m_contactdatabase,m_srvConnection,m_dbInfo); unionfltr.createSelectQuery(filter,sqlSelectQuery,error); - sqlSelectQuery += ")"; + sqlSelectQuery += ')'; break; } default: { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; break; } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntsymbianfilterdbms.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbianfilterdbms.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbianfilterdbms.cpp Mon May 03 13:18:40 2010 +0300 @@ -90,6 +90,13 @@ * are sorted only if the sort order is supported by contacts database. See * CntSymbianSorterDbms::filterSupportLevel for the list of supported sort * orders. + * + * Using detail filter with match flag MatchPhoneNumber is implemented by the + * contact model "phone number match" that filters by comparing the search + * string characters (digits) starting from the rightmost digit. The detail + * filter value must be at least 7 digits, otherwise an error code + * NotSupportedError is given. The actual digit count that is used is 7 to 15 + * digits, depending on the configuration of the device. * * \a filter The QContactFilter to be used. * \a sortOrders The sort orders to be used. If the sort orders are not @@ -101,7 +108,7 @@ const QContactFilter &filter, const QList &sortOrders, bool &filterSupportedFlag, - QContactManager::Error &error) + QContactManager::Error* error) { QList result; @@ -134,7 +141,7 @@ && (static_cast(filter)).value().type() == QVariant::StringList) { QStringList values = (static_cast(filter)).value().toStringList(); QContactIntersectionFilter intersectionFilter; - foreach(QString value, values) { + foreach(const QString& value, values) { QContactDetailFilter detailFilter = filter; detailFilter.setValue(value); intersectionFilter.append(detailFilter); @@ -142,15 +149,20 @@ // The resulting filter is handled with a recursive function call result = contacts(intersectionFilter, sortOrders, filterSupportedFlag, error); } else { - if (filterSupportLevel(filter) == Supported) { + FilterSupport filterSupport = filterSupportLevel(filter); + if (filterSupport == Supported) { filterSupportedFlag = true; // Filter supported, use as the result directly result = filterContacts(filter, error); - } else if (filterSupportLevel(filter) == SupportedPreFilterOnly) { + } else if (filterSupport == SupportedPreFilterOnly) { // Filter only does pre-filtering, the caller is responsible of // removing possible false positives after filtering filterSupportedFlag = false; result = filterContacts(filter, error); + } else if (filterSupport == IllegalFilter) { + // Don't do filtering; fail with an error + filterSupportedFlag = false; + *error = QContactManager::NotSupportedError; } else { // Don't do filtering here, return all contact ids and tell the // caller to do slow filtering @@ -225,13 +237,29 @@ if (defName == QContactPhoneNumber::DefinitionName) { if (matchFlags == QContactFilter::MatchPhoneNumber) { - return Supported; - } - - if (matchFlags == QContactFilter::MatchExactly || - matchFlags == QContactFilter::MatchEndsWith || - matchFlags == QContactFilter::MatchFixedString) { - return SupportedPreFilterOnly; + if (detailFilter.value().canConvert(QVariant::String)) { + if (detailFilter.value().toString().length() >= 7) { + return Supported; + } else { + // It is a feature of Symbian contact model that phone + // number match requires at least 7 digits. In case of + // phone number match it is best to give an error as a + // result because the phone number match logic would + // not be much of use with less than 7 digit matching. + // It would give false positives too often. + return IllegalFilter; + } + } + } else if (matchFlags == QContactFilter::MatchExactly + || matchFlags == QContactFilter::MatchEndsWith + || matchFlags == QContactFilter::MatchFixedString) { + if (detailFilter.value().canConvert(QVariant::String)) { + // It is a feature of Symbian contact model that phone + // number match requires at least 7 digits + if (detailFilter.value().toString().length() >= 7) { + return SupportedPreFilterOnly; + } + } } // Names } else if (defName == QContactName::DefinitionName @@ -276,16 +304,16 @@ QList CntSymbianFilter::filterContacts( const QContactFilter& filter, - QContactManager::Error& error) + QContactManager::Error* error) { QList matches; CContactIdArray* idArray(0); - if (filter.type() == QContactFilter::InvalidFilter ){ + if (filter.type() == QContactFilter::InvalidFilter) { TTime epoch(0); idArray = m_contactDatabase.ContactsChangedSinceL(epoch); // return all contacts } else if(filterSupportLevel(filter) == NotSupported) { - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; } else if (filter.type() == QContactFilter::ContactDetailFilter) { const QContactDetailFilter &detailFilter = static_cast(filter); @@ -327,7 +355,7 @@ && detailFilter.matchFlags() == QContactFilter::MatchStartsWith) { // Remove false positives - for(TInt i(0); i < idArray->Count(); i++) { + for(TInt i(0); i < idArray->Count(); ++i) { CContactItem* contactItem = m_contactDatabase.ReadContactLC((*idArray)[i]); const CContactItemFieldSet& fieldSet(contactItem->CardFields()); if(isFalsePositive(fieldSet, KUidContactFieldGivenName, namePtr) @@ -345,7 +373,7 @@ } } - if(idArray && (error == QContactManager::NoError)) { + if(idArray && (*error == QContactManager::NoError)) { // copy the matching contact ids for(int i(0); i < idArray->Count(); i++) { matches.append(QContactLocalId((*idArray)[i])); @@ -377,7 +405,7 @@ // Check if this is the first word beginning with search string if(index == 0) value = false; - // Check if this is in the beginning of a word (the preceeding + // Check if this is in the beginning of a word (the preceding // character is a space) else if(index > 0 && TChar(text[index-1]) == TChar(0x20)) value = false; @@ -405,11 +433,11 @@ if(detailFilter.detailDefinitionName() == QContactName::DefinitionName) { if(detailFilter.detailFieldName() == QContactName::FieldPrefix) { tempFieldDef->AppendL(KUidContactFieldPrefixName); - } else if(detailFilter.detailFieldName() == QContactName::FieldFirst) { + } else if(detailFilter.detailFieldName() == QContactName::FieldFirstName) { tempFieldDef->AppendL(KUidContactFieldGivenName); - } else if(detailFilter.detailFieldName() == QContactName::FieldMiddle) { + } else if(detailFilter.detailFieldName() == QContactName::FieldMiddleName) { tempFieldDef->AppendL(KUidContactFieldAdditionalName); - } else if(detailFilter.detailFieldName() == QContactName::FieldLast) { + } else if(detailFilter.detailFieldName() == QContactName::FieldLastName) { tempFieldDef->AppendL(KUidContactFieldFamilyName); } else if(detailFilter.detailFieldName() == QContactName::FieldSuffix) { tempFieldDef->AppendL(KUidContactFieldSuffixName); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntsymbianfiltersql.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbianfiltersql.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbianfiltersql.cpp Mon May 03 13:18:40 2010 +0300 @@ -110,7 +110,7 @@ const QContactFilter& filter, const QList& sortOrders, bool &filterSupported, - QContactManager::Error& error) + QContactManager::Error* error) { QList ids; if(m_filterMap.contains(filter.type())) @@ -120,7 +120,7 @@ return ids; } - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return ids; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntsymbianfiltersqlhelper.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbianfiltersqlhelper.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,731 +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 QtCore 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$ -** -****************************************************************************/ -//system includes -#include -#include -#include - -#include - -//user includes -#include "cntsymbianfiltersqlhelper.h" -#include "qcontactdetailfilter.h" -#include "cnttransformcontact.h" -#include "cntdisplaylabel.h" -#include "cntdisplaylabelsqlfilter.h" -#include "cntsqlsearch.h" - -// Telephony Configuration API -// Keys under this category are used in defining telephony configuration. -const TUid KCRUidTelConfiguration = {0x102828B8}; -// Amount of digits to be used in contact matching. -// This allows a customer to variate the amount of digits to be matched. -const TUint32 KTelMatchDigits = 0x00000001; -// Default match length -const TInt KDefaultMatchLength(7); -//Class documentation go here: -/*! - \class CntSymbianFilterSqlHelper - \brief Helper class for converting filter to sql queries -*/ - - Q_DEFINE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::SingleQuote,"'") ; - Q_DEFINE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::PercentSign,"%") ; - Q_DEFINE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::Space," ") ; - Q_DEFINE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::EqualTo,"=") ; - Q_DEFINE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::SqlLike," LIKE ") ; - Q_DEFINE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::SqlNotNull," NOT NULL ") ; - Q_DEFINE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::SqlWhere," WHERE ") ; - Q_DEFINE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::SqlOr," OR ") ; - Q_DEFINE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::contactsTable," contact ") ; - Q_DEFINE_LATIN1_LITERAL(CntSymbianFilterSqlHelper::commAddrTable," comm_addr ") ; - - -/*! - * The constructor - */ -CntSymbianFilterSqlHelper::CntSymbianFilterSqlHelper(CContactDatabase& contactDatabase) - : m_contactDatabase(contactDatabase), - isPhoneNumberSearchforDetailFilter(false) -{ - m_srvConnection = new CntSymbianSrvConnection(); - m_sqlSearch = new CntSqlSearch(); - - contactsTableIdColumNameMapping.insert(KUidContactFieldGivenName.iUid,"first_name" ); - contactsTableIdColumNameMapping.insert(KUidContactFieldGivenNamePronunciation.iUid,"firstname_prn" ); - contactsTableIdColumNameMapping.insert(KUidContactFieldFamilyName.iUid,"last_name" ); - contactsTableIdColumNameMapping.insert(KUidContactFieldFamilyNamePronunciation.iUid,"lastname_prn" ); - contactsTableIdColumNameMapping.insert(KUidContactFieldCompanyName.iUid,"company_name" ); - contactsTableIdColumNameMapping.insert(KUidContactFieldCompanyNamePronunciation.iUid,"companyname_prn" ); - - //commAddrTableIdColumNameMapping.insert(KUidContactFieldIMPP.iUid,ESipAddress ); - commAddrTableIdColumNameMapping.insert(KUidContactFieldSIPID.iUid,ESipAddress ); - commAddrTableIdColumNameMapping.insert(KUidContactFieldEMail.iUid,EEmailAddress ); - -} - -/*! - * Destructor - */ -CntSymbianFilterSqlHelper::~CntSymbianFilterSqlHelper() - -{ - delete m_srvConnection; - delete m_sqlSearch; - contactsTableIdColumNameMapping.clear(); - commAddrTableIdColumNameMapping.clear(); -} - -/*! - * Fetch search results from the database. - * - * \a filter The simple/complex QContactFilter passed . - * \a error On return, contains the possible error. - * \return the list of matched contact ids - */ -QList CntSymbianFilterSqlHelper::searchContacts(const QContactFilter& filter, const QList& sortOrders, - QContactManager::Error& error) -{ - isPhoneNumberSearchforDetailFilter = false; - QList idList; - bool isPredSearch; - idList = HandlePredictiveSearchFilter(filter,isPredSearch, error); - if(isPredSearch) - return idList; - if(filterSupportLevel(filter)){ - - // Create sql query from the filters - QString sqlQuery; - createSqlQuery(filter, sqlQuery, error); - - if( error != QContactManager::NoError) { - return QList(); - } - // Query the database - // If isPhoneNumberSearchforDetailFilter flag is set, we use the existing cntmodel - // else call searchContacts - if(isPhoneNumberSearchforDetailFilter) - { - // cast the filter into detail filte - const QContactDetailFilter detailFilter(filter); - idList = HandlePhonenumberDetailFilter(detailFilter); - } - else - { - //append the sort order to the query - appendSortOrderQuery(sqlQuery, sortOrders); - - //fetch the contacts - idList = m_srvConnection->searchContacts(sqlQuery, error); - } - - } - else - { - error = QContactManager::NotSupportedError; - } - return idList; - - -} - -QList CntSymbianFilterSqlHelper::HandlePredictiveSearchFilter(const QContactFilter& filter, bool &isPredSearch, - QContactManager::Error& error) - { - isPredSearch = false; - QString sqlQuery; - if(filter.type() == QContactFilter::ContactDetailFilter){ - const QContactDetailFilter detailFilter(filter); - if( detailFilter.matchFlags() == QContactFilter::MatchKeypadCollation ){ - //convert string to numeric format - QString pattern = detailFilter.value().toString(); - sqlQuery = m_sqlSearch->CreatePredictiveSearch(pattern); - isPredSearch = true; - - return m_srvConnection->searchContacts(sqlQuery, error); - } - else - { - return QList(); - } - } - else - { - return QList(); - } - } - -/*! - * Append the sort order to the sql query - * - * \a sqlQuery to add the sort order to - * \a sortOrders to be added - */ -void CntSymbianFilterSqlHelper::appendSortOrderQuery(QString& sqlQuery, const QList& sortOrders) -{ - QString column; - CntDisplayLabel displayLabel; - - bool first(true); - - for(int i = 0; i < sortOrders.count(); i++) - { - columnName(column, sortOrders.at(i).detailDefinitionName(), sortOrders.at(i).detailFieldName()); - - if(!column.isEmpty()) - { - if(first) - { - sqlQuery += " ORDER BY"; - first = false; - } - - else - { - sqlQuery += ","; - } - - //use the display label if the name is null, ignore case - sqlQuery += " CASE WHEN " + column + " ISNULL THEN \'"+ displayLabel.unNamned().toLower() + "\' ELSE lower(" + column + ") END"; - - if(sortOrders.at(i).direction() == Qt::AscendingOrder) - { - sqlQuery += " ASC"; - } - - else if(sortOrders.at(i).direction() == Qt::DescendingOrder) - { - sqlQuery += " DESC"; - } - } - } -} - -/*! - * Retrieve a column name - * - * \a columnName to be saved the column name if found - * \a detailDefinitionName of the detail to fetch column name for - * \a detailFieldName of the detail to fetch column name for - */ -void CntSymbianFilterSqlHelper::columnName( QString &columnName, const QString &detailDefinitionName, const QString & detailFieldName) -{ - columnName = ""; - - //Name detail - if(detailDefinitionName == QContactName::DefinitionName) - { - if(detailFieldName == QContactName::FieldFirst) - { - columnName = "first_name"; - } - - else if(detailFieldName == QContactName::FieldLast) - { - columnName = "last_name"; - } - } - - //Organization - else if(detailDefinitionName == QContactOrganization::DefinitionName) - { - if(detailFieldName == QContactOrganization::FieldName) - { - columnName = "company_name"; - } - } -} - -/*! - * converts complex filter into simple filters - * - * \a filter The simple/complex QContactFilter passed . - * \a sqlQuery The sql query that would be formed - * \a error On return, contains the possible error. - */ -void CntSymbianFilterSqlHelper::createSqlQuery(const QContactFilter& filter, - QString& sqlQuery, - QContactManager::Error& error) -{ - //Check if it is a single filter - bool IsOneLevelFilter = isSingleFilter(filter); - if(IsOneLevelFilter) { - //Single Filter, get the sql query here - updateSqlQueryForSingleFilter(filter,sqlQuery,error); - } else { - // We have multiple filters. Combine these to form correct query - // Not supported yet - error = QContactManager::NotSupportedError; - } -} - -/*! - * Checks if the given filter is a single filter or combination of filters - * - * \a filter The QContactFilter to be used. - * \return True if the filters is single filter - */ - -bool CntSymbianFilterSqlHelper::isSingleFilter(const QContactFilter& singlefilter) const -{ - - bool returnValue = false; - switch (singlefilter.type()) { - case QContactFilter::ContactDetailFilter: - case QContactFilter::InvalidFilter : - case QContactFilter::ContactDetailRangeFilter: - case QContactFilter::ChangeLogFilter: - case QContactFilter::DefaultFilter: - //All are single filters, return True - returnValue = true; - break; - case QContactFilter::ActionFilter: - case QContactFilter::IntersectionFilter: - case QContactFilter::UnionFilter: - - //All these are multiple filters - returnValue = false; - break; - default: - returnValue = false; - break; - }; - return returnValue; -} - -/*! - * Updates the input sql query for single filter - * - * \a filter The QContactFilter to be used. - * \a sqlQuery The sql query that would be updated - * \a error On return, contains the possible error - */ -void CntSymbianFilterSqlHelper::updateSqlQueryForSingleFilter( const QContactFilter& filter, - QString& sqlQuery, - QContactManager::Error& error) -{ - switch (filter.type()) { - case QContactFilter::InvalidFilter : - { - // Not supported yet - error = QContactManager::NotSupportedError; - break; - } - case QContactFilter::ContactDetailFilter: - { - const QContactDetailFilter detailFilter(filter); - - //display label - if (detailFilter.detailDefinitionName() == QContactDisplayLabel::DefinitionName) - { - CntDisplayLabelSqlFilter displayLabelFilter; - displayLabelFilter.createSqlQuery(detailFilter,sqlQuery,error); - } - - //type - else if(detailFilter.detailDefinitionName() == QContactType::DefinitionName) - { - if(detailFilter.value().toString() == QContactType::TypeContact) - sqlQuery = "SELECT contact_id FROM contact WHERE (type_flags>>24)=0"; - else if(detailFilter.value().toString() == QContactType::TypeGroup) - sqlQuery = "SELECT contact_id FROM contact WHERE (type_flags>>24)=3"; - } - - //everything else - else - { - updateSqlQueryForDetailFilter(filter,sqlQuery,error); - } - - break; - } - case QContactFilter::ContactDetailRangeFilter: - // Not supported yet - error = QContactManager::NotSupportedError; - break; - - case QContactFilter::ChangeLogFilter: - // Not supported yet - error = QContactManager::NotSupportedError; - break; - case QContactFilter::DefaultFilter: - sqlQuery = "SELECT DISTINCT contact_id FROM contact WHERE (type_flags>>24)=0 OR (type_flags>>24)=3"; - error = QContactManager::NoError; - break; - case QContactFilter::ActionFilter: - case QContactFilter::IntersectionFilter: - case QContactFilter::UnionFilter: - //All these are multiple filters - // Not supported yet - error = QContactManager::NotSupportedError; - break; - default: - //Some Unknow filter value - // Not supported - error = QContactManager::NotSupportedError; - break; - }; - if( error != QContactManager::NoError) - { - sqlQuery = ""; - } -} - -/*! - * Updates the input sql query for detail filter - * - * \a filter The QContactFilter to be used. - * \a sqlQuery The sql query that would be updated - * \a error On return, contains the possible error - */ -void CntSymbianFilterSqlHelper::updateSqlQueryForDetailFilter(const QContactFilter& filter, - QString& sqlQuery, - QContactManager::Error& error) -{ - - - // cast the filter into detail filter - const QContactDetailFilter detailFilter(filter); - - QString sqlWhereClause = Space + " WHERE "; - - //Get the table name and the column name - bool isSubType; - QString columnName; - QString tableName; - - //Check for phonenumber. Special handling needed - if(detailFilter.detailDefinitionName() == QContactPhoneNumber::DefinitionName){ - isPhoneNumberSearchforDetailFilter = true; - error = QContactManager::NoError; - return; - } - - getSqlDbTableAndColumnNameforDetailFilter(detailFilter,isSubType,tableName,columnName); - - //return if tableName is empty - if(tableName == "" ){ - error = QContactManager::NotSupportedError; - return; - } - - //check columnName - if(columnName == "") { - error = QContactManager::NotSupportedError; - return; - } - else if(isSubType) { - sqlWhereClause += columnName; - sqlWhereClause += " NOT NULL "; - } - else { - - sqlWhereClause += Space + columnName + Space ; - QString fieldToUpdate; - //Update the value depending on the match flag - updateFieldForDeatilFilterMatchFlag(detailFilter,fieldToUpdate,error); - sqlWhereClause += fieldToUpdate; - } - - - //Create the sql query - sqlQuery += "SELECT DISTINCT contact_id FROM " + Space + tableName + Space + sqlWhereClause; - - -} - -/*! - * Converts filed id to column name of the database table. - * QContactManager::contacts function. - * - * \a fieldId field id representing the detail field name - * \a sqlDbTableColumnName On return,contains the column name in the database - */ -void CntSymbianFilterSqlHelper::updateFieldForDeatilFilterMatchFlag( - const QContactDetailFilter& filter, - QString& fieldToUpdate , - QContactManager::Error& error) const -{ - // Modify the filed depending on the query - switch(filter.matchFlags()) - { - case QContactFilter::MatchExactly: - { - // Pattern for MatchExactly: - // " ='xyz'" - fieldToUpdate = Space + EqualTo + SingleQuote - + filter.value().toString() + SingleQuote; - error = QContactManager::NoError; - break; - } - case QContactFilter::MatchContains: - { - // Pattern for MatchContains: - // " LIKE '%xyz%'" - fieldToUpdate = Space + SqlLike + Space + SingleQuote + PercentSign - + filter.value().toString() + PercentSign + SingleQuote ; - error = QContactManager::NoError; - break; - } - case QContactFilter::MatchStartsWith: - { - // Pattern for MatchStartsWith: - // " LIKE 'xyz%'" - fieldToUpdate = Space + SqlLike + Space + SingleQuote - + filter.value().toString() + PercentSign + SingleQuote ; - error = QContactManager::NoError; - break; - } - case QContactFilter::MatchEndsWith: - { - // Pattern for MatchEndsWith: - // " LIKE '%xyz'" - fieldToUpdate = Space + SqlLike + Space + SingleQuote + PercentSign - + filter.value().toString() + SingleQuote ; - error = QContactManager::NoError; - break; - } - case QContactFilter::MatchFixedString: - { - error = QContactManager::NotSupportedError; - break; - } - case QContactFilter::MatchCaseSensitive: - { - error = QContactManager::NotSupportedError; - break; - } - default: - { - error = QContactManager::NotSupportedError; - break; - } - } -} - -/*! - * Converts filed id to column name of the database table. - * QContactManager::contacts function. - * - * \a fieldId field id representing the detail field name - * \a sqlDbTableColumnName On return,contains the column name in the database - */ -void CntSymbianFilterSqlHelper::getSqlDbTableAndColumnNameforDetailFilter( - const QContactDetailFilter& detailFilter , - bool& isSubType, - QString& tableName, - QString& columnName ) -{ - - //Get the field id for the detail field name - CntTransformContact transformContact; - quint32 fieldId = transformContact.GetIdForDetailL(detailFilter, isSubType); - - //check contacts table - columnName = ""; - tableName = ""; - - if (contactsTableIdColumNameMapping.contains(fieldId)){ - columnName = contactsTableIdColumNameMapping.value(fieldId); - tableName = "contact"; - } - - if( ("" == columnName) || ("" == tableName)){ - //Search comm Addr table - if (commAddrTableIdColumNameMapping.contains(fieldId)){ - // communication address table has slightly differnt format, so we make the column name as - // "type = and value " - int typeval = commAddrTableIdColumNameMapping.value(fieldId) ; - columnName = Space + "TYPE = "; - columnName.append('0'+ typeval) - + typeval + Space; - columnName += " and value " ; - tableName = "comm_addr"; - } - - } -} - -QList CntSymbianFilterSqlHelper::HandlePhonenumberDetailFilter(const QContactDetailFilter detailFilter) - { - QList matches; - - if(detailFilter.detailDefinitionName() == QContactPhoneNumber::DefinitionName){ - - // Phone numbers need separate handling - if ((filterSupportLevel(detailFilter) == CntAbstractContactFilter::Supported - || filterSupportLevel(detailFilter) == CntAbstractContactFilter::SupportedPreFilterOnly)) - { - QString number((detailFilter.value()).toString()); - TPtrC commPtr(reinterpret_cast(number.utf16())); - - TInt matchLength(KDefaultMatchLength); - // no need to propagate error, we can use the default match length - TRAP_IGNORE(getMatchLengthL(matchLength)); - - //cal the search - CContactIdArray* idArray(0); - TInt err = searchPhoneNumbers(idArray, commPtr, matchLength); - if( idArray && (err == KErrNone)){ - // copy the matching contact ids - for(int i(0); i < idArray->Count(); i++) { - matches.append(QContactLocalId((*idArray)[i])); - } - delete idArray; - } - else{ - //CntSymbianTransformError::transformError(err, error); - } - } - - - } - return matches; - - } -/*! - * The contact database version implementation for - * QContactManager::filterSupported function. The possible return values are - * Supported, NotSupported and SupportedPreFilterOnly. Supported means that - * the filtering is implemented directly by the underlying database. - * NotSupported means that CntSymbianFilterDbms::contacts will return an - * error. And SupportedPreFilterOnly means that the filter is not supported, - * but the CntSymbianFilterDbms::contacts will act like the filter was - * supported. This means that the client must filter the pre-filtered set of - * contacts to see if there are false positives included. Note that in some - * cases the pre-filtering is not very effective. - * - * \a filter The QContactFilter to be checked. - * \a return Supported in case the filter is supported. NotSupported in case - * the filter is not supported. returns - * - */ -CntAbstractContactFilter::FilterSupport CntSymbianFilterSqlHelper::filterSupportLevel(const QContactFilter& filter) -{ - CntAbstractContactFilter::FilterSupport filterSupported(CntAbstractContactFilter::NotSupported); - switch (filter.type()) { - case QContactFilter::DefaultFilter: //default filter == no filter - { - filterSupported = CntAbstractContactFilter::Supported; - break; - } - case QContactFilter::ContactDetailFilter: - { - const QContactDetailFilter &detailFilter = static_cast(filter); - filterSupported = checkIfDetailFilterSupported(detailFilter); - break; - } - case QContactFilter::InvalidFilter : - case QContactFilter::ContactDetailRangeFilter: - case QContactFilter::ChangeLogFilter: - case QContactFilter::ActionFilter: - case QContactFilter::IntersectionFilter: - case QContactFilter::UnionFilter: - case QContactFilter::RelationshipFilter: - default: - filterSupported = CntAbstractContactFilter::NotSupported; - break; - } - return filterSupported; -} -CntAbstractContactFilter::FilterSupport CntSymbianFilterSqlHelper::checkIfDetailFilterSupported - (const QContactDetailFilter& detailFilter) const -{ - - CntAbstractContactFilter::FilterSupport filterSupported(CntAbstractContactFilter::NotSupported); - //Get the match flags - QContactFilter::MatchFlags matchFlags = detailFilter.matchFlags(); - // Phone numbers - if (detailFilter.detailDefinitionName() == QContactPhoneNumber::DefinitionName) { - if (matchFlags == QContactFilter::MatchEndsWith){ - filterSupported = CntAbstractContactFilter::Supported; - } - else if (matchFlags == QContactFilter::MatchExactly){ - filterSupported = CntAbstractContactFilter::SupportedPreFilterOnly; - } - } - // Names , Email,Sip address - else if ( detailFilter.detailDefinitionName() == QContactName::DefinitionName || - detailFilter.detailDefinitionName() == QContactEmailAddress::DefinitionName || - detailFilter.detailDefinitionName() == QContactOnlineAccount::DefinitionName || - detailFilter.detailDefinitionName() == QContactDisplayLabel::DefinitionName || - detailFilter.detailDefinitionName() == QContactType::DefinitionName){ - if ( (matchFlags == QContactFilter::MatchContains)|| (matchFlags == QContactFilter::MatchStartsWith)|| - (matchFlags == QContactFilter::MatchEndsWith)|| (matchFlags == QContactFilter::MatchExactly)){ - filterSupported = CntAbstractContactFilter::Supported; - } - if(matchFlags == QContactFilter::MatchKeypadCollation) - filterSupported = CntAbstractContactFilter::Supported; - } - return filterSupported; - -} -/* - * Get the match length setting. Digits to be used in matching (counted from - * right). - */ -void CntSymbianFilterSqlHelper::getMatchLengthL(TInt& matchLength) -{ - //Get number of digits used to match - CRepository* repository = CRepository::NewL(KCRUidTelConfiguration); - CleanupStack::PushL(repository); - User::LeaveIfError(repository->Get(KTelMatchDigits, matchLength)); - CleanupStack::PopAndDestroy(repository); -} - -/* - * Find contacts based on a phone number. - * \a idArray On return contains the ids of the contacts that match the phonenumber. - * \a phoneNumber The phone number to match - * \a matchLength Match length; digits from right. - */ -TInt CntSymbianFilterSqlHelper::searchPhoneNumbers( - CContactIdArray*& idArray, - const TDesC& phoneNumber, - const TInt matchLength) -{ - CContactIdArray* idArrayTmp(0); - TRAPD( err, idArrayTmp = m_contactDatabase.MatchPhoneNumberL(phoneNumber, matchLength)); - if(err == KErrNone){ - idArray = idArrayTmp; - } - return 0; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntsymbiansorterdbms.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbiansorterdbms.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbiansorterdbms.cpp Mon May 03 13:18:40 2010 +0300 @@ -74,7 +74,7 @@ QList CntSymbianSorterDbms::contacts( const QList& sortOrders, - QContactManager::Error& error) + QContactManager::Error* error) { // Create an empty list // See QT_TRYCATCH_LEAVING note at the begginning of this file @@ -92,7 +92,7 @@ QList CntSymbianSorterDbms::sort( QList contactIds, const QList& sortOrders, - QContactManager::Error& error) + QContactManager::Error* error) { // Create an empty list // See QT_TRYCATCH_LEAVING note at the begginning of this file @@ -109,7 +109,7 @@ bool CntSymbianSorterDbms::sortOrderSupported(const QList& sortOrders) { - foreach( QContactSortOrder s, sortOrders ) { + foreach(const QContactSortOrder& s, sortOrders ) { // Find uids for sortings QList fieldTypeUids = m_transformContact.supportedSortingFieldTypes(s.detailDefinitionName(), s.detailFieldName()); if( fieldTypeUids.count() == 0 ) @@ -145,7 +145,7 @@ // Remove templates from the list CContactIdArray *templateIds = m_contactDatabase.GetCardTemplateIdListL(); CleanupStack::PushL(templateIds); - for(TInt i(0); i < templateIds->Count(); i++) { + for(TInt i(0); i < templateIds->Count(); ++i) { TContactItemId id = (*templateIds)[i]; TInt index = ids->Find(id); if(index > KErrNotFound) @@ -161,7 +161,7 @@ // Add the contact ids to the returned QList QList qIds; - for (TInt i(0); i < ids->Count(); i++) { + for (TInt i(0); i < ids->Count(); ++i) { qIds.append((*ids)[i]); } @@ -195,12 +195,12 @@ CleanupStack::PushL(sort); // Convert sort orders to TSortPref array - foreach (QContactSortOrder s, sortOrders) + foreach (const QContactSortOrder& s, sortOrders) { QList fieldTypes = m_transformContact.supportedSortingFieldTypes(s.detailDefinitionName(), s.detailFieldName()); if (fieldTypes.count()) { - foreach(TUid fieldType, fieldTypes) { + foreach(const TUid& fieldType, fieldTypes) { CContactDatabase::TSortPref pref; // NOTE: TSortPref sets order to ascending by default if( s.direction() == Qt::DescendingOrder ) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/filtering/cntsymbiansrvconnection.cpp --- a/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbiansrvconnection.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbiansrvconnection.cpp Mon May 03 13:18:40 2010 +0300 @@ -93,7 +93,7 @@ * \return the list of matched contact ids */ QList CntSymbianSrvConnection::searchContacts(const QString& sqlQuery, - QContactManager::Error& error) + QContactManager::Error* error) { QList list; TPtrC queryPtr(reinterpret_cast(sqlQuery.utf16())); @@ -152,12 +152,12 @@ //Enforce server to be at system default priority EPriorityForeground server.SetPriority(EPriorityForeground); - // Synchronise with the server. + // Synchronize with the server. TRequestStatus reqStatus; server.Rendezvous(reqStatus); server.Resume(); - // Server will call the reciprocal static synchronisation call. + // Server will call the reciprocal static synchronization call. User::WaitForRequest(reqStatus); server.Close(); User::LeaveIfError(reqStatus.Int()); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformaddress.cpp --- a/qtmobility/plugins/contacts/symbian/src/transform/cnttransformaddress.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformaddress.cpp Mon May 03 13:18:40 2010 +0300 @@ -106,7 +106,7 @@ // Find existing address details from contact QContactDetail* detail = 0; - foreach( QContactAddress existingAddress, contact.details() ) + foreach(const QContactAddress& existingAddress, contact.details() ) { // Do not merge if contexts don't match if( existingAddress.contexts() != address.contexts() ) @@ -114,7 +114,7 @@ // Merge detail with existing detail detail = new QContactAddress( existingAddress ); - foreach( QString key, address.variantValues().keys() ) + foreach(const QString& key, address.variantValues().keys() ) detail->setValue( key, address.variantValue(key) ); break; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformavatar.cpp --- a/qtmobility/plugins/contacts/symbian/src/transform/cnttransformavatar.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformavatar.cpp Mon May 03 13:18:40 2010 +0300 @@ -48,75 +48,59 @@ QList fieldList; - //cast to avatar - const QContactAvatar &avatar(static_cast(detail)); - + //cast to avatar + const QContactAvatar &avatar(static_cast(detail)); - //create new field - TPtrC fieldText(reinterpret_cast(avatar.avatar().utf16())); - - if(fieldText.Length()) { - //supported subTypes - const QString& subTypeImage(QContactAvatar::SubTypeImage); - const QString& subTypeAudioRingtone(QContactAvatar::SubTypeAudioRingtone); - const QString& subTypeVideoRingtone(QContactAvatar::SubTypeVideoRingtone); + //create new field + QString urlString = avatar.imageUrl().toString(); + TPtrC fieldText(reinterpret_cast(urlString.utf16())); - QString subType = avatar.subType(); - TUid uid(KNullUid); - if(subType.isEmpty()) { - uid = KUidContactFieldCodImage; - } else if (subType.compare(subTypeImage) == 0) { - uid = KUidContactFieldCodImage; - } else if (subType.compare(subTypeAudioRingtone) == 0) { - uid = KUidContactFieldRingTone; - } else if (subType.compare(subTypeVideoRingtone) == 0) { - uid = KUidContactFieldVideoRingTone; - } else { - User::LeaveIfError(KErrNotSupported); - } - CContactItemField* newField = CContactItemField::NewLC(KStorageTypeText, uid); + //copy filename and replace slash with a backslash + TFileName filename; + for(TInt i(0); i < fieldText.Length(); ++i) { + if(i >= filename.MaxLength()) + User::Leave(KErrTooBig); + if(fieldText[i] == '/') { + filename.Append('\\'); + } else { + filename.Append(fieldText[i]); + } + } - newField->SetMapping(KUidContactFieldVCardMapUnknown); - newField->TextStorage()->SetTextL(fieldText); + if(filename.Length()) { + TUid uid(KUidContactFieldCodImage); + + CContactItemField* newField = CContactItemField::NewLC(KStorageTypeText, uid); - fieldList.append(newField); - CleanupStack::Pop(newField); - } + newField->SetMapping(KUidContactFieldVCardMapUnknown); + newField->TextStorage()->SetTextL(filename); - return fieldList; + fieldList.append(newField); + CleanupStack::Pop(newField); + } + + return fieldList; } QContactDetail *CntTransformAvatar::transformItemField(const CContactItemField& field, const QContact &contact) { - Q_UNUSED(contact); - - QContactAvatar *avatar = new QContactAvatar(); - - CContactTextField* storage = field.TextStorage(); - QString avatarString = QString::fromUtf16(storage->Text().Ptr(), storage->Text().Length()); - avatar->setAvatar(avatarString); + Q_UNUSED(contact); + QContactAvatar *avatar = new QContactAvatar(); - if (field.ContentType().ContainsFieldType(KUidContactFieldCodImage)) { - avatar->setSubType(QContactAvatar::SubTypeImage); - } - else if (field.ContentType().ContainsFieldType(KUidContactFieldRingTone)) { - avatar->setSubType(QContactAvatar::SubTypeAudioRingtone); - } - else if (field.ContentType().ContainsFieldType(KUidContactFieldVideoRingTone)) { - avatar->setSubType(QContactAvatar::SubTypeVideoRingtone); + if (field.ContentType().ContainsFieldType(KUidContactFieldCodImage)) { + CContactTextField* storage = field.TextStorage(); + QString avatarString = QString::fromUtf16(storage->Text().Ptr(), storage->Text().Length()); + avatar->setImageUrl(QUrl(avatarString)); } - return avatar; + return avatar; } bool CntTransformAvatar::supportsField(TUint32 fieldType) const { bool ret = false; - if (fieldType == KUidContactFieldCodImage.iUid || - fieldType == KUidContactFieldRingTone.iUid || - fieldType == KUidContactFieldVideoRingTone.iUid) { + if (fieldType == KUidContactFieldCodImage.iUid) ret = true; - } return ret; } @@ -142,12 +126,10 @@ * \a subType The subtype to be checked * \return True if this subtype is supported */ -bool CntTransformAvatar::supportsSubType(const QString& subType) const +bool CntTransformAvatar::supportsSubType(const QString& /*subType*/) const { - if(QContactAvatar::FieldSubType == subType) - return true; - else - return false; + // XXX todo + return false; } /*! @@ -156,22 +138,10 @@ * \a fieldName The name of the supported field * \return fieldId for the fieldName, 0 if not supported */ -quint32 CntTransformAvatar::getIdForField(const QString& fieldName) const +quint32 CntTransformAvatar::getIdForField(const QString& /*fieldName*/) const { - if (QContactAvatar::FieldAvatar == fieldName) - return 0; - else if (QContactAvatar::SubTypeImage == fieldName) - return 0; - else if (QContactAvatar::SubTypeVideo == fieldName) - return 0; - else if (QContactAvatar::SubTypeTexturedMesh == fieldName) - return 0; - else if (QContactAvatar::SubTypeAudioRingtone == fieldName) - return 0; - else if (QContactAvatar::SubTypeVideoRingtone == fieldName) - return 0; - else - return 0; + // XXX todo + return 0; } /*! @@ -190,15 +160,8 @@ QContactDetailDefinition d = definitions.value(QContactAvatar::DefinitionName); QMap fields = d.fields(); - // Update sub-types - QContactDetailFieldDefinition f; - f.setDataType(QVariant::String); // only allowed to be a single subtype - f.setAllowableValues(QVariantList() - << QString(QLatin1String(QContactAvatar::SubTypeImage)) - << QString(QLatin1String(QContactAvatar::SubTypeAudioRingtone)) - << QString(QLatin1String(QContactAvatar::SubTypeVideoRingtone))); - fields.insert(QContactAvatar::FieldSubType, f); - + // We only support imageUrl + fields.remove(QContactAvatar::FieldVideoUrl); // Context not supported in symbian back-end, remove fields.remove(QContactAvatar::FieldContext); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformavatarsimple.cpp --- a/qtmobility/plugins/contacts/symbian/src/transform/cnttransformavatarsimple.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,281 +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 Qt Mobility Components. -** -** $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 "cnttransformavatarsimple.h" -#include "cntthumbnailcreator.h" -#include "cntsymbiantransformerror.h" - -// S60 specific contact field type containing image call object data -#define KUidContactFieldCodImageValue 0x101F8841 -const TUid KUidContactFieldCodImage={KUidContactFieldCodImageValue}; -// Extra field that is defined in TB10.1 platform for video ring tone -#define KUidContactFieldVideoRingToneValue 0x200100E5 -const TUid KUidContactFieldVideoRingTone={KUidContactFieldVideoRingToneValue}; -// The max. size of the thumbnail image that is saved into contacts database -const TSize KMaxThumbnailSize(80, 96); - -CntTransformAvatarSimple::CntTransformAvatarSimple() : - m_thumbnailCreator(0) -{ -} - -CntTransformAvatarSimple::~CntTransformAvatarSimple() -{ - delete m_thumbnailCreator; -} - -QList CntTransformAvatarSimple::transformDetailL(const QContactDetail &detail) -{ - if(detail.definitionName() != QContactAvatar::DefinitionName) - User::Leave(KErrArgument); - - QList fieldList; - - //cast to avatar - const QContactAvatar &avatar(static_cast(detail)); - - //create new field - TPtrC fieldText(reinterpret_cast(avatar.avatar().utf16())); - - //copy filename and replace slash with a backslash - TFileName filename; - for(TInt i(0); i < fieldText.Length(); i++) { - if(i >= filename.MaxLength()) - User::Leave(KErrTooBig); - if(fieldText[i] == '/') { - filename.Append('\\'); - } else { - filename.Append(fieldText[i]); - } - } - - if(filename.Length()) { - const QString& subTypeImage(QContactAvatar::SubTypeImage); - const QString& subTypeAudioRingtone(QContactAvatar::SubTypeAudioRingtone); - const QString& subTypeVideoRingtone(QContactAvatar::SubTypeVideoRingtone); - - QString subType = avatar.subType(); - TUid uid(KNullUid); - // Default to SubTypeImage - if(subType.isEmpty() || subType.compare(subTypeImage) == 0) { - uid = KUidContactFieldCodImage; - } else if (subType.compare(subTypeAudioRingtone) == 0) { - uid = KUidContactFieldRingTone; - } else if (subType.compare(subTypeVideoRingtone) == 0) { - uid = KUidContactFieldVideoRingTone; - } else { - User::LeaveIfError(KErrNotSupported); - } - CContactItemField* newField = CContactItemField::NewLC(KStorageTypeText, uid); - - newField->SetMapping(KUidContactFieldVCardMapUnknown); - newField->TextStorage()->SetTextL(filename); - - fieldList.append(newField); - CleanupStack::Pop(newField); - } - - if(!avatar.pixmap().isNull()) { - // lazy instantiation - if(!m_thumbnailCreator) { - m_thumbnailCreator = new (ELeave) CntThumbnailCreator(); - } - - // Scaling is done before converting to CFbsBitmap because - // toSymbianCFbsBitmap may generate a duplicate of the bitmap data - // Note: scaling to thumbnail may take some time if the image is big - // TODO: aspect ratio? - QPixmap scaled = avatar.pixmap().scaled(KMaxThumbnailSize.iWidth, KMaxThumbnailSize.iHeight); - CFbsBitmap* bitmap = scaled.toSymbianCFbsBitmap(); - CleanupStack::PushL(bitmap); - - m_thumbnailCreator->addThumbnailFieldL(&fieldList, bitmap, KMaxThumbnailSize); - CleanupStack::Pop(bitmap); // ownership transferred - } - - return fieldList; -} - -QContactDetail *CntTransformAvatarSimple::transformItemField(const CContactItemField& field, const QContact &contact) -{ - Q_UNUSED(contact); - QContactAvatar *avatar = new QContactAvatar(); - - if (field.ContentType().ContainsFieldType(KUidContactFieldCodImage)) { - CContactTextField* storage = field.TextStorage(); - QString avatarString = QString::fromUtf16(storage->Text().Ptr(), storage->Text().Length()); - avatar->setAvatar(avatarString); - avatar->setSubType(QContactAvatar::SubTypeImage); - } else if (field.ContentType().ContainsFieldType(KUidContactFieldRingTone)) { - CContactTextField* storage = field.TextStorage(); - QString avatarString = QString::fromUtf16(storage->Text().Ptr(), storage->Text().Length()); - avatar->setAvatar(avatarString); - avatar->setSubType(QContactAvatar::SubTypeAudioRingtone); - } else if (field.ContentType().ContainsFieldType(KUidContactFieldPicture) - || field.ContentType().ContainsFieldType(KUidContactFieldVCardMapJPEG)) { - // use the existing QContactAvatar (if available) in case of a pixmap - // field. - delete avatar; - avatar = 0; - avatar = new QContactAvatar(contact.detail()); - CContactStoreField* storage = field.StoreStorage(); - QPixmap pixmap; - HBufC8 *theThing = storage->Thing(); - QByteArray bytes((char*)theThing->Ptr(), theThing->Length()); - bool loaded = pixmap.loadFromData(bytes, "JPG"); - if (loaded) { - avatar->setPixmap(pixmap); - } else { - User::Leave(KErrInvalidContactDetail); - } - } - else if (field.ContentType().ContainsFieldType(KUidContactFieldVideoRingTone)) { - CContactTextField* storage = field.TextStorage(); - QString avatarString = QString::fromUtf16(storage->Text().Ptr(), storage->Text().Length()); - avatar->setAvatar(avatarString); - avatar->setSubType(QContactAvatar::SubTypeVideoRingtone); - } - - return avatar; -} - -bool CntTransformAvatarSimple::supportsField(TUint32 fieldType) const -{ - bool ret = false; - if (fieldType == KUidContactFieldCodImage.iUid - || fieldType == KUidContactFieldRingTone.iUid - || fieldType == KUidContactFieldVideoRingTone.iUid - || fieldType == KUidContactFieldPicture.iUid - // Used as "extra mapping/extra field type" by thumbnail data fields - || fieldType == KUidContactFieldVCardMapJPEG.iUid) { - ret = true; - } - return ret; -} - -bool CntTransformAvatarSimple::supportsDetail(QString detailName) const -{ - bool ret = false; - if (detailName == QContactAvatar::DefinitionName) { - ret = true; - } - return ret; -} - -QList CntTransformAvatarSimple::supportedSortingFieldTypes(QString /*detailFieldName*/) const -{ - // Sorting not supported - return QList(); -} - - -/*! - * Checks whether the subtype is supported - * - * \a subType The subtype to be checked - * \return True if this subtype is supported - */ -bool CntTransformAvatarSimple::supportsSubType(const QString& subType) const -{ - if(QContactAvatar::FieldSubType == subType) - return true; - else - return false; -} - -/*! - * Returns the filed id corresponding to a field - * - * \a fieldName The name of the supported field - * \return fieldId for the fieldName, 0 if not supported - */ -quint32 CntTransformAvatarSimple::getIdForField(const QString& fieldName) const -{ - if (QContactAvatar::FieldAvatar == fieldName) - return 0; - else if (QContactAvatar::SubTypeImage == fieldName) - return 0; - else if (QContactAvatar::SubTypeVideo == fieldName) - return 0; - else if (QContactAvatar::SubTypeTexturedMesh == fieldName) - return 0; - else if (QContactAvatar::SubTypeAudioRingtone == fieldName) - return 0; - else if (QContactAvatar::SubTypeVideoRingtone == fieldName) - return 0; - else - return 0; -} - -/*! - * Modifies the detail definitions. The default detail definitions are - * queried from QContactManagerEngine::schemaDefinitions and then modified - * with this function in the transform leaf classes. - * - * \a definitions The detail definitions to modify. - * \a contactType The contact type the definitions apply for. - */ -void CntTransformAvatarSimple::detailDefinitions(QMap &definitions, const QString& contactType) const -{ - Q_UNUSED(contactType); - - if(definitions.contains(QContactAvatar::DefinitionName)) { - QContactDetailDefinition d = definitions.value(QContactAvatar::DefinitionName); - QMap fields = d.fields(); - - // Update sub-types - QContactDetailFieldDefinition f; - f.setDataType(QVariant::String); // only allowed to be a single subtype - f.setAllowableValues(QVariantList() - << QString(QLatin1String(QContactAvatar::SubTypeImage)) - << QString(QLatin1String(QContactAvatar::SubTypeAudioRingtone)) - << QString(QLatin1String(QContactAvatar::SubTypeVideoRingtone))); - fields.insert(QContactAvatar::FieldSubType, f); - - // Context not supported in symbian back-end, remove - fields.remove(QContactAvatar::FieldContext); - - d.setFields(fields); - d.setUnique(true); - - // Replace original definitions - definitions.insert(d.name(), d); - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformcontact.cpp --- a/qtmobility/plugins/contacts/symbian/src/transform/cnttransformcontact.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformcontact.cpp Mon May 03 13:18:40 2010 +0300 @@ -51,7 +51,8 @@ #include "cnttransformonlineaccount.h" #include "cnttransformorganisation.h" #include "cnttransformavatar.h" -#include "cnttransformavatarsimple.h" +#include "cnttransformringtone.h" +#include "cnttransformthumbnail.h" #include "cnttransformsynctarget.h" #include "cnttransformgender.h" #include "cnttransformanniversary.h" @@ -108,10 +109,11 @@ m_transformContactData.insert(SyncTarget, new CntTransformSyncTarget); m_transformContactData.insert(Note, new CntTransformNote); m_transformContactData.insert(Family, new CntTransformFamily); + m_transformContactData.insert(Ringtone, new CntTransformRingtone); + m_transformContactData.insert(Avatar, new CntTransformAvatar); #ifdef SYMBIAN_BACKEND_USE_SQLITE // variated transform classes - m_transformContactData.insert(Avatar, new CntTransformAvatar); m_transformContactData.insert(Anniversary, new CntTransformAnniversary); // not supported on pre-10.1 @@ -128,9 +130,10 @@ // Empty transform class for removing unsupported detail definitions m_transformContactData.insert(Empty, new CntTransformEmpty); + m_transformContactData.insert(Thumbnail, new CntTransformThumbnail); + // variated transform classes m_transformContactData.insert(Anniversary, new CntTransformAnniversarySimple); - m_transformContactData.insert(Avatar, new CntTransformAvatarSimple); #endif } @@ -329,7 +332,7 @@ void CntTransformContact::detailDefinitions( QMap& defaultSchema, const QString& contactType, - QContactManager::Error& error) const + QContactManager::Error* error) const { Q_UNUSED(error); @@ -339,6 +342,11 @@ i.value()->detailDefinitions(defaultSchema, contactType); i++; } + +#ifndef SYMBIAN_CNTMODEL_V2 + // Cannot support timestamp + defaultSchema.remove(QContactTimestamp::DefinitionName); +#endif } QList CntTransformContact::transformDetailL(const QContactDetail &detail) const @@ -392,12 +400,8 @@ QContactDetail* CntTransformContact::transformTimestampItemFieldL(const CContactItem &contactItem, const CContactDatabase &contactDatabase) const { +#ifdef SYMBIAN_CNTMODEL_V2 QContactTimestamp *timestampDetail = 0; - - // NOTE: In S60 3.1 we cannot use ContactGuid::GetCreationDate() because - // it is not exported. - // TODO: Make sure SYMBIAN_CNTMODEL_V2 is the right flag for this. -#ifdef SYMBIAN_CNTMODEL_V2 HBufC* guidBuf = contactItem.UidStringL(contactDatabase.MachineId()).AllocLC(); TPtr ptr = guidBuf->Des(); if (ContactGuid::GetCreationDate(ptr, contactDatabase.MachineId())) @@ -429,8 +433,15 @@ } } CleanupStack::PopAndDestroy(guidBuf); + return timestampDetail; +#else + // NOTE: In S60 3.1 we cannot use ContactGuid::GetCreationDate() because + // it is not exported. + // TODO: Make sure SYMBIAN_CNTMODEL_V2 is the right flag for this. + Q_UNUSED(contactItem); + Q_UNUSED(contactDatabase) + return 0; #endif - return timestampDetail; } void CntTransformContact::transformPreferredDetailL(const QContact& contact, diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformempty.cpp --- a/qtmobility/plugins/contacts/symbian/src/transform/cnttransformempty.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformempty.cpp Mon May 03 13:18:40 2010 +0300 @@ -117,4 +117,13 @@ if(definitions.contains(QContactOnlineAccount::DefinitionName)) { definitions.remove(QContactOnlineAccount::DefinitionName); } + if(definitions.contains(QContactTag::DefinitionName)) { + definitions.remove(QContactTag::DefinitionName); + } + if(definitions.contains(QContactGlobalPresence::DefinitionName)) { + definitions.remove(QContactGlobalPresence::DefinitionName); + } + if(definitions.contains(QContactPresence::DefinitionName)) { + definitions.remove(QContactPresence::DefinitionName); + } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformfamily.cpp --- a/qtmobility/plugins/contacts/symbian/src/transform/cnttransformfamily.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformfamily.cpp Mon May 03 13:18:40 2010 +0300 @@ -52,7 +52,7 @@ //create new fields without contexts transformToTextFieldL(family, fieldList, family.spouse(), KUidContactFieldSpouse, KUidContactFieldVCardMapSpouse, false); - foreach(QString childName, family.children()) { + foreach(const QString& childName, family.children()) { transformToTextFieldL(family, fieldList, childName, KUidContactFieldChildren, KUidContactFieldVCardMapChildren, false); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformname.cpp --- a/qtmobility/plugins/contacts/symbian/src/transform/cnttransformname.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformname.cpp Mon May 03 13:18:40 2010 +0300 @@ -131,13 +131,13 @@ if (detailFieldName == QContactName::FieldPrefix) return uids << KUidContactFieldPrefixName; - if (detailFieldName == QContactName::FieldFirst) + if (detailFieldName == QContactName::FieldFirstName) return uids << KUidContactFieldGivenName; - if (detailFieldName == QContactName::FieldMiddle) + if (detailFieldName == QContactName::FieldMiddleName) return uids << KUidContactFieldAdditionalName; - if (detailFieldName == QContactName::FieldLast) + if (detailFieldName == QContactName::FieldLastName) return uids << KUidContactFieldFamilyName; if (detailFieldName == QContactName::FieldSuffix) @@ -171,11 +171,11 @@ { if (QContactName::FieldPrefix == fieldName) return KUidContactFieldPrefixName.iUid; - else if (QContactName::FieldFirst == fieldName) + else if (QContactName::FieldFirstName == fieldName) return KUidContactFieldGivenName.iUid; - else if (QContactName::FieldMiddle == fieldName) + else if (QContactName::FieldMiddleName == fieldName) return KUidContactFieldAdditionalName.iUid; - else if (QContactName::FieldLast == fieldName) + else if (QContactName::FieldLastName == fieldName) return KUidContactFieldFamilyName.iUid; else if (QContactName::FieldSuffix == fieldName) return KUidContactFieldSuffixName.iUid; @@ -202,9 +202,9 @@ // groups support only custom label if(contactType == QContactType::TypeGroup) { fields.remove(QContactName::FieldPrefix); - fields.remove(QContactName::FieldFirst); - fields.remove(QContactName::FieldMiddle); - fields.remove(QContactName::FieldLast); + fields.remove(QContactName::FieldFirstName); + fields.remove(QContactName::FieldMiddleName); + fields.remove(QContactName::FieldLastName); fields.remove(QContactName::FieldSuffix); } else { // Note: Custom labels cannot be enabled for a contact in pre-10.1 @@ -212,7 +212,9 @@ // issues for S60 Phonebook editor. If custom label support is // needed in 10.1 or later, it needs to be variated away from // pre-10.1 platforms. +#ifndef SYMBIAN_BACKEND_USE_SQLITE fields.remove(QContactName::FieldCustomLabel); +#endif } // Context not supported in symbian back-end, remove diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformonlineaccount.cpp --- a/qtmobility/plugins/contacts/symbian/src/transform/cnttransformonlineaccount.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformonlineaccount.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,6 +42,7 @@ #include "cnttransformonlineaccount.h" #include "cntmodelextuids.h" +#include "qcontactpresence.h" QList CntTransformOnlineAccount::transformDetailL(const QContactDetail &detail) { @@ -120,27 +121,28 @@ CleanupStack::Pop(serviceProviderField); } - // Transform presence informaiton - TPtrC presenceText(reinterpret_cast(onlineAccount.presence().utf16())); - if(presenceText.Length()) { - QString presence = QString::number(encodePresence(onlineAccount.presence())); - CContactItemField* presenceField = CContactItemField::NewLC(KStorageTypeText); - TPtrC presenceEncodedText(reinterpret_cast(presence.utf16())); - presenceField->TextStorage()->SetTextL(presenceEncodedText); - presenceField->AddFieldTypeL(KUidContactFieldPresence); - fieldList.append(presenceField); - CleanupStack::Pop(presenceField); - } + //FIXME:no presence in onlineaccount anymore.. +// // Transform presence informaiton +// TPtrC presenceText(reinterpret_cast(onlineAccount.presence().utf16())); +// if(presenceText.Length()) { +// QString presence = QString::number(encodePresence(onlineAccount.presence())); +// CContactItemField* presenceField = CContactItemField::NewLC(KStorageTypeText); +// TPtrC presenceEncodedText(reinterpret_cast(presence.utf16())); +// presenceField->TextStorage()->SetTextL(presenceEncodedText); +// presenceField->AddFieldTypeL(KUidContactFieldPresence); +// fieldList.append(presenceField); +// CleanupStack::Pop(presenceField); +// } - // Transform statusMessage - TPtrC statusMsgText(reinterpret_cast(onlineAccount.statusMessage().utf16())); - if(statusMsgText.Length()) { - CContactItemField* statusMsgField = CContactItemField::NewLC(KStorageTypeText); - statusMsgField->TextStorage()->SetTextL(statusMsgText); - statusMsgField->AddFieldTypeL(KUidContactFieldStatusMsg); - fieldList.append(statusMsgField); - CleanupStack::Pop(statusMsgField); - } +// // Transform statusMessage +// TPtrC statusMsgText(reinterpret_cast(onlineAccount.statusMessage().utf16())); +// if(statusMsgText.Length()) { +// CContactItemField* statusMsgField = CContactItemField::NewLC(KStorageTypeText); +// statusMsgField->TextStorage()->SetTextL(statusMsgText); +// statusMsgField->AddFieldTypeL(KUidContactFieldStatusMsg); +// fieldList.append(statusMsgField); +// CleanupStack::Pop(statusMsgField); +// } } return fieldList; @@ -148,7 +150,9 @@ QContactDetail *CntTransformOnlineAccount::transformItemField(const CContactItemField& field, const QContact &contact) { - QContactOnlineAccount *onlineAccount = new QContactOnlineAccount(contact.detail()); + Q_UNUSED(contact); + + QContactOnlineAccount *onlineAccount = new QContactOnlineAccount(); CContactTextField* storage = field.TextStorage(); QString onlineAccountString = QString::fromUtf16(storage->Text().Ptr(), storage->Text().Length()); @@ -179,11 +183,11 @@ //Presence else if (field.ContentType().FieldType(i) == KUidContactFieldPresence) { QString presenceInfo = decodePresence(onlineAccountString.toInt()); - onlineAccount->setPresence(presenceInfo); +// onlineAccount->setPresence(presenceInfo); } //Status Message else if (field.ContentType().FieldType(i) == KUidContactFieldStatusMsg) { - onlineAccount->setStatusMessage(onlineAccountString); +// onlineAccount->setStatusMessage(onlineAccountString); } } @@ -302,19 +306,20 @@ */ quint32 CntTransformOnlineAccount::encodePresence(QString aPresence) { - if (QContactOnlineAccount::PresenceAvailable == aPresence) - return CntTransformOnlineAccount::EPresenceAvailable; - else if (QContactOnlineAccount::PresenceHidden == aPresence) - return CntTransformOnlineAccount::EPresenceHidden; - else if (QContactOnlineAccount::PresenceBusy == aPresence) - return CntTransformOnlineAccount::EPresenceBusy; - else if (QContactOnlineAccount::PresenceAway == aPresence) - return CntTransformOnlineAccount::EPresenceAway; - else if (QContactOnlineAccount::PresenceExtendedAway == aPresence) - return CntTransformOnlineAccount::EPresenceExtendedAway; - else if (QContactOnlineAccount::PresenceUnknown == aPresence) - return CntTransformOnlineAccount::EPresenceUnknown; - else + //FIXME:presence +// if (QContactPresence::PresenceAvailable == aPresence) +// return CntTransformOnlineAccount::EPresenceAvailable; +// else if (QContactPresence::PresenceHidden == aPresence) +// return CntTransformOnlineAccount::EPresenceHidden; +// else if (QContactPresence::PresenceBusy == aPresence) +// return CntTransformOnlineAccount::EPresenceBusy; +// else if (QContactPresence::PresenceAway == aPresence) +// return CntTransformOnlineAccount::EPresenceAway; +// else if (QContactPresence::PresenceExtendedAway == aPresence) +// return CntTransformOnlineAccount::EPresenceExtendedAway; +// else if (QContactPresence::PresenceUnknown == aPresence) +// return CntTransformOnlineAccount::EPresenceUnknown; +// else return CntTransformOnlineAccount::EPresenceOffline; } @@ -326,20 +331,22 @@ */ QString CntTransformOnlineAccount::decodePresence(quint32 aPresence) { - if (CntTransformOnlineAccount::EPresenceAvailable == aPresence) - return QContactOnlineAccount::PresenceAvailable; - else if (CntTransformOnlineAccount::EPresenceHidden == aPresence) - return QContactOnlineAccount::PresenceHidden; - else if (CntTransformOnlineAccount::EPresenceBusy == aPresence) - return QContactOnlineAccount::PresenceBusy; - else if ( CntTransformOnlineAccount::EPresenceAway == aPresence) - return QContactOnlineAccount::PresenceAway; - else if ( CntTransformOnlineAccount::EPresenceExtendedAway == aPresence) - return QContactOnlineAccount::PresenceExtendedAway; - else if ( CntTransformOnlineAccount::EPresenceUnknown == aPresence) - return QContactOnlineAccount::PresenceUnknown; - else - return QContactOnlineAccount::PresenceOffline; + //FIXME:presence +// if (CntTransformOnlineAccount::EPresenceAvailable == aPresence) +// return QContactPresence::PresenceAvailable; +// else if (CntTransformOnlineAccount::EPresenceHidden == aPresence) +// return QContactPresence::PresenceHidden; +// else if (CntTransformOnlineAccount::EPresenceBusy == aPresence) +// return QContactPresence::PresenceBusy; +// else if ( CntTransformOnlineAccount::EPresenceAway == aPresence) +// return QContactPresence::PresenceAway; +// else if ( CntTransformOnlineAccount::EPresenceExtendedAway == aPresence) +// return QContactPresence::PresenceExtendedAway; +// else if ( CntTransformOnlineAccount::EPresenceUnknown == aPresence) +// return QContactPresence::PresenceUnknown; +// else +// return QContactPresence::PresenceOffline; + return QString(); } #endif // SYMBIAN_BACKEND_USE_SQLITE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformorganisation.cpp --- a/qtmobility/plugins/contacts/symbian/src/transform/cnttransformorganisation.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformorganisation.cpp Mon May 03 13:18:40 2010 +0300 @@ -157,7 +157,7 @@ if (QContactOrganization::FieldName == fieldName) return KUidContactFieldCompanyName.iUid; - else if (QContactOrganization::FieldLogo == fieldName) + else if (QContactOrganization::FieldLogoUrl == fieldName) return 0; else if (QContactOrganization::FieldDepartment == fieldName) return KUidContactFieldDepartmentName.iUid; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformphonenumber.cpp --- a/qtmobility/plugins/contacts/symbian/src/transform/cnttransformphonenumber.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformphonenumber.cpp Mon May 03 13:18:40 2010 +0300 @@ -83,7 +83,7 @@ } //fax - else if (subTypes.contains(QContactPhoneNumber::SubTypeFacsimile)) + else if (subTypes.contains(QContactPhoneNumber::SubTypeFax)) { newField->AddFieldTypeL(KUidContactFieldFax); newField->SetMapping(KUidContactFieldVCardMapTEL); @@ -127,7 +127,14 @@ newField->AddFieldTypeL(KUidContactFieldPhoneNumber); newField->SetMapping(KUidContactFieldVCardMapAssistantTel); } - + + // video calls + else if (subTypes.contains(QContactPhoneNumber::SubTypeVideo)) + { + newField->AddFieldTypeL(KUidContactFieldPhoneNumber); + newField->SetMapping(KUidContactFieldVCardMapTEL); + newField->AddFieldTypeL(KUidContactFieldVCardMapVIDEO); + } else { User::LeaveIfError(KErrNotSupported); @@ -173,9 +180,12 @@ else if (field.ContentType().Mapping() == KUidContactFieldVCardMapAssistantTel) { phoneNumber->setSubTypes(QContactPhoneNumber::SubTypeAssistant); } + else if (field.ContentType().ContainsFieldType(KUidContactFieldVCardMapVIDEO)) { + phoneNumber->setSubTypes(QContactPhoneNumber::SubTypeVideo); + } } else if (field.ContentType().ContainsFieldType(KUidContactFieldFax)) { - phoneNumber->setSubTypes(QContactPhoneNumber::SubTypeFacsimile); + phoneNumber->setSubTypes(QContactPhoneNumber::SubTypeFax); } else if (field.ContentType().ContainsFieldType(KUidContactFieldDTMF)) { phoneNumber->setSubTypes(QContactPhoneNumber::SubTypeDtmfMenu); @@ -245,27 +255,27 @@ if (QContactPhoneNumber::FieldNumber == fieldName) return 0; else if (QContactPhoneNumber::SubTypeLandline == fieldName) - return 0; + return KUidContactFieldPhoneNumber.iUid; else if (QContactPhoneNumber::SubTypeMobile == fieldName) - return 0; - else if (QContactPhoneNumber::SubTypeFacsimile == fieldName) + return KUidContactFieldPhoneNumber.iUid; + else if (QContactPhoneNumber::SubTypeFax == fieldName) return KUidContactFieldFax.iUid; else if (QContactPhoneNumber::SubTypePager == fieldName) - return 0; + return KUidContactFieldPhoneNumber.iUid; else if (QContactPhoneNumber::SubTypeVoice == fieldName) return 0; else if (QContactPhoneNumber::SubTypeModem == fieldName) - return 0; + return KUidContactFieldPhoneNumber.iUid; else if (QContactPhoneNumber::SubTypeVideo == fieldName) - return 0; + return KUidContactFieldPhoneNumber.iUid; else if (QContactPhoneNumber::SubTypeCar == fieldName) - return 0; + return KUidContactFieldPhoneNumber.iUid; else if (QContactPhoneNumber::SubTypeBulletinBoardSystem == fieldName) - return 0; + return KUidContactFieldPhoneNumber.iUid; else if (QContactPhoneNumber::SubTypeMessagingCapable == fieldName) return 0; else if (QContactPhoneNumber::SubTypeAssistant == fieldName) - return 0; + return KUidContactFieldPhoneNumber.iUid; else if (QContactPhoneNumber::SubTypeDtmfMenu == fieldName) return KUidContactFieldDTMF.iUid; else diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformringtone.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformringtone.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,167 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "cnttransformringtone.h" +#include "cntmodelextuids.h" + +#include "qcontactringtone.h" + +QList CntTransformRingtone::transformDetailL(const QContactDetail &detail) +{ + if(detail.definitionName() != QContactRingtone::DefinitionName) + User::Leave(KErrArgument); + + QList fieldList; + + const QContactRingtone &ringtone(static_cast(detail)); + + if (ringtone.audioRingtoneUrl().isValid()) { + transformToTextFieldL(detail, fieldList, + ringtone.audioRingtoneUrl().toString(), KUidContactFieldRingTone, + KUidContactFieldVCardMapUnknown, false); + } + + if (ringtone.videoRingtoneUrl().isValid()) { + transformToTextFieldL(detail, fieldList, + ringtone.videoRingtoneUrl().toString(), KUidContactFieldVideoRingTone, + KUidContactFieldVCardMapUnknown, false); + } + + return fieldList; +} + +QContactDetail *CntTransformRingtone::transformItemField(const CContactItemField& field, const QContact &contact) +{ + QContactRingtone *ringtone = new QContactRingtone(contact.detail()); + + // XXX ringtone can have multiple values from different fields glommed together + CContactTextField* storage = field.TextStorage(); + QString ringtoneString = QString::fromUtf16(storage->Text().Ptr(), storage->Text().Length()); + + if (field.ContentType().ContainsFieldType(KUidContactFieldRingTone)) { + ringtone->setAudioRingtoneUrl(ringtoneString); + } + else if (field.ContentType().ContainsFieldType(KUidContactFieldVideoRingTone)) { + ringtone->setVideoRingtoneUrl(ringtoneString); + } + + // XXX need to remove old one somehow + + return ringtone; +} + +bool CntTransformRingtone::supportsField(TUint32 fieldType) const +{ + bool ret = false; + if (fieldType == KUidContactFieldRingTone.iUid || + fieldType == KUidContactFieldVideoRingTone.iUid) { + ret = true; + } + return ret; +} + +bool CntTransformRingtone::supportsDetail(QString detailName) const +{ + bool ret = false; + if (detailName == QContactRingtone::DefinitionName) { + ret = true; + } + return ret; +} + +QList CntTransformRingtone::supportedSortingFieldTypes(QString /*detailFieldName*/) const +{ + // Sorting not supported + return QList(); +} + + +/*! + * Checks whether the subtype is supported + * + * \a subType The subtype to be checked + * \return True if this subtype is supported + */ +bool CntTransformRingtone::supportsSubType(const QString& /*subType*/) const +{ + // XXX todo + return false; +} + +/*! + * Returns the filed id corresponding to a field + * + * \a fieldName The name of the supported field + * \return fieldId for the fieldName, 0 if not supported + */ +quint32 CntTransformRingtone::getIdForField(const QString& /*fieldName*/) const +{ + // XXX todo + return 0; +} + +/*! + * Modifies the detail definitions. The default detail definitions are + * queried from QContactManagerEngine::schemaDefinitions and then modified + * with this function in the transform leaf classes. + * + * \a definitions The detail definitions to modify. + * \a contactType The contact type the definitions apply for. + */ +void CntTransformRingtone::detailDefinitions(QMap &definitions, const QString& contactType) const +{ + Q_UNUSED(contactType); + + if(definitions.contains(QContactRingtone::DefinitionName)) { + QContactDetailDefinition d = definitions.value(QContactRingtone::DefinitionName); + QMap fields = d.fields(); + + // Context not supported in symbian back-end, remove + fields.remove(QContactRingtone::FieldContext); + // nor vibe thingy + fields.remove(QContactRingtone::FieldVibrationRingtoneUrl); + + d.setFields(fields); + d.setUnique(true); + + // Replace original definitions + definitions.insert(d.name(), d); + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/src/transform/cnttransformthumbnail.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbian/src/transform/cnttransformthumbnail.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,182 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "cnttransformthumbnail.h" +#include "cntmodelextuids.h" + +#include "qcontactthumbnail.h" +#include "cntsymbiantransformerror.h" + +#include +#include + +const TSize KMaxThumbnailSize(80, 96); + +CntTransformThumbnail::CntTransformThumbnail() : + m_thumbnailCreator(0) +{ +} + +CntTransformThumbnail::~CntTransformThumbnail() +{ + delete m_thumbnailCreator; +} + +QList CntTransformThumbnail::transformDetailL(const QContactDetail &detail) +{ + if(detail.definitionName() != QContactThumbnail::DefinitionName) + User::Leave(KErrArgument); + + QList fieldList; + + //cast to thumbnail + const QContactThumbnail &thumbnail(static_cast(detail)); + + if(!thumbnail.thumbnail().isNull()) { + // lazy instantiation + if(!m_thumbnailCreator) { + m_thumbnailCreator = new (ELeave) CntThumbnailCreator(); + } + + // Scaling is done before converting to CFbsBitmap because + // toSymbianCFbsBitmap may generate a duplicate of the bitmap data + // Note: scaling to thumbnail may take some time if the image is big + // TODO: aspect ratio? + QPixmap scaled = QPixmap::fromImage(thumbnail.thumbnail().scaled(KMaxThumbnailSize.iWidth, KMaxThumbnailSize.iHeight)); + CFbsBitmap* bitmap = scaled.toSymbianCFbsBitmap(); + CleanupStack::PushL(bitmap); + + m_thumbnailCreator->addThumbnailFieldL(&fieldList, bitmap, KMaxThumbnailSize); + CleanupStack::Pop(bitmap); // ownership transferred + } + + return fieldList; +} + +QContactDetail *CntTransformThumbnail::transformItemField(const CContactItemField& field, const QContact &contact) +{ + Q_UNUSED(contact); + + QContactThumbnail *thumbnail = new QContactThumbnail(); + + if (field.ContentType().ContainsFieldType(KUidContactFieldPicture) + || field.ContentType().ContainsFieldType(KUidContactFieldVCardMapJPEG)) { + // use the existing QContactAvatar (if available) in case of a pixmap + // field. + CContactStoreField* storage = field.StoreStorage(); + QImage image; + HBufC8 *theThing = storage->Thing(); + QByteArray bytes((char*)theThing->Ptr(), theThing->Length()); + bool loaded = image.loadFromData(bytes, "JPG"); + if (loaded) { + thumbnail->setThumbnail(image); + } else { + User::Leave(KErrInvalidContactDetail); + } + } + + return thumbnail; +} + +bool CntTransformThumbnail::supportsField(TUint32 fieldType) const +{ + bool ret = false; + if (fieldType == KUidContactFieldPicture.iUid + // Used as "extra mapping/extra field type" by thumbnail data fields + || fieldType == KUidContactFieldVCardMapJPEG.iUid) { + ret = true; + } + return ret; +} + +bool CntTransformThumbnail::supportsDetail(QString detailName) const +{ + bool ret = false; + if (detailName == QContactThumbnail::DefinitionName) { + ret = true; + } + return ret; +} + +QList CntTransformThumbnail::supportedSortingFieldTypes(QString /*detailFieldName*/) const +{ + // Sorting not supported + return QList(); +} + + +/*! + * Checks whether the subtype is supported + * + * \a subType The subtype to be checked + * \return True if this subtype is supported + */ +bool CntTransformThumbnail::supportsSubType(const QString& /*subType*/) const +{ + // XXX todo + return false; +} + +/*! + * Returns the filed id corresponding to a field + * + * \a fieldName The name of the supported field + * \return fieldId for the fieldName, 0 if not supported + */ +quint32 CntTransformThumbnail::getIdForField(const QString& /*fieldName*/) const +{ + // XXX todo + return 0; +} + +/*! + * Modifies the detail definitions. The default detail definitions are + * queried from QContactManagerEngine::schemaDefinitions and then modified + * with this function in the transform leaf classes. + * + * \a definitions The detail definitions to modify. + * \a contactType The contact type the definitions apply for. + */ +void CntTransformThumbnail::detailDefinitions(QMap &definitions, const QString& contactType) const +{ + Q_UNUSED(contactType); + Q_UNUSED(definitions); + // Don't need to munge the definition +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/symbian.pro --- a/qtmobility/plugins/contacts/symbian/symbian.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/symbian.pro Mon May 03 13:18:40 2010 +0300 @@ -41,8 +41,9 @@ inc/transform/cnttransformbirthday.h \ inc/transform/cnttransformonlineaccount.h \ inc/transform/cnttransformorganisation.h \ + inc/transform/cnttransformringtone.h \ + inc/transform/cnttransformthumbnail.h \ inc/transform/cnttransformavatar.h \ - inc/transform/cnttransformavatarsimple.h \ inc/transform/cntthumbnailcreator.h \ inc/transform/cnttransformsynctarget.h \ inc/transform/cnttransformgender.h \ @@ -85,8 +86,9 @@ src/transform/cnttransformbirthday.cpp \ src/transform/cnttransformonlineaccount.cpp \ src/transform/cnttransformorganisation.cpp \ + src/transform/cnttransformringtone.cpp \ + src/transform/cnttransformthumbnail.cpp \ src/transform/cnttransformavatar.cpp \ - src/transform/cnttransformavatarsimple.cpp \ src/transform/cntthumbnailcreator.cpp\ src/transform/cnttransformsynctarget.cpp \ src/transform/cnttransformgender.cpp \ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/performance/performance.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/performance/performance.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/performance/performance.cpp Mon May 03 13:18:40 2010 +0300 @@ -52,7 +52,7 @@ // Remove all contacts from the database QList cnt_ids = mCntMng->contactIds(); - mCntMng->removeContacts(&cnt_ids); + mCntMng->removeContacts(cnt_ids, 0); } void SymbianPluginPerfomance::cleanupTestCase() @@ -80,7 +80,7 @@ // Save the contacts mTime.start(); - mCntMng->saveContacts(&contactsList); + mCntMng->saveContacts(&contactsList, 0); int elapsed = mTime.elapsed(); qDebug() << "Created " << contactsList.count() << " simple contacts in" << elapsed / 1000 << "s" << elapsed % 1000 << "ms"; @@ -91,7 +91,7 @@ // Remove N contacts QList cnt_ids = mCntMng->contactIds(); mTime.restart(); - mCntMng->removeContacts(&cnt_ids); + mCntMng->removeContacts(cnt_ids, 0); int elapsed = mTime.elapsed(); qDebug() << "Removed " << cnt_ids.count() << " simple contacts in" << elapsed / 1000 << "s" << elapsed % 1000 << "ms"; @@ -166,7 +166,8 @@ } // Save the contacts mTime.restart(); - QList errors = mCntMng->saveContacts(&contactsList); + QMap errors; + mCntMng->saveContacts(&contactsList, &errors); foreach(QContactManager::Error error, errors) { QCOMPARE(error, QContactManager::NoError); } @@ -182,13 +183,13 @@ QContactSortOrder sortOrder1; // first name sort order - sortOrder.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + sortOrder.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirstName); sortOrder.setBlankPolicy(QContactSortOrder::BlanksLast); sortOrder.setDirection(Qt::AscendingOrder); sortOrder.setCaseSensitivity(Qt::CaseInsensitive); // last name sort order - sortOrder1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldLast); + sortOrder1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldLastName); sortOrder1.setBlankPolicy(QContactSortOrder::BlanksLast); sortOrder1.setDirection(Qt::AscendingOrder); sortOrder1.setCaseSensitivity(Qt::CaseInsensitive); @@ -280,9 +281,9 @@ filt.setValue("alice"); filt.setMatchFlags(QContactFilter::MatchContains); - filt.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + filt.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirstName); unionFilter.append(filt); - filt.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldLast); + filt.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldLastName); unionFilter.append(filt); measureContactsFetch( @@ -373,7 +374,7 @@ // Remove N contacts QList cnt_ids = mCntMng->contactIds(); mTime.restart(); - mCntMng->removeContacts(&cnt_ids); + mCntMng->removeContacts(cnt_ids, 0); int elapsed = mTime.elapsed(); qDebug() << "Removed " << cnt_ids.count() << " complex contacts in" << elapsed / 1000 << "s" << elapsed % 1000 << "ms"; @@ -442,13 +443,13 @@ QString uri = first + "@yahoo.com"; aliceOnlineAccount.setAccountUri(uri); aliceOnlineAccount.setServiceProvider("yahoo"); - aliceOnlineAccount.setNickname("something"); aliceOnlineAccount.setSubTypes(QContactOnlineAccount::SubTypeSip); alice.saveDetail(&aliceOnlineAccount); contactsList.append(alice); } mTime.restart(); - QList errors = mCntMng->saveContacts(&contactsList); + QMap errors; + mCntMng->saveContacts(&contactsList, &errors); foreach(QContactManager::Error error, errors) { QCOMPARE(error, QContactManager::NoError); } @@ -461,11 +462,11 @@ QList cnt_ids; QContactSortOrder sortOrder; QContactSortOrder sortOrder1; - sortOrder.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + sortOrder.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirstName); sortOrder.setBlankPolicy(QContactSortOrder::BlanksLast); sortOrder.setDirection(Qt::AscendingOrder); sortOrder.setCaseSensitivity(Qt::CaseInsensitive); - sortOrder1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldLast); + sortOrder1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldLastName); sortOrder1.setBlankPolicy(QContactSortOrder::BlanksLast); sortOrder1.setDirection(Qt::AscendingOrder); sortOrder1.setCaseSensitivity(Qt::CaseInsensitive); @@ -489,7 +490,7 @@ { QList cnt_ids = mCntMng->contactIds(); mTime.restart(); - mCntMng->removeContacts(&cnt_ids); + mCntMng->removeContacts(cnt_ids, 0); int elapsed = mTime.elapsed(); qDebug() << "Removed " << cnt_ids.count() << " complext contacts with online account in" << elapsed / 1000 << "s" << elapsed % 1000 << "ms"; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/tsrc.pri --- a/qtmobility/plugins/contacts/symbian/tsrc/tsrc.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/tsrc.pri Mon May 03 13:18:40 2010 +0300 @@ -23,8 +23,9 @@ ../../inc/transform/cnttransformbirthday.h \ ../../inc/transform/cnttransformonlineaccount.h \ ../../inc/transform/cnttransformorganisation.h \ + ../../inc/transform/cnttransformringtone.h \ + ../../inc/transform/cnttransformthumbnail.h \ ../../inc/transform/cnttransformavatar.h \ - ../../inc/transform/cnttransformavatarsimple.h \ ../../inc/transform/cntthumbnailcreator.h \ ../../inc/transform/cnttransformsynctarget.h \ ../../inc/transform/cnttransformgender.h \ @@ -42,7 +43,6 @@ ../../inc/cntrelationship.h \ ../../inc/cntabstractrelationship.h \ ../../inc/cntrelationshipgroup.h \ - ../../inc/filtering/cntsymbianfiltersqlhelper.h \ ../../inc/filtering/cntsymbiansrvconnection.h \ ../../inc/cntsymbiantransformerror.h \ ../../inc/cntsymbiandatabase.h \ @@ -76,8 +76,9 @@ ../../src/transform/cnttransformbirthday.cpp \ ../../src/transform/cnttransformonlineaccount.cpp \ ../../src/transform/cnttransformorganisation.cpp \ + ../../src/transform/cnttransformringtone.cpp \ + ../../src/transform/cnttransformthumbnail.cpp \ ../../src/transform/cnttransformavatar.cpp \ - ../../src/transform/cnttransformavatarsimple.cpp \ ../../src/transform/cntthumbnailcreator.cpp \ ../../src/transform/cnttransformsynctarget.cpp \ ../../src/transform/cnttransformgender.cpp \ @@ -93,7 +94,6 @@ ../../src/cntrelationship.cpp \ ../../src/cntabstractrelationship.cpp \ ../../src/cntrelationshipgroup.cpp \ - ../../src/filtering/cntsymbianfiltersqlhelper.cpp \ ../../src/filtering/cntsymbiansrvconnection.cpp \ ../../src/cntsymbiantransformerror.cpp \ ../../src/cntsymbiandatabase.cpp \ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/tsrc.pro --- a/qtmobility/plugins/contacts/symbian/tsrc/tsrc.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/tsrc.pro Mon May 03 13:18:40 2010 +0300 @@ -10,5 +10,5 @@ # tst_details !contains(DEFINES, SYMBIAN_BACKEND_USE_SQLITE) { - SUBDIRS += ut_cntfilteringdbms + SUBDIRS += tst_cntfilteringdbms } \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/tst_cntfilteringdbms/tst_cntfilteringdbms.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbian/tsrc/tst_cntfilteringdbms/tst_cntfilteringdbms.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,234 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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$ +** +****************************************************************************/ + +#define QT_STATICPLUGIN +#include "cntsymbianfilterdbms.h" + +#include + +#include +#include +#include +//#include + +QTM_USE_NAMESPACE + +typedef QList QContactIds; + +Q_DECLARE_METATYPE(QContactFilter *) +Q_DECLARE_METATYPE(CntAbstractContactFilter::FilterSupport) +Q_DECLARE_METATYPE(QContactIds) + +class tst_cntfilteringdbms : public QObject +{ +Q_OBJECT + +public: + tst_cntfilteringdbms(); + virtual ~tst_cntfilteringdbms(); + +private slots: // Init & cleanup + void initTestCase(); + void cleanupTestCase(); + +private slots: // tests + void filterContacts(); + void filterContacts_data() {addFilterData();} + +private: + QContactLocalId addContact(QString firstName, QString lastName, QString phoneNumber); + void addFilterData(); + void addNewRow(QString defName, QString fieldName, int flags, CntAbstractContactFilter::FilterSupport filterSupport, QString filterCriterion, QList matchingContacts); + +private: + QScopedPointer m_contactManager; + QScopedPointer m_contactDatabase; + QScopedPointer m_dbmsFilter; + QList m_contactFilters; +}; + +tst_cntfilteringdbms::tst_cntfilteringdbms() +{ + TRAPD(error, m_contactDatabase.reset(CContactDatabase::OpenL())); + QVERIFY(error == KErrNone); + m_dbmsFilter.reset(new CntSymbianFilter(*m_contactDatabase)); + m_contactManager.reset(new QContactManager("symbian")); +} + +tst_cntfilteringdbms::~tst_cntfilteringdbms() +{ + +} + +void tst_cntfilteringdbms::initTestCase() +{ + // Remove all contacts + QList contacts = m_contactManager->contactIds(); + m_contactManager->removeContacts(contacts, 0); +} + +void tst_cntfilteringdbms::cleanupTestCase() +{ +} + +void tst_cntfilteringdbms::filterContacts() +{ + QFETCH(QContactFilter *, filter); + QFETCH(CntAbstractContactFilter::FilterSupport, filterSupport); + QFETCH(QContactIds, matchingContacts); + + QCOMPARE(m_dbmsFilter->filterSupportLevel(*filter), filterSupport); + + QList sortOrders; + QStringList definitionRestrictions; + QList contacts = m_contactManager->contactIds(*filter); + + qDebug() << contacts; + + QCOMPARE(contacts.count(), matchingContacts.count()); + foreach(QContactLocalId id, matchingContacts) { + QVERIFY(contacts.contains(id)); + } +} + +QContactLocalId tst_cntfilteringdbms::addContact(QString firstName, QString lastName, QString phoneNumber) +{ + QContact c; + + QContactName n; + n.setFirstName(firstName); + n.setLastName(lastName); + c.saveDetail(&n); + + QContactPhoneNumber nb; + nb.setNumber(phoneNumber); + c.saveDetail(&nb); + + m_contactManager->saveContact(&c); + + return c.localId(); +} + +void tst_cntfilteringdbms::addFilterData() +{ + QTest::addColumn("filter"); + QTest::addColumn("filterSupport"); + QTest::addColumn("matchingContacts"); + + QContactLocalId abc = addContact("abc", "def", "123"); + QContactLocalId bcd = addContact("bcd", "efg", "1234567"); + QContactLocalId cde = addContact("cde", "fgh", "1234567890"); + QContactLocalId Abc = addContact("Abc", "Def", "+3581234567890"); + QContactLocalId Bcd = addContact("Bcd", "Efg", "0987654321"); + QContactLocalId Cde = addContact("Cde", "Fgh", "1111111111"); + + qDebug() << "abc =" << abc; + qDebug() << "bcd =" << bcd; + qDebug() << "cde =" << cde; + qDebug() << "Abc =" << Abc; + qDebug() << "Bcd =" << Bcd; + qDebug() << "Cde =" << Cde; + + QList allContacts; + allContacts << abc << bcd << cde << Abc << Bcd << Cde; + + addNewRow(QContactPhoneNumber::DefinitionName, QString(), QContactFilter::MatchExactly, CntAbstractContactFilter::NotSupported, "foobar", allContacts); + addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchExactly, CntAbstractContactFilter::SupportedPreFilterOnly, "123", QContactIds() << abc); + addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchExactly, CntAbstractContactFilter::SupportedPreFilterOnly, "1234567", QContactIds() << bcd); + addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchExactly, CntAbstractContactFilter::SupportedPreFilterOnly, "1234567890", QContactIds() << cde); + addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchContains, CntAbstractContactFilter::NotSupported, "123", QContactIds() << abc << bcd << cde << Abc); + addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchStartsWith, CntAbstractContactFilter::NotSupported, "123", QContactIds() << abc << bcd << cde); + addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchEndsWith, CntAbstractContactFilter::SupportedPreFilterOnly, "567", QContactIds() << bcd ); + addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchEndsWith, CntAbstractContactFilter::SupportedPreFilterOnly, "4567890", QContactIds() << cde << Abc ); + addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchFixedString, CntAbstractContactFilter::SupportedPreFilterOnly, "123", QContactIds() << abc); + addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchPhoneNumber, CntAbstractContactFilter::Supported, "1234567890", QContactIds() << cde << Abc); + addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchKeypadCollation, CntAbstractContactFilter::NotSupported, "123", QContactIds() << abc << bcd << cde << Abc); + + addNewRow(QContactName::DefinitionName, QString(), QContactFilter::MatchExactly, CntAbstractContactFilter::NotSupported, "foobar", allContacts); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchExactly, CntAbstractContactFilter::SupportedPreFilterOnly, "Abc", QContactIds() << abc << Abc); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchExactly | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "Abc", QContactIds() << Abc); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchContains, CntAbstractContactFilter::Supported, "Ab", QContactIds() << abc << Abc); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchContains | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "Ab", QContactIds() << Abc); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchStartsWith, CntAbstractContactFilter::SupportedPreFilterOnly, "Ab", QContactIds() << abc << Abc); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchStartsWith | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "Ab", QContactIds() << Abc); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchEndsWith, CntAbstractContactFilter::SupportedPreFilterOnly, "Cde", QContactIds() << cde << Cde); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchEndsWith | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "Cde", QContactIds() << Cde); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchFixedString, CntAbstractContactFilter::SupportedPreFilterOnly, "abc", QContactIds() << abc << Abc); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchFixedString | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "abc", QContactIds() << abc); + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchPhoneNumber, CntAbstractContactFilter::NotSupported, "abc", QContactIds() << abc << Abc); // not sure if this valid + addNewRow(QContactName::DefinitionName, QContactName::FieldFirstName, QContactFilter::MatchKeypadCollation, CntAbstractContactFilter::NotSupported, "abc", QContactIds() << abc << Abc); + + addNewRow(QContactDisplayLabel::DefinitionName, QString(), QContactFilter::MatchExactly, CntAbstractContactFilter::NotSupported, "foobar", allContacts); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchExactly, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc << Abc); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchExactly | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchContains, CntAbstractContactFilter::NotSupported, "d e", QContactIds() << bcd << Bcd); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchContains | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::NotSupported, "d e", QContactIds() << bcd); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchStartsWith, CntAbstractContactFilter::Supported, "B", QContactIds() << bcd << Bcd); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchStartsWith | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "B", QContactIds() << Bcd); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchEndsWith, CntAbstractContactFilter::NotSupported, "d Efg", QContactIds() << bcd << Bcd); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchEndsWith | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::NotSupported, "d Efg", QContactIds() << Bcd); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchFixedString, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc << Abc); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchFixedString | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc); + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchPhoneNumber, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc << Abc); // not sure if this is valid + addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchKeypadCollation, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc << Abc); +} + + + +void tst_cntfilteringdbms::addNewRow(QString defName, QString fieldName, int flags, CntAbstractContactFilter::FilterSupport filterSupport, QString filterCriterion, QList matchingContacts) +{ + QString s; + foreach(QContactLocalId id, matchingContacts) + s.append(QString("%1 ").arg(id)); + + QString title = QString("Detail filter : defName=%1 fieldName=%2 matchFlags=0x%3 filterCriterion=%4 matchingContacts=%5").arg(defName).arg(fieldName).arg(flags,0,16).arg(filterCriterion).arg(s); + + QContactDetailFilter *f = new QContactDetailFilter(); + f->setDetailDefinitionName(defName, fieldName); + f->setMatchFlags(QContactFilter::MatchFlags(flags)); + f->setValue(QVariant(filterCriterion)); + + QTest::newRow(title.toAscii().constData()) << (QContactFilter*) f << filterSupport << matchingContacts; +} + +QTEST_MAIN(tst_cntfilteringdbms); +#include "tst_cntfilteringdbms.moc" + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/tst_cntfilteringdbms/tst_cntfilteringdbms.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbian/tsrc/tst_cntfilteringdbms/tst_cntfilteringdbms.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,27 @@ +TEMPLATE = app +TARGET = +QT += testlib +CONFIG += qtestlib +include(../tsrc.pri) + +DEFINES += PBK_UNIT_TEST +DEPENDPATH += . +INCLUDEPATH += . + +symbian: +{ + INCLUDEPATH += $$SYMBIAN_PATHS + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE + + HEADERS += $$SYMBIAN_HEADERS + + SOURCES += $$SYMBIAN_SOURCES \ + tst_cntfilteringdbms.cpp + + CONFIG += mobility + MOBILITY = contacts + + TARGET.CAPABILITY = ALL -TCB + + LIBS += $$SYMBIAN_LIBS +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/tst_details/tst_details.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/tst_details/tst_details.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/tst_details/tst_details.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,7 +40,7 @@ ****************************************************************************/ #include - +#include #include "qtcontacts.h" //TESTED_CLASS= @@ -87,6 +87,7 @@ void testOrganisation(); void testPhoneNumber(); void testUrl(); + void testPresence(); private slots: @@ -104,9 +105,9 @@ { qDebug() << "Contact: " << contact.localId(); QList details = contact.details(); - foreach(QContactDetail d, details) { + foreach(const QContactDetail& d, details) { qDebug() << " " << d.definitionName() << ":"; - foreach( QString key, d.variantValues().keys() ) + foreach( const QString& key, d.variantValues().keys() ) qDebug() << " " << key << d.variantValue(key); } } @@ -114,7 +115,7 @@ void tst_details::initTestCase() { qDebug() << "Available managers:"; - foreach( QString manager, QContactManager::availableManagers() ) + foreach( const QString& manager, QContactManager::availableManagers() ) qDebug() << manager; QVERIFY(QContactManager::availableManagers().contains("symbian")); @@ -400,5 +401,20 @@ saveAndVerifyContact( c ); } +void tst_details::testPresence() +{ + QContact c; + + QContactPresence presence; + presence.setNickname("Tom"); + presence.setTimestamp(QDateTime::currentTime()); + presence.setPresenceState(QContactPresence::PresenceAvailable); + presence.setPresenceStateText("Available"); + presence.setPresenceStateImageUrl("http://example.com/example.jpg"); + presence.setCustomMessage("MSN"); + c.saveDetail(&presence); + + saveAndVerifyContact( c ); +} QTEST_MAIN(tst_details) #include "tst_details.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/tst_qcontactmanagersymbian/tst_qcontactmanagersymbian.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/tst_qcontactmanagersymbian/tst_qcontactmanagersymbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/tst_qcontactmanagersymbian/tst_qcontactmanagersymbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -48,6 +48,32 @@ QTM_USE_NAMESPACE +#ifndef QTRY_COMPARE +#define QTRY_COMPARE(__expr, __expected) \ + do { \ + const int __step = 50; \ + const int __timeout = 5000; \ + QTest::qWait(__step); \ + for (int __i = 0; __i < __timeout && ((__expr) != (__expected)); __i+=__step) { \ + QTest::qWait(__step); \ + } \ + QCOMPARE(__expr, __expected); \ + } while(0) +#endif + +// A macro to help verifications done in signalEmission test case +#define QTRY_COMPARE_SIGNAL_COUNTS() \ + QTRY_COMPARE(spyContactsAdded.count(), contactsAdded); \ + QTRY_COMPARE(spyContactsChanged.count(), contactsChanged); \ + QTRY_COMPARE(spyContactsRemoved.count(), contactsRemoved); \ + QTRY_COMPARE(spyRelationshipsAdded.count(), relationshipsAdded); \ + QTRY_COMPARE(spyRelationshipsRemoved.count(), relationshipsRemoved); \ + QTRY_COMPARE(spyContactsAdded2.count(), contactsAdded); \ + QTRY_COMPARE(spyContactsChanged2.count(), contactsChanged); \ + QTRY_COMPARE(spyContactsRemoved2.count(), contactsRemoved); \ + QTRY_COMPARE(spyRelationshipsAdded2.count(), relationshipsAdded); \ + QTRY_COMPARE(spyRelationshipsRemoved2.count(), relationshipsRemoved); + //TESTED_CLASS= //TESTED_FILES= @@ -68,22 +94,23 @@ virtual ~tst_QContactManagerSymbian(); public slots: - //void initTestCase(); - //void cleanupTestCase(); void init(); void cleanup(); private slots: - void avatarSubTypes(); - void avatarSubTypes_data(); - void avatarPixmap(); - void avatarPixmap_data(); - void avatarPathAndPixmap(); + void signalEmission(); + void filtering(); + void avatarImage(); + void avatarImage_data(); + void thumbnail_data(); + void thumbnail(); + void ringTone(); void displayLabel_data(); void displayLabel(); void invalidContactItems(); private: + QContact createContact(QString type, QString firstName, QString lastName); void addContactItemWithInvalidFieldsL(TContactItemId& itemId); CContactDatabase* m_contactDatabase; @@ -111,71 +138,188 @@ name.setFirstName("James"); name.setLastName("Hunt"); contact.saveDetail(&name); + QContactPhoneNumber number; + number.setNumber("+44752222222"); + contact.saveDetail(&number); QVERIFY(m_cm->saveContact(&contact)); m_contactId = contact.id(); } void tst_QContactManagerSymbian::cleanup() { - // Commented out => leave generated contacts into database + // If the following is commented out => the generated contacts are left into + // the database QVERIFY(m_cm->removeContact(m_contactId.localId())); } -void tst_QContactManagerSymbian::avatarSubTypes_data() +void tst_QContactManagerSymbian::signalEmission() { - QTest::addColumn("fileName"); - QTest::addColumn("subType"); + QScopedPointer cm2(QContactManager::fromUri("qtcontacts:symbian")); + + // Wait a moment to make sure there are no pending database observer events + QTest::qWait(500); - QString emptyString; + // counters to keep track of the expected signal counts + int contactsAdded(0); + int contactsChanged(0); + int contactsRemoved(0); + int relationshipsAdded(0); + int relationshipsRemoved(0); + + // Signal spys for verifying signal emissions + qRegisterMetaType("QContactLocalId"); + qRegisterMetaType >("QList"); + QSignalSpy spyContactsAdded(m_cm, SIGNAL(contactsAdded(QList))); + QSignalSpy spyContactsChanged(m_cm, SIGNAL(contactsChanged(QList))); + QSignalSpy spyContactsRemoved(m_cm, SIGNAL(contactsRemoved(QList))); + QSignalSpy spyRelationshipsAdded(m_cm, SIGNAL(relationshipsAdded(QList))); + QSignalSpy spyRelationshipsRemoved(m_cm, SIGNAL(relationshipsRemoved(QList))); + QSignalSpy spyContactsAdded2(cm2.data(), SIGNAL(contactsAdded(QList))); + QSignalSpy spyContactsChanged2(cm2.data(), SIGNAL(contactsChanged(QList))); + QSignalSpy spyContactsRemoved2(cm2.data(), SIGNAL(contactsRemoved(QList))); + QSignalSpy spyRelationshipsAdded2(cm2.data(), SIGNAL(relationshipsAdded(QList))); + QSignalSpy spyRelationshipsRemoved2(cm2.data(), SIGNAL(relationshipsRemoved(QList))); + + // create a group + QContact group = createContact(QContactType::TypeGroup, "Hesketh", ""); + QVERIFY(m_cm->saveContact(&group)); + contactsAdded++; + QTRY_COMPARE_SIGNAL_COUNTS(); + + // change the group + QContactName name = group.detail(QContactName::DefinitionName); + name.setCustomLabel("McLaren"); + group.saveDetail(&name); + QVERIFY(m_cm->saveContact(&group)); + contactsChanged++; + QTRY_COMPARE_SIGNAL_COUNTS(); + + // remove the group + QVERIFY(m_cm->removeContact(group.localId())); + contactsRemoved++; + QTRY_COMPARE_SIGNAL_COUNTS(); - // TODO: file names - QTest::newRow("Sub type image") << "C:\\Data\\Images\\avatar_sharks_s.jpg" << "Image"; - //QTest::newRow("Sub type video") << "C:\\Data\\Videos\\video.mpg" << "Video"; - //QTest::newRow("Sub type textured mesh") << "C:\\Data\\" << "TexturedMesh"; - QTest::newRow("Sub type audio ringtone") << "C:\\Data\\Sounds\\avatar_sound.aac" << "AudioRingtone"; - QTest::newRow("Sub type video ringtone") << "C:\\Data\\Videos\\avatar_video.3gp" << "VideoRingtone"; // TODO - QTest::newRow("No sub type") << "C:\\Data\\Images\\avatar_sharks_s.jpg" << emptyString; + // Add two contacts + QContact contact1 = createContact(QContactType::TypeContact, "James", "Hunt"); + QVERIFY(m_cm->saveContact(&contact1)); + contactsAdded++; + QTRY_COMPARE_SIGNAL_COUNTS(); + QContact contact2 = createContact(QContactType::TypeContact, "Jochen", "Mass"); + QVERIFY(m_cm->saveContact(&contact2)); + contactsAdded++; + QTRY_COMPARE_SIGNAL_COUNTS(); + + // Add group 2 + QContact group2 = createContact(QContactType::TypeGroup, "McLaren", ""); + QVERIFY(m_cm->saveContact(&group2)); + contactsAdded++; + QTRY_COMPARE_SIGNAL_COUNTS(); + + // Add a relationship + QContactRelationship r; + r.setFirst(group2.id()); + r.setSecond(contact1.id()); + r.setRelationshipType(QContactRelationship::HasMember); + QVERIFY(m_cm->saveRelationship(&r)); + relationshipsAdded++; + QTRY_COMPARE_SIGNAL_COUNTS(); + + // Create one more contact manager instance + QScopedPointer cm3(QContactManager::fromUri("qtcontacts:symbian")); + QSignalSpy spyRelationshipsAdded3(cm3.data(), SIGNAL(relationshipsAdded(QList))); + QSignalSpy spyRelationshipsRemoved3(cm3.data(), SIGNAL(relationshipsRemoved(QList))); + + // Add a relationship + QContactRelationship r2; + r2.setFirst(group2.id()); + r2.setSecond(contact2.id()); + r2.setRelationshipType(QContactRelationship::HasMember); + QVERIFY(m_cm->saveRelationship(&r2)); + relationshipsAdded++; + QTRY_COMPARE_SIGNAL_COUNTS(); + + // Remove relationship 1 + QVERIFY(m_cm->removeRelationship(r)); + relationshipsRemoved++; + QTRY_COMPARE_SIGNAL_COUNTS(); + QTRY_COMPARE(spyRelationshipsAdded3.count(), 1); + QTRY_COMPARE(spyRelationshipsRemoved3.count(), 1); + + // Remove relationship 2 + QVERIFY(m_cm->removeRelationship(r2)); + relationshipsRemoved++; + QTRY_COMPARE_SIGNAL_COUNTS(); + QTRY_COMPARE(spyRelationshipsAdded3.count(), 1); + QTRY_COMPARE(spyRelationshipsRemoved3.count(), 2); + + // Remove contacts + QVERIFY(m_cm->removeContact(contact1.localId())); + contactsRemoved++; + QTRY_COMPARE_SIGNAL_COUNTS(); + QVERIFY(m_cm->removeContact(contact2.localId())); + contactsRemoved++; + QTRY_COMPARE_SIGNAL_COUNTS(); + QVERIFY(m_cm->removeContact(group2.localId())); + contactsRemoved++; + QTRY_COMPARE_SIGNAL_COUNTS(); } -void tst_QContactManagerSymbian::avatarSubTypes() +/* + * Special filtering cases that cannot be covered in QtMobility system level + * test cases. + */ +void tst_QContactManagerSymbian::filtering() { - QFETCH(QString, fileName); - QFETCH(QString, subType); - QContact testContact = m_cm->contact(m_contactId.localId()); + QContactDetailFilter df; + df.setDetailDefinitionName(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber); + df.setValue("222"); + + // Ends with + df.setMatchFlags(QContactFilter::MatchEndsWith); - // Add avatar with sub type - QContactAvatar avatar; - avatar.setAvatar(fileName); + QList ids = m_cm->contactIds(df); + QCOMPARE(m_cm->error(), QContactManager::NoError); + QCOMPARE(ids.count(), 1); - if(!subType.isEmpty()) { - avatar.setSubType(subType); - } - QVERIFY(testContact.saveDetail(&avatar)); - QVERIFY(m_cm->saveContact(&testContact)); + df.setValue("333"); + ids = m_cm->contactIds(df); + QCOMPARE(m_cm->error(), QContactManager::NoError); + QCOMPARE(ids.count(), 0); + + df.setValue("222222"); + ids = m_cm->contactIds(df); + QCOMPARE(m_cm->error(), QContactManager::NoError); + QCOMPARE(ids.count(), 1); - // Get avatar - testContact = m_cm->contact(m_contactId.localId()); - QCOMPARE(testContact.details(QContactAvatar::DefinitionName).count(), 1); - QContactAvatar retrievedAvatar = testContact.detail(QContactAvatar::DefinitionName); - QVERIFY(!retrievedAvatar.isEmpty()); - QCOMPARE(retrievedAvatar.avatar(), fileName); - if(subType.isEmpty()) { - // Known issue: If the sub type of a QContactAvatar is left empty, sub type - // image is used by default. A side effect is that after loading this kind - // of an avatar, the sub type has been set to sub type image. - // -> clear sub type to make the following compare pass - QVERIFY(retrievedAvatar.removeValue(QContactAvatar::FieldSubType)); - } - QCOMPARE(retrievedAvatar, avatar); + df.setValue("2222222"); + ids = m_cm->contactIds(df); + QCOMPARE(m_cm->error(), QContactManager::NoError); + QCOMPARE(ids.count(), 1); + + // Match phone number + df.setMatchFlags(QContactFilter::MatchPhoneNumber); + + df.setValue("2222222"); + ids = m_cm->contactIds(df); + QCOMPARE(m_cm->error(), QContactManager::NoError); + QCOMPARE(ids.count(), 1); - // Remove avatar - retrievedAvatar = testContact.detail(QContactAvatar::DefinitionName); - QVERIFY(testContact.removeDetail(&retrievedAvatar)); - QVERIFY(m_cm->saveContact(&testContact)); - QCOMPARE(testContact.details(QContactAvatar::DefinitionName).count(), 0); + df.setValue("2222"); + ids = m_cm->contactIds(df); + // Should fail with not supported error because symbian's phone number + // match algorithm cannot be applied with less than 7 digit search strings + QCOMPARE(m_cm->error(), QContactManager::NotSupportedError); + QCOMPARE(ids.count(), 0); + + df.setValue("3333"); + ids = m_cm->contactIds(df); + // Should fail with not supported error because symbian's phone number + // match algorithm cannot be applied with less than 7 digit search strings + QCOMPARE(m_cm->error(), QContactManager::NotSupportedError); + QCOMPARE(ids.count(), 0); } -void tst_QContactManagerSymbian::avatarPixmap_data() +void tst_QContactManagerSymbian::avatarImage_data() { QTest::addColumn("fileName"); @@ -185,54 +329,121 @@ QTest::newRow("XXLarge JPEG") << "C:\\Data\\Images\\avatar_sharks_xxl.jpg"; } -void tst_QContactManagerSymbian::avatarPixmap() +/* + * Special avatar cases that cannot be covered in QtMobility system level + * test cases. + */ +void tst_QContactManagerSymbian::avatarImage() +{ + QFETCH(QString, fileName); + + QContact testContact = m_cm->contact(m_contactId.localId()); + + // Verify the image exists + QImage image(fileName); + QVERIFY(!image.isNull()); + + // Set image + QContactAvatar avatar; + QUrl url(fileName); + QVERIFY(url.isValid()); + avatar.setImageUrl(url); + QVERIFY(testContact.saveDetail(&avatar)); + QVERIFY(m_cm->saveContact(&testContact)); + + // Get image + testContact = m_cm->contact(m_contactId.localId()); + avatar = testContact.detail(QContactAvatar::DefinitionName); + QVERIFY(!avatar.isEmpty()); + url = avatar.imageUrl(); + QVERIFY(url.isValid()); + image = QImage(url.toString()); + QVERIFY(!image.isNull()); +} + +void tst_QContactManagerSymbian::thumbnail_data() +{ + QTest::addColumn("fileName"); + + QTest::newRow("ExtraSmall JPEG") << "C:\\Data\\Images\\avatar_sharks_xs.jpg"; + QTest::newRow("Small JPEG") << "C:\\Data\\Images\\avatar_sharks_s.jpg"; + QTest::newRow("Medium JPEG") << "C:\\Data\\Images\\avatar_sharks_m.jpg"; + QTest::newRow("XXLarge JPEG") << "C:\\Data\\Images\\avatar_sharks_xxl.jpg"; +} + +/* + * Special thumbnail cases that cannot be covered in QtMobility system level + * test cases. + */ +void tst_QContactManagerSymbian::thumbnail() { QFETCH(QString, fileName); QContact testContact = m_cm->contact(m_contactId.localId()); - // Set pixmap - QContactAvatar avatar; - QPixmap pixmap(fileName); - QVERIFY(!pixmap.isNull()); - QVERIFY(avatar.setPixmap(pixmap)); - QVERIFY(testContact.saveDetail(&avatar)); + // Set + QContactThumbnail thumb = testContact.detail(QContactThumbnail::DefinitionName); + QImage image(fileName); + QVERIFY(!image.isNull()); + thumb.setThumbnail(image); + QVERIFY(testContact.saveDetail(&thumb)); QVERIFY(m_cm->saveContact(&testContact)); // Get pixmap testContact = m_cm->contact(m_contactId.localId()); - avatar = testContact.detail(QContactAvatar::DefinitionName); - QVERIFY(!avatar.isEmpty()); - pixmap = avatar.pixmap(); - QVERIFY(!pixmap.isNull()); + thumb = testContact.detail(QContactThumbnail::DefinitionName); + QVERIFY(!thumb.isEmpty()); + QVERIFY(!thumb.thumbnail().isNull()); } -void tst_QContactManagerSymbian::avatarPathAndPixmap() +/* + * Special ringing tone cases that cannot be covered in QtMobility system level + * test cases. + */ +void tst_QContactManagerSymbian::ringTone() { - QString fileName("C:\\Data\\Images\\avatar_sharks_s.jpg"); QContact testContact = m_cm->contact(m_contactId.localId()); - // Set - QContactAvatar avatar; - avatar.setAvatar(fileName); - QVERIFY(avatar.setPixmap(QPixmap(fileName))); - QVERIFY(testContact.saveDetail(&avatar)); + // these files are not actually included to the test data + QString audio("C:\\Data\\Sounds\\tone.wav"); + QString video("C:\\Data\\Videos\\video.3gp"); + + // Set audio ringtone + QContactRingtone tone = testContact.detail(QContactRingtone::DefinitionName); + QUrl audioRingtone(audio); + tone.setAudioRingtoneUrl(audioRingtone); + QVERIFY(testContact.saveDetail(&tone)); QVERIFY(m_cm->saveContact(&testContact)); - // Get pixmap + // Get and verify ringtone testContact = m_cm->contact(m_contactId.localId()); - avatar = testContact.detail(QContactAvatar::DefinitionName); - QVERIFY(!avatar.isEmpty()); - QCOMPARE(avatar.avatar(), fileName); - QPixmap pixmap = avatar.pixmap(); - QVERIFY(!pixmap.isNull()); + tone = testContact.detail(QContactRingtone::DefinitionName); + QVERIFY(!tone.isEmpty()); + QCOMPARE(tone.audioRingtoneUrl(), audioRingtone); + QCOMPARE(tone.videoRingtoneUrl(), QUrl()); + QCOMPARE(tone.vibrationRingtoneUrl(), QUrl()); + + // Set video ringtone + QUrl videoRingtone(video); + tone.setVideoRingtoneUrl(videoRingtone); + QVERIFY(testContact.saveDetail(&tone)); + QVERIFY(m_cm->saveContact(&testContact)); + + // Get and verify ringtone + testContact = m_cm->contact(m_contactId.localId()); + tone = testContact.detail(QContactRingtone::DefinitionName); + QVERIFY(!tone.isEmpty()); + QCOMPARE(tone.audioRingtoneUrl(), audioRingtone); + QCOMPARE(tone.videoRingtoneUrl(), videoRingtone); + QCOMPARE(tone.vibrationRingtoneUrl(), QUrl()); } void tst_QContactManagerSymbian::displayLabel_data() { + // Expected display label + QTest::addColumn("displayLabel"); // A string list containing the detail fields in format :: // For example first name: Name:First:James - QTest::addColumn("displayLabel"); // Note: With the current implementation the value must not contain a ':' character QTest::addColumn("details"); @@ -292,6 +503,10 @@ << "Organization:Name:McLaren"); } +/* + * Special display label test cases for testing symbian backend specific + * display label generation. + */ void tst_QContactManagerSymbian::displayLabel() { qDebug() << QTest::currentDataTag(); @@ -300,7 +515,7 @@ // Parse details and add them to the contact QContact contact; - foreach(QString detail, details) { + foreach(const QString& detail, details) { // the expected format is :: QStringList detailParts = detail.split(QChar(':'), QString::KeepEmptyParts, Qt::CaseSensitive); QVERIFY(detailParts.count() == 3); @@ -327,12 +542,16 @@ QVERIFY(m_cm->removeContact(contact.localId())); } +/* + * Special contact handling test cases that cannot be covered in QtMobility + * system level test cases. + */ void tst_QContactManagerSymbian::invalidContactItems() { // 1. Empty contact QContact empty; QVERIFY(m_cm->saveContact(&empty)); - empty = m_cm->contact(empty.localId(), QStringList()); + empty = m_cm->contact(empty.localId()); QVERIFY(m_cm->error() == QContactManager::NoError); QVERIFY(empty.id() != QContactId()); QVERIFY(m_cm->removeContact(empty.localId())); @@ -348,6 +567,21 @@ QVERIFY(m_cm->removeContact(invalidContact.localId())); } +QContact tst_QContactManagerSymbian::createContact(QString type, QString firstName, QString lastName) +{ + QContact contact; + contact.setType(type); + QContactName name; + if(type == QContactType::TypeContact) { + name.setFirstName(firstName); + name.setLastName(lastName); + } else { + name.setCustomLabel(firstName); + } + contact.saveDetail(&name); + return contact; +} + void tst_QContactManagerSymbian::addContactItemWithInvalidFieldsL(TContactItemId& itemId) { // Create a contact with invalid item fields to the database diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/tst_qcontactmanagersymbian/tst_qcontactmanagersymbian.pro --- a/qtmobility/plugins/contacts/symbian/tsrc/tst_qcontactmanagersymbian/tst_qcontactmanagersymbian.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/tst_qcontactmanagersymbian/tst_qcontactmanagersymbian.pro Mon May 03 13:18:40 2010 +0300 @@ -23,4 +23,12 @@ "avatar_sharks_m.jpg $${EPOCROOT}epoc32\winscw\c\data\images\avatar_sharks_m.jpg" BLD_INF_RULES.prj_exports += \ "avatar_sharks_xxl.jpg $${EPOCROOT}epoc32\winscw\c\data\images\avatar_sharks_xxl.jpg" + + testdata = \ + "\"avatar_sharks_xs.jpg\" - \"!:\\data\\images\\avatar_sharks_xs.jpg\"" \ + "\"avatar_sharks_s.jpg\" - \"!:\\data\\images\\avatar_sharks_s.jpg\"" \ + "\"avatar_sharks_m.jpg\" - \"!:\\data\\images\\avatar_sharks_m.jpg\"" \ + "\"avatar_sharks_xxl.jpg\" - \"!:\\data\\images\\avatar_sharks_xxl.jpg\"" + testdeployment.pkg_postrules += testdata + DEPLOYMENT += testdeployment } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_cntfilteringdbms/ut_cntfilteringdbms.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_cntfilteringdbms/ut_cntfilteringdbms.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,234 +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 Qt Mobility Components. -** -** $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$ -** -****************************************************************************/ - -#define QT_STATICPLUGIN -#include "cntsymbianfilterdbms.h" - -#include - -#include -#include -#include -//#include - -QTM_USE_NAMESPACE - -typedef QList QContactIds; - -Q_DECLARE_METATYPE(QContactFilter *) -Q_DECLARE_METATYPE(CntAbstractContactFilter::FilterSupport) -Q_DECLARE_METATYPE(QContactIds) - -class ut_cntfilteringdbms : public QObject -{ -Q_OBJECT - -public: - ut_cntfilteringdbms(); - virtual ~ut_cntfilteringdbms(); - -private slots: // Init & cleanup - void initTestCase(); - void cleanupTestCase(); - -private slots: // tests - void filterContacts(); - void filterContacts_data() {addFilterData();} - -private: - QContactLocalId addContact(QString firstName, QString lastName, QString phoneNumber); - void addFilterData(); - void addNewRow(QString defName, QString fieldName, int flags, CntAbstractContactFilter::FilterSupport filterSupport, QString filterCriterion, QList matchingContacts); - -private: - QScopedPointer m_contactManager; - QScopedPointer m_contactDatabase; - QScopedPointer m_dbmsFilter; - QList m_contactFilters; -}; - -ut_cntfilteringdbms::ut_cntfilteringdbms() -{ - TRAPD(error, m_contactDatabase.reset(CContactDatabase::OpenL())); - QVERIFY(error == KErrNone); - m_dbmsFilter.reset(new CntSymbianFilter(*m_contactDatabase)); - m_contactManager.reset(new QContactManager("symbian")); -} - -ut_cntfilteringdbms::~ut_cntfilteringdbms() -{ - -} - -void ut_cntfilteringdbms::initTestCase() -{ - // Remove all contacts - QList contacts = m_contactManager->contactIds(); - m_contactManager->removeContacts(&contacts, 0); -} - -void ut_cntfilteringdbms::cleanupTestCase() -{ -} - -void ut_cntfilteringdbms::filterContacts() -{ - QFETCH(QContactFilter *, filter); - QFETCH(CntAbstractContactFilter::FilterSupport, filterSupport); - QFETCH(QContactIds, matchingContacts); - - QCOMPARE(m_dbmsFilter->filterSupportLevel(*filter), filterSupport); - - QList sortOrders; - QStringList definitionRestrictions; - QList contacts = m_contactManager->contactIds(*filter); - - qDebug() << contacts; - - QCOMPARE(contacts.count(), matchingContacts.count()); - foreach(QContactLocalId id, matchingContacts) { - QVERIFY(contacts.contains(id)); - } -} - -QContactLocalId ut_cntfilteringdbms::addContact(QString firstName, QString lastName, QString phoneNumber) -{ - QContact c; - - QContactName n; - n.setFirstName(firstName); - n.setLastName(lastName); - c.saveDetail(&n); - - QContactPhoneNumber nb; - nb.setNumber(phoneNumber); - c.saveDetail(&nb); - - m_contactManager->saveContact(&c); - - return c.localId(); -} - -void ut_cntfilteringdbms::addFilterData() -{ - QTest::addColumn("filter"); - QTest::addColumn("filterSupport"); - QTest::addColumn("matchingContacts"); - - QContactLocalId abc = addContact("abc", "def", "123"); - QContactLocalId bcd = addContact("bcd", "efg", "1234567"); - QContactLocalId cde = addContact("cde", "fgh", "1234567890"); - QContactLocalId Abc = addContact("Abc", "Def", "+3581234567890"); - QContactLocalId Bcd = addContact("Bcd", "Efg", "0987654321"); - QContactLocalId Cde = addContact("Cde", "Fgh", "1111111111"); - - qDebug() << "abc =" << abc; - qDebug() << "bcd =" << bcd; - qDebug() << "cde =" << cde; - qDebug() << "Abc =" << Abc; - qDebug() << "Bcd =" << Bcd; - qDebug() << "Cde =" << Cde; - - QList allContacts; - allContacts << abc << bcd << cde << Abc << Bcd << Cde; - - addNewRow(QContactPhoneNumber::DefinitionName, QString(), QContactFilter::MatchExactly, CntAbstractContactFilter::NotSupported, "foobar", allContacts); - addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchExactly, CntAbstractContactFilter::SupportedPreFilterOnly, "123", QContactIds() << abc); - addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchExactly, CntAbstractContactFilter::SupportedPreFilterOnly, "1234567", QContactIds() << bcd); - addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchExactly, CntAbstractContactFilter::SupportedPreFilterOnly, "1234567890", QContactIds() << cde); - addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchContains, CntAbstractContactFilter::NotSupported, "123", QContactIds() << abc << bcd << cde << Abc); - addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchStartsWith, CntAbstractContactFilter::NotSupported, "123", QContactIds() << abc << bcd << cde); - addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchEndsWith, CntAbstractContactFilter::SupportedPreFilterOnly, "567", QContactIds() << bcd ); - addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchEndsWith, CntAbstractContactFilter::SupportedPreFilterOnly, "4567890", QContactIds() << cde << Abc ); - addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchFixedString, CntAbstractContactFilter::SupportedPreFilterOnly, "123", QContactIds() << abc); - addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchPhoneNumber, CntAbstractContactFilter::Supported, "1234567890", QContactIds() << cde << Abc); - addNewRow(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber, QContactFilter::MatchKeypadCollation, CntAbstractContactFilter::NotSupported, "123", QContactIds() << abc << bcd << cde << Abc); - - addNewRow(QContactName::DefinitionName, QString(), QContactFilter::MatchExactly, CntAbstractContactFilter::NotSupported, "foobar", allContacts); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchExactly, CntAbstractContactFilter::SupportedPreFilterOnly, "Abc", QContactIds() << abc << Abc); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchExactly | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "Abc", QContactIds() << Abc); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchContains, CntAbstractContactFilter::Supported, "Ab", QContactIds() << abc << Abc); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchContains | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "Ab", QContactIds() << Abc); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchStartsWith, CntAbstractContactFilter::SupportedPreFilterOnly, "Ab", QContactIds() << abc << Abc); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchStartsWith | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "Ab", QContactIds() << Abc); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchEndsWith, CntAbstractContactFilter::SupportedPreFilterOnly, "Cde", QContactIds() << cde << Cde); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchEndsWith | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "Cde", QContactIds() << Cde); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchFixedString, CntAbstractContactFilter::SupportedPreFilterOnly, "abc", QContactIds() << abc << Abc); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchFixedString | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "abc", QContactIds() << abc); - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchPhoneNumber, CntAbstractContactFilter::NotSupported, "abc", QContactIds() << abc << Abc); // not sure if this valid - addNewRow(QContactName::DefinitionName, QContactName::FieldFirst, QContactFilter::MatchKeypadCollation, CntAbstractContactFilter::NotSupported, "abc", QContactIds() << abc << Abc); - - addNewRow(QContactDisplayLabel::DefinitionName, QString(), QContactFilter::MatchExactly, CntAbstractContactFilter::NotSupported, "foobar", allContacts); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchExactly, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc << Abc); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchExactly | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchContains, CntAbstractContactFilter::NotSupported, "d e", QContactIds() << bcd << Bcd); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchContains | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::NotSupported, "d e", QContactIds() << bcd); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchStartsWith, CntAbstractContactFilter::Supported, "B", QContactIds() << bcd << Bcd); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchStartsWith | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::SupportedPreFilterOnly, "B", QContactIds() << Bcd); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchEndsWith, CntAbstractContactFilter::NotSupported, "d Efg", QContactIds() << bcd << Bcd); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchEndsWith | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::NotSupported, "d Efg", QContactIds() << Bcd); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchFixedString, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc << Abc); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchFixedString | QContactFilter::MatchCaseSensitive, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc); - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchPhoneNumber, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc << Abc); // not sure if this is valid - addNewRow(QContactDisplayLabel::DefinitionName, QContactDisplayLabel::FieldLabel, QContactFilter::MatchKeypadCollation, CntAbstractContactFilter::NotSupported, "abc def", QContactIds() << abc << Abc); -} - - - -void ut_cntfilteringdbms::addNewRow(QString defName, QString fieldName, int flags, CntAbstractContactFilter::FilterSupport filterSupport, QString filterCriterion, QList matchingContacts) -{ - QString s; - foreach(QContactLocalId id, matchingContacts) - s.append(QString("%1 ").arg(id)); - - QString title = QString("Detail filter : defName=%1 fieldName=%2 matchFlags=0x%3 filterCriterion=%4 matchingContacts=%5").arg(defName).arg(fieldName).arg(flags,0,16).arg(filterCriterion).arg(s); - - QContactDetailFilter *f = new QContactDetailFilter(); - f->setDetailDefinitionName(defName, fieldName); - f->setMatchFlags(QContactFilter::MatchFlags(flags)); - f->setValue(QVariant(filterCriterion)); - - QTest::newRow(title.toAscii().constData()) << (QContactFilter*) f << filterSupport << matchingContacts; -} - -QTEST_MAIN(ut_cntfilteringdbms); -#include "ut_cntfilteringdbms.moc" - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_cntfilteringdbms/ut_cntfilteringdbms.pro --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_cntfilteringdbms/ut_cntfilteringdbms.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -TEMPLATE = app -TARGET = -QT += testlib -CONFIG += qtestlib -include(../tsrc.pri) - -DEFINES += PBK_UNIT_TEST -DEPENDPATH += . -INCLUDEPATH += . - -symbian: -{ - INCLUDEPATH += $$SYMBIAN_PATHS - INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE - - HEADERS += $$SYMBIAN_HEADERS - - SOURCES += $$SYMBIAN_SOURCES \ - ut_cntfilteringdbms.cpp - - CONFIG += mobility - MOBILITY = contacts - - TARGET.CAPABILITY = ALL -TCB - - LIBS += $$SYMBIAN_LIBS -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_cntsqlsearch/inc/ut_cntsqlsearch.h --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_cntsqlsearch/inc/ut_cntsqlsearch.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -#ifndef UT_CNTSQLSEARCH_H -#define UT_CNTSQLSEARCH_H - -#include - -class CntSqlSearch; - -class UT_CntSqlSearch : public QObject -{ - Q_OBJECT - -private slots: - -/* - * In addition, there are four private slots that are not treated as testfunctions. - * They will be executed by the testing framework and can be used to initialize and clean up - * either the entire test or the current test function. - * - * initTestCase() will be called before the first testfunction is executed. - * cleanupTestCase() will be called after the last testfunction was executed. - * init() will be called before each testfunction is executed. - * cleanup() will be called after every testfunction. -*/ - void initTestCase(); - void cleanupTestCase(); - void init(); - void cleanup(); - -private slots: //test methods - - void testPredictiveSearch(); - void testSelectTableView(); - void testIsSubStringSearch(); - void testGetNumber(); - void testCreateSubStringSearch(); - void testCreateStringSearch(); - void testCreateSpaceStringSearch(); - void testCreateSpaceString(); - -private: - - CntSqlSearch* mCntSqlSearch; -}; - - -#endif //UT_SQLSEARCH_ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_cntsqlsearch/src/ut_cntsqlsearch.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_cntsqlsearch/src/ut_cntsqlsearch.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,273 +0,0 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include -#include - -#include "ut_cntsqlsearch.h" -#include "cntsqlsearch.h" - - -void UT_CntSqlSearch::initTestCase() -{ -} - -void UT_CntSqlSearch::cleanupTestCase() -{ -} - - -void UT_CntSqlSearch::init() -{ -mCntSqlSearch = new CntSqlSearch(); -} - -void UT_CntSqlSearch::cleanup() -{ - delete mCntSqlSearch; - mCntSqlSearch = 0; - -} -void UT_CntSqlSearch::testPredictiveSearch() -{ - QString pattern = QString("209"); - QString result; - QString reference("SELECT contact_id FROM view2 WHERE (first_name_as_number LIKE % 209%) OR (last_name_as_number LIKE % 209%) OR (last_name_as_number LIKE % 2%) OR ((first_name_as_number LIKE % 2%) AND (first_name_as_number LIKE %_ 2%)) OR ((last_name_as_number LIKE % 9%) AND (last_name_as_number LIKE %_ 9%)) ORDER BY first_name_as_number ASC"); - /* result = mCntSqlSearch->CreatePredictiveSearch(pattern); - QVERIFY( !result.compare( reference) );*/ - - pattern = QString("3"); - reference = QString("SELECT contact_id FROM view3 ORDER BY first_name_as_number ASC;"); - result = mCntSqlSearch->CreatePredictiveSearch(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("33"); - reference = QString("SELECT contact_id FROM view3 WHERE (first_name_as_number LIKE % 33%) OR (last_name_as_number LIKE % 33%) ORDER BY first_name_as_number ASC;"); - result = mCntSqlSearch->CreatePredictiveSearch(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("001100"); - reference = QString("SELECT contact_id FROM view0 WHERE (first_name_as_number LIKE % 001100%) OR (last_name_as_number LIKE % 001100%) ORDER BY first_name_as_number ASC;"); - result = mCntSqlSearch->CreatePredictiveSearch(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("1"); - reference = QString("SELECT contact_id FROM view1 ORDER BY first_name_as_number ASC;"); - result = mCntSqlSearch->CreatePredictiveSearch(pattern); - QVERIFY( !result.compare( reference) ); pattern = QString("1"); -} - -void UT_CntSqlSearch::testSelectTableView() -{ - QString pattern = QString("0"); - QString reference = QString("view0");; - QString result = mCntSqlSearch->SelectTableView(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("1"); - reference = QString("view1");; - result = mCntSqlSearch->SelectTableView(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("2"); - reference = QString("view2");; - result = mCntSqlSearch->SelectTableView(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("3"); - reference = QString("view3");; - result = mCntSqlSearch->SelectTableView(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("4"); - reference = QString("view4");; - result = mCntSqlSearch->SelectTableView(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("5"); - reference = QString("view5");; - result = mCntSqlSearch->SelectTableView(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("6"); - reference = QString("view6");; - result = mCntSqlSearch->SelectTableView(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("7"); - reference = QString("view7");; - result = mCntSqlSearch->SelectTableView(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("8"); - reference = QString("view8");; - result = mCntSqlSearch->SelectTableView(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("9"); - reference = QString("view9");; - result = mCntSqlSearch->SelectTableView(pattern); - QVERIFY( !result.compare( reference) ); -} - -void UT_CntSqlSearch::testIsSubStringSearch() -{ - QString pattern("102"); - QCOMPARE(mCntSqlSearch->IsSubStringSearch(pattern), true); - pattern = QString("12"); - QCOMPARE(mCntSqlSearch->IsSubStringSearch(pattern), false); - pattern = QString("1"); - QCOMPARE(mCntSqlSearch->IsSubStringSearch(pattern), false); - pattern = QString("01"); - QCOMPARE(mCntSqlSearch->IsSubStringSearch(pattern), true); - pattern = QString("012"); - QCOMPARE(mCntSqlSearch->IsSubStringSearch(pattern), true); - pattern = QString("00012"); - QCOMPARE(mCntSqlSearch->IsSubStringSearch(pattern), true); - pattern = QString("000100002"); - QCOMPARE(mCntSqlSearch->IsSubStringSearch(pattern), true); - pattern = QString("000"); - QCOMPARE(mCntSqlSearch->IsSubStringSearch(pattern), false); - pattern = QString("0"); - QCOMPARE(mCntSqlSearch->IsSubStringSearch(pattern), false); -} - -void UT_CntSqlSearch::testGetNumber() -{ - QStringList numbers; - - QString pattern("102"); - numbers = mCntSqlSearch->GetNumber(pattern); - QCOMPARE(numbers.at(0), QString("1")); - QCOMPARE(numbers.at(1), QString("2")); - - pattern = QString("12"); - numbers = mCntSqlSearch->GetNumber(pattern); - QCOMPARE(numbers.at(0), QString("12")); - - pattern = QString("01"); - numbers = mCntSqlSearch->GetNumber(pattern); - QCOMPARE(numbers.at(0), QString("1")); - - pattern = QString("012"); - numbers = mCntSqlSearch->GetNumber(pattern); - QCOMPARE(numbers.at(0), QString("12")); - - pattern = QString("00012"); - numbers = mCntSqlSearch->GetNumber(pattern); - QCOMPARE(numbers.at(0), QString("12")); - - pattern = QString("00012000"); - numbers = mCntSqlSearch->GetNumber(pattern); - QCOMPARE(numbers.at(0), QString("12")); - - pattern = QString("000100002"); - numbers = mCntSqlSearch->GetNumber(pattern); - QCOMPARE(numbers.at(0), QString("1")); - QCOMPARE(numbers.at(1), QString("2")); - - pattern = QString("000100002000"); - numbers = mCntSqlSearch->GetNumber(pattern); - QCOMPARE(numbers.at(0), QString("1")); - QCOMPARE(numbers.at(1), QString("2")); -} - -void UT_CntSqlSearch::testCreateSubStringSearch() -{ - QString pattern = QString("102"); - QString result; - QString reference("(first_name_as_number LIKE % 102%) OR (last_name_as_number LIKE % 102%) OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%)) OR ((first_name_as_number LIKE % 2%) AND (first_name_as_number LIKE %_ 2%)) OR ((last_name_as_number LIKE % 2%) AND (last_name_as_number LIKE %_ 2%))"); - result = mCntSqlSearch->CreateSubStringSearch(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("00102"); - reference = QString("(first_name_as_number LIKE % 00102%) OR (last_name_as_number LIKE % 00102%) OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%)) OR ((first_name_as_number LIKE % 2%) AND (first_name_as_number LIKE %_ 2%)) OR ((last_name_as_number LIKE % 2%) AND (last_name_as_number LIKE %_ 2%))"); - result = mCntSqlSearch->CreateSubStringSearch(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("0010200"); - reference = QString("(first_name_as_number LIKE % 0010200%) OR (last_name_as_number LIKE % 0010200%) OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%)) OR ((first_name_as_number LIKE % 2%) AND (first_name_as_number LIKE %_ 2%)) OR ((last_name_as_number LIKE % 2%) AND (last_name_as_number LIKE %_ 2%))"); - result = mCntSqlSearch->CreateSubStringSearch(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("12"); - reference = QString("(first_name_as_number LIKE % 12%) OR (last_name_as_number LIKE % 12%)"); - result = mCntSqlSearch->CreateSubStringSearch(pattern); - QVERIFY( !result.compare( reference) ); - - pattern = QString("000"); - reference = QString("(first_name_as_number LIKE % 000%) OR (last_name_as_number LIKE % 000%)"); - result = mCntSqlSearch->CreateSubStringSearch(pattern); - QVERIFY( !result.compare( reference) ); -} - -void UT_CntSqlSearch::testCreateStringSearch() -{ - QString numbers("102"); - - QString result; - result = mCntSqlSearch->CreateStringSearch(numbers); - QVERIFY( result == "(first_name_as_number LIKE % 102%) OR (last_name_as_number LIKE % 102%)" ); - - numbers = QString("00012"); - result = mCntSqlSearch->CreateStringSearch(numbers); - QVERIFY( result == "(first_name_as_number LIKE % 00012%) OR (last_name_as_number LIKE % 00012%)" ); - - numbers = QString("000120012"); - result = mCntSqlSearch->CreateStringSearch(numbers); - QVERIFY( result == "(first_name_as_number LIKE % 000120012%) OR (last_name_as_number LIKE % 000120012%)" ); - - numbers = QString("12"); - result = mCntSqlSearch->CreateStringSearch(numbers); - QVERIFY( result == "(first_name_as_number LIKE % 12%) OR (last_name_as_number LIKE % 12%)" ); - - numbers = QString("00012001200"); - result = mCntSqlSearch->CreateStringSearch(numbers); - QVERIFY( result == "(first_name_as_number LIKE % 00012001200%) OR (last_name_as_number LIKE % 00012001200%)" ); -} - -void UT_CntSqlSearch::testCreateSpaceStringSearch() -{ - QStringList numbers; - numbers << "1"; - QString result; - result = mCntSqlSearch->CreateSpaceStringSearch(numbers); - QVERIFY( result == " OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%))" ); - - numbers.clear(); - numbers << "1" << "2"; - QString reference(" OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%)) OR ((first_name_as_number LIKE % 2%) AND (first_name_as_number LIKE %_ 2%)) OR ((last_name_as_number LIKE % 2%) AND (last_name_as_number LIKE %_ 2%))"); - result = mCntSqlSearch->CreateSpaceStringSearch(numbers); - QVERIFY( !result.compare( reference) ); - - numbers.clear(); - numbers << "1" << "21"; - reference = QString(" OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%)) OR ((first_name_as_number LIKE % 21%) AND (first_name_as_number LIKE %_ 21%)) OR ((last_name_as_number LIKE % 21%) AND (last_name_as_number LIKE %_ 21%))"); - result = mCntSqlSearch->CreateSpaceStringSearch(numbers); - QVERIFY( !result.compare( reference)); -} - -void UT_CntSqlSearch::testCreateSpaceString() -{ - QString pattern("1"); - QString result; - QString reference("((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%))"); - result = mCntSqlSearch->CreateSpaceString(pattern); - QVERIFY(!result.compare(reference)); -} - -QTEST_MAIN(UT_CntSqlSearch) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/main.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -83,10 +83,10 @@ testRunner.printResults(); - if (promptOnExit) { + /*if (promptOnExit) { printf("Press any key...\n"); getchar(); - } + }*/ return 0; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/runtest.cmd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/runtest.cmd Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,13 @@ +call del MON.sym +call del MON.dat +call del profile.txt + +call qmake +call bldmake bldfiles +call abld clean +call abld reallyclean +call ctcwrap -i d -C "EXCLUDE+*\moc*.cpp" -C "EXCLUDE+..\..\src\transform\cnttransformanniversarysimple.cpp" -C "EXCLUDE+..\..\src\transform\cnttransformavatarsimple.cpp" -C "EXCLUDE+..\..\src\transform\cnttransformempty.cpp" -C "EXCLUDE+..\..\src\transform\cntthumbnailcreator.cpp" -C "EXCLUDE+..\..\src\filtering\cntsymbianfilterdbms.cpp" -C "EXCLUDE+.\*.*" abld build winscw udeb + +call \epoc32\release\winscw\udeb\ut_symbian.exe +call ctcpost MON.sym MON.dat -p profile.txt +call ctc2html -i profile.txt -nsb diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/testrunner.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/testrunner.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/testrunner.cpp Mon May 03 13:18:40 2010 +0300 @@ -94,7 +94,7 @@ printf("\nTests executed: %d\n",mTestCount); if (mErrors.count() > 0) { printf("Failures (%d):\n", mErrors.count()); - foreach(QString error, mErrors) { + foreach(const QString& error, mErrors) { printf("\n%s", error.toUtf8().data()); } printf("\n"); @@ -162,13 +162,13 @@ QByteArray testResult = mCurrentTestName.toAscii() + " failed:\n"; testResult += "File: "; testResult += mCurrentTestFile.toAscii(); - testResult += "\n"; + testResult += '\n'; testResult += "Line: "; testResult += QByteArray::number(mCurrentTestFailureLine); - testResult += "\n"; + testResult += '\n'; testResult += "Reason: "; testResult += ch.toAscii(); - testResult += "\n"; + testResult += '\n'; mErrors.append(QString::fromAscii(testResult.data())); } return true; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntfiltering.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntfiltering.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntfiltering.cpp Mon May 03 13:18:40 2010 +0300 @@ -69,7 +69,7 @@ // Remove all contacts from the database QList cnt_ids = mCntMng->contactIds(); - mCntMng->removeContacts(&cnt_ids); + mCntMng->removeContacts(cnt_ids, 0); cnt_ids = mCntMng->contactIds(); QVERIFY(0 == cnt_ids.count()); parseFilters(); @@ -428,6 +428,17 @@ QList cnt_ids; QContactManager::Error error; QList sortOrder; + + QContactSortOrder sortOrderFirstName; + sortOrderFirstName.setDetailDefinitionName(QContactName::DefinitionName, + QContactName::FieldFirstName); + + QContactSortOrder sortOrderLastName; + sortOrderLastName.setDetailDefinitionName(QContactName::DefinitionName, + QContactName::FieldLastName); + + sortOrder.append(sortOrderFirstName); + sortOrder.append(sortOrderLastName); QList fs = mFilters->values(QContactFilter::ContactDetailFilter); int cnt = fs.count(); @@ -465,6 +476,17 @@ QContactManager::Error error; QList sortOrder; + QContactSortOrder sortOrderFirstName; + sortOrderFirstName.setDetailDefinitionName(QContactName::DefinitionName, + QContactName::FieldFirstName); + + QContactSortOrder sortOrderLastName; + sortOrderLastName.setDetailDefinitionName(QContactName::DefinitionName, + QContactName::FieldLastName); + + sortOrder.append(sortOrderFirstName); + sortOrder.append(sortOrderLastName); + QContactDetailFilter cdf1; cdf1.setDetailDefinitionName(QContactOnlineAccount::DefinitionName, QContactOnlineAccount::SubTypeSip); cdf1.setValue("sip"); @@ -581,7 +603,7 @@ QContactRelationshipFilter groupFilter; groupFilter.setRelationshipType(QContactRelationship::HasMember); groupFilter.setRelatedContactId(groupContact.id()); - groupFilter.setRelatedContactRole(QContactRelationshipFilter::First); + groupFilter.setRelatedContactRole(QContactRelationship::First); cnt_ids = mCntMng->contactIds(groupFilter, sortOrder); @@ -603,7 +625,7 @@ { //Create first filter QContactDetailFilter f1; - f1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + f1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirstName); f1.setValue("John"); f1.setMatchFlags(QContactFilter::MatchStartsWith); //Create second filter @@ -619,6 +641,17 @@ filter.append(f2); QList sortOrder; QContactManager::Error error; + + QContactSortOrder sortOrderFirstName; + sortOrderFirstName.setDetailDefinitionName(QContactName::DefinitionName, + QContactName::FieldFirstName); + + QContactSortOrder sortOrderLastName; + sortOrderLastName.setDetailDefinitionName(QContactName::DefinitionName, + QContactName::FieldLastName); + + sortOrder.append(sortOrderFirstName); + sortOrder.append(sortOrderLastName); //Search for contacts cnt_ids = mCntMng->contactIds(filter, sortOrder); @@ -650,7 +683,7 @@ { //Create first filter QContactDetailFilter f1; - f1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + f1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirstName); f1.setValue("John"); f1.setMatchFlags(QContactFilter::MatchStartsWith); //Create second filter @@ -661,7 +694,7 @@ //Create third filter QContactDetailFilter f3; - f3.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + f3.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirstName); f3.setValue("Mic"); f3.setMatchFlags(QContactFilter::MatchStartsWith); //Create fourth filter @@ -718,7 +751,7 @@ { //Create first filter QContactDetailFilter f1; - f1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + f1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirstName); f1.setValue("Mic"); f1.setMatchFlags(QContactFilter::MatchStartsWith); //Create second filter @@ -734,6 +767,17 @@ filter.append(f2); QList sortOrder; QContactManager::Error error; + + QContactSortOrder sortOrderFirstName; + sortOrderFirstName.setDetailDefinitionName(QContactName::DefinitionName, + QContactName::FieldFirstName); + + QContactSortOrder sortOrderLastName; + sortOrderLastName.setDetailDefinitionName(QContactName::DefinitionName, + QContactName::FieldLastName); + + sortOrder.append(sortOrderFirstName); + sortOrder.append(sortOrderLastName); //Search for contacts cnt_ids = mCntMng->contactIds(filter, sortOrder); @@ -765,7 +809,7 @@ { //Create first filter QContactDetailFilter f1; - f1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + f1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirstName); f1.setValue("n"); f1.setMatchFlags(QContactFilter::MatchContains); //Create second filter @@ -855,8 +899,8 @@ QContactLocalId cid = cnt_ids.at( i ); QContact contact = mCntMng->contact( cid ); QContactName contactName = contact.detail( QContactName::DefinitionName ); - QVERIFY( firstName == contactName.value( QContactName::FieldFirst ) ); - QVERIFY( lastName == contactName.value( QContactName::FieldLast ) ); + QVERIFY( firstName == contactName.value( QContactName::FieldFirstName ) ); + QVERIFY( lastName == contactName.value( QContactName::FieldLastName ) ); } } @@ -916,40 +960,48 @@ QString sqlquery; QContactManager::Error error; CntFilterDetail filterDtl(*m_database,srvConnection,dbInfo); - filterDtl.createSelectQuery(f1,sqlquery,error); + filterDtl.createSelectQuery(f1,sqlquery,&error); QVERIFY(error == QContactManager::NotSupportedError); CntFilterDefault filterDefault(*m_database,srvConnection,dbInfo); - filterDefault.createSelectQuery(f1,sqlquery,error); + error = QContactManager::NoError; + filterDefault.createSelectQuery(f1,sqlquery,&error); QVERIFY(error == QContactManager::NotSupportedError); CntFilterChangeLog filterChangeLog(*m_database,srvConnection,dbInfo); - filterChangeLog.createSelectQuery(f1,sqlquery,error); + error = QContactManager::NoError; + filterChangeLog.createSelectQuery(f1,sqlquery,&error); QVERIFY(error == QContactManager::NotSupportedError); CntFilterRelationship filterRlationship(*m_database,srvConnection,dbInfo); - filterRlationship.createSelectQuery(f1,sqlquery,error); + error = QContactManager::NoError; + filterRlationship.createSelectQuery(f1,sqlquery,&error); QVERIFY(error == QContactManager::NotSupportedError); CntFilterLocalId filterLocalId(*m_database,srvConnection,dbInfo); - filterLocalId.createSelectQuery(f1,sqlquery,error); + error = QContactManager::NoError; + filterLocalId.createSelectQuery(f1,sqlquery,&error); QVERIFY(error == QContactManager::NotSupportedError); CntFilterInvalid filterInvalid(*m_database,srvConnection,dbInfo); - filterInvalid.createSelectQuery(f1,sqlquery,error); + error = QContactManager::NoError; + filterInvalid.createSelectQuery(f1,sqlquery,&error); QVERIFY(error == QContactManager::NotSupportedError); CntFilterAction filterAction(*m_database,srvConnection,dbInfo); - filterAction.createSelectQuery(f1,sqlquery,error); + error = QContactManager::NoError; + filterAction.createSelectQuery(f1,sqlquery,&error); QVERIFY(error == QContactManager::NotSupportedError); CntFilterUnion filterUnion(*m_database,srvConnection,dbInfo); - filterUnion.filterSupported(f1); + error = QContactManager::NoError; + filterUnion.createSelectQuery(f1,sqlquery,&error); QVERIFY(error == QContactManager::NotSupportedError); CntFilterIntersection filterIntersection(*m_database,srvConnection,dbInfo); - filterIntersection.createSelectQuery(f1,sqlquery,error); + error = QContactManager::NoError; + filterIntersection.createSelectQuery(f1,sqlquery,&error); QVERIFY(error == QContactManager::NotSupportedError); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntrelationship.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntrelationship.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntrelationship.cpp Mon May 03 13:18:40 2010 +0300 @@ -73,14 +73,15 @@ qRegisterMetaType >("QList"); //create manager - m_manager = new QContactManager("symbian"); + QContactManager::Error err; + m_manager = new CntSymbianEngine(QMap(), &err); //open symbian database TRAPD(error, m_database = CContactDatabase::OpenL()); QVERIFY(error == KErrNone); // create relationship - m_relationship = new CntRelationship(m_database, m_manager->managerUri()); + m_relationship = new CntRelationship(m_database, m_manager->m_managerUri); } @@ -100,8 +101,11 @@ void TestCntRelationship::init() { //delete all contacts from the database - QList contacts = m_manager->contactIds(); - m_manager->removeContacts(&contacts); + QContactManager::Error err; + QList contacts = m_manager->contactIds(QContactFilter(), QList(), &err); + + QMap errorMap; + m_manager->removeContacts(contacts, &errorMap, &err); } void TestCntRelationship::cleanup() @@ -123,39 +127,39 @@ //save & remove relationships QList relationships; relationships.append(relationship); - QList errors; //save relationship - returnValue = m_relationship->saveRelationship(&affectedContactIds, &relationship, error); + returnValue = m_relationship->saveRelationship(&affectedContactIds, &relationship, &error); QVERIFY(returnValue == false); QVERIFY(affectedContactIds.count() == 0); QVERIFY(error == QContactManager::NotSupportedError); //remove relationship - returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, error); + returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, &error); QVERIFY(returnValue == false); QVERIFY(affectedContactIds.count() == 0); QVERIFY(error == QContactManager::NotSupportedError); //save relationships - errors = m_relationship->saveRelationships(&affectedContactIds, &relationships, error); + QMap errorMap; + QVERIFY(!m_relationship->saveRelationships(&affectedContactIds, &relationships, &errorMap, &error)); QVERIFY(affectedContactIds.count() == 0); - for(int i = 0; i < errors.count(); i++){ - QVERIFY(errors.at(i) == QContactManager::NotSupportedError); + foreach (QContactManager::Error err, errorMap) { + QVERIFY(err == QContactManager::NotSupportedError); } //remove relationships - errors = m_relationship->removeRelationships(&affectedContactIds, relationships, error); + QVERIFY(m_relationship->removeRelationships(&affectedContactIds, relationships, &errorMap, &error)); QVERIFY(affectedContactIds.count() == 0); - for(int i = 0; i < errors.count(); i++){ - QVERIFY(errors.at(i) == QContactManager::NotSupportedError); + foreach (QContactManager::Error err, errorMap) { + QVERIFY(err == QContactManager::NotSupportedError); } //relationships QList relationshipList; QContactId id; - relationshipList = m_relationship->relationships(QLatin1String("invalid relationship"), id, QContactRelationshipFilter::Either, error); + relationshipList = m_relationship->relationships(QLatin1String("invalid relationship"), id, QContactRelationship::Either, &error); QVERIFY(relationshipList.count() == 0); QVERIFY(error == QContactManager::NotSupportedError); } @@ -168,12 +172,13 @@ //create a group QContact groupContact; groupContact.setType(QContactType::TypeGroup); - m_manager->saveContact(&groupContact); + QContactManager::Error err; + m_manager->saveContact(&groupContact, &err); //create a contact QContact contact; contact.setType(QContactType::TypeContact); - m_manager->saveContact(&contact); + m_manager->saveContact(&contact, &err); //create relationship QContactRelationship relationship; @@ -185,7 +190,7 @@ bool returnValue(false); QContactManager::Error error; QSet affectedContactIds; - returnValue = m_relationship->saveRelationship(&affectedContactIds, &relationship, error); + returnValue = m_relationship->saveRelationship(&affectedContactIds, &relationship, &error); QVERIFY2(returnValue == true, "save"); QVERIFY2(affectedContactIds.count() == 2, "save"); QVERIFY2(affectedContactIds.toList().contains(groupContact.localId()), "save"); @@ -196,39 +201,58 @@ QList relationshipList; //Retrive group - relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), groupContact.id(), QContactRelationshipFilter::First, error); + relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), groupContact.id(), QContactRelationship::First, &error); + QVERIFY2(relationshipList.count() == 1, "group - First"); QVERIFY2(error == QContactManager::NoError, "group - First"); - relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), groupContact.id(), QContactRelationshipFilter::Second, error); + relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), groupContact.id(), QContactRelationship::Second, &error); QVERIFY2(relationshipList.count() == 0, "group - Second"); - QVERIFY2(error == QContactManager::NoError, "group - Second"); + QVERIFY2(error == QContactManager::DoesNotExistError, "group - Second"); - relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), groupContact.id(), QContactRelationshipFilter::Either, error); + relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), groupContact.id(), QContactRelationship::Either, &error); QVERIFY2(relationshipList.count() == 1, "group - Either"); QVERIFY2(error == QContactManager::NoError, "group - Either"); //Retrive contact - relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), contact.id(), QContactRelationshipFilter::First, error); + relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), contact.id(), QContactRelationship::First, &error); QVERIFY2(relationshipList.count() == 0, "contact - First"); - QVERIFY2(error == QContactManager::NoError, "contact - First"); + QVERIFY2(error == QContactManager::DoesNotExistError, "contact - First"); - relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), contact.id(), QContactRelationshipFilter::Second, error); + relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), contact.id(), QContactRelationship::Second, &error); QVERIFY2(relationshipList.count() == 1, "contact - Second"); QVERIFY2(error == QContactManager::NoError, "contact - Second"); - relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), contact.id(), QContactRelationshipFilter::Either, error); + relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), contact.id(), QContactRelationship::Either, &error); QVERIFY2(relationshipList.count() == 1, "contact - Either"); QVERIFY2(error == QContactManager::NoError, "contact - Either"); + //Relationship for empty contact -> all relationships are returned + relationshipList = m_relationship->relationships(QLatin1String(QContactRelationship::HasMember), QContactId(), + QContactRelationship::First, &error); + QVERIFY2(relationshipList.count() == 1, "All relationships"); + QVERIFY2(error == QContactManager::NoError, "All relatiosnships"); //Validate Filter QList expectedContacts; expectedContacts += contact.localId(); - QVERIFY(true == validateRelationshipFilter(QContactRelationshipFilter::First, groupContact.id(), expectedContacts)); + QVERIFY(true == validateRelationshipFilter(QContactRelationship::First, groupContact.id(), expectedContacts)); + + QList expectedContacts1; + expectedContacts1 += groupContact.localId(); + expectedContacts1 += contact.localId(); + QList expectedContacts2; + expectedContacts2 += contact.localId(); + expectedContacts2 += groupContact.localId(); + QVERIFY(true == (validateRelationshipFilter(QContactRelationship::Either, groupContact.id(), expectedContacts1) || + validateRelationshipFilter(QContactRelationship::Either, groupContact.id(), expectedContacts2))); + + expectedContacts.clear(); + expectedContacts += groupContact.localId(); + QVERIFY(true == validateRelationshipFilter(QContactRelationship::Second, contact.id(), expectedContacts)); //remove relationship - returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, error); + returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, &error); QVERIFY2(returnValue == true, "remove"); QVERIFY2(affectedContactIds.count() == 2, "remove"); QVERIFY2(affectedContactIds.toList().contains(groupContact.localId()), "remove"); @@ -258,7 +282,8 @@ //create a contact QContact contact; contact.setType(QContactType::TypeContact); - m_manager->saveContact(&contact); + QContactManager::Error err; + m_manager->saveContact(&contact, &err); //create relationship QContactId invalidId; @@ -271,13 +296,13 @@ bool returnValue(false); QContactManager::Error error; QSet affectedContactIds; - returnValue = m_relationship->saveRelationship(&affectedContactIds, &relationship, error); + returnValue = m_relationship->saveRelationship(&affectedContactIds, &relationship, &error); QVERIFY(returnValue == false); QVERIFY(affectedContactIds.count() == 0); QVERIFY(error != QContactManager::NoError); //remove relationship - returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, error); + returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, &error); QVERIFY(returnValue == false); QVERIFY(affectedContactIds.count() == 0); QVERIFY(error != QContactManager::NoError); @@ -291,7 +316,8 @@ //create a group QContact groupContact; groupContact.setType(QContactType::TypeGroup); - m_manager->saveContact(&groupContact); + QContactManager::Error err; + m_manager->saveContact(&groupContact, &err); //create relationship QContactId invalidId; @@ -304,13 +330,22 @@ bool returnValue(false); QContactManager::Error error; QSet affectedContactIds; - returnValue = m_relationship->saveRelationship(&affectedContactIds, &relationship, error); + returnValue = m_relationship->saveRelationship(&affectedContactIds, &relationship, &error); QVERIFY2(returnValue == false, "save"); QVERIFY2(affectedContactIds.count() == 0, "save"); QVERIFY2(error != QContactManager::NoError, "save"); //remove relationship - returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, error); + returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, &error); + QVERIFY2(returnValue == false, "remove"); + QVERIFY2(affectedContactIds.count() == 0, "remove"); + QVERIFY2(error != QContactManager::NoError, "remove"); + + //remove relationship: cyclic relantionship + relationship.setRelationshipType(QContactRelationship::HasMember); + relationship.setFirst(groupContact.id()); + relationship.setSecond(groupContact.id()); + returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, &error); QVERIFY2(returnValue == false, "remove"); QVERIFY2(affectedContactIds.count() == 0, "remove"); QVERIFY2(error != QContactManager::NoError, "remove"); @@ -332,32 +367,65 @@ bool returnValue(false); QContactManager::Error error; QSet affectedContactIds; - returnValue = m_relationship->saveRelationship(&affectedContactIds, &relationship, error); + returnValue = m_relationship->saveRelationship(&affectedContactIds, &relationship, &error); QVERIFY(returnValue == false); QVERIFY(affectedContactIds.count() == 0); QVERIFY(error != QContactManager::NoError); //remove relationship - returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, error); + returnValue = m_relationship->removeRelationship(&affectedContactIds, relationship, &error); + QVERIFY(returnValue == false); + QVERIFY(affectedContactIds.count() == 0); + QVERIFY(error != QContactManager::NoError); + + //remove relationship: first contact's manager is not the same as cntrelationship's + QContactRelationship relationshipDifManagers; + QContactId id1; + id1.setLocalId(10); + id1.setManagerUri("manager1"); + QContactId id2; + id2.setLocalId(15); + id2.setManagerUri("manager2"); + relationshipDifManagers.setRelationshipType(QContactRelationship::HasMember); + relationshipDifManagers.setFirst(id1); + relationshipDifManagers.setSecond(id2); + returnValue = m_relationship->removeRelationship(&affectedContactIds, relationshipDifManagers, &error); + QVERIFY(returnValue == false); + QVERIFY(affectedContactIds.count() == 0); + QVERIFY(error != QContactManager::NoError); + + //remove relationship: second contact's manager is not the same as cntrelationship's + QContact contact; + contact.setType(QContactType::TypeContact); + QContactManager::Error err; + m_manager->saveContact(&contact, &err); + QContactRelationship relationshipDifManagers2; + id2.setLocalId(15); + id2.setManagerUri("manager2"); + relationshipDifManagers2.setRelationshipType(QContactRelationship::HasMember); + relationshipDifManagers2.setFirst(contact.id()); + relationshipDifManagers2.setSecond(id2); + returnValue = m_relationship->removeRelationship(&affectedContactIds, relationshipDifManagers2, &error); QVERIFY(returnValue == false); QVERIFY(affectedContactIds.count() == 0); QVERIFY(error != QContactManager::NoError); } -bool TestCntRelationship::validateRelationshipFilter(const QContactRelationshipFilter::Role role, const QContactId contactId, const QList expectedContacts) +bool TestCntRelationship::validateRelationshipFilter(const QContactRelationship::Role role, const QContactId contactId, const QList expectedContacts) { QContactRelationshipFilter filter; filter.setRelationshipType(QContactRelationship::HasMember); filter.setRelatedContactRole(role); filter.setRelatedContactId(contactId); - QList result = m_manager->contactIds(filter); + QContactManager::Error err; + QList result = m_manager->contactIds(filter, QList(), &err); for(int i = 0; i < result.count(); i++) qDebug() << "result: " << result.at(i); - for(int i = 0; i < expectedContacts.count(); i++) - qDebug() << "expectedContacts: " << expectedContacts.at(i); + for(int j = 0; j < expectedContacts.count(); j++) + qDebug() << "expectedContacts: " << expectedContacts.at(j); return (result == expectedContacts); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntrelationship.h --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntrelationship.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntrelationship.h Mon May 03 13:18:40 2010 +0300 @@ -42,15 +42,11 @@ #define TESTRELATIONSHIP_H #include - -//Qt Contacts -#include +#include "cntsymbianengine.h" class CContactDatabase; class CntRelationship; -QTM_USE_NAMESPACE - class TestCntRelationship : public QObject { Q_OBJECT @@ -71,10 +67,10 @@ void invalidFirstAndSecondContactGroupRelationship(); private: - bool TestCntRelationship::validateRelationshipFilter(const QContactRelationshipFilter::Role role, const QContactId contactId, const QList expectedContacts); + bool validateRelationshipFilter(const QContactRelationship::Role role, const QContactId contactId, const QList expectedContacts); private: - QContactManager *m_manager; + CntSymbianEngine *m_manager; CContactDatabase *m_database; CntRelationship *m_relationship; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsqlsearch.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsqlsearch.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsqlsearch.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,6 +39,7 @@ ** ****************************************************************************/ + #include #include @@ -68,14 +69,14 @@ } void UT_CntSqlSearch::testPredictiveSearch() { - QString pattern = QString("202"); + QString pattern = QString("209"); QString result; - QString reference("SELECT contact_id FROM view2 WHERE (first_name_as_number LIKE % 202%) OR (last_name_as_number LIKE % 202%) OR (((first_name_as_number LIKE % 2%) OR (last_name_as_number LIKE % 2%)) AND ((first_name_as_number LIKE % 2%) OR (last_name_as_number LIKE % 2%))) ORDER BY first_name_as_number ASC;"); - result = mCntSqlSearch->CreatePredictiveSearch(pattern); - QVERIFY( !result.compare( reference) ); + QString reference("SELECT contact_id FROM view2 WHERE (first_name_as_number LIKE % 209%) OR (last_name_as_number LIKE % 209%) OR (last_name_as_number LIKE % 2%) OR ((first_name_as_number LIKE % 2%) AND (first_name_as_number LIKE %_ 2%)) OR ((last_name_as_number LIKE % 9%) AND (last_name_as_number LIKE %_ 9%)) ORDER BY first_name_as_number ASC"); + /* result = mCntSqlSearch->CreatePredictiveSearch(pattern); + QVERIFY( !result.compare( reference) );*/ pattern = QString("3"); - reference = QString("SELECT * FROM view3 WHERE (first_name_as_number LIKE % 3%) OR (last_name_as_number LIKE % 3%) ORDER BY first_name_as_number ASC;"); + reference = QString("SELECT contact_id FROM view3 ORDER BY first_name_as_number ASC;"); result = mCntSqlSearch->CreatePredictiveSearch(pattern); QVERIFY( !result.compare( reference) ); @@ -90,7 +91,7 @@ QVERIFY( !result.compare( reference) ); pattern = QString("1"); - reference = QString("SELECT * FROM view1 WHERE (first_name_as_number LIKE % 1%) OR (last_name_as_number LIKE % 1%) ORDER BY first_name_as_number ASC;"); + reference = QString("SELECT contact_id FROM view1 ORDER BY first_name_as_number ASC;"); result = mCntSqlSearch->CreatePredictiveSearch(pattern); QVERIFY( !result.compare( reference) ); pattern = QString("1"); } @@ -149,7 +150,7 @@ } void UT_CntSqlSearch::testIsSubStringSearch() -{ +{ QString pattern("102"); QCOMPARE(mCntSqlSearch->IsSubStringSearch(pattern), true); pattern = QString("12"); @@ -173,37 +174,37 @@ void UT_CntSqlSearch::testGetNumber() { QStringList numbers; - + QString pattern("102"); numbers = mCntSqlSearch->GetNumber(pattern); QCOMPARE(numbers.at(0), QString("1")); QCOMPARE(numbers.at(1), QString("2")); - + pattern = QString("12"); numbers = mCntSqlSearch->GetNumber(pattern); QCOMPARE(numbers.at(0), QString("12")); - + pattern = QString("01"); numbers = mCntSqlSearch->GetNumber(pattern); QCOMPARE(numbers.at(0), QString("1")); - + pattern = QString("012"); numbers = mCntSqlSearch->GetNumber(pattern); QCOMPARE(numbers.at(0), QString("12")); - + pattern = QString("00012"); numbers = mCntSqlSearch->GetNumber(pattern); QCOMPARE(numbers.at(0), QString("12")); - + pattern = QString("00012000"); numbers = mCntSqlSearch->GetNumber(pattern); QCOMPARE(numbers.at(0), QString("12")); - + pattern = QString("000100002"); numbers = mCntSqlSearch->GetNumber(pattern); QCOMPARE(numbers.at(0), QString("1")); QCOMPARE(numbers.at(1), QString("2")); - + pattern = QString("000100002000"); numbers = mCntSqlSearch->GetNumber(pattern); QCOMPARE(numbers.at(0), QString("1")); @@ -214,17 +215,17 @@ { QString pattern = QString("102"); QString result; - QString reference("(first_name_as_number LIKE % 102%) OR (last_name_as_number LIKE % 102%) OR (((first_name_as_number LIKE % 1%) OR (last_name_as_number LIKE % 1%)) AND ((first_name_as_number LIKE % 2%) OR (last_name_as_number LIKE % 2%)))"); + QString reference("(first_name_as_number LIKE % 102%) OR (last_name_as_number LIKE % 102%) OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%)) OR ((first_name_as_number LIKE % 2%) AND (first_name_as_number LIKE %_ 2%)) OR ((last_name_as_number LIKE % 2%) AND (last_name_as_number LIKE %_ 2%))"); result = mCntSqlSearch->CreateSubStringSearch(pattern); QVERIFY( !result.compare( reference) ); pattern = QString("00102"); - reference = QString("(first_name_as_number LIKE % 00102%) OR (last_name_as_number LIKE % 00102%) OR (((first_name_as_number LIKE % 1%) OR (last_name_as_number LIKE % 1%)) AND ((first_name_as_number LIKE % 2%) OR (last_name_as_number LIKE % 2%)))"); + reference = QString("(first_name_as_number LIKE % 00102%) OR (last_name_as_number LIKE % 00102%) OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%)) OR ((first_name_as_number LIKE % 2%) AND (first_name_as_number LIKE %_ 2%)) OR ((last_name_as_number LIKE % 2%) AND (last_name_as_number LIKE %_ 2%))"); result = mCntSqlSearch->CreateSubStringSearch(pattern); QVERIFY( !result.compare( reference) ); pattern = QString("0010200"); - reference = QString("(first_name_as_number LIKE % 0010200%) OR (last_name_as_number LIKE % 0010200%) OR (((first_name_as_number LIKE % 1%) OR (last_name_as_number LIKE % 1%)) AND ((first_name_as_number LIKE % 2%) OR (last_name_as_number LIKE % 2%)))"); + reference = QString("(first_name_as_number LIKE % 0010200%) OR (last_name_as_number LIKE % 0010200%) OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%)) OR ((first_name_as_number LIKE % 2%) AND (first_name_as_number LIKE %_ 2%)) OR ((last_name_as_number LIKE % 2%) AND (last_name_as_number LIKE %_ 2%))"); result = mCntSqlSearch->CreateSubStringSearch(pattern); QVERIFY( !result.compare( reference) ); @@ -246,11 +247,11 @@ QString result; result = mCntSqlSearch->CreateStringSearch(numbers); QVERIFY( result == "(first_name_as_number LIKE % 102%) OR (last_name_as_number LIKE % 102%)" ); - + numbers = QString("00012"); result = mCntSqlSearch->CreateStringSearch(numbers); QVERIFY( result == "(first_name_as_number LIKE % 00012%) OR (last_name_as_number LIKE % 00012%)" ); - + numbers = QString("000120012"); result = mCntSqlSearch->CreateStringSearch(numbers); QVERIFY( result == "(first_name_as_number LIKE % 000120012%) OR (last_name_as_number LIKE % 000120012%)" ); @@ -262,7 +263,6 @@ numbers = QString("00012001200"); result = mCntSqlSearch->CreateStringSearch(numbers); QVERIFY( result == "(first_name_as_number LIKE % 00012001200%) OR (last_name_as_number LIKE % 00012001200%)" ); - } void UT_CntSqlSearch::testCreateSpaceStringSearch() @@ -271,28 +271,27 @@ numbers << "1"; QString result; result = mCntSqlSearch->CreateSpaceStringSearch(numbers); - QVERIFY( result == " OR ((first_name_as_number LIKE % 1%) OR (last_name_as_number LIKE % 1%))" ); - + QVERIFY( result == " OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%))" ); + numbers.clear(); numbers << "1" << "2"; - QString reference(" OR (((first_name_as_number LIKE % 1%) OR (last_name_as_number LIKE % 1%)) AND ((first_name_as_number LIKE % 2%) OR (last_name_as_number LIKE % 2%)))"); + QString reference(" OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%)) OR ((first_name_as_number LIKE % 2%) AND (first_name_as_number LIKE %_ 2%)) OR ((last_name_as_number LIKE % 2%) AND (last_name_as_number LIKE %_ 2%))"); result = mCntSqlSearch->CreateSpaceStringSearch(numbers); QVERIFY( !result.compare( reference) ); numbers.clear(); - numbers << "1" << "21"; - reference = QString(" OR (((first_name_as_number LIKE % 1%) OR (last_name_as_number LIKE % 1%)) AND ((first_name_as_number LIKE % 21%) OR (last_name_as_number LIKE % 21%)))"); + numbers << "1" << "21"; + reference = QString(" OR ((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%)) OR ((first_name_as_number LIKE % 21%) AND (first_name_as_number LIKE %_ 21%)) OR ((last_name_as_number LIKE % 21%) AND (last_name_as_number LIKE %_ 21%))"); result = mCntSqlSearch->CreateSpaceStringSearch(numbers); QVERIFY( !result.compare( reference)); - } void UT_CntSqlSearch::testCreateSpaceString() { - QString number("1"); + QString pattern("1"); QString result; - result = mCntSqlSearch->CreateSpaceString(number); - QVERIFY( result == QString("((first_name_as_number LIKE % 1%) OR (last_name_as_number LIKE % 1%))") ); - + QString reference("((first_name_as_number LIKE % 1%) AND (first_name_as_number LIKE %_ 1%)) OR ((last_name_as_number LIKE % 1%) AND (last_name_as_number LIKE %_ 1%))"); + result = mCntSqlSearch->CreateSpaceString(pattern); + QVERIFY(!result.compare(reference)); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsqlsearch.h --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsqlsearch.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsqlsearch.h Mon May 03 13:18:40 2010 +0300 @@ -1,19 +1,44 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 UT_CNTSQLSEARCH_H #define UT_CNTSQLSEARCH_H @@ -52,7 +77,6 @@ void testCreateStringSearch(); void testCreateSpaceStringSearch(); void testCreateSpaceString(); - private: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsymbiandatabase.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsymbiandatabase.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsymbiandatabase.cpp Mon May 03 13:18:40 2010 +0300 @@ -59,7 +59,7 @@ QContactManagerEngine *engine = 0; QContactManager::Error error; CntSymbianDatabase *db = 0; - db = new CntSymbianDatabase(engine, error); + db = new CntSymbianDatabase(engine, &error); QVERIFY(db != 0); QVERIFY(db->m_engine == engine); #ifndef SYMBIAN_BACKEND_USE_SQLITE @@ -74,7 +74,7 @@ QContactManagerEngine *engine = 0; QContactManager::Error error; CntSymbianDatabase *db; - db = new CntSymbianDatabase(engine, error); + db = new CntSymbianDatabase(engine, &error); QVERIFY(db != 0); QVERIFY(error == QContactManager::NoError); @@ -91,7 +91,7 @@ QContactManagerEngine *engine = 0; QContactManager::Error error; CntSymbianDatabase *db; - db = new CntSymbianDatabase(engine, error); + db = new CntSymbianDatabase(engine, &error); QVERIFY(db != 0); QVERIFY(error == QContactManager::NoError); @@ -120,7 +120,7 @@ QContactManagerEngine *engine = 0; QContactManager::Error error; CntSymbianDatabase *db = 0; - db = new CntSymbianDatabase(engine, error); + db = new CntSymbianDatabase(engine, &error); QVERIFY(db != 0); QVERIFY(db->m_contactDatabase != 0); // This only defined when the mock database is used diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsymbianengine.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsymbianengine.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsymbianengine.cpp Mon May 03 13:18:40 2010 +0300 @@ -57,7 +57,7 @@ QContactManager::Error error; QMap emptyParameters; - m_engine = new CntSymbianEngine(emptyParameters, error); + m_engine = new CntSymbianEngine(emptyParameters, &error); if (error == QContactManager::NoError) removeAllContacts(); else @@ -83,13 +83,14 @@ { if(m_engine) { // Empty cnt database - QContactManager::Error err; + QContactManager::Error err(QContactManager::NoError); QList sortOrders; - QList cnts_ids = m_engine->contactIds(sortOrders, err); + QContactFilter defaultFilter = QContactFilter(); + QList cnts_ids = m_engine->contactIds(defaultFilter, sortOrders, &err); QVERIFY(err == QContactManager::NoError); for(int i=0; iremoveContact(cnts_ids[i], err)); + QVERIFY(m_engine->removeContact(cnts_ids[i], &err)); } } } @@ -101,7 +102,7 @@ // Ctor CntSymbianEngine *ce; - ce = new CntSymbianEngine(params, error); + ce = new CntSymbianEngine(params, &error); QVERIFY(ce != NULL); QVERIFY(error == QContactManager::NoError); if (error == QContactManager::NoError) { @@ -123,8 +124,7 @@ QVERIFY(ce->m_relationship == ce1->m_relationship); QVERIFY(ce->m_transformContact == ce1->m_transformContact); - // dref - ce->deref(); + delete ce; /* QVERIFY(ce->m_contactFilter == 0xDEDEDEDE); QVERIFY(ce->m_contactSorter == 0xDEDEDEDE); @@ -139,28 +139,29 @@ QContactManager::Error err; QList sortOrders; QContactId empty; + QContactFilter defaultFilter = QContactFilter(); - int init_count = m_engine->contactIds(sortOrders, err).count(); + int init_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); QVERIFY(err == QContactManager::NoError); // Save a "NULL" contact - QVERIFY(!m_engine->saveContact(NULL, err)); + QVERIFY(!m_engine->saveContact(NULL, &err)); QVERIFY(err == QContactManager::BadArgumentError); - int current_count = m_engine->contactIds(sortOrders, err).count(); + int current_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); QVERIFY(err == QContactManager::NoError); QVERIFY(init_count == current_count); // Save a contact that is not in database QContact invaId; - QVERIFY(m_engine->saveContact(&invaId, err)); // Add to db + QVERIFY(m_engine->saveContact(&invaId, &err)); // Add to db QVERIFY(err == QContactManager::NoError); QContactId cId = invaId.id(); - m_engine->removeContact(invaId.localId(), err); // Ensure not in db + m_engine->removeContact(invaId.localId(), &err); // Ensure not in db QVERIFY(err == QContactManager::NoError); invaId.setId(cId); - QVERIFY(!m_engine->saveContact(&invaId, err)); // Update non existent contact + QVERIFY(!m_engine->saveContact(&invaId, &err)); // Update non existent contact QVERIFY(err == QContactManager::DoesNotExistError); - current_count = m_engine->contactIds(sortOrders, err).count(); + current_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); QVERIFY(err == QContactManager::NoError); QVERIFY(init_count == current_count); @@ -168,23 +169,23 @@ alice.setType("Jargon"); // Save a "non contact(Jargon) type" contact - QVERIFY(!m_engine->saveContact(&alice, err)); + QVERIFY(!m_engine->saveContact(&alice, &err)); QVERIFY(err == QContactManager::InvalidDetailError); QVERIFY(alice.id() == empty); QVERIFY(alice.localId() == 0); - current_count = m_engine->contactIds(sortOrders, err).count(); + current_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); QVERIFY(err == QContactManager::NoError); QVERIFY(init_count == current_count); // Save a valid contact alice.setType(QContactType::TypeContact); - QVERIFY(m_engine->saveContact(&alice, err)); + QVERIFY(m_engine->saveContact(&alice, &err)); QVERIFY(err == QContactManager::NoError); QVERIFY(alice.id() != empty); QVERIFY(alice.localId() != 0); QString uri = QString(QLatin1String(CNT_SYMBIAN_MANAGER_NAME)); QVERIFY(alice.id().managerUri().contains(uri, Qt::CaseInsensitive)); - current_count = m_engine->contactIds(sortOrders, err).count(); + current_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); QVERIFY(err == QContactManager::NoError); QVERIFY(init_count + 1 == current_count); @@ -194,7 +195,7 @@ QContactName en; en.setCustomLabel("ccc"); QVERIFY(g.saveDetail(&en)); - QVERIFY(m_engine->saveContact(&g, err)); + QVERIFY(m_engine->saveContact(&g, &err)); QVERIFY(err == QContactManager::NoError); QVERIFY(g.id() != empty); QVERIFY(g.localId() != 0); @@ -232,11 +233,12 @@ c.saveDetail(&email); c.setPreferredDetail("email", email); - QVERIFY(m_engine->saveContact(&c, err)); + QVERIFY(m_engine->saveContact(&c, &err)); QVERIFY(err == QContactManager::NoError); //fetch the saved contact and check preferred details - QContact fetched = m_engine->contact(c.localId(), QStringList(), err); + QContactFetchHint hint = QContactFetchHint(); + QContact fetched = m_engine->contact(c.localId(), hint, &err); QVERIFY(err == QContactManager::NoError); QContactDetail callDetail1 = fetched.preferredDetail("call"); @@ -267,11 +269,11 @@ c2.setPreferredDetail("videocall", number1); c2.setPreferredDetail("message", number1); - QVERIFY(m_engine->saveContact(&c2, err)); + QVERIFY(m_engine->saveContact(&c2, &err)); QVERIFY(err == QContactManager::NoError); //fetch the saved contact and check preferred details - QContact fetched2 = m_engine->contact(c2.localId(), QStringList(), err); + QContact fetched2 = m_engine->contact(c2.localId(), hint, &err); QVERIFY(err == QContactManager::NoError); QContactDetail callDetail4 = fetched2.preferredDetail("call"); @@ -293,20 +295,21 @@ void TestSymbianEngine::saveContacts() { QContactManager::Error err; + QContactFilter defaultFilter = QContactFilter(); QList sortOrders; QList contacts; QContactId empty; int count = 5; - int init_count = m_engine->contactIds(sortOrders, err).count(); + int init_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); QVERIFY(err == QContactManager::NoError); // NULL QMap errorMap; - QVERIFY(!m_engine->saveContacts(NULL, &errorMap, err)); + QVERIFY(!m_engine->saveContacts(NULL, &errorMap, &err)); QVERIFY(errorMap.count() == 0); QVERIFY(err == QContactManager::BadArgumentError); - int current_count = m_engine->contactIds(sortOrders, err).count(); + int current_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); QVERIFY(err == QContactManager::NoError); QVERIFY(init_count == current_count); @@ -316,16 +319,16 @@ alice.setType("Jargon"); contacts.append(alice); } - QVERIFY(!m_engine->saveContacts(&contacts, &errorMap, err)); + QVERIFY(!m_engine->saveContacts(&contacts, &errorMap, &err)); QVERIFY(err == QContactManager::InvalidDetailError); foreach(QContactManager::Error err, errorMap) { QVERIFY(err == QContactManager::InvalidDetailError); } - foreach(QContact c, contacts) { + foreach(const QContact& c, contacts) { QVERIFY(c.id() == empty); QVERIFY(c.localId() == 0); } - current_count = m_engine->contactIds(sortOrders, err).count(); + current_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); QVERIFY(err == QContactManager::NoError); QVERIFY(init_count == current_count); contacts.clear(); @@ -336,24 +339,24 @@ alice.setType(QContactType::TypeContact); contacts.append(alice); } - QVERIFY(m_engine->saveContacts(&contacts, &errorMap, err)); + QVERIFY(m_engine->saveContacts(&contacts, &errorMap, &err)); QVERIFY(err == QContactManager::NoError); foreach(QContactManager::Error err, errorMap) { QVERIFY(err == QContactManager::NoError); } QString uri = QString(QLatin1String(CNT_SYMBIAN_MANAGER_NAME)); - foreach(QContact c, contacts) { + foreach(const QContact& c, contacts) { QVERIFY(c.id() != empty); QVERIFY(c.localId() != 0); QVERIFY(c.id().managerUri().contains(uri, Qt::CaseInsensitive)); } - current_count = m_engine->contactIds(sortOrders, err).count(); + current_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); QVERIFY(err == QContactManager::NoError); QVERIFY(init_count + count == current_count); contacts.clear(); // Save with one invalid contact in list - init_count = m_engine->contactIds(sortOrders, err).count(); + init_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); for(int i=0; isaveContacts(&contacts, &errorMap, err)); + QVERIFY(!m_engine->saveContacts(&contacts, &errorMap, &err)); QVERIFY(err == QContactManager::InvalidDetailError); foreach(QContactManager::Error err, errorMap) { QVERIFY(err == QContactManager::InvalidDetailError); @@ -380,7 +383,7 @@ QVERIFY(c.id().managerUri().contains(uri, Qt::CaseInsensitive)); } } - current_count = m_engine->contactIds(sortOrders, err).count(); + current_count = m_engine->contactIds(defaultFilter, sortOrders, &err).count(); QVERIFY(err == QContactManager::NoError); QVERIFY(init_count + count == current_count); contacts.clear(); @@ -389,21 +392,22 @@ void TestSymbianEngine::retrieveContact() { QContactManager::Error err; + QContactFetchHint hint = QContactFetchHint(); QContact alice; alice.setType(QContactType::TypeContact); - QVERIFY(m_engine->saveContact(&alice, err)); + QVERIFY(m_engine->saveContact(&alice, &err)); QVERIFY(err == QContactManager::NoError); // Retrieve "non contact" - QContact c = m_engine->contact(0, QStringList(), err); + QContact c = m_engine->contact(0, hint, &err); QVERIFY(&c != NULL); QVERIFY(c.localId() == 0); QVERIFY(err == QContactManager::DoesNotExistError); // Retrieve valid existing contact QContactLocalId aid = alice.localId(); - c = m_engine->contact(aid, QStringList(), err); + c = m_engine->contact(aid, hint, &err); QVERIFY(&c != NULL); QVERIFY(c.localId() == aid); QVERIFY(err == QContactManager::NoError); @@ -413,6 +417,8 @@ { QContactManager::Error err; QContactFilter f; + QContactFilter defaultFilter = QContactFilter(); + QContactFetchHint hint = QContactFetchHint(); QList s; QList cnt_ids; @@ -427,7 +433,7 @@ number.setSubTypes("Mobile"); number.setNumber("12345678"); QVERIFY(c.saveDetail(&number)); - QVERIFY(m_engine->saveContact(&c, err)); + QVERIFY(m_engine->saveContact(&c, &err)); QVERIFY(err == QContactManager::NoError); QContact d; @@ -435,7 +441,7 @@ QContactName dn; dn.setFirstName("bbb"); QVERIFY(d.saveDetail(&dn)); - QVERIFY(m_engine->saveContact(&d, err)); + QVERIFY(m_engine->saveContact(&d, &err)); QVERIFY(err == QContactManager::NoError); QContact e; @@ -443,38 +449,47 @@ QContactName en; en.setCustomLabel("ccc"); QVERIFY(e.saveDetail(&en)); - QVERIFY(m_engine->saveContact(&e, err)); + QVERIFY(m_engine->saveContact(&e, &err)); QVERIFY(err == QContactManager::NoError); // Retrieve all contacts - cnt_ids = m_engine->contactIds(f, s, err); + cnt_ids = m_engine->contactIds(f, s, &err); QVERIFY(err == QContactManager::NoError); + QVERIFY(cnt_ids.count() > 0); QContactDetailFilter mobileFilter; mobileFilter.setDetailDefinitionName(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldSubTypes); mobileFilter.setValue(QLatin1String(QContactPhoneNumber::SubTypeMobile)); // Retrieve contacts with mobile number - cnt_ids = m_engine->contactIds(mobileFilter, s, err); + cnt_ids = m_engine->contactIds(mobileFilter, s, &err); QVERIFY(err == QContactManager::NoError); + QVERIFY(cnt_ids.count() > 0); + + // Slow filter + QList fast_ids = m_engine->contactIds(mobileFilter, s, &err); + QList all_ids = m_engine->contactIds(f, s, &err); + QList slow_ids = m_engine->slowFilter(mobileFilter, all_ids, &err); + QVERIFY(err == QContactManager::NoError); + QVERIFY(slow_ids.count() == fast_ids.count()); QContactDetailFilter invalidFilter; mobileFilter.setDetailDefinitionName("asfdasdf", "asdfasdf"); // Retrieve contacts with invalid filter - cnt_ids = m_engine->contactIds(invalidFilter, s, err); + cnt_ids = m_engine->contactIds(invalidFilter, s, &err); QVERIFY(err == QContactManager::NotSupportedError); // Retrieve sorted contacts QContactSortOrder sortOrder; QList s1; - sortOrder.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); + sortOrder.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirstName); sortOrder.setBlankPolicy(QContactSortOrder::BlanksLast); sortOrder.setDirection(Qt::AscendingOrder); sortOrder.setCaseSensitivity(Qt::CaseInsensitive); s1.append(sortOrder); - cnt_ids = m_engine->contactIds(s1, err); + cnt_ids = m_engine->contactIds(defaultFilter, s1, &err); QVERIFY(err == QContactManager::NoError); // Retrieve with invalid sort order @@ -482,16 +497,27 @@ QList s2; sortOrder1.setDetailDefinitionName("asdfasdf", "asdfasd"); - cnt_ids = m_engine->contactIds(s2, err); + cnt_ids = m_engine->contactIds(defaultFilter, s2, &err); + QVERIFY(err == QContactManager::NoError); + + // Retrieve full contacts (with all details) + QList contactList; + QList sortOrders; + QStringList definitionRestrictions; + contactList = m_engine->contacts(defaultFilter, sortOrders, hint, &err); + QVERIFY(err == QContactManager::NoError); + QContactFilter filter; + contactList = m_engine->contacts(filter, sortOrders, hint, &err); QVERIFY(err == QContactManager::NoError); } void TestSymbianEngine::updateContact() { QContactManager::Error err; + QContactFetchHint hint = QContactFetchHint(); QContact c; - QVERIFY(m_engine->saveContact(&c, err)); + QVERIFY(m_engine->saveContact(&c, &err)); QVERIFY(err == QContactManager::NoError); int details_before = c.details().count(); @@ -508,11 +534,11 @@ // update the contact QContactLocalId id = c.localId(); - QVERIFY(m_engine->saveContact(&c, err)); + QVERIFY(m_engine->saveContact(&c, &err)); QVERIFY(err == QContactManager::NoError); // Verify that contact has been updated - QContact d = m_engine->contact(id, QStringList(), err); + QContact d = m_engine->contact(id, hint, &err); QVERIFY(err == QContactManager::NoError); QVERIFY(d.localId() == id); QVERIFY(d.details().count() > details_before); @@ -525,7 +551,7 @@ QContactManager::Error err; QContact c; - QVERIFY(m_engine->saveContact(&c, err)); + QVERIFY(m_engine->saveContact(&c, &err)); QVERIFY(err == QContactManager::NoError); QContactLocalId initialId = c.localId(); @@ -549,7 +575,7 @@ c.saveDetail(&number); //verify that the same contact was updated - QVERIFY(m_engine->saveContact(&c, err)); + QVERIFY(m_engine->saveContact(&c, &err)); QContactLocalId id = c.localId(); QVERIFY(err == QContactManager::NoError); QVERIFY(initialId == id); @@ -558,53 +584,50 @@ void TestSymbianEngine::removeContact() { QContactManager::Error err; + QContactFetchHint hint = QContactFetchHint(); QContact c; c.setType(QContactType::TypeContact); - QVERIFY(m_engine->saveContact(&c, err)); + QVERIFY(m_engine->saveContact(&c, &err)); QVERIFY(err == QContactManager::NoError); // Remove existing contact QContactLocalId id = c.localId(); - QVERIFY(m_engine->removeContact(id, err)); + QVERIFY(m_engine->removeContact(id, &err)); QVERIFY(err == QContactManager::NoError); // Verify that contact has been removed - QContact f = m_engine->contact(id, QStringList(), err); + QContact f = m_engine->contact(id, hint, &err); QVERIFY(f.localId() == 0); QVERIFY(err == QContactManager::DoesNotExistError); // Remove non existent contact - QVERIFY(!m_engine->removeContact(0, err)); + QVERIFY(!m_engine->removeContact(0, &err)); QVERIFY(err == QContactManager::DoesNotExistError); } void TestSymbianEngine::removeContacts() { QContactManager::Error err; + QContactFetchHint hint = QContactFetchHint(); QList contacts; int count = 5; // Remove non existent contacts QMap errorMap; - QVERIFY(m_engine->removeContacts(&contacts, &errorMap, err)); + QVERIFY(m_engine->removeContacts(contacts, &errorMap, &err)); QVERIFY(err == QContactManager::NoError); QVERIFY(errorMap.count() == 0); - // NULL argument - QVERIFY(!m_engine->removeContacts(NULL, &errorMap, err)); - QVERIFY(errorMap.count() == 0); - QVERIFY(err == QContactManager::BadArgumentError); - // Remove existing contacts for(int i=0; isaveContact(&c, err)); + QVERIFY(m_engine->saveContact(&c, &err)); QVERIFY(err == QContactManager::NoError); contacts.append(c.localId()); } - QVERIFY(m_engine->removeContacts(&contacts, &errorMap, err)); + QVERIFY(m_engine->removeContacts(contacts, &errorMap, &err)); QVERIFY(err == QContactManager::NoError); foreach(QContactManager::Error e, errorMap) { QVERIFY(e == QContactManager::NoError); @@ -612,7 +635,7 @@ // Verify that contacts have been removed for(int i=0; icontact(contacts[i], QStringList(), err); + QContact f = m_engine->contact(contacts[i], hint, &err); QVERIFY(f.localId() == 0); QVERIFY(err == QContactManager::DoesNotExistError); } @@ -622,20 +645,20 @@ for(int i=0; isaveContact(&c, err)); + QVERIFY(m_engine->saveContact(&c, &err)); QVERIFY(err == QContactManager::NoError); contacts.append(c.localId()); } contacts.insert(3, 0); - QVERIFY(!m_engine->removeContacts(&contacts, &errorMap, err)); + QVERIFY(!m_engine->removeContacts(contacts, &errorMap, &err)); QVERIFY(err == QContactManager::DoesNotExistError); foreach(QContactManager::Error e, errorMap) { QVERIFY(e == QContactManager::DoesNotExistError); } for(int i=0; icontact(contacts[i], QStringList(), err); + QContact f = m_engine->contact(contacts[i], hint, &err); QVERIFY(f.localId() == 0); QVERIFY(err == QContactManager::DoesNotExistError); } @@ -650,22 +673,22 @@ QContactName ownName; ownName.setFirstName("Own"); own.saveDetail(&ownName); - QVERIFY(m_engine->saveContact(&own, err)); + QVERIFY(m_engine->saveContact(&own, &err)); QVERIFY(err == QContactManager::NoError); // Set a non existent contact as own card and verify // ensure this contact does not exist in dbase QContactLocalId id(12); - m_engine->removeContact(id, err); // Dont test err. May or may not be in dbase - QVERIFY(!m_engine->setSelfContactId(id, err)); // does not exist + m_engine->removeContact(id, &err); // Don't test err. May or may not be in dbase + QVERIFY(!m_engine->setSelfContactId(id, &err)); // does not exist QVERIFY(err == QContactManager::DoesNotExistError); // Test a "0" contact id - QVERIFY(!m_engine->setSelfContactId(0, err)); // Bad argument + QVERIFY(!m_engine->setSelfContactId(0, &err)); // Bad argument QVERIFY(err == QContactManager::BadArgumentError); // Set an existent contact as own card - QVERIFY(m_engine->setSelfContactId(own.localId(), err)); + QVERIFY(m_engine->setSelfContactId(own.localId(), &err)); QVERIFY(err == QContactManager::NoError); } @@ -678,19 +701,19 @@ QContactName ownName; ownName.setFirstName("Own"); own.saveDetail(&ownName); - QVERIFY(m_engine->saveContact(&own, err)); + QVERIFY(m_engine->saveContact(&own, &err)); QVERIFY(err == QContactManager::NoError); - QVERIFY(m_engine->setSelfContactId(own.localId(), err)); + QVERIFY(m_engine->setSelfContactId(own.localId(), &err)); QVERIFY(err == QContactManager::NoError); // Fetch existing self contact - QContactLocalId own_id = m_engine->selfContactId(err); + QContactLocalId own_id = m_engine->selfContactId(&err); QVERIFY(err == QContactManager::NoError); QVERIFY(own_id == own.localId()); // Remove self contact and verify - QVERIFY(m_engine->removeContact(own.localId(), err)); - QContactLocalId idr = m_engine->selfContactId(err); + QVERIFY(m_engine->removeContact(own.localId(), &err)); + QContactLocalId idr = m_engine->selfContactId(&err); QVERIFY(err == QContactManager::DoesNotExistError); QVERIFY(idr == 0); } @@ -765,7 +788,7 @@ QContact g; g.setType(QContactType::TypeGroup); - QVERIFY(m_engine->saveContact(&g, err)); + QVERIFY(m_engine->saveContact(&g, &err)); QVERIFY(err == QContactManager::NoError); QVERIFY(g.id() != empty); QVERIFY(g.localId() != 0); @@ -776,7 +799,7 @@ QContact g1; g1.setType("Jargon"); - QVERIFY(!m_engine->saveContact(&g1, err)); + QVERIFY(!m_engine->saveContact(&g1, &err)); QVERIFY(err == QContactManager::InvalidDetailError); QVERIFY(g1.id() == empty); QVERIFY(g1.localId() == 0); @@ -792,16 +815,16 @@ filter.setDetailDefinitionName(QContactType::DefinitionName, QContactType::FieldType); filter.setValue(QString(QLatin1String(QContactType::TypeGroup))); - QList grp_ids = m_engine->contactIds(filter, s, err); + QList grp_ids = m_engine->contactIds(filter, s, &err); QVERIFY(err == QContactManager::NoError); QVERIFY(err == QContactManager::NoError); QContact g; g.setType(QContactType::TypeGroup); - QVERIFY(m_engine->saveContact(&g, err)); + QVERIFY(m_engine->saveContact(&g, &err)); QVERIFY(err == QContactManager::NoError); - QList grp_ids1 = m_engine->contactIds(filter, s, err); + QList grp_ids1 = m_engine->contactIds(filter, s, &err); QVERIFY(err == QContactManager::NoError); QVERIFY(grp_ids.count() + 1 == grp_ids1.count()); @@ -814,9 +837,9 @@ QContactManager::Error error; QContact a; - QVERIFY(m_engine->saveContact(&a, error)); + QVERIFY(m_engine->saveContact(&a, &error)); QContact b; - QVERIFY(m_engine->saveContact(&b, error)); + QVERIFY(m_engine->saveContact(&b, &error)); QContactRelationship rel; rel.setFirst(a.id()); @@ -824,7 +847,7 @@ rel.setRelationshipType(QContactRelationship::HasSpouse); // Add relationship - m_engine->saveRelationship(&rel, error); + m_engine->saveRelationship(&rel, &error); bool isValid(false); if (error == QContactManager::NoError || error == QContactManager::NotSupportedError) @@ -833,17 +856,19 @@ QVERIFY(isValid); // Remove relationship - m_engine->removeRelationship(rel, error); + m_engine->removeRelationship(rel, &error); if (error == QContactManager::NoError || error == QContactManager::NotSupportedError) isValid = true; else isValid = false; QVERIFY(isValid); - - QStringList supportedRelationships = + + // TODO: replacement? + /*QStringList supportedRelationships = m_engine->supportedRelationshipTypes(QContactType::TypeGroup); QVERIFY(supportedRelationships.contains(QContactRelationship::HasMember)); + */ } void TestSymbianEngine::batchRelationships() @@ -853,9 +878,9 @@ QContactManager::Error error; QContact a; - QVERIFY(m_engine->saveContact(&a, error)); + QVERIFY(m_engine->saveContact(&a, &error)); QContact b; - QVERIFY(m_engine->saveContact(&b, error)); + QVERIFY(m_engine->saveContact(&b, &error)); QContactRelationship rel; rel.setFirst(a.id()); @@ -867,9 +892,9 @@ bool isValid(false); // Add relationships - QList errors = m_engine->saveRelationships(&list, error); - QVERIFY(&errors != NULL); - foreach(QContactManager::Error err, errors) { + QMap errorMap; + QVERIFY(m_engine->saveRelationships(&list, &errorMap, &error)); + foreach(QContactManager::Error err, errorMap) { if (err == QContactManager::NoError || err == QContactManager::NotSupportedError) isValid = true; @@ -879,10 +904,10 @@ } // fetch relationships - QContactRelationshipFilter::Role role; - role = QContactRelationshipFilter::First; + QContactRelationship::Role role; + role = QContactRelationship::First; list.clear(); - list = m_engine->relationships(QContactRelationship::HasSpouse, a.id(), role, error); + list = m_engine->relationships(QContactRelationship::HasSpouse, a.id(), role, &error); QVERIFY(&list != NULL); if (error == QContactManager::NoError || error == QContactManager::NotSupportedError) @@ -892,9 +917,8 @@ QVERIFY(isValid); // Remove relationships - errors = m_engine->removeRelationships(list, error); - QVERIFY(&errors != NULL); - foreach(QContactManager::Error err, errors) { + QVERIFY(m_engine->removeRelationships(list, &errorMap, &error)); + foreach(QContactManager::Error err, errorMap) { if (err == QContactManager::NoError || err == QContactManager::NotSupportedError) isValid = true; @@ -915,7 +939,7 @@ QContactManager::Error err = QContactManager::NoError; QContact empty; - QString label = m_engine->synthesizedDisplayLabel(empty, err); + QString label = m_engine->synthesizedDisplayLabel(empty, &err); QVERIFY(err == QContactManager::NoError); QVERIFY(label == QString("Unnamed")); @@ -923,7 +947,7 @@ QContactName fn; fn.setFirstName("Alice"); first.saveDetail(&fn); - label = m_engine->synthesizedDisplayLabel(first, err); + label = m_engine->synthesizedDisplayLabel(first, &err); QVERIFY(err == QContactManager::NoError); QVERIFY(label == QString("Alice")); @@ -931,7 +955,7 @@ QContactName ln; ln.setLastName("Jones"); last.saveDetail(&ln); - label = m_engine->synthesizedDisplayLabel(last, err); + label = m_engine->synthesizedDisplayLabel(last, &err); QVERIFY(err == QContactManager::NoError); QVERIFY(label == QString("Jones")); @@ -942,13 +966,13 @@ org.setTitle("Assistant Manager"); org.setLocation("Nokia Cyber Park"); orgContact.saveDetail(&org); - label = m_engine->synthesizedDisplayLabel(orgContact, err); + label = m_engine->synthesizedDisplayLabel(orgContact, &err); QVERIFY(err == QContactManager::NoError); QVERIFY(label == QString("Nokia")); QContact jargon; jargon.setType("jargon"); - label = m_engine->synthesizedDisplayLabel(jargon, err); + label = m_engine->synthesizedDisplayLabel(jargon, &err); QVERIFY(err == QContactManager::InvalidContactTypeError); QVERIFY(label.isEmpty()); @@ -957,7 +981,7 @@ QContactName gn; gn.setCustomLabel("grouplable"); group.saveDetail(&gn); - label = m_engine->synthesizedDisplayLabel(group, err); + label = m_engine->synthesizedDisplayLabel(group, &err); QVERIFY(err == QContactManager::NoError); QVERIFY(label == QString("grouplable")); } @@ -968,13 +992,140 @@ QContactManager::Error err; // Wrong contact type - defs = m_engine->detailDefinitions("aerafa", err); + defs = m_engine->detailDefinitions("aerafa", &err); QVERIFY(err = QContactManager::InvalidContactTypeError); QVERIFY(defs.count() == 0); // Valid defs - defs = m_engine->detailDefinitions(QContactType::TypeContact, err); + defs = m_engine->detailDefinitions(QContactType::TypeContact, &err); QVERIFY(err == QContactManager::NoError); - defs = m_engine->detailDefinitions(QContactType::TypeGroup, err); + defs = m_engine->detailDefinitions(QContactType::TypeGroup, &err); QVERIFY(err == QContactManager::NoError); } + +void TestSymbianEngine::asyncRequests() +{ + //create a contact + QContactManager::Error err; + QContact dummy; + dummy.setType(QContactType::TypeContact); + QContactName name; + name.setFirstName("dummy"); + dummy.saveDetail(&name); + QVERIFY(m_engine->saveContact(&dummy, &err)); + QVERIFY(err == QContactManager::NoError); + + //create a group with members + QContact groupContact; + groupContact.setType(QContactType::TypeGroup); + m_engine->saveContact(&groupContact, &err); + QVERIFY(err == QContactManager::NoError); + QContactRelationship relationship; + relationship.setRelationshipType(QContactRelationship::HasMember); + relationship.setFirst(groupContact.id()); + relationship.setSecond(dummy.id()); + bool returnValue(false); + returnValue = m_engine->saveRelationship(&relationship, &err); + QVERIFY(returnValue == true); + QVERIFY(err == QContactManager::NoError); + + //fetch request + QContactFetchRequest fetch; + QVERIFY(m_engine->startRequest(&fetch)); + QTest::qWait(1000); //1sec + QVERIFY(fetch.error() == QContactManager::NoError); + QVERIFY(fetch.state() == QContactFetchRequest::FinishedState); + QVERIFY(fetch.contacts().count() > 0); + + //fetch ids request + QContactLocalIdFetchRequest fetchIds; + QVERIFY(m_engine->startRequest(&fetchIds)); + QTest::qWait(1000); //1sec + QVERIFY(fetchIds.error() == QContactManager::NoError); + QVERIFY(fetchIds.state() == QContactFetchRequest::FinishedState); + QVERIFY(fetchIds.ids().count() > 0); + + //save request + QContactSaveRequest saveReq; + QContact c; + c.setType(QContactType::TypeContact); + QList contactList; + contactList += c; + saveReq.setContacts(contactList); + QVERIFY(m_engine->startRequest(&saveReq)); + QTest::qWait(1000); //1sec + QVERIFY(saveReq.error() == QContactManager::NoError); + QVERIFY(saveReq.state() == QContactFetchRequest::FinishedState); + QVERIFY(saveReq.contacts().count() > 0); + + //remove request + QContactRemoveRequest removeReq; + QList idList; + idList += saveReq.contacts().at(0).localId(); + removeReq.setContactIds(idList); + QVERIFY(m_engine->startRequest(&removeReq)); + QTest::qWait(1000); //1sec + int err_temp = removeReq.error(); + QVERIFY(removeReq.error() == QContactManager::NoError); + QVERIFY(removeReq.state() == QContactFetchRequest::FinishedState); + + //detail definition request + QContactDetailDefinitionFetchRequest detDefReq; + detDefReq.setContactType(QContactType::TypeContact); + QStringList defList; + defList += QContactName::DefinitionName; + detDefReq.setDefinitionNames(defList); + QVERIFY(m_engine->startRequest(&detDefReq)); + QTest::qWait(1000); //1sec + QVERIFY(detDefReq.error() == QContactManager::NoError); + QVERIFY(detDefReq.state() == QContactFetchRequest::FinishedState); + + //relationship fetch request + QContactRelationshipFetchRequest relFetchReq; + relFetchReq.setFirst(groupContact.id()); + relFetchReq.setSecond(dummy.id()); + relFetchReq.setRelationshipType(QContactRelationship::HasMember); + QVERIFY(m_engine->startRequest(&relFetchReq)); + QTest::qWait(1000); //1sec + QVERIFY(relFetchReq.error() == QContactManager::NoError); + QVERIFY(relFetchReq.state() == QContactFetchRequest::FinishedState); + QVERIFY(relFetchReq.relationships().count() > 0); + + //relationship remove request + QContactRelationshipRemoveRequest relRemoveReq; + QList relList; + relList += relationship; + relRemoveReq.setRelationships(relList); + QVERIFY(m_engine->startRequest(&relRemoveReq)); + QTest::qWait(1000); //1sec + QVERIFY(relRemoveReq.error() == QContactManager::NoError); + QVERIFY(relRemoveReq.state() == QContactFetchRequest::FinishedState); + + //relationship save request + QContactRelationshipSaveRequest relSaveReq; + relSaveReq.setRelationships(relList); + QVERIFY(m_engine->startRequest(&relSaveReq)); + QTest::qWait(1000); //1sec + QVERIFY(relSaveReq.error() == QContactManager::NoError); + QVERIFY(relSaveReq.state() == QContactFetchRequest::FinishedState); + + //cancel request + QVERIFY(m_engine->startRequest(&relRemoveReq)); + m_engine->cancelRequest(&relRemoveReq); + QTest::qWait(1000); //1sec + QVERIFY(relRemoveReq.error() == QContactManager::NoError); + QVERIFY(relRemoveReq.state() == QContactFetchRequest::CanceledState); + + //wait for a request finish + QVERIFY(!m_engine->waitForRequestFinished(&relSaveReq, 1000)); + QVERIFY(m_engine->startRequest(&relRemoveReq)); + QVERIFY(m_engine->waitForRequestFinished(&relRemoveReq, 1000)); + QTest::qWait(1000); //1sec + QVERIFY(relRemoveReq.error() == QContactManager::NoError); + QVERIFY(relRemoveReq.state() == QContactFetchRequest::FinishedState); + + //destroy request + QVERIFY(m_engine->startRequest(&relRemoveReq)); + m_engine->requestDestroyed(&relRemoveReq); + QVERIFY(!m_engine->m_asynchronousOperations.contains(&relRemoveReq)); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsymbianengine.h --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsymbianengine.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_cntsymbianengine.h Mon May 03 13:18:40 2010 +0300 @@ -74,6 +74,7 @@ void dataTypeSupport(); void synthesizeDisplaylable(); void definitionDetails(); + void asyncRequests(); private: void removeAllContacts(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_transformcontactdata.cpp --- a/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_transformcontactdata.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbian/tsrc/ut_symbian/ut_transformcontactdata.cpp Mon May 03 13:18:40 2010 +0300 @@ -309,9 +309,9 @@ QVERIFY(transformName->supportsDetail(QContactName::DefinitionName)); QVERIFY(!(transformName->supportsDetail("WrongValue"))); validateGetIdForField(*transformName, QContactName::FieldPrefix,KUidContactFieldPrefixName.iUid); - validateGetIdForField(*transformName, QContactName::FieldFirst, KUidContactFieldGivenName.iUid); - validateGetIdForField(*transformName, QContactName::FieldMiddle,KUidContactFieldAdditionalName.iUid); - validateGetIdForField(*transformName, QContactName::FieldLast,KUidContactFieldFamilyName.iUid); + validateGetIdForField(*transformName, QContactName::FieldFirstName, KUidContactFieldGivenName.iUid); + validateGetIdForField(*transformName, QContactName::FieldMiddleName,KUidContactFieldAdditionalName.iUid); + validateGetIdForField(*transformName, QContactName::FieldLastName,KUidContactFieldFamilyName.iUid); validateGetIdForField(*transformName, QContactName::FieldSuffix,KUidContactFieldSuffixName.iUid); validateGetIdForField(*transformName, "WrongValue", 0); QVERIFY( !(transformName->supportsSubType("WrongValue"))); @@ -324,17 +324,17 @@ //supportedSortingFieldTypes - FieldFirst uidsToVerify.clear(); uidsToVerify << KUidContactFieldGivenName; - validateSupportedSortingFieldTypes(*transformName,QContactName::FieldFirst,uidsToVerify); + validateSupportedSortingFieldTypes(*transformName,QContactName::FieldFirstName,uidsToVerify); //supportedSortingFieldTypes - FieldMiddle uidsToVerify.clear(); uidsToVerify << KUidContactFieldAdditionalName; - validateSupportedSortingFieldTypes(*transformName,QContactName::FieldMiddle,uidsToVerify); + validateSupportedSortingFieldTypes(*transformName,QContactName::FieldMiddleName,uidsToVerify); //supportedSortingFieldTypes - FieldLast uidsToVerify.clear(); uidsToVerify << KUidContactFieldFamilyName; - validateSupportedSortingFieldTypes(*transformName,QContactName::FieldLast,uidsToVerify); + validateSupportedSortingFieldTypes(*transformName,QContactName::FieldLastName,uidsToVerify); //supportedSortingFieldTypes - FieldSuffix uidsToVerify.clear(); @@ -495,7 +495,7 @@ validateGetIdForField(*transformPhoneNumber, QContactPhoneNumber::FieldNumber,0); validateGetIdForField(*transformPhoneNumber, QContactPhoneNumber::SubTypeLandline,0); validateGetIdForField(*transformPhoneNumber, QContactPhoneNumber::SubTypeMobile,0); - validateGetIdForField(*transformPhoneNumber, QContactPhoneNumber::SubTypeFacsimile,KUidContactFieldFax.iUid); + validateGetIdForField(*transformPhoneNumber, QContactPhoneNumber::SubTypeFax,KUidContactFieldFax.iUid); validateGetIdForField(*transformPhoneNumber, QContactPhoneNumber::SubTypePager,0); validateGetIdForField(*transformPhoneNumber, QContactPhoneNumber::SubTypeVoice,0); validateGetIdForField(*transformPhoneNumber, QContactPhoneNumber::SubTypeModem,0); @@ -565,7 +565,7 @@ QContactPhoneNumber phoneNumber4; phoneNumber4.setNumber(detail); - phoneNumber4.setSubTypes(QContactPhoneNumber::SubTypeFacsimile); + phoneNumber4.setSubTypes(QContactPhoneNumber::SubTypeFax); fields = transformPhoneNumber->transformDetailL(phoneNumber4); if(detail.isEmpty()) { QVERIFY(fields.count() == 0); @@ -703,7 +703,7 @@ contactDetail = transformPhoneNumber->transformItemField(*newField, contact); const QContactPhoneNumber* phoneNumberInfo4(static_cast(contactDetail)); QCOMPARE(phoneNumberInfo4->number(), detail); - QVERIFY(phoneNumberInfo4->subTypes().contains(QContactPhoneNumber::SubTypeFacsimile)); + QVERIFY(phoneNumberInfo4->subTypes().contains(QContactPhoneNumber::SubTypeFax)); delete contactDetail; contactDetail = 0; delete newField; @@ -1089,8 +1089,8 @@ QVERIFY(fields.at(2)->StorageType() == KStorageTypeText); QVERIFY(fields.at(2)->ContentType().ContainsFieldType(KUidContactFieldPresence)); - //Presence information is encoded as single charcter value defined in enum - //1 for Availble + //Presence information is encoded as single character value defined in enum + //1 for Available QCOMPARE(fields.at(2)->TextStorage()->Text(), _L("1") ); QVERIFY(fields.at(3)->StorageType() == KStorageTypeText); @@ -1201,7 +1201,7 @@ newField = 0; newField = CContactItemField::NewL(KStorageTypeText, KUidContactFieldPresence); - // Set the presence availble i.e. 1 + // Set the presence available i.e. 1 newField->TextStorage()->SetTextL(_L("1")); contactDetail = transformOnlineAccount->transformItemField(*newField, contact); const QContactOnlineAccount* onlineAccountDetail6(static_cast(contactDetail)); @@ -1242,7 +1242,7 @@ QVERIFY(!(transformOrganisation->supportsDetail("WrongValue"))); validateGetIdForField(*transformOrganisation, QContactOrganization::FieldName,KUidContactFieldCompanyName.iUid); - validateGetIdForField(*transformOrganisation, QContactOrganization::FieldLogo,0); + validateGetIdForField(*transformOrganisation, QContactOrganization::FieldLogoUrl,0); validateGetIdForField(*transformOrganisation, QContactOrganization::FieldDepartment,KUidContactFieldDepartmentName.iUid); validateGetIdForField(*transformOrganisation, QContactOrganization::FieldLocation,0); validateGetIdForField(*transformOrganisation, QContactOrganization::FieldTitle,KUidContactFieldJobTitle.iUid); @@ -1346,8 +1346,10 @@ delete transformOrganisation; } -void TestCntTransformContactData::validateCntTransformAvatarL(TPtrC16 field, QString detail) +void TestCntTransformContactData::validateCntTransformAvatarL(TPtrC16 /*field*/, QString /*detail*/) { + QFAIL("Refactor test to match new api!"); + /* CntTransformContactData* transformAvatar = new CntTransformAvatar(); QVERIFY(transformAvatar != 0); QVERIFY(transformAvatar->supportsField(KUidContactFieldCodImage.iUid)); @@ -1447,6 +1449,7 @@ newField = 0; delete transformAvatar; + */ } void TestCntTransformContactData::validateCntTransformSyncTargetL(TPtrC16 field, QString detail) @@ -1814,7 +1817,7 @@ * \a transformContactData the tranformcontact instance * \a filedname - The filedname which has to be checked * \a idValue - the correct id value against which the comparison is done - * \a isSame - If this value is true then '==' comparision is done else '!=' comparision is done + * \a isSame - If this value is true then '==' comparison is done else '!=' comparison is done */ void TestCntTransformContactData::validateGetIdForField( const CntTransformContactData& transformContactData, diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntabstractsimrequest.h --- a/qtmobility/plugins/contacts/symbiansim/inc/cntabstractsimrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntabstractsimrequest.h Mon May 03 13:18:40 2010 +0300 @@ -43,28 +43,51 @@ #define CNTABSTRACTSIMREQUEST_H_ #include +#include + +QTM_BEGIN_NAMESPACE +class QContactAbstractRequest; +QTM_END_NAMESPACE +QTM_USE_NAMESPACE class CntSymbianSimEngine; class CntSimStore; class QTimer; +#ifdef SYMBIANSIM_BACKEND_USE_DELAY +const int KRequestDelay = 10; // in ms +#else +const int KRequestDelay = 0; +#endif +const int KMaxRetryCount = 10; + class CntAbstractSimRequest : public QObject { Q_OBJECT public: - CntAbstractSimRequest(CntSymbianSimEngine *engine); - virtual ~CntAbstractSimRequest() {} - virtual bool start() = 0; - virtual bool cancel() = 0; + CntAbstractSimRequest(CntSymbianSimEngine *engine, QContactAbstractRequest *req); + bool start(); + +public Q_SLOTS: + virtual void run() = 0; + virtual bool cancel(); + protected: + bool waitAndRetry(); void singleShotTimer(int msec, QObject *receiver, const char *member); void cancelTimer(); CntSymbianSimEngine *engine(); CntSimStore *simStore(); + QContactAbstractRequest *req() { return m_request; } + + template + T *req() { return static_cast(m_request); } private: + QContactAbstractRequest *m_request; QTimer *m_timer; + int m_retryCount; }; #endif // CNTABSTRACTSIMREQUEST_H_ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactfetchrequest.h --- a/qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactfetchrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactfetchrequest.h Mon May 03 13:18:40 2010 +0300 @@ -44,18 +44,6 @@ #include "cntabstractsimrequest.h" -#ifdef SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER -#include -#else -#include -#endif -#include - -QTM_BEGIN_NAMESPACE -class QContactFetchRequest; -QTM_END_NAMESPACE -class CntSymbianSimEngine; - QTM_USE_NAMESPACE class CntSimContactFetchRequest : public CntAbstractSimRequest @@ -63,15 +51,14 @@ Q_OBJECT public: CntSimContactFetchRequest(CntSymbianSimEngine *engine, QContactFetchRequest *req); - virtual ~CntSimContactFetchRequest(); - bool start(); - bool cancel(); + ~CntSimContactFetchRequest(); -public Q_SLOTS: +public Q_SLOTS: + // from CntAbstractSimRequest + void run(); + +private Q_SLOTS: void readComplete(QList contacts, QContactManager::Error error); - -private: - QContactFetchRequest *m_req; }; #endif // CNTSIMCONTACTFETCHREQUEST_H_ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactlocalidfetchrequest.h --- a/qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactlocalidfetchrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactlocalidfetchrequest.h Mon May 03 13:18:40 2010 +0300 @@ -44,18 +44,6 @@ #include "cntabstractsimrequest.h" -#ifdef SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER -#include -#else -#include -#endif -#include - -QTM_BEGIN_NAMESPACE -class QContactLocalIdFetchRequest; -QTM_END_NAMESPACE -class CntSymbianSimEngine; - QTM_USE_NAMESPACE class CntSimContactLocalIdFetchRequest : public CntAbstractSimRequest @@ -64,14 +52,13 @@ public: CntSimContactLocalIdFetchRequest(CntSymbianSimEngine *engine, QContactLocalIdFetchRequest *req); virtual ~CntSimContactLocalIdFetchRequest(); - bool start(); - bool cancel(); -public Q_SLOTS: - void readComplete(QList contacts, QContactManager::Error error); - -private: - QContactLocalIdFetchRequest *m_req; +public Q_SLOTS: + // from CntAbstractSimRequest + void run(); + +private Q_SLOTS: + void readComplete(QList contacts, QContactManager::Error error); }; #endif // CNTSIMCONTACTLOCALIDFETCHREQUEST_H_ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactremoverequest.h --- a/qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactremoverequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactremoverequest.h Mon May 03 13:18:40 2010 +0300 @@ -44,18 +44,6 @@ #include "cntabstractsimrequest.h" -#ifdef SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER -#include -#else -#include -#endif -#include - -QTM_BEGIN_NAMESPACE -class QContactRemoveRequest; -QTM_END_NAMESPACE -class CntSymbianSimEngine; - QTM_USE_NAMESPACE class CntSimContactRemoveRequest : public CntAbstractSimRequest @@ -64,18 +52,22 @@ public: CntSimContactRemoveRequest(CntSymbianSimEngine *engine, QContactRemoveRequest *req); virtual ~CntSimContactRemoveRequest(); - bool start(); - bool cancel(); - -public Q_SLOTS: + +public Q_SLOTS: + // from CntAbstractSimRequest + void run(); + +private Q_SLOTS: void removeComplete(QContactManager::Error error); void removeNext(); - + void getReservedSlotsComplete(QList reservedSlots, QContactManager::Error error); + void getReservedSlots(); + private: - QContactRemoveRequest *m_req; QList m_contactIds; int m_index; - QMap m_errorMap; + QMap m_errorMap; + QList m_reservedSlots; }; #endif // CNTSIMCONTACTREMOVEREQUEST_H_ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactsaverequest.h --- a/qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactsaverequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactsaverequest.h Mon May 03 13:18:40 2010 +0300 @@ -44,18 +44,6 @@ #include "cntabstractsimrequest.h" -#ifdef SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER -#include -#else -#include -#endif -#include - -QTM_BEGIN_NAMESPACE -class QContactSaveRequest; -QTM_END_NAMESPACE -class CntSymbianSimEngine; - QTM_USE_NAMESPACE class CntSimContactSaveRequest : public CntAbstractSimRequest @@ -64,15 +52,16 @@ public: CntSimContactSaveRequest(CntSymbianSimEngine *engine, QContactSaveRequest *req); virtual ~CntSimContactSaveRequest(); - bool start(); - bool cancel(); -public Q_SLOTS: +public Q_SLOTS: + // from CntAbstractSimRequest + void run(); + +private Q_SLOTS: void writeComplete(QContact contact, QContactManager::Error error); - void writeNext(); + void writeNext(); private: - QContactSaveRequest *m_req; QList m_contacts; int m_index; QMap m_errorMap; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntsimdetaildefinitionfetchrequest.h --- a/qtmobility/plugins/contacts/symbiansim/inc/cntsimdetaildefinitionfetchrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntsimdetaildefinitionfetchrequest.h Mon May 03 13:18:40 2010 +0300 @@ -44,18 +44,6 @@ #include "cntabstractsimrequest.h" -#ifdef SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER -#include -#else -#include -#endif -#include - -QTM_BEGIN_NAMESPACE -class QContactDetailDefinitionFetchRequest; -QTM_END_NAMESPACE -class CntSymbianSimEngine; - QTM_USE_NAMESPACE class CntSimDetailDefinitionFetchRequest : public CntAbstractSimRequest @@ -64,15 +52,10 @@ public: CntSimDetailDefinitionFetchRequest(CntSymbianSimEngine *engine, QContactDetailDefinitionFetchRequest *req); virtual ~CntSimDetailDefinitionFetchRequest(); - bool start(); - bool cancel(); - -public Q_SLOTS: - void readDetailDefinitions(); - -private: - QContactDetailDefinitionFetchRequest *m_req; +public Q_SLOTS: + // from CntAbstractSimRequest + void run(); }; #endif // CNTSIMDETAILDEFINITIONFETCHREQUEST_H_ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntsimstore.h --- a/qtmobility/plugins/contacts/symbiansim/inc/cntsimstore.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntsimstore.h Mon May 03 13:18:40 2010 +0300 @@ -53,6 +53,14 @@ QTM_USE_NAMESPACE +#ifdef SYMBIANSIM_BACKEND_PHONEBOOKINFOV1 +typedef RMobilePhoneBookStore::TMobilePhoneBookInfoV1 TSimStoreInfo; +typedef RMobilePhoneBookStore::TMobilePhoneBookInfoV1Pckg TSimStoreInfoPckg; +#else +typedef RMobilePhoneBookStore::TMobilePhoneBookInfoV5 TSimStoreInfo; +typedef RMobilePhoneBookStore::TMobilePhoneBookInfoV5Pckg TSimStoreInfoPckg; +#endif + class CntSimStorePrivate; class CntSymbianSimEngine; @@ -60,32 +68,34 @@ { Q_OBJECT public: - CntSimStore(CntSymbianSimEngine* engine, QString storeName); + CntSimStore(CntSymbianSimEngine* engine, QString storeName, QContactManager::Error* error); ~CntSimStore(); QString storeName(); - RMobilePhoneBookStore::TMobilePhoneBookInfoV5 storeInfo(); + TSimStoreInfo storeInfo(); - QContactManager::Error getInfo(); - QContactManager::Error read(int index, int numSlots); - QContactManager::Error write(const QContact &contact); - QContactManager::Error remove(int index); + bool read(int index, int numSlots, QContactManager::Error* error); + bool write(const QContact &contact, QContactManager::Error* error); + bool remove(int index, QContactManager::Error* error); + bool getReservedSlots(QContactManager::Error* error); + void cancel(); bool isBusy(); + + TInt lastAsyncError(); signals: // NOTE: Use Qt::QueuedConnection as connection type to make signals asynchronous. // CntSimStorePrivate emitting these signals is an active object and emitting // signals synchronously will corrupt the AO state. - void getInfoComplete(RMobilePhoneBookStore::TMobilePhoneBookInfoV5 info, QContactManager::Error error); void readComplete(QList contacts, QContactManager::Error error); void writeComplete(QContact contacts, QContactManager::Error error); void removeComplete(QContactManager::Error error); + void getReservedSlotsComplete(QList reservedSlots, QContactManager::Error error); private: CntSimStorePrivate *d_ptr; friend class CntSimStorePrivate; }; - #endif // CNTSIMSTORE_H_ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntsimstoreeventlistener.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntsimstoreeventlistener.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,69 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Mobility Components. +** +** $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 CNTSIMSTOREEVENTLISTENER_H_ +#define CNTSIMSTOREEVENTLISTENER_H_ + +#include + +class CntSymbianSimEngine; +class RMobilePhoneBookStore; + +class CntSimStoreEventListener : public CActive +{ +public: + CntSimStoreEventListener(CntSymbianSimEngine &engine, RMobilePhoneBookStore& store); + ~CntSimStoreEventListener(); + + void start(); + + // from CActive + void DoCancel(); + void RunL(); + +private: + CntSymbianSimEngine &m_engine; + RMobilePhoneBookStore &m_store; + TUint32 m_event; + TInt m_index; +}; + +#endif // CNTSIMSTOREEVENTLISTENER_H_ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntsimstoreprivate.h --- a/qtmobility/plugins/contacts/symbiansim/inc/cntsimstoreprivate.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntsimstoreprivate.h Mon May 03 13:18:40 2010 +0300 @@ -1,3 +1,4 @@ + /**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). @@ -51,32 +52,36 @@ #include #include "cntsymbiansimengine.h" +#include "cntsimstore.h" QTM_USE_NAMESPACE class CntSimStore; class CntSymbianSimEngine; +class CntSimStoreEventListener; class CntSimStorePrivate : public CActive { public: enum State { InactiveState, - GetInfoState, ReadState, WriteState, - DeleteState + DeleteState, + ReadReservedSlotsState }; static CntSimStorePrivate* NewL(CntSymbianSimEngine &engine, CntSimStore &simStore, const QString &storeName); ~CntSimStorePrivate(); QString storeName() { return m_storeName; } - RMobilePhoneBookStore::TMobilePhoneBookInfoV5 storeInfo() { return m_storeInfo; } + TSimStoreInfo storeInfo() { return m_storeInfo; } - QContactManager::Error getInfo(); - QContactManager::Error read(int index, int numSlots); - QContactManager::Error write(const QContact &contact); - QContactManager::Error remove(int index); + bool read(int index, int numSlots, QContactManager::Error *error); + bool write(const QContact &contact, QContactManager::Error *error); + bool remove(int index, QContactManager::Error *error); + bool getReservedSlots(QContactManager::Error *error); + + TInt lastAsyncError() { return m_asyncError; } private: // from CActive @@ -89,7 +94,9 @@ void ConstructL(); void convertStoreNameL(TDes &storeName); QList decodeSimContactsL(TDes8& rawData) const; - QContact encodeSimContactL(const QContact* contact, TDes8& rawData) const; + void encodeSimContactL(QContact* contact, TDes8& rawData) const; + void putTagAndValueL(CPhoneBookBuffer* pbBuffer, TUint8 tag, QString data) const; + QList decodeReservedSlotsL(TDes8& rawData) const; private: State m_state; @@ -100,11 +107,14 @@ RMobilePhone m_etelPhone; RMobilePhoneBookStore m_etelStore; QString m_storeName; - RMobilePhoneBookStore::TMobilePhoneBookInfoV5 m_storeInfo; - RMobilePhoneBookStore::TMobilePhoneBookInfoV5Pckg m_storeInfoPckg; + bool m_readOnlyAccess; + TSimStoreInfo m_storeInfo; + TSimStoreInfoPckg m_storeInfoPckg; RBuf8 m_buffer; QContact m_convertedContact; int m_writeIndex; + CntSimStoreEventListener* m_listener; + TInt m_asyncError; }; #endif // CNTSIMSTOREPRIVATE_H_ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntsymbiansimengine.h --- a/qtmobility/plugins/contacts/symbiansim/inc/cntsymbiansimengine.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntsymbiansimengine.h Mon May 03 13:18:40 2010 +0300 @@ -52,15 +52,9 @@ // // We mean it. // +#include "qtcontactsglobal.h" #include "qcontactmanagerengine.h" #include "qcontactmanagerenginefactory.h" - -#ifdef SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER -#include -#else -#include -#endif - #include #include @@ -87,11 +81,11 @@ #define CNT_SYMBIANSIM_MANAGER_NAME "symbiansim" -Q_DEFINE_LATIN1_LITERAL(KSimSyncTarget, "SIM"); -Q_DEFINE_LATIN1_LITERAL(KParameterKeySimStoreName, "store"); -Q_DEFINE_LATIN1_LITERAL(KParameterValueSimStoreNameAdn, "ADN"); -Q_DEFINE_LATIN1_LITERAL(KParameterValueSimStoreNameSdn, "SDN"); -Q_DEFINE_LATIN1_LITERAL(KParameterValueSimStoreNameFdn, "FDN"); +Q_DEFINE_LATIN1_CONSTANT(KSimSyncTarget, "SIM"); +Q_DEFINE_LATIN1_CONSTANT(KParameterKeySimStoreName, "store"); +Q_DEFINE_LATIN1_CONSTANT(KParameterValueSimStoreNameAdn, "ADN"); +Q_DEFINE_LATIN1_CONSTANT(KParameterValueSimStoreNameSdn, "SDN"); +Q_DEFINE_LATIN1_CONSTANT(KParameterValueSimStoreNameFdn, "FDN"); class CntSimStore; class CntAbstractSimRequest; @@ -111,29 +105,53 @@ Q_OBJECT public: - CntSymbianSimEngine(const QMap& parameters, QContactManager::Error& error); + CntSymbianSimEngine(const QMap& parameters, QContactManager::Error* error); CntSymbianSimEngine(const CntSymbianSimEngine &other); ~CntSymbianSimEngine(); - void deref(); + QString managerName() const; + QMap managerParameters() const {return QMap();} + int managerVersion() const { return 1;} + + /* Defaulted functions - XXX check*/ + QContact compatibleContact(const QContact&, QContactManager::Error* error) const {*error = QContactManager::NotSupportedError;return QContact();} + bool validateContact(const QContact& contact, QContactManager::Error* error) const {return QContactManagerEngine::validateContact(contact, error);} + bool validateDefinition(const QContactDetailDefinition& def, QContactManager::Error* error) const {return QContactManagerEngine::validateDefinition(def, error);} + QContactDetailDefinition detailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) const {return QContactManagerEngine::detailDefinition(definitionId, contactType, error);} + bool saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error* error) {return QContactManagerEngine::saveDetailDefinition(def, contactType, error);} + bool removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) {return QContactManagerEngine::removeDetailDefinition(definitionId, contactType, error);} + QList relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) const + { + return QContactManagerEngine::relationships(relationshipType, participantId, role, error); + } + bool saveRelationships(QList* relationships, QMap* errorMap, QContactManager::Error* error) + { + return QContactManagerEngine::saveRelationships(relationships, errorMap, error); + } + bool removeRelationships(const QList& relationships, QMap* errorMap, QContactManager::Error* error) + { + return QContactManagerEngine::removeRelationships(relationships, errorMap, error); + } + bool isRelationshipTypeSupported(const QString&, const QString&) const {return false;} + bool isFilterSupported(const QContactFilter&) const {return false;} + QList supportedDataTypes() const {return QContactManagerEngine::supportedDataTypes();} + bool setSelfContactId(const QContactLocalId& contactId, QContactManager::Error* error) {return QContactManagerEngine::setSelfContactId(contactId, error);} + QContactLocalId selfContactId(QContactManager::Error* error) const {return QContactManagerEngine::selfContactId(error);} + /* Contacts - Accessors and Mutators */ - QList contactIds(const QList& sortOrders, QContactManager::Error& error) const; - QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error& error) const; - QList contacts(const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - QList contacts(const QContactFilter& filter, const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - QContact contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const; + QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const; + QList contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; + QContact contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; - bool saveContact(QContact* contact, QContactManager::Error& error); - bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error& error); - bool removeContact(const QContactLocalId& contactId, QContactManager::Error& error); - bool removeContacts(QList* contactIds, QMap* errorMap, QContactManager::Error& error); + bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error); + bool removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error); /* Synthesize the display label of a contact */ - QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const; + QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const; /* Definitions - Accessors and Mutators */ - QMap detailDefinitions(const QString& contactType, QContactManager::Error& error) const; + QMap detailDefinitions(const QString& contactType, QContactManager::Error* error) const; /* Asynchronous Request Support */ void requestDestroyed(QContactAbstractRequest* req); @@ -148,20 +166,21 @@ public: void updateDisplayLabel(QContact& contact) const; CntSimStore* simStore() { return d->m_simStore; } + void setReadOnlyAccessConstraint(QContactDetail* detail) const; private: - bool executeRequest(QContactAbstractRequest *req, QContactManager::Error& qtError) const; + bool executeRequest(QContactAbstractRequest *req, QContactManager::Error* qtError) const; private: QExplicitlySharedDataPointer d; }; -class Q_DECL_EXPORT CntSymbianSimFactory : public QObject, public QContactManagerEngineFactory +class CntSymbianSimFactory : public QObject, public QContactManagerEngineFactory { Q_OBJECT Q_INTERFACES(QtMobility::QContactManagerEngineFactory) public: - QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error& error); + QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error* error); QString managerName() const; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/inc/cntsymbiansimtransformerror.h --- a/qtmobility/plugins/contacts/symbiansim/inc/cntsymbiansimtransformerror.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/inc/cntsymbiansimtransformerror.h Mon May 03 13:18:40 2010 +0300 @@ -48,7 +48,7 @@ class CntSymbianSimTransformError { public: - static void transformError(TInt symbianError, QContactManager::Error& qtError); + static void transformError(TInt symbianError, QContactManager::Error* qtError); }; #endif // CNTSYMBIANSIMTRANSFORMERROR_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntabstractsimrequest.cpp --- a/qtmobility/plugins/contacts/symbiansim/src/cntabstractsimrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntabstractsimrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -44,13 +44,49 @@ #include "cntsimstore.h" #include -CntAbstractSimRequest::CntAbstractSimRequest(CntSymbianSimEngine *engine) +CntAbstractSimRequest::CntAbstractSimRequest(CntSymbianSimEngine *engine, QContactAbstractRequest *req) :QObject(engine), - m_timer(0) + m_request(req), + m_timer(0), + m_retryCount(0) { } +bool CntAbstractSimRequest::start() +{ + if (m_request->isActive()) + return false; + + m_retryCount = 0; + + singleShotTimer(KRequestDelay, this, SLOT(run())); + QContactManagerEngine::updateRequestState(m_request, QContactAbstractRequest::ActiveState); + return true; +} + +bool CntAbstractSimRequest::cancel() +{ + if (m_request->isActive()) { + cancelTimer(); + simStore()->cancel(); + QContactManagerEngine::updateRequestState(m_request, QContactAbstractRequest::CanceledState); + return true; + } + return false; +} + +bool CntAbstractSimRequest::waitAndRetry() +{ + if (m_retryCount < KMaxRetryCount) + { + singleShotTimer(KRequestDelay, this, SLOT(run())); + m_retryCount++; + return true; + } + return false; +} + void CntAbstractSimRequest::singleShotTimer(int msec, QObject *receiver, const char *member) { // We could use QTimer::singleShot but there is no way to cancel it... diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntsimcontactfetchrequest.cpp --- a/qtmobility/plugins/contacts/symbiansim/src/cntsimcontactfetchrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntsimcontactfetchrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,8 +46,7 @@ #include CntSimContactFetchRequest::CntSimContactFetchRequest(CntSymbianSimEngine *engine, QContactFetchRequest *req) - :CntAbstractSimRequest(engine), - m_req(req) + :CntAbstractSimRequest(engine, req) { connect( simStore(), SIGNAL(readComplete(QList, QContactManager::Error)), this, SLOT(readComplete(QList, QContactManager::Error)), Qt::QueuedConnection ); @@ -58,58 +57,61 @@ cancel(); } -bool CntSimContactFetchRequest::start() +void CntSimContactFetchRequest::run() { - QContactManager::Error error = QContactManager::NoError; + QContactFetchRequest *r = req(); + + if (!r->isActive()) + return; // Get filter QContactLocalIdFilter lidFilter; - if (m_req->filter().type() == QContactFilter::LocalIdFilter) { - lidFilter = static_cast(m_req->filter()); + if (r->filter().type() == QContactFilter::LocalIdFilter) { + lidFilter = static_cast(r->filter()); } + + // Fetch all contacts and filter the results. + // Contacts are fetched starting from index 1, all slots are read + // since slots may be not filled in a sequence. + int index = 1; + int numSlots = simStore()->storeInfo().iTotalEntries; if (lidFilter.ids().count() == 1) { // Optimization for performance. Fetch a single contact from store. // This is mainly for CntSymbianSimEngine::contact(). - int index = lidFilter.ids().at(0); - error = simStore()->read(index, 1); + index = lidFilter.ids().at(0); + numSlots = 1; } - else { - // Fetch all contacts and filter the results. - // Contacts are fetched starting from index 1, all slots are read - // since slots may be not filled in a sequence. - int numSlots = simStore()->storeInfo().iTotalEntries; - error = simStore()->read(1, numSlots); + + QContactManager::Error error = QContactManager::NoError; + if (!simStore()->read(index, numSlots, &error)) { + QContactManagerEngine::updateContactFetchRequest(r, QList(), error, QContactAbstractRequest::FinishedState); } - - if (error == QContactManager::NoError) - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::ActiveState); - return (error == QContactManager::NoError); -} - -bool CntSimContactFetchRequest::cancel() -{ - if (m_req->isActive()) { - simStore()->cancel(); - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::CanceledState); - return true; - } - return false; } void CntSimContactFetchRequest::readComplete(QList contacts, QContactManager::Error error) { - if (!m_req->isActive()) + QContactFetchRequest *r = req(); + + if (!r->isActive()) return; + // Sometimes the sim store will return server busy error. All we can do is + // wait and try again. The error seems to occur if we try to read from the + // store right after writing some contacts to it. + // This was observed with S60 5.0 HW (Tube). + if (simStore()->lastAsyncError() == KErrServerBusy) { + if (waitAndRetry()) + return; + } + // Filter & sort results QList filteredAndSorted; for (int i=0; ifilter(), contacts.at(i))) - QContactManagerEngine::addSorted(&filteredAndSorted, contacts.at(i), m_req->sorting()); + if (QContactManagerEngine::testFilter(r->filter(), contacts.at(i))) + QContactManagerEngine::addSorted(&filteredAndSorted, contacts.at(i), r->sorting()); } // Complete the request - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::FinishedState); - QContactManagerEngine::updateContactFetchRequest(m_req, filteredAndSorted, error); + QContactManagerEngine::updateContactFetchRequest(r, filteredAndSorted, error, QContactAbstractRequest::FinishedState); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntsimcontactlocalidfetchrequest.cpp --- a/qtmobility/plugins/contacts/symbiansim/src/cntsimcontactlocalidfetchrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntsimcontactlocalidfetchrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,8 +45,7 @@ #include CntSimContactLocalIdFetchRequest::CntSimContactLocalIdFetchRequest(CntSymbianSimEngine *engine, QContactLocalIdFetchRequest *req) - :CntAbstractSimRequest(engine), - m_req(req) + :CntAbstractSimRequest(engine, req) { connect( simStore(), SIGNAL(readComplete(QList, QContactManager::Error)), this, SLOT(readComplete(QList, QContactManager::Error)), Qt::QueuedConnection ); @@ -57,37 +56,47 @@ cancel(); } -bool CntSimContactLocalIdFetchRequest::start() +void CntSimContactLocalIdFetchRequest::run() { + QContactLocalIdFetchRequest *r = req(); + + if (!r->isActive()) + return; + // Contacts are fetched starting from index 1, all slots are read - // since slots may be not filled in a sequence. + // since slots may be not filled in a sequence. + int index = 1; int numSlots = simStore()->storeInfo().iTotalEntries; - QContactManager::Error error = simStore()->read(1, numSlots); - if (error == QContactManager::NoError) - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::ActiveState); - return (error == QContactManager::NoError); -} - -bool CntSimContactLocalIdFetchRequest::cancel() -{ - if (m_req->isActive()) { - simStore()->cancel(); - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::CanceledState); - return true; + + QContactManager::Error error = QContactManager::NoError; + if (!simStore()->read(index, numSlots, &error)) { + QContactManagerEngine::updateContactLocalIdFetchRequest(r, QList(), error, QContactAbstractRequest::FinishedState); } - return false; } void CntSimContactLocalIdFetchRequest::readComplete(QList contacts, QContactManager::Error error) { - if (!m_req->isActive()) + QContactLocalIdFetchRequest *r = req(); + + if (!r->isActive()) return; + // Sometimes the sim store will return server busy error. All we can do is + // wait and try again. The error seems to occur if we try to read from the + // store right after writing some contacts to it. + // This was observed with S60 5.0 HW (Tube). + if (error == QContactManager::UnspecifiedError && + simStore()->lastAsyncError() == KErrServerBusy) + { + if (waitAndRetry()) + return; + } + // Filter & sort results QList filteredAndSorted; for (int i=0; ifilter(), contacts.at(i))) - QContactManagerEngine::addSorted(&filteredAndSorted, contacts.at(i), m_req->sorting()); + if (QContactManagerEngine::testFilter(r->filter(), contacts.at(i))) + QContactManagerEngine::addSorted(&filteredAndSorted, contacts.at(i), r->sorting()); } // Convert to QContactLocalId-list @@ -97,6 +106,5 @@ } // Complete the request - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::FinishedState); - QContactManagerEngine::updateContactLocalIdFetchRequest(m_req, filteredAndSortedIds, error); + QContactManagerEngine::updateContactLocalIdFetchRequest(r, filteredAndSortedIds, error, QContactAbstractRequest::FinishedState); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntsimcontactremoverequest.cpp --- a/qtmobility/plugins/contacts/symbiansim/src/cntsimcontactremoverequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntsimcontactremoverequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -43,14 +43,16 @@ #include "cntsymbiansimengine.h" #include "cntsimstore.h" #include -#include +#include CntSimContactRemoveRequest::CntSimContactRemoveRequest(CntSymbianSimEngine *engine, QContactRemoveRequest *req) - :CntAbstractSimRequest(engine), - m_req(req) + :CntAbstractSimRequest(engine, req) { connect( simStore(), SIGNAL(removeComplete(QContactManager::Error)), this, SLOT(removeComplete(QContactManager::Error)), Qt::QueuedConnection ); + + connect( simStore(), SIGNAL(getReservedSlotsComplete(QList, QContactManager::Error)), + this, SLOT(getReservedSlotsComplete(QList, QContactManager::Error)), Qt::QueuedConnection ); } CntSimContactRemoveRequest::~CntSimContactRemoveRequest() @@ -58,44 +60,49 @@ cancel(); } -bool CntSimContactRemoveRequest::start() -{ - if (simStore()->isBusy()) - return false; +void CntSimContactRemoveRequest::run() +{ + QContactRemoveRequest *r = req(); - m_contactIds = m_req->contactIds(); + if (!r->isActive()) + return; + + m_contactIds = r->contactIds(); m_errorMap.clear(); m_index = 0; - singleShotTimer(0, this, SLOT(removeNext())); - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::ActiveState); - return true; -} - -bool CntSimContactRemoveRequest::cancel() -{ - if (m_req->isActive()) { - cancelTimer(); - simStore()->cancel(); - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::CanceledState); - return true; - } - return false; +#ifdef SYMBIANSIM_BACKEND_CHECK_BEFORE_REMOVE + m_reservedSlots.clear(); + getReservedSlots(); +#else + removeNext(); +#endif } void CntSimContactRemoveRequest::removeComplete(QContactManager::Error error) { + if (!req()->isActive()) + return; + if (error) m_errorMap.insert(m_index, error); + m_index++; - removeNext(); + singleShotTimer(KRequestDelay, this, SLOT(removeNext())); } void CntSimContactRemoveRequest::removeNext() { - if (m_req->isCanceled()) + QContactRemoveRequest *r = req(); + + if (!r->isActive()) return; - // All contacts written? + if (r->contactIds().count() == 0) { + QContactManagerEngine::updateContactRemoveRequest(r, QContactManager::BadArgumentError, m_errorMap, QContactAbstractRequest::FinishedState); + return; + } + + // All contacts removed? if (m_index >= m_contactIds.count()) { // Take first error from errormap (if any) @@ -103,17 +110,55 @@ if (m_errorMap.count()) error = m_errorMap.begin().value(); - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::FinishedState); - QContactManagerEngine::updateContactRemoveRequest(m_req, error, m_errorMap); + QContactManagerEngine::updateContactRemoveRequest(r, error, m_errorMap, QContactAbstractRequest::FinishedState); return; } // Remove next contact QContactLocalId contactId = m_contactIds.at(m_index); - QContactManager::Error error = simStore()->remove(contactId); + QContactManager::Error error = QContactManager::NoError; + +#ifdef SYMBIANSIM_BACKEND_CHECK_BEFORE_REMOVE + if (m_reservedSlots.contains(contactId)) + simStore()->remove(contactId, &error); + else + error = QContactManager::DoesNotExistError; +#else + simStore()->remove(contactId, &error); +#endif + if (error) { m_errorMap.insert(m_index, error); m_index++; - singleShotTimer(0, this, SLOT(removeNext())); + singleShotTimer(KRequestDelay, this, SLOT(removeNext())); } } + +void CntSimContactRemoveRequest::getReservedSlotsComplete(QList reservedSlots, QContactManager::Error error) +{ + QContactRemoveRequest *r = req(); + + if (!r->isActive()) + return; + + if (error != QContactManager::NoError && error != QContactManager::DoesNotExistError) { + QContactManagerEngine::updateContactRemoveRequest(r, error, m_errorMap, QContactAbstractRequest::FinishedState); + return; + } + + m_reservedSlots = reservedSlots; + singleShotTimer(KRequestDelay, this, SLOT(removeNext())); +} + +void CntSimContactRemoveRequest::getReservedSlots() +{ + QContactRemoveRequest *r = req(); + + if (!r->isActive()) + return; + + QContactManager::Error error = QContactManager::NoError; + if (!simStore()->getReservedSlots(&error)) { + QContactManagerEngine::updateContactRemoveRequest(r, error, m_errorMap, QContactAbstractRequest::FinishedState); + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntsimcontactsaverequest.cpp --- a/qtmobility/plugins/contacts/symbiansim/src/cntsimcontactsaverequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntsimcontactsaverequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -43,11 +43,9 @@ #include "cntsymbiansimengine.h" #include "cntsimstore.h" #include -#include CntSimContactSaveRequest::CntSimContactSaveRequest(CntSymbianSimEngine *engine, QContactSaveRequest *req) - :CntAbstractSimRequest(engine), - m_req(req) + :CntAbstractSimRequest(engine, req) { connect( simStore(), SIGNAL(writeComplete(QContact, QContactManager::Error)), this, SLOT(writeComplete(QContact, QContactManager::Error)), Qt::QueuedConnection ); @@ -58,45 +56,45 @@ cancel(); } -bool CntSimContactSaveRequest::start() +void CntSimContactSaveRequest::run() { - if (simStore()->isBusy()) - return false; + QContactSaveRequest *r = req(); - m_contacts = m_req->contacts(); + if (!r->isActive()) + return; + + m_contacts = r->contacts(); m_errorMap.clear(); m_index = 0; - singleShotTimer(0, this, SLOT(writeNext())); - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::ActiveState); - return true; -} - -bool CntSimContactSaveRequest::cancel() -{ - if (m_req->isActive()) { - cancelTimer(); - simStore()->cancel(); - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::CanceledState); - return true; - } - return false; + + writeNext(); } void CntSimContactSaveRequest::writeComplete(QContact contact, QContactManager::Error error) { + if (!req()->isActive()) + return; + if (error) m_errorMap.insert(m_index, error); engine()->updateDisplayLabel(contact); m_contacts[m_index] = contact; m_index++; - writeNext(); + singleShotTimer(KRequestDelay, this, SLOT(writeNext())); } void CntSimContactSaveRequest::writeNext() { - if (m_req->isCanceled()) + QContactSaveRequest *r = req(); + + if (!r->isActive()) return; + if (r->contacts().count() == 0) { + QContactManagerEngine::updateContactSaveRequest(r, QList(), QContactManager::BadArgumentError, m_errorMap, QContactAbstractRequest::FinishedState); + return; + } + // All contacts written? if (m_index >= m_contacts.count()) { @@ -104,9 +102,8 @@ QContactManager::Error error = QContactManager::NoError; if (m_errorMap.count()) error = m_errorMap.begin().value(); - - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::FinishedState); - QContactManagerEngine::updateContactSaveRequest(m_req, m_contacts, error, m_errorMap); + + QContactManagerEngine::updateContactSaveRequest(r, m_contacts, error, m_errorMap, QContactAbstractRequest::FinishedState); return; } @@ -114,13 +111,13 @@ QContact contact = m_contacts.at(m_index); // Validate & write contact - QContactManager::Error error; - if (engine()->validateContact(contact, error)) - error = simStore()->write(contact); + QContactManager::Error error = QContactManager::NoError; + if (engine()->validateContact(contact, &error)) + simStore()->write(contact, &error); if (error) { m_errorMap.insert(m_index, error); m_index++; - singleShotTimer(0, this, SLOT(writeNext())); + singleShotTimer(KRequestDelay, this, SLOT(writeNext())); } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntsimdetaildefinitionfetchrequest.cpp --- a/qtmobility/plugins/contacts/symbiansim/src/cntsimdetaildefinitionfetchrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntsimdetaildefinitionfetchrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,13 +41,10 @@ #include "cntsimdetaildefinitionfetchrequest.h" #include "cntsymbiansimengine.h" -#include "cntsimstore.h" #include -#include CntSimDetailDefinitionFetchRequest::CntSimDetailDefinitionFetchRequest(CntSymbianSimEngine *engine, QContactDetailDefinitionFetchRequest *req) - :CntAbstractSimRequest(engine), - m_req(req) + :CntAbstractSimRequest(engine, req) { } @@ -57,26 +54,11 @@ cancel(); } -bool CntSimDetailDefinitionFetchRequest::start() -{ - singleShotTimer(0, this, SLOT(readDetailDefinitions())); - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::ActiveState); - return true; -} - -bool CntSimDetailDefinitionFetchRequest::cancel() +void CntSimDetailDefinitionFetchRequest::run() { - if (m_req->isActive()) { - cancelTimer(); - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::CanceledState); - return true; - } - return false; -} - -void CntSimDetailDefinitionFetchRequest::readDetailDefinitions() -{ - if (m_req->isCanceled()) + QContactDetailDefinitionFetchRequest *r = req(); + + if (!r->isActive()) return; QContactManager::Error error = QContactManager::NoError; @@ -84,30 +66,31 @@ QMap errorMap; // Get all detail definitions - QMap allDefs = engine()->detailDefinitions(m_req->contactType(), error); + QMap allDefs = engine()->detailDefinitions(r->contactType(), &error); + + QStringList defNames = r->definitionNames(); // Check for error if (error != QContactManager::NoError) { - for (int i=0; idefinitionNames().count(); i++) + for (int i=0; idefinitionNames().count() == 0) + if (r->definitionNames().count() == 0) { result = allDefs; } else { - for (int i=0; idefinitionNames().count(); i++) + for (int i=0; idefinitionNames().at(i); + QString defName = defNames.at(i); if (allDefs.contains(defName)) result.insert(defName, allDefs.value(defName)); else @@ -120,8 +103,5 @@ } // Complete the request - QContactManagerEngine::updateRequestState(m_req, QContactAbstractRequest::FinishedState); - QContactManagerEngine::updateDefinitionFetchRequest(m_req, result, error, errorMap); + QContactManagerEngine::updateDefinitionFetchRequest(r, result, error, errorMap, QContactAbstractRequest::FinishedState); } - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntsimstore.cpp --- a/qtmobility/plugins/contacts/symbiansim/src/cntsimstore.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntsimstore.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,18 +41,23 @@ #include "cntsimstore.h" #include "cntsimstoreprivate.h" +#include "cntsymbiansimtransformerror.h" -CntSimStore::CntSimStore(CntSymbianSimEngine* engine, QString storeName) - :QObject((QObject *)engine) +CntSimStore::CntSimStore(CntSymbianSimEngine* engine, QString storeName, QContactManager::Error* error) + :QObject((QObject *)engine), + d_ptr(0) { + *error = QContactManager::NoError; + // We need to register these meta types for signals because connect() with // Qt::QueuedConnection it is required. qRegisterMetaType("QContact"); qRegisterMetaType >("QList"); qRegisterMetaType("QContactManager::Error"); - qRegisterMetaType("RMobilePhoneBookStore::TMobilePhoneBookInfoV5"); + qRegisterMetaType >("QList"); - QT_TRAP_THROWING(d_ptr = CntSimStorePrivate::NewL(*engine, *this, storeName)); + TRAPD(err, d_ptr = CntSimStorePrivate::NewL(*engine, *this, storeName)); + CntSymbianSimTransformError::transformError(err, error); } CntSimStore::~CntSimStore() @@ -65,29 +70,29 @@ return d_ptr->storeName(); } -RMobilePhoneBookStore::TMobilePhoneBookInfoV5 CntSimStore::storeInfo() +TSimStoreInfo CntSimStore::storeInfo() { return d_ptr->storeInfo(); } -QContactManager::Error CntSimStore::getInfo() +bool CntSimStore::read(int index, int numSlots, QContactManager::Error* error) { - return d_ptr->getInfo(); + return d_ptr->read(index, numSlots, error); } -QContactManager::Error CntSimStore::read(int index, int numSlots) +bool CntSimStore::write(const QContact &contact, QContactManager::Error* error) { - return d_ptr->read(index, numSlots); + return d_ptr->write(contact, error); } -QContactManager::Error CntSimStore::write(const QContact &contact) +bool CntSimStore::remove(int index, QContactManager::Error* error) { - return d_ptr->write(contact); + return d_ptr->remove(index, error); } -QContactManager::Error CntSimStore::remove(int index) +bool CntSimStore::getReservedSlots(QContactManager::Error* error) { - return d_ptr->remove(index); + return d_ptr->getReservedSlots(error); } void CntSimStore::cancel() @@ -99,3 +104,8 @@ { return d_ptr->IsActive(); } + +TInt CntSimStore::lastAsyncError() +{ + return d_ptr->lastAsyncError(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntsimstoreeventlistener.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntsimstoreeventlistener.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,128 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Mobility Components. +** +** $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 "cntsimstoreeventlistener.h" +#include "cntsymbiansimengine.h" +#include +#ifdef SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER +#include +#else +#include +#endif +#include + +QTM_USE_NAMESPACE + +CntSimStoreEventListener::CntSimStoreEventListener(CntSymbianSimEngine &engine, RMobilePhoneBookStore& store) + :CActive(CActive::EPriorityUserInput), + m_engine(engine), + m_store(store) +{ + // NOTE: + // The AO priority must be higher than CntSimStorePrivate's priority. + // Otherwise we might not receive all store events. This is because a new + // store request might be issued before the listener has had the chance to + // issue a new notify request. + CActiveScheduler::Add(this); +} + +CntSimStoreEventListener::~CntSimStoreEventListener() +{ + Cancel(); +} + +void CntSimStoreEventListener::start() +{ + if (IsActive()) + return; + + m_store.NotifyStoreEvent(iStatus, m_event, m_index); + SetActive(); +} + +void CntSimStoreEventListener::DoCancel() +{ + if (IsActive()) + m_store.CancelAsyncRequest(EMobilePhoneStoreNotifyStoreEvent); +} + +void CntSimStoreEventListener::RunL() +{ + if (iStatus.Int()) { + qWarning() << "Failed to listen store events!" << iStatus.Int(); + return; + } + + // The store may report several events at the same time. + + QContactChangeSet changeSet; + + if (m_event & RMobilePhoneStore::KStoreFull) { + //qDebug() << "SIM store event: full"; + } + if (m_event & RMobilePhoneStore::KStoreHasSpace) { + //qDebug() << "SIM store event: has space"; + } + if (m_event & RMobilePhoneStore::KStoreEmpty ) { + //qDebug() << "SIM store event: empty" << m_index; + changeSet.insertRemovedContact(m_index); + } + if (m_event & RMobilePhoneStore::KStoreEntryAdded) { + //qDebug() << "SIM store event: added" << m_index; + changeSet.insertAddedContact(m_index); + } + if (m_event & RMobilePhoneStore::KStoreEntryDeleted) { + //qDebug() << "SIM store event: deleted" << m_index; + changeSet.insertRemovedContact(m_index); + } + if (m_event & RMobilePhoneStore::KStoreEntryChanged) { + //qDebug() << "SIM store event: changed" << m_index; + changeSet.insertChangedContact(m_index); + } + if (m_event & RMobilePhoneStore::KStoreDoRefresh) { + //qDebug() << "SIM store event: do refresh"; + changeSet.setDataChanged(true); + } + + changeSet.emitSignals(&m_engine); + + start(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntsimstoreprivate.cpp --- a/qtmobility/plugins/contacts/symbiansim/src/cntsimstoreprivate.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntsimstoreprivate.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,12 +42,14 @@ #include "cntsimstoreprivate.h" #include "cntsymbiansimtransformerror.h" #include "cntsimstore.h" +#include "cntsimstoreeventlistener.h" #include #include - +#include +#include -const int KOneSimContactBufferSize = 512; +const TInt KOneSimContactBufferSize = 512; const TInt KDataClientBuf = 128; const TInt KEtsiTonPosition = 0x70; @@ -66,7 +68,9 @@ m_engine(engine), m_simStore(simStore), m_storeName(storeName), - m_storeInfoPckg(m_storeInfo) + m_readOnlyAccess(false), + m_storeInfoPckg(m_storeInfo), + m_listener(0) { CActiveScheduler::Add(this); m_managerUri = engine.managerUri(); @@ -77,6 +81,10 @@ TBuf storeName; convertStoreNameL(storeName); + // SDN store is always read only + if (m_storeName == KParameterValueSimStoreNameSdn) + m_readOnlyAccess = true; + // Open etel server User::LeaveIfError(m_etelServer.Connect()); User::LeaveIfError(m_etelServer.LoadPhoneModule(KMmTsyModuleName)); @@ -104,16 +112,19 @@ PbkPrintToLog(_L("CntSymbianSimEngine::getEtelStoreInfoL() - MaxNumLength = %d"), m_storeInfo.iMaxNumLength); PbkPrintToLog(_L("CntSymbianSimEngine::getEtelStoreInfoL() - MaxTextLength = %d"), - m_storeInfo.iMaxTextLength); + m_storeInfo.iMaxTextLength); + + m_listener = new (ELeave) CntSimStoreEventListener(m_engine, m_etelStore); + m_listener->start(); } CntSimStorePrivate::~CntSimStorePrivate() { Cancel(); - m_buffer.Close(); + delete m_listener; m_etelStore.Close(); m_etelPhone.Close(); - m_etelServer.Close(); + m_etelServer.Close(); } void CntSimStorePrivate::convertStoreNameL(TDes &storeName) @@ -140,23 +151,12 @@ } } -QContactManager::Error CntSimStorePrivate::getInfo() +bool CntSimStorePrivate::read(int index, int numSlots, QContactManager::Error *error) { - if (IsActive()) - return QContactManager::LockedError; - - // start get info request - m_etelStore.GetInfo(iStatus, (TDes8&)m_storeInfoPckg); - SetActive(); - m_state = GetInfoState; - - return QContactManager::NoError; -} - -QContactManager::Error CntSimStorePrivate::read(int index, int numSlots) -{ - if (IsActive()) - return QContactManager::LockedError; + if (IsActive()) { + *error = QContactManager::LockedError; + return false; + } // start reading m_buffer.Zero(); @@ -165,29 +165,35 @@ SetActive(); m_state = ReadState; - return QContactManager::NoError; + *error = QContactManager::NoError; + return true; } -QContactManager::Error CntSimStorePrivate::write(const QContact &contact) +bool CntSimStorePrivate::write(const QContact &contact, QContactManager::Error *error) { - if (IsActive()) - return QContactManager::LockedError; + if (IsActive()) { + *error = QContactManager::LockedError; + return false; + } // get index m_writeIndex = KErrNotFound; if (contact.id().managerUri() == m_managerUri && contact.localId() > 0) { - m_writeIndex = contact.localId(); + m_writeIndex = contact.localId(); + + // TODO: check that the contact exist in the sim } // encode m_buffer.Zero(); m_buffer.ReAlloc(KOneSimContactBufferSize); - TRAPD(err, m_convertedContact = encodeSimContactL(&contact, m_buffer)); + m_convertedContact = QContact(contact); + + TRAPD(err, encodeSimContactL(&m_convertedContact, m_buffer)); if (err != KErrNone) { - QContactManager::Error qtError; - CntSymbianSimTransformError::transformError(err, qtError); - return qtError; + CntSymbianSimTransformError::transformError(err, error); + return false; } // start writing @@ -195,13 +201,16 @@ SetActive(); m_state = WriteState; - return QContactManager::NoError; + *error = QContactManager::NoError; + return true; } -QContactManager::Error CntSimStorePrivate::remove(int index) +bool CntSimStorePrivate::remove(int index, QContactManager::Error *error) { - if (IsActive()) - return QContactManager::LockedError; + if (IsActive()) { + *error = QContactManager::LockedError; + return false; + } // NOTE: // If index points to an empty slot and running in hardware the @@ -211,41 +220,65 @@ SetActive(); m_state = DeleteState; - return QContactManager::NoError; + *error = QContactManager::NoError; + return true; +} + +bool CntSimStorePrivate::getReservedSlots(QContactManager::Error *error) +{ + if (IsActive()) { + *error = QContactManager::LockedError; + return false; + } + + // start reading + m_buffer.Zero(); + m_buffer.ReAlloc(KOneSimContactBufferSize*m_storeInfo.iTotalEntries); + m_etelStore.Read(iStatus, 1, m_storeInfo.iTotalEntries, m_buffer); + SetActive(); + m_state = ReadReservedSlotsState; + + *error = QContactManager::NoError; + return true; } void CntSimStorePrivate::DoCancel() { - if (m_state == GetInfoState) - m_etelStore.CancelAsyncRequest(EMobilePhoneStoreGetInfo); if (m_state == ReadState) m_etelStore.CancelAsyncRequest(EMobilePhoneStoreRead); if (m_state == WriteState) m_etelStore.CancelAsyncRequest(EMobilePhoneStoreWrite); if (m_state == DeleteState) m_etelStore.CancelAsyncRequest(EMobilePhoneStoreDelete); + if (m_state == ReadReservedSlotsState) + m_etelStore.CancelAsyncRequest(EMobilePhoneStoreRead); m_state = InactiveState; } void CntSimStorePrivate::RunL() { + //qDebug() << "CntSimStorePrivate::RunL()" << m_state << iStatus.Int(); + + m_asyncError = iStatus.Int(); User::LeaveIfError(iStatus.Int()); // NOTE: It is assumed that emitting signals is queued switch (m_state) { - case GetInfoState: - { - emit m_simStore.getInfoComplete(m_storeInfo, QContactManager::NoError); - } - break; - case ReadState: { QList contacts = decodeSimContactsL(m_buffer); - m_buffer.Zero(); + + // set sync target + QList::iterator i; + for (i = contacts.begin(); i != contacts.end(); ++i) { + QContactSyncTarget syncTarget; + syncTarget.setSyncTarget(KSimSyncTarget); + i->saveDetail(&syncTarget); + } + emit m_simStore.readComplete(contacts, QContactManager::NoError); } break; @@ -259,10 +292,12 @@ m_convertedContact.setId(contactId); // set sync target - QContactSyncTarget syncTarget; - syncTarget.setSyncTarget(KSimSyncTarget); - m_convertedContact.saveDetail(&syncTarget); - + if(m_convertedContact.detail(QContactSyncTarget::DefinitionName).isEmpty()) { + QContactSyncTarget syncTarget = m_convertedContact.detail(QContactSyncTarget::DefinitionName); + syncTarget.setSyncTarget(KSimSyncTarget); + m_convertedContact.saveDetail(&syncTarget); + } + emit m_simStore.writeComplete(m_convertedContact, QContactManager::NoError); } break; @@ -273,6 +308,13 @@ } break; + case ReadReservedSlotsState: + { + QList reservedSlots = decodeReservedSlotsL(m_buffer); + emit m_simStore.getReservedSlotsComplete(reservedSlots, QContactManager::NoError); + } + break; + default: { User::Leave(KErrUnknown); @@ -285,22 +327,19 @@ TInt CntSimStorePrivate::RunError(TInt aError) { QContactManager::Error qtError = QContactManager::NoError; - CntSymbianSimTransformError::transformError(aError, qtError); + CntSymbianSimTransformError::transformError(aError, &qtError); // NOTE: It is assumed that emitting signals is queued - if (m_state == GetInfoState) { - RMobilePhoneBookStore::TMobilePhoneBookInfoV5 emptyInfo; - emit m_simStore.getInfoComplete(emptyInfo, qtError); - } else if (m_state == ReadState) { - QList emptyList; - emit m_simStore.readComplete(emptyList, qtError); - } else if (m_state == WriteState) { + if (m_state == ReadState) + emit m_simStore.readComplete(QList(), qtError); + else if (m_state == WriteState) emit m_simStore.writeComplete(m_convertedContact, qtError); - } else if (m_state == DeleteState) { + else if (m_state == DeleteState) emit m_simStore.removeComplete(qtError); - } - + else if (m_state == ReadReservedSlotsState) + emit m_simStore.getReservedSlotsComplete(QList(), qtError); + m_state = InactiveState; return KErrNone; @@ -368,6 +407,8 @@ QString number = lastNumber.number(); number.insert(0, "+"); lastNumber.setNumber(number); + if (m_readOnlyAccess) + m_engine.setReadOnlyAccessConstraint(&lastNumber); currentContact.saveDetail(&lastNumber); } } @@ -390,9 +431,11 @@ QContactName name; QString nameString = QString::fromUtf16(bufPtr.Ptr(), bufPtr.Length()); name.setCustomLabel(nameString); + if (m_readOnlyAccess) + m_engine.setReadOnlyAccessConstraint(&name); currentContact.saveDetail(&name); QContactManager::Error error(QContactManager::NoError); - currentContact = m_engine.setContactDisplayLabel(m_engine.synthesizedDisplayLabel(currentContact, error), currentContact); + m_engine.setContactDisplayLabel(¤tContact, m_engine.synthesizedDisplayLabel(currentContact, &error)); } } break; @@ -403,6 +446,8 @@ QContactNickname nickName; QString name = QString::fromUtf16(bufPtr.Ptr(), bufPtr.Length()); nickName.setNickname(name); + if (m_readOnlyAccess) + m_engine.setReadOnlyAccessConstraint(&nickName); currentContact.saveDetail(&nickName); } break; @@ -411,9 +456,10 @@ { if (pbBuffer->GetValue(bufPtr) == KErrNone) { QContactPhoneNumber phoneNumber; - phoneNumber.setSubTypes( QContactPhoneNumber::SubTypeMobile ); QString number = QString::fromUtf16(bufPtr.Ptr(), bufPtr.Length()); phoneNumber.setNumber(number); + if (m_readOnlyAccess) + m_engine.setReadOnlyAccessConstraint(&phoneNumber); currentContact.saveDetail(&phoneNumber); } break; @@ -430,6 +476,8 @@ QContactEmailAddress email; QString emailAddress = QString::fromUtf16(bufPtr.Ptr(), bufPtr.Length()); email.setEmailAddress(emailAddress); + if (m_readOnlyAccess) + m_engine.setReadOnlyAccessConstraint(&email); currentContact.saveDetail(&email); } break; @@ -473,129 +521,150 @@ * * \param contact QContact to be converted * \param rawData Contact in TLV format on return. - * \return QContact containing actually saved information. */ -QContact CntSimStorePrivate::encodeSimContactL(const QContact* contact, TDes8& rawData) const +void CntSimStorePrivate::encodeSimContactL(QContact* contact, TDes8& rawData) const { - PbkPrintToLog(_L("CntSymbianSimEngine::encodeSimContactL() - IN")); - QContact convertedContact; + // TODO: get detail definition schema and verify (unique) + + // Keep track of the count of phone numbers added + int phoneNumberCount(0); + int emailCount(0); + CPhoneBookBuffer* pbBuffer = new(ELeave) CPhoneBookBuffer(); CleanupStack::PushL(pbBuffer); pbBuffer->Set(&rawData); - - //add new enty tag User::LeaveIfError(pbBuffer->AddNewEntryTag()); - //add name - QString name; - QList nameDetails = contact->details(QContactName::DefinitionName); - if (nameDetails.count() == 0) { - // TODO: should we leave name empty? - name.append("Unnamed"); - } - else { - QContactName nameDetail = static_cast(nameDetails.at(0)); - name.append(nameDetail.customLabel()); - if (name.isNull()) { - // TODO: should we leave name empty? - name.append("Unnamed)"); - } - } - name = name.left(m_storeInfo.iMaxTextLength); //trim to the max possible length - TPtrC nameValue(reinterpret_cast(name.utf16())); - User::LeaveIfError(pbBuffer->PutTagAndValue(RMobilePhoneBookStore::ETagPBText, nameValue)); + foreach(QContactDetail detail, contact->details()) { + QString definitionName = detail.definitionName(); + + if (definitionName == QContactName::DefinitionName) { + // Name + QContactName nameDetail = static_cast(detail); + // Trim to the max possible length + QString name = nameDetail.customLabel().left(m_storeInfo.iMaxTextLength); + if (name.isEmpty()) { + name = "Unnamed"; + } + putTagAndValueL( + pbBuffer, + RMobilePhoneBookStore::ETagPBText, + name); + // Replace detail value with the trimmed one + nameDetail.setCustomLabel(name); + contact->saveDetail(&nameDetail); + } else if (definitionName == QContactPhoneNumber::DefinitionName +#ifndef SYMBIANSIM_BACKEND_PHONEBOOKINFOV1 + && (phoneNumberCount == 0 + || phoneNumberCount <= m_storeInfo.iMaxAdditionalNumbers)) { +#else + && phoneNumberCount == 0) { +#endif + // Phone number + phoneNumberCount++; + QContactPhoneNumber numberDetail = static_cast(detail); + QString number = numberDetail.number(); + + // Verify the number only contains legal digits + foreach (const QChar character, number) { + if(!character.isDigit()) { + if(character != QChar('+') + && character != QChar('*') + && character != QChar('#') + && character != QChar('p') + && character != QChar('w')) { + User::Leave(KErrArgument); + } + } + } + + // TODO: check if the number is empty (do we have a test case for that?) - QContactName convertedNameDetail; - convertedNameDetail.setCustomLabel(name); - convertedContact.saveDetail(&convertedNameDetail); + // Verify the number length + PbkPrintToLog(_L("CntSymbianSimEngine::encodeSimContactL() - phone number length = %d"), + numberDetail.number().length()); + if (numberDetail.number().length() > m_storeInfo.iMaxNumLength) { + User::Leave(KErrTooBig); + } + + if (phoneNumberCount > 1) { + // Mark the beginning of an additional number + User::LeaveIfError(pbBuffer->AddNewNumberTag()); + } - //add nickname - if (m_storeInfo.iMaxSecondNames > 0) { - QString nickname; - QList nicknameDetails = contact->details(QContactNickname::DefinitionName); - if (nicknameDetails.count() > 0) { - QContactNickname nicknameDetail = static_cast(nicknameDetails.at(0)); - nickname = nicknameDetail.nickname(); - nickname = nickname.left(m_storeInfo.iMaxTextLengthSecondName); //trim to the max possible length - TPtrC nicknameValue(reinterpret_cast(nickname.utf16())); - User::LeaveIfError(pbBuffer->PutTagAndValue(RMobilePhoneBookStore::ETagPBSecondName, nicknameValue)); - - QContactNickname convertedNicknameDetail; - convertedNicknameDetail.setNickname(nickname); - convertedContact.saveDetail(&convertedNicknameDetail); + // The number itself + putTagAndValueL( + pbBuffer, + RMobilePhoneBookStore::ETagPBNumber, + number); +#ifndef SYMBIANSIM_BACKEND_PHONEBOOKINFOV1 + // Phonebook info version 1 does not support nick name or e-mail + } else if (definitionName == QContactNickname::DefinitionName + && m_storeInfo.iMaxSecondNames > 0) { + // nickname + QContactNickname nicknameDetail = static_cast(detail); + // Trim to the max possible length; + QString nickname = nicknameDetail.nickname().left(m_storeInfo.iMaxTextLengthSecondName); + putTagAndValueL( + pbBuffer, + RMobilePhoneBookStore::ETagPBSecondName, + nickname); + // Replace detail value with the trimmed one + nicknameDetail.setNickname(nickname); + contact->saveDetail(&nicknameDetail); + } else if (definitionName == QContactEmailAddress::DefinitionName + && emailCount < m_storeInfo.iMaxEmailAddr) { + emailCount++; + QContactEmailAddress emailDetail = static_cast(detail); + if (emailDetail.emailAddress().length() > m_storeInfo.iMaxTextLengthEmailAddr) { + User::Leave(KErrTooBig); + } + putTagAndValueL( + pbBuffer, + RMobilePhoneBookStore::ETagPBEmailAddress, + emailDetail.emailAddress()); +#endif + // These are ignored in the conversion + } else if (definitionName == QContactSyncTarget::DefinitionName + || definitionName == QContactDisplayLabel::DefinitionName + || definitionName == QContactType::DefinitionName) { + // Do nothing + } else { + User::Leave(KErrArgument); } } - - //add phone number - QList phoneNumberDetails = contact->details(QContactPhoneNumber::DefinitionName); - if (phoneNumberDetails.count() > 0) { - PbkPrintToLog(_L("CntSymbianSimEngine::encodeSimContactL() - add phone number")); - QContactPhoneNumber phoneNumberDetail = static_cast(phoneNumberDetails.at(0)); - QString number = phoneNumberDetail.number(); - foreach (const QChar character, number) { - if(!character.isDigit()) { - if(character != QChar('+') - && character != QChar('*') - && character != QChar('#') - && character != QChar('p') - && character != QChar('w')) { - User::Leave(KErrArgument); - } - } - } - PbkPrintToLog(_L("CntSymbianSimEngine::encodeSimContactL() - phone number length = %d"), - phoneNumberDetail.number().length()); - if (phoneNumberDetail.number().length() > m_storeInfo.iMaxNumLength) { - User::Leave(KErrTooBig); - } - TPtrC phoneNumberValue(reinterpret_cast(phoneNumberDetail.number().utf16())); - PbkPrintToLog(_L("CntSymbianSimEngine::encodeSimContactL() - number = %S"), &phoneNumberValue); - User::LeaveIfError(pbBuffer->PutTagAndValue(RMobilePhoneBookStore::ETagPBNumber, phoneNumberValue)); - - QContactPhoneNumber convertedPhoneNumberDetail; - convertedPhoneNumberDetail.setNumber(phoneNumberDetail.number()); - convertedContact.saveDetail(&convertedPhoneNumberDetail); - } + CleanupStack::PopAndDestroy(pbBuffer); +} - //add additional numbers - if (m_storeInfo.iMaxAdditionalNumbers > 0) { - //one number is saved already - for (int i = 1; i < phoneNumberDetails.count() && i-1 < m_storeInfo.iMaxAdditionalNumbers; ++i) { - QContactPhoneNumber phoneNumberDetail = static_cast(phoneNumberDetails.at(i)); - if (phoneNumberDetail.number().length() > m_storeInfo.iMaxNumLengthAdditionalNumber) { - User::Leave(KErrTooBig); - } - //mark the beginning of an additional number - User::LeaveIfError(pbBuffer->AddNewNumberTag()); - //add number itself - TPtrC phoneNumberValue(reinterpret_cast(phoneNumberDetail.number().utf16())); - User::LeaveIfError(pbBuffer->PutTagAndValue(RMobilePhoneBookStore::ETagPBNumber, phoneNumberValue)); - - QContactPhoneNumber convertedPhoneNumberDetail; - convertedPhoneNumberDetail.setNumber(phoneNumberDetail.number()); - convertedContact.saveDetail(&convertedPhoneNumberDetail); - } - } - - //add e-mails - if (m_storeInfo.iMaxEmailAddr > 0) { - QList emailDetails = contact->details(QContactEmailAddress::DefinitionName); - for (int i = 0; i < emailDetails.count() && i < m_storeInfo.iMaxEmailAddr; ++i) { - QContactEmailAddress emailDetail = static_cast(emailDetails.at(i)); - TPtrC emailValue(reinterpret_cast(emailDetail.emailAddress().utf16())); - if (emailValue.Length() > m_storeInfo.iMaxTextLengthEmailAddr) { - User::Leave(KErrTooBig); - } - User::LeaveIfError(pbBuffer->PutTagAndValue(RMobilePhoneBookStore::ETagPBEmailAddress, emailValue)); - - QContactEmailAddress convertedEmailDetail; - convertedEmailDetail.setEmailAddress(emailDetail.emailAddress()); - convertedContact.saveDetail(&convertedEmailDetail); - } - } - - CleanupStack::PopAndDestroy(pbBuffer); - PbkPrintToLog(_L("CntSymbianSimEngine::encodeSimContactL() - OUT")); - return convertedContact; +void CntSimStorePrivate::putTagAndValueL(CPhoneBookBuffer* pbBuffer, TUint8 tag, QString data) const +{ + TPtrC value(reinterpret_cast(data.utf16())); + User::LeaveIfError(pbBuffer->PutTagAndValue(tag, value)); } +QList CntSimStorePrivate::decodeReservedSlotsL(TDes8& rawData) const +{ + QList reservedSlots; + + TUint8 tagValue(0); + CPhoneBookBuffer::TPhBkTagType dataType; + + CPhoneBookBuffer* pbBuffer = new (ELeave) CPhoneBookBuffer(); + CleanupStack::PushL(pbBuffer); + pbBuffer->Set(&rawData); + pbBuffer->StartRead(); + + while (pbBuffer->GetTagAndType(tagValue, dataType) == KErrNone) + { + if (tagValue == RMobilePhoneBookStore::ETagPBAdnIndex) + { + TUint16 index; + if (pbBuffer->GetValue(index) == KErrNone) + reservedSlots.append(index); + } else + pbBuffer->SkipValue(dataType); + } //while + + CleanupStack::PopAndDestroy(pbBuffer); + return reservedSlots; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntsymbiansimengine.cpp --- a/qtmobility/plugins/contacts/symbiansim/src/cntsymbiansimengine.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntsymbiansimengine.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,9 +40,6 @@ ****************************************************************************/ #include "cntsymbiansimengine.h" -#include -#include - #include "cntsymbiansimtransformerror.h" #include "cntsimstore.h" #include "cntsimcontactfetchrequest.h" @@ -50,17 +47,13 @@ #include "cntsimcontactsaverequest.h" #include "cntsimcontactremoverequest.h" #include "cntsimdetaildefinitionfetchrequest.h" - -#ifdef SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER -#include -#else -#include -#endif +#include #include #include +#include - +const int KRequestTimeout = 30000; // in ms CntSymbianSimEngineData::CntSymbianSimEngineData() :m_simStore(0) @@ -82,18 +75,22 @@ } } -CntSymbianSimEngine::CntSymbianSimEngine(const QMap& parameters, QContactManager::Error& error) +CntSymbianSimEngine::CntSymbianSimEngine(const QMap& parameters, QContactManager::Error* error) { - error = QContactManager::NoError; + *error = QContactManager::NoError; d = new CntSymbianSimEngineData(); - d->m_simStore = new CntSimStore(this, parameters.value(KParameterKeySimStoreName)); + d->m_simStore = new CntSimStore(this, parameters.value(KParameterKeySimStoreName), error); + if (*error != QContactManager::NoError) { + //qDebug() << "Failed to open SIM store" << error; + return; + } if(d->m_simStore->storeName() == KParameterValueSimStoreNameSdn) { // In case of SDN store we need to check if any SDN contacts exist to // determine if the store is supported or not if(d->m_simStore->storeInfo().iUsedEntries == 0) - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; } } @@ -108,33 +105,16 @@ } -void CntSymbianSimEngine::deref() -{ - delete this; -} - QString CntSymbianSimEngine::managerName() const { return CNT_SYMBIANSIM_MANAGER_NAME; } /*! - * Returns a list of the ids of contacts that match the supplied \a filter. - * Any error that occurs will be stored in \a error. - */ -QList CntSymbianSimEngine::contactIds(const QList& sortOrders, QContactManager::Error& error) const -{ - QContactLocalIdFetchRequest req; - req.setSorting(sortOrders); - executeRequest(&req, error); - return req.ids(); -} - -/*! * Returns a list of the ids of contacts that match the supplied \a filter, sorted according to the given \a sortOrders. * Any error that occurs will be stored in \a error. Uses the generic (slow) filtering of QContactManagerEngine. */ -QList CntSymbianSimEngine::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error& error) const +QList CntSymbianSimEngine::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const { QContactLocalIdFetchRequest req; req.setFilter(filter); @@ -143,21 +123,12 @@ return req.ids(); } -QList CntSymbianSimEngine::contacts(const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const -{ - QContactFetchRequest req; - req.setSorting(sortOrders); - req.setDefinitionRestrictions(definitionRestrictions); - executeRequest(&req, error); - return req.contacts(); -} - -QList CntSymbianSimEngine::contacts(const QContactFilter& filter, const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QList CntSymbianSimEngine::contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const { QContactFetchRequest req; req.setFilter(filter); req.setSorting(sortOrders); - req.setDefinitionRestrictions(definitionRestrictions); + req.setFetchHint(fetchHint); executeRequest(&req, error); return req.contacts(); } @@ -171,20 +142,20 @@ * \return A QContact for the requested QContactLocalId value or 0 if the read * operation was unsuccessful (e.g. contact not found). */ -QContact CntSymbianSimEngine::contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QContact CntSymbianSimEngine::contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const { QContactFetchRequest req; QContactLocalIdFilter filter; filter.setIds(QList() << contactId); req.setFilter(filter); - req.setDefinitionRestrictions(definitionRestrictions); + req.setFetchHint(fetchHint); executeRequest(&req, error); if (req.contacts().count() == 0) return QContact(); return req.contacts().at(0); } -QString CntSymbianSimEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const +QString CntSymbianSimEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const { Q_UNUSED(error); @@ -198,32 +169,17 @@ } /*! - * Saves the contact to the Etel store. Only part of the contact's details + * Saves the contacts to the Etel store. Only part of the contact's details * can be saved, and some fields may be trimmed to fit to the SIM card. * - * \param contact Contact to be saved. + * \param contacts Contact to be saved. * \param qtError Qt error code. * \return Error status. */ -bool CntSymbianSimEngine::saveContact(QContact* contact, QContactManager::Error& error) -{ - if (!contact) { - error = QContactManager::BadArgumentError; - return false; - } - - QContactSaveRequest req; - req.setContacts(QList() << *contact); - executeRequest(&req, error); - if (req.contacts().count()) - *contact = req.contacts().at(0); - return (error == QContactManager::NoError); -} - -bool CntSymbianSimEngine::saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error& error) +bool CntSymbianSimEngine::saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error) { if (!contacts) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } @@ -233,7 +189,7 @@ if (errorMap) *errorMap = req.errorMap(); *contacts = req.contacts(); - return (error == QContactManager::NoError ); + return (*error == QContactManager::NoError ); } /*! @@ -243,41 +199,30 @@ * \param qtError Qt error code. * \return Error status. */ -bool CntSymbianSimEngine::removeContact(const QContactLocalId& contactId, QContactManager::Error& error) +bool CntSymbianSimEngine::removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error) { QContactRemoveRequest req; - req.setContactIds(QList() << contactId); - return executeRequest(&req, error); -} - -bool CntSymbianSimEngine::removeContacts(QList* contactIds, QMap* errorMap, QContactManager::Error& error) -{ - if (!contactIds) { - error = QContactManager::BadArgumentError; - return false; - } - QContactRemoveRequest req; - req.setContactIds(*contactIds); + req.setContactIds(contactIds); executeRequest(&req, error); if (errorMap) *errorMap = req.errorMap(); - return (error == QContactManager::NoError); + return (*error == QContactManager::NoError); } /*! * Returns a map of identifier to detail definition which are valid for contacts whose type is the given \a contactType * which are valid for the contacts in this store */ -QMap CntSymbianSimEngine::detailDefinitions(const QString& contactType, QContactManager::Error& error) const +QMap CntSymbianSimEngine::detailDefinitions(const QString& contactType, QContactManager::Error* error) const { if (!supportedContactTypes().contains(contactType)) { // Should never happen - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QMap(); } // Get store information - RMobilePhoneBookStore::TMobilePhoneBookInfoV5 storeInfo = d->m_simStore->storeInfo(); + TSimStoreInfo storeInfo = d->m_simStore->storeInfo(); // the map we will eventually return QMap retn; @@ -340,6 +285,7 @@ retn.insert(def.name(), def); // email support needs to be checked run-time, because it is SIM specific +#ifndef SYMBIANSIM_BACKEND_PHONEBOOKINFOV1 if (storeInfo.iMaxEmailAddr > 0) { def.setName(QContactEmailAddress::DefinitionName); fields.clear(); @@ -350,6 +296,7 @@ def.setUnique(true); retn.insert(def.name(), def); } +#endif // phone number def.setName(QContactPhoneNumber::DefinitionName); @@ -359,6 +306,7 @@ fields.insert(QContactPhoneNumber::FieldNumber, f); // TODO: subtypes supported in case a sim contact can have multiple phone numbers? def.setFields(fields); +#ifndef SYMBIANSIM_BACKEND_PHONEBOOKINFOV1 if (storeInfo.iMaxAdditionalNumbers > 0) { // multiple numbers supported def.setUnique(false); @@ -366,9 +314,14 @@ // only one phone number allowed def.setUnique(true); } +#else + // only one phone number allowed + def.setUnique(true); +#endif retn.insert(def.name(), def); // nickname support needs to be checked run-time, because it is SIM specific +#ifndef SYMBIANSIM_BACKEND_PHONEBOOKINFOV1 if (storeInfo.iMaxSecondNames > 0) { def.setName(QContactNickname::DefinitionName); fields.clear(); @@ -379,6 +332,7 @@ def.setUnique(true); retn.insert(def.name(), def); } +#endif // name def.setName(QContactName::DefinitionName); @@ -526,12 +480,17 @@ void CntSymbianSimEngine::updateDisplayLabel(QContact& contact) const { QContactManager::Error error(QContactManager::NoError); - QString label = synthesizedDisplayLabel(contact, error); + QString label = synthesizedDisplayLabel(contact, &error); if(error == QContactManager::NoError) { - contact = setContactDisplayLabel(label, contact); + setContactDisplayLabel(&contact, label); } } +void CntSymbianSimEngine::setReadOnlyAccessConstraint(QContactDetail* detail) const +{ + setDetailAccessConstraints(detail, QContactDetail::ReadOnly); +} + /*! * Executes an asynchronous request so that it will appear synchronous. This is * used internally in all synchronous functions. This way we only need to @@ -541,8 +500,10 @@ * \param qtError Qt error code. * \return true if succesfull, false if unsuccesfull. */ -bool CntSymbianSimEngine::executeRequest(QContactAbstractRequest *req, QContactManager::Error& qtError) const +bool CntSymbianSimEngine::executeRequest(QContactAbstractRequest *req, QContactManager::Error* qtError) const { + *qtError = QContactManager::NoError; + // TODO: // Remove this code when threads-branch is merged to master. Then this code // should not be needed because the default implementation at QContactManager @@ -553,18 +514,24 @@ CntSymbianSimEngine engine(*this); // Mimic the way how async requests are normally run - if (engine.startRequest(req)) - engine.waitForRequestFinished(req, 0); // should we have a timeout? + if (!engine.startRequest(req)) { + *qtError = QContactManager::LockedError; + } else { + if (!engine.waitForRequestFinished(req, KRequestTimeout)) + *qtError = QContactManager::UnspecifiedError; // timeout occurred + } engine.requestDestroyed(req); - qtError = req->error(); - return (qtError == QContactManager::NoError); + if (req->error()) + *qtError = req->error(); + + return (*qtError == QContactManager::NoError); } -QContactManagerEngine* CntSymbianSimFactory::engine(const QMap& parameters, QContactManager::Error& error) +QContactManagerEngine* CntSymbianSimFactory::engine(const QMap& parameters, QContactManager::Error* error) { CntSymbianSimEngine *engine = new CntSymbianSimEngine(parameters, error); - if(error != QContactManager::NoError) { + if(*error != QContactManager::NoError) { delete engine; return 0; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/src/cntsymbiansimtransformerror.cpp --- a/qtmobility/plugins/contacts/symbiansim/src/cntsymbiansimtransformerror.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/src/cntsymbiansimtransformerror.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,54 +46,54 @@ * \param symbianError Symbian error. * \param QtError Qt error. */ -void CntSymbianSimTransformError::transformError(TInt symbianError, QContactManager::Error& qtError) +void CntSymbianSimTransformError::transformError(TInt symbianError, QContactManager::Error* qtError) { switch(symbianError) { case KErrNone: { - qtError = QContactManager::NoError; + *qtError = QContactManager::NoError; break; } case KErrNotFound: { - qtError = QContactManager::DoesNotExistError; + *qtError = QContactManager::DoesNotExistError; break; } case KErrAlreadyExists: { - qtError = QContactManager::AlreadyExistsError; + *qtError = QContactManager::AlreadyExistsError; break; } case KErrLocked: { - qtError = QContactManager::LockedError; + *qtError = QContactManager::LockedError; break; } case KErrAccessDenied: case KErrPermissionDenied: { - qtError = QContactManager::PermissionsError; + *qtError = QContactManager::PermissionsError; break; } case KErrNoMemory: { - qtError = QContactManager::OutOfMemoryError; + *qtError = QContactManager::OutOfMemoryError; break; } case KErrNotSupported: { - qtError = QContactManager::NotSupportedError; + *qtError = QContactManager::NotSupportedError; break; } case KErrArgument: { - qtError = QContactManager::BadArgumentError; + *qtError = QContactManager::BadArgumentError; break; } default: { - qtError = QContactManager::UnspecifiedError; + *qtError = QContactManager::UnspecifiedError; break; } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/symbiansim.pro --- a/qtmobility/plugins/contacts/symbiansim/symbiansim.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/symbiansim.pro Mon May 03 13:18:40 2010 +0300 @@ -31,6 +31,7 @@ inc/cntsymbiansimtransformerror.h \ inc/cntsimstore.h \ inc/cntsimstoreprivate.h \ + inc/cntsimstoreeventlistener.h \ inc/cntabstractsimrequest.h \ inc/cntsimcontactfetchrequest.h \ inc/cntsimcontactlocalidfetchrequest.h \ @@ -42,6 +43,7 @@ src/cntsymbiansimtransformerror.cpp \ src/cntsimstore.cpp \ src/cntsimstoreprivate.cpp \ + src/cntsimstoreeventlistener.cpp \ src/cntabstractsimrequest.cpp \ src/cntsimcontactfetchrequest.cpp \ src/cntsimcontactlocalidfetchrequest.cpp \ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/symbiansim_defines.pri --- a/qtmobility/plugins/contacts/symbiansim/symbiansim_defines.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/symbiansim_defines.pri Mon May 03 13:18:40 2010 +0300 @@ -13,4 +13,28 @@ LIBS += -letel \ -letelmm } + + contains(S60_VERSION, 3.1) { + + # In S60 3.1 we need to use TMobilePhoneBookInfoV1 instead of TMobilePhoneBookInfoV5. + # Note: Etel testsserver uses V5 always. + !contains(DEFINES, SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER) { + DEFINES += SYMBIANSIM_BACKEND_PHONEBOOKINFOV1 + } + + # S60 3.1 device will reboot when removing several nonexisting contacts in + # sequence. The first remove operation will succeed but right after the second + # remove operation has completed the device reboots. To prevent rebooting + # we read the reserved slots before and really remove those contacts that + # really exist. + DEFINES += SYMBIANSIM_BACKEND_CHECK_BEFORE_REMOVE + } + + # In pre 10.1 platforms we need a small delay between requests to prevent + # S60 3.2 devices from rebooting and S60 5.0 devices from reporting a + # server busy error. Not sure if this is really needed for S60 3.1 but + # it does not hurt. + contains(S60_VERSION, 3.1) | contains(S60_VERSION, 3.2) | contains(S60_VERSION, 5.0) { + DEFINES += SYMBIANSIM_BACKEND_USE_DELAY + } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/tsrc/tst_simcm/tst_simcm.cpp --- a/qtmobility/plugins/contacts/symbiansim/tsrc/tst_simcm/tst_simcm.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/tsrc/tst_simcm/tst_simcm.cpp Mon May 03 13:18:40 2010 +0300 @@ -108,6 +108,7 @@ /* Test cases that take no data */ void signalEmission(); + void sdnContacts(); private: void initManager(QString simStore); @@ -119,8 +120,13 @@ private: QContactManager* m_cm; +#ifdef SYMBIANSIM_BACKEND_PHONEBOOKINFOV1 + RMobilePhoneBookStore::TMobilePhoneBookInfoV1 m_etelStoreInfo; + RMobilePhoneBookStore::TMobilePhoneBookInfoV1Pckg m_etelStoreInfoPckg; +#else RMobilePhoneBookStore::TMobilePhoneBookInfoV5 m_etelStoreInfo; RMobilePhoneBookStore::TMobilePhoneBookInfoV5Pckg m_etelStoreInfoPckg; +#endif }; tst_SimCM::tst_SimCM() : @@ -137,14 +143,14 @@ { // remove all contacts QList ids = m_cm->contactIds(); - m_cm->removeContacts(&ids, 0); + m_cm->removeContacts(ids, 0); } void tst_SimCM::cleanup() { // remove all contacts QList ids = m_cm->contactIds(); - m_cm->removeContacts(&ids, 0); + m_cm->removeContacts(ids, 0); } void tst_SimCM::initTestCase() @@ -166,7 +172,7 @@ { QTest::addColumn("simStore"); // empty (defaults to ADN), "ADN", "SDN" or "FDN" - QString es = QString(); + QString es; QTest::newRow("Empty store string (defaults to ADN store)") << es; QTest::newRow("Initialize SDN store") << "SDN"; @@ -220,14 +226,13 @@ QTest::addColumn("simStore"); // empty (defaults to ADN), "ADN", "SDN" or "FDN" QTest::addColumn("managerFeature"); // one of QContactManager::ManagerFeature QTest::addColumn("expectedResult"); // true = has feature, false = does not have feature - QString es = QString(); + QString es; QTest::newRow("ADN store (default)") << es << (int) QContactManager::Groups << false; QTest::newRow("ADN store (default)") << es << (int) QContactManager::ActionPreferences << false; QTest::newRow("ADN store (default)") << es << (int) QContactManager::MutableDefinitions << false; QTest::newRow("ADN store (default)") << es << (int) QContactManager::Relationships << false; QTest::newRow("ADN store (default)") << es << (int) QContactManager::ArbitraryRelationshipTypes << false; - QTest::newRow("ADN store (default)") << es << (int) QContactManager::RelationshipOrdering << false; // TODO: self contact may be supported on ADN? (so called "own number store") QTest::newRow("ADN store (default)") << es << (int) QContactManager::SelfContact << false; QTest::newRow("ADN store (default)") << es << (int) QContactManager::Anonymous << false; @@ -238,7 +243,6 @@ QTest::newRow("ADN store") << "ADN" << (int) QContactManager::MutableDefinitions << false; QTest::newRow("ADN store") << "ADN" << (int) QContactManager::Relationships << false; QTest::newRow("ADN store") << "ADN" << (int) QContactManager::ArbitraryRelationshipTypes << false; - QTest::newRow("ADN store") << "ADN" << (int) QContactManager::RelationshipOrdering << false; // TODO: self contact may be supported on ADN? (so called "own number store") QTest::newRow("ADN store") << "ADN" << (int) QContactManager::SelfContact << false; QTest::newRow("ADN store") << "ADN" << (int) QContactManager::Anonymous << false; @@ -249,7 +253,6 @@ QTest::newRow("SDN store") << "SDN" << (int) QContactManager::MutableDefinitions << false; QTest::newRow("SDN store") << "SDN" << (int) QContactManager::Relationships << false; QTest::newRow("SDN store") << "SDN" << (int) QContactManager::ArbitraryRelationshipTypes << false; - QTest::newRow("SDN store") << "SDN" << (int) QContactManager::RelationshipOrdering << false; QTest::newRow("SDN store") << "SDN" << (int) QContactManager::SelfContact << false; QTest::newRow("SDN store") << "SDN" << (int) QContactManager::Anonymous << false; QTest::newRow("SDN store") << "SDN" << (int) QContactManager::ChangeLogs << false; @@ -259,7 +262,6 @@ QTest::newRow("FDN store") << "FDN" << (int) QContactManager::MutableDefinitions << false; QTest::newRow("FDN store") << "FDN" << (int) QContactManager::Relationships << false; QTest::newRow("FDN store") << "FDN" << (int) QContactManager::ArbitraryRelationshipTypes << false; - QTest::newRow("FDN store") << "FDN" << (int) QContactManager::RelationshipOrdering << false; QTest::newRow("FDN store") << "FDN" << (int) QContactManager::SelfContact << false; QTest::newRow("FDN store") << "FDN" << (int) QContactManager::Anonymous << false; QTest::newRow("FDN store") << "FDN" << (int) QContactManager::ChangeLogs << false; @@ -353,7 +355,7 @@ QTest::addColumn("expectedDisplayLabel"); QTest::addColumn("details"); // format is :: QString unnamedLabel("Unnamed"); - QString es = QString(); + QString es; QString tooLongText("James Hunt the 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890th"); // TODO: what name field to use for a sim contact name? @@ -546,7 +548,18 @@ << (QStringList() << "Name:CustomLabel:James"); - // TODO: Test saving FDN contacts? + // Note: Executing FDN test cases has a pre-condition that the user must + // have been entered the PIN2 code successfully. On pre-10.1 platforms this + // can be done by opening S60 platform Phonebook and making some + // modifications that require PIN2 code; for example activate and + // de-activate FDN feature. + QTest::newRow("FDN custom label and phone number") + << "FDN" + << 1 + << "James" + << (QStringList() + << "Name:CustomLabel:James" + << "PhoneNumber:PhoneNumber:+44752222222"); } /* @@ -683,7 +696,7 @@ } // 2. Fetch contacts - QList contacts= m_cm->contacts(QList(), QStringList()); + QList contacts= m_cm->contacts(); QCOMPARE(m_cm->error(), QContactManager::NoError); QList contactIds = m_cm->contactIds(); QCOMPARE(m_cm->error(), QContactManager::NoError); @@ -691,7 +704,7 @@ // 3. Verify result QVERIFY(contacts.count() > 0); QCOMPARE(contacts.count(), existingContactCount + contactCount); - foreach (QContact contact, contacts) { + foreach (const QContact& contact, contacts) { QVERIFY(contact.id() != QContactId()); } @@ -838,7 +851,7 @@ compareDetails(contact, parsedDetails); // 3. Update contact detail and verify result - foreach (QContactDetail detail, parsedDetails) { + foreach (const QContactDetail& detail, parsedDetails) { QContactDetail savedDetail = contact.detail(detail.definitionName()); QVERIFY(contact.removeDetail(&savedDetail)); } @@ -910,14 +923,14 @@ QVERIFY(m_cm->saveContacts(&contacts, &errorMap)); QCOMPARE(m_cm->error(), QContactManager::NoError); QCOMPARE(errorMap.count(), 0); - foreach (QContact contact, contacts) { + foreach (const QContact& contact, contacts) { QVERIFY(contact.id() != QContactId()); } } else { QVERIFY(!m_cm->saveContacts(&contacts, &errorMap)); QVERIFY(m_cm->error() != QContactManager::NoError); QCOMPARE(errorMap.count(), 10); - foreach (QContact contact, contacts) { + foreach (const QContact& contact, contacts) { QCOMPARE(contact.id(), QContactId()); } } @@ -939,10 +952,10 @@ // 3. Remove contacts if(expectedResult) { QList contactIds; - foreach (QContact contact, contacts) { + foreach (const QContact& contact, contacts) { contactIds.append(contact.localId()); } - QVERIFY(m_cm->removeContacts(&contactIds, &errorMap)); + QVERIFY(m_cm->removeContacts(contactIds, &errorMap)); QCOMPARE(m_cm->error(), QContactManager::NoError); QCOMPARE(errorMap.count(), 0); } @@ -976,6 +989,7 @@ QTRY_COMPARE(spyRemoved.count(), 1); // 4. contacts added + spyAdded.clear(); int batchOpCount(10); QList contacts; for(int i(0); i < batchOpCount; i++) { @@ -989,19 +1003,47 @@ QTRY_COMPARE(spyAdded.count(), batchOpCount); // 5. contacts changed + spyChanged.clear(); QVERIFY(m_cm->saveContacts(&contacts, &errorMap)); QTRY_COMPARE(spyChanged.count(), batchOpCount); // 6. contacts removed + spyRemoved.clear(); QList contactIds; - foreach(QContact contact, contacts) { + foreach(const QContact& contact, contacts) { contactIds.append(contact.localId()); } - QVERIFY(m_cm->removeContacts(&contactIds, &errorMap)); + QVERIFY(m_cm->removeContacts(contactIds, &errorMap)); QTRY_COMPARE(spyRemoved.count(), batchOpCount); } /*! + * Tests SDN store specific stuff + */ +void tst_SimCM::sdnContacts() +{ + QString uri("qtcontacts:symbiansim:store=SDN"); + QScopedPointer cm(QContactManager::fromUri(uri)); + if (cm->error() == QContactManager::NotSupportedError) + QSKIP("The store not supported by the SIM card", SkipSingle); + + QVERIFY(cm->error() == QContactManager::NoError); + + // Verify that contact details have read only flag + QList contacts = cm->contacts(); + QVERIFY(contacts.count()); + foreach(const QContact& c, contacts) { + foreach(const QContactDetail& d, c.details()) { + QVERIFY(d.accessConstraints().testFlag(QContactDetail::ReadOnly)); + } + } + + // Writing should fail + QContact c = createContact("foo", "1234567"); + QVERIFY(!cm->saveContact(&c)); +} + +/*! * Private helper function for checking the data format that the store supports */ void tst_SimCM::getEtelStoreInfoL(const TDesC &phonebook, TDes8 &infoPckg) const @@ -1045,7 +1087,7 @@ QList uniqueDetails = QList(); - foreach(QContactDetail detail, contact.details()) { + foreach(const QContactDetail& detail, contact.details()) { QString definitionName = detail.definitionName(); // TODO: should we save a contact that has empty, non-supported details? @@ -1071,7 +1113,7 @@ } // check the fields of the detail - foreach (QString fieldKey, detail.variantValues().keys()) { + foreach (const QString& fieldKey, detail.variantValues().keys()) { if (!detailDef.fields().contains(fieldKey)) { return false; } @@ -1093,7 +1135,7 @@ void tst_SimCM::parseDetails(QContact &contact, QStringList details, QList &parsedDetails) { parsedDetails.clear(); - foreach (QString detail, details) { + foreach (const QString& detail, details) { // the expected format is :: QStringList detailParts = detail.split(QChar(':'), QString::KeepEmptyParts, Qt::CaseSensitive); QVERIFY(detailParts.count() == 3); @@ -1142,7 +1184,7 @@ if(!contact.details().contains(expectedDetail)) { // FAIL! Make it easier to debug the output by // comparing the contact detail field contents - foreach (QString key, expectedDetail.variantValues().keys()) { + foreach (const QString& key, expectedDetail.variantValues().keys()) { QVariant value1 = actualDetail.value(key); QVariant value2 = expectedDetail.value(key); QCOMPARE(actualDetail.value(key), expectedDetail.value(key)); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/symbiansim/tsrc/tst_simcmasync/tst_simcmasync.cpp --- a/qtmobility/plugins/contacts/symbiansim/tsrc/tst_simcmasync/tst_simcmasync.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/symbiansim/tsrc/tst_simcmasync/tst_simcmasync.cpp Mon May 03 13:18:40 2010 +0300 @@ -119,14 +119,14 @@ { // remove all contacts QList ids = m_cm->contactIds(); - m_cm->removeContacts(&ids, 0); + m_cm->removeContacts(ids, 0); } void tst_SimCMAsync::cleanup() { // remove all contacts QList ids = m_cm->contactIds(); - m_cm->removeContacts(&ids, 0); + m_cm->removeContacts(ids, 0); } void tst_SimCMAsync::initTestCase() @@ -230,7 +230,7 @@ // Remove all contacts QList ids = m_cm->contactIds(); - m_cm->removeContacts(&ids, 0); + m_cm->removeContacts(ids, 0); // Test fetching nothing stateSpy.clear(); @@ -290,7 +290,7 @@ // Remove all contacts QList ids = m_cm->contactIds(); - m_cm->removeContacts(&ids, 0); + m_cm->removeContacts(ids, 0); // Start again stateSpy.clear(); @@ -385,7 +385,7 @@ QVERIFY(c.details(QContactPhoneNumber::DefinitionName).count() == 0); QVERIFY(c.detail().customLabel() == c1.detail().customLabel()); QVERIFY(m_cm->contactIds().count() == 2); - c = m_cm->contact(c1.localId(), QStringList()); + c = m_cm->contact(c1.localId()); QVERIFY(c.details(QContactPhoneNumber::DefinitionName).count() == 0); QVERIFY(c.detail().customLabel() == c1.detail().customLabel()); } @@ -439,14 +439,14 @@ QVERIFY(stateSpy.count() == 1); QTRY_COMPARE(resultSpy.count(), 1); QVERIFY(req.state() == QContactAbstractRequest::FinishedState); -#ifndef __WINS__ - QWARN("This test fails in hardware!"); - QWARN("In hardware removing SIM contacts which do not exist the etel server will return KErrNone instead of KErrNotFound"); -#endif - QVERIFY(req.error() == QContactManager::DoesNotExistError); - QVERIFY(req.errorMap().count() == 2); - QVERIFY(req.errorMap().value(0) == QContactManager::DoesNotExistError); - QVERIFY(req.errorMap().value(1) == QContactManager::DoesNotExistError); + // NOTE: In emulator removing a nonexisting contact will return DoesNotExistError + // and in hardware there will be no error. + QVERIFY(req.error() == QContactManager::DoesNotExistError || req.error() == QContactManager::NoError); + if (req.errorMap().count()) { + QVERIFY(req.errorMap().count() == 2); + QVERIFY(req.errorMap().value(0) == QContactManager::DoesNotExistError); + QVERIFY(req.errorMap().value(1) == QContactManager::DoesNotExistError); + } } void tst_SimCMAsync::detailDefinitionFetchReq() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/wince/contactconversions.cpp --- a/qtmobility/plugins/contacts/wince/contactconversions.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/wince/contactconversions.cpp Mon May 03 13:18:40 2010 +0300 @@ -104,7 +104,7 @@ return newStr; } void clear() { - foreach (LPWSTR str, m_list) { + foreach (const LPWSTR& str, m_list) { free(str); } m_list.clear(); @@ -192,9 +192,9 @@ { QContactName name; setIfNotEmpty(name, QContactName::FieldPrefix, values[0].toString()); - setIfNotEmpty(name, QContactName::FieldFirst, values[1].toString()); - setIfNotEmpty(name, QContactName::FieldMiddle, values[2].toString()); - setIfNotEmpty(name, QContactName::FieldLast, values[3].toString()); + setIfNotEmpty(name, QContactName::FieldFirstName, values[1].toString()); + setIfNotEmpty(name, QContactName::FieldMiddleName, values[2].toString()); + setIfNotEmpty(name, QContactName::FieldLastName, values[3].toString()); setIfNotEmpty(name, QContactName::FieldSuffix, values[4].toString()); setIfNotEmpty(name, QContactName::FieldCustomLabel, values[5].toString()); if (!name.isEmpty()) @@ -298,7 +298,7 @@ if (!data.isEmpty()) { QPixmap pixmap; pixmap.loadFromData(data, "PNG"); - avatar.setPixmap(pixmap); + //avatar.setPixmap(pixmap); } } @@ -306,13 +306,12 @@ if (!data.isEmpty()) { QUrl url(QUrl::fromEncoded(data.toPercentEncoding())); url.setScheme("data"); - avatar.setAvatar(url.toString()); + avatar.setImageUrl(url.toString()); } } else { - avatar.setAvatar(values[0].toString()); + avatar.setImageUrl(values[0].toString()); } - setIfNotEmpty(avatar, QContactAvatar::FieldSubType, values[1].toString()); if (!avatar.isEmpty()) @@ -435,13 +434,13 @@ m = meta.at(i); if (m == ' ') m = 'H'; - number.setSubTypes(QContactPhoneNumber::SubTypeFacsimile); + number.setSubTypes(QContactPhoneNumber::SubTypeFax); break; case 10: // Business fax m = meta.at(i); if (m == ' ') m = 'W'; - number.setSubTypes(QContactPhoneNumber::SubTypeFacsimile); + number.setSubTypes(QContactPhoneNumber::SubTypeFax); break; } @@ -608,7 +607,7 @@ // Avatar PoomContactElement avatar; - avatar.poom << avatarMeta << avatarTypeMeta; //PIMPR_PICTURE need to be handled inside the processAvatar() function seperately. + avatar.poom << avatarMeta << avatarTypeMeta; //PIMPR_PICTURE need to be handled inside the processAvatar() function separately. avatar.func = processAvatar; list.append(avatar); @@ -637,7 +636,7 @@ // Now, build the hash foreach(const PoomContactElement& e, list) { - foreach(CEPROPID id, e.poom) { + foreach(const CEPROPID& id, e.poom) { ids.append(id); hash.insert(id, e); } @@ -656,9 +655,9 @@ static bool processQName(const QContactWinCEEngine*, IItem* /*contact*/, const QContactDetail& detail, QVector& props) { addIfNotEmpty(PIMPR_TITLE, detail.value(QContactName::FieldPrefix), props); - addIfNotEmpty(PIMPR_FIRST_NAME, detail.value(QContactName::FieldFirst), props); - addIfNotEmpty(PIMPR_MIDDLE_NAME, detail.value(QContactName::FieldMiddle), props); - addIfNotEmpty(PIMPR_LAST_NAME, detail.value(QContactName::FieldLast), props); + addIfNotEmpty(PIMPR_FIRST_NAME, detail.value(QContactName::FieldFirstName), props); + addIfNotEmpty(PIMPR_MIDDLE_NAME, detail.value(QContactName::FieldMiddleName), props); + addIfNotEmpty(PIMPR_LAST_NAME, detail.value(QContactName::FieldLastName), props); addIfNotEmpty(PIMPR_SUFFIX, detail.value(QContactName::FieldSuffix), props); addIfNotEmpty(PIMPR_FILEAS, detail.value(QContactName::FieldCustomLabel), props); return true; @@ -666,19 +665,23 @@ static bool processQAvatar(const QContactWinCEEngine* engine, IItem* contact, const QContactDetail& detail, QVector& props) { - QString avatarData = detail.value(QContactAvatar::FieldAvatar); - QPixmap avatarPixmap = detail.value(QContactAvatar::FieldAvatarPixmap); - - addIfNotEmpty(engine->metaAvatarType(), detail.value(QContactAvatar::FieldSubType), props); - addIfNotEmpty(engine->metaAvatar(), avatarData, props); + Q_UNUSED(engine); + Q_UNUSED(contact); + Q_UNUSED(detail); + Q_UNUSED(props); + //QString avatarData = detail.value(QContactAvatar::FieldImageUrl); + //QPixmap avatarPixmap = detail.value(QContactAvatar::FieldAvatarPixmap); - if (!avatarPixmap.isNull()) { - QByteArray data; - QBuffer buffer(&data); - buffer.open(QIODevice::WriteOnly); - if (!avatarPixmap.save(&buffer, "PNG") || !saveAvatarData(contact, data)) - return false; - } + //FIXME:wince avatar should be processed as thumbnail + //addIfNotEmpty(engine->metaAvatar(), avatarData, props); + + //if (!avatarPixmap.isNull()) { + // QByteArray data; + // QBuffer buffer(&data); + // buffer.open(QIODevice::WriteOnly); + // if (!avatarPixmap.save(&buffer, "PNG") || !saveAvatarData(contact, data)) + // return false; + //} return true; } @@ -769,7 +772,7 @@ id = PIMPR_CAR_TELEPHONE_NUMBER; else if (number.subTypes().contains(QContactPhoneNumber::SubTypeMobile)) id = PIMPR_MOBILE_TELEPHONE_NUMBER; - else if (number.subTypes().contains(QContactPhoneNumber::SubTypeFacsimile)) { + else if (number.subTypes().contains(QContactPhoneNumber::SubTypeFax)) { if (number.contexts().contains(QContactDetail::ContextHome)) id = PIMPR_HOME_FAX_NUMBER; else if (number.contexts().contains(QContactDetail::ContextWork)) @@ -840,11 +843,11 @@ CEPROPID id = availableIds.takeFirst(); if (id != 0) { if (email.contexts().contains(QContactDetail::ContextHome)) - meta += "H"; + meta += 'H'; else if (email.contexts().contains(QContactDetail::ContextWork)) - meta += "W"; + meta += 'W'; else - meta += " "; + meta += ' '; props.append(convertToCEPropVal(id, email.emailAddress())); } else { qDebug() << "Too many email addresses"; @@ -1014,8 +1017,8 @@ // Synthesize the display label. QContactManager::Error error; - QString synth = synthesizedDisplayLabel(ret, error); - ret = setContactDisplayLabel(synth, ret); + QString synth = synthesizedDisplayLabel(ret, &error); + setContactDisplayLabel(&ret, synth); return ret; } @@ -1236,9 +1239,9 @@ if (hashForContactDetailToPoomPropId.isEmpty()) { //QContactName Q_HASH_CONTACT_DETAIL_TO_POOM_ID(QContactName, FieldPrefix, PIMPR_TITLE); - Q_HASH_CONTACT_DETAIL_TO_POOM_ID(QContactName, FieldFirst, PIMPR_FIRST_NAME); - Q_HASH_CONTACT_DETAIL_TO_POOM_ID(QContactName, FieldMiddle, PIMPR_MIDDLE_NAME); - Q_HASH_CONTACT_DETAIL_TO_POOM_ID(QContactName, FieldLast, PIMPR_LAST_NAME); + Q_HASH_CONTACT_DETAIL_TO_POOM_ID(QContactName, FieldFirstName, PIMPR_FIRST_NAME); + Q_HASH_CONTACT_DETAIL_TO_POOM_ID(QContactName, FieldMiddleName, PIMPR_MIDDLE_NAME); + Q_HASH_CONTACT_DETAIL_TO_POOM_ID(QContactName, FieldLastName, PIMPR_LAST_NAME); Q_HASH_CONTACT_DETAIL_TO_POOM_ID(QContactName, FieldSuffix, PIMPR_SUFFIX); // Display label @@ -1308,7 +1311,7 @@ /*! * Convert from the supplied QContactFilter \a filter into a POOM query string. - * Return empty string if any error occured. + * Return empty string if any error occurred. */ QString QContactWinCEEngine::convertFilterToQueryString(const QContactFilter& filter) const { @@ -1351,7 +1354,7 @@ QList ids = convertToCEPropIds(cdf.detailDefinitionName(), cdf.detailFieldName()); if (!ids.isEmpty()) { QStringList strList; - foreach (CEPROPID id, ids) { + foreach (const CEPROPID& id, ids) { strList << QString("%1 = %2").arg(getPropertyName(id)) .arg(convertToCEPropValString(id, cdf.value())); } @@ -1375,7 +1378,7 @@ QString minCompString, maxCompString; QStringList strList; - foreach (CEPROPID id, ids) { + foreach (const CEPROPID& id, ids) { if (cdf.minValue().isValid()) { minCompString = QString("%1 %2 %3").arg(getPropertyName(id)) .arg(minComp) @@ -1568,12 +1571,12 @@ return SUCCEEDED(hr); } -QList QContactWinCEEngine::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error& error) const +QList QContactWinCEEngine::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const { QString query = convertFilterToQueryString(filter); if (!query.isEmpty()) { - error = QContactManager::NoError; + *error = QContactManager::NoError; //Filtering contacts with POOM API SimpleComPointer collection; HRESULT hr = d->m_collection->Restrict((BSTR)(query.constData()), &collection); @@ -1590,7 +1593,7 @@ if (convertP2QContacts(collection, &filteredContacts)) { ids = sortContacts(filteredContacts, sortOrders); } else { - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; qDebug() << "Wince contact manager internal error"; } } @@ -1604,33 +1607,4 @@ return QContactManagerEngine::contactIds(filter, sortOrders, error); } -QList QContactWinCEEngine::contactIds(const QList& sortOrders, QContactManager::Error& error) const -{ - QList ids; - error = QContactManager::NoError; - if (sortOrders.isEmpty()) { - ids = d->m_ids; - } else { - SimpleComPointer newCollection; - HRESULT hr = d->m_collection->Restrict(TEXT("[Oid] <> 0"), &newCollection); - if (SUCCEEDED(hr)) { - //Try native sorting first... - if (sortOrders.size() == 1 && sortPOOMContacts(newCollection, sortOrders.at(0))) { - ids = convertP2QIdList(newCollection); - return ids; - } - } - - //Multi sort orders or native sorting failed, fall back to the generic sorting - QList contacts; - if (convertP2QContacts(d->m_collection, &contacts)) { - ids = sortContacts(contacts, sortOrders); - } else { - error = QContactManager::UnspecifiedError; - qDebug() << "Wince contact manager internal error"; - } - } - return ids; -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/wince/qcontactrequestworker.cpp --- a/qtmobility/plugins/contacts/wince/qcontactrequestworker.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/wince/qcontactrequestworker.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,6 +45,7 @@ #include "qcontactrequests.h" #include "qcontactmanagerengine.h" #include "qcontactrequestworker_p.h" +#include "qcontactwincebackend_p.h" /*! @@ -286,7 +287,7 @@ if (req->manager()) { QContactFilter filter = req->filter(); QList sorting = req->sorting(); - QStringList defs = req->definitionRestrictions(); + QStringList defs = req->fetchHint().detailDefinitionsHint(); QContactManager::Error operationError; QList requestedContacts; @@ -320,7 +321,7 @@ } // update the request with the results. - QContactManagerEngine::updateContactFetchRequest(req, requestedContacts, operationError); + QContactManagerEngine::updateContactFetchRequest(req, requestedContacts, operationError, QContactAbstractRequest::FinishedState); } } @@ -338,7 +339,7 @@ QList requestedContactIds = req->manager()->contactIds(filter, sorting); operationError = req->manager()->error(); - QContactManagerEngine::updateContactLocalIdFetchRequest(req, requestedContactIds, operationError); + QContactManagerEngine::updateContactLocalIdFetchRequest(req, requestedContactIds, operationError, QContactAbstractRequest::FinishedState); } } @@ -356,7 +357,7 @@ req->manager()->saveContacts(&contacts, &errorMap); operationError = req->manager()->error(); - QContactManagerEngine::updateContactSaveRequest(req, contacts, operationError, errorMap); + QContactManagerEngine::updateContactSaveRequest(req, contacts, operationError, errorMap, QContactAbstractRequest::FinishedState); } } @@ -391,7 +392,7 @@ } // there are no results, so just update the status with the error. - QContactManagerEngine::updateContactRemoveRequest(req, operationError, errorMap); + QContactManagerEngine::updateContactRemoveRequest(req, operationError, errorMap, QContactAbstractRequest::FinishedState); } } @@ -425,7 +426,7 @@ } // update the request with the results. - QContactManagerEngine::updateDefinitionFetchRequest(req, requestedDefinitions, operationError, errorMap); + QContactManagerEngine::updateDefinitionFetchRequest(req, requestedDefinitions, operationError, errorMap, QContactAbstractRequest::FinishedState); } } /*! @@ -454,7 +455,7 @@ } // update the request with the results. - QContactManagerEngine::updateDefinitionSaveRequest(req, savedDefinitions, operationError, errorMap); + QContactManagerEngine::updateDefinitionSaveRequest(req, savedDefinitions, operationError, errorMap, QContactAbstractRequest::FinishedState); } } /*! @@ -481,7 +482,7 @@ } // there are no results, so just update the status with the error. - QContactManagerEngine::updateDefinitionRemoveRequest(req, operationError, errorMap); + QContactManagerEngine::updateDefinitionRemoveRequest(req, operationError, errorMap, QContactAbstractRequest::FinishedState); } } @@ -492,7 +493,7 @@ void QContactRequestWorker::processContactRelationshipFetchRequest(QContactRelationshipFetchRequest* req) { if (req->manager()) { - QList allRelationships = req->manager()->relationships(QString(), QContactId(), QContactRelationshipFilter::Either); + QList allRelationships = req->manager()->relationships(QString(), QContactId(), QContactRelationship::Either); QContactManager::Error operationError = req->manager()->error(); QList requestedRelationships; @@ -523,26 +524,19 @@ // third criteria: participant must be empty or must match (including role in relationship) QString myUri = req->manager()->managerUri(); - QContactId anonymousParticipant; - anonymousParticipant.setLocalId(QContactLocalId(0)); - anonymousParticipant.setManagerUri(QString()); - if (req->second() != anonymousParticipant) { + if (req->second() != QContactId()) { allRelationships = requestedRelationships; requestedRelationships.clear(); for (int i = 0; i < allRelationships.size(); i++) { QContactRelationship currRelationship = allRelationships.at(i); - if ((req->participantRole() == QContactRelationshipFilter::Either || req->participantRole() == QContactRelationshipFilter::Second) - && currRelationship.second() == req->second()) { - requestedRelationships.append(currRelationship); - } else if ((req->participantRole() == QContactRelationshipFilter::Either || req->participantRole() == QContactRelationshipFilter::First) - && currRelationship.first() == req->second()) { + if (currRelationship.second() == req->second()) { requestedRelationships.append(currRelationship); } } } // update the request with the results. - QContactManagerEngine::updateRelationshipFetchRequest(req, requestedRelationships, operationError); + QContactManagerEngine::updateRelationshipFetchRequest(req, requestedRelationships, operationError, QContactAbstractRequest::FinishedState); } } @@ -556,7 +550,7 @@ QMap errorMap; QContactManager::Error operationError = req->manager()->error(); foreach (const QContactRelationship& relationship, req->relationships()) { - QList matchingRelationships = req->manager()->relationships(relationship.relationshipType(), relationship.first(), QContactRelationshipFilter::First); + QList matchingRelationships = req->manager()->relationships(relationship.relationshipType(), relationship.first(), QContactRelationship::First); for (int i = 0; i < matchingRelationships.size(); i++) { QContactManager::Error tempError; @@ -576,7 +570,7 @@ } // there are no results, so just update the status with the error. - QContactManagerEngine::updateRelationshipRemoveRequest(req, operationError, errorMap); + QContactManagerEngine::updateRelationshipRemoveRequest(req, operationError, errorMap, QContactAbstractRequest::FinishedState); } } @@ -606,7 +600,7 @@ } // update the request with the results. - QContactManagerEngine::updateRelationshipSaveRequest(req, savedRelationships, operationError, errorMap); + QContactManagerEngine::updateRelationshipSaveRequest(req, savedRelationships, operationError, errorMap, QContactAbstractRequest::FinishedState); } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/wince/qcontactwincebackend.cpp --- a/qtmobility/plugins/contacts/wince/qcontactwincebackend.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/wince/qcontactwincebackend.cpp Mon May 03 13:18:40 2010 +0300 @@ -68,10 +68,10 @@ */ -QContactWinCEEngine::QContactWinCEEngine(ContactWinceFactory* factory, const QString& engineName, const QMap& , QContactManager::Error& error) +QContactWinCEEngine::QContactWinCEEngine(ContactWinceFactory* factory, const QString& engineName, const QMap& , QContactManager::Error* error) : d(new QContactWinCEEngineData) { - error = QContactManager::NoError; + *error = QContactManager::NoError; buildHashForContactDetailToPoomPropId(); d->m_engineName = engineName; @@ -137,21 +137,15 @@ d->m_factory->resetEngine(); } -void QContactWinCEEngine::deref() -{ - if (!d->m_refCount.deref()) - delete this; -} - QString QContactWinCEEngine::managerName() const { return d->m_engineName; } -QContact QContactWinCEEngine::contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QContact QContactWinCEEngine::contact(const QContactLocalId& contactId, const QtMobility::QContactFetchHint& hint, QContactManager::Error* error) const { // TODO: implementation for definitionRestrictions! - Q_UNUSED(definitionRestrictions); + Q_UNUSED(hint); QContact ret; // id == 0 gives a bad argument error from POOM, so don't even try it @@ -161,29 +155,29 @@ HRESULT hr = d->m_app->GetItemFromOidEx(contactId, 0, &item); if (SUCCEEDED(hr)) { if (item) { - error = QContactManager::NoError; + *error = QContactManager::NoError; ret = convertToQContact(item); } else { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; } } else { if (HRESULT_CODE(hr) == ERROR_NOT_FOUND) { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; } else { qWarning() << "Failed to retrieve contact:" << HRESULT_CODE(hr); - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; } } } else { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; } return ret; } -bool QContactWinCEEngine::saveContact(QContact* contact, QContactManager::Error& error) +bool QContactWinCEEngine::saveContact(QContact* contact, QContactManager::Error* error) { if (contact == 0) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } @@ -191,7 +185,7 @@ // ensure that the contact's details conform to their definitions if (!validateContact(*contact, error)) { - error = QContactManager::InvalidDetailError; + *error = QContactManager::InvalidDetailError; return false; } @@ -206,11 +200,11 @@ } else { if (HRESULT_CODE(hr) == ERROR_NOT_FOUND) { // Well, doesn't exist any more - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; d->m_ids.removeAll(contact->localId()); } else { qWarning() << "Didn't get old contact" << HRESULT_CODE(hr); - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; } } } else if (contact->localId() == 0) { @@ -224,35 +218,35 @@ if (SUCCEEDED(hr)) { } else { qWarning() << "Failed to query interface" << HRESULT_CODE(hr); - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; } } else { qWarning() << "Failed to create contact: "<< HRESULT_CODE(hr); - error = QContactManager::OutOfMemoryError; + *error = QContactManager::OutOfMemoryError; } } else { // Saving a contact with a non zero id, but that doesn't exist - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; } if (icontact) { // Convert our QContact to the Icontact (via setProps) - if (convertFromQContact(*contact, icontact, error)) { + if (convertFromQContact(*contact, icontact, *error)) { HRESULT hr = icontact->Save(); if (SUCCEEDED(hr)) { // yay! we also need to set the new contact id long oid = 0; hr = icontact->get_Oid(&oid); if (SUCCEEDED(hr)) { - error = QContactManager::NoError; - QContact c = this->contact((QContactLocalId)oid, QStringList(), error); + *error = QContactManager::NoError; + QContact c = this->contact((QContactLocalId)oid, QContactFetchHint(), error); - if (error == QContactManager::NoError) { + if (*error == QContactManager::NoError) { *contact = c; if (wasOld) { - cs.changedContacts().insert(contact->localId()); + cs.insertChangedContact(contact->localId()); } else { - cs.addedContacts().insert(contact->localId()); + cs.insertAddedContact(contact->localId()); d->m_ids.append(contact->localId()); } } @@ -262,7 +256,7 @@ } qWarning() << "Saved contact, but couldn't retrieve id again??" << HRESULT_CODE(hr); // Blargh. - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; } else { qWarning() << "Failed to save contact" << HRESULT_CODE(hr); } @@ -275,7 +269,7 @@ return false; } -bool QContactWinCEEngine::removeContact(const QContactLocalId& contactId, QContactManager::Error& error) +bool QContactWinCEEngine::removeContact(const QContactLocalId& contactId, QContactManager::Error* error) { // Fetch an IItem* for this if (contactId != 0) { @@ -286,32 +280,32 @@ if (SUCCEEDED(hr)) { hr = item->Delete(); if (SUCCEEDED(hr)) { - error = QContactManager::NoError; + *error = QContactManager::NoError; d->m_ids.removeAll(contactId); - cs.removedContacts().insert(contactId); + cs.insertRemovedContact(contactId); cs.emitSignals(this); return true; } qWarning() << "Failed to delete:" << HRESULT_CODE(hr); - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; } else { if (HRESULT_CODE(hr) == ERROR_NOT_FOUND) { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; } else { qWarning() << "Failed to retrieve item pointer in delete" << HRESULT_CODE(hr); - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; } } } else { // Id 0 does not exist - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; } return false; } -QMap QContactWinCEEngine::detailDefinitions(const QString& contactType, QContactManager::Error& error) const +QMap QContactWinCEEngine::detailDefinitions(const QString& contactType, QContactManager::Error* error) const { - error = QContactManager::NoError; + *error = QContactManager::NoError; QMap > defns = QContactManagerEngine::schemaDefinitions(); // Remove the details we don't support @@ -330,7 +324,7 @@ // No logo for organisation fields = defns[contactType][QContactOrganization::DefinitionName].fields(); - fields.remove(QContactOrganization::FieldLogo); + fields.remove(QContactOrganization::FieldLogoUrl); defns[contactType][QContactOrganization::DefinitionName].setFields(fields); // No subtypes for these details @@ -392,8 +386,9 @@ } /*! \reimp */ -bool QContactWinCEEngine::hasFeature(QContactManager::ManagerFeature feature) const +bool QContactWinCEEngine::hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const { + Q_UNUSED(contactType); // The Windows CE backend is an "isolated" backend if (feature == QContactManager::Anonymous) return true; @@ -403,7 +398,7 @@ } /* Synthesise the display label of a contact */ -QString QContactWinCEEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const +QString QContactWinCEEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const { Q_UNUSED(error) // The POOM API (well, lack thereof) makes this a bit strange. @@ -474,6 +469,142 @@ } return false; } + +/*! \reimp */ +QMap QContactWinCEEngine::managerParameters() const +{ + return QMap(); +} + +/*! \reimp */ +int QContactWinCEEngine::managerVersion() const +{ + return QTCONTACTS_VERSION; +} + +/*! \reimp */ +QList QContactWinCEEngine::contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const +{ + QList ids = contactIds(filter, sortOrders, error); + QList cs; + if (*error == QContactManager::NoError) { + foreach (const QContactLocalId& id, ids) { + cs << contact(id, fetchHint, error); + } + } + return cs; +} + +/*! \reimp */ +bool QContactWinCEEngine::saveRelationship(QContactRelationship* relationship, QContactManager::Error* error) +{ + Q_UNUSED(relationship); + *error = QContactManager::NotSupportedError; + return false; +} + +/*! \reimp */ +bool QContactWinCEEngine::removeRelationship(const QContactRelationship& relationship, QContactManager::Error* error) +{ + Q_UNUSED(relationship); + *error = QContactManager::NotSupportedError; + return false; +} + +/*! \reimp */ +bool QContactWinCEEngine::saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error) +{ + bool ret = true; + + for (int j = 0; j < contacts->size(); j++) { + if (!saveContact(&((*contacts)[j]), error)) { + ret = false; + } + if (*error != QContactManager::NoError) { + errorMap->insert(j, *error); + } + } + return ret; +} + +/*! \reimp */ +bool QContactWinCEEngine::removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error) +{ + bool ret = true; + + for (int j = 0; j < contactIds.size(); j++) { + if (!removeContact(contactIds[j], error)) { + ret = false; + } + + if (*error != QContactManager::NoError) { + errorMap->insert(j, *error); + } + } + return ret; +} + +/*! \reimp */ +bool QContactWinCEEngine::setSelfContactId(const QContactLocalId& contactId, QContactManager::Error* error) +{ + Q_UNUSED(contactId); + *error = QContactManager::NotSupportedError; + return false; +} + +/*! \reimp */ +QContactLocalId QContactWinCEEngine::selfContactId(QContactManager::Error* error) const +{ + *error = QContactManager::NotSupportedError; + return QContactLocalId(); +} + +/*! \reimp */ +QList QContactWinCEEngine::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) const +{ + Q_UNUSED(relationshipType); + Q_UNUSED(participantId); + Q_UNUSED(role); + *error = QContactManager::NotSupportedError; + return QList(); +} + +/*! \reimp */ +bool QContactWinCEEngine::saveRelationships(QList* relationships, QMap* errorMap, QContactManager::Error* error) +{ + Q_UNUSED(relationships); + Q_UNUSED(errorMap); + *error = QContactManager::NotSupportedError; + return false; +} + +/*! \reimp */ +bool QContactWinCEEngine::removeRelationships(const QList& relationships, QMap* errorMap, QContactManager::Error* error) +{ + Q_UNUSED(relationships); + Q_UNUSED(errorMap); + *error = QContactManager::NotSupportedError; + return false; +} + +/*! \reimp */ +bool QContactWinCEEngine::saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error* error) +{ + Q_UNUSED(def); + Q_UNUSED(contactType); + *error = QContactManager::NotSupportedError; + return false; +} + +/*! \reimp */ +bool QContactWinCEEngine::removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) +{ + Q_UNUSED(definitionId); + Q_UNUSED(contactType); + *error = QContactManager::NotSupportedError; + return false; +} + /*! * Returns the list of data types supported by the WinCE engine */ @@ -497,7 +628,7 @@ } /* Factory lives here in the basement */ -QContactManagerEngine* ContactWinceFactory::engine(const QMap& parameters, QContactManager::Error& error) +QContactManagerEngine* ContactWinceFactory::engine(const QMap& parameters, QContactManager::Error* error) { QMutexLocker locker(&m_mutex); if (!m_engine) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/contacts/wince/qcontactwincebackend_p.h --- a/qtmobility/plugins/contacts/wince/qcontactwincebackend_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/contacts/wince/qcontactwincebackend_p.h Mon May 03 13:18:40 2010 +0300 @@ -202,50 +202,97 @@ Q_OBJECT public: - QContactWinCEEngine(ContactWinceFactory* factory, const QString& engineName, const QMap& parameters, QContactManager::Error& error); + QContactWinCEEngine(ContactWinceFactory* factory, const QString& engineName, const QMap& parameters, QContactManager::Error* error); QContactWinCEEngine(const QContactWinCEEngine& other); ~QContactWinCEEngine(); QContactWinCEEngine& operator=(const QContactWinCEEngine& other); - void deref(); - QString managerName() const; + + /* URI reporting */ + virtual QString managerName() const; + QMap managerParameters() const; + virtual int managerVersion() const; /* Filtering */ - QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error& error) const; + virtual QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const; + + virtual QList contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; + virtual QContact contact(const QContactLocalId& contactId, const QtMobility::QContactFetchHint& hint, QContactManager::Error* error) const; + + virtual bool saveContact(QContact* contact, QContactManager::Error* error); + virtual bool removeContact(const QContactLocalId& contactId, QContactManager::Error* error); + virtual bool saveRelationship(QContactRelationship* relationship, QContactManager::Error* error); + virtual bool removeRelationship(const QContactRelationship& relationship, QContactManager::Error* error); - /* Contacts - Accessors and Mutators */ - QList contactIds(const QList& sortOrders, QContactManager::Error& error) const; - QContact contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - bool saveContact(QContact* contact, QContactManager::Error& error); - bool removeContact(const QContactLocalId& contactId, QContactManager::Error& error); + virtual bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error); + virtual bool removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error); + + /* Return a pruned or modified contact which is valid and can be saved in the backend */ + virtual QContact compatibleContact(const QContact& original, QContactManager::Error* error) + { + return QContactManagerEngine::compatibleContact(original, error); + } + + /* Synthesize the display label of a contact */ + virtual QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const; + - /* Groups - Accessors and Mutators */ - //QList groups(QContactManager::Error& error) const; - //QContactGroup group(const QContactLocalId& groupId, QContactManager::Error& error) const; - //bool saveGroup(QContactGroup* group, QContactManager::Error& error); - //bool removeGroup(const QContactLocalId& groupId, QContactManager::Error& error); + /* "Self" contact id (MyCard) */ + virtual bool setSelfContactId(const QContactLocalId& contactId, QContactManager::Error* error); + virtual QContactLocalId selfContactId(QContactManager::Error* error) const; + + /* Relationships between contacts */ + virtual QList relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) const; + virtual bool saveRelationships(QList* relationships, QMap* errorMap, QContactManager::Error* error); + virtual bool removeRelationships(const QList& relationships, QMap* errorMap, QContactManager::Error* error); - /* Definitions */ - QMap detailDefinitions(const QString& contactType, QContactManager::Error& error) const; + /* Validation for saving */ + virtual QContact compatibleContact(const QContact&, QContactManager::Error* error) const {*error = QContactManager::NotSupportedError;return QContact();} + virtual bool validateContact(const QContact& contact, QContactManager::Error* error) const + { + return QContactManagerEngine::validateContact(contact, error); + } + virtual bool validateDefinition(const QContactDetailDefinition& def, QContactManager::Error* error) const + { + return QContactManagerEngine::validateDefinition(def, error); + } + + /* Definitions - Accessors and Mutators */ + virtual QMap detailDefinitions(const QString& contactType, QContactManager::Error* error) const; + virtual QContactDetailDefinition detailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) const + { + return QContactManagerEngine::detailDefinition(definitionId, contactType, error); + } + virtual bool saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error* error); + virtual bool removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error); /* Asynchronous Request Support */ - void requestDestroyed(QContactAbstractRequest* req); - bool startRequest(QContactAbstractRequest* req); - bool cancelRequest(QContactAbstractRequest* req); - bool waitForRequestFinished(QContactAbstractRequest* req, int msecs); + virtual void requestDestroyed(QContactAbstractRequest* req); + virtual bool startRequest(QContactAbstractRequest* req); + virtual bool cancelRequest(QContactAbstractRequest* req); + virtual bool waitForRequestFinished(QContactAbstractRequest* req, int msecs); /* Capabilities reporting */ - bool hasFeature(QContactManager::ManagerFeature feature) const; - bool isFilterSupported(const QContactFilter& filter) const; - QList supportedDataTypes() const; + virtual bool hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const; + virtual bool isRelationshipTypeSupported(const QString& relationshipType, const QString& contactType) const + { + Q_UNUSED(relationshipType); + Q_UNUSED(contactType); + return false; + } - /* Synthesize the display label of a contact */ - virtual QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const; - + virtual bool isFilterSupported(const QContactFilter& filter) const; + virtual QList supportedDataTypes() const; + virtual QStringList supportedContactTypes() const + { + return QContactManagerEngine::supportedContactTypes(); + } + /*helper functions*/ PROPID metaAvatar() const; PROPID metaAvatarType() const; PROPID metaEmail() const; PROPID metaPhone() const; + private: QSharedDataPointer d; @@ -261,13 +308,13 @@ class QMutex; -class Q_DECL_EXPORT ContactWinceFactory : public QObject, public QContactManagerEngineFactory +class ContactWinceFactory : public QObject, public QContactManagerEngineFactory { Q_OBJECT Q_INTERFACES(QtMobility::QContactManagerEngineFactory) public: ContactWinceFactory(); - QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error& error); + QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error* error); QString managerName() const; void resetEngine(); private: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audiocaptureservice.h --- a/qtmobility/plugins/multimedia/audiocapture/audiocaptureservice.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audiocaptureservice.h Mon May 03 13:18:40 2010 +0300 @@ -44,7 +44,7 @@ #include -#include +#include "../../../src/multimedia/qmediaservice.h" class AudioCaptureSession; class AudioEncoderControl; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audiocaptureserviceplugin.cpp --- a/qtmobility/plugins/multimedia/audiocapture/audiocaptureserviceplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audiocaptureserviceplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -44,7 +44,7 @@ #include "audiocaptureserviceplugin.h" #include "audiocaptureservice.h" -#include +#include "../../../src/multimedia/qmediaserviceprovider.h" QStringList AudioCaptureServicePlugin::keys() const diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audiocaptureserviceplugin.h --- a/qtmobility/plugins/multimedia/audiocapture/audiocaptureserviceplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audiocaptureserviceplugin.h Mon May 03 13:18:40 2010 +0300 @@ -43,7 +43,7 @@ #ifndef AUDIOCAPTURESERVICEPLUGIN_H #define AUDIOCAPTURESERVICEPLUGIN_H -#include +#include "../../../src/multimedia/qmediaserviceproviderplugin.h" QTM_USE_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audiocapturesession.cpp --- a/qtmobility/plugins/multimedia/audiocapture/audiocapturesession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audiocapturesession.cpp Mon May 03 13:18:40 2010 +0300 @@ -43,7 +43,7 @@ #include #include -#include +#include "../../../src/multimedia/qmediarecorder.h" #include "audiocapturesession.h" @@ -227,7 +227,7 @@ m_audioInput->start(qobject_cast(&file)); } else { - qWarning()<<"can't open source, failed"; + emit error(1,QString("can't open source, failed")); m_state = QMediaRecorder::StoppedState; emit stateChanged(m_state); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audiocapturesession.h --- a/qtmobility/plugins/multimedia/audiocapture/audiocapturesession.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audiocapturesession.h Mon May 03 13:18:40 2010 +0300 @@ -86,6 +86,7 @@ signals: void stateChanged(QMediaRecorder::State state); void positionChanged(qint64 position); + void error(int error, const QString &errorString); private slots: void stateChanged(QAudio::State state); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audiocontainercontrol.h --- a/qtmobility/plugins/multimedia/audiocapture/audiocontainercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audiocontainercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef AUDIOCONTAINERCONTROL_H #define AUDIOCONTAINERCONTROL_H -#include +#include "../../../src/multimedia/qmediacontainercontrol.h" #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audioencodercontrol.h --- a/qtmobility/plugins/multimedia/audiocapture/audioencodercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audioencodercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef AUDIOENCODERCONTROL_H #define AUDIOENCODERCONTROL_H -#include +#include "../../../src/multimedia/qaudioencodercontrol.h" #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audioendpointselector.cpp --- a/qtmobility/plugins/multimedia/audiocapture/audioendpointselector.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audioendpointselector.cpp Mon May 03 13:18:40 2010 +0300 @@ -89,8 +89,11 @@ void AudioEndpointSelector::setActiveEndpoint(const QString& name) { - m_audioInput = name; - m_session->setCaptureDevice(name); + if (m_audioInput.compare(name) != 0) { + m_audioInput = name; + m_session->setCaptureDevice(name); + emit activeEndpointChanged(name); + } } void AudioEndpointSelector::update() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audioendpointselector.h --- a/qtmobility/plugins/multimedia/audiocapture/audioendpointselector.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audioendpointselector.h Mon May 03 13:18:40 2010 +0300 @@ -44,7 +44,7 @@ #include -#include +#include "../../../src/multimedia/qaudioendpointselector.h" class AudioCaptureSession; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audiomediarecordercontrol.cpp --- a/qtmobility/plugins/multimedia/audiocapture/audiomediarecordercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audiomediarecordercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -50,6 +50,7 @@ m_session = qobject_cast(parent); connect(m_session,SIGNAL(positionChanged(qint64)),this,SIGNAL(durationChanged(qint64))); connect(m_session,SIGNAL(stateChanged(QMediaRecorder::State)),this,SIGNAL(stateChanged(QMediaRecorder::State))); + connect(m_session,SIGNAL(error(int,QString)),this,SIGNAL(error(int,QString))); } AudioMediaRecorderControl::~AudioMediaRecorderControl() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/audiocapture/audiomediarecordercontrol.h --- a/qtmobility/plugins/multimedia/audiocapture/audiomediarecordercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/audiocapture/audiomediarecordercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -44,8 +44,8 @@ #include -#include -#include +#include "../../../src/multimedia/qmediarecorder.h" +#include "../../../src/multimedia/qmediarecordercontrol.h" class AudioCaptureSession; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/camera.pri --- a/qtmobility/plugins/multimedia/directshow/camera/camera.pri Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -INCLUDEPATH += $$PWD - -DEFINES += QMEDIA_DIRECTSHOW_CAMERA - -HEADERS += \ - $$PWD/dscameraservice.h \ - $$PWD/dscameracontrol.h \ - $$PWD/dsvideorenderer.h \ - $$PWD/dsvideooutputcontrol.h \ - $$PWD/dsvideodevicecontrol.h \ - $$PWD/dsimagecapturecontrol.h \ - $$PWD/dscamerasession.h - -SOURCES += \ - $$PWD/dscameraservice.cpp \ - $$PWD/dscameracontrol.cpp \ - $$PWD/dsvideorenderer.cpp \ - $$PWD/dsvideooutputcontrol.cpp \ - $$PWD/dsvideodevicecontrol.cpp \ - $$PWD/dsimagecapturecontrol.cpp \ - $$PWD/dscamerasession.cpp - -INCLUDEPATH += $(DXSDK_DIR)/include -LIBPATH += $(DXSDK_DIR)/lib -lstrmiids -lole32 - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dscameracontrol.cpp --- a/qtmobility/plugins/multimedia/directshow/camera/dscameracontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +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 Qt Mobility Components. -** -** $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 "dscameracontrol.h" -#include "dscameraservice.h" -#include "dscamerasession.h" - -#include - - -DSCameraControl::DSCameraControl(QObject *parent) - :QCameraControl(parent), m_captureMode(QCamera::CaptureStillImage) -{ - m_session = qobject_cast(parent); - connect(m_session, SIGNAL(stateChanged(QCamera::State)),this, SIGNAL(stateChanged(QCamera::State))); -} - -DSCameraControl::~DSCameraControl() -{ -} - -void DSCameraControl::start() -{ - m_session->record(); -} - -void DSCameraControl::stop() -{ - m_session->stop(); -} - -QCamera::State DSCameraControl::state() const -{ - return (QCamera::State)m_session->state(); -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dscameracontrol.h --- a/qtmobility/plugins/multimedia/directshow/camera/dscameracontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,85 +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 Qt Mobility Components. -** -** $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 DSCAMERACONTROL_H -#define DSCAMERACONTROL_H - -#include -#include - -class DSCameraService; -class DSCameraSession; - -QTM_USE_NAMESPACE - -class DSCameraControl : public QCameraControl -{ - Q_OBJECT -public: - DSCameraControl(QObject *parent = 0); - ~DSCameraControl(); - - void start(); - void stop(); - QCamera::State state() const; - - QCamera::CaptureMode captureMode() const { return m_captureMode; } - void setCaptureMode(QCamera::CaptureMode mode) - { - if (m_captureMode != mode) { - m_captureMode = mode; - emit captureModeChanged(mode); - } - } - - QCamera::CaptureModes supportedCaptureModes() const - { - return QCamera::CaptureStillImage | QCamera::CaptureVideo; - } - -private: - DSCameraSession *m_session; - DSCameraService *m_service; - QCamera::CaptureMode m_captureMode; -}; - -#endif - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dscameraservice.cpp --- a/qtmobility/plugins/multimedia/directshow/camera/dscameraservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include "dscameraservice.h" -#include "dscameracontrol.h" -#include "dscamerasession.h" -#include "dsvideorenderer.h" -#include "dsvideooutputcontrol.h" -#include "dsvideodevicecontrol.h" -#include "dsimagecapturecontrol.h" - -DSCameraService::DSCameraService(QObject *parent): - QMediaService(parent) -{ - m_session = new DSCameraSession(this); - m_control = new DSCameraControl(m_session); - - m_videoOutput = new DSVideoOutputControl(this); - m_videoOutput->setOutput(QVideoOutputControl::RendererOutput); - - m_videoDevice = new DSVideoDeviceControl(m_session); - m_videoDevice->setSelectedDevice(0); - - m_videoRenderer = new DSVideoRendererControl(m_session, this); - - m_imageCapture = new DSImageCaptureControl(m_session); - - m_device = QByteArray("default"); -} - -DSCameraService::~DSCameraService() -{ - delete m_control; - delete m_session; - delete m_videoOutput; - delete m_videoDevice; - delete m_videoRenderer; - delete m_imageCapture; -} - -QMediaControl *DSCameraService::control(const char *name) const -{ - if(qstrcmp(name,QCameraControl_iid) == 0) - return m_control; - - if(qstrcmp(name,QVideoOutputControl_iid) == 0) - return m_videoOutput; - - if(qstrcmp(name,QVideoRendererControl_iid) == 0) - return m_videoRenderer; - - if(qstrcmp(name,QVideoDeviceControl_iid) == 0) - return m_videoDevice; - - if(qstrcmp(name,QImageCaptureControl_iid) == 0) - return m_imageCapture; - - return 0; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dscameraservice.h --- a/qtmobility/plugins/multimedia/directshow/camera/dscameraservice.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +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 Qt Mobility Components. -** -** $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 DSCAMERASERVICE_H -#define DSCAMERASERVICE_H - -#include - -#include - -class DSCameraControl; -class DSCameraSession; -class DSVideoOutputControl; -class DSVideoDeviceControl; -class DSVideoRendererControl; -class DSImageCaptureControl; - -QTM_USE_NAMESPACE -class DSCameraService : public QMediaService -{ - Q_OBJECT - -public: - DSCameraService(QObject *parent = 0); - ~DSCameraService(); - - QMediaControl *control(const char *name) const; - -private: - DSCameraControl *m_control; - DSCameraSession *m_session; - DSVideoOutputControl *m_videoOutput; - DSVideoDeviceControl *m_videoDevice; - DSVideoRendererControl *m_videoRenderer; - DSImageCaptureControl *m_imageCapture; - QByteArray m_device; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dscamerasession.cpp --- a/qtmobility/plugins/multimedia/directshow/camera/dscamerasession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1035 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include "dscamerasession.h" -#include "dsvideorenderer.h" - -#include -#include - -#include -DEFINE_GUID(MEDIASUBTYPE_I420, - 0x30323449,0x0000,0x0010,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71); - -#define SAFE_RELEASE(x) { if(x) x->Release(); x = NULL; } - - -class SampleGrabberCallbackPrivate : public ISampleGrabberCB -{ -public: - STDMETHODIMP_(ULONG) AddRef() { return 1; } - STDMETHODIMP_(ULONG) Release() { return 2; } - - STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject) - { - if(NULL==ppvObject) return E_POINTER; - if(riid==__uuidof(IUnknown)) { - *ppvObject = static_cast(this); - return S_OK; - } - if(riid==__uuidof(ISampleGrabberCB)) { - *ppvObject = static_cast(this); - return S_OK; - } - return E_NOTIMPL; - } - - STDMETHODIMP SampleCB(double Time, IMediaSample *pSample) - { - return E_NOTIMPL; - } - - STDMETHODIMP BufferCB(double Time, BYTE *pBuffer, long BufferLen) - { - if(!cs || active) - return S_OK; - - if((cs->StillMediaType.majortype != MEDIATYPE_Video) || - (cs->StillMediaType.formattype != FORMAT_VideoInfo) || - (cs->StillMediaType.cbFormat < sizeof(VIDEOINFOHEADER))) - return VFW_E_INVALIDMEDIATYPE; - - active = true; - - if(toggle == true) toggle = false; - else toggle = true; - - if(toggle) { - active = false; - return S_OK; - } - - bool check = false; - cs->mutex.lock(); - if(cs->frames.size() > 5) - check = true; - cs->mutex.unlock(); - if(check) - return S_OK; - - - unsigned char* vidData = new unsigned char[BufferLen]; - memcpy(vidData,pBuffer,BufferLen); - - cs->mutex.lock(); - - video_buffer buf; - buf.buffer = vidData; - buf.length = BufferLen; - buf.time = (qint64)Time; - - cs->frames.append(&buf); - - //qWarning()<<"create frame "<cs = this; - StillCapCB->active = false; - StillCapCB->toggle = false; - - m_output = 0; - m_surface = 0; - m_windowSize = QSize(320,240); - pixelF = QVideoFrame::Format_RGB24; - actualFormat = QVideoSurfaceFormat(m_windowSize,pixelF); - - graph = false; -} - -DSCameraSession::~DSCameraSession() -{ - if(opened) - closeStream(); - - CoUninitialize(); - - SAFE_RELEASE(pCap); - SAFE_RELEASE(pSG_Filter); - SAFE_RELEASE(pGraph); - SAFE_RELEASE(pBuild); - - if(StillCapCB) - delete StillCapCB; -} - -void DSCameraSession::captureImage(const QString &fileName) -{ - m_snapshot = fileName; -} - -void DSCameraSession::setSurface(QAbstractVideoSurface* surface) -{ - m_surface = surface; -} - -bool DSCameraSession::deviceReady() -{ - return available; -} - -int DSCameraSession::framerate() const -{ - return -1; -} - -void DSCameraSession::setFrameRate(int rate) -{ - Q_UNUSED(rate) -} - -int DSCameraSession::brightness() const -{ - return -1; -} - -void DSCameraSession::setBrightness(int b) -{ - Q_UNUSED(b) -} - -int DSCameraSession::contrast() const -{ - return -1; -} - -void DSCameraSession::setContrast(int c) -{ - Q_UNUSED(c) -} - -int DSCameraSession::saturation() const -{ - return -1; -} - -void DSCameraSession::setSaturation(int s) -{ - Q_UNUSED(s) -} - -int DSCameraSession::hue() const -{ - return -1; -} - -void DSCameraSession::setHue(int h) -{ - Q_UNUSED(h) -} - -int DSCameraSession::sharpness() const -{ - return -1; -} - -void DSCameraSession::setSharpness(int s) -{ - Q_UNUSED(s) -} - -int DSCameraSession::zoom() const -{ - return -1; -} - -void DSCameraSession::setZoom(int z) -{ - Q_UNUSED(z) -} - -bool DSCameraSession::backlightCompensation() const -{ - return false; -} - -void DSCameraSession::setBacklightCompensation(bool b) -{ - Q_UNUSED(b) -} - -int DSCameraSession::whitelevel() const -{ - return -1; -} - -void DSCameraSession::setWhitelevel(int w) -{ - Q_UNUSED(w) -} - -int DSCameraSession::rotation() const -{ - return 0; -} - -void DSCameraSession::setRotation(int r) -{ - Q_UNUSED(r) -} - -bool DSCameraSession::flash() const -{ - return false; -} - -void DSCameraSession::setFlash(bool f) -{ - Q_UNUSED(f) -} - -bool DSCameraSession::autofocus() const -{ - return false; -} - -void DSCameraSession::setAutofocus(bool f) -{ - Q_UNUSED(f) -} - -QSize DSCameraSession::frameSize() const -{ - return m_windowSize; -} - -void DSCameraSession::setFrameSize(const QSize& s) -{ - if(supportedResolutions(pixelF).contains(s)) - m_windowSize = s; - else { - qWarning()<<"frame size if not supported for current pixel format, no change"; - } -} - -void DSCameraSession::setDevice(const QString &device) -{ - if(opened) - stopStream(); - - if(graph) { - SAFE_RELEASE(pCap); - SAFE_RELEASE(pSG_Filter); - SAFE_RELEASE(pGraph); - SAFE_RELEASE(pBuild); - } - - //qWarning()<<"setDevice: "<(&pDevEnum)); - if(SUCCEEDED(hr)) { - // Create the enumerator for the video capture category - hr = pDevEnum->CreateClassEnumerator( - CLSID_VideoInputDeviceCategory, &pEnum, 0); - pEnum->Reset(); - // go through and find all video capture devices - IMoniker* pMoniker = NULL; - while(pEnum->Next(1, &pMoniker, NULL) == S_OK) { - IPropertyBag *pPropBag; - hr = pMoniker->BindToStorage(0,0,IID_IPropertyBag, - (void**)(&pPropBag)); - if(FAILED(hr)) { - pMoniker->Release(); - continue; // skip this one - } - // Find the description - WCHAR str[120]; - VARIANT varName; - varName.vt = VT_BSTR; - hr = pPropBag->Read(L"Description", &varName, 0); - if(FAILED(hr)) - hr = pPropBag->Read(L"FriendlyName", &varName, 0); - if(SUCCEEDED(hr)) { - hr = StringCchCopyW(str,sizeof(str)/sizeof(str[0]), varName.bstrVal); - QString temp(QString::fromUtf16((unsigned short*)str)); - if(temp.contains(device)) { - //qWarning()<<"device valid use it: "<Release(); - pMoniker->Release(); - } - } - CoUninitialize(); - - if(available) { - m_device = QByteArray(device.toLocal8Bit().constData()); - graph = createFilterGraph(); - if(!graph) - available = false; - } -} - -QList DSCameraSession::supportedPixelFormats() -{ - return types; -} - -QVideoFrame::PixelFormat DSCameraSession::pixelFormat() const -{ - return pixelF; -} - -void DSCameraSession::setPixelFormat(QVideoFrame::PixelFormat fmt) -{ - pixelF = fmt; -} - -QList DSCameraSession::supportedResolutions(QVideoFrame::PixelFormat format) -{ - if(!resolutions.contains(format)) return QList(); - return resolutions.value(format); -} - -bool DSCameraSession::setOutputLocation(const QUrl &sink) -{ - m_sink = sink; - - return true; -} - -QUrl DSCameraSession::outputLocation() const -{ - return m_sink; -} - -qint64 DSCameraSession::position() const -{ - return timeStamp.elapsed(); -} - -int DSCameraSession::state() const -{ - return int(m_state); -} - -void DSCameraSession::record() -{ - if(opened) return; - - if(m_surface) { - bool match = false; - - if(!m_surface->isFormatSupported(actualFormat)) { - QList fmts; - foreach(QVideoFrame::PixelFormat f, types) { - if(fmts.contains(f)) { - match = true; - pixelF = f; - actualFormat = QVideoSurfaceFormat(m_windowSize,pixelF); - //qWarning()<<"try to use format: "<isFormatSupported(actualFormat) && !match) { - // fallback - if(types.contains(QVideoFrame::Format_RGB24)) { - // get RGB24 from camera and convert to RGB32 for surface! - pixelF = QVideoFrame::Format_RGB32; - actualFormat = QVideoSurfaceFormat(m_windowSize,pixelF); - //qWarning()<<"get RGB24 from camera and convert to RGB32 for surface!"; - } - } - - if(m_surface->isFormatSupported(actualFormat)) { - m_surface->start(actualFormat); - m_state = QCamera::ActiveState; - emit stateChanged(QCamera::ActiveState); - } else { - qWarning()<<"surface doesn't support camera format, cant start"; - m_state = QCamera::StoppedState; - emit stateChanged(QCamera::StoppedState); - return; - } - } else { - qWarning()<<"no video surface, cant start"; - m_state = QCamera::StoppedState; - emit stateChanged(QCamera::StoppedState); - return; - } - - opened = startStream(); - - if(!opened) { - m_state = QCamera::StoppedState; - emit stateChanged(QCamera::StoppedState); - } -} - -void DSCameraSession::pause() -{ - suspendStream(); -} - -void DSCameraSession::stop() -{ - if(!opened) return; - - stopStream(); - opened = false; - m_state = QCamera::StoppedState; - emit stateChanged(QCamera::StoppedState); -} - -void DSCameraSession::captureFrame() -{ - if(m_surface && frames.count() > 0) { - - QImage image; - - if(pixelF == QVideoFrame::Format_RGB24) { - - mutex.lock(); - - image = QImage(frames.at(0)->buffer,m_windowSize.width(),m_windowSize.height(), - QImage::Format_RGB888).rgbSwapped().mirrored(true); - - QVideoFrame frame(image); - frame.setStartTime(frames.at(0)->time); - - mutex.unlock(); - - m_surface->present(frame); - - } else if(pixelF == QVideoFrame::Format_RGB32) { - - mutex.lock(); - - image = QImage(frames.at(0)->buffer,m_windowSize.width(),m_windowSize.height(), - QImage::Format_RGB888).rgbSwapped().mirrored(true); - - QVideoFrame frame(image.convertToFormat(QImage::Format_RGB32)); - frame.setStartTime(frames.at(0)->time); - - mutex.unlock(); - - m_surface->present(frame); - - } else { - qWarning()<<"TODO:captureFrame() format ="< 0) { - emit imageCaptured(m_snapshot,image); - image.save(m_snapshot,"JPG"); - m_snapshot.clear(); - } - - frames.removeFirst(); - } -} - -HRESULT DSCameraSession::GetPin(IBaseFilter *pFilter,PIN_DIRECTION PinDir, IPin **ppPin) -{ - *ppPin = 0; - IEnumPins *pEnum = 0; - IPin *pPin = 0; - HRESULT hr = pFilter->EnumPins(&pEnum); - if(FAILED(hr)) - return hr; - pEnum->Reset(); - while(pEnum->Next(1,&pPin,NULL) == S_OK) { - PIN_DIRECTION ThisPinDir; - pPin->QueryDirection(&ThisPinDir); - if(ThisPinDir == PinDir) { - pEnum->Release(); - *ppPin = pPin; - return S_OK; - } - pEnum->Release(); - } - pEnum->Release(); - return E_FAIL; -} - -bool DSCameraSession::createFilterGraph() -{ - HRESULT hr; - IMoniker* pMoniker = NULL; - ICreateDevEnum* pDevEnum = NULL; - IEnumMoniker* pEnum = NULL; - AM_MEDIA_TYPE am_media_type; - - CoInitialize(NULL); - - // Create the filter graph - hr = CoCreateInstance(CLSID_FilterGraph,NULL,CLSCTX_INPROC, - IID_IGraphBuilder, (void**)&pGraph); - if(FAILED(hr)) { - qWarning()<<"failed to create filter graph"; - return false; - } - // Create the capture graph builder - hr = CoCreateInstance(CLSID_CaptureGraphBuilder2,NULL,CLSCTX_INPROC, - IID_ICaptureGraphBuilder2, (void**)&pBuild); - if(FAILED(hr)) { - qWarning()<<"failed to create graph builder"; - return false; - } - // Attach the filter graph to the capture graph - hr = pBuild->SetFiltergraph(pGraph); - if(FAILED(hr)) { - qWarning()<<"failed to connect capture graph and filter graph"; - return false; - } - // Find the Capture device - hr = CoCreateInstance(CLSID_SystemDeviceEnum, NULL, - CLSCTX_INPROC_SERVER, IID_ICreateDevEnum, - reinterpret_cast(&pDevEnum)); - if(SUCCEEDED(hr)) { - // Create an enumerator for the video capture category - hr = pDevEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory, &pEnum, 0); - pDevEnum->Release(); - pEnum->Reset(); - //go through and find all video capture devices - while(pEnum->Next(1, &pMoniker, NULL) == S_OK) { - IPropertyBag *pPropBag; - hr = pMoniker->BindToStorage(0,0,IID_IPropertyBag,(void**)(&pPropBag)); - if(FAILED(hr)) { - pMoniker->Release(); - continue; // skip this one - } - // Find the description - WCHAR str[120]; - VARIANT varName; - varName.vt = VT_BSTR; - hr = pPropBag->Read(L"FriendlyName", &varName, 0); - if(SUCCEEDED(hr)) { - // check if it is the selected device - hr = StringCchCopyW(str,sizeof(str)/sizeof(str[0]), varName.bstrVal); - QString output = QString::fromUtf16((unsigned short*)str); - if(m_device.contains(output.toLocal8Bit().constData())) { - hr = pMoniker->BindToObject(0,0,IID_IBaseFilter,(void**)&pCap); - if(SUCCEEDED(hr)) { - pPropBag->Release(); - pMoniker->Release(); - break; - } - } - } - pPropBag->Release(); - pMoniker->Release(); - } - } - pEnum->Release(); - - // Get capture device settings - hr = pBuild->FindInterface(&PIN_CATEGORY_CAPTURE,&MEDIATYPE_Video,pCap, - IID_IAMStreamConfig,(void**)&pConfig); - if(FAILED(hr)) { - qWarning()<<"failed to get config on capture device"; - return false; - } - - updateProperties(); - - // Sample grabber filter - hr = CoCreateInstance(CLSID_SampleGrabber,NULL,CLSCTX_INPROC,IID_IBaseFilter,(void**)&pSG_Filter); - if(FAILED(hr)) { - qWarning()<<"failed to create sample grabber"; - return false; - } - pSG_Filter->QueryInterface(IID_ISampleGrabber,(void**)&pSG); - if(FAILED(hr)) { - qWarning()<<"failed to get sample grabber"; - return false; - } - pSG->SetOneShot(FALSE); - pSG->SetBufferSamples(TRUE); - pSG->SetCallback(StillCapCB, 1); - - // Get stream control - hr = pGraph->QueryInterface(IID_IMediaControl,(void**)&pControl); - if(FAILED(hr)) { - qWarning()<<"failed to get stream control"; - return false; - } - hr = pCap->QueryInterface(IID_IAMVideoControl,(void**)&pVideoControl); - if(FAILED(hr)) { - qWarning()<<"failed to get video control handle"; - return false; - } - hr = pCap->QueryInterface(IID_IAMVideoProcAmp,(void**)&pProcAmp); - if(FAILED(hr)) { - qWarning()<<"failed to get video settings handle"; - return false; - } - CoUninitialize(); - - return true; -} - -void DSCameraSession::updateProperties() -{ - HRESULT hr; - AM_MEDIA_TYPE *pmt = NULL; - VIDEOINFOHEADER *pvi = NULL; - VIDEO_STREAM_CONFIG_CAPS scc; - int iCount, iSize; - hr = pConfig->GetNumberOfCapabilities(&iCount,&iSize); - if(FAILED(hr)) { - qWarning()<<"failed to get capabilities"; - return; - } - - QList sizes; - QVideoFrame::PixelFormat f; - - types.clear(); - resolutions.clear(); - - for(int i=0;iGetStreamCaps(i,&pmt,reinterpret_cast(&scc)); - if(hr == S_OK) { - pvi = (VIDEOINFOHEADER*)pmt->pbFormat; - if((pmt->majortype == MEDIATYPE_Video) && - (pmt->formattype == FORMAT_VideoInfo)) { - // Add types - if(pmt->subtype == MEDIASUBTYPE_RGB24) { - if(!types.contains(QVideoFrame::Format_RGB24)) { - types.append(QVideoFrame::Format_RGB24); - f = QVideoFrame::Format_RGB24; - //qWarning()<<"camera supports RGB24"; - } - } else if(pmt->subtype == MEDIASUBTYPE_RGB32) { - if(!types.contains(QVideoFrame::Format_RGB32)) { - types.append(QVideoFrame::Format_RGB32); - f = QVideoFrame::Format_RGB32; - //qWarning()<<"camera supports RGB32"; - } - } else if(pmt->subtype == MEDIASUBTYPE_YUY2) { - if(!types.contains(QVideoFrame::Format_YUYV)) { - types.append(QVideoFrame::Format_YUYV); - f = QVideoFrame::Format_YUYV; - //qWarning()<<"camera supports YUY2"; - } - } else if(pmt->subtype == MEDIASUBTYPE_MJPG) { - //qWarning("MJPG format not supported"); - - } else if(pmt->subtype == MEDIASUBTYPE_I420) { - if(!types.contains(QVideoFrame::Format_YUV420P)) { - types.append(QVideoFrame::Format_YUV420P); - f = QVideoFrame::Format_YUV420P; - //qWarning()<<"camera supports YUV420P"; - } - } else if(pmt->subtype == MEDIASUBTYPE_RGB555) { - if(!types.contains(QVideoFrame::Format_RGB555)) { - types.append(QVideoFrame::Format_RGB555); - f = QVideoFrame::Format_RGB555; - //qWarning()<<"camera supports RGB555"; - } - } else if(pmt->subtype == MEDIASUBTYPE_YVU9) { - //qWarning("YVU9 format not supported"); - - } else if(pmt->subtype == MEDIASUBTYPE_UYVY) { - if(!types.contains(QVideoFrame::Format_UYVY)) { - types.append(QVideoFrame::Format_UYVY); - f = QVideoFrame::Format_UYVY; - //qWarning()<<"camera supports UYVY"; - } - } else { - qWarning()<<"UNKNOWN FORMAT: "<subtype.Data1; - } - // Add resolutions - QSize res(pvi->bmiHeader.biWidth,pvi->bmiHeader.biHeight); - if(!resolutions.contains(f)) { - sizes.clear(); - resolutions.insert(f,sizes); - } - resolutions[f].append(res); - } - } - } -} - -bool DSCameraSession::setProperties() -{ - CoInitialize(NULL); - - HRESULT hr; - AM_MEDIA_TYPE am_media_type; - AM_MEDIA_TYPE *pmt = NULL; - VIDEOINFOHEADER *pvi = NULL; - VIDEO_STREAM_CONFIG_CAPS scc; - int iCount, iSize; - hr = pConfig->GetNumberOfCapabilities(&iCount,&iSize); - if(FAILED(hr)) { - qWarning()<<"failed to get capabilities"; - return false; - } - for(int i=0;iGetStreamCaps(i,&pmt,reinterpret_cast(&scc)); - if(hr == S_OK) { - pvi = (VIDEOINFOHEADER*)pmt->pbFormat; - - if((pmt->majortype == MEDIATYPE_Video) && - (pmt->formattype == FORMAT_VideoInfo)) { - if((actualFormat.pixelFormat() == QVideoFrame::Format_RGB24) || - (actualFormat.pixelFormat() == QVideoFrame::Format_RGB32) || - (actualFormat.pixelFormat() == QVideoFrame::Format_YUYV)) { - if((actualFormat.frameWidth() == pvi->bmiHeader.biWidth) && - (actualFormat.frameHeight() == pvi->bmiHeader.biHeight)) { - if(actualFormat.pixelFormat() == QVideoFrame::Format_RGB24) - pmt->subtype = MEDIASUBTYPE_RGB24; - else if(actualFormat.pixelFormat() == QVideoFrame::Format_YUYV) - pmt->subtype = MEDIASUBTYPE_YUY2; - else if(actualFormat.pixelFormat() == QVideoFrame::Format_RGB32) - pmt->subtype = MEDIASUBTYPE_RGB24; - else if(actualFormat.pixelFormat() == QVideoFrame::Format_YUV420P) - pmt->subtype = MEDIASUBTYPE_I420; - else if(actualFormat.pixelFormat() == QVideoFrame::Format_RGB555) - pmt->subtype = MEDIASUBTYPE_RGB555; - else if(actualFormat.pixelFormat() == QVideoFrame::Format_UYVY) - pmt->subtype = MEDIASUBTYPE_UYVY; - else { - qWarning()<<"unknown format?"; - return false; - } - hr = pConfig->SetFormat(pmt); - if(FAILED(hr)) { - qWarning()<<"failed to set format"; - return false; - } else - break; - } - } - } - } - } - // Set Sample Grabber config to match capture - ZeroMemory(&am_media_type, sizeof(am_media_type)); - am_media_type.majortype = MEDIATYPE_Video; - - if(actualFormat.pixelFormat() == QVideoFrame::Format_RGB32) - am_media_type.subtype = MEDIASUBTYPE_RGB24; - else if(actualFormat.pixelFormat() == QVideoFrame::Format_RGB24) - am_media_type.subtype = MEDIASUBTYPE_RGB24; - else if(actualFormat.pixelFormat() == QVideoFrame::Format_YUYV) - am_media_type.subtype = MEDIASUBTYPE_YUY2; - else if(actualFormat.pixelFormat() == QVideoFrame::Format_YUV420P) - am_media_type.subtype = MEDIASUBTYPE_I420; - else if(actualFormat.pixelFormat() == QVideoFrame::Format_RGB555) - am_media_type.subtype = MEDIASUBTYPE_RGB555; - else if(actualFormat.pixelFormat() == QVideoFrame::Format_UYVY) - am_media_type.subtype = MEDIASUBTYPE_UYVY; - else { - qWarning()<<"unknown format? for SG"; - return false; - } - - am_media_type.formattype = FORMAT_VideoInfo; - hr = pSG->SetMediaType(&am_media_type); - if(FAILED(hr)) { - qWarning()<<"failed to set video format on grabber"; - return false; - } - pSG->GetConnectedMediaType(&StillMediaType); - - CoUninitialize(); - - return true; -} - -bool DSCameraSession::openStream() -{ - //Opens the stream for reading and allocates any neccesary resources needed - //Return true if success, false otherwise - - if(opened) return true; - - if(!graph) - graph = createFilterGraph(); - - if(!graph) - return false; - - CoInitialize(NULL); - - HRESULT hr; - - hr = pGraph->AddFilter(pCap, L"Capture Filter"); - if(FAILED(hr)) { - qWarning()<<"failed to create capture filter"; - return false; - } - hr = pGraph->AddFilter(pSG_Filter, L"Sample Grabber"); - if(FAILED(hr)) { - qWarning()<<"failed to add sample grabber"; - return false; - } - hr = pBuild->RenderStream(&PIN_CATEGORY_CAPTURE,&MEDIATYPE_Video, - pCap,NULL,pSG_Filter); - if(FAILED(hr)) { - qWarning()<<"failed to renderstream"; - return false; - } - pSG->GetConnectedMediaType(&StillMediaType); - pSG_Filter->Release(); - - CoUninitialize(); - - return true; -} - -void DSCameraSession::closeStream() -{ - // Closes the stream and internally frees any resources used - opened = false; - - HRESULT hr; - IPin *pPin = 0; - hr = GetPin(pCap,PINDIR_OUTPUT,&pPin); - if(FAILED(hr)) { - qWarning()<<"failed to disconnect capture filter"; - return; - } - pGraph->Disconnect(pPin); - if(FAILED(hr)) { - qWarning()<<"failed to disconnect grabber filter"; - return; - } - hr = GetPin(pSG_Filter,PINDIR_INPUT,&pPin); - pGraph->Disconnect(pPin); - pGraph->RemoveFilter(pSG_Filter); - pGraph->RemoveFilter(pCap); - - SAFE_RELEASE(pCap); - SAFE_RELEASE(pSG_Filter); - SAFE_RELEASE(pGraph); - SAFE_RELEASE(pBuild); - - graph = false; -} - -bool DSCameraSession::startStream() -{ - // Starts the stream, by emitting either QVideoPackets - // or QvideoFrames, depending on Format chosen - - if(!setProperties()) { - qWarning()<<"try to create!!!!"; - closeStream(); - if(openStream()) - return false; - } - - if(!opened) { - opened = openStream(); - } - if(!opened) { - qWarning()<<"failed to openStream()"; - return false; - } - - HRESULT hr; - - hr = pGraph->QueryInterface(IID_IMediaControl,(void**)&pControl); - if(FAILED(hr)) { - qWarning()<<"failed to get stream control"; - return false; - } - - hr = pControl->Run(); - if(FAILED(hr)) { - qWarning()<<"failed to start"; - return false; - } else { - pControl->Release(); - } - active = true; - return true; -} - -void DSCameraSession::stopStream() -{ - // Stops the stream from emitting packets - - HRESULT hr; - - hr = pGraph->QueryInterface(IID_IMediaControl,(void**)&pControl); - if(FAILED(hr)) { - qWarning()<<"failed to get stream control"; - return; - } - - hr = pControl->Stop(); - if(FAILED(hr)) { - qWarning()<<"failed to stop"; - return; - } else { - pControl->Release(); - } - active = false; - - if(opened) - closeStream(); -} - -void DSCameraSession::suspendStream() -{ - // Pauses the stream - HRESULT hr; - - hr = pGraph->QueryInterface(IID_IMediaControl,(void**)&pControl); - if(FAILED(hr)) { - qWarning()<<"failed to get stream control"; - return; - } - - hr = pControl->Pause(); - if(FAILED(hr)) { - qWarning()<<"failed to pause"; - return; - } else { - pControl->Release(); - } - active = false; -} - -void DSCameraSession::resumeStream() -{ - // Resumes a paused stream - startStream(); -} - - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dscamerasession.h --- a/qtmobility/plugins/multimedia/directshow/camera/dscamerasession.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,201 +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 Qt Mobility Components. -** -** $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 DSCAMERASESSION_H -#define DSCAMERASESSION_H - -#include -#include -#include -#include - -#include -#include -#include -#include - -#include -#include -#include -#include -#pragma comment(lib, "strmiids.lib") -#pragma comment(lib, "ole32.lib") -#include - -#pragma include_alias("dxtrans.h","qedit.h") -#define __IDxtCompositor_INTERFACE_DEFINED__ -#define __IDxtAlphaSetter_INTERFACE_DEFINED__ -#define __IDxtJpeg_INTERFACE_DEFINED__ -#define __IDxtKey_INTERFACE_DEFINED__ -#include - -#define SAFE_RELEASE(x) { if(x) x->Release(); x = NULL; } - -class DSVideoRenderer; -class SampleGrabberCallbackPrivate; - -QTM_USE_NAMESPACE - -struct video_buffer { - unsigned char* buffer; - int length; - qint64 time; -}; - -typedef QMap> FormatResolutionMap; - -class DSCameraSession : public QObject -{ - Q_OBJECT -public: - DSCameraSession(QObject *parent = 0); - ~DSCameraSession(); - - bool deviceReady(); - - // camera controls - - int framerate() const; - void setFrameRate(int rate); - int brightness() const; - void setBrightness(int b); - int contrast() const; - void setContrast(int c); - int saturation() const; - void setSaturation(int s); - int hue() const; - void setHue(int h); - int sharpness() const; - void setSharpness(int s); - int zoom() const; - void setZoom(int z); - bool backlightCompensation() const; - void setBacklightCompensation(bool); - int whitelevel() const; - void setWhitelevel(int w); - int rotation() const; - void setRotation(int r); - bool flash() const; - void setFlash(bool f); - bool autofocus() const; - void setAutofocus(bool f); - - QSize frameSize() const; - void setFrameSize(const QSize& s); - void setDevice(const QString &device); - QList supportedPixelFormats(); - QVideoFrame::PixelFormat pixelFormat() const; - void setPixelFormat(QVideoFrame::PixelFormat fmt); - QList supportedResolutions(QVideoFrame::PixelFormat format); - - // media control - - bool setOutputLocation(const QUrl &sink); - QUrl outputLocation() const; - qint64 position() const; - int state() const; - void record(); - void pause(); - void stop(); - - void setSurface(QAbstractVideoSurface* surface); - - void captureImage(const QString &fileName); - - AM_MEDIA_TYPE StillMediaType; - QList frames; - SampleGrabberCallbackPrivate* StillCapCB; - - QMutex mutex; - -Q_SIGNALS: - void stateChanged(QCamera::State); - void imageCaptured(const QString &fileName, const QImage &img); - -private Q_SLOTS: - void captureFrame(); - -private: - QVideoSurfaceFormat actualFormat; - QList types; - - QTime timeStamp; - bool graph; - bool active; - bool opened; - bool available; - QCamera::State m_state; - QByteArray m_device; - QUrl m_sink; - DSVideoRenderer* m_output; - QAbstractVideoSurface* m_surface; - QVideoFrame::PixelFormat pixelF; - QSize m_windowSize; - FormatResolutionMap resolutions; - - ICaptureGraphBuilder2* pBuild; - IGraphBuilder* pGraph; - IMediaControl* pControl; - IBaseFilter* pCap; - IBaseFilter* pSG_Filter; - IBaseFilter* pNullRenderer; - ISampleGrabber* pSG; - IAMStreamConfig* pConfig; - IAMVideoControl* pVideoControl; - IAMVideoProcAmp* pProcAmp; - IAMCameraControl* pCameraControl; - - QString m_snapshot; - -protected: - HRESULT GetPin(IBaseFilter *pFilter,PIN_DIRECTION PinDir,IPin **ppPin); - bool createFilterGraph(); - void updateProperties(); - bool setProperties(); - bool openStream(); - void closeStream(); - bool startStream(); - void stopStream(); - void suspendStream(); - void resumeStream(); -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dsimagecapturecontrol.cpp --- a/qtmobility/plugins/multimedia/directshow/camera/dsimagecapturecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +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 Qt Mobility Components. -** -** $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 "dsimagecapturecontrol.h" -#include - -DSImageCaptureControl::DSImageCaptureControl(DSCameraSession *session) - :QImageCaptureControl(session), m_session(session), m_ready(false) -{ - connect(m_session, SIGNAL(stateChanged(QCamera::State)), SLOT(updateState())); - connect(m_session, SIGNAL(imageCaptured(QString,QImage)), this, SIGNAL(imageCaptured(QString,QImage))); -} - -DSImageCaptureControl::~DSImageCaptureControl() -{ -} - -bool DSImageCaptureControl::isReadyForCapture() const -{ - return m_ready; -} - -void DSImageCaptureControl::capture(const QString &fileName) -{ - m_session->captureImage(fileName); -} - -void DSImageCaptureControl::updateState() -{ - bool ready = m_session->state() == QCamera::ActiveState; - if(m_ready != ready) - emit readyForCaptureChanged(m_ready = ready); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dsimagecapturecontrol.h --- a/qtmobility/plugins/multimedia/directshow/camera/dsimagecapturecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +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 Qt Mobility Components. -** -** $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 DSIMAGECAPTURECONTROL_H -#define DSIMAGECAPTURECONTROL_H - -#include -#include "dscamerasession.h" - -QTM_USE_NAMESPACE - -class DSImageCaptureControl : public QImageCaptureControl -{ - Q_OBJECT -public: - DSImageCaptureControl(DSCameraSession *session); - virtual ~DSImageCaptureControl(); - - bool isReadyForCapture() const; - void capture(const QString &fileName); - -private slots: - void updateState(); - -private: - DSCameraSession *m_session; - bool m_ready; -}; - -#endif // DSCAPTURECONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dsvideodevicecontrol.cpp --- a/qtmobility/plugins/multimedia/directshow/camera/dsvideodevicecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,156 +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 Qt Mobility Components. -** -** $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 -#include -#include -#include "dsvideodevicecontrol.h" -#include "dscamerasession.h" - -#include -#include -#include -#include - -DSVideoDeviceControl::DSVideoDeviceControl(QObject *parent) - : QVideoDeviceControl(parent) -{ - m_session = qobject_cast(parent); - - devices.clear(); - descriptions.clear(); - - CoInitialize(NULL); - ICreateDevEnum* pDevEnum = NULL; - IEnumMoniker* pEnum = NULL; - // Create the System device enumerator - HRESULT hr = CoCreateInstance(CLSID_SystemDeviceEnum, NULL, - CLSCTX_INPROC_SERVER, IID_ICreateDevEnum, - reinterpret_cast(&pDevEnum)); - if(SUCCEEDED(hr)) { - // Create the enumerator for the video capture category - hr = pDevEnum->CreateClassEnumerator( - CLSID_VideoInputDeviceCategory, &pEnum, 0); - pEnum->Reset(); - // go through and find all video capture devices - IMoniker* pMoniker = NULL; - while(pEnum->Next(1, &pMoniker, NULL) == S_OK) { - IPropertyBag *pPropBag; - hr = pMoniker->BindToStorage(0,0,IID_IPropertyBag, - (void**)(&pPropBag)); - if(FAILED(hr)) { - pMoniker->Release(); - continue; // skip this one - } - // Find the description - WCHAR str[120]; - VARIANT varName; - varName.vt = VT_BSTR; - hr = pPropBag->Read(L"FriendlyName", &varName, 0); - if(SUCCEEDED(hr)) { - StringCchCopyW(str,sizeof(str)/sizeof(str[0]),varName.bstrVal); - QString temp(QString::fromUtf16((unsigned short*)str)); - devices.append(QString("ds:%1").arg(temp).toLocal8Bit().constData()); - hr = pPropBag->Read(L"Description", &varName, 0); - StringCchCopyW(str,sizeof(str)/sizeof(str[0]),varName.bstrVal); - QString temp2(QString::fromUtf16((unsigned short*)str)); - descriptions.append(temp2.toLocal8Bit().constData()); - } - pPropBag->Release(); - pMoniker->Release(); - } - } - CoUninitialize(); - - selected = 0; -} - -int DSVideoDeviceControl::deviceCount() const -{ - return devices.count(); -} - -QString DSVideoDeviceControl::deviceName(int index) const -{ - if(index >= 0 && index <= devices.count()) - return devices.at(index); - - return QString(); -} - -QString DSVideoDeviceControl::deviceDescription(int index) const -{ - if(index >= 0 && index <= descriptions.count()) - return descriptions.at(index); - - return QString(); -} - -QIcon DSVideoDeviceControl::deviceIcon(int index) const -{ - Q_UNUSED(index) - - return QIcon(); -} - -int DSVideoDeviceControl::defaultDevice() const -{ - return 0; -} - -int DSVideoDeviceControl::selectedDevice() const -{ - return selected; -} - -void DSVideoDeviceControl::setSelectedDevice(int index) -{ - if(index >= 0 && index <= devices.count()) { - if (m_session) { - QString device = devices.at(index); - if (device.startsWith("ds:")) - device.remove(0,3); - m_session->setDevice(device); - } - selected = index; - } -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dsvideodevicecontrol.h --- a/qtmobility/plugins/multimedia/directshow/camera/dsvideodevicecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,76 +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 Qt Mobility Components. -** -** $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 DSVIDEODEVICECONTROL_H -#define DSVIDEODEVICECONTROL_H - -#include - -class DSCameraSession; - -QTM_USE_NAMESPACE - -class DSVideoDeviceControl : public QVideoDeviceControl -{ - Q_OBJECT -public: - DSVideoDeviceControl(QObject *parent = 0); - - int deviceCount() const; - QString deviceName(int index) const; - QString deviceDescription(int index) const; - QIcon deviceIcon(int index) const; - int defaultDevice() const; - int selectedDevice() const; - -public Q_SLOTS: - void setSelectedDevice(int index); - -private: - DSCameraSession* m_session; - - QList devices; - QList descriptions; - - int selected; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dsvideooutputcontrol.cpp --- a/qtmobility/plugins/multimedia/directshow/camera/dsvideooutputcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +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 Qt Mobility Components. -** -** $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 "dsvideooutputcontrol.h" - -DSVideoOutputControl::DSVideoOutputControl(QObject *parent) - : QVideoOutputControl(parent) - , m_output(NoOutput) -{ - m_outputs.append(QVideoOutputControl::RendererOutput); -} - -QList DSVideoOutputControl::availableOutputs() const -{ - return m_outputs; -} - -QVideoOutputControl::Output DSVideoOutputControl::output() const -{ - return m_output; -} - -void DSVideoOutputControl::setOutput(Output output) -{ - if (!m_outputs.contains(output)) - output = NoOutput; - - emit availableOutputsChanged(m_outputs); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dsvideooutputcontrol.h --- a/qtmobility/plugins/multimedia/directshow/camera/dsvideooutputcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +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 Qt Mobility Components. -** -** $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 DSVIDEOOUTPUTCONTROL_H -#define DSVIDEOOUTPUTCONTROL_H - -#include - -QTM_USE_NAMESPACE - -class DSVideoOutputControl : public QVideoOutputControl -{ - Q_OBJECT -public: - DSVideoOutputControl(QObject *parent = 0); - - QList availableOutputs() const; - - Output output() const; - void setOutput(Output output); - -private: - QList m_outputs; - Output m_output; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dsvideorenderer.cpp --- a/qtmobility/plugins/multimedia/directshow/camera/dsvideorenderer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +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 Qt Mobility Components. -** -** $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 "dsvideorenderer.h" - -#include - -DSVideoRendererControl::DSVideoRendererControl(DSCameraSession* session, QObject *parent) - :QVideoRendererControl(parent), - m_surface(0), - m_session(session) -{ -} - -DSVideoRendererControl::~DSVideoRendererControl() -{ -} - -QAbstractVideoSurface* DSVideoRendererControl::surface() const -{ - return m_surface; -} - -void DSVideoRendererControl::setSurface(QAbstractVideoSurface *surface) -{ - m_surface = surface; - if(m_session) - m_session->setSurface(m_surface); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/camera/dsvideorenderer.h --- a/qtmobility/plugins/multimedia/directshow/camera/dsvideorenderer.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +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 Qt Mobility Components. -** -** $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 DSVIDEORENDERER_H -#define DSVIDEORENDERER_H - -#include -#include "dscamerasession.h" - -class CameraFormatConverter; - -QTM_USE_NAMESPACE - -class DSVideoRendererControl : public QVideoRendererControl -{ - Q_OBJECT -public: - DSVideoRendererControl(DSCameraSession* session, QObject *parent = 0); - ~DSVideoRendererControl(); - - QAbstractVideoSurface *surface() const; - void setSurface(QAbstractVideoSurface *surface); - - void setSession(DSCameraSession* session); - -private: - QAbstractVideoSurface* m_surface; - DSCameraSession* m_session; - CameraFormatConverter* converter; -}; - -#endif // DSVIDEORENDERER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/directshow.pro --- a/qtmobility/plugins/multimedia/directshow/directshow.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/directshow.pro Mon May 03 13:18:40 2010 +0300 @@ -17,15 +17,8 @@ HEADERS += dsserviceplugin.h SOURCES += dsserviceplugin.cpp -TMP_INCLUDE = $$quote($$(INCLUDE)) -TMP_SEARCHPATHS = $$split(TMP_INCLUDE, ";") $$QMAKE_INCDIR -TMP_REQUIRED_HEADERS = -for(p, TMP_SEARCHPATHS) { - exists($${p}/qedit.h): TMP_REQUIRED_HEADERS *= qedit.h -} -contains(TMP_REQUIRED_HEADERS, qedit.h) { - include(camera/camera.pri) -} +!contains(TMP_REQUIRED_HEADERS, wmsdk.h): DEFINES += QT_NO_WMSDK + include (player/player.pri) target.path=$$QT_MOBILITY_PREFIX/plugins/mediaservice diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/dsserviceplugin.h --- a/qtmobility/plugins/multimedia/directshow/dsserviceplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/dsserviceplugin.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef DSSERVICEPLUGIN_H #define DSSERVICEPLUGIN_H -#include +#include "../../../src/multimedia/qmediaserviceproviderplugin.h" QTM_USE_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowaudioendpointcontrol.cpp --- a/qtmobility/plugins/multimedia/directshow/player/directshowaudioendpointcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowaudioendpointcontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -52,7 +52,7 @@ , m_deviceEnumerator(0) { if (CreateBindCtx(0, &m_bindContext) == S_OK) { - m_deviceEnumerator = com_new(CLSID_SystemDeviceEnum); + m_deviceEnumerator = com_new(CLSID_SystemDeviceEnum, IID_ICreateDevEnum); updateEndpoints(); @@ -79,7 +79,26 @@ QString DirectShowAudioEndpointControl::endpointDescription(const QString &name) const { +#ifdef __IPropertyBag_INTERFACE_DEFINED__ + QString description; + + if (IMoniker *moniker = m_devices.value(name, 0)) { + IPropertyBag *propertyBag = 0; + if (SUCCEEDED(moniker->BindToStorage( + 0, 0, IID_IPropertyBag, reinterpret_cast(&propertyBag)))) { + VARIANT name; + VariantInit(&name); + if (SUCCEEDED(propertyBag->Read(L"FriendlyName", &name, 0))) + description = QString::fromWCharArray(name.bstrVal); + VariantClear(&name); + propertyBag->Release(); + } + } + + return description; +#else return name.section(QLatin1Char('\\'), -1); +#endif } QString DirectShowAudioEndpointControl::defaultEndpoint() const @@ -103,7 +122,7 @@ if (moniker->BindToObject( m_bindContext, 0, - __uuidof(IBaseFilter), + IID_IBaseFilter, reinterpret_cast(&filter)) == S_OK) { m_service->setAudioOutput(filter); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowaudioendpointcontrol.h --- a/qtmobility/plugins/multimedia/directshow/player/directshowaudioendpointcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowaudioendpointcontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef DIRECTSHOWAUDIOENDPOINTCONTROL_H #define DIRECTSHOWAUDIOENDPOINTCONTROL_H -#include +#include "../../src/multimedia/qaudioendpointselector.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshoweventloop.cpp --- a/qtmobility/plugins/multimedia/directshow/player/directshoweventloop.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshoweventloop.cpp Mon May 03 13:18:40 2010 +0300 @@ -65,20 +65,16 @@ }; DirectShowEventLoop::DirectShowEventLoop(QObject *parent) - : QWinEventNotifier(parent) + : QObject(parent) , m_postsHead(0) , m_postsTail(0) , m_eventHandle(::CreateEvent(0, 0, 0, 0)) , m_waitHandle(::CreateEvent(0, 0, 0, 0)) { - setHandle(m_eventHandle); - setEnabled(true); } DirectShowEventLoop::~DirectShowEventLoop() { - setEnabled(false); - ::CloseHandle(m_eventHandle); ::CloseHandle(m_waitHandle); @@ -120,17 +116,16 @@ m_postsTail = post; + QCoreApplication::postEvent(this, new QEvent(QEvent::User)); ::SetEvent(m_eventHandle); } -bool DirectShowEventLoop::event(QEvent *event) +void DirectShowEventLoop::customEvent(QEvent *event) { - if (event->type() == QEvent::WinEventAct) { + if (event->type() == QEvent::User) { processEvents(); - - return true; } else { - return QWinEventNotifier::event(event); + QObject::customEvent(event); } } @@ -138,17 +133,18 @@ { QMutexLocker locker(&m_mutex); + ::ResetEvent(m_eventHandle); + while(m_postsHead) { - ::ResetEvent(m_eventHandle); - DirectShowPostedEvent *post = m_postsHead; m_postsHead = m_postsHead->next; + if (!m_postsHead) + m_postsTail = 0; + locker.unlock(); QCoreApplication::sendEvent(post->receiver, post->event); delete post; locker.relock(); } - - m_postsTail = 0; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshoweventloop.h --- a/qtmobility/plugins/multimedia/directshow/player/directshoweventloop.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshoweventloop.h Mon May 03 13:18:40 2010 +0300 @@ -43,11 +43,14 @@ #define DIRECTSHOWEVENTLOOP_H #include -#include +#include +#include + +#include class DirectShowPostedEvent; -class DirectShowEventLoop : public QWinEventNotifier +class DirectShowEventLoop : public QObject { Q_OBJECT public: @@ -59,7 +62,8 @@ void postEvent(QObject *object, QEvent *event); - bool event(QEvent *event); +protected: + void customEvent(QEvent *event); private: void processEvents(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowglobal.h --- a/qtmobility/plugins/multimedia/directshow/player/directshowglobal.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowglobal.h Mon May 03 13:18:40 2010 +0300 @@ -42,28 +42,98 @@ #ifndef DIRECTSHOWGLOBAL_H #define DIRECTSHOWGLOBAL_H +#include + #include -template T *com_cast(IUnknown *unknown) +template T *com_cast(IUnknown *unknown, const IID &iid) { T *iface = 0; - return unknown && unknown->QueryInterface( - __uuidof(T), reinterpret_cast(&iface)) == S_OK + return unknown && unknown->QueryInterface(iid, reinterpret_cast(&iface)) == S_OK ? iface : 0; } -template T *com_new(const IID &clsid) +template T *com_new(const IID &clsid, const IID &iid) { T *object = 0; return CoCreateInstance( clsid, NULL, CLSCTX_INPROC_SERVER, - __uuidof(T), + iid, reinterpret_cast(&object)) == S_OK ? object : 0; } +#ifndef __IFilterGraph2_INTERFACE_DEFINED__ +#define __IFilterGraph2_INTERFACE_DEFINED__ +#define INTERFACE IFilterGraph2 +DECLARE_INTERFACE_(IFilterGraph2 ,IGraphBuilder) +{ + STDMETHOD(AddSourceFilterForMoniker)(THIS_ IMoniker *, IBindCtx *, LPCWSTR,IBaseFilter **) PURE; + STDMETHOD(ReconnectEx)(THIS_ IPin *, const AM_MEDIA_TYPE *) PURE; + STDMETHOD(RenderEx)(IPin *, DWORD, DWORD *) PURE; +}; +#undef INTERFACE #endif + +#ifndef __IAMFilterMiscFlags_INTERFACE_DEFINED__ +#define __IAMFilterMiscFlags_INTERFACE_DEFINED__ +#define INTERFACE IAMFilterMiscFlags +DECLARE_INTERFACE_(IAMFilterMiscFlags ,IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + STDMETHOD_(ULONG,GetMiscFlags)(THIS) PURE; +}; +#undef INTERFACE +#endif + +#ifndef __IFileSourceFilter_INTERFACE_DEFINED__ +#define __IFileSourceFilter_INTERFACE_DEFINED__ +#define INTERFACE IFileSourceFilter +DECLARE_INTERFACE_(IFileSourceFilter ,IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + STDMETHOD(Load)(THIS_ LPCOLESTR, const AM_MEDIA_TYPE *) PURE; + STDMETHOD(GetCurFile)(THIS_ LPOLESTR *ppszFileName, AM_MEDIA_TYPE *) PURE; +}; +#undef INTERFACE +#endif + +#ifndef __IAMOpenProgress_INTERFACE_DEFINED__ +#define __IAMOpenProgress_INTERFACE_DEFINED__ +#define INTERFACE IAMOpenProgress +DECLARE_INTERFACE_(IAMOpenProgress ,IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + STDMETHOD(QueryProgress)(THIS_ LONGLONG *, LONGLONG *) PURE; + STDMETHOD(AbortOperation)(THIS) PURE; +}; +#undef INTERFACE +#endif + +#ifndef __IFilterChain_INTERFACE_DEFINED__ +#define __IFilterChain_INTERFACE_DEFINED__ +#define INTERFACE IFilterChain +DECLARE_INTERFACE_(IFilterChain ,IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + STDMETHOD(StartChain)(IBaseFilter *, IBaseFilter *) PURE; + STDMETHOD(PauseChain)(IBaseFilter *, IBaseFilter *) PURE; + STDMETHOD(StopChain)(IBaseFilter *, IBaseFilter *) PURE; + STDMETHOD(RemoveChain)(IBaseFilter *, IBaseFilter *) PURE; +}; +#undef INTERFACE +#endif + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowioreader.cpp --- a/qtmobility/plugins/multimedia/directshow/player/directshowioreader.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowioreader.cpp Mon May 03 13:18:40 2010 +0300 @@ -140,7 +140,7 @@ return S_OK; } else { - *ppActual = com_new(CLSID_MemoryAllocator); + *ppActual = com_new(CLSID_MemoryAllocator, IID_IMemAllocator); if (*ppActual) { if ((*ppActual)->SetProperties(pProps, &actualProperties) != S_OK) { @@ -176,7 +176,7 @@ return VFW_E_SAMPLE_TIME_NOT_SET; } else { LONGLONG position = startTime / 10000000; - LONG length = ((endTime - startTime) / 10000000) + 1; + LONG length = (endTime - startTime) / 10000000; DirectShowSampleRequest *request = new DirectShowSampleRequest( pSample, dwUser, position, length, buffer); @@ -248,7 +248,7 @@ return VFW_E_SAMPLE_TIME_NOT_SET; } else { LONGLONG position = startTime / 10000000; - LONG length = ((endTime - startTime) / 10000000) + 1; + LONG length = (endTime - startTime) / 10000000; QMutexLocker locker(&m_mutex); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowiosource.cpp --- a/qtmobility/plugins/multimedia/directshow/player/directshowiosource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowiosource.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,6 +45,8 @@ #include "directshowmediatype.h" #include "directshowpinenum.h" +#include +#include static const GUID directshow_subtypes[] = { @@ -53,15 +55,16 @@ MEDIASUBTYPE_NULL }; -DirectShowIOSource::DirectShowIOSource(QIODevice *device, DirectShowEventLoop *loop) +DirectShowIOSource::DirectShowIOSource(DirectShowEventLoop *loop) : m_ref(1) , m_state(State_Stopped) + , m_reader(0) + , m_loop(loop) , m_graph(0) , m_clock(0) , m_allocator(0) , m_peerPin(0) , m_pinId(QLatin1String("Data")) - , m_reader(device, this, loop) { QVector mediaTypes; @@ -91,6 +94,15 @@ DirectShowIOSource::~DirectShowIOSource() { Q_ASSERT(m_ref == 0); + + delete m_reader; +} + +void DirectShowIOSource::setDevice(QIODevice *device) +{ + Q_ASSERT(!m_reader); + + m_reader = new DirectShowIOReader(device, this, m_loop); } void DirectShowIOSource::setAllocator(IMemAllocator *allocator) @@ -107,6 +119,10 @@ // IUnknown HRESULT DirectShowIOSource::QueryInterface(REFIID riid, void **ppvObject) { + // 2dd74950-a890-11d1-abe8-00a0c905f375 + static const GUID iid_IAmFilterMiscFlags = { + 0x2dd74950, 0xa890, 0x11d1, {0xab, 0xe8, 0x00, 0xa0, 0xc9, 0x05, 0xf3, 0x75}}; + if (!ppvObject) { return E_POINTER; } else if (riid == IID_IUnknown @@ -114,12 +130,12 @@ || riid == IID_IMediaFilter || riid == IID_IBaseFilter) { *ppvObject = static_cast(this); - } else if (riid == IID_IAMFilterMiscFlags) { + } else if (riid == iid_IAmFilterMiscFlags) { *ppvObject = static_cast(this); } else if (riid == IID_IPin) { *ppvObject = static_cast(this); } else if (riid == IID_IAsyncReader) { - *ppvObject = static_cast(&m_reader); + *ppvObject = static_cast(m_reader); } else { *ppvObject = 0; @@ -400,8 +416,8 @@ } else if (!m_allocator) { hr = VFW_E_NO_TRANSPORT; - if (IMemInputPin *memPin = com_cast(pin)) { - if ((m_allocator = com_new(CLSID_MemoryAllocator))) { + if (IMemInputPin *memPin = com_cast(pin, IID_IMemInputPin)) { + if ((m_allocator = com_new(CLSID_MemoryAllocator, IID_IMemAllocator))) { ALLOCATOR_PROPERTIES properties; if (memPin->GetAllocatorRequirements(&properties) == S_OK || m_allocator->GetProperties(&properties) == S_OK) { @@ -569,12 +585,12 @@ HRESULT DirectShowIOSource::BeginFlush() { - return m_reader.BeginFlush(); + return m_reader->BeginFlush(); } HRESULT DirectShowIOSource::EndFlush() { - return m_reader.EndFlush(); + return m_reader->EndFlush(); } HRESULT DirectShowIOSource::NewSegment(REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate) @@ -597,3 +613,27 @@ } } +DirectShowRcSource::DirectShowRcSource(DirectShowEventLoop *loop) + : DirectShowIOSource(loop) +{ +} + +bool DirectShowRcSource::open(const QUrl &url) +{ + m_file.moveToThread(QCoreApplication::instance()->thread()); + + m_file.setFileName(QLatin1Char(':') + url.path()); + + qDebug("qrc file %s", qPrintable(m_file.fileName())); + + if (m_file.open(QIODevice::ReadOnly)) { + qDebug("Size %d", m_file.size()); + qDebug("Sequential %d", int(m_file.isSequential())); + + setDevice(&m_file); + + return true; + } else { + return false; + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowiosource.h --- a/qtmobility/plugins/multimedia/directshow/player/directshowiosource.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowiosource.h Mon May 03 13:18:40 2010 +0300 @@ -42,13 +42,12 @@ #ifndef DIRECTSHOWIOSOURCE_H #define DIRECTSHOWIOSOURCE_H +#include "directshowglobal.h" #include "directshowioreader.h" #include "directshowmediatype.h" #include "directshowmediatypelist.h" -QT_BEGIN_NAMESPACE -class QIODevice; -QT_END_NAMESPACE +#include class DirectShowIOSource : public DirectShowMediaTypeList @@ -57,11 +56,12 @@ , public IPin { public: - DirectShowIOSource(QIODevice *device, DirectShowEventLoop *loop); + DirectShowIOSource(DirectShowEventLoop *loop); ~DirectShowIOSource(); + void setDevice(QIODevice *device); void setAllocator(IMemAllocator *allocator); - + // IUnknown HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject); ULONG STDMETHODCALLTYPE AddRef(); @@ -123,6 +123,8 @@ volatile LONG m_ref; FILTER_STATE m_state; + DirectShowIOReader *m_reader; + DirectShowEventLoop *m_loop; IFilterGraph *m_graph; IReferenceClock *m_clock; IMemAllocator *m_allocator; @@ -131,8 +133,17 @@ QString m_filterName; const QString m_pinId; QMutex m_mutex; - DirectShowIOReader m_reader; +}; +class DirectShowRcSource : public DirectShowIOSource +{ +public: + DirectShowRcSource(DirectShowEventLoop *loop); + + bool open(const QUrl &url); + +private: + QFile m_file; }; #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowmediatype.cpp --- a/qtmobility/plugins/multimedia/directshow/player/directshowmediatype.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowmediatype.cpp Mon May 03 13:18:40 2010 +0300 @@ -51,9 +51,20 @@ static const TypeLookup qt_typeLookup[] = { - { QVideoFrame::Format_RGB24, MEDIASUBTYPE_RGB24 }, - { QVideoFrame::Format_RGB32, MEDIASUBTYPE_RGB32 }, - { QVideoFrame::Format_YV12, MEDIASUBTYPE_YV12 } + { QVideoFrame::Format_RGB32, /*MEDIASUBTYPE_RGB32*/ {0xe436eb7e, 0x524f, 0x11ce, {0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70}} }, + { QVideoFrame::Format_BGR24, /*MEDIASUBTYPE_RGB24*/ {0xe436eb7d, 0x524f, 0x11ce, {0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70}} }, + { QVideoFrame::Format_RGB565, /*MEDIASUBTYPE_RGB565*/ {0xe436eb7b, 0x524f, 0x11ce, {0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70}} }, + { QVideoFrame::Format_RGB555, /*MEDIASUBTYPE_RGB555*/ {0xe436eb7c, 0x524f, 0x11ce, {0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70}} }, + { QVideoFrame::Format_AYUV444, /*MEDIASUBTYPE_AYUV*/ {0x56555941, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} }, + { QVideoFrame::Format_YUYV, /*MEDIASUBTYPE_YUY2*/ {0x32595559, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} }, + { QVideoFrame::Format_UYVY, /*MEDIASUBTYPE_UYVY*/ {0x59565955, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} }, + { QVideoFrame::Format_IMC1, /*MEDIASUBTYPE_IMC1*/ {0x31434D49, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} }, + { QVideoFrame::Format_IMC2, /*MEDIASUBTYPE_IMC2*/ {0x32434D49, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} }, + { QVideoFrame::Format_IMC3, /*MEDIASUBTYPE_IMC3*/ {0x33434D49, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} }, + { QVideoFrame::Format_IMC4, /*MEDIASUBTYPE_IMC4*/ {0x34434D49, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} }, + { QVideoFrame::Format_YV12, /*MEDIASUBTYPE_YV12*/ {0x32315659, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} }, + { QVideoFrame::Format_NV12, /*MEDIASUBTYPE_NV12*/ {0x3231564E, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} }, + { QVideoFrame::Format_YUV420P, /*MEDIASUBTYPE_IYUV*/ {0x56555949, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} } }; } @@ -88,12 +99,16 @@ GUID DirectShowMediaType::convertPixelFormat(QVideoFrame::PixelFormat format) { + // MEDIASUBTYPE_None; + static const GUID none = { + 0xe436eb8e, 0x524f, 0x11ce, {0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70} }; + const int count = sizeof(qt_typeLookup) / sizeof(TypeLookup); for (int i = 0; i < count; ++i) if (qt_typeLookup[i].pixelFormat == format) return qt_typeLookup[i].mediaType; - return MEDIASUBTYPE_None; + return none; } QVideoSurfaceFormat DirectShowMediaType::formatFromType(const AM_MEDIA_TYPE &type) @@ -141,11 +156,27 @@ int DirectShowMediaType::bytesPerLine(const QVideoSurfaceFormat &format) { switch (format.pixelFormat()) { - case QVideoFrame::Format_RGB24: - return format.frameWidth() * 4 + 3 - format.frameWidth() % 4; + // 32 bpp packed formats. case QVideoFrame::Format_RGB32: + case QVideoFrame::Format_AYUV444: return format.frameWidth() * 4; + // 24 bpp packed formats. + case QVideoFrame::Format_RGB24: + return format.frameWidth() * 3 + 3 - format.frameWidth() % 4; + // 16 bpp packed formats. + case QVideoFrame::Format_RGB565: + case QVideoFrame::Format_RGB555: + case QVideoFrame::Format_YUYV: + case QVideoFrame::Format_UYVY: + return format.frameWidth() * 2 + 3 - format.frameWidth() % 4; + // Planar formats. + case QVideoFrame::Format_IMC1: + case QVideoFrame::Format_IMC2: + case QVideoFrame::Format_IMC3: + case QVideoFrame::Format_IMC4: case QVideoFrame::Format_YV12: + case QVideoFrame::Format_NV12: + case QVideoFrame::Format_YUV420P: return format.frameWidth() + 3 - format.frameWidth() % 4; default: return 0; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowmediatype.h --- a/qtmobility/plugins/multimedia/directshow/player/directshowmediatype.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowmediatype.h Mon May 03 13:18:40 2010 +0300 @@ -54,9 +54,9 @@ DirectShowMediaType(const AM_MEDIA_TYPE &type) { copy(this, type); } DirectShowMediaType(const DirectShowMediaType &other) { copy(this, other); } DirectShowMediaType &operator =(const AM_MEDIA_TYPE &type) { - free(this); copy(this, type); return *this; } + freeData(this); copy(this, type); return *this; } DirectShowMediaType &operator =(const DirectShowMediaType &other) { - free(this); copy(this, other); return *this; } + freeData(this); copy(this, other); return *this; } ~DirectShowMediaType() { freeData(this); } void clear() { freeData(this); memset(this, 0, sizeof(DirectShowMediaType)); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowmetadatacontrol.cpp --- a/qtmobility/plugins/multimedia/directshow/player/directshowmetadatacontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowmetadatacontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -294,7 +294,7 @@ } if (string) { - value = QString::fromUtf16(string, ::SysStringLen(string)); + value = QString::fromUtf16(reinterpret_cast(string), ::SysStringLen(string)); ::SysFreeString(string); } @@ -341,7 +341,7 @@ if (m_headerInfo) m_headerInfo->Release(); - m_headerInfo = com_cast(source); + m_headerInfo = com_cast(source, IID_IWMHeaderInfo); #endif // DirectShowMediaPlayerService holds a lock at this point so defer emitting signals to a later // time. diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowmetadatacontrol.h --- a/qtmobility/plugins/multimedia/directshow/player/directshowmetadatacontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowmetadatacontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,9 +42,10 @@ #ifndef DIRECTSHOWMETADATACONTROL_H #define DIRECTSHOWMETADATACONTROL_H -#include +#include "../../src/multimedia/qmetadatacontrol.h" -#include +#include "directshowglobal.h" + #include #ifndef QT_NO_WMSDK diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowplayercontrol.cpp --- a/qtmobility/plugins/multimedia/directshow/player/directshowplayercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowplayercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -79,8 +79,10 @@ , m_updateProperties(0) , m_state(QMediaPlayer::StoppedState) , m_status(QMediaPlayer::UnknownMediaStatus) + , m_error(QMediaPlayer::NoError) , m_streamTypes(0) , m_muteVolume(-1) + , m_position(0) , m_duration(0) , m_playbackRate(0) , m_seekable(false) @@ -110,7 +112,7 @@ qint64 DirectShowPlayerControl::position() const { - return m_service->position(); + return const_cast(m_position) = m_service->position(); } void DirectShowPlayerControl::setPosition(qint64 position) @@ -237,12 +239,7 @@ m_service->load(media, stream); - emit audioAvailableChanged(m_streamTypes & DirectShowPlayerService::AudioStream); - emit videoAvailableChanged(m_streamTypes & DirectShowPlayerService::VideoStream); - emit durationChanged(m_duration); - emit seekableChanged(m_seekable); - emit mediaStatusChanged(m_status); - emit stateChanged(m_state); + emitPropertyChanges(); } void DirectShowPlayerControl::play() @@ -266,28 +263,7 @@ void DirectShowPlayerControl::customEvent(QEvent *event) { if (event->type() == QEvent::Type(PropertiesChanged)) { - int properties = m_updateProperties; - m_updateProperties = 0; - - if (properties & PlaybackRateProperty) - emit playbackRateChanged(m_playbackRate); - - if (properties & StreamTypesProperty) { - emit audioAvailableChanged(m_streamTypes & DirectShowPlayerService::AudioStream); - emit videoAvailableChanged(m_streamTypes & DirectShowPlayerService::VideoStream); - } - - if (properties & DurationProperty) - emit durationChanged(m_duration); - - if (properties & SeekableProperty) - emit seekableChanged(m_seekable); - - if (properties & StatusProperty) - emit mediaStatusChanged(m_status); - - if (properties & StateProperty) - emit stateChanged(m_state); + emitPropertyChanges(); event->accept(); } else { @@ -295,6 +271,38 @@ } } +void DirectShowPlayerControl::emitPropertyChanges() +{ + int properties = m_updateProperties; + m_updateProperties = 0; + + if ((properties & ErrorProperty) && m_error != QMediaPlayer::NoError) + emit error(m_error, m_errorString); + + if (properties & PlaybackRateProperty) + emit playbackRateChanged(m_playbackRate); + + if (properties & StreamTypesProperty) { + emit audioAvailableChanged(m_streamTypes & DirectShowPlayerService::AudioStream); + emit videoAvailableChanged(m_streamTypes & DirectShowPlayerService::VideoStream); + } + + if (properties & PositionProperty) + emit positionChanged(m_position); + + if (properties & DurationProperty) + emit durationChanged(m_duration); + + if (properties & SeekableProperty) + emit seekableChanged(m_seekable); + + if (properties & StatusProperty) + emit mediaStatusChanged(m_status); + + if (properties & StateProperty) + emit stateChanged(m_state); +} + void DirectShowPlayerControl::scheduleUpdate(int properties) { if (m_updateProperties == 0) @@ -360,5 +368,23 @@ if (m_audio) m_audio->Release(); - m_audio = com_cast(filter); + m_audio = com_cast(filter, IID_IBasicAudio); } + +void DirectShowPlayerControl::updateError(QMediaPlayer::Error error, const QString &errorString) +{ + m_error = error; + m_errorString = errorString; + + if (m_error != QMediaPlayer::NoError) + scheduleUpdate(ErrorProperty); +} + +void DirectShowPlayerControl::updatePosition(qint64 position) +{ + if (m_position != position) { + m_position = position; + + scheduleUpdate(PositionProperty); + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowplayercontrol.h --- a/qtmobility/plugins/multimedia/directshow/player/directshowplayercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowplayercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,8 @@ #ifndef DIRECTSHOWPLAYERCONTROL_H #define DIRECTSHOWPLAYERCONTROL_H -#include -#include +#include "../../src/multimedia/qmediacontent.h" +#include "../../src/multimedia/qmediaplayercontrol.h" #include @@ -98,8 +98,8 @@ void updateMediaInfo(qint64 duration, int streamTypes, bool seekable); void updatePlaybackRate(qreal rate); void updateAudioOutput(IBaseFilter *filter); - - using QMediaPlayerControl::error; + void updateError(QMediaPlayer::Error error, const QString &errorString); + void updatePosition(qint64 position); protected: void customEvent(QEvent *event); @@ -112,7 +112,9 @@ StreamTypesProperty = 0x04, DurationProperty = 0x08, PlaybackRateProperty = 0x10, - SeekableProperty = 0x20 + SeekableProperty = 0x20, + ErrorProperty = 0x40, + PositionProperty = 0x80 }; enum Event @@ -121,6 +123,7 @@ }; void scheduleUpdate(int properties); + void emitPropertyChanges(); DirectShowPlayerService *m_service; IBasicAudio *m_audio; @@ -128,12 +131,15 @@ int m_updateProperties; QMediaPlayer::State m_state; QMediaPlayer::MediaStatus m_status; + QMediaPlayer::Error m_error; int m_streamTypes; int m_muteVolume; + qint64 m_position; qint64 m_duration; qreal m_playbackRate; bool m_seekable; QMediaContent m_media; + QString m_errorString; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowplayerservice.cpp --- a/qtmobility/plugins/multimedia/directshow/player/directshowplayerservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowplayerservice.cpp Mon May 03 13:18:40 2010 +0300 @@ -49,15 +49,14 @@ #include "directshowvideorenderercontrol.h" #include "vmr9videowindowcontrol.h" -#include +#include "../../src/multimedia/qmediacontent.h" #include #include #include #include -#include - +Q_GLOBAL_STATIC(DirectShowEventLoop, qt_directShowEventLoop) class DirectShowPlayerServiceThread : public QThread { @@ -77,12 +76,13 @@ DirectShowPlayerService::DirectShowPlayerService(QObject *parent) : QMediaService(parent) , m_playerControl(0) - , m_audioEndpointControl(0) , m_metaDataControl(0) , m_videoOutputControl(0) , m_videoRendererControl(0) , m_videoWindowControl(0) + , m_audioEndpointControl(0) , m_taskThread(0) + , m_loop(qt_directShowEventLoop()) , m_pendingTasks(0) , m_executingTask(0) , m_executedTasks(0) @@ -105,7 +105,7 @@ m_metaDataControl = new DirectShowMetaDataControl(this); m_videoOutputControl = new DirectShowVideoOutputControl; m_audioEndpointControl = new DirectShowAudioEndpointControl(this); - m_videoRendererControl = new DirectShowVideoRendererControl(&m_loop); + m_videoRendererControl = new DirectShowVideoRendererControl(m_loop); m_videoWindowControl = new Vmr9VideoWindowControl; m_taskThread = new DirectShowPlayerServiceThread(this); @@ -178,6 +178,9 @@ m_resources = media.resources(); m_stream = stream; + m_error = QMediaPlayer::NoError; + m_errorString = QString(); + m_position = 0; m_duration = 0; m_streamTypes = 0; m_executedTasks = 0; @@ -191,10 +194,17 @@ m_graphStatus = NoMedia; m_url.clear(); + } else if (stream && (!stream->isReadable() || stream->isSequential())) { + m_pendingTasks = 0; + m_graphStatus = InvalidMedia; + m_error = QMediaPlayer::ResourceError; } else { + // {36b73882-c2c8-11cf-8b46-00805f6cef60} + static const GUID iid_IFilterGraph2 = { + 0x36b73882, 0xc2c8, 0x11cf, {0x8b, 0x46, 0x00, 0x80, 0x5f, 0x6c, 0xef, 0x60} }; m_graphStatus = Loading; - m_graph = com_new(CLSID_FilterGraph); + m_graph = com_new(CLSID_FilterGraph, iid_IFilterGraph2); if (stream) m_pendingTasks = SetStreamSource; @@ -204,8 +214,10 @@ ::SetEvent(m_taskHandle); } + m_playerControl->updateError(m_error, m_errorString); m_playerControl->updateMediaInfo(m_duration, m_streamTypes, m_seekable); m_playerControl->updateState(QMediaPlayer::StoppedState); + m_playerControl->updatePosition(m_position); updateStatus(); } @@ -218,15 +230,22 @@ HRESULT hr = E_FAIL; -#ifndef QT_NO_WMSDK if (url.scheme() == QLatin1String("http") || url.scheme() == QLatin1String("https")) { - if (IFileSourceFilter *fileSource = com_new(CLSID_WMAsfReader)) { + static const GUID clsid_WMAsfReader = { + 0x187463a0, 0x5bb7, 0x11d3, {0xac, 0xbe, 0x00, 0x80, 0xc7, 0x5e, 0x24, 0x6e} }; + + // {56a868a6-0ad4-11ce-b03a-0020af0ba770} + static const GUID iid_IFileSourceFilter = { + 0x56a868a6, 0x0ad4, 0x11ce, {0xb0, 0x3a, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70} }; + + if (IFileSourceFilter *fileSource = com_new( + clsid_WMAsfReader, iid_IFileSourceFilter)) { locker->unlock(); - hr = fileSource->Load(url.toString().utf16(), 0); + hr = fileSource->Load(reinterpret_cast(url.toString().utf16()), 0); locker->relock(); if (SUCCEEDED(hr)) { - source = com_cast(fileSource); + source = com_cast(fileSource, IID_IBaseFilter); if (!SUCCEEDED(hr = m_graph->AddFilter(source, L"Source")) && source) { source->Release(); @@ -236,16 +255,21 @@ fileSource->Release(); } + } else if (url.scheme() == QLatin1String("qrc")) { + DirectShowRcSource *rcSource = new DirectShowRcSource(m_loop); + + if (rcSource->open(url) && SUCCEEDED(hr = m_graph->AddFilter(rcSource, L"Source"))) + source = rcSource; + else + rcSource->Release(); } if (!SUCCEEDED(hr)) { -#endif locker->unlock(); - hr = m_graph->AddSourceFilter(url.toString().utf16(), L"Source", &source); + hr = m_graph->AddSourceFilter( + reinterpret_cast(url.toString().utf16()), L"Source", &source); locker->relock(); -#ifndef QT_NO_WMSDK } -#endif if (SUCCEEDED(hr)) { m_executedTasks = SetSource; @@ -269,14 +293,17 @@ switch (hr) { case VFW_E_UNKNOWN_FILE_TYPE: m_error = QMediaPlayer::FormatError; + m_errorString = QString(); break; case E_OUTOFMEMORY: case VFW_E_CANNOT_LOAD_SOURCE_FILTER: case VFW_E_NOT_FOUND: m_error = QMediaPlayer::ResourceError; + m_errorString = QString(); default: m_error = QMediaPlayer::ResourceError; - qWarning("DirectShowPlayerService::doSetUrlSource: Unresolved error code %x", hr); + m_errorString = QString(); + qWarning("DirectShowPlayerService::doSetUrlSource: Unresolved error code %x", uint(hr)); break; } @@ -286,7 +313,8 @@ void DirectShowPlayerService::doSetStreamSource(QMutexLocker *locker) { - IBaseFilter *source = new DirectShowIOSource(m_stream, &m_loop); + DirectShowIOSource *source = new DirectShowIOSource(m_loop); + source->setDevice(m_stream); if (SUCCEEDED(m_graph->AddFilter(source, L"Source"))) { m_executedTasks = SetSource; @@ -308,6 +336,7 @@ m_graphStatus = InvalidMedia; m_error = QMediaPlayer::ResourceError; + m_errorString = QString(); QCoreApplication::postEvent(this, new QEvent(QEvent::Type(Error))); } @@ -315,6 +344,13 @@ void DirectShowPlayerService::doRender(QMutexLocker *locker) { + m_pendingTasks |= m_executedTasks & (Play | Pause); + + if (IMediaControl *control = com_cast(m_graph, IID_IMediaControl)) { + control->Stop(); + control->Release(); + } + if (m_pendingTasks & SetAudioOutput) { m_graph->AddFilter(m_audioOutput, L"AudioOutput"); @@ -354,14 +390,14 @@ IPin *peer = 0; if (pin->ConnectedTo(&peer) == S_OK) { PIN_INFO peerInfo; - if (peer->QueryPinInfo(&peerInfo) == S_OK) + if (SUCCEEDED(peer->QueryPinInfo(&peerInfo))) filters.append(peerInfo.pFilter); peer->Release(); } else { locker->unlock(); HRESULT hr; if (SUCCEEDED(hr = graph->RenderEx( - pin, AM_RENDEREX_RENDERTOEXISTINGRENDERERS, 0))) { + pin, /*AM_RENDEREX_RENDERTOEXISTINGRENDERERS*/ 1, 0))) { rendered = true; } else if (renderHr == S_OK || renderHr == VFW_E_NO_DECOMPRESSOR){ renderHr = hr; @@ -370,13 +406,15 @@ } } } + + pins->Release(); + if (outputs == 0) rendered = true; } filter->Release(); } - if (m_audioOutput && !isConnected(m_audioOutput, PINDIR_INPUT)) { graph->RemoveFilter(m_audioOutput); @@ -402,16 +440,19 @@ if (!m_audioOutput && !m_videoOutput) { m_error = QMediaPlayer::ResourceError; + m_errorString = QString(); } else { switch (renderHr) { case VFW_E_UNSUPPORTED_AUDIO: case VFW_E_UNSUPPORTED_VIDEO: case VFW_E_UNSUPPORTED_STREAM: m_error = QMediaPlayer::FormatError; + m_errorString = QString(); default: m_error = QMediaPlayer::ResourceError; + m_errorString = QString(); qWarning("DirectShowPlayerService::doRender: Unresolved error code %x", - renderHr); + uint(renderHr)); } } @@ -421,17 +462,17 @@ m_executedTasks |= Render; } - m_loop.wake(); + m_loop->wake(); } void DirectShowPlayerService::doFinalizeLoad(QMutexLocker *locker) { if (m_graphStatus != Loaded) { - if (IMediaEvent *event = com_cast(m_graph)) { + if (IMediaEvent *event = com_cast(m_graph, IID_IMediaEvent)) { event->GetEventHandle(reinterpret_cast(&m_eventHandle)); event->Release(); } - if (IMediaSeeking *seeking = com_cast(m_graph)) { + if (IMediaSeeking *seeking = com_cast(m_graph, IID_IMediaSeeking)) { LONGLONG duration = 0; seeking->GetDuration(&duration); m_duration = duration / 10; @@ -461,7 +502,12 @@ { if (m_graph) { if (m_executingTask != 0) { - if (IAMOpenProgress *progress = com_cast(m_graph)) { + // {8E1C39A1-DE53-11cf-AA63-0080C744528D} + static const GUID iid_IAMOpenProgress = { + 0x8E1C39A1, 0xDE53, 0x11cf, {0xAA, 0x63, 0x00, 0x80, 0xC7, 0x44, 0x52, 0x8D} }; + + if (IAMOpenProgress *progress = com_cast( + m_graph, iid_IAMOpenProgress)) { progress->AbortOperation(); progress->Release(); } @@ -472,7 +518,7 @@ ::SetEvent(m_taskHandle); - m_loop.wait(&m_mutex); + m_loop->wait(&m_mutex); } } @@ -480,7 +526,7 @@ { Q_UNUSED(locker); - if (IMediaControl *control = com_cast(m_graph)) { + if (IMediaControl *control = com_cast(m_graph, IID_IMediaControl)) { control->Stop(); control->Release(); } @@ -495,7 +541,7 @@ m_graph->Release(); m_graph = 0; - m_loop.wake(); + m_loop->wake(); } int DirectShowPlayerService::findStreamTypes(IBaseFilter *source) const @@ -595,23 +641,21 @@ void DirectShowPlayerService::doPlay(QMutexLocker *locker) { - if (IMediaControl *control = com_cast(m_graph)) { + if (IMediaControl *control = com_cast(m_graph, IID_IMediaControl)) { locker->unlock(); HRESULT hr = control->Run(); locker->relock(); control->Release(); - if (SUCCEEDED(hr)) - m_executedTasks |= Play; - if (SUCCEEDED(hr)) { m_executedTasks |= Play; QCoreApplication::postEvent(this, new QEvent(QEvent::Type(StatusChange))); } else { m_error = QMediaPlayer::ResourceError; - qWarning("DirectShowPlayerService::doPlay: Unresolved error code %x", hr); + m_errorString = QString(); + qWarning("DirectShowPlayerService::doPlay: Unresolved error code %x", uint(hr)); QCoreApplication::postEvent(this, new QEvent(QEvent::Type(Error))); } @@ -639,7 +683,7 @@ void DirectShowPlayerService::doPause(QMutexLocker *locker) { - if (IMediaControl *control = com_cast(m_graph)) { + if (IMediaControl *control = com_cast(m_graph, IID_IMediaControl)) { locker->unlock(); HRESULT hr = control->Pause(); locker->relock(); @@ -647,12 +691,24 @@ control->Release(); if (SUCCEEDED(hr)) { + if (IMediaSeeking *seeking = com_cast(m_graph, IID_IMediaSeeking)) { + LONGLONG position = 0; + + seeking->GetCurrentPosition(&position); + seeking->Release(); + + m_position = position / 10; + } else { + m_position = 0; + } + m_executedTasks |= Pause; QCoreApplication::postEvent(this, new QEvent(QEvent::Type(StatusChange))); } else { m_error = QMediaPlayer::ResourceError; - qWarning("DirectShowPlayerService::doPause: Unresolved error code %x", hr); + m_errorString = QString(); + qWarning("DirectShowPlayerService::doPause: Unresolved error code %x", uint(hr)); QCoreApplication::postEvent(this, new QEvent(QEvent::Type(Error))); } @@ -665,23 +721,43 @@ m_pendingTasks &= ~(Play | Pause | Seek); - if (m_executedTasks & Render) { - if (m_executingTask & (Play | Pause | Seek)) { - m_pendingTasks |= Stop; + if ((m_executingTask | m_executedTasks) & (Play | Pause | Seek)) { + m_pendingTasks |= Stop; + + ::SetEvent(m_taskHandle); + + m_loop->wait(&m_mutex); + } - m_loop.wait(&m_mutex); +} + +void DirectShowPlayerService::doStop(QMutexLocker *locker) +{ + if (m_executedTasks & (Play | Pause)) { + if (IMediaControl *control = com_cast(m_graph, IID_IMediaControl)) { + control->Stop(); + control->Release(); } - if (m_executedTasks & (Play | Pause)) { - if (IMediaControl *control = com_cast(m_graph)) { - control->Stop(); - control->Release(); - } - m_executedTasks &= ~(Play | Pause); + if (IMediaSeeking *seeking = com_cast(m_graph, IID_IMediaSeeking)) { + LONGLONG position = 0; + + seeking->GetCurrentPosition(&position); + seeking->Release(); + + m_position = position / 10; + } else { + m_position = 0; } + + m_executedTasks &= ~(Play | Pause); + + QCoreApplication::postEvent(this, new QEvent(QEvent::Type(StatusChange))); } m_executedTasks |= Stop; + + m_loop->wake(); } void DirectShowPlayerService::setRate(qreal rate) @@ -698,7 +774,7 @@ void DirectShowPlayerService::doSetRate(QMutexLocker *locker) { - if (IMediaSeeking *seeking = com_cast(m_graph)) { + if (IMediaSeeking *seeking = com_cast(m_graph, IID_IMediaSeeking)) { // Cache current values as we can't query IMediaSeeking during a seek due to the // possibility of a deadlock when flushing the VideoSurfaceFilter. LONGLONG currentPosition = 0; @@ -736,13 +812,15 @@ if (m_graphStatus == Loaded) { if (m_executingTask == Seek || m_executingTask == SetRate) { return m_position; - } else if (IMediaSeeking *seeking = com_cast(m_graph)) { + } else if (IMediaSeeking *seeking = com_cast(m_graph, IID_IMediaSeeking)) { LONGLONG position = 0; seeking->GetCurrentPosition(&position); seeking->Release(); - return position / 10; + const_cast(m_position) = position / 10; + + return m_position; } } return 0; @@ -755,7 +833,7 @@ if (m_graphStatus == Loaded) { if (m_executingTask == Seek || m_executingTask == SetRate) { return m_playbackRange; - } else if (IMediaSeeking *seeking = com_cast(m_graph)) { + } else if (IMediaSeeking *seeking = com_cast(m_graph, IID_IMediaSeeking)) { LONGLONG minimum = 0; LONGLONG maximum = 0; @@ -783,7 +861,7 @@ void DirectShowPlayerService::doSeek(QMutexLocker *locker) { - if (IMediaSeeking *seeking = com_cast(m_graph)) { + if (IMediaSeeking *seeking = com_cast(m_graph, IID_IMediaSeeking)) { LONGLONG seekPosition = LONGLONG(m_position) * 10; // Cache current values as we can't query IMediaSeeking during a seek due to the @@ -803,8 +881,15 @@ &seekPosition, AM_SEEKING_AbsolutePositioning, 0, AM_SEEKING_NoPositioning); locker->relock(); + seeking->GetCurrentPosition(¤tPosition); + m_position = currentPosition / 10; + seeking->Release(); + } else { + m_position = 0; } + + QCoreApplication::postEvent(this, new QEvent(QEvent::Type(PositionChange))); } int DirectShowPlayerService::bufferStatus() const @@ -812,7 +897,8 @@ #ifndef QT_NO_WMSDK QMutexLocker locker(const_cast(&m_mutex)); - if (IWMReaderAdvanced2 *reader = com_cast(m_source)) { + if (IWMReaderAdvanced2 *reader = com_cast( + m_source, IID_IWMReaderAdvanced2)) { DWORD percentage = 0; reader->GetBufferProgress(&percentage, 0); @@ -838,7 +924,7 @@ ::SetEvent(m_taskHandle); - m_loop.wait(&m_mutex); + m_loop->wait(&m_mutex); } m_audioOutput->Release(); } @@ -849,15 +935,15 @@ m_audioOutput->AddRef(); m_pendingTasks |= SetAudioOutput; + + if (m_executedTasks & SetSource) { + m_pendingTasks |= Render; + + ::SetEvent(m_taskHandle); + } } else { m_pendingTasks &= ~ SetAudioOutput; } - - if (m_executedTasks & SetSource) { - m_pendingTasks |= Render; - - ::SetEvent(m_taskHandle); - } } else { if (m_audioOutput) m_audioOutput->Release(); @@ -875,16 +961,33 @@ { m_pendingTasks |= m_executedTasks & (Play | Pause); - if (IMediaControl *control = com_cast(m_graph)) { + if (IMediaControl *control = com_cast(m_graph, IID_IMediaControl)) { control->Stop(); control->Release(); } - m_graph->RemoveFilter(m_audioOutput); + IBaseFilter *decoder = getConnected(m_audioOutput, PINDIR_INPUT); + if (!decoder) { + decoder = m_audioOutput; + decoder->AddRef(); + } + + // {DCFBDCF6-0DC2-45f5-9AB2-7C330EA09C29} + static const GUID iid_IFilterChain = { + 0xDCFBDCF6, 0x0DC2, 0x45f5, {0x9A, 0xB2, 0x7C, 0x33, 0x0E, 0xA0, 0x9C, 0x29} }; + + if (IFilterChain *chain = com_cast(m_graph, iid_IFilterChain)) { + chain->RemoveChain(decoder, m_audioOutput); + chain->Release(); + } else { + m_graph->RemoveFilter(m_audioOutput); + } + + decoder->Release(); m_executedTasks &= ~SetAudioOutput; - m_loop.wake(); + m_loop->wake(); } void DirectShowPlayerService::setVideoOutput(IBaseFilter *filter) @@ -898,7 +1001,7 @@ ::SetEvent(m_taskHandle); - m_loop.wait(&m_mutex); + m_loop->wait(&m_mutex); } m_videoOutput->Release(); } @@ -909,14 +1012,12 @@ m_videoOutput->AddRef(); m_pendingTasks |= SetVideoOutput; - } else { - m_pendingTasks &= ~ SetVideoOutput; - } - if (m_executedTasks & SetSource) { - m_pendingTasks |= Render; + if (m_executedTasks & SetSource) { + m_pendingTasks |= Render; - ::SetEvent(m_taskHandle); + ::SetEvent(m_taskHandle); + } } } else { if (m_videoOutput) @@ -933,16 +1034,40 @@ { m_pendingTasks |= m_executedTasks & (Play | Pause); - if (IMediaControl *control = com_cast(m_graph)) { + if (IMediaControl *control = com_cast(m_graph, IID_IMediaControl)) { control->Stop(); control->Release(); } - m_graph->RemoveFilter(m_videoOutput); + IBaseFilter *intermediate = 0; + if (!SUCCEEDED(m_graph->FindFilterByName(L"Color Space Converter", &intermediate))) { + intermediate = m_videoOutput; + intermediate->AddRef(); + } + + IBaseFilter *decoder = getConnected(intermediate, PINDIR_INPUT); + if (!decoder) { + decoder = intermediate; + decoder->AddRef(); + } + + // {DCFBDCF6-0DC2-45f5-9AB2-7C330EA09C29} + static const GUID iid_IFilterChain = { + 0xDCFBDCF6, 0x0DC2, 0x45f5, {0x9A, 0xB2, 0x7C, 0x33, 0x0E, 0xA0, 0x9C, 0x29} }; + + if (IFilterChain *chain = com_cast(m_graph, iid_IFilterChain)) { + chain->RemoveChain(decoder, m_videoOutput); + chain->Release(); + } else { + m_graph->RemoveFilter(m_videoOutput); + } + + intermediate->Release(); + decoder->Release(); m_executedTasks &= ~SetVideoOutput; - m_loop.wake(); + m_loop->wake(); } void DirectShowPlayerService::customEvent(QEvent *event) @@ -955,18 +1080,14 @@ updateStatus(); } else if (event->type() == QEvent::Type(Error)) { - QMediaPlayer::Error error; - { - QMutexLocker locker(&m_mutex); - error = m_error; + QMutexLocker locker(&m_mutex); - if (error != QMediaPlayer::NoError) { - m_playerControl->updateMediaInfo(m_duration, m_streamTypes, m_seekable); - m_playerControl->updateState(QMediaPlayer::StoppedState); - updateStatus(); - } + if (m_error != QMediaPlayer::NoError) { + m_playerControl->updateError(m_error, m_errorString); + m_playerControl->updateMediaInfo(m_duration, m_streamTypes, m_seekable); + m_playerControl->updateState(QMediaPlayer::StoppedState); + updateStatus(); } - m_playerControl->error(error, QString()); } else if (event->type() == QEvent::Type(RateChange)) { QMutexLocker locker(&m_mutex); @@ -975,6 +1096,7 @@ QMutexLocker locker(&m_mutex); updateStatus(); + m_playerControl->updatePosition(m_position); } else if (event->type() == QEvent::Type(DurationChange)) { QMutexLocker locker(&m_mutex); @@ -985,7 +1107,12 @@ if (m_atEnd) { m_playerControl->updateState(QMediaPlayer::StoppedState); m_playerControl->updateStatus(QMediaPlayer::EndOfMedia); + m_playerControl->updatePosition(m_position); } + } else if (event->type() == QEvent::Type(PositionChange)) { + QMutexLocker locker(&m_mutex); + + m_playerControl->updatePosition(m_position); } else { QMediaService::customEvent(event); } @@ -1011,7 +1138,7 @@ void DirectShowPlayerService::graphEvent(QMutexLocker *locker) { - if (IMediaEvent *event = com_cast(m_graph)) { + if (IMediaEvent *event = com_cast(m_graph, IID_IMediaEvent)) { long eventCode; LONG_PTR param1; LONG_PTR param2; @@ -1030,10 +1157,19 @@ m_buffering = false; m_atEnd = true; + if (IMediaSeeking *seeking = com_cast(m_graph, IID_IMediaSeeking)) { + LONGLONG position = 0; + + seeking->GetCurrentPosition(&position); + seeking->Release(); + + m_position = position / 10; + } + QCoreApplication::postEvent(this, new QEvent(QEvent::Type(EndOfMedia))); break; case EC_LENGTH_CHANGED: - if (IMediaSeeking *seeking = com_cast(m_graph)) { + if (IMediaSeeking *seeking = com_cast(m_graph, IID_IMediaSeeking)) { LONGLONG duration = 0; seeking->GetDuration(&duration); m_duration = duration / 10; @@ -1107,6 +1243,38 @@ return connected; } +IBaseFilter *DirectShowPlayerService::getConnected( + IBaseFilter *filter, PIN_DIRECTION direction) const +{ + IBaseFilter *connected = 0; + + IEnumPins *pins = 0; + + if (SUCCEEDED(filter->EnumPins(&pins))) { + for (IPin *pin = 0; pins->Next(1, &pin, 0) == S_OK; pin->Release()) { + PIN_DIRECTION dir; + if (SUCCEEDED(pin->QueryDirection(&dir)) && dir == direction) { + IPin *peer = 0; + if (SUCCEEDED(pin->ConnectedTo(&peer))) { + PIN_INFO info; + + if (SUCCEEDED(peer->QueryPinInfo(&info))) { + if (connected) { + qWarning("DirectShowPlayerService::getConnected: " + "Multiple connected filters"); + connected->Release(); + } + connected = info.pFilter; + } + peer->Release(); + } + } + } + pins->Release(); + } + return connected; +} + void DirectShowPlayerService::run() { QMutexLocker locker(&m_mutex); @@ -1171,15 +1339,16 @@ m_executingTask = FinalizeLoad; doFinalizeLoad(&locker); + } else if (m_pendingTasks & Stop) { + m_pendingTasks ^= Stop; + m_executingTask = Stop; + + doStop(&locker); } else if (m_pendingTasks & SetRate) { m_pendingTasks ^= SetRate; m_executingTask = SetRate; doSetRate(&locker); - } else if (m_pendingTasks & Stop) { - m_pendingTasks ^= Stop; - - m_loop.wake(); } else if (m_pendingTasks & Pause) { m_pendingTasks ^= Pause; m_executingTask = Pause; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowplayerservice.h --- a/qtmobility/plugins/multimedia/directshow/player/directshowplayerservice.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowplayerservice.h Mon May 03 13:18:40 2010 +0300 @@ -42,10 +42,10 @@ #ifndef DIRECTSHOWPLAYERSERVICE_H #define DIRECTSHOWPLAYERSERVICE_H -#include -#include -#include -#include +#include "../../src/multimedia/qmediaplayer.h" +#include "../../src/multimedia/qmediaresource.h" +#include "../../src/multimedia/qmediaservice.h" +#include "../../src/multimedia/qmediatimerange.h" #include "directshoweventloop.h" #include "directshowglobal.h" @@ -113,6 +113,7 @@ int findStreamType(IPin *pin) const; bool isConnected(IBaseFilter *filter, PIN_DIRECTION direction) const; + IBaseFilter *getConnected(IBaseFilter *filter, PIN_DIRECTION direction) const; void run(); @@ -124,6 +125,7 @@ void doSeek(QMutexLocker *locker); void doPlay(QMutexLocker *locker); void doPause(QMutexLocker *locker); + void doStop(QMutexLocker *locker); void doReleaseAudioOutput(QMutexLocker *locker); void doReleaseVideoOutput(QMutexLocker *locker); void doReleaseGraph(QMutexLocker *locker); @@ -161,7 +163,8 @@ Paused, DurationChange, StatusChange, - EndOfMedia + EndOfMedia, + PositionChange }; enum GraphStatus @@ -180,6 +183,7 @@ DirectShowAudioEndpointControl *m_audioEndpointControl; QThread *m_taskThread; + DirectShowEventLoop *m_loop; int m_pendingTasks; int m_executingTask; int m_executedTasks; @@ -202,8 +206,8 @@ QMediaTimeRange m_playbackRange; QUrl m_url; QMediaResourceList m_resources; + QString m_errorString; QMutex m_mutex; - DirectShowEventLoop m_loop; friend class DirectShowPlayerServiceThread; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowsamplescheduler.cpp --- a/qtmobility/plugins/multimedia/directshow/player/directshowsamplescheduler.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowsamplescheduler.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,7 @@ #include "directshowsamplescheduler.h" +#include #include class DirectShowTimedSample @@ -115,28 +116,25 @@ } DirectShowSampleScheduler::DirectShowSampleScheduler(IUnknown *pin, QObject *parent) - : QWinEventNotifier(parent) + : QObject(parent) , m_pin(pin) , m_clock(0) , m_allocator(0) , m_head(0) , m_tail(0) - , m_maximumSamples(2) + , m_maximumSamples(1) , m_state(Stopped) , m_startTime(0) , m_timeoutEvent(::CreateEvent(0, 0, 0, 0)) + , m_flushEvent(::CreateEvent(0, 0, 0, 0)) { m_semaphore.release(m_maximumSamples); - - setHandle(m_timeoutEvent); - setEnabled(true); } DirectShowSampleScheduler::~DirectShowSampleScheduler() { - setEnabled(false); - ::CloseHandle(m_timeoutEvent); + ::CloseHandle(m_flushEvent); Q_ASSERT(!m_clock); Q_ASSERT(!m_allocator); @@ -252,11 +250,28 @@ if (m_state == Running) { if (!timedSample->schedule(m_clock, m_startTime, m_timeoutEvent)) { // Timing information is unavailable, so schedule frames immediately. - QMetaObject::invokeMethod(this, "timerActivated", Qt::QueuedConnection); + QCoreApplication::postEvent(this, new QEvent(QEvent::UpdateRequest)); + } else { + locker.unlock(); + HANDLE handles[] = { m_flushEvent, m_timeoutEvent }; + DWORD result = ::WaitForMultipleObjects(2, handles, FALSE, INFINITE); + locker.relock(); + + if (result == WAIT_OBJECT_0 + 1) + QCoreApplication::postEvent(this, new QEvent(QEvent::UpdateRequest)); } } else if (m_tail == m_head) { - // If this is the first frame make is available. - QMetaObject::invokeMethod(this, "timerActivated", Qt::QueuedConnection); + // If this is the first frame make it available. + QCoreApplication::postEvent(this, new QEvent(QEvent::UpdateRequest)); + + if (m_state == Paused) { + ::ResetEvent(m_timeoutEvent); + + locker.unlock(); + HANDLE handles[] = { m_flushEvent, m_timeoutEvent }; + ::WaitForMultipleObjects(2, handles, FALSE, INFINITE); + locker.relock(); + } } return S_OK; @@ -293,6 +308,13 @@ for (DirectShowTimedSample *sample = m_head; sample; sample = sample->nextSample()) { sample->schedule(m_clock, m_startTime, m_timeoutEvent); } + + if (!(m_state & Flushing)) + ::ResetEvent(m_flushEvent); + + if (!m_head) + ::SetEvent(m_timeoutEvent); + } void DirectShowSampleScheduler::pause() @@ -303,6 +325,9 @@ for (DirectShowTimedSample *sample = m_head; sample; sample = sample->nextSample()) sample->unschedule(m_clock); + + if (!(m_state & Flushing)) + ::ResetEvent(m_flushEvent); } void DirectShowSampleScheduler::stop() @@ -319,6 +344,8 @@ m_head = 0; m_tail = 0; + + ::SetEvent(m_flushEvent); } void DirectShowSampleScheduler::setFlushing(bool flushing) @@ -338,8 +365,13 @@ } m_head = 0; m_tail = 0; + + ::SetEvent(m_flushEvent); } else { m_state &= ~Flushing; + + if (m_state != Stopped) + ::ResetEvent(m_flushEvent); } } } @@ -365,16 +397,14 @@ IMediaSample *sample = m_head->sample(); sample->AddRef(); - if (m_state == Running) { - *eos = m_head->isLast(); + *eos = m_head->isLast(); - m_head = m_head->remove(); + m_head = m_head->remove(); - if (!m_head) - m_tail = 0; + if (!m_head) + m_tail = 0; - m_semaphore.release(1); - } + m_semaphore.release(1); return sample; } else { @@ -397,13 +427,11 @@ bool DirectShowSampleScheduler::event(QEvent *event) { - if (event->type() == QEvent::WinEventAct) { - QObject::event(event); - + if (event->type() == QEvent::UpdateRequest) { emit sampleReady(); return true; } else { - return QWinEventNotifier::event(event); + return QObject::event(event); } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowsamplescheduler.h --- a/qtmobility/plugins/multimedia/directshow/player/directshowsamplescheduler.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowsamplescheduler.h Mon May 03 13:18:40 2010 +0300 @@ -46,13 +46,11 @@ #include #include -#include - #include class DirectShowTimedSample; -class DirectShowSampleScheduler : public QWinEventNotifier, public IMemInputPin +class DirectShowSampleScheduler : public QObject, public IMemInputPin { Q_OBJECT public: @@ -111,6 +109,7 @@ int m_state; REFERENCE_TIME m_startTime; HANDLE m_timeoutEvent; + HANDLE m_flushEvent; QSemaphore m_semaphore; QMutex m_mutex; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowvideooutputcontrol.h --- a/qtmobility/plugins/multimedia/directshow/player/directshowvideooutputcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowvideooutputcontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef DIRECTSHOWVIDEOUTPUTCONTROL_H #define DIRECTSHOWVIDEOOUPUTCONTROL_H -#include +#include "../../src/multimedia/qvideooutputcontrol.h" QTM_USE_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/directshowvideorenderercontrol.h --- a/qtmobility/plugins/multimedia/directshow/player/directshowvideorenderercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/directshowvideorenderercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef DIRECTSHOWVIDEORENDERERCONTROL_H #define DIRECTSHOWVIDEORENDERERCONTROL_H -#include +#include "../../src/multimedia/qvideorenderercontrol.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/player.pri --- a/qtmobility/plugins/multimedia/directshow/player/player.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/player.pri Mon May 03 13:18:40 2010 +0300 @@ -2,8 +2,6 @@ DEFINES += QMEDIA_DIRECTSHOW_PLAYER -win32-g++: DEFINES += QT_NO_WMSDK - HEADERS += \ $$PWD\directshowaudioendpointcontrol.h \ $$PWD\directshoweventloop.h \ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/videosurfacefilter.cpp --- a/qtmobility/plugins/multimedia/directshow/player/videosurfacefilter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/videosurfacefilter.cpp Mon May 03 13:18:40 2010 +0300 @@ -81,7 +81,11 @@ } HRESULT VideoSurfaceFilter::QueryInterface(REFIID riid, void **ppvObject) -{ +{ + // 2dd74950-a890-11d1-abe8-00a0c905f375 + static const GUID iid_IAmFilterMiscFlags = { + 0x2dd74950, 0xa890, 0x11d1, {0xab, 0xe8, 0x00, 0xa0, 0xc9, 0x05, 0xf3, 0x75} }; + if (!ppvObject) { return E_POINTER; } else if (riid == IID_IUnknown @@ -89,7 +93,7 @@ || riid == IID_IMediaFilter || riid == IID_IBaseFilter) { *ppvObject = static_cast(this); - } else if (riid == IID_IAMFilterMiscFlags) { + } else if (riid == iid_IAmFilterMiscFlags) { *ppvObject = static_cast(this); } else if (riid == IID_IPin) { *ppvObject = static_cast(this); @@ -443,7 +447,7 @@ QMutexLocker locker(&m_mutex); if (!m_sampleScheduler.scheduleEndOfStream()) { - if (IMediaEventSink *sink = com_cast(m_graph)) { + if (IMediaEventSink *sink = com_cast(m_graph, IID_IMediaEventSink)) { sink->Notify( EC_COMPLETE, S_OK, @@ -567,6 +571,10 @@ { QMutexLocker locker(&m_mutex); + // MEDIASUBTYPE_None; + static const GUID none = { + 0xe436eb8e, 0x524f, 0x11ce, {0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70} }; + QList formats = m_surface->supportedPixelFormats(); QVector mediaTypes; @@ -585,7 +593,7 @@ foreach (QVideoFrame::PixelFormat format, formats) { type.subtype = DirectShowMediaType::convertPixelFormat(format); - if (type.subtype != MEDIASUBTYPE_None) + if (type.subtype != none) mediaTypes.append(type); } @@ -607,7 +615,7 @@ sample->Release(); if (eos) { - if (IMediaEventSink *sink = com_cast(m_graph)) { + if (IMediaEventSink *sink = com_cast(m_graph, IID_IMediaEventSink)) { sink->Notify( EC_COMPLETE, S_OK, diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/videosurfacefilter.h --- a/qtmobility/plugins/multimedia/directshow/player/videosurfacefilter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/videosurfacefilter.h Mon May 03 13:18:40 2010 +0300 @@ -42,6 +42,7 @@ #ifndef VIDEOSURFACEFILTER_H #define VIDEOSURFACEFILTER_H +#include "directshowglobal.h" #include "directshowmediatypelist.h" #include "directshowsamplescheduler.h" #include "directshowmediatype.h" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/vmr9videowindowcontrol.cpp --- a/qtmobility/plugins/multimedia/directshow/player/vmr9videowindowcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/vmr9videowindowcontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,18 +45,20 @@ Vmr9VideoWindowControl::Vmr9VideoWindowControl(QObject *parent) : QVideoWindowControl(parent) - , m_filter(com_new(CLSID_VideoMixingRenderer9)) + , m_filter(com_new(CLSID_VideoMixingRenderer9, IID_IBaseFilter)) , m_windowId(0) , m_dirtyValues(0) + , m_aspectRatioMode(Qt::KeepAspectRatio) , m_brightness(0) , m_contrast(0) , m_hue(0) , m_saturation(0) , m_fullScreen(false) { - if (IVMRFilterConfig9 *config = com_cast(m_filter)) { + if (IVMRFilterConfig9 *config = com_cast(m_filter, IID_IVMRFilterConfig9)) { config->SetRenderingMode(VMR9Mode_Windowless); config->SetNumberOfStreams(1); + config->SetRenderingPrefs(RenderPrefs9_DoNotRenderBorder); config->Release(); } } @@ -78,7 +80,8 @@ { m_windowId = id; - if (IVMRWindowlessControl9 *control = com_cast(m_filter)) { + if (IVMRWindowlessControl9 *control = com_cast( + m_filter, IID_IVMRWindowlessControl9)) { control->SetVideoClippingWindow(m_windowId); control->Release(); } @@ -86,31 +89,30 @@ QRect Vmr9VideoWindowControl::displayRect() const { - QRect rect; - - if (IVMRWindowlessControl9 *control = com_cast(m_filter)) { - RECT sourceRect; - RECT displayRect; - - if (control->GetVideoPosition(&sourceRect, &displayRect) == S_OK) { - rect = QRect( - displayRect.left, - displayRect.bottom, - displayRect.right - displayRect.left, - displayRect.bottom - displayRect.top); - } - control->Release(); - } - return rect; + return m_displayRect; } void Vmr9VideoWindowControl::setDisplayRect(const QRect &rect) { - if (IVMRWindowlessControl9 *control = com_cast(m_filter)) { + m_displayRect = rect; + + if (IVMRWindowlessControl9 *control = com_cast( + m_filter, IID_IVMRWindowlessControl9)) { RECT sourceRect = { 0, 0, 0, 0 }; RECT displayRect = { rect.left(), rect.top(), rect.right(), rect.bottom() }; control->GetNativeVideoSize(&sourceRect.right, &sourceRect.bottom, 0, 0); + + if (m_aspectRatioMode == Qt::KeepAspectRatioByExpanding) { + QSize clippedSize = rect.size(); + clippedSize.scale(sourceRect.right, sourceRect.bottom, Qt::KeepAspectRatio); + + sourceRect.left = (sourceRect.right - clippedSize.width()) / 2; + sourceRect.top = (sourceRect.bottom - clippedSize.height()) / 2; + sourceRect.right = sourceRect.left + clippedSize.width(); + sourceRect.bottom = sourceRect.top + clippedSize.height(); + } + control->SetVideoPosition(&sourceRect, &displayRect); control->Release(); } @@ -128,10 +130,10 @@ void Vmr9VideoWindowControl::repaint() { - if (QWidget *widget = QWidget::find(m_windowId)) { HDC dc = widget->getDC(); - if (IVMRWindowlessControl9 *control = com_cast(m_filter)) { + if (IVMRWindowlessControl9 *control = com_cast( + m_filter, IID_IVMRWindowlessControl9)) { control->RepaintVideo(m_windowId, dc); control->Release(); } @@ -143,7 +145,8 @@ { QSize size; - if (IVMRWindowlessControl9 *control = com_cast(m_filter)) { + if (IVMRWindowlessControl9 *control = com_cast( + m_filter, IID_IVMRWindowlessControl9)) { LONG width; LONG height; @@ -154,30 +157,28 @@ return size; } -QVideoWidget::AspectRatioMode Vmr9VideoWindowControl::aspectRatioMode() const +Qt::AspectRatioMode Vmr9VideoWindowControl::aspectRatioMode() const { - QVideoWidget::AspectRatioMode mode = QVideoWidget::KeepAspectRatio; - - if (IVMRWindowlessControl9 *control = com_cast(m_filter)) { - DWORD arMode; - - if (control->GetAspectRatioMode(&arMode) == S_OK && arMode == VMR9ARMode_None) - mode = QVideoWidget::IgnoreAspectRatio; - control->Release(); - } - return mode; + return m_aspectRatioMode; } -void Vmr9VideoWindowControl::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void Vmr9VideoWindowControl::setAspectRatioMode(Qt::AspectRatioMode mode) { - if (IVMRWindowlessControl9 *control = com_cast(m_filter)) { + m_aspectRatioMode = mode; + + if (IVMRWindowlessControl9 *control = com_cast( + m_filter, IID_IVMRWindowlessControl9)) { switch (mode) { - case QVideoWidget::IgnoreAspectRatio: + case Qt::IgnoreAspectRatio: control->SetAspectRatioMode(VMR9ARMode_None); break; - case QVideoWidget::KeepAspectRatio: + case Qt::KeepAspectRatio: control->SetAspectRatioMode(VMR9ARMode_LetterBox); break; + case Qt::KeepAspectRatioByExpanding: + control->SetAspectRatioMode(VMR9ARMode_LetterBox); + setDisplayRect(m_displayRect); + break; default: break; } @@ -251,7 +252,7 @@ void Vmr9VideoWindowControl::setProcAmpValues() { - if (IVMRMixerControl9 *control = com_cast(m_filter)) { + if (IVMRMixerControl9 *control = com_cast(m_filter, IID_IVMRMixerControl9)) { VMR9ProcAmpControl procAmp; procAmp.dwSize = sizeof(VMR9ProcAmpControl); procAmp.dwFlags = m_dirtyValues; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/directshow/player/vmr9videowindowcontrol.h --- a/qtmobility/plugins/multimedia/directshow/player/vmr9videowindowcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/directshow/player/vmr9videowindowcontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef VMR9VIDEOWINDOWCONTROL_H #define VMR9VIDEOWINDOWCONTROL_H -#include +#include "../../src/multimedia/qvideowindowcontrol.h" #include #include @@ -72,8 +72,8 @@ QSize nativeSize() const; - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); int brightness() const; void setBrightness(int brightness); @@ -95,6 +95,8 @@ IBaseFilter *m_filter; WId m_windowId; DWORD m_dirtyValues; + Qt::AspectRatioMode m_aspectRatioMode; + QRect m_displayRect; int m_brightness; int m_contrast; int m_hue; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/gstreamer.pro --- a/qtmobility/plugins/multimedia/gstreamer/gstreamer.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/gstreamer.pro Mon May 03 13:18:40 2010 +0300 @@ -26,6 +26,10 @@ gstreamer-audio-0.10 \ gstreamer-video-0.10 +maemo* { + PKGCONFIG +=gstreamer-plugins-bad-0.10 +} + # Input HEADERS += \ qgstreamermessage.h \ @@ -71,7 +75,12 @@ } include(mediaplayer/mediaplayer.pri) -include(mediacapture/mediacapture.pri) +!maemo* { + include(mediacapture/mediacapture.pri) +} else { + include(mediacapture/maemo/mediacapture_maemo.pri) + DEFINES += GST_USE_UNSTABLE_API #prevents warnings because of unstable photography API +} target.path=$$QT_MOBILITY_PREFIX/plugins/mediaservice INSTALLS+=target diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/mediacapture_maemo.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/mediacapture_maemo.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,21 @@ +INCLUDEPATH += $$PWD + +DEFINES += QMEDIA_GSTREAMER_CAPTURE + +HEADERS += $$PWD\qgstreamercaptureservice_maemo.h \ + $$PWD\qgstreamercapturesession_maemo.h \ + $$PWD\qgstreameraudioencode_maemo.h \ + $$PWD\qgstreamervideoencode_maemo.h \ + $$PWD\qgstreamerrecordercontrol_maemo.h \ + $$PWD\qgstreamermediacontainercontrol_maemo.h \ + $$PWD\qgstreamercapturemetadatacontrol_maemo.h + + +SOURCES += $$PWD\qgstreamercaptureservice_maemo.cpp \ + $$PWD\qgstreamercapturesession_maemo.cpp \ + $$PWD\qgstreameraudioencode_maemo.cpp \ + $$PWD\qgstreamervideoencode_maemo.cpp \ + $$PWD\qgstreamerrecordercontrol_maemo.cpp \ + $$PWD\qgstreamermediacontainercontrol_maemo.cpp \ + $$PWD\qgstreamercapturemetadatacontrol_maemo.cpp + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreameraudioencode_maemo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreameraudioencode_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,249 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgstreameraudioencode_maemo.h" +#include "qgstreamermediacontainercontrol_maemo.h" + +#include + +QGstreamerAudioEncode::QGstreamerAudioEncode(QObject *parent) + :QAudioEncoderControl(parent) +{ + QList codecCandidates; + codecCandidates << "audio/mpeg" << "audio/PCM" << "audio/AMR" << "audio/AMR-WB" << "audio/speex"; + + m_elementNames["audio/mpeg"] = "nokiaaacenc"; + m_elementNames["audio/speex"] = "speexenc"; + m_elementNames["audio/PCM"] = "audioresample"; + m_elementNames["audio/AMR"] = "nokiaamrnbenc"; + m_elementNames["audio/AMR-WB"] = "nokiaamrwbenc"; + + foreach( const QByteArray& codecName, codecCandidates ) { + QByteArray elementName = m_elementNames[codecName]; + GstElementFactory *factory = gst_element_factory_find(elementName.constData()); + + if (factory) { + m_codecs.append(codecName); + const gchar *descr = gst_element_factory_get_description(factory); + + if (codecName == QByteArray("audio/PCM")) + m_codecDescriptions.insert(codecName, tr("Raw PCM audio")); + else + m_codecDescriptions.insert(codecName, QString::fromUtf8(descr)); + + m_streamTypes.insert(codecName, + QGstreamerMediaContainerControl::supportedStreamTypes(factory, GST_PAD_SRC)); + + gst_object_unref(GST_OBJECT(factory)); + } + } + + if (!m_codecs.isEmpty()) + m_audioSettings.setCodec(m_codecs[0]); +} + +QGstreamerAudioEncode::~QGstreamerAudioEncode() +{ +} + +QStringList QGstreamerAudioEncode::supportedAudioCodecs() const +{ + return m_codecs; +} + +QString QGstreamerAudioEncode::codecDescription(const QString &codecName) const +{ + return m_codecDescriptions.value(codecName); +} + +QStringList QGstreamerAudioEncode::supportedEncodingOptions(const QString &codec) const +{ + return m_codecOptions.value(codec); +} + +QVariant QGstreamerAudioEncode::encodingOption( + const QString &codec, const QString &name) const +{ + return m_options[codec].value(name); +} + +void QGstreamerAudioEncode::setEncodingOption( + const QString &codec, const QString &name, const QVariant &value) +{ + m_options[codec][name] = value; +} + +QList QGstreamerAudioEncode::supportedSampleRates(const QAudioEncoderSettings &, bool *) const +{ + //TODO check element caps to find actual values + + return QList(); +} + +QAudioEncoderSettings QGstreamerAudioEncode::audioSettings() const +{ + return m_audioSettings; +} + +void QGstreamerAudioEncode::setAudioSettings(const QAudioEncoderSettings &settings) +{ + m_audioSettings = settings; +} + +GstElement *QGstreamerAudioEncode::createEncoder() +{ + QString codec = m_audioSettings.codec(); + + GstBin * encoderBin = GST_BIN(gst_bin_new("audio-encoder-bin")); + Q_ASSERT(encoderBin); + + GstElement *capsFilter = gst_element_factory_make("capsfilter", NULL); + GstElement *encoderElement = gst_element_factory_make(m_elementNames.value(codec).constData(), NULL); + + Q_ASSERT(encoderElement); + + gst_bin_add(encoderBin, capsFilter); + gst_bin_add(encoderBin, encoderElement); + gst_element_link(capsFilter, encoderElement); + + // add ghostpads + GstPad *pad = gst_element_get_static_pad(capsFilter, "sink"); + gst_element_add_pad(GST_ELEMENT(encoderBin), gst_ghost_pad_new("sink", pad)); + gst_object_unref(GST_OBJECT(pad)); + + pad = gst_element_get_static_pad(encoderElement, "src"); + gst_element_add_pad(GST_ELEMENT(encoderBin), gst_ghost_pad_new("src", pad)); + gst_object_unref(GST_OBJECT(pad)); + + if (m_audioSettings.sampleRate() > 0 || m_audioSettings.channelCount() > 0) { + GstCaps *caps = gst_caps_new_empty(); + GstStructure *structure = gst_structure_new("audio/x-raw-int", NULL); + + if (m_audioSettings.sampleRate() > 0) + gst_structure_set(structure, "rate", G_TYPE_INT, m_audioSettings.sampleRate(), NULL ); + + if (m_audioSettings.channelCount() > 0) + gst_structure_set(structure, "channels", G_TYPE_INT, m_audioSettings.channelCount(), NULL ); + + gst_caps_append_structure(caps,structure); + + g_object_set(G_OBJECT(capsFilter), "caps", caps, NULL); + } + + if (encoderElement) { + if (m_audioSettings.encodingMode() == QtMedia::ConstantQualityEncoding) { + QtMedia::EncodingQuality qualityValue = m_audioSettings.quality(); + + if (codec == QLatin1String("audio/mpeg")) { + g_object_set(G_OBJECT(encoderElement), "target", 0, NULL); //constant quality mode + qreal quality[] = { + 8000, //VeryLow + 64000, //Low + 128000, //Normal + 192000, //High + 320000 //VeryHigh + }; + g_object_set(G_OBJECT(encoderElement), "bitrate", quality[qualityValue], NULL); + } else if (codec == QLatin1String("audio/speex")) { + //0-10 range with default 8 + double qualityTable[] = { + 2, //VeryLow + 5, //Low + 8, //Normal + 9, //High + 10 //VeryHigh + }; + g_object_set(G_OBJECT(encoderElement), "quality", qualityTable[qualityValue], NULL); + } else if (codec.startsWith("audio/AMR")) { + int band[] = { + 0, //VeryLow + 2, //Low + 4, //Normal + 6, //High + 7 //VeryHigh + }; + + g_object_set(G_OBJECT(encoderElement), "band-mode", band[qualityValue], NULL); + } + } else { + int bitrate = m_audioSettings.bitRate(); + if (bitrate > 0) { + g_object_set(G_OBJECT(encoderElement), "bitrate", bitrate, NULL); + } + } + + QMap options = m_options.value(codec); + QMapIterator it(options); + while (it.hasNext()) { + it.next(); + QString option = it.key(); + QVariant value = it.value(); + + switch (value.type()) { + case QVariant::Int: + g_object_set(G_OBJECT(encoderElement), option.toAscii(), value.toInt(), NULL); + break; + case QVariant::Bool: + g_object_set(G_OBJECT(encoderElement), option.toAscii(), value.toBool(), NULL); + break; + case QVariant::Double: + g_object_set(G_OBJECT(encoderElement), option.toAscii(), value.toDouble(), NULL); + break; + case QVariant::String: + g_object_set(G_OBJECT(encoderElement), option.toAscii(), value.toString().toUtf8().constData(), NULL); + break; + default: + qWarning() << "unsupported option type:" << option << value; + break; + } + + } + } + + return GST_ELEMENT(encoderBin); + +} + + +QSet QGstreamerAudioEncode::supportedStreamTypes(const QString &codecName) const +{ + return m_streamTypes.value(codecName); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreameraudioencode_maemo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreameraudioencode_maemo.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,97 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGSTREAMERAUDIOENCODE_H +#define QGSTREAMERAUDIOENCODE_H + +#include +class QGstreamerCaptureSession; + +#include +#include +#include + +#include + +#include + +QTM_USE_NAMESPACE + +class QGstreamerAudioEncode : public QAudioEncoderControl +{ + Q_OBJECT +public: + QGstreamerAudioEncode(QObject *parent); + virtual ~QGstreamerAudioEncode(); + + QStringList supportedAudioCodecs() const; + QString codecDescription(const QString &codecName) const; + + QStringList supportedEncodingOptions(const QString &codec) const; + QVariant encodingOption(const QString &codec, const QString &name) const; + void setEncodingOption(const QString &codec, const QString &name, const QVariant &value); + + QList supportedSampleRates(const QAudioEncoderSettings &settings = QAudioEncoderSettings(), + bool *isContinuous = 0) const; + QList supportedChannelCounts(const QAudioEncoderSettings &settings = QAudioEncoderSettings()) const; + QList supportedSampleSizes(const QAudioEncoderSettings &settings = QAudioEncoderSettings()) const; + + QAudioEncoderSettings audioSettings() const; + void setAudioSettings(const QAudioEncoderSettings&); + + GstElement *createEncoder(); + + QSet supportedStreamTypes(const QString &codecName) const; + +private: + QStringList m_codecs; + QMap m_elementNames; + QMap m_codecDescriptions; + QMap m_codecOptions; + + QMap > m_options; + + QMap > m_streamTypes; + + QAudioEncoderSettings m_audioSettings; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercapturemetadatacontrol_maemo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercapturemetadatacontrol_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,198 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgstreamercapturemetadatacontrol_maemo.h" + +#include +#include + +struct QGstreamerMetaDataKeyLookup +{ + QtMedia::MetaData key; + const char *token; +}; + +static const QGstreamerMetaDataKeyLookup qt_gstreamerMetaDataKeys[] = +{ + { QtMedia::Title, GST_TAG_TITLE }, + //{ QtMedia::SubTitle, 0 }, + //{ QtMedia::Author, 0 }, + { QtMedia::Comment, GST_TAG_COMMENT }, + { QtMedia::Description, GST_TAG_DESCRIPTION }, + //{ QtMedia::Category, 0 }, + { QtMedia::Genre, GST_TAG_GENRE }, + //{ QtMedia::Year, 0 }, + //{ QtMedia::UserRating, 0 }, + + { QtMedia::Language, GST_TAG_LANGUAGE_CODE }, + + { QtMedia::Publisher, GST_TAG_ORGANIZATION }, + { QtMedia::Copyright, GST_TAG_COPYRIGHT }, + //{ QtMedia::ParentalRating, 0 }, + //{ QtMedia::RatingOrganisation, 0 }, + + // Media + //{ QtMedia::Size, 0 }, + //{ QtMedia::MediaType, 0 }, + { QtMedia::Duration, GST_TAG_DURATION }, + + // Audio + { QtMedia::AudioBitRate, GST_TAG_BITRATE }, + { QtMedia::AudioCodec, GST_TAG_AUDIO_CODEC }, + //{ QtMedia::ChannelCount, 0 }, + //{ QtMedia::SampleRate, 0 }, + + // Music + { QtMedia::AlbumTitle, GST_TAG_ALBUM }, + { QtMedia::AlbumArtist, GST_TAG_ARTIST}, + { QtMedia::ContributingArtist, GST_TAG_PERFORMER }, +#if (GST_VERSION_MAJOR >= 0) && (GST_VERSION_MINOR >= 10) && (GST_VERSION_MICRO >= 19) + { QtMedia::Composer, GST_TAG_COMPOSER }, +#endif + //{ QtMedia::Conductor, 0 }, + //{ QtMedia::Lyrics, 0 }, + //{ QtMedia::Mood, 0 }, + { QtMedia::TrackNumber, GST_TAG_TRACK_NUMBER }, + + //{ QtMedia::CoverArtUrlSmall, 0 }, + //{ QtMedia::CoverArtUrlLarge, 0 }, + + // Image/Video + //{ QtMedia::Resolution, 0 }, + //{ QtMedia::PixelAspectRatio, 0 }, + + // Video + //{ QtMedia::VideoFrameRate, 0 }, + //{ QtMedia::VideoBitRate, 0 }, + { QtMedia::VideoCodec, GST_TAG_VIDEO_CODEC }, + + //{ QtMedia::PosterUrl, 0 }, + + // Movie + //{ QtMedia::ChapterNumber, 0 }, + //{ QtMedia::Director, 0 }, + { QtMedia::LeadPerformer, GST_TAG_PERFORMER }, + //{ QtMedia::Writer, 0 }, + + // Photos + //{ QtMedia::CameraManufacturer, 0 }, + //{ QtMedia::CameraModel, 0 }, + //{ QtMedia::Event, 0 }, + //{ QtMedia::Subject, 0 } +}; + +QGstreamerCaptureMetaDataControl::QGstreamerCaptureMetaDataControl(QObject *parent) + :QMetaDataControl(parent) +{ +} + +QVariant QGstreamerCaptureMetaDataControl::metaData(QtMedia::MetaData key) const +{ + static const int count = sizeof(qt_gstreamerMetaDataKeys) / sizeof(QGstreamerMetaDataKeyLookup); + + for (int i = 0; i < count; ++i) { + if (qt_gstreamerMetaDataKeys[i].key == key) { + const char *name = qt_gstreamerMetaDataKeys[i].token; + + return m_values.value(QByteArray::fromRawData(name, qstrlen(name))); + } + } + return QVariant(); +} + +void QGstreamerCaptureMetaDataControl::setMetaData(QtMedia::MetaData key, const QVariant &value) +{ + static const int count = sizeof(qt_gstreamerMetaDataKeys) / sizeof(QGstreamerMetaDataKeyLookup); + + for (int i = 0; i < count; ++i) { + if (qt_gstreamerMetaDataKeys[i].key == key) { + const char *name = qt_gstreamerMetaDataKeys[i].token; + + m_values.insert(QByteArray::fromRawData(name, qstrlen(name)), value); + + emit QMetaDataControl::metaDataChanged(); + emit metaDataChanged(m_values); + + return; + } + } +} + +QList QGstreamerCaptureMetaDataControl::availableMetaData() const +{ + static QMap keysMap; + if (keysMap.isEmpty()) { + const int count = sizeof(qt_gstreamerMetaDataKeys) / sizeof(QGstreamerMetaDataKeyLookup); + for (int i = 0; i < count; ++i) { + keysMap[QByteArray(qt_gstreamerMetaDataKeys[i].token)] = qt_gstreamerMetaDataKeys[i].key; + } + } + + QList res; + foreach (const QByteArray &key, m_values.keys()) { + QtMedia::MetaData tag = keysMap.value(key, QtMedia::MetaData(-1)); + if (tag != -1) + res.append(tag); + } + + return res; +} + +QVariant QGstreamerCaptureMetaDataControl::extendedMetaData(QString const &name) const +{ + return m_values.value(name.toLatin1()); +} + +void QGstreamerCaptureMetaDataControl::setExtendedMetaData(QString const &name, QVariant const &value) +{ + m_values.insert(name.toLatin1(), value); + emit QMetaDataControl::metaDataChanged(); + emit metaDataChanged(m_values); +} + +QStringList QGstreamerCaptureMetaDataControl::availableExtendedMetaData() const +{ + QStringList res; + foreach (const QByteArray &key, m_values.keys()) + res.append(QString(key)); + + return res; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercapturemetadatacontrol_maemo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercapturemetadatacontrol_maemo.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,75 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGSTREAMERCAPTUREMETADATACONTROL_H +#define QGSTREAMERCAPTUREMETADATACONTROL_H + +#include + +QTM_USE_NAMESPACE + +class QGstreamerCaptureMetaDataControl : public QMetaDataControl +{ + Q_OBJECT +public: + QGstreamerCaptureMetaDataControl(QObject *parent); + virtual ~QGstreamerCaptureMetaDataControl() {}; + + + bool isMetaDataAvailable() const { return true; } + bool isWritable() const { return true; } + + QVariant metaData(QtMedia::MetaData key) const; + void setMetaData(QtMedia::MetaData key, const QVariant &value); + QList availableMetaData() const; + + QVariant extendedMetaData(QString const &name) const; + void setExtendedMetaData(QString const &name, QVariant const &value); + QStringList availableExtendedMetaData() const; + +Q_SIGNALS: + void metaDataChanged(const QMap&); + +private: + QMap m_values; +}; + +#endif // QGSTREAMERCAPTUREMETADATACONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercaptureservice_maemo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercaptureservice_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,264 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgstreamercaptureservice_maemo.h" +#include "qgstreamercapturesession_maemo.h" +#include "qgstreamerrecordercontrol_maemo.h" +#include "qgstreamermediacontainercontrol_maemo.h" +#include "qgstreameraudioencode_maemo.h" +#include "qgstreamervideoencode_maemo.h" +#include "qgstreamerbushelper.h" +#include "qgstreamercapturemetadatacontrol_maemo.h" + +#include "qgstreamervideooutputcontrol.h" +#include "qgstreameraudioinputendpointselector.h" +#include "qgstreamervideoinputdevicecontrol.h" + +#include "qgstreamervideooverlay.h" +#include "qgstreamervideorenderer.h" + +#include "qgstreamervideowidget.h" + +#include + +#include + +class QGstreamerVideoRendererWrapper : public QGstreamerElementFactory +{ +public: + QGstreamerVideoRendererWrapper(QGstreamerVideoRendererInterface *videoRenderer) + :m_videoRenderer(videoRenderer), + m_bin(0), + m_element(0), + m_colorspace(0) + { + } + + virtual ~QGstreamerVideoRendererWrapper() + { + if (m_bin) + gst_object_unref(GST_OBJECT(m_bin)); + } + + GstElement *buildElement() + { +#ifdef Q_WS_MAEMO_5 + return m_element = m_videoRenderer->videoSink(); +#endif + if (m_bin == NULL) { + GstBin * bin = GST_BIN(gst_bin_new(NULL)); + + m_colorspace = gst_element_factory_make("ffmpegcolorspace", NULL); + m_element = m_videoRenderer->videoSink(); + + gst_bin_add(bin, m_colorspace); + gst_bin_add(bin, m_element); + gst_element_link(m_colorspace, m_element); + + // add ghostpads + GstPad *pad = gst_element_get_static_pad(m_colorspace, "sink"); + gst_element_add_pad(GST_ELEMENT(bin), gst_ghost_pad_new("sink", pad)); + gst_object_unref(GST_OBJECT(pad)); + + m_bin = GST_ELEMENT(bin); + } + + m_videoRenderer->precessNewStream(); + + gst_object_ref(GST_OBJECT(m_bin)); + return m_bin; + } + + void prepareWinId() + { + m_videoRenderer->precessNewStream(); + } + +private: + QGstreamerVideoRendererInterface *m_videoRenderer; + + GstElement *m_bin; + GstElement *m_element; + GstElement *m_colorspace; +}; + + +QGstreamerCaptureService::QGstreamerCaptureService(const QString &service, QObject *parent): + QMediaService(parent) +{ + static bool initialized = false; + if (!initialized) { + initialized = true; + gst_init(NULL, NULL); + } + + m_captureSession = 0; + m_cameraControl = 0; + m_metaDataControl = 0; + + m_audioInputEndpointSelector = 0; + m_videoInputDevice = 0; + + m_videoOutput = 0; + m_videoRenderer = 0; + m_videoRendererFactory = 0; + m_videoWindow = 0; + m_videoWindowFactory = 0; + m_videoWidgetControl = 0; + m_videoWidgetFactory = 0; + m_imageCaptureControl = 0; + + + if (service == Q_MEDIASERVICE_AUDIOSOURCE) { + m_captureSession = new QGstreamerCaptureSession(QGstreamerCaptureSession::Audio, this); + } + + bool captureVideo = false; + + if (captureVideo) { + m_captureSession = new QGstreamerCaptureSession(QGstreamerCaptureSession::AudioAndVideo, this); + //TODO:m_captureSession->setVideoInput(m_cameraControl); + m_videoInputDevice = new QGstreamerVideoInputDeviceControl(m_captureSession); + + //TODO:connect(m_videoInputDevice, SIGNAL(selectedDeviceChanged(QString)), + // m_cameraControl, SLOT(setDevice(QString))); + + //TODO:if (m_videoInputDevice->deviceCount()) + // m_cameraControl->setDevice(m_videoInputDevice->deviceName(m_videoInputDevice->selectedDevice())); + + m_videoOutput = new QGstreamerVideoOutputControl(this); + connect(m_videoOutput, SIGNAL(outputChanged(QVideoOutputControl::Output)), + this, SLOT(videoOutputChanged(QVideoOutputControl::Output))); + + m_videoRenderer = new QGstreamerVideoRenderer(this); + m_videoRendererFactory = new QGstreamerVideoRendererWrapper(m_videoRenderer); + m_videoWindow = new QGstreamerVideoOverlay(this); + m_videoWindowFactory = new QGstreamerVideoRendererWrapper(m_videoWindow); + + m_videoWidgetControl = new QGstreamerVideoWidgetControl(this); + m_videoWidgetFactory = new QGstreamerVideoRendererWrapper(m_videoWidgetControl); + + m_videoOutput->setAvailableOutputs(QList() + << QVideoOutputControl::RendererOutput + << QVideoOutputControl::WindowOutput + << QVideoOutputControl::WidgetOutput); + } + + if (!m_captureSession) { + qWarning() << "Service type is not supported:" << service; + return; + } + + m_audioInputEndpointSelector = new QGstreamerAudioInputEndpointSelector(this); + connect(m_audioInputEndpointSelector, SIGNAL(activeEndpointChanged(QString)), m_captureSession, SLOT(setCaptureDevice(QString))); + + if (m_captureSession && m_audioInputEndpointSelector->availableEndpoints().size() > 0) + m_captureSession->setCaptureDevice(m_audioInputEndpointSelector->defaultEndpoint()); + + m_metaDataControl = new QGstreamerCaptureMetaDataControl(this); + connect(m_metaDataControl, SIGNAL(metaDataChanged(QMap)), + m_captureSession, SLOT(setMetaData(QMap))); +} + +QGstreamerCaptureService::~QGstreamerCaptureService() +{ +} + +QMediaControl *QGstreamerCaptureService::control(const char *name) const +{ + if (qstrcmp(name, QVideoOutputControl_iid) == 0) + return m_videoOutput; + + if (qstrcmp(name, QVideoRendererControl_iid) == 0) + return m_videoRenderer; + + if (qstrcmp(name, QVideoWindowControl_iid) == 0) + return m_videoWindow; + + if (qstrcmp(name, QVideoWidgetControl_iid) == 0) + return m_videoWidgetControl; + + if (qstrcmp(name,QAudioEndpointSelector_iid) == 0) + return m_audioInputEndpointSelector; + + if (qstrcmp(name,QVideoDeviceControl_iid) == 0) + return m_videoInputDevice; + + if (qstrcmp(name,QMediaRecorderControl_iid) == 0) + return m_captureSession->recorderControl(); + + if (qstrcmp(name,QAudioEncoderControl_iid) == 0) + return m_captureSession->audioEncodeControl(); + + if (qstrcmp(name,QVideoEncoderControl_iid) == 0) + return m_captureSession->videoEncodeControl(); + + if (qstrcmp(name,QMediaContainerControl_iid) == 0) + return m_captureSession->mediaContainerControl(); + + if (qstrcmp(name,QMetaDataControl_iid) == 0) + return m_metaDataControl; + + return 0; +} + +void QGstreamerCaptureService::videoOutputChanged(QVideoOutputControl::Output output) +{ + switch (output) { + case QVideoOutputControl::NoOutput: + m_captureSession->setVideoPreview(0); + break; + case QVideoOutputControl::RendererOutput: + m_captureSession->setVideoPreview(m_videoRendererFactory); + break; + case QVideoOutputControl::WindowOutput: + m_captureSession->setVideoPreview(m_videoWindowFactory); + break; + case QVideoOutputControl::WidgetOutput: + m_captureSession->setVideoPreview(m_videoWidgetFactory); + break; + default: + qWarning("Invalid video output selection"); + m_captureSession->setVideoPreview(0); + break; + } +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercaptureservice_maemo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercaptureservice_maemo.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,99 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGSTREAMERCAPTURESERVICE_H +#define QGSTREAMERCAPTURESERVICE_H + +#include + +#include "qgstreamervideooutputcontrol.h" + +#include +QTM_BEGIN_NAMESPACE +class QAudioEndpointSelector; +class QVideoDeviceControl; +QTM_END_NAMESPACE + +class QGstreamerCaptureSession; +class QGstreamerCameraControl; +class QGstreamerMessage; +class QGstreamerBusHelper; +class QGstreamerVideoRenderer; +class QGstreamerVideoOverlay; +class QGstreamerVideoWidgetControl; +class QGstreamerElementFactory; +class QGstreamerCaptureMetaDataControl; +class QGstreamerImageCaptureControl; + +class QGstreamerCaptureService : public QMediaService +{ + Q_OBJECT + +public: + QGstreamerCaptureService(const QString &service, QObject *parent = 0); + virtual ~QGstreamerCaptureService(); + + QMediaControl *control(const char *name) const; + +private slots: + void videoOutputChanged(QVideoOutputControl::Output output); + +private: + void setAudioPreview(GstElement*); + + QGstreamerCaptureSession *m_captureSession; + QGstreamerCameraControl *m_cameraControl; + QGstreamerCaptureMetaDataControl *m_metaDataControl; + + QAudioEndpointSelector *m_audioInputEndpointSelector; + QVideoDeviceControl *m_videoInputDevice; + + QGstreamerVideoOutputControl *m_videoOutput; + QGstreamerVideoRenderer *m_videoRenderer; + QGstreamerElementFactory *m_videoRendererFactory; + QGstreamerVideoOverlay *m_videoWindow; + QGstreamerElementFactory *m_videoWindowFactory; + QGstreamerVideoWidgetControl *m_videoWidgetControl; + QGstreamerElementFactory *m_videoWidgetFactory; + QGstreamerImageCaptureControl *m_imageCaptureControl; +}; + +#endif // QGSTREAMERCAPTURESERVICE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercapturesession_maemo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercapturesession_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,463 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgstreamercapturesession_maemo.h" +#include "qgstreamerrecordercontrol_maemo.h" +#include "qgstreamermediacontainercontrol_maemo.h" +#include "qgstreameraudioencode_maemo.h" +#include "qgstreamervideoencode_maemo.h" +#include "qgstreamerbushelper.h" +#include +#include +#include + +#include +#include +#include + +#include + +#define gstRef(element) { gst_object_ref(GST_OBJECT(element)); gst_object_sink(GST_OBJECT(element)); } +#define gstUnref(element) { if (element) { gst_object_unref(GST_OBJECT(element)); element = 0; } } + +#define PREVIEW_CAPS \ + "video/x-raw-rgb, width = (int) 640, height = (int) 480" + +// Function prototypes +static gboolean imgCaptured(GstElement *camera, const gchar *filename, gpointer user_data); + +QGstreamerCaptureSession::QGstreamerCaptureSession(QGstreamerCaptureSession::CaptureMode captureMode, QObject *parent) + :QObject(parent), + m_state(StoppedState), + m_pendingState(StoppedState), + m_waitingForEos(false), + m_pipelineMode(EmptyPipeline), + m_captureMode(captureMode), + m_audioInputFactory(0), + m_audioPreviewFactory(0), + m_videoInputFactory(0), + m_videoPreviewFactory(0), + m_pipeline(0), + m_videoSrc(0), + m_videoPreviewFactoryHasChanged(false), + m_audioSrc(0), + m_audioConvert(0), + m_capsFilter(0), + m_fileSink(0), + m_audioEncoder(0), + m_muxer(0) +{ + if (m_captureMode == AudioAndVideo) { + m_pipeline = gst_element_factory_make("camerabin", "camerabin"); + } else if (m_captureMode & Audio) { + m_pipeline = gst_pipeline_new("audio-capture-pipeline"); + m_audioSrc = gst_element_factory_make("pulsesrc", "pulsesrc"); + m_audioConvert = gst_element_factory_make("audioconvert", "audioconvert"); + m_capsFilter = gst_element_factory_make("capsfilter", "capsfilter-audio"); + m_fileSink = gst_element_factory_make("filesink", "filesink"); + + if (!m_audioSrc || !m_audioConvert || !m_fileSink) + emit error(int(QMediaRecorder::ResourceError), QString("Element creation failed.")); + + gst_bin_add_many(GST_BIN(m_pipeline), m_audioSrc, m_audioConvert, m_fileSink, NULL); + + if (!gst_element_link(m_audioSrc, m_audioConvert)) + emit error(int(QMediaRecorder::ResourceError), QString("Element linking failed.")); + + } + + gstRef(m_pipeline); + + m_bus = gst_element_get_bus(m_pipeline); + + m_busHelper = new QGstreamerBusHelper(m_bus, this); + m_busHelper->installSyncEventFilter(this); + connect(m_busHelper, SIGNAL(message(QGstreamerMessage)), SLOT(busMessage(QGstreamerMessage))); + m_audioEncodeControl = new QGstreamerAudioEncode(this); + m_videoEncodeControl = new QGstreamerVideoEncode(this); + m_recorderControl = new QGstreamerRecorderControl(this); + m_mediaContainerControl = new QGstreamerMediaContainerControl(this); +} + +QGstreamerCaptureSession::~QGstreamerCaptureSession() +{ + if (m_pipeline) { + gst_element_set_state(m_pipeline, GST_STATE_NULL); + gst_element_get_state(m_pipeline, NULL, NULL, GST_CLOCK_TIME_NONE); + gstUnref(m_pipeline); + } +} + +void QGstreamerCaptureSession::setupCameraBin() +{ + GstState currentState = GST_STATE_PLAYING; + gst_element_get_state(m_pipeline, ¤tState, 0, 0); + GstState previousState = currentState; + + if (currentState != GST_STATE_NULL) { + gst_element_set_state(m_pipeline, GST_STATE_NULL); + gst_element_get_state(m_pipeline, NULL, NULL, GST_CLOCK_TIME_NONE); + } + + m_recorderControl->applySettings(); + + g_object_set(m_pipeline, "videosrc", buildVideoSrc(), NULL); + g_object_set(m_pipeline, "videoenc", m_videoEncodeControl->createEncoder(), NULL); + g_object_set(m_pipeline, "audioenc", m_audioEncodeControl->createEncoder(), NULL); + g_object_set(m_pipeline, "videomux", + gst_element_factory_make(m_mediaContainerControl->formatElementName().constData(), NULL), NULL); + + if (m_videoPreviewFactory) { + GstElement *preview = m_videoPreviewFactory->buildElement(); + g_object_set(G_OBJECT(m_pipeline), "vfsink", preview, NULL); + } + + gst_element_set_state(m_pipeline, GST_STATE_PLAYING); +} + +#define REMOVE_ELEMENT(element) { if (element) {gst_bin_remove(GST_BIN(m_pipeline), element); element = 0;} } + +void QGstreamerCaptureSession::buildAudioEncodeBin() +{ + REMOVE_ELEMENT(m_audioEncoder); + REMOVE_ELEMENT(m_muxer); + + m_audioEncoder = m_audioEncodeControl->createEncoder(); + m_muxer = gst_element_factory_make(m_mediaContainerControl->formatElementName().constData(), "muxer"); + + if (!m_audioEncoder || !m_muxer) { + emit error(int(QMediaRecorder::ResourceError), QString("Element creation failed")); + return; + } + + gst_bin_add(GST_BIN(m_pipeline), m_audioEncoder); + gst_bin_add(GST_BIN(m_pipeline), m_muxer); + + if (!gst_element_link_many(m_audioConvert, m_audioEncoder, m_muxer, m_fileSink, NULL)) { + emit error(int(QMediaRecorder::ResourceError), QString("Element linking failed")); + return; + } + + g_object_set(G_OBJECT(m_fileSink), "location", m_sink.toString().toLocal8Bit().constData(), NULL); +} + +GstElement *QGstreamerCaptureSession::buildVideoSrc() +{ + GstElement *videoSrc = 0; + if (m_videoInputFactory) { + videoSrc = m_videoInputFactory->buildElement(); + } else { + videoSrc = gst_element_factory_make("videotestsrc", "video_test_src"); + } + + return videoSrc; +} + +QUrl QGstreamerCaptureSession::outputLocation() const +{ + return m_sink; +} + +bool QGstreamerCaptureSession::setOutputLocation(const QUrl& sink) +{ + m_sink = sink; + return true; +} + +void QGstreamerCaptureSession::setAudioInput(QGstreamerElementFactory *audioInput) +{ + m_audioInputFactory = audioInput; +} + +void QGstreamerCaptureSession::setAudioPreview(QGstreamerElementFactory *audioPreview) +{ + m_audioPreviewFactory = audioPreview; +} + +void QGstreamerCaptureSession::setVideoInput(QGstreamerVideoInput *videoInput) +{ + m_videoInputFactory = videoInput; +} + +void QGstreamerCaptureSession::setVideoPreview(QGstreamerElementFactory *videoPreview) +{ + m_videoPreviewFactory = videoPreview; + m_videoPreviewFactoryHasChanged = true; +} + +QGstreamerCaptureSession::State QGstreamerCaptureSession::state() const +{ + return m_state; +} + +void QGstreamerCaptureSession::setState(QGstreamerCaptureSession::State newState) +{ + + if (newState == m_state) + return; + + //qDebug() << "NewState: " << newState; + //qDebug() << "CurrentState: " << m_state; + + switch (m_state) { + case PreviewState: + if (newState == StoppedState) { + m_state = StoppedState; + gst_element_set_state(m_pipeline, GST_STATE_NULL); + gst_element_get_state(m_pipeline, NULL, NULL, GST_CLOCK_TIME_NONE); + emit stateChanged(StoppedState); + } + g_object_set(G_OBJECT(m_pipeline), "mode", 1, NULL); + m_state = StoppedState; + if (newState == RecordingState) { + setState(newState); + } + break; + case StoppedState: + m_state = newState; + if (newState == PreviewState) { + + if (m_videoPreviewFactory && m_videoPreviewFactoryHasChanged) { + m_videoPreviewFactoryHasChanged = false; + GstElement *preview = m_videoPreviewFactory->buildElement(); + g_object_set(G_OBJECT(m_pipeline), "vfsink", preview, NULL); + } + gst_element_set_state(m_pipeline, GST_STATE_PLAYING); + g_object_set(G_OBJECT(m_pipeline), "mode", 0, NULL); + } else { + if (m_captureMode == AudioAndVideo) { + setupCameraBin(); + g_object_set(G_OBJECT(m_pipeline), "filename", m_sink.toString().toLocal8Bit().constData(), NULL); + g_object_set(G_OBJECT(m_pipeline), "mode", 1, NULL); + g_signal_emit_by_name(m_pipeline, "user-start", 0); + } else if (m_captureMode & Audio) { + buildAudioEncodeBin(); + gst_element_set_state(m_pipeline, GST_STATE_PLAYING); + } + } + break; + case PausedState: + case RecordingState: + if (newState == PausedState) { + g_signal_emit_by_name(m_pipeline, "user-pause", 0); + m_state = PausedState; + } else { + if (m_captureMode == AudioAndVideo) + g_signal_emit_by_name(m_pipeline, "user-stop", 0); + else if (m_captureMode & Audio) { + gst_element_send_event(m_pipeline, gst_event_new_eos()); + gst_element_set_state(m_pipeline, GST_STATE_NULL); + } + + m_state = StoppedState; + if (newState == PreviewState) + setState(newState); + } + break; + } +} + + +qint64 QGstreamerCaptureSession::duration() const +{ + GstFormat format = GST_FORMAT_TIME; + gint64 duration = 0; + + if ( m_pipeline && gst_element_query_position(m_pipeline, &format, &duration)) + return duration / 1000000; + else + return 0; +} + +void QGstreamerCaptureSession::setCaptureDevice(const QString &deviceName) +{ + m_captureDevice = deviceName; +} + +void QGstreamerCaptureSession::setMetaData(const QMap &data) +{ + m_metaData = data; + + if (m_pipeline) { + GstIterator *elements = gst_bin_iterate_all_by_interface(GST_BIN(m_pipeline), GST_TYPE_TAG_SETTER); + GstElement *element = 0; + while (gst_iterator_next(elements, (void**)&element) == GST_ITERATOR_OK) { + QMapIterator it(data); + while (it.hasNext()) { + it.next(); + const QString tagName = it.key(); + const QVariant tagValue = it.value(); + + switch(tagValue.type()) { + case QVariant::String: + gst_tag_setter_add_tags(GST_TAG_SETTER(element), + GST_TAG_MERGE_REPLACE_ALL, + tagName.toUtf8().constData(), + tagValue.toString().toUtf8().constData(), + NULL); + break; + case QVariant::Int: + case QVariant::LongLong: + gst_tag_setter_add_tags(GST_TAG_SETTER(element), + GST_TAG_MERGE_REPLACE_ALL, + tagName.toUtf8().constData(), + tagValue.toInt(), + NULL); + break; + case QVariant::Double: + gst_tag_setter_add_tags(GST_TAG_SETTER(element), + GST_TAG_MERGE_REPLACE_ALL, + tagName.toUtf8().constData(), + tagValue.toDouble(), + NULL); + break; + default: + break; + } + } + } + } +} + +bool QGstreamerCaptureSession::processSyncMessage(const QGstreamerMessage &message) +{ + GstMessage* gm = message.rawMessage(); + const GstStructure *st; + const GValue *image; + GstBuffer *buffer = NULL; + + if (gm && GST_MESSAGE_TYPE(gm) == GST_MESSAGE_ELEMENT) { + if (gst_structure_has_name(gm->structure, "prepare-xwindow-id")) { + if (m_audioPreviewFactory) + m_audioPreviewFactory->prepareWinId(); + + if (m_videoPreviewFactory) + m_videoPreviewFactory->prepareWinId(); + + return true; + } + } + + return false; +} + +void QGstreamerCaptureSession::busMessage(const QGstreamerMessage &message) +{ + GstMessage* gm = message.rawMessage(); + + if (gm) { + if (GST_MESSAGE_TYPE(gm) == GST_MESSAGE_ERROR) { + GError *err; + gchar *debug; + gst_message_parse_error (gm, &err, &debug); + emit error(int(QMediaRecorder::ResourceError),QString::fromUtf8(err->message)); + g_error_free (err); + g_free (debug); + } + + if (GST_MESSAGE_SRC(gm) == GST_OBJECT_CAST(m_pipeline)) { + switch (GST_MESSAGE_TYPE(gm)) { + case GST_MESSAGE_DURATION: + break; + + case GST_MESSAGE_EOS: + if (m_waitingForEos) + setState(m_pendingState); + break; + + case GST_MESSAGE_STATE_CHANGED: + { + + GstState oldState; + GstState newState; + GstState pending; + + gst_message_parse_state_changed(gm, &oldState, &newState, &pending); + + QStringList states; + states << "GST_STATE_VOID_PENDING" << "GST_STATE_NULL" << "GST_STATE_READY" << "GST_STATE_PAUSED" << "GST_STATE_PLAYING"; + + + //qDebug() << QString("state changed: old: %1 new: %2 pending: %3") \ + // .arg(states[oldState]) \ + // .arg(states[newState]) \ + // .arg(states[pending]); + + #define ENUM_NAME(c,e,v) (c::staticMetaObject.enumerator(c::staticMetaObject.indexOfEnumerator(e)).valueToKey((v))) + + //qDebug() << "Current session state:" << ENUM_NAME(QGstreamerCaptureSession,"State",m_state); + //qDebug() << "Pending session state:" << ENUM_NAME(QGstreamerCaptureSession,"State",m_pendingState); + + + switch (newState) { + case GST_STATE_VOID_PENDING: + case GST_STATE_NULL: + case GST_STATE_READY: + /*if (m_state != StoppedState && m_pendingState == StoppedState) { + emit stateChanged(m_state = StoppedState); + }*/ + break; + case GST_STATE_PAUSED: + if (m_state != PausedState && m_pendingState == PausedState) + emit stateChanged(m_state = PausedState); + + if (m_pipelineMode == RecordingPipeline && !m_metaData.isEmpty()) + setMetaData(m_metaData); + break; + case GST_STATE_PLAYING: + { + if (m_state == PreviewState || m_state == RecordingState) + { + emit stateChanged(m_state); + } + + } + break; + } + } + break; + default: + break; + } + //qDebug() << "New session state:" << ENUM_NAME(QGstreamerCaptureSession,"State",m_state); + } + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercapturesession_maemo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamercapturesession_maemo.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,182 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGSTREAMERCAPTURESESSION_MAEMO_H +#define QGSTREAMERCAPTURESESSION_MAEMO_H + +#include + +#include + +#include + +#include "qgstreamerbushelper.h" + +QTM_USE_NAMESPACE + +class QGstreamerMessage; +class QGstreamerBusHelper; +class QGstreamerAudioEncode; +class QGstreamerVideoEncode; +class QGstreamerImageEncode; +class QGstreamerRecorderControl; +class QGstreamerMediaContainerControl; +class QGstreamerCameraExposureControl; +class QGstreamerCameraFocusControl; +class QGstreamerImageProcessingControl; + +class QGstreamerElementFactory +{ +public: + virtual GstElement *buildElement() = 0; + virtual void prepareWinId() {} +}; + +class QGstreamerVideoInput : public QGstreamerElementFactory +{ +public: + virtual QList supportedFrameRates(const QSize &frameSize = QSize()) const = 0; + virtual QList supportedResolutions(qreal frameRate = -1) const = 0; +}; + +class QGstreamerCaptureSession : public QObject, public QGstreamerSyncEventFilter +{ + Q_OBJECT + Q_PROPERTY(qint64 duration READ duration NOTIFY durationChanged) + Q_ENUMS(State) + Q_ENUMS(CaptureMode) + +public: + enum CaptureMode { Audio = 1, Video = 2, AudioAndVideo = Audio | Video }; + enum State { StoppedState, PreviewState, PausedState, RecordingState }; + + QGstreamerCaptureSession(CaptureMode captureMode, QObject *parent); + ~QGstreamerCaptureSession(); + + CaptureMode captureMode() const { return m_captureMode; } + + QUrl outputLocation() const; + bool setOutputLocation(const QUrl& sink); + + QGstreamerAudioEncode *audioEncodeControl() const { return m_audioEncodeControl; } + QGstreamerVideoEncode *videoEncodeControl() const { return m_videoEncodeControl; } + QGstreamerImageEncode *imageEncodeControl() const { return m_imageEncodeControl; } + + QGstreamerRecorderControl *recorderControl() const { return m_recorderControl; } + QGstreamerMediaContainerControl *mediaContainerControl() const { return m_mediaContainerControl; } + + QGstreamerElementFactory *audioInput() const { return m_audioInputFactory; } + void setAudioInput(QGstreamerElementFactory *audioInput); + + QGstreamerElementFactory *audioPreview() const { return m_audioPreviewFactory; } + void setAudioPreview(QGstreamerElementFactory *audioPreview); + + QGstreamerVideoInput *videoInput() const { return m_videoInputFactory; } + void setVideoInput(QGstreamerVideoInput *videoInput); + + QGstreamerElementFactory *videoPreview() const { return m_videoPreviewFactory; } + void setVideoPreview(QGstreamerElementFactory *videoPreview); + + State state() const; + qint64 duration() const; + + bool processSyncMessage(const QGstreamerMessage &message); + +signals: + void stateChanged(QGstreamerCaptureSession::State state); + void durationChanged(qint64 duration); + void error(int error, const QString &errorString); + +public slots: + void setState(QGstreamerCaptureSession::State); + void setCaptureDevice(const QString &deviceName); + void setMetaData(const QMap&); + +private slots: + void busMessage(const QGstreamerMessage &message); + +private: + enum PipelineMode { EmptyPipeline, PreviewPipeline, RecordingPipeline, PreviewAndRecordingPipeline }; + + void setupCameraBin(); + GstElement *buildVideoSrc(); + void buildAudioEncodeBin(); + + QUrl m_sink; + QString m_captureDevice; + State m_state; + State m_pendingState; + bool m_waitingForEos; + PipelineMode m_pipelineMode; + QGstreamerCaptureSession::CaptureMode m_captureMode; + QMap m_metaData; + + QGstreamerElementFactory *m_audioInputFactory; + QGstreamerElementFactory *m_audioPreviewFactory; + QGstreamerVideoInput *m_videoInputFactory; + QGstreamerElementFactory *m_videoPreviewFactory; + + QGstreamerAudioEncode *m_audioEncodeControl; + QGstreamerVideoEncode *m_videoEncodeControl; + QGstreamerImageEncode *m_imageEncodeControl; + QGstreamerRecorderControl *m_recorderControl; + QGstreamerMediaContainerControl *m_mediaContainerControl; + QGstreamerCameraExposureControl *m_cameraExposureControl; + QGstreamerCameraFocusControl *m_cameraFocusControl; + QGstreamerImageProcessingControl *m_imageProcessingControl; + + QGstreamerBusHelper *m_busHelper; + GstBus* m_bus; + GstElement *m_pipeline; + GstElement *m_videoSrc; + bool m_videoPreviewFactoryHasChanged; + + GstElement *m_audioSrc; + GstElement *m_audioConvert; + GstElement *m_capsFilter; + GstElement *m_fileSink; + GstElement *m_audioEncoder; + GstElement *m_muxer; +public: + QString m_imageFileName; +}; + +#endif // QGSTREAMERCAPTURESESSION_MAEMO_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamermediacontainercontrol_maemo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamermediacontainercontrol_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,108 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgstreamermediacontainercontrol_maemo.h" + + +#include + +QGstreamerMediaContainerControl::QGstreamerMediaContainerControl(QObject *parent) + :QMediaContainerControl(parent) +{ + QList formatCandidates; + formatCandidates << "mp4" << "ogg" << "wav" << "amr"; + + m_elementNames["mp4"] = "hantromp4mux"; + m_elementNames["ogg"] = "oggmux"; + m_elementNames["wav"] = "wavenc"; + m_elementNames["amr"] = "ffmux_amr"; + + QSet allTypes; + + foreach( const QByteArray& formatName, formatCandidates ) { + QByteArray elementName = m_elementNames[formatName]; + GstElementFactory *factory = gst_element_factory_find(elementName.constData()); + if (factory) { + m_supportedContainers.append(formatName); + const gchar *descr = gst_element_factory_get_description(factory); + m_containerDescriptions.insert(formatName, QString::fromUtf8(descr)); + + + if (formatName == QByteArray("raw")) { + m_streamTypes.insert(formatName, allTypes); + } else { + QSet types = supportedStreamTypes(factory, GST_PAD_SINK); + m_streamTypes.insert(formatName, types); + allTypes.unite(types); + } + + gst_object_unref(GST_OBJECT(factory)); + } + } + + if (!m_supportedContainers.isEmpty()) + setContainerMimeType(m_supportedContainers[0]); +} + +QSet QGstreamerMediaContainerControl::supportedStreamTypes(GstElementFactory *factory, GstPadDirection direction) +{ + QSet types; + const GList *pads = gst_element_factory_get_static_pad_templates(factory); + for (const GList *pad = pads; pad; pad = g_list_next(pad)) { + GstStaticPadTemplate *templ = (GstStaticPadTemplate*)pad->data; + if (templ->direction == direction) { + GstCaps *caps = gst_static_caps_get(&templ->static_caps); + for (uint i=0; i QGstreamerMediaContainerControl::supportedStreamTypes(const QString &container) const +{ + return m_streamTypes.value(container); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamermediacontainercontrol_maemo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamermediacontainercontrol_maemo.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,81 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGSTREAMERMEDIACONTAINERCONTROL_H +#define QGSTREAMERMEDIACONTAINERCONTROL_H + +#include +#include +#include + +#include + +QTM_USE_NAMESPACE + +class QGstreamerMediaContainerControl : public QMediaContainerControl +{ +Q_OBJECT +public: + QGstreamerMediaContainerControl(QObject *parent); + virtual ~QGstreamerMediaContainerControl() {}; + + virtual QStringList supportedContainers() const { return m_supportedContainers; } + virtual QString containerMimeType() const { return m_format; } + virtual void setContainerMimeType(const QString &formatMimeType) { m_format = formatMimeType; } + + virtual QString containerDescription(const QString &formatMimeType) const { return m_containerDescriptions.value(formatMimeType); } + + QByteArray formatElementName() const { return m_elementNames.value(containerMimeType()); } + + QSet supportedStreamTypes(const QString &container) const; + + static QSet supportedStreamTypes(GstElementFactory *factory, GstPadDirection direction); + +private: + QString m_format; + QStringList m_supportedContainers; + QMap m_elementNames; + QMap m_containerDescriptions; + QMap > m_streamTypes; +}; + +#endif // QGSTREAMERMEDIACONTAINERCONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamerrecordercontrol_maemo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamerrecordercontrol_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,224 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgstreamerrecordercontrol_maemo.h" +#include "qgstreameraudioencode_maemo.h" +#include "qgstreamervideoencode_maemo.h" +#include "qgstreamermediacontainercontrol_maemo.h" +#include + +QGstreamerRecorderControl::QGstreamerRecorderControl(QGstreamerCaptureSession *session) + :QMediaRecorderControl(session), m_session(session), m_state(QMediaRecorder::StoppedState) +{ + connect(m_session, SIGNAL(stateChanged(QGstreamerCaptureSession::State)), SLOT(updateState())); + connect(m_session, SIGNAL(error(int,QString)), SIGNAL(error(int,QString))); + connect(m_session, SIGNAL(durationChanged(qint64)), SIGNAL(durationChanged(qint64))); + m_hasPreviewState = m_session->captureMode() != QGstreamerCaptureSession::Audio; +} + +QGstreamerRecorderControl::~QGstreamerRecorderControl() +{ +} + +QUrl QGstreamerRecorderControl::outputLocation() const +{ + return m_session->outputLocation(); +} + +bool QGstreamerRecorderControl::setOutputLocation(const QUrl &sink) +{ + m_session->setOutputLocation(sink); + return true; +} + + +QMediaRecorder::State QGstreamerRecorderControl::state() const +{ + switch ( m_session->state() ) { + case QGstreamerCaptureSession::RecordingState: + return QMediaRecorder::RecordingState; + case QGstreamerCaptureSession::PausedState: + return QMediaRecorder::PausedState; + case QGstreamerCaptureSession::PreviewState: + case QGstreamerCaptureSession::StoppedState: + return QMediaRecorder::StoppedState; + } + + return QMediaRecorder::StoppedState; + +} + +void QGstreamerRecorderControl::updateState() +{ + QMediaRecorder::State newState = state(); + if (m_state != newState) { + m_state = newState; + emit stateChanged(m_state); + } +} + +qint64 QGstreamerRecorderControl::duration() const +{ + return m_session->duration(); +} + +void QGstreamerRecorderControl::record() +{ + if (!m_hasPreviewState || m_session->state() != QGstreamerCaptureSession::StoppedState) { + m_session->setState(QGstreamerCaptureSession::RecordingState); + } else + emit error(QMediaRecorder::ResourceError, tr("Service has not been started")); +} + +void QGstreamerRecorderControl::pause() +{ + if (!m_hasPreviewState || m_session->state() != QGstreamerCaptureSession::StoppedState) { + m_session->setState(QGstreamerCaptureSession::PausedState); + } else + emit error(QMediaRecorder::ResourceError, tr("Service has not been started")); +} + +void QGstreamerRecorderControl::stop() +{ + if (!m_hasPreviewState) { + m_session->setState(QGstreamerCaptureSession::StoppedState); + } else { + if (m_session->state() != QGstreamerCaptureSession::StoppedState) + m_session->setState(QGstreamerCaptureSession::PreviewState); + } +} + +void QGstreamerRecorderControl::applySettings() +{ + //Check the codecs are compatible with container, + //and choose the compatible codecs/container if omitted + QGstreamerAudioEncode *audioEncodeControl = m_session->audioEncodeControl(); + QGstreamerVideoEncode *videoEncodeControl = m_session->videoEncodeControl(); + QGstreamerMediaContainerControl *mediaContainerControl = m_session->mediaContainerControl(); + + bool needAudio = m_session->captureMode() & QGstreamerCaptureSession::Audio; + bool needVideo = m_session->captureMode() & QGstreamerCaptureSession::Video; + + QStringList containerCandidates; + if (mediaContainerControl->containerMimeType().isEmpty()) + containerCandidates = mediaContainerControl->supportedContainers(); + else + containerCandidates << mediaContainerControl->containerMimeType(); + + + QStringList audioCandidates; + if (needAudio) { + QAudioEncoderSettings audioSettings = audioEncodeControl->audioSettings(); + if (audioSettings.codec().isEmpty()) + audioCandidates = audioEncodeControl->supportedAudioCodecs(); + else + audioCandidates << audioSettings.codec(); + } + + QStringList videoCandidates; + if (needVideo) { + QVideoEncoderSettings videoSettings = videoEncodeControl->videoSettings(); + if (videoSettings.codec().isEmpty()) + videoCandidates = videoEncodeControl->supportedVideoCodecs(); + else + videoCandidates << videoSettings.codec(); + } + + QString container; + QString audioCodec; + QString videoCodec; + + foreach (const QString &containerCandidate, containerCandidates) { + QSet supportedTypes = mediaContainerControl->supportedStreamTypes(containerCandidate); + + audioCodec.clear(); + videoCodec.clear(); + + if (needAudio) { + bool found = false; + foreach (const QString &audioCandidate, audioCandidates) { + QSet audioTypes = audioEncodeControl->supportedStreamTypes(audioCandidate); + if (!audioTypes.intersect(supportedTypes).isEmpty()) { + found = true; + audioCodec = audioCandidate; + break; + } + } + if (!found) + continue; + } + + if (needVideo) { + bool found = false; + foreach (const QString &videoCandidate, videoCandidates) { + QSet videoTypes = videoEncodeControl->supportedStreamTypes(videoCandidate); + if (!videoTypes.intersect(supportedTypes).isEmpty()) { + found = true; + videoCodec = videoCandidate; + break; + } + } + if (!found) + continue; + } + + container = containerCandidate; + break; + } + + if (container.isEmpty()) { + emit error(QMediaRecorder::FormatError, tr("Not compatible codecs and container format.")); + } else { + mediaContainerControl->setContainerMimeType(container); + + if (needAudio) { + QAudioEncoderSettings audioSettings = audioEncodeControl->audioSettings(); + audioSettings.setCodec(audioCodec); + audioEncodeControl->setAudioSettings(audioSettings); + } + + if (needVideo) { + QVideoEncoderSettings videoSettings = videoEncodeControl->videoSettings(); + videoSettings.setCodec(videoCodec); + videoEncodeControl->setVideoSettings(videoSettings); + } + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamerrecordercontrol_maemo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamerrecordercontrol_maemo.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,82 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGSTREAMERRECORDERCONTROL_H +#define QGSTREAMERRECORDERCONTROL_H + +#include +#include "qgstreamercapturesession_maemo.h" +QTM_USE_NAMESPACE + +class QGstreamerRecorderControl : public QMediaRecorderControl +{ + Q_OBJECT + Q_PROPERTY(qint64 duration READ duration NOTIFY durationChanged) + +public: + QGstreamerRecorderControl(QGstreamerCaptureSession *session); + virtual ~QGstreamerRecorderControl(); + + QUrl outputLocation() const; + bool setOutputLocation(const QUrl &sink); + + QMediaRecorder::State state() const; + + qint64 duration() const; + + void applySettings(); + +public slots: + void record(); + void pause(); + void stop(); + +private slots: + void updateState(); + +private: + QGstreamerCaptureSession *m_session; + QMediaRecorder::State m_state; + bool m_hasPreviewState; +}; + +#endif // QGSTREAMERCAPTURECORNTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamervideoencode_maemo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamervideoencode_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,179 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgstreamervideoencode_maemo.h" +#include "qgstreamercapturesession_maemo.h" +#include "qgstreamermediacontainercontrol_maemo.h" + +#include + +QGstreamerVideoEncode::QGstreamerVideoEncode(QGstreamerCaptureSession *session) + :QVideoEncoderControl(session), m_session(session) +{ + QList codecCandidates; + codecCandidates << "video/mpeg4"; //"video/h264" << "video/xvid" << "video/mpeg4" << "video/mpeg1" << "video/mpeg2" << "video/theora"; + + m_elementNames["video/mpeg4"] = "dspmp4venc"; + + m_codecOptions["video/mpeg4"] = QStringList() << "quantizer"; + + foreach( const QByteArray& codecName, codecCandidates ) { + QByteArray elementName = m_elementNames[codecName]; + GstElementFactory *factory = gst_element_factory_find(elementName.constData()); + if (factory) { + m_codecs.append(codecName); + const gchar *descr = gst_element_factory_get_description(factory); + m_codecDescriptions.insert(codecName, QString::fromUtf8(descr)); + + m_streamTypes.insert(codecName, + QGstreamerMediaContainerControl::supportedStreamTypes(factory, GST_PAD_SRC)); + + gst_object_unref(GST_OBJECT(factory)); + } + } + + if (!m_codecs.isEmpty()) + m_videoSettings.setCodec(m_codecs[0]); +} + +QGstreamerVideoEncode::~QGstreamerVideoEncode() +{ +} + +QList QGstreamerVideoEncode::supportedResolutions(const QVideoEncoderSettings &, bool *continuous) const +{ + if (continuous) + *continuous = m_session->videoInput() != 0; + + return m_session->videoInput() ? m_session->videoInput()->supportedResolutions() : QList(); +} + +QList< qreal > QGstreamerVideoEncode::supportedFrameRates(const QVideoEncoderSettings &, bool *continuous) const +{ + if (continuous) + *continuous = false; + + return m_session->videoInput() ? m_session->videoInput()->supportedFrameRates() : QList(); +} + +QStringList QGstreamerVideoEncode::supportedVideoCodecs() const +{ + return m_codecs; +} + +QString QGstreamerVideoEncode::videoCodecDescription(const QString &codecName) const +{ + return m_codecDescriptions.value(codecName); +} + +QStringList QGstreamerVideoEncode::supportedEncodingOptions(const QString &codec) const +{ + return m_codecOptions.value(codec); +} + +QVariant QGstreamerVideoEncode::encodingOption(const QString &codec, const QString &name) const +{ + return m_options[codec].value(name); +} + +void QGstreamerVideoEncode::setEncodingOption( + const QString &codec, const QString &name, const QVariant &value) +{ + m_options[codec][name] = value; +} + +QVideoEncoderSettings QGstreamerVideoEncode::videoSettings() const +{ + return m_videoSettings; +} + +void QGstreamerVideoEncode::setVideoSettings(const QVideoEncoderSettings &settings) +{ + m_videoSettings = settings; +} + +GstElement *QGstreamerVideoEncode::createEncoder() +{ + QString codec = m_videoSettings.codec(); + + GstElement *encoderElement = gst_element_factory_make( m_elementNames.value(codec).constData(), "video-encoder"); + + return encoderElement; +} + +QPair QGstreamerVideoEncode::rateAsRational() const +{ + qreal frameRate = m_videoSettings.frameRate(); + + if (frameRate > 0.001) { + //convert to rational number + QList denumCandidates; + denumCandidates << 1 << 2 << 3 << 5 << 10 << 1001 << 1000; + + qreal error = 1.0; + int num = 1; + int denum = 1; + + foreach (int curDenum, denumCandidates) { + int curNum = qRound(frameRate*curDenum); + qreal curError = qAbs(qreal(curNum)/curDenum - frameRate); + + if (curError < error) { + error = curError; + num = curNum; + denum = curDenum; + } + + if (curError < 1e-8) + break; + } + + return QPair(num,denum); + } + + return QPair(); +} + + +QSet QGstreamerVideoEncode::supportedStreamTypes(const QString &codecName) const +{ + return m_streamTypes.value(codecName); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamervideoencode_maemo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/maemo/qgstreamervideoencode_maemo.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,98 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGSTREAMERVIDEOENCODE_H +#define QGSTREAMERVIDEOENCODE_H + +#include +class QGstreamerCaptureSession; + +#include +#include +#include + +#include + +QTM_USE_NAMESPACE + +class QGstreamerVideoEncode : public QVideoEncoderControl +{ + Q_OBJECT +public: + QGstreamerVideoEncode(QGstreamerCaptureSession *session); + virtual ~QGstreamerVideoEncode(); + + QList supportedResolutions(const QVideoEncoderSettings &settings = QVideoEncoderSettings(), + bool *continuous = 0) const; + + QList< qreal > supportedFrameRates(const QVideoEncoderSettings &settings = QVideoEncoderSettings(), + bool *continuous = 0) const; + + QPair rateAsRational() const; + + QStringList supportedVideoCodecs() const; + QString videoCodecDescription(const QString &codecName) const; + + QVideoEncoderSettings videoSettings() const; + void setVideoSettings(const QVideoEncoderSettings &settings); + + QStringList supportedEncodingOptions(const QString &codec) const; + QVariant encodingOption(const QString &codec, const QString &name) const; + void setEncodingOption(const QString &codec, const QString &name, const QVariant &value); + + GstElement *createEncoder(); + + QSet supportedStreamTypes(const QString &codecName) const; + +private: + QGstreamerCaptureSession *m_session; + + QStringList m_codecs; + QMap m_codecDescriptions; + QMap m_elementNames; + QMap m_codecOptions; + + QVideoEncoderSettings m_videoSettings; + QMap > m_options; + QMap > m_streamTypes; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/mediacapture.pri --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/mediacapture.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/mediacapture.pri Mon May 03 13:18:40 2010 +0300 @@ -8,10 +8,8 @@ $$PWD/qgstreamervideoencode.h \ $$PWD/qgstreamerrecordercontrol.h \ $$PWD/qgstreamermediacontainercontrol.h \ - $$PWD/qgstreamercameracontrol.h \ - $$PWD/qgstreamercapturemetadatacontrol.h \ - $$PWD/qgstreamerimagecapturecontrol.h \ - $$PWD/qgstreamerimageencode.h + $$PWD/qgstreamerv4l2input.h \ + $$PWD/qgstreamercapturemetadatacontrol.h SOURCES += $$PWD/qgstreamercaptureservice.cpp \ $$PWD/qgstreamercapturesession.cpp \ @@ -19,7 +17,5 @@ $$PWD/qgstreamervideoencode.cpp \ $$PWD/qgstreamerrecordercontrol.cpp \ $$PWD/qgstreamermediacontainercontrol.cpp \ - $$PWD/qgstreamercameracontrol.cpp \ - $$PWD/qgstreamercapturemetadatacontrol.cpp \ - $$PWD/qgstreamerimagecapturecontrol.cpp \ - $$PWD/qgstreamerimageencode.cpp + $$PWD/qgstreamerv4l2input.cpp \ + $$PWD/qgstreamercapturemetadatacontrol.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreameraudioencode.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreameraudioencode.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreameraudioencode.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,7 @@ #include "qgstreameraudioencode.h" #include "qgstreamercapturesession.h" +#include "qgstreamermediacontainercontrol.h" #include @@ -50,17 +51,25 @@ :QAudioEncoderControl(parent) { QList codecCandidates; - codecCandidates << "audio/mpeg" << "audio/vorbis" << "audio/speex" << "audio/GSM"; + codecCandidates << "audio/mpeg" << "audio/vorbis" << "audio/speex" << "audio/GSM" + << "audio/PCM" << "audio/AMR" << "audio/AMR-WB"; - m_elementNames["audio/mpeg"] = "lame"; + m_elementNames["audio/mpeg"] = "lamemp3enc"; m_elementNames["audio/vorbis"] = "vorbisenc"; m_elementNames["audio/speex"] = "speexenc"; m_elementNames["audio/GSM"] = "gsmenc"; + m_elementNames["audio/PCM"] = "audioresample"; + m_elementNames["audio/AMR"] = "amrnbenc"; + m_elementNames["audio/AMR-WB"] = "amrwbenc"; + m_codecOptions["audio/vorbis"] = QStringList() << "min-bitrate" << "max-bitrate"; m_codecOptions["audio/mpeg"] = QStringList() << "mode"; m_codecOptions["audio/speex"] = QStringList() << "mode" << "vbr" << "vad" << "dtx"; m_codecOptions["audio/GSM"] = QStringList(); + m_codecOptions["audio/PCM"] = QStringList(); + m_codecOptions["audio/AMR"] = QStringList(); + m_codecOptions["audio/AMR-WB"] = QStringList(); foreach( const QByteArray& codecName, codecCandidates ) { QByteArray elementName = m_elementNames[codecName]; @@ -69,14 +78,21 @@ if (factory) { m_codecs.append(codecName); const gchar *descr = gst_element_factory_get_description(factory); - m_codecDescriptions.insert(codecName, QString::fromUtf8(descr)); + + if (codecName == QByteArray("audio/PCM")) + m_codecDescriptions.insert(codecName, tr("Raw PCM audio")); + else + m_codecDescriptions.insert(codecName, QString::fromUtf8(descr)); + + m_streamTypes.insert(codecName, + QGstreamerMediaContainerControl::supportedStreamTypes(factory, GST_PAD_SRC)); gst_object_unref(GST_OBJECT(factory)); } } - if (!m_codecs.isEmpty()) - m_audioSettings.setCodec(m_codecs[0]); + //if (!m_codecs.isEmpty()) + // m_audioSettings.setCodec(m_codecs[0]); } QGstreamerAudioEncode::~QGstreamerAudioEncode() @@ -185,15 +201,15 @@ }; g_object_set(G_OBJECT(encoderElement), "quality", qualityTable[qualityValue], NULL); } else if (codec == QLatin1String("audio/mpeg")) { - int presets[] = { - 1006, //VeryLow - Medium - 1006, //Low - Medium - 1001, //Normal - Standard - 1002, //High - Extreme - 1003 //VeryHigh - Insane + g_object_set(G_OBJECT(encoderElement), "target", 0, NULL); //constant quality mode + qreal quality[] = { + 1, //VeryLow + 3, //Low + 5, //Normal + 7, //High + 9 //VeryHigh }; - - g_object_set(G_OBJECT(encoderElement), "preset", presets[qualityValue], NULL); + g_object_set(G_OBJECT(encoderElement), "quality", quality[qualityValue], NULL); } else if (codec == QLatin1String("audio/speex")) { //0-10 range with default 8 double qualityTable[] = { @@ -204,10 +220,23 @@ 10 //VeryHigh }; g_object_set(G_OBJECT(encoderElement), "quality", qualityTable[qualityValue], NULL); + } else if (codec.startsWith("audio/AMR")) { + int band[] = { + 0, //VeryLow + 2, //Low + 4, //Normal + 6, //High + 7 //VeryHigh + }; + + g_object_set(G_OBJECT(encoderElement), "band-mode", band[qualityValue], NULL); } } else { int bitrate = m_audioSettings.bitRate(); if (bitrate > 0) { + if (codec == QLatin1String("audio/mpeg")) { + g_object_set(G_OBJECT(encoderElement), "target", 1, NULL); //constant bitrate mode + } g_object_set(G_OBJECT(encoderElement), "bitrate", bitrate, NULL); } } @@ -242,3 +271,9 @@ return GST_ELEMENT(encoderBin); } + + +QSet QGstreamerAudioEncode::supportedStreamTypes(const QString &codecName) const +{ + return m_streamTypes.value(codecName); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreameraudioencode.h --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreameraudioencode.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreameraudioencode.h Mon May 03 13:18:40 2010 +0300 @@ -47,6 +47,7 @@ #include #include +#include #include @@ -78,6 +79,8 @@ GstElement *createEncoder(); + QSet supportedStreamTypes(const QString &codecName) const; + private: QStringList m_codecs; QMap m_elementNames; @@ -86,6 +89,8 @@ QMap > m_options; + QMap > m_streamTypes; + QAudioEncoderSettings m_audioSettings; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercameracontrol.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercameracontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,322 +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 Qt Mobility Components. -** -** $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 "qgstreamercameracontrol.h" - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE -static inline uint qHash(const QSize& key) { return uint(key.width()*256+key.height()); } - -static bool operator<(const QSize &s1, const QSize s2) -{ - return s1.width()*s1.height() < s2.width()*s2.height(); -} -QT_END_NAMESPACE - -QGstreamerCameraControl::QGstreamerCameraControl(QGstreamerCaptureSession *session) - :QCameraControl(session), m_captureMode(QCamera::CaptureStillImage), m_session(session), m_state(QCamera::StoppedState) -{ - connect(m_session, SIGNAL(stateChanged(QGstreamerCaptureSession::State)), - this, SLOT(updateState())); -} - -QGstreamerCameraControl::~QGstreamerCameraControl() -{ -} - -GstElement *QGstreamerCameraControl::buildElement() -{ - GstElement *camera = gst_element_factory_make("v4l2src", "camera_source"); - - if (camera && !m_device.isEmpty() ) - g_object_set(G_OBJECT(camera), "device", m_device.constData(), NULL); - - return camera; -} - -void QGstreamerCameraControl::start() -{ - if (m_session->state() == QGstreamerCaptureSession::StoppedState) - m_session->setState(QGstreamerCaptureSession::PreviewState); -} - -void QGstreamerCameraControl::stop() -{ - m_session->setState(QGstreamerCaptureSession::StoppedState); -} - -void QGstreamerCameraControl::setDevice(const QString &device) -{ - QByteArray newDevice = device.toLocal8Bit(); - - if (m_device != newDevice) { - m_device = newDevice; - updateSupportedResolutions(device); - } -} - -QCamera::State QGstreamerCameraControl::state() const -{ - if (m_session->state() == QGstreamerCaptureSession::StoppedState) - return QCamera::StoppedState; - else - return QCamera::ActiveState; -} - -void QGstreamerCameraControl::updateState() -{ - QCamera::State newState = state(); - if (m_state != newState) { - m_state = newState; - emit stateChanged(m_state); - } -} - - -void QGstreamerCameraControl::updateSupportedResolutions(const QString &device) -{ - m_frameRates.clear(); - m_resolutions.clear(); - m_ratesByResolution.clear(); - - QSet allResolutions; - QSet allFrameRates; - - QFile f(device); - - if (!f.open(QFile::ReadOnly)) - return; - - int fd = f.handle(); - - //get the list of formats: - QList supportedFormats; - - { - v4l2_fmtdesc fmt; - memset(&fmt, 0, sizeof(v4l2_fmtdesc)); - - fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - int sanity = 0; - - for (fmt.index = 0;; fmt.index++) { - if (sanity++ > 8) - break; - if( ::ioctl(fd, VIDIOC_ENUM_FMT, &fmt) == -1) { - if(errno == EINVAL) - break; - } - supportedFormats.append(fmt.pixelformat); - } - } - - QList commonSizes; - commonSizes << QSize(128, 96) - < commonRates; - commonRates << 05*1000 << 75*1000 << 10*1000 << 15*1000 << 20*1000 - << 24*1000 << 25*1000 << 30*1000 << 50*1000 << 60*1000; - - - //get the list of resolutions: - - foreach (quint32 format, supportedFormats) { - struct v4l2_frmsizeenum formatSize; - memset(&formatSize, 0, sizeof(formatSize)); - formatSize.pixel_format = format; - - QList sizeList; - - if (0) { - char formatStr[5]; - memcpy(formatStr, &format, 4); - formatStr[4] = 0; - //qDebug() << "trying format" << formatStr; - } - - for (int i=0;;i++) { - formatSize.index = i; - if (ioctl (fd, VIDIOC_ENUM_FRAMESIZES, &formatSize) < 0) - break; - - if (formatSize.type == V4L2_FRMSIZE_TYPE_DISCRETE) { - sizeList.append(QSize(formatSize.discrete.width, formatSize.discrete.height)); - } else { - - foreach (const QSize& candidate, commonSizes) { - if (candidate.width() <= (int)formatSize.stepwise.max_width && - candidate.height() >= (int)formatSize.stepwise.min_width && - candidate.width() % formatSize.stepwise.step_width == 0 && - candidate.height() <= (int)formatSize.stepwise.max_height && - candidate.height() >= (int)formatSize.stepwise.min_height && - candidate.height() % formatSize.stepwise.step_height == 0) { - sizeList.append(candidate); - } - } - - if (!sizeList.contains(QSize(formatSize.stepwise.min_width, formatSize.stepwise.min_height))) - sizeList.prepend(QSize(formatSize.stepwise.min_width, formatSize.stepwise.min_height)); - - if (!sizeList.contains(QSize(formatSize.stepwise.max_width, formatSize.stepwise.max_height))) - sizeList.append(QSize(formatSize.stepwise.max_width, formatSize.stepwise.max_height)); - - break; //stepwise values are returned only for index 0 - } - - } - - //and frameRates for each resolution. - - foreach (const QSize &s, sizeList) { - allResolutions.insert(s); - - struct v4l2_frmivalenum formatInterval; - memset(&formatInterval, 0, sizeof(formatInterval)); - formatInterval.pixel_format = format; - formatInterval.width = s.width(); - formatInterval.height = s.height(); - - QList frameRates; //in 1/1000 of fps - - for (int i=0; ; i++) { - formatInterval.index = i; - - if (ioctl(fd, VIDIOC_ENUM_FRAMEINTERVALS, &formatInterval) < 0) - break; - - if (formatInterval.type == V4L2_FRMIVAL_TYPE_DISCRETE) { - //converts seconds to fps*1000 - if (formatInterval.discrete.numerator) - frameRates.append(qRound(formatInterval.discrete.denominator*1000.0 / formatInterval.discrete.numerator)); - } else { - if (formatInterval.stepwise.min.numerator == 0 || - formatInterval.stepwise.max.numerator == 0) { - qWarning() << "received invalid frame interval"; - break; - } - - - int minRate = qRound(formatInterval.stepwise.min.denominator*1000.0 / - formatInterval.stepwise.min.numerator); - - int maxRate = qRound(formatInterval.stepwise.max.denominator*1000.0 / - formatInterval.stepwise.max.numerator); - - - foreach (int candidate, commonRates) { - if (candidate >= minRate && candidate <= maxRate) - frameRates.append(candidate); - } - - if (!frameRates.contains(minRate)) - frameRates.prepend(minRate); - - if (!frameRates.contains(maxRate)) - frameRates.append(maxRate); - - break; //stepwise values are returned only for index 0 - } - } - allFrameRates.unite(frameRates.toSet()); - m_ratesByResolution[s].unite(frameRates.toSet()); - } - } - - f.close(); - - foreach(int rate, allFrameRates) { - m_frameRates.append(rate/1000.0); - } - - qSort(m_frameRates); - - m_resolutions = allResolutions.toList(); - qSort(m_resolutions); - - //qDebug() << "frame rates:" << m_frameRates; - //qDebug() << "resolutions:" << m_resolutions; -} - - -QList QGstreamerCameraControl::supportedFrameRates(const QSize &frameSize) const -{ - if (frameSize.isEmpty()) - return m_frameRates; - else { - QList res; - foreach(int rate, m_ratesByResolution[frameSize]) { - res.append(rate/1000.0); - } - return res; - } -} - -QList QGstreamerCameraControl::supportedResolutions(qreal frameRate) const -{ - Q_UNUSED(frameRate); - return m_resolutions; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercameracontrol.h --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercameracontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,107 +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 Qt Mobility Components. -** -** $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 QGSTREAMERCAMERACONTROL_H -#define QGSTREAMERCAMERACONTROL_H - -#include -#include -#include "qgstreamercapturesession.h" - -QTM_USE_NAMESPACE -QT_USE_NAMESPACE - -class QGstreamerCameraControl : public QCameraControl, public QGstreamerVideoInput -{ - Q_OBJECT -public: - QGstreamerCameraControl( QGstreamerCaptureSession *session ); - virtual ~QGstreamerCameraControl(); - - bool isValid() const { return true; } - - QCamera::State state() const; - - GstElement *buildElement(); - - void start(); - void stop(); - - QList supportedFrameRates(const QSize &frameSize = QSize()) const; - QList supportedResolutions(qreal frameRate = -1) const; - - QCamera::CaptureMode captureMode() const { return m_captureMode; } - void setCaptureMode(QCamera::CaptureMode mode) - { - if (m_captureMode != mode) { - m_captureMode = mode; - emit captureModeChanged(mode); - } - } - - QCamera::CaptureModes supportedCaptureModes() const - { - return QCamera::CaptureStillImage | QCamera::CaptureVideo; - } - -public slots: - void setDevice(const QString &device); - -private slots: - void updateState(); - -private: - void updateSupportedResolutions(const QString &device); - - QList m_frameRates; - QList m_resolutions; - - QHash > m_ratesByResolution; - - QCamera::CaptureMode m_captureMode; - - QGstreamerCaptureSession *m_session; - QByteArray m_device; - QCamera::State m_state; -}; - -#endif // QGSTREAMERCAMERACONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercaptureservice.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercaptureservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercaptureservice.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,15 +45,13 @@ #include "qgstreamermediacontainercontrol.h" #include "qgstreameraudioencode.h" #include "qgstreamervideoencode.h" -#include "qgstreamerimageencode.h" #include "qgstreamerbushelper.h" -#include "qgstreamercameracontrol.h" +#include "qgstreamerv4l2input.h" #include "qgstreamercapturemetadatacontrol.h" #include "qgstreamervideooutputcontrol.h" #include "qgstreameraudioinputendpointselector.h" #include "qgstreamervideoinputdevicecontrol.h" -#include "qgstreamerimagecapturecontrol.h" #include "qgstreamervideooverlay.h" #include "qgstreamervideorenderer.h" @@ -62,6 +60,8 @@ #include +#include + class QGstreamerVideoRendererWrapper : public QGstreamerElementFactory { @@ -82,6 +82,9 @@ GstElement *buildElement() { +#ifdef Q_WS_MAEMO_5 + return m_element = m_videoRenderer->videoSink(); +#endif if (m_bin == NULL) { GstBin * bin = GST_BIN(gst_bin_new(NULL)); @@ -130,9 +133,9 @@ } m_captureSession = 0; - m_cameraControl = 0; m_metaDataControl = 0; + m_videoInput = 0; m_audioInputEndpointSelector = 0; m_videoInputDevice = 0; @@ -143,25 +146,24 @@ m_videoWindowFactory = 0; m_videoWidgetControl = 0; m_videoWidgetFactory = 0; - m_imageCaptureControl = 0; - if (service == Q_MEDIASERVICE_AUDIOSOURCE) { m_captureSession = new QGstreamerCaptureSession(QGstreamerCaptureSession::Audio, this); } - if (service == Q_MEDIASERVICE_CAMERA) { - m_captureSession = new QGstreamerCaptureSession(QGstreamerCaptureSession::AudioAndVideo, this); - m_cameraControl = new QGstreamerCameraControl(m_captureSession); - m_captureSession->setVideoInput(m_cameraControl); - m_videoInputDevice = new QGstreamerVideoInputDeviceControl(m_captureSession); - m_imageCaptureControl = new QGstreamerImageCaptureControl(m_captureSession); + bool captureVideo = false; + + if (captureVideo) { + m_captureSession = new QGstreamerCaptureSession(QGstreamerCaptureSession::AudioAndVideo, this); + m_videoInput = new QGstreamerV4L2Input(this); + m_captureSession->setVideoInput(m_videoInput); + m_videoInputDevice = new QGstreamerVideoInputDeviceControl(this); connect(m_videoInputDevice, SIGNAL(selectedDeviceChanged(QString)), - m_cameraControl, SLOT(setDevice(QString))); + m_videoInput, SLOT(setDevice(QString))); if (m_videoInputDevice->deviceCount()) - m_cameraControl->setDevice(m_videoInputDevice->deviceName(m_videoInputDevice->selectedDevice())); + m_videoInput->setDevice(m_videoInputDevice->deviceName(m_videoInputDevice->selectedDevice())); m_videoOutput = new QGstreamerVideoOutputControl(this); connect(m_videoOutput, SIGNAL(outputChanged(QVideoOutputControl::Output)), @@ -181,6 +183,11 @@ << QVideoOutputControl::WidgetOutput); } + if (!m_captureSession) { + qWarning() << "Service type is not supported:" << service; + return; + } + m_audioInputEndpointSelector = new QGstreamerAudioInputEndpointSelector(this); connect(m_audioInputEndpointSelector, SIGNAL(activeEndpointChanged(QString)), m_captureSession, SLOT(setCaptureDevice(QString))); @@ -198,6 +205,9 @@ QMediaControl *QGstreamerCaptureService::control(const char *name) const { + if (!m_captureSession) + return 0; + if (qstrcmp(name, QVideoOutputControl_iid) == 0) return m_videoOutput; @@ -225,22 +235,12 @@ if (qstrcmp(name,QVideoEncoderControl_iid) == 0) return m_captureSession->videoEncodeControl(); - if (qstrcmp(name,QImageEncoderControl_iid) == 0) - return m_captureSession->imageEncodeControl(); - - if (qstrcmp(name,QMediaContainerControl_iid) == 0) return m_captureSession->mediaContainerControl(); - if (qstrcmp(name,QCameraControl_iid) == 0) - return m_cameraControl; - if (qstrcmp(name,QMetaDataControl_iid) == 0) return m_metaDataControl; - if (qstrcmp(name, QImageCaptureControl_iid) == 0) - return m_imageCaptureControl; - return 0; } @@ -265,4 +265,3 @@ break; } } - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercaptureservice.h --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercaptureservice.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercaptureservice.h Mon May 03 13:18:40 2010 +0300 @@ -62,6 +62,7 @@ class QGstreamerElementFactory; class QGstreamerCaptureMetaDataControl; class QGstreamerImageCaptureControl; +class QGstreamerV4L2Input; class QGstreamerCaptureService : public QMediaService { @@ -74,13 +75,13 @@ QMediaControl *control(const char *name) const; private slots: - void videoOutputChanged(QVideoOutputControl::Output output); + void videoOutputChanged(QVideoOutputControl::Output output); private: void setAudioPreview(GstElement*); QGstreamerCaptureSession *m_captureSession; - QGstreamerCameraControl *m_cameraControl; + QGstreamerV4L2Input *m_videoInput; QGstreamerCaptureMetaDataControl *m_metaDataControl; QAudioEndpointSelector *m_audioInputEndpointSelector; @@ -93,7 +94,6 @@ QGstreamerElementFactory *m_videoWindowFactory; QGstreamerVideoWidgetControl *m_videoWidgetControl; QGstreamerElementFactory *m_videoWidgetFactory; - QGstreamerImageCaptureControl *m_imageCaptureControl; }; #endif // QGSTREAMERCAPTURESERVICE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercapturesession.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercapturesession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercapturesession.cpp Mon May 03 13:18:40 2010 +0300 @@ -44,7 +44,6 @@ #include "qgstreamermediacontainercontrol.h" #include "qgstreameraudioencode.h" #include "qgstreamervideoencode.h" -#include "qgstreamerimageencode.h" #include "qgstreamerbushelper.h" #include @@ -67,6 +66,7 @@ :QObject(parent), m_state(StoppedState), m_pendingState(StoppedState), + m_waitingForEos(false), m_pipelineMode(EmptyPipeline), m_captureMode(captureMode), m_audioInputFactory(0), @@ -94,8 +94,7 @@ m_busHelper->installSyncEventFilter(this); connect(m_busHelper, SIGNAL(message(QGstreamerMessage)), SLOT(busMessage(QGstreamerMessage))); m_audioEncodeControl = new QGstreamerAudioEncode(this); - m_videoEncodeControl = new QGstreamerVideoEncode(this); - m_imageEncodeControl = new QGstreamerImageEncode(this); + m_videoEncodeControl = new QGstreamerVideoEncode(this); m_recorderControl = new QGstreamerRecorderControl(this); m_mediaContainerControl = new QGstreamerMediaContainerControl(this); @@ -107,7 +106,6 @@ gst_object_unref(GST_OBJECT(m_pipeline)); } - GstElement *QGstreamerCaptureSession::buildEncodeBin() { bool ok = true; @@ -329,164 +327,6 @@ return previewElement; } - -static gboolean passImageFilter(GstElement *element, - GstBuffer *buffer, - void *appdata) -{ - Q_UNUSED(element); - Q_UNUSED(buffer); - - QGstreamerCaptureSession *session = (QGstreamerCaptureSession *)appdata; - if (session->m_passImage || session->m_passPrerollImage) { - session->m_passImage = false; - - if (session->m_passPrerollImage) { - session->m_passPrerollImage = false; - return TRUE; - } - session->m_passPrerollImage = false; - - QImage img; - - GstCaps *caps = gst_buffer_get_caps(buffer); - if (caps) { - GstStructure *structure = gst_caps_get_structure (caps, 0); - gint width = 0; - gint height = 0; - - if (structure && - gst_structure_get_int(structure, "width", &width) && - gst_structure_get_int(structure, "height", &height) && - width > 0 && height > 0) { - if (qstrcmp(gst_structure_get_name(structure), "video/x-raw-yuv") == 0) { - guint32 fourcc = 0; - gst_structure_get_fourcc(structure, "format", &fourcc); - - if (fourcc == GST_MAKE_FOURCC('I','4','2','0')) { - img = QImage(width/2, height/2, QImage::Format_RGB32); - - const uchar *data = (const uchar *)buffer->data; - - for (int y=0; ydata, - width, - height, - format); - img.bits(); //detach - } - } - } - gst_caps_unref(caps); - } - - static int signalIndex = session->metaObject()->indexOfSignal("imageCaptured(QString,QImage)"); - session->metaObject()->method(signalIndex).invoke(session, - Qt::QueuedConnection, - Q_ARG(QString,session->m_imageFileName), - Q_ARG(QImage,img)); - - return TRUE; - } else { - return FALSE; - } -} - -static gboolean saveImageFilter(GstElement *element, - GstBuffer *buffer, - GstPad *pad, - void *appdata) -{ - Q_UNUSED(element); - Q_UNUSED(pad); - QGstreamerCaptureSession *session = (QGstreamerCaptureSession *)appdata; - - QString fileName = session->m_imageFileName; - - if (!fileName.isEmpty()) { - QFile f(fileName); - if (f.open(QFile::WriteOnly)) { - f.write((const char *)buffer->data, buffer->size); - f.close(); - - static int signalIndex = session->metaObject()->indexOfSignal("imageSaved(QString)"); - session->metaObject()->method(signalIndex).invoke(session, - Qt::QueuedConnection, - Q_ARG(QString,fileName)); - } - } - - return TRUE; -} - -GstElement *QGstreamerCaptureSession::buildImageCapture() -{ - GstElement *bin = gst_bin_new("image-capture-bin"); - GstElement *queue = gst_element_factory_make("queue", "queue-image-capture"); - GstElement *colorspace = gst_element_factory_make("ffmpegcolorspace", "ffmpegcolorspace-image-capture"); - GstElement *encoder = gst_element_factory_make("jpegenc", "image-encoder"); - GstElement *sink = gst_element_factory_make("fakesink","sink-image-capture"); - - GstPad *pad = gst_element_get_static_pad(queue, "src"); - Q_ASSERT(pad); - gst_pad_add_buffer_probe(pad, G_CALLBACK(passImageFilter), this); - - g_object_set(G_OBJECT(sink), "signal-handoffs", TRUE, NULL); - g_signal_connect(G_OBJECT(sink), "handoff", - G_CALLBACK(saveImageFilter), this); - - gst_bin_add_many(GST_BIN(bin), queue, colorspace, encoder, sink, NULL); - gst_element_link_many(queue, colorspace, encoder, sink, NULL); - - // add ghostpads - pad = gst_element_get_static_pad(queue, "sink"); - Q_ASSERT(pad); - gst_element_add_pad(GST_ELEMENT(bin), gst_ghost_pad_new("imagesink", pad)); - gst_object_unref(GST_OBJECT(pad)); - - m_passImage = false; - m_passPrerollImage = true; - m_imageFileName = QString(); - - return bin; -} - -void QGstreamerCaptureSession::captureImage(const QString &fileName) -{ - m_imageFileName = fileName; - m_passImage = true; -} - - #define REMOVE_ELEMENT(element) { if (element) {gst_bin_remove(GST_BIN(m_pipeline), element); element = 0;} } bool QGstreamerCaptureSession::rebuildGraph(QGstreamerCaptureSession::PipelineMode newMode) @@ -500,7 +340,6 @@ REMOVE_ELEMENT(m_videoPreviewQueue); REMOVE_ELEMENT(m_videoTee); REMOVE_ELEMENT(m_encodeBin); - REMOVE_ELEMENT(m_imageCaptureBin); bool ok = true; @@ -524,20 +363,17 @@ m_videoSrc = buildVideoSrc(); m_videoTee = gst_element_factory_make("tee", "video-preview-tee"); m_videoPreviewQueue = gst_element_factory_make("queue", "video-preview-queue"); - m_videoPreview = buildVideoPreview(); - m_imageCaptureBin = buildImageCapture(); + m_videoPreview = buildVideoPreview(); - ok &= m_videoSrc && m_videoTee && m_videoPreviewQueue && m_videoPreview && m_imageCaptureBin; + ok &= m_videoSrc && m_videoTee && m_videoPreviewQueue && m_videoPreview; if (ok) { gst_bin_add_many(GST_BIN(m_pipeline), m_videoSrc, m_videoTee, - m_videoPreviewQueue, m_videoPreview, - m_imageCaptureBin, NULL); + m_videoPreviewQueue, m_videoPreview, NULL); ok &= gst_element_link(m_videoSrc, m_videoTee); ok &= gst_element_link(m_videoTee, m_videoPreviewQueue); ok &= gst_element_link(m_videoPreviewQueue, m_videoPreview); - ok &= gst_element_link(m_videoTee, m_imageCaptureBin); } } break; @@ -693,7 +529,7 @@ void QGstreamerCaptureSession::setState(QGstreamerCaptureSession::State newState) { - if (newState == m_pendingState) + if (newState == m_pendingState && !m_waitingForEos) return; m_pendingState = newState; @@ -714,6 +550,23 @@ } if (newMode != m_pipelineMode) { + if (m_pipelineMode == PreviewAndRecordingPipeline) { + if (!m_waitingForEos) { + m_waitingForEos = true; + //qDebug() << "Waiting for EOS"; + //with live sources it's necessary to send EOS even to pipeline + //before going to STOPPED state + gst_element_send_event(m_pipeline, gst_event_new_eos()); + return; + } else { + m_waitingForEos = false; + //qDebug() << "EOS received"; + } + } + + //select suitable default codecs/containers, if necessary + m_recorderControl->applySettings(); + gst_element_set_state(m_pipeline, GST_STATE_NULL); //It would be better to do this async. but @@ -852,6 +705,11 @@ case GST_MESSAGE_DURATION: break; + case GST_MESSAGE_EOS: + if (m_waitingForEos) + setState(m_pendingState); + break; + case GST_MESSAGE_STATE_CHANGED: { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercapturesession.h --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercapturesession.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercapturesession.h Mon May 03 13:18:40 2010 +0300 @@ -57,7 +57,6 @@ class QGstreamerBusHelper; class QGstreamerAudioEncode; class QGstreamerVideoEncode; -class QGstreamerImageEncode; class QGstreamerRecorderControl; class QGstreamerMediaContainerControl; @@ -95,7 +94,6 @@ QGstreamerAudioEncode *audioEncodeControl() const { return m_audioEncodeControl; } QGstreamerVideoEncode *videoEncodeControl() const { return m_videoEncodeControl; } - QGstreamerImageEncode *imageEncodeControl() const { return m_imageEncodeControl; } QGstreamerRecorderControl *recorderControl() const { return m_recorderControl; } QGstreamerMediaContainerControl *mediaContainerControl() const { return m_mediaContainerControl; } @@ -112,8 +110,6 @@ QGstreamerElementFactory *videoPreview() const { return m_videoPreviewFactory; } void setVideoPreview(QGstreamerElementFactory *videoPreview); - void captureImage(const QString &fileName); - State state() const; qint64 duration() const; @@ -123,7 +119,6 @@ void stateChanged(QGstreamerCaptureSession::State state); void durationChanged(qint64 duration); void error(int error, const QString &errorString); - void imageCaptured(const QString &fileName, const QImage &img); public slots: void setState(QGstreamerCaptureSession::State); @@ -144,7 +139,6 @@ GstElement *buildAudioPreview(); GstElement *buildVideoSrc(); GstElement *buildVideoPreview(); - GstElement *buildImageCapture(); void waitForStopped(); bool rebuildGraph(QGstreamerCaptureSession::PipelineMode newMode); @@ -153,6 +147,7 @@ QString m_captureDevice; State m_state; State m_pendingState; + bool m_waitingForEos; PipelineMode m_pipelineMode; QGstreamerCaptureSession::CaptureMode m_captureMode; QMap m_metaData; @@ -164,7 +159,6 @@ QGstreamerAudioEncode *m_audioEncodeControl; QGstreamerVideoEncode *m_videoEncodeControl; - QGstreamerImageEncode *m_imageEncodeControl; QGstreamerRecorderControl *m_recorderControl; QGstreamerMediaContainerControl *m_mediaContainerControl; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerimagecapturecontrol.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerimagecapturecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +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 Qt Mobility Components. -** -** $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 "qgstreamerimagecapturecontrol.h" -#include - -QGstreamerImageCaptureControl::QGstreamerImageCaptureControl(QGstreamerCaptureSession *session) - :QImageCaptureControl(session), m_session(session), m_ready(false) -{ - connect(m_session, SIGNAL(stateChanged(QGstreamerCaptureSession::State)), SLOT(updateState())); - connect(m_session, SIGNAL(imageCaptured(QString,QImage)), this, SIGNAL(imageCaptured(QString,QImage))); -} - -QGstreamerImageCaptureControl::~QGstreamerImageCaptureControl() -{ -} - -bool QGstreamerImageCaptureControl::isReadyForCapture() const -{ - return m_ready; -} - -void QGstreamerImageCaptureControl::capture(const QString &fileName) -{ - m_session->captureImage(fileName); -} - -void QGstreamerImageCaptureControl::updateState() -{ - bool ready = m_session->state() == QGstreamerCaptureSession::PreviewState; - if (m_ready != ready) { - emit readyForCaptureChanged(m_ready = ready); - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerimagecapturecontrol.h --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerimagecapturecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +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 Qt Mobility Components. -** -** $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 QGSTREAMERIMAGECAPTURECONTROL_H -#define QGSTREAMERIMAGECAPTURECONTROL_H - -#include -#include "qgstreamercapturesession.h" -QTM_USE_NAMESPACE - -class QGstreamerImageCaptureControl : public QImageCaptureControl -{ - Q_OBJECT -public: - QGstreamerImageCaptureControl(QGstreamerCaptureSession *session); - virtual ~QGstreamerImageCaptureControl(); - - bool isReadyForCapture() const; - void capture(const QString &fileName); - -private slots: - void updateState(); - -private: - QGstreamerCaptureSession *m_session; - bool m_ready; -}; - -#endif // QGSTREAMERCAPTURECORNTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerimageencode.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerimageencode.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,87 +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 Qt Mobility Components. -** -** $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 "qgstreamerimageencode.h" -#include "qgstreamercapturesession.h" - -#include - -#include - -QGstreamerImageEncode::QGstreamerImageEncode(QGstreamerCaptureSession *session) - :QImageEncoderControl(session), m_session(session) -{ -} - -QGstreamerImageEncode::~QGstreamerImageEncode() -{ -} - -QList QGstreamerImageEncode::supportedResolutions(const QImageEncoderSettings &, bool *continuous) const -{ - if (continuous) - *continuous = m_session->videoInput() != 0; - - return m_session->videoInput() ? m_session->videoInput()->supportedResolutions() : QList(); -} - -QStringList QGstreamerImageEncode::supportedImageCodecs() const -{ - return QStringList() << "jpeg"; -} - -QString QGstreamerImageEncode::imageCodecDescription(const QString &codecName) const -{ - if (codecName == "jpeg") - return tr("JPEG image encoder"); - - return QString(); -} - -QImageEncoderSettings QGstreamerImageEncode::imageSettings() const -{ - return m_settings; -} - -void QGstreamerImageEncode::setImageSettings(const QImageEncoderSettings &settings) -{ - m_settings = settings; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerimageencode.h --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerimageencode.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +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 Qt Mobility Components. -** -** $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 QGSTREAMERIMAGEENCODE_H -#define QGSTREAMERIMAGEENCODE_H - -class QGstreamerCaptureSession; - -#include - -#include -#include - -#include -QTM_USE_NAMESPACE - -class QGstreamerImageEncode : public QImageEncoderControl -{ - Q_OBJECT -public: - QGstreamerImageEncode(QGstreamerCaptureSession *session); - virtual ~QGstreamerImageEncode(); - - QList supportedResolutions(const QImageEncoderSettings &settings = QImageEncoderSettings(), - bool *continuous = 0) const; - - QStringList supportedImageCodecs() const; - QString imageCodecDescription(const QString &codecName) const; - - QImageEncoderSettings imageSettings() const; - void setImageSettings(const QImageEncoderSettings &settings); - -private: - QImageEncoderSettings m_settings; - - QGstreamerCaptureSession *m_session; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamermediacontainercontrol.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamermediacontainercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamermediacontainercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,20 +40,23 @@ ****************************************************************************/ #include "qgstreamermediacontainercontrol.h" -#include + + +#include QGstreamerMediaContainerControl::QGstreamerMediaContainerControl(QObject *parent) :QMediaContainerControl(parent) { QList formatCandidates; - formatCandidates << "matroska" << "ogg" << "quicktime" << "mp4" << "avi" << "3gpp"; + formatCandidates << "matroska" << "ogg" << "mp4" << "quicktime" << "avi" << "3gpp"; formatCandidates << "flv" << "wav" << "amr" << "asf" << "dv" << "gif"; formatCandidates << "mpeg" << "vob" << "mpegts" << "3g2" << "3gp"; + formatCandidates << "raw"; m_elementNames["matroska"] = "matroskamux"; m_elementNames["ogg"] = "oggmux"; - m_elementNames["quicktime"] = "qtmux"; - m_elementNames["mp4"] = "mp4mux"; + m_elementNames["mp4"] = "ffmux_mp4"; + m_elementNames["quicktime"] = "ffmux_mov"; m_elementNames["avi"] = "avimux"; m_elementNames["3gpp"] = "gppmux"; m_elementNames["flv"] = "flvmux"; @@ -67,7 +70,9 @@ m_elementNames["mpegts"] = "ffmux_mpegts"; m_elementNames["3g2"] = "ffmux_3g2"; m_elementNames["3gp"] = "ffmux_3gp"; + m_elementNames["raw"] = "identity"; + QSet allTypes; foreach( const QByteArray& formatName, formatCandidates ) { QByteArray elementName = m_elementNames[formatName]; @@ -77,12 +82,44 @@ const gchar *descr = gst_element_factory_get_description(factory); m_containerDescriptions.insert(formatName, QString::fromUtf8(descr)); + + if (formatName == QByteArray("raw")) { + m_streamTypes.insert(formatName, allTypes); + } else { + QSet types = supportedStreamTypes(factory, GST_PAD_SINK); + m_streamTypes.insert(formatName, types); + allTypes.unite(types); + } + gst_object_unref(GST_OBJECT(factory)); } } - if (!m_supportedContainers.isEmpty()) - setContainerMimeType(m_supportedContainers[0]); + //if (!m_supportedContainers.isEmpty()) + // setContainerMimeType(m_supportedContainers[0]); +} + +QSet QGstreamerMediaContainerControl::supportedStreamTypes(GstElementFactory *factory, GstPadDirection direction) +{ + QSet types; + const GList *pads = gst_element_factory_get_static_pad_templates(factory); + for (const GList *pad = pads; pad; pad = g_list_next(pad)) { + GstStaticPadTemplate *templ = (GstStaticPadTemplate*)pad->data; + if (templ->direction == direction) { + GstCaps *caps = gst_static_caps_get(&templ->static_caps); + for (uint i=0; i QGstreamerMediaContainerControl::supportedStreamTypes(const QString &container) const +{ + return m_streamTypes.value(container); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamermediacontainercontrol.h --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamermediacontainercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamermediacontainercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -45,6 +45,9 @@ #include #include +#include + +#include QTM_USE_NAMESPACE @@ -63,11 +66,16 @@ QByteArray formatElementName() const { return m_elementNames.value(containerMimeType()); } + QSet supportedStreamTypes(const QString &container) const; + + static QSet supportedStreamTypes(GstElementFactory *factory, GstPadDirection direction); + private: QString m_format; QStringList m_supportedContainers; QMap m_elementNames; QMap m_containerDescriptions; + QMap > m_streamTypes; }; #endif // QGSTREAMERMEDIACONTAINERCONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,6 +40,9 @@ ****************************************************************************/ #include "qgstreamerrecordercontrol.h" +#include "qgstreameraudioencode.h" +#include "qgstreamervideoencode.h" +#include "qgstreamermediacontainercontrol.h" #include QGstreamerRecorderControl::QGstreamerRecorderControl(QGstreamerCaptureSession *session) @@ -100,9 +103,9 @@ void QGstreamerRecorderControl::record() { m_session->dumpGraph("before-record"); - if (!m_hasPreviewState || m_session->state() != QGstreamerCaptureSession::StoppedState) + if (!m_hasPreviewState || m_session->state() != QGstreamerCaptureSession::StoppedState) { m_session->setState(QGstreamerCaptureSession::RecordingState); - else + } else emit error(QMediaRecorder::ResourceError, tr("Service has not been started")); m_session->dumpGraph("after-record"); @@ -111,9 +114,9 @@ void QGstreamerRecorderControl::pause() { m_session->dumpGraph("before-pause"); - if (!m_hasPreviewState || m_session->state() != QGstreamerCaptureSession::StoppedState) + if (!m_hasPreviewState || m_session->state() != QGstreamerCaptureSession::StoppedState) { m_session->setState(QGstreamerCaptureSession::PausedState); - else + } else emit error(QMediaRecorder::ResourceError, tr("Service has not been started")); } @@ -126,3 +129,100 @@ m_session->setState(QGstreamerCaptureSession::PreviewState); } } + +void QGstreamerRecorderControl::applySettings() +{ + //Check the codecs are compatible with container, + //and choose the compatible codecs/container if omitted + QGstreamerAudioEncode *audioEncodeControl = m_session->audioEncodeControl(); + QGstreamerVideoEncode *videoEncodeControl = m_session->videoEncodeControl(); + QGstreamerMediaContainerControl *mediaContainerControl = m_session->mediaContainerControl(); + + bool needAudio = m_session->captureMode() & QGstreamerCaptureSession::Audio; + bool needVideo = m_session->captureMode() & QGstreamerCaptureSession::Video; + + QStringList containerCandidates; + if (mediaContainerControl->containerMimeType().isEmpty()) + containerCandidates = mediaContainerControl->supportedContainers(); + else + containerCandidates << mediaContainerControl->containerMimeType(); + + + QStringList audioCandidates; + if (needAudio) { + QAudioEncoderSettings audioSettings = audioEncodeControl->audioSettings(); + if (audioSettings.codec().isEmpty()) + audioCandidates = audioEncodeControl->supportedAudioCodecs(); + else + audioCandidates << audioSettings.codec(); + } + + QStringList videoCandidates; + if (needVideo) { + QVideoEncoderSettings videoSettings = videoEncodeControl->videoSettings(); + if (videoSettings.codec().isEmpty()) + videoCandidates = videoEncodeControl->supportedVideoCodecs(); + else + videoCandidates << videoSettings.codec(); + } + + QString container; + QString audioCodec; + QString videoCodec; + + foreach (const QString &containerCandidate, containerCandidates) { + QSet supportedTypes = mediaContainerControl->supportedStreamTypes(containerCandidate); + + audioCodec.clear(); + videoCodec.clear(); + + if (needAudio) { + bool found = false; + foreach (const QString &audioCandidate, audioCandidates) { + QSet audioTypes = audioEncodeControl->supportedStreamTypes(audioCandidate); + if (!audioTypes.intersect(supportedTypes).isEmpty()) { + found = true; + audioCodec = audioCandidate; + break; + } + } + if (!found) + continue; + } + + if (needVideo) { + bool found = false; + foreach (const QString &videoCandidate, videoCandidates) { + QSet videoTypes = videoEncodeControl->supportedStreamTypes(videoCandidate); + if (!videoTypes.intersect(supportedTypes).isEmpty()) { + found = true; + videoCodec = videoCandidate; + break; + } + } + if (!found) + continue; + } + + container = containerCandidate; + break; + } + + if (container.isEmpty()) { + emit error(QMediaRecorder::FormatError, tr("Not compatible codecs and container format.")); + } else { + mediaContainerControl->setContainerMimeType(container); + + if (needAudio) { + QAudioEncoderSettings audioSettings = audioEncodeControl->audioSettings(); + audioSettings.setCodec(audioCodec); + audioEncodeControl->setAudioSettings(audioSettings); + } + + if (needVideo) { + QVideoEncoderSettings videoSettings = videoEncodeControl->videoSettings(); + videoSettings.setCodec(videoCodec); + videoEncodeControl->setVideoSettings(videoSettings); + } + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerrecordercontrol.h --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerrecordercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerrecordercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -63,7 +63,7 @@ qint64 duration() const; - void applySettings() {} + void applySettings(); public slots: void record(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerv4l2input.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerv4l2input.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,297 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgstreamerv4l2input.h" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE +static inline uint qHash(const QSize& key) { return uint(key.width()*256+key.height()); } + +static bool operator<(const QSize &s1, const QSize s2) +{ + return s1.width()*s1.height() < s2.width()*s2.height(); +} +QT_END_NAMESPACE + +QGstreamerV4L2Input::QGstreamerV4L2Input(QObject *parent) + :QObject(parent) +{ +} + +QGstreamerV4L2Input::~QGstreamerV4L2Input() +{ +} + +GstElement *QGstreamerV4L2Input::buildElement() +{ +#ifndef Q_WS_MAEMO_5 + GstElement *camera = gst_element_factory_make("v4l2src", "camera_source"); +#else + GstElement *camera = gst_element_factory_make("v4l2camsrc", "camera_source"); +#endif + if (camera && !m_device.isEmpty() ) + g_object_set(G_OBJECT(camera), "device", m_device.constData(), NULL); + + return camera; +} + +void QGstreamerV4L2Input::setDevice(const QByteArray &newDevice) +{ + if (m_device != newDevice) { + m_device = newDevice; + updateSupportedResolutions(newDevice); + } +} + +void QGstreamerV4L2Input::setDevice(const QString &device) +{ + setDevice(QFile::encodeName(device)); +} + +void QGstreamerV4L2Input::updateSupportedResolutions(const QByteArray &device) +{ + m_frameRates.clear(); + m_resolutions.clear(); + m_ratesByResolution.clear(); + + QSet allResolutions; + QSet allFrameRates; + + QFile f(device); + + if (!f.open(QFile::ReadOnly)) + return; + + int fd = f.handle(); + + //get the list of formats: + QList supportedFormats; + + { + v4l2_fmtdesc fmt; + memset(&fmt, 0, sizeof(v4l2_fmtdesc)); + + fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + int sanity = 0; + + for (fmt.index = 0;; fmt.index++) { + if (sanity++ > 8) + break; + if( ::ioctl(fd, VIDIOC_ENUM_FMT, &fmt) == -1) { + if(errno == EINVAL) + break; + } + supportedFormats.append(fmt.pixelformat); + } + } + + QList commonSizes; + commonSizes << QSize(128, 96) + < commonRates; + commonRates << 05*1000 << 75*1000 << 10*1000 << 15*1000 << 20*1000 + << 24*1000 << 25*1000 << 30*1000 << 50*1000 << 60*1000; + + + //get the list of resolutions: + + foreach (quint32 format, supportedFormats) { + struct v4l2_frmsizeenum formatSize; + memset(&formatSize, 0, sizeof(formatSize)); + formatSize.pixel_format = format; + + QList sizeList; + + if (0) { + char formatStr[5]; + memcpy(formatStr, &format, 4); + formatStr[4] = 0; + //qDebug() << "trying format" << formatStr; + } + + for (int i=0;;i++) { + formatSize.index = i; + if (ioctl (fd, VIDIOC_ENUM_FRAMESIZES, &formatSize) < 0) + break; + + if (formatSize.type == V4L2_FRMSIZE_TYPE_DISCRETE) { + sizeList.append(QSize(formatSize.discrete.width, formatSize.discrete.height)); + } else { + + foreach (const QSize& candidate, commonSizes) { + if (candidate.width() <= (int)formatSize.stepwise.max_width && + candidate.height() >= (int)formatSize.stepwise.min_width && + candidate.width() % formatSize.stepwise.step_width == 0 && + candidate.height() <= (int)formatSize.stepwise.max_height && + candidate.height() >= (int)formatSize.stepwise.min_height && + candidate.height() % formatSize.stepwise.step_height == 0) { + sizeList.append(candidate); + } + } + + if (!sizeList.contains(QSize(formatSize.stepwise.min_width, formatSize.stepwise.min_height))) + sizeList.prepend(QSize(formatSize.stepwise.min_width, formatSize.stepwise.min_height)); + + if (!sizeList.contains(QSize(formatSize.stepwise.max_width, formatSize.stepwise.max_height))) + sizeList.append(QSize(formatSize.stepwise.max_width, formatSize.stepwise.max_height)); + + break; //stepwise values are returned only for index 0 + } + + } + + //and frameRates for each resolution. + + foreach (const QSize &s, sizeList) { + allResolutions.insert(s); + + struct v4l2_frmivalenum formatInterval; + memset(&formatInterval, 0, sizeof(formatInterval)); + formatInterval.pixel_format = format; + formatInterval.width = s.width(); + formatInterval.height = s.height(); + + QList frameRates; //in 1/1000 of fps + + for (int i=0; ; i++) { + formatInterval.index = i; + + if (ioctl(fd, VIDIOC_ENUM_FRAMEINTERVALS, &formatInterval) < 0) + break; + + if (formatInterval.type == V4L2_FRMIVAL_TYPE_DISCRETE) { + //converts seconds to fps*1000 + if (formatInterval.discrete.numerator) + frameRates.append(qRound(formatInterval.discrete.denominator*1000.0 / formatInterval.discrete.numerator)); + } else { + if (formatInterval.stepwise.min.numerator == 0 || + formatInterval.stepwise.max.numerator == 0) { + qWarning() << "received invalid frame interval"; + break; + } + + + int minRate = qRound(formatInterval.stepwise.min.denominator*1000.0 / + formatInterval.stepwise.min.numerator); + + int maxRate = qRound(formatInterval.stepwise.max.denominator*1000.0 / + formatInterval.stepwise.max.numerator); + + + foreach (int candidate, commonRates) { + if (candidate >= minRate && candidate <= maxRate) + frameRates.append(candidate); + } + + if (!frameRates.contains(minRate)) + frameRates.prepend(minRate); + + if (!frameRates.contains(maxRate)) + frameRates.append(maxRate); + + break; //stepwise values are returned only for index 0 + } + } + allFrameRates.unite(frameRates.toSet()); + m_ratesByResolution[s].unite(frameRates.toSet()); + } + } + + f.close(); + + foreach(int rate, allFrameRates) { + m_frameRates.append(rate/1000.0); + } + + qSort(m_frameRates); + + m_resolutions = allResolutions.toList(); + qSort(m_resolutions); + + //qDebug() << "frame rates:" << m_frameRates; + //qDebug() << "resolutions:" << m_resolutions; +} + + +QList QGstreamerV4L2Input::supportedFrameRates(const QSize &frameSize) const +{ + if (frameSize.isEmpty()) + return m_frameRates; + else { + QList res; + foreach(int rate, m_ratesByResolution[frameSize]) { + res.append(rate/1000.0); + } + return res; + } +} + +QList QGstreamerV4L2Input::supportedResolutions(qreal frameRate) const +{ + Q_UNUSED(frameRate); + return m_resolutions; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerv4l2input.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamerv4l2input.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,84 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGSTREAMERV4L2INPUT_H +#define QGSTREAMERV4L2INPUT_H + +#include +#include +#include +#include +#include "qgstreamercapturesession.h" + +QTM_USE_NAMESPACE +QT_USE_NAMESPACE + +class QGstreamerV4L2Input : public QObject, public QGstreamerVideoInput +{ + Q_OBJECT +public: + QGstreamerV4L2Input(QObject *parent = 0); + virtual ~QGstreamerV4L2Input(); + + GstElement *buildElement(); + + QList supportedFrameRates(const QSize &frameSize = QSize()) const; + QList supportedResolutions(qreal frameRate = -1) const; + + QByteArray device() const; + +public slots: + void setDevice(const QByteArray &device); + void setDevice(const QString &device); + +private: + void updateSupportedResolutions(const QByteArray &device); + + QList m_frameRates; + QList m_resolutions; + + QHash > m_ratesByResolution; + + QByteArray m_device; +}; + +#endif // QGSTREAMERV4L2INPUT_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamervideoencode.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamervideoencode.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamervideoencode.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,7 @@ #include "qgstreamervideoencode.h" #include "qgstreamercapturesession.h" +#include "qgstreamermediacontainercontrol.h" #include @@ -74,12 +75,15 @@ const gchar *descr = gst_element_factory_get_description(factory); m_codecDescriptions.insert(codecName, QString::fromUtf8(descr)); + m_streamTypes.insert(codecName, + QGstreamerMediaContainerControl::supportedStreamTypes(factory, GST_PAD_SRC)); + gst_object_unref(GST_OBJECT(factory)); } } - if (!m_codecs.isEmpty()) - m_videoSettings.setCodec(m_codecs[0]); + //if (!m_codecs.isEmpty()) + // m_videoSettings.setCodec(m_codecs[0]); } QGstreamerVideoEncode::~QGstreamerVideoEncode() @@ -319,3 +323,9 @@ return QPair(); } + + +QSet QGstreamerVideoEncode::supportedStreamTypes(const QString &codecName) const +{ + return m_streamTypes.value(codecName); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamervideoencode.h --- a/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamervideoencode.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamervideoencode.h Mon May 03 13:18:40 2010 +0300 @@ -47,6 +47,7 @@ #include #include +#include #include @@ -79,6 +80,8 @@ GstElement *createEncoder(); + QSet supportedStreamTypes(const QString &codecName) const; + private: QGstreamerCaptureSession *m_session; @@ -89,6 +92,7 @@ QVideoEncoderSettings m_videoSettings; QMap > m_options; + QMap > m_streamTypes; }; #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayercontrol.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -57,6 +57,9 @@ QGstreamerPlayerControl::QGstreamerPlayerControl(QGstreamerPlayerSession *session, QObject *parent) : QMediaPlayerControl(parent) , m_session(session) + , m_state(QMediaPlayer::StoppedState) + , m_mediaStatus(QMediaPlayer::NoMedia) + , m_bufferProgress(-1) , m_stream(0) , m_fifoNotifier(0) , m_fifoCanWrite(false) @@ -75,17 +78,19 @@ connect(m_session, SIGNAL(volumeChanged(int)), this, SIGNAL(volumeChanged(int))); connect(m_session, SIGNAL(stateChanged(QMediaPlayer::State)), - this, SIGNAL(stateChanged(QMediaPlayer::State))); - connect(m_session, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), - this, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus))); + this, SLOT(updateState(QMediaPlayer::State))); connect(m_session,SIGNAL(bufferingProgressChanged(int)), - this, SIGNAL(bufferStatusChanged(int))); + this, SLOT(setBufferProgress(int))); + connect(m_session, SIGNAL(playbackFinished()), + this, SLOT(processEOS())); connect(m_session, SIGNAL(audioAvailableChanged(bool)), this, SIGNAL(audioAvailableChanged(bool))); connect(m_session, SIGNAL(videoAvailableChanged(bool)), this, SIGNAL(videoAvailableChanged(bool))); connect(m_session, SIGNAL(seekableChanged(bool)), this, SIGNAL(seekableChanged(bool))); + connect(m_session, SIGNAL(error(int,QString)), + this, SIGNAL(error(int,QString))); } QGstreamerPlayerControl::~QGstreamerPlayerControl() @@ -110,17 +115,20 @@ QMediaPlayer::State QGstreamerPlayerControl::state() const { - return m_session->state(); + return m_state; } QMediaPlayer::MediaStatus QGstreamerPlayerControl::mediaStatus() const { - return m_session->mediaStatus(); + return m_mediaStatus; } int QGstreamerPlayerControl::bufferStatus() const { - return 100; + if (m_bufferProgress == -1) { + return m_session->state() == QMediaPlayer::StoppedState ? 0 : 100; + } else + return m_bufferProgress; } int QGstreamerPlayerControl::volume() const @@ -142,7 +150,7 @@ { QMediaTimeRange ranges; - if(m_session->isSeekable()) + if (m_session->isSeekable()) ranges.addInterval(0, m_session->duration()); return ranges; @@ -165,23 +173,33 @@ void QGstreamerPlayerControl::play() { - m_session->play(); - - if (m_fifoFd[1] >= 0) { - m_fifoCanWrite = true; - - writeFifo(); + if (m_session->play()) { + if (m_state != QMediaPlayer::PlayingState) + emit stateChanged(m_state = QMediaPlayer::PlayingState); } } void QGstreamerPlayerControl::pause() { - m_session->pause(); + if (m_session->pause()) { + if (m_state != QMediaPlayer::PausedState) + emit stateChanged(m_state = QMediaPlayer::PausedState); + } } void QGstreamerPlayerControl::stop() { - m_session->stop(); + if (m_state != QMediaPlayer::StoppedState) { + m_session->pause(); + if (!m_session->seek(0)) { + m_bufferProgress = -1; + m_session->stop(); + m_session->pause(); + } + emit positionChanged(0); + if (m_state != QMediaPlayer::StoppedState) + emit stateChanged(m_state = QMediaPlayer::StoppedState); + } } void QGstreamerPlayerControl::setVolume(int volume) @@ -206,8 +224,15 @@ void QGstreamerPlayerControl::setMedia(const QMediaContent &content, QIODevice *stream) { + QMediaPlayer::State oldState = m_state; + m_state = QMediaPlayer::StoppedState; m_session->stop(); + if (m_bufferProgress != -1) { + m_bufferProgress = -1; + emit bufferStatusChanged(0); + } + if (m_stream) { closeFifo(); @@ -230,7 +255,25 @@ m_session->load(url); + if (m_fifoFd[1] >= 0) { + m_fifoCanWrite = true; + + writeFifo(); + } + + if (!url.isEmpty()) { + if (m_mediaStatus != QMediaPlayer::LoadingMedia) + emit mediaStatusChanged(m_mediaStatus = QMediaPlayer::LoadingMedia); + m_session->pause(); + } else { + if (m_mediaStatus != QMediaPlayer::NoMedia) + emit mediaStatusChanged(m_mediaStatus = QMediaPlayer::NoMedia); + setBufferProgress(0); + } + emit mediaChanged(m_currentResource); + if (m_state != oldState) + emit stateChanged(m_state); } void QGstreamerPlayerControl::setVideoOutput(QObject *output) @@ -248,6 +291,68 @@ return m_session->isVideoAvailable(); } +void QGstreamerPlayerControl::updateState(QMediaPlayer::State state) +{ + QMediaPlayer::MediaStatus oldStatus = m_mediaStatus; + + switch (state) { + case QMediaPlayer::StoppedState: + if (m_state != QMediaPlayer::StoppedState) + emit stateChanged(m_state = QMediaPlayer::StoppedState); + break; + + case QMediaPlayer::PlayingState: + case QMediaPlayer::PausedState: + if (m_state == QMediaPlayer::StoppedState) + m_mediaStatus = QMediaPlayer::LoadedMedia; + else { + if (m_bufferProgress == -1) + m_mediaStatus = QMediaPlayer::BufferedMedia; + } + break; + } + + if (m_mediaStatus != oldStatus) + emit mediaStatusChanged(m_mediaStatus); +} + +void QGstreamerPlayerControl::processEOS() +{ + m_mediaStatus = QMediaPlayer::EndOfMedia; + m_state = QMediaPlayer::StoppedState; + + emit stateChanged(m_state); + emit mediaStatusChanged(m_mediaStatus); +} + +void QGstreamerPlayerControl::setBufferProgress(int progress) +{ + if (m_bufferProgress == progress || m_mediaStatus == QMediaPlayer::NoMedia) + return; + + QMediaPlayer::MediaStatus oldStatus = m_mediaStatus; + + m_bufferProgress = progress; + + if (m_state == QMediaPlayer::StoppedState) { + m_mediaStatus = QMediaPlayer::LoadedMedia; + } else { + if (m_bufferProgress < 100) { + m_mediaStatus = QMediaPlayer::StalledMedia; + m_session->pause(); + } else { + m_mediaStatus = QMediaPlayer::BufferedMedia; + if (m_state == QMediaPlayer::PlayingState) + m_session->play(); + } + } + + if (m_mediaStatus != oldStatus) + emit mediaStatusChanged(m_mediaStatus); + + emit bufferStatusChanged(m_bufferProgress); +} + void QGstreamerPlayerControl::writeFifo() { if (m_fifoCanWrite) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayercontrol.h --- a/qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -108,11 +108,18 @@ void writeFifo(); void fifoReadyWrite(int socket); + void updateState(QMediaPlayer::State); + void processEOS(); + void setBufferProgress(int progress); + private: bool openFifo(); void closeFifo(); QGstreamerPlayerSession *m_session; + QMediaPlayer::State m_state; + QMediaPlayer::MediaStatus m_mediaStatus; + int m_bufferProgress; QMediaContent m_currentResource; QIODevice *m_stream; QSocketNotifier *m_fifoNotifier; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.cpp --- a/qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.cpp Mon May 03 13:18:40 2010 +0300 @@ -56,7 +56,6 @@ QGstreamerPlayerSession::QGstreamerPlayerSession(QObject *parent) :QObject(parent), m_state(QMediaPlayer::StoppedState), - m_mediaStatus(QMediaPlayer::UnknownMediaStatus), m_busHelper(0), m_playbin(0), m_nullVideoOutput(0), @@ -91,6 +90,7 @@ m_busHelper->installSyncEventFilter(this); m_nullVideoOutput = gst_element_factory_make("fakesink", NULL); + gst_object_ref(GST_OBJECT(m_nullVideoOutput)); g_object_set(G_OBJECT(m_playbin), "video-sink", m_nullVideoOutput, NULL); // Initial volume @@ -108,17 +108,19 @@ delete m_busHelper; gst_object_unref(GST_OBJECT(m_bus)); gst_object_unref(GST_OBJECT(m_playbin)); + gst_object_unref(GST_OBJECT(m_nullVideoOutput)); } } void QGstreamerPlayerSession::load(const QUrl &url) { m_url = url; + if (m_playbin) { m_tags.clear(); emit tagsChanged(); - g_object_set(G_OBJECT(m_playbin), "uri", m_url.toString().toLocal8Bit().constData(), NULL); + g_object_set(G_OBJECT(m_playbin), "uri", m_url.toEncoded().constData(), NULL); if (!m_streamTypes.isEmpty()) { m_streamProperties.clear(); @@ -258,24 +260,36 @@ return m_seekable; } -void QGstreamerPlayerSession::play() +bool QGstreamerPlayerSession::play() { if (m_playbin) { if (gst_element_set_state(m_playbin, GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) { qWarning() << "GStreamer; Unable to play -" << m_url.toString(); - m_state = QMediaPlayer::StoppedState; - m_mediaStatus = QMediaPlayer::InvalidMedia; + m_state = QMediaPlayer::StoppedState; emit stateChanged(m_state); - emit mediaStatusChanged(m_mediaStatus); - } + emit error(int(QMediaPlayer::ResourceError), tr("Unable to play %1").arg(m_url.path())); + } else + return true; } + + return false; } -void QGstreamerPlayerSession::pause() +bool QGstreamerPlayerSession::pause() { - if (m_playbin) - gst_element_set_state(m_playbin, GST_STATE_PAUSED); + if (m_playbin) { + if (gst_element_set_state(m_playbin, GST_STATE_PAUSED) == GST_STATE_CHANGE_FAILURE) { + qWarning() << "GStreamer; Unable to play -" << m_url.toString(); + m_state = QMediaPlayer::StoppedState; + + emit stateChanged(m_state); + emit error(int(QMediaPlayer::ResourceError), tr("Unable to play %1").arg(m_url.path())); + } else + return true; + } + + return false; } void QGstreamerPlayerSession::stop() @@ -289,31 +303,44 @@ } } -void QGstreamerPlayerSession::seek(qint64 ms) +bool QGstreamerPlayerSession::seek(qint64 ms) { if (m_playbin && m_state != QMediaPlayer::StoppedState) { gint64 position = (gint64)ms * 1000000; - gst_element_seek_simple(m_playbin, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, position); + return gst_element_seek_simple(m_playbin, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, position); } + + return false; } void QGstreamerPlayerSession::setVolume(int volume) { - m_volume = volume; - emit volumeChanged(m_volume); + if (m_volume != volume) { + m_volume = volume; - if (!m_muted && m_playbin) - g_object_set(G_OBJECT(m_playbin), "volume", m_volume/100.0, NULL); + if (m_playbin) { +#ifndef USE_PLAYBIN2 + if(!m_muted) +#endif + g_object_set(G_OBJECT(m_playbin), "volume", m_volume/100.0, NULL); + } + emit volumeChanged(m_volume); + } } void QGstreamerPlayerSession::setMuted(bool muted) { - m_muted = muted; + if (m_muted != muted) { + m_muted = muted; - g_object_set(G_OBJECT(m_playbin), "volume", (m_muted ? 0 : m_volume/100.0), NULL); - - emit mutedStateChanged(m_muted); +#ifdef USE_PLAYBIN2 + g_object_set(G_OBJECT(m_playbin), "mute", m_muted, NULL); +#else + g_object_set(G_OBJECT(m_playbin), "volume", (m_muted ? 0 : m_volume/100.0), NULL); +#endif + emit mutedStateChanged(m_muted); + } } static void addTagToMap(const GstTagList *list, @@ -385,14 +412,6 @@ } } -void QGstreamerPlayerSession::setMediaStatus(QMediaPlayer::MediaStatus status) -{ - if (m_mediaStatus != status) { - m_mediaStatus = status; - emit mediaStatusChanged(status); - } -} - bool QGstreamerPlayerSession::processSyncMessage(const QGstreamerMessage &message) { GstMessage* gm = message.rawMessage(); @@ -422,6 +441,13 @@ emit positionChanged(newPos); } + double volume = 1.0; + g_object_get(G_OBJECT(m_playbin), "volume", &volume, NULL); + if (m_volume != int(volume*100)) { + m_volume = int(volume*100); + emit volumeChanged(m_volume); + } + } else { //tag message comes from elements inside playbin, not from playbin itself if (GST_MESSAGE_TYPE(gm) == GST_MESSAGE_TAG) { @@ -437,9 +463,6 @@ if (GST_MESSAGE_SRC(gm) == GST_OBJECT_CAST(m_playbin)) { switch (GST_MESSAGE_TYPE(gm)) { - case GST_MESSAGE_DURATION: - break; - case GST_MESSAGE_STATE_CHANGED: { GstState oldState; @@ -459,24 +482,19 @@ switch (newState) { case GST_STATE_VOID_PENDING: case GST_STATE_NULL: - setMediaStatus(QMediaPlayer::UnknownMediaStatus); setSeekable(false); if (m_state != QMediaPlayer::StoppedState) emit stateChanged(m_state = QMediaPlayer::StoppedState); break; case GST_STATE_READY: - setMediaStatus(QMediaPlayer::LoadedMedia); setSeekable(false); if (m_state != QMediaPlayer::StoppedState) emit stateChanged(m_state = QMediaPlayer::StoppedState); break; case GST_STATE_PAUSED: - //don't emit state changes for intermediate states - if (m_state != QMediaPlayer::PausedState && pending == GST_STATE_VOID_PENDING) + if (m_state != QMediaPlayer::PausedState) emit stateChanged(m_state = QMediaPlayer::PausedState); - setMediaStatus(QMediaPlayer::LoadedMedia); - //check for seekable if (oldState == GST_STATE_READY) { /* @@ -510,29 +528,40 @@ if (m_state != QMediaPlayer::PlayingState) emit stateChanged(m_state = QMediaPlayer::PlayingState); + break; } } break; case GST_MESSAGE_EOS: - if (m_state != QMediaPlayer::StoppedState) - emit stateChanged(m_state = QMediaPlayer::StoppedState); - - setMediaStatus(QMediaPlayer::EndOfMedia); - emit playbackFinished(); break; case GST_MESSAGE_TAG: case GST_MESSAGE_STREAM_STATUS: case GST_MESSAGE_UNKNOWN: + break; case GST_MESSAGE_ERROR: + { + GError *err; + gchar *debug; + gst_message_parse_error (gm, &err, &debug); + emit error(int(QMediaPlayer::ResourceError), QString::fromUtf8(err->message)); + qWarning() << "Error:" << QString::fromUtf8(err->message); + g_error_free (err); + g_free (debug); + } + break; case GST_MESSAGE_WARNING: case GST_MESSAGE_INFO: break; case GST_MESSAGE_BUFFERING: - setMediaStatus(QMediaPlayer::BufferingMedia); + { + int progress = 0; + gst_message_parse_buffering(gm, &progress); + emit bufferingProgressChanged(progress); + } break; case GST_MESSAGE_STATE_DIRTY: case GST_MESSAGE_STEP_DONE: @@ -542,8 +571,32 @@ case GST_MESSAGE_STRUCTURE_CHANGE: case GST_MESSAGE_APPLICATION: case GST_MESSAGE_ELEMENT: + break; case GST_MESSAGE_SEGMENT_START: + { + const GstStructure *structure = gst_message_get_structure(gm); + qint64 position = g_value_get_int64(gst_structure_get_value(structure, "position")); + position /= 1000000; + m_lastPosition = position; + emit positionChanged(position); + } + break; case GST_MESSAGE_SEGMENT_DONE: + break; + case GST_MESSAGE_DURATION: + { + GstFormat format = GST_FORMAT_TIME; + gint64 duration = 0; + + if (gst_element_query_duration(m_playbin, &format, &duration)) { + int newDuration = duration / 1000000; + if (m_duration != newDuration) { + m_duration = newDuration; + emit durationChanged(m_duration); + } + } + } + break; case GST_MESSAGE_LATENCY: #if (GST_VERSION_MAJOR >= 0) && (GST_VERSION_MINOR >= 10) && (GST_VERSION_MICRO >= 13) case GST_MESSAGE_ASYNC_START: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.h --- a/qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.h Mon May 03 13:18:40 2010 +0300 @@ -69,7 +69,6 @@ QUrl url() const; QMediaPlayer::State state() const { return m_state; } - QMediaPlayer::MediaStatus mediaStatus() const { return m_mediaStatus; } qint64 duration() const; qint64 position() const; @@ -104,11 +103,11 @@ public slots: void load(const QUrl &url); - void play(); - void pause(); + bool play(); + bool pause(); void stop(); - void seek(qint64 pos); + bool seek(qint64 pos); void setVolume(int volume); void setMuted(bool muted); @@ -117,7 +116,6 @@ void durationChanged(qint64 duration); void positionChanged(qint64 position); void stateChanged(QMediaPlayer::State state); - void mediaStatusChanged(QMediaPlayer::MediaStatus mediaStatus); void volumeChanged(int volume); void mutedStateChanged(bool muted); void audioAvailableChanged(bool audioAvailable); @@ -128,6 +126,7 @@ void tagsChanged(); void streamsChanged(); void seekableChanged(bool); + void error(int error, const QString &errorString); private slots: void busMessage(const QGstreamerMessage &message); @@ -135,11 +134,8 @@ void setSeekable(bool); private: - void setMediaStatus(QMediaPlayer::MediaStatus); - QUrl m_url; QMediaPlayer::State m_state; - QMediaPlayer::MediaStatus m_mediaStatus; QGstreamerBusHelper* m_busHelper; GstElement* m_playbin; GstElement* m_nullVideoOutput; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/qgstreameraudioinputendpointselector.cpp --- a/qtmobility/plugins/multimedia/gstreamer/qgstreameraudioinputendpointselector.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/qgstreameraudioinputendpointselector.cpp Mon May 03 13:18:40 2010 +0300 @@ -104,8 +104,10 @@ { m_names.clear(); m_descriptions.clear(); +#ifndef Q_WS_MAEMO_5 updateAlsaDevices(); updateOssDevices(); +#endif updatePulseDevices(); if (m_names.size() > 0) m_audioInput = m_names.at(0); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/qgstreamerserviceplugin.cpp --- a/qtmobility/plugins/multimedia/gstreamer/qgstreamerserviceplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/qgstreamerserviceplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -50,7 +50,9 @@ #ifdef QMEDIA_GSTREAMER_PLAYER #include "qgstreamerplayerservice.h" #endif -#ifdef QMEDIA_GSTREAMER_CAPTURE +#if defined(QMEDIA_GSTREAMER_CAPTURE) && (defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) +#include "qgstreamercaptureservice_maemo.h" +#elif defined(QMEDIA_GSTREAMER_CAPTURE) #include "qgstreamercaptureservice.h" #endif @@ -77,7 +79,6 @@ #endif #ifdef QMEDIA_GSTREAMER_CAPTURE << QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE) - << QLatin1String(Q_MEDIASERVICE_CAMERA) #endif ; } @@ -91,9 +92,6 @@ #ifdef QMEDIA_GSTREAMER_CAPTURE if (key == QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE)) return new QGstreamerCaptureService(key); - - if (key == QLatin1String(Q_MEDIASERVICE_CAMERA)) - return new QGstreamerCaptureService(key); #endif //qDebug() << "unsupported key:" << key; @@ -105,77 +103,4 @@ delete service; } -QList QGstreamerServicePlugin::devices(const QByteArray &service) const -{ - if (service == Q_MEDIASERVICE_CAMERA) { - if (m_cameraDevices.isEmpty()) - updateDevices(); - - return m_cameraDevices; - } - - return QList(); -} - -QString QGstreamerServicePlugin::deviceDescription(const QByteArray &service, const QByteArray &device) -{ - if (service == Q_MEDIASERVICE_CAMERA) { - if (m_cameraDevices.isEmpty()) - updateDevices(); - - for (int i=0; i= 0; ++input.index) { - if(input.type == V4L2_INPUT_TYPE_CAMERA || input.type == 0) { - isCamera = ::ioctl(fd, VIDIOC_S_INPUT, input.index) != 0; - break; - } - } - - if (isCamera) { - // find out its driver "name" - QString name; - struct v4l2_capability vcap; - memset(&vcap, 0, sizeof(struct v4l2_capability)); - - if (ioctl(fd, VIDIOC_QUERYCAP, &vcap) != 0) - name = entryInfo.fileName(); - else - name = QString((const char*)vcap.card); - //qDebug() << "found camera: " << name; - - m_cameraDevices.append(entryInfo.filePath().toLocal8Bit()); - m_cameraDescriptions.append(name); - } - ::close(fd); - } -} - Q_EXPORT_PLUGIN2(gstengine, QGstreamerServicePlugin); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/qgstreamerserviceplugin.h --- a/qtmobility/plugins/multimedia/gstreamer/qgstreamerserviceplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/qgstreamerserviceplugin.h Mon May 03 13:18:40 2010 +0300 @@ -48,23 +48,13 @@ QTM_USE_NAMESPACE -class QGstreamerServicePlugin : public QMediaServiceProviderPlugin, public QMediaServiceSupportedDevicesInterface +class QGstreamerServicePlugin : public QMediaServiceProviderPlugin { Q_OBJECT - Q_INTERFACES(QtMobility::QMediaServiceSupportedDevicesInterface) public: QStringList keys() const; QMediaService* create(QString const& key); void release(QMediaService *service); - - QList devices(const QByteArray &service) const; - QString deviceDescription(const QByteArray &service, const QByteArray &device); - -private: - void updateDevices() const; - - mutable QList m_cameraDevices; - mutable QStringList m_cameraDescriptions; }; #endif // QGSTREAMERSERVICEPLUGIN_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/qgstreamervideooverlay.cpp --- a/qtmobility/plugins/multimedia/gstreamer/qgstreamervideooverlay.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/qgstreamervideooverlay.cpp Mon May 03 13:18:40 2010 +0300 @@ -50,7 +50,7 @@ : QVideoWindowControl(parent) , m_surface(new QX11VideoSurface) , m_videoSink(reinterpret_cast(QVideoSurfaceGstSink::createSink(m_surface))) - , m_aspectRatioMode(QVideoWidget::KeepAspectRatio) + , m_aspectRatioMode(Qt::KeepAspectRatio) , m_fullScreen(false) { if (m_videoSink) { @@ -92,12 +92,12 @@ setScaledDisplayRect(); } -QVideoWidget::AspectRatioMode QGstreamerVideoOverlay::aspectRatioMode() const +Qt::AspectRatioMode QGstreamerVideoOverlay::aspectRatioMode() const { return m_aspectRatioMode; } -void QGstreamerVideoOverlay::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QGstreamerVideoOverlay::setAspectRatioMode(Qt::AspectRatioMode mode) { m_aspectRatioMode = mode; @@ -190,21 +190,36 @@ void QGstreamerVideoOverlay::setScaledDisplayRect() { + QRect formatViewport = m_surface->surfaceFormat().viewport(); + switch (m_aspectRatioMode) { - case QVideoWidget::KeepAspectRatio: + case Qt::KeepAspectRatio: { - QSize size = m_surface->surfaceFormat().viewport().size(); - + QSize size = formatViewport.size(); size.scale(m_displayRect.size(), Qt::KeepAspectRatio); QRect rect(QPoint(0, 0), size); rect.moveCenter(m_displayRect.center()); m_surface->setDisplayRect(rect); + m_surface->setViewport(formatViewport); } break; - case QVideoWidget::IgnoreAspectRatio: + case Qt::IgnoreAspectRatio: m_surface->setDisplayRect(m_displayRect); + m_surface->setViewport(formatViewport); + break; + case Qt::KeepAspectRatioByExpanding: + { + QSize size = m_displayRect.size(); + size.scale(formatViewport.size(), Qt::KeepAspectRatio); + + QRect viewport(QPoint(0, 0), size); + viewport.moveCenter(formatViewport.center()); + + m_surface->setDisplayRect(m_displayRect); + m_surface->setViewport(viewport); + } break; }; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/qgstreamervideooverlay.h --- a/qtmobility/plugins/multimedia/gstreamer/qgstreamervideooverlay.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/qgstreamervideooverlay.h Mon May 03 13:18:40 2010 +0300 @@ -72,8 +72,8 @@ QSize nativeSize() const; - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); void repaint(); @@ -101,7 +101,7 @@ QX11VideoSurface *m_surface; GstElement *m_videoSink; - QVideoWidget::AspectRatioMode m_aspectRatioMode; + Qt::AspectRatioMode m_aspectRatioMode; QRect m_displayRect; bool m_fullScreen; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/qgstreamervideowidget.cpp --- a/qtmobility/plugins/multimedia/gstreamer/qgstreamervideowidget.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/qgstreamervideowidget.cpp Mon May 03 13:18:40 2010 +0300 @@ -112,6 +112,11 @@ gst_element_set_state(m_videoSink, GST_STATE_NULL); g_object_set(G_OBJECT(m_videoSink), "force-aspect-ratio", 1, (const char*)NULL); +#ifdef Q_WS_MAEMO_5 + //the overlay xvideo adapter fails to switch winId, + //use "SGX Textured Video" adapter instead + g_object_set(G_OBJECT(m_videoSink), "device", "1", NULL); +#endif } } @@ -120,6 +125,8 @@ gst_object_ref (GST_OBJECT (m_videoSink)); //Take ownership gst_object_sink (GST_OBJECT (m_videoSink)); + + } QGstreamerVideoWidgetControl::~QGstreamerVideoWidgetControl() @@ -218,17 +225,17 @@ return m_widget; } -QVideoWidget::AspectRatioMode QGstreamerVideoWidgetControl::aspectRatioMode() const +Qt::AspectRatioMode QGstreamerVideoWidgetControl::aspectRatioMode() const { return m_aspectRatioMode; } -void QGstreamerVideoWidgetControl::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QGstreamerVideoWidgetControl::setAspectRatioMode(Qt::AspectRatioMode mode) { if (m_videoSink) { g_object_set(G_OBJECT(m_videoSink), "force-aspect-ratio", - (mode == QVideoWidget::KeepAspectRatio), + (mode == Qt::KeepAspectRatio), (const char*)NULL); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/qgstreamervideowidget.h --- a/qtmobility/plugins/multimedia/gstreamer/qgstreamervideowidget.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/qgstreamervideowidget.h Mon May 03 13:18:40 2010 +0300 @@ -65,8 +65,8 @@ QWidget *videoWidget(); - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); bool isFullScreen() const; void setFullScreen(bool fullScreen); @@ -96,7 +96,7 @@ GstElement *m_videoSink; QGstreamerVideoWidget *m_widget; WId m_windowId; - QVideoWidget::AspectRatioMode m_aspectRatioMode; + Qt::AspectRatioMode m_aspectRatioMode; bool m_fullScreen; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/qvideosurfacegstsink.cpp --- a/qtmobility/plugins/multimedia/gstreamer/qvideosurfacegstsink.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/qvideosurfacegstsink.cpp Mon May 03 13:18:40 2010 +0300 @@ -227,7 +227,8 @@ { QVideoFrame::Format_UYVY, GST_MAKE_FOURCC('U','Y','V','Y'), 16 }, { QVideoFrame::Format_YUYV, GST_MAKE_FOURCC('Y','U','Y','2'), 16 }, { QVideoFrame::Format_NV12, GST_MAKE_FOURCC('N','V','1','2'), 8 }, - { QVideoFrame::Format_NV21, GST_MAKE_FOURCC('N','V','2','1'), 8 } + { QVideoFrame::Format_NV21, GST_MAKE_FOURCC('N','V','2','1'), 8 }, + { QVideoFrame::Format_AYUV444, GST_MAKE_FOURCC('A','Y','U','V'), 32 } }; static int indexOfYuvColor(QVideoFrame::PixelFormat format) @@ -268,9 +269,12 @@ { { QVideoFrame::Format_RGB32 , 32, 24, 4321, 0x0000FF00, 0x00FF0000, 0xFF000000, 0x00000000 }, { QVideoFrame::Format_RGB32 , 32, 24, 1234, 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000 }, + { QVideoFrame::Format_BGR32 , 32, 24, 4321, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x00000000 }, + { QVideoFrame::Format_BGR32 , 32, 24, 1234, 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000 }, { QVideoFrame::Format_ARGB32, 32, 24, 4321, 0x0000FF00, 0x00FF0000, 0xFF000000, 0x000000FF }, { QVideoFrame::Format_ARGB32, 32, 24, 1234, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000 }, { QVideoFrame::Format_RGB24 , 24, 24, 4321, 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000 }, + { QVideoFrame::Format_BGR24 , 24, 24, 4321, 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000 }, { QVideoFrame::Format_RGB565, 16, 16, 1234, 0x0000F800, 0x000007E0, 0x0000001F, 0x00000000 } }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/qx11videosurface.cpp --- a/qtmobility/plugins/multimedia/gstreamer/qx11videosurface.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/qx11videosurface.cpp Mon May 03 13:18:40 2010 +0300 @@ -162,6 +162,8 @@ void QX11VideoSurface::setWinId(WId id) { + //qDebug() << "setWinID:" << id; + if (id == m_winId) return; @@ -189,13 +191,18 @@ if (m_image) { m_image = 0; - if (!start(surfaceFormat())) + if (!start(surfaceFormat())) { QAbstractVideoSurface::stop(); + qWarning() << "Failed to start video surface with format" << surfaceFormat(); + } } - } else if (m_image) { - m_image = 0; + } else { + qWarning() << "Failed to find XVideo port"; + if (m_image) { + m_image = 0; - QAbstractVideoSurface::stop(); + QAbstractVideoSurface::stop(); + } } emit supportedFormatsChanged(); @@ -211,6 +218,16 @@ m_displayRect = rect; } +QRect QX11VideoSurface::viewport() const +{ + return m_viewport; +} + +void QX11VideoSurface::setViewport(const QRect &rect) +{ + m_viewport = rect; +} + int QX11VideoSurface::brightness() const { return getAttribute("XV_BRIGHTNESS", m_brightnessRange.first, m_brightnessRange.second); @@ -440,7 +457,13 @@ bool portFound = false; if (XvQueryAdaptors(QX11Info::display(), m_winId, &count, &adaptors) == Success) { +#ifdef Q_WS_MAEMO_5 + //the overlay xvideo adapter fails to switch winId, + //prefer the "SGX Textured Video" adapter instead + for (unsigned int i = count-1; i >=0 && !portFound; --i) { +#else for (unsigned int i = 0; i < count && !portFound; ++i) { +#endif if (adaptors[i].type & XvImageMask) { m_portId = adaptors[i].base_id; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/gstreamer/qx11videosurface.h --- a/qtmobility/plugins/multimedia/gstreamer/qx11videosurface.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/gstreamer/qx11videosurface.h Mon May 03 13:18:40 2010 +0300 @@ -64,6 +64,9 @@ QRect displayRect() const; void setDisplayRect(const QRect &rect); + QRect viewport() const; + void setViewport(const QRect &rect); + int brightness() const; void setBrightness(int brightness); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/multimedia.pro --- a/qtmobility/plugins/multimedia/multimedia.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/multimedia.pro Mon May 03 13:18:40 2010 +0300 @@ -8,6 +8,10 @@ SUBDIRS += m3u +win32 { + contains(QT_CONFIG, multimedia): SUBDIRS += audiocapture +} + win32:!wince* { win32-msvc2005|win32-msvc2008: SUBDIRS *= directshow wmp } @@ -26,14 +30,12 @@ contains(QT_CONFIG, multimedia): SUBDIRS += audiocapture } - system(pkg-config --exists \'libpulse >= 0.9.14\'):SUBDIRS += pulseaudio - SUBDIRS += v4l } mac { - contains(QT_CONFIG, phonon): SUBDIRS += phonon contains(QT_CONFIG, multimedia): SUBDIRS += audiocapture + SUBDIRS += qt7 } symbian:SUBDIRS += symbian diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/phonon.pro --- a/qtmobility/plugins/multimedia/phonon/phonon.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -TEMPLATE = lib -CONFIG += plugin -QT += phonon -TARGET = $$qtLibraryTarget(phononengine) - -PLUGIN_TYPE = mediaservice - -include (../../../common.pri) - -CONFIG += mobility -MOBILITY = multimedia - -INCLUDEPATH += ../../../src/multimedia - -DEPENDPATH += . - -HEADERS += \ - qphononplayercontrol.h \ - qphononplayerservice.h \ - qphononvideowidget.h \ - qphononserviceplugin.h \ - qphononmetadataprovider.h \ - -SOURCES += \ - qphononplayercontrol.cpp \ - qphononplayerservice.cpp \ - qphononvideowidget.cpp \ - qphononserviceplugin.cpp \ - qphononmetadataprovider.cpp \ - -symbian { - TARGET.CAPABILITY = ALL -TCB - TARGET.EPOCALLOWDLLDATA = 1 -} -target.path=$$QT_MOBILITY_PREFIX/plugins/mediaservice -INSTALLS+=target diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/qphononmetadataprovider.cpp --- a/qtmobility/plugins/multimedia/phonon/qphononmetadataprovider.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,145 +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 Qt Mobility Components. -** -** $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 "qphononmetadataprovider.h" - -#include - -#include - -QPhononMetaDataProvider::QPhononMetaDataProvider(Phonon::MediaObject *session, QObject *parent) - :QMetaDataControl(parent), m_session(session), m_metaDataAvailable(false) -{ - connect(m_session, SIGNAL(metaDataChanged()), SLOT(updateTags())); - - m_keysMap["TITLE"] = QtMedia::Title; - m_keysMap["ALBUM"] = QtMedia::AlbumTitle; - m_keysMap["TRACKNUMBER"] = QtMedia::TrackNumber; - m_keysMap["ARTIST"] = QtMedia::AlbumArtist; - m_keysMap["PERFORMER"] = QtMedia::ContributingArtist; - m_keysMap["COPYRIGHT"] = QtMedia::Copyright; - m_keysMap["DESCRIPTION"] = QtMedia::Description; - m_keysMap["GENRE"] = QtMedia::Genre; - m_keysMap["DATE"] = QtMedia::Date; -} - -QPhononMetaDataProvider::~QPhononMetaDataProvider() -{ -} - -bool QPhononMetaDataProvider::isMetaDataAvailable() const -{ - return !m_session->metaData().isEmpty(); -} - -bool QPhononMetaDataProvider::isWritable() const -{ - return false; -} - -QVariant QPhononMetaDataProvider::metaData(QtMedia::MetaData key) const -{ - switch (key) { - case QtMedia::AlbumArtist: - return m_session->metaData(Phonon::ArtistMetaData); - case QtMedia::ContributingArtist: - return m_session->metaData("PERFORMER"); - case QtMedia::AlbumTitle: - return m_session->metaData(Phonon::AlbumMetaData); - case QtMedia::Title: - return m_session->metaData(Phonon::TitleMetaData); - case QtMedia::Date: - return m_session->metaData(Phonon::DateMetaData); - case QtMedia::TrackNumber: - return m_session->metaData(Phonon::TracknumberMetaData); - case QtMedia::Description: - return m_session->metaData(Phonon::DescriptionMetaData); - default: - return QVariant(); - } -} - -void QPhononMetaDataProvider::setMetaData(QtMedia::MetaData key, QVariant const &value) -{ - Q_UNUSED(key); - Q_UNUSED(value); -} - -QList QPhononMetaDataProvider::availableMetaData() const -{ - QList res; - QMap metaData = m_session->metaData(); - QMapIterator i(metaData); - while (i.hasNext()) { - i.next(); - QtMedia::MetaData tag = m_keysMap.value(i.key(), QtMedia::MetaData(-1)); - - if (tag != -1) - res.append(tag); - } - - return res; -} - -QVariant QPhononMetaDataProvider::extendedMetaData(const QString &key) const -{ - return m_session->metaData(key); -} - -void QPhononMetaDataProvider::setExtendedMetaData(const QString &key, QVariant const &value) -{ - Q_UNUSED(key); - Q_UNUSED(value); -} - -QStringList QPhononMetaDataProvider::availableExtendedMetaData() const -{ - return m_session->metaData().keys(); -} - -void QPhononMetaDataProvider::updateTags() -{ - emit metaDataChanged(); - if (isMetaDataAvailable() != m_metaDataAvailable) { - m_metaDataAvailable = !m_metaDataAvailable; - emit metaDataAvailableChanged(m_metaDataAvailable); - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/qphononmetadataprovider.h --- a/qtmobility/plugins/multimedia/phonon/qphononmetadataprovider.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +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 Qt Mobility Components. -** -** $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 QPHONONMETADATAPROVIDER_H -#define QPHONONMETADATAPROVIDER_H - -#include - -#include - -class QPhononPlayerSession; - -QTM_USE_NAMESPACE - -class QPhononMetaDataProvider : public QMetaDataControl -{ - Q_OBJECT -public: - QPhononMetaDataProvider( Phonon::MediaObject *session, QObject *parent ); - virtual ~QPhononMetaDataProvider(); - - bool isMetaDataAvailable() const; - bool isWritable() const; - - QVariant metaData(QtMedia::MetaData key) const; - void setMetaData(QtMedia::MetaData key, const QVariant &value); - QList availableMetaData() const; - - QVariant extendedMetaData(const QString &key) const; - void setExtendedMetaData(const QString &key, const QVariant &value); - QStringList availableExtendedMetaData() const; - -private slots: - void updateTags(); - -private: - Phonon::MediaObject *m_session; - bool m_metaDataAvailable; - QMap m_keysMap; -}; - -#endif // QPHONONMETADATAPROVIDER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/qphononplayercontrol.cpp --- a/qtmobility/plugins/multimedia/phonon/qphononplayercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,273 +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 Qt Mobility Components. -** -** $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 "qphononplayercontrol.h" - -#include - -#include -#include - -QPhononPlayerControl::QPhononPlayerControl(Phonon::MediaObject *session, QObject *parent) - : QMediaPlayerControl(parent) - , m_session(session) - , m_state(QMediaPlayer::StoppedState) - , m_mediaStatus(QMediaPlayer::NoMedia) - , m_mediaStream(0) -{ - m_audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this); - Phonon::createPath(m_session, m_audioOutput); - - m_session->setTickInterval(1000); - - connect(m_session, SIGNAL(tick(qint64)), - this, SIGNAL(positionChanged(qint64))); - connect(m_session, SIGNAL(totalTimeChanged(qint64)), - this, SIGNAL(durationChanged(qint64))); - - connect(m_audioOutput, SIGNAL(mutedChanged(bool)), - this, SIGNAL(mutedChanged(bool))); - connect(m_audioOutput, SIGNAL(volumeChanged(qreal)), - this, SLOT(updateVolume())); - - connect(m_session, SIGNAL(stateChanged(Phonon::State,Phonon::State)), - this, SLOT(updateState(Phonon::State,Phonon::State))); - connect(m_session, SIGNAL(hasVideoChanged(bool)), - this, SIGNAL(videoAvailableChanged(bool))); - connect(m_session, SIGNAL(seekableChanged(bool)), - this, SIGNAL(seekableChanged(bool))); - connect(m_session, SIGNAL(finished()), - this, SLOT(processEOS())); -} - -QPhononPlayerControl::~QPhononPlayerControl() -{ -} - -qint64 QPhononPlayerControl::position() const -{ - return m_session->currentTime(); -} - -qint64 QPhononPlayerControl::duration() const -{ - return m_session->totalTime(); -} - -QMediaPlayer::State QPhononPlayerControl::state() const -{ - return m_state; -} - -QMediaPlayer::MediaStatus QPhononPlayerControl::mediaStatus() const -{ - return m_mediaStatus; -} - -int QPhononPlayerControl::bufferStatus() const -{ - return 100; -} - -int QPhononPlayerControl::volume() const -{ - return int(m_audioOutput->volume()*100); -} - -bool QPhononPlayerControl::isMuted() const -{ - return m_audioOutput->isMuted(); -} - -bool QPhononPlayerControl::isSeekable() const -{ - return m_session->isSeekable(); -} - -QMediaTimeRange QPhononPlayerControl::availablePlaybackRanges() const -{ - QMediaTimeRange ranges; - - if(m_session->isSeekable()) - ranges.addInterval(0, m_session->totalTime()); - - return ranges; -} - -qreal QPhononPlayerControl::playbackRate() const -{ - return 1; -} - -void QPhononPlayerControl::setPlaybackRate(qreal rate) -{ - Q_UNUSED(rate); -} - -void QPhononPlayerControl::setPosition(qint64 pos) -{ - m_session->seek(pos); -} - -void QPhononPlayerControl::play() -{ - m_state = QMediaPlayer::PlayingState; - - m_session->play(); - - if (m_state == QMediaPlayer::PlayingState) - emit stateChanged(m_state); - -} - -void QPhononPlayerControl::pause() -{ - m_state = QMediaPlayer::PausedState; - - m_session->pause(); - - if (m_state == QMediaPlayer::PausedState) - emit stateChanged(m_state); -} - -void QPhononPlayerControl::stop() -{ - m_state = QMediaPlayer::StoppedState; - - m_session->stop(); - - if (m_state == QMediaPlayer::StoppedState) - emit stateChanged(m_state); -} - -void QPhononPlayerControl::setVolume(int volume) -{ - m_audioOutput->setVolume(volume/100.0); -} - -void QPhononPlayerControl::setMuted(bool muted) -{ - m_audioOutput->setMuted(muted); -} - -QMediaContent QPhononPlayerControl::media() const -{ - return m_resources; -} - -const QIODevice *QPhononPlayerControl::mediaStream() const -{ - return m_mediaStream; -} - -void QPhononPlayerControl::setMedia(const QMediaContent &content, QIODevice *stream) -{ - m_resources = content; - m_mediaStream = stream; - - QUrl url; - - if (!content.isNull()) - url = content.canonicalUrl(); - - m_session->stop(); - if (m_mediaStream) - m_session->setCurrentSource(Phonon::MediaSource(m_mediaStream)); - else - m_session->setCurrentSource(Phonon::MediaSource(url)); -} - -bool QPhononPlayerControl::isAudioAvailable() const -{ - return true; -} - -bool QPhononPlayerControl::isVideoAvailable() const -{ - return m_session->hasVideo(); -} - -void QPhononPlayerControl::updateState(Phonon::State newState, Phonon::State oldState) -{ - switch (newState) { - case Phonon::LoadingState: - break; - case Phonon::StoppedState: - m_mediaStatus = m_session->currentSource().type() != Phonon::MediaSource::Invalid - ? QMediaPlayer::LoadedMedia - : QMediaPlayer::NoMedia; - emit stateChanged(m_state = QMediaPlayer::StoppedState); - emit mediaStatusChanged(m_mediaStatus); - break; - case Phonon::PlayingState: - m_mediaStatus = QMediaPlayer::BufferedMedia; - emit stateChanged(m_state = QMediaPlayer::PlayingState); - emit mediaStatusChanged(m_mediaStatus); - break; - case Phonon::PausedState: - m_mediaStatus = QMediaPlayer::BufferedMedia; - emit stateChanged(m_state = QMediaPlayer::PausedState); - emit mediaStatusChanged(m_mediaStatus); - break; - case Phonon::BufferingState: - m_mediaStatus = QMediaPlayer::BufferingMedia; - if (oldState == Phonon::StoppedState) - emit stateChanged(m_state = QMediaPlayer::PlayingState); - emit mediaStatusChanged(m_mediaStatus); - break; - case Phonon::ErrorState: - if (m_session->errorType() == Phonon::FatalError && m_state != QMediaPlayer::StoppedState) - emit stateChanged(m_state = QMediaPlayer::StoppedState); - break; - } -} - -void QPhononPlayerControl::processEOS() -{ - m_mediaStatus = QMediaPlayer::EndOfMedia; - emit stateChanged(m_state = QMediaPlayer::StoppedState); - emit mediaStatusChanged(m_mediaStatus); -} - -void QPhononPlayerControl::updateVolume() -{ - emit volumeChanged(volume()); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/qphononplayercontrol.h --- a/qtmobility/plugins/multimedia/phonon/qphononplayercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,121 +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 Qt Mobility Components. -** -** $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 QPHONONPLAYERCONTROL_H -#define QPHONONPLAYERCONTROL_H - -#include - -#include -#include - -#include -#include - -QTM_BEGIN_NAMESPACE -class QMediaPlaylist; -class QMediaPlaylistNavigator; -QTM_END_NAMESPACE - -class QPhononPlayerSession; -class QPhononPlayerService; - -QTM_USE_NAMESPACE - -class QPhononPlayerControl : public QMediaPlayerControl -{ - Q_OBJECT - -public: - QPhononPlayerControl(Phonon::MediaObject *session, QObject *parent = 0); - ~QPhononPlayerControl(); - - QMediaPlayer::State state() const; - QMediaPlayer::MediaStatus mediaStatus() const; - - QMediaContent media() const; - const QIODevice *mediaStream() const; - void setMedia(const QMediaContent &content, QIODevice *stream); - - qint64 position() const; - qint64 duration() const; - - int bufferStatus() const; - - int volume() const; - bool isMuted() const; - - int playlistPosition() const; - - bool isAudioAvailable() const; - bool isVideoAvailable() const; - - bool isSeekable() const; - QMediaTimeRange availablePlaybackRanges() const; - - qreal playbackRate() const; - void setPlaybackRate(qreal rate); - -public Q_SLOTS: - void setPosition(qint64 pos); - - void play(); - void pause(); - void stop(); - - void setVolume(int volume); - void setMuted(bool muted); - -private slots: - void updateState(Phonon::State newState, Phonon::State oldState); - void updateVolume(); - void processEOS(); - -private: - Phonon::MediaObject *m_session; - Phonon::AudioOutput *m_audioOutput; - QMediaPlayer::State m_state; - QMediaPlayer::MediaStatus m_mediaStatus; - QIODevice *m_mediaStream; - QMediaContent m_resources; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/qphononplayerservice.cpp --- a/qtmobility/plugins/multimedia/phonon/qphononplayerservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,87 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include "qphononplayerservice.h" -#include "qphononplayercontrol.h" -#include "qphononmetadataprovider.h" - -#include "qphononvideowidget.h" - -#include -#include - -QPhononPlayerService::QPhononPlayerService(QObject *parent): - QMediaService(parent) -{ - m_mediaObject = new Phonon::MediaObject(this); - m_videoWidget = new Phonon::VideoWidget(); - m_control = new QPhononPlayerControl(m_mediaObject, this); - m_metaData = new QPhononMetaDataProvider(m_mediaObject, this); - - Phonon::createPath(m_mediaObject, m_videoWidget); - m_videoWidgetControl = new QPhononVideoWidget(m_videoWidget, this); - m_videoOutputControl = new QPhononVideoOutputControl(this); -} - -QPhononPlayerService::~QPhononPlayerService() -{ -} - -QMediaControl *QPhononPlayerService::control(const char *name) const -{ - if (qstrcmp(name, QMediaPlayerControl_iid) == 0) - return m_control; - - if (qstrcmp(name, QMetaDataControl_iid) == 0) - return m_metaData; - - if (qstrcmp(name, QVideoWidgetControl_iid) == 0) - return m_videoWidgetControl; - - if (qstrcmp(name, QVideoOutputControl_iid) == 0) - return m_videoOutputControl; - - return 0; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/qphononplayerservice.h --- a/qtmobility/plugins/multimedia/phonon/qphononplayerservice.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,87 +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 Qt Mobility Components. -** -** $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 QPHONONPLAYERSERVICE_H -#define QPHONONPLAYERSERVICE_H - -#include - -#include -#include - -#include - -#include "qphononvideowidget.h" - -QTM_BEGIN_NAMESPACE -class QMediaMetaData; -class QMediaPlayerControl; -class QMediaPlaylist; -class QMediaPlaylistNavigator; -QTM_END_NAMESPACE - -class QPhononMetaData; -class QPhononPlayerControl; -class QPhononPlayerSession; -class QPhononMetaDataProvider; - -QTM_USE_NAMESPACE - -class QPhononPlayerService : public QMediaService -{ - Q_OBJECT - -public: - QPhononPlayerService(QObject *parent = 0); - ~QPhononPlayerService(); - - QMediaControl *control(const char *name) const; - -private: - Phonon::MediaObject *m_mediaObject; - Phonon::VideoWidget *m_videoWidget; - QPhononVideoWidget *m_videoWidgetControl; - QPhononVideoOutputControl *m_videoOutputControl; - QPhononPlayerControl *m_control; - QPhononMetaDataProvider *m_metaData; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/qphononserviceplugin.cpp --- a/qtmobility/plugins/multimedia/phonon/qphononserviceplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +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 Qt Mobility Components. -** -** $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 -#include - -#include "qphononserviceplugin.h" -#include "qphononplayerservice.h" - -#include - - -QStringList QPhononServicePlugin::keys() const -{ - return QStringList() << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER); -} - -QMediaService* QPhononServicePlugin::create(QString const& key) -{ - if (key == QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER)) - return new QPhononPlayerService; - - //qDebug() << "unsupported key:" << key; - return 0; -} - -void QPhononServicePlugin::release(QMediaService *service) -{ - delete service; -} - -Q_EXPORT_PLUGIN2(phonon_serviceplugin, QPhononServicePlugin); - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/qphononserviceplugin.h --- a/qtmobility/plugins/multimedia/phonon/qphononserviceplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +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 Qt Mobility Components. -** -** $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 QPHONONSERVICEPLUGIN_H -#define QPHONONSERVICEPLUGIN_H - -#include - -QTM_USE_NAMESPACE - -class QPhononServicePlugin : public QMediaServiceProviderPlugin -{ - Q_OBJECT -public: - QStringList keys() const; - QMediaService* create(QString const& key); - void release(QMediaService *service); -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/qphononvideowidget.cpp --- a/qtmobility/plugins/multimedia/phonon/qphononvideowidget.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,133 +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 Qt Mobility Components. -** -** $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 "qphononvideowidget.h" - -#include -#include -#include - -QPhononVideoWidget::QPhononVideoWidget(Phonon::VideoWidget *videoWidget, QObject *parent) - :QVideoWidgetControl(parent), m_videoWidget(videoWidget), m_isFullscreen(false) -{ - setAspectRatioMode(QVideoWidget::KeepAspectRatio); -} - -QPhononVideoWidget::~QPhononVideoWidget() -{ -} - -QVideoWidget::AspectRatioMode QPhononVideoWidget::aspectRatioMode() const -{ - return m_aspectRatioMode; -} - -void QPhononVideoWidget::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) -{ - m_aspectRatioMode = mode; - switch (mode) { - case QVideoWidget::KeepAspectRatio: - m_videoWidget->setAspectRatio(Phonon::VideoWidget::AspectRatioAuto); - break; - case QVideoWidget::IgnoreAspectRatio: - m_videoWidget->setAspectRatio(Phonon::VideoWidget::AspectRatioWidget); - break; - default: - m_videoWidget->setAspectRatio(Phonon::VideoWidget::AspectRatioAuto); - } -} - -bool QPhononVideoWidget::isFullScreen() const -{ - return m_isFullscreen; -} - -void QPhononVideoWidget::setFullScreen(bool fullScreen) -{ - if (m_isFullscreen != fullScreen) { - m_isFullscreen = fullScreen; - emit fullScreenChanged(fullScreen); - } -} - -int QPhononVideoWidget::brightness() const -{ - return qRound(100.0*m_videoWidget->brightness()); -} - -void QPhononVideoWidget::setBrightness(int brightness) -{ - m_videoWidget->setBrightness(brightness/100.0); - emit brightnessChanged(brightness); -} - -int QPhononVideoWidget::contrast() const -{ - return qRound(100.0*m_videoWidget->contrast()); -} - -void QPhononVideoWidget::setContrast(int contrast) -{ - m_videoWidget->setContrast(contrast/100.0); - emit contrastChanged(contrast); -} - -int QPhononVideoWidget::hue() const -{ - return qRound(100.0*m_videoWidget->hue()); -} - -void QPhononVideoWidget::setHue(int hue) -{ - m_videoWidget->setHue(hue/100.0); - emit hueChanged(hue); -} - -int QPhononVideoWidget::saturation() const -{ - return qRound(100.0*m_videoWidget->saturation()); -} - -void QPhononVideoWidget::setSaturation(int saturation) -{ - m_videoWidget->setSaturation(saturation/100.0); - emit saturationChanged(saturation); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/phonon/qphononvideowidget.h --- a/qtmobility/plugins/multimedia/phonon/qphononvideowidget.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,103 +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 Qt Mobility Components. -** -** $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 QPHONONVIDEOWIDGET_H -#define QPHONONVIDEOWIDGET_H - -#include -#include - -#include - -QTM_USE_NAMESPACE - -class QPhononVideoWidget : public QVideoWidgetControl -{ - Q_OBJECT -public: - QPhononVideoWidget(Phonon::VideoWidget *videoWidget, QObject *parent = 0); - virtual ~QPhononVideoWidget(); - - QWidget *videoWidget() { return m_videoWidget; } - - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); - - bool isFullScreen() const; - void setFullScreen(bool fullScreen); - - int brightness() const; - void setBrightness(int brightness); - - int contrast() const; - void setContrast(int contrast); - - int hue() const; - void setHue(int hue); - - int saturation() const; - void setSaturation(int saturation); - -private: - Phonon::VideoWidget *m_videoWidget; - bool m_isFullscreen; - QVideoWidget::AspectRatioMode m_aspectRatioMode; -}; - -class QPhononVideoOutputControl : public QVideoOutputControl -{ - Q_OBJECT -public: - - QPhononVideoOutputControl(QObject *parent = 0) - :QVideoOutputControl(parent) {} - ~QPhononVideoOutputControl() {} - - virtual QList availableOutputs() const - { - return QList() << WidgetOutput; - } - - Output output() const { return WidgetOutput; } - void setOutput(Output) {} -}; - -#endif // QPHONONVIDEOWIDGET_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/pulseaudio/pulseaudio.pro --- a/qtmobility/plugins/multimedia/pulseaudio/pulseaudio.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -TEMPLATE = lib -CONFIG += plugin -QT += network -TARGET = $$qtLibraryTarget(pulseaudio) -PLUGIN_TYPE = mediaservice - -include (../../../common.pri) - -CONFIG += mobility link_pkgconfig -MOBILITY = multimedia - -maemo5:DEFINES+=MAEMO_VOLUME - -DEPENDPATH += . -INCLUDEPATH += ../../../src/multimedia -PKGCONFIG += libpulse - -HEADERS += wavedecoder.h \ - pulseaudioserviceproviderplugin.h \ - pulseaudioplayerservice.h \ - pulseaudioplayercontrol.h - -SOURCES += wavedecoder.cpp \ - pulseaudioserviceproviderplugin.cpp \ - pulseaudioplayerservice.cpp \ - pulseaudioplayercontrol.cpp - -target.path = $$QT_MOBILITY_PREFIX/plugins/mediaservice -INSTALLS += target diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/pulseaudio/pulseaudioplayercontrol.cpp --- a/qtmobility/plugins/multimedia/pulseaudio/pulseaudioplayercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,513 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include "wavedecoder.h" -#include "pulseaudioplayercontrol.h" - -// Less than ideal -#define PA_SCACHE_ENTRY_SIZE_MAX (1024*1024*16) - -namespace -{ - -inline pa_sample_spec audioFormatToSampleSpec(const QAudioFormat &format) -{ - pa_sample_spec spec; - - spec.rate = format.frequency(); - spec.channels = format.channels(); - - if (format.sampleSize() == 8) - spec.format = PA_SAMPLE_U8; - else if (format.sampleSize() == 16) { - switch (format.byteOrder()) { - case QAudioFormat::BigEndian: spec.format = PA_SAMPLE_S16BE; break; - case QAudioFormat::LittleEndian: spec.format = PA_SAMPLE_S16LE; break; - } - } - else if (format.sampleSize() == 32) { - switch (format.byteOrder()) { - case QAudioFormat::BigEndian: spec.format = PA_SAMPLE_S32BE; break; - case QAudioFormat::LittleEndian: spec.format = PA_SAMPLE_S32LE; break; - } - } - - return spec; -} - -class PulseDaemon -{ - -public: - PulseDaemon():m_prepared(false) - { - prepare(); - } - - ~PulseDaemon() - { - if (m_prepared) - release(); - } - - inline void lock() - { - pa_threaded_mainloop_lock(m_mainLoop); - } - - inline void unlock() - { - pa_threaded_mainloop_unlock(m_mainLoop); - } - - inline pa_context *context() const - { - return m_context; - } - -private: - void prepare() - { - m_mainLoop = pa_threaded_mainloop_new(); - if (m_mainLoop == 0) { - qWarning("PulseAudioService: unable to create pulseaudio mainloop"); - return; - } - - if (pa_threaded_mainloop_start(m_mainLoop) != 0) { - qWarning("PulseAudioService: unable to start pulseaudio mainloop"); - pa_threaded_mainloop_free(m_mainLoop); - return; - } - - m_mainLoopApi = pa_threaded_mainloop_get_api(m_mainLoop); - - lock(); - m_context = pa_context_new(m_mainLoopApi, QString("QtPulseAudio:%1").arg(::getpid()).toAscii().constData()); - if (m_context == 0) { - qWarning("PulseAudioService: Unable to create new pulseaudio context"); - pa_threaded_mainloop_free(m_mainLoop); - return; - } - - if (pa_context_connect(m_context, NULL, (pa_context_flags_t)0, NULL) < 0) { - qWarning("PulseAudioService: pa_context_connect() failed"); - pa_context_unref(m_context); - pa_threaded_mainloop_free(m_mainLoop); - return; - } - unlock(); - - m_prepared = true; - } - - void release() - { - if (!m_prepared) return; - pa_threaded_mainloop_stop(m_mainLoop); - pa_threaded_mainloop_free(m_mainLoop); - m_prepared = false; - } - - bool m_prepared; - pa_context *m_context; - pa_threaded_mainloop *m_mainLoop; - pa_mainloop_api *m_mainLoopApi; -}; - -} - -Q_GLOBAL_STATIC(PulseDaemon, daemon) - - - -PulseAudioPlayerControl::PulseAudioPlayerControl(QObject *parent) : - QMediaPlayerControl(parent), - m_muted(false), - m_playQueued(false), - m_volume(100), - m_duration(0), - m_dataUploaded(0), - m_state(QMediaPlayer::StoppedState), - m_status(QMediaPlayer::NoMedia), - m_reply(0), - m_stream(0), - m_networkAccessManager(0) -{ -} - -PulseAudioPlayerControl::~PulseAudioPlayerControl() -{ - delete m_reply; - - unloadSample(); -} - -QMediaPlayer::State PulseAudioPlayerControl::state() const -{ - return m_state; -} - -QMediaPlayer::MediaStatus PulseAudioPlayerControl::mediaStatus() const -{ - return m_status; -} - -qint64 PulseAudioPlayerControl::duration() const -{ - return m_duration; -} - -qint64 PulseAudioPlayerControl::position() const -{ - return 0; -} - -void PulseAudioPlayerControl::setPosition(qint64 position) -{ - Q_UNUSED(position); -} - -int PulseAudioPlayerControl::volume() const -{ - return m_volume; -} - -void PulseAudioPlayerControl::setVolume(int volume) -{ - if (m_volume == volume) - return; - - emit volumeChanged(m_volume = volume); -} - -bool PulseAudioPlayerControl::isMuted() const -{ - return m_muted; -} - -void PulseAudioPlayerControl::setMuted(bool muted) -{ - if (m_muted == muted) - return; - - emit mutedChanged(m_muted = muted); -} - -int PulseAudioPlayerControl::bufferStatus() const -{ - return 0; -} - -bool PulseAudioPlayerControl::isAudioAvailable() const -{ - return m_status != QMediaPlayer::NoMedia && m_status != QMediaPlayer::LoadingMedia; -} - -bool PulseAudioPlayerControl::isVideoAvailable() const -{ - return false; -} - -bool PulseAudioPlayerControl::isSeekable() const -{ - return false; -} - -QMediaTimeRange PulseAudioPlayerControl::availablePlaybackRanges() const -{ - return QMediaTimeRange(); -} - -qreal PulseAudioPlayerControl::playbackRate() const -{ - return 1.0; -} - -void PulseAudioPlayerControl::setPlaybackRate(qreal rate) -{ - Q_UNUSED(rate); -} - -QMediaContent PulseAudioPlayerControl::media() const -{ - return m_media; -} - -const QIODevice * PulseAudioPlayerControl::mediaStream() const -{ - return m_media.isNull() ? m_stream : 0; -} - -void PulseAudioPlayerControl::setMedia(const QMediaContent &media, QIODevice *stream) -{ - if (media.isNull() && stream == 0) { - m_media = QMediaContent(); - m_stream = 0; - unloadSample(); - return; - } - - if (stream != 0) { - if (m_stream == stream) - return; - - m_stream = stream; - m_media = QMediaContent(); - } - else { - if (m_media == media) - return; - m_media = media; - - if (m_networkAccessManager == 0) - m_networkAccessManager = new QNetworkAccessManager(this); - - m_stream = m_networkAccessManager->get(QNetworkRequest(m_media.canonicalUrl())); - } - - unloadSample(); - loadSample(); - - emit mediaChanged(m_media); -} - -void PulseAudioPlayerControl::play() -{ - if (m_status == QMediaPlayer::LoadingMedia) { - m_playQueued = true; - return; - } - - if (m_status != QMediaPlayer::BufferedMedia || - m_state == QMediaPlayer::PlayingState) - return; - -#ifdef MAEMO_VOLUME - // Need to do this in code! (TODO) - QString cmd = QString("/usr/bin/pasr -r -s x-maemo|/usr/bin/tail -n3|/usr/bin/head -n1|/usr/bin/awk '{print $3}'|/bin/sed 's/\%//g'>/tmp/vol"); - system(cmd.toLocal8Bit().constData()); - QFile volFile("/tmp/vol"); - volFile.open(QIODevice::ReadOnly); - QByteArray volNum = volFile.readLine(); - cmd = QString("/usr/bin/pasr -u -s event -l %1 -c mono").arg((m_volume+QString(volNum.constData()).toInt())/2); - system(cmd.toLocal8Bit().constData()); -#endif - - daemon()->lock(); - pa_operation_unref( - pa_context_play_sample(daemon()->context(), - m_name.constData(), - 0, - -1, - play_callback, - this) - ); - daemon()->unlock(); - - m_playbackTime.start(); - - emit stateChanged(m_state = QMediaPlayer::PlayingState); -} - -void PulseAudioPlayerControl::pause() -{ - emit stateChanged(m_state = QMediaPlayer::StoppedState); -} - -void PulseAudioPlayerControl::stop() -{ - emit stateChanged(m_state = QMediaPlayer::StoppedState); -} - -void PulseAudioPlayerControl::loadSample() -{ - m_waveDecoder = new WaveDecoder(m_stream); - connect(m_waveDecoder, SIGNAL(formatKnown()), SLOT(decoderReady())); - connect(m_waveDecoder, SIGNAL(invalidFormat()), SLOT(decoderError())); - - m_status = QMediaPlayer::LoadingMedia; - emit mediaStatusChanged(m_status); -} - -void PulseAudioPlayerControl::unloadSample() -{ - if (m_status != QMediaPlayer::BufferedMedia) - return; - - m_status = QMediaPlayer::NoMedia; - - daemon()->lock(); - pa_context_remove_sample(daemon()->context(), m_name.constData(), NULL, NULL); - daemon()->unlock(); - - m_duration = 0; - m_dataUploaded = 0; -} - -void PulseAudioPlayerControl::timerEvent(QTimerEvent *event) -{ - if (m_state == QMediaPlayer::PlayingState) { - m_state = QMediaPlayer::StoppedState; - emit stateChanged(m_state); - } - - killTimer(event->timerId()); -} - -void PulseAudioPlayerControl::decoderReady() -{ - if (m_waveDecoder->size() >= PA_SCACHE_ENTRY_SIZE_MAX) { - m_status = QMediaPlayer::InvalidMedia; - emit mediaStatusChanged(m_status); - qWarning("QtPulseAudio: attempting to load to large a sample"); - return; - } - - if (m_name.isNull()) - m_name = QString("QtPulseSample-%1-%2").arg(::getpid()).arg(reinterpret_cast(this)).toUtf8(); - - pa_sample_spec spec = audioFormatToSampleSpec(m_waveDecoder->audioFormat()); - - daemon()->lock(); - pa_stream *stream = pa_stream_new(daemon()->context(), m_name.constData(), &spec, 0); - pa_stream_set_state_callback(stream, stream_state_callback, this); - pa_stream_set_write_callback(stream, stream_write_callback, this); - pa_stream_connect_upload(stream, (size_t)m_waveDecoder->size()); - daemon()->unlock(); -} - -void PulseAudioPlayerControl::decoderError() -{ - emit mediaStatusChanged(m_status = QMediaPlayer::InvalidMedia); -} - -void PulseAudioPlayerControl::checkPlayTime() -{ - int elapsed = m_playbackTime.elapsed(); - - if (elapsed >= m_duration) { - m_state = QMediaPlayer::StoppedState; - emit stateChanged(m_state); - } - else - startTimer(m_duration - elapsed); -} - -void PulseAudioPlayerControl::stream_write_callback(pa_stream *s, size_t length, void *userdata) -{ - Q_UNUSED(length); - - PulseAudioPlayerControl *self = reinterpret_cast(userdata); - - size_t bufferSize = qMin(pa_stream_writable_size(s), - size_t(self->m_waveDecoder->bytesAvailable())); - char buffer[bufferSize]; - - size_t len = 0; - while (len < length) { - qint64 read = self->m_waveDecoder->read(buffer, qMin(bufferSize, length -len)); - if (read > 0) { - if (pa_stream_write(s, buffer, size_t(read), 0, 0, PA_SEEK_RELATIVE) == 0) - len += size_t(read); - else - break; - } - } - self->m_dataUploaded += len; - - if (self->m_waveDecoder->size() == self->m_dataUploaded) { - pa_stream_finish_upload(s); - - self->m_duration = self->m_waveDecoder->duration(); - emit self->durationChanged(self->m_duration); - - self->m_status = QMediaPlayer::BufferedMedia; - emit self->mediaStatusChanged(self->m_status); - emit self->audioAvailableChanged(true); - - self->m_waveDecoder->deleteLater(); - if (!self->m_media.isNull()) - self->m_stream->deleteLater(); - - if (self->m_playQueued) { - self->m_playQueued = false; - QMetaObject::invokeMethod(self, "play"); - } - } -} - -void PulseAudioPlayerControl::stream_state_callback(pa_stream *s, void *userdata) -{ - PulseAudioPlayerControl *self = reinterpret_cast(userdata); - - switch (pa_stream_get_state(s)) { - case PA_STREAM_CREATING: - case PA_STREAM_READY: - case PA_STREAM_TERMINATED: - break; - - case PA_STREAM_FAILED: - default: - self->m_status = QMediaPlayer::InvalidMedia; - emit self->mediaStatusChanged(self->m_status); - break; - } -} - -void PulseAudioPlayerControl::play_callback(pa_context *c, int success, void *userdata) -{ - Q_UNUSED(c); - - PulseAudioPlayerControl *self = reinterpret_cast(userdata); - - if (success == 1) - QMetaObject::invokeMethod(self, "checkPlayTime", Qt::QueuedConnection); - else { - self->m_state = QMediaPlayer::StoppedState; - emit self->stateChanged(self->m_state); - } -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/pulseaudio/pulseaudioplayercontrol.h --- a/qtmobility/plugins/multimedia/pulseaudio/pulseaudioplayercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,131 +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 Qt Mobility Components. -** -** $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 PULSEAUDIOPLAYERCONTROL_H -#define PULSEAUDIOPLAYERCONTROL_H - -#include - -#include - -#include -#include - -class QNetworkReply; -class QNetworkAccessManager; -class WaveDecoder; - - -QTM_USE_NAMESPACE - -class PulseAudioPlayerControl : public QMediaPlayerControl -{ -Q_OBJECT -public: - explicit PulseAudioPlayerControl(QObject *parent = 0); - ~PulseAudioPlayerControl(); - - QMediaPlayer::State state() const; - - QMediaPlayer::MediaStatus mediaStatus() const; - - qint64 duration() const; - - qint64 position() const; - void setPosition(qint64 position); - - int volume() const; - void setVolume(int volume); - - bool isMuted() const; - void setMuted(bool muted); - - int bufferStatus() const; - - bool isAudioAvailable() const; - bool isVideoAvailable() const; - - bool isSeekable() const; - QMediaTimeRange availablePlaybackRanges() const; - - qreal playbackRate() const; - void setPlaybackRate(qreal rate); - - QMediaContent media() const; - const QIODevice *mediaStream() const; - void setMedia(const QMediaContent &media, QIODevice *stream); - -public slots: - void play(); - void pause(); - void stop(); - -private slots: - void decoderReady(); - void decoderError(); - void checkPlayTime(); - -private: - void loadSample(); - void unloadSample(); - void timerEvent(QTimerEvent *event); - - static void stream_write_callback(pa_stream *s, size_t length, void *userdata); - static void stream_state_callback(pa_stream *s, void *userdata); - static void play_callback(pa_context *c, int success, void *userdata); - - bool m_muted; - bool m_playQueued; - int m_volume; - int m_duration; - int m_dataUploaded; - QTime m_playbackTime; - QMediaPlayer::State m_state; - QMediaPlayer::MediaStatus m_status; - QByteArray m_name; - QMediaContent m_media; - QNetworkReply *m_reply; - WaveDecoder *m_waveDecoder; - QIODevice *m_stream; - QNetworkAccessManager *m_networkAccessManager; -}; - -#endif // PULSEAUDIOPLAYERCONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/pulseaudio/pulseaudioplayerservice.cpp --- a/qtmobility/plugins/multimedia/pulseaudio/pulseaudioplayerservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +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 Qt Mobility Components. -** -** $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 "pulseaudioplayercontrol.h" -#include "pulseaudioplayerservice.h" - - -PulseAudioPlayerService::PulseAudioPlayerService(QObject *parent) : - QMediaService(parent), - m_control(0) -{ - m_control = new PulseAudioPlayerControl; -} - -PulseAudioPlayerService::~PulseAudioPlayerService() -{ - delete m_control; -} - -QMediaControl* PulseAudioPlayerService::control(const char *name) const -{ - if (qstrcmp(name, QMediaPlayerControl_iid) == 0) - return m_control; - - return 0; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/pulseaudio/pulseaudioplayerservice.h --- a/qtmobility/plugins/multimedia/pulseaudio/pulseaudioplayerservice.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +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 Qt Mobility Components. -** -** $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 PULSEAUDIOPLAYERSERVICE_H -#define PULSEAUDIOPLAYERSERVICE_H - -#include - -QTM_USE_NAMESPACE - -class PulseAudioPlayerControl; - -class PulseAudioPlayerService : public QMediaService -{ -Q_OBJECT -public: - explicit PulseAudioPlayerService(QObject *parent = 0); - ~PulseAudioPlayerService(); - - QMediaControl* control(const char *name) const; - -private: - PulseAudioPlayerControl *m_control; -}; - -#endif // PULSEAUDIOPLAYERSERVICE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/pulseaudio/pulseaudioserviceproviderplugin.cpp --- a/qtmobility/plugins/multimedia/pulseaudio/pulseaudioserviceproviderplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +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 Qt Mobility Components. -** -** $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 "pulseaudioplayerservice.h" -#include "pulseaudioserviceproviderplugin.h" - - -QStringList PulseaudioServiceProviderPlugin::keys() const -{ - return QStringList() << Q_MEDIASERVICE_MEDIAPLAYER; -} - -QMediaService* PulseaudioServiceProviderPlugin::create(const QString &key) -{ - if (key == QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER)) - return new PulseAudioPlayerService; - - return 0; -} - -void PulseaudioServiceProviderPlugin::release(QMediaService *service) -{ - delete service; -} - -QMediaServiceProviderHint::Features PulseaudioServiceProviderPlugin::supportedFeatures(const QByteArray &service) const -{ - if (service == QByteArray(Q_MEDIASERVICE_MEDIAPLAYER)) - return QMediaServiceProviderHint::LowLatencyPlayback; - - return 0; -} - -QtMedia::SupportEstimate PulseaudioServiceProviderPlugin::hasSupport(const QString &mimeType, const QStringList& codecs) const -{ - Q_UNUSED(codecs); - - if (mimeType == QLatin1String("audio/x-wav")) - return QtMedia::ProbablySupported; - - return QtMedia::NotSupported; -} - -QStringList PulseaudioServiceProviderPlugin::supportedMimeTypes() const -{ - return QStringList() << QLatin1String("audio/x-wav"); -} - - -Q_EXPORT_PLUGIN2(pulseaudio_serviceplugin, PulseaudioServiceProviderPlugin); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/pulseaudio/pulseaudioserviceproviderplugin.h --- a/qtmobility/plugins/multimedia/pulseaudio/pulseaudioserviceproviderplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +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 Qt Mobility Components. -** -** $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 PULSEAUDIOSERVICEPROVIDERPLUGIN_H -#define PULSEAUDIOSERVICEPROVIDERPLUGIN_H - -#include - -QTM_USE_NAMESPACE - -class PulseaudioServiceProviderPlugin : - public QMediaServiceProviderPlugin, - public QMediaServiceFeaturesInterface, - public QMediaServiceSupportedFormatsInterface -{ - Q_OBJECT - Q_INTERFACES(QtMobility::QMediaServiceFeaturesInterface QtMobility::QMediaServiceSupportedFormatsInterface) - -public: - QStringList keys() const; - QMediaService* create(QString const& key); - void release(QMediaService *service); - - QMediaServiceProviderHint::Features supportedFeatures(const QByteArray &service) const; - - QtMedia::SupportEstimate hasSupport(const QString &mimeType, const QStringList& codecs) const; - QStringList supportedMimeTypes() const; -}; - -#endif // PULSEAUDIOSERVICEPROVIDERPLUGIN_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/pulseaudio/wavedecoder.cpp --- a/qtmobility/plugins/multimedia/pulseaudio/wavedecoder.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,137 +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 Qt Mobility Components. -** -** $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 "wavedecoder.h" - -#include -#include -#include - -WaveDecoder::WaveDecoder(QIODevice *s, QObject *parent): - QIODevice(parent), - haveFormat(false), - dataSize(0), - remaining(0), - source(s) -{ - open(QIODevice::ReadOnly | QIODevice::Unbuffered); - - if (source->bytesAvailable() >= sizeof(CombinedHeader)) - QTimer::singleShot(0, this, SLOT(handleData())); - else - connect(source, SIGNAL(readyRead()), SLOT(handleData())); -} - -WaveDecoder::~WaveDecoder() -{ -} - -QAudioFormat WaveDecoder::audioFormat() const -{ - return format; -} - -int WaveDecoder::duration() const -{ - return size() * 1000 / (format.sampleSize() / 8) / format.channels() / format.frequency(); -} - -qint64 WaveDecoder::size() const -{ - return haveFormat ? dataSize : 0; -} - -bool WaveDecoder::isSequential() const -{ - return source->isSequential(); -} - -qint64 WaveDecoder::bytesAvailable() const -{ - return haveFormat ? source->bytesAvailable() : 0; -} - -qint64 WaveDecoder::readData(char *data, qint64 maxlen) -{ - return haveFormat ? source->read(data, maxlen) : 0; -} - -qint64 WaveDecoder::writeData(const char *data, qint64 len) -{ - Q_UNUSED(data); - Q_UNUSED(len); - - return -1; -} - -void WaveDecoder::handleData() -{ - if (source->bytesAvailable() < sizeof(CombinedHeader)) - return; - - source->disconnect(SIGNAL(readyRead()), this, SLOT(handleData())); - source->read((char*)&header, sizeof(CombinedHeader)); - - if (qstrncmp(header.riff.descriptor.id, "RIFF", 4) != 0 || - qstrncmp(header.riff.type, "WAVE", 4) != 0 || - qstrncmp(header.wave.descriptor.id, "fmt ", 4) != 0 || - (header.wave.audioFormat != 0 && header.wave.audioFormat != 1) || - qstrncmp(header.data.descriptor.id, "data", 4) != 0) { - - emit invalidFormat(); - } - else { - int bps = qFromLittleEndian(header.wave.bitsPerSample); - - format.setCodec("audio/pcm"); - format.setSampleType(bps == 8 ? QAudioFormat::UnSignedInt : QAudioFormat::SignedInt); - format.setByteOrder(QAudioFormat::LittleEndian); - format.setFrequency(qFromLittleEndian(header.wave.sampleRate)); - format.setSampleSize(bps); - format.setChannels(qFromLittleEndian(header.wave.numChannels)); - - dataSize = qFromLittleEndian(header.data.descriptor.size); - - haveFormat = true; - connect(source, SIGNAL(readyRead()), SIGNAL(readyRead())); - emit formatKnown(); - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/pulseaudio/wavedecoder.h --- a/qtmobility/plugins/multimedia/pulseaudio/wavedecoder.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +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 Qt Mobility Components. -** -** $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 WAVEDECODER_H -#define WAVEDECODER_H - -#include -#include - -class WaveDecoder : public QIODevice -{ -Q_OBJECT - -public: - explicit WaveDecoder(QIODevice *source, QObject *parent = 0); - ~WaveDecoder(); - - QAudioFormat audioFormat() const; - int duration() const; - - qint64 size() const; - bool isSequential() const; - qint64 bytesAvailable() const; - -signals: - void formatKnown(); - void invalidFormat(); - -private slots: - void handleData(); - -private: - qint64 readData(char *data, qint64 maxlen); - qint64 writeData(const char *data, qint64 len); - - struct chunk - { - char id[4]; - quint32 size; - }; - struct RIFFHeader - { - chunk descriptor; - char type[4]; - }; - struct WAVEHeader - { - chunk descriptor; - quint16 audioFormat; - quint16 numChannels; - quint32 sampleRate; - quint32 byteRate; - quint16 blockAlign; - quint16 bitsPerSample; - }; - struct DATAHeader - { - chunk descriptor; - }; - struct CombinedHeader - { - RIFFHeader riff; - WAVEHeader wave; - DATAHeader data; - }; - - bool haveFormat; - qint64 dataSize; - qint64 remaining; - QAudioFormat format; - QIODevice *source; - CombinedHeader header; -}; - -#endif // WAVEDECODER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/qt7/qt7movierenderer.mm --- a/qtmobility/plugins/multimedia/qt7/qt7movierenderer.mm Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/qt7/qt7movierenderer.mm Mon May 03 13:18:40 2010 +0300 @@ -233,7 +233,9 @@ &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); CFDictionarySetValue(visualContextOptions, kQTVisualContextPixelBufferAttributesKey, pixelBufferOptions); + CFDictionarySetValue(visualContextOptions, kQTVisualContextWorkingColorSpaceKey, CGColorSpaceCreateDeviceRGB()); + CFDictionarySetValue(visualContextOptions, kQTVisualContextOutputColorSpaceKey, CGColorSpaceCreateDeviceRGB()); OSStatus err = QTPixelBufferContextCreate(kCFAllocatorDefault, visualContextOptions, diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/qt7/qt7movievideowidget.h --- a/qtmobility/plugins/multimedia/qt7/qt7movievideowidget.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/qt7/qt7movievideowidget.h Mon May 03 13:18:40 2010 +0300 @@ -79,8 +79,8 @@ QSize nativeSize() const; - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); int brightness() const; void setBrightness(int brightness); @@ -114,7 +114,7 @@ bool m_fullscreen; QSize m_nativeSize; - QVideoWidget::AspectRatioMode m_aspectRatioMode; + Qt::AspectRatioMode m_aspectRatioMode; int m_brightness; int m_contrast; int m_hue; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/qt7/qt7movievideowidget.mm --- a/qtmobility/plugins/multimedia/qt7/qt7movievideowidget.mm Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/qt7/qt7movievideowidget.mm Mon May 03 13:18:40 2010 +0300 @@ -73,7 +73,7 @@ : QGLWidget(format, parent), m_texRef(0), m_nativeSize(640,480), - m_aspectRatioMode(QVideoWidget::KeepAspectRatio) + m_aspectRatioMode(Qt::KeepAspectRatio) { setAutoFillBackground(false); } @@ -152,7 +152,7 @@ m_nativeSize = size; } - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode) + void setAspectRatioMode(Qt::AspectRatioMode mode) { if (m_aspectRatioMode != mode) { m_aspectRatioMode = mode; @@ -165,7 +165,7 @@ { QRect displayRect = rect(); - if (m_aspectRatioMode == QVideoWidget::KeepAspectRatio) { + if (m_aspectRatioMode == Qt::KeepAspectRatio) { QSize size = m_nativeSize; size.scale(displayRect.size(), Qt::KeepAspectRatio); @@ -177,7 +177,7 @@ CVOpenGLTextureRef m_texRef; QSize m_nativeSize; - QVideoWidget::AspectRatioMode m_aspectRatioMode; + Qt::AspectRatioMode m_aspectRatioMode; }; QT7MovieVideoWidget::QT7MovieVideoWidget(QObject *parent) @@ -185,7 +185,7 @@ m_movie(0), m_videoWidget(0), m_fullscreen(false), - m_aspectRatioMode(QVideoWidget::KeepAspectRatio), + m_aspectRatioMode(Qt::KeepAspectRatio), m_brightness(0), m_contrast(0), m_hue(0), @@ -217,7 +217,7 @@ NSOpenGLPixelFormat *nsglPixelFormat = [NSOpenGLView defaultPixelFormat]; CGLPixelFormatObj cglPixelFormat = static_cast([nsglPixelFormat CGLPixelFormatObj]); - CFTypeRef keys[] = { kQTVisualContextWorkingColorSpaceKey }; + CFTypeRef keys[] = { kQTVisualContextOutputColorSpaceKey }; CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CFDictionaryRef textureContextAttributes = CFDictionaryCreate(kCFAllocatorDefault, (const void **)keys, @@ -312,12 +312,12 @@ return m_nativeSize; } -QVideoWidget::AspectRatioMode QT7MovieVideoWidget::aspectRatioMode() const +Qt::AspectRatioMode QT7MovieVideoWidget::aspectRatioMode() const { return m_aspectRatioMode; } -void QT7MovieVideoWidget::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QT7MovieVideoWidget::setAspectRatioMode(Qt::AspectRatioMode mode) { m_aspectRatioMode = mode; m_videoWidget->setAspectRatioMode(mode); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/qt7/qt7movieviewoutput.h --- a/qtmobility/plugins/multimedia/qt7/qt7movieviewoutput.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/qt7/qt7movieviewoutput.h Mon May 03 13:18:40 2010 +0300 @@ -78,8 +78,8 @@ QSize nativeSize() const; - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); int brightness() const; void setBrightness(int brightness); @@ -103,7 +103,7 @@ QRect m_displayRect; bool m_fullscreen; QSize m_nativeSize; - QVideoWidget::AspectRatioMode m_aspectRatioMode; + Qt::AspectRatioMode m_aspectRatioMode; int m_brightness; int m_contrast; int m_hue; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/qt7/qt7movieviewoutput.mm --- a/qtmobility/plugins/multimedia/qt7/qt7movieviewoutput.mm Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/qt7/qt7movieviewoutput.mm Mon May 03 13:18:40 2010 +0300 @@ -157,7 +157,7 @@ m_movieView(0), m_winId(0), m_fullscreen(false), - m_aspectRatioMode(QVideoWidget::KeepAspectRatio), + m_aspectRatioMode(Qt::KeepAspectRatio), m_brightness(0), m_contrast(0), m_hue(0), @@ -223,7 +223,7 @@ if (m_movieView) { AutoReleasePool pool; - [(QTMovieView*)m_movieView setPreservesAspectRatio:(m_aspectRatioMode == QVideoWidget::KeepAspectRatio ? YES : NO)]; + [(QTMovieView*)m_movieView setPreservesAspectRatio:(m_aspectRatioMode == Qt::KeepAspectRatio ? YES : NO)]; [(QTMovieView*)m_movieView setFrame:NSMakeRect(m_displayRect.x(), m_displayRect.y(), m_displayRect.width(), @@ -252,12 +252,12 @@ return m_nativeSize; } -QVideoWidget::AspectRatioMode QT7MovieViewOutput::aspectRatioMode() const +Qt::AspectRatioMode QT7MovieViewOutput::aspectRatioMode() const { return m_aspectRatioMode; } -void QT7MovieViewOutput::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QT7MovieViewOutput::setAspectRatioMode(Qt::AspectRatioMode mode) { m_aspectRatioMode = mode; setDisplayRect(m_displayRect); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/qt7/qt7playersession.h --- a/qtmobility/plugins/multimedia/qt7/qt7playersession.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/qt7/qt7playersession.h Mon May 03 13:18:40 2010 +0300 @@ -93,6 +93,8 @@ bool isSeekable() const; qreal playbackRate() const; + +public slots: void setPlaybackRate(qreal rate); void setPosition(qint64 pos); @@ -105,6 +107,8 @@ void setMuted(bool muted); void processEOS(); + void processStateChange(); + void processVolumeChange(); signals: void positionChanged(qint64 position); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/qt7/qt7playersession.mm --- a/qtmobility/plugins/multimedia/qt7/qt7playersession.mm Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/qt7/qt7playersession.mm Mon May 03 13:18:40 2010 +0300 @@ -67,6 +67,7 @@ - (QTMovieObserver *) initWithPlayerSession:(QT7PlayerSession*)session; - (void) setMovie:(QTMovie *)movie; - (void) processEOS:(NSNotification *)notification; +- (void) processStateChange:(NSNotification *)notification; @end @implementation QTMovieObserver @@ -96,6 +97,12 @@ [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(processEOS:) name: QTMovieDidEndNotification object: m_movie]; + [[NSNotificationCenter defaultCenter] addObserver: self selector: + @selector(processStateChange:) name: QTMovieLoadStateDidChangeNotification object: m_movie]; + + [[NSNotificationCenter defaultCenter] addObserver: self selector: + @selector(processVolumeChange:) name: QTMovieVolumeDidChangeNotification object: m_movie]; + [movie retain]; } } @@ -106,6 +113,19 @@ m_session->processEOS(); } +- (void) processStateChange:(NSNotification *)notification +{ + Q_UNUSED(notification); + m_session->processStateChange(); +} + +- (void) processVolumeChange:(NSNotification *)notification +{ + Q_UNUSED(notification); + m_session->processVolumeChange(); +} + + @end static CFStringRef qString2CFStringRef(const QString &string) @@ -250,12 +270,11 @@ void QT7PlayerSession::play() { - m_state = QMediaPlayer::PlayingState; - float preferredRate = [[(QTMovie*)m_QTMovie attributeForKey:@"QTMoviePreferredRateAttribute"] floatValue]; [(QTMovie*)m_QTMovie setRate:preferredRate*m_rate]; - emit stateChanged(m_state); + if (m_state != QMediaPlayer::PlayingState) + emit stateChanged(m_state = QMediaPlayer::PlayingState); } void QT7PlayerSession::pause() @@ -326,6 +345,7 @@ m_resources = content; m_mediaStream = stream; + m_mediaStatus = QMediaPlayer::NoMedia; QUrl url; @@ -361,19 +381,16 @@ m_QTMovie = 0; QString description = QString::fromUtf8([[err localizedDescription] UTF8String]); - qDebug() << "QT7PlayerSession::setMedia error" << description; + qWarning() << "QT7PlayerSession::setMedia error" << description; emit error(QMediaPlayer::FormatError, description ); } else { [(QTMovieObserver*)m_movieObserver setMovie:(QTMovie*)m_QTMovie]; - if (m_videoOutput) { + if (m_videoOutput) { + m_videoOutput->setMovie(m_QTMovie); m_videoOutput->setEnabled(true); - m_videoOutput->setMovie(m_QTMovie); } - - emit durationChanged(duration()); - emit audioAvailableChanged(isAudioAvailable()); - emit videoAvailableChanged(isVideoAvailable()); + processStateChange(); [(QTMovie*)m_QTMovie setMuted:m_muted]; setVolume(m_volume); @@ -405,4 +422,73 @@ emit mediaStatusChanged(m_mediaStatus); } +void QT7PlayerSession::processStateChange() +{ + signed long state = [[(QTMovie*)m_QTMovie attributeForKey:QTMovieLoadStateAttribute] + longValue]; + //qDebug() << "new State:" << state; + +#ifndef QUICKTIME_C_API_AVAILABLE + enum { + kMovieLoadStateError = -1L, + kMovieLoadStateLoading = 1000, + kMovieLoadStateLoaded = 2000, + kMovieLoadStatePlayable = 10000, + kMovieLoadStatePlaythroughOK = 20000, + kMovieLoadStateComplete = 100000 + }; +#endif + + QMediaPlayer::MediaStatus newStatus = QMediaPlayer::NoMedia; + bool isPlaying = (m_state != QMediaPlayer::StoppedState); + + if (state >= kMovieLoadStateComplete) { + newStatus = isPlaying ? QMediaPlayer::BufferedMedia : QMediaPlayer::LoadedMedia; + } else if (state >= kMovieLoadStatePlayable) + newStatus = isPlaying ? QMediaPlayer::BufferingMedia : QMediaPlayer::LoadingMedia; + else if (state >= kMovieLoadStateLoading) + newStatus = isPlaying ? QMediaPlayer::StalledMedia : QMediaPlayer::LoadingMedia; + + if (state == kMovieLoadStateError) { + newStatus = QMediaPlayer::InvalidMedia; + emit error(QMediaPlayer::FormatError, tr("Playback failed")); + } + + if (newStatus != m_mediaStatus) { + switch (newStatus) { + case QMediaPlayer::BufferedMedia: + case QMediaPlayer::BufferingMedia: + //delayed playback start is necessary for network sources + if (m_state == QMediaPlayer::PlayingState) { + QMetaObject::invokeMethod(this, "play", Qt::QueuedConnection); + } + //fall + case QMediaPlayer::LoadedMedia: + case QMediaPlayer::LoadingMedia: + emit durationChanged(duration()); + emit audioAvailableChanged(isAudioAvailable()); + emit videoAvailableChanged(isVideoAvailable()); + break; + case QMediaPlayer::InvalidMedia: + emit stateChanged(m_state = QMediaPlayer::StoppedState); + default: + break; + } + + emit mediaStatusChanged(m_mediaStatus = newStatus); + } +} + +void QT7PlayerSession::processVolumeChange() +{ + if (!m_QTMovie) + return; + + int newVolume = qRound(100.0f*[((QTMovie*)m_QTMovie) volume]); + + if (newVolume != m_volume) { + emit volumeChanged(m_volume = newVolume); + } +} + #include "moc_qt7playersession.cpp" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/audiosource_s60.pri --- a/qtmobility/plugins/multimedia/symbian/audiosource/audiosource_s60.pri Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -INCLUDEPATH += $$PWD - -symbian:LIBS += -lmediaclientaudio \ - -lmediaclientaudioinputstream \ - -lmmfcontrollerframework - -HEADERS += $$PWD/s60audioencodercontrol.h \ - $$PWD/s60audiomediarecordercontrol.h \ - $$PWD/s60audioendpointselector.h \ - $$PWD/s60audiocaptureservice.h \ - $$PWD/s60audiocapturesession.h - -SOURCES += $$PWD/s60audioencodercontrol.cpp \ - $$PWD/s60audiomediarecordercontrol.cpp \ - $$PWD/s60audioendpointselector.cpp \ - $$PWD/s60audiocaptureservice.cpp \ - $$PWD/s60audiocapturesession.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/s60audiocaptureservice.cpp --- a/qtmobility/plugins/multimedia/symbian/audiosource/s60audiocaptureservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +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 Qt Mobility Components. -** -** $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 - -#include "s60audiocaptureservice.h" -#include "s60audiocapturesession.h" -#include "s60audioendpointselector.h" -#include "s60audioencodercontrol.h" -#include "s60audiomediarecordercontrol.h" - -S60AudioCaptureService::S60AudioCaptureService(QObject *parent): - QMediaService(parent) -{ - m_session = new S60AudioCaptureSession(this); - m_encoderControl = new S60AudioEncoderControl(m_session); - m_mediaControl = new S60AudioMediaRecorderControl(m_session); - m_endpointSelector = new S60AudioEndpointSelector(m_session); -} - -S60AudioCaptureService::~S60AudioCaptureService() -{ - delete m_encoderControl; - delete m_endpointSelector; - delete m_mediaControl; - delete m_session; -} - -QMediaControl *S60AudioCaptureService::control(const char *name) const -{ - if (qstrcmp(name,QMediaRecorderControl_iid) == 0) - return m_mediaControl; - - if (qstrcmp(name,QAudioEncoderControl_iid) == 0) - return m_encoderControl; - - if (qstrcmp(name,QAudioEndpointSelector_iid) == 0) - return m_endpointSelector; - - return 0; -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/s60audiocaptureservice.h --- a/qtmobility/plugins/multimedia/symbian/audiosource/s60audiocaptureservice.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +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 Qt Mobility Components. -** -** $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 S60AUDIOCAPTURESERVICE_H -#define S60AUDIOCAPTURESERVICE_H - -#include - -#include - -QTM_USE_NAMESPACE - -class S60AudioCaptureSession; -class S60AudioEncoderControl; -class S60AudioMediaRecorderControl; -class S60AudioEndpointSelector; - - -class S60AudioCaptureService : public QMediaService -{ - Q_OBJECT -public: - S60AudioCaptureService(QObject *parent = 0); - ~S60AudioCaptureService(); - - QMediaControl *control(const char *name) const; -private: - S60AudioCaptureSession *m_session; - S60AudioEncoderControl *m_encoderControl; - S60AudioEndpointSelector *m_endpointSelector; - S60AudioMediaRecorderControl *m_mediaControl; -}; - -#endif // S60AUDIOCAPTURESERVICE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/s60audiocapturesession.cpp --- a/qtmobility/plugins/multimedia/symbian/audiosource/s60audiocapturesession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,365 +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 Qt Mobility Components. -** -** $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 -#include - -#include - -#include "s60audiocapturesession.h" - -#include -#include -#include -#include - -#include - -#include -#include - -#include - -#include - -S60AudioCaptureSession::S60AudioCaptureSession(QObject *parent): - QObject(parent), m_recorderUtility(NULL) -{ - TRAPD(err, m_recorderUtility = CMdaAudioRecorderUtility::NewL(*this)); - qWarning() << err; - - TRAP(err, fetchAudioCodecsL()); - qWarning() << err; - -} - -S60AudioCaptureSession::~S60AudioCaptureSession() -{ - stop(); - - if(m_recorderUtility) - delete m_recorderUtility; -} - -QAudioFormat S60AudioCaptureSession::format() const -{ - return m_format; -} - -bool S60AudioCaptureSession::isFormatSupported(const QAudioFormat &format) const -{ - - return false; -} - -bool S60AudioCaptureSession::setFormat(const QAudioFormat &format) -{ - if (m_recorderUtility) { - m_format = format; - } - - return false; -} - -QStringList S60AudioCaptureSession::supportedAudioCodecs() const -{ - return m_controllerIdMap.keys(); -} - - -QString S60AudioCaptureSession::codecDescription(const QString &codecName) -{ - return m_controllerIdMap[codecName].destinationFormatDescription; -} - - -bool S60AudioCaptureSession::setAudioCodec(const QString &codecName) -{ - - if(m_recorderUtility) { - QStringList codecs = supportedAudioCodecs(); - if(codecs.contains(codecName)) { - m_format.setCodec(codecName); - return true; - } - } - - return false; -} - -QString S60AudioCaptureSession::audioCodec() const -{ - return m_format.codec(); -} - -QUrl S60AudioCaptureSession::outputLocation() const -{ - return m_sink; -} - -bool S60AudioCaptureSession::setOutputLocation(const QUrl& sink) -{ - m_sink = sink; - return true; -} - -qint64 S60AudioCaptureSession::position() const -{ - return m_position; -} - -int S60AudioCaptureSession::state() const -{ - return int(m_state); -} - -void S60AudioCaptureSession::record() -{ - QString filename = QDir::toNativeSeparators(m_sink.toString()); - TPtrC16 sink(reinterpret_cast(filename.utf16())); - - TUid controllerUid(TUid::Uid(m_controllerIdMap[m_format.codec()].controllerUid)); - TUid formatUid(TUid::Uid(m_controllerIdMap[m_format.codec()].destinationFormatUid)); - - TRAPD(err, m_recorderUtility->OpenFileL(sink, controllerUid, KNullUid, formatUid)); - qWarning() << err; - - m_state = QMediaRecorder::RecordingState; -} - -void S60AudioCaptureSession::pause() -{ - //TODO: - /* - if(m_audioInput) - m_audioInput->stop(); - */ - - m_state = QMediaRecorder::PausedState; -} - -void S60AudioCaptureSession::stop() -{ - if (m_recorderUtility) { - m_recorderUtility->Stop(); - m_recorderUtility->Close(); - } - m_state = QMediaRecorder::StoppedState; -} - -void S60AudioCaptureSession::stateChanged(QAudio::State state) -{ - switch(state) { - case QAudio::ActiveState: - emit stateChanged(QMediaRecorder::RecordingState); - break; - default: - if(!((m_state == QMediaRecorder::PausedState) || (m_state == QMediaRecorder::StoppedState))) - m_state = QMediaRecorder::StoppedState; - - emit stateChanged(m_state); - break; - } -} - -void S60AudioCaptureSession::notify() -{ - //TODO: - //m_position += m_audioInput->notifyInterval(); - m_position = 0; - emit positionChanged(m_position); -} - -void S60AudioCaptureSession::setCaptureDevice(const QString &deviceName) -{ - m_captureDevice = deviceName; -} - -// Needed observer for CMdaAudioRecorderUtility -void S60AudioCaptureSession::MoscoStateChangeEvent(CBase* aObject, - TInt aPreviousState, TInt aCurrentState, TInt /*aErrorCode*/) -{ - TRAPD(err, MoscoStateChangeEventL(aObject, aPreviousState, aCurrentState, NULL)); - qWarning() << err; -} - -// Needed observer for CMdaAudioRecorderUtility -void S60AudioCaptureSession::MoscoStateChangeEventL(CBase* aObject, - TInt aPreviousState, TInt aCurrentState, TInt /*aErrorCode*/) -{ - if (aObject == m_recorderUtility) - { - switch(aCurrentState) - { - case CMdaAudioClipUtility::EOpen: - { - if(aPreviousState == CMdaAudioClipUtility::ENotReady) - { - RArray supportedSampleRates; - m_recorderUtility->GetSupportedSampleRatesL(supportedSampleRates); - - for (TInt i = 0; i < supportedSampleRates.Count(); i++ ) { - TUint supportedSampleRate = supportedSampleRates[i]; - int frequency = m_format.frequency(); - if (supportedSampleRate == frequency) - m_recorderUtility->SetDestinationSampleRateL(m_format.frequency()); - } - - /* - RArray supportedBitRates; - TRAPD(ignore, m_recorderUtility->GetSupportedBitRatesL(supportedBitRates)); - - for (TInt j = 0; j < supportedBitRates.Count(); j++ ) { - qWarning() << QString("Supported bit rate: ") + QString().number(supportedBitRates[j]); - - } - */ - - TFourCC fourCC; - - if (m_format.sampleSize() == 8) { - switch (m_format.sampleType()) { - case QAudioFormat::SignedInt: { - fourCC.Set(KMMFFourCCCodePCM8); - break; - } - case QAudioFormat::UnSignedInt: { - fourCC.Set(KMMFFourCCCodePCMU8); - break; - } - case QAudioFormat::Float: - case QAudioFormat::Unknown: - default: { - fourCC.Set(KMMFFourCCCodePCM8); - break; - } - } - } else if (m_format.sampleSize() == 16) { - // 16 bit here - switch (m_format.sampleType()) { - case QAudioFormat::SignedInt: { - fourCC.Set(m_format.byteOrder()==QAudioFormat::BigEndian? - KMMFFourCCCodePCM16B:KMMFFourCCCodePCM16); - break; - } - case QAudioFormat::UnSignedInt: { - fourCC.Set(m_format.byteOrder()==QAudioFormat::BigEndian? - KMMFFourCCCodePCMU16B:KMMFFourCCCodePCMU16); - break; - } - default: { - fourCC.Set(KMMFFourCCCodePCM16); - break; - } - } - } - - RArray supportedDataTypes; - m_recorderUtility->GetSupportedDestinationDataTypesL(supportedDataTypes); - - for (TInt k = 0; k < supportedDataTypes.Count(); k++ ) { - if (supportedDataTypes[k].FourCC() == fourCC.FourCC()) { - m_recorderUtility->SetDestinationDataTypeL(supportedDataTypes[k]); - } - } - - //set channels - m_recorderUtility->SetDestinationNumberOfChannelsL(m_format.channels()); - - m_recorderUtility->SetGain(m_recorderUtility->MaxGain()); - m_recorderUtility->RecordL(); - } - break; - } - default: - { - break; - } - } - } -} - - -void S60AudioCaptureSession::fetchAudioCodecsL() -{ - CMMFControllerPluginSelectionParameters* pluginParameters = - CMMFControllerPluginSelectionParameters::NewLC(); - CMMFFormatSelectionParameters* formatParameters = - CMMFFormatSelectionParameters::NewLC(); - - pluginParameters->SetRequiredRecordFormatSupportL(*formatParameters); - - RArray ids; - User::LeaveIfError(ids.Append(KUidMediaTypeAudio)); - - pluginParameters->SetMediaIdsL(ids, - CMMFPluginSelectionParameters::EAllowOnlySuppliedMediaIds); - - RMMFControllerImplInfoArray controllers; - CleanupResetAndDestroyPushL(controllers); - - //Get all audio/video play and record controllers/formats that are supported - pluginParameters->ListImplementationsL(controllers); - - for (TInt index=0; indexRecordFormats(); - for (TInt j=0; jSupportedMimeTypes(); - TInt count = mimeTypes.Count(); - if (count > 0) { - TPtrC8 mimeType = mimeTypes[0]; - QString type = QString::fromUtf8((char *)mimeType.Ptr(), mimeType.Length()); - // Currently only support for audio/wav due to quality issues. - if (type == "audio/wav") { - ItemData data; - data.controllerUid = controllers[index]->Uid().iUid; - data.destinationFormatUid = recordFormats[j]->Uid().iUid; - data.destinationFormatDescription = qt_TDesC2QString(recordFormats[j]->DisplayName()); - m_controllerIdMap[type] = data; - } - } - } - } - - CleanupStack::PopAndDestroy(3);//controllers, formatParameters, pluginParameters -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/s60audiocapturesession.h --- a/qtmobility/plugins/multimedia/symbian/audiosource/s60audiocapturesession.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,169 +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 Qt Mobility Components. -** -** $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 S60AUDIOCAPTURESESSION_H -#define S60AUDIOCAPTURESESSION_H - -#include -#include - -#include "s60audioencodercontrol.h" -#include "s60audioendpointselector.h" -#include "s60audiomediarecordercontrol.h" - -#include - -#include -#include -#include -#include - -struct ItemData -{ - int controllerUid; - int destinationFormatUid; - QString destinationFormatDescription; -}; - - -class S60AudioCaptureSession : public QObject, public MMdaObjectStateChangeObserver -{ - Q_OBJECT - -public: - S60AudioCaptureSession(QObject *parent = 0); - ~S60AudioCaptureSession(); - - QAudioFormat format() const; - bool isFormatSupported(const QAudioFormat &format) const; - bool setFormat(const QAudioFormat &format); - QStringList supportedAudioCodecs() const; - QString codecDescription(const QString &codecName); - bool setAudioCodec(const QString &codecName); - QString audioCodec() const; - - QUrl outputLocation() const; - bool setOutputLocation(const QUrl& sink); - qint64 position() const; - int state() const; - void record(); - void pause(); - void stop(); - -public slots: - void setCaptureDevice(const QString &deviceName); - -signals: - void stateChanged(QMediaRecorder::State state); - void positionChanged(qint64 position); - -private slots: - void stateChanged(QAudio::State state); - void notify(); - -private: - enum TStatus - { - ENotReady, - EOpen - }; - - void MoscoStateChangeEvent(CBase* aObject, TInt aPreviousState, - TInt aCurrentState, TInt aErrorCode); - void MoscoStateChangeEventL(CBase* aObject, TInt aPreviousState, - TInt aCurrentState, TInt aErrorCode); - - void fetchAudioCodecsL(); - - - QString m_captureDevice; - QUrl m_sink; - QMediaRecorder::State m_state; - - CMdaAudioRecorderUtility *m_recorderUtility; - QAudioFormat m_format; - qint64 m_position; - bool wavFile; - - QHash m_controllerIdMap; - - // WAV header stuff - - struct chunk - { - char id[4]; - quint32 size; - }; - - struct RIFFHeader - { - chunk descriptor; - char type[4]; - }; - - struct WAVEHeader - { - chunk descriptor; - quint16 audioFormat; // PCM = 1 - quint16 numChannels; - quint32 sampleRate; - quint32 byteRate; - quint16 blockAlign; - quint16 bitsPerSample; - }; - - struct DATAHeader - { - chunk descriptor; - quint8 data[4]; - }; - - struct CombinedHeader - { - RIFFHeader riff; - WAVEHeader wave; - DATAHeader data; - }; - - CombinedHeader header; -}; - -#endif // S60AUDIOCAPTURESESSION_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/s60audioencodercontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/audiosource/s60audioencodercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,250 +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 Qt Mobility Components. -** -** $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 "s60audioencodercontrol.h" -#include "s60audiocapturesession.h" - -#include - -#include - -S60AudioEncoderControl::S60AudioEncoderControl(QObject *parent) - :QAudioEncoderControl(parent) -{ - QAudioFormat fmt; - fmt.setSampleSize(8); - fmt.setChannels(1); - fmt.setFrequency(8000); - fmt.setSampleType(QAudioFormat::SignedInt); - //fmt.setCodec("audio/pcm"); - - m_session = qobject_cast(parent); -} - -S60AudioEncoderControl::~S60AudioEncoderControl() -{ -} - -QStringList S60AudioEncoderControl::supportedAudioCodecs() const -{ - return m_session->supportedAudioCodecs(); -} - -QString S60AudioEncoderControl::audioCodec() const -{ - return m_session->format().codec(); -} - -bool S60AudioEncoderControl::setAudioCodec(const QString &codecName) -{ - QAudioFormat fmt = m_session->format(); - fmt.setCodec(codecName); - return m_session->setFormat(fmt); -} - -QString S60AudioEncoderControl::codecDescription(const QString &codecName) const -{ - return m_session->codecDescription(codecName); - /* - if(qstrcmp(codecName.toLocal8Bit().constData(), "audio/x-wav") == 0) - return QString("wav file format"); - - return QString(); - */ -} - -int S60AudioEncoderControl::bitRate() const -{ - return (m_session->format().frequency() * m_session->format().channels() * (m_session->format().sampleSize() / 8)); -} - -void S60AudioEncoderControl::setBitRate(int value) -{ - QAudioFormat fmt = m_session->format(); - - if(value <= 8) { - // low, 8000Hz mono U8 - fmt.setSampleType(QAudioFormat::UnSignedInt); - fmt.setSampleSize(8); - fmt.setFrequency(8000); - fmt.setChannels(1); - - } else if(value <= 44) { - // medium, 22050Hz mono S16 - fmt.setSampleType(QAudioFormat::SignedInt); - fmt.setSampleSize(16); - fmt.setFrequency(22050); - fmt.setChannels(1); - - } else { - // high, 44100Hz mono S16 - fmt.setSampleType(QAudioFormat::SignedInt); - fmt.setSampleSize(16); - fmt.setFrequency(44100); - fmt.setChannels(1); - - } - m_session->setFormat(fmt); -} - -QtMedia::EncodingQuality S60AudioEncoderControl::quality() const -{ - return QtMedia::NormalQuality; -} - -void S60AudioEncoderControl::setQuality(QtMedia::EncodingQuality value) -{ - Q_UNUSED(value) -} - -QStringList S60AudioEncoderControl::supportedEncodingOptions(const QString &codec) const -{ - Q_UNUSED(codec) - - QStringList list; - return list; -} - -QVariant S60AudioEncoderControl::encodingOption(const QString &codec, const QString &name) const -{ - Q_UNUSED(codec) - QAudioFormat fmt = m_session->format(); - - if(qstrcmp(name.toLocal8Bit().constData(), "bitrate") == 0) { - return QVariant(fmt.frequency()); - } - - return QVariant(); -} - -void S60AudioEncoderControl::setEncodingOption( - const QString &codec, const QString &name, const QVariant &value) -{ - Q_UNUSED(value) - Q_UNUSED(codec) - - //QAudioFormat fmt = m_session->format(); - - if(qstrcmp(name.toLocal8Bit().constData(), "bitrate") == 0) { - setBitRate(value.toInt()); - - } else if(qstrcmp(name.toLocal8Bit().constData(), "quality") == 0) { - setQuality((QtMedia::EncodingQuality)value.toInt()); - - } else - qWarning() << "option: " << name << " is an unknown option!"; -} - -int S60AudioEncoderControl::sampleRate() const -{ - return m_session->format().frequency(); -} - -void S60AudioEncoderControl::setSampleRate(int sampleRate) -{ - QAudioFormat fmt = m_session->format(); - fmt.setFrequency(sampleRate); - m_session->setFormat(fmt); -} - -QList S60AudioEncoderControl::supportedSampleRates(const QAudioEncoderSettings &settings, bool *continuous) const -{ - if (continuous) - *continuous = false; - - //TODO: return supported sample rates - return QList(); //m_session->deviceInfo()->supportedFrequencies(); -} - -int S60AudioEncoderControl::channelCount() const -{ - return m_session->format().channels(); -} - -void S60AudioEncoderControl::setChannelCount(int channels) -{ - QAudioFormat fmt = m_session->format(); - fmt.setChannels(channels); - m_session->setFormat(fmt); -} - -QList S60AudioEncoderControl::supportedChannelCounts() const -{ - return QList() << 1 << 2; -} - -int S60AudioEncoderControl::sampleSize() const -{ - return m_session->format().sampleSize(); -} - -void S60AudioEncoderControl::setSampleSize(int sampleSize) -{ - QAudioFormat fmt = m_session->format(); - fmt.setSampleSize(sampleSize); - m_session->setFormat(fmt); -} - -QList S60AudioEncoderControl::supportedSampleSizes() const -{ - //QList sizes = m_session->deviceInfo()->supportedSampleSizes(); - return QList(); //sizes; -} - -QAudioEncoderSettings S60AudioEncoderControl::audioSettings() const -{ - QAudioEncoderSettings settings; - settings.setCodec(audioCodec()); - settings.setBitRate(bitRate()); - settings.setQuality(quality()); - settings.setSampleRate(sampleRate()); - settings.setChannelCount(channelCount()); - return settings; -} - -void S60AudioEncoderControl::setAudioSettings(const QAudioEncoderSettings &settings) -{ - setAudioCodec(settings.codec()); - setBitRate(settings.bitRate()); - setQuality(settings.quality()); - setSampleRate(settings.sampleRate()); - setChannelCount(settings.channelCount()); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/s60audioencodercontrol.h --- a/qtmobility/plugins/multimedia/symbian/audiosource/s60audioencodercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,98 +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 Qt Mobility Components. -** -** $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 AUDIOENCODERCONTROL_H -#define AUDIOENCODERCONTROL_H - -#include - -#include -#include - -#include - -QTM_USE_NAMESPACE - -class S60AudioCaptureSession; - -class S60AudioEncoderControl : public QAudioEncoderControl -{ - Q_OBJECT -public: - S60AudioEncoderControl(QObject *parent); - virtual ~S60AudioEncoderControl(); - - QStringList supportedAudioCodecs() const; - QString audioCodec() const; - bool setAudioCodec(const QString &codecName); - - QString codecDescription(const QString &codecName) const; - - int bitRate() const; - void setBitRate(int); - - QtMedia::EncodingQuality quality() const; - void setQuality(QtMedia::EncodingQuality); - - QStringList supportedEncodingOptions(const QString &codec) const; - QVariant encodingOption(const QString &codec, const QString &name) const; - void setEncodingOption(const QString &codec, const QString &name, const QVariant &value); - - int sampleRate() const; - void setSampleRate(int sampleRate); - QList supportedSampleRates(const QAudioEncoderSettings &settings, bool *continuous = 0) const; - - int channelCount() const; - void setChannelCount(int channels); - QList supportedChannelCounts() const; - - int sampleSize() const; - void setSampleSize(int sampleSize); - QList supportedSampleSizes() const; - - QAudioEncoderSettings audioSettings() const; - void setAudioSettings(const QAudioEncoderSettings&); - -private: - S60AudioCaptureSession* m_session; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/s60audioendpointselector.cpp --- a/qtmobility/plugins/multimedia/symbian/audiosource/s60audioendpointselector.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,104 +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 Qt Mobility Components. -** -** $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 "s60audiocapturesession.h" -#include "s60audioendpointselector.h" - -#include -#include - - -S60AudioEndpointSelector::S60AudioEndpointSelector(QObject *parent) - :QAudioEndpointSelector(parent) -{ - m_session = qobject_cast(parent); - - update(); - - m_audioInput = defaultEndpoint(); -} - -S60AudioEndpointSelector::~S60AudioEndpointSelector() -{ -} - -QList S60AudioEndpointSelector::availableEndpoints() const -{ - return m_names; -} - -QString S60AudioEndpointSelector::endpointDescription(const QString& name) const -{ - QString desc; - - for(int i = 0; i < m_names.count(); i++) { - if (m_names.at(i).compare(name) == 0) { - desc = m_names.at(i); - break; - } - } - return desc; -} - -QString S60AudioEndpointSelector::defaultEndpoint() const -{ - return QString(); -} - -QString S60AudioEndpointSelector::activeEndpoint() const -{ - return m_audioInput; -} - -void S60AudioEndpointSelector::setActiveEndpoint(const QString& name) -{ - m_audioInput = name; - m_session->setCaptureDevice(name); -} - -void S60AudioEndpointSelector::update() -{ - m_names.clear(); - m_descriptions.clear(); - - m_names.append(QString("MMF")); - m_descriptions.append(QString("MMF")); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/s60audioendpointselector.h --- a/qtmobility/plugins/multimedia/symbian/audiosource/s60audioendpointselector.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +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 Qt Mobility Components. -** -** $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 S60AUDIOENDPOINTSELECTOR_H -#define S60AUDIOENDPOINTSELECTOR_H - -#include - -#include - -QTM_USE_NAMESPACE - -class S60AudioCaptureSession; - -class S60AudioEndpointSelector : public QAudioEndpointSelector -{ - -Q_OBJECT - -public: - S60AudioEndpointSelector(QObject *parent); - virtual ~S60AudioEndpointSelector(); - - QList availableEndpoints() const; - QString endpointDescription(const QString& name) const; - QString defaultEndpoint() const; - QString activeEndpoint() const; - -public Q_SLOTS: - void setActiveEndpoint(const QString& name); - -private: - void update(); - - QString m_audioInput; - QList m_names; - QList m_descriptions; - - S60AudioCaptureSession* m_session; -}; - -#endif // S60AUDIOENDPOINTSELECTOR_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/s60audiomediarecordercontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/audiosource/s60audiomediarecordercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +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 Qt Mobility Components. -** -** $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 "s60audiocapturesession.h" -#include "s60audiomediarecordercontrol.h" - -#include - -S60AudioMediaRecorderControl::S60AudioMediaRecorderControl(QObject *parent) - :QMediaRecorderControl(parent) -{ - m_session = qobject_cast(parent); - connect(m_session, SIGNAL(positionChanged(qint64)), this, SIGNAL(durationChanged(qint64))); - connect(m_session, SIGNAL(stateChanged(QMediaRecorder::State)), this, SIGNAL(stateChanged(QMediaRecorder::State))); -} - -S60AudioMediaRecorderControl::~S60AudioMediaRecorderControl() -{ -} - -QUrl S60AudioMediaRecorderControl::outputLocation() const -{ - return m_session->outputLocation(); -} - -bool S60AudioMediaRecorderControl::setOutputLocation(const QUrl& sink) -{ - return m_session->setOutputLocation(sink); -} - -QMediaRecorder::State S60AudioMediaRecorderControl::state() const -{ - return (QMediaRecorder::State)m_session->state(); -} - -qint64 S60AudioMediaRecorderControl::duration() const -{ - return m_session->position(); -} - -void S60AudioMediaRecorderControl::record() -{ - m_session->record(); -} - -void S60AudioMediaRecorderControl::pause() -{ - m_session->stop(); -} - -void S60AudioMediaRecorderControl::stop() -{ - m_session->stop(); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/audiosource/s60audiomediarecordercontrol.h --- a/qtmobility/plugins/multimedia/symbian/audiosource/s60audiomediarecordercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +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 Qt Mobility Components. -** -** $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 S60AUDIOMEDIARECORDERCONTROL_H -#define S60AUDIOMEDIARECORDERCONTROL_H - -#include - -#include -#include - -QTM_USE_NAMESPACE - -class S60AudioCaptureSession; - -class S60AudioMediaRecorderControl : public QMediaRecorderControl -{ - Q_OBJECT -public: - S60AudioMediaRecorderControl(QObject *parent = 0); - ~S60AudioMediaRecorderControl(); - - QUrl outputLocation() const; - bool setOutputLocation(const QUrl &sink); - - QMediaRecorder::State state() const; - - qint64 duration() const; - - void applySettings() {} - -public slots: - void record(); - void pause(); - void stop(); - -private: - S60AudioCaptureSession* m_session; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/camera_s60.pri --- a/qtmobility/plugins/multimedia/symbian/camera/camera_s60.pri Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -INCLUDEPATH += $$PWD - -# depends on camerawrapper, available from forum nokia -exists($${EPOCROOT}epoc32\include\cameraengine.h) { - DEFINES += QMEDIA_SYMBIAN_CAMERA - - exists($${EPOCROOT}epoc32\include\ecamadvancedsettings.h) { - symbian:LIBS += -lecamadvsettings - DEFINES += USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER - message("Using from s60 3.2 CCameraAdvancedSettings header") - } - exists($${EPOCROOT}epoc32\include\ecamadvsettings.h) { - symbian:LIBS += -lecamadvsettings - DEFINES += USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER - message("Using from s60 5.0 CCameraAdvancedSettings header") - } - - symbian:LIBS += -lcamerawrapper \ - -lfbscli \ - -lmediaclientvideo \ - -lecam - - HEADERS += $$PWD/s60camerafocuscontrol.h \ - $$PWD/s60cameraexposurecontrol.h \ - $$PWD/s60cameracontrol.h \ - $$PWD/s60mediacontrol.h \ - $$PWD/s60camerasession.h \ - $$PWD/s60mediacontainercontrol.h \ - $$PWD/s60videoencoder.h \ - $$PWD/s60cameraservice.h \ - $$PWD/s60cameraimageprocessingcontrol.h \ - $$PWD/s60cameraimagecapturecontrol.h \ - $$PWD/s60cameravideodevicecontrol.h \ - $$PWD/s60cameraimageencodercontrol.h \ - $$PWD/s60viewfinderwidget.h \ - $$PWD/s60camerasettings.h - SOURCES += $$PWD/s60camerafocuscontrol.cpp \ - $$PWD/s60cameraexposurecontrol.cpp \ - $$PWD/s60cameracontrol.cpp \ - $$PWD/s60mediacontrol.cpp \ - $$PWD/s60camerasession.cpp \ - $$PWD/s60mediacontainercontrol.cpp \ - $$PWD/s60videoencoder.cpp \ - $$PWD/s60cameraservice.cpp \ - $$PWD/s60cameraimageprocessingcontrol.cpp \ - $$PWD/s60cameraimagecapturecontrol.cpp \ - $$PWD/s60cameravideodevicecontrol.cpp \ - $$PWD/s60cameraimageencodercontrol.cpp \ - $$PWD/s60viewfinderwidget.cpp \ - $$PWD/s60camerasettings.cpp -} -else { - message("Symbian camera service disabled, it needs camerawrapper, available from forum.nokia.com") -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameracontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameracontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +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 Qt Mobility Components. -** -** $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 "s60cameracontrol.h" -#include "s60cameraservice.h" -#include "s60camerasession.h" - -#include -#include - - -S60CameraControl::S60CameraControl(QObject *parent) - : QCameraControl(parent), m_captureMode(QCamera::CaptureStillImage) -{ -} - -S60CameraControl::S60CameraControl(QObject *session, QObject *parent) - : QCameraControl(parent), m_captureMode(QCamera::CaptureStillImage) -{ - // use cast if we want to change session class later on.. - m_session = qobject_cast(session); - // connect signals to session - connect (m_session,SIGNAL(stateChanged(QCamera::State)),this,SIGNAL(stateChanged(QCamera::State))); - connect (m_session,SIGNAL(error(int,const QString &)),this,SIGNAL(error(int,const QString &))); -} - -S60CameraControl::~S60CameraControl() -{ -} - -void S60CameraControl::start() -{ - if (m_session) { - m_session->startCamera(); - } -} -void S60CameraControl::stop() -{ - if (m_session) - m_session->stopCamera(); -} - -QCamera::State S60CameraControl::state() const -{ - if (m_session) { - return (QCamera::State)m_session->state(); - } - // we have no session, thus no camera is active. - return QCamera::StoppedState; -} -QCamera::CaptureMode S60CameraControl::captureMode() const -{ - return m_captureMode; -} -void S60CameraControl::setCaptureMode(QCamera::CaptureMode mode) -{ - //TODO: set capture mode for session - if (m_captureMode != mode) { - m_captureMode = mode; - emit captureModeChanged(mode); - } - -} -QCamera::CaptureModes S60CameraControl::supportedCaptureModes() const -{ - return QCamera::CaptureStillImage | QCamera::CaptureVideo; -} - - -void S60CameraControl::setVideoOutput(QObject *output) -{ - if (m_session) - m_session->setVideoRenderer(output); -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameracontrol.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameracontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +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 Qt Mobility Components. -** -** $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 S60CAMERACONTROL_H -#define S60CAMERACONTROL_H - -#include -#include "qcameracontrol.h" - -QTM_USE_NAMESPACE - -class S60CameraService; -class S60CameraSession; - -class S60CameraControl : public QCameraControl -{ - Q_OBJECT -public: - S60CameraControl(QObject *parent = 0); - S60CameraControl(QObject *session, QObject *parent = 0); - ~S60CameraControl(); - - void start(); - void stop(); - QCamera::State state() const; - QCamera::CaptureMode captureMode() const; - void setCaptureMode(QCamera::CaptureMode); - QCamera::CaptureModes supportedCaptureModes() const; - - void setVideoOutput(QObject *output); - -private: - S60CameraSession *m_session; - QCamera::CaptureMode m_captureMode; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameraexposurecontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameraexposurecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,248 +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 Qt Mobility Components. -** -** $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 "s60cameraexposurecontrol.h" -#include "s60cameraservice.h" -#include "s60camerasession.h" - -#include -#include - - -S60CameraExposureControl::S60CameraExposureControl(QObject *parent) - :QCameraExposureControl(parent) -{ -} - -S60CameraExposureControl::S60CameraExposureControl(QObject *session, QObject *parent) - :QCameraExposureControl(parent) - , m_error(QCamera::NoError) - , m_flashMode(QCamera::FlashOff) - , m_exposureMode(QCamera::ExposureAuto) - , m_meteringMode(QCamera::MeteringMatrix) - , m_ev(0.0) -{ - // use cast if we want to change session class later on.. - m_session = qobject_cast(session); - m_advancedSettings = m_session->advancedSettings(); - - connect(m_advancedSettings, SIGNAL(exposureLocked()), this, SIGNAL(exposureLocked())); - connect(m_advancedSettings, SIGNAL(flashReady(bool)), this, SIGNAL(flashReady(bool))); - connect(m_advancedSettings, SIGNAL(apertureChanged(qreal)), this, SIGNAL(apertureChanged(qreal))); - connect(m_advancedSettings, SIGNAL(apertureRangeChanged()), this, SIGNAL(apertureRangeChanged())); - connect(m_advancedSettings, SIGNAL(shutterSpeedChanged(qreal)), this, SIGNAL(shutterSpeedChanged(qreal))); - connect(m_advancedSettings, SIGNAL(isoSensitivityChanged(int)), this, SIGNAL(isoSensitivityChanged(int))); -} - -S60CameraExposureControl::~S60CameraExposureControl() -{ - m_advancedSettings = NULL; -} - - -QCamera::FlashMode S60CameraExposureControl::flashMode() const -{ - return m_session->flashMode(); -} - -void S60CameraExposureControl::setFlashMode(QCamera::FlashMode mode) -{ - QCamera::FlashModes supportedModes = supportedFlashModes(); - if (supportedModes & mode) { - m_flashMode = mode; - m_session->setFlashMode(m_flashMode); - } -} - -QCamera::FlashModes S60CameraExposureControl::supportedFlashModes() const -{ - return m_session->supportedFlashModes(); -} - -bool S60CameraExposureControl::isFlashReady() const -{ - return m_advancedSettings->isFlashReady(); -} - -QCamera::ExposureMode S60CameraExposureControl::exposureMode() const -{ - return m_session->exposureMode(); -} - -void S60CameraExposureControl::setExposureMode(QCamera::ExposureMode mode) -{ - //qDebug() << "S60CameraExposureControl::setExposureMode"; - QCamera::ExposureModes supportedModes = supportedExposureModes(); - if (supportedModes & mode) { - m_exposureMode = mode; - //qDebug() << "Set exposure mode"; - m_session->setExposureMode(m_exposureMode); - } -} - -QCamera::ExposureModes S60CameraExposureControl::supportedExposureModes() const -{ - return m_session->supportedExposureModes(); -} - -qreal S60CameraExposureControl::exposureCompensation() const -{ - return m_advancedSettings->exposureCompensation(); -} - -void S60CameraExposureControl::setExposureCompensation(qreal ev) -{ - m_advancedSettings->setExposureCompensation(ev); - m_ev = ev; -} - -QCamera::MeteringMode S60CameraExposureControl::meteringMode() const -{ - return m_advancedSettings->meteringMode(); -} - -void S60CameraExposureControl::setMeteringMode(QCamera::MeteringMode mode) -{ - QCamera::MeteringModes supportedModes = supportedMeteringModes(); - if (supportedModes & mode) { - m_meteringMode = mode; - m_advancedSettings->setMeteringMode(mode); - } -} - -QCamera::MeteringModes S60CameraExposureControl::supportedMeteringModes() const -{ - return m_advancedSettings->supportedMeteringModes(); -} - -int S60CameraExposureControl::isoSensitivity() const -{ - return m_advancedSettings->isoSensitivity(); -} - -QList S60CameraExposureControl::supportedIsoSensitivities(bool *continuous) const -{ - Q_UNUSED(continuous); - return m_advancedSettings->supportedIsoSensitivities(); -} - -void S60CameraExposureControl::setManualIsoSensitivity(int iso) -{ - int minIso = supportedIsoSensitivities().first(); - int maxIso = supportedIsoSensitivities().last(); - if (iso < minIso) { - iso = minIso; - } else if (iso > maxIso) { - iso = maxIso; - } - m_advancedSettings->setManualIsoSensitivity(iso); -} - -void S60CameraExposureControl::setAutoIsoSensitivity() -{ - m_error = QCamera::NotSupportedFeatureError; -} - -qreal S60CameraExposureControl::aperture() const -{ - return m_advancedSettings->aperture(); -} - -QList S60CameraExposureControl::supportedApertures(bool *continuous) const -{ - return m_advancedSettings->supportedApertures(continuous); -} - -void S60CameraExposureControl::setManualAperture(qreal aperture) -{ - int minIso = supportedApertures().first(); - int maxIso = supportedApertures().last(); - if (aperture < minIso) { - aperture = minIso; - } else if (aperture > maxIso) { - aperture = maxIso; - } - m_advancedSettings->setManualAperture(aperture); -} - -void S60CameraExposureControl::setAutoAperture() -{ - m_error = QCamera::NotSupportedFeatureError; -} - -qreal S60CameraExposureControl::shutterSpeed() const -{ - return m_advancedSettings->shutterSpeed(); -} - -/* - Returns the list of shutter speed values if camera supports only fixed set of shutter speed values, - otherwise returns an empty list. - */ -QList S60CameraExposureControl::supportedShutterSpeeds(bool *continuous) const -{ - return m_advancedSettings->supportedShutterSpeeds(continuous);; -} - -void S60CameraExposureControl::setManualShutterSpeed(qreal seconds) -{ - m_advancedSettings->setShutterSpeed(seconds); -} - -void S60CameraExposureControl::setAutoShutterSpeed() -{ - m_error = QCamera::NotSupportedFeatureError; -} - -bool S60CameraExposureControl::isExposureLocked() const -{ - return m_advancedSettings->isExposureLocked(); -} - -void S60CameraExposureControl::lockExposure() -{ - m_advancedSettings->lockExposure(true); -} - -void S60CameraExposureControl::unlockExposure() -{ - m_advancedSettings->lockExposure(false); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameraexposurecontrol.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameraexposurecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,112 +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 Qt Mobility Components. -** -** $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 S60CAMERAEXPOSURECONTROL_H -#define S60CAMERAEXPOSURECONTROL_H - -#include -#include "qcameraexposurecontrol.h" -#include "s60camerasettings.h" - -QTM_USE_NAMESPACE - -class S60CameraService; -class S60CameraSession; - -class S60CameraExposureControl : public QCameraExposureControl -{ - Q_OBJECT -public: - S60CameraExposureControl(QObject *parent = 0); - S60CameraExposureControl(QObject *session, QObject *parent = 0); - ~S60CameraExposureControl(); - - QCamera::FlashMode flashMode() const; - void setFlashMode(QCamera::FlashMode mode); - QCamera::FlashModes supportedFlashModes() const; - bool isFlashReady() const; - - QCamera::ExposureMode exposureMode() const; - void setExposureMode(QCamera::ExposureMode mode); - QCamera::ExposureModes supportedExposureModes() const; - - qreal exposureCompensation() const; - void setExposureCompensation(qreal ev); - - QCamera::MeteringMode meteringMode() const; - void setMeteringMode(QCamera::MeteringMode mode); - QCamera::MeteringModes supportedMeteringModes() const; - - int isoSensitivity() const; - QList supportedIsoSensitivities(bool *continuous = 0) const; - void setManualIsoSensitivity(int iso); - void setAutoIsoSensitivity(); - - qreal aperture() const; - QList supportedApertures(bool *continuous = 0) const; - void setManualAperture(qreal aperture); - void setAutoAperture(); - - qreal shutterSpeed() const; - QList supportedShutterSpeeds(bool *continuous = 0) const; - void setManualShutterSpeed(qreal seconds); - void setAutoShutterSpeed(); - - bool isExposureLocked() const; - -public Q_SLOTS: - void lockExposure(); - void unlockExposure(); - -private: - S60CameraSession *m_session; - S60CameraService *m_service; - QCamera::Error m_error; - - S60CameraSettings *m_advancedSettings; - - QCamera::FlashMode m_flashMode; - QCamera::ExposureMode m_exposureMode; - QCamera::MeteringMode m_meteringMode; - qreal m_ev; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60camerafocuscontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60camerafocuscontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,166 +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 Qt Mobility Components. -** -** $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 "s60camerafocuscontrol.h" -#include "s60cameraservice.h" -#include "s60camerasession.h" - -#include -#include - - -S60CameraFocusControl::S60CameraFocusControl(QObject *parent) - :QCameraFocusControl(parent) -{ - m_session = qobject_cast(parent); -} - -S60CameraFocusControl::S60CameraFocusControl(QObject *session, QObject *parent) - :QCameraFocusControl(parent) - , m_focusLocked(false) - , m_opticalZoomValue(1.0) - , m_digitalZoomValue(1.0) - , m_maxZoom(1.0) - , m_maxDigitalZoom(1.0) - , m_macroFocusingEnabled(false) - , m_focusMode(QCamera::AutoFocus) - , m_focusStatus(QCamera::FocusInitial) - , m_error(QCamera::NoError) -{ - // use cast if we want to change session class later on.. - m_session = qobject_cast(session); - m_advancedSettings = m_session->advancedSettings(); - connect(m_session, SIGNAL(opticalZoomChanged(qreal)), this, SIGNAL(opticalZoomChanged(qreal))); - connect(m_session, SIGNAL(digitalZoomChanged(qreal)), this, SIGNAL(digitalZoomChanged(qreal))); - connect(m_session, SIGNAL(focusStatusChanged(QCamera::FocusStatus)), this, SLOT(focusChanged(QCamera::FocusStatus))); - m_advancedSettings->setFocusMode(m_focusMode); - m_session->setZoomFactor(m_opticalZoomValue, m_digitalZoomValue); -} - -S60CameraFocusControl::~S60CameraFocusControl() -{ -} - -QCamera::FocusMode S60CameraFocusControl::focusMode() const -{ - return m_advancedSettings->focusMode(); -} - -void S60CameraFocusControl::setFocusMode(QCamera::FocusMode mode) -{ - m_advancedSettings->setFocusMode(mode); - m_focusMode = mode; -} - -QCamera::FocusModes S60CameraFocusControl::supportedFocusModes() const -{ - return m_advancedSettings->supportedFocusModes(); -} - -QCamera::FocusStatus S60CameraFocusControl::focusStatus() const -{ - return m_focusStatus; -} - -bool S60CameraFocusControl::macroFocusingEnabled() const -{ - return m_macroFocusingEnabled; -} - -bool S60CameraFocusControl::isMacroFocusingSupported() const -{ - // not supported - return false; -} - -void S60CameraFocusControl::setMacroFocusingEnabled(bool /*e*/) -{ - // not supported - m_error = QCamera::NotSupportedFeatureError; -} - -qreal S60CameraFocusControl::maximumOpticalZoom() const -{ - return m_session->maximumZoom(); -} - -qreal S60CameraFocusControl::maximumDigitalZoom() const -{ - return m_session->maxDigitalZoom(); -} - -qreal S60CameraFocusControl::opticalZoom() const -{ - return m_session->zoomFactor(); -} - -qreal S60CameraFocusControl::digitalZoom() const -{ - return m_session->digitalZoomFactor(); -} - -void S60CameraFocusControl::zoomTo(qreal optical, qreal digital) -{ - m_session->setZoomFactor(optical, digital); - m_opticalZoomValue = optical; - m_digitalZoomValue = digital; -} - -void S60CameraFocusControl::startFocusing() -{ - m_session->startFocus(); - m_focusStatus = QCamera::FocusRequested; - emit focusStatusChanged(QCamera::FocusRequested); -} - -void S60CameraFocusControl::cancelFocusing() -{ - m_session->cancelFocus(); - m_focusStatus = QCamera::FocusCanceled; - emit focusStatusChanged(QCamera::FocusCanceled); -} - -void S60CameraFocusControl::focusChanged(QCamera::FocusStatus status) -{ - m_focusStatus = status; - emit focusStatusChanged(status); -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60camerafocuscontrol.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60camerafocuscontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,102 +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 Qt Mobility Components. -** -** $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 S60CAMERAFOCUSCONTROL_H -#define S60CAMERAFOCUSCONTROL_H - -#include -#include "qcamerafocuscontrol.h" -#include "s60camerasettings.h" - -QTM_USE_NAMESPACE - -class S60CameraService; -class S60CameraSession; - -class S60CameraFocusControl : public QCameraFocusControl -{ - Q_OBJECT -public: - S60CameraFocusControl(QObject *parent = 0); - S60CameraFocusControl(QObject *session, QObject *parent = 0); - ~S60CameraFocusControl(); - - QCamera::FocusMode focusMode() const; - void setFocusMode(QCamera::FocusMode mode); - QCamera::FocusModes supportedFocusModes() const; - QCamera::FocusStatus focusStatus() const; - - bool macroFocusingEnabled() const; - bool isMacroFocusingSupported() const; - void setMacroFocusingEnabled(bool); - - qreal maximumOpticalZoom() const; - qreal maximumDigitalZoom() const; - - qreal opticalZoom() const; - qreal digitalZoom() const; - - void zoomTo(qreal optical, qreal digital); - -public Q_SLOTS: - - void startFocusing(); - void cancelFocusing(); - void focusChanged(QCamera::FocusStatus status); - -private: - S60CameraSession *m_session; - S60CameraService *m_service; - - S60CameraSettings *m_advancedSettings; - - bool m_focusLocked; - qreal m_digitalZoomValue; - qreal m_opticalZoomValue; - bool m_macroFocusingEnabled; - QCamera::FocusMode m_focusMode; - QCamera::FocusStatus m_focusStatus; - qreal m_maxZoom; - qreal m_maxDigitalZoom; - QCamera::Error m_error; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameraimagecapturecontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameraimagecapturecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,89 +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 Qt Mobility Components. -** -** $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 "s60cameraimagecapturecontrol.h" -#include "s60cameraservice.h" -#include "s60camerasession.h" - -#include -#include - - -S60CameraImageCaptureControl::S60CameraImageCaptureControl(QObject *parent) - :QImageCaptureControl(parent) -{ -} - -S60CameraImageCaptureControl::S60CameraImageCaptureControl(QObject *session, QObject *parent) - :QImageCaptureControl(parent) -{ - // use cast if we want to change session class later on.. - m_session = qobject_cast(session); - // chain these signals from session class - connect(m_session, SIGNAL(imageCaptured(QString,QImage)), - this, SIGNAL(imageCaptured(QString,QImage))); - connect(m_session, SIGNAL(readyForCaptureChanged(bool)), - this, SIGNAL(readyForCaptureChanged(bool))); - connect(m_session, SIGNAL(imageSaved(const QString&)), - this, SIGNAL(imageSaved(const QString&))); - connect(m_session, SIGNAL(error(int, const QString &)), - this, SIGNAL(error(int, const QString &))); - -} - - -S60CameraImageCaptureControl::~S60CameraImageCaptureControl() -{ -} - -bool S60CameraImageCaptureControl::isReadyForCapture() const -{ - if (m_session) - return m_session->deviceReady(); - else - return false; -} -void S60CameraImageCaptureControl::capture(const QString &fileName) -{ - if (m_session) - m_session->capture(fileName); -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameraimagecapturecontrol.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameraimagecapturecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,69 +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 Qt Mobility Components. -** -** $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 S60CAMERAIMAGECAPTURECONTROL_H -#define S60CAMERAIMAGECAPTURECONTROL_H - -#include -#include "qimagecapturecontrol.h" - -QTM_USE_NAMESPACE - -class S60CameraService; -class S60CameraSession; - -class S60CameraImageCaptureControl : public QImageCaptureControl -{ - Q_OBJECT -public: - S60CameraImageCaptureControl(QObject *parent = 0); - S60CameraImageCaptureControl(QObject *session, QObject *parent = 0); - ~S60CameraImageCaptureControl(); - - bool isReadyForCapture() const; - void capture(const QString &fileName); - -private: - S60CameraSession *m_session; - S60CameraService *m_service; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameraimageencodercontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameraimageencodercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,144 +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 Qt Mobility Components. -** -** $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 "s60cameraimageencodercontrol.h" -#include "s60camerasession.h" - -#include -#include - -S60CameraImageEncoderControl::S60CameraImageEncoderControl(QObject *parent) - :QImageEncoderControl(parent) -{ -} - -S60CameraImageEncoderControl::S60CameraImageEncoderControl(QObject *session, QObject *parent) - :QImageEncoderControl(parent) -{ - m_session = qobject_cast(session); -} - -S60CameraImageEncoderControl::~S60CameraImageEncoderControl() -{ -} - -QList S60CameraImageEncoderControl::supportedResolutions( - const QImageEncoderSettings &settings, bool *continuous) const -{ - // we support arbitary resolutions. they are converted to nearest real resolution - *continuous = true; - - QList resolutions; - if (m_session) - resolutions = m_session->supportedCaptureSizesForCodec(settings.codec()); - return resolutions; -} -QStringList S60CameraImageEncoderControl::supportedImageCodecs() const -{ - QStringList codecs; - if (m_session) - codecs = m_session->supportedImageCaptureCodecs(); - return codecs; -} - -QString S60CameraImageEncoderControl::imageCodecDescription(const QString &codecName) const -{ - QString codecDesc; - if (m_session) - codecDesc = m_session->imageCaptureCodecDescription(codecName); - return codecDesc; -} - -QImageEncoderSettings S60CameraImageEncoderControl::imageSettings() const -{ - return m_imageEncoderSettings; -} -void S60CameraImageEncoderControl::setImageSettings(const QImageEncoderSettings &settings) -{ - m_imageEncoderSettings = settings; - if (m_session && !settings.isNull()) { - // set codec first as optiomal capturesize is decided based on chosen codec - m_session->setImageCaptureCodec(m_imageEncoderSettings.codec()); - m_session->setCaptureSize(m_imageEncoderSettings.resolution()); - m_session->setCaptureQuality(m_imageEncoderSettings.quality()); - //update setting - m_session->updateImageCaptureCodecs(); - } -} - -//QSize S60CameraImageEncoderControl::resolution() const -//{ -// QSize resolution; -// if (m_session) -// resolution = m_session->captureSize(); -// return resolution; -//} -//QSize S60CameraImageEncoderControl::minimumResolution() const -//{ -// QSize resolution; -// if (m_session) -// resolution = m_session->minimumCaptureSize(); -// return resolution; -//} -//QSize S60CameraImageEncoderControl::maximumResolution() const -//{ -// QSize resolution; -// if (m_session) -// resolution = m_session->maximumCaptureSize(); -// return resolution; -//} -// -//QtMedia::EncodingQuality S60CameraImageEncoderControl::quality() const -//{ -// //TODO: what is the quality if no session is available? -// int quality = KErrNotFound; -// if (m_session) -// quality = m_session->captureQuality(); -// return (QtMedia::EncodingQuality) quality; -//} -// -//QString S60CameraImageEncoderControl::imageCodec() const -//{ -// QString codec; -// if (m_session) -// codec = m_session->imageCaptureCodec(); -// return codec; -//} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameraimageencodercontrol.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameraimageencodercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +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 Qt Mobility Components. -** -** $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 S60CAMERACONTROL_H -#define S60CAMERACONTROL_H - -#include -#include "qimageencodercontrol.h" - -QTM_USE_NAMESPACE - -class S60CameraSession; - -class S60CameraImageEncoderControl : public QImageEncoderControl -{ - Q_OBJECT -public: - S60CameraImageEncoderControl(QObject *parent = 0); - S60CameraImageEncoderControl(QObject *session, QObject *parent = 0); - ~S60CameraImageEncoderControl(); - - QStringList supportedImageCodecs() const; - QString imageCodecDescription(const QString &codecName) const; - - QList supportedResolutions(const QImageEncoderSettings &settings, - bool *continuous = 0) const; - - QImageEncoderSettings imageSettings() const = 0; - void setImageSettings(const QImageEncoderSettings &settings); - -private: -// QSize resolution() const; -// QSize minimumResolution() const; -// QSize maximumResolution() const; -// //QList supportedResolutions() const; -// void setResolution(const QSize &size); - - -private: - S60CameraSession *m_session; - QImageEncoderSettings m_imageEncoderSettings; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameraimageprocessingcontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameraimageprocessingcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,142 +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 Qt Mobility Components. -** -** $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 "s60cameraimageprocessingcontrol.h" -#include "s60cameraservice.h" -#include "s60camerasession.h" - -#include -#include - - -S60CameraImageProcessingControl::S60CameraImageProcessingControl(QObject *parent) - :QImageProcessingControl(parent) -{ - m_session = qobject_cast(parent); -} - -S60CameraImageProcessingControl::S60CameraImageProcessingControl(QObject *session, QObject *parent) - :QImageProcessingControl(parent) -{ - // use cast if we want to change session class later on.. - m_session = qobject_cast(session); -} - -S60CameraImageProcessingControl::~S60CameraImageProcessingControl() -{ -} - -QCamera::WhiteBalanceMode S60CameraImageProcessingControl::whiteBalanceMode() const -{ - return m_session->whiteBalanceMode(); -} - -void S60CameraImageProcessingControl::setWhiteBalanceMode(QCamera::WhiteBalanceMode mode) -{ - QCamera::WhiteBalanceModes supportedModes = supportedWhiteBalanceModes(); - if (supportedModes & mode) { - m_session->setWhiteBalanceMode(mode); - } -} - -QCamera::WhiteBalanceModes S60CameraImageProcessingControl::supportedWhiteBalanceModes() const -{ - return m_session->supportedWhiteBalanceModes(); -} - -int S60CameraImageProcessingControl::manualWhiteBalance() const -{ - return 0; -} - -void S60CameraImageProcessingControl::setManualWhiteBalance(int colorTemperature) -{ - Q_UNUSED(colorTemperature) -} - -void S60CameraImageProcessingControl::setContrast(qreal value) -{ - m_session->setContrast(value); -} -qreal S60CameraImageProcessingControl::contrast() const -{ - return m_session->contrast(); -} - -void S60CameraImageProcessingControl::setSaturation(qreal value) -{ - Q_UNUSED(value); -} - -qreal S60CameraImageProcessingControl::saturation() const -{ - return 0; -} - -void S60CameraImageProcessingControl::setDenoisingLevel(qreal value) -{ - Q_UNUSED(value); -} - -bool S60CameraImageProcessingControl::isDenoisingSupported() const -{ - return false; -} - -qreal S60CameraImageProcessingControl::denoisingLevel() const -{ - return 0; -} - -void S60CameraImageProcessingControl::setSharpeningLevel(qreal value) -{ - Q_UNUSED(value); -} - -bool S60CameraImageProcessingControl::isSharpeningSupported() const -{ - return false; -} -qreal S60CameraImageProcessingControl::sharpeningLevel() const -{ - return 0; -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameraimageprocessingcontrol.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameraimageprocessingcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +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 Qt Mobility Components. -** -** $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 S60CAMERAIMAGEPROCESSINGCONTROL_H -#define S60CAMERAIMAGEPROCESSINGCONTROL_H - -#include -#include "qimageprocessingcontrol.h" - -QTM_USE_NAMESPACE - -class S60CameraService; -class S60CameraSession; - -class S60CameraImageProcessingControl : public QImageProcessingControl -{ - Q_OBJECT -public: - S60CameraImageProcessingControl(QObject *parent = 0); - S60CameraImageProcessingControl(QObject *session, QObject *parent = 0); - ~S60CameraImageProcessingControl(); - - QCamera::WhiteBalanceMode whiteBalanceMode() const; - void setWhiteBalanceMode(QCamera::WhiteBalanceMode mode); - QCamera::WhiteBalanceModes supportedWhiteBalanceModes() const; - int manualWhiteBalance() const; - void setManualWhiteBalance(int colorTemperature); - - qreal contrast() const; - void setContrast(qreal value); - - qreal saturation() const; - void setSaturation(qreal value); - - bool isSharpeningSupported() const; - qreal sharpeningLevel() const; - void setSharpeningLevel(qreal value); - - bool isDenoisingSupported() const; - qreal denoisingLevel() const; - void setDenoisingLevel(qreal value); - -private: - S60CameraSession *m_session; - S60CameraService *m_service; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameraservice.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameraservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,200 +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 Qt Mobility Components. -** -** $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 -#include -#include -#include -#include "qvideowidget.h" - -#include "S60cameraservice.h" -#include "S60cameracontrol.h" -#include "S60cameravideodevicecontrol.h" -#include "S60camerafocuscontrol.h" -#include "S60cameraexposurecontrol.h" -#include "S60cameraimageprocessingcontrol.h" -#include "s60cameraimagecapturecontrol.h" -#include "S60mediacontrol.h" -#include "S60camerasession.h" -#include "S60viewfinderwidget.h" -#include "S60videooutputcontrol.h" -#include "S60mediacontainercontrol.h" -#include "s60videoencoder.h" - -S60CameraService::S60CameraService(QObject *parent) - : QMediaService(parent) -{ - // session class is the main symbian backend class - m_session = new S60CameraSession(this); - // different control classes which use session class to do the work - m_control = new S60CameraControl(m_session, this); - m_videoDeviceControl = new S60CameraVideoDeviceControl(m_session, this); - m_focusControl = new S60CameraFocusControl(m_session, this); - m_exposureControl = new S60CameraExposureControl(m_session, this); - m_imageProccessingControl = new S60CameraImageProcessingControl(m_session, this); - m_imageCaptureControl = new S60CameraImageCaptureControl(m_session, this); - - m_media = new S60MediaControl(m_session, this); - m_mediaFormat = new S60MediaContainerControl(m_session, this); - m_videoEncoder = new S60VideoEncoder(m_session, this); - m_viewFinderWidget = new S60ViewFinderWidgetControl(this); - m_videoOutput = new S60VideoOutputControl(this); - connect(m_videoOutput, SIGNAL(outputChanged(QVideoOutputControl::Output)), - this, SLOT(videoOutputChanged(QVideoOutputControl::Output))); - - m_videoOutput->setAvailableOutputs(QList() - << QVideoOutputControl::WidgetOutput); -} - -S60CameraService::~S60CameraService() -{ -} - -QMediaControl *S60CameraService::control(const char *name) const -{ - if (qstrcmp(name,QMediaRecorderControl_iid) == 0) - return m_media; - - if(qstrcmp(name,QCameraControl_iid) == 0) - return m_control; - - if(qstrcmp(name,QVideoEncoderControl_iid) == 0) - return m_videoEncoder; - - if(qstrcmp(name,QMediaContainerControl_iid) == 0) - return m_mediaFormat; - - if(qstrcmp(name,QVideoOutputControl_iid) == 0) - return m_videoOutput; - - if(qstrcmp(name,QCameraExposureControl_iid) == 0) - return m_exposureControl; - - if (qstrcmp(name, QVideoWidgetControl_iid) == 0) - return m_viewFinderWidget; - - if(qstrcmp(name,QCameraFocusControl_iid) == 0) - return m_focusControl; - - if(qstrcmp(name,QImageProcessingControl_iid) == 0) - return m_imageProccessingControl; - - if(qstrcmp(name,QImageCaptureControl_iid) == 0) - return m_imageCaptureControl; - - if(qstrcmp(name,QVideoDeviceControl_iid) == 0) - return m_videoDeviceControl; - - - return 0; -} -int S60CameraService::deviceCount() -{ - return S60CameraSession::deviceCount(); -} - -QString S60CameraService::deviceDescription(const int index) -{ - return S60CameraSession::description(index); -} -QString S60CameraService::deviceName(const int index) -{ - return S60CameraSession::name(index); -} - -void S60CameraService::videoOutputChanged(QVideoOutputControl::Output output) -{ - switch (output) { - case QVideoOutputControl::NoOutput: - m_control->setVideoOutput(0); - break; - case QVideoOutputControl::WidgetOutput: - m_control->setVideoOutput(m_viewFinderWidget); - break; - default: - qWarning("Invalid video output selection"); - break; - } -} - - -/* -bool S60CameraService::isEndpointSupported(QMediaService::MediaEndpoint endpointType) -{ - return false; -} - -void S60CameraService::setInputStream(QIODevice* stream) -{ -} - -QIODevice* S60CameraService::inputStream() const -{ - return 0; -} - -void S60CameraService::setOutputStream(QIODevice* stream) -{ -} - -QIODevice* S60CameraService::outputStream() const -{ - return 0; -} - -QString S60CameraService::activeEndpoint(QMediaService::MediaEndpoint endpointType) -{ - return QByteArray(); -} - -bool S60CameraService::setActiveEndpoint(QMediaService::MediaEndpoint endpointType, const QString& endpoint) -{ - return true; -} - -QList S60CameraService::supportedEndpoints(QMediaService::MediaEndpoint endpointType) const -{ - QList list; - //TODO - return list; -} -*/ - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameraservice.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameraservice.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +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 Qt Mobility Components. -** -** $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 S60CAMERASERVICE_H -#define S60CAMERASERVICE_H - -#include - -#include - -#include "qvideooutputcontrol.h" - - -QTM_USE_NAMESPACE - -class S60MediaContainerControl; -class S60VideoEncoder; -class S60CameraControl; -class S60CameraVideoDeviceControl; -class S60MediaControl; -class S60CameraSession; -class S60VideoOutputControl; -class S60CameraFocusControl; -class S60CameraExposureControl; -class S60CameraImageProcessingControl; -class S60CameraImageCaptureControl; -class S60ViewFinderWidgetControl; - -class S60CameraService : public QMediaService -{ - Q_OBJECT -public: - S60CameraService(QObject *parent = 0); - ~S60CameraService(); - - QMediaControl *control(const char *name) const; - - static int deviceCount(); - static QString deviceName(const int index); - static QString deviceDescription(const int index); - -private Q_SLOTS: - void videoOutputChanged(QVideoOutputControl::Output output); -/* - virtual bool isEndpointSupported(QMediaService::MediaEndpoint endpointType); - - virtual void setInputStream(QIODevice* stream); - virtual QIODevice* inputStream() const; - - virtual void setOutputStream(QIODevice* stream); - virtual QIODevice* outputStream() const; - - virtual QList activeEndpoints(QMediaService::MediaEndpoint endpointType); - virtual bool setActiveEndpoint(QMediaService::MediaEndpoint endpointType, const QString& endpoint); - virtual QString endpointDescription(QMediaService::MediaEndpoint endpointType, const QString& endpoint); - virtual QList supportedEndpoints(QMediaService::MediaEndpoint endpointType) const; -*/ - -private: - - S60CameraSession *m_session; - S60MediaContainerControl *m_mediaFormat; - S60VideoEncoder *m_videoEncoder; - S60CameraControl *m_control; - S60CameraVideoDeviceControl *m_videoDeviceControl; - S60CameraFocusControl *m_focusControl; - S60CameraExposureControl *m_exposureControl; - S60CameraImageProcessingControl *m_imageProccessingControl; - S60CameraImageCaptureControl *m_imageCaptureControl; - S60VideoOutputControl *m_videoOutput; - S60MediaControl *m_media; - S60ViewFinderWidgetControl *m_viewFinderWidget; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60camerasession.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60camerasession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1530 +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 Qt Mobility Components. -** -** $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 - -#include -#include -#include "s60camerasession.h" -#include "s60viewfinderwidget.h" -#include "s60videoencoder.h" -#include "s60cameraservice.h" - -#include -#include -#include - -const int KSymbianImageQualityCoefficient = 25; - -#ifdef Q_CC_NOKIAX86 -_LIT8(KCameraTemp,"test data"); -#endif - -_LIT8(KMimeTypeMPEG4VSPL3, "video/mp4v-es; profile-level-id=3"); // MPEG-4 Visual Simple Profile Level 3 -_LIT8(KMimeTypeMPEG4VSPL4, "video/mp4v-es; profile-level-id=4"); // MPEG-4 Visual Simple Profile Level 4 - - -S60CameraSession::S60CameraSession(QObject *parent) - : QObject(parent) - , m_cameraEngine(NULL) - , m_advancedSettings(NULL) - , m_VFProcessor(NULL) - , m_imageQuality(QtMedia::NormalQuality*KSymbianImageQualityCoefficient) - , m_videoQuality(QtMedia::LowQuality*KSymbianImageQualityCoefficient) - , m_captureSize(QSize()) - , m_state(QCamera::StoppedState) - , m_pixelF(QVideoFrame::Format_RGB24) - , m_deviceIndex(NULL) - , m_error(NoError) - , m_videoUtility(NULL) - , m_VFWidgetSize(QSize()) - , m_captureState(ENotInitialized) -{ - // set defaults so that camera works with both devices.. - m_currentcodec = defaultCodec(); - // create initial camera - resetCamera(); -} - -S60CameraSession::~S60CameraSession() -{ - delete m_videoUtility; - m_videoUtility = NULL; - delete m_advancedSettings; - m_advancedSettings = NULL; - delete m_cameraEngine; - m_cameraEngine = NULL; -} -CCamera::TFormat S60CameraSession::defaultCodec() -{ - if (m_deviceIndex == 0) { - return CCamera::EFormatExif; - } - else { - return CCamera::EFormatFbsBitmapColor64K; - } -} -S60CameraSettings* S60CameraSession::advancedSettings() -{ - return m_advancedSettings; -} - -void S60CameraSession::resetCamera() -{ - //qDebug() << "S60CameraSession::resetCamera START"; - delete m_videoUtility; - m_videoUtility = NULL; - delete m_advancedSettings; - m_advancedSettings = NULL; - delete m_cameraEngine; - m_cameraEngine = NULL; - m_error = KErrNone; - m_state = QCamera::StoppedState; - //qDebug() << "S60CameraSession::resetCamera. Creating new camera with index=" << m_deviceIndex; - TRAPD(err, - m_cameraEngine = CCameraEngine::NewL(m_deviceIndex, 0, this); - m_advancedSettings = new S60CameraSettings(this, m_cameraEngine); - m_videoUtility = CVideoRecorderUtility::NewL(*this); - ); - setError(err); - - updateVideoCaptureCodecs(); - - initializeVideoCaptureSettings(); - - //qDebug() << "S60CameraSession::resetCamera END"; -} - -void S60CameraSession::setError(TInt aError) -{ - if (aError == KErrNone) - return; - - m_error = aError; - QCamera::Error cameraError = fromSymbianErrorToMultimediaError(m_error); - - // TODO: fix to user friendly string at some point - // These error string are only dev usable - QString symbianError; - symbianError.append("Symbian:"); - symbianError.append(QString::number(m_error)); - emit error(cameraError, symbianError); -} - -QCamera::Error S60CameraSession::fromSymbianErrorToMultimediaError(int aError) -{ - switch(aError) { - case KErrNoMemory: - case KErrNotFound: - case KErrBadHandle: - return QCamera::ServiceMissingError; - case KErrNotSupported: - case KErrECamSettingNotSupported: - case KErrECamParameterNotInRange: - return QCamera::NotSupportedFeatureError; - case KErrCorrupt: - case KErrECamSettingDisabled: - case KErrECamNotOptimalFocus: - case KErrAccessDenied: - case KErrLocked: - case KErrPermissionDenied: - return QCamera::CameraError; - case KErrNotReady: - case KErrECamCameraDisabled: - case KErrInUse: - return QCamera::NotReadyToCaptureError; - default: - return QCamera::NoError; - } -} - -void S60CameraSession::startCamera() -{ - //qDebug() << "S60CameraSession::startCamera START"; - #ifdef Q_CC_NOKIAX86 - MceoCameraReady(); // signal that we are ready - #endif - - // create camera engine - resetCamera(); - - if (!m_error ) { - //qDebug() << "S60CameraSession::startCamera, ReserveAndPowerOn"<< m_error; - m_cameraEngine->ReserveAndPowerOn(); - } - //qDebug() << "S60CameraSession::startCamera END"; -} - -void S60CameraSession::stopCamera() -{ - //qDebug() << "Stopping camera"; - m_state = QCamera::StoppedState; - - if (m_cameraEngine) { - m_cameraEngine->ReleaseAndPowerOff(); - } - emit stateChanged(m_state); -} - -void S60CameraSession::capture(const QString &fileName) -{ - //qDebug() << "S60CameraSession::capture to file="<< fileName; - m_error = KErrNone; - m_stillCaptureFileName = fileName; - emit readyForCaptureChanged(false); - - if (m_stillCaptureFileName.isNull() || m_stillCaptureFileName.isEmpty() ) { - emit error(QStillImageCapture::ResourceError, QLatin1String("capture outputlocation not set properly")); - return; - } - // check capture size //if not set sets the default one - setCaptureSize(m_captureSize); - - if (m_cameraEngine) { - TSize size(m_captureSize.width(), m_captureSize.height()); - TRAPD(err, - m_cameraEngine->PrepareL(size, m_currentcodec); - m_cameraEngine->CaptureL(); - ); - setError(err); - } - else { - setError(KErrNotReady); - } - #ifdef Q_CC_NOKIAX86 - QImage *snapImage = new QImage(QLatin1String("C:/Data/testimage.jpg")); - emit imageCaptured(m_stillCaptureFileName, *snapImage); - #endif -} - -bool S60CameraSession::deviceReady() -{ - #ifdef Q_CC_NOKIAX86 - //qDebug() << "device ready"; - return true; - #endif - if ( m_cameraEngine ) - return m_cameraEngine->IsCameraReady(); - else - return EFalse; -} - -qreal S60CameraSession::framerate() -{ - if (m_videoUtility) { - int rate = 0; - TRAPD(err, rate = m_videoUtility->VideoFrameRateL()); - setError(err); - return rate; - } - return -1; -} - -void S60CameraSession::setFrameRate(qreal rate) -{ - if (m_videoUtility) { - TRAPD(err, m_videoUtility->SetVideoFrameRateL(rate)); - setError(err); - } -} - -QList S60CameraSession::supportedPixelFormats() -{ - - QList list; - #ifdef Q_CC_NOKIAX86 - list << QVideoFrame::Format_RGB565; - #endif - //TODO: fix supportedformats - //qDebug() << "S60CameraSession::pixeformat, returning="< list; - // if we have cameraengine loaded and we can update camerainfo - if (m_cameraEngine && queryCurrentCameraInfo()) { - - foreach (QString codecName, formatMap().keys()) { - int codecIndex = formatMap().value(codecName); - CCamera::TFormat format = static_cast( codecIndex ); - CCamera *camera = m_cameraEngine->Camera(); - - TUint32 videoFormatsSupported = m_info.iVideoFrameFormatsSupported; - - if (videoFormatsSupported&format) { - CCamera *camera = m_cameraEngine->Camera(); - for (int i=0; i < m_info.iNumVideoFrameSizesSupported; i++) { - TSize size; - camera->EnumerateVideoFrameSizes(size,i, format ); - QSize qSize(size.iWidth, size.iHeight); - if (!list.contains(qSize)) - list << QSize(size.iWidth, size.iHeight); - } - } - } - } - #ifdef Q_CC_NOKIAX86 - list << QSize(50, 50); - list << QSize(100, 100); - list << QSize(800,600); - #endif - return list; -} - -QList S60CameraSession::supportedVideoFrameRates() -{ - //qDebug() << "S60CameraSession::supportedVideoResolutions"; - QList list; - // if we have cameraengine loaded and we can update camerainfo - if (m_cameraEngine && queryCurrentCameraInfo()) { - - foreach (QString codecName, formatMap().keys()) { - int codecIndex = formatMap().value(codecName); - CCamera::TFormat format = static_cast( codecIndex ); - CCamera *camera = m_cameraEngine->Camera(); - - TUint32 videoFormatsSupported = m_info.iVideoFrameFormatsSupported; - - if (videoFormatsSupported&format) { - CCamera *camera = m_cameraEngine->Camera(); - for (int i=0; i < m_info.iNumVideoFrameSizesSupported; i++) { - TReal32 rate; - TInt maxSizeIndex; - camera->EnumerateVideoFrameRates(rate, i,format, maxSizeIndex); - if (!list.contains(rate)) { - if (rate > 0.0) - list << rate; - } - } - } - } - } - #ifdef Q_CC_NOKIAX86 - list << 30.0 << 25.0 << 15.0 << 10.0 << 5.0; - #endif - return list; -} - - -bool S60CameraSession::setOutputLocation(const QUrl &sink) -{ - //qDebug() << "S60CameraSession::setOutputlocation"; - m_sink = sink; - return true; -} - -QUrl S60CameraSession::outputLocation() const -{ - //qDebug() << "S60CameraSession::outputLocation"; - return m_sink; -} - -qint64 S60CameraSession::position() -{ - //qDebug() << "S60CameraSession::position"; - qint64 position = 0; - if ( (m_captureState == ERecording) && m_videoUtility) { - TRAPD(err, position = m_videoUtility->DurationL().Int64() / 1000); - setError(err); - } - return position; -} - -int S60CameraSession::state() const -{ - //qDebug() << "S60CameraSession::state"; - return m_state; -} - -void S60CameraSession::commitVideoEncoderSettings() -{ - setVideoResolution(m_videoSettings.resolution()); - setFrameRate(m_videoSettings.frameRate()); - setBitrate(m_videoSettings.bitRate()); -} - -void S60CameraSession::setVideoFrameRateFixed(bool fixed) -{ -#ifndef PRE_S60_50_PLATFORM - if (m_videoUtility) { - TRAPD(err, m_videoUtility->SetVideoFrameRateFixedL(fixed)); - setError(err); - } -#endif //PRE_S60_50_PLATFORM -} - -void S60CameraSession::saveVideoEncoderSettings(QVideoEncoderSettings &videoSettings) -{ - m_videoSettings = videoSettings; -} - -void S60CameraSession::getCurrentVideoEncoderSettings(QVideoEncoderSettings &videoSettings) -{ - videoSettings = m_videoSettings; -} - -QtMedia::EncodingQuality S60CameraSession::videoCaptureQuality() const -{ -#ifndef PRE_S60_50_PLATFORM - if (m_videoQuality == EVideoQualityLow) - return QtMedia::LowQuality; - else if (m_videoQuality == EVideoQualityNormal) - return QtMedia::NormalQuality; - else if (m_videoQuality == EVideoQualityHigh) - return QtMedia::HighQuality; - else if (m_videoQuality == EVideoQualityLossless) - return QtMedia::VeryHighQuality; - else -#endif //PRE_S60_50_PLATFORM - return QtMedia::VeryLowQuality; -} - -void S60CameraSession::setVideoCaptureQuality(QtMedia::EncodingQuality quality) -{ - m_videoQuality = quality*KSymbianImageQualityCoefficient; -#ifndef PRE_S60_50_PLATFORM - TRAPD(err, m_videoUtility->SetVideoQualityL(m_videoQuality)); - setError(err); -#endif //PRE_S60_50_PLATFORM -} - -void S60CameraSession::startRecording() -{ - if (m_captureState == ENotInitialized || m_captureState == ERecordComplete) { - QString filename = QDir::toNativeSeparators(m_sink.toString()); - TPtrC16 sink(reinterpret_cast(filename.utf16())); - - m_videoCodec = m_videoSettings.codec(); - - int cameraHandle = m_cameraEngine->Camera()->Handle(); - - TUid controllerUid(TUid::Uid(m_videoControllerMap[m_videoCodec].controllerUid)); - TUid formatUid(TUid::Uid(m_videoControllerMap[m_videoCodec].formatUid)); - - TRAPD(err, m_videoUtility->OpenFileL(sink, cameraHandle, controllerUid, formatUid, KMimeTypeMPEG4VSPL4, KMMFFourCCCodeAAC)); - setError(err); - m_captureState = EInitialized; - } else if (m_captureState == EPaused) { - m_videoUtility->Record(); - m_captureState = ERecording; - } -} - -void S60CameraSession::pauseRecording() -{ - if (m_captureState == ERecording) { - TRAPD(err, m_videoUtility->PauseL()); - setError(err); - m_captureState = EPaused; - } else if (m_captureState == EPaused) { - m_videoUtility->Record(); - m_captureState = ERecording; - } -} - -void S60CameraSession::stopRecording() -{ - m_videoUtility->Stop(); - m_videoUtility->Close(); - m_captureState = ERecordComplete; -} - -void S60CameraSession::MceoCameraReady() -{ - //qDebug() << "S60CameraSession::MCeoCameraReady()"; - m_state = QCamera::ActiveState; - emit stateChanged(m_state); - if (m_cameraEngine) { - m_VFSize = TSize(m_VFWidgetSize.width(), m_VFWidgetSize.height()); - TRAPD(err, m_cameraEngine->StartViewFinderL(m_VFSize)); - if (err == KErrNotReady || err == KErrNoMemory) { - emit readyForCaptureChanged(false); - } - setError(err); - emit readyForCaptureChanged(true); - } -} - -void S60CameraSession::MceoFocusComplete() -{ - //qDebug() << "S60CameraSession::MCeoFocusComplete()"; - emit focusStatusChanged(QCamera::FocusReached); -} - -void S60CameraSession::MceoCapturedDataReady(TDesC8* aData) -{ - //qDebug() << "S60CameraSession::MceoCapturedDataReady()"; - QImage snapImage = QImage::fromData((const uchar *)aData->Ptr(), aData->Length()); - //qDebug() << "S60CameraSession::MceoCapturedDataReady(), image constructed, byte count="<ReleaseImageBuffer(); - // inform that we can continue taking more pictures - emit readyForCaptureChanged(true); -} - -void S60CameraSession::MceoCapturedBitmapReady(CFbsBitmap* aBitmap) -{ - //qDebug() << "S60CameraSession::MceoCapturedBitmapReady()"; - if(aBitmap) - { - TSize size = aBitmap->SizeInPixels(); - TUint32 sizeInWords = size.iHeight * CFbsBitmap::ScanLineLength(size.iWidth, aBitmap->DisplayMode()) / sizeof( TUint32 ); - //qDebug() << "S60CameraSession::MceoCapturedDataReady(), image constructed"; - TUint32 *pixelData = new TUint32[sizeInWords]; - - if (!pixelData) - return; - - // convert to QImage - aBitmap->LockHeap(); - TUint32 *dataPtr = aBitmap->DataAddress(); - memcpy(pixelData, dataPtr, sizeof(TUint32) * sizeInWords); - aBitmap->UnlockHeap(); - - TDisplayMode displayMode = aBitmap->DisplayMode(); - - QImage::Format format = QImage::Format_Invalid; - switch(displayMode) - { - case EColor256: - format = QImage::Format_Indexed8; - break; - case EColor4K: - format = QImage::Format_RGB444; - break; - case EColor64K: - format = QImage::Format_RGB16; - break; - case EColor16M: - format = QImage::Format_RGB666; - break; - case EColor16MU: - format = QImage::Format_RGB32; - break; - case EColor16MA: - format = QImage::Format_ARGB32; - break; - default: - //User::Leave( -1 ); - break; - } - - QImage *snapImage = new QImage( - (uchar*)pixelData, - size.iWidth, - size.iHeight, - CFbsBitmap::ScanLineLength(size.iWidth, aBitmap->DisplayMode()), - format); - //qDebug() << "S60CameraSession::MceoCapturedDataReady(), image constructed, byte count="<byteCount(); - aBitmap = NULL; - - emit imageCaptured(m_stillCaptureFileName, *snapImage); - // try to save image and inform if it was succcesful - if ( snapImage->save(m_stillCaptureFileName,0, m_imageQuality) ) - emit imageSaved(m_stillCaptureFileName); - - releaseImageBuffer(); - } - //todo error handling -} - -void S60CameraSession::MceoViewFinderFrameReady(CFbsBitmap& aFrame) -{ - if (m_VFProcessor) { - int bytesPerLine = aFrame.ScanLineLength(m_VFSize.iWidth, aFrame.DisplayMode()); - - QImage image((uchar *)aFrame.DataAddress(), m_VFSize.iWidth, - m_VFSize.iHeight, bytesPerLine, QImage::Format_RGB32); - - m_VFProcessor->ViewFinderFrameReady(image); - } - - m_cameraEngine->ReleaseViewFinderBuffer(); -} - -void S60CameraSession::MceoHandleError(TCameraEngineError aErrorType, TInt aError) -{ - //qDebug() << "S60CameraSession::MceoHandleError, errorType"<Camera(); - if (camera) { - camera->CameraInfo(m_info); - } - returnValue = true; - } - return returnValue; -} - -// End for S60Cameravideodevicecontrol -QSize S60CameraSession::captureSize() const -{ - //qDebug() << "S60CameraSession::captureSize"; - return m_captureSize; -} -QSize S60CameraSession::minimumCaptureSize() -{ - //qDebug() << "S60CameraSession::minimunCaptureSize"; - return supportedCaptureSizesForCodec(formatMap().key(m_currentcodec)).first(); -} -QSize S60CameraSession::maximumCaptureSize() -{ - //qDebug() << "S60CameraSession::maximumCaptureSize"; - return supportedCaptureSizesForCodec(formatMap().key(m_currentcodec)).last(); -} - -void S60CameraSession::setCaptureSize(const QSize &size) -{ - //qDebug() << "S60CameraSession::setCaptureSizes, size="< S60CameraSession::formatDescMap() -{ - QMap formats; - formats.insert("Monochrome", 0x0001); - formats.insert("16bitRGB444", 0x0002); - formats.insert("16BitRGB565", 0x0004); - formats.insert("32BitRGB888", 0x0008); - formats.insert("Jpeg", 0x0010); - formats.insert("Exif", 0x0020); - formats.insert("FbsBitmapColor4K", 0x0040); - formats.insert("FbsBitmapColor64K", 0x0080); - formats.insert("FbsBitmapColor16M", 0x0100); - formats.insert("UserDefined", 0x0200); - formats.insert("YUV420Interleaved", 0x0400); - formats.insert("YUV420Planar", 0x0800); - formats.insert("YUV422", 0x1000); - formats.insert("YUV422Reversed", 0x2000); - formats.insert("YUV444", 0x4000); - formats.insert("YUV420SemiPlanar", 0x8000); - formats.insert("FbsBitmapColor16MU", 0x00010000); - formats.insert("MJPEG", 0x00020000); - formats.insert("EncodedH264", 0x00040000); - - return formats; -} -QStringList S60CameraSession::supportedImageCaptureCodecs() -{ - //qDebug() << "S60CameraSession::supportedImageCaptureCodecs"; - QStringList list; - #ifdef Q_CC_NOKIAX86 - return formatMap().keys(); - #endif - - for (int i = 0; i < m_formats.length() ; i++) { - list << formatMap().key(m_formats.at(i)); - } - //qDebug()<< "S60CameraSession::supportedImageCaptureCodecs, return formatList.count()="< (m_imageQuality / KSymbianImageQualityCoefficient); - -} - -void S60CameraSession::setCaptureQuality(QtMedia::EncodingQuality quality) -{ - //qDebug() << "S60CameraSession::setCaptureQuality, EncodingQuality="<Camera(); - camera->SetJpegQuality(m_imageQuality); - camera = NULL; - } - -} - -void S60CameraSession::setVideoRenderer(QObject *videoOutput) -{ - //qDebug() << "S60CameraSession::setVideoRenderer, videoOutput="<(videoOutput); - - if (viewFinderWidgetControl) { - m_VFProcessor = viewFinderWidgetControl->videoWidget(); - m_VFWidgetSize = viewFinderWidgetControl->videoWidget()->size(); - } -} - -void S60CameraSession::setZoomFactor(qreal optical, qreal digital) -{ - //qDebug() << "S60CameraSession::setZoomFactor, value(optical digital): " << optical << digital; - - if (m_cameraEngine && queryCurrentCameraInfo()) { - CCamera *camera = m_cameraEngine->Camera(); - if (camera) { - if (digital > m_info.iMaxZoom && digital <= m_info.iMaxDigitalZoom) { // digitalzoom - TRAPD(err, camera->SetDigitalZoomFactorL(digital)); - setError(err); - //qDebug() << "S60CameraSession::setDigitalZoomFactor error: " << m_error; - if (err == KErrNone) { - emit digitalZoomChanged(digital); - } - } else if (optical >= m_info.iMinZoom && optical <= m_info.iMaxZoom) { //opticalzoom - TRAPD(err2, camera->SetZoomFactorL(optical)); - setError(err2); - //qDebug() << "S60CameraSession::setZoomFactor error: " << m_error; - if (err2 == KErrNone) { - emit opticalZoomChanged(optical); - } - } - } - } -} - -int S60CameraSession::zoomFactor() -{ - //qDebug() << "S60CameraSession::zoomFactor"; - int factor = 0; - if (m_cameraEngine) { - CCamera *camera = m_cameraEngine->Camera(); - return camera->ZoomFactor(); - } - return factor; -} - -int S60CameraSession::digitalZoomFactor() -{ - //qDebug() << "S60CameraSession::digitalZoomFactor"; - int factor = 0; - if (m_cameraEngine) { - CCamera *camera = m_cameraEngine->Camera(); - return camera->DigitalZoomFactor(); - } - return factor; -} - -void S60CameraSession::startFocus() -{ - //qDebug() << "S60CameraSession::startFocus"; - - if (m_cameraEngine) { - TRAPD(err, m_cameraEngine->StartFocusL()); - setError(err); - } -} - -void S60CameraSession::cancelFocus() -{ - //qDebug() << "S60CameraSession::cancelFocus"; - if (m_cameraEngine) { - TRAPD(err, m_cameraEngine->FocusCancel()); - setError(err); - } -} - -int S60CameraSession::maximumZoom() -{ - //qDebug() << "S60CameraSession::maximumZoom"; - - if (queryCurrentCameraInfo()) { - //qDebug() << "S60CameraSession::maximumZoom value: " << m_info.iMaxZoom; - return m_info.iMaxZoom; - } else { - return 0; - } -} - -int S60CameraSession::minZoom() -{ - //qDebug() << "S60CameraSession::minZoom"; - - if (queryCurrentCameraInfo()) { - //qDebug() << "S60CameraSession::minZoom value: " << m_info.iMinZoom; - return m_info.iMinZoom; - } else { - return 0; - } -} - -int S60CameraSession::maxDigitalZoom() -{ - //qDebug() << "S60CameraSession::maxDigitalZoom"; - if (queryCurrentCameraInfo()) { - //qDebug() << "S60CameraSession::maxDigitalZoom value: " << m_info.iMaxDigitalZoom; - return m_info.iMaxDigitalZoom; - } else { - return 0; - } -} - -void S60CameraSession::setFlashMode(QCamera::FlashMode mode) -{ - if (m_cameraEngine) { - switch(mode) { - case QCamera::FlashOff: - m_cameraEngine->SetFlash(CCamera::EFlashNone); - break; - case QCamera::FlashAuto: - m_cameraEngine->SetFlash(CCamera::EFlashAuto); - break; - case QCamera::FlashOn: - m_cameraEngine->SetFlash(CCamera::EFlashForced); - break; - case QCamera::FlashRedEyeReduction: - m_cameraEngine->SetFlash(CCamera::EFlashRedEyeReduce); - break; - case QCamera::FlashFill: - m_cameraEngine->SetFlash(CCamera::EFlashFillIn); - break; - default: - break; - - } - } -} - -QCamera::FlashMode S60CameraSession::flashMode() -{ - if (m_cameraEngine) { - TInt mode = m_cameraEngine->Flash(); - switch(mode) { - case CCamera::EFlashAuto: - return QCamera::FlashAuto; - case CCamera::EFlashForced: - return QCamera::FlashOn; - case CCamera::EFlashRedEyeReduce: - return QCamera::FlashRedEyeReduction; - case CCamera::EFlashFillIn: - return QCamera::FlashFill; - default: - return QCamera::FlashOff; - } - } - return QCamera::FlashOff; -} - -QCamera::FlashModes S60CameraSession::supportedFlashModes() -{ - QCamera::FlashModes modes = QCamera::FlashOff; - if (m_cameraEngine) { - TInt supportedModes = m_cameraEngine->SupportedFlashModes(); - if (supportedModes == 0) - return modes; - if (supportedModes & CCamera::EFlashManual) { - modes |= QCamera::FlashOff; - } - if (supportedModes & CCamera::EFlashForced) { - modes |= QCamera::FlashOn; - } - if (supportedModes & CCamera::EFlashAuto) { - modes |= QCamera::FlashAuto; - } - if (supportedModes & CCamera::EFlashFillIn) { - modes |= QCamera::FlashFill; - } - if (supportedModes & CCamera::EFlashRedEyeReduce) { - modes |= QCamera::FlashRedEyeReduction; - } - } - return modes; -} - -QCamera::ExposureMode S60CameraSession::exposureMode() -{ - if (m_cameraEngine) { - CCamera* camera = m_cameraEngine->Camera(); - CCamera::TExposure mode2 = camera->Exposure(); - switch(mode2) { - case CCamera::EExposureManual: - return QCamera::ExposureManual; - case CCamera::EExposureAuto: - return QCamera::ExposureAuto; - case CCamera::EExposureNight: - return QCamera::ExposureNight; - case CCamera::EExposureBacklight: - return QCamera::ExposureBacklight; - case CCamera::EExposureSport: - return QCamera::ExposureSports; - case CCamera::EExposureSnow: - return QCamera::ExposureSnow; - case CCamera::EExposureBeach: - return QCamera::ExposureBeach; - default: - return QCamera::ExposureAuto; - } - } - return QCamera::ExposureAuto; -} - -QCamera::ExposureModes S60CameraSession::supportedExposureModes() -{ - QCamera::ExposureModes modes = QCamera::ExposureAuto; - if (m_cameraEngine) { - TInt supportedModes = m_info.iExposureModesSupported; - if (supportedModes == 0) { - return modes; - } - if (supportedModes & CCamera::EExposureManual) { - modes |= QCamera::ExposureManual; - } - if (supportedModes & CCamera::EExposureAuto) { - modes |= QCamera::ExposureAuto; - } - if (supportedModes & CCamera::EExposureNight) { - modes |= QCamera::ExposureNight; - } - if (supportedModes & CCamera::EExposureBacklight) { - modes |= QCamera::ExposureBacklight; - } - if (supportedModes & CCamera::EExposureSport) { - modes |= QCamera::ExposureSports; - } - if (supportedModes & CCamera::EExposureSnow) { - modes |= QCamera::ExposureSnow; - } - if (supportedModes & CCamera::EExposureBeach) { - modes |= QCamera::ExposureBeach; - } - } - return modes; -} - -void S60CameraSession::setExposureMode(QCamera::ExposureMode mode) -{ - if (m_cameraEngine) { - switch(mode) { - case QCamera::ExposureManual: - m_cameraEngine->SetExposure(CCamera::EExposureManual); - break; - case QCamera::ExposureAuto: - m_cameraEngine->SetExposure(CCamera::EExposureAuto); - break; - case QCamera::ExposureNight: - m_cameraEngine->SetExposure(CCamera::EExposureNight); - break; - case QCamera::ExposureBacklight: - m_cameraEngine->SetExposure(CCamera::EExposureBacklight); - break; - case QCamera::ExposureSports: - m_cameraEngine->SetExposure(CCamera::EExposureSport); - break; - case QCamera::ExposureSnow: - m_cameraEngine->SetExposure(CCamera::EExposureSnow); - break; - case QCamera::ExposureBeach: - m_cameraEngine->SetExposure(CCamera::EExposureBeach); - break; - case QCamera::ExposureLargeAperture: - case QCamera::ExposureSmallAperture: - //TODO: - //m_cameraEngine->SetExposure(CCamera::EExposureAperturePriority); - break; - case QCamera::ExposurePortrait: - case QCamera::ExposureSpotlight: - default: - // not supported - break; - } - } -} - -qreal S60CameraSession::contrast() const -{ - if (m_cameraEngine) { - CCamera* camera = m_cameraEngine->Camera(); - return camera->Contrast(); - } else { - return 0; - } -} - -void S60CameraSession::setContrast(qreal value) -{ - if (m_cameraEngine) { - CCamera* camera = m_cameraEngine->Camera(); - TRAPD(err, camera->SetContrastL(value)); - setError(err); - } -} - - -QCamera::WhiteBalanceMode S60CameraSession::whiteBalanceMode() -{ - if (m_cameraEngine) { - CCamera* camera = m_cameraEngine->Camera(); - CCamera::TWhiteBalance mode = camera->WhiteBalance(); - switch(mode) { - case CCamera::EWBAuto: - return QCamera::WhiteBalanceAuto; - case CCamera::EWBDaylight: - return QCamera::WhiteBalanceSunlight; - case CCamera::EWBCloudy: - return QCamera::WhiteBalanceCloudy; - case CCamera::EWBTungsten: - return QCamera::WhiteBalanceTungsten; - case CCamera::EWBFluorescent: - return QCamera::WhiteBalanceFluorescent; - case CCamera::EWBFlash: - return QCamera::WhiteBalanceFlash; - case CCamera::EWBBeach: - return QCamera::WhiteBalanceSunset; - case CCamera::EWBManual: - return QCamera::WhiteBalanceManual; - case CCamera::EWBShade: - return QCamera::WhiteBalanceShade; - default: - return QCamera::WhiteBalanceAuto; - } - } - return QCamera::WhiteBalanceAuto; -} - -void S60CameraSession::setWhiteBalanceMode(QCamera::WhiteBalanceMode mode) -{ - TRAPD(err, setWhiteBalanceModeL(mode)); - setError(err); -} - -void S60CameraSession::setWhiteBalanceModeL(QCamera::WhiteBalanceMode mode) -{ - if (m_cameraEngine) { - CCamera* camera = m_cameraEngine->Camera(); - switch(mode) { - case QCamera::WhiteBalanceAuto: - camera->SetWhiteBalanceL(CCamera::EWBAuto); - break; - case QCamera::WhiteBalanceSunlight: - camera->SetWhiteBalanceL(CCamera::EWBDaylight); - break; - case QCamera::WhiteBalanceCloudy: - camera->SetWhiteBalanceL(CCamera::EWBCloudy); - break; - case QCamera::WhiteBalanceTungsten: - case QCamera::WhiteBalanceIncandescent: - camera->SetWhiteBalanceL(CCamera::EWBTungsten); - break; - case QCamera::WhiteBalanceFluorescent: - camera->SetWhiteBalanceL(CCamera::EWBFluorescent); - break; - case QCamera::WhiteBalanceFlash: - camera->SetWhiteBalanceL(CCamera::EWBFlash); - break; - case QCamera::WhiteBalanceSunset: - camera->SetWhiteBalanceL(CCamera::EWBBeach); - break; - case QCamera::WhiteBalanceManual: - camera->SetWhiteBalanceL(CCamera::EWBManual); - break; - case QCamera::WhiteBalanceShade: - camera->SetWhiteBalanceL(CCamera::EWBShade); - break; - default: - // not supported - break; - } - } -} - -QCamera::WhiteBalanceModes S60CameraSession::supportedWhiteBalanceModes() -{ - QCamera::WhiteBalanceModes modes = QCamera::WhiteBalanceAuto; - if (m_cameraEngine) { - TInt supportedModes = m_info.iWhiteBalanceModesSupported; - if (supportedModes == 0) { - return modes; - } - if (supportedModes & CCamera::EWBAuto) { - modes |= QCamera::WhiteBalanceAuto; - } - if (supportedModes & CCamera::EWBDaylight) { - modes |= QCamera::WhiteBalanceSunlight; - } - if (supportedModes & CCamera::EWBCloudy) { - modes |= QCamera::WhiteBalanceCloudy; - } - if (supportedModes & CCamera::EWBTungsten) { - modes |= QCamera::WhiteBalanceTungsten; - modes |= QCamera::WhiteBalanceIncandescent; - } - if (supportedModes & CCamera::EWBFluorescent) { - modes |= QCamera::WhiteBalanceFluorescent; - } - if (supportedModes & CCamera::EWBFlash) { - modes |= QCamera::WhiteBalanceFlash; - } - if (supportedModes & CCamera::EWBBeach) { - modes |= QCamera::WhiteBalanceSunset; - } - if (supportedModes & CCamera::EWBManual) { - modes |= QCamera::WhiteBalanceManual; - } - if (supportedModes & CCamera::EWBShade) { - modes |= QCamera::WhiteBalanceShade; - } - } - return modes; -} - -void S60CameraSession::updateVideoCaptureCodecs() -{ - TRAPD(err, updateVideoCaptureCodecsL()); - setError(err); -} - -void S60CameraSession::updateVideoCaptureCodecsL() -{ - m_videoControllerMap.clear(); - - // Resolve the supported video format and retrieve a list of controllers - CMMFControllerPluginSelectionParameters* pluginParameters = - CMMFControllerPluginSelectionParameters::NewLC(); - CMMFFormatSelectionParameters* format = - CMMFFormatSelectionParameters::NewLC(); - - // Set the play and record format selection parameters to be blank. - // Format support is only retrieved if requested. - pluginParameters->SetRequiredPlayFormatSupportL(*format); - pluginParameters->SetRequiredRecordFormatSupportL(*format); - - // Set the media ids - RArray mediaIds; - CleanupClosePushL(mediaIds); - User::LeaveIfError(mediaIds.Append(KUidMediaTypeVideo)); - // Get plugins that support at least video - pluginParameters->SetMediaIdsL(mediaIds, - CMMFPluginSelectionParameters::EAllowOtherMediaIds); - pluginParameters->SetPreferredSupplierL(KNullDesC, - CMMFPluginSelectionParameters::EPreferredSupplierPluginsFirstInList); - - // Array to hold all the controllers support the match data - RMMFControllerImplInfoArray controllers; - CleanupResetAndDestroyPushL(controllers); - pluginParameters->ListImplementationsL(controllers); - - // Find the first controller with at least one record format available - for (TInt index=0; indexRecordFormats(); - for (TInt j=0; jSupportedMimeTypes(); - TInt count = mimeTypes.Count(); - if (count > 0) { - TPtrC8 mimeType = mimeTypes[0]; - QString type = QString::fromUtf8((char *)mimeType.Ptr(), - mimeType.Length()); - // Currently only support for video/mp4 due to resolution and frame rate issues. - if (type == "video/mp4") { - VideoControllerData data; - data.controllerUid = controllers[index]->Uid().iUid; - data.formatUid = recordFormats[j]->Uid().iUid; - data.formatDescription = QString::fromUtf16( - recordFormats[j]->DisplayName().Ptr(), - recordFormats[j]->DisplayName().Length()); - m_videoControllerMap[type] = data; - } - } - } - } - - CleanupStack::PopAndDestroy(&controllers); - CleanupStack::PopAndDestroy(&mediaIds); - CleanupStack::PopAndDestroy(format); - CleanupStack::PopAndDestroy(pluginParameters); - - //qDebug() << "S60CameraSession::updateVideoCaptureCodecs count: " << m_videoControllerMap.keys().count(); -} - -QStringList S60CameraSession::supportedVideoCaptureCodecs() -{ - //qDebug() << "S60CameraSession::supportedVideoCaptureCodecs"; - return m_videoControllerMap.keys(); -} - -bool S60CameraSession::isSupportedVideoCaptureCodec(const QString &codecName) -{ - return m_videoControllerMap.keys().contains(codecName); -} - -QString S60CameraSession::videoCaptureCodec() -{ - return m_videoCodec; -} -void S60CameraSession::setVideoCaptureCodec(const QString &codecName) -{ - if (codecName == m_videoCodec) - return; - - m_videoCodec = codecName; -} - -QString S60CameraSession::videoCaptureCodecDescription(const QString &codecName) -{ - return m_videoControllerMap[codecName].formatDescription; -} - -int S60CameraSession::bitrate() -{ - if (m_videoUtility) { - TInt rate = 0; - TRAPD(err, rate = m_videoUtility->VideoBitRateL()); - setError(err); - return rate; - } - return 0; -} - -void S60CameraSession::setBitrate(const int &bitrate) -{ - if (m_videoUtility) { - TRAPD(err, m_videoUtility->SetVideoBitRateL(bitrate)); - setError(err); - } -} - -QSize S60CameraSession::videoResolution() -{ - TSize size(0,0); - if (m_videoUtility) { - TRAPD(err, m_videoUtility->GetVideoFrameSizeL(size)); - setError(err); - } - return QSize(size.iWidth, size.iHeight); -} - -void S60CameraSession::setVideoResolution(const QSize &resolution) -{ - if (m_videoUtility) { - TSize size(resolution.width(), resolution.height()); - TRAPD(err, m_videoUtility->SetVideoFrameSizeL(size)); - setError(err); - } -} - -void S60CameraSession::initializeVideoCaptureSettings() -{ - if (m_videoControllerMap.keys().count() > 0) - m_videoSettings.setCodec(m_videoControllerMap.keys()[0]); // Setting the first codec found as initial value - - // set lowest value found as initial value for frame rate - QList rates = supportedVideoFrameRates(); - qreal minRate = 30.0; - foreach (qreal rate, rates) - minRate = qMin(minRate, rate); - m_videoSettings.setFrameRate(minRate); - - QSize minResolution(176, 144); - m_videoSettings.setResolution(minResolution); - - // use variable bit rate as initial value - m_videoSettings.setBitRate(KMMFVariableVideoBitRate); - - m_videoSettings.setQuality(QtMedia::LowQuality); -} - - -void S60CameraSession::MvruoOpenComplete(TInt aError) -{ - //qDebug() << "S60CameraSession::MvruoOpenComplete, error: " << aError; - - if(aError==KErrNone) { - commitVideoEncoderSettings(); - m_videoUtility->Prepare(); - m_captureState = EOpenCompelete; - } else { - m_captureState = ENotInitialized; - } - setError(aError); -} - -void S60CameraSession::MvruoPrepareComplete(TInt aError) -{ - //qDebug() << "S60CameraSession::MvruoPrepareComplete, error: " << aError; - if(aError==KErrNone) { - m_videoUtility->Record(); - m_captureState = ERecording; - //qDebug() << "S60CameraSession::MvruoPrepareComplete: Record called"; - } else { - m_captureState = ENotInitialized; - } - setError(aError); - -} - -void S60CameraSession::MvruoRecordComplete(TInt aError) -{ - //qDebug() << "S60CameraSession::MvruoRecordComplete"; - if((aError==KErrNone) || (aError==KErrCompletion)) { - m_videoUtility->Stop(); - m_videoUtility->Close(); - } - m_captureState = ERecordComplete; - setError(aError); - -} - -void S60CameraSession::MvruoEvent(const TMMFEvent& aEvent) -{ - -} - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60camerasession.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60camerasession.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,289 +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 Qt Mobility Components. -** -** $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 S60CAMERASESSION_H -#define S60CAMERASESSION_H - -#include -#include -#include -#include -#include -#include -#include - -#include "qcamera.h" -#include "qstillimagecapture.h" -#include "s60camerasettings.h" -#include -#include -#include - -#include - -QTM_USE_NAMESPACE - -class MVFProcessor - -{ -public: - virtual void ViewFinderFrameReady(const QImage& image) = 0; -}; - -struct VideoControllerData -{ - int controllerUid; - int formatUid; - QString formatDescription; -}; - -class S60CameraService; - -class S60CameraSession : public QObject, - public MCameraEngineObserver, - public MVideoRecorderUtilityObserver -{ - Q_OBJECT -public: - - enum Error { - NoError = 0, - OutOfMemoryError, - InUseError, - NotReadyError, - UnknownError = -1 - }; - - enum EcamErrors { - KErrECamCameraDisabled = -12100, // The camera has been disabled, hence calls do not succeed - KErrECamSettingDisabled = -12101, // This parameter or operation is supported, but presently is disabled. - KErrECamParameterNotInRange = -12102, // This value is out of range. - KErrECamSettingNotSupported = -12103, // This parameter or operation is not supported. - KErrECamNotOptimalFocus = -12104 // The optimum focus is lost - }; - - S60CameraSession(QObject *parent = 0); - ~S60CameraSession(); - - CCamera::TFormat defaultCodec(); - void setError(TInt aError); - QCamera::Error fromSymbianErrorToMultimediaError(int aError); - - bool deviceReady(); - - S60CameraSettings* advancedSettings(); - - - qreal framerate(); - void setFrameRate(qreal rate); - - QList supportedPixelFormats(); - QVideoFrame::PixelFormat pixelFormat() const; - void setPixelFormat(QVideoFrame::PixelFormat fmt); - QList supportedVideoResolutions(); - QList supportedVideoFrameRates(); - - - // media control - bool setOutputLocation(const QUrl &sink); - QUrl outputLocation() const; - qint64 position(); - int state() const; - - //added based on s60 camera needs - void releaseImageBuffer(); - void startCamera(); - void stopCamera(); - void capture(const QString &fileName); - - - // for mediacontrol - void startRecording(); - void pauseRecording(); - void stopRecording(); - - //videodevicecontrol - static int deviceCount(); - static QString name(const int index); - static QString description(const int index); - int defaultDevice() const; - int selectedDevice() const; - void setSelectedDevice(int index); - - //imageencodercontrol - QSize captureSize() const; - QSize minimumCaptureSize(); - QSize maximumCaptureSize(); - QList supportedCaptureSizesForCodec(const QString &codecName); - void setCaptureSize(const QSize &size); - QStringList supportedImageCaptureCodecs(); - QString imageCaptureCodec(); - void setImageCaptureCodec(const QString &codecName); - QString imageCaptureCodecDescription(const QString &codecName); - QtMedia::EncodingQuality captureQuality() const; - void setCaptureQuality(QtMedia::EncodingQuality); - - void setVideoRenderer(QObject *renderer); - void updateImageCaptureCodecs(); - - QStringList supportedVideoCaptureCodecs(); - QString videoCaptureCodec(); - void setVideoCaptureCodec(const QString &codecName); - bool isSupportedVideoCaptureCodec(const QString &codecName); - int bitrate(); - void setBitrate(const int &bitrate); - QSize videoResolution(); - void setVideoResolution(const QSize &resolution); - QString videoCaptureCodecDescription(const QString &codecName); - void saveVideoEncoderSettings(QVideoEncoderSettings &videoSettings); - void getCurrentVideoEncoderSettings(QVideoEncoderSettings &videoSettings); - QtMedia::EncodingQuality videoCaptureQuality() const; - void setVideoCaptureQuality(QtMedia::EncodingQuality quality); - - //camerafocuscontrol - void startFocus(); - void cancelFocus(); - int maximumZoom(); - int minZoom(); - int maxDigitalZoom(); - void setZoomFactor(qreal optical, qreal digital); - int zoomFactor(); - int digitalZoomFactor(); - - //cameraexposurecontrol - void setFlashMode(QCamera::FlashMode mode); - void setExposureMode(QCamera::ExposureMode mode); - QCamera::ExposureMode exposureMode(); - QCamera::ExposureModes supportedExposureModes(); - QCamera::FlashModes supportedFlashModes(); - QCamera::FlashMode flashMode(); - - //cameraimageprocessingcontrol - qreal contrast() const; - void setContrast(qreal value); - QCamera::WhiteBalanceMode whiteBalanceMode(); - void setWhiteBalanceMode(QCamera::WhiteBalanceMode mode); - QCamera::WhiteBalanceModes supportedWhiteBalanceModes(); - -protected: // From MCameraEngineObserver - void MceoCameraReady(); - void MceoFocusComplete(); - void MceoCapturedDataReady(TDesC8* aData); - void MceoCapturedBitmapReady(CFbsBitmap* aBitmap); - void MceoViewFinderFrameReady(CFbsBitmap& aFrame); - void MceoHandleError(TCameraEngineError aErrorType, TInt aError); - -private: - bool queryCurrentCameraInfo(); - QMap formatMap(); - QMap formatDescMap(); - - void setWhiteBalanceModeL(QCamera::WhiteBalanceMode mode); - void commitVideoEncoderSettings(); - void setVideoFrameRateFixed(bool fixed); - void resetCamera(); - - //from MVideoRecorderUtilityObserver - void MvruoOpenComplete(TInt aError); - void MvruoPrepareComplete(TInt aError); - void MvruoRecordComplete(TInt aError); - void MvruoEvent(const TMMFEvent& aEvent); - - void updateVideoCaptureCodecs(); - void updateVideoCaptureCodecsL(); - void initializeVideoCaptureSettings(); - -Q_SIGNALS: - void stateChanged(QCamera::State); - // for capture control - void error(int error, const QString &errorString); - void readyForCaptureChanged(bool); - void imageCaptured(const QString &fileName, const QImage &preview); - void imageSaved(const QString &fileName); - //for focuscontrol - void focusStatusChanged(QCamera::FocusStatus); - void opticalZoomChanged(qreal opticalZoom); - void digitalZoomChanged(qreal digitalZoom); - - - -private: - CCameraEngine *m_cameraEngine; - S60CameraSettings *m_advancedSettings; - MVFProcessor *m_VFProcessor; - int m_imageQuality; - int m_videoQuality; - QSize m_captureSize; - QCamera::State m_state; - QVideoFrame::PixelFormat m_pixelF; - TInt m_deviceIndex; //index indication chosen camera device - mutable int m_error; - CCamera::TFormat m_currentcodec; - QTime m_timeStamp; - QUrl m_sink; - QList m_resolutions; - QList m_formats; - QSize m_VFWidgetSize; - TSize m_VFSize; - QString m_stillCaptureFileName; - - mutable TCameraInfo m_info; // information about camera - - CVideoRecorderUtility* m_videoUtility; - QHash m_videoControllerMap; - QString m_videoCodec; - QVideoEncoderSettings m_videoSettings; - - enum TVideoCaptureState - { - ENotInitialized = 0, - EInitialized, - EOpenCompelete, - ERecording, - EPaused, - ERecordComplete - }; - - TVideoCaptureState m_captureState; - -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60camerasettings.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60camerasettings.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,434 +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 Qt Mobility Components. -** -** $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 "s60camerasettings.h" - -#include -#ifdef USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER -#include // CCameraAdvancedSettings (includes TValueInfo) -#endif -#ifdef USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER -#include // CCameraAdvancedSettings -#include // TValueInfo -#endif - - - -S60CameraSettings::S60CameraSettings(QObject *parent, CCameraEngine *engine) - : QObject(parent) -{ - m_cameraEngine = engine; - queryAdvancedSettingsInfo(); -} - -S60CameraSettings::~S60CameraSettings() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - m_advancedSettings = NULL; -#endif -} - -/* - * Queries advanced settings information - * Results are returned to member variable m_advancedSettings - * @return boolean indicating if querying the info was a success - */ -bool S60CameraSettings::queryAdvancedSettingsInfo() -{ - bool returnValue = false; -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (m_cameraEngine) { - m_advancedSettings = NULL; - m_advancedSettings = m_cameraEngine->AdvancedSettings(); - if (m_advancedSettings) - returnValue = true; - } -#endif - return returnValue; -} - -void S60CameraSettings::setFocusMode(QCamera::FocusMode mode) -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (m_advancedSettings) { - switch(mode) { - case QCamera::ManualFocus: // Manual focus mode - //qDebug() << "Settings: set manual focus"; - m_advancedSettings->SetFocusMode(CCamera::CCameraAdvancedSettings::EFocusModeManual); - break; - case QCamera::AutoFocus: // One-shot auto focus mode - //qDebug() << "Settings: set auto focus"; - m_advancedSettings->SetAutoFocusType(CCamera::CCameraAdvancedSettings::EAutoFocusTypeSingle); - m_advancedSettings->SetFocusMode(CCamera::CCameraAdvancedSettings::EFocusModeAuto); - break; - } - } -#endif -} - -QCamera::FocusMode S60CameraSettings::focusMode() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (m_advancedSettings) { - CCamera::CCameraAdvancedSettings::TFocusMode mode = m_advancedSettings->FocusMode(); - switch(mode) { - case CCamera::CCameraAdvancedSettings::EFocusModeManual: - return QCamera::ManualFocus; - case CCamera::CCameraAdvancedSettings::EFocusModeAuto: - return QCamera::AutoFocus; - } - } -#else - -#endif -} - -QCamera::FocusModes S60CameraSettings::supportedFocusModes() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - TInt supportedModes = 0; - TInt autoFocusTypes = 0; - QCamera::FocusModes modes = QCamera::AutoFocus; - if (m_advancedSettings) { - supportedModes = m_advancedSettings->SupportedFocusModes(); - autoFocusTypes = m_advancedSettings->SupportedAutoFocusTypes(); - if (supportedModes == 0) - return modes; - if (supportedModes & CCamera::CCameraAdvancedSettings::EFocusModeAuto) { - if (autoFocusTypes & CCamera::CCameraAdvancedSettings::EAutoFocusTypeSingle) - modes |= QCamera::AutoFocus; - if (autoFocusTypes & CCamera::CCameraAdvancedSettings::EAutoFocusTypeContinuous) - modes |= QCamera::ContinuousFocus; - } - } - return modes; -#endif -} - -// from MCameraObserver2 -void S60CameraSettings::HandleEvent(const TECAMEvent& aEvent) -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (aEvent.iEventType == KUidECamEventCameraSettingExposureLock) { - emit exposureLocked(); - } else if (aEvent.iEventType == KUidECamEventCameraSettingAperture) { - emit apertureChanged(aperture()); - } else if (aEvent.iEventType == KUidECamEventCameraSettingApertureRange) { - emit apertureRangeChanged(); - } else if (aEvent.iEventType == KUidECamEventCameraSettingIsoRate) { - emit isoSensitivityChanged(isoSensitivity()); - } else if (aEvent.iEventType == KUidECamEventCameraSettingShutterSpeed) { - emit shutterSpeedChanged(shutterSpeed()); - } else if (aEvent.iEventType == KUidECamEventCameraSettingExposureLock) { - emit exposureLocked(); - } else if (aEvent.iEventType == KUidECamEventFlashReady) { - emit flashReady(true); - } else if (aEvent.iEventType == KUidECamEventFlashNotReady) { - emit flashReady(false); - } -#endif -} - -void S60CameraSettings::ViewFinderReady(MCameraBuffer& aCameraBuffer,TInt aError) -{ - Q_UNUSED(aCameraBuffer); - Q_UNUSED(aError); -} - -void S60CameraSettings::ImageBufferReady(MCameraBuffer& aCameraBuffer,TInt aError) -{ - Q_UNUSED(aCameraBuffer); - Q_UNUSED(aError); -} -void S60CameraSettings::VideoBufferReady(MCameraBuffer& aCameraBuffer,TInt aError) -{ - Q_UNUSED(aCameraBuffer); - Q_UNUSED(aError); -} - -bool S60CameraSettings::isFlashReady() -{ - TBool ready = false; -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - int i = m_advancedSettings->IsFlashReady(ready); - if (i == KErrNotSupported) { - // TODO: error flash not supported - return false; - } - } -#endif - return ready; -} - -void S60CameraSettings::setExposureCompensation(qreal ev) -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - m_advancedSettings->SetExposureCompensation(ev); - } -#endif -} - -qreal S60CameraSettings::exposureCompensation() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - return m_advancedSettings->ExposureCompensation(); - } else { - return 0; - } -#else - return 0; -#endif -} - -QCamera::MeteringMode S60CameraSettings::meteringMode() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - CCamera::CCameraAdvancedSettings::TMeteringMode mode = m_advancedSettings->MeteringMode(); - switch(mode) { - case CCamera::CCameraAdvancedSettings::EMeteringModeCenterWeighted: - return QCamera::MeteringAverage; - case CCamera::CCameraAdvancedSettings::EMeteringModeEvaluative: - return QCamera::MeteringMatrix; - case CCamera::CCameraAdvancedSettings::EMeteringModeSpot: - return QCamera::MeteringSpot; - default: - break; - } - } -#else - -#endif -} - -void S60CameraSettings::setMeteringMode(QCamera::MeteringMode mode) -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - switch(mode) { - case QCamera::MeteringAverage: - m_advancedSettings->SetMeteringMode(CCamera::CCameraAdvancedSettings::EMeteringModeCenterWeighted); - break; - case QCamera::MeteringMatrix: - m_advancedSettings->SetMeteringMode(CCamera::CCameraAdvancedSettings::EMeteringModeEvaluative); - break; - case QCamera::MeteringSpot: - m_advancedSettings->SetMeteringMode(CCamera::CCameraAdvancedSettings::EMeteringModeSpot); - break; - default: - break; - } - } -#endif -} - -QCamera::MeteringModes S60CameraSettings::supportedMeteringModes() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - TInt supportedModes = 0; - QCamera::MeteringModes modes = QCamera::MeteringAverage; - if (queryAdvancedSettingsInfo()) { - supportedModes = m_advancedSettings->SupportedMeteringModes(); - if (supportedModes == 0) { - emit error(QCamera::NotSupportedFeatureError); - return modes; - } if (supportedModes & CCamera::CCameraAdvancedSettings::EMeteringModeCenterWeighted) { - modes |= QCamera::MeteringAverage; - } if (supportedModes & CCamera::CCameraAdvancedSettings::EMeteringModeEvaluative) { - modes |= QCamera::MeteringMatrix; - } if (supportedModes & CCamera::CCameraAdvancedSettings::EMeteringModeSpot) { - modes |= QCamera::MeteringSpot; - } - } - return modes; -#endif -} - -int S60CameraSettings::isoSensitivity() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - return m_advancedSettings->IsoRate(); - } else { - return 0; - } -#endif -} - -QList S60CameraSettings::supportedIsoSensitivities() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - QList isoSentitivities; - if (queryAdvancedSettingsInfo()) { - RArray supportedIsoRates; - TRAPD(err, m_advancedSettings->GetSupportedIsoRatesL(supportedIsoRates)); - if (err != KErrNone) { - emit error(QCamera::NotSupportedFeatureError); - } else { - for (int i=0; i < supportedIsoRates.Count(); i++) { - int q = supportedIsoRates[i]; - isoSentitivities.append(q); - } - } - supportedIsoRates.Close(); - } - return isoSentitivities; -#endif -} - -void S60CameraSettings::setManualIsoSensitivity(int iso) -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - m_advancedSettings->SetIsoRate(iso); - } -#endif -} - -qreal S60CameraSettings::aperture() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - return m_advancedSettings->Aperture(); - } else { - return -1.0; - } -#endif -} - -QList S60CameraSettings::supportedApertures(bool *continuous) -{ - Q_UNUSED(continuous); -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - QList apertures; - if (queryAdvancedSettingsInfo()) { - RArray supportedApertures; - TValueInfo info = ENotActive; - TRAPD(err, m_advancedSettings->GetAperturesL(supportedApertures, info)); - if (err != KErrNone) { - emit error(QCamera::NotSupportedFeatureError); - } else { - for (int i=0; i < supportedApertures.Count(); i++) { - qreal q = supportedApertures[i]; - apertures.append(q); - } - } - supportedApertures.Close(); - } - return apertures; -#endif -} - -void S60CameraSettings::setManualAperture(qreal aperture) -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - m_advancedSettings->SetAperture(aperture); - } -#endif -} - -void S60CameraSettings::lockExposure(bool lock) -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - m_advancedSettings->SetExposureLockOn(lock); - } -#endif -} - -bool S60CameraSettings::isExposureLocked() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - return m_advancedSettings->ExposureLockOn(); - } else { - return false; - } -#endif -} - -TInt S60CameraSettings::shutterSpeed() -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - return m_advancedSettings->ShutterSpeed(); - } else { - return -1.0; - } -#endif -} - -QList S60CameraSettings::supportedShutterSpeeds(bool *continuous) -{ - Q_UNUSED(continuous); -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - QList speeds; - if (queryAdvancedSettingsInfo()) { - RArray supportedSpeeds; - TValueInfo info = ENotActive; - TRAPD(err, m_advancedSettings->GetShutterSpeedsL(supportedSpeeds, info)); - if (err != KErrNone) { - emit error(QCamera::NotSupportedFeatureError); - } else { - for (int i=0; i < supportedSpeeds.Count(); i++) { - qreal q = supportedSpeeds[i]; - speeds.append(q); - } - } - supportedSpeeds.Close(); - } - return speeds; -#endif -} - -void S60CameraSettings::setShutterSpeed(TInt speed) -{ -#if (defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER)) - if (queryAdvancedSettingsInfo()) { - m_advancedSettings->SetShutterSpeed(speed); - } -#endif -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60camerasettings.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60camerasettings.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,115 +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 Qt Mobility Components. -** -** $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 S60CAMERASETTINGS_H -#define S60CAMERASETTINGS_H - -#include -#include -#include - -#include "qcamera.h" - -QTM_USE_NAMESPACE - -class S60CameraSettings : public QObject, - public MCameraObserver2 - -{ - Q_OBJECT -public: - S60CameraSettings(QObject *parent = 0, CCameraEngine *engine = 0); - ~S60CameraSettings(); - - bool isFlashReady(); - void setExposureMode(QCamera::ExposureMode mode); - void setExposureCompensation(qreal ev); - qreal exposureCompensation(); - QCamera::MeteringMode meteringMode(); - void setMeteringMode(QCamera::MeteringMode mode); - QCamera::MeteringModes supportedMeteringModes(); - int isoSensitivity(); - QList supportedIsoSensitivities(); - void setManualIsoSensitivity(int iso); - qreal aperture(); - QList supportedApertures(bool *continuous); - void setManualAperture(qreal aperture); - void lockExposure(bool lock); - bool isExposureLocked(); - - void setFocusMode(QCamera::FocusMode mode); - QCamera::FocusMode focusMode(); - QCamera::FocusModes supportedFocusModes(); - - TInt shutterSpeed(); - void setShutterSpeed(TInt speed); - QList supportedShutterSpeeds(bool *continuous); - -Q_SIGNALS: - void exposureLocked(); - void flashReady(bool ready); - void apertureChanged(qreal aperture); - void apertureRangeChanged(); - void shutterSpeedChanged(qreal speed); - void isoSensitivityChanged(int iso); - - void error(QCamera::Error); - - -protected: // from MCameraObserver2 - void HandleEvent(const TECAMEvent& aEvent); - void ViewFinderReady(MCameraBuffer& aCameraBuffer,TInt aError); - void ImageBufferReady(MCameraBuffer& aCameraBuffer,TInt aError); - void VideoBufferReady(MCameraBuffer& aCameraBuffer,TInt aError); - -private: - bool queryAdvancedSettingsInfo(); - -private: -#if defined(USE_S60_50_ECAM_ADVANCED_SETTINGS_HEADER) || defined(USE_S60_32_ECAM_ADVANCED_SETTINGS_HEADER) - CCamera::CCameraAdvancedSettings *m_advancedSettings; -#endif - CCameraEngine *m_cameraEngine; - -}; - -#endif - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameravideodevicecontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameravideodevicecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +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 Qt Mobility Components. -** -** $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 "s60cameravideodevicecontrol.h" -#include "s60camerasession.h" - -#include -#include -#include - -const int defaultCameraDevice = 0; - -S60CameraVideoDeviceControl::S60CameraVideoDeviceControl(QObject *parent) - :QVideoDeviceControl(parent), m_selectedDevice(defaultCameraDevice) -{ -} - -S60CameraVideoDeviceControl::S60CameraVideoDeviceControl(QObject *session, QObject *parent) - :QVideoDeviceControl(parent), m_selectedDevice(defaultCameraDevice) -{ - m_session = qobject_cast(session); -} - -S60CameraVideoDeviceControl::~S60CameraVideoDeviceControl() -{ -} - -int S60CameraVideoDeviceControl::deviceCount() const -{ - //qDebug() << "S60CameraVideoDeviceControl::deviceCount" ; - return S60CameraSession::deviceCount(); -} - -QString S60CameraVideoDeviceControl::deviceName(int index) const -{ - //qDebug() << "S60CameraVideoDeviceControl::deviceName, index=" << index; - return S60CameraSession::name(index); -} -QString S60CameraVideoDeviceControl::deviceDescription(int index) const -{ - //qDebug() << "S60CameraVideoDeviceControl::deviceDescription, index=" << index; - return S60CameraSession::description(index); -} -QIcon S60CameraVideoDeviceControl::deviceIcon(int index) const -{ - //qDebug() << "S60CameraVideoDeviceControl::deviceIcon(), index="<defaultDevice(); - } - return defaultCameraDevice; -} -int S60CameraVideoDeviceControl::selectedDevice() const -{ - qDebug() << "S60CameraVideoDeviceControl::selectedDevice() called"; - return m_selectedDevice; -} - -void S60CameraVideoDeviceControl::setSelectedDevice(int index) -{ - qDebug() << "S60CameraVideoDeviceControl::setSelectedDevice(), index="<setSelectedDevice(m_selectedDevice); - } - m_selectedDevice = index; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60cameravideodevicecontrol.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60cameravideodevicecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +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 Qt Mobility Components. -** -** $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 S60CAMERAVIDEODEVICECONTROL_H -#define S60CAMERAVIDEODEVICECONTROL_H - -#include "qvideodevicecontrol.h" - -QTM_USE_NAMESPACE - -class S60CameraSession; -class QString; -class QIcon; - -class S60CameraVideoDeviceControl : public QVideoDeviceControl -{ - Q_OBJECT -public: - S60CameraVideoDeviceControl(QObject *parent); - S60CameraVideoDeviceControl(QObject *session, QObject *parent = 0); - virtual ~S60CameraVideoDeviceControl(); - - int deviceCount() const; - - QString deviceName(int index) const; - QString deviceDescription(int index) const; - QIcon deviceIcon(int index) const; - - int defaultDevice() const; - int selectedDevice() const; - -public Q_SLOTS: - void setSelectedDevice(int index); - -private: - S60CameraSession* m_session; - int m_selectedDevice; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60mediacontainercontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60mediacontainercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +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 Qt Mobility Components. -** -** $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 "s60mediacontainercontrol.h" -#include "s60camerasession.h" - -S60MediaContainerControl::S60MediaContainerControl(QObject *parent) - : QMediaContainerControl(parent) -{ -} - -S60MediaContainerControl::S60MediaContainerControl(QObject *session, QObject *parent) - : QMediaContainerControl(parent) -{ - m_session = qobject_cast(session); - - m_supportedContainers = m_session->supportedVideoCaptureCodecs(); - setContainerMimeType(m_supportedContainers[0]); - -} -QStringList S60MediaContainerControl::supportedContainers() const -{ - //return m_session->supportedVideoCaptureCodecs(); - return m_supportedContainers; -} -QString S60MediaContainerControl::containerMimeType() const -{ - return m_containerMimeType; -} -void S60MediaContainerControl::setContainerMimeType(const QString &containerMimeType) -{ - m_containerMimeType = containerMimeType; -} -QString S60MediaContainerControl::containerDescription(const QString &containerMimeType) const -{ - return m_session->videoCaptureCodecDescription(containerMimeType); - //return m_containerDescriptions.value(containerMimeType); -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60mediacontainercontrol.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60mediacontainercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +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 Qt Mobility Components. -** -** $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 S60MEDIAFORMATCONTROL_H -#define S60MEDIAFORMATCONTROL_H - -#include "QMediaContainerControl" -#include -#include - -QTM_USE_NAMESPACE - -class S60CameraSession; - -class S60MediaContainerControl : public QMediaContainerControl -{ -Q_OBJECT -public: - S60MediaContainerControl(QObject *parent = 0); - S60MediaContainerControl(QObject *session, QObject *parent = 0); - virtual ~S60MediaContainerControl() {}; - - QStringList supportedContainers() const; - QString containerMimeType() const; - void setContainerMimeType(const QString &containerMimeType); - - QString containerDescription(const QString &containerMimeType) const; - -private: - S60CameraSession* m_session; - - QString m_containerMimeType; - QStringList m_supportedContainers; - QMap m_containerDescriptions; -}; - -#endif // S60MEDIAFORMATCONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60mediacontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60mediacontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,123 +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 Qt Mobility Components. -** -** $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 "s60mediacontrol.h" -#include "s60cameracontrol.h" -#include "s60camerasession.h" - -#include - -S60MediaControl::S60MediaControl(QObject *parent) - :QMediaRecorderControl(parent) -{ -} - -S60MediaControl::S60MediaControl(QObject *session, QObject *parent) - :QMediaRecorderControl(parent) -{ - // use cast if we want to change session class later on.. - m_session = qobject_cast(session); - - connect(m_session,SIGNAL(stateChanged(QCamera::State)),this,SIGNAL(stateChanged(QCamera::State))); - connect(m_session,SIGNAL(error(int,const QString &)),this,SIGNAL(error(int,const QString &))); -} - -S60MediaControl::~S60MediaControl() -{ -} - -QUrl S60MediaControl::outputLocation() const -{ - if (m_session) - return m_session->outputLocation(); - return QUrl(); -} - -bool S60MediaControl::setOutputLocation(const QUrl& sink) -{ - if (m_session) - return m_session->setOutputLocation(sink); - return false; -} - -QMediaRecorder::State S60MediaControl::state() const -{ - if (m_session) - return (QMediaRecorder::State)m_session->state(); - return QMediaRecorder::StoppedState; -} - -qint64 S60MediaControl::duration() const -{ - if (m_session) - return m_session->position(); - return -1; -} -/* -This method is called after encoder configuration is done. -Encoder can load necessary resources at this point, -to reduce delay before recording is started. -*/ -void S60MediaControl::applySettings() -{ - -} - -void S60MediaControl::record() -{ - if (m_session) - m_session->startRecording(); - emit stateChanged(QMediaRecorder::RecordingState); -} - -void S60MediaControl::pause() -{ - if (m_session) - m_session->pauseRecording(); - emit stateChanged(QMediaRecorder::PausedState); -} - -void S60MediaControl::stop() -{ - if (m_session) - m_session->stopRecording(); - emit stateChanged(QMediaRecorder::StoppedState); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60mediacontrol.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60mediacontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,83 +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 Qt Mobility Components. -** -** $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 S60MEDIACONTROL_H -#define S60MEDIACONTROL_H - -#include -#include - -#include "qmediarecorder.h" -#include "qmediarecordercontrol.h" -#include "qcameracontrol.h" - -QTM_USE_NAMESPACE - -class S60CameraSession; - -class S60MediaControl : public QMediaRecorderControl -{ - Q_OBJECT -public: - S60MediaControl(QObject *parent = 0); - S60MediaControl(QObject *session, QObject *parent = 0); - ~S60MediaControl(); - - QUrl outputLocation() const; - bool setOutputLocation(const QUrl &sink); - - QMediaRecorder::State state() const; - - qint64 duration() const; - - void applySettings(); - - -public slots: - void record(); - void pause(); - void stop(); - -private: - S60CameraSession* m_session; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60videoencoder.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60videoencoder.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,241 +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 Qt Mobility Components. -** -** $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 "s60videoencoder.h" -#include "s60camerasession.h" - -#include - -S60VideoEncoder::S60VideoEncoder(QObject *parent) - :QVideoEncoderControl(parent) -{ -} - -S60VideoEncoder::S60VideoEncoder(QObject *session, QObject *parent) - :QVideoEncoderControl(parent) -{ - // use cast if we want to change session class later on.. - m_session = qobject_cast(session); -} - -S60VideoEncoder::~S60VideoEncoder() -{ -} - -QStringList S60VideoEncoder::supportedVideoCodecs() const -{ - return m_session->supportedVideoCaptureCodecs(); -} - -QString S60VideoEncoder::videoCodecDescription(const QString &codecName) const -{ - return m_session->videoCaptureCodecDescription(codecName); -} - -QString S60VideoEncoder::videoCodec() const -{ - return m_session->videoCaptureCodec(); -} - -void S60VideoEncoder::setVideoCodec(const QString &codecName) -{ - m_session->setVideoCaptureCodec(codecName); -} - -int S60VideoEncoder::bitRate() const -{ - return m_session->bitrate(); -} -void S60VideoEncoder::setBitRate(int bitRate) -{ - m_session->setBitrate(bitRate); -} - -QtMedia::EncodingQuality S60VideoEncoder::quality() const -{ - return m_session->captureQuality(); -} - -void S60VideoEncoder::setQuality(QtMedia::EncodingQuality quality) -{ - m_session->setCaptureQuality(quality); -} - -QList< qreal > S60VideoEncoder::supportedFrameRates(const QVideoEncoderSettings &settings, bool *continuous) const -{ - return m_session->supportedVideoFrameRates(); -} - -qreal S60VideoEncoder::minimumFrameRate() const -{ - QList rates = m_session->supportedVideoFrameRates(); - qreal minRate = 30.0; - foreach (qreal rate, rates) - minRate = qMin(minRate, rate); - return minRate; -} - -qreal S60VideoEncoder::maximumFrameRate() const -{ - QList rates = m_session->supportedVideoFrameRates(); - qreal maxRate = 0.0; - foreach (qreal rate, rates) - maxRate = qMax(maxRate, rate); - return maxRate; -} - -qreal S60VideoEncoder::frameRate() const -{ - return m_session->framerate(); -} -void S60VideoEncoder::setFrameRate(qreal frameRate) -{ - m_session->setFrameRate(frameRate); -} - -QList S60VideoEncoder::supportedResolutions(const QVideoEncoderSettings &settings, bool *continuous) const -{ - return m_session->supportedVideoResolutions(); -} - -QSize S60VideoEncoder::minimumResolution() const -{ - QSize minimumSize; - QList sizes = m_session->supportedVideoResolutions(); - - minimumSize = sizes.first(); - - for(int i=0;i sizes = m_session->supportedVideoResolutions(); - - maxSize = sizes.first(); - - for(int i=0;i maxSize.width()) - maxSize = sizes.at(i); - } - - return maxSize; -} - -QSize S60VideoEncoder::videoResolution() const -{ - return m_session->videoResolution(); -} - -void S60VideoEncoder::setResolution(const QSize resolution) -{ - m_session->setVideoResolution(resolution); -} - -QStringList S60VideoEncoder::supportedEncodingOptions(const QString &codec) const -{ - Q_UNUSED(codec) - QStringList list; - return list; -} - -QVariant S60VideoEncoder::encodingOption(const QString &codec, const QString &name) const -{ - Q_UNUSED(codec) - - if(qstrcmp(name.toLocal8Bit().constData(), "bitrate") == 0) { - return QVariant(m_session->bitrate()); - } - else if(qstrcmp(name.toLocal8Bit().constData(), "quality") == 0) { - return QVariant(m_session->captureQuality()); - } - else if(qstrcmp(name.toLocal8Bit().constData(), "framerate") == 0) { - return QVariant(m_session->framerate()); - } - else if(qstrcmp(name.toLocal8Bit().constData(), "resolution") == 0) { - return QVariant(m_session->videoResolution()); - } - else - return QVariant(); -} - -void S60VideoEncoder::setEncodingOption( - const QString &codec, const QString &name, const QVariant &value) -{ - Q_UNUSED(codec) - - if(qstrcmp(name.toLocal8Bit().constData(), "bitrate") == 0) { - setBitRate(value.toInt()); - } - else if(qstrcmp(name.toLocal8Bit().constData(), "quality") == 0) { - setQuality((QtMedia::EncodingQuality)value.toInt()); - } - else if(qstrcmp(name.toLocal8Bit().constData(), "framerate") == 0) { - setFrameRate(value.toInt()); - } - else if(qstrcmp(name.toLocal8Bit().constData(), "resolution") == 0) { - setResolution(value.toSize()); - } - else - qWarning() << "option: " << name << " is an unknown option!"; -} - -QVideoEncoderSettings S60VideoEncoder::videoSettings() const -{ - QVideoEncoderSettings settings; - m_session->getCurrentVideoEncoderSettings(settings); - return settings; -} - -void S60VideoEncoder::setVideoSettings(const QVideoEncoderSettings &settings) -{ - QVideoEncoderSettings tempSettings = settings; - m_session->saveVideoEncoderSettings(tempSettings); -} - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60videoencoder.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60videoencoder.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,109 +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 Qt Mobility Components. -** -** $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 S60VIDEOENCODE_H -#define S60VIDEOENCODE_H - -#include "qvideoencodercontrol.h" - -#include -#include - -QTM_USE_NAMESPACE - -class S60CameraSession; - -class S60VideoEncoder : public QVideoEncoderControl -{ - Q_OBJECT -public: - S60VideoEncoder(QObject *parent = 0); - S60VideoEncoder(QObject *session, QObject *parent = 0); - virtual ~S60VideoEncoder(); - - QStringList supportedVideoCodecs() const; - QString videoCodecDescription(const QString &codecName) const; - QString videoCodec() const; - void setVideoCodec(const QString &codecName); - - int bitRate() const; - void setBitRate(int); - - QtMedia::EncodingQuality quality() const; - void setQuality(QtMedia::EncodingQuality); - - QList supportedFrameRates(const QVideoEncoderSettings &settings, bool *continuous = 0) const; - qreal minimumFrameRate() const; - qreal maximumFrameRate() const; - qreal frameRate() const; - void setFrameRate(qreal frameRate); - - QList supportedResolutions(const QVideoEncoderSettings &settings, bool *continuous = 0) const; - QSize minimumResolution() const; - QSize maximumResolution() const; - QSize videoResolution() const; - void setResolution(const QSize resolution); - - QStringList supportedEncodingOptions(const QString &codec) const; - QVariant encodingOption(const QString &codec, const QString &name) const; - void setEncodingOption(const QString &codec, const QString &name, const QVariant &value); - - QVideoEncoderSettings videoSettings() const; - void setVideoSettings(const QVideoEncoderSettings &settings); - -private: - S60CameraSession* m_session; - - QStringList m_codecs; - QMap m_codecDescriptions; - QMap m_codecOptions; - - QString m_codec; - QMap > m_options; - QSize m_resolution; - qreal m_frameRate; - - QVideoEncoderSettings m_videoSettings; - - -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60viewfinderwidget.cpp --- a/qtmobility/plugins/multimedia/symbian/camera/s60viewfinderwidget.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,244 +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 Qt Mobility Components. -** -** $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 "s60viewfinderwidget.h" - -#include -#include -#include -#include -#include - -#include - -#include // For CCoeEnv -#include -#include - -#include - -S60ViewFinderWidget::S60ViewFinderWidget(QWidget *parent) - : QWidget(parent) -{ - setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - QPalette palette; - palette.setColor(QPalette::Background, Qt::black); - setPalette(palette); -} - -void S60ViewFinderWidget::ViewFinderFrameReady(const QImage& image) -{ - m_pixmapImage = QPixmap::fromImage(image); - repaint(); -} - -void S60ViewFinderWidget::paintEvent(QPaintEvent *) -{ - QPainter painter(this); - QPoint point(pos()); - painter.drawPixmap(point, m_pixmapImage.scaled(size(), Qt::KeepAspectRatio)); -} - -S60ViewFinderWidgetControl::S60ViewFinderWidgetControl(QObject *parent) - : QVideoWidgetControl(parent) - , m_widget(new S60ViewFinderWidget) -{ - m_widget->installEventFilter(this); -} - -S60ViewFinderWidgetControl::~S60ViewFinderWidgetControl() -{ - delete m_widget; -} - -;bool S60ViewFinderWidgetControl::eventFilter(QObject *object, QEvent *e) -{ - if (e->type() == QEvent::Show) { - m_widget->setAttribute(Qt::WA_NoSystemBackground, true); - - return true; - } - - if (e->type() == QEvent::Resize) { - emit resizeVideo(); - return true; - } - - if (e->type() == QEvent::Paint) { - //QTimer::singleShot(20, this, SLOT(enableUpdates())); - } - - return QVideoWidgetControl::eventFilter(object, e); -} - -void S60ViewFinderWidgetControl::enableUpdates() -{ - emit resizeVideo(); -} - -void S60ViewFinderWidgetControl::setOverlay() -{ - // TODO: -} - -void S60ViewFinderWidgetControl::updateNativeVideoSize() -{ - // TODO: -} - - -void S60ViewFinderWidgetControl::windowExposed() -{ - // TODO: -} - -S60ViewFinderWidget *S60ViewFinderWidgetControl::videoWidget() -{ - return m_widget; -} - -QVideoWidget::AspectRatioMode S60ViewFinderWidgetControl::aspectRatioMode() const -{ - return m_aspectRatioMode; -} - -QSize S60ViewFinderWidgetControl::customAspectRatio() const -{ - return m_customAspectRatio; -} - -void S60ViewFinderWidgetControl::setAspectRatioMode(QVideoWidget::AspectRatioMode ratio) -{ - // TODO: -} - -void S60ViewFinderWidgetControl::setCustomAspectRatio(const QSize &ratio) -{ - m_customAspectRatio = ratio; -} - -bool S60ViewFinderWidgetControl::isFullScreen() const -{ - return m_widget->isFullScreen(); -} - -void S60ViewFinderWidgetControl::setFullScreen(bool fullScreen) -{ - if (fullScreen) { - m_widget->setWindowFlags(m_widget->windowFlags() | Qt::Window | Qt::WindowStaysOnTopHint); - m_widget->setWindowState(m_widget->windowState() | Qt::WindowFullScreen); - - m_widget->show(); - - emit fullScreenChanged(fullScreen); - } else { - m_widget->setWindowFlags(m_widget->windowFlags() & ~(Qt::Window | Qt::WindowStaysOnTopHint)); - m_widget->setWindowState(m_widget->windowState() & ~Qt::WindowFullScreen); - - m_widget->show(); - - emit fullScreenChanged(fullScreen); - } -} - -int S60ViewFinderWidgetControl::brightness() const -{ - int brightness = 0; - - // TODO: - - return brightness / 10; -} - -void S60ViewFinderWidgetControl::setBrightness(int brightness) -{ - // TODO: - - emit brightnessChanged(brightness); -} - -int S60ViewFinderWidgetControl::contrast() const -{ - int contrast = 0; - - // TODO: - - return contrast / 10; -} - -void S60ViewFinderWidgetControl::setContrast(int contrast) -{ - // TODO: - - emit contrastChanged(contrast); -} - -int S60ViewFinderWidgetControl::hue() const -{ - int hue = 0; - - // TODO: - - return hue / 10; -} - -void S60ViewFinderWidgetControl::setHue(int hue) -{ - // TODO: - - emit hueChanged(hue); -} - -int S60ViewFinderWidgetControl::saturation() const -{ - int saturation = 0; - - // TODO: - - return saturation / 10; -} - -void S60ViewFinderWidgetControl::setSaturation(int saturation) -{ - // TODO: - - emit saturationChanged(saturation); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/camera/s60viewfinderwidget.h --- a/qtmobility/plugins/multimedia/symbian/camera/s60viewfinderwidget.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,119 +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 Qt Mobility Components. -** -** $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 S60VIDEOWIDGET_H -#define S60VIDEOWIDGET_H - -#include -#include - -#include "s60camerasession.h" - -QTM_USE_NAMESPACE - -class S60ViewFinderWidget : public QWidget, public MVFProcessor -{ -public: - S60ViewFinderWidget(QWidget *parent = 0); - virtual ~S60ViewFinderWidget() {}; - -protected: - void ViewFinderFrameReady(const QImage& image); - -protected: - void paintEvent(QPaintEvent *); - - QPixmap m_pixmapImage; -}; - -class S60ViewFinderWidgetControl - : public QVideoWidgetControl -{ - Q_OBJECT - -public: - S60ViewFinderWidgetControl(QObject *parent = 0); - virtual ~S60ViewFinderWidgetControl(); - - S60ViewFinderWidget *videoWidget(); - - QVideoWidget::AspectRatioMode aspectRatioMode() const; - QSize customAspectRatio() const; - - void setAspectRatioMode(QVideoWidget::AspectRatioMode ratio); - void setCustomAspectRatio(const QSize &customRatio); - - bool isFullScreen() const; - void setFullScreen(bool fullScreen); - - int brightness() const; - void setBrightness(int brightness); - - int contrast() const; - void setContrast(int contrast); - - int hue() const; - void setHue(int hue); - - int saturation() const; - void setSaturation(int saturation); - - void setOverlay(); - - bool eventFilter(QObject *object, QEvent *event); - -public slots: - void updateNativeVideoSize(); - void enableUpdates(); - -signals: - void resizeVideo(); - -private: - void windowExposed(); - - S60ViewFinderWidget *m_widget; - WId m_windowId; - QVideoWidget::AspectRatioMode m_aspectRatioMode; - QSize m_customAspectRatio; -}; - -#endif // S60VIDEOWIDGET_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/common/s60videooutputcontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/common/s60videooutputcontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,72 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60videooutputcontrol.h" + +S60VideoOutputControl::S60VideoOutputControl(QObject *parent) + : QVideoOutputControl(parent) + , m_output(NoOutput) +{ +} + +QList S60VideoOutputControl::availableOutputs() const +{ + return m_outputs; +} + +void S60VideoOutputControl::setAvailableOutputs(const QList &outputs) +{ + emit availableOutputsChanged(m_outputs = outputs); +} + +QVideoOutputControl::Output S60VideoOutputControl::output() const +{ + return m_output; +} + +void S60VideoOutputControl::setOutput(Output output) +{ + if (!m_outputs.contains(output)) + output = NoOutput; + + if (m_output != output) + emit outputChanged(m_output = output); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/common/s60videooutputcontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/common/s60videooutputcontrol.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,70 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60VIDEOOUTPUTCONTROL_H +#define S60VIDEOOUTPUTCONTROL_H + +#include +#include + +QTM_USE_NAMESPACE + +class S60VideoOutputControl : public QVideoOutputControl +{ + Q_OBJECT +public: + S60VideoOutputControl(QObject *parent = 0); + + QList availableOutputs() const; + void setAvailableOutputs(const QList &outputs); + + Output output() const; + void setOutput(Output output); + +Q_SIGNALS: + void outputChanged(QVideoOutputControl::Output output); + +private: + QList m_outputs; + Output m_output; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/common/symbiancommon.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/common/symbiancommon.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,5 @@ +INCLUDEPATH += $$PWD + +HEADERS += $$PWD/s60videooutputcontrol.h + +SOURCES += $$PWD/s60videooutputcontrol.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/mediaplayer_s60.pri --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/mediaplayer_s60.pri Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -INCLUDEPATH += $$PWD -LIBS += -lmediaclientvideo \ - -lmediaclientaudio \ - -lws32 \ - -lfbscli \ - -lcone \ - -lmmfcontrollerframework \ - -lefsrv \ - -lbitgdi - -# If support to DRM is wanted then comment out the following line -#CONFIG += drm_supported - -drm_supported { - LIBS + = -ldrmaudioplayutility - DEFINES += S60_DRM_SUPPORTED -} - -HEADERS += \ - $$PWD/s60mediaplayercontrol.h \ - $$PWD/s60mediaplayerservice.h \ - $$PWD/s60mediaplayersession.h \ - $$PWD/s60videoplayersession.h \ - $$PWD/s60mediametadataprovider.h \ - $$PWD/s60videosurface.h \ - $$PWD/s60videooverlay.h \ - $$PWD/s60videorenderer.h \ - $$PWD/s60mediarecognizer.h \ - $$PWD/s60audioplayersession.h \ - $$PWD/ms60mediaplayerresolver.h \ - $$PWD/s60videowidget.h - -SOURCES += \ - $$PWD/s60mediaplayercontrol.cpp \ - $$PWD/s60mediaplayerservice.cpp \ - $$PWD/s60mediaplayersession.cpp \ - $$PWD/s60videoplayersession.cpp \ - $$PWD/s60mediametadataprovider.cpp \ - $$PWD/s60videosurface.cpp \ - $$PWD/s60videooverlay.cpp \ - $$PWD/s60videorenderer.cpp \ - $$PWD/s60mediarecognizer.cpp \ - $$PWD/s60audioplayersession.cpp \ - $$PWD/s60videowidget.cpp - -exists($${EPOCROOT}epoc32/release/winscw/udeb/mpengine.lib){ - LIBS += -lMPEngine - DEFINES += HAS_MEDIA_PLAYER -} -else { - MMP_RULES += "$${LITERAL_HASH}ifndef WINSCW" \ - "LIBRARY MPEngine.lib" \ - "MACRO HAS_MEDIA_PLAYER" \ - "$${LITERAL_HASH}endif" -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/ms60mediaplayerresolver.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/ms60mediaplayerresolver.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +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 Qt Mobility Components. -** -** $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 MS60MEDIAPLAYERRESOLVER_H -#define MS60MEDIAPLAYERRESOLVER_H - -class S60MediaPlayerSession; - -class MS60MediaPlayerResolver -{ - public: - virtual S60MediaPlayerSession* PlayerSession() = 0; - virtual S60MediaPlayerSession* VideoPlayerSession(bool isUrl = false) = 0; - virtual S60MediaPlayerSession* AudioPlayerSession(bool isUrl = false) = 0; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60audioplayersession.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60audioplayersession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,147 +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 Qt Mobility Components. -** -** $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 "s60audioplayersession.h" -#include -#include - -S60AudioPlayerSession::S60AudioPlayerSession(QObject *parent) - : S60MediaPlayerSession(parent) -{ - QT_TRAP_THROWING(m_player = CAudioPlayer::NewL(*this, 0, EMdaPriorityPreferenceNone)); - -#if defined(S60_DRM_SUPPORTED) && defined(__S60_50__) - m_player->RegisterForAudioLoadingNotification(*this); -#endif -} - -S60AudioPlayerSession::~S60AudioPlayerSession() -{ - m_player->Close(); - delete m_player; -} - -void S60AudioPlayerSession::doLoadL(const TDesC &path) -{ - m_player->OpenFileL(path); -} - -int S60AudioPlayerSession::doGetDurationL() const -{ - return m_player->Duration().Int64() / 1000; -} - -qint64 S60AudioPlayerSession::doGetPositionL() const -{ - TTimeIntervalMicroSeconds ms = 0; - m_player->GetPosition(ms); - return ms.Int64() / 1000; -} - -bool S60AudioPlayerSession::isVideoAvailable() const -{ - return false; -} -bool S60AudioPlayerSession::isAudioAvailable() const -{ - return true; // this is a bit happy scenario, but we do emit error that we can't play -} -void S60AudioPlayerSession::doPlay() -{ - m_player->Play(); -} - -void S60AudioPlayerSession::doPauseL() -{ - m_player->Pause(); -} - -void S60AudioPlayerSession::doStop() -{ - m_player->Stop(); -} - -void S60AudioPlayerSession::doSetVolumeL(int volume) -{ - m_player->SetVolume((volume / 100.0) * m_player->MaxVolume()); -} - -void S60AudioPlayerSession::doSetPositionL(qint64 microSeconds) -{ - m_player->SetPosition(TTimeIntervalMicroSeconds(microSeconds)); -} - -void S60AudioPlayerSession::updateMetaDataEntriesL() -{ - metaDataEntries().clear(); - int numberOfMetaDataEntries = 0; - - m_player->GetNumberOfMetaDataEntries(numberOfMetaDataEntries); - - for (int i = 0; i < numberOfMetaDataEntries; i++) { - CMMFMetaDataEntry *entry = NULL; - entry = m_player->GetMetaDataEntryL(i); - metaDataEntries().insert(QString::fromUtf16(entry->Name().Ptr(), entry->Name().Length()), QString::fromUtf16(entry->Value().Ptr(), entry->Value().Length())); - delete entry; - } - emit metaDataChanged(); -} - -#ifdef S60_DRM_SUPPORTED -void S60AudioPlayerSession::MdapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration) -#else -void S60AudioPlayerSession::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration) -#endif -{ - Q_UNUSED(aDuration); - setError(aError); - initComplete(); -} - -#ifdef S60_DRM_SUPPORTED -void S60AudioPlayerSession::MdapcPlayComplete(TInt aError) -#else -void S60AudioPlayerSession::MapcPlayComplete(TInt aError) -#endif -{ - setError(aError); - playComplete(); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60audioplayersession.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60audioplayersession.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,107 +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 Qt Mobility Components. -** -** $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 S60AUDIOPLAYERSESSION_H -#define S60AUDIOPLAYERSESSION_H - -#include "s60mediaplayersession.h" - -#ifdef S60_DRM_SUPPORTED -#include -typedef CDrmPlayerUtility CAudioPlayer; -typedef MDrmAudioPlayerCallback MAudioPlayerObserver; -#else -#include -typedef CMdaAudioPlayerUtility CAudioPlayer; -typedef MMdaAudioPlayerCallback MAudioPlayerObserver; -#endif - -class S60AudioPlayerSession : public S60MediaPlayerSession, public CBase, public MAudioPlayerObserver -#ifdef S60_DRM_SUPPORTED - , public MAudioLoadingObserver -#endif -{ - Q_OBJECT - -public: - S60AudioPlayerSession(QObject *parent); - ~S60AudioPlayerSession(); - - //From S60MediaPlayerSession - bool isVideoAvailable() const; - bool isAudioAvailable() const; - -protected: - //From S60MediaPlayerSession - void doLoadL(const TDesC &path); - void doLoadUrlL(const TDesC &path){Q_UNUSED(path)/*empty implementation*/} - void doPlay(); - void doStop(); - void doPauseL(); - void doSetVolumeL(int volume); - qint64 doGetPositionL() const; - void doSetPositionL(qint64 microSeconds); - void updateMetaDataEntriesL(); - int doGetMediaLoadingProgressL() const { /*empty implementation*/ return 0; } - int doGetDurationL() const; - -private: -#ifdef S60_DRM_SUPPORTED - // From MMdaAudioPlayerCallback - void MdapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration); - void MdapcPlayComplete(TInt aError); -#else - // From MDrmAudioPlayerCallback - void MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration); - void MapcPlayComplete(TInt aError); -#endif - -#if defined(S60_DRM_SUPPORTED) && defined(__S60_50__) - // From MAudioLoadingObserver - void MaloLoadingStarted() {}; - void MaloLoadingComplete() {}; -#endif - -private: - CAudioPlayer *m_player; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediametadataprovider.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediametadataprovider.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,180 +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 Qt Mobility Components. -** -** $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 "s60mediametadataprovider.h" -#include "s60mediaplayersession.h" -#include - -S60MediaMetaDataProvider::S60MediaMetaDataProvider(MS60MediaPlayerResolver& mediaPlayerResolver, QObject *parent) - : QMetaDataControl(parent) - , m_mediaPlayerResolver(mediaPlayerResolver) - , m_session(NULL) -{ -} - -S60MediaMetaDataProvider::~S60MediaMetaDataProvider() -{ -} - -bool S60MediaMetaDataProvider::isMetaDataAvailable() const -{ - m_session = m_mediaPlayerResolver.PlayerSession(); - if (m_session) - return m_session->isMetadataAvailable(); - return false; -} - -bool S60MediaMetaDataProvider::isWritable() const -{ - return false; -} - -QVariant S60MediaMetaDataProvider::metaData(QtMedia::MetaData key) const -{ - m_session = m_mediaPlayerResolver.PlayerSession(); - if (m_session && m_session->isMetadataAvailable()) - return m_session->metaData(metaDataKeyAsString(key)); - return QVariant(); -} - -void S60MediaMetaDataProvider::setMetaData(QtMedia::MetaData key, QVariant const &value) -{ - Q_UNUSED(key); - Q_UNUSED(value); -} -QList S60MediaMetaDataProvider::availableMetaData() const -{ - m_session = m_mediaPlayerResolver.PlayerSession(); - QList metaDataTags; - if (m_session && m_session->isMetadataAvailable()) { - for (int i = QtMedia::Title; i <= QtMedia::DeviceSettingDescription; i++) { - QString metaData = metaDataKeyAsString((QtMedia::MetaData)i); - if (!metaData.isEmpty()) { - if (!m_session->metaData(metaData).toString().isEmpty()) { - metaDataTags.append((QtMedia::MetaData)i); - } - } - } - } - return metaDataTags; -} - -QVariant S60MediaMetaDataProvider::extendedMetaData(const QString &key) const -{ - m_session = m_mediaPlayerResolver.PlayerSession(); - if (m_session && m_session->isMetadataAvailable()) - return m_session->metaData(key); - return QVariant(); -} - -void S60MediaMetaDataProvider::setExtendedMetaData(const QString &key, QVariant const &value) -{ - Q_UNUSED(key); - Q_UNUSED(value); -} - -QStringList S60MediaMetaDataProvider::availableExtendedMetaData() const -{ - m_session = m_mediaPlayerResolver.PlayerSession(); - if (m_session && m_session->isMetadataAvailable()) - return m_session->availableMetaData().keys(); - return QStringList(); -} - -QString S60MediaMetaDataProvider::metaDataKeyAsString(QtMedia::MetaData key) const -{ - switch(key) { - case QtMedia::Title: return "title"; - case QtMedia::AlbumArtist: return "artist"; - case QtMedia::Comment: return "comment"; - case QtMedia::Genre: return "genre"; - case QtMedia::Year: return "year"; - case QtMedia::Copyright: return "copyright"; - case QtMedia::AlbumTitle: return "album"; - case QtMedia::Composer: return "composer"; - case QtMedia::TrackNumber: return "albumtrack"; - case QtMedia::AudioBitRate: return "audiobitrate"; - case QtMedia::VideoBitRate: return "videobitrate"; - case QtMedia::Duration: return "duration"; - case QtMedia::MediaType: return "contenttype"; - case QtMedia::SubTitle: // TODO: Find the matching metadata keys - case QtMedia::Description: - case QtMedia::Category: - case QtMedia::Date: - case QtMedia::UserRating: - case QtMedia::Keywords: - case QtMedia::Language: - case QtMedia::Publisher: - case QtMedia::ParentalRating: - case QtMedia::RatingOrganisation: - case QtMedia::Size: - case QtMedia::AudioCodec: - case QtMedia::AverageLevel: - case QtMedia::ChannelCount: - case QtMedia::PeakValue: - case QtMedia::SampleRate: - case QtMedia::Author: - case QtMedia::ContributingArtist: - case QtMedia::Conductor: - case QtMedia::Lyrics: - case QtMedia::Mood: - case QtMedia::TrackCount: - case QtMedia::CoverArtUrlSmall: - case QtMedia::CoverArtUrlLarge: - case QtMedia::Resolution: - case QtMedia::PixelAspectRatio: - case QtMedia::VideoFrameRate: - case QtMedia::VideoCodec: - case QtMedia::PosterUrl: - case QtMedia::ChapterNumber: - case QtMedia::Director: - case QtMedia::LeadPerformer: - case QtMedia::Writer: - case QtMedia::CameraManufacturer: - case QtMedia::CameraModel: - case QtMedia::Event: - case QtMedia::Subject: - default: - break; - } - - return QString(); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediametadataprovider.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediametadataprovider.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +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 Qt Mobility Components. -** -** $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 S60MEDIAMETADATAPROVIDER_H -#define S60MEDIAMETADATAPROVIDER_H - -#include -#include "ms60mediaplayerresolver.h" - -QTM_USE_NAMESPACE - -class S60MediaPlayerSession; - -class S60MediaMetaDataProvider : public QMetaDataControl -{ - Q_OBJECT - -public: - S60MediaMetaDataProvider(MS60MediaPlayerResolver& mediaPlayerResolver, QObject *parent = 0); - ~S60MediaMetaDataProvider(); - - bool isMetaDataAvailable() const; - bool isWritable() const; - - QVariant metaData(QtMedia::MetaData key) const; - void setMetaData(QtMedia::MetaData key, const QVariant &value); - QList availableMetaData() const; - - QVariant extendedMetaData(const QString &key) const ; - void setExtendedMetaData(const QString &key, const QVariant &value); - QStringList availableExtendedMetaData() const; - -private: - QString metaDataKeyAsString(QtMedia::MetaData key) const; - -private: - MS60MediaPlayerResolver& m_mediaPlayerResolver; - mutable S60MediaPlayerSession *m_session; -}; - -#endif // S60VIDEOMETADATAPROVIDER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayercontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,257 +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 Qt Mobility Components. -** -** $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 "s60mediaplayercontrol.h" -#include "s60mediaplayersession.h" - -#include -#include -#include - -S60MediaPlayerControl::S60MediaPlayerControl(MS60MediaPlayerResolver& mediaPlayerResolver, QObject *parent) - : QMediaPlayerControl(parent), - m_mediaPlayerResolver(mediaPlayerResolver), - m_session(NULL), - m_stream(NULL) -{ -} - -S60MediaPlayerControl::~S60MediaPlayerControl() -{ -} - -qint64 S60MediaPlayerControl::position() const -{ - if (m_session) - return m_session->position(); - return 0; -} - -qint64 S60MediaPlayerControl::duration() const -{ - if (m_session) - return m_session->duration(); - return -1; -} - -QMediaPlayer::State S60MediaPlayerControl::state() const -{ - if (m_session) - return m_session->state(); - return QMediaPlayer::StoppedState; -} - -QMediaPlayer::MediaStatus S60MediaPlayerControl::mediaStatus() const -{ - if (m_session) - return m_session->mediaStatus(); - return QMediaPlayer::NoMedia; -} - -int S60MediaPlayerControl::bufferStatus() const -{ - return -1; -} - -int S60MediaPlayerControl::volume() const -{ - if (m_session) - return m_session->volume(); - return m_mediaSettings.volume(); -} - -bool S60MediaPlayerControl::isMuted() const -{ - if (m_session) - return m_session->isMuted(); - return m_mediaSettings.isMuted(); -} - -bool S60MediaPlayerControl::isSeekable() const -{ - if (m_session) - return m_session->isSeekable(); - return false; -} - -QMediaTimeRange S60MediaPlayerControl::availablePlaybackRanges() const -{ - QMediaTimeRange ranges; - - if(m_session && m_session->isSeekable()) - ranges.addInterval(0, m_session->duration()); - - return ranges; -} - -qreal S60MediaPlayerControl::playbackRate() const -{ - //None of symbian players supports this. - return m_mediaSettings.playbackRate(); -} - -void S60MediaPlayerControl::setPlaybackRate(qreal rate) -{ - //None of symbian players supports this. - m_mediaSettings.setPlaybackRate(rate); - emit playbackRateChanged(playbackRate()); - -} - -void S60MediaPlayerControl::setPosition(qint64 pos) -{ - if (m_session) - m_session->setPosition(pos); -} - -void S60MediaPlayerControl::play() -{ - if (m_session) - m_session->play(); -} - -void S60MediaPlayerControl::pause() -{ - if (m_session) - m_session->pause(); -} - -void S60MediaPlayerControl::stop() -{ - if (m_session) - m_session->stop(); -} - -void S60MediaPlayerControl::setVolume(int volume) -{ - int boundVolume = qBound(0, volume, 100); - if (boundVolume == m_mediaSettings.volume()) - return; - - m_mediaSettings.setVolume(boundVolume); - if (m_session) - m_session->setVolume(boundVolume); - - emit volumeChanged(boundVolume); -} - -void S60MediaPlayerControl::setMuted(bool muted) -{ - if (m_mediaSettings.isMuted() == muted) - return; - - m_mediaSettings.setMuted(muted); - if (m_session) - m_session->setMuted(muted); - - emit mutedChanged(muted); -} - -QMediaContent S60MediaPlayerControl::media() const -{ - return m_currentResource; -} - -const QIODevice *S60MediaPlayerControl::mediaStream() const -{ - return m_stream; -} - -void S60MediaPlayerControl::setMedia(const QMediaContent &source, QIODevice *stream) -{ - Q_UNUSED(stream) - // we don't want to set & load media again when it is already loaded - if (m_session && m_currentResource == source && m_session->state() == QMediaPlayer::LoadedMedia) - return; - - if (source.isNull()) - return; - - // store to variable as session is created based on the content type. - m_currentResource = source; - if (m_session) - m_session->stop(); - - S60MediaPlayerSession *newSession = m_mediaPlayerResolver.PlayerSession(); - - m_session = newSession; - - if (m_session) { - QUrl url = source.canonicalUrl(); - - if (m_session->mediaFileLocal()) - m_session->load(url); - else - m_session->loadUrl(url); - - emit mediaChanged(m_currentResource); - } else { - emit error(QMediaPlayer::FormatError, QString("Symbian: -5")); - emit mediaStatusChanged(QMediaPlayer::InvalidMedia); - } -} - -void S60MediaPlayerControl::setVideoOutput(QObject *output) -{ - if (!m_session) - m_session = m_mediaPlayerResolver.VideoPlayerSession(); - m_session->setVideoRenderer(output); -} - -bool S60MediaPlayerControl::isAudioAvailable() const -{ - if (m_session) - return m_session->isAudioAvailable(); - return false; -} - -bool S60MediaPlayerControl::isVideoAvailable() const -{ - if (m_session) - return m_session->isVideoAvailable(); - return false; -} - -const S60MediaSettings& S60MediaPlayerControl::mediaControlSettings() const -{ - return m_mediaSettings; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayercontrol.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,132 +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 Qt Mobility Components. -** -** $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 S60MEDIAPLAYERCONTROL_H -#define S60MEDIAPLAYERCONTROL_H - -#include - -#include - -#include "ms60mediaplayerresolver.h" -#include - -QTM_BEGIN_NAMESPACE -class QMediaPlayer; -class QMediaTimeRange; -class QMediaContent; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -class S60MediaPlayerSession; -class S60MediaPlayerService; - -class S60MediaSettings -{ - -public: - S60MediaSettings() - : m_volume(0) - , m_muted(false) - , m_playbackRate(1.0) - { - } - - void setVolume(int volume) { m_volume = volume; } - void setMuted(bool muted) { m_muted = muted; } - void setPlaybackRate(int rate) { m_playbackRate = rate; } - - int volume() const { return m_volume; } - bool isMuted() const { return m_muted; } - qreal playbackRate() const { return m_playbackRate; } - -private: - int m_volume; - bool m_muted; - qreal m_playbackRate; -}; - -class S60MediaPlayerControl : public QMediaPlayerControl -{ - Q_OBJECT - -public: - S60MediaPlayerControl(MS60MediaPlayerResolver& mediaPlayerResolver, QObject *parent = 0); - ~S60MediaPlayerControl(); - - // from QMediaPlayerControl - virtual QMediaPlayer::State state() const; - virtual QMediaPlayer::MediaStatus mediaStatus() const; - virtual qint64 duration() const; - virtual qint64 position() const; - virtual void setPosition(qint64 pos); - virtual int volume() const; - virtual void setVolume(int volume); - virtual bool isMuted() const; - virtual void setMuted(bool muted); - virtual int bufferStatus() const; - virtual bool isAudioAvailable() const; - virtual bool isVideoAvailable() const; - virtual bool isSeekable() const; - virtual QMediaTimeRange availablePlaybackRanges() const; - virtual qreal playbackRate() const; - virtual void setPlaybackRate(qreal rate); - virtual QMediaContent media() const; - virtual const QIODevice *mediaStream() const; - virtual void setMedia(const QMediaContent&, QIODevice *); - virtual void play(); - virtual void pause(); - virtual void stop(); - - // Own methods - void setVideoOutput(QObject *output); - const S60MediaSettings& mediaControlSettings() const; - -private: - MS60MediaPlayerResolver &m_mediaPlayerResolver; - S60MediaPlayerSession *m_session; - QMediaContent m_currentResource; - QIODevice *m_stream; - S60MediaSettings m_mediaSettings; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayerservice.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayerservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,243 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include "s60mediaplayerservice.h" -#include "s60mediaplayercontrol.h" -#include "s60videoplayersession.h" -#include "s60audioplayersession.h" -#include "s60mediametadataprovider.h" -#include "s60videowidget.h" -#include "s60mediarecognizer.h" -//#include -#include "s60videooverlay.h" -#include "s60videorenderer.h" - -#include -#include - -S60MediaPlayerService::S60MediaPlayerService(QObject *parent) - : QMediaService(parent) - , m_control(NULL) - , m_mediaRecognizer(NULL) - , m_videoOutput(NULL) - , m_videoPlayerSession(NULL) - , m_audioPlayerSession(NULL) - , m_metaData(NULL) - , m_videoWidget(NULL) - , m_videoWindow(NULL) - , m_videoRenderer(NULL) -{ - m_control = new S60MediaPlayerControl(*this, this); - m_mediaRecognizer = new S60MediaRecognizer(this); - m_metaData = new S60MediaMetaDataProvider(*this); -} - -S60MediaPlayerService::~S60MediaPlayerService() -{ - delete m_videoWidget; - delete m_videoRenderer; - delete m_videoWindow; - delete m_videoOutput; - delete m_metaData; -} - -QMediaControl *S60MediaPlayerService::control(const char *name) const -{ - if (qstrcmp(name, QMediaPlayerControl_iid) == 0) - return m_control; - - if (qstrcmp(name, QMetaDataControl_iid) == 0) { - return m_metaData; - } - - if (qstrcmp(name, QVideoOutputControl_iid) == 0) { - if (!m_videoOutput) { - m_videoOutput = new S60VideoOutputControl; - connect(m_videoOutput, SIGNAL(outputChanged(QVideoOutputControl::Output)), - this, SLOT(videoOutputChanged(QVideoOutputControl::Output))); - m_videoOutput->setAvailableOutputs(QList() -// << QVideoOutputControl::RendererOutput -// << QVideoOutputControl::WindowOutput - << QVideoOutputControl::WidgetOutput); - - } - return m_videoOutput; - } - - if (qstrcmp(name, QVideoWidgetControl_iid) == 0) { - if (!m_videoWidget) - m_videoWidget = new S60VideoWidgetControl; - return m_videoWidget; - } - - if (qstrcmp(name, QVideoRendererControl_iid) == 0) { - if (m_videoRenderer) - m_videoRenderer = new S60VideoRenderer; - return m_videoRenderer; - } - - if (qstrcmp(name, QVideoWindowControl_iid) == 0) { - if (!m_videoWindow) - m_videoWindow = new S60VideoOverlay; - return m_videoWindow; - } - - return 0; - -} - -void S60MediaPlayerService::videoOutputChanged(QVideoOutputControl::Output output) -{ - switch (output) { - case QVideoOutputControl::NoOutput: - m_control->setVideoOutput(0); - break; - - case QVideoOutputControl::RendererOutput: - m_control->setVideoOutput(m_videoRenderer); - break; - case QVideoOutputControl::WindowOutput: - m_control->setVideoOutput(m_videoWindow); - break; - - case QVideoOutputControl::WidgetOutput: - m_control->setVideoOutput(m_videoWidget); - break; - default: - qWarning("Invalid video output selection"); - break; - } -} - -S60MediaPlayerSession* S60MediaPlayerService::PlayerSession() -{ - QUrl url = m_control->media().canonicalUrl(); - - if (url.isEmpty() == true) { - return NULL; - } - - S60MediaRecognizer::MediaType mediaType = m_mediaRecognizer->IdentifyMediaType(url); - - switch (mediaType) { - case S60MediaRecognizer::Video: - return VideoPlayerSession(true); - case S60MediaRecognizer::Audio: - return AudioPlayerSession(); - case S60MediaRecognizer::Url: - return VideoPlayerSession(false); - default: - break; - } - - return NULL; -} - -S60MediaPlayerSession* S60MediaPlayerService::VideoPlayerSession(bool isLocal) -{ - if (!m_videoPlayerSession) { - m_videoPlayerSession = new S60VideoPlayerSession(this); - - connect(m_videoPlayerSession, SIGNAL(positionChanged(qint64)), - m_control, SIGNAL(positionChanged(qint64))); - connect(m_videoPlayerSession, SIGNAL(durationChanged(qint64)), - m_control, SIGNAL(durationChanged(qint64))); - connect(m_videoPlayerSession, SIGNAL(stateChanged(QMediaPlayer::State)), - m_control, SIGNAL(stateChanged(QMediaPlayer::State))); - connect(m_videoPlayerSession, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), - m_control, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus))); - connect(m_videoPlayerSession,SIGNAL(bufferStatusChanged(int)), - m_control, SIGNAL(bufferStatusChanged(int))); - connect(m_videoPlayerSession, SIGNAL(videoAvailableChanged(bool)), - m_control, SIGNAL(videoAvailableChanged(bool))); - connect(m_videoPlayerSession, SIGNAL(seekableChanged(bool)), - m_control, SIGNAL(seekableChanged(bool))); - connect(m_videoPlayerSession, SIGNAL(availablePlaybackRangesChanged(const QMediaTimeRange&)), - m_control, SIGNAL(availablePlaybackRangesChanged(const QMediaTimeRange&))); - connect(m_videoPlayerSession, SIGNAL(error(int, const QString &)), - m_control, SIGNAL(error(int, const QString &))); - connect(m_videoPlayerSession, SIGNAL(metaDataChanged()), - m_metaData, SIGNAL(metaDataChanged())); - } - - m_videoPlayerSession->setVolume(m_control->mediaControlSettings().volume()); - m_videoPlayerSession->setMuted(m_control->mediaControlSettings().isMuted()); - m_videoPlayerSession->setMediaFileLocal(isLocal); - return m_videoPlayerSession; -} - -S60MediaPlayerSession* S60MediaPlayerService::AudioPlayerSession(bool isLocal) -{ - if (!m_audioPlayerSession) { - m_audioPlayerSession = new S60AudioPlayerSession(this); - - connect(m_audioPlayerSession, SIGNAL(positionChanged(qint64)), - m_control, SIGNAL(positionChanged(qint64))); - connect(m_audioPlayerSession, SIGNAL(durationChanged(qint64)), - m_control, SIGNAL(durationChanged(qint64))); - connect(m_audioPlayerSession, SIGNAL(stateChanged(QMediaPlayer::State)), - m_control, SIGNAL(stateChanged(QMediaPlayer::State))); - connect(m_audioPlayerSession, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), - m_control, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus))); - connect(m_audioPlayerSession,SIGNAL(bufferStatusChanged(int)), - m_control, SIGNAL(bufferStatusChanged(int))); - connect(m_audioPlayerSession, SIGNAL(videoAvailableChanged(bool)), - m_control, SIGNAL(videoAvailableChanged(bool))); - connect(m_audioPlayerSession, SIGNAL(seekableChanged(bool)), - m_control, SIGNAL(seekableChanged(bool))); - connect(m_audioPlayerSession, SIGNAL(availablePlaybackRangesChanged(const QMediaTimeRange&)), - m_control, SIGNAL(availablePlaybackRangesChanged(const QMediaTimeRange&))); - connect(m_audioPlayerSession, SIGNAL(error(int, const QString &)), - m_control, SIGNAL(error(int, const QString &))); - connect(m_audioPlayerSession, SIGNAL(metaDataChanged()), - m_metaData, SIGNAL(metaDataChanged())); - } - - m_audioPlayerSession->setVolume(m_control->mediaControlSettings().volume()); - m_audioPlayerSession->setMuted(m_control->mediaControlSettings().isMuted()); - m_audioPlayerSession->setMediaFileLocal(isLocal); - return m_audioPlayerSession; -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayerservice.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayerservice.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,102 +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 Qt Mobility Components. -** -** $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 S60VIDEOPLAYERSERVICE_H -#define S60VIDEOPLAYERSERVICE_H - -#include - -#include -#include - -#include "s60videooutputcontrol.h" -#include "ms60mediaplayerresolver.h" - -QTM_BEGIN_NAMESPACE -class QMediaMetaData; -class QMediaPlayerControl; -class QMediaPlaylist; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -class S60VideoPlayerSession; -class S60AudioPlayerSession; -class S60MediaPlayerControl; -class S60MediaMetaDataProvider; -class S60VideoWidgetControl; -class S60MediaRecognizer; -class S60VideoRenderer; -class S60VideoOverlay; - -class QMediaPlaylistNavigator; - -class S60MediaPlayerService : public QMediaService, public MS60MediaPlayerResolver -{ - Q_OBJECT - -public: - S60MediaPlayerService(QObject *parent = 0); - ~S60MediaPlayerService(); - - QMediaControl *control(const char *name) const; - -private slots: - void videoOutputChanged(QVideoOutputControl::Output output); - -protected: // From MS60MediaPlayerResolver - S60MediaPlayerSession* PlayerSession(); - S60MediaPlayerSession* VideoPlayerSession(bool isLocal = true); - S60MediaPlayerSession* AudioPlayerSession(bool isLocal = true); - -private: - S60MediaPlayerControl *m_control; - S60MediaRecognizer *m_mediaRecognizer; - mutable S60VideoOutputControl *m_videoOutput; - S60VideoPlayerSession *m_videoPlayerSession; - S60AudioPlayerSession *m_audioPlayerSession; - mutable S60MediaMetaDataProvider *m_metaData; - mutable S60VideoWidgetControl *m_videoWidget; - mutable S60VideoOverlay *m_videoWindow; - mutable S60VideoRenderer *m_videoRenderer; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayersession.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayersession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,386 +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 Qt Mobility Components. -** -** $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 "s60mediaplayersession.h" - -#include -#include -#include -#include -#include -#include -#include - -S60MediaPlayerSession::S60MediaPlayerSession(QObject *parent) - : QObject(parent) - , m_playbackRate(0) - , m_muted(false) - , m_volume(0) - , m_state(QMediaPlayer::StoppedState) - , m_mediaStatus(QMediaPlayer::NoMedia) - , m_timer(new QTimer(this)) - , m_error(KErrNone) - , m_localMediaFile(true) - , m_play_requested(false) -{ - connect(m_timer, SIGNAL(timeout()), this, SLOT(tick())); -} - -S60MediaPlayerSession::~S60MediaPlayerSession() -{ -} - -int S60MediaPlayerSession::volume() const -{ - return m_volume; -} - -void S60MediaPlayerSession::setVolume(int volume) -{ - if (m_volume == volume) - return; - - m_volume = volume; - // Dont set symbian players volume until media loaded. - // Leaves with KerrNotReady although documentation says otherwise. - if (!m_muted && m_mediaStatus == QMediaPlayer::LoadedMedia) { - TRAPD(err, doSetVolumeL(m_volume)); - setError(err); - } -} - -bool S60MediaPlayerSession::isMuted() const -{ - return m_muted; -} - -bool S60MediaPlayerSession::isSeekable() const -{ - if (m_metaDataMap.isEmpty()) - return true; - return m_metaDataMap.value("seekable").toBool(); -} - -void S60MediaPlayerSession::setMediaStatus(QMediaPlayer::MediaStatus status) -{ - if (m_mediaStatus == status) - return; - - m_mediaStatus = status; - - if (m_mediaStatus == QMediaPlayer::InvalidMedia) - setError(KErrNotSupported); - - emit mediaStatusChanged(m_mediaStatus); - if (m_play_requested) - play(); -} - -void S60MediaPlayerSession::setState(QMediaPlayer::State state) -{ - if (m_state == state) - return; - - m_state = state; - emit stateChanged(m_state); -} - -QMediaPlayer::State S60MediaPlayerSession::state() const -{ - return m_state; -} - -QMediaPlayer::MediaStatus S60MediaPlayerSession::mediaStatus() const -{ - return m_mediaStatus; -} - -void S60MediaPlayerSession::load(const QUrl &url) -{ - // Reset error status on load - setError(KErrNone); - m_localMediaFile = true; - doStop(); - setMediaStatus(QMediaPlayer::LoadingMedia); - TRAPD(err, doLoadL(qt_QString2TPtrC(QDir::toNativeSeparators(url.toLocalFile())))); - setError(err); -} - -void S60MediaPlayerSession::loadUrl(const QUrl &url) -{ - // Reset error status on load - setError(KErrNone); - m_localMediaFile = false; - doStop(); - setMediaStatus(QMediaPlayer::LoadingMedia); - TRAPD(err, doLoadUrlL(qt_QString2TPtrC(url.toString()))); - setError(err); -} - -void S60MediaPlayerSession::play() -{ - if (state() == QMediaPlayer::PlayingState) - return; - - if (mediaStatus() != QMediaPlayer::LoadedMedia) { - m_play_requested = true; - return; - } - - m_play_requested = false; - setState(QMediaPlayer::PlayingState); - m_timer->start(1000); - doPlay(); -} - -void S60MediaPlayerSession::pause() -{ - m_timer->stop(); - setState(QMediaPlayer::PausedState); - TRAPD(err, doPauseL()); - setError(err); -} - -void S60MediaPlayerSession::stop() -{ - setState(QMediaPlayer::StoppedState); - m_timer->stop(); - doStop(); - emit positionChanged(0); -} - -void S60MediaPlayerSession::setVideoRenderer(QObject *renderer) -{ - Q_UNUSED(renderer); -} - -int S60MediaPlayerSession::mediaLoadingProgress() -{ - int progress = 0; - TRAPD(err, progress = doGetMediaLoadingProgressL()); - setError(err); - return progress; -} - -bool S60MediaPlayerSession::isMetadataAvailable() const -{ - return !m_metaDataMap.isEmpty(); -} - -QVariant S60MediaPlayerSession::metaData(const QString &key) const -{ - return m_metaDataMap.value(key); -} - -QMap S60MediaPlayerSession::availableMetaData() const -{ - return m_metaDataMap; -} - -void S60MediaPlayerSession::setMuted(bool muted) -{ - if (m_muted == muted) - return; - - m_muted = muted; - - if (m_mediaStatus == QMediaPlayer::LoadedMedia) { - TRAPD(err, doSetVolumeL((m_muted)?0:m_volume)); - setError(err); - } -} - -qint64 S60MediaPlayerSession::duration() const -{ - qint64 pos = 0; - //Cannot seterror since const, error ignored - TRAP_IGNORE(pos = doGetDurationL()); - return pos; -} - -qint64 S60MediaPlayerSession::position() const -{ - qint64 pos = 0; - //Cannot seterror since const, error ignored - TRAP_IGNORE(pos = doGetPositionL()); - return pos; -} - -void S60MediaPlayerSession::setPosition(qint64 pos) -{ - if (position() == pos) - return; - - if (state() == QMediaPlayer::PlayingState) - pause(); - - TRAPD(err, doSetPositionL(pos * 1000)); - setError(err); - - if (state() == QMediaPlayer::PausedState) - play(); - - emit positionChanged(position()); -} - -void S60MediaPlayerSession::initComplete() -{ - if (m_error == KErrNone) { - setMediaStatus(QMediaPlayer::LoadedMedia); - TRAPD(err, updateMetaDataEntriesL()); - setError(err); - setVolume(m_volume); - setMuted(m_muted); - emit durationChanged(duration()); - } else { - setError(m_error); - } -} - -void S60MediaPlayerSession::playComplete() -{ - setMediaStatus(QMediaPlayer::EndOfMedia); - setState(QMediaPlayer::StoppedState); - emit positionChanged(0); -} - -QMap& S60MediaPlayerSession::metaDataEntries() -{ - return m_metaDataMap; -} - -QMediaPlayer::Error S60MediaPlayerSession::fromSymbianErrorToMultimediaError(int error) -{ - switch(error) { - case KErrNoMemory: - case KErrNotFound: - case KErrBadHandle: - case KErrMMAudioDevice: - case KErrMMVideoDevice: - return QMediaPlayer::ResourceError; - - case KErrMMDecoder: - case KErrNotSupported: - case KErrCorrupt: - return QMediaPlayer::FormatError; - - case KErrMMNotEnoughBandwidth: - case KErrMMSocketServiceNotFound: - case KErrMMNetworkRead: - case KErrMMNetworkWrite: - case KErrMMServerSocket: - case KErrMMServerNotSupported: - case KErrMMUDPReceive: - case KErrMMInvalidProtocol: - case KErrMMInvalidURL: - case KErrMMMulticast: - case KErrMMProxyServer: - case KErrMMProxyServerNotSupported: - case KErrMMProxyServerConnect: - return QMediaPlayer::NetworkError; - - case KErrNotReady: - case KErrInUse: - case KErrAccessDenied: - case KErrLocked: - case KErrMMDRMNotAuthorized: - case KErrPermissionDenied: - return QMediaPlayer::AccessDeniedError; - - case KErrMMPartialPlayback: - case KErrNone: - default: - return QMediaPlayer::NoError; - } -} - -void S60MediaPlayerSession::setError(int error, const QString &errorString) -{ - if (error == m_error) - return; - - m_error = error; - QMediaPlayer::Error mediaError = fromSymbianErrorToMultimediaError(m_error); - QString symbianError = QString(errorString); - - if (mediaError != QMediaPlayer::NoError) { - m_play_requested = false; - // TODO: fix to user friendly string at some point - // These error string are only dev usable - symbianError.append("Symbian:"); - symbianError.append(QString::number(m_error)); - } - - emit this->error(mediaError, symbianError); - switch(mediaError){ - case QMediaPlayer::FormatError: - setMediaStatus(QMediaPlayer::InvalidMedia); - break; - case QMediaPlayer::ResourceError: - case QMediaPlayer::NetworkError: - case QMediaPlayer::AccessDeniedError: - case QMediaPlayer::ServiceMissingError: - setMediaStatus(QMediaPlayer::NoMedia); - break; - default: - break; - } -} - -void S60MediaPlayerSession::tick() -{ - emit positionChanged(position()); - - if (mediaFileLocal() && mediaLoadingProgress() != 100) - emit bufferStatusChanged(mediaLoadingProgress()); -} - -bool S60MediaPlayerSession::mediaFileLocal() const -{ - return m_localMediaFile; -} -void S60MediaPlayerSession::setMediaFileLocal(bool localMediaFile) -{ - if (m_localMediaFile == localMediaFile) - return; - - m_localMediaFile = localMediaFile; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayersession.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediaplayersession.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,151 +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 Qt Mobility Components. -** -** $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 S60MEDIAPLAYERSESSION_H -#define S60MEDIAPLAYERSESSION_H - -#include -#include -#include -#include -#include // for TDesC -#include "s60mediaplayerservice.h" - -QTM_BEGIN_NAMESPACE -class QMediaTimeRange; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -class QTimer; - -class S60MediaPlayerSession : public QObject -{ - Q_OBJECT - -public: - S60MediaPlayerSession(QObject *parent); - virtual ~S60MediaPlayerSession(); - - // for player control interface to use - QMediaPlayer::State state() const; - QMediaPlayer::MediaStatus mediaStatus() const; - qint64 duration() const; - qint64 position() const; - void setPosition(qint64 pos); - int volume() const; - void setVolume(int volume); - bool isMuted() const; - void setMuted(bool muted); - virtual bool isVideoAvailable() const = 0; - virtual bool isAudioAvailable() const = 0; - bool isSeekable() const; - void play(); - void pause(); - void stop(); - - bool isMetadataAvailable() const; - QVariant metaData(const QString &key) const; - QMap availableMetaData() const; - - void load(const QUrl &url); - void loadUrl(const QUrl &url); - - int mediaLoadingProgress(); - - bool mediaFileLocal() const; - void setMediaFileLocal(bool localMediaFile); - - virtual void setVideoRenderer(QObject *renderer); - - void setMediaStatus(QMediaPlayer::MediaStatus); - void setState(QMediaPlayer::State state); - -protected: - virtual void doLoadL(const TDesC &path) = 0; - virtual void doLoadUrlL(const TDesC &path) = 0; - virtual void doPlay() = 0; - virtual void doStop() = 0; - virtual void doPauseL() = 0; - virtual void doSetVolumeL(int volume) = 0; - virtual void doSetPositionL(qint64 microSeconds) = 0; - virtual qint64 doGetPositionL() const = 0; - virtual void updateMetaDataEntriesL() = 0; - virtual int doGetMediaLoadingProgressL() const = 0; - virtual int doGetDurationL() const = 0; - -protected: - - void setError(int error, const QString &errorString = QString()); - void initComplete(); - void playComplete(); - QMap& metaDataEntries(); - QMediaPlayer::Error fromSymbianErrorToMultimediaError(int error); - -protected slots: - void tick(); - -signals: - void durationChanged(qint64 duration); - void positionChanged(qint64 position); - void stateChanged(QMediaPlayer::State state); - void mediaStatusChanged(QMediaPlayer::MediaStatus mediaStatus); - void videoAvailableChanged(bool videoAvailable); - void bufferStatusChanged(int percentFilled); - void seekableChanged(bool); - void availablePlaybackRangesChanged(const QMediaTimeRange&); - void metaDataChanged(); - void error(int error, const QString &errorString); - -private: - qreal m_playbackRate; - QMap m_metaDataMap; - bool m_muted; - int m_volume; - QMediaPlayer::State m_state; - QMediaPlayer::MediaStatus m_mediaStatus; - QTimer *m_timer; - int m_error; - bool m_localMediaFile; - bool m_play_requested; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediarecognizer.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediarecognizer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -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 Qt Mobility Components. -** -** $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 "S60mediarecognizer.h" -#include -#include -#include -#include -#include -#include - -S60MediaRecognizer::S60MediaRecognizer(QObject *parent) : QObject(parent) -{ - TRAP_IGNORE(m_recognizer = CMPMediaRecognizer::NewL()); -} - -S60MediaRecognizer::~S60MediaRecognizer() -{ - delete m_recognizer; - m_recognizer = NULL; -} - -bool S60MediaRecognizer::checkUrl(const QUrl &url) -{ - TBool isValidUrl = false; - TPtrC validUrlPtr (static_cast(url.toString().utf16()), url.toString().length()); - isValidUrl = m_recognizer->ValidUrl(validUrlPtr); - return isValidUrl; -} - -S60MediaRecognizer::MediaType S60MediaRecognizer::IdentifyMediaType(const QUrl &url) -{ - CMPMediaRecognizer::TMPMediaType type = CMPMediaRecognizer::EUnidentified; - QString filePath = QDir::toNativeSeparators(url.toLocalFile()); - if (filePath.isNull()) { - filePath = url.toString(); - } - TPtrC16 urlPtr(reinterpret_cast(filePath.utf16())); - - TRAP_IGNORE(type = m_recognizer->IdentifyMediaTypeL(urlPtr, ETrue);) - m_recognizer->FreeFilehandle(); - - switch (type) { - case CMPMediaRecognizer::ELocalAudioFile: - return Audio; - case CMPMediaRecognizer::ELocalVideoFile: - return Video; - case CMPMediaRecognizer::EUrl: - return Url; - case CMPMediaRecognizer::ELocalAudioPlaylist: - // TODO: Must be considered when streams will be implemented - case CMPMediaRecognizer::ELocalRamFile: - case CMPMediaRecognizer::ELocalSdpFile: - // case CMPMediaRecognizer::EProgressiveDownload: - case CMPMediaRecognizer::EUnidentified: - default: - break; - } - - return NotSupported; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediarecognizer.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60mediarecognizer.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +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 Qt Mobility Components. -** -** $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 S60MEDIARECOGNIZER_H_ -#define S60MEDIARECOGNIZER_H_ - -#include - -class CMPMediaRecognizer; -class QUrl; - -class S60MediaRecognizer : public QObject -{ - Q_OBJECT - -public: - enum MediaType { - Audio, - Video, - Url, - NotSupported = -1 - }; - - S60MediaRecognizer(QObject *parent = 0); - ~S60MediaRecognizer(); - bool checkUrl(const QUrl &url); - MediaType IdentifyMediaType(const QUrl &url); - -private: - CMPMediaRecognizer *m_recognizer; -}; - -#endif /* S60MEDIARECOGNIZER_H_ */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60videooverlay.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60videooverlay.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,205 +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 Qt Mobility Components. -** -** $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 -#include "s60videooverlay.h" -#include "s60videosurface.h" - -S60VideoOverlay::S60VideoOverlay(QObject *parent) - : QVideoWindowControl(parent) - , m_surface(new S60VideoSurface) - , m_aspectRatioMode(QVideoWidget::KeepAspectRatio) - , m_fullScreen(false) -{ - connect(m_surface, SIGNAL(surfaceFormatChanged(QVideoSurfaceFormat)), - this, SLOT(surfaceFormatChanged())); -} - -S60VideoOverlay::~S60VideoOverlay() -{ - delete m_surface; -} - -WId S60VideoOverlay::winId() const -{ - return m_surface->winId(); -} - -void S60VideoOverlay::setWinId(WId id) -{ - m_surface->setWinId(id); -} - -QRect S60VideoOverlay::displayRect() const -{ - return m_displayRect; -} - -void S60VideoOverlay::setDisplayRect(const QRect &rect) -{ - m_displayRect = rect; - - setScaledDisplayRect(); -} - -QVideoWidget::AspectRatioMode S60VideoOverlay::aspectRatioMode() const -{ - return m_aspectRatioMode; -} - -void S60VideoOverlay::setAspectRatioMode(QVideoWidget::AspectRatioMode ratio) -{ - m_aspectRatioMode = ratio; - - setScaledDisplayRect(); -} - -QSize S60VideoOverlay::customAspectRatio() const -{ - return m_aspectRatio; -} - -void S60VideoOverlay::setCustomAspectRatio(const QSize &customRatio) -{ - m_aspectRatio = customRatio; - - setScaledDisplayRect(); -} - -void S60VideoOverlay::repaint() -{ -} - -int S60VideoOverlay::brightness() const -{ - return m_surface->brightness(); -} - -void S60VideoOverlay::setBrightness(int brightness) -{ - m_surface->setBrightness(brightness); - - emit brightnessChanged(m_surface->brightness()); -} - -int S60VideoOverlay::contrast() const -{ - return m_surface->contrast(); -} - -void S60VideoOverlay::setContrast(int contrast) -{ - m_surface->setContrast(contrast); - - emit contrastChanged(m_surface->contrast()); -} - -int S60VideoOverlay::hue() const -{ - return m_surface->hue(); -} - -void S60VideoOverlay::setHue(int hue) -{ - m_surface->setHue(hue); - - emit hueChanged(m_surface->hue()); -} - -int S60VideoOverlay::saturation() const -{ - return m_surface->saturation(); -} - -void S60VideoOverlay::setSaturation(int saturation) -{ - m_surface->setSaturation(saturation); - - emit saturationChanged(m_surface->saturation()); -} - -bool S60VideoOverlay::isFullScreen() const -{ - return m_fullScreen; -} - -void S60VideoOverlay::setFullScreen(bool fullScreen) -{ - emit fullScreenChanged(m_fullScreen = fullScreen); -} - -QSize S60VideoOverlay::nativeSize() const -{ - return m_surface->surfaceFormat().sizeHint(); -} - -QAbstractVideoSurface *S60VideoOverlay::surface() const -{ - return m_surface; -} - -void S60VideoOverlay::surfaceFormatChanged() -{ - setScaledDisplayRect(); - - emit nativeSizeChanged(); -} - -void S60VideoOverlay::setScaledDisplayRect() -{ - switch (m_aspectRatioMode) { - case QVideoWidget::KeepAspectRatio: - { - QSize size = m_surface->surfaceFormat().viewport().size(); - - size.scale(m_displayRect.size(), Qt::KeepAspectRatio); - - QRect rect(QPoint(0, 0), size); - rect.moveCenter(m_displayRect.center()); - - m_surface->setDisplayRect(rect); - } - break; - case QVideoWidget::IgnoreAspectRatio: - m_surface->setDisplayRect(m_displayRect); - break; - }; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60videooverlay.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60videooverlay.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,107 +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 Qt Mobility Components. -** -** $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 S60VIDEOOVERLAY_H -#define S60VIDEOOVERLAY_H - -#include -#include - -QTM_USE_NAMESPACE - -class QAbstractVideoSurface; -class S60VideoSurface; - -class S60VideoOverlay : public QVideoWindowControl -{ - Q_OBJECT - -public: - S60VideoOverlay(QObject *parent = 0); - ~S60VideoOverlay(); - - WId winId() const; - void setWinId(WId id); - - QRect displayRect() const; - void setDisplayRect(const QRect &rect); - - bool isFullScreen() const; - void setFullScreen(bool fullScreen); - - QSize nativeSize() const; - - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); - - QSize customAspectRatio() const; - void setCustomAspectRatio(const QSize &customRatio); - - void repaint(); - - int brightness() const; - void setBrightness(int brightness); - - int contrast() const; - void setContrast(int contrast); - - int hue() const; - void setHue(int hue); - - int saturation() const; - void setSaturation(int saturation); - - QAbstractVideoSurface *surface() const; - -private slots: - void surfaceFormatChanged(); - -private: - void setScaledDisplayRect(); - - S60VideoSurface *m_surface; - QVideoWidget::AspectRatioMode m_aspectRatioMode; - QRect m_displayRect; - QSize m_aspectRatio; - bool m_fullScreen; -}; - -#endif // S60VIDEOOVERLAY_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60videoplayersession.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60videoplayersession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,278 +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 Qt Mobility Components. -** -** $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 "s60videoplayersession.h" -#include "s60videowidget.h" -#include "s60mediaplayerservice.h" -#include "s60videooverlay.h" - -#include -#include -#include -#include - -#include -#include // For CCoeEnv -#include -#include - -S60VideoPlayerSession::S60VideoPlayerSession(QMediaService *service) - : S60MediaPlayerSession(service) - , m_player(0) - , m_clipRect(0, 0, 0, 0) - , m_windowRect(0, 0, 0, 0) - , m_output(QVideoOutputControl::NoOutput) - , m_windowId(0) - , m_wsSession(0) - , m_screenDevice(0) - , m_window(0) - , m_service(*service) -{ - resetNativeHandles(); - QT_TRAP_THROWING(m_player = CVideoPlayerUtility::NewL( - *this, - 0, - EMdaPriorityPreferenceNone, - *m_wsSession, - *m_screenDevice, - *m_window, - m_windowRect, - m_clipRect)); -} - -S60VideoPlayerSession::~S60VideoPlayerSession() -{ - m_player->Close(); - delete m_player; -} - -void S60VideoPlayerSession::doLoadL(const TDesC &path) -{ - m_player->OpenFileL(path); -} - -void S60VideoPlayerSession::doLoadUrlL(const TDesC &path) -{ - m_player->OpenUrlL(path); -} - -int S60VideoPlayerSession::doGetMediaLoadingProgressL() const -{ - int progress = 0; - m_player->GetVideoLoadingProgressL(progress); - return progress; -} - -int S60VideoPlayerSession::doGetDurationL() const -{ - return m_player->DurationL().Int64() / 1000; -} - -void S60VideoPlayerSession::setVideoRenderer(QObject *videoOutput) -{ - Q_UNUSED(videoOutput) - QVideoOutputControl *videoControl = qobject_cast(m_service.control(QVideoOutputControl_iid)); - - //Render changes - if (m_output != videoControl->output()) { - - if (m_output == QVideoOutputControl::WidgetOutput) { - S60VideoWidgetControl *widgetControl = qobject_cast(m_service.control(QVideoWidgetControl_iid)); - disconnect(widgetControl, SIGNAL(widgetUpdated()), this, SLOT(resetVideoDisplay())); - disconnect(this, SIGNAL(stateChanged(QMediaPlayer::State)), widgetControl, SLOT(videoStateChanged(QMediaPlayer::State))); - } - - if (videoControl->output() == QVideoOutputControl::WidgetOutput) { - S60VideoWidgetControl *widgetControl = qobject_cast(m_service.control(QVideoWidgetControl_iid)); - connect(widgetControl, SIGNAL(widgetUpdated()), this, SLOT(resetVideoDisplay())); - connect(this, SIGNAL(stateChanged(QMediaPlayer::State)), widgetControl, SLOT(videoStateChanged(QMediaPlayer::State))); - } - - m_output = videoControl->output(); - resetVideoDisplay(); - } -} - -bool S60VideoPlayerSession::resetNativeHandles() -{ - QVideoOutputControl* videoControl = qobject_cast(m_service.control(QVideoOutputControl_iid)); - WId newId = 0; - TRect newClipRect = TRect(0,0,0,0); - - if (videoControl->output() == QVideoOutputControl::WidgetOutput) { - S60VideoWidgetControl* widgetControl = qobject_cast(m_service.control(QVideoWidgetControl_iid)); - QWidget *videoWidget = widgetControl->videoWidget(); - newId = videoWidget->winId(); - newClipRect = qt_QRect2TRect(QRect(videoWidget->mapToGlobal(videoWidget->pos()), videoWidget->size())); - } else if (videoControl->output() == QVideoOutputControl::WindowOutput) { - S60VideoOverlay* windowControl = qobject_cast(m_service.control(QVideoWindowControl_iid)); - newId = windowControl->winId(); - newClipRect = TRect( newId->DrawableWindow()->AbsPosition(), newId->DrawableWindow()->Size()); - } else { - if (QApplication::activeWindow()) - newId = QApplication::activeWindow()->effectiveWinId(); - } - - if (newClipRect == m_clipRect && newId == m_windowId) - return false; - - if (newId) { - m_windowRect = TRect( newId->DrawableWindow()->AbsPosition(), newId->DrawableWindow()->Size()); - m_clipRect = newClipRect; - m_windowId = newId; - CCoeEnv *coeEnv = m_windowId->ControlEnv(); - m_wsSession = &(coeEnv->WsSession()); - m_screenDevice = coeEnv->ScreenDevice(); - m_window = m_windowId->DrawableWindow(); - return true; - } - return false; -} - -bool S60VideoPlayerSession::isVideoAvailable() const -{ -#ifdef PRE_S60_50_PLATFORM - return true; // this is not support in pre 5th platforms -#else - return m_player->VideoEnabledL(); -#endif -} - -bool S60VideoPlayerSession::isAudioAvailable() const -{ - if (m_player) - return m_player->AudioEnabledL(); - else - return false; -} - -void S60VideoPlayerSession::doPlay() -{ - m_player->Play(); -} - -void S60VideoPlayerSession::doPauseL() -{ - m_player->PauseL(); -} - -void S60VideoPlayerSession::doStop() -{ - m_player->Stop(); -} - -qint64 S60VideoPlayerSession::doGetPositionL() const -{ - return m_player->PositionL().Int64() / 1000; -} -void S60VideoPlayerSession::doSetPositionL(qint64 microSeconds) -{ - m_player->SetPositionL(TTimeIntervalMicroSeconds(microSeconds)); -} - -void S60VideoPlayerSession::doSetVolumeL(int volume) -{ - m_player->SetVolumeL((volume / 100.0)* m_player->MaxVolume()); -} - -void S60VideoPlayerSession::MvpuoOpenComplete(TInt aError) -{ - setError(aError); - m_player->Prepare(); -} - -void S60VideoPlayerSession::MvpuoPrepareComplete(TInt aError) -{ - setError(aError); - TRAPD(err, - m_player->SetDisplayWindowL(*m_wsSession, - *m_screenDevice, - *m_window, - m_windowRect, - m_clipRect)); - setError(err); - initComplete(); -} - -void S60VideoPlayerSession::MvpuoFrameReady(CFbsBitmap &aFrame, TInt aError) -{ - Q_UNUSED(aFrame); - Q_UNUSED(aError); -} - -void S60VideoPlayerSession::MvpuoPlayComplete(TInt aError) -{ - setError(aError); - playComplete(); -} - -void S60VideoPlayerSession::MvpuoEvent(const TMMFEvent &aEvent) -{ - Q_UNUSED(aEvent); -} - -void S60VideoPlayerSession::updateMetaDataEntriesL() -{ - metaDataEntries().clear(); - int numberOfMetaDataEntries = 0; - - numberOfMetaDataEntries = m_player->NumberOfMetaDataEntriesL(); - - for (int i = 0; i < numberOfMetaDataEntries; i++) { - CMMFMetaDataEntry *entry = NULL; - entry = m_player->MetaDataEntryL(i); - metaDataEntries().insert(QString::fromUtf16(entry->Name().Ptr(), entry->Name().Length()), QString::fromUtf16(entry->Value().Ptr(), entry->Value().Length())); - delete entry; - } - emit metaDataChanged(); -} - -void S60VideoPlayerSession::resetVideoDisplay() -{ - if (resetNativeHandles()) { - TRAPD(err, m_player->SetDisplayWindowL(*m_wsSession, - *m_screenDevice, - *m_window, - m_windowRect, - m_clipRect)); - setError(err); - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60videoplayersession.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60videoplayersession.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +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 Qt Mobility Components. -** -** $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 S60VIDEOPLAYERSESSION_H -#define S60VIDEOPLAYERSESSION_H - -#include "s60mediaplayersession.h" -#include -#include - -class S60VideoPlayerSession : public S60MediaPlayerSession, public MVideoPlayerUtilityObserver -{ - Q_OBJECT - -public: - S60VideoPlayerSession(QMediaService *service); - ~S60VideoPlayerSession(); - - //From S60MediaPlayerSession - bool isVideoAvailable() const; - bool isAudioAvailable() const; - void setVideoRenderer(QObject *renderer); - -protected: - //From S60MediaPlayerSession - void doLoadL(const TDesC &path); - void doLoadUrlL(const TDesC &path); - void doPlay(); - void doStop(); - void doPauseL(); - void doSetVolumeL(int volume); - qint64 doGetPositionL() const; - void doSetPositionL(qint64 microSeconds); - void updateMetaDataEntriesL(); - int doGetMediaLoadingProgressL() const; - int doGetDurationL() const; - -private slots: - void resetVideoDisplay(); - -private: - bool resetNativeHandles(); - - // From MVideoPlayerUtilityObserver - void MvpuoOpenComplete(TInt aError); - void MvpuoPrepareComplete(TInt aError); - void MvpuoFrameReady(CFbsBitmap &aFrame, TInt aError); - void MvpuoPlayComplete(TInt aError); - void MvpuoEvent(const TMMFEvent &aEvent); - -private: - // Qwn - CVideoPlayerUtility *m_player; - TRect m_clipRect; - TRect m_windowRect; - QVideoOutputControl::Output m_output; - WId m_windowId; - - - //Reference - RWsSession *m_wsSession; - CWsScreenDevice *m_screenDevice; - RWindowBase *m_window; - QMediaService &m_service; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60videorenderer.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60videorenderer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +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 Qt Mobility Components. -** -** $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 "s60videorenderer.h" - -#include -#include - -S60VideoRenderer::S60VideoRenderer(QObject *parent) - : QVideoRendererControl(parent) -{ -} - -S60VideoRenderer::~S60VideoRenderer() -{ -} - - -QAbstractVideoSurface *S60VideoRenderer::surface() const -{ - return m_surface; -} - -void S60VideoRenderer::setSurface(QAbstractVideoSurface *surface) -{ - m_surface = surface; -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60videorenderer.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60videorenderer.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +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 Qt Mobility Components. -** -** $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 S60VIDEORENDERER_H -#define S60VIDEORENDERER_H - -#include -#include - -QTM_USE_NAMESPACE - -class S60VideoRenderer : public QVideoRendererControl -{ - Q_OBJECT - -public: - S60VideoRenderer(QObject *parent = 0); - virtual ~S60VideoRenderer(); - - QAbstractVideoSurface *surface() const; - void setSurface(QAbstractVideoSurface *surface); - -private: - - QAbstractVideoSurface *m_surface; -}; - -#endif // S60VIDEORENDERER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60videosurface.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60videosurface.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,475 +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 Qt Mobility Components. -** -** $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 -#include - -#include "s60videosurface.h" - -/*struct XvFormatRgb -{ - QVideoFrame::PixelFormat pixelFormat; - int bits_per_pixel; - int format; - int num_planes; - - int depth; - unsigned int red_mask; - unsigned int green_mask; - unsigned int blue_mask; - -};*/ -/* -bool operator ==(const XvImageFormatValues &format, const XvFormatRgb &rgb) -{ - return format.type == XvRGB - && format.bits_per_pixel == rgb.bits_per_pixel - && format.format == rgb.format - && format.num_planes == rgb.num_planes - && format.depth == rgb.depth - && format.red_mask == rgb.red_mask - && format.blue_mask == rgb.blue_mask; -} - -static const XvFormatRgb qt_xvRgbLookup[] = -{ - { QVideoFrame::Format_ARGB32, 32, XvPacked, 1, 32, 0x00FF0000, 0x0000FF00, 0x000000FF }, - { QVideoFrame::Format_RGB32 , 32, XvPacked, 1, 24, 0x00FF0000, 0x0000FF00, 0x000000FF }, - { QVideoFrame::Format_RGB24 , 24, XvPacked, 1, 24, 0x00FF0000, 0x0000FF00, 0x000000FF }, - { QVideoFrame::Format_RGB565, 16, XvPacked, 1, 16, 0x0000F800, 0x000007E0, 0x0000001F }, - { QVideoFrame::Format_BGRA32, 32, XvPacked, 1, 32, 0xFF000000, 0x00FF0000, 0x0000FF00 }, - { QVideoFrame::Format_BGR32 , 32, XvPacked, 1, 24, 0x00FF0000, 0x0000FF00, 0x000000FF }, - { QVideoFrame::Format_BGR24 , 24, XvPacked, 1, 24, 0x00FF0000, 0x0000FF00, 0x000000FF }, - { QVideoFrame::Format_BGR565, 16, XvPacked, 1, 16, 0x0000F800, 0x000007E0, 0x0000001F } -}; - -struct XvFormatYuv -{ - QVideoFrame::PixelFormat pixelFormat; - int bits_per_pixel; - int format; - int num_planes; - - unsigned int y_sample_bits; - unsigned int u_sample_bits; - unsigned int v_sample_bits; - unsigned int horz_y_period; - unsigned int horz_u_period; - unsigned int horz_v_period; - unsigned int vert_y_period; - unsigned int vert_u_period; - unsigned int vert_v_period; - char component_order[32]; -}; - -bool operator ==(const XvImageFormatValues &format, const XvFormatYuv &yuv) -{ - return format.type == XvYUV - && format.bits_per_pixel == yuv.bits_per_pixel - && format.format == yuv.format - && format.num_planes == yuv.num_planes - && format.y_sample_bits == yuv.y_sample_bits - && format.u_sample_bits == yuv.u_sample_bits - && format.v_sample_bits == yuv.v_sample_bits - && format.horz_y_period == yuv.horz_y_period - && format.horz_u_period == yuv.horz_u_period - && format.horz_v_period == yuv.horz_v_period - && format.horz_y_period == yuv.vert_y_period - && format.vert_u_period == yuv.vert_u_period - && format.vert_v_period == yuv.vert_v_period - && qstrncmp(format.component_order, yuv.component_order, 32) == 0; -} - -static const XvFormatYuv qt_xvYuvLookup[] = -{ - { QVideoFrame::Format_YUV444 , 24, XvPacked, 1, 8, 8, 8, 1, 1, 1, 1, 1, 1, "YUV" }, - { QVideoFrame::Format_YUV420P, 12, XvPlanar, 3, 8, 8, 8, 1, 2, 2, 1, 2, 2, "YUV" }, - { QVideoFrame::Format_YV12 , 12, XvPlanar, 3, 8, 8, 8, 1, 2, 2, 1, 2, 2, "YVU" }, - { QVideoFrame::Format_UYVY , 16, XvPacked, 1, 8, 8, 8, 1, 2, 2, 1, 1, 1, "UYVY" }, - { QVideoFrame::Format_YUYV , 16, XvPacked, 1, 8, 8, 8, 1, 2, 2, 1, 1, 1, "YUYV" }, - { QVideoFrame::Format_NV12 , 12, XvPlanar, 2, 8, 8, 8, 1, 2, 2, 1, 2, 2, "YUV" }, - { QVideoFrame::Format_NV12 , 12, XvPlanar, 2, 8, 8, 8, 1, 2, 2, 1, 2, 2, "YVU" }, - { QVideoFrame::Format_Y8 , 8 , XvPlanar, 1, 8, 0, 0, 1, 0, 0, 1, 0, 0, "Y" } -}; -*/ - -S60VideoSurface::S60VideoSurface(QObject *parent) - : QAbstractVideoSurface(parent) - , m_winId(0) - //, m_portId(0) - //, m_gc(0) - //, m_image(0) -{ -} - -S60VideoSurface::~S60VideoSurface() -{ - /*if (m_gc) - XFreeGC(QX11Info::display(), m_gc); - - if (m_portId != 0) - XvUngrabPort(QX11Info::display(), m_portId, 0); - */ -} - -WId S60VideoSurface::winId() const -{ - return m_winId; -} - -void S60VideoSurface::setWinId(WId id) -{ - /*if (id == m_winId) - return; - - if (m_image) - XFree(m_image); - - if (m_gc) { - XFreeGC(QX11Info::display(), m_gc); - m_gc = 0; - } - - if (m_portId != 0) - XvUngrabPort(QX11Info::display(), m_portId, 0); - - m_supportedPixelFormats.clear(); - m_formatIds.clear(); - - m_winId = id; - - if (m_winId && findPort()) { - querySupportedFormats(); - - m_gc = XCreateGC(QX11Info::display(), m_winId, 0, 0); - - if (m_image) { - m_image = 0; - - if (!start(surfaceFormat())) - QAbstractVideoSurface::stop(); - } - } else if (m_image) { - m_image = 0; - - QAbstractVideoSurface::stop(); - }*/ -} - -QRect S60VideoSurface::displayRect() const -{ - return m_displayRect; -} - -void S60VideoSurface::setDisplayRect(const QRect &rect) -{ - m_displayRect = rect; -} - -int S60VideoSurface::brightness() const -{ - //return getAttribute("XV_BRIGHTNESS", m_brightnessRange.first, m_brightnessRange.second); -} - -void S60VideoSurface::setBrightness(int brightness) -{ - //setAttribute("XV_BRIGHTNESS", brightness, m_brightnessRange.first, m_brightnessRange.second); -} - -int S60VideoSurface::contrast() const -{ - //return getAttribute("XV_CONTRAST", m_contrastRange.first, m_contrastRange.second); -} - -void S60VideoSurface::setContrast(int contrast) -{ - //setAttribute("XV_CONTRAST", contrast, m_contrastRange.first, m_contrastRange.second); -} - -int S60VideoSurface::hue() const -{ - //return getAttribute("XV_HUE", m_hueRange.first, m_hueRange.second); -} - -void S60VideoSurface::setHue(int hue) -{ - // setAttribute("XV_HUE", hue, m_hueRange.first, m_hueRange.second); -} - -int S60VideoSurface::saturation() const -{ - //return getAttribute("XV_SATURATION", m_saturationRange.first, m_saturationRange.second); -} - -void S60VideoSurface::setSaturation(int saturation) -{ - //setAttribute("XV_SATURATION", saturation, m_saturationRange.first, m_saturationRange.second); -} - -int S60VideoSurface::getAttribute(const char *attribute, int minimum, int maximum) const -{ - /*if (m_portId != 0) { - Display *display = QX11Info::display(); - - Atom atom = XInternAtom(display, attribute, True); - - int value = 0; - - XvGetPortAttribute(display, m_portId, atom, &value); - - return redistribute(value, minimum, maximum, -100, 100); - } else { - return 0; - }*/ -} - -void S60VideoSurface::setAttribute(const char *attribute, int value, int minimum, int maximum) -{ - /* if (m_portId != 0) { - Display *display = QX11Info::display(); - - Atom atom = XInternAtom(display, attribute, True); - - XvSetPortAttribute( - display, m_portId, atom, redistribute(value, -100, 100, minimum, maximum)); - }*/ -} - -int S60VideoSurface::redistribute( - int value, int fromLower, int fromUpper, int toLower, int toUpper) -{ - /*return fromUpper != fromLower - ? ((value - fromLower) * (toUpper - toLower) / (fromUpper - fromLower)) + toLower - : 0;*/ -} - -QList S60VideoSurface::supportedPixelFormats( - QAbstractVideoBuffer::HandleType handleType) const -{ - /*return handleType == QAbstractVideoBuffer::NoHandle - ? m_supportedPixelFormats - : QList();*/ -} - -bool S60VideoSurface::start(const QVideoSurfaceFormat &format) -{ - /*if (m_image) - XFree(m_image); - - int xvFormatId = 0; - for (int i = 0; i < m_supportedPixelFormats.count(); ++i) { - if (m_supportedPixelFormats.at(i) == format.pixelFormat()) { - xvFormatId = m_formatIds.at(i); - break; - } - } - - if (xvFormatId == 0) { - setError(UnsupportedFormatError); - } else { - XvImage *image = XvCreateImage( - QX11Info::display(), - m_portId, - xvFormatId, - 0, - format.frameWidth(), - format.frameHeight()); - - if (!image) { - setError(ResourceError); - } else { - m_viewport = format.viewport(); - m_image = image; - - return QAbstractVideoSurface::start(format); - } - } - - if (m_image) { - m_image = 0; - - QAbstractVideoSurface::stop(); - } -*/ - return false; -} - -void S60VideoSurface::stop() -{/* - if (m_image) { - XFree(m_image); - m_image = 0; - - QAbstractVideoSurface::stop(); - }*/ -} - -bool S60VideoSurface::present(const QVideoFrame &frame) -{/* - if (!m_image) { - setError(StoppedError); - return false; - } else if (m_image->width != frame.width() || m_image->height != frame.height()) { - setError(IncorrectFormatError); - return false; - } else { - QVideoFrame frameCopy(frame); - - if (!frameCopy.map(QAbstractVideoBuffer::ReadOnly)) { - setError(IncorrectFormatError); - return false; - } else { - bool presented = false; - - if (m_image->data_size > frame.numBytes()) { - qWarning("Insufficient frame buffer size"); - setError(IncorrectFormatError); - } else if (m_image->num_planes > 0 && m_image->pitches[0] != frame.bytesPerLine()) { - qWarning("Incompatible frame pitches"); - setError(IncorrectFormatError); - } else { - m_image->data = reinterpret_cast(frameCopy.bits()); - - XvPutImage( - QX11Info::display(), - m_portId, - m_winId, - m_gc, - m_image, - m_viewport.x(), - m_viewport.y(), - m_viewport.width(), - m_viewport.height(), - m_displayRect.x(), - m_displayRect.y(), - m_displayRect.width(), - m_displayRect.height()); - - m_image->data = 0; - - presented = true; - } - - frameCopy.unmap(); - - return presented; - } - }*/ -} - -bool S60VideoSurface::findPort() -{/* - unsigned int count = 0; - XvAdaptorInfo *adaptors = 0; - bool portFound = false; - - if (XvQueryAdaptors(QX11Info::display(), m_winId, &count, &adaptors) == Success) { - for (unsigned int i = 0; i < count && !portFound; ++i) { - if (adaptors[i].type & XvImageMask) { - m_portId = adaptors[i].base_id; - - for (unsigned int j = 0; j < adaptors[i].num_ports && !portFound; ++j, ++m_portId) - portFound = XvGrabPort(QX11Info::display(), m_portId, 0) == Success; - } - } - XvFreeAdaptorInfo(adaptors); - } - - return portFound;*/ -} - -void S60VideoSurface::querySupportedFormats() -{/* - int count = 0; - if (XvImageFormatValues *imageFormats = XvListImageFormats( - QX11Info::display(), m_portId, &count)) { - const int rgbCount = sizeof(qt_xvRgbLookup) / sizeof(XvFormatRgb); - const int yuvCount = sizeof(qt_xvYuvLookup) / sizeof(XvFormatYuv); - - for (int i = 0; i < count; ++i) { - switch (imageFormats[i].type) { - case XvRGB: - for (int j = 0; j < rgbCount; ++j) { - if (imageFormats[i] == qt_xvRgbLookup[j]) { - m_supportedPixelFormats.append(qt_xvRgbLookup[j].pixelFormat); - m_formatIds.append(imageFormats[i].id); - break; - } - } - break; - case XvYUV: - for (int j = 0; j < yuvCount; ++j) { - if (imageFormats[i] == qt_xvYuvLookup[j]) { - m_supportedPixelFormats.append(qt_xvYuvLookup[j].pixelFormat); - m_formatIds.append(imageFormats[i].id); - break; - } - } - break; - } - } - XFree(imageFormats); - } - - m_brightnessRange = qMakePair(0, 0); - m_contrastRange = qMakePair(0, 0); - m_hueRange = qMakePair(0, 0); - m_saturationRange = qMakePair(0, 0); - - if (XvAttribute *attributes = XvQueryPortAttributes(QX11Info::display(), m_portId, &count)) { - for (int i = 0; i < count; ++i) { - if (qstrcmp(attributes[i].name, "XV_BRIGHTNESS") == 0) - m_brightnessRange = qMakePair(attributes[i].min_value, attributes[i].max_value); - else if (qstrcmp(attributes[i].name, "XV_CONTRAST") == 0) - m_contrastRange = qMakePair(attributes[i].min_value, attributes[i].max_value); - else if (qstrcmp(attributes[i].name, "XV_HUE") == 0) - m_hueRange = qMakePair(attributes[i].min_value, attributes[i].max_value); - else if (qstrcmp(attributes[i].name, "XV_SATURATION") == 0) - m_saturationRange = qMakePair(attributes[i].min_value, attributes[i].max_value); - } - - XFree(attributes); - }*/ -} - -bool S60VideoSurface::isFormatSupported(const QVideoSurfaceFormat &format) const -{ -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60videosurface.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60videosurface.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,106 +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 Qt Mobility Components. -** -** $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 S60VIDEOSURFACE_H -#define S60VIDEOSURFACE_H - -#include -#include - -class S60VideoSurface : public QAbstractVideoSurface -{ - Q_OBJECT -public: - S60VideoSurface(QObject *parent = 0); - ~S60VideoSurface(); - - WId winId() const; - void setWinId(WId id); - - QRect displayRect() const; - void setDisplayRect(const QRect &rect); - - int brightness() const; - void setBrightness(int brightness); - - int contrast() const; - void setContrast(int contrast); - - int hue() const; - void setHue(int hue); - - int saturation() const; - void setSaturation(int saturation); - - QList supportedPixelFormats( - QAbstractVideoBuffer::HandleType handleType = QAbstractVideoBuffer::NoHandle) const; - - bool isFormatSupported(const QVideoSurfaceFormat &format) const; - - bool start(const QVideoSurfaceFormat &format); - void stop(); - - bool present(const QVideoFrame &frame); - -private: - WId m_winId; - //XvPortID m_portId; - //GC m_gc; - //XvImage *m_image; - QList m_supportedPixelFormats; - QVector m_formatIds; - QRect m_viewport; - QRect m_displayRect; - QPair m_brightnessRange; - QPair m_contrastRange; - QPair m_hueRange; - QPair m_saturationRange; - - bool findPort(); - void querySupportedFormats(); - - int getAttribute(const char *attribute, int minimum, int maximum) const; - void setAttribute(const char *attribute, int value, int minimum, int maximum); - - static int redistribute(int value, int fromLower, int fromUpper, int toLower, int toUpper); -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60videowidget.cpp --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60videowidget.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,178 +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 Qt Mobility Components. -** -** $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 "s60videowidget.h" - -#include - -class QBlackWidget : public QWidget -{ -public: - - QBlackWidget(QWidget *parent = 0) - : QWidget(parent) - { - setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); - setAttribute(Qt::WA_OpaquePaintEvent, true); - setAttribute(Qt::WA_NoSystemBackground, true); - setAutoFillBackground(false); - } - -protected: - - void paintEvent(QPaintEvent *) - { - if (!updatesEnabled()) - return; - - QPainter painter(this); - painter.fillRect(rect(), Qt::black); - } -}; - -S60VideoWidgetControl::S60VideoWidgetControl(QObject *parent) - : QVideoWidgetControl(parent) - , m_widget(0) - , m_windowId(0) - , m_aspectRatioMode(QVideoWidget::KeepAspectRatio) -{ - m_widget = new QBlackWidget(); - m_windowId = m_widget->winId(); - m_widget->installEventFilter(this); -} - -S60VideoWidgetControl::~S60VideoWidgetControl() -{ - delete m_widget; -} - -QWidget *S60VideoWidgetControl::videoWidget() -{ - return m_widget; -} - -QVideoWidget::AspectRatioMode S60VideoWidgetControl::aspectRatioMode() const -{ - return m_aspectRatioMode; -} - -void S60VideoWidgetControl::setAspectRatioMode(QVideoWidget::AspectRatioMode ratio) -{ - if (m_aspectRatioMode != ratio) - m_aspectRatioMode = ratio; -} - -bool S60VideoWidgetControl::isFullScreen() const -{ - return m_widget->isFullScreen(); -} - -void S60VideoWidgetControl::setFullScreen(bool fullScreen) -{ - emit fullScreenChanged(fullScreen); -} - -int S60VideoWidgetControl::brightness() const -{ - return 0; -} - -void S60VideoWidgetControl::setBrightness(int brightness) -{ - Q_UNUSED(brightness); -} - -int S60VideoWidgetControl::contrast() const -{ - return 0; -} - -void S60VideoWidgetControl::setContrast(int contrast) -{ - Q_UNUSED(contrast); -} - -int S60VideoWidgetControl::hue() const -{ - return 0; -} - -void S60VideoWidgetControl::setHue(int hue) -{ - Q_UNUSED(hue); -} - -int S60VideoWidgetControl::saturation() const -{ - return 0; -} - -void S60VideoWidgetControl::setSaturation(int saturation) -{ - Q_UNUSED(saturation); -} - -bool S60VideoWidgetControl::eventFilter(QObject *object, QEvent *e) -{ - if (object == m_widget) { - if ((e->type() == QEvent::ParentChange || e->type() == QEvent::Show) && - m_widget->winId() != m_windowId) { - m_windowId = m_widget->winId(); - emit widgetUpdated(); - } - - if (e->type() == QEvent::Resize || e->type() == QEvent::Move) - emit widgetUpdated(); - } - return QVideoWidgetControl::eventFilter(object, e); -} - -void S60VideoWidgetControl::videoStateChanged(QMediaPlayer::State state) -{ - if (state == QMediaPlayer::StoppedState) { - qt_widget_private(m_widget)->extraData()->nativePaintMode = QWExtra::ZeroFill; - m_widget->setUpdatesEnabled(true); - m_widget->repaint(); - } else if (state == QMediaPlayer::PlayingState) { - qt_widget_private(m_widget)->extraData()->nativePaintMode = QWExtra::Default; - m_widget->setUpdatesEnabled(false); - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mediaplayer/s60videowidget.h --- a/qtmobility/plugins/multimedia/symbian/mediaplayer/s60videowidget.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +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 Qt Mobility Components. -** -** $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 S60VIDEOWIDGET_H -#define S60VIDEOWIDGET_H - -#include -#include - -QTM_USE_NAMESPACE - -class QBlackWidget; - -class S60VideoWidgetControl : public QVideoWidgetControl -{ - Q_OBJECT - -public: - S60VideoWidgetControl(QObject *parent = 0); - virtual ~S60VideoWidgetControl(); - - // from QVideoWidgetControl - QWidget *videoWidget(); - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode ratio); - bool isFullScreen() const; - void setFullScreen(bool fullScreen); - int brightness() const; - void setBrightness(int brightness); - int contrast() const; - void setContrast(int contrast); - int hue() const; - void setHue(int hue); - int saturation() const; - void setSaturation(int saturation); - - // from QObject - bool eventFilter(QObject *object, QEvent *event); - -signals: - void widgetUpdated(); - -private slots: - void videoStateChanged(QMediaPlayer::State state); - -private: - QBlackWidget *m_widget; - WId m_windowId; - QVideoWidget::AspectRatioMode m_aspectRatioMode; -}; - -#endif // S60VIDEOWIDGET_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/audiosource_s60.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/audiosource_s60.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,23 @@ +INCLUDEPATH += $$PWD + +DEFINES += AUDIOSOURCEUSED + +symbian:LIBS += -lmediaclientaudio \ + -lmediaclientaudioinputstream \ + -lmmfcontrollerframework \ + -lcone \ + -lbafl + +HEADERS += $$PWD/s60audioencodercontrol.h \ + $$PWD/s60audiomediarecordercontrol.h \ + $$PWD/s60audioendpointselector.h \ + $$PWD/s60audiocaptureservice.h \ + $$PWD/s60audiocapturesession.h \ + $$PWD/S60audiocontainercontrol.h + +SOURCES += $$PWD/s60audioencodercontrol.cpp \ + $$PWD/s60audiomediarecordercontrol.cpp \ + $$PWD/s60audioendpointselector.cpp \ + $$PWD/s60audiocaptureservice.cpp \ + $$PWD/s60audiocapturesession.cpp \ + $$PWD/S60audiocontainercontrol.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocaptureservice.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocaptureservice.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,80 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 + +#include "s60audiocaptureservice.h" +#include "s60audiocapturesession.h" +#include "s60audioendpointselector.h" +#include "s60audioencodercontrol.h" +#include "s60audiomediarecordercontrol.h" +#include "S60audiocontainercontrol.h" + +S60AudioCaptureService::S60AudioCaptureService(QObject *parent): + QMediaService(parent) +{ + m_session = new S60AudioCaptureSession(this); + m_encoderControl = new S60AudioEncoderControl(m_session,this); + m_recorderControl = new S60AudioMediaRecorderControl(m_session,this); + m_endpointSelector = new S60AudioEndpointSelector(m_session,this); + m_containerControl = new S60AudioContainerControl(m_session, this); +} + +S60AudioCaptureService::~S60AudioCaptureService() +{ +} + +QMediaControl *S60AudioCaptureService::control(const char *name) const +{ + if (qstrcmp(name,QMediaRecorderControl_iid) == 0) + return m_recorderControl; + + if (qstrcmp(name,QAudioEncoderControl_iid) == 0) + return m_encoderControl; + + if (qstrcmp(name,QAudioEndpointSelector_iid) == 0) + return m_endpointSelector; + + if (qstrcmp(name,QMediaContainerControl_iid) == 0) + return m_containerControl; + + return 0; +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocaptureservice.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocaptureservice.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,74 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60AUDIOCAPTURESERVICE_H +#define S60AUDIOCAPTURESERVICE_H + +#include + +#include + +QTM_USE_NAMESPACE + +class S60AudioCaptureSession; +class S60AudioEncoderControl; +class S60AudioMediaRecorderControl; +class S60AudioEndpointSelector; +class S60AudioContainerControl; + + +class S60AudioCaptureService : public QMediaService +{ + Q_OBJECT +public: + S60AudioCaptureService(QObject *parent = 0); + ~S60AudioCaptureService(); + + QMediaControl *control(const char *name) const; +private: + S60AudioCaptureSession *m_session; + S60AudioEncoderControl *m_encoderControl; + S60AudioEndpointSelector *m_endpointSelector; + S60AudioMediaRecorderControl *m_recorderControl; + S60AudioContainerControl *m_containerControl; +}; + +#endif // S60AUDIOCAPTURESERVICE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,494 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60audiocapturesession.h" +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +_LIT(KAudioDummyFile, "c:\\data\\temp\\temp.wav"); + +S60AudioCaptureSession::S60AudioCaptureSession(QObject *parent): + QObject(parent) + , m_recorderUtility(NULL) + , m_captureState(ENotInitialized) + , m_controllerIdMap(QHash()) + , m_audioCodeclist(QHash()) +{ + TRAPD(err, initializeSessionL()); + qWarning()<(filename.utf16())); + TRAPD(err, BaflUtils::EnsurePathExistsL(CCoeEnv::Static()->FsSession(),path)); + if (err==KErrNone) { + m_sink = sink; + return true; + }else + return false; +} + +qint64 S60AudioCaptureSession::position() const +{ + if ((m_captureState != ERecording) || !m_recorderUtility) + return 0; + + return m_recorderUtility->Duration().Int64() / 1000; +} + +void S60AudioCaptureSession::record() +{ + if (!m_recorderUtility) + return; + + if (m_captureState == EInitialized || m_captureState == ERecordComplete) { + QString filename = QDir::toNativeSeparators(m_sink.toString()); + TPtrC16 sink(reinterpret_cast(filename.utf16())); + TUid controllerUid(TUid::Uid(m_controllerIdMap[m_container].controllerUid)); + TUid formatUid(TUid::Uid(m_controllerIdMap[m_container].destinationFormatUid)); + + TRAPD(err, + if (m_container != "audio/amr") + m_recorderUtility->OpenFileL(sink, controllerUid, KNullUid, formatUid); + else + m_recorderUtility->OpenFileL(sink); + ); + qWarning() << err; + }else if (m_captureState == EPaused) { + m_recorderUtility->SetPosition(m_pausedPosition); + TRAPD(error, m_recorderUtility->RecordL()); + qWarning() << error; + m_captureState = ERecording; + emit stateChanged(m_captureState); + } +} + +void S60AudioCaptureSession::setDefaultSettings() +{ + // Setting AMR to default format if supported + if (m_controllerIdMap.count() > 0) { + if ( m_controllerIdMap.contains("audio/amr")) + m_container = QString("audio/amr"); + else + m_container = m_controllerIdMap.keys()[0]; + } + if (m_audioCodeclist.keys().count() > 0) { + if (m_audioCodeclist.keys().contains("AMR")) + m_format.setCodec("AMR"); + else + m_format.setCodec(m_audioCodeclist.keys()[0]); + } +} + +void S60AudioCaptureSession::pause() +{ + if (!m_recorderUtility) + return; + + m_pausedPosition = m_recorderUtility->Position(); + m_recorderUtility->Stop(); + m_captureState = EPaused; + emit stateChanged(m_captureState); +} + +void S60AudioCaptureSession::stop() +{ + if (!m_recorderUtility) + return; + + m_recorderUtility->Stop(); + m_recorderUtility->Close(); + m_captureState = ERecordComplete; + emit stateChanged(m_captureState); +} + +void S60AudioCaptureSession::setCaptureDevice(const QString &deviceName) +{ + m_captureDevice = deviceName; +} + +void S60AudioCaptureSession::MoscoStateChangeEvent(CBase* aObject, + TInt aPreviousState, TInt aCurrentState, TInt aErrorCode) +{ + TRAPD(err, MoscoStateChangeEventL(aObject, aPreviousState, aCurrentState, NULL)); + qWarning() << err; +} + +void S60AudioCaptureSession::MoscoStateChangeEventL(CBase* aObject, + TInt aPreviousState, TInt aCurrentState, TInt aErrorCode) +{ + if (aObject != m_recorderUtility) + return; + + switch(aCurrentState) { + case CMdaAudioClipUtility::EOpen: { + if(aPreviousState == CMdaAudioClipUtility::ENotReady) { + if (m_captureState == EInitializing) { + retrieveSupportedAudioSampleRatesL(); + m_recorderUtility->Close(); + m_captureState = EInitialized; + emit stateChanged(m_captureState); + }else { + applyAudioSettingsL(); + m_recorderUtility->SetAudioDeviceMode(CMdaAudioRecorderUtility::ELocal); + m_recorderUtility->SetGain(m_recorderUtility->MaxGain()); + m_recorderUtility->SetPosition(TTimeIntervalMicroSeconds(0)); + m_recorderUtility->CropL(); + m_recorderUtility->RecordL(); + m_captureState = EOpenCompelete; + emit stateChanged(m_captureState); + } + break; + } + } + case CMdaAudioClipUtility::ENotReady: { + m_captureState = EInitialized; + emit stateChanged(m_captureState); + break; + } + case CMdaAudioClipUtility::ERecording: { + m_captureState = ERecording; + emit stateChanged(m_captureState); + break; + } + default: { + break; + } + } +} + +void S60AudioCaptureSession::updateAudioContainersL() +{ + CMMFControllerPluginSelectionParameters* pluginParameters = + CMMFControllerPluginSelectionParameters::NewLC(); + CMMFFormatSelectionParameters* formatParameters = + CMMFFormatSelectionParameters::NewLC(); + + pluginParameters->SetRequiredRecordFormatSupportL(*formatParameters); + + RArray ids; + CleanupClosePushL(ids); + User::LeaveIfError(ids.Append(KUidMediaTypeAudio)); + + pluginParameters->SetMediaIdsL(ids, + CMMFPluginSelectionParameters::EAllowOnlySuppliedMediaIds); + + RMMFControllerImplInfoArray controllers; + CleanupResetAndDestroyPushL(controllers); + + //Get all audio record controllers/formats that are supported + pluginParameters->ListImplementationsL(controllers); + + for (TInt index=0; indexRecordFormats(); + for (TInt j=0; jSupportedMimeTypes(); + TInt count = mimeTypes.Count(); + if (count > 0) { + TPtrC8 mimeType = mimeTypes[0]; + QString type = QString::fromUtf8((char *)mimeType.Ptr(), mimeType.Length()); + if (type != "audio/mp4") { + ControllerData data; + data.controllerUid = controllers[index]->Uid().iUid; + data.destinationFormatUid = recordFormats[j]->Uid().iUid; + data.destinationFormatDescription = QString::fromUtf16( + recordFormats[j]->DisplayName().Ptr(), + recordFormats[j]->DisplayName().Length()); + m_controllerIdMap[type] = data; + } + } + } + } + CleanupStack::PopAndDestroy(4);//controllers, ids, formatParameters, pluginParameters +} + +void S60AudioCaptureSession::retrieveSupportedAudioSampleRatesL() +{ + if (!m_recorderUtility || m_captureState != EInitializing) + return; + + RArray supportedSampleRates; + CleanupClosePushL(supportedSampleRates); + m_recorderUtility->GetSupportedSampleRatesL(supportedSampleRates); + for (TInt j = 0; j < supportedSampleRates.Count(); j++ ) { + m_supportedSampleRates.append(supportedSampleRates[j]); + //qDebug()<<"S60AudioCaptureSession::doPopulateAudioCodecsDataL, samplerate: "< S60AudioCaptureSession::supportedAudioSampleRates() const +{ + return m_supportedSampleRates; +} + +void S60AudioCaptureSession::populateAudioCodecsDataL() +{ + //qDebug() << "S60AudioCaptureSession::doInitializeAudioRecorderL START"; + if (!m_recorderUtility) + return; + + if (m_controllerIdMap.contains("audio/amr")) { + CodecData data; + data.codecDescription = QString("GSM AMR Codec"); + m_audioCodeclist[QString("AMR")]=data; + } + if (m_controllerIdMap.contains("audio/basic")) { + CodecData data; + data.fourCC = KMMFFourCCCodeALAW; + data.codecDescription = QString("Sun/Next ""Au"" audio codec"); + m_audioCodeclist[QString("AULAW")]=data; + } + if (m_controllerIdMap.contains("audio/wav")) { + CodecData data; + data.fourCC = KMMFFourCCCodePCM16; + data.codecDescription = QString("Pulse code modulation"); + m_audioCodeclist[QString("PCM")]=data; + } + if (m_controllerIdMap.contains("audio/mp4")) { + CodecData data; + data.fourCC = KMMFFourCCCodeAAC; + data.codecDescription = QString("Advanced Audio Codec"); + m_audioCodeclist[QString("AAC")]=data; + } + + if (m_controllerIdMap.contains("audio/wav")) { + TMdaFileClipLocation location; + location.iName = KAudioDummyFile(); + TMdaWavClipFormat format; + m_captureState = EInitializing; + m_recorderUtility->OpenL(&location, &format); + } +} + +void S60AudioCaptureSession::applyAudioSettingsL() +{ + //qDebug() << "S60AudioCaptureSession::applyAudioSettings START"; + if (!m_recorderUtility) + return; + + TFourCC fourCC = m_audioCodeclist[m_format.codec()].fourCC; + + //set destination datatype + RArray supportedDataTypes; + CleanupClosePushL(supportedDataTypes); + m_recorderUtility->GetSupportedDestinationDataTypesL(supportedDataTypes); + //qDebug() << "S60AudioCaptureSession::applyAudioSettingsL, datatype count"<SetDestinationDataTypeL(supportedDataTypes[k]); + break; + } + } + CleanupStack::PopAndDestroy(&supportedDataTypes); + + RArray supportedSampleRates; + CleanupClosePushL(supportedSampleRates); + m_recorderUtility->GetSupportedSampleRatesL(supportedSampleRates); + for (TInt i = 0; i < supportedSampleRates.Count(); i++ ) { + TUint supportedSampleRate = supportedSampleRates[i]; + if (supportedSampleRate == m_format.frequency()) { + m_recorderUtility->SetDestinationSampleRateL(m_format.frequency()); + break; + } + } + CleanupStack::PopAndDestroy(&supportedSampleRates); + + RArray supportedChannels; + CleanupClosePushL(supportedChannels); + m_recorderUtility->GetSupportedNumberOfChannelsL(supportedChannels); + for (TInt l = 0; l < supportedChannels.Count(); l++ ) { + if (supportedChannels[l] == m_format.channels()) { + m_recorderUtility->SetDestinationNumberOfChannelsL(m_format.channels()); + break; + } + } + CleanupStack::PopAndDestroy(&supportedChannels); + //qDebug() << "S60AudioCaptureSession::applyAudioSettings END"; +} + +TFourCC S60AudioCaptureSession::determinePCMFormat() +{ + //qDebug() << "S60AudioCaptureSession::determinePCMSampleSize START"; + TFourCC fourCC; + + if (m_format.sampleSize() == 8) { + // 8 bit + switch (m_format.sampleType()) { + case QAudioFormat::SignedInt: { + fourCC.Set(KMMFFourCCCodePCM8); + break; + } + case QAudioFormat::UnSignedInt: { + fourCC.Set(KMMFFourCCCodePCMU8); + break; + } + case QAudioFormat::Float: + case QAudioFormat::Unknown: + default: { + fourCC.Set(KMMFFourCCCodePCM8); + break; + } + } + } else if (m_format.sampleSize() == 16) { + // 16 bit + switch (m_format.sampleType()) { + case QAudioFormat::SignedInt: { + fourCC.Set(m_format.byteOrder()==QAudioFormat::BigEndian? + KMMFFourCCCodePCM16B:KMMFFourCCCodePCM16); + break; + } + case QAudioFormat::UnSignedInt: { + fourCC.Set(m_format.byteOrder()==QAudioFormat::BigEndian? + KMMFFourCCCodePCMU16B:KMMFFourCCCodePCMU16); + break; + } + default: { + fourCC.Set(KMMFFourCCCodePCM16); + break; + } + } + } + //qDebug() << "S60AudioCaptureSession::determinePCMSampleSize END"; + return fourCC; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,150 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60AUDIOCAPTURESESSION_H +#define S60AUDIOCAPTURESESSION_H + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +QTM_BEGIN_NAMESPACE +struct ControllerData +{ + int controllerUid; + int destinationFormatUid; + QString destinationFormatDescription; +}; + +struct CodecData +{ + TFourCC fourCC; + QString codecDescription; +}; +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE + +class S60AudioCaptureSession : public QObject, public MMdaObjectStateChangeObserver +{ + Q_OBJECT + Q_PROPERTY(qint64 position READ position NOTIFY positionChanged) + Q_ENUMS(TAudioCaptureState) +public: + + enum TAudioCaptureState + { + ENotInitialized = 0, + EInitializing, + EInitialized, + EOpenCompelete, + ERecording, + EPaused, + ERecordComplete + }; + + S60AudioCaptureSession(QObject *parent = 0); + ~S60AudioCaptureSession(); + + QAudioFormat format() const; + bool setFormat(const QAudioFormat &format); + QStringList supportedAudioCodecs() const; + QString codecDescription(const QString &codecName); + bool setAudioCodec(const QString &codecName); + QString audioCodec() const; + QString audioContainer() const; + QStringList supportedAudioContainers() const; + bool setAudioContainer(const QString &containerMimeType); + QString audioContainerDescription(const QString &containerName); + QList supportedAudioSampleRates() const; + QUrl outputLocation() const; + bool setOutputLocation(const QUrl& sink); + qint64 position() const; + void record(); + void pause(); + void stop(); + +private: + void initializeSessionL(); + void updateAudioContainersL(); + void populateAudioCodecsDataL(); + void retrieveSupportedAudioSampleRatesL(); + void applyAudioSettingsL(); + TFourCC determinePCMFormat(); + void setDefaultSettings(); + void createFileWithHeader(const TPtrC &path); + // MMdaObjectStateChangeObserver + void MoscoStateChangeEvent(CBase* aObject, TInt aPreviousState, + TInt aCurrentState, TInt aErrorCode); + void MoscoStateChangeEventL(CBase* aObject, TInt aPreviousState, + TInt aCurrentState, TInt aErrorCode); + +public slots: + void setCaptureDevice(const QString &deviceName); + +Q_SIGNALS: + void stateChanged(S60AudioCaptureSession::TAudioCaptureState); + void positionChanged(qint64 position); + +private: + QString m_container; + QString m_captureDevice; + QUrl m_sink; + TTimeIntervalMicroSeconds m_pausedPosition; + CMdaAudioRecorderUtility *m_recorderUtility; + TAudioCaptureState m_captureState; + QAudioFormat m_format; + QHash m_controllerIdMap; + QHash m_audioCodeclist; + QList m_supportedSampleRates; +}; + +#endif // S60AUDIOCAPTURESESSION_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocontainercontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocontainercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,76 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "S60audiocontainercontrol.h" +#include "s60audiocapturesession.h" +#include + +S60AudioContainerControl::S60AudioContainerControl(QObject *parent) + : QMediaContainerControl(parent) +{ +} + +S60AudioContainerControl::S60AudioContainerControl(QObject *session, QObject *parent) + : QMediaContainerControl(parent) +{ + m_session = qobject_cast(session); +} + +QStringList S60AudioContainerControl::supportedContainers() const +{ + return m_session->supportedAudioContainers(); +} + +QString S60AudioContainerControl::containerMimeType() const +{ + return m_session->audioContainer(); +} + +void S60AudioContainerControl::setContainerMimeType(const QString &containerMimeType) +{ + m_session->setAudioContainer(containerMimeType); +} + +QString S60AudioContainerControl::containerDescription(const QString &containerMimeType) const +{ + return m_session->audioContainerDescription(containerMimeType); +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocontainercontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiocontainercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,70 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60AUDIOFORMATCONTROL_H +#define S60AUDIOFORMATCONTROL_H + +#include "QMediaContainerControl" +#include + + +QTM_USE_NAMESPACE + +class S60AudioCaptureSession; + +class S60AudioContainerControl : public QMediaContainerControl +{ +Q_OBJECT +public: + S60AudioContainerControl(QObject *parent = 0); + S60AudioContainerControl(QObject *session, QObject *parent = 0); + virtual ~S60AudioContainerControl() {}; + + QStringList supportedContainers() const; + QString containerMimeType() const; + void setContainerMimeType(const QString &containerMimeType); + QString containerDescription(const QString &containerMimeType) const; + +private: + S60AudioCaptureSession* m_session; +}; + +#endif // S60AUDIOFORMATCONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audioencodercontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audioencodercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,257 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60audioencodercontrol.h" +#include "s60audiocapturesession.h" + +#include + +#include + +S60AudioEncoderControl::S60AudioEncoderControl(QObject *session, QObject *parent) + :QAudioEncoderControl(parent) +{ + qDebug()<<"S60AudioEncoderControl::S60AudioEncoderControl"; + QAudioFormat fmt; + fmt.setSampleSize(8); + fmt.setChannels(1); + fmt.setFrequency(8000); + fmt.setSampleType(QAudioFormat::SignedInt); + //fmt.setCodec("audio/pcm"); + + m_session = qobject_cast(session); +} + +S60AudioEncoderControl::~S60AudioEncoderControl() +{ +} + +QStringList S60AudioEncoderControl::supportedAudioCodecs() const +{ + return m_session->supportedAudioCodecs(); +} + +QString S60AudioEncoderControl::audioCodec() const +{ + return m_session->format().codec(); +} + +bool S60AudioEncoderControl::setAudioCodec(const QString &codecName) +{ + QAudioFormat fmt = m_session->format(); + fmt.setCodec(codecName); + return m_session->setFormat(fmt); +} + +QString S60AudioEncoderControl::codecDescription(const QString &codecName) const +{ + return m_session->codecDescription(codecName); +} + +int S60AudioEncoderControl::bitRate() const +{ + return (m_session->format().frequency() * m_session->format().channels() * (m_session->format().sampleSize() / 8)); +} + +void S60AudioEncoderControl::setBitRate(int value) +{ + Q_UNUSED(value) +} + +QtMedia::EncodingQuality S60AudioEncoderControl::quality() const +{ + return QtMedia::NormalQuality; +} + +void S60AudioEncoderControl::setQuality(QtMedia::EncodingQuality value) +{ + QAudioFormat fmt = m_session->format(); + + switch (value) { + case QtMedia::VeryLowQuality: + case QtMedia::LowQuality: + // low, 8000Hz mono U8 + fmt.setSampleType(QAudioFormat::UnSignedInt); + fmt.setSampleSize(8); + fmt.setFrequency(8000); + fmt.setChannels(1); + break; + case QtMedia::NormalQuality: + // medium, 22050Hz mono S16 + fmt.setSampleType(QAudioFormat::SignedInt); + fmt.setSampleSize(16); + fmt.setFrequency(22050); + fmt.setChannels(1); + break; + case QtMedia::HighQuality: + case QtMedia::VeryHighQuality: + // high, 44100Hz mono S16 + fmt.setSampleType(QAudioFormat::SignedInt); + fmt.setSampleSize(16); + fmt.setFrequency(44100); + fmt.setChannels(1); + break; + default: + break; + } + m_session->setFormat(fmt); +} + +QStringList S60AudioEncoderControl::supportedEncodingOptions(const QString &codec) const +{ + Q_UNUSED(codec) + + QStringList list; + return list; +} + +QVariant S60AudioEncoderControl::encodingOption(const QString &codec, const QString &name) const +{ + Q_UNUSED(codec) + QAudioFormat fmt = m_session->format(); + + if(qstrcmp(name.toLocal8Bit().constData(), "bitrate") == 0) { + return QVariant(fmt.frequency()); + } + + return QVariant(); +} + +void S60AudioEncoderControl::setEncodingOption( + const QString &codec, const QString &name, const QVariant &value) +{ + Q_UNUSED(value) + Q_UNUSED(codec) + + //QAudioFormat fmt = m_session->format(); + + if(qstrcmp(name.toLocal8Bit().constData(), "bitrate") == 0) { + if (value.toString() == "vbr") + setBitRate(-1); + else + setBitRate(value.toInt()); + + } else if(qstrcmp(name.toLocal8Bit().constData(), "quality") == 0) { + setQuality((QtMedia::EncodingQuality)value.toInt()); + + } else + qWarning() << "option: " << name << " is an unknown option!"; +} + +int S60AudioEncoderControl::sampleRate() const +{ + return m_session->format().frequency(); +} + +void S60AudioEncoderControl::setSampleRate(int sampleRate) +{ + if (sampleRate > 0) { + QAudioFormat fmt = m_session->format(); + fmt.setFrequency(sampleRate); + m_session->setFormat(fmt); + } +} + +QList S60AudioEncoderControl::supportedSampleRates(const QAudioEncoderSettings &settings, bool *continuous) const +{ + if (continuous) + *continuous = false; + + return m_session->supportedAudioSampleRates(); +} + +int S60AudioEncoderControl::channelCount() const +{ + return m_session->format().channels(); +} + +void S60AudioEncoderControl::setChannelCount(int channels) +{ + if (channels > 0) { + QAudioFormat fmt = m_session->format(); + fmt.setChannels(channels); + m_session->setFormat(fmt); + } +} + +QList S60AudioEncoderControl::supportedChannelCounts() const +{ + return QList() << 1 << 2; +} + +int S60AudioEncoderControl::sampleSize() const +{ + return m_session->format().sampleSize(); +} + +void S60AudioEncoderControl::setSampleSize(int sampleSize) +{ + QAudioFormat fmt = m_session->format(); + fmt.setSampleSize(sampleSize); + m_session->setFormat(fmt); +} + +QList S60AudioEncoderControl::supportedSampleSizes() const +{ + //QList sizes = m_session->deviceInfo()->supportedSampleSizes(); + return QList(); //sizes; +} + +QAudioEncoderSettings S60AudioEncoderControl::audioSettings() const +{ + QAudioEncoderSettings settings; + settings.setCodec(audioCodec()); + settings.setBitRate(bitRate()); + settings.setQuality(quality()); + settings.setSampleRate(sampleRate()); + settings.setChannelCount(channelCount()); + return settings; +} + +void S60AudioEncoderControl::setAudioSettings(const QAudioEncoderSettings &settings) +{ + setAudioCodec(settings.codec()); + setBitRate(settings.bitRate()); + setSampleRate(settings.sampleRate()); + setChannelCount(settings.channelCount()); + // Setting quality will override other settings except codec + setQuality(settings.quality()); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audioencodercontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audioencodercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,94 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 AUDIOENCODERCONTROL_H +#define AUDIOENCODERCONTROL_H + +#include +#include + +QTM_USE_NAMESPACE + +class S60AudioCaptureSession; + +class S60AudioEncoderControl : public QAudioEncoderControl +{ + Q_OBJECT +public: + S60AudioEncoderControl(QObject *session, QObject *parent = 0); + virtual ~S60AudioEncoderControl(); + + QStringList supportedAudioCodecs() const; + QString audioCodec() const; + bool setAudioCodec(const QString &codecName); + + QString codecDescription(const QString &codecName) const; + + int bitRate() const; + void setBitRate(int); + + QtMedia::EncodingQuality quality() const; + void setQuality(QtMedia::EncodingQuality); + + QStringList supportedEncodingOptions(const QString &codec) const; + QVariant encodingOption(const QString &codec, const QString &name) const; + void setEncodingOption(const QString &codec, const QString &name, const QVariant &value); + + int sampleRate() const; + void setSampleRate(int sampleRate); + QList supportedSampleRates(const QAudioEncoderSettings &settings, bool *continuous = 0) const; + + int channelCount() const; + void setChannelCount(int channels); + QList supportedChannelCounts() const; + + int sampleSize() const; + void setSampleSize(int sampleSize); + QList supportedSampleSizes() const; + + QAudioEncoderSettings audioSettings() const; + void setAudioSettings(const QAudioEncoderSettings&); + +private: + S60AudioCaptureSession* m_session; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audioendpointselector.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audioendpointselector.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,107 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60audiocapturesession.h" +#include "s60audioendpointselector.h" + +#include +#include + + +S60AudioEndpointSelector::S60AudioEndpointSelector(QObject *session, QObject *parent) + :QAudioEndpointSelector(parent) +{ + m_session = qobject_cast(session); + update(); + m_audioInput = defaultEndpoint(); +} + +S60AudioEndpointSelector::~S60AudioEndpointSelector() +{ +} + +QList S60AudioEndpointSelector::availableEndpoints() const +{ + return m_names; +} + +QString S60AudioEndpointSelector::endpointDescription(const QString& name) const +{ + QString desc; + + for(int i = 0; i < m_names.count(); i++) { + if (m_names.at(i).compare(name) == 0) { + desc = m_descriptions.at(i); + break; + } + } + return desc; +} + +QString S60AudioEndpointSelector::defaultEndpoint() const +{ + if (m_names.size() > 0) + return m_names.at(0); + return QString(); +} + +QString S60AudioEndpointSelector::activeEndpoint() const +{ + return m_audioInput; +} + +void S60AudioEndpointSelector::setActiveEndpoint(const QString& name) +{ + if (m_audioInput.compare(name) != 0) { + m_audioInput = name; + m_session->setCaptureDevice(name); + emit activeEndpointChanged(name); + } +} + +void S60AudioEndpointSelector::update() +{ + m_names.clear(); + m_descriptions.clear(); + + m_names.append(QString("MMF")); + m_descriptions.append(QString("MMF")); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audioendpointselector.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audioendpointselector.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,81 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60AUDIOENDPOINTSELECTOR_H +#define S60AUDIOENDPOINTSELECTOR_H + +#include + +#include + +QTM_USE_NAMESPACE + +class S60AudioCaptureSession; + +class S60AudioEndpointSelector : public QAudioEndpointSelector +{ + +Q_OBJECT + +public: + S60AudioEndpointSelector(QObject *session, QObject *parent = 0); + ~S60AudioEndpointSelector(); + + QList availableEndpoints() const; + QString endpointDescription(const QString& name) const; + QString defaultEndpoint() const; + QString activeEndpoint() const; + +private: + void update(); + +public Q_SLOTS: + void setActiveEndpoint(const QString& name); + +private: + QString m_audioInput; + QList m_names; + QList m_descriptions; + + S60AudioCaptureSession* m_session; +}; + +#endif // S60AUDIOENDPOINTSELECTOR_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiomediarecordercontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiomediarecordercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,121 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60audiomediarecordercontrol.h" +#include "s60audiocapturesession.h" + +#include + +S60AudioMediaRecorderControl::S60AudioMediaRecorderControl(QObject *session, QObject *parent) + :QMediaRecorderControl(parent), m_state(QMediaRecorder::StoppedState) +{ + m_session = qobject_cast(session); + connect(m_session, SIGNAL(positionChanged(qint64)), this, SIGNAL(durationChanged(qint64))); + connect(m_session, SIGNAL(stateChanged(S60AudioCaptureSession::TAudioCaptureState)), this, SLOT(updateState(S60AudioCaptureSession::TAudioCaptureState))); +} + +S60AudioMediaRecorderControl::~S60AudioMediaRecorderControl() +{ +} + +QUrl S60AudioMediaRecorderControl::outputLocation() const +{ + return m_session->outputLocation(); +} + +bool S60AudioMediaRecorderControl::setOutputLocation(const QUrl& sink) +{ + return m_session->setOutputLocation(sink); +} + +QMediaRecorder::State S60AudioMediaRecorderControl::convertState(S60AudioCaptureSession::TAudioCaptureState aState) const +{ + QMediaRecorder::State state = QMediaRecorder::StoppedState;; + switch (aState) { + case S60AudioCaptureSession::ERecording: + state = QMediaRecorder::RecordingState; + break; + case S60AudioCaptureSession::EPaused: + state = QMediaRecorder::PausedState; + break; + case S60AudioCaptureSession::ERecordComplete: + case S60AudioCaptureSession::ENotInitialized: + case S60AudioCaptureSession::EOpenCompelete: + case S60AudioCaptureSession::EInitialized: + state = QMediaRecorder::StoppedState; + break; + } + return state; +} + +void S60AudioMediaRecorderControl::updateState(S60AudioCaptureSession::TAudioCaptureState aState) +{ + QMediaRecorder::State newState = convertState(aState); + if (m_state != newState) { + m_state = newState; + emit stateChanged(m_state); + } +} + +QMediaRecorder::State S60AudioMediaRecorderControl::state() const +{ + return m_state; +} + +qint64 S60AudioMediaRecorderControl::duration() const +{ + return m_session->position(); +} + +void S60AudioMediaRecorderControl::record() +{ + m_session->record(); +} + +void S60AudioMediaRecorderControl::pause() +{ + m_session->pause(); +} + +void S60AudioMediaRecorderControl::stop() +{ + m_session->stop(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiomediarecordercontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/audiosource/s60audiomediarecordercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,89 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60AUDIOMEDIARECORDERCONTROL_H +#define S60AUDIOMEDIARECORDERCONTROL_H + +#include +#include + +#include "qmediarecorder.h" +#include "qmediarecordercontrol.h" + +#include "s60audiocapturesession.h" + +QTM_USE_NAMESPACE + +//class S60AudioCaptureSession; + +class S60AudioMediaRecorderControl : public QMediaRecorderControl +{ + Q_OBJECT +public: + S60AudioMediaRecorderControl(QObject *session,QObject *parent = 0); + ~S60AudioMediaRecorderControl(); + + QUrl outputLocation() const; + bool setOutputLocation(const QUrl &sink); + + QMediaRecorder::State state() const; + + qint64 duration() const; + + void applySettings() {} + +private: + QMediaRecorder::State convertState(S60AudioCaptureSession::TAudioCaptureState aState) const; + +public slots: + void record(); + void pause(); + void stop(); + +private slots: + void updateState(S60AudioCaptureSession::TAudioCaptureState aState); + +private: + S60AudioCaptureSession* m_session; + QMediaRecorder::State m_state; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/mediaplayer_s60.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/mediaplayer_s60.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,82 @@ +INCLUDEPATH += $$PWD +LIBS += -lmediaclientvideo \ + -lmediaclientaudio \ + -lws32 \ + -lfbscli \ + -lcone \ + -lmmfcontrollerframework \ + -lefsrv \ + -lbitgdi + +# If support to DRM is wanted then comment out the following line +#CONFIG += drm_supported + +drm_supported { + LIBS + = -ldrmaudioplayutility + DEFINES += S60_DRM_SUPPORTED +} + +HEADERS += \ + $$PWD/s60mediaplayercontrol.h \ + $$PWD/s60mediaplayerservice.h \ + $$PWD/s60mediaplayersession.h \ + $$PWD/s60videoplayersession.h \ + $$PWD/s60mediametadataprovider.h \ + $$PWD/s60videosurface.h \ + $$PWD/s60videooverlay.h \ + $$PWD/s60videorenderer.h \ + $$PWD/s60mediarecognizer.h \ + $$PWD/s60audioplayersession.h \ + $$PWD/ms60mediaplayerresolver.h \ + $$PWD/s60videowidget.h \ + $$PWD/s60mediaplayeraudioendpointselector.h + +SOURCES += \ + $$PWD/s60mediaplayercontrol.cpp \ + $$PWD/s60mediaplayerservice.cpp \ + $$PWD/s60mediaplayersession.cpp \ + $$PWD/s60videoplayersession.cpp \ + $$PWD/s60mediametadataprovider.cpp \ + $$PWD/s60videosurface.cpp \ + $$PWD/s60videooverlay.cpp \ + $$PWD/s60videorenderer.cpp \ + $$PWD/s60mediarecognizer.cpp \ + $$PWD/s60audioplayersession.cpp \ + $$PWD/s60videowidget.cpp \ + $$PWD/s60mediaplayeraudioendpointselector.cpp + +contains(S60_VERSION, 3.1) { + MMP_RULES += "$${LITERAL_HASH}ifndef WINSCW" \ + "LIBRARY MPEngine.lib" \ + "MACRO HAS_MEDIA_PLAYER" \ + "$${LITERAL_HASH}endif" + + !exists($${EPOCROOT}epoc32\release\winscw\udeb\audiooutputrouting.lib) { + MMP_RULES += "$${LITERAL_HASH}ifdef WINSCW" \ + "MACRO HAS_NO_AUDIOROUTING" \ + "$${LITERAL_HASH}else" \ + "LIBRARY audiooutputrouting.lib" \ + "$${LITERAL_HASH}endif" + message("Note: AudioOutput Routing API not supported for 3.1 winscw target") + } else { + MMP_RULES +="LIBRARY audiooutputrouting.lib" + } + +} else { + LIBS += -lMPEngine + DEFINES += HAS_MEDIA_PLAYER + LIBS += -laudiooutputrouting +} + +exists($${EPOCROOT}epoc32\include\platform\mw\mediarecognizer.h) { + symbian:LIBS += -lplaybackhelper + DEFINES += USE_SYMBIAN_MEDIARECOGNIZER + #these are sdk plugins that don't exits in Symbian3 + symbian:LIBS -= -lMPEngine + message("Using Symbian mediarecognizer") +} +exists($$[QT_INSTALL_HEADERS]\QtGui\private\qwidget_p.h) { + DEFINES += USE_PRIVATE_QWIDGET_METHODS + message("Enabling use of private QWidget methods") +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/ms60mediaplayerresolver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/ms60mediaplayerresolver.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,54 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 MS60MEDIAPLAYERRESOLVER_H +#define MS60MEDIAPLAYERRESOLVER_H + +class S60MediaPlayerSession; + +class MS60MediaPlayerResolver +{ + public: + virtual S60MediaPlayerSession* PlayerSession() = 0; + virtual S60MediaPlayerSession* VideoPlayerSession() = 0; + virtual S60MediaPlayerSession* AudioPlayerSession() = 0; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60audioplayersession.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60audioplayersession.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,273 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60audioplayersession.h" +#include +#include + +#include +#include + +S60AudioPlayerSession::S60AudioPlayerSession(QObject *parent) + : S60MediaPlayerSession(parent) + , m_player(0) + , m_audioOutput(0) +{ + QT_TRAP_THROWING(m_player = CAudioPlayer::NewL(*this, 0, EMdaPriorityPreferenceNone)); + //QT_TRAP_THROWING(m_audioOutput = CAudioOutput::NewL(*m_player)); + //QT_TRAP_THROWING(m_audioOutput->RegisterObserverL(*this)); + + m_player->RegisterForAudioLoadingNotification(*this); +} + +S60AudioPlayerSession::~S60AudioPlayerSession() +{ +#ifndef HAS_NO_AUDIOROUTING + if (m_audioOutput) + m_audioOutput->UnregisterObserver(*this); + delete m_audioOutput; +#endif + m_player->Close(); + delete m_player; +} + +void S60AudioPlayerSession::doLoadL(const TDesC &path) +{ + m_player->OpenFileL(path); +} + +qint64 S60AudioPlayerSession::doGetDurationL() const +{ + return m_player->Duration().Int64() / qint64(1000); +} + +qint64 S60AudioPlayerSession::doGetPositionL() const +{ + TTimeIntervalMicroSeconds ms = 0; + m_player->GetPosition(ms); + return ms.Int64() / qint64(1000); +} + +bool S60AudioPlayerSession::isVideoAvailable() const +{ + return false; +} +bool S60AudioPlayerSession::isAudioAvailable() const +{ + return true; // this is a bit happy scenario, but we do emit error that we can't play +} + +void S60AudioPlayerSession::MaloLoadingStarted() +{ + buffering(); +} + +void S60AudioPlayerSession::MaloLoadingComplete() +{ + buffered(); +} + +void S60AudioPlayerSession::doPlay() +{ +// For some reason loading progress callbalck are not called on emulator +#ifdef __WINSCW__ + buffering(); +#endif + m_player->Play(); +#ifdef __WINSCW__ + buffered(); +#endif + +} + +void S60AudioPlayerSession::doPauseL() +{ + m_player->Pause(); +} + +void S60AudioPlayerSession::doStop() +{ + m_player->Stop(); +} + +void S60AudioPlayerSession::doSetVolumeL(int volume) +{ + m_player->SetVolume((volume / 100.0) * m_player->MaxVolume()); +} + +void S60AudioPlayerSession::doSetPositionL(qint64 microSeconds) +{ + m_player->SetPosition(TTimeIntervalMicroSeconds(microSeconds)); +} + +void S60AudioPlayerSession::updateMetaDataEntriesL() +{ + metaDataEntries().clear(); + int numberOfMetaDataEntries = 0; + + m_player->GetNumberOfMetaDataEntries(numberOfMetaDataEntries); + + for (int i = 0; i < numberOfMetaDataEntries; i++) { + CMMFMetaDataEntry *entry = NULL; + entry = m_player->GetMetaDataEntryL(i); + metaDataEntries().insert(QString::fromUtf16(entry->Name().Ptr(), entry->Name().Length()), QString::fromUtf16(entry->Value().Ptr(), entry->Value().Length())); + delete entry; + } + emit metaDataChanged(); +} + +int S60AudioPlayerSession::doGetBufferStatusL() const +{ + int progress = 0; + m_player->GetAudioLoadingProgressL(progress); + return progress; +} + +#ifdef S60_DRM_SUPPORTED +void S60AudioPlayerSession::MdapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration) +#else +void S60AudioPlayerSession::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration) +#endif +{ + Q_UNUSED(aDuration); + setError(aError); + loaded(); +} + +#ifdef S60_DRM_SUPPORTED +void S60AudioPlayerSession::MdapcPlayComplete(TInt aError) +#else +void S60AudioPlayerSession::MapcPlayComplete(TInt aError) +#endif +{ + setError(aError); + endOfMedia(); +} + +QString S60AudioPlayerSession::activeEndpoint() const +{ +#ifndef HAS_NO_AUDIOROUTING + QString outputName; + if (m_audioOutput) { + CAudioOutput::TAudioOutputPreference output = m_audioOutput->AudioOutput(); + outputName = qStringFromTAudioOutputPreference(output); + } + return outputName; +#endif + return QString("Default"); +} + +QString S60AudioPlayerSession::defaultEndpoint() const +{ +#ifndef HAS_NO_AUDIOROUTING + QString outputName; + if (m_audioOutput) { + CAudioOutput::TAudioOutputPreference output = m_audioOutput->DefaultAudioOutput(); + outputName = qStringFromTAudioOutputPreference(output); + } + return outputName; +#endif + return QString("Default"); +} + +void S60AudioPlayerSession::setActiveEndpoint(const QString& name) +{ + CAudioOutput::TAudioOutputPreference output = CAudioOutput::ENoPreference; + + if (name == QString("Default")) + output = CAudioOutput::ENoPreference; + else if (name == QString("All")) + output = CAudioOutput::EAll; + else if (name == QString("None")) + output = CAudioOutput::ENoOutput; + else if (name == QString("Earphone")) + output = CAudioOutput::EPrivate; + else if (name == QString("Speaker")) + output = CAudioOutput::EPublic; +#ifndef HAS_NO_AUDIOROUTING + if (m_audioOutput) { + TRAPD(err, m_audioOutput->SetAudioOutputL(output)); + setError(err); + } +#endif + +} + +void S60AudioPlayerSession::DefaultAudioOutputChanged(CAudioOutput& aAudioOutput, + CAudioOutput::TAudioOutputPreference aNewDefault) +{ +#ifndef HAS_NO_AUDIOROUTING + if (m_audioOutput) { + CAudioOutput::TAudioOutputPreference output = m_audioOutput->AudioOutput(); + if (output == CAudioOutput::ENoPreference) { + QString name; + if (output == CAudioOutput::EAll) + name = QString("All"); + else if (output == CAudioOutput::ENoOutput) + name = QString("None"); + else if (output == CAudioOutput::EPrivate) + name = QString("Earphone"); + else if (output == CAudioOutput::EPublic) + name = QString("Speaker"); + if (!name.isEmpty()) + emit activeEndpointChanged(name); + } + } +#else + Q_UNUSED(aAudioOutput) + Q_UNUSED(aNewDefault) +#endif +} + +QString S60AudioPlayerSession::qStringFromTAudioOutputPreference(CAudioOutput::TAudioOutputPreference output) const +{ + if (output == CAudioOutput::ENoPreference) + return QString("Default"); + else if (output == CAudioOutput::EAll) + return QString("All"); + else if (output == CAudioOutput::ENoOutput) + return QString("None"); + else if (output == CAudioOutput::EPrivate) + return QString("Earphone"); + else if (output == CAudioOutput::EPublic) + return QString("Speaker"); + return QString(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60audioplayersession.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60audioplayersession.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,123 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60AUDIOPLAYERSESSION_H +#define S60AUDIOPLAYERSESSION_H + +#include "s60mediaplayersession.h" + +#ifdef S60_DRM_SUPPORTED +#include +typedef CDrmPlayerUtility CAudioPlayer; +typedef MDrmAudioPlayerCallback MAudioPlayerObserver; +#else +#include +typedef CMdaAudioPlayerUtility CAudioPlayer; +typedef MMdaAudioPlayerCallback MAudioPlayerObserver; +#endif + +#include +#include + +class S60AudioPlayerSession : public S60MediaPlayerSession + , public MAudioPlayerObserver + , public MAudioLoadingObserver + , public MAudioOutputObserver +{ + Q_OBJECT + +public: + S60AudioPlayerSession(QObject *parent); + ~S60AudioPlayerSession(); + + //From S60MediaPlayerSession + bool isVideoAvailable() const; + bool isAudioAvailable() const; + + // From MAudioLoadingObserver + void MaloLoadingStarted(); + void MaloLoadingComplete(); + + // From MAudioOutputObserver + void DefaultAudioOutputChanged( CAudioOutput& aAudioOutput, + CAudioOutput::TAudioOutputPreference aNewDefault ); + +public: + // From S60MediaPlayerAudioEndpointSelector + QString activeEndpoint() const; + QString defaultEndpoint() const; +public Q_SLOTS: + void setActiveEndpoint(const QString& name); +Q_SIGNALS: + void activeEndpointChanged(const QString & name); + +protected: + //From S60MediaPlayerSession + void doLoadL(const TDesC &path); + void doLoadUrlL(const TDesC &path){Q_UNUSED(path)/*empty implementation*/} + void doPlay(); + void doStop(); + void doPauseL(); + void doSetVolumeL(int volume); + qint64 doGetPositionL() const; + void doSetPositionL(qint64 microSeconds); + void updateMetaDataEntriesL(); + int doGetBufferStatusL() const; + qint64 doGetDurationL() const; + +private: +#ifdef S60_DRM_SUPPORTED + // From MMdaAudioPlayerCallback + void MdapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration); + void MdapcPlayComplete(TInt aError); +#else + // From MDrmAudioPlayerCallback + void MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration); + void MapcPlayComplete(TInt aError); +#endif + QString qStringFromTAudioOutputPreference(CAudioOutput::TAudioOutputPreference output) const; + +private: + CAudioPlayer *m_player; + CAudioOutput *m_audioOutput; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediametadataprovider.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediametadataprovider.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,180 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60mediametadataprovider.h" +#include "s60mediaplayersession.h" +#include + +S60MediaMetaDataProvider::S60MediaMetaDataProvider(MS60MediaPlayerResolver& mediaPlayerResolver, QObject *parent) + : QMetaDataControl(parent) + , m_mediaPlayerResolver(mediaPlayerResolver) + , m_session(NULL) +{ +} + +S60MediaMetaDataProvider::~S60MediaMetaDataProvider() +{ +} + +bool S60MediaMetaDataProvider::isMetaDataAvailable() const +{ + m_session = m_mediaPlayerResolver.PlayerSession(); + if (m_session) + return m_session->isMetadataAvailable(); + return false; +} + +bool S60MediaMetaDataProvider::isWritable() const +{ + return false; +} + +QVariant S60MediaMetaDataProvider::metaData(QtMedia::MetaData key) const +{ + m_session = m_mediaPlayerResolver.PlayerSession(); + if (m_session && m_session->isMetadataAvailable()) + return m_session->metaData(metaDataKeyAsString(key)); + return QVariant(); +} + +void S60MediaMetaDataProvider::setMetaData(QtMedia::MetaData key, QVariant const &value) +{ + Q_UNUSED(key); + Q_UNUSED(value); +} +QList S60MediaMetaDataProvider::availableMetaData() const +{ + m_session = m_mediaPlayerResolver.PlayerSession(); + QList metaDataTags; + if (m_session && m_session->isMetadataAvailable()) { + for (int i = QtMedia::Title; i <= QtMedia::DeviceSettingDescription; i++) { + QString metaData = metaDataKeyAsString((QtMedia::MetaData)i); + if (!metaData.isEmpty()) { + if (!m_session->metaData(metaData).toString().isEmpty()) { + metaDataTags.append((QtMedia::MetaData)i); + } + } + } + } + return metaDataTags; +} + +QVariant S60MediaMetaDataProvider::extendedMetaData(const QString &key) const +{ + m_session = m_mediaPlayerResolver.PlayerSession(); + if (m_session && m_session->isMetadataAvailable()) + return m_session->metaData(key); + return QVariant(); +} + +void S60MediaMetaDataProvider::setExtendedMetaData(const QString &key, QVariant const &value) +{ + Q_UNUSED(key); + Q_UNUSED(value); +} + +QStringList S60MediaMetaDataProvider::availableExtendedMetaData() const +{ + m_session = m_mediaPlayerResolver.PlayerSession(); + if (m_session && m_session->isMetadataAvailable()) + return m_session->availableMetaData().keys(); + return QStringList(); +} + +QString S60MediaMetaDataProvider::metaDataKeyAsString(QtMedia::MetaData key) const +{ + switch(key) { + case QtMedia::Title: return "title"; + case QtMedia::AlbumArtist: return "artist"; + case QtMedia::Comment: return "comment"; + case QtMedia::Genre: return "genre"; + case QtMedia::Year: return "year"; + case QtMedia::Copyright: return "copyright"; + case QtMedia::AlbumTitle: return "album"; + case QtMedia::Composer: return "composer"; + case QtMedia::TrackNumber: return "albumtrack"; + case QtMedia::AudioBitRate: return "audiobitrate"; + case QtMedia::VideoBitRate: return "videobitrate"; + case QtMedia::Duration: return "duration"; + case QtMedia::MediaType: return "contenttype"; + case QtMedia::SubTitle: // TODO: Find the matching metadata keys + case QtMedia::Description: + case QtMedia::Category: + case QtMedia::Date: + case QtMedia::UserRating: + case QtMedia::Keywords: + case QtMedia::Language: + case QtMedia::Publisher: + case QtMedia::ParentalRating: + case QtMedia::RatingOrganisation: + case QtMedia::Size: + case QtMedia::AudioCodec: + case QtMedia::AverageLevel: + case QtMedia::ChannelCount: + case QtMedia::PeakValue: + case QtMedia::SampleRate: + case QtMedia::Author: + case QtMedia::ContributingArtist: + case QtMedia::Conductor: + case QtMedia::Lyrics: + case QtMedia::Mood: + case QtMedia::TrackCount: + case QtMedia::CoverArtUrlSmall: + case QtMedia::CoverArtUrlLarge: + case QtMedia::Resolution: + case QtMedia::PixelAspectRatio: + case QtMedia::VideoFrameRate: + case QtMedia::VideoCodec: + case QtMedia::PosterUrl: + case QtMedia::ChapterNumber: + case QtMedia::Director: + case QtMedia::LeadPerformer: + case QtMedia::Writer: + case QtMedia::CameraManufacturer: + case QtMedia::CameraModel: + case QtMedia::Event: + case QtMedia::Subject: + default: + break; + } + + return QString(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediametadataprovider.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediametadataprovider.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,79 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60MEDIAMETADATAPROVIDER_H +#define S60MEDIAMETADATAPROVIDER_H + +#include +#include "ms60mediaplayerresolver.h" + +QTM_USE_NAMESPACE + +class S60MediaPlayerSession; + +class S60MediaMetaDataProvider : public QMetaDataControl +{ + Q_OBJECT + +public: + S60MediaMetaDataProvider(MS60MediaPlayerResolver& mediaPlayerResolver, QObject *parent = 0); + ~S60MediaMetaDataProvider(); + + bool isMetaDataAvailable() const; + bool isWritable() const; + + QVariant metaData(QtMedia::MetaData key) const; + void setMetaData(QtMedia::MetaData key, const QVariant &value); + QList availableMetaData() const; + + QVariant extendedMetaData(const QString &key) const ; + void setExtendedMetaData(const QString &key, const QVariant &value); + QStringList availableExtendedMetaData() const; + +private: + QString metaDataKeyAsString(QtMedia::MetaData key) const; + +private: + MS60MediaPlayerResolver& m_mediaPlayerResolver; + mutable S60MediaPlayerSession *m_session; +}; + +#endif // S60VIDEOMETADATAPROVIDER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayeraudioendpointselector.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayeraudioendpointselector.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,116 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60mediaplayercontrol.h" +#include "s60mediaplayersession.h" +#include "s60mediaplayeraudioendpointselector.h" + +#include +#include + +S60MediaPlayerAudioEndpointSelector::S60MediaPlayerAudioEndpointSelector(QObject *control, QObject *parent) + :QAudioEndpointSelector(parent) + , m_control(0) +{ + m_control = qobject_cast(control); +} + +S60MediaPlayerAudioEndpointSelector::~S60MediaPlayerAudioEndpointSelector() +{ + delete m_audioEndpointNames; + delete m_control; +} + +QList S60MediaPlayerAudioEndpointSelector::availableEndpoints() const +{ + if(m_audioEndpointNames->count() == 0) { + m_audioEndpointNames->append("Default"); + m_audioEndpointNames->append("All"); + m_audioEndpointNames->append("None"); + m_audioEndpointNames->append("Earphone"); + m_audioEndpointNames->append("Speaker"); + } + return *m_audioEndpointNames; +} + +QString S60MediaPlayerAudioEndpointSelector::endpointDescription(const QString& name) const +{ + if (name == QString("Default")) //ENoPreference + return QString("Used to indicate that the playing audio can be routed to" + "any speaker. This is the default value for audio."); + else if (name == QString("All")) //EAll + return QString("Used to indicate that the playing audio should be routed to all speakers."); + else if (name == QString("None")) //ENoOutput + return QString("Used to indicate that the playing audio should not be routed to any output."); + else if (name == QString("Earphone")) //EPrivate + return QString("Used to indicate that the playing audio should be routed to" + "the default private speaker. A private speaker is one that can only" + "be heard by one person."); + else if (name == QString("Speaker")) //EPublic + return QString("Used to indicate that the playing audio should be routed to" + "the default public speaker. A public speaker is one that can " + "be heard by multiple people."); + + return QString(); +} + +QString S60MediaPlayerAudioEndpointSelector::activeEndpoint() const +{ + if (m_control->session()) + return m_control->session()->activeEndpoint(); + + return QString(); +} + +QString S60MediaPlayerAudioEndpointSelector::defaultEndpoint() const +{ + if (m_control->session()) + return m_control->session()->defaultEndpoint(); + + return QString(); +} + +void S60MediaPlayerAudioEndpointSelector::setActiveEndpoint(const QString& name) +{ + if (m_control->session()) + m_control->session()->setActiveEndpoint(name); +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayeraudioendpointselector.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayeraudioendpointselector.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,78 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60MEDIAPLAYERAUDIOENDPOINTSELECTOR_H +#define S60MEDIAPLAYERAUDIOENDPOINTSELECTOR_H + +#include + +#include + +QTM_USE_NAMESPACE + +class S60MediaPlayerControl; +class S60MediaPlayerSession; + +class S60MediaPlayerAudioEndpointSelector : public QAudioEndpointSelector +{ + +Q_OBJECT + +public: + S60MediaPlayerAudioEndpointSelector(QObject *control, QObject *parent = 0); + ~S60MediaPlayerAudioEndpointSelector(); + + QList availableEndpoints() const ; + QString endpointDescription(const QString& name) const; + QString defaultEndpoint() const; + QString activeEndpoint() const; + +public Q_SLOTS: + void setActiveEndpoint(const QString& name); + +private: + S60MediaPlayerControl* m_control; + QString m_audioInput; + QList *m_audioEndpointNames; + QList *m_audioEndpointDescriptions; +}; + +#endif // S60MEDIAPLAYERAUDIOENDPOINTSELECTOR_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayercontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,264 @@ + +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60mediaplayercontrol.h" +#include "s60mediaplayersession.h" + +#include +#include +#include + +S60MediaPlayerControl::S60MediaPlayerControl(MS60MediaPlayerResolver& mediaPlayerResolver, QObject *parent) + : QMediaPlayerControl(parent), + m_mediaPlayerResolver(mediaPlayerResolver), + m_session(NULL), + m_stream(NULL) +{ +} + +S60MediaPlayerControl::~S60MediaPlayerControl() +{ +} + +qint64 S60MediaPlayerControl::position() const +{ + if (m_session) + return m_session->position(); + return 0; +} + +qint64 S60MediaPlayerControl::duration() const +{ + if (m_session) + return m_session->duration(); + return -1; +} + +QMediaPlayer::State S60MediaPlayerControl::state() const +{ + if (m_session) + return m_session->state(); + return QMediaPlayer::StoppedState; +} + +QMediaPlayer::MediaStatus S60MediaPlayerControl::mediaStatus() const +{ + if (m_session) + return m_session->mediaStatus(); + return m_mediaSettings.mediaStatus(); +} + +int S60MediaPlayerControl::bufferStatus() const +{ + if (m_session) + return m_session->bufferStatus(); + return 0; +} + +int S60MediaPlayerControl::volume() const +{ + if (m_session) + return m_session->volume(); + return m_mediaSettings.volume(); +} + +bool S60MediaPlayerControl::isMuted() const +{ + if (m_session) + return m_session->isMuted(); + return m_mediaSettings.isMuted(); +} + +bool S60MediaPlayerControl::isSeekable() const +{ + if (m_session) + return m_session->isSeekable(); + return false; +} + +QMediaTimeRange S60MediaPlayerControl::availablePlaybackRanges() const +{ + QMediaTimeRange ranges; + + if(m_session && m_session->isSeekable()) + ranges.addInterval(0, m_session->duration()); + + return ranges; +} + +qreal S60MediaPlayerControl::playbackRate() const +{ + //None of symbian players supports this. + return m_mediaSettings.playbackRate(); +} + +void S60MediaPlayerControl::setPlaybackRate(qreal rate) +{ + //None of symbian players supports this. + m_mediaSettings.setPlaybackRate(rate); + emit playbackRateChanged(playbackRate()); + +} + +void S60MediaPlayerControl::setPosition(qint64 pos) +{ + if (m_session) + m_session->setPosition(pos); +} + +void S60MediaPlayerControl::play() +{ + if (m_session) + m_session->play(); +} + +void S60MediaPlayerControl::pause() +{ + if (m_session) + m_session->pause(); +} + +void S60MediaPlayerControl::stop() +{ + if (m_session) + m_session->stop(); +} + +void S60MediaPlayerControl::setVolume(int volume) +{ + int boundVolume = qBound(0, volume, 100); + if (boundVolume == m_mediaSettings.volume()) + return; + + m_mediaSettings.setVolume(boundVolume); + if (m_session) + m_session->setVolume(boundVolume); + + emit volumeChanged(boundVolume); +} + +void S60MediaPlayerControl::setMuted(bool muted) +{ + if (m_mediaSettings.isMuted() == muted) + return; + + m_mediaSettings.setMuted(muted); + if (m_session) + m_session->setMuted(muted); + + emit mutedChanged(muted); +} + +QMediaContent S60MediaPlayerControl::media() const +{ + return m_currentResource; +} + +const QIODevice *S60MediaPlayerControl::mediaStream() const +{ + return m_stream; +} + +void S60MediaPlayerControl::setMedia(const QMediaContent &source, QIODevice *stream) +{ + Q_UNUSED(stream) + // we don't want to set & load media again when it is already loaded + if (m_session && m_currentResource == source) + return; + + // store to variable as session is created based on the content type. + m_currentResource = source; + S60MediaPlayerSession *newSession = m_mediaPlayerResolver.PlayerSession(); + m_mediaSettings.setMediaStatus(QMediaPlayer::UnknownMediaStatus); + + if (m_session) + m_session->reset(); + else { + emit mediaStatusChanged(QMediaPlayer::UnknownMediaStatus); + emit error(QMediaPlayer::NoError, QString()); + } + + m_session = newSession; + + if (m_session) + m_session->load(source.canonicalUrl()); + else { + QMediaPlayer::MediaStatus status = (source.isNull()) ? QMediaPlayer::NoMedia : QMediaPlayer::InvalidMedia; + m_mediaSettings.setMediaStatus(status); + emit stateChanged(QMediaPlayer::StoppedState); + emit error((source.isNull()) ? QMediaPlayer::NoError : QMediaPlayer::ResourceError, + (source.isNull()) ? "" : tr("Media couldn't be resolved")); + emit mediaStatusChanged(status); + } + emit mediaChanged(m_currentResource); + } + +S60MediaPlayerSession* S60MediaPlayerControl::session() +{ + return m_session; +} + +void S60MediaPlayerControl::setVideoOutput(QObject *output) +{ + S60MediaPlayerSession *session = NULL; + session = m_mediaPlayerResolver.VideoPlayerSession(); + session->setVideoRenderer(output); +} + +bool S60MediaPlayerControl::isAudioAvailable() const +{ + if (m_session) + return m_session->isAudioAvailable(); + return false; +} + +bool S60MediaPlayerControl::isVideoAvailable() const +{ + if (m_session) + return m_session->isVideoAvailable(); + return false; +} + +const S60MediaSettings& S60MediaPlayerControl::mediaControlSettings() const +{ + return m_mediaSettings; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayercontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,137 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60MEDIAPLAYERCONTROL_H +#define S60MEDIAPLAYERCONTROL_H + +#include + +#include + +#include "ms60mediaplayerresolver.h" +#include + +QTM_BEGIN_NAMESPACE +class QMediaPlayer; +class QMediaTimeRange; +class QMediaContent; +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE + +class S60MediaPlayerSession; +class S60MediaPlayerService; + +class S60MediaSettings +{ + +public: + S60MediaSettings() + : m_volume(0) + , m_muted(false) + , m_playbackRate(0) + , m_mediaStatus(QMediaPlayer::UnknownMediaStatus) + { + } + + void setVolume(int volume) { m_volume = volume; } + void setMuted(bool muted) { m_muted = muted; } + void setPlaybackRate(int rate) { m_playbackRate = rate; } + void setMediaStatus(QMediaPlayer::MediaStatus status) {m_mediaStatus=status;} + + int volume() const { return m_volume; } + bool isMuted() const { return m_muted; } + qreal playbackRate() const { return m_playbackRate; } + QMediaPlayer::MediaStatus mediaStatus() const {return m_mediaStatus;} + +private: + int m_volume; + bool m_muted; + qreal m_playbackRate; + QMediaPlayer::MediaStatus m_mediaStatus; +}; + +class S60MediaPlayerControl : public QMediaPlayerControl +{ + Q_OBJECT + +public: + S60MediaPlayerControl(MS60MediaPlayerResolver& mediaPlayerResolver, QObject *parent = 0); + ~S60MediaPlayerControl(); + + // from QMediaPlayerControl + virtual QMediaPlayer::State state() const; + virtual QMediaPlayer::MediaStatus mediaStatus() const; + virtual qint64 duration() const; + virtual qint64 position() const; + virtual void setPosition(qint64 pos); + virtual int volume() const; + virtual void setVolume(int volume); + virtual bool isMuted() const; + virtual void setMuted(bool muted); + virtual int bufferStatus() const; + virtual bool isAudioAvailable() const; + virtual bool isVideoAvailable() const; + virtual bool isSeekable() const; + virtual QMediaTimeRange availablePlaybackRanges() const; + virtual qreal playbackRate() const; + virtual void setPlaybackRate(qreal rate); + virtual QMediaContent media() const; + virtual const QIODevice *mediaStream() const; + virtual void setMedia(const QMediaContent&, QIODevice *); + virtual void play(); + virtual void pause(); + virtual void stop(); + S60MediaPlayerSession* session(); + + // Own methods + void setVideoOutput(QObject *output); + const S60MediaSettings& mediaControlSettings() const; + +private: + MS60MediaPlayerResolver &m_mediaPlayerResolver; + S60MediaPlayerSession *m_session; + QMediaContent m_currentResource; + QIODevice *m_stream; + S60MediaSettings m_mediaSettings; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayerservice.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayerservice.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,251 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include + +#include "s60mediaplayerservice.h" +#include "s60mediaplayercontrol.h" +#include "s60videoplayersession.h" +#include "s60audioplayersession.h" +#include "s60mediametadataprovider.h" +#include "s60videowidget.h" +#include "s60mediarecognizer.h" +//#include +#include "s60videooverlay.h" +#include "s60videorenderer.h" +#include "s60mediaplayeraudioendpointselector.h" + +#include +#include + +S60MediaPlayerService::S60MediaPlayerService(QObject *parent) + : QMediaService(parent) + , m_control(NULL) + , m_mediaRecognizer(NULL) + , m_videoOutput(NULL) + , m_videoPlayerSession(NULL) + , m_audioPlayerSession(NULL) + , m_metaData(NULL) + , m_videoWidget(NULL) + , m_videoWindow(NULL) + , m_videoRenderer(NULL) + , m_audioEndpointSelector(NULL) +{ + m_control = new S60MediaPlayerControl(*this, this); + m_mediaRecognizer = new S60MediaRecognizer(this); + m_metaData = new S60MediaMetaDataProvider(*this); +} + +S60MediaPlayerService::~S60MediaPlayerService() +{ + delete m_videoWidget; + delete m_videoRenderer; + delete m_videoWindow; + delete m_videoOutput; + delete m_metaData; +} + +QMediaControl *S60MediaPlayerService::control(const char *name) const +{ + if (qstrcmp(name, QMediaPlayerControl_iid) == 0) + return m_control; + + if (qstrcmp(name, QMetaDataControl_iid) == 0) { + return m_metaData; + } + + if (qstrcmp(name, QVideoOutputControl_iid) == 0) { + if (!m_videoOutput) { + m_videoOutput = new S60VideoOutputControl; + connect(m_videoOutput, SIGNAL(outputChanged(QVideoOutputControl::Output)), + this, SLOT(videoOutputChanged(QVideoOutputControl::Output))); + m_videoOutput->setAvailableOutputs(QList() +// << QVideoOutputControl::RendererOutput +// << QVideoOutputControl::WindowOutput + << QVideoOutputControl::WidgetOutput); + + } + return m_videoOutput; + } + + if (qstrcmp(name, QVideoWidgetControl_iid) == 0) { + if (!m_videoWidget) + m_videoWidget = new S60VideoWidgetControl; + return m_videoWidget; + } + + if (qstrcmp(name, QVideoRendererControl_iid) == 0) { + if (m_videoRenderer) + m_videoRenderer = new S60VideoRenderer; + return m_videoRenderer; + } + + if (qstrcmp(name, QVideoWindowControl_iid) == 0) { + if (!m_videoWindow) + m_videoWindow = new S60VideoOverlay; + return m_videoWindow; + } + + if (qstrcmp(name, QAudioEndpointSelector_iid) == 0) { + if (!m_audioEndpointSelector) + m_audioEndpointSelector = new S60MediaPlayerAudioEndpointSelector(m_control); + return m_audioEndpointSelector; + } + + return 0; + +} + +void S60MediaPlayerService::videoOutputChanged(QVideoOutputControl::Output output) +{ + switch (output) { + case QVideoOutputControl::NoOutput: + m_control->setVideoOutput(0); + break; + + case QVideoOutputControl::RendererOutput: + m_control->setVideoOutput(m_videoRenderer); + break; + case QVideoOutputControl::WindowOutput: + m_control->setVideoOutput(m_videoWindow); + break; + + case QVideoOutputControl::WidgetOutput: + m_control->setVideoOutput(m_videoWidget); + break; + default: + qWarning("Invalid video output selection"); + break; + } +} + +S60MediaPlayerSession* S60MediaPlayerService::PlayerSession() +{ + QUrl url = m_control->media().canonicalUrl(); + + if (url.isEmpty() == true) { + return NULL; + } + + S60MediaRecognizer::MediaType mediaType = m_mediaRecognizer->IdentifyMediaType(url); + + switch (mediaType) { + case S60MediaRecognizer::Video: + case S60MediaRecognizer::Url: + return VideoPlayerSession(); + case S60MediaRecognizer::Audio: + return AudioPlayerSession(); + default: + break; + } + + return NULL; +} + +S60MediaPlayerSession* S60MediaPlayerService::VideoPlayerSession() +{ + if (!m_videoPlayerSession) { + m_videoPlayerSession = new S60VideoPlayerSession(this); + + connect(m_videoPlayerSession, SIGNAL(positionChanged(qint64)), + m_control, SIGNAL(positionChanged(qint64))); + connect(m_videoPlayerSession, SIGNAL(durationChanged(qint64)), + m_control, SIGNAL(durationChanged(qint64))); + connect(m_videoPlayerSession, SIGNAL(stateChanged(QMediaPlayer::State)), + m_control, SIGNAL(stateChanged(QMediaPlayer::State))); + connect(m_videoPlayerSession, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), + m_control, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus))); + connect(m_videoPlayerSession,SIGNAL(bufferStatusChanged(int)), + m_control, SIGNAL(bufferStatusChanged(int))); + connect(m_videoPlayerSession, SIGNAL(videoAvailableChanged(bool)), + m_control, SIGNAL(videoAvailableChanged(bool))); + connect(m_videoPlayerSession, SIGNAL(audioAvailableChanged(bool)), + m_control, SIGNAL(audioAvailableChanged(bool))); + connect(m_videoPlayerSession, SIGNAL(seekableChanged(bool)), + m_control, SIGNAL(seekableChanged(bool))); + connect(m_videoPlayerSession, SIGNAL(availablePlaybackRangesChanged(const QMediaTimeRange&)), + m_control, SIGNAL(availablePlaybackRangesChanged(const QMediaTimeRange&))); + connect(m_videoPlayerSession, SIGNAL(error(int, const QString &)), + m_control, SIGNAL(error(int, const QString &))); + connect(m_videoPlayerSession, SIGNAL(metaDataChanged()), + m_metaData, SIGNAL(metaDataChanged())); + } + + m_videoPlayerSession->setVolume(m_control->mediaControlSettings().volume()); + m_videoPlayerSession->setMuted(m_control->mediaControlSettings().isMuted()); + return m_videoPlayerSession; +} + +S60MediaPlayerSession* S60MediaPlayerService::AudioPlayerSession() +{ + if (!m_audioPlayerSession) { + m_audioPlayerSession = new S60AudioPlayerSession(this); + + connect(m_audioPlayerSession, SIGNAL(positionChanged(qint64)), + m_control, SIGNAL(positionChanged(qint64))); + connect(m_audioPlayerSession, SIGNAL(durationChanged(qint64)), + m_control, SIGNAL(durationChanged(qint64))); + connect(m_audioPlayerSession, SIGNAL(stateChanged(QMediaPlayer::State)), + m_control, SIGNAL(stateChanged(QMediaPlayer::State))); + connect(m_audioPlayerSession, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), + m_control, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus))); + connect(m_audioPlayerSession,SIGNAL(bufferStatusChanged(int)), + m_control, SIGNAL(bufferStatusChanged(int))); + connect(m_audioPlayerSession, SIGNAL(videoAvailableChanged(bool)), + m_control, SIGNAL(videoAvailableChanged(bool))); + connect(m_audioPlayerSession, SIGNAL(audioAvailableChanged(bool)), + m_control, SIGNAL(audioAvailableChanged(bool))); + connect(m_audioPlayerSession, SIGNAL(seekableChanged(bool)), + m_control, SIGNAL(seekableChanged(bool))); + connect(m_audioPlayerSession, SIGNAL(availablePlaybackRangesChanged(const QMediaTimeRange&)), + m_control, SIGNAL(availablePlaybackRangesChanged(const QMediaTimeRange&))); + connect(m_audioPlayerSession, SIGNAL(error(int, const QString &)), + m_control, SIGNAL(error(int, const QString &))); + connect(m_audioPlayerSession, SIGNAL(metaDataChanged()), + m_metaData, SIGNAL(metaDataChanged())); + } + + m_audioPlayerSession->setVolume(m_control->mediaControlSettings().volume()); + m_audioPlayerSession->setMuted(m_control->mediaControlSettings().isMuted()); + return m_audioPlayerSession; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayerservice.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayerservice.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,105 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60VIDEOPLAYERSERVICE_H +#define S60VIDEOPLAYERSERVICE_H + +#include + +#include +#include + +#include "s60videooutputcontrol.h" +#include "ms60mediaplayerresolver.h" + +#include "s60mediaplayeraudioendpointselector.h" + +QTM_BEGIN_NAMESPACE +class QMediaMetaData; +class QMediaPlayerControl; +class QMediaPlaylist; +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE + +class S60VideoPlayerSession; +class S60AudioPlayerSession; +class S60MediaPlayerControl; +class S60MediaMetaDataProvider; +class S60VideoWidgetControl; +class S60MediaRecognizer; +class S60VideoRenderer; +class S60VideoOverlay; + +class QMediaPlaylistNavigator; + +class S60MediaPlayerService : public QMediaService, public MS60MediaPlayerResolver +{ + Q_OBJECT + +public: + S60MediaPlayerService(QObject *parent = 0); + ~S60MediaPlayerService(); + + QMediaControl *control(const char *name) const; + +private slots: + void videoOutputChanged(QVideoOutputControl::Output output); + +protected: // From MS60MediaPlayerResolver + S60MediaPlayerSession* PlayerSession(); + S60MediaPlayerSession* VideoPlayerSession(); + S60MediaPlayerSession* AudioPlayerSession(); + +private: + S60MediaPlayerControl *m_control; + S60MediaRecognizer *m_mediaRecognizer; + mutable S60VideoOutputControl *m_videoOutput; + S60VideoPlayerSession *m_videoPlayerSession; + S60AudioPlayerSession *m_audioPlayerSession; + mutable S60MediaMetaDataProvider *m_metaData; + mutable S60VideoWidgetControl *m_videoWidget; + mutable S60VideoOverlay *m_videoWindow; + mutable S60VideoRenderer *m_videoRenderer; + mutable S60MediaPlayerAudioEndpointSelector *m_audioEndpointSelector; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayersession.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayersession.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,486 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60mediaplayersession.h" + +#include +#include +#include +#include +#include +#include + +S60MediaPlayerSession::S60MediaPlayerSession(QObject *parent) + : QObject(parent) + , m_playbackRate(0) + , m_muted(false) + , m_volume(0) + , m_state(QMediaPlayer::StoppedState) + , m_mediaStatus(QMediaPlayer::UnknownMediaStatus) + , m_progressTimer(new QTimer(this)) + , m_stalledTimer(new QTimer(this)) + , m_error(KErrNone) + , m_play_requested(false) + , m_stream(false) +{ + connect(m_progressTimer, SIGNAL(timeout()), this, SLOT(tick())); + connect(m_stalledTimer, SIGNAL(timeout()), this, SLOT(stalled())); +} + +S60MediaPlayerSession::~S60MediaPlayerSession() +{ +} + +int S60MediaPlayerSession::volume() const +{ + return m_volume; +} + +void S60MediaPlayerSession::setVolume(int volume) +{ + if (m_volume == volume) + return; + + m_volume = volume; + // Dont set symbian players volume until media loaded. + // Leaves with KerrNotReady although documentation says otherwise. + if (!m_muted && + ( mediaStatus() == QMediaPlayer::LoadedMedia + || mediaStatus() == QMediaPlayer::StalledMedia + || mediaStatus() == QMediaPlayer::BufferingMedia + || mediaStatus() == QMediaPlayer::BufferedMedia + || mediaStatus() == QMediaPlayer::EndOfMedia)) { + TRAPD(err, doSetVolumeL(m_volume)); + setError(err); + } +} + +bool S60MediaPlayerSession::isMuted() const +{ + return m_muted; +} + +bool S60MediaPlayerSession::isSeekable() const +{ + return (m_stream)?false:true; +} + +void S60MediaPlayerSession::setMediaStatus(QMediaPlayer::MediaStatus status) +{ + if (m_mediaStatus == status) + return; + + m_mediaStatus = status; + + emit mediaStatusChanged(m_mediaStatus); + + if (m_play_requested) + play(); +} + +void S60MediaPlayerSession::setState(QMediaPlayer::State state) +{ + if (m_state == state) + return; + + m_state = state; + emit stateChanged(m_state); +} + +QMediaPlayer::State S60MediaPlayerSession::state() const +{ + return m_state; +} + +QMediaPlayer::MediaStatus S60MediaPlayerSession::mediaStatus() const +{ + return m_mediaStatus; +} + +void S60MediaPlayerSession::load(QUrl url) +{ + setMediaStatus(QMediaPlayer::LoadingMedia); + startStalledTimer(); + m_stream = (url.scheme() == "file")?false:true; + TRAPD(err, + if(m_stream) + doLoadUrlL(QString2TPtrC(url.toString())); + else + doLoadL(QString2TPtrC(QDir::toNativeSeparators(url.toLocalFile())))); + setError(err); +} + +void S60MediaPlayerSession::play() +{ + if (state() == QMediaPlayer::PlayingState + || mediaStatus() == QMediaPlayer::UnknownMediaStatus + || mediaStatus() == QMediaPlayer::NoMedia + || mediaStatus() == QMediaPlayer::InvalidMedia) + return; + + if (mediaStatus() == QMediaPlayer::LoadingMedia) { + m_play_requested = true; + return; + } + + m_play_requested = false; + setState(QMediaPlayer::PlayingState); + startProgressTimer(); + doPlay(); +} + +void S60MediaPlayerSession::pause() +{ + if (mediaStatus() == QMediaPlayer::NoMedia || + mediaStatus() == QMediaPlayer::InvalidMedia) + return; + + setState(QMediaPlayer::PausedState); + stopProgressTimer(); + TRAP_IGNORE(doPauseL()); +} + +void S60MediaPlayerSession::stop() +{ + m_play_requested = false; + setState(QMediaPlayer::StoppedState); + if (mediaStatus() == QMediaPlayer::BufferingMedia || + mediaStatus() == QMediaPlayer::BufferedMedia) + setMediaStatus(QMediaPlayer::LoadedMedia); + if (mediaStatus() == QMediaPlayer::LoadingMedia) + setMediaStatus(QMediaPlayer::UnknownMediaStatus); + stopProgressTimer(); + stopStalledTimer(); + doStop(); + emit positionChanged(0); +} +void S60MediaPlayerSession::reset() +{ + m_play_requested = false; + setError(KErrNone, QString(), true); + stopProgressTimer(); + stopStalledTimer(); + doStop(); + setState(QMediaPlayer::StoppedState); + setMediaStatus(QMediaPlayer::UnknownMediaStatus); +} + +void S60MediaPlayerSession::setVideoRenderer(QObject *renderer) +{ + Q_UNUSED(renderer); +} + +int S60MediaPlayerSession::bufferStatus() +{ + if( mediaStatus() == QMediaPlayer::LoadingMedia + || mediaStatus() == QMediaPlayer::UnknownMediaStatus + || mediaStatus() == QMediaPlayer::NoMedia + || mediaStatus() == QMediaPlayer::InvalidMedia) + return 0; + + int progress = 0; + TRAPD(err, progress = doGetBufferStatusL()); + + // If buffer status query not supported by codec return 100 + // do not set error + if(err == KErrNotSupported) + return 100; + + setError(err); + return progress; +} + +bool S60MediaPlayerSession::isMetadataAvailable() const +{ + return !m_metaDataMap.isEmpty(); +} + +QVariant S60MediaPlayerSession::metaData(const QString &key) const +{ + return m_metaDataMap.value(key); +} + +QMap S60MediaPlayerSession::availableMetaData() const +{ + return m_metaDataMap; +} + +void S60MediaPlayerSession::setMuted(bool muted) +{ + m_muted = muted; + + if( m_mediaStatus == QMediaPlayer::LoadedMedia + || m_mediaStatus == QMediaPlayer::StalledMedia + || m_mediaStatus == QMediaPlayer::BufferingMedia + || m_mediaStatus == QMediaPlayer::BufferedMedia + || m_mediaStatus == QMediaPlayer::EndOfMedia) { + TRAPD(err, doSetVolumeL((m_muted)?0:m_volume)); + setError(err); + } +} + +qint64 S60MediaPlayerSession::duration() const +{ + if( mediaStatus() == QMediaPlayer::LoadingMedia + || mediaStatus() == QMediaPlayer::UnknownMediaStatus + || mediaStatus() == QMediaPlayer::NoMedia + || mediaStatus() == QMediaPlayer::InvalidMedia) + return -1; + + qint64 pos = 0; + TRAP_IGNORE(pos = doGetDurationL()); + return pos; +} + +qint64 S60MediaPlayerSession::position() const +{ + if( mediaStatus() == QMediaPlayer::LoadingMedia + || mediaStatus() == QMediaPlayer::UnknownMediaStatus + || mediaStatus() == QMediaPlayer::NoMedia + || mediaStatus() == QMediaPlayer::InvalidMedia) + return 0; + + qint64 pos = 0; + TRAP_IGNORE(pos = doGetPositionL()); + return pos; +} + +void S60MediaPlayerSession::setPosition(qint64 pos) +{ + if (position() == pos) + return; + + if (state() == QMediaPlayer::PlayingState) + pause(); + + TRAPD(err, doSetPositionL(pos * 1000)); + setError(err); + + if (state() == QMediaPlayer::PausedState) + play(); + + emit positionChanged(position()); +} + +void S60MediaPlayerSession::loaded() +{ + stopStalledTimer(); + if (m_error == KErrNone || m_error == KErrMMPartialPlayback) { + setMediaStatus(QMediaPlayer::LoadedMedia); + TRAPD(err, updateMetaDataEntriesL()); + setError(err); + setVolume(m_volume); + setMuted(m_muted); + emit durationChanged(duration()); + emit videoAvailableChanged(isVideoAvailable()); + emit audioAvailableChanged(isAudioAvailable()); + } +} + +void S60MediaPlayerSession::endOfMedia() +{ + setMediaStatus(QMediaPlayer::EndOfMedia); + setState(QMediaPlayer::StoppedState); + emit positionChanged(0); +} + +void S60MediaPlayerSession::buffering() +{ + startStalledTimer(); + setMediaStatus(QMediaPlayer::BufferingMedia); +} + +void S60MediaPlayerSession::buffered() +{ + stopStalledTimer(); + setMediaStatus(QMediaPlayer::BufferedMedia); +} +void S60MediaPlayerSession::stalled() +{ + setMediaStatus(QMediaPlayer::StalledMedia); +} + +QMap& S60MediaPlayerSession::metaDataEntries() +{ + return m_metaDataMap; +} + +QMediaPlayer::Error S60MediaPlayerSession::fromSymbianErrorToMultimediaError(int error) +{ + switch(error) { + case KErrNoMemory: + case KErrNotFound: + case KErrBadHandle: + case KErrAbort: + case KErrNotSupported: + case KErrCorrupt: + case KErrGeneral: + case KErrArgument: + case KErrPathNotFound: + case KErrDied: + case KErrServerTerminated: + case KErrServerBusy: + case KErrCompletion: + case KErrBadPower: + return QMediaPlayer::ResourceError; + + case KErrMMPartialPlayback: + return QMediaPlayer::FormatError; + + case KErrMMAudioDevice: + case KErrMMVideoDevice: + case KErrMMDecoder: + case KErrUnknown: + return QMediaPlayer::ServiceMissingError; + + case KErrMMNotEnoughBandwidth: + case KErrMMSocketServiceNotFound: + case KErrMMNetworkRead: + case KErrMMNetworkWrite: + case KErrMMServerSocket: + case KErrMMServerNotSupported: + case KErrMMUDPReceive: + case KErrMMInvalidProtocol: + case KErrMMInvalidURL: + case KErrMMMulticast: + case KErrMMProxyServer: + case KErrMMProxyServerNotSupported: + case KErrMMProxyServerConnect: + return QMediaPlayer::NetworkError; + + case KErrNotReady: + case KErrInUse: + case KErrAccessDenied: + case KErrLocked: + case KErrMMDRMNotAuthorized: + case KErrPermissionDenied: + case KErrCancel: + case KErrAlreadyExists: + return QMediaPlayer::AccessDeniedError; + + case KErrNone: + default: + return QMediaPlayer::NoError; + } +} + +void S60MediaPlayerSession::setError(int error, const QString &errorString, bool forceReset) +{ + if( forceReset ) { + m_error = KErrNone; + emit this->error(QMediaPlayer::NoError, QString()); + return; + } + + // If error does not change and m_error is reseted without forceReset flag + if (error == m_error || + (m_error != KErrNone && error == KErrNone)) + return; + + m_error = error; + QMediaPlayer::Error mediaError = fromSymbianErrorToMultimediaError(m_error); + QString symbianError = QString(errorString); + + if (mediaError != QMediaPlayer::NoError) { + // TODO: fix to user friendly string at some point + // These error string are only dev usable + symbianError.append("Symbian:"); + symbianError.append(QString::number(m_error)); + } + + emit this->error(mediaError, symbianError); + + switch(mediaError){ + case QMediaPlayer::ResourceError: + case QMediaPlayer::NetworkError: + case QMediaPlayer::AccessDeniedError: + case QMediaPlayer::ServiceMissingError: + m_play_requested = false; + setMediaStatus(QMediaPlayer::InvalidMedia); + stop(); + break; + } +} + +void S60MediaPlayerSession::tick() +{ + emit positionChanged(position()); + + if (bufferStatus() < 100) + emit bufferStatusChanged(bufferStatus()); +} + +void S60MediaPlayerSession::startProgressTimer() +{ + m_progressTimer->start(500); +} + +void S60MediaPlayerSession::stopProgressTimer() +{ + m_progressTimer->stop(); +} + +void S60MediaPlayerSession::startStalledTimer() +{ + m_stalledTimer->start(30000); +} + +void S60MediaPlayerSession::stopStalledTimer() +{ + m_stalledTimer->stop(); +} +QString S60MediaPlayerSession::TDesC2QString(const TDesC& aDescriptor) +{ + return QString::fromUtf16(aDescriptor.Ptr(), aDescriptor.Length()); +} +TPtrC S60MediaPlayerSession::QString2TPtrC( const QString& string ) +{ + // Returned TPtrC is valid as long as the given parameter is valid and unmodified + return TPtrC16(static_cast(string.utf16()), string.length()); +} +QRect S60MediaPlayerSession::TRect2QRect(const TRect& tr) +{ + return QRect(tr.iTl.iX, tr.iTl.iY, tr.Width(), tr.Height()); +} +TRect S60MediaPlayerSession::QRect2TRect(const QRect& qr) +{ + return TRect(TPoint(qr.left(), qr.top()), TSize(qr.width(), qr.height())); +} \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayersession.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediaplayersession.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,164 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60MEDIAPLAYERSESSION_H +#define S60MEDIAPLAYERSESSION_H + +#include +#include +#include +#include +#include // for TDesC +#include +#include "s60mediaplayerservice.h" + +QTM_BEGIN_NAMESPACE +class QMediaTimeRange; +QTM_END_NAMESPACE + +class QTimer; + +class S60MediaPlayerSession : public QObject +{ + Q_OBJECT + +public: + S60MediaPlayerSession(QObject *parent); + virtual ~S60MediaPlayerSession(); + + // for player control interface to use + QMediaPlayer::State state() const; + QMediaPlayer::MediaStatus mediaStatus() const; + qint64 duration() const; + qint64 position() const; + void setPosition(qint64 pos); + int volume() const; + void setVolume(int volume); + bool isMuted() const; + void setMuted(bool muted); + virtual bool isVideoAvailable() const = 0; + virtual bool isAudioAvailable() const = 0; + bool isSeekable() const; + void play(); + void pause(); + void stop(); + void reset(); + bool isMetadataAvailable() const; + QVariant metaData(const QString &key) const; + QMap availableMetaData() const; + void load(QUrl url); + int bufferStatus(); + virtual void setVideoRenderer(QObject *renderer); + void setMediaStatus(QMediaPlayer::MediaStatus); + void setState(QMediaPlayer::State state); + +protected: + virtual void doLoadL(const TDesC &path) = 0; + virtual void doLoadUrlL(const TDesC &path) = 0; + virtual void doPlay() = 0; + virtual void doStop() = 0; + virtual void doPauseL() = 0; + virtual void doSetVolumeL(int volume) = 0; + virtual void doSetPositionL(qint64 microSeconds) = 0; + virtual qint64 doGetPositionL() const = 0; + virtual void updateMetaDataEntriesL() = 0; + virtual int doGetBufferStatusL() const = 0; + virtual qint64 doGetDurationL() const = 0; + +public: + // From S60MediaPlayerAudioEndpointSelector + virtual QString activeEndpoint() const = 0; + virtual QString defaultEndpoint() const = 0; +public Q_SLOTS: + virtual void setActiveEndpoint(const QString& name) = 0; +Q_SIGNALS: + virtual void activeEndpointChanged(const QString &name) = 0; + +protected: + void setError(int error, const QString &errorString = QString(), bool forceReset = false); + void loaded(); + void buffering(); + void buffered(); + void endOfMedia(); + QMap& metaDataEntries(); + QMediaPlayer::Error fromSymbianErrorToMultimediaError(int error); + void startProgressTimer(); + void stopProgressTimer(); + void startStalledTimer(); + void stopStalledTimer(); + QString TDesC2QString(const TDesC& aDescriptor); + TPtrC QString2TPtrC( const QString& string ); + QRect TRect2QRect(const TRect& tr); + TRect QRect2TRect(const QRect& qr); + + +protected slots: + void tick(); + void stalled(); + +signals: + void durationChanged(qint64 duration); + void positionChanged(qint64 position); + void stateChanged(QMediaPlayer::State state); + void mediaStatusChanged(QMediaPlayer::MediaStatus mediaStatus); + void videoAvailableChanged(bool videoAvailable); + void audioAvailableChanged(bool audioAvailable); + void bufferStatusChanged(int percentFilled); + void seekableChanged(bool); + void availablePlaybackRangesChanged(const QMediaTimeRange&); + void metaDataChanged(); + void error(int error, const QString &errorString); + +private: + qreal m_playbackRate; + QMap m_metaDataMap; + bool m_muted; + int m_volume; + QMediaPlayer::State m_state; + QMediaPlayer::MediaStatus m_mediaStatus; + QTimer *m_progressTimer; + QTimer *m_stalledTimer; + int m_error; + bool m_play_requested; + bool m_stream; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediarecognizer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediarecognizer.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,90 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "S60mediarecognizer.h" +#include +#include +#include +#include +#include + +S60MediaRecognizer::S60MediaRecognizer(QObject *parent) : QObject(parent) +{ + TRAP_IGNORE(m_recognizer = MobilityMediaRecognizer::NewL()); +} + +S60MediaRecognizer::~S60MediaRecognizer() +{ + delete m_recognizer; + m_recognizer = NULL; +} + +S60MediaRecognizer::MediaType S60MediaRecognizer::IdentifyMediaType(const QUrl &url) +{ + MobilityMediaType type = MobilityMediaRecognizer::EUnidentified; + QString filePath = QDir::toNativeSeparators(url.toLocalFile()); + if (filePath.isNull()) { + filePath = url.toString(); + } + TPtrC16 urlPtr(reinterpret_cast(filePath.utf16())); + + TRAP_IGNORE(type = m_recognizer->IdentifyMediaTypeL(urlPtr, ETrue);) + m_recognizer->FreeFilehandle(); + + switch (type) { + case MobilityMediaRecognizer::ELocalAudioFile: + return Audio; + case MobilityMediaRecognizer::ELocalVideoFile: + return Video; + case MobilityMediaRecognizer::EUrl: + return Url; + case MobilityMediaRecognizer::ELocalAudioPlaylist: + // TODO: Must be considered when streams will be implemented + case MobilityMediaRecognizer::ELocalRamFile: + case MobilityMediaRecognizer::ELocalSdpFile: + // case CMPMediaRecognizer::EProgressiveDownload: + case MobilityMediaRecognizer::EUnidentified: + default: + break; + } + + return NotSupported; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediarecognizer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60mediarecognizer.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,80 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60MEDIARECOGNIZER_H_ +#define S60MEDIARECOGNIZER_H_ + +#include + +#ifdef USE_SYMBIAN_MEDIARECOGNIZER +#include +typedef CMediaRecognizer MobilityMediaRecognizer; +typedef CMediaRecognizer::TMediaType MobilityMediaType; +#else +#include +typedef CMPMediaRecognizer MobilityMediaRecognizer; +typedef CMPMediaRecognizer::TMPMediaType MobilityMediaType; +#endif + +class QUrl; + +class S60MediaRecognizer : public QObject +{ + Q_OBJECT + +public: + enum MediaType { + Audio, + Video, + Url, + NotSupported = -1 + }; + + S60MediaRecognizer(QObject *parent = 0); + ~S60MediaRecognizer(); + + MediaType IdentifyMediaType(const QUrl &url); + +private: + MobilityMediaRecognizer *m_recognizer; +}; + +#endif /* S60MEDIARECOGNIZER_H_ */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videooverlay.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videooverlay.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,205 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include "s60videooverlay.h" +#include "s60videosurface.h" + +S60VideoOverlay::S60VideoOverlay(QObject *parent) + : QVideoWindowControl(parent) + , m_surface(new S60VideoSurface) + , m_aspectRatioMode(Qt::KeepAspectRatio) + , m_fullScreen(false) +{ + connect(m_surface, SIGNAL(surfaceFormatChanged(QVideoSurfaceFormat)), + this, SLOT(surfaceFormatChanged())); +} + +S60VideoOverlay::~S60VideoOverlay() +{ + delete m_surface; +} + +WId S60VideoOverlay::winId() const +{ + return m_surface->winId(); +} + +void S60VideoOverlay::setWinId(WId id) +{ + m_surface->setWinId(id); +} + +QRect S60VideoOverlay::displayRect() const +{ + return m_displayRect; +} + +void S60VideoOverlay::setDisplayRect(const QRect &rect) +{ + m_displayRect = rect; + + setScaledDisplayRect(); +} + +Qt::AspectRatioMode S60VideoOverlay::aspectRatioMode() const +{ + return m_aspectRatioMode; +} + +void S60VideoOverlay::setAspectRatioMode(Qt::AspectRatioMode ratio) +{ + m_aspectRatioMode = ratio; + + setScaledDisplayRect(); +} + +QSize S60VideoOverlay::customAspectRatio() const +{ + return m_aspectRatio; +} + +void S60VideoOverlay::setCustomAspectRatio(const QSize &customRatio) +{ + m_aspectRatio = customRatio; + + setScaledDisplayRect(); +} + +void S60VideoOverlay::repaint() +{ +} + +int S60VideoOverlay::brightness() const +{ + return m_surface->brightness(); +} + +void S60VideoOverlay::setBrightness(int brightness) +{ + m_surface->setBrightness(brightness); + + emit brightnessChanged(m_surface->brightness()); +} + +int S60VideoOverlay::contrast() const +{ + return m_surface->contrast(); +} + +void S60VideoOverlay::setContrast(int contrast) +{ + m_surface->setContrast(contrast); + + emit contrastChanged(m_surface->contrast()); +} + +int S60VideoOverlay::hue() const +{ + return m_surface->hue(); +} + +void S60VideoOverlay::setHue(int hue) +{ + m_surface->setHue(hue); + + emit hueChanged(m_surface->hue()); +} + +int S60VideoOverlay::saturation() const +{ + return m_surface->saturation(); +} + +void S60VideoOverlay::setSaturation(int saturation) +{ + m_surface->setSaturation(saturation); + + emit saturationChanged(m_surface->saturation()); +} + +bool S60VideoOverlay::isFullScreen() const +{ + return m_fullScreen; +} + +void S60VideoOverlay::setFullScreen(bool fullScreen) +{ + emit fullScreenChanged(m_fullScreen = fullScreen); +} + +QSize S60VideoOverlay::nativeSize() const +{ + return m_surface->surfaceFormat().sizeHint(); +} + +QAbstractVideoSurface *S60VideoOverlay::surface() const +{ + return m_surface; +} + +void S60VideoOverlay::surfaceFormatChanged() +{ + setScaledDisplayRect(); + + emit nativeSizeChanged(); +} + +void S60VideoOverlay::setScaledDisplayRect() +{ + switch (m_aspectRatioMode) { + case Qt::KeepAspectRatio: + { + QSize size = m_surface->surfaceFormat().viewport().size(); + + size.scale(m_displayRect.size(), Qt::KeepAspectRatio); + + QRect rect(QPoint(0, 0), size); + rect.moveCenter(m_displayRect.center()); + + m_surface->setDisplayRect(rect); + } + break; + case Qt::IgnoreAspectRatio: + m_surface->setDisplayRect(m_displayRect); + break; + }; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videooverlay.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videooverlay.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,107 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60VIDEOOVERLAY_H +#define S60VIDEOOVERLAY_H + +#include +#include + +QTM_USE_NAMESPACE + +class QAbstractVideoSurface; +class S60VideoSurface; + +class S60VideoOverlay : public QVideoWindowControl +{ + Q_OBJECT + +public: + S60VideoOverlay(QObject *parent = 0); + ~S60VideoOverlay(); + + WId winId() const; + void setWinId(WId id); + + QRect displayRect() const; + void setDisplayRect(const QRect &rect); + + bool isFullScreen() const; + void setFullScreen(bool fullScreen); + + QSize nativeSize() const; + + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); + + QSize customAspectRatio() const; + void setCustomAspectRatio(const QSize &customRatio); + + void repaint(); + + int brightness() const; + void setBrightness(int brightness); + + int contrast() const; + void setContrast(int contrast); + + int hue() const; + void setHue(int hue); + + int saturation() const; + void setSaturation(int saturation); + + QAbstractVideoSurface *surface() const; + +private slots: + void surfaceFormatChanged(); + +private: + void setScaledDisplayRect(); + + S60VideoSurface *m_surface; + Qt::AspectRatioMode m_aspectRatioMode; + QRect m_displayRect; + QSize m_aspectRatio; + bool m_fullScreen; +}; + +#endif // S60VIDEOOVERLAY_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videoplayersession.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videoplayersession.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,469 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60videoplayersession.h" +#include "s60videowidget.h" +#include "s60mediaplayerservice.h" +#include "s60videooverlay.h" + +#include // For qt_TRect2QRect +#include +#include +#include +#include + +#include +#include // For CCoeEnv +#include +#include + + +S60VideoPlayerSession::S60VideoPlayerSession(QMediaService *service) + : S60MediaPlayerSession(service) + , m_player(0) + , m_rect(0, 0, 0, 0) + , m_output(QVideoOutputControl::NoOutput) + , m_windowId(0) + , m_dsaActive(false) + , m_dsaStopped(false) + , m_wsSession(CCoeEnv::Static()->WsSession()) + , m_screenDevice(*CCoeEnv::Static()->ScreenDevice()) + , m_window(0) + , m_service(*service) + , m_aspectRatioMode(Qt::KeepAspectRatio) + , m_originalSize(1, 1) + , m_audioOutput(0) +{ + resetNativeHandles(); + QT_TRAP_THROWING(m_player = CVideoPlayerUtility::NewL( + *this, + 0, + EMdaPriorityPreferenceNone, + m_wsSession, + m_screenDevice, + *m_window, + m_rect, + m_rect)); + m_dsaActive = true; + m_player->RegisterForVideoLoadingNotification(*this); +#if !defined(HAS_NO_AUDIOROUTING) + //QT_TRAP_THROWING(m_audioOutput = CAudioOutput::NewL(*m_player)); + //QT_TRAP_THROWING(m_audioOutput->RegisterObserverL(*this)); +#endif +} + +S60VideoPlayerSession::~S60VideoPlayerSession() +{ +#if !defined(HAS_NO_AUDIOROUTING) + if (m_audioOutput) + m_audioOutput->UnregisterObserver(*this); + delete m_audioOutput; +#endif + m_player->Close(); + delete m_player; +} + +void S60VideoPlayerSession::doLoadL(const TDesC &path) +{ + m_player->OpenFileL(path); +} + +void S60VideoPlayerSession::doLoadUrlL(const TDesC &path) +{ + m_player->OpenUrlL(path); +} + +int S60VideoPlayerSession::doGetBufferStatusL() const +{ + int progress = 0; + m_player->GetVideoLoadingProgressL(progress); + return progress; +} + +qint64 S60VideoPlayerSession::doGetDurationL() const +{ + return m_player->DurationL().Int64() / qint64(1000); +} + +void S60VideoPlayerSession::setVideoRenderer(QObject *videoOutput) +{ + Q_UNUSED(videoOutput) + QVideoOutputControl *videoControl = qobject_cast(m_service.control(QVideoOutputControl_iid)); + + //Render changes + if (m_output != videoControl->output()) { + + if (m_output == QVideoOutputControl::WidgetOutput) { + S60VideoWidgetControl *widgetControl = qobject_cast(m_service.control(QVideoWidgetControl_iid)); + disconnect(widgetControl, SIGNAL(widgetUpdated()), this, SLOT(resetVideoDisplay())); + disconnect(widgetControl, SIGNAL(beginVideoWindowNativePaint()), this, SLOT(suspendDirectScreenAccess())); + disconnect(widgetControl, SIGNAL(endVideoWindowNativePaint()), this, SLOT(resumeDirectScreenAccess())); + disconnect(this, SIGNAL(stateChanged(QMediaPlayer::State)), widgetControl, SLOT(videoStateChanged(QMediaPlayer::State))); + } + + if (videoControl->output() == QVideoOutputControl::WidgetOutput) { + S60VideoWidgetControl *widgetControl = qobject_cast(m_service.control(QVideoWidgetControl_iid)); + connect(widgetControl, SIGNAL(widgetUpdated()), this, SLOT(resetVideoDisplay())); + connect(widgetControl, SIGNAL(beginVideoWindowNativePaint()), this, SLOT(suspendDirectScreenAccess())); + connect(widgetControl, SIGNAL(endVideoWindowNativePaint()), this, SLOT(resumeDirectScreenAccess())); + connect(this, SIGNAL(stateChanged(QMediaPlayer::State)), widgetControl, SLOT(videoStateChanged(QMediaPlayer::State))); + } + + m_output = videoControl->output(); + resetVideoDisplay(); + } +} + +bool S60VideoPlayerSession::resetNativeHandles() +{ + QVideoOutputControl* videoControl = qobject_cast(m_service.control(QVideoOutputControl_iid)); + WId newId = 0; + TRect newRect = TRect(0,0,0,0); + Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio; + + if (videoControl->output() == QVideoOutputControl::WidgetOutput) { + S60VideoWidgetControl* widgetControl = qobject_cast(m_service.control(QVideoWidgetControl_iid)); + QWidget *videoWidget = widgetControl->videoWidget(); + newId = widgetControl->videoWidgetWId(); + newRect = QRect2TRect(QRect(videoWidget->mapToGlobal(videoWidget->pos()), videoWidget->size())); + aspectRatioMode = widgetControl->aspectRatioMode(); + } else if (videoControl->output() == QVideoOutputControl::WindowOutput) { + S60VideoOverlay* windowControl = qobject_cast(m_service.control(QVideoWindowControl_iid)); + newId = windowControl->winId(); + newRect = TRect( newId->DrawableWindow()->AbsPosition(), newId->DrawableWindow()->Size()); + } else { + if (QApplication::activeWindow()) + newId = QApplication::activeWindow()->effectiveWinId(); + + if (!newId && QApplication::allWidgets().count()) + newId = QApplication::allWidgets().at(0)->effectiveWinId(); + + Q_ASSERT(newId != 0); + } + + if (newRect == m_rect && newId == m_windowId && aspectRatioMode == m_aspectRatioMode) + return false; + + if (newId) { + m_rect = newRect; + m_windowId = newId; + m_window = m_windowId->DrawableWindow(); + m_aspectRatioMode = aspectRatioMode; + return true; + } + return false; +} + +bool S60VideoPlayerSession::isVideoAvailable() const +{ +#ifdef PRE_S60_50_PLATFORM + return true; // this is not support in pre 5th platforms +#else + if (m_player) + return m_player->VideoEnabledL(); + else + return false; +#endif +} + +bool S60VideoPlayerSession::isAudioAvailable() const +{ + if (m_player) + return m_player->AudioEnabledL(); + else + return false; +} + +void S60VideoPlayerSession::doPlay() +{ + m_player->Play(); +} + +void S60VideoPlayerSession::doPauseL() +{ + m_player->PauseL(); +} + +void S60VideoPlayerSession::doStop() +{ + m_player->Stop(); +} + +qint64 S60VideoPlayerSession::doGetPositionL() const +{ + return m_player->PositionL().Int64() / qint64(1000); +} + +void S60VideoPlayerSession::doSetPositionL(qint64 microSeconds) +{ + m_player->SetPositionL(TTimeIntervalMicroSeconds(microSeconds)); +} + +void S60VideoPlayerSession::doSetVolumeL(int volume) +{ + m_player->SetVolumeL((volume / 100.0)* m_player->MaxVolume()); +} + +QPair S60VideoPlayerSession::scaleFactor() +{ + QSize scaled = m_originalSize; + if (m_aspectRatioMode == Qt::IgnoreAspectRatio) + scaled.scale(qt_TRect2QRect(m_rect).size(), Qt::IgnoreAspectRatio); + else if(m_aspectRatioMode == Qt::KeepAspectRatio) + scaled.scale(qt_TRect2QRect(m_rect).size(), Qt::KeepAspectRatio); + + qreal width = qreal(scaled.width()) / qreal(m_originalSize.width()) * qreal(100); + qreal height = qreal(scaled.height()) / qreal(m_originalSize.height()) * qreal(100); + + return QPair(width, height); +} + +void S60VideoPlayerSession::startDirectScreenAccess() +{ + if(m_dsaActive) + return; + + TRAPD(err, m_player->StartDirectScreenAccessL()); + if(err == KErrNone) + m_dsaActive = true; + setError(err); +} + +bool S60VideoPlayerSession::stopDirectScreenAccess() +{ + if(!m_dsaActive) + return false; + + TRAPD(err, m_player->StopDirectScreenAccessL()); + if(err == KErrNone) + m_dsaActive = false; + + setError(err); + return true; +} + +void S60VideoPlayerSession::MvpuoOpenComplete(TInt aError) +{ + setError(aError); + m_player->Prepare(); +} + +void S60VideoPlayerSession::MvpuoPrepareComplete(TInt aError) +{ + setError(aError); + TRAPD(err, + m_player->SetDisplayWindowL(m_wsSession, + m_screenDevice, + *m_window, + m_rect, + m_rect); + TSize originalSize; + m_player->VideoFrameSizeL(originalSize); + m_originalSize = QSize(originalSize.iWidth, originalSize.iHeight); + m_player->SetScaleFactorL(scaleFactor().first, scaleFactor().second, true)); + + setError(err); + m_dsaActive = true; + loaded(); +} + +void S60VideoPlayerSession::MvpuoFrameReady(CFbsBitmap &aFrame, TInt aError) +{ + Q_UNUSED(aFrame); + Q_UNUSED(aError); +} + +void S60VideoPlayerSession::MvpuoPlayComplete(TInt aError) +{ + setError(aError); + endOfMedia(); +} + +void S60VideoPlayerSession::MvpuoEvent(const TMMFEvent &aEvent) +{ + Q_UNUSED(aEvent); +} + +void S60VideoPlayerSession::updateMetaDataEntriesL() +{ + metaDataEntries().clear(); + int numberOfMetaDataEntries = 0; + + numberOfMetaDataEntries = m_player->NumberOfMetaDataEntriesL(); + + for (int i = 0; i < numberOfMetaDataEntries; i++) { + CMMFMetaDataEntry *entry = NULL; + entry = m_player->MetaDataEntryL(i); + metaDataEntries().insert(TDesC2QString(entry->Name()), TDesC2QString(entry->Value())); + delete entry; + } + emit metaDataChanged(); +} + +void S60VideoPlayerSession::resetVideoDisplay() +{ + if (resetNativeHandles()) { + TRAPD(err, + m_player->SetDisplayWindowL(m_wsSession, + m_screenDevice, + *m_window, + m_rect, + m_rect)); + setError(err); + if( mediaStatus() == QMediaPlayer::LoadedMedia + || mediaStatus() == QMediaPlayer::StalledMedia + || mediaStatus() == QMediaPlayer::BufferingMedia + || mediaStatus() == QMediaPlayer::BufferedMedia + || mediaStatus() == QMediaPlayer::EndOfMedia) { + TRAPD(err, m_player->SetScaleFactorL(scaleFactor().first, scaleFactor().second, true)); + setError(err); + } + } +} + +void S60VideoPlayerSession::suspendDirectScreenAccess() +{ + m_dsaStopped = stopDirectScreenAccess(); +} + +void S60VideoPlayerSession::resumeDirectScreenAccess() +{ + if(!m_dsaStopped) + return; + + startDirectScreenAccess(); + m_dsaStopped = false; +} + +void S60VideoPlayerSession::MvloLoadingStarted() +{ + buffering(); +} + +void S60VideoPlayerSession::MvloLoadingComplete() +{ + buffered(); +} + +QString S60VideoPlayerSession::activeEndpoint() const +{ + QString outputName; +#if !defined(HAS_NO_AUDIOROUTING) + if (m_audioOutput) { + CAudioOutput::TAudioOutputPreference output = m_audioOutput->AudioOutput(); + outputName = qStringFromTAudioOutputPreference(output); + } +#endif + return outputName; +} + +QString S60VideoPlayerSession::defaultEndpoint() const +{ + QString outputName; +#if !defined(HAS_NO_AUDIOROUTING) + if (m_audioOutput) { + CAudioOutput::TAudioOutputPreference output = m_audioOutput->DefaultAudioOutput(); + outputName = qStringFromTAudioOutputPreference(output); + } + return outputName; +#endif + return QString("Default"); +} + +void S60VideoPlayerSession::setActiveEndpoint(const QString& name) +{ + CAudioOutput::TAudioOutputPreference output = CAudioOutput::ENoPreference; + + if (name == QString("Default")) + output = CAudioOutput::ENoPreference; + else if (name == QString("All")) + output = CAudioOutput::EAll; + else if (name == QString("None")) + output = CAudioOutput::ENoOutput; + else if (name == QString("Earphone")) + output = CAudioOutput::EPrivate; + else if (name == QString("Speaker")) + output = CAudioOutput::EPublic; +#if !defined(HAS_NO_AUDIOROUTING) + if (m_audioOutput) { + TRAPD(err, m_audioOutput->SetAudioOutputL(output)); + setError(err); + } +#endif +} + +void S60VideoPlayerSession::DefaultAudioOutputChanged( CAudioOutput& aAudioOutput, + CAudioOutput::TAudioOutputPreference aNewDefault ) +{ +#if !defined(HAS_NO_AUDIOROUTING) + if (m_audioOutput) { + CAudioOutput::TAudioOutputPreference output = m_audioOutput->AudioOutput(); + if (output == CAudioOutput::ENoPreference) { + QString name; + if (output == CAudioOutput::EAll) + name = QString("All"); + else if (output == CAudioOutput::ENoOutput) + name = QString("None"); + else if (output == CAudioOutput::EPrivate) + name = QString("Earphone"); + else if (output == CAudioOutput::EPublic) + name = QString("Speaker"); + if (!name.isEmpty()) + emit activeEndpointChanged(name); + } + } +#endif +} + +QString S60VideoPlayerSession::qStringFromTAudioOutputPreference(CAudioOutput::TAudioOutputPreference output) const +{ + if (output == CAudioOutput::ENoPreference) + return QString("Default"); + else if (output == CAudioOutput::EAll) + return QString("All"); + else if (output == CAudioOutput::ENoOutput) + return QString("None"); + else if (output == CAudioOutput::EPrivate) + return QString("Earphone"); + else if (output == CAudioOutput::EPublic) + return QString("Speaker"); + return QString(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videoplayersession.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videoplayersession.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,142 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60VIDEOPLAYERSESSION_H +#define S60VIDEOPLAYERSESSION_H + +#include "s60mediaplayersession.h" +#include "s60mediaplayeraudioendpointselector.h" +#include +#include +#include + +#include +#include + +class QTimer; + +class S60VideoPlayerSession : public S60MediaPlayerSession, + public MVideoPlayerUtilityObserver, + public MVideoLoadingObserver, + public MAudioOutputObserver +{ + Q_OBJECT + +public: + S60VideoPlayerSession(QMediaService *service); + ~S60VideoPlayerSession(); + + //From S60MediaPlayerSession + bool isVideoAvailable() const; + bool isAudioAvailable() const; + void setVideoRenderer(QObject *renderer); + + //From MVideoLoadingObserver + void MvloLoadingStarted(); + void MvloLoadingComplete(); + + // From MAudioOutputObserver + void DefaultAudioOutputChanged(CAudioOutput& aAudioOutput, + CAudioOutput::TAudioOutputPreference aNewDefault); + +public: + // From S60MediaPlayerAudioEndpointSelector + QString activeEndpoint() const; + QString defaultEndpoint() const; +public Q_SLOTS: + void setActiveEndpoint(const QString& name); +Q_SIGNALS: + void activeEndpointChanged(const QString &name); + +protected: + //From S60MediaPlayerSession + void doLoadL(const TDesC &path); + void doLoadUrlL(const TDesC &path); + void doPlay(); + void doStop(); + void doPauseL(); + void doSetVolumeL(int volume); + qint64 doGetPositionL() const; + void doSetPositionL(qint64 microSeconds); + void updateMetaDataEntriesL(); + int doGetBufferStatusL() const; + qint64 doGetDurationL() const; + +private slots: + void resetVideoDisplay(); + void suspendDirectScreenAccess(); + void resumeDirectScreenAccess(); + +private: + bool resetNativeHandles(); + QPair scaleFactor(); + void startDirectScreenAccess(); + bool stopDirectScreenAccess(); + QString qStringFromTAudioOutputPreference(CAudioOutput::TAudioOutputPreference output) const; + + + // From MVideoPlayerUtilityObserver + void MvpuoOpenComplete(TInt aError); + void MvpuoPrepareComplete(TInt aError); + void MvpuoFrameReady(CFbsBitmap &aFrame, TInt aError); + void MvpuoPlayComplete(TInt aError); + void MvpuoEvent(const TMMFEvent &aEvent); + +private: + // Qwn + CVideoPlayerUtility *m_player; + TRect m_rect; + QVideoOutputControl::Output m_output; + WId m_windowId; + bool m_dsaActive; + bool m_dsaStopped; + + //Reference + RWsSession &m_wsSession; + CWsScreenDevice &m_screenDevice; + RWindowBase *m_window; + QMediaService &m_service; + Qt::AspectRatioMode m_aspectRatioMode; + QSize m_originalSize; + CAudioOutput *m_audioOutput; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videorenderer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videorenderer.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,66 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60videorenderer.h" + +#include +#include + +S60VideoRenderer::S60VideoRenderer(QObject *parent) + : QVideoRendererControl(parent) +{ +} + +S60VideoRenderer::~S60VideoRenderer() +{ +} + + +QAbstractVideoSurface *S60VideoRenderer::surface() const +{ + return m_surface; +} + +void S60VideoRenderer::setSurface(QAbstractVideoSurface *surface) +{ + m_surface = surface; +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videorenderer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videorenderer.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,66 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60VIDEORENDERER_H +#define S60VIDEORENDERER_H + +#include +#include + +QTM_USE_NAMESPACE + +class S60VideoRenderer : public QVideoRendererControl +{ + Q_OBJECT + +public: + S60VideoRenderer(QObject *parent = 0); + virtual ~S60VideoRenderer(); + + QAbstractVideoSurface *surface() const; + void setSurface(QAbstractVideoSurface *surface); + +private: + + QAbstractVideoSurface *m_surface; +}; + +#endif // S60VIDEORENDERER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videosurface.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videosurface.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,475 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include + +#include "s60videosurface.h" + +/*struct XvFormatRgb +{ + QVideoFrame::PixelFormat pixelFormat; + int bits_per_pixel; + int format; + int num_planes; + + int depth; + unsigned int red_mask; + unsigned int green_mask; + unsigned int blue_mask; + +};*/ +/* +bool operator ==(const XvImageFormatValues &format, const XvFormatRgb &rgb) +{ + return format.type == XvRGB + && format.bits_per_pixel == rgb.bits_per_pixel + && format.format == rgb.format + && format.num_planes == rgb.num_planes + && format.depth == rgb.depth + && format.red_mask == rgb.red_mask + && format.blue_mask == rgb.blue_mask; +} + +static const XvFormatRgb qt_xvRgbLookup[] = +{ + { QVideoFrame::Format_ARGB32, 32, XvPacked, 1, 32, 0x00FF0000, 0x0000FF00, 0x000000FF }, + { QVideoFrame::Format_RGB32 , 32, XvPacked, 1, 24, 0x00FF0000, 0x0000FF00, 0x000000FF }, + { QVideoFrame::Format_RGB24 , 24, XvPacked, 1, 24, 0x00FF0000, 0x0000FF00, 0x000000FF }, + { QVideoFrame::Format_RGB565, 16, XvPacked, 1, 16, 0x0000F800, 0x000007E0, 0x0000001F }, + { QVideoFrame::Format_BGRA32, 32, XvPacked, 1, 32, 0xFF000000, 0x00FF0000, 0x0000FF00 }, + { QVideoFrame::Format_BGR32 , 32, XvPacked, 1, 24, 0x00FF0000, 0x0000FF00, 0x000000FF }, + { QVideoFrame::Format_BGR24 , 24, XvPacked, 1, 24, 0x00FF0000, 0x0000FF00, 0x000000FF }, + { QVideoFrame::Format_BGR565, 16, XvPacked, 1, 16, 0x0000F800, 0x000007E0, 0x0000001F } +}; + +struct XvFormatYuv +{ + QVideoFrame::PixelFormat pixelFormat; + int bits_per_pixel; + int format; + int num_planes; + + unsigned int y_sample_bits; + unsigned int u_sample_bits; + unsigned int v_sample_bits; + unsigned int horz_y_period; + unsigned int horz_u_period; + unsigned int horz_v_period; + unsigned int vert_y_period; + unsigned int vert_u_period; + unsigned int vert_v_period; + char component_order[32]; +}; + +bool operator ==(const XvImageFormatValues &format, const XvFormatYuv &yuv) +{ + return format.type == XvYUV + && format.bits_per_pixel == yuv.bits_per_pixel + && format.format == yuv.format + && format.num_planes == yuv.num_planes + && format.y_sample_bits == yuv.y_sample_bits + && format.u_sample_bits == yuv.u_sample_bits + && format.v_sample_bits == yuv.v_sample_bits + && format.horz_y_period == yuv.horz_y_period + && format.horz_u_period == yuv.horz_u_period + && format.horz_v_period == yuv.horz_v_period + && format.horz_y_period == yuv.vert_y_period + && format.vert_u_period == yuv.vert_u_period + && format.vert_v_period == yuv.vert_v_period + && qstrncmp(format.component_order, yuv.component_order, 32) == 0; +} + +static const XvFormatYuv qt_xvYuvLookup[] = +{ + { QVideoFrame::Format_YUV444 , 24, XvPacked, 1, 8, 8, 8, 1, 1, 1, 1, 1, 1, "YUV" }, + { QVideoFrame::Format_YUV420P, 12, XvPlanar, 3, 8, 8, 8, 1, 2, 2, 1, 2, 2, "YUV" }, + { QVideoFrame::Format_YV12 , 12, XvPlanar, 3, 8, 8, 8, 1, 2, 2, 1, 2, 2, "YVU" }, + { QVideoFrame::Format_UYVY , 16, XvPacked, 1, 8, 8, 8, 1, 2, 2, 1, 1, 1, "UYVY" }, + { QVideoFrame::Format_YUYV , 16, XvPacked, 1, 8, 8, 8, 1, 2, 2, 1, 1, 1, "YUYV" }, + { QVideoFrame::Format_NV12 , 12, XvPlanar, 2, 8, 8, 8, 1, 2, 2, 1, 2, 2, "YUV" }, + { QVideoFrame::Format_NV12 , 12, XvPlanar, 2, 8, 8, 8, 1, 2, 2, 1, 2, 2, "YVU" }, + { QVideoFrame::Format_Y8 , 8 , XvPlanar, 1, 8, 0, 0, 1, 0, 0, 1, 0, 0, "Y" } +}; +*/ + +S60VideoSurface::S60VideoSurface(QObject *parent) + : QAbstractVideoSurface(parent) + , m_winId(0) + //, m_portId(0) + //, m_gc(0) + //, m_image(0) +{ +} + +S60VideoSurface::~S60VideoSurface() +{ + /*if (m_gc) + XFreeGC(QX11Info::display(), m_gc); + + if (m_portId != 0) + XvUngrabPort(QX11Info::display(), m_portId, 0); + */ +} + +WId S60VideoSurface::winId() const +{ + return m_winId; +} + +void S60VideoSurface::setWinId(WId id) +{ + /*if (id == m_winId) + return; + + if (m_image) + XFree(m_image); + + if (m_gc) { + XFreeGC(QX11Info::display(), m_gc); + m_gc = 0; + } + + if (m_portId != 0) + XvUngrabPort(QX11Info::display(), m_portId, 0); + + m_supportedPixelFormats.clear(); + m_formatIds.clear(); + + m_winId = id; + + if (m_winId && findPort()) { + querySupportedFormats(); + + m_gc = XCreateGC(QX11Info::display(), m_winId, 0, 0); + + if (m_image) { + m_image = 0; + + if (!start(surfaceFormat())) + QAbstractVideoSurface::stop(); + } + } else if (m_image) { + m_image = 0; + + QAbstractVideoSurface::stop(); + }*/ +} + +QRect S60VideoSurface::displayRect() const +{ + return m_displayRect; +} + +void S60VideoSurface::setDisplayRect(const QRect &rect) +{ + m_displayRect = rect; +} + +int S60VideoSurface::brightness() const +{ + //return getAttribute("XV_BRIGHTNESS", m_brightnessRange.first, m_brightnessRange.second); +} + +void S60VideoSurface::setBrightness(int brightness) +{ + //setAttribute("XV_BRIGHTNESS", brightness, m_brightnessRange.first, m_brightnessRange.second); +} + +int S60VideoSurface::contrast() const +{ + //return getAttribute("XV_CONTRAST", m_contrastRange.first, m_contrastRange.second); +} + +void S60VideoSurface::setContrast(int contrast) +{ + //setAttribute("XV_CONTRAST", contrast, m_contrastRange.first, m_contrastRange.second); +} + +int S60VideoSurface::hue() const +{ + //return getAttribute("XV_HUE", m_hueRange.first, m_hueRange.second); +} + +void S60VideoSurface::setHue(int hue) +{ + // setAttribute("XV_HUE", hue, m_hueRange.first, m_hueRange.second); +} + +int S60VideoSurface::saturation() const +{ + //return getAttribute("XV_SATURATION", m_saturationRange.first, m_saturationRange.second); +} + +void S60VideoSurface::setSaturation(int saturation) +{ + //setAttribute("XV_SATURATION", saturation, m_saturationRange.first, m_saturationRange.second); +} + +int S60VideoSurface::getAttribute(const char *attribute, int minimum, int maximum) const +{ + /*if (m_portId != 0) { + Display *display = QX11Info::display(); + + Atom atom = XInternAtom(display, attribute, True); + + int value = 0; + + XvGetPortAttribute(display, m_portId, atom, &value); + + return redistribute(value, minimum, maximum, -100, 100); + } else { + return 0; + }*/ +} + +void S60VideoSurface::setAttribute(const char *attribute, int value, int minimum, int maximum) +{ + /* if (m_portId != 0) { + Display *display = QX11Info::display(); + + Atom atom = XInternAtom(display, attribute, True); + + XvSetPortAttribute( + display, m_portId, atom, redistribute(value, -100, 100, minimum, maximum)); + }*/ +} + +int S60VideoSurface::redistribute( + int value, int fromLower, int fromUpper, int toLower, int toUpper) +{ + /*return fromUpper != fromLower + ? ((value - fromLower) * (toUpper - toLower) / (fromUpper - fromLower)) + toLower + : 0;*/ +} + +QList S60VideoSurface::supportedPixelFormats( + QAbstractVideoBuffer::HandleType handleType) const +{ + /*return handleType == QAbstractVideoBuffer::NoHandle + ? m_supportedPixelFormats + : QList();*/ +} + +bool S60VideoSurface::start(const QVideoSurfaceFormat &format) +{ + /*if (m_image) + XFree(m_image); + + int xvFormatId = 0; + for (int i = 0; i < m_supportedPixelFormats.count(); ++i) { + if (m_supportedPixelFormats.at(i) == format.pixelFormat()) { + xvFormatId = m_formatIds.at(i); + break; + } + } + + if (xvFormatId == 0) { + setError(UnsupportedFormatError); + } else { + XvImage *image = XvCreateImage( + QX11Info::display(), + m_portId, + xvFormatId, + 0, + format.frameWidth(), + format.frameHeight()); + + if (!image) { + setError(ResourceError); + } else { + m_viewport = format.viewport(); + m_image = image; + + return QAbstractVideoSurface::start(format); + } + } + + if (m_image) { + m_image = 0; + + QAbstractVideoSurface::stop(); + } +*/ + return false; +} + +void S60VideoSurface::stop() +{/* + if (m_image) { + XFree(m_image); + m_image = 0; + + QAbstractVideoSurface::stop(); + }*/ +} + +bool S60VideoSurface::present(const QVideoFrame &frame) +{/* + if (!m_image) { + setError(StoppedError); + return false; + } else if (m_image->width != frame.width() || m_image->height != frame.height()) { + setError(IncorrectFormatError); + return false; + } else { + QVideoFrame frameCopy(frame); + + if (!frameCopy.map(QAbstractVideoBuffer::ReadOnly)) { + setError(IncorrectFormatError); + return false; + } else { + bool presented = false; + + if (m_image->data_size > frame.numBytes()) { + qWarning("Insufficient frame buffer size"); + setError(IncorrectFormatError); + } else if (m_image->num_planes > 0 && m_image->pitches[0] != frame.bytesPerLine()) { + qWarning("Incompatible frame pitches"); + setError(IncorrectFormatError); + } else { + m_image->data = reinterpret_cast(frameCopy.bits()); + + XvPutImage( + QX11Info::display(), + m_portId, + m_winId, + m_gc, + m_image, + m_viewport.x(), + m_viewport.y(), + m_viewport.width(), + m_viewport.height(), + m_displayRect.x(), + m_displayRect.y(), + m_displayRect.width(), + m_displayRect.height()); + + m_image->data = 0; + + presented = true; + } + + frameCopy.unmap(); + + return presented; + } + }*/ +} + +bool S60VideoSurface::findPort() +{/* + unsigned int count = 0; + XvAdaptorInfo *adaptors = 0; + bool portFound = false; + + if (XvQueryAdaptors(QX11Info::display(), m_winId, &count, &adaptors) == Success) { + for (unsigned int i = 0; i < count && !portFound; ++i) { + if (adaptors[i].type & XvImageMask) { + m_portId = adaptors[i].base_id; + + for (unsigned int j = 0; j < adaptors[i].num_ports && !portFound; ++j, ++m_portId) + portFound = XvGrabPort(QX11Info::display(), m_portId, 0) == Success; + } + } + XvFreeAdaptorInfo(adaptors); + } + + return portFound;*/ +} + +void S60VideoSurface::querySupportedFormats() +{/* + int count = 0; + if (XvImageFormatValues *imageFormats = XvListImageFormats( + QX11Info::display(), m_portId, &count)) { + const int rgbCount = sizeof(qt_xvRgbLookup) / sizeof(XvFormatRgb); + const int yuvCount = sizeof(qt_xvYuvLookup) / sizeof(XvFormatYuv); + + for (int i = 0; i < count; ++i) { + switch (imageFormats[i].type) { + case XvRGB: + for (int j = 0; j < rgbCount; ++j) { + if (imageFormats[i] == qt_xvRgbLookup[j]) { + m_supportedPixelFormats.append(qt_xvRgbLookup[j].pixelFormat); + m_formatIds.append(imageFormats[i].id); + break; + } + } + break; + case XvYUV: + for (int j = 0; j < yuvCount; ++j) { + if (imageFormats[i] == qt_xvYuvLookup[j]) { + m_supportedPixelFormats.append(qt_xvYuvLookup[j].pixelFormat); + m_formatIds.append(imageFormats[i].id); + break; + } + } + break; + } + } + XFree(imageFormats); + } + + m_brightnessRange = qMakePair(0, 0); + m_contrastRange = qMakePair(0, 0); + m_hueRange = qMakePair(0, 0); + m_saturationRange = qMakePair(0, 0); + + if (XvAttribute *attributes = XvQueryPortAttributes(QX11Info::display(), m_portId, &count)) { + for (int i = 0; i < count; ++i) { + if (qstrcmp(attributes[i].name, "XV_BRIGHTNESS") == 0) + m_brightnessRange = qMakePair(attributes[i].min_value, attributes[i].max_value); + else if (qstrcmp(attributes[i].name, "XV_CONTRAST") == 0) + m_contrastRange = qMakePair(attributes[i].min_value, attributes[i].max_value); + else if (qstrcmp(attributes[i].name, "XV_HUE") == 0) + m_hueRange = qMakePair(attributes[i].min_value, attributes[i].max_value); + else if (qstrcmp(attributes[i].name, "XV_SATURATION") == 0) + m_saturationRange = qMakePair(attributes[i].min_value, attributes[i].max_value); + } + + XFree(attributes); + }*/ +} + +bool S60VideoSurface::isFormatSupported(const QVideoSurfaceFormat &format) const +{ +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videosurface.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videosurface.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,106 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60VIDEOSURFACE_H +#define S60VIDEOSURFACE_H + +#include +#include + +class S60VideoSurface : public QAbstractVideoSurface +{ + Q_OBJECT +public: + S60VideoSurface(QObject *parent = 0); + ~S60VideoSurface(); + + WId winId() const; + void setWinId(WId id); + + QRect displayRect() const; + void setDisplayRect(const QRect &rect); + + int brightness() const; + void setBrightness(int brightness); + + int contrast() const; + void setContrast(int contrast); + + int hue() const; + void setHue(int hue); + + int saturation() const; + void setSaturation(int saturation); + + QList supportedPixelFormats( + QAbstractVideoBuffer::HandleType handleType = QAbstractVideoBuffer::NoHandle) const; + + bool isFormatSupported(const QVideoSurfaceFormat &format) const; + + bool start(const QVideoSurfaceFormat &format); + void stop(); + + bool present(const QVideoFrame &frame); + +private: + WId m_winId; + //XvPortID m_portId; + //GC m_gc; + //XvImage *m_image; + QList m_supportedPixelFormats; + QVector m_formatIds; + QRect m_viewport; + QRect m_displayRect; + QPair m_brightnessRange; + QPair m_contrastRange; + QPair m_hueRange; + QPair m_saturationRange; + + bool findPort(); + void querySupportedFormats(); + + int getAttribute(const char *attribute, int minimum, int maximum) const; + void setAttribute(const char *attribute, int value, int minimum, int maximum); + + static int redistribute(int value, int fromLower, int fromUpper, int toLower, int toUpper); +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videowidget.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videowidget.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,212 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60videowidget.h" +#ifdef USE_PRIVATE_QWIDGET_METHODS +#include +#endif +#include +#include // For CCoeEnv + +QBlackWidget::QBlackWidget(QWidget *parent) + : QWidget(parent) +{ + setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + setAttribute(Qt::WA_OpaquePaintEvent, true); + setAttribute(Qt::WA_NoSystemBackground, true); + setAutoFillBackground(false); + setPalette(QPalette(Qt::black)); +#ifdef USE_PRIVATE_QWIDGET_METHODS +#if QT_VERSION >= 0x040601 && !defined(__WINSCW__) + qt_widget_private(this)->extraData()->nativePaintMode = QWExtra::ZeroFill; + qt_widget_private(this)->extraData()->receiveNativePaintEvents = true; +#endif +#endif +} + +QBlackWidget::~QBlackWidget() +{ +} + +void QBlackWidget::beginNativePaintEvent(const QRect& /*controlRect*/) +{ + emit beginVideoWindowNativePaint(); +} + +void QBlackWidget::endNativePaintEvent(const QRect& /*controlRect*/) +{ + CCoeEnv::Static()->WsSession().Flush(); + emit endVideoWindowNativePaint(); +} + +void QBlackWidget::paintEvent(QPaintEvent *event) +{ + Q_UNUSED(event); + // Do nothing +} + +S60VideoWidgetControl::S60VideoWidgetControl(QObject *parent) + : QVideoWidgetControl(parent) + , m_widget(0) + , m_aspectRatioMode(Qt::KeepAspectRatio) +{ + m_widget = new QBlackWidget(); + connect(m_widget, SIGNAL(beginVideoWindowNativePaint()), this, SIGNAL(beginVideoWindowNativePaint())); + connect(m_widget, SIGNAL(endVideoWindowNativePaint()), this, SIGNAL(endVideoWindowNativePaint())); + m_widget->installEventFilter(this); + m_widget->winId(); +} + +S60VideoWidgetControl::~S60VideoWidgetControl() +{ + delete m_widget; +} + +QWidget *S60VideoWidgetControl::videoWidget() +{ + return m_widget; +} + +Qt::AspectRatioMode S60VideoWidgetControl::aspectRatioMode() const +{ + return m_aspectRatioMode; +} + +void S60VideoWidgetControl::setAspectRatioMode(Qt::AspectRatioMode ratio) +{ + if (m_aspectRatioMode == ratio) + return; + + m_aspectRatioMode = ratio; + emit widgetUpdated(); +} + +bool S60VideoWidgetControl::isFullScreen() const +{ + return m_widget->isFullScreen(); +} + +void S60VideoWidgetControl::setFullScreen(bool fullScreen) +{ + emit fullScreenChanged(fullScreen); +} + +int S60VideoWidgetControl::brightness() const +{ + return 0; +} + +void S60VideoWidgetControl::setBrightness(int brightness) +{ + Q_UNUSED(brightness); +} + +int S60VideoWidgetControl::contrast() const +{ + return 0; +} + +void S60VideoWidgetControl::setContrast(int contrast) +{ + Q_UNUSED(contrast); +} + +int S60VideoWidgetControl::hue() const +{ + return 0; +} + +void S60VideoWidgetControl::setHue(int hue) +{ + Q_UNUSED(hue); +} + +int S60VideoWidgetControl::saturation() const +{ + return 0; +} + +void S60VideoWidgetControl::setSaturation(int saturation) +{ + Q_UNUSED(saturation); +} + +bool S60VideoWidgetControl::eventFilter(QObject *object, QEvent *e) +{ + if (object == m_widget) { + if ( e->type() == QEvent::Resize + || e->type() == QEvent::Move + || e->type() == QEvent::WinIdChange + || e->type() == QEvent::ParentChange + || e->type() == QEvent::Show) + emit widgetUpdated(); + } + return false; +} + +WId S60VideoWidgetControl::videoWidgetWId() +{ + if (m_widget->internalWinId()) + return m_widget->internalWinId(); + + if (m_widget->effectiveWinId()) + return m_widget->effectiveWinId(); + + return NULL; +} + +void S60VideoWidgetControl::videoStateChanged(QMediaPlayer::State state) +{ + if (state == QMediaPlayer::StoppedState) { +#ifdef USE_PRIVATE_QWIDGET_METHODS +#if QT_VERSION <= 0x040600 && !defined(FF_QT) + qt_widget_private(m_widget)->extraData()->disableBlit = false; +#endif +#endif + m_widget->repaint(); + } else if (state == QMediaPlayer::PlayingState) { +#ifdef USE_PRIVATE_QWIDGET_METHODS +#if QT_VERSION <= 0x040600 && !defined(FF_QT) + qt_widget_private(m_widget)->extraData()->disableBlit = true; +#endif +#endif + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videowidget.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mediaplayer/s60videowidget.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,112 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60VIDEOWIDGET_H +#define S60VIDEOWIDGET_H + +#include +#include + +QTM_USE_NAMESPACE + +class QBlackWidget : public QWidget +{ + Q_OBJECT + +public: + QBlackWidget(QWidget *parent = 0); + virtual ~QBlackWidget(); + +signals: + void beginVideoWindowNativePaint(); + void endVideoWindowNativePaint(); + +public slots: + void beginNativePaintEvent(const QRect&); + void endNativePaintEvent(const QRect&); + +protected: + void paintEvent(QPaintEvent *event); +}; + +class S60VideoWidgetControl : public QVideoWidgetControl +{ + Q_OBJECT + +public: + S60VideoWidgetControl(QObject *parent = 0); + virtual ~S60VideoWidgetControl(); + + // from QVideoWidgetControl + QWidget *videoWidget(); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode ratio); + bool isFullScreen() const; + void setFullScreen(bool fullScreen); + int brightness() const; + void setBrightness(int brightness); + int contrast() const; + void setContrast(int contrast); + int hue() const; + void setHue(int hue); + int saturation() const; + void setSaturation(int saturation); + + // from QObject + bool eventFilter(QObject *object, QEvent *event); + + //new methods + WId videoWidgetWId(); + +signals: + void widgetUpdated(); + void beginVideoWindowNativePaint(); + void endVideoWindowNativePaint(); + +private slots: + void videoStateChanged(QMediaPlayer::State state); + +private: + QBlackWidget *m_widget; + Qt::AspectRatioMode m_aspectRatioMode; +}; + +#endif // S60VIDEOWIDGET_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/mmf.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/mmf.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,55 @@ +TEMPLATE = lib +QT += multimedia +CONFIG += plugin +TARGET = QtMobilityMmfEngine +PLUGIN_SUBDIR = mediaservice +include (../../../../common.pri) +qtAddLibrary(QtMedia) + +#includes here so that all defines are added here also +include (../common/symbiancommon.pri) +include(mediaplayer/mediaplayer_s60.pri) +include(radio/radio.pri) + +# check if we are going to build openmax backend, if yes then disable mmf backend for audiorecording +exists($${EPOCROOT}epoc32/include/platform/mw/khronos/OpenMAXAL.h) { + message("Not enabling mmf mediarecording backend") +} else { + message("Enabling mmf mediarecording backend") + include(audiosource/audiosource_s60.pri) +} + + + +DEPENDPATH += . +INCLUDEPATH += . \ + $${SOURCE_DIR}/include \ + $${SOURCE_DIR}/src/multimedia \ + $${SOURCE_DIR}/src/multimedia/experimental \ + $${SOURCE_DIR} + + +HEADERS += s60mediaserviceplugin.h + +SOURCES += s60mediaserviceplugin.cpp + +contains(S60_VERSION, 3.2)|contains(S60_VERSION, 3.1) { + DEFINES += PRE_S60_50_PLATFORM +} + +load(data_caging_paths) +TARGET.EPOCALLOWDLLDATA = 1 +TARGET.UID3=0x2002AC76 +TARGET.CAPABILITY = ALL -TCB +MMP_RULES += EXPORTUNFROZEN + +#make a sis package from plugin + api + stub (plugin) +pluginDep.sources = $${TARGET}.dll +pluginDep.path = $${QT_PLUGINS_BASE_DIR}/$${PLUGIN_SUBDIR} +DEPLOYMENT += pluginDep + +#Media API spesific deployment +QtMediaDeployment.sources = QtMedia.dll +QtMediaDeployment.path = /sys/bin + +DEPLOYMENT += QtMediaDeployment diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/radio/radio.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/radio/radio.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,35 @@ +INCLUDEPATH += $$PWD + +exists($${EPOCROOT}epoc32\release\armv5\lib\tunerutility.lib) { + CONFIG += TUNERLIB + LIBS += -ltunerutility + DEFINES += TUNERLIBUSED + INCLUDEPATH += $${EPOCROOT}epoc32\include\mmf\common +} + +exists($${EPOCROOT}epoc32\release\armv5\lib\Radio_Utility.lib) { + CONFIG += RADIOUTILITYLIB + LIBS += -lRadio_Utility + DEFINES += RADIOUTILITYLIBUSED +} +contains(QT_CONFIG, TUNERLIB) && !contains(QT_CONFIG, RADIOUTILITYLIB) { + warning("Radio isn't compiled in due to missing libraries. (3.1 tuner and since 3.2 radio utility libraries)") +} + +TUNERLIB { +HEADERS += \ + $$PWD/s60radiotunerservice.h \ + $$PWD/s60radiotunercontrol_31.h +SOURCES += \ + $$PWD/s60radiotunerservice.cpp \ + $$PWD/s60radiotunercontrol_31.cpp +} + +RADIOUTILITYLIB { +HEADERS += \ + $$PWD/s60radiotunerservice.h \ + $$PWD/s60radiotunercontrol_since32.h +SOURCES += \ + $$PWD/s60radiotunerservice.cpp \ + $$PWD/s60radiotunercontrol_since32.cpp +} \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunercontrol_31.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunercontrol_31.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,454 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60radiotunercontrol_31.h" +#include "s60radiotunerservice.h" + +#include +#include + +// from AudioPreference.h +const TInt KAudioPriorityFMRadio = 79; +const TUint KAudioPrefRadioAudioEvent = 0x03000001; + +S60RadioTunerControl::S60RadioTunerControl(QObject *parent) + : QRadioTunerControl(parent) + , m_error(0) + , m_tunerState(0) + , m_apiTunerState(QRadioTuner::StoppedState) + , m_audioInitializationComplete(false) + , m_radioError(QRadioTuner::NoError) + , m_muted(false) + , m_isStereo(true) + , m_stereoMode(QRadioTuner::Auto) + , m_signal(0) + , m_currentBand(QRadioTuner::FM) + , m_currentFreq(87500000) + , m_scanning(false) + , m_vol(100) +{ + initRadio(); +} + +S60RadioTunerControl::~S60RadioTunerControl() +{ + if (m_tunerUtility) { + m_tunerUtility->Close(); + m_tunerUtility->CancelNotifyChange(); + m_tunerUtility->CancelNotifySignalStrength(); + m_tunerUtility->CancelNotifyStereoChange(); + delete m_tunerUtility; + } + if (m_audioPlayerUtility) { + m_audioPlayerUtility = NULL; + } +} + +bool S60RadioTunerControl::initRadio() +{ + m_available = false; + + TRAPD(tunerError, m_tunerUtility = CMMTunerUtility::NewL(*this, CMMTunerUtility::ETunerBandFm, 1, + CMMTunerUtility::ETunerAccessPriorityNormal)); + if (tunerError != KErrNone) { + m_radioError = QRadioTuner::OpenError; + return m_available; + } + + TRAPD(playerError, m_audioPlayerUtility = m_tunerUtility->TunerPlayerUtilityL(*this)); + if (playerError != KErrNone) { + m_radioError = QRadioTuner::OpenError; + return m_available; + } + + TRAPD(initializeError, m_audioPlayerUtility->InitializeL(KAudioPriorityFMRadio, + TMdaPriorityPreference(KAudioPrefRadioAudioEvent))); + if (initializeError != KErrNone) { + m_radioError = QRadioTuner::OpenError; + return m_available; + } + + m_tunerUtility->NotifyChange(*this); + m_tunerUtility->NotifyStereoChange(*this); + m_tunerUtility->NotifySignalStrength(*this); + setVolume(m_audioPlayerUtility->MaxVolume()/2); + + TFrequency freq(m_currentFreq); + m_tunerUtility->Tune(freq); + + m_available = true; + + return m_available; +} + +void S60RadioTunerControl::start() +{ + if (!m_audioInitializationComplete) { + TFrequency freq(m_currentFreq); + m_tunerUtility->Tune(freq); + } else { + m_audioPlayerUtility->Play(); + } + + m_apiTunerState = QRadioTuner::ActiveState; + emit stateChanged(m_apiTunerState); +} + +void S60RadioTunerControl::stop() +{ + if (m_audioPlayerUtility) { + m_audioPlayerUtility->Stop(); + m_apiTunerState = QRadioTuner::StoppedState; + emit stateChanged(m_apiTunerState); + } +} + +QRadioTuner::State S60RadioTunerControl::state() const +{ + return m_apiTunerState; +} + +QRadioTuner::Band S60RadioTunerControl::band() const +{ + return m_currentBand; +} + +bool S60RadioTunerControl::isBandSupported(QRadioTuner::Band b) const +{ + if(b == QRadioTuner::FM) + return true; + else if(b == QRadioTuner::LW) + return false; + else if(b == QRadioTuner::AM) + return true; + else if(b == QRadioTuner::SW) + return false; + else + return false; +} + +void S60RadioTunerControl::setBand(QRadioTuner::Band b) +{ + QRadioTuner::Band tempBand = b; + if (tempBand != m_currentBand) { + m_currentBand = b; + emit bandChanged(m_currentBand); + } +} + +int S60RadioTunerControl::frequency() const +{ + return m_currentFreq; +} + +void S60RadioTunerControl::setFrequency(int frequency) +{ + m_currentFreq = frequency; + TFrequency freq(m_currentFreq); + m_tunerUtility->Tune(freq); +} + +int S60RadioTunerControl::frequencyStep(QRadioTuner::Band b) const +{ + int step = 0; + + if(b == QRadioTuner::FM) + step = 100000; // 100kHz steps + else if(b == QRadioTuner::LW) + step = 1000; // 1kHz steps + else if(b == QRadioTuner::AM) + step = 1000; // 1kHz steps + else if(b == QRadioTuner::SW) + step = 500; // 500Hz steps + + return step; +} + +QPair S60RadioTunerControl::frequencyRange(QRadioTuner::Band band) const +{ + TFrequency bottomFreq; + TFrequency topFreq; + int bandError = KErrNone; + + if (m_tunerUtility){ + bandError = m_tunerUtility->GetFrequencyBandRange(bottomFreq, topFreq); + if (!bandError) { + return qMakePair(bottomFreq.iFrequency, topFreq.iFrequency); + } + } + return qMakePair(0,0); +} + +CMMTunerUtility::TTunerBand S60RadioTunerControl::getNativeBand(QRadioTuner::Band b) const +{ + // api match to native s60 bands + if (b == QRadioTuner::AM) + return CMMTunerUtility::ETunerBandAm; + else if (b == QRadioTuner::FM) + return CMMTunerUtility::ETunerBandFm; + else if (b == QRadioTuner::LW) + return CMMTunerUtility::ETunerBandLw; + else + return CMMTunerUtility::ETunerNoBand; +} + +bool S60RadioTunerControl::isStereo() const +{ + return m_isStereo; +} + +QRadioTuner::StereoMode S60RadioTunerControl::stereoMode() const +{ + return m_stereoMode; +} + +void S60RadioTunerControl::setStereoMode(QRadioTuner::StereoMode mode) +{ + m_stereoMode = mode; + if (m_tunerUtility) { + if (QRadioTuner::ForceMono == mode) + m_tunerUtility->ForceMonoReception(true); + else + m_tunerUtility->ForceMonoReception(false); + } +} + +int S60RadioTunerControl::signalStrength() const +{ + // return value is a percentage value + if (m_tunerUtility) { + TInt maxSignalStrength; + TInt currentSignalStrength; + m_error = m_tunerUtility->GetMaxSignalStrength(maxSignalStrength); + if (m_error == KErrNone) { + m_error = m_tunerUtility->GetSignalStrength(currentSignalStrength); + if (m_error == KErrNone) { + if (maxSignalStrength == 0 || currentSignalStrength == 0) { + return 0; + } + m_signal = (currentSignalStrength/maxSignalStrength)*100; + } + } + } + return m_signal; +} + +int S60RadioTunerControl::volume() const +{ + return m_vol; +} + +void S60RadioTunerControl::setVolume(int volume) +{ + if (m_audioPlayerUtility) { + m_vol = volume; + TInt error = m_audioPlayerUtility->SetVolume(m_vol); + emit volumeChanged(m_vol); + } +} + +bool S60RadioTunerControl::isMuted() const +{ + return m_muted; +} + +void S60RadioTunerControl::setMuted(bool muted) +{ + if (m_audioPlayerUtility && m_audioInitializationComplete) { + m_muted = muted; + m_audioPlayerUtility->Mute(m_muted); + emit mutedChanged(m_muted); + } +} + +bool S60RadioTunerControl::isSearching() const +{ + if (m_tunerUtility) { + TUint32 tempState; + m_tunerUtility->GetState(tempState); + if (tempState == CMMTunerUtility::ETunerStateRetuning || m_scanning) { + return true; + } else + return false; + } + return true; +} + +void S60RadioTunerControl::cancelSearch() +{ + m_tunerUtility->CancelRetune(); + m_scanning = false; + emit searchingChanged(false); +} + +void S60RadioTunerControl::searchForward() +{ + m_scanning = true; + setVolume(m_vol); + m_tunerUtility->StationSeek(CMMTunerUtility::ESearchDirectionUp); + emit searchingChanged(true); +} + +void S60RadioTunerControl::searchBackward() +{ + m_scanning = true; + setVolume(m_vol); + m_tunerUtility->StationSeek(CMMTunerUtility::ESearchDirectionDown); + emit searchingChanged(true); +} + +bool S60RadioTunerControl::isValid() const +{ + return m_available; +} + +bool S60RadioTunerControl::isAvailable() const +{ + return m_available; +} + +QtMedia::AvailabilityError S60RadioTunerControl::availabilityError() const +{ + if (m_available) + return QtMedia::NoError; + else + return QtMedia::ResourceError; +} + +QRadioTuner::Error S60RadioTunerControl::error() const +{ + return m_radioError; +} + +QString S60RadioTunerControl::errorString() const +{ + return m_errorString; +} + +void S60RadioTunerControl::MToTuneComplete(TInt aError) +{ + if (aError == KErrNone) { + m_scanning = false; + m_audioPlayerUtility->Play(); + if (!m_audioInitializationComplete) { + TRAPD(initializeError, m_audioPlayerUtility->InitializeL(KAudioPriorityFMRadio, + TMdaPriorityPreference(KAudioPrefRadioAudioEvent))); + if (initializeError != KErrNone) { + m_radioError = QRadioTuner::OpenError; + } + } + } +} + +void S60RadioTunerControl::MTcoFrequencyChanged(const TFrequency& aOldFrequency, const TFrequency& aNewFrequency) +{ + m_currentFreq = aNewFrequency.iFrequency; + m_scanning = false; + emit frequencyChanged(m_currentFreq); +} + +void S60RadioTunerControl::MTcoStateChanged(const TUint32& aOldState, const TUint32& aNewState) +{ + if (aNewState == CMMTunerUtility::ETunerStateActive) { + m_apiTunerState = QRadioTuner::ActiveState; + } + if (aNewState == CMMTunerUtility::ETunerStatePlaying) { + m_apiTunerState = QRadioTuner::ActiveState; + } + if (aOldState != aNewState){ + emit stateChanged(m_apiTunerState); + } +} + +void S60RadioTunerControl::MTcoAntennaDetached() +{ + // no actions +} + +void S60RadioTunerControl::MTcoAntennaAttached() +{ + // no actions +} + +void S60RadioTunerControl::FlightModeChanged(TBool aFlightMode) +{ + // no actions +} + +void S60RadioTunerControl::MTsoStereoReceptionChanged(TBool aStereo) +{ + m_isStereo = aStereo; + emit stereoStatusChanged(aStereo); +} + +void S60RadioTunerControl::MTsoForcedMonoChanged(TBool aForcedMono) +{ + if (aForcedMono) { + m_stereoMode = QRadioTuner::ForceMono; + } +} + +void S60RadioTunerControl::MssoSignalStrengthChanged(TInt aNewSignalStrength) +{ + m_signal = aNewSignalStrength; + emit signalStrengthChanged(m_signal); +} + +void S60RadioTunerControl::MTapoInitializeComplete(TInt aError) +{ + if (aError == KErrNone) { + m_audioInitializationComplete = true; + m_available = true; + m_audioPlayerUtility->Play(); + m_apiTunerState = QRadioTuner::ActiveState; + emit stateChanged(m_apiTunerState); + } else if (aError != KErrNone) { + m_radioError = QRadioTuner::OpenError; + } +} + +void S60RadioTunerControl::MTapoPlayEvent(TEventType aEvent, TInt aError, TAny* aAdditionalInfo) +{ + // no actions +} + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunercontrol_31.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunercontrol_31.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,161 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60RADIOTUNERCONTROL_H +#define S60RADIOTUNERCONTROL_H + +#include +#include +#include +#include + +class S60RadioTunerService; + +QTM_USE_NAMESPACE + +class S60RadioTunerControl + : public QRadioTunerControl + , public MMMTunerObserver + , public MMMTunerStereoObserver + , public MMMSignalStrengthObserver + , public MMMTunerChangeObserver + , public MMMTunerAudioPlayerObserver +{ + Q_OBJECT +public: + S60RadioTunerControl(QObject *parent = 0); + ~S60RadioTunerControl(); + + QRadioTuner::State state() const; + + QRadioTuner::Band band() const; + void setBand(QRadioTuner::Band b); + bool isBandSupported(QRadioTuner::Band b) const; + + int frequency() const; + int frequencyStep(QRadioTuner::Band b) const; + QPair frequencyRange(QRadioTuner::Band b) const; + void setFrequency(int frequency); + + bool isStereo() const; + QRadioTuner::StereoMode stereoMode() const; + void setStereoMode(QRadioTuner::StereoMode mode); + + int signalStrength() const; + + int volume() const; + void setVolume(int volume); + + bool isMuted() const; + void setMuted(bool muted); + + bool isSearching() const; + void searchForward(); + void searchBackward(); + void cancelSearch(); + + bool isValid() const; + + bool isAvailable() const; + QtMedia::AvailabilityError availabilityError() const; + + void start(); + void stop(); + + QRadioTuner::Error error() const; + QString errorString() const; + + //MMMTunerObserver + void MToTuneComplete(TInt aError); + + //MMMTunerChangeObserver + void MTcoFrequencyChanged(const TFrequency& aOldFrequency, const TFrequency& aNewFrequency); + void MTcoStateChanged(const TUint32& aOldState, const TUint32& aNewState); + void MTcoAntennaDetached(); + void MTcoAntennaAttached(); + void FlightModeChanged(TBool aFlightMode); + + //MMMTunerStereoObserver + void MTsoStereoReceptionChanged(TBool aStereo); + void MTsoForcedMonoChanged(TBool aForcedMono); + + //MMMSignalStrengthObserver + void MssoSignalStrengthChanged(TInt aNewSignalStrength); + + //MMMTunerAudioPlayerObserver + void MTapoInitializeComplete(TInt aError); + void MTapoPlayEvent(TEventType aEvent, TInt aError, TAny* aAdditionalInfo); + +private slots: + + +private: + bool initRadio(); + CMMTunerUtility::TTunerBand getNativeBand(QRadioTuner::Band b) const; + + mutable int m_error; + CMMTunerUtility *m_tunerUtility; + CMMTunerAudioPlayerUtility *m_audioPlayerUtility; + + bool m_audioInitializationComplete; + bool m_muted; + bool m_isStereo; + bool m_available; + int m_step; + int m_vol; + mutable int m_signal; + bool m_scanning; + bool forward; + QRadioTuner::Band m_currentBand; + qint64 m_currentFreq; + + QRadioTuner::Error m_radioError; + QRadioTuner::StereoMode m_stereoMode; + QString m_errorString; + //caps meaning what the tuner can do. + TTunerCapabilities m_currentTunerCapabilities; + long m_tunerState; + QRadioTuner::State m_apiTunerState; + +}; + +#endif + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunercontrol_since32.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunercontrol_since32.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,468 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60radiotunercontrol_since32.h" +#include "s60radiotunerservice.h" + +#include +#include + +S60RadioTunerControl::S60RadioTunerControl(QObject *parent) + : QRadioTunerControl(parent) + , m_error(0) + , m_radioUtility(NULL) + , m_fmTunerUtility(NULL) + , m_playerUtility(NULL) + , m_audioInitializationComplete(false) + , m_muted(false) + , m_isStereo(true) + , m_vol(100) + , m_signal(0) + , m_radioError(QRadioTuner::NoError) + , m_scanning(false) + , m_currentBand(QRadioTuner::FM) + , m_currentFreq(87500000) + , m_stereoMode(QRadioTuner::Auto) + , m_apiTunerState(QRadioTuner::StoppedState) + , m_maxVolume(100) +{ + initRadio(); +} + +S60RadioTunerControl::~S60RadioTunerControl() +{ + if (m_fmTunerUtility) { + m_fmTunerUtility->Close(); + } + + if(m_playerUtility) { + m_playerUtility->Close(); + } + + delete m_radioUtility; +} + +QRadioTuner::State S60RadioTunerControl::state() const +{ + return m_apiTunerState; +} + +QRadioTuner::Band S60RadioTunerControl::band() const +{ + return m_currentBand; +} + +bool S60RadioTunerControl::isBandSupported(QRadioTuner::Band b) const +{ + if(b == QRadioTuner::FM) + return true; + else if(b == QRadioTuner::LW) + return false; + else if(b == QRadioTuner::AM) + return true; + else if(b == QRadioTuner::SW) + return false; + else + return false; +} + +void S60RadioTunerControl::setBand(QRadioTuner::Band b) +{ + QRadioTuner::Band tempBand = b; + if (tempBand != m_currentBand) { + m_currentBand = b; + emit bandChanged(m_currentBand); + } +} + +int S60RadioTunerControl::frequency() const +{ + return m_currentFreq; +} + +void S60RadioTunerControl::setFrequency(int frequency) +{ + m_currentFreq = frequency; + m_fmTunerUtility->SetFrequency(m_currentFreq); +} +int S60RadioTunerControl::frequencyStep(QRadioTuner::Band b) const +{ + int step = 0; + if(b == QRadioTuner::FM) + step = 100000; // 100kHz steps + else if(b == QRadioTuner::LW) + step = 1000; // 1kHz steps + else if(b == QRadioTuner::AM) + step = 1000; // 1kHz steps + else if(b == QRadioTuner::SW) + step = 500; // 500Hz steps + + return step; +} + +QPair S60RadioTunerControl::frequencyRange(QRadioTuner::Band band) const +{ + int bottomFreq; + int topFreq; + + int bandError = KErrNone; + TFmRadioFrequencyRange range; + + if (m_fmTunerUtility) { + bandError = m_fmTunerUtility->GetFrequencyRange(range, bottomFreq, topFreq); + } + if (!bandError) { + return qMakePair(bottomFreq, topFreq); + } + + return qMakePair(0,0); +} + +bool S60RadioTunerControl::isStereo() const +{ + return m_isStereo; +} + +QRadioTuner::StereoMode S60RadioTunerControl::stereoMode() const +{ + return m_stereoMode; +} + +void S60RadioTunerControl::setStereoMode(QRadioTuner::StereoMode mode) +{ + if (m_fmTunerUtility) { + if (QRadioTuner::ForceMono == mode) { + m_fmTunerUtility->ForceMonoReception(true); + m_stereoMode = QRadioTuner::ForceMono; + m_isStereo = false; + } else { + m_fmTunerUtility->ForceMonoReception(false); + m_isStereo = true; + m_stereoMode = QRadioTuner::ForceStereo; + } + } +} + +int S60RadioTunerControl::signalStrength() const +{ + // return value is a percentage value + if (m_fmTunerUtility) { + TInt maxSignalStrength; + TInt currentSignalStrength; + m_error = m_fmTunerUtility->GetMaxSignalStrength(maxSignalStrength); + + if (m_error == KErrNone) { + m_error = m_fmTunerUtility->GetSignalStrength(currentSignalStrength); + if (m_error == KErrNone) { + if (currentSignalStrength == 0 || maxSignalStrength == 0) { + return currentSignalStrength; + } + m_signal = currentSignalStrength / maxSignalStrength; + } + } + } + return m_signal; +} + +int S60RadioTunerControl::volume() const +{ + return m_vol; +} + +void S60RadioTunerControl::setVolume(int volume) +{ + if (m_playerUtility) { + m_vol = volume; + m_playerUtility->SetVolume(volume); + emit volumeChanged(m_vol); + } +} + +bool S60RadioTunerControl::isMuted() const +{ + return m_muted; +} + +void S60RadioTunerControl::setMuted(bool muted) +{ + if (m_playerUtility) { + m_muted = muted; + m_playerUtility->Mute(m_muted); + } +} + +bool S60RadioTunerControl::isSearching() const +{ + return m_scanning; +} + +void S60RadioTunerControl::cancelSearch() +{ + m_fmTunerUtility->CancelStationSeek(); + m_scanning = false; + emit searchingChanged(false); +} + +void S60RadioTunerControl::searchForward() +{ + m_fmTunerUtility->StationSeek(true); + m_scanning = true; + emit searchingChanged(true); +} + +void S60RadioTunerControl::searchBackward() +{ + m_fmTunerUtility->StationSeek(false); + m_scanning = true; + emit searchingChanged(true); +} + +bool S60RadioTunerControl::isValid() const +{ + return m_available; +} + +bool S60RadioTunerControl::initRadio() +{ + m_available = false; + // create an instance of Radio Utility factory and indicate + // FM Radio is a primary client + TRAPD(utilityError, + m_radioUtility = CRadioUtility::NewL(ETrue); + // Get a tuner utility + m_fmTunerUtility = &m_radioUtility->RadioFmTunerUtilityL(*this); + // Get a player utility + m_playerUtility = &m_radioUtility->RadioPlayerUtilityL(*this); + ); + if (utilityError != KErrNone) { + m_radioError = QRadioTuner::ResourceError; + return m_available; + } + + m_tunerControl = false; + + m_available = true; + return m_available; +} + +bool S60RadioTunerControl::isAvailable() const +{ + return m_available; +} + +QtMedia::AvailabilityError S60RadioTunerControl::availabilityError() const +{ + if (m_available) + return QtMedia::NoError; + else + return QtMedia::ResourceError; +} + +void S60RadioTunerControl::start() +{ + if (!m_tunerControl) { + m_fmTunerUtility->RequestTunerControl(); + m_apiTunerState = QRadioTuner::ActiveState; + emit stateChanged(m_apiTunerState); + } else { + m_playerUtility->Play(); + m_apiTunerState = QRadioTuner::ActiveState; + emit stateChanged(m_apiTunerState); + } + +} + +void S60RadioTunerControl::stop() +{ + if (m_playerUtility) { + m_playerUtility->Stop(); + m_apiTunerState = QRadioTuner::StoppedState; + emit stateChanged(m_apiTunerState); + } +} + +QRadioTuner::Error S60RadioTunerControl::error() const +{ + return m_radioError; +} +QString S60RadioTunerControl::errorString() const +{ + return m_errorString; +} + +void S60RadioTunerControl::MrpoStateChange(TPlayerState aState, TInt aError) +{ + if (aError == KErrNone){ + m_radioError = QRadioTuner::NoError; + if (aState == ERadioPlayerIdle) { + m_apiTunerState = QRadioTuner::ActiveState; + } else if (aState == ERadioPlayerPlaying) { + m_apiTunerState = QRadioTuner::ActiveState; + } + } + emit stateChanged(m_apiTunerState); +} + +void S60RadioTunerControl::MrpoVolumeChange(TInt aVolume) +{ + m_vol = aVolume; + emit volumeChanged(m_vol); +} + +void S60RadioTunerControl::MrpoMuteChange(TBool aMute) +{ + m_muted = aMute; + emit mutedChanged(m_muted); +} + +void S60RadioTunerControl::MrpoBalanceChange(TInt aLeftPercentage, TInt aRightPercentage) +{ + // no actions +} + +void S60RadioTunerControl::MrftoRequestTunerControlComplete(TInt aError) +{ + if (aError == KErrNone) { + m_playerUtility->GetMaxVolume(m_maxVolume); + m_radioError = QRadioTuner::NoError; + m_tunerControl = true; + m_available = true; + m_fmTunerUtility->SetFrequency(m_currentFreq); + m_playerUtility->Play(); + int signal = signalStrength(); + if (m_signal != signal) { + emit signalStrengthChanged(signal); + m_signal = signal; + } + + } else if (aError == KFmRadioErrAntennaNotConnected) { + m_radioError = QRadioTuner::OpenError; + } else if (aError == KErrAlreadyExists){ + m_radioError = QRadioTuner::ResourceError; + } else if (aError == KFmRadioErrFrequencyOutOfBandRange) { + m_radioError = QRadioTuner::OutOfRangeError; + }else{ + m_radioError = QRadioTuner::OpenError; + } + +} + +void S60RadioTunerControl::MrftoSetFrequencyRangeComplete(TInt aError) +{ + if (aError == KFmRadioErrFrequencyOutOfBandRange || KFmRadioErrFrequencyNotValid) { + m_radioError = QRadioTuner::OutOfRangeError; + } else if (aError == KFmRadioErrHardwareFaulty || KFmRadioErrOfflineMode) { + m_radioError = QRadioTuner::OpenError; + } +} + +void S60RadioTunerControl::MrftoSetFrequencyComplete(TInt aError) +{ + if (aError == KErrNone) { + m_radioError = QRadioTuner::NoError; + } else if (aError == KFmRadioErrFrequencyOutOfBandRange || KFmRadioErrFrequencyNotValid) { + m_radioError = QRadioTuner::OutOfRangeError; + } else if (aError == KFmRadioErrHardwareFaulty || KFmRadioErrOfflineMode) { + m_radioError = QRadioTuner::OpenError; + } +} + +void S60RadioTunerControl::MrftoStationSeekComplete(TInt aError, TInt aFrequency) +{ + m_scanning = false; + if (aError == KErrNone) { + m_radioError = QRadioTuner::NoError; + m_currentFreq = aFrequency; + } else { + m_radioError = QRadioTuner::OpenError; + } +} + +void S60RadioTunerControl::MrftoFmTransmitterStatusChange(TBool aActive) +{ + //no actions +} + +void S60RadioTunerControl::MrftoAntennaStatusChange(TBool aAttached) +{ + if (aAttached && m_tunerControl) { + m_playerUtility->Play(); + } +} + +void S60RadioTunerControl::MrftoOfflineModeStatusChange(TBool /*aOfflineMode*/) +{ + +} + +void S60RadioTunerControl::MrftoFrequencyRangeChange(TFmRadioFrequencyRange aBand /*, TInt aMinFreq, TInt aMaxFreq*/) +{ + if (aBand == EFmRangeEuroAmerica) { + setBand(QRadioTuner::FM); + } +} + +void S60RadioTunerControl::MrftoFrequencyChange(TInt aNewFrequency) +{ + m_currentFreq = aNewFrequency; + emit frequencyChanged(m_currentFreq); + + int signal = signalStrength(); + if (m_signal != signal) { + emit signalStrengthChanged(signal); + m_signal = signal; + } +} + +void S60RadioTunerControl::MrftoForcedMonoChange(TBool aForcedMono) +{ + if (aForcedMono) { + m_stereoMode = QRadioTuner::ForceMono; + } else { + m_stereoMode = QRadioTuner::ForceStereo; + } + emit stereoStatusChanged(!aForcedMono); +} + +void S60RadioTunerControl::MrftoSquelchChange(TBool aSquelch) +{ + // no actions +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunercontrol_since32.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunercontrol_since32.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,287 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60RADIOTUNERCONTROL_H +#define S60RADIOTUNERCONTROL_H + +#include +#include +#include + +#include +#include +#include + +class S60RadioTunerService; +class CFMRadioEngineCallObserver; + +QTM_USE_NAMESPACE + +class S60RadioTunerControl + : public QRadioTunerControl + , public MRadioPlayerObserver + , public MRadioFmTunerObserver +{ + Q_OBJECT +public: + S60RadioTunerControl(QObject *parent = 0); + ~S60RadioTunerControl(); + + QRadioTuner::State state() const; + + QRadioTuner::Band band() const; + void setBand(QRadioTuner::Band b); + bool isBandSupported(QRadioTuner::Band b) const; + + int frequency() const; + int frequencyStep(QRadioTuner::Band b) const; + QPair frequencyRange(QRadioTuner::Band b) const; + void setFrequency(int frequency); + + bool isStereo() const; + QRadioTuner::StereoMode stereoMode() const; + void setStereoMode(QRadioTuner::StereoMode mode); + + int signalStrength() const; + + int volume() const; + void setVolume(int volume); + + bool isMuted() const; + void setMuted(bool muted); + + bool isSearching() const; + void searchForward(); + void searchBackward(); + void cancelSearch(); + + bool isValid() const; + + bool isAvailable() const; + QtMedia::AvailabilityError availabilityError() const; + + void start(); + void stop(); + + QRadioTuner::Error error() const; + QString errorString() const; + + /** + * From MRadioPlayerObserver. + * Called when Radio state changed. + * + * @since S60 3.2 + * @param aState Radio player state + * @param aError A standard system error code, only used when aState is ERadioPlayerIdle + */ + void MrpoStateChange(TPlayerState aState, TInt aError); + + /** + * From MRadioPlayerObserver. + * Called when volume changes. This may be caused by other applications. + * + * @since S60 3.2 + * @param aVolume Current volume. + */ + void MrpoVolumeChange(TInt aVolume); + + /** + * From MRadioPlayerObserver. + * Called when mute setting changes. This may be caused by other applications. + * + * @since S60 3.2 + * @param aMute ETrue indicates audio is muted. + */ + void MrpoMuteChange(TBool aMute); + + /** + * From MRadioPlayerObserver. + * Called when mute setting changes. This may be caused by other applications. + * + * Called when balance setting changes. This may be caused by other applications. + * + * @since S60 3.2 + * Left speaker volume percentage. This can be any value from zero to 100. + * Zero value means left speaker is muted. + * @param aRightPercentage + * Right speaker volume percentage. This can be any value from zero to 100. + * Zero value means right speaker is muted. + */ + void MrpoBalanceChange(TInt aLeftPercentage, TInt aRightPercentage); + + + /** + * From MRadioFmTunerObserver. + * Called when Request for tuner control completes. + * + * @since S60 3.2 + * @param aError A standard system error code or FM tuner error (TFmRadioTunerError). + */ + void MrftoRequestTunerControlComplete(TInt aError); + + /** + * From MRadioFmTunerObserver. + * Set frequency range complete event. This event is asynchronous and is received after + * a call to CRadioFmTunerUtility::SetFrequencyRange. + * + * @since S60 3.2 + * @param aError A standard system error code or FM tuner error (TFmRadioTunerError). + */ + void MrftoSetFrequencyRangeComplete(TInt aError); + + /** + * From MRadioFmTunerObserver. + * Set frequency complete event. This event is asynchronous and is received after a call to + * CRadioFmTunerUtility::SetFrequency. + * + * @since S60 3.2 + * @param aError A standard system error code or FM tuner error (TFmRadioTunerError). + */ + void MrftoSetFrequencyComplete(TInt aError); + + /** + * From MRadioFmTunerObserver. + * Station seek complete event. This event is asynchronous and is received after a call to + * CRadioFmTunerUtility::StationSeek. + * + * @since S60 3.2 + * @param aError A standard system error code or FM tuner error (TFmRadioTunerError). + * @param aFrequency The frequency(Hz) of the radio station that was found. + */ + void MrftoStationSeekComplete(TInt aError, TInt aFrequency); + + /** + * From MRadioFmTunerObserver. + * Called when FM Transmitter status changes (if one is present in the device). Tuner receiver + * is forced to be turned off due to hardware conflicts when FM transmitter is activated. + * + * @since S60 3.2 + * @param aActive ETrue if FM transmitter is active; EFalse otherwise. + */ + void MrftoFmTransmitterStatusChange(TBool aActive); + + /** + * From MRadioFmTunerObserver. + * Called when antenna status changes. + * + * @since S60 3.2 + * @param aAttached ETrue if antenna is attached; EFalse otherwise. + */ + void MrftoAntennaStatusChange(TBool aAttached); + + /** + * From MRadioFmTunerObserver. + * Called when offline mode status changes. + * @since S60 3.2 + * + ** @param aAttached ETrue if offline mode is enabled; EFalse otherwise. + */ + void MrftoOfflineModeStatusChange(TBool aOfflineMode); + + /** + * From MRadioFmTunerObserver. + * Called when the frequency range changes. This may be caused by other applications. + * + * @since S60 3.2 + * @param aNewRange New frequency range. + */ + void MrftoFrequencyRangeChange(TFmRadioFrequencyRange aBand /*, TInt aMinFreq, TInt aMaxFreq*/); + + /** + * From MRadioFmTunerObserver. + * Called when the tuned frequency changes. This may be caused by other + * applications or RDS if AF/TA is enabled. + * + * @since S60 3.2 + * @param aNewFrequency The new tuned frequency(Hz). + */ + void MrftoFrequencyChange(TInt aNewFrequency); + + /** + * From MRadioFmTunerObserver. + * Called when the forced mono status change. This may be caused by other applications. + * + * @since S60 3.2 + * @param aForcedMono ETrue if forced mono mode is enabled; EFalse otherwise. + */ + void MrftoForcedMonoChange(TBool aForcedMono); + + /** + * From MRadioFmTunerObserver. + * Called when the squelch (muting the frequencies without broadcast) status change. + * This may be caused by other applications. + * + * @since S60 3.2 + * @param aSquelch ETrue if squelch is enabled; EFalse otherwise. + */ + void MrftoSquelchChange(TBool aSquelch); + +private: + bool initRadio(); + + mutable int m_error; + + CRadioUtility* m_radioUtility; + CRadioFmTunerUtility* m_fmTunerUtility; + CRadioPlayerUtility* m_playerUtility; + TInt m_maxVolume; + + bool m_tunerControl; + bool m_audioInitializationComplete; + bool m_muted; + bool m_isStereo; + bool m_available; + int m_vol; + mutable int m_signal; + bool m_scanning; + QRadioTuner::Band m_currentBand; + qint64 m_currentFreq; + + QRadioTuner::Error m_radioError; + QRadioTuner::StereoMode m_stereoMode; + QString m_errorString; + // caps meaning what the tuner can do. + // TTunerCapabilities m_currentTunerCapabilities; + QRadioTuner::State m_apiTunerState; +}; + +#endif + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunerservice.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunerservice.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,63 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "s60radiotunerservice.h" + + +S60RadioTunerService::S60RadioTunerService(QObject *parent) + : QMediaService(parent) +{ + m_playerControl = new S60RadioTunerControl(this); +} + +S60RadioTunerService::~S60RadioTunerService() +{ + delete m_playerControl; +} + +QMediaControl *S60RadioTunerService::control(const char* name) const +{ + if (qstrcmp(name, QRadioTunerControl_iid) == 0) + return m_playerControl; + + return 0; +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunerservice.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/radio/s60radiotunerservice.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,70 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60RADIOTUNERSERVICE_H +#define S60RADIOTUNERSERVICE_H + +#include + +#include + +#ifdef TUNERLIBUSED +#include "s60radiotunercontrol_31.h" +#else +#include "s60radiotunercontrol_since32.h" +#endif + +QTM_USE_NAMESPACE + +class S60RadioTunerService : public QMediaService +{ + Q_OBJECT +public: + S60RadioTunerService(QObject *parent = 0); + ~S60RadioTunerService(); + + QMediaControl *control(const char* name) const; + +private: + S60RadioTunerControl *m_playerControl; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/s60mediaserviceplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/s60mediaserviceplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,95 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include + +#include "s60mediaserviceplugin.h" +#if defined(TUNERLIBUSED) || defined(RADIOUTILITYLIBUSED) +#include "s60radiotunerservice.h" +#endif +#ifdef HAS_MEDIA_PLAYER +#include "s60mediaplayerservice.h" +#endif +#ifdef AUDIOSOURCEUSED +#include "s60audiocaptureservice.h" +#endif /* AUDIOSOURCEUSED */ + +QStringList S60MediaServicePlugin::keys() const +{ + QStringList list; +#if defined(TUNERLIBUSED) || defined(RADIOUTILITYLIBUSED) + list << QLatin1String(Q_MEDIASERVICE_RADIO); +#endif + +#ifdef HAS_MEDIA_PLAYER + list << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER); +#endif +#ifdef AUDIOSOURCEUSED + list << QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE); +#endif /* AUDIOSOURCEUSED */ + return list; +} + +QMediaService* S60MediaServicePlugin::create(QString const& key) +{ +#ifdef HAS_MEDIA_PLAYER + if (key == QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER)) + return new S60MediaPlayerService; +#endif +#ifdef AUDIOSOURCEUSED + if (key == QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE)) + return new S60AudioCaptureService; +#endif /* AUDIOSOURCEUSED */ +#if defined(TUNERLIBUSED) || defined(RADIOUTILITYLIBUSED) + if (key == QLatin1String(Q_MEDIASERVICE_RADIO)) + return new S60RadioTunerService; +#endif + + return 0; +} + +void S60MediaServicePlugin::release(QMediaService *service) +{ + delete service; +} + +Q_EXPORT_PLUGIN2(QtMobilityMmfEngine, S60MediaServicePlugin); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/mmf/s60mediaserviceplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/mmf/s60mediaserviceplugin.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,62 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 S60SERVICEPLUGIN_H +#define S60SERVICEPLUGIN_H + +#include +#include +#include + +QTM_USE_NAMESPACE + +class S60MediaServicePlugin : public QMediaServiceProviderPlugin +{ + Q_OBJECT +public: + + QStringList keys() const; + QMediaService* create(QString const& key); + void release(QMediaService *service); +}; + +#endif // S60SERVICEPLUGIN_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/mediarecorder.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/mediarecorder.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,75 @@ +TEMPLATE = lib +CONFIG += plugin +TARGET = xarecordservice + +PLUGIN_SUBDIR = mediaservice + +include (../../../../../common.pri) + +# Symbian specific definition +# --------------------------- +symbian { + +# Input parameters for qmake to make the dll a qt plugin +# ------------------------------------------------------ +pluginstub.sources = qmakepluginstubs/xarecordservice.dll +pluginstub.path = /resource/qt/plugins/mediaservice +DEPLOYMENT += pluginstub + +# Input parameters for the generated bld.inf file +# ----------------------------------------------- +SYMBIAN_PLATFORMS = DEFAULT + +# Input parameters for the generated mmp file +# ------------------------------------------- +TARGET.UID3 = 0x10207CA1 +TARGET.CAPABILITY = ALL -TCB +TARGET.EPOCALLOWDLLDATA = 1 + +INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE +INCLUDEPATH += /epoc32/include/platform/mw/khronos + +# Macros controlling debug traces +#DEFINES += PROFILE_TIME +#DEFINES += PROFILE_RAM_USAGE +#DEFINES += PROFILE_HEAP_USAGE +#DEFINES += PLUGIN_QT_TRACE_ENABLED +#DEFINES += PLUGIN_QT_SIGNAL_EMIT_TRACE_ENABLED +#DEFINES += PLUGIN_SYMBIAN_TRACE_ENABLED +} + + +DEPENDPATH += . + +# Input +HEADERS += \ + qxarecordmediaserviceproviderplugin.h \ + qxarecordmediaservice.h \ + qxarecordsession.h \ + qxaaudioendpointselector.h \ + qxaaudioencodercontrol.h \ + qxamediacontainercontrol.h \ + qxamediarecordercontrol.h \ + xarecordsessionimpl.h \ + xarecordsessioncommon.h \ + qxacommon.h + +SOURCES += \ + qxarecordmediaserviceproviderplugin.cpp \ + qxarecordmediaservice.cpp \ + qxarecordsession.cpp \ + qxaaudioendpointselector.cpp \ + qxaaudioencodercontrol.cpp \ + qxamediacontainercontrol.cpp \ + qxamediarecordercontrol.cpp \ + xarecordsessionimpl.cpp + +LIBS += \ + -lQtMedia \ + -lopenmaxal \ + -lbafl + +# check for PROFILE_RAM_USAGE +contains(DEFINES, PROFILE_RAM_USAGE) { + LIBS += -lhal +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxaaudioencodercontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxaaudioencodercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,111 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qxaaudioencodercontrol.h" +#include "qxarecordsession.h" +#include "qxacommon.h" + +QXAAudioEncoderControl::QXAAudioEncoderControl(QXARecordSession *session, QObject *parent) +:QAudioEncoderControl(parent), m_session(session) +{ +} + +QXAAudioEncoderControl::~QXAAudioEncoderControl() +{ + QT_TRACE_FUNCTION_ENTRY_EXIT; +} + +QStringList QXAAudioEncoderControl::supportedAudioCodecs() const +{ + if (m_session) + return m_session->supportedAudioCodecs(); + return QStringList(); +} + +QString QXAAudioEncoderControl::codecDescription(const QString &codecName) const +{ + if (m_session) + return m_session->codecDescription(codecName); + return QString(); +} + +QList QXAAudioEncoderControl::supportedSampleRates( + const QAudioEncoderSettings &settings, + bool *continuous) const +{ + if (m_session) + return m_session->supportedSampleRates(settings, continuous); + return QList(); +} + +QAudioEncoderSettings QXAAudioEncoderControl::audioSettings() const +{ + if (m_session) + return m_session->audioSettings(); + return QAudioEncoderSettings(); +} + +void QXAAudioEncoderControl::setAudioSettings(const QAudioEncoderSettings &settings) +{ + if (m_session) + m_session->setAudioSettings(settings); +} + +QStringList QXAAudioEncoderControl::supportedEncodingOptions(const QString &codec) const +{ + if (m_session) + return m_session->supportedEncodingOptions(codec); + return QStringList(); +} + +QVariant QXAAudioEncoderControl::encodingOption(const QString &codec, const QString &name) const +{ + if (m_session) + return m_session->encodingOption(codec, name); + return QVariant(); +} + +void QXAAudioEncoderControl::setEncodingOption( + const QString &codec, const QString &name, const QVariant &value) +{ + if (m_session) + m_session->setEncodingOption(codec, name, value); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxaaudioencodercontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxaaudioencodercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,79 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QXAAUDIOENCODERCONTROL_H +#define QXAAUDIOENCODERCONTROL_H + +#include + +QTM_USE_NAMESPACE + +/* + * This class implements QAudioEncoderControl interface. + */ +class QXARecordSession; + +class QXAAudioEncoderControl : public QAudioEncoderControl +{ + Q_OBJECT + +public: + QXAAudioEncoderControl(QXARecordSession *session, QObject *parent = 0); + virtual ~QXAAudioEncoderControl(); + + QStringList supportedAudioCodecs() const; + QString codecDescription(const QString &codecName) const; + + QList supportedSampleRates(const QAudioEncoderSettings &settings, + bool *continuous = 0) const; + + QAudioEncoderSettings audioSettings() const; + void setAudioSettings(const QAudioEncoderSettings &settings); + + QStringList supportedEncodingOptions(const QString &codec) const; + QVariant encodingOption(const QString &codec, const QString &name) const; + void setEncodingOption(const QString &codec, const QString &name, const QVariant &value); + +private: + QXARecordSession *m_session; +}; + +#endif /* QXAAUDIOENCODERCONTROL_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxaaudioendpointselector.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxaaudioendpointselector.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,98 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qxaaudioendpointselector.h" +#include "qxarecordsession.h" +#include "qxacommon.h" + +QXAAudioEndpointSelector::QXAAudioEndpointSelector(QXARecordSession *session, QObject *parent) +:QAudioEndpointSelector(parent), m_session(session) +{ + connect(m_session, SIGNAL(availableAudioInputsChanged()), + this, SLOT(availableAudioInputsChanged())); + connect(m_session, SIGNAL(activeEndpointChanged(QString)), + this, SIGNAL(activeEndpointChanged(QString))); +} + +QXAAudioEndpointSelector::~QXAAudioEndpointSelector() +{ + QT_TRACE_FUNCTION_ENTRY_EXIT; +} + +QList QXAAudioEndpointSelector::availableEndpoints() const +{ + if (m_session) + return m_session->availableEndpoints(); + return QList(); +} + +QString QXAAudioEndpointSelector::endpointDescription(const QString &name) const +{ + if (m_session) + return m_session->endpointDescription(name); + return QString(); +} + +QString QXAAudioEndpointSelector::defaultEndpoint() const +{ + if (m_session) + return m_session->defaultEndpoint(); + return QString(); +} + +QString QXAAudioEndpointSelector::activeEndpoint() const +{ + if (m_session) + return m_session->activeEndpoint(); + return QString(); +} + +void QXAAudioEndpointSelector::setActiveEndpoint(const QString &name) +{ + if (m_session) + m_session->setActiveEndpoint(name); +} + +void QXAAudioEndpointSelector::availableAudioInputsChanged() + { + emit availableEndpointsChanged(); + } + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxaaudioendpointselector.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxaaudioendpointselector.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,77 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QXAAUDIOENDPOINTSELECTOR_H +#define QXAAUDIOENDPOINTSELECTOR_H + +#include + +QTM_USE_NAMESPACE + +/* + * This class implements QAudioEncoderControl interface. + */ +class QXARecordSession; + +class QXAAudioEndpointSelector : public QAudioEndpointSelector +{ + Q_OBJECT + +public: + QXAAudioEndpointSelector(QXARecordSession *session, QObject *parent); + ~QXAAudioEndpointSelector(); + + QList availableEndpoints() const; + QString endpointDescription(const QString &name) const; + QString defaultEndpoint() const; + QString activeEndpoint() const; + +public Q_SLOTS: + void setActiveEndpoint(const QString &name); + +private Q_SLOTS: + void availableAudioInputsChanged(); + +private: + QXARecordSession *m_session; +}; + +#endif /* QXAAUDIOENDPOINTSELECTOR_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxacommon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxacommon.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,154 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QXACOMMON_H +#define QXACOMMON_H + +#if defined(PLUGIN_QT_TRACE_ENABLED) \ + || defined(PLUGIN_QT_SIGNAL_EMIT_TRACE_ENABLED) \ + || defined(PROFILE_TIME) \ + || defined(PROFILE_RAM_USAGE) \ + || defined(PROFILE_HEAP_USAGE) +# include +#endif /* PLUGIN_QT_TRACE_ENABLED */ + +#ifdef PROFILE_RAM_USAGE +# include +#endif + + +#ifdef PLUGIN_QT_TRACE_ENABLED +# define QT_TRACE_FUNCTION_ENTRY qDebug() << __PRETTY_FUNCTION__ << ">" +# define QT_TRACE_FUNCTION_EXIT qDebug() << __PRETTY_FUNCTION__ << "<" +# define QT_TRACE_FUNCTION_ENTRY_EXIT qDebug() << __PRETTY_FUNCTION__ << "><" +# define QT_TRACE1(v1) qDebug() << v1 +# define QT_TRACE2(v1, v2) qDebug() << v1 << v2 +#else +# define QT_TRACE_FUNCTION_ENTRY +# define QT_TRACE_FUNCTION_EXIT +# define QT_TRACE_FUNCTION_ENTRY_EXIT +# define QT_TRACE1(v1) +# define QT_TRACE2(v1, v2) +#endif /*PLUGIN_QT_TRACE_ENABLED*/ + +#ifdef PLUGIN_QT_SIGNAL_EMIT_TRACE_ENABLED +# define SIGNAL_EMIT_TRACE1(v1) qDebug() << __PRETTY_FUNCTION__ << v1 +#else +# define SIGNAL_EMIT_TRACE1(v1) +#endif /*PLUGIN_QT_SIGNAL_EMIT_TRACE_ENABLED*/ + +#ifdef PROFILE_TIME_ELAPSED +# define TAG_TIME_PROFILING_BEGIN \ + TTime beginProfilingTime; \ + beginProfilingTime.HomeTime() + +# define TAG_TIME_PROFILING_END \ + TTime endProfilingTime; \ + endProfilingTime.HomeTime(); \ + TTimeIntervalMicroSeconds diffInMicroSecs = endProfilingTime.MicroSecondsFrom(beginProfilingTime) + +# define QT_PRINT_TO_CONSOLE_TIME_DIFF \ + qDebug() << "VPROFILEDAT: " << __PRETTY_FUNCTION__ << ": Time taken " << diffInMicroSecs.Int64() << " microseconds" +#else /* Empty macros */ +# define TAG_TIME_PROFILING_BEGIN +# define TAG_TIME_PROFILING_END +# define QT_PRINT_TO_CONSOLE_TIME_DIFF +#endif /*PROFILE_TIME_ELAPSED*/ + +#ifdef PROFILE_RAM_USAGE +# define TAG_RAM_PROFILING_BEGIN \ + TInt beginProfilingRAM; \ + TInt err1 = HAL::Get(HALData::EMemoryRAMFree, beginProfilingRAM) + +# define TAG_RAM_PROFILING_END \ + TInt endProfilingRAM; \ + TInt err2 = HAL::Get(HALData::EMemoryRAMFree, endProfilingRAM) + +# define QT_PRINT_TO_CONSOLE_RAM_DIFF \ + if ((err1 == KErrNone) && (err2 == KErrNone)) \ + { \ + TInt diffRAM = (beginProfilingRAM - endProfilingRAM); \ + if ( diffRAM > 0 ) \ + { \ + qDebug() << "VPROFILEDAT: " << __PRETTY_FUNCTION__ << ": " << diffRAM << " bytes of RAM used"; \ + } \ + else \ + { \ + qDebug() << "VPROFILEDAT: " << __PRETTY_FUNCTION__ << ": " << -(diffRAM) << " bytes of RAM freed"; \ + } \ + } \ + else \ + { \ + qDebug() << "VPROFILEDAT: " << __PRETTY_FUNCTION__ << "Error1[" << err1 << "] Error2[" << err2; \ + } + +#else /* Empty macros */ +# define TAG_RAM_PROFILING_BEGIN +# define TAG_RAM_PROFILING_END +# define QT_PRINT_TO_CONSOLE_RAM_DIFF +#endif /*PROFILE_RAM_USAGE*/ + +#ifdef PROFILE_HEAP_USAGE +# define TAG_DEFAULT_HEAP_PROFILING_BEGIN \ + TInt beginProfilingHEAPBiggestBlock; \ + TInt beginProfilingHEAP = User::Available(beginProfilingHEAPBiggestBlock) \ + +# define TAG_DEFAULT_HEAP_PROFILING_END \ + TInt endProfilingHEAPBiggestBlock; \ + TInt endProfilingHEAP = User::Available(endProfilingHEAPBiggestBlock) \ + +# define QT_PRINT_TO_CONSOLE_HEAP_DIFF \ + TInt diffHEAP = beginProfilingHEAP - endProfilingHEAP; \ + if ( diffHEAP > 0 ) \ + { \ + qDebug() << "VPROFILEDAT: " << __PRETTY_FUNCTION__ << ": " << diffHEAP << " bytes in default HEAP used"; \ + } \ + else \ + { \ + qDebug() << "VPROFILEDAT: " << __PRETTY_FUNCTION__ << ": " << -(diffHEAP) << " bytes in default HEAP freed"; \ + } +#else /* Empty macros */ +# define TAG_DEFAULT_HEAP_PROFILING_BEGIN +# define TAG_DEFAULT_HEAP_PROFILING_END +# define QT_PRINT_TO_CONSOLE_HEAP_DIFF +#endif /*PROFILE_HEAP_USAGE*/ + +#endif /* QXACOMMON_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxamediacontainercontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxamediacontainercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,81 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qxamediacontainercontrol.h" +#include "qxarecordsession.h" +#include "qxacommon.h" + +QXAMediaContainerControl::QXAMediaContainerControl(QXARecordSession *session, QObject *parent) +:QMediaContainerControl(parent), m_session(session) +{ +} + +QXAMediaContainerControl::~QXAMediaContainerControl() +{ + QT_TRACE_FUNCTION_ENTRY_EXIT; +} + +QStringList QXAMediaContainerControl::supportedContainers() const +{ + if (m_session) + return m_session->supportedContainers(); + return QStringList(); +} + +QString QXAMediaContainerControl::containerMimeType() const +{ + if (m_session) + return m_session->containerMimeType(); + return QString(); +} + +void QXAMediaContainerControl::setContainerMimeType(const QString &formatMimeType) +{ + if (m_session) + m_session->setContainerMimeType(formatMimeType); +} + +QString QXAMediaContainerControl::containerDescription(const QString &formatMimeType) const +{ + if (m_session) + return m_session->containerDescription(formatMimeType); + return QString(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxamediacontainercontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxamediacontainercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,71 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QXAMEDIACONTAINERCONTROL_H +#define QXAMEDIACONTAINERCONTROL_H + +#include + +QTM_USE_NAMESPACE + +/* + * This class implements QMediaContainerControl interface. + */ +class QXARecordSession; + +class QXAMediaContainerControl : public QMediaContainerControl +{ + Q_OBJECT + +public: + QXAMediaContainerControl(QXARecordSession *session, QObject *parent = 0); + virtual ~QXAMediaContainerControl(); + + QStringList supportedContainers() const; + QString containerMimeType() const; + void setContainerMimeType(const QString &formatMimeType); + QString containerDescription(const QString &formatMimeType) const; + +private: + QXARecordSession *m_session; +}; + +#endif /* QXAMEDIACONTAINERCONTROL_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxamediarecordercontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxamediarecordercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,112 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qxamediarecordercontrol.h" +#include "qxarecordsession.h" +#include "qxacommon.h" + +QXAMediaRecoderControl::QXAMediaRecoderControl(QXARecordSession *session, QObject *parent) +:QMediaRecorderControl(parent), m_session(session) +{ + connect(m_session, SIGNAL(stateChanged(QMediaRecorder::State)), + this, SIGNAL(stateChanged(QMediaRecorder::State))); + connect(m_session, SIGNAL(error(int,QString)), + this,SIGNAL(error(int,QString))); + connect(m_session, SIGNAL(durationChanged(qint64)), + this, SIGNAL(durationChanged(qint64))); +} + +QXAMediaRecoderControl::~QXAMediaRecoderControl() +{ + QT_TRACE_FUNCTION_ENTRY_EXIT; +} + +QUrl QXAMediaRecoderControl::outputLocation() const +{ + if (m_session) + return m_session->outputLocation(); + return QUrl(); +} + +bool QXAMediaRecoderControl::setOutputLocation(const QUrl &location) +{ + if (m_session) + return m_session->setOutputLocation(location); + return false; +} + +QMediaRecorder::State QXAMediaRecoderControl::state() const +{ + if (m_session) + return m_session->state(); + return QMediaRecorder::StoppedState; +} + +qint64 QXAMediaRecoderControl::duration() const +{ + if (m_session) + return m_session->duration(); + return 0; +} + +void QXAMediaRecoderControl::record() +{ + if (m_session) + m_session->record(); +} + +void QXAMediaRecoderControl::pause() +{ + if (m_session) + m_session->pause(); +} + +void QXAMediaRecoderControl::stop() +{ + if (m_session) + m_session->stop(); +} + +void QXAMediaRecoderControl::applySettings() +{ + if (m_session) + m_session->applySettings(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxamediarecordercontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxamediarecordercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,82 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QXAMEDIARECORDERCONTROL_H +#define QXAMEDIARECORDERCONTROL_H + +#include +#include + +QTM_USE_NAMESPACE + +/* + * This class implements QMediaRecorderControl interface. + */ + +class QXARecordSession; + +class QXAMediaRecoderControl : public QMediaRecorderControl +{ + Q_OBJECT + Q_PROPERTY(qint64 duration READ duration NOTIFY durationChanged) + +public: + QXAMediaRecoderControl(QXARecordSession *session, QObject *parent = 0); + virtual ~QXAMediaRecoderControl(); + + QUrl outputLocation() const; + bool setOutputLocation(const QUrl &location); + + QMediaRecorder::State state() const; + + qint64 duration() const; + void applySettings(); + +public Q_SLOTS: + void record(); + void pause(); + void stop(); + +private: + QXARecordSession *m_session; +}; + +#endif /* QXAMEDIARECORDERCONTROL_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordmediaservice.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordmediaservice.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,82 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 + +#include "qxarecordmediaservice.h" +#include "qxarecordsession.h" +#include "qxamediarecordercontrol.h" +#include "qxaaudioendpointselector.h" +#include "qxaaudioencodercontrol.h" +#include "qxamediacontainercontrol.h" +#include "qxacommon.h" + +QXARecodMediaService::QXARecodMediaService(QObject *parent) +:QMediaService(parent) +{ + QT_TRACE_FUNCTION_ENTRY; + m_session = new QXARecordSession(this); + m_control = new QXAMediaRecoderControl(m_session, this); + m_endpoint = new QXAAudioEndpointSelector(m_session, this); + m_encoder = new QXAAudioEncoderControl(m_session, this); + m_container = new QXAMediaContainerControl(m_session, this); +} + +QXARecodMediaService::~QXARecodMediaService() +{ + QT_TRACE_FUNCTION_ENTRY_EXIT; +} + +QMediaControl* QXARecodMediaService::control(const char *name) const +{ + QT_TRACE_FUNCTION_ENTRY; + if (qstrcmp(name, QMediaRecorderControl_iid) == 0) + return m_control; + else if (qstrcmp(name, QAudioEndpointSelector_iid) == 0) + return m_endpoint; + else if (qstrcmp(name, QAudioEncoderControl_iid) == 0) + return m_encoder; + else if (qstrcmp(name, QMediaContainerControl_iid) == 0) + return m_container; + QT_TRACE_FUNCTION_EXIT; + return 0; +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordmediaservice.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordmediaservice.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,78 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QXARECORDMEDIASERVICE_H +#define QXARECORDMEDIASERVICE_H + +#include +#include + +QTM_USE_NAMESPACE + +/* + * This class implements QMediaService interface. + */ + +class QXARecordSession; +class QXAMediaRecoderControl; +class QXAAudioEndpointSelector; +class QXAAudioEncoderControl; +class QXAMediaContainerControl; + +class QXARecodMediaService : public QMediaService +{ + + Q_OBJECT + +public: + QXARecodMediaService(QObject *parent = 0); + ~QXARecodMediaService(); + QMediaControl *control(const char *name) const; + +private: + QXARecordSession *m_session; + QXAMediaRecoderControl *m_control; + QXAAudioEndpointSelector *m_endpoint; + QXAAudioEncoderControl *m_encoder; + QXAMediaContainerControl *m_container; +}; + +#endif /* QXARECORDMEDIASERVICE_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordmediaserviceproviderplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordmediaserviceproviderplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,69 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include "qxarecordmediaserviceproviderplugin.h" +#include "qxarecordmediaservice.h" +#include "qxacommon.h" + +QStringList QXARecordMediaServiceProviderPlugin::keys() const +{ + return QStringList() + << QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE); +} + +QMediaService* QXARecordMediaServiceProviderPlugin::create(QString const& key) +{ + if (key == QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE)) + return new QXARecodMediaService; + else + QT_TRACE2("unsupported key:", key); + return 0; +} + +void QXARecordMediaServiceProviderPlugin::release(QMediaService *service) +{ + QT_TRACE_FUNCTION_ENTRY; + delete service; + QT_TRACE_FUNCTION_EXIT; +} + +Q_EXPORT_PLUGIN2(xarecordservice, QXARecordMediaServiceProviderPlugin); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordmediaserviceproviderplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordmediaserviceproviderplugin.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,66 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QXARECORDMEDIASERVICEPROVIDERPLUGIN_H +#define QXARECORDMEDIASERVICEPROVIDERPLUGIN_H + +#include +#include + +QTM_USE_NAMESPACE + +/* + * This class implements QMediaServiceProviderPlugin interface. + * This plug-in is a factory interface where individual services are created and + * deleted. + */ + +class QXARecordMediaServiceProviderPlugin : public QMediaServiceProviderPlugin +{ + Q_OBJECT + +public: + QStringList keys() const; + QMediaService* create(QString const& key); + void release(QMediaService *service); +}; + +#endif /* QXARECORDMEDIASERVICEPROVIDERPLUGIN_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordsession.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordsession.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,647 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include "qxarecordsession.h" +#include "xarecordsessionimpl.h" +#include "qxacommon.h" + +/* The following declaration is required to allow QList to be added to + * QVariant + */ +Q_DECLARE_METATYPE(QList) + +/* This macro checks for m_impl null pointer. If it is, emits an error signal + * error(QMediaRecorder::ResourceError, tr("Service has not been started")); + * and returns from function immediately with value 's'. + */ + +#define RETURN_s_IF_m_impl_IS_NULL(s) \ + if (!m_impl) { \ + emit error(QMediaRecorder::ResourceError, tr("Service has not been started")); \ + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::ResourceError, tr(\"Service has not been started\"))"); \ + return s; \ + } + +/* This macro checks for m_impl null pointer. If it is, emits an error signal + * error(QMediaRecorder::ResourceError, tr("Service has not been started")); + * and returns from function immediately. + */ +#define RETURN_IF_m_impl_IS_NULL \ + if (!m_impl) { \ + emit error(QMediaRecorder::ResourceError, tr("Service has not been started")); \ + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::ResourceError, tr(\"Service has not been started\"))"); \ + return; \ + } + +QXARecordSession::QXARecordSession(QObject *parent) +:QObject(parent), +m_state(QMediaRecorder::StoppedState) +{ + QT_TRACE_FUNCTION_ENTRY; + m_impl = NULL; + m_impl = new XARecordSessionImpl(*this); + if (m_impl) { + if (m_impl->postConstruct() == KErrNone) { + initCodecsList(); + initContainersList(); + m_containerMimeType = QString(); + m_audioencodersettings.setBitRate(0); + m_audioencodersettings.setChannelCount(-1); + m_audioencodersettings.setEncodingMode(QtMedia::ConstantQualityEncoding); + m_audioencodersettings.setQuality(QtMedia::NormalQuality); + m_audioencodersettings.setSampleRate(-1); + QT_TRACE1("Initialized implementation"); + } + else { + delete m_impl; + m_impl = NULL; + QT_TRACE1("Error initializing implementation"); + } + } + else { + emit error(QMediaRecorder::ResourceError, tr("Unable to start Service")); + } + QT_TRACE_FUNCTION_EXIT; +} + +QXARecordSession::~QXARecordSession() +{ + QT_TRACE_FUNCTION_ENTRY; + delete m_impl; + QT_TRACE_FUNCTION_EXIT; +} + +QUrl QXARecordSession::outputLocation() +{ + return m_outputLocation; +} + +bool QXARecordSession::setOutputLocation(const QUrl &location) +{ + QT_TRACE_FUNCTION_ENTRY; + + RETURN_s_IF_m_impl_IS_NULL(false); + + // Location can be set only when recorder is in stopped state. + if (state() != QMediaRecorder::StoppedState ) + return false; + + // Validate URL + if (!location.isValid()) + return false; + + // If old and new locations are same, do nothing. + QString newUrlStr = (QUrl::fromUserInput(location.toString().toLower())).toString(); + QString curUrlStr = (QUrl::fromUserInput(m_outputLocation.toString().toLower())).toString(); + if (curUrlStr.compare(newUrlStr) == KErrNone) + return true; + + bool retVal = false; + TPtrC16 tempPtr(reinterpret_cast(newUrlStr.utf16())); + if (m_impl->setURI(tempPtr) == 0) { + m_outputLocation = location; + retVal = true; + } + else { + emit error(QMediaRecorder::ResourceError, tr("Generic error")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::ResourceError, tr(\"Generic error\"))"); + } + + QT_TRACE_FUNCTION_EXIT; + return retVal; +} + +QMediaRecorder::State QXARecordSession::state() +{ + return m_state; +} + +qint64 QXARecordSession::duration() +{ + TInt64 dur(0); + + QT_TRACE_FUNCTION_ENTRY; + + RETURN_s_IF_m_impl_IS_NULL(dur); + + m_impl->duration(dur); + + QT_TRACE_FUNCTION_EXIT; + return (qint64)dur; +} + +void QXARecordSession::applySettings() +{ + if (m_appliedaudioencodersettings != m_audioencodersettings) + setEncoderSettingsToImpl(); +} + +void QXARecordSession::record() +{ + QT_TRACE_FUNCTION_ENTRY; + + RETURN_IF_m_impl_IS_NULL; + + /* 1. Set encoder settings here */ + if (m_appliedaudioencodersettings != m_audioencodersettings) + RET_IF_FALSE(setEncoderSettingsToImpl()); + + /* 2. Start recording... + * If successful, setRecorderState(QMediaRecorder::RecordingState); + * will be called from the callback cbRecordingStarted() + */ + if (m_impl->record() != KErrNone) { + emit error(QMediaRecorder::ResourceError, tr("Generic error")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::ResourceError, tr(\"Generic error\"))"); + } + + QT_TRACE_FUNCTION_EXIT; +} + +void QXARecordSession::pause() +{ + QT_TRACE_FUNCTION_ENTRY; + + RETURN_IF_m_impl_IS_NULL; + + if (m_impl->pause() == KErrNone) { + setRecorderState(QMediaRecorder::PausedState); + } + else { + emit error(QMediaRecorder::ResourceError, tr("Unable to pause")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::ResourceError, tr(\"Unable to pause\"))"); + } + + QT_TRACE_FUNCTION_EXIT; +} + +void QXARecordSession::stop() +{ + QT_TRACE_FUNCTION_ENTRY; + + RETURN_IF_m_impl_IS_NULL; + + if ((m_impl->stop() == KErrNone)) { + setRecorderState(QMediaRecorder::StoppedState); + } + else { + emit error(QMediaRecorder::ResourceError, tr("Unable to stop")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::ResourceError, tr(\"Unable to stop\"))"); + } + + QT_TRACE_FUNCTION_EXIT; +} + +void QXARecordSession::cbDurationChanged(TInt64 new_pos) +{ + emit durationChanged((qint64)new_pos); + SIGNAL_EMIT_TRACE1("emit durationChanged((qint64)new_pos);"); +} + +void QXARecordSession::cbAvailableAudioInputsChanged() +{ + emit availableAudioInputsChanged(); + SIGNAL_EMIT_TRACE1("emit availableAudioInputsChanged();"); +} + +void QXARecordSession::cbRecordingStarted() +{ + setRecorderState(QMediaRecorder::RecordingState); +} + +void QXARecordSession::cbRecordingStopped() +{ + emit error(QMediaRecorder::ResourceError, tr("Resources Unavailable")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::ResourceError, tr(\"Resources Unavailable\"))"); + setRecorderState(QMediaRecorder::StoppedState); +} + +/* For QAudioEndpointSelector begin */ +QList QXARecordSession::availableEndpoints() +{ + QT_TRACE_FUNCTION_ENTRY; + + QList strList; + + RETURN_s_IF_m_impl_IS_NULL(strList); + + QString str; + RArray names; + m_impl->getAudioInputDeviceNames(names); + for (TInt index = 0; index < names.Count(); index++) { + str = QString((QChar*)names[index].Ptr(), names[index].Length()); + strList.append(str); + } + + QT_TRACE_FUNCTION_EXIT; + return strList; +} + +QString QXARecordSession::endpointDescription(const QString &name) +{ + /* From AL we get only device name */ + return name; +} + +QString QXARecordSession::defaultEndpoint() +{ + QT_TRACE_FUNCTION_ENTRY; + + QString str; + + RETURN_s_IF_m_impl_IS_NULL(str); + + TPtrC name; + if(m_impl->defaultAudioInputDevice(name) == KErrNone) + str = QString((QChar*)name.Ptr(), name.Length()); + + QT_TRACE_FUNCTION_EXIT; + return str; +} + +QString QXARecordSession::activeEndpoint() +{ + QT_TRACE_FUNCTION_ENTRY; + + QString str; + + RETURN_s_IF_m_impl_IS_NULL(str); + + TPtrC name; + if(m_impl->activeAudioInputDevice(name) == KErrNone) + str = QString((QChar*)name.Ptr(), name.Length()); + + QT_TRACE_FUNCTION_EXIT; + return str; +} + +void QXARecordSession::setActiveEndpoint(const QString &name) +{ + QT_TRACE_FUNCTION_ENTRY; + + RETURN_IF_m_impl_IS_NULL; + + TPtrC16 tempPtr(reinterpret_cast(name.utf16())); + if (m_impl->setAudioInputDevice(tempPtr) == true) { + emit activeEndpointChanged(name); + SIGNAL_EMIT_TRACE1("emit activeEndpointChanged(name)"); + } + else { + emit error(QMediaRecorder::ResourceError, tr("Invalid endpoint")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::ResourceError, tr(\"Invalid endpoint\"))"); + } + + QT_TRACE_FUNCTION_EXIT; +} +/* For QAudioEndpointSelector end */ + +/* For QAudioEncoderControl begin */ +QStringList QXARecordSession::supportedAudioCodecs() +{ + return m_codecs; +} + +QString QXARecordSession::codecDescription(const QString &codecName) +{ + if (m_codecs.contains(codecName.toLower())) + return QString(codecName); + return QString(); +} + +QList QXARecordSession::supportedSampleRates( + const QAudioEncoderSettings &settings, + bool *continuous) +{ + QT_TRACE_FUNCTION_ENTRY; + + QList srList; + + RETURN_s_IF_m_impl_IS_NULL(srList); + + QString selectedCodec = settings.codec().toLower(); + + if (m_codecs.indexOf(selectedCodec) >= 0) { + RArray sampleRates; + TBool isContinuous; + TPtrC16 tempPtr(reinterpret_cast(selectedCodec.utf16())); + if (m_impl->getSampleRates(tempPtr, sampleRates, isContinuous) == KErrNone) { + for (TInt index = 0; index < sampleRates.Count(); index++) + srList.append(sampleRates[index]); + sampleRates.Close(); + *continuous = false; + if (isContinuous == true) + *continuous = true; + } + } + + QT_TRACE_FUNCTION_EXIT; + return srList; +} + +QAudioEncoderSettings QXARecordSession::audioSettings() +{ + return m_audioencodersettings; +} + +void QXARecordSession::setAudioSettings(const QAudioEncoderSettings &settings) +{ + m_audioencodersettings = settings; +} + +QStringList QXARecordSession::supportedEncodingOptions(const QString &codec) +{ + QT_TRACE_FUNCTION_ENTRY; + Q_UNUSED(codec); + QStringList options; + options << "bitrate"; + + QT_TRACE_FUNCTION_EXIT; + return options; +} + +QVariant QXARecordSession::encodingOption(const QString &codec, const QString &name) +{ + QT_TRACE_FUNCTION_ENTRY; + + QVariant encodingOption; + + RETURN_s_IF_m_impl_IS_NULL(encodingOption); + + if (name.toLower().compare("bitrate") == 0) { + TPtrC16 tempPtr(reinterpret_cast(codec.toLower().utf16())); + QList bitrateList; + RArray bitrates; + if (m_impl->getBitrates(tempPtr, bitrates) == KErrNone) { + for (TInt index = 0; index < bitrates.Count(); index++) + bitrateList.append(bitrates[index]); + bitrates.Close(); + } + encodingOption.setValue(bitrateList); + } + + QT_TRACE_FUNCTION_EXIT; + return encodingOption; +} + +void QXARecordSession::setEncodingOption( + const QString &codec, + const QString &name, + const QVariant &value) +{ + /* + * Currently nothing can be set via this function. + * Bitrate is set via QAudioEncoderSettings::setBitrate(). + */ + Q_UNUSED(codec); + Q_UNUSED(name); + Q_UNUSED(value); +} +/* For QAudioEncoderControl end */ + +QStringList QXARecordSession::supportedContainers() +{ + return m_containers; +} + +QString QXARecordSession::containerMimeType() +{ + return m_containerMimeType; +} + +void QXARecordSession::setContainerMimeType(const QString &formatMimeType) +{ + if (m_containers.indexOf(formatMimeType.toLower()) >= 0 ) + m_containerMimeType = formatMimeType; + else { + emit error(QMediaRecorder::FormatError, tr("Invalid container")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::FormatError, tr(\"Invalid container\"))"); + } +} + +QString QXARecordSession::containerDescription(const QString &formatMimeType) +{ + int index = m_containers.indexOf(formatMimeType.toLower()); + if (index >= 0) { + return m_containersDesc.at(index); + } + else { + emit error(QMediaRecorder::FormatError, tr("Invalid container")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::FormatError, tr(\"Invalid container\"))"); + } + return QString(); +} + +void QXARecordSession::setRecorderState(QMediaRecorder::State state) +{ + if (state != m_state) { + m_state = state; + emit stateChanged(m_state); + SIGNAL_EMIT_TRACE1("emit stateChanged(m_state);"); + } +} + +void QXARecordSession::initCodecsList() +{ + QT_TRACE_FUNCTION_ENTRY; + + RETURN_IF_m_impl_IS_NULL; + + m_codecs.clear(); + + const RArray& names = m_impl->getAudioEncoderNames(); + QString str; + + for (TInt index = 0; index < names.Count(); index++) { + str = QString((QChar*)names[index].Ptr(), names[index].Length()); + m_codecs.append(str); + } + QT_TRACE_FUNCTION_EXIT; +} + +void QXARecordSession::initContainersList() +{ + QT_TRACE_FUNCTION_ENTRY; + + RETURN_IF_m_impl_IS_NULL; + + m_containers.clear(); + m_containersDesc.clear(); + + const RArray& names = m_impl->getContainerNames(); + const RArray& descs = m_impl->getContainerDescs(); + QString str; + + for (TInt32 index = 0; index < names.Count(); index++) { + str = QString((QChar*)names[index].Ptr(), names[index].Length()); + m_containers.append(str); + str = QString((QChar*)descs[index].Ptr(), descs[index].Length()); + m_containersDesc.append(str); + } + QT_TRACE_FUNCTION_EXIT; +} + +bool QXARecordSession::setEncoderSettingsToImpl() +{ + QT_TRACE_FUNCTION_ENTRY; + + RETURN_s_IF_m_impl_IS_NULL(false); + + m_impl->resetEncoderAttributes(); + + QString tempStr = m_containerMimeType.toLower(); + TPtrC16 tempPtr(reinterpret_cast(tempStr.utf16())); + m_impl->setContainerType(tempPtr); + + /* Validate and set bitrate only if encoding mode is other than quality encoding */ + if (m_audioencodersettings.encodingMode() != QtMedia::ConstantQualityEncoding) { + if (m_audioencodersettings.bitRate() < 0 ) { + emit error(QMediaRecorder::FormatError, tr("Invalid bitrate")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::FormatError, tr(\"Invalid bitrate\"))"); + return false; + } + else { + m_impl->setBitRate(m_audioencodersettings.bitRate()); + } + } + + if (m_audioencodersettings.channelCount() == -1) { + m_impl->setOptimalChannelCount(); + } + else if (m_audioencodersettings.channelCount() <= 0) { + emit error(QMediaRecorder::FormatError, tr("Invalid channel count")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::FormatError, tr(\"Invalid channel count\"));"); + return false; + } + else { + m_impl->setChannels(m_audioencodersettings.channelCount()); + } + + tempStr = m_audioencodersettings.codec().toLower(); + if (m_codecs.indexOf(tempStr) >= 0) { + tempPtr.Set(reinterpret_cast(tempStr.utf16())); + /* We already did validation above, so function always returns true */ + m_impl->setCodec(tempPtr); + } + else { + emit error(QMediaRecorder::FormatError, tr("Invalid codec")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::FormatError, tr(\"Invalid codec\"));"); + return false; + } + + switch (m_audioencodersettings.encodingMode()) { + case QtMedia::ConstantQualityEncoding: { + switch (m_audioencodersettings.quality()) { + case QtMedia::VeryLowQuality: + m_impl->setVeryLowQuality(); + break; + case QtMedia::LowQuality: + m_impl->setLowQuality(); + break; + case QtMedia::NormalQuality: + m_impl->setNormalQuality(); + break; + case QtMedia::HighQuality: + m_impl->setHighQuality(); + break; + case QtMedia::VeryHighQuality: + m_impl->setVeryHighQuality(); + break; + default: + emit error(QMediaRecorder::FormatError, tr("Invalid encoding quality setting")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::FormatError, tr(\"Invalid encoding quality setting\"));"); + return false; + }; /* end of switch (m_audioencodersettings.quality())*/ + } + break; + case QtMedia::ConstantBitRateEncoding: { + TInt32 status = m_impl->setCBRMode(); + if (status == KErrNotSupported) { + emit error(QMediaRecorder::FormatError, tr("Invalid encoding mode setting")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::FormatError, tr(\"Invalid encoding mode setting\"));"); + return false; + } + else if (status != KErrNone) { + emit error(QMediaRecorder::ResourceError, tr("Internal error")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::ResourceError, tr(\"Internal error\"));"); + return false; + } + } + break; + case QtMedia::AverageBitRateEncoding: { + TInt32 status = m_impl->setVBRMode(); + if (status == KErrNotSupported) { + emit error(QMediaRecorder::FormatError, tr("Invalid encoding mode setting")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::FormatError, tr(\"Invalid encoding mode setting\"));"); + return false; + } + else if (status != KErrNone) { + emit error(QMediaRecorder::ResourceError, tr("Internal error")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::ResourceError, tr(\"Internal error\"));"); + return false; + } + } + break; + case QtMedia::TwoPassEncoding: + // fall through + default: { + emit error(QMediaRecorder::FormatError, tr("Invalid encoding mode setting")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::FormatError, tr(\"Invalid encoding mode setting\"));"); + return false; + } + }; /* switch (m_audioencodersettings.encodingMode()) */ + + if (m_audioencodersettings.sampleRate() == -1) { + m_impl->setOptimalSampleRate(); + } + else if (m_audioencodersettings.sampleRate() <= 0) { + emit error(QMediaRecorder::FormatError, tr("Invalid sample rate")); + SIGNAL_EMIT_TRACE1("emit error(QMediaRecorder::FormatError, tr(\"Invalid sample rate\"));"); + return false; + } + else { + m_impl->setSampleRate(m_audioencodersettings.sampleRate()); + } + m_appliedaudioencodersettings = m_audioencodersettings; + QT_TRACE_FUNCTION_EXIT; + return true; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordsession.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/qxarecordsession.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,141 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QXARECORDSESSION_H +#define QXARECORDSESSION_H + +#include +#include +#include "qmediarecorder.h" +#include "xarecordsessioncommon.h" + +QTM_USE_NAMESPACE + +class XARecordSessionImpl; + +/* + * This is a backend class for all QXXXControl objects. + * This class contains actual implementation of recording functionality + * from the control object's perspective. + */ + + +class QXARecordSession : public QObject, + public XARecordObserver +{ +Q_OBJECT + +public: + QXARecordSession(QObject *parent); + virtual ~QXARecordSession(); + + /* For QMediaRecorderControl begin */ + QUrl outputLocation(); + bool setOutputLocation(const QUrl &location); + QMediaRecorder::State state(); + qint64 duration(); + void applySettings(); + + void record(); + void pause(); + void stop(); + + void cbDurationChanged(TInt64 new_pos); + void cbAvailableAudioInputsChanged(); + void cbRecordingStarted(); + void cbRecordingStopped(); + /* For QMediaRecorderControl end */ + + /* For QAudioEndpointSelector begin */ + QList availableEndpoints(); + QString endpointDescription(const QString &name); + QString defaultEndpoint(); + QString activeEndpoint(); + void setActiveEndpoint(const QString &name); + /* For QAudioEndpointSelector end */ + + /* For QAudioEncoderControl begin */ + QStringList supportedAudioCodecs(); + QString codecDescription(const QString &codecName); + QList supportedSampleRates( + const QAudioEncoderSettings &settings, + bool *continuous); + QAudioEncoderSettings audioSettings(); + void setAudioSettings(const QAudioEncoderSettings &settings); + QStringList supportedEncodingOptions(const QString &codec); + QVariant encodingOption(const QString &codec, const QString &name); + void setEncodingOption(const QString &codec, const QString &name, const QVariant &value); + /* For QAudioEncoderControl end */ + + /* For QMediaContainerControl begin */ + QStringList supportedContainers(); + QString containerMimeType(); + void setContainerMimeType(const QString &formatMimeType); + QString containerDescription(const QString &formatMimeType); + /* For QMediaContainerControl end */ + +Q_SIGNALS: + void stateChanged(QMediaRecorder::State state); + void durationChanged(qint64 duration); + void error(int error, const QString &errorString); + void activeEndpointChanged(const QString& name); + void availableAudioInputsChanged(); + +private: + void setRecorderState(QMediaRecorder::State state); + void initCodecsList(); + void initContainersList(); + bool setEncoderSettingsToImpl(); + +private: + /* Own */ + XARecordSessionImpl *m_impl; + QUrl m_outputLocation; + QMediaRecorder::State m_state; + QStringList m_codecs; + QAudioEncoderSettings m_audioencodersettings; + QAudioEncoderSettings m_appliedaudioencodersettings; + QStringList m_containers; + QStringList m_containersDesc; + QString m_containerMimeType; +}; + +#endif /* QXARECORDSESSION_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/xarecordsessioncommon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/xarecordsessioncommon.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,99 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 XARECORDSESSIONCOMMON_H +#define XARECORDSESSIONCOMMON_H + +#include +#ifdef PLUGIN_SYMBIAN_TRACE_ENABLED +# include +#endif /* PLUGIN_SYMBIAN_TRACE_ENABLED */ + +#ifdef PLUGIN_SYMBIAN_TRACE_ENABLED +# define TRACE_FUNCTION_ENTRY RDebug::Printf( "%s >", __PRETTY_FUNCTION__) +# define TRACE_FUNCTION_EXIT RDebug::Printf( "%s <", __PRETTY_FUNCTION__) +# define TRACE_FUNCTION_ENTRY_EXIT RDebug::Printf( "%s ><", __PRETTY_FUNCTION__) +# define TRACE_LOG(s) RDebug::Print s +#else +# define TRACE_FUNCTION_ENTRY +# define TRACE_FUNCTION_EXIT +# define TRACE_FUNCTION_ENTRY_EXIT +# define TRACE_LOG +#endif /* PLUGIN_SYMBIAN_TRACE_ENABLED */ + +#define RET_IF_FALSE(e) \ + if (e == false) \ + { \ + return; \ + } + +#define RET_BOOL_IF_FALSE(e) \ + if (e == false) \ + { \ + return e; \ + } + +#define RET_ERR_IF_ERR(e) \ + if (e != 0) \ + { \ + return e; \ + } + +#define MAX_NUMBER_INTERFACES 20 +#define MAX_NUMBER_INPUT_DEVICES 10 +#define MAX_NUMBER_ENCODERS 10 + +//const TInt32 KExtErr = (TInt32)(-2147483648); +const TInt32 KExtErr = -32768; +const TInt32 KExtErrUnspecifiedCodecForContainer = (KExtErr+1); +const TInt32 KExtErrUnsupportedCodecForContainer = (KExtErr+2); +const TInt32 KExtErrUnsupportedURISuffixForContainer = (KExtErr+3); + +class XARecordObserver +{ +public: + virtual void cbDurationChanged(TInt64 new_pos) = 0; + virtual void cbAvailableAudioInputsChanged() = 0; + virtual void cbRecordingStarted() = 0; + virtual void cbRecordingStopped() = 0; +}; + +#endif /* XARECORDSESSIONCOMMON_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/xarecordsessionimpl.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/xarecordsessionimpl.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1260 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "xarecordsessionimpl.h" +#include "xarecordsessioncommon.h" + +_LIT8(K8WAVMIMETYPE, "audio/x-wav"); + +/* + * These codec names are not part of AL. Hence we need to define names here. + * */ +_LIT(KAUDIOCODECPCM, "pcm"); +_LIT(KAUDIOCODECAMR, "amr"); +_LIT(KAUDIOCODECAAC, "aac"); + +_LIT(KCONTAINERWAV, "wav"); +_LIT(KCONTAINERWAVDESC, "wav container"); +_LIT(KCONTAINERAMR, "amr-nb"); +_LIT(KCONTAINERAMRDESC, "amr-nb File format"); +_LIT(KCONTAINERMP4, "mp4"); +_LIT(KCONTAINERMP4DESC, "mp4 container"); + +const TUint KRecordPosUpdatePeriod = 1000; +const TUint KMilliToHz = 1000; +const TUint KMaxNameLength = 256; + + +/* Local functions for callback registation */ +void cbXAObjectItf( + XAObjectItf caller, + const void *pContext, + XAuint32 event, + XAresult result, + XAuint32 param, + void *pInterface); + +void cbXARecordItf( + XARecordItf caller, + void *pContext, + XAuint32 event); + +void cbXAAvailableAudioInputsChanged( + XAAudioIODeviceCapabilitiesItf caller, + void *pContext, + XAuint32 deviceID, + XAint32 numInputs, + XAboolean isNew); + +XARecordSessionImpl::XARecordSessionImpl(XARecordObserver &parent) +:m_Parent(parent), +m_EOEngine(NULL), +m_MORecorder(NULL), +m_RecordItf(NULL), +m_AudioEncItf(NULL), +m_WAVMime(NULL), +m_URIName(NULL), +m_InputDeviceId(0), +m_ContainerType(0), +m_BitRate(0), +m_RateControl(0), +m_ChannelsOut(0), +m_SampleRate(0), +m_AudioIODevCapsItf(NULL), +m_AudioInputDeviceNames(NULL), +m_DefaultAudioInputDeviceNames(NULL), +m_AudioEncCapsItf(NULL) +{ + TRACE_FUNCTION_ENTRY_EXIT; +} + +XARecordSessionImpl::~XARecordSessionImpl() +{ + TRACE_FUNCTION_ENTRY; + + if (m_MORecorder) + (*m_MORecorder)->Destroy(m_MORecorder); + + if (m_EOEngine) + (*m_EOEngine)->Destroy(m_EOEngine); + + delete m_WAVMime; + delete m_URIName; + + m_InputDeviceIDs.Close(); + if (m_AudioInputDeviceNames) + m_AudioInputDeviceNames->Reset(); + delete m_AudioInputDeviceNames; + m_DefaultInputDeviceIDs.Close(); + if (m_DefaultAudioInputDeviceNames) + m_DefaultAudioInputDeviceNames->Reset(); + delete m_DefaultAudioInputDeviceNames; + m_EncoderIds.Close(); + m_EncoderNames.Close(); + m_ContainerNames.Close(); + m_ContainerDescs.Close(); + + TRACE_FUNCTION_EXIT; +} + +TInt32 XARecordSessionImpl::postConstruct() +{ + TRACE_FUNCTION_ENTRY; + + XAEngineOption engineOption[] = { (XAuint32) XA_ENGINEOPTION_THREADSAFE, (XAuint32) XA_BOOLEAN_TRUE}; + + /* Create and realize Engine object */ + TRACE_LOG(_L("XARecordSessionImpl: Creating Engine...")); + XAresult xa_result = xaCreateEngine (&m_EOEngine, 1, engineOption, 0, NULL, NULL); + TInt returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + TRACE_LOG(_L("XARecordSessionImpl: Realizing engine...")); + xa_result = (*m_EOEngine)->Realize(m_EOEngine, XA_BOOLEAN_FALSE); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + TRACE_LOG(_L("XARecordSessionImpl: OMX AL Engine realized successfully")); + + XAEngineItf engineItf; + xa_result = (*m_EOEngine)->GetInterface(m_EOEngine, XA_IID_ENGINE, (void**) &engineItf); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + xa_result = (*m_EOEngine)->GetInterface(m_EOEngine, + XA_IID_AUDIOIODEVICECAPABILITIES, + (void**) &m_AudioIODevCapsItf); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + xa_result = (*m_AudioIODevCapsItf)->RegisterAvailableAudioInputsChangedCallback( + m_AudioIODevCapsItf, + cbXAAvailableAudioInputsChanged, + (void*)this); + + xa_result = (*m_EOEngine)->GetInterface( + m_EOEngine, + XA_IID_AUDIOENCODERCAPABILITIES, + (void**) &m_AudioEncCapsItf); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + TRAP(returnValue, m_WAVMime = HBufC8::NewL(K8WAVMIMETYPE().Length() + 1)); + RET_ERR_IF_ERR(returnValue); + TPtr8 ptr = m_WAVMime->Des(); + ptr = K8WAVMIMETYPE(); // copy uri name into local variable + ptr.PtrZ(); // append zero terminator to end of URI + + m_AudioInputDeviceNames = new CDesC16ArrayFlat(2); + if (m_AudioInputDeviceNames == NULL) + returnValue = KErrNoMemory; + RET_ERR_IF_ERR(returnValue); + + m_DefaultAudioInputDeviceNames = new CDesC16ArrayFlat(2); + if (m_DefaultAudioInputDeviceNames == NULL) + returnValue = KErrNoMemory; + RET_ERR_IF_ERR(returnValue); + + returnValue = initContainersList(); + RET_ERR_IF_ERR(returnValue); + returnValue = initAudioEncodersList(); + RET_ERR_IF_ERR(returnValue); + returnValue = initAudioInputDevicesList(); + RET_ERR_IF_ERR(returnValue); + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TInt32 XARecordSessionImpl::setURI(const TDesC &aURI) +{ + TRACE_FUNCTION_ENTRY; + + /* This function will only get called when aURI is different than m_URIName + * and only when recorder is in stopped state. + * If the recorder object was created for a different URI (than aURI), we + * need to tear it down here. + */ + if (!m_URIName && m_MORecorder) { + (*m_MORecorder)->Destroy(m_MORecorder); + m_MORecorder = NULL; + m_RecordItf = NULL; + } + + delete m_URIName; + m_URIName = NULL; + TRAPD(returnValue, m_URIName = HBufC8::NewL(aURI.Length()+1)); + RET_ERR_IF_ERR(returnValue); + + TPtr8 uriPtr = m_URIName->Des(); + /* copy uri name into local variable */ + uriPtr.Copy(aURI); + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TInt32 XARecordSessionImpl::record() +{ + TRACE_FUNCTION_ENTRY; + + TInt32 returnValue(KErrGeneral); + if (!m_MORecorder || !m_RecordItf) { + TRACE_LOG(_L("XARecordSessionImpl::Record: MORecorder/RecordItf is not created")); + returnValue = createMediaRecorderObject(); + RET_ERR_IF_ERR(returnValue); + } + + returnValue = setEncoderSettingsToMediaRecorder(); + RET_ERR_IF_ERR(returnValue); + + XAuint32 state; + XAresult xa_result = (*m_RecordItf)->GetRecordState(m_RecordItf, &state); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + if ((state == XA_RECORDSTATE_STOPPED) + || (state == XA_RECORDSTATE_PAUSED)) { + TRACE_LOG(_L("XARecordSessionImpl::Record: Setting State to Recording...")); + xa_result = (*m_RecordItf)->SetRecordState(m_RecordItf, XA_RECORDSTATE_RECORDING); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + TRACE_LOG(_L("XARecordSessionImpl::Record: SetState to Recording")); + } + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TInt32 XARecordSessionImpl::pause() +{ + TRACE_FUNCTION_ENTRY; + + TInt32 returnValue(KErrGeneral); + if (!m_MORecorder || !m_RecordItf) { + TRACE_LOG(_L("XARecordSessionImpl::Record: MORecorder/RecordItf is not created")); + return returnValue; + } + + XAuint32 state; + XAresult xa_result = (*m_RecordItf)->GetRecordState(m_RecordItf, &state); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + if ((state == XA_RECORDSTATE_STOPPED) + || (state == XA_RECORDSTATE_RECORDING)) { + TRACE_LOG(_L("XARecordSessionImpl::Record: Setting State to Paused...")); + xa_result = (*m_RecordItf)->SetRecordState(m_RecordItf, XA_RECORDSTATE_PAUSED); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + TRACE_LOG(_L("XARecordSessionImpl::Record: SetState to Paused")); + } + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TInt32 XARecordSessionImpl::stop() +{ + TRACE_FUNCTION_ENTRY; + + TInt32 returnValue(KErrGeneral); + if (!m_MORecorder || !m_RecordItf) { + TRACE_LOG(_L("XARecordSessionImpl::Record: MORecorder/RecordItf is not created")); + return returnValue; + } + + XAuint32 state; + XAresult xa_result = (*m_RecordItf)->GetRecordState(m_RecordItf, &state); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + if ((state == XA_RECORDSTATE_PAUSED) + || (state == XA_RECORDSTATE_RECORDING)) { + TRACE_LOG(_L("XARecordSessionImpl::Record: Setting State to Stopped...")); + xa_result = (*m_RecordItf)->SetRecordState(m_RecordItf, XA_RECORDSTATE_STOPPED); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + TRACE_LOG(_L("XARecordSessionImpl::Record: SetState to Stopped")); + } + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TInt32 XARecordSessionImpl::duration(TInt64 &aDur) +{ + TRACE_FUNCTION_ENTRY; + + TInt32 returnValue(KErrGeneral); + + if (!m_MORecorder || !m_RecordItf) { + TRACE_LOG(_L("XARecordSessionImpl::Duration: MORecoder/RecordItf is not created")); + return returnValue; + } + + XAmillisecond milliSec; + XAresult xa_result = (*m_RecordItf)->GetPosition(m_RecordItf, &milliSec); + returnValue = mapError(xa_result, ETrue); + if (returnValue == KErrNone) + aDur = (TInt64)milliSec; + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +void XARecordSessionImpl::cbMediaRecorder( + XAObjectItf /*caller*/, + const void */*pContext*/, + XAuint32 event, + XAresult result, + XAuint32 /*param*/, + void */*pInterface*/) +{ + TRACE_FUNCTION_ENTRY; + + switch (event) { + case XA_OBJECT_EVENT_RESOURCES_LOST: + m_Parent.cbRecordingStopped(); + break; + case XA_OBJECT_EVENT_RUNTIME_ERROR: { + switch (result) { + case XA_RESULT_RESOURCE_LOST: + m_Parent.cbRecordingStopped(); + break; + default: + break; + }; /* of switch (result) */ + } + default: + break; + } /* of switch (event) */ + + TRACE_FUNCTION_EXIT; +} + +void XARecordSessionImpl::cbRecordItf( + XARecordItf /*caller*/, + void */*pContext*/, + XAuint32 event) +{ + TRACE_FUNCTION_ENTRY; + + switch(event) { + case XA_RECORDEVENT_HEADATLIMIT: + TRACE_LOG(_L("XA_RECORDEVENT_HEADATLIMIT")); + break; + case XA_RECORDEVENT_HEADATMARKER: + TRACE_LOG(_L("XA_RECORDEVENT_HEADATMARKER")); + break; + case XA_RECORDEVENT_HEADATNEWPOS: { + TInt32 returnValue; + XAresult xa_result; + XAmillisecond milliSec; + xa_result = (*m_RecordItf)->GetPosition(m_RecordItf, &milliSec); + returnValue = mapError(xa_result, ETrue); + if (returnValue == KErrNone) + m_Parent.cbDurationChanged((TInt64)milliSec); + } + break; + case XA_RECORDEVENT_HEADMOVING: + TRACE_LOG(_L("XA_RECORDEVENT_HEADMOVING")); + m_Parent.cbRecordingStarted(); + break; + case XA_RECORDEVENT_HEADSTALLED: + TRACE_LOG(_L("XA_RECORDEVENT_HEADSTALLED")); + break; + case XA_RECORDEVENT_BUFFER_FULL: + TRACE_LOG(_L("XA_RECORDEVENT_BUFFER_FULL")); + break; + default: + TRACE_LOG(_L("UNKNOWN RECORDEVENT EVENT")); + break; + } /* of switch(event) */ + + TRACE_FUNCTION_EXIT; +} + +/* For QAudioEndpointSelector begin */ +void XARecordSessionImpl::getAudioInputDeviceNames(RArray &aArray) +{ + TRACE_FUNCTION_ENTRY; + + for(TInt index = 0; index < m_AudioInputDeviceNames->MdcaCount(); index++) + aArray.Append(m_AudioInputDeviceNames->MdcaPoint(index)); + TRACE_FUNCTION_EXIT; +} + +TInt32 XARecordSessionImpl::defaultAudioInputDevice(TPtrC &endPoint) +{ + TRACE_FUNCTION_ENTRY; + + TInt32 err(KErrGeneral); + if (m_DefaultAudioInputDeviceNames->MdcaCount() >= 0) + endPoint.Set(m_DefaultAudioInputDeviceNames->MdcaPoint(0)); + + TRACE_FUNCTION_EXIT; + return err; +} + +TInt32 XARecordSessionImpl::activeAudioInputDevice(TPtrC &endPoint) +{ + TRACE_FUNCTION_ENTRY; + + TInt32 returnValue(KErrGeneral); + TBool found(EFalse); + TInt index = 0; + for(; index < m_InputDeviceIDs.Count(); index++) { + if (m_InputDeviceIDs[index] == m_InputDeviceId) { + found = ETrue; + break; + } + } + + /* Comparing found with ETrue produces linker error */ + if (found == true) { + endPoint.Set(m_AudioInputDeviceNames->MdcaPoint(index)); + returnValue = KErrNone; + } + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TBool XARecordSessionImpl::setAudioInputDevice(const TDesC &aDevice) +{ + TRACE_FUNCTION_ENTRY; + + /* validate if we can set input device id */ + TBool found(EFalse); + m_InputDeviceId = 0; + TInt index = 0; + for(; index < m_AudioInputDeviceNames->MdcaCount(); index++) { + if (m_AudioInputDeviceNames->MdcaPoint(index).Compare(aDevice) == 0) { + found = ETrue; + break; + } + } + if (found == true) { + m_InputDeviceId = m_InputDeviceIDs[index]; + } + + TRACE_FUNCTION_EXIT; + return found; +} + +void XARecordSessionImpl::cbAvailableAudioInputsChanged( + XAAudioIODeviceCapabilitiesItf /*caller*/, + void */*pContext*/, + XAuint32 deviceID, + XAint32 /*numInputs*/, + XAboolean isNew) +{ + TRACE_FUNCTION_ENTRY; + + /* If a new device is added into the system, append it to available input list */ + if (isNew == XA_BOOLEAN_TRUE) { + XAAudioInputDescriptor audioInputDescriptor; + m_InputDeviceIDs.Append(deviceID); + + XAresult xa_result = (*m_AudioIODevCapsItf)->QueryAudioInputCapabilities( + m_AudioIODevCapsItf, + deviceID, + &audioInputDescriptor); + + if ((mapError(xa_result, ETrue)) == KErrNone) { + TUint8* inDevNamePtr = audioInputDescriptor.deviceName; + TUint8* tempPtr = audioInputDescriptor.deviceName; + TInt32 inDevNameLength = 0; + while (*tempPtr++) inDevNameLength++; + TPtrC8 ptr(inDevNamePtr, inDevNameLength); + /* Convert 8 bit to 16 bit */ + TBuf16 name; + name.Copy(ptr); + /* Using TRAP with returnValue results in compiler error */ + TRAP_IGNORE(m_AudioInputDeviceNames->AppendL(name)); + } + } + else { + /* an available device has been removed from the the system, remove it from + * available input list and also default list */ + TBool found(EFalse); + TInt index = 0; + for (; index < m_InputDeviceIDs.Count(); index++) { + if (deviceID == m_InputDeviceIDs[index]) { + found = ETrue; + break; + } + } + if (found == true) { + m_InputDeviceIDs.Remove(index); + m_AudioInputDeviceNames->Delete(index); + } + if (deviceID == m_InputDeviceId) + m_InputDeviceId = 0; + + found = EFalse; + for (index = 0; index < m_DefaultInputDeviceIDs.Count(); index++) { + if (deviceID == m_DefaultInputDeviceIDs[index]) { + found = ETrue; + break; + } + } + if (found == true) { + m_DefaultInputDeviceIDs.Remove(index); + m_DefaultAudioInputDeviceNames->Delete(index); + } + } + m_Parent.cbAvailableAudioInputsChanged(); + + TRACE_FUNCTION_EXIT; +} +/* For QAudioEndpointSelector end */ + +/* For QAudioEncoderControl begin */ +const RArray& XARecordSessionImpl::getAudioEncoderNames() +{ + TRACE_FUNCTION_ENTRY_EXIT; + return m_EncoderNames; +} + +TInt32 XARecordSessionImpl::getSampleRates( + const TDesC& aEncoder, + RArray &aSampleRates, + TBool &aIsContinuous) +{ + TRACE_FUNCTION_ENTRY; + + + aSampleRates.Reset(); + aIsContinuous = EFalse; + + XAuint32 encoderId = 0; + TBool found(EFalse); + for (TInt index = 0; index < m_EncoderIds.Count(); index++) { + if (m_EncoderNames[index].Compare(aEncoder) == 0) { + found = ETrue; + encoderId = m_EncoderIds[index]; + break; + } + } + + TInt32 returnValue(KErrGeneral); + if (found == false) + return returnValue; + + XAuint32 numCaps = 0; + XAAudioCodecDescriptor codecDesc; + XAresult xa_result = (*m_AudioEncCapsItf)->GetAudioEncoderCapabilities( + m_AudioEncCapsItf, + encoderId, + &numCaps, + &codecDesc); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + /* TODO What do we do if we have more than one caps?? */ + aIsContinuous = codecDesc.isFreqRangeContinuous; + if (aIsContinuous) { + aSampleRates.Append(codecDesc.minSampleRate / KMilliToHz); + aSampleRates.Append(codecDesc.maxSampleRate / KMilliToHz); + } + else { + XAuint32 numSRSupported = codecDesc.numSampleRatesSupported; + XAmilliHertz *pSampleRatesSupported(NULL); + pSampleRatesSupported = codecDesc.pSampleRatesSupported; + for (TInt index = 0; index < numSRSupported; index++) + aSampleRates.Append((*(pSampleRatesSupported + index)) / KMilliToHz); + } + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TInt32 XARecordSessionImpl::getBitrates( + const TDesC& aEncoder, + RArray &aBitrates) +{ + TRACE_FUNCTION_ENTRY; + + aBitrates.Reset(); + + XAuint32 encoderId = 0; + TBool found(EFalse); + for (TInt index = 0; index < m_EncoderIds.Count(); index++) { + if (m_EncoderNames[index].Compare(aEncoder) == 0) { + found = ETrue; + encoderId = m_EncoderIds[index]; + break; + } + } + + TInt32 returnValue(KErrNotSupported); + if (found == false) + return returnValue; + + returnValue = getBitratesByAudioCodecID(encoderId, aBitrates); + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +/* For QAudioEncoderControl end */ + +/* For QMediaContainerControl begin */ +const RArray& XARecordSessionImpl::getContainerNames() +{ + TRACE_FUNCTION_ENTRY_EXIT; + return m_ContainerNames; +} + +const RArray& XARecordSessionImpl::getContainerDescs() +{ + TRACE_FUNCTION_ENTRY_EXIT; + return m_ContainerDescs; +} + +/* For QMediaContainerControl end */ + +void XARecordSessionImpl::resetEncoderAttributes() +{ + m_ContainerType = 0; + m_AudioEncoderId = 0; + m_ProfileSetting = 0; + m_BitRate = 0; + m_ChannelsOut = 0; + m_SampleRate = 0; + m_RateControl = 0; +} + +void XARecordSessionImpl::setContainerType(const TDesC &aURI) +{ + TRACE_FUNCTION_ENTRY; + + if (aURI.Compare(KCONTAINERWAV()) == 0) + m_ContainerType = XA_CONTAINERTYPE_WAV; + else if (aURI.Compare(KCONTAINERAMR()) == 0) + m_ContainerType = XA_CONTAINERTYPE_AMR; + else if (aURI.Compare(KCONTAINERMP4()) == 0) + m_ContainerType = XA_CONTAINERTYPE_MP4; + + TRACE_FUNCTION_EXIT; +} + +TBool XARecordSessionImpl::setCodec(const TDesC &aCodec) +{ + TRACE_FUNCTION_ENTRY; + + TBool returnValue(EFalse); + if (aCodec.Compare(KAUDIOCODECPCM()) == 0) { + m_AudioEncoderId = XA_AUDIOCODEC_PCM; + m_ProfileSetting = XA_AUDIOPROFILE_PCM; + returnValue = ETrue; + } + else if (aCodec.Compare(KAUDIOCODECAAC()) == 0) { + m_AudioEncoderId = XA_AUDIOCODEC_AAC; + m_ProfileSetting = XA_AUDIOPROFILE_AAC_AAC; + returnValue = ETrue; + } + else if (aCodec.Compare(KAUDIOCODECAMR()) == 0) { + m_AudioEncoderId = XA_AUDIOCODEC_AMR; + m_ProfileSetting = XA_AUDIOPROFILE_AMR; + returnValue = ETrue; + } + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +void XARecordSessionImpl::setBitRate(TUint32 aBitRate) { + TRACE_FUNCTION_ENTRY; + m_BitRate = aBitRate; + TRACE_FUNCTION_EXIT; +} + +void XARecordSessionImpl::setChannels(TUint32 aChannels) { + TRACE_FUNCTION_ENTRY; + m_ChannelsOut = aChannels; + TRACE_FUNCTION_EXIT; +} + +void XARecordSessionImpl::setOptimalChannelCount() { + TRACE_FUNCTION_ENTRY; + m_ChannelsOut = 0xffffffff; + TRACE_FUNCTION_EXIT; +} + +void XARecordSessionImpl::setSampleRate(TUint32 aSampleRate) { + TRACE_FUNCTION_ENTRY; + /* convert Hz to MilliHz */ + m_SampleRate = aSampleRate * KMilliToHz; + TRACE_FUNCTION_EXIT; +} + +void XARecordSessionImpl::setOptimalSampleRate() { + TRACE_FUNCTION_ENTRY; + m_SampleRate = 0xffffffff; + TRACE_FUNCTION_EXIT; +} + +TInt32 XARecordSessionImpl::setCBRMode() +{ + TRACE_FUNCTION_ENTRY; + + m_RateControl = XA_RATECONTROLMODE_CONSTANTBITRATE; + + TRACE_FUNCTION_EXIT; + return KErrNone; +} + +TInt32 XARecordSessionImpl::setVBRMode() +{ + TRACE_FUNCTION_ENTRY; + + m_RateControl = XA_RATECONTROLMODE_VARIABLEBITRATE; + + TRACE_FUNCTION_EXIT; + return KErrNone; +} + +void XARecordSessionImpl::setVeryLowQuality() +{ + /* Set to very low quality encoder preset */ + RArray bitrates; + TInt res = getBitratesByAudioCodecID(m_AudioEncoderId, bitrates); + if ((res == KErrNone) && (bitrates.Count() > 0) ) { + /* Sort the array and pick the lowest bit rate */ + bitrates.SortUnsigned(); + m_BitRate = bitrates[0]; + } +} + +void XARecordSessionImpl::setLowQuality() +{ + /* Set to low quality encoder preset */ + RArray bitrates; + TInt res = getBitratesByAudioCodecID(m_AudioEncoderId, bitrates); + if ((res == KErrNone) && (bitrates.Count() > 0)) { + /* Sort the array and pick the low quality bit rate */ + bitrates.SortUnsigned(); + m_BitRate = bitrates[bitrates.Count()*1/4]; + } +} + +void XARecordSessionImpl::setNormalQuality() +{ + /* Set to normal quality encoder preset */ + RArray bitrates; + TInt res = getBitratesByAudioCodecID(m_AudioEncoderId, bitrates); + if ((res == KErrNone) && (bitrates.Count() > 0)) { + /* Sort the array and pick the middle range bit rate */ + bitrates.SortUnsigned(); + m_BitRate = bitrates[bitrates.Count()/2]; + } +} + +void XARecordSessionImpl::setHighQuality() +{ + /* Set to high quality encoder preset */ + RArray bitrates; + TInt res = getBitratesByAudioCodecID(m_AudioEncoderId, bitrates); + if ((res == KErrNone) && (bitrates.Count() > 0)) { + /* Sort the array and pick the high quality bit rate */ + bitrates.SortUnsigned(); + m_BitRate = bitrates[bitrates.Count()*3/4]; + } +} + +void XARecordSessionImpl::setVeryHighQuality() +{ + /* Set to very high quality encoder preset */ + RArray bitrates; + TInt res = getBitratesByAudioCodecID(m_AudioEncoderId, bitrates); + if ((res == KErrNone) && (bitrates.Count() > 0)) { + /* Sort the array and pick the highest bit rate */ + bitrates.SortUnsigned(); + m_BitRate = bitrates[bitrates.Count()-1]; + } +} + +/* Internal function */ +TInt32 XARecordSessionImpl::createMediaRecorderObject() +{ + TRACE_FUNCTION_ENTRY; + + if (!m_EOEngine) + return KErrGeneral; + + TInt32 returnValue(KErrNone); + + TRACE_LOG(_L("XARecordSessionImpl::CreateMediaRecorderObject")); + if (!m_MORecorder && !m_RecordItf) { + + /* Setup the data source */ + m_LocatorMic.locatorType = XA_DATALOCATOR_IODEVICE; + m_LocatorMic.deviceType = XA_IODEVICE_AUDIOINPUT; + m_LocatorMic.deviceID = m_InputDeviceId; + m_LocatorMic.device = NULL; + m_DataSource.pLocator = (void*) &m_LocatorMic; + m_DataSource.pFormat = NULL; + + /* Setup the data sink structure */ + m_Uri.locatorType = XA_DATALOCATOR_URI; + /* append zero terminator to end of URI */ + TPtr8 uriPtr = m_URIName->Des(); + m_Uri.URI = (XAchar*) uriPtr.PtrZ(); + m_Mime.formatType = XA_DATAFORMAT_MIME; + m_Mime.containerType = XA_CONTAINERTYPE_WAV; + TPtr8 mimeTypePtr(m_WAVMime->Des()); + m_Mime.mimeType = (XAchar*)mimeTypePtr.Ptr(); + m_DataSink.pLocator = (void*) &m_Uri; + m_DataSink.pFormat = (void*) &m_Mime; + + /* Init arrays required[] and iidArray[] */ + XAboolean required[MAX_NUMBER_INTERFACES]; + XAInterfaceID iidArray[MAX_NUMBER_INTERFACES]; + for (TInt32 i = 0; i < MAX_NUMBER_INTERFACES; i++) { + required[i] = XA_BOOLEAN_FALSE; + iidArray[i] = XA_IID_NULL; + } + XAuint32 noOfInterfaces = 0; + required[noOfInterfaces] = XA_BOOLEAN_FALSE; + iidArray[noOfInterfaces] = XA_IID_RECORD; + noOfInterfaces++; + required[noOfInterfaces] = XA_BOOLEAN_FALSE; + iidArray[noOfInterfaces] = XA_IID_AUDIOENCODER; + noOfInterfaces++; + + XAEngineItf engineItf; + XAresult xa_result = (*m_EOEngine)->GetInterface(m_EOEngine, XA_IID_ENGINE, (void**) &engineItf); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + TRACE_LOG(_L("XARecordSessionImpl::CreateMediaRecorderObject: Create Media Recorder...")); + + /* Create recorder with NULL for a the image/video source, since this is for audio-only recording */ + xa_result = (*engineItf)->CreateMediaRecorder( + engineItf, + &m_MORecorder, + &m_DataSource, + NULL, + &m_DataSink, + noOfInterfaces, + iidArray, + required); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + TRACE_LOG(_L("XARecordSessionImpl::CreateMediaRecorderObject: Realize Media Recorder...")); + xa_result = (*m_MORecorder)->Realize(m_MORecorder, XA_BOOLEAN_FALSE); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + TRACE_LOG(_L("XARecordSessionImpl::CreateMediaRecorderObject: Register Callback on recorder...")); + xa_result = (*m_MORecorder)->RegisterCallback(m_MORecorder, cbXAObjectItf, (void*)this); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + TRACE_LOG(_L("XARecordSessionImpl::CreateMediaRecorderObject: Getting Record Interface...")); + xa_result = (*m_MORecorder)->GetInterface(m_MORecorder, XA_IID_RECORD, &m_RecordItf); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + TRACE_LOG(_L("XARecordSessionImpl::CreateMediaRecorderObject: Registering Callback on record Interface...")); + xa_result = (*m_RecordItf)->RegisterCallback(m_RecordItf, cbXARecordItf, (void*)this); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + TRACE_LOG(_L("XARecordSessionImpl::CreateMediaRecorderObject: SetPositionUpdatePeriod on record Interface...")); + xa_result = (*m_RecordItf)->SetPositionUpdatePeriod(m_RecordItf, (XAmillisecond)KRecordPosUpdatePeriod); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + TRACE_LOG(_L("XARecordSessionImpl::CreateMediaRecorderObject: SetCallbackEventsMask on record Interface...")); + xa_result = (*m_RecordItf)->SetCallbackEventsMask(m_RecordItf, XA_RECORDEVENT_HEADATNEWPOS | + XA_RECORDEVENT_HEADMOVING | + XA_RECORDEVENT_HEADSTALLED); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + TRACE_LOG(_L("XARecordSessionImpl::CreateMediaRecorderObject: Getting Audio Encoder Interface...")); + xa_result = (*m_MORecorder)->GetInterface(m_MORecorder, XA_IID_AUDIOENCODER, &m_AudioEncItf); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + } + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TInt32 XARecordSessionImpl::mapError(XAresult xa_err, TBool debPrn) +{ + TInt32 returnValue(KErrGeneral); + switch(xa_err) { + case XA_RESULT_SUCCESS: + returnValue = KErrNone; + break; + case XA_RESULT_PRECONDITIONS_VIOLATED: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_PRECONDITIONS_VIOLATED")); + break; + case XA_RESULT_PARAMETER_INVALID: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_PARAMETER_INVALID")); + break; + case XA_RESULT_MEMORY_FAILURE: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_MEMORY_FAILURE")); + break; + case XA_RESULT_RESOURCE_ERROR: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_RESOURCE_ERROR")); + break; + case XA_RESULT_RESOURCE_LOST: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_RESOURCE_LOST")); + break; + case XA_RESULT_IO_ERROR: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_IO_ERROR")); + break; + case XA_RESULT_BUFFER_INSUFFICIENT: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_BUFFER_INSUFFICIENT")); + break; + case XA_RESULT_CONTENT_CORRUPTED: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_CONTENT_CORRUPTED")); + break; + case XA_RESULT_CONTENT_UNSUPPORTED: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_CONTENT_UNSUPPORTED")); + break; + case XA_RESULT_CONTENT_NOT_FOUND: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_CONTENT_NOT_FOUND")); + break; + case XA_RESULT_PERMISSION_DENIED: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_PERMISSION_DENIED")); + break; + case XA_RESULT_FEATURE_UNSUPPORTED: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_FEATURE_UNSUPPORTED")); + break; + case XA_RESULT_INTERNAL_ERROR: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_INTERNAL_ERROR")); + break; + case XA_RESULT_UNKNOWN_ERROR: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_UNKNOWN_ERROR")); + break; + case XA_RESULT_OPERATION_ABORTED: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_OPERATION_ABORTED")); + break; + case XA_RESULT_CONTROL_LOST: + if (debPrn) + TRACE_LOG(_L("XA_RESULT_CONTROL_LOST")); + break; + default: + if (debPrn) + TRACE_LOG(_L("Unknown Error!!!")); + break; + } + return returnValue; +} + +TInt32 XARecordSessionImpl::initContainersList() +{ + TRACE_FUNCTION_ENTRY; + + m_ContainerNames.Reset(); + m_ContainerDescs.Reset(); + + m_ContainerNames.Append(KCONTAINERWAV()); + m_ContainerNames.Append(KCONTAINERAMR()); + m_ContainerNames.Append(KCONTAINERMP4()); + + m_ContainerDescs.Append(KCONTAINERWAVDESC()); + m_ContainerDescs.Append(KCONTAINERAMRDESC()); + m_ContainerDescs.Append(KCONTAINERMP4DESC()); + + TRACE_FUNCTION_EXIT; + return KErrNone; +} + +TInt32 XARecordSessionImpl::initAudioEncodersList() +{ + TRACE_FUNCTION_ENTRY; + + m_EncoderIds.Reset(); + m_EncoderNames.Reset(); + + XAuint32 encoderIds[MAX_NUMBER_ENCODERS]; + + for(TInt index = 0; index < MAX_NUMBER_ENCODERS; index++) + encoderIds[index] = 0; + + XAuint32 numEncoders = MAX_NUMBER_ENCODERS; + XAresult xa_result = (*m_AudioEncCapsItf)->GetAudioEncoders( + m_AudioEncCapsItf, + &numEncoders, + encoderIds); + TInt32 returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + for (TInt index = 0; index < numEncoders; index++) { + m_EncoderIds.Append(encoderIds[index]); + switch (encoderIds[index]) { + case XA_AUDIOCODEC_PCM: + m_EncoderNames.Append(KAUDIOCODECPCM()); + break; + case XA_AUDIOCODEC_AMR: + m_EncoderNames.Append(KAUDIOCODECAMR()); + break; + case XA_AUDIOCODEC_AAC: + m_EncoderNames.Append(KAUDIOCODECAAC()); + break; + default: + break; + }; + } + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TInt32 XARecordSessionImpl::initAudioInputDevicesList() +{ + TRACE_FUNCTION_ENTRY; + + m_InputDeviceIDs.Reset(); + + XAuint32 deviceIds[MAX_NUMBER_INPUT_DEVICES]; + for(TInt index = 0; index < MAX_NUMBER_INPUT_DEVICES; index++) + deviceIds[index] = 0; + + XAint32 numInputs = MAX_NUMBER_INPUT_DEVICES; + XAresult xa_result = (*m_AudioIODevCapsItf)->GetAvailableAudioInputs( + m_AudioIODevCapsItf, + &numInputs, + deviceIds); + TInt32 returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + XAAudioInputDescriptor audioInputDescriptor; + for (TInt index = 0; index < numInputs; index++) { + m_InputDeviceIDs.Append(deviceIds[index]); + xa_result = (*m_AudioIODevCapsItf)->QueryAudioInputCapabilities( + m_AudioIODevCapsItf, + deviceIds[index], + &audioInputDescriptor); + returnValue = mapError(xa_result, ETrue); + if (returnValue != KErrNone) + continue; + + TUint8 * inDevNamePtr = audioInputDescriptor.deviceName; + TUint8 * tempPtr = audioInputDescriptor.deviceName; + TInt32 inDevNameLength = 0; + while (*tempPtr++) inDevNameLength++; + TPtrC8 ptr(inDevNamePtr, inDevNameLength); + /* Convert 8 bit to 16 bit */ + TBuf16 name; + name.Copy(ptr); + /* Using TRAP with returnValue results in compiler error */ + TRAPD(err2, m_AudioInputDeviceNames->AppendL(name)); + returnValue = err2; + RET_ERR_IF_ERR(returnValue); + } + + numInputs = MAX_NUMBER_INPUT_DEVICES; + for(TInt index = 0; index < MAX_NUMBER_INPUT_DEVICES; index++) + deviceIds[index] = 0; + xa_result = (*m_AudioIODevCapsItf)->GetDefaultAudioDevices( + m_AudioIODevCapsItf, + XA_DEFAULTDEVICEID_AUDIOINPUT, + &numInputs, + deviceIds); + returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + for (TInt index = 0; index < numInputs; index++) { + m_DefaultInputDeviceIDs.Append(deviceIds[index]); + xa_result = (*m_AudioIODevCapsItf)->QueryAudioInputCapabilities( + m_AudioIODevCapsItf, + deviceIds[index], + &audioInputDescriptor); + returnValue = mapError(xa_result, ETrue); + if (returnValue != KErrNone) + continue; + TUint8* inDevNamePtr = audioInputDescriptor.deviceName; + TUint8* tempPtr = audioInputDescriptor.deviceName; + TInt32 inDevNameLength = 0; + while (*tempPtr++) inDevNameLength++; + TPtrC8 ptr(inDevNamePtr, inDevNameLength); + /* Convert 8 bit to 16 bit */ + TBuf16 name; + name.Copy(ptr); + /* Using TRAP with returnValue results in compiler error */ + TRAPD(err2, m_DefaultAudioInputDeviceNames->AppendL(name)); + returnValue = err2; + RET_ERR_IF_ERR(returnValue); + } + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TInt32 XARecordSessionImpl::setEncoderSettingsToMediaRecorder() +{ + TRACE_FUNCTION_EXIT; + + /* Get current settings */ + XAAudioEncoderSettings settings; + XAresult xa_result = (*m_AudioEncItf)->GetEncoderSettings( + m_AudioEncItf, + &settings); + TInt32 returnValue = mapError(xa_result, ETrue); + + settings.encoderId = m_AudioEncoderId; + if (m_ChannelsOut != 0xffffffff) + settings.channelsOut = m_ChannelsOut; + if (m_SampleRate != 0xffffffff) + settings.sampleRate = m_SampleRate; + if (m_BitRate != 0) + settings.bitRate = m_BitRate; + if (m_RateControl != 0) + settings.rateControl = m_RateControl; + settings.profileSetting = m_ProfileSetting; + xa_result = (*m_AudioEncItf)->SetEncoderSettings( + m_AudioEncItf, + &settings); + returnValue = mapError(xa_result, ETrue); + + TRACE_FUNCTION_EXIT; + return returnValue; +} + +TInt32 XARecordSessionImpl::getBitratesByAudioCodecID( + XAuint32 encoderId, + RArray &aBitrates) +{ + TRACE_FUNCTION_ENTRY; + + if (!m_AudioEncCapsItf) + return KErrGeneral; + + XAuint32 numCaps = 0; + XAAudioCodecDescriptor codecDesc; + XAresult xa_result = (*m_AudioEncCapsItf)->GetAudioEncoderCapabilities( + m_AudioEncCapsItf, + encoderId, + &numCaps, + &codecDesc); + TInt32 returnValue = mapError(xa_result, ETrue); + RET_ERR_IF_ERR(returnValue); + + /* TODO What do we do if we have more than one caps?? */ + if (codecDesc.isBitrateRangeContinuous == XA_BOOLEAN_TRUE) { + aBitrates.Append(codecDesc.minBitRate); + aBitrates.Append(codecDesc.maxBitRate); + } + else { + XAuint32 numBrSupported = codecDesc.numBitratesSupported; + XAuint32 * pBitratesSupported(NULL); + pBitratesSupported = codecDesc.pBitratesSupported; + TInt32 index = 0; + for (index = 0; index < numBrSupported; index++) + aBitrates.Append(*(pBitratesSupported + index)); + } + + TRACE_FUNCTION_ENTRY; + return returnValue; +} + +/* Local function implementation */ +void cbXAObjectItf( + XAObjectItf caller, + const void *pContext, + XAuint32 event, + XAresult result, + XAuint32 param, + void *pInterface) +{ + if (pContext) { + ((XARecordSessionImpl*)pContext)->cbMediaRecorder( + caller, + pContext, + event, + result, + param, + pInterface); + } +} + +void cbXARecordItf( + XARecordItf caller, + void *pContext, + XAuint32 event) +{ + if (pContext) { + ((XARecordSessionImpl*)pContext)->cbRecordItf( + caller, + pContext, + event); + } +} + +void cbXAAvailableAudioInputsChanged( + XAAudioIODeviceCapabilitiesItf caller, + void * pContext, + XAuint32 deviceID, + XAint32 numInputs, + XAboolean isNew) +{ + if (pContext) { + ((XARecordSessionImpl*)pContext)->cbAvailableAudioInputsChanged( + caller, + pContext, + deviceID, + numInputs, + isNew); + } +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/xarecordsessionimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/mediarecorder/xarecordsessionimpl.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,172 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 XARECORDSESSIONIMPL_H +#define XARECORDSESSIONIMPL_H + +#include +#include + + +class XARecordObserver; +class XARecordSessionImpl +{ +public: + XARecordSessionImpl(XARecordObserver &parent); + ~XARecordSessionImpl(); + TInt32 postConstruct(); + + /* For QMediaRecorderControl begin */ + TInt32 setURI(const TDesC &aURI); + TInt32 record(); + TInt32 pause(); + TInt32 stop(); + TInt32 duration(TInt64 &aDur); + /* For QMediaRecorderControl end */ + + void cbMediaRecorder(XAObjectItf caller, + const void *pContext, + XAuint32 event, + XAresult result, + XAuint32 param, + void *pInterface); + void cbRecordItf(XARecordItf caller, + void *pContext, + XAuint32 event); + + /* For QAudioEndpointSelector begin */ + void getAudioInputDeviceNames(RArray &aArray); + TInt32 defaultAudioInputDevice(TPtrC &endPoint); + TInt32 activeAudioInputDevice(TPtrC &endPoint); + TBool setAudioInputDevice(const TDesC &aDevice); + void cbAvailableAudioInputsChanged(XAAudioIODeviceCapabilitiesItf caller, + void *pContext, + XAuint32 deviceID, + XAint32 numInputs, + XAboolean isNew); + /* For QAudioEndpointSelector end */ + + /* For QAudioEncoderControl begin */ + const RArray& getAudioEncoderNames(); + TInt32 getSampleRates(const TDesC &aEncoder, + RArray &aSampleRates, + TBool &aIsContinuous); + TInt32 getBitrates(const TDesC &aEncoder, + RArray &aBitrates); + /* For QAudioEncoderControl end */ + + /* For QMediaContainerControl begin */ + const RArray& getContainerNames(); + const RArray& getContainerDescs(); + /* For QMediaContainerControl end */ + + void resetEncoderAttributes(); + void setContainerType(const TDesC &aURI); + TBool setCodec(const TDesC &aURI); + void setBitRate(TUint32 aBitRate); + void setChannels(TUint32 aChannels); + void setOptimalChannelCount(); + void setSampleRate(TUint32 aSampleRate); + void setOptimalSampleRate(); + TInt32 setCBRMode(); + TInt32 setVBRMode(); + void setVeryLowQuality(); + void setLowQuality(); + void setNormalQuality(); + void setHighQuality(); + void setVeryHighQuality(); + +private: + TInt32 createMediaRecorderObject(); + TInt32 mapError(XAresult xa_err, + TBool debPrn); + TInt32 initContainersList(); + TInt32 initAudioEncodersList(); + TInt32 initAudioInputDevicesList(); + TInt32 setEncoderSettingsToMediaRecorder(); + TInt32 getBitratesByAudioCodecID(XAuint32 encoderId, + RArray &aBitrates); + + +private: + XARecordObserver &m_Parent; + XAObjectItf m_EOEngine; + XAObjectItf m_MORecorder; + XARecordItf m_RecordItf; + XAAudioEncoderItf m_AudioEncItf; + /* Audio Source */ + XADataSource m_DataSource; + XADataLocator_IODevice m_LocatorMic; + XADataFormat_MIME m_Mime; + XADataLocator_URI m_Uri; + /*Audio Sink*/ + XADataSink m_DataSink; + HBufC8 *m_WAVMime; + + /* Set by client*/ + HBufC8 *m_URIName; + XAuint32 m_AudioEncoderId; + XAuint32 m_InputDeviceId; + XAuint32 m_ContainerType; + XAuint32 m_BitRate; + XAuint32 m_RateControl; + XAuint32 m_ProfileSetting; + XAuint32 m_ChannelsOut; + XAuint32 m_SampleRate; + + /* For QAudioEndpointSelector begin */ + XAAudioIODeviceCapabilitiesItf m_AudioIODevCapsItf; + RArray m_InputDeviceIDs; + CDesC16ArrayFlat *m_AudioInputDeviceNames; + RArray m_DefaultInputDeviceIDs; + CDesC16ArrayFlat *m_DefaultAudioInputDeviceNames; + /* For QAudioEndpointSelector end */ + + /* For QAudioEncoderControl begin */ + XAAudioEncoderCapabilitiesItf m_AudioEncCapsItf; + RArray m_EncoderIds; + RArray m_EncoderNames; + RArray m_ContainerNames; + RArray m_ContainerDescs; + /* For QAudioEncoderControl begin */ +}; + +#endif /* XARECORDSESSIONIMPL_H */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/openmaxal/openmaxal.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/openmaxal/openmaxal.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,13 @@ +TEMPLATE = subdirs + +CONFIG += ordered + +# Input parameters for the generated bld.inf file +# ----------------------------------------------- +SYMBIAN_PLATFORMS = DEFAULT + +# Check to see if the SDK supports OpenMAX AL API +exists($${EPOCROOT}epoc32/include/platform/mw/khronos/OpenMAXAL.h) { + SUBDIRS = mediarecorder + message("Building OpenMAX AL backend.") +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/plugin_commonU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/symbian/plugin_commonU.def Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,16 @@ +; ============================================================================== +; Generated by qmake (2.01a) (Qt 4.6.3) on: 2010-03-15T16:30:03 +; This file is generated by qmake and should not be modified by the +; user. +; Name : plugin_commonU.def +; Part of : QtMobilityMultimediaEngine +; Description : Fixes common plugin symbols to known ordinals +; Version : +; +; ============================================================================== + + +EXPORTS + qt_plugin_query_verification_data @ 1 NONAME + qt_plugin_instance @ 2 NONAME + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/radio/radio.pri --- a/qtmobility/plugins/multimedia/symbian/radio/radio.pri Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -INCLUDEPATH += $$PWD - -exists($${EPOCROOT}epoc32\release\armv5\lib\tunerutility.lib) { - CONFIG += TUNERLIB - LIBS += -ltunerutility - DEFINES += TUNERLIBUSED - INCLUDEPATH += $${EPOCROOT}epoc32\include\mmf\common -} - -exists($${EPOCROOT}epoc32\release\armv5\lib\Radio_Utility.lib) { - CONFIG += RADIOUTILITYLIB - LIBS += -lRadio_Utility - DEFINES += RADIOUTILITYLIBUSED -} -contains(QT_CONFIG, TUNERLIB) && !contains(QT_CONFIG, RADIOUTILITYLIB) { - warning("Radio isn't compiled in due to missing libraries. (3.1 tuner and since 3.2 radio utility libraries)") -} - -TUNERLIB { -HEADERS += \ - $$PWD/s60radiotunerservice.h \ - $$PWD/s60radiotunercontrol_31.h -SOURCES += \ - $$PWD/s60radiotunerservice.cpp \ - $$PWD/s60radiotunercontrol_31.cpp -} - -RADIOUTILITYLIB { -HEADERS += \ - $$PWD/s60radiotunerservice.h \ - $$PWD/s60radiotunercontrol_since32.h -SOURCES += \ - $$PWD/s60radiotunerservice.cpp \ - $$PWD/s60radiotunercontrol_since32.cpp -} \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/radio/s60radiotunercontrol_31.cpp --- a/qtmobility/plugins/multimedia/symbian/radio/s60radiotunercontrol_31.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,440 +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 Qt Mobility Components. -** -** $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 "s60radiotunercontrol_31.h" -#include "s60radiotunerservice.h" - -#include -#include - -// from AudioPreference.h -const TInt KAudioPriorityFMRadio = 79; -const TUint KAudioPrefRadioAudioEvent = 0x03000001; - -S60RadioTunerControl::S60RadioTunerControl(QObject *parent) - : QRadioTunerControl(parent) - , m_error(0) - , m_tunerState(0) - , m_apiTunerState(QRadioTuner::StoppedState) - , m_audioInitializationComplete(false) - , m_radioError(QRadioTuner::NoError) - , m_muted(false) - , m_isStereo(true) - , m_stereoMode(QRadioTuner::Auto) - , m_signal(0) - , m_currentBand(QRadioTuner::FM) - , m_currentFreq(87500000) - , m_scanning(false) - , m_vol(100) -{ - initRadio(); -} - -S60RadioTunerControl::~S60RadioTunerControl() -{ - if (m_tunerUtility) { - m_tunerUtility->Close(); - m_tunerUtility->CancelNotifyChange(); - m_tunerUtility->CancelNotifySignalStrength(); - m_tunerUtility->CancelNotifyStereoChange(); - delete m_tunerUtility; - } - if (m_audioPlayerUtility) { - m_audioPlayerUtility = NULL; - } -} - -bool S60RadioTunerControl::initRadio() -{ - m_available = false; - - TRAPD(tunerError, m_tunerUtility = CMMTunerUtility::NewL(*this, CMMTunerUtility::ETunerBandFm, 1, - CMMTunerUtility::ETunerAccessPriorityNormal)); - if (tunerError != KErrNone) { - m_radioError = QRadioTuner::OpenError; - return m_available; - } - - TRAPD(playerError, m_audioPlayerUtility = m_tunerUtility->TunerPlayerUtilityL(*this)); - if (playerError != KErrNone) { - m_radioError = QRadioTuner::OpenError; - return m_available; - } - - m_tunerUtility->NotifyChange(*this); - m_tunerUtility->NotifyStereoChange(*this); - m_tunerUtility->NotifySignalStrength(*this); - - m_available = true; - - return m_available; -} - -void S60RadioTunerControl::start() -{ - if (!m_audioInitializationComplete) { - TFrequency freq(m_currentFreq); - m_tunerUtility->Tune(freq); - } else { - m_audioPlayerUtility->Play(); - } - - m_apiTunerState = QRadioTuner::ActiveState; - emit stateChanged(m_apiTunerState); -} - -void S60RadioTunerControl::stop() -{ - if (m_audioPlayerUtility) { - m_audioPlayerUtility->Stop(); - m_apiTunerState = QRadioTuner::StoppedState; - emit stateChanged(m_apiTunerState); - } -} - -QRadioTuner::State S60RadioTunerControl::state() const -{ - return m_apiTunerState; -} - -QRadioTuner::Band S60RadioTunerControl::band() const -{ - return m_currentBand; -} - -bool S60RadioTunerControl::isBandSupported(QRadioTuner::Band b) const -{ - if(b == QRadioTuner::FM) - return true; - else if(b == QRadioTuner::LW) - return false; - else if(b == QRadioTuner::AM) - return true; - else if(b == QRadioTuner::SW) - return false; - else - return false; -} - -void S60RadioTunerControl::setBand(QRadioTuner::Band b) -{ - QRadioTuner::Band tempBand = b; - if (tempBand != m_currentBand) { - m_currentBand = b; - emit bandChanged(m_currentBand); - } -} - -int S60RadioTunerControl::frequency() const -{ - return m_currentFreq; -} - -void S60RadioTunerControl::setFrequency(int frequency) -{ - m_currentFreq = frequency; - TFrequency freq(m_currentFreq); - m_tunerUtility->Tune(freq); -} - -int S60RadioTunerControl::frequencyStep(QRadioTuner::Band b) const -{ - int step = 0; - - if(b == QRadioTuner::FM) - step = 100000; // 100kHz steps - else if(b == QRadioTuner::LW) - step = 1000; // 1kHz steps - else if(b == QRadioTuner::AM) - step = 1000; // 1kHz steps - else if(b == QRadioTuner::SW) - step = 500; // 500Hz steps - - return step; -} - -QPair S60RadioTunerControl::frequencyRange(QRadioTuner::Band band) const -{ - TFrequency bottomFreq; - TFrequency topFreq; - int bandError = KErrNone; - - if (m_tunerUtility){ - bandError = m_tunerUtility->GetFrequencyBandRange(bottomFreq, topFreq); - if (!bandError) { - return qMakePair(bottomFreq.iFrequency, topFreq.iFrequency); - } - } - return qMakePair(0,0); -} - -CMMTunerUtility::TTunerBand S60RadioTunerControl::getNativeBand(QRadioTuner::Band b) const -{ - // api match to native s60 bands - if (b == QRadioTuner::AM) - return CMMTunerUtility::ETunerBandAm; - else if (b == QRadioTuner::FM) - return CMMTunerUtility::ETunerBandFm; - else if (b == QRadioTuner::LW) - return CMMTunerUtility::ETunerBandLw; - else - return CMMTunerUtility::ETunerNoBand; -} - -bool S60RadioTunerControl::isStereo() const -{ - return m_isStereo; -} - -QRadioTuner::StereoMode S60RadioTunerControl::stereoMode() const -{ - return m_stereoMode; -} - -void S60RadioTunerControl::setStereoMode(QRadioTuner::StereoMode mode) -{ - m_stereoMode = mode; - if (m_tunerUtility) { - if (QRadioTuner::ForceMono == mode) - m_tunerUtility->ForceMonoReception(true); - else - m_tunerUtility->ForceMonoReception(false); - } -} - -int S60RadioTunerControl::signalStrength() const -{ - // return value is a percentage value - if (m_tunerUtility) { - TInt maxSignalStrength; - TInt currentSignalStrength; - m_error = m_tunerUtility->GetMaxSignalStrength(maxSignalStrength); - if (m_error == KErrNone) { - m_error = m_tunerUtility->GetSignalStrength(currentSignalStrength); - if (m_error == KErrNone) { - if (maxSignalStrength == 0 || currentSignalStrength == 0) { - return 0; - } - m_signal = currentSignalStrength/maxSignalStrength; - } - } - } - return m_signal; -} - -int S60RadioTunerControl::volume() const -{ - return m_vol; -} - -void S60RadioTunerControl::setVolume(int volume) -{ - if (m_audioPlayerUtility) { - m_vol = volume; - TInt error = m_audioPlayerUtility->SetVolume(volume); - emit volumeChanged(m_vol); - } -} - -bool S60RadioTunerControl::isMuted() const -{ - return m_muted; -} - -void S60RadioTunerControl::setMuted(bool muted) -{ - if (m_audioPlayerUtility && m_audioInitializationComplete) { - m_muted = muted; - m_audioPlayerUtility->Mute(m_muted); - emit mutedChanged(m_muted); - } -} - -bool S60RadioTunerControl::isSearching() const -{ - if (m_tunerUtility) { - TUint32 tempState; - m_tunerUtility->GetState(tempState); - if (tempState == CMMTunerUtility::ETunerStateRetuning || m_scanning) { - return true; - } else - return false; - } - return true; -} - -void S60RadioTunerControl::cancelSearch() -{ - m_tunerUtility->CancelRetune(); - m_scanning = false; - emit searchingChanged(false); -} - -void S60RadioTunerControl::searchForward() -{ - m_scanning = true; - m_tunerUtility->StationSeek(CMMTunerUtility::ESearchDirectionUp); - emit searchingChanged(true); -} - -void S60RadioTunerControl::searchBackward() -{ - m_scanning = true; - m_tunerUtility->StationSeek(CMMTunerUtility::ESearchDirectionDown); - emit searchingChanged(true); -} - -bool S60RadioTunerControl::isValid() const -{ - return m_available; -} - -bool S60RadioTunerControl::isAvailable() const -{ - return m_available; -} - -QtMedia::AvailabilityError S60RadioTunerControl::availabilityError() const -{ - if (m_available) - return QtMedia::NoError; - else - return QtMedia::ResourceError; -} - -QRadioTuner::Error S60RadioTunerControl::error() const -{ - return m_radioError; -} - -QString S60RadioTunerControl::errorString() const -{ - return m_errorString; -} - -void S60RadioTunerControl::MToTuneComplete(TInt aError) -{ - if (aError == KErrNone) { - m_scanning = false; - if (!m_audioInitializationComplete) { - TRAPD(initializeError, m_audioPlayerUtility->InitializeL(KAudioPriorityFMRadio, - TMdaPriorityPreference(KAudioPrefRadioAudioEvent))); - if (initializeError != KErrNone) { - m_radioError = QRadioTuner::OpenError; - } - } - } -} - -void S60RadioTunerControl::MTcoFrequencyChanged(const TFrequency& aOldFrequency, const TFrequency& aNewFrequency) -{ - m_currentFreq = aNewFrequency.iFrequency; - m_scanning = false; - emit frequencyChanged(m_currentFreq); -} - -void S60RadioTunerControl::MTcoStateChanged(const TUint32& aOldState, const TUint32& aNewState) -{ - if (aNewState == CMMTunerUtility::ETunerStateActive) { - m_apiTunerState = QRadioTuner::ActiveState; - } - if (aNewState == CMMTunerUtility::ETunerStatePlaying) { - m_apiTunerState = QRadioTuner::ActiveState; - } - if (aOldState != aNewState){ - emit stateChanged(m_apiTunerState); - } -} - -void S60RadioTunerControl::MTcoAntennaDetached() -{ - // no actions -} - -void S60RadioTunerControl::MTcoAntennaAttached() -{ - // no actions -} - -void S60RadioTunerControl::FlightModeChanged(TBool aFlightMode) -{ - // no actions -} - -void S60RadioTunerControl::MTsoStereoReceptionChanged(TBool aStereo) -{ - m_isStereo = aStereo; - emit stereoStatusChanged(aStereo); -} - -void S60RadioTunerControl::MTsoForcedMonoChanged(TBool aForcedMono) -{ - if (aForcedMono) { - m_stereoMode = QRadioTuner::ForceMono; - } -} - -void S60RadioTunerControl::MssoSignalStrengthChanged(TInt aNewSignalStrength) -{ - m_signal = aNewSignalStrength; - emit signalStrengthChanged(m_signal); -} - -void S60RadioTunerControl::MTapoInitializeComplete(TInt aError) -{ - if (aError == KErrNone) { - m_audioInitializationComplete = true; - m_available = true; - m_audioPlayerUtility->Play(); - m_apiTunerState = QRadioTuner::ActiveState; - emit stateChanged(m_apiTunerState); - } else if (aError != KErrNone) { - m_radioError = QRadioTuner::OpenError; - } -} - -void S60RadioTunerControl::MTapoPlayEvent(TEventType aEvent, TInt aError, TAny* aAdditionalInfo) -{ - // no actions -} - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/radio/s60radiotunercontrol_31.h --- a/qtmobility/plugins/multimedia/symbian/radio/s60radiotunercontrol_31.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,161 +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 Qt Mobility Components. -** -** $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 S60RADIOTUNERCONTROL_H -#define S60RADIOTUNERCONTROL_H - -#include -#include -#include -#include - -class S60RadioTunerService; - -QTM_USE_NAMESPACE - -class S60RadioTunerControl - : public QRadioTunerControl - , public MMMTunerObserver - , public MMMTunerStereoObserver - , public MMMSignalStrengthObserver - , public MMMTunerChangeObserver - , public MMMTunerAudioPlayerObserver -{ - Q_OBJECT -public: - S60RadioTunerControl(QObject *parent = 0); - ~S60RadioTunerControl(); - - QRadioTuner::State state() const; - - QRadioTuner::Band band() const; - void setBand(QRadioTuner::Band b); - bool isBandSupported(QRadioTuner::Band b) const; - - int frequency() const; - int frequencyStep(QRadioTuner::Band b) const; - QPair frequencyRange(QRadioTuner::Band b) const; - void setFrequency(int frequency); - - bool isStereo() const; - QRadioTuner::StereoMode stereoMode() const; - void setStereoMode(QRadioTuner::StereoMode mode); - - int signalStrength() const; - - int volume() const; - void setVolume(int volume); - - bool isMuted() const; - void setMuted(bool muted); - - bool isSearching() const; - void searchForward(); - void searchBackward(); - void cancelSearch(); - - bool isValid() const; - - bool isAvailable() const; - QtMedia::AvailabilityError availabilityError() const; - - void start(); - void stop(); - - QRadioTuner::Error error() const; - QString errorString() const; - - //MMMTunerObserver - void MToTuneComplete(TInt aError); - - //MMMTunerChangeObserver - void MTcoFrequencyChanged(const TFrequency& aOldFrequency, const TFrequency& aNewFrequency); - void MTcoStateChanged(const TUint32& aOldState, const TUint32& aNewState); - void MTcoAntennaDetached(); - void MTcoAntennaAttached(); - void FlightModeChanged(TBool aFlightMode); - - //MMMTunerStereoObserver - void MTsoStereoReceptionChanged(TBool aStereo); - void MTsoForcedMonoChanged(TBool aForcedMono); - - //MMMSignalStrengthObserver - void MssoSignalStrengthChanged(TInt aNewSignalStrength); - - //MMMTunerAudioPlayerObserver - void MTapoInitializeComplete(TInt aError); - void MTapoPlayEvent(TEventType aEvent, TInt aError, TAny* aAdditionalInfo); - -private slots: - - -private: - bool initRadio(); - CMMTunerUtility::TTunerBand getNativeBand(QRadioTuner::Band b) const; - - mutable int m_error; - CMMTunerUtility *m_tunerUtility; - CMMTunerAudioPlayerUtility *m_audioPlayerUtility; - - bool m_audioInitializationComplete; - bool m_muted; - bool m_isStereo; - bool m_available; - int m_step; - int m_vol; - mutable int m_signal; - bool m_scanning; - bool forward; - QRadioTuner::Band m_currentBand; - qint64 m_currentFreq; - - QRadioTuner::Error m_radioError; - QRadioTuner::StereoMode m_stereoMode; - QString m_errorString; - //caps meaning what the tuner can do. - TTunerCapabilities m_currentTunerCapabilities; - long m_tunerState; - QRadioTuner::State m_apiTunerState; - -}; - -#endif - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/radio/s60radiotunercontrol_since32.cpp --- a/qtmobility/plugins/multimedia/symbian/radio/s60radiotunercontrol_since32.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,468 +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 Qt Mobility Components. -** -** $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 "s60radiotunercontrol_since32.h" -#include "s60radiotunerservice.h" - -#include -#include - -S60RadioTunerControl::S60RadioTunerControl(QObject *parent) - : QRadioTunerControl(parent) - , m_error(0) - , m_radioUtility(NULL) - , m_fmTunerUtility(NULL) - , m_playerUtility(NULL) - , m_audioInitializationComplete(false) - , m_muted(false) - , m_isStereo(true) - , m_vol(100) - , m_signal(0) - , m_radioError(QRadioTuner::NoError) - , m_scanning(false) - , m_currentBand(QRadioTuner::FM) - , m_currentFreq(87500000) - , m_stereoMode(QRadioTuner::Auto) - , m_apiTunerState(QRadioTuner::StoppedState) - , m_maxVolume(100) -{ - initRadio(); -} - -S60RadioTunerControl::~S60RadioTunerControl() -{ - if (m_fmTunerUtility) { - m_fmTunerUtility->Close(); - } - - if(m_playerUtility) { - m_playerUtility->Close(); - } - - delete m_radioUtility; -} - -QRadioTuner::State S60RadioTunerControl::state() const -{ - return m_apiTunerState; -} - -QRadioTuner::Band S60RadioTunerControl::band() const -{ - return m_currentBand; -} - -bool S60RadioTunerControl::isBandSupported(QRadioTuner::Band b) const -{ - if(b == QRadioTuner::FM) - return true; - else if(b == QRadioTuner::LW) - return false; - else if(b == QRadioTuner::AM) - return true; - else if(b == QRadioTuner::SW) - return false; - else - return false; -} - -void S60RadioTunerControl::setBand(QRadioTuner::Band b) -{ - QRadioTuner::Band tempBand = b; - if (tempBand != m_currentBand) { - m_currentBand = b; - emit bandChanged(m_currentBand); - } -} - -int S60RadioTunerControl::frequency() const -{ - return m_currentFreq; -} - -void S60RadioTunerControl::setFrequency(int frequency) -{ - m_currentFreq = frequency; - m_fmTunerUtility->SetFrequency(m_currentFreq); -} -int S60RadioTunerControl::frequencyStep(QRadioTuner::Band b) const -{ - int step = 0; - if(b == QRadioTuner::FM) - step = 100000; // 100kHz steps - else if(b == QRadioTuner::LW) - step = 1000; // 1kHz steps - else if(b == QRadioTuner::AM) - step = 1000; // 1kHz steps - else if(b == QRadioTuner::SW) - step = 500; // 500Hz steps - - return step; -} - -QPair S60RadioTunerControl::frequencyRange(QRadioTuner::Band band) const -{ - int bottomFreq; - int topFreq; - - int bandError = KErrNone; - TFmRadioFrequencyRange range; - - if (m_fmTunerUtility) { - bandError = m_fmTunerUtility->GetFrequencyRange(range, bottomFreq, topFreq); - } - if (!bandError) { - return qMakePair(bottomFreq, topFreq); - } - - return qMakePair(0,0); -} - -bool S60RadioTunerControl::isStereo() const -{ - return m_isStereo; -} - -QRadioTuner::StereoMode S60RadioTunerControl::stereoMode() const -{ - return m_stereoMode; -} - -void S60RadioTunerControl::setStereoMode(QRadioTuner::StereoMode mode) -{ - if (m_fmTunerUtility) { - if (QRadioTuner::ForceMono == mode) { - m_fmTunerUtility->ForceMonoReception(true); - m_stereoMode = QRadioTuner::ForceMono; - m_isStereo = false; - } else { - m_fmTunerUtility->ForceMonoReception(false); - m_isStereo = true; - m_stereoMode = QRadioTuner::ForceStereo; - } - } -} - -int S60RadioTunerControl::signalStrength() const -{ - // return value is a percentage value - if (m_fmTunerUtility) { - TInt maxSignalStrength; - TInt currentSignalStrength; - m_error = m_fmTunerUtility->GetMaxSignalStrength(maxSignalStrength); - - if (m_error == KErrNone) { - m_error = m_fmTunerUtility->GetSignalStrength(currentSignalStrength); - if (m_error == KErrNone) { - if (currentSignalStrength == 0 || maxSignalStrength == 0) { - return currentSignalStrength; - } - m_signal = currentSignalStrength / maxSignalStrength; - } - } - } - return m_signal; -} - -int S60RadioTunerControl::volume() const -{ - return m_vol; -} - -void S60RadioTunerControl::setVolume(int volume) -{ - if (m_playerUtility) { - m_vol = volume; - m_playerUtility->SetVolume(volume); - emit volumeChanged(m_vol); - } -} - -bool S60RadioTunerControl::isMuted() const -{ - return m_muted; -} - -void S60RadioTunerControl::setMuted(bool muted) -{ - if (m_playerUtility) { - m_muted = muted; - m_playerUtility->Mute(m_muted); - } -} - -bool S60RadioTunerControl::isSearching() const -{ - return m_scanning; -} - -void S60RadioTunerControl::cancelSearch() -{ - m_fmTunerUtility->CancelStationSeek(); - m_scanning = false; - emit searchingChanged(false); -} - -void S60RadioTunerControl::searchForward() -{ - m_fmTunerUtility->StationSeek(true); - m_scanning = true; - emit searchingChanged(true); -} - -void S60RadioTunerControl::searchBackward() -{ - m_fmTunerUtility->StationSeek(false); - m_scanning = true; - emit searchingChanged(true); -} - -bool S60RadioTunerControl::isValid() const -{ - return m_available; -} - -bool S60RadioTunerControl::initRadio() -{ - m_available = false; - // create an instance of Radio Utility factory and indicate - // FM Radio is a primary client - TRAPD(utilityError, - m_radioUtility = CRadioUtility::NewL(ETrue); - // Get a tuner utility - m_fmTunerUtility = &m_radioUtility->RadioFmTunerUtilityL(*this); - // Get a player utility - m_playerUtility = &m_radioUtility->RadioPlayerUtilityL(*this); - ); - if (utilityError != KErrNone) { - m_radioError = QRadioTuner::ResourceError; - return m_available; - } - - m_tunerControl = false; - - m_available = true; - return m_available; -} - -bool S60RadioTunerControl::isAvailable() const -{ - return m_available; -} - -QtMedia::AvailabilityError S60RadioTunerControl::availabilityError() const -{ - if (m_available) - return QtMedia::NoError; - else - return QtMedia::ResourceError; -} - -void S60RadioTunerControl::start() -{ - if (!m_tunerControl) { - m_fmTunerUtility->RequestTunerControl(); - m_apiTunerState = QRadioTuner::ActiveState; - emit stateChanged(m_apiTunerState); - } else { - m_playerUtility->Play(); - m_apiTunerState = QRadioTuner::ActiveState; - emit stateChanged(m_apiTunerState); - } - -} - -void S60RadioTunerControl::stop() -{ - if (m_playerUtility) { - m_playerUtility->Stop(); - m_apiTunerState = QRadioTuner::StoppedState; - emit stateChanged(m_apiTunerState); - } -} - -QRadioTuner::Error S60RadioTunerControl::error() const -{ - return m_radioError; -} -QString S60RadioTunerControl::errorString() const -{ - return m_errorString; -} - -void S60RadioTunerControl::MrpoStateChange(TPlayerState aState, TInt aError) -{ - if (aError == KErrNone){ - m_radioError = QRadioTuner::NoError; - if (aState == ERadioPlayerIdle) { - m_apiTunerState = QRadioTuner::ActiveState; - } else if (aState == ERadioPlayerPlaying) { - m_apiTunerState = QRadioTuner::ActiveState; - } - } - emit stateChanged(m_apiTunerState); -} - -void S60RadioTunerControl::MrpoVolumeChange(TInt aVolume) -{ - m_vol = aVolume; - emit volumeChanged(m_vol); -} - -void S60RadioTunerControl::MrpoMuteChange(TBool aMute) -{ - m_muted = aMute; - emit mutedChanged(m_muted); -} - -void S60RadioTunerControl::MrpoBalanceChange(TInt aLeftPercentage, TInt aRightPercentage) -{ - // no actions -} - -void S60RadioTunerControl::MrftoRequestTunerControlComplete(TInt aError) -{ - if (aError == KErrNone) { - m_playerUtility->GetMaxVolume(m_maxVolume); - m_radioError = QRadioTuner::NoError; - m_tunerControl = true; - m_available = true; - m_fmTunerUtility->SetFrequency(m_currentFreq); - m_playerUtility->Play(); - int signal = signalStrength(); - if (m_signal != signal) { - emit signalStrengthChanged(signal); - m_signal = signal; - } - - } else if (aError == KFmRadioErrAntennaNotConnected) { - m_radioError = QRadioTuner::OpenError; - } else if (aError == KErrAlreadyExists){ - m_radioError = QRadioTuner::ResourceError; - } else if (aError == KFmRadioErrFrequencyOutOfBandRange) { - m_radioError = QRadioTuner::OutOfRangeError; - }else{ - m_radioError = QRadioTuner::OpenError; - } - -} - -void S60RadioTunerControl::MrftoSetFrequencyRangeComplete(TInt aError) -{ - if (aError == KFmRadioErrFrequencyOutOfBandRange || KFmRadioErrFrequencyNotValid) { - m_radioError = QRadioTuner::OutOfRangeError; - } else if (aError == KFmRadioErrHardwareFaulty || KFmRadioErrOfflineMode) { - m_radioError = QRadioTuner::OpenError; - } -} - -void S60RadioTunerControl::MrftoSetFrequencyComplete(TInt aError) -{ - if (aError == KErrNone) { - m_radioError = QRadioTuner::NoError; - } else if (aError == KFmRadioErrFrequencyOutOfBandRange || KFmRadioErrFrequencyNotValid) { - m_radioError = QRadioTuner::OutOfRangeError; - } else if (aError == KFmRadioErrHardwareFaulty || KFmRadioErrOfflineMode) { - m_radioError = QRadioTuner::OpenError; - } -} - -void S60RadioTunerControl::MrftoStationSeekComplete(TInt aError, TInt aFrequency) -{ - m_scanning = false; - if (aError == KErrNone) { - m_radioError = QRadioTuner::NoError; - m_currentFreq = aFrequency; - } else { - m_radioError = QRadioTuner::OpenError; - } -} - -void S60RadioTunerControl::MrftoFmTransmitterStatusChange(TBool aActive) -{ - //no actions -} - -void S60RadioTunerControl::MrftoAntennaStatusChange(TBool aAttached) -{ - if (aAttached && m_tunerControl) { - m_playerUtility->Play(); - } -} - -void S60RadioTunerControl::MrftoOfflineModeStatusChange(TBool /*aOfflineMode*/) -{ - -} - -void S60RadioTunerControl::MrftoFrequencyRangeChange(TFmRadioFrequencyRange aBand /*, TInt aMinFreq, TInt aMaxFreq*/) -{ - if (aBand == EFmRangeEuroAmerica) { - setBand(QRadioTuner::FM); - } -} - -void S60RadioTunerControl::MrftoFrequencyChange(TInt aNewFrequency) -{ - m_currentFreq = aNewFrequency; - emit frequencyChanged(m_currentFreq); - - int signal = signalStrength(); - if (m_signal != signal) { - emit signalStrengthChanged(signal); - m_signal = signal; - } -} - -void S60RadioTunerControl::MrftoForcedMonoChange(TBool aForcedMono) -{ - if (aForcedMono) { - m_stereoMode = QRadioTuner::ForceMono; - } else { - m_stereoMode = QRadioTuner::ForceStereo; - } - emit stereoStatusChanged(!aForcedMono); -} - -void S60RadioTunerControl::MrftoSquelchChange(TBool aSquelch) -{ - // no actions -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/radio/s60radiotunercontrol_since32.h --- a/qtmobility/plugins/multimedia/symbian/radio/s60radiotunercontrol_since32.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,287 +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 Qt Mobility Components. -** -** $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 S60RADIOTUNERCONTROL_H -#define S60RADIOTUNERCONTROL_H - -#include -#include -#include - -#include -#include -#include - -class S60RadioTunerService; -class CFMRadioEngineCallObserver; - -QTM_USE_NAMESPACE - -class S60RadioTunerControl - : public QRadioTunerControl - , public MRadioPlayerObserver - , public MRadioFmTunerObserver -{ - Q_OBJECT -public: - S60RadioTunerControl(QObject *parent = 0); - ~S60RadioTunerControl(); - - QRadioTuner::State state() const; - - QRadioTuner::Band band() const; - void setBand(QRadioTuner::Band b); - bool isBandSupported(QRadioTuner::Band b) const; - - int frequency() const; - int frequencyStep(QRadioTuner::Band b) const; - QPair frequencyRange(QRadioTuner::Band b) const; - void setFrequency(int frequency); - - bool isStereo() const; - QRadioTuner::StereoMode stereoMode() const; - void setStereoMode(QRadioTuner::StereoMode mode); - - int signalStrength() const; - - int volume() const; - void setVolume(int volume); - - bool isMuted() const; - void setMuted(bool muted); - - bool isSearching() const; - void searchForward(); - void searchBackward(); - void cancelSearch(); - - bool isValid() const; - - bool isAvailable() const; - QtMedia::AvailabilityError availabilityError() const; - - void start(); - void stop(); - - QRadioTuner::Error error() const; - QString errorString() const; - - /** - * From MRadioPlayerObserver. - * Called when Radio state changed. - * - * @since S60 3.2 - * @param aState Radio player state - * @param aError A standard system error code, only used when aState is ERadioPlayerIdle - */ - void MrpoStateChange(TPlayerState aState, TInt aError); - - /** - * From MRadioPlayerObserver. - * Called when volume changes. This may be caused by other applications. - * - * @since S60 3.2 - * @param aVolume Current volume. - */ - void MrpoVolumeChange(TInt aVolume); - - /** - * From MRadioPlayerObserver. - * Called when mute setting changes. This may be caused by other applications. - * - * @since S60 3.2 - * @param aMute ETrue indicates audio is muted. - */ - void MrpoMuteChange(TBool aMute); - - /** - * From MRadioPlayerObserver. - * Called when mute setting changes. This may be caused by other applications. - * - * Called when balance setting changes. This may be caused by other applications. - * - * @since S60 3.2 - * Left speaker volume percentage. This can be any value from zero to 100. - * Zero value means left speaker is muted. - * @param aRightPercentage - * Right speaker volume percentage. This can be any value from zero to 100. - * Zero value means right speaker is muted. - */ - void MrpoBalanceChange(TInt aLeftPercentage, TInt aRightPercentage); - - - /** - * From MRadioFmTunerObserver. - * Called when Request for tuner control completes. - * - * @since S60 3.2 - * @param aError A standard system error code or FM tuner error (TFmRadioTunerError). - */ - void MrftoRequestTunerControlComplete(TInt aError); - - /** - * From MRadioFmTunerObserver. - * Set frequency range complete event. This event is asynchronous and is received after - * a call to CRadioFmTunerUtility::SetFrequencyRange. - * - * @since S60 3.2 - * @param aError A standard system error code or FM tuner error (TFmRadioTunerError). - */ - void MrftoSetFrequencyRangeComplete(TInt aError); - - /** - * From MRadioFmTunerObserver. - * Set frequency complete event. This event is asynchronous and is received after a call to - * CRadioFmTunerUtility::SetFrequency. - * - * @since S60 3.2 - * @param aError A standard system error code or FM tuner error (TFmRadioTunerError). - */ - void MrftoSetFrequencyComplete(TInt aError); - - /** - * From MRadioFmTunerObserver. - * Station seek complete event. This event is asynchronous and is received after a call to - * CRadioFmTunerUtility::StationSeek. - * - * @since S60 3.2 - * @param aError A standard system error code or FM tuner error (TFmRadioTunerError). - * @param aFrequency The frequency(Hz) of the radio station that was found. - */ - void MrftoStationSeekComplete(TInt aError, TInt aFrequency); - - /** - * From MRadioFmTunerObserver. - * Called when FM Transmitter status changes (if one is present in the device). Tuner receiver - * is forced to be turned off due to hardware conflicts when FM transmitter is activated. - * - * @since S60 3.2 - * @param aActive ETrue if FM transmitter is active; EFalse otherwise. - */ - void MrftoFmTransmitterStatusChange(TBool aActive); - - /** - * From MRadioFmTunerObserver. - * Called when antenna status changes. - * - * @since S60 3.2 - * @param aAttached ETrue if antenna is attached; EFalse otherwise. - */ - void MrftoAntennaStatusChange(TBool aAttached); - - /** - * From MRadioFmTunerObserver. - * Called when offline mode status changes. - * @since S60 3.2 - * - ** @param aAttached ETrue if offline mode is enabled; EFalse otherwise. - */ - void MrftoOfflineModeStatusChange(TBool aOfflineMode); - - /** - * From MRadioFmTunerObserver. - * Called when the frequency range changes. This may be caused by other applications. - * - * @since S60 3.2 - * @param aNewRange New frequency range. - */ - void MrftoFrequencyRangeChange(TFmRadioFrequencyRange aBand /*, TInt aMinFreq, TInt aMaxFreq*/); - - /** - * From MRadioFmTunerObserver. - * Called when the tuned frequency changes. This may be caused by other - * applications or RDS if AF/TA is enabled. - * - * @since S60 3.2 - * @param aNewFrequency The new tuned frequency(Hz). - */ - void MrftoFrequencyChange(TInt aNewFrequency); - - /** - * From MRadioFmTunerObserver. - * Called when the forced mono status change. This may be caused by other applications. - * - * @since S60 3.2 - * @param aForcedMono ETrue if forced mono mode is enabled; EFalse otherwise. - */ - void MrftoForcedMonoChange(TBool aForcedMono); - - /** - * From MRadioFmTunerObserver. - * Called when the squelch (muting the frequencies without broadcast) status change. - * This may be caused by other applications. - * - * @since S60 3.2 - * @param aSquelch ETrue if squelch is enabled; EFalse otherwise. - */ - void MrftoSquelchChange(TBool aSquelch); - -private: - bool initRadio(); - - mutable int m_error; - - CRadioUtility* m_radioUtility; - CRadioFmTunerUtility* m_fmTunerUtility; - CRadioPlayerUtility* m_playerUtility; - TInt m_maxVolume; - - bool m_tunerControl; - bool m_audioInitializationComplete; - bool m_muted; - bool m_isStereo; - bool m_available; - int m_vol; - mutable int m_signal; - bool m_scanning; - QRadioTuner::Band m_currentBand; - qint64 m_currentFreq; - - QRadioTuner::Error m_radioError; - QRadioTuner::StereoMode m_stereoMode; - QString m_errorString; - // caps meaning what the tuner can do. - // TTunerCapabilities m_currentTunerCapabilities; - QRadioTuner::State m_apiTunerState; -}; - -#endif - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/radio/s60radiotunerservice.cpp --- a/qtmobility/plugins/multimedia/symbian/radio/s60radiotunerservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +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 Qt Mobility Components. -** -** $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 "s60radiotunerservice.h" - - -S60RadioTunerService::S60RadioTunerService(QObject *parent) - : QMediaService(parent) -{ - m_playerControl = new S60RadioTunerControl(this); -} - -S60RadioTunerService::~S60RadioTunerService() -{ - delete m_playerControl; -} - -QMediaControl *S60RadioTunerService::control(const char* name) const -{ - if (qstrcmp(name, QRadioTunerControl_iid) == 0) - return m_playerControl; - - return 0; -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/radio/s60radiotunerservice.h --- a/qtmobility/plugins/multimedia/symbian/radio/s60radiotunerservice.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +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 Qt Mobility Components. -** -** $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 S60RADIOTUNERSERVICE_H -#define S60RADIOTUNERSERVICE_H - -#include - -#include - -#ifdef TUNERLIBUSED -#include "s60radiotunercontrol_31.h" -#else -#include "s60radiotunercontrol_since32.h" -#endif - -QTM_USE_NAMESPACE - -class S60RadioTunerService : public QMediaService -{ - Q_OBJECT -public: - S60RadioTunerService(QObject *parent = 0); - ~S60RadioTunerService(); - - QMediaControl *control(const char* name) const; - -private: - S60RadioTunerControl *m_playerControl; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/s60mediaserviceplugin.cpp --- a/qtmobility/plugins/multimedia/symbian/s60mediaserviceplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,140 +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 Qt Mobility Components. -** -** $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 -#include - -#include "s60mediaserviceplugin.h" -#if defined(TUNERLIBUSED) || defined(RADIOUTILITYLIBUSED) -#include "s60radiotunerservice.h" -#endif -#ifdef HAS_MEDIA_PLAYER -#include "s60mediaplayerservice.h" -#endif -#include "s60audiocaptureservice.h" -#ifdef QMEDIA_SYMBIAN_CAMERA -#include "s60cameraservice.h" -#endif - - -QStringList S60MediaServicePlugin::keys() const -{ - QStringList list; -#if defined(TUNERLIBUSED) || defined(RADIOUTILITYLIBUSED) - list << QLatin1String(Q_MEDIASERVICE_RADIO); -#endif -#ifdef QMEDIA_SYMBIAN_CAMERA - list << QLatin1String(Q_MEDIASERVICE_CAMERA); -#endif -#ifdef HAS_MEDIA_PLAYER - list << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER); -#endif - list << QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE); - return list; -} - -QMediaService* S60MediaServicePlugin::create(QString const& key) -{ -#ifdef QMEDIA_SYMBIAN_CAMERA - if (key == QLatin1String(Q_MEDIASERVICE_CAMERA)) - return new S60CameraService; -#endif -#ifdef HAS_MEDIA_PLAYER - if (key == QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER)) - return new S60MediaPlayerService; -#endif - if (key == QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE)) - return new S60AudioCaptureService; - -#if defined(TUNERLIBUSED) || defined(RADIOUTILITYLIBUSED) - if (key == QLatin1String(Q_MEDIASERVICE_RADIO)) - return new S60RadioTunerService; -#endif - - return 0; -} - -void S60MediaServicePlugin::release(QMediaService *service) -{ - delete service; -} - -QList S60MediaServicePlugin::devices(const QByteArray &service) const -{ -#ifdef QMEDIA_SYMBIAN_CAMERA - if (service == Q_MEDIASERVICE_CAMERA) { - if (m_cameraDevices.isEmpty()) - updateDevices(); - - return m_cameraDevices; - } -#endif - return QList(); -} - -QString S60MediaServicePlugin::deviceDescription(const QByteArray &service, const QByteArray &device) -{ -#ifdef QMEDIA_SYMBIAN_CAMERA - if (service == Q_MEDIASERVICE_CAMERA) { - if (m_cameraDevices.isEmpty()) - updateDevices(); - - for (int i=0; i -#include -#include - -QTM_USE_NAMESPACE - -class S60MediaServicePlugin : public QMediaServiceProviderPlugin , public QMediaServiceSupportedDevicesInterface -{ - Q_OBJECT - Q_INTERFACES(QtMobility::QMediaServiceSupportedDevicesInterface) - -public: - - QStringList keys() const; - QMediaService* create(QString const& key); - void release(QMediaService *service); - - QList devices(const QByteArray &service) const; - QString deviceDescription(const QByteArray &service, const QByteArray &device); - -private: - void updateDevices() const; - - mutable QList m_cameraDevices; - mutable QStringList m_cameraDescriptions; -}; - -#endif // S60SERVICEPLUGIN_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/s60videooutputcontrol.cpp --- a/qtmobility/plugins/multimedia/symbian/s60videooutputcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +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 Qt Mobility Components. -** -** $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 "s60videooutputcontrol.h" - -S60VideoOutputControl::S60VideoOutputControl(QObject *parent) - : QVideoOutputControl(parent) - , m_output(NoOutput) -{ -} - -QList S60VideoOutputControl::availableOutputs() const -{ - return m_outputs; -} - -void S60VideoOutputControl::setAvailableOutputs(const QList &outputs) -{ - emit availableOutputsChanged(m_outputs = outputs); -} - -QVideoOutputControl::Output S60VideoOutputControl::output() const -{ - return m_output; -} - -void S60VideoOutputControl::setOutput(Output output) -{ - if (!m_outputs.contains(output)) - output = NoOutput; - - if (m_output != output) - emit outputChanged(m_output = output); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/s60videooutputcontrol.h --- a/qtmobility/plugins/multimedia/symbian/s60videooutputcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +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 Qt Mobility Components. -** -** $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 S60VIDEOOUTPUTCONTROL_H -#define S60VIDEOOUTPUTCONTROL_H - -#include -#include - -QTM_USE_NAMESPACE - -class S60VideoOutputControl : public QVideoOutputControl -{ - Q_OBJECT -public: - S60VideoOutputControl(QObject *parent = 0); - - QList availableOutputs() const; - void setAvailableOutputs(const QList &outputs); - - Output output() const; - void setOutput(Output output); - -Q_SIGNALS: - void outputChanged(QVideoOutputControl::Output output); - -private: - QList m_outputs; - Output m_output; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/symbian/symbian.pro --- a/qtmobility/plugins/multimedia/symbian/symbian.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/symbian/symbian.pro Mon May 03 13:18:40 2010 +0300 @@ -1,54 +1,11 @@ -TEMPLATE = lib -QT += multimedia -CONFIG += plugin -TARGET = QtMobilityMultimediaEngine -PLUGIN_SUBDIR = mediaservice -include (../../../common.pri) -qtAddLibrary(QtMedia) +###################################################################### +# +# Mobility API project - Symbian backends +# +###################################################################### -#includes here so that all defines are added here also -include(mediaplayer/mediaplayer_s60.pri) -include(radio/radio.pri) -include(audiosource/audiosource_s60.pri) -include(camera/camera_s60.pri) +TEMPLATE = subdirs -DEPENDPATH += . -INCLUDEPATH += . \ - $${SOURCE_DIR}/include \ - $${SOURCE_DIR}/src/multimedia \ - $${SOURCE_DIR}/src/multimedia/experimental \ - $${SOURCE_DIR} +symbian:SUBDIRS += openmaxal mmf -HEADERS += s60mediaserviceplugin.h \ - s60videooutputcontrol.h - -SOURCES += s60mediaserviceplugin.cpp \ - s60videooutputcontrol.cpp - -contains(S60_VERSION, 3.2)|contains(S60_VERSION, 3.1) { - DEFINES += PRE_S60_50_PLATFORM -} - -load(data_caging_paths) -TARGET.EPOCALLOWDLLDATA = 1 -TARGET.UID3=0x2002AC76 -TARGET.CAPABILITY = ALL -TCB -MMP_RULES += EXPORTUNFROZEN - -#make a sis package from plugin + api + stub (plugin) -pluginDep.sources = $${TARGET}.dll -pluginDep.path = $${QT_PLUGINS_BASE_DIR}/$${PLUGIN_SUBDIR} -DEPLOYMENT += pluginDep - -#Media API spesific deployment -QtMediaDeployment.sources = QtMedia.dll -QtMediaDeployment.path = /sys/bin - -#Dependency definitions to pkg file -qtmobilitymultimedia.pkg_prerules += "; Dependency to camerawrapper" -qtmobilitymultimedia.pkg_prerules += "(0x2001EC5F), 1, 20, 0, {\"CameraWrapper\"}" -qtmobilitymultimedia.pkg_prerules += "; Dependency to Qt Multimedia" -qtmobilitymultimedia.pkg_prerules += "(0x2001E627), 4, 6, 0, {\"QtMultimedia\"}" - -DEPLOYMENT += QtMediaDeployment qtmobilitymultimedia diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/camera.pri --- a/qtmobility/plugins/multimedia/v4l/camera/camera.pri Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -INCLUDEPATH += $$PWD - -HEADERS += \ - $$PWD/v4lcameraservice.h \ - $$PWD/v4lcameracontrol.h \ - $$PWD/v4lvideorenderer.h \ - $$PWD/v4lvideooutputcontrol.h \ - $$PWD/v4lvideodevicecontrol.h \ - $$PWD/v4lvideobuffer.h \ - $$PWD/cameraformatconverter.h \ - $$PWD/v4limagecapturecontrol.h \ - $$PWD/v4lmediacontainercontrol.h \ - $$PWD/v4lvideoencode.h \ - $$PWD/v4lrecordercontrol.h \ - $$PWD/v4lcamerasession.h - -SOURCES += \ - $$PWD/v4lcameraservice.cpp \ - $$PWD/v4lcameracontrol.cpp \ - $$PWD/v4lvideorenderer.cpp \ - $$PWD/v4lvideooutputcontrol.cpp \ - $$PWD/v4lvideodevicecontrol.cpp \ - $$PWD/v4lvideobuffer.cpp \ - $$PWD/cameraformatconverter.cpp \ - $$PWD/v4limagecapturecontrol.cpp \ - $$PWD/v4lmediacontainercontrol.cpp \ - $$PWD/v4lvideoencode.cpp \ - $$PWD/v4lrecordercontrol.cpp \ - $$PWD/v4lcamerasession.cpp - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/cameraformatconverter.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/cameraformatconverter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,480 +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 Qt Mobility Components. -** -** $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 "cameraformatconverter.h" -#include - -/* - Create a format converter -*/ - -CameraFormatConverter* CameraFormatConverter::createFormatConverter(QVideoFrame::PixelFormat format, int width, int height) -{ - if(format == QVideoFrame::Format_YUYV) - return new YUVConverter(format,width,height); - else if(format == QVideoFrame::Format_UYVY) - return new YUVConverter(format,width,height); - else if(format == QVideoFrame::Format_YUV420P) - return new YUVConverter(format,width,height); - else - return new NullConverter; -} - -void CameraFormatConverter::releaseFormatConverter(CameraFormatConverter* converter) -{ - delete converter; -} - - -// Null Converter -unsigned char* NullConverter::convert(unsigned char* src, int len) -{ - Q_UNUSED(len) - return src; -} - -QList CameraFormatConverter::supportedFormats() -{ - QList list; - list << QVideoFrame::Format_RGB24 << QVideoFrame::Format_YUYV << QVideoFrame::Format_RGB32 - << QVideoFrame::Format_UYVY << QVideoFrame::Format_YUV420P << QVideoFrame::Format_RGB555; - return list; -} - -// YUV -YUVConverter::YUVConverter(QVideoFrame::PixelFormat type,int width, int height): - m_type(type), - m_width(width), - m_height(height) -{ - m_buf = new unsigned char[width * height * 2]; - - if (m_type == QVideoFrame::Format_YUYV) { - // For YUY2 format use these to match (Y0-U0-Y1-V0) - m_y1i=0; - m_ui =1; - m_y2i=2; - m_vi =3; - } else if(m_type == QVideoFrame::Format_UYVY) { - m_y1i=1; - m_ui =0; - m_y2i=3; - m_vi =2; - } -} - -YUVConverter::~YUVConverter() -{ - delete [] m_buf; -} - - -static const signed short redAdjust[] = { --161,-160,-159,-158,-157,-156,-155,-153, --152,-151,-150,-149,-148,-147,-145,-144, --143,-142,-141,-140,-139,-137,-136,-135, --134,-133,-132,-131,-129,-128,-127,-126, --125,-124,-123,-122,-120,-119,-118,-117, --116,-115,-114,-112,-111,-110,-109,-108, --107,-106,-104,-103,-102,-101,-100, -99, - -98, -96, -95, -94, -93, -92, -91, -90, - -88, -87, -86, -85, -84, -83, -82, -80, - -79, -78, -77, -76, -75, -74, -72, -71, - -70, -69, -68, -67, -66, -65, -63, -62, - -61, -60, -59, -58, -57, -55, -54, -53, - -52, -51, -50, -49, -47, -46, -45, -44, - -43, -42, -41, -39, -38, -37, -36, -35, - -34, -33, -31, -30, -29, -28, -27, -26, - -25, -23, -22, -21, -20, -19, -18, -17, - -16, -14, -13, -12, -11, -10, -9, -8, - -6, -5, -4, -3, -2, -1, 0, 1, - 2, 3, 4, 5, 6, 7, 9, 10, - 11, 12, 13, 14, 15, 17, 18, 19, - 20, 21, 22, 23, 25, 26, 27, 28, - 29, 30, 31, 33, 34, 35, 36, 37, - 38, 39, 40, 42, 43, 44, 45, 46, - 47, 48, 50, 51, 52, 53, 54, 55, - 56, 58, 59, 60, 61, 62, 63, 64, - 66, 67, 68, 69, 70, 71, 72, 74, - 75, 76, 77, 78, 79, 80, 82, 83, - 84, 85, 86, 87, 88, 90, 91, 92, - 93, 94, 95, 96, 97, 99, 100, 101, - 102, 103, 104, 105, 107, 108, 109, 110, - 111, 112, 113, 115, 116, 117, 118, 119, - 120, 121, 123, 124, 125, 126, 127, 128, -}; - -static const signed short greenAdjust1[] = { - 34, 34, 33, 33, 32, 32, 32, 31, - 31, 30, 30, 30, 29, 29, 28, 28, - 28, 27, 27, 27, 26, 26, 25, 25, - 25, 24, 24, 23, 23, 23, 22, 22, - 21, 21, 21, 20, 20, 19, 19, 19, - 18, 18, 17, 17, 17, 16, 16, 15, - 15, 15, 14, 14, 13, 13, 13, 12, - 12, 12, 11, 11, 10, 10, 10, 9, - 9, 8, 8, 8, 7, 7, 6, 6, - 6, 5, 5, 4, 4, 4, 3, 3, - 2, 2, 2, 1, 1, 0, 0, 0, - 0, 0, -1, -1, -1, -2, -2, -2, - -3, -3, -4, -4, -4, -5, -5, -6, - -6, -6, -7, -7, -8, -8, -8, -9, - -9, -10, -10, -10, -11, -11, -12, -12, - -12, -13, -13, -14, -14, -14, -15, -15, - -16, -16, -16, -17, -17, -17, -18, -18, - -19, -19, -19, -20, -20, -21, -21, -21, - -22, -22, -23, -23, -23, -24, -24, -25, - -25, -25, -26, -26, -27, -27, -27, -28, - -28, -29, -29, -29, -30, -30, -30, -31, - -31, -32, -32, -32, -33, -33, -34, -34, - -34, -35, -35, -36, -36, -36, -37, -37, - -38, -38, -38, -39, -39, -40, -40, -40, - -41, -41, -42, -42, -42, -43, -43, -44, - -44, -44, -45, -45, -45, -46, -46, -47, - -47, -47, -48, -48, -49, -49, -49, -50, - -50, -51, -51, -51, -52, -52, -53, -53, - -53, -54, -54, -55, -55, -55, -56, -56, - -57, -57, -57, -58, -58, -59, -59, -59, - -60, -60, -60, -61, -61, -62, -62, -62, - -63, -63, -64, -64, -64, -65, -65, -66, -}; - -static const signed short greenAdjust2[] = { - 74, 73, 73, 72, 71, 71, 70, 70, - 69, 69, 68, 67, 67, 66, 66, 65, - 65, 64, 63, 63, 62, 62, 61, 60, - 60, 59, 59, 58, 58, 57, 56, 56, - 55, 55, 54, 53, 53, 52, 52, 51, - 51, 50, 49, 49, 48, 48, 47, 47, - 46, 45, 45, 44, 44, 43, 42, 42, - 41, 41, 40, 40, 39, 38, 38, 37, - 37, 36, 35, 35, 34, 34, 33, 33, - 32, 31, 31, 30, 30, 29, 29, 28, - 27, 27, 26, 26, 25, 24, 24, 23, - 23, 22, 22, 21, 20, 20, 19, 19, - 18, 17, 17, 16, 16, 15, 15, 14, - 13, 13, 12, 12, 11, 11, 10, 9, - 9, 8, 8, 7, 6, 6, 5, 5, - 4, 4, 3, 2, 2, 1, 1, 0, - 0, 0, -1, -1, -2, -2, -3, -4, - -4, -5, -5, -6, -6, -7, -8, -8, - -9, -9, -10, -11, -11, -12, -12, -13, - -13, -14, -15, -15, -16, -16, -17, -17, - -18, -19, -19, -20, -20, -21, -22, -22, - -23, -23, -24, -24, -25, -26, -26, -27, - -27, -28, -29, -29, -30, -30, -31, -31, - -32, -33, -33, -34, -34, -35, -35, -36, - -37, -37, -38, -38, -39, -40, -40, -41, - -41, -42, -42, -43, -44, -44, -45, -45, - -46, -47, -47, -48, -48, -49, -49, -50, - -51, -51, -52, -52, -53, -53, -54, -55, - -55, -56, -56, -57, -58, -58, -59, -59, - -60, -60, -61, -62, -62, -63, -63, -64, - -65, -65, -66, -66, -67, -67, -68, -69, - -69, -70, -70, -71, -71, -72, -73, -73, -}; - -static const signed short blueAdjust[] = { --276,-274,-272,-270,-267,-265,-263,-261, --259,-257,-255,-253,-251,-249,-247,-245, --243,-241,-239,-237,-235,-233,-231,-229, --227,-225,-223,-221,-219,-217,-215,-213, --211,-209,-207,-204,-202,-200,-198,-196, --194,-192,-190,-188,-186,-184,-182,-180, --178,-176,-174,-172,-170,-168,-166,-164, --162,-160,-158,-156,-154,-152,-150,-148, --146,-144,-141,-139,-137,-135,-133,-131, --129,-127,-125,-123,-121,-119,-117,-115, --113,-111,-109,-107,-105,-103,-101, -99, - -97, -95, -93, -91, -89, -87, -85, -83, - -81, -78, -76, -74, -72, -70, -68, -66, - -64, -62, -60, -58, -56, -54, -52, -50, - -48, -46, -44, -42, -40, -38, -36, -34, - -32, -30, -28, -26, -24, -22, -20, -18, - -16, -13, -11, -9, -7, -5, -3, -1, - 0, 2, 4, 6, 8, 10, 12, 14, - 16, 18, 20, 22, 24, 26, 28, 30, - 32, 34, 36, 38, 40, 42, 44, 46, - 49, 51, 53, 55, 57, 59, 61, 63, - 65, 67, 69, 71, 73, 75, 77, 79, - 81, 83, 85, 87, 89, 91, 93, 95, - 97, 99, 101, 103, 105, 107, 109, 112, - 114, 116, 118, 120, 122, 124, 126, 128, - 130, 132, 134, 136, 138, 140, 142, 144, - 146, 148, 150, 152, 154, 156, 158, 160, - 162, 164, 166, 168, 170, 172, 175, 177, - 179, 181, 183, 185, 187, 189, 191, 193, - 195, 197, 199, 201, 203, 205, 207, 209, - 211, 213, 215, 217, 219, 221, 223, 225, - 227, 229, 231, 233, 235, 238, 240, 242, -}; - - - -#define CLAMP(x) x < 0 ? 0 : x & 0xff - -inline void yuv2rgb565(int y, int u, int v, quint16 *rgb) -{ - register int r, g, b; - - r = y + redAdjust[v]; - g = y + greenAdjust1[u] + greenAdjust2[v]; - b = y + blueAdjust[u]; - -#if 0 - y -= 16; - u -= 128; - v -= 128; - r = y + 1.13983*v; - g = y + 0.39465*u - 0.58060*v; - b = y + 2.03211*u; -#endif - - r = CLAMP(r); - g = CLAMP(g); - b = CLAMP(b); - - *rgb = (quint16)(((r >> 3) << 11) | ((g >> 2) << 5) | (b >> 3)); -} - -inline void yuv2rgb24(int y, int u, int v, quint32 *rgb) -{ - register int r, g, b; - - r = y + redAdjust[v]; - g = y + greenAdjust1[u] + greenAdjust2[v]; - b = y + blueAdjust[u]; - - r = CLAMP(r); - g = CLAMP(g); - b = CLAMP(b); - - *rgb = ((r<<24)|(g<<16) | b) | 0xff000000 ; -} - -#define yuv2rgb(a,b,c,d) yuv2rgb565(a,b,c,d) - -unsigned char* YUVConverter::convert(unsigned char* src, int len) -{ - quint16* dest = (quint16*)m_buf; - unsigned char *buf = src; - int size = (m_width * m_height) >> 1; - - -#define CONV \ -{\ - register int u = buf[m_ui];\ - register int v = buf[m_vi];\ - yuv2rgb(buf[m_y1i], u, v, dest);\ - yuv2rgb(buf[m_y2i], u, v, ++dest);\ - dest++;\ - buf+= 4;\ -} - if (m_type != QVideoFrame::Format_YUV420P) { - register int n = (size + 7) / 8; - switch(size & 7) - { - case 0: do {CONV - case 7: CONV - case 6: CONV - case 5: CONV - case 4: CONV - case 3: CONV - case 2: CONV - case 1: CONV - } while(--n); - } - } else { - // for 320x240 use 353x288, only works for this res!! - int w = m_width; - int h = m_height; - int Ysize = w * h; - if(len == Ysize+Ysize/4+Ysize/4) { - for(int y=0;y - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -BayerConverter::BayerConverter(int width, int height): - m_width(width), - m_height(height) -{ - m_buf = new unsigned char[width * height * 4]; // 4 = 32bpp / 8 bpb -} - -BayerConverter::~BayerConverter() -{ - delete m_buf; -} - -unsigned char* BayerConverter::convert(unsigned char* src, int len) -{ - Q_UNUSED(len) - - int size = m_width * m_height; - unsigned long *dst = (unsigned long*) m_buf; - - register unsigned long dstVal; - - for (int i = 0; i < size; ++i) - { - dstVal = 0xFF000000; - - if ((i / m_width) % 2 == 0) - { - if (!(i & 1)) - { - /* B */ - if ((i > m_width) && ((i % m_width) > 0) ) - { - dstVal |= ((*(src-m_width-1)+*(src-m_width+1)+ *(src+m_width-1)+*(src+m_width + 1)) / 4) << 16 | - ((*(src-1)+*(src+1)+*(src+m_width)+*(src-m_width))/4) << 8 | - *src; - } - else - { - dstVal |= *(src + m_width + 1) << 16 | - (*(src + 1) + *(src + m_width)) / 2 << 8 | - *src; - } - } - else - { - /* (B)G */ - if ((i > m_width) && ((i % m_width) < (m_width - 1))) - { - dstVal |= (*(src+m_width)+*(src-m_width))/2 << 16 | - *src << 8 | - (*(src-1)+*(src+1))/2; - } - else - { - dstVal |= *(src+m_width) << 16 | - *src << 8 | - *(src - 1); - } - } - } - else { - - if (!(i & 1)) - { - /* G(R) */ - if ((i < (m_width * (m_height - 1))) && ((i % m_width) > 0) ) - { - dstVal |= ((*(src - 1) + *(src + 1)) / 2) << 16 | - *src << 8 | - (*(src + m_width) + *(src - m_width)) / 2; - } - else - { - dstVal |= *(src + 1) << 16 | - *src << 8 | - *(src - m_width); - } - } - else - { - /* R */ - if (i < (m_width * (m_height - 1)) && ((i % m_width) < (m_width - 1)) ) - { - dstVal |= *src << 16 | - (*(src-1)+*(src+1)+ *(src-m_width)+*(src+m_width))/4 << 8 | - (*(src-m_width-1)+*(src-m_width+1)+ *(src+m_width-1)+*(src+m_width+1))/4; - } - else - { - dstVal |= *src << 16 | - (*(src-1)+*(src-m_width))/2 << 8 | - *(src-m_width-1); - } - } - } - - *dst++ = dstVal; - ++src; - } - - return m_buf; -} - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/cameraformatconverter.h --- a/qtmobility/plugins/multimedia/v4l/camera/cameraformatconverter.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,107 +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 Qt Mobility Components. -** -** $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 CAMERAFORMATCONVERTER_H -#define CAMERAFORMATCONVERTER_H - -#include -#include - -/* - * convert something to RGB32 / RGB16 - * - */ -class CameraFormatConverter -{ -public: - - virtual ~CameraFormatConverter() {} - - virtual unsigned char* convert(unsigned char* src, int len) = 0; - - static CameraFormatConverter* createFormatConverter(QVideoFrame::PixelFormat format, int width, int height); - static void releaseFormatConverter(CameraFormatConverter* converter); - static QList supportedFormats(); -}; - - -class NullConverter : public CameraFormatConverter -{ -public: - - virtual unsigned char* convert(unsigned char* src, int len); -}; - - -class YUVConverter : public CameraFormatConverter -{ -public: - YUVConverter(QVideoFrame::PixelFormat type, int width, int height); - virtual ~YUVConverter(); - - virtual unsigned char* convert(unsigned char* src, int len); - -private: - - QVideoFrame::PixelFormat m_type; - int m_width; - int m_height; - unsigned char* m_buf; - int m_ui,m_vi,m_y1i,m_y2i; - -}; - -class BayerConverter : public CameraFormatConverter -{ -public: - BayerConverter(int width, int height); - virtual ~BayerConverter(); - - virtual unsigned char* convert(unsigned char* src, int len); - -private: - - int m_width; - int m_height; - unsigned char* m_buf; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lcameracontrol.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4lcameracontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +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 Qt Mobility Components. -** -** $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 "v4lcameracontrol.h" -#include "v4lcameraservice.h" -#include "v4lcamerasession.h" - -#include - - -V4LCameraControl::V4LCameraControl(QObject *parent) - :QCameraControl(parent),m_captureMode(QCamera::CaptureStillImage) -{ - m_session = qobject_cast(parent); - connect(m_session, SIGNAL(cameraStateChanged(QCamera::State)),this, SIGNAL(stateChanged(QCamera::State))); -} - -V4LCameraControl::~V4LCameraControl() -{ -} - -void V4LCameraControl::start() -{ - m_session->previewMode(true); - m_session->captureToFile(false); - m_session->record(); -} - -void V4LCameraControl::stop() -{ - m_session->previewMode(false); - m_session->captureToFile(false); - m_session->stop(); -} - -QCamera::State V4LCameraControl::state() const -{ - if(m_session->state() == QMediaRecorder::RecordingState) - return QCamera::ActiveState; - - return QCamera::StoppedState; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lcameracontrol.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4lcameracontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +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 Qt Mobility Components. -** -** $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 V4LCAMERACONTROL_H -#define V4LCAMERACONTROL_H - -#include -#include -#include - -QTM_USE_NAMESPACE - -class V4LCameraService; -class V4LCameraSession; - -class V4LCameraControl : public QCameraControl -{ - Q_OBJECT -public: - V4LCameraControl(QObject *parent = 0); - ~V4LCameraControl(); - - void start(); - void stop(); - QCamera::State state() const; - - QCamera::CaptureMode captureMode() const { return m_captureMode; } - void setCaptureMode(QCamera::CaptureMode mode) - { - if (m_captureMode != mode) { - m_captureMode = mode; - emit captureModeChanged(mode); - } - } - - QCamera::CaptureModes supportedCaptureModes() const - { - return QCamera::CaptureStillImage | QCamera::CaptureVideo; - } - - -private: - V4LCameraSession *m_session; - V4LCameraService *m_service; - QCamera::CaptureMode m_captureMode; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lcameraservice.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4lcameraservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,121 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include "v4lcameraservice.h" -#include "v4lcameracontrol.h" -#include "v4lcamerasession.h" -#include "v4lvideorenderer.h" -#include "v4lvideooutputcontrol.h" -#include "v4lvideodevicecontrol.h" -#include "v4limagecapturecontrol.h" -#include "v4lmediacontainercontrol.h" -#include "v4lvideoencode.h" -#include "v4lrecordercontrol.h" - -V4LCameraService::V4LCameraService(QObject *parent): - QMediaService(parent) -{ - m_session = new V4LCameraSession(this); - m_control = new V4LCameraControl(m_session); - - m_videoOutput = new V4LVideoOutputControl(this); - m_videoOutput->setOutput(QVideoOutputControl::RendererOutput); - - m_videoDevice = new V4LVideoDeviceControl(m_session); - - m_videoRenderer = new V4LVideoRendererControl(m_session, this); - - m_imageCapture = new V4LImageCaptureControl(m_session); - - m_formatControl = new V4LMediaContainerControl(m_session); - - m_videoEncode = new V4LVideoEncode(m_session); - - m_recorderControl = new V4LRecorderControl(m_session); - - m_device = QByteArray("/dev/video1"); -} - -V4LCameraService::~V4LCameraService() -{ - delete m_control; - delete m_session; - delete m_videoOutput; - delete m_videoDevice; - delete m_videoRenderer; - delete m_imageCapture; - delete m_formatControl; - delete m_videoEncode; - delete m_recorderControl; -} - -QMediaControl *V4LCameraService::control(const char *name) const -{ - if(qstrcmp(name,QCameraControl_iid) == 0) - return m_control; - - if(qstrcmp(name,QVideoOutputControl_iid) == 0) - return m_videoOutput; - - if(qstrcmp(name,QVideoRendererControl_iid) == 0) - return m_videoRenderer; - - if(qstrcmp(name,QVideoDeviceControl_iid) == 0) - return m_videoDevice; - - if (qstrcmp(name, QImageCaptureControl_iid) == 0) - return m_imageCapture; - - if (qstrcmp(name, QMediaContainerControl_iid) == 0) - return m_formatControl; - - if (qstrcmp(name, QVideoEncoderControl_iid) == 0) - return m_videoEncode; - - if (qstrcmp(name, QMediaRecorderControl_iid) == 0) - return m_recorderControl; - - return 0; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lcameraservice.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4lcameraservice.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,83 +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 Qt Mobility Components. -** -** $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 V4LCAMERASERVICE_H -#define V4LCAMERASERVICE_H - -#include - -#include -QTM_USE_NAMESPACE - -class V4LCameraControl; -class V4LCameraSession; -class V4LVideoOutputControl; -class V4LVideoDeviceControl; -class V4LVideoRendererControl; -class V4LImageCaptureControl; -class V4LMediaContainerControl; -class V4LVideoEncode; -class V4LRecorderControl; - -class V4LCameraService : public QMediaService -{ - Q_OBJECT - -public: - V4LCameraService(QObject *parent = 0); - ~V4LCameraService(); - - QMediaControl *control(const char *name) const; - -private: - V4LCameraControl *m_control; - V4LCameraSession *m_session; - V4LVideoOutputControl *m_videoOutput; - V4LVideoDeviceControl *m_videoDevice; - V4LVideoRendererControl *m_videoRenderer; - V4LImageCaptureControl *m_imageCapture; - V4LMediaContainerControl *m_formatControl; - V4LVideoEncode *m_videoEncode; - V4LRecorderControl *m_recorderControl; - QByteArray m_device; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lcamerasession.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4lcamerasession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,773 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "v4lcamerasession.h" -#include "v4lvideorenderer.h" -#include "v4lvideobuffer.h" - -#include -#include - -V4LCameraSession::V4LCameraSession(QObject *parent) - :QObject(parent) -{ - available = false; - resolutions.clear(); - formats.clear(); - m_state = QMediaRecorder::StoppedState; - m_device = "/dev/video1"; - preview = false; - toFile = false; - converter = 0; - active = false; - - sfd = ::open(m_device.constData(), O_RDWR); - - if (sfd != -1) { - available = true; - - // get formats available - v4l2_fmtdesc fmt; - memset(&fmt, 0, sizeof(v4l2_fmtdesc)); - fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - int sanity = 0; - for (fmt.index = 0;; fmt.index++) { - if (sanity++ > 8) - break; - if( ::ioctl(sfd, VIDIOC_ENUM_FMT, &fmt) == -1) { - if(errno == EINVAL) - break; - } - formats.append(fmt.pixelformat); - } - - // get sizes available - resolutions << QSize(176, 144) << QSize(320, 240) << QSize(640, 480); - - ::close(sfd); - sfd = -1; - } - m_output = 0; - m_surface = 0; - m_windowSize = QSize(320,240); - pixelF = QVideoFrame::Format_RGB32; - savedPixelF = QVideoFrame::Format_RGB32; -} - -V4LCameraSession::~V4LCameraSession() -{ -} - -void V4LCameraSession::captureImage(const QString &fileName) -{ - m_snapshot = fileName; -} - -void V4LCameraSession::setSurface(QAbstractVideoSurface* surface) -{ - m_surface = surface; -} - -bool V4LCameraSession::deviceReady() -{ - return available; -} - -int V4LCameraSession::framerate() const -{ - return -1; -} - -void V4LCameraSession::setFrameRate(int rate) -{ - Q_UNUSED(rate) -} - -int V4LCameraSession::brightness() const -{ - if(sfd == -1) return -1; - - struct v4l2_control control_s; - int err; - control_s.id = V4L2_CID_BRIGHTNESS; - if ((err = ::ioctl(sfd, VIDIOC_G_CTRL, &control_s)) < 0) - return -1; - - return control_s.value; -} - -void V4LCameraSession::setBrightness(int b) -{ - if(sfd == -1) return; - - struct v4l2_control control_s; - int err; - control_s.id = V4L2_CID_BRIGHTNESS; - control_s.value = b; - if ((err = ::ioctl(sfd, VIDIOC_S_CTRL, &control_s)) < 0) - return; -} - -int V4LCameraSession::contrast() const -{ - if(sfd == -1) return -1; - - struct v4l2_control control_s; - int err; - control_s.id = V4L2_CID_CONTRAST; - if ((err = ::ioctl(sfd, VIDIOC_G_CTRL, &control_s)) < 0) - return -1; - - return control_s.value; -} - -void V4LCameraSession::setContrast(int c) -{ - if(sfd == -1) return; - - struct v4l2_control control_s; - int err; - control_s.id = V4L2_CID_CONTRAST; - control_s.value = c; - if ((err = ::ioctl(sfd, VIDIOC_S_CTRL, &control_s)) < 0) - return; -} - -int V4LCameraSession::saturation() const -{ - if(sfd == -1) return -1; - - struct v4l2_control control_s; - int err; - control_s.id = V4L2_CID_SATURATION; - if ((err = ::ioctl(sfd, VIDIOC_G_CTRL, &control_s)) < 0) - return -1; - - return control_s.value; -} - -void V4LCameraSession::setSaturation(int s) -{ - if(sfd == -1) return; - - struct v4l2_control control_s; - int err; - control_s.id = V4L2_CID_SATURATION; - control_s.value = s; - if ((err = ::ioctl(sfd, VIDIOC_S_CTRL, &control_s)) < 0) - return; -} - -int V4LCameraSession::hue() const -{ - if(sfd == -1) return -1; - - struct v4l2_control control_s; - int err; - control_s.id = V4L2_CID_HUE; - if ((err = ::ioctl(sfd, VIDIOC_G_CTRL, &control_s)) < 0) - return -1; - - return control_s.value; -} - -void V4LCameraSession::setHue(int h) -{ - if(sfd == -1) return; - - struct v4l2_control control_s; - int err; - control_s.id = V4L2_CID_HUE; - control_s.value = h; - if ((err = ::ioctl(sfd, VIDIOC_S_CTRL, &control_s)) < 0) - return; -} - -int V4LCameraSession::sharpness() const -{ - return -1; -} - -void V4LCameraSession::setSharpness(int s) -{ - Q_UNUSED(s) -} - -int V4LCameraSession::zoom() const -{ - return -1; -} - -void V4LCameraSession::setZoom(int z) -{ - Q_UNUSED(z) -} - -bool V4LCameraSession::backlightCompensation() const -{ - return false; -} - -void V4LCameraSession::setBacklightCompensation(bool b) -{ - Q_UNUSED(b) -} - -int V4LCameraSession::whitelevel() const -{ - return -1; -} - -void V4LCameraSession::setWhitelevel(int w) -{ - Q_UNUSED(w) -} - -int V4LCameraSession::rotation() const -{ - return 0; -} - -void V4LCameraSession::setRotation(int r) -{ - Q_UNUSED(r) -} - -bool V4LCameraSession::flash() const -{ - return false; -} - -void V4LCameraSession::setFlash(bool f) -{ - Q_UNUSED(f) -} - -bool V4LCameraSession::autofocus() const -{ - return false; -} - -void V4LCameraSession::setAutofocus(bool f) -{ - Q_UNUSED(f) -} - -QSize V4LCameraSession::frameSize() const -{ - return m_windowSize; -} - -void V4LCameraSession::setFrameSize(const QSize& s) -{ - m_windowSize = s; -} - -void V4LCameraSession::setDevice(const QString &device) -{ - available = false; - m_state = QMediaRecorder::StoppedState; - m_device = QByteArray(device.toLocal8Bit().constData()); - - sfd = ::open(m_device.constData(), O_RDWR); - - if (sfd != -1) { - available = true; - - // get formats available - v4l2_fmtdesc fmt; - memset(&fmt, 0, sizeof(v4l2_fmtdesc)); - fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - int sanity = 0; - for (fmt.index = 0;; fmt.index++) { - if (sanity++ > 8) - break; - if( ::ioctl(sfd, VIDIOC_ENUM_FMT, &fmt) == -1) { - if(errno == EINVAL) - break; - } - formats.append(fmt.pixelformat); - } - - // get sizes available - resolutions << QSize(176, 144) << QSize(320, 240) << QSize(640, 480); - - ::close(sfd); - sfd = -1; - } - active = false; -} - -QList V4LCameraSession::supportedPixelFormats() -{ - QList list; - - if(available) { - for(int i=0;i V4LCameraSession::supportedResolutions() -{ - QList list; - - if(available) { - list << resolutions; - } - - return list; -} - -bool V4LCameraSession::setOutputLocation(const QUrl &sink) -{ - m_sink = sink; - - return true; -} - -QUrl V4LCameraSession::outputLocation() const -{ - return m_sink; -} - -qint64 V4LCameraSession::position() const -{ - return timeStamp.elapsed(); -} - -QMediaRecorder::State V4LCameraSession::state() const -{ - return m_state; -} - -void V4LCameraSession::previewMode(bool value) -{ - preview = value; -} - -void V4LCameraSession::captureToFile(bool value) -{ - if(toFile && m_file.isOpen()) - m_file.close(); - - toFile = value; -} - -bool V4LCameraSession::isFormatSupported(QVideoFrame::PixelFormat pFormat) -{ - if(sfd == -1) - return false; - - int ret; - struct v4l2_format fmt; - - memset(&fmt, 0, sizeof(fmt)); - fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - fmt.fmt.pix.width = m_windowSize.width(); - fmt.fmt.pix.height = m_windowSize.height(); - - if(pFormat == QVideoFrame::Format_YUYV) - fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; - if(pFormat == QVideoFrame::Format_RGB24) - fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24; - if(pFormat == QVideoFrame::Format_RGB32) - fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB32; - if(pFormat == QVideoFrame::Format_RGB565) - fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB565; - if(pFormat == QVideoFrame::Format_UYVY) - fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; - - fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; - ret = ::ioctl(sfd, VIDIOC_S_FMT, &fmt); - - if(ret == -1) - return false; - - return true; -} - -void V4LCameraSession::record() -{ - pixelF = savedPixelF; - - if(active && toFile && m_state != QMediaRecorder::PausedState) { - // Camera is active and captureToFile(true) - m_state = QMediaRecorder::RecordingState; - emit recordStateChanged(m_state); - return; - } else if(sfd > 0) - return; - - sfd = ::open(m_device.constData(), O_RDWR); - if(sfd == -1) { - qWarning()<<"can't open v4l "< fmts = supportedPixelFormats(); - - // first try and use what we have - if ((fmts.contains(pixelF)) && isFormatSupported(pixelF) && - m_surface->isFormatSupported(QVideoSurfaceFormat(m_windowSize,pixelF))) - match = true; - - // try and find a match between camera and surface that doesn't require a converter - if(!match) { - foreach(QVideoFrame::PixelFormat format, fmts) { - if (m_surface->isFormatSupported(QVideoSurfaceFormat(m_windowSize,format))) { - // found a match, try to use it! - if(isFormatSupported(format)) { - qWarning()<<"found a match "<isFormatSupported(QVideoSurfaceFormat(m_windowSize,QVideoFrame::Format_RGB32)) || - m_surface->isFormatSupported(QVideoSurfaceFormat(m_windowSize,QVideoFrame::Format_RGB24)) || - m_surface->isFormatSupported(QVideoSurfaceFormat(m_windowSize,QVideoFrame::Format_RGB565))) { - // converter can convert YUYV->RGB565, UYVY->RGB565 and YUV420P->RGB565 - if (pixelF == QVideoFrame::Format_YUYV || pixelF == QVideoFrame::Format_UYVY || - pixelF == QVideoFrame::Format_YUV420P) { - if(isFormatSupported(pixelF)) { - match = true; - converter = CameraFormatConverter::createFormatConverter(pixelF,m_windowSize.width(), - m_windowSize.height()); - qWarning()<<"found a converter match from: "<(-1)) { - qWarning()<<"can't mmap video data"; - ::close(sfd); - sfd = -1; - m_state = QMediaRecorder::StoppedState; - emit cameraStateChanged(QCamera::StoppedState); - return; - } - video_buffer v4l_buf; - v4l_buf.start = reinterpret_cast(mmap_data); - v4l_buf.length = buf.length; - buffers.append(v4l_buf); - } - // start stream - for(int i=0;i<(int)req.count;++i) { - struct v4l2_buffer buf; - memset(&buf,0,sizeof(buf)); - buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - buf.memory = V4L2_MEMORY_MMAP; - buf.index = i; - ret = ::ioctl(sfd, VIDIOC_QBUF, &buf); - if(ret == -1) { - qWarning()<<"can't mmap video data"; - ::close(sfd); - sfd = -1; - m_state = QMediaRecorder::StoppedState; - emit cameraStateChanged(QCamera::StoppedState); - return; - } - } - v4l2_buf_type buf_type; - buf_type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - ret = ::ioctl(sfd, VIDIOC_STREAMON, &buf_type); - if(ret < 0) { - qWarning()<<"can't start capture"; - ::close(sfd); - sfd = -1; - m_state = QMediaRecorder::StoppedState; - emit cameraStateChanged(QCamera::StoppedState); - return; - } - notifier = new QSocketNotifier(sfd, QSocketNotifier::Read, this); - connect(notifier, SIGNAL(activated(int)), this, SLOT(captureFrame())); - notifier->setEnabled(1); - if (!converter) { - QVideoSurfaceFormat requestedFormat(m_windowSize,pixelF); - - bool check = m_surface->isFormatSupported(requestedFormat); - - if(check) { - m_surface->start(requestedFormat); - - m_state = QMediaRecorder::RecordingState; - emit cameraStateChanged(QCamera::ActiveState); - timeStamp.restart(); - } - } else { - QVideoSurfaceFormat requestedFormat(m_windowSize,QVideoFrame::Format_RGB32); - m_surface->start(requestedFormat); - m_state = QMediaRecorder::RecordingState; - emit cameraStateChanged(QCamera::ActiveState); - timeStamp.restart(); - } - active = true; -} - -void V4LCameraSession::pause() -{ - if(sfd != -1) { - v4l2_buf_type buf_type; - buf_type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - ::ioctl(sfd, VIDIOC_STREAMOFF, &buf_type); - if (notifier) { - notifier->setEnabled(false); - disconnect(notifier, 0, 0, 0); - delete notifier; - notifier = 0; - } - ::close(sfd); - sfd = -1; - m_state = QMediaRecorder::PausedState; - emit recordStateChanged(m_state); - } -} - -void V4LCameraSession::stop() -{ - if(sfd != -1) { - - if(toFile && m_file.isOpen() && m_state != QMediaRecorder::StoppedState) { - // just stop writing to file. - m_file.close(); - - m_state = QMediaRecorder::StoppedState; - emit recordStateChanged(m_state); - return; - } - - v4l2_buf_type buf_type; - buf_type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - ::ioctl(sfd, VIDIOC_STREAMOFF, &buf_type); - if (notifier) { - notifier->setEnabled(false); - disconnect(notifier, 0, 0, 0); - delete notifier; - notifier = 0; - } - // Dequeue remaining buffers - for(int i = 0;i < 4; ++i) { - v4l2_buffer buf; - memset(&buf, 0, sizeof(struct v4l2_buffer)); - buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - buf.memory = V4L2_MEMORY_MMAP; - buf.index = i; - if (ioctl(sfd, VIDIOC_QUERYBUF, &buf) == 0) { - if (buf.flags & V4L2_BUF_FLAG_QUEUED) { - ::ioctl(sfd, VIDIOC_DQBUF, &buf); - } - } - munmap(buffers.at(buf.index).start,buf.length); - } - - ::close(sfd); - sfd = -1; - m_state = QMediaRecorder::StoppedState; - emit cameraStateChanged(QCamera::StoppedState); - - if(converter) - delete converter; - converter = 0; - active = false; - } -} - -void V4LCameraSession::captureFrame() -{ - if(sfd == -1) return; - v4l2_buffer buf; - memset(&buf, 0, sizeof(struct v4l2_buffer)); - buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - buf.memory = V4L2_MEMORY_MMAP; - int ret = ioctl(sfd, VIDIOC_DQBUF, &buf); - if (ret < 0 ) { - qWarning()<<"error reading frame"; - return; - } - //qWarning()<<"size: "<convert((unsigned char*)buffers.at(buf.index).start,buf.bytesused), - m_windowSize.width(),m_windowSize.height(),QImage::Format_RGB16).convertToFormat(QImage::Format_RGB32); - if(m_snapshot.length() > 0) { - image.save(m_snapshot,"JPG"); - m_snapshot.clear(); - } - if(m_sink.toString().length() > 0 && toFile) { - // save to file - if(!m_file.isOpen()) { - if(m_sink.toLocalFile().length() > 0) - m_file.setFileName(m_sink.toLocalFile()); - else - m_file.setFileName(m_sink.toString()); - m_file.open(QIODevice::WriteOnly); - } - image.save(qobject_cast(&m_file),"JPG"); - } - if(preview) { - QVideoFrame frame(image); - m_surface->present(frame); - } - ret = ioctl(sfd, VIDIOC_QBUF, &buf); - - } else { - QVideoSurfaceFormat sfmt = m_surface->surfaceFormat(); - if(sfmt.pixelFormat() == QVideoFrame::Format_RGB565) { - QImage image; - image = QImage((unsigned char*)buffers.at(buf.index).start, - m_windowSize.width(), m_windowSize.height(), QImage::Format_RGB16); - QVideoFrame frame(image); - m_surface->present(frame); - ret = ioctl(sfd, VIDIOC_QBUF, &buf); - - } else { - V4LVideoBuffer* packet = new V4LVideoBuffer((unsigned char*)buffers.at(buf.index).start, sfd, buf); - packet->setBytesPerLine(m_windowSize.width()*4); - QVideoFrame frame(packet,m_windowSize,pixelF); - frame.setStartTime(buf.timestamp.tv_sec); - m_surface->present(frame); - } - } - - } else - ret = ioctl(sfd, VIDIOC_QBUF, &buf); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lcamerasession.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4lcamerasession.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,164 +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 Qt Mobility Components. -** -** $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 V4LCAMERASESSION_H -#define V4LCAMERASESSION_H - -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -#include "cameraformatconverter.h" -QTM_USE_NAMESPACE - -class V4LVideoRenderer; - -struct video_buffer { - void* start; - size_t length; -}; - -class V4LCameraSession : public QObject -{ - Q_OBJECT -public: - V4LCameraSession(QObject *parent = 0); - ~V4LCameraSession(); - - bool deviceReady(); - - // camera controls - - int framerate() const; - void setFrameRate(int rate); - int brightness() const; - void setBrightness(int b); - int contrast() const; - void setContrast(int c); - int saturation() const; - void setSaturation(int s); - int hue() const; - void setHue(int h); - int sharpness() const; - void setSharpness(int s); - int zoom() const; - void setZoom(int z); - bool backlightCompensation() const; - void setBacklightCompensation(bool); - int whitelevel() const; - void setWhitelevel(int w); - int rotation() const; - void setRotation(int r); - bool flash() const; - void setFlash(bool f); - bool autofocus() const; - void setAutofocus(bool f); - - QSize frameSize() const; - void setFrameSize(const QSize& s); - void setDevice(const QString &device); - QList supportedPixelFormats(); - QVideoFrame::PixelFormat pixelFormat() const; - void setPixelFormat(QVideoFrame::PixelFormat fmt); - QList supportedResolutions(); - - // media control - - bool setOutputLocation(const QUrl &sink); - QUrl outputLocation() const; - qint64 position() const; - QMediaRecorder::State state() const; - void record(); - void pause(); - void stop(); - - void setSurface(QAbstractVideoSurface* surface); - - void captureImage(const QString &fileName); - - void previewMode(bool value); - void captureToFile(bool value); - -Q_SIGNALS: - void cameraStateChanged(QCamera::State); - void recordStateChanged(QMediaRecorder::State); - void imageCaptured(const QString &fileName, const QImage &img); - -private Q_SLOTS: - void captureFrame(); - -private: - bool isFormatSupported(QVideoFrame::PixelFormat fmt); - - QSocketNotifier *notifier; - QList buffers; - - int sfd; - QTime timeStamp; - bool available; - bool preview; - bool toFile; - bool active; - QMediaRecorder::State m_state; - QByteArray m_device; - QUrl m_sink; - QFile m_file; - V4LVideoRenderer* m_output; - QAbstractVideoSurface* m_surface; - QVideoFrame::PixelFormat pixelF; - QVideoFrame::PixelFormat savedPixelF; - QSize m_windowSize; - QList resolutions; - QList formats; - - CameraFormatConverter* converter; - - QString m_snapshot; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4limagecapturecontrol.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4limagecapturecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +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 Qt Mobility Components. -** -** $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 "v4limagecapturecontrol.h" -#include - -V4LImageCaptureControl::V4LImageCaptureControl(V4LCameraSession *session) - :QImageCaptureControl(session), m_session(session), m_ready(false) -{ - connect(m_session, SIGNAL(cameraStateChanged(QCamera::State)), SLOT(updateState())); - connect(m_session, SIGNAL(imageCaptured(QString,QImage)), this, SIGNAL(imageCaptured(QString,QImage))); -} - -V4LImageCaptureControl::~V4LImageCaptureControl() -{ -} - -bool V4LImageCaptureControl::isReadyForCapture() const -{ - return m_ready; -} - -void V4LImageCaptureControl::capture(const QString &fileName) -{ - m_session->captureImage(fileName); -} - -void V4LImageCaptureControl::updateState() -{ - bool ready = m_session->state() == QMediaRecorder::RecordingState; - if(m_ready != ready) - emit readyForCaptureChanged(m_ready = ready); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4limagecapturecontrol.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4limagecapturecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +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 Qt Mobility Components. -** -** $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 V4LIMAGECAPTURECONTROL_H -#define V4LIMAGECAPTURECONTROL_H - -#include -#include "v4lcamerasession.h" -QTM_USE_NAMESPACE - -class V4LImageCaptureControl : public QImageCaptureControl -{ - Q_OBJECT -public: - V4LImageCaptureControl(V4LCameraSession *session); - virtual ~V4LImageCaptureControl(); - - bool isReadyForCapture() const; - void capture(const QString &fileName); - -private slots: - void updateState(); - -private: - V4LCameraSession *m_session; - bool m_ready; -}; - -#endif // V4LCAPTURECONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lmediacontainercontrol.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4lmediacontainercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +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 Qt Mobility Components. -** -** $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 "v4lmediacontainercontrol.h" - -V4LMediaContainerControl::V4LMediaContainerControl(QObject *parent) - :QMediaContainerControl(parent) -{ - m_format = "mpeg"; - m_supportedContainers.append("mpeg"); - setContainerMimeType(m_supportedContainers[0]); -} - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lmediacontainercontrol.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4lmediacontainercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +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 Qt Mobility Components. -** -** $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 V4LMEDIACONTAINERCONTROL_H -#define V4LMEDIACONTAINERCONTROL_H - -#include -#include -QTM_USE_NAMESPACE - -class V4LMediaContainerControl : public QMediaContainerControl -{ -Q_OBJECT -public: - V4LMediaContainerControl(QObject *parent); - virtual ~V4LMediaContainerControl() {}; - - virtual QStringList supportedContainers() const { return m_supportedContainers; } - virtual QString containerMimeType() const { return m_format; } - virtual void setContainerMimeType(const QString &formatMimeType) { m_format = formatMimeType; } - - virtual QString containerDescription(const QString &formatMimeType) const { Q_UNUSED(formatMimeType) return QString(); } - -private: - QString m_format; - QStringList m_supportedContainers; -}; - -#endif // V4LMEDIACONTAINERCONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lrecordercontrol.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4lrecordercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,102 +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 Qt Mobility Components. -** -** $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 "v4lrecordercontrol.h" -#include - -V4LRecorderControl::V4LRecorderControl(V4LCameraSession *session) - :QMediaRecorderControl(session), m_session(session), m_state(QMediaRecorder::StoppedState) -{ - connect(m_session, SIGNAL(recordStateChanged(QMediaRecorder::State)), SLOT(updateState(QMediaRecorder::State))); - //connect(m_session, SIGNAL(error(int,QString)), SIGNAL(error(int,QString))); - //connect(m_session, SIGNAL(durationChanged(qint64)), SIGNAL(durationChanged(qint64))); -} - -V4LRecorderControl::~V4LRecorderControl() -{ -} - -QUrl V4LRecorderControl::outputLocation() const -{ - return m_session->outputLocation(); -} - -bool V4LRecorderControl::setOutputLocation(const QUrl &sink) -{ - m_session->setOutputLocation(sink); - return true; -} - - -QMediaRecorder::State V4LRecorderControl::state() const -{ - return m_session->state(); -} - -void V4LRecorderControl::updateState(QMediaRecorder::State newState) -{ - if (m_state != newState) { - m_state = newState; - emit stateChanged(m_state); - } -} - -qint64 V4LRecorderControl::duration() const -{ - return m_session->position(); -} - -void V4LRecorderControl::record() -{ - m_session->captureToFile(true); - m_session->record(); -} - -void V4LRecorderControl::pause() -{ - m_session->pause(); -} - -void V4LRecorderControl::stop() -{ - m_session->stop(); - m_session->captureToFile(false); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lrecordercontrol.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4lrecordercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,81 +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 Qt Mobility Components. -** -** $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 V4LCAPTURECONTROL_H -#define V4LCAPTURECONTROL_H - -#include -#include "v4lcamerasession.h" -QTM_USE_NAMESPACE - -class V4LRecorderControl : public QMediaRecorderControl -{ - Q_OBJECT - Q_PROPERTY(qint64 duration READ duration NOTIFY durationChanged) - -public: - V4LRecorderControl(V4LCameraSession *session); - virtual ~V4LRecorderControl(); - - QUrl outputLocation() const; - bool setOutputLocation(const QUrl &sink); - - QMediaRecorder::State state() const; - - qint64 duration() const; - - void applySettings() {} - -public slots: - void record(); - void pause(); - void stop(); - -private slots: - void updateState(QMediaRecorder::State state); - -private: - V4LCameraSession *m_session; - QMediaRecorder::State m_state; -}; - -#endif // V4LCAPTURECONTROL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lvideobuffer.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4lvideobuffer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,102 +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 Qt Mobility Components. -** -** $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 "v4lvideobuffer.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -V4LVideoBuffer::V4LVideoBuffer(unsigned char *buffer, int fd, v4l2_buffer buf) - : QAbstractVideoBuffer(NoHandle) - , m_buffer(buffer) - , m_length(buf.bytesused) - , m_fd(fd) - , m_bytesPerLine(0) - , m_mode(NotMapped) - , m_buf(buf) -{ -} - -V4LVideoBuffer::~V4LVideoBuffer() -{ - ioctl(m_fd, VIDIOC_QBUF, &m_buf); -} - -void V4LVideoBuffer::setBytesPerLine(int bytesPerLine) -{ - m_bytesPerLine = bytesPerLine; -} - -QAbstractVideoBuffer::MapMode V4LVideoBuffer::mapMode() const -{ - return m_mode; -} - -uchar *V4LVideoBuffer::map(MapMode mode, int *numBytes, int *bytesPerLine) -{ - if (mode != NotMapped && m_mode == NotMapped) { - if (numBytes) - *numBytes = m_length; - - m_mode = mode; - - if(bytesPerLine) - *bytesPerLine = m_bytesPerLine; - - return m_buffer; - } else { - return 0; - } -} -void V4LVideoBuffer::unmap() -{ - m_mode = NotMapped; -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lvideobuffer.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4lvideobuffer.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +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 Qt Mobility Components. -** -** $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 V4LVIDEOBUFFER_H -#define V4LVIDEOBUFFER_H - -#include - -#include - -#include -#include -#include -#include - -#include -#include -#include -#include - -class V4LVideoBuffer : public QAbstractVideoBuffer -{ -public: - V4LVideoBuffer(unsigned char *buffer, int fd, v4l2_buffer buf); - ~V4LVideoBuffer(); - - MapMode mapMode() const; - - uchar *map(MapMode mode, int *numBytes, int *bytesPerLine); - void unmap(); - - void setBytesPerLine(int bytesPerLine); - -private: - unsigned char *m_buffer; - int m_length; - int m_fd; - int m_bytesPerLine; - MapMode m_mode; - v4l2_buffer m_buf; -}; - - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lvideodevicecontrol.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4lvideodevicecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,129 +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 Qt Mobility Components. -** -** $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 -#include -#include "v4lvideodevicecontrol.h" -#include "v4lcamerasession.h" - -V4LVideoDeviceControl::V4LVideoDeviceControl(QObject *parent) - : QVideoDeviceControl(parent) -{ - m_session = qobject_cast(parent); - - QString name; - QFile video0("/sys/class/video4linux/video0/name"); - if (video0.exists()) { - devices.append("v4l:/dev/video0"); - char str[31]; - memset(str,0,31); - video0.open(QIODevice::ReadOnly); - video0.read(str,30); - name = QString(str); - descriptions.append(name.simplified()); - video0.close(); - } - - QFile video1("/sys/class/video4linux/video1/name"); - if (video0.exists()) { - devices.append("v4l:/dev/video1"); - char str[31]; - memset(str,0,31); - video1.open(QIODevice::ReadOnly); - video1.read(str,30); - name = QString(str); - descriptions.append(name.simplified()); - video1.close(); - } - selected = 0; -} - -int V4LVideoDeviceControl::deviceCount() const -{ - return devices.count(); -} - -QString V4LVideoDeviceControl::deviceName(int index) const -{ - if(index >= 0 && index <= devices.count()) - return devices.at(index); - - return QString(); -} - -QString V4LVideoDeviceControl::deviceDescription(int index) const -{ - if(index >= 0 && index <= descriptions.count()) - return descriptions.at(index); - - return QString(); -} - -QIcon V4LVideoDeviceControl::deviceIcon(int index) const -{ - Q_UNUSED(index) - - return QIcon(); -} - -int V4LVideoDeviceControl::defaultDevice() const -{ - return 0; -} - -int V4LVideoDeviceControl::selectedDevice() const -{ - return selected; -} - -void V4LVideoDeviceControl::setSelectedDevice(int index) -{ - if(index >= 0 && index <= devices.count()) { - if (m_session) { - QString device = devices.at(index); - if (device.startsWith("v4l:")) - device.remove(0,4); - m_session->setDevice(device); - } - selected = index; - } -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lvideodevicecontrol.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4lvideodevicecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +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 Qt Mobility Components. -** -** $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 V4LVIDEODEVICECONTROL_H -#define V4LVIDEODEVICECONTROL_H - -#include -QTM_USE_NAMESPACE - -class V4LCameraSession; - -class V4LVideoDeviceControl : public QVideoDeviceControl -{ - Q_OBJECT -public: - V4LVideoDeviceControl(QObject *parent = 0); - - int deviceCount() const; - QString deviceName(int index) const; - QString deviceDescription(int index) const; - QIcon deviceIcon(int index) const; - int defaultDevice() const; - int selectedDevice() const; - -public Q_SLOTS: - void setSelectedDevice(int index); - -private: - V4LCameraSession* m_session; - - QList devices; - QList descriptions; - - int selected; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lvideoencode.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4lvideoencode.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +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 Qt Mobility Components. -** -** $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 "v4lvideoencode.h" -#include "v4lcamerasession.h" - -#include - -V4LVideoEncode::V4LVideoEncode(QObject *parent) - :QVideoEncoderControl(parent) -{ - m_session = qobject_cast(parent); - - m_codecs.append("video/mj2"); - m_codecDescriptions.insert("video/mj2",QString("Motion JPEG")); - m_videoSettings.setCodec(m_codecs[0]); -} - -V4LVideoEncode::~V4LVideoEncode() -{ -} - -QList V4LVideoEncode::supportedResolutions(const QVideoEncoderSettings &, bool *continuous) const -{ - if (continuous) - *continuous = false; - - if(m_session) - return m_session->supportedResolutions(); - - QList res; - return res; -} - - -QList< qreal > V4LVideoEncode::supportedFrameRates(const QVideoEncoderSettings &, bool *continuous) const -{ - if (continuous) - *continuous = false; - - QList res; - res << 24.0 << 12.0; - return res; -} - -QStringList V4LVideoEncode::supportedVideoCodecs() const -{ - return m_codecs; -} - -QString V4LVideoEncode::videoCodecDescription(const QString &codecName) const -{ - Q_UNUSED(codecName) - - return QString("Motion JPEG"); -} - -QStringList V4LVideoEncode::supportedEncodingOptions(const QString &codec) const -{ - Q_UNUSED(codec) - - return QStringList(); -} - -QVariant V4LVideoEncode::encodingOption(const QString &codec, const QString &name) const -{ - Q_UNUSED(codec) - Q_UNUSED(name) - - return QVariant(); -} - -void V4LVideoEncode::setEncodingOption( - const QString &codec, const QString &name, const QVariant &value) -{ - Q_UNUSED(codec) - Q_UNUSED(name) - Q_UNUSED(value) -} - -QVideoEncoderSettings V4LVideoEncode::videoSettings() const -{ - return m_videoSettings; -} - -void V4LVideoEncode::setVideoSettings(const QVideoEncoderSettings &settings) -{ - m_videoSettings = settings; -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lvideoencode.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4lvideoencode.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +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 Qt Mobility Components. -** -** $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 V4LVIDEOENCODE_H -#define V4LVIDEOENCODE_H - -#include -class V4LCameraSession; - -#include -#include -QTM_USE_NAMESPACE - -class V4LVideoEncode : public QVideoEncoderControl -{ - Q_OBJECT -public: - V4LVideoEncode(QObject *parent); - virtual ~V4LVideoEncode(); - - QList supportedResolutions(const QVideoEncoderSettings &settings = QVideoEncoderSettings(), - bool *continuous = 0) const; - - QList< qreal > supportedFrameRates(const QVideoEncoderSettings &settings = QVideoEncoderSettings(), - bool *continuous = 0) const; - - QPair rateAsRational() const; - - QStringList supportedVideoCodecs() const; - QString videoCodecDescription(const QString &codecName) const; - - QVideoEncoderSettings videoSettings() const; - void setVideoSettings(const QVideoEncoderSettings &settings); - - QStringList supportedEncodingOptions(const QString &codec) const; - QVariant encodingOption(const QString &codec, const QString &name) const; - void setEncodingOption(const QString &codec, const QString &name, const QVariant &value); - -private: - V4LCameraSession *m_session; - QStringList m_codecs; - QMap m_codecDescriptions; - QMap m_elementNames; - QMap m_codecOptions; - - QVideoEncoderSettings m_videoSettings; - QMap > m_options; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lvideooutputcontrol.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4lvideooutputcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +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 Qt Mobility Components. -** -** $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 "v4lvideooutputcontrol.h" - -V4LVideoOutputControl::V4LVideoOutputControl(QObject *parent) - : QVideoOutputControl(parent) - , m_output(NoOutput) -{ - m_outputs.append(QVideoOutputControl::RendererOutput); -} - -QList V4LVideoOutputControl::availableOutputs() const -{ - return m_outputs; -} - -QVideoOutputControl::Output V4LVideoOutputControl::output() const -{ - return m_output; -} - -void V4LVideoOutputControl::setOutput(Output output) -{ - if (!m_outputs.contains(output)) - output = NoOutput; - - emit availableOutputsChanged(m_outputs); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lvideooutputcontrol.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4lvideooutputcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +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 Qt Mobility Components. -** -** $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 V4LVIDEOOUTPUTCONTROL_H -#define V4LVIDEOOUTPUTCONTROL_H - -#include -QTM_USE_NAMESPACE - -class V4LVideoOutputControl : public QVideoOutputControl -{ - Q_OBJECT -public: - V4LVideoOutputControl(QObject *parent = 0); - - QList availableOutputs() const; - - Output output() const; - void setOutput(Output output); - -private: - QList m_outputs; - Output m_output; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lvideorenderer.cpp --- a/qtmobility/plugins/multimedia/v4l/camera/v4lvideorenderer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +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 Qt Mobility Components. -** -** $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 "v4lvideorenderer.h" - -#include - -V4LVideoRendererControl::V4LVideoRendererControl(V4LCameraSession* session, QObject *parent) - :QVideoRendererControl(parent), - m_surface(0), - m_session(session) -{ -} - -V4LVideoRendererControl::~V4LVideoRendererControl() -{ -} - -QAbstractVideoSurface* V4LVideoRendererControl::surface() const -{ - return m_surface; -} - -void V4LVideoRendererControl::setSurface(QAbstractVideoSurface *surface) -{ - m_surface = surface; - if(m_session) - m_session->setSurface(m_surface); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/camera/v4lvideorenderer.h --- a/qtmobility/plugins/multimedia/v4l/camera/v4lvideorenderer.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,69 +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 Qt Mobility Components. -** -** $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 V4LVIDEORENDERER_H -#define V4LVIDEORENDERER_H - -#include -#include "v4lcamerasession.h" -QTM_USE_NAMESPACE - -class CameraFormatConverter; - -class V4LVideoRendererControl : public QVideoRendererControl -{ - Q_OBJECT -public: - V4LVideoRendererControl(V4LCameraSession* session, QObject *parent = 0); - ~V4LVideoRendererControl(); - - QAbstractVideoSurface *surface() const; - void setSurface(QAbstractVideoSurface *surface); - - void setSession(V4LCameraSession* session); - -private: - QAbstractVideoSurface* m_surface; - V4LCameraSession* m_session; - CameraFormatConverter* converter; -}; - -#endif // V4LVIDEORENDERER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/radio/radio.pri --- a/qtmobility/plugins/multimedia/v4l/radio/radio.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/v4l/radio/radio.pri Mon May 03 13:18:40 2010 +0300 @@ -1,5 +1,24 @@ INCLUDEPATH += $$PWD +maemo5 { + QT += dbus + + CONFIG += link_pkgconfig + + PKGCONFIG += gstreamer-0.10 + + LIBS += -lasound + + HEADERS += \ + $$PWD/v4lradiocontrol_maemo5.h \ + $$PWD/v4lradioservice.h + + SOURCES += \ + $$PWD/v4lradiocontrol_maemo5.cpp \ + $$PWD/v4lradioservice.cpp + +} else { + HEADERS += \ $$PWD/v4lradiocontrol.h \ $$PWD/v4lradioservice.h @@ -7,4 +26,4 @@ SOURCES += \ $$PWD/v4lradiocontrol.cpp \ $$PWD/v4lradioservice.cpp - +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/radio/v4lradiocontrol.cpp --- a/qtmobility/plugins/multimedia/v4l/radio/v4lradiocontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/v4l/radio/v4lradiocontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -344,31 +344,32 @@ bool V4LRadioControl::isSearching() const { - //TODO - return false; + return scanning; } void V4LRadioControl::cancelSearch() { - //TODO + scanning = false; + timer->stop(); } void V4LRadioControl::searchForward() { // Scan up if(scanning) { - scanning = false; + cancelSearch(); return; } scanning = true; forward = true; + timer->start(); } void V4LRadioControl::searchBackward() { // Scan down if(scanning) { - scanning = false; + cancelSearch(); return; } scanning = true; @@ -407,12 +408,16 @@ if(!scanning) return; + if (signal > 25) { + cancelSearch(); + return; + } + if(forward) { setFrequency(currentFreq+step); } else { setFrequency(currentFreq-step); } - emit signalStrengthChanged(signalStrength()); } bool V4LRadioControl::initRadio() @@ -426,7 +431,7 @@ available = false; freqMin = freqMax = currentFreq = 0; - fd = ::open("/dev/radio", O_RDWR); + fd = ::open("/dev/radio0", O_RDWR); if(fd != -1) { // Capabilites @@ -479,8 +484,6 @@ } } - qWarning()<<"min="< +#include +#include +#include +#include +#include +#include + +V4LRadioControl::V4LRadioControl(QObject *parent) + : QRadioTunerControl(parent) + , fd(1) + , m_error(false) + , muted(false) + , stereo(false) + , step(100000) + , sig(0) + , scanning(false) + , currentBand(QRadioTuner::FM) + , pipeline(0) +{ + if (QDBusConnection::systemBus().isConnected()) { + FMRXEnablerIFace = new QDBusInterface("de.pycage.FMRXEnabler", + "/de/pycage/FMRXEnabler", + "de.pycage.FMRXEnabler", + QDBusConnection::systemBus()); + } + + enableFMRX(); + createGstPipeline(); + initRadio(); + setupHeadPhone(); + + setMuted(false); + + timer = new QTimer(this); + timer->setInterval(200); + connect(timer,SIGNAL(timeout()),this,SLOT(search())); + timer->start(); + + tickTimer = new QTimer(this); + tickTimer->setInterval(10000); + connect(tickTimer,SIGNAL(timeout()),this,SLOT(enableFMRX())); + tickTimer->start(); +} + +V4LRadioControl::~V4LRadioControl() +{ + if (pipeline) + { + gst_element_set_state (pipeline, GST_STATE_NULL); + gst_object_unref (GST_OBJECT (pipeline)); + } + + if(fd > 0) + ::close(fd); +} + +void V4LRadioControl::enableFMRX() +{ + if (FMRXEnablerIFace && FMRXEnablerIFace->isValid()) { + FMRXEnablerIFace->call("request"); // Return value ignored + } +} + +// Workaround to capture sound from the PGA line and play it back using gstreamer +// because N900 doesn't output sound directly to speakers +bool V4LRadioControl::createGstPipeline() +{ + GstElement *source, *sink; + + gst_init (NULL, NULL); + pipeline = gst_pipeline_new("my-pipeline"); + + source = gst_element_factory_make ("pulsesrc", "source"); + sink = gst_element_factory_make ("pulsesink", "sink"); + + gst_bin_add_many (GST_BIN (pipeline), source, sink, (char *)NULL); + + if (!gst_element_link_many (source, sink, (char *)NULL)) { + return false; + } + + gst_element_set_state (pipeline, GST_STATE_PLAYING); + + return true; +} + +bool V4LRadioControl::isAvailable() const +{ + return available; +} + +QtMedia::AvailabilityError V4LRadioControl::availabilityError() const +{ + if (fd > 0) + return QtMedia::NoError; + else + return QtMedia::ResourceError; +} + +QRadioTuner::State V4LRadioControl::state() const +{ + return fd > 0 ? QRadioTuner::ActiveState : QRadioTuner::StoppedState; +} + +QRadioTuner::Band V4LRadioControl::band() const +{ + return currentBand; +} + +bool V4LRadioControl::isBandSupported(QRadioTuner::Band b) const +{ + QRadioTuner::Band bnd = (QRadioTuner::Band)b; + switch(bnd) { + case QRadioTuner::FM: + if(freqMin <= 87500000 && freqMax >= 108000000) + return true; + break; + case QRadioTuner::LW: + if(freqMin <= 148500 && freqMax >= 283500) + return true; + case QRadioTuner::AM: + if(freqMin <= 520000 && freqMax >= 1610000) + return true; + default: + if(freqMin <= 1711000 && freqMax >= 30000000) + return true; + } + + return false; +} + +void V4LRadioControl::setBand(QRadioTuner::Band b) +{ + if(freqMin <= 87500000 && freqMax >= 108000000 && b == QRadioTuner::FM) { + // FM 87.5 to 108.0 MHz, except Japan 76-90 MHz + currentBand = (QRadioTuner::Band)b; + step = 100000; // 100kHz steps + emit bandChanged(currentBand); + + } else if(freqMin <= 148500 && freqMax >= 283500 && b == QRadioTuner::LW) { + // LW 148.5 to 283.5 kHz, 9kHz channel spacing (Europe, Africa, Asia) + currentBand = (QRadioTuner::Band)b; + step = 1000; // 1kHz steps + emit bandChanged(currentBand); + + } else if(freqMin <= 520000 && freqMax >= 1610000 && b == QRadioTuner::AM) { + // AM 520 to 1610 kHz, 9 or 10kHz channel spacing, extended 1610 to 1710 kHz + currentBand = (QRadioTuner::Band)b; + step = 1000; // 1kHz steps + emit bandChanged(currentBand); + + } else if(freqMin <= 1711000 && freqMax >= 30000000 && b == QRadioTuner::SW) { + // SW 1.711 to 30.0 MHz, divided into 15 bands. 5kHz channel spacing + currentBand = (QRadioTuner::Band)b; + step = 500; // 500Hz steps + emit bandChanged(currentBand); + } +} + +int V4LRadioControl::frequency() const +{ + return currentFreq; +} + +int V4LRadioControl::frequencyStep(QRadioTuner::Band b) const +{ + int step = 0; + + if(b == QRadioTuner::FM) + step = 100000; // 100kHz steps + else if(b == QRadioTuner::LW) + step = 1000; // 1kHz steps + else if(b == QRadioTuner::AM) + step = 1000; // 1kHz steps + else if(b == QRadioTuner::SW) + step = 500; // 500Hz steps + + return step; +} + +QPair V4LRadioControl::frequencyRange(QRadioTuner::Band b) const +{ + if(b == QRadioTuner::AM) + return qMakePair(520000,1710000); + else if(b == QRadioTuner::FM) + return qMakePair(87500000,108000000); + else if(b == QRadioTuner::SW) + return qMakePair(1711111,30000000); + else if(b == QRadioTuner::LW) + return qMakePair(148500,283500); + + return qMakePair(0,0); +} + +void V4LRadioControl::setFrequency(int frequency) +{ + qint64 f = frequency; + + v4l2_frequency freq; + + if(frequency < freqMin) + f = freqMax; + if(frequency > freqMax) + f = freqMin; + + if(fd > 0) { + memset(&freq, 0, sizeof(freq)); + // Use the first tuner + freq.tuner = 0; + if (::ioctl(fd, VIDIOC_G_FREQUENCY, &freq) >= 0) { + if(low) { + // For low, freq in units of 62.5Hz, so convert from Hz to units. + freq.frequency = (int)(f/62.5); + } else { + // For high, freq in units of 62.5kHz, so convert from Hz to units. + freq.frequency = (int)(f/62500); + } + ::ioctl(fd, VIDIOC_S_FREQUENCY, &freq); + currentFreq = f; + emit frequencyChanged(currentFreq); + } + } +} + +bool V4LRadioControl::isStereo() const +{ + return stereo; +} + +QRadioTuner::StereoMode V4LRadioControl::stereoMode() const +{ + return QRadioTuner::Auto; +} + +void V4LRadioControl::setStereoMode(QRadioTuner::StereoMode mode) +{ + bool stereo = true; + + if(mode == QRadioTuner::ForceMono) + stereo = false; + + v4l2_tuner tuner; + + memset(&tuner, 0, sizeof(tuner)); + + if (ioctl(fd, VIDIOC_G_TUNER, &tuner) >= 0) { + if(stereo) + tuner.audmode = V4L2_TUNER_MODE_STEREO; + else + tuner.audmode = V4L2_TUNER_MODE_MONO; + + if (ioctl(fd, VIDIOC_S_TUNER, &tuner) >= 0) { + emit stereoStatusChanged(stereo); + } + } +} + +int V4LRadioControl::signalStrength() const +{ + v4l2_tuner tuner; + + tuner.index = 0; + if (ioctl(fd, VIDIOC_G_TUNER, &tuner) < 0 || tuner.type != V4L2_TUNER_RADIO) + return 0; + return tuner.signal*100/65535; +} + +int V4LRadioControl::vol(snd_hctl_elem_t *elem) const +{ + const QString card("hw:0"); + int err; + snd_ctl_elem_id_t *id; + snd_ctl_elem_info_t *info; + snd_ctl_elem_value_t *control; + snd_ctl_elem_id_alloca(&id); + snd_ctl_elem_info_alloca(&info); + snd_ctl_elem_value_alloca(&control); + if ((err = snd_hctl_elem_info(elem, info)) < 0) { + return 0; + } + + snd_hctl_elem_get_id(elem, id); + snd_hctl_elem_read(elem, control); + + return snd_ctl_elem_value_get_integer(control, 0); +} + +int V4LRadioControl::volume() const +{ + const QString ctlName("Line DAC Playback Volume"); + const QString card("hw:0"); + + int volume = 0; + int err; + static snd_ctl_t *handle = NULL; + snd_ctl_elem_info_t *info; + snd_ctl_elem_id_t *id; + snd_ctl_elem_value_t *control; + + snd_ctl_elem_info_alloca(&info); + snd_ctl_elem_id_alloca(&id); + snd_ctl_elem_value_alloca(&control); + snd_ctl_elem_id_set_interface(id, SND_CTL_ELEM_IFACE_MIXER); /* MIXER */ + + snd_ctl_elem_id_set_name(id, ctlName.toAscii()); + + if ((err = snd_ctl_open(&handle, card.toAscii(), 0)) < 0) { + return 0; + } + + snd_ctl_elem_info_set_id(info, id); + if ((err = snd_ctl_elem_info(handle, info)) < 0) { + snd_ctl_close(handle); + handle = NULL; + return 0; + } + + snd_ctl_elem_info_get_id(info, id); /* FIXME: Remove it when hctl find works ok !!! */ + snd_ctl_elem_value_set_id(control, id); + + snd_ctl_close(handle); + handle = NULL; + + snd_hctl_t *hctl; + snd_hctl_elem_t *elem; + if ((err = snd_hctl_open(&hctl, card.toAscii(), 0)) < 0) { + return 0; + } + if ((err = snd_hctl_load(hctl)) < 0) { + return 0; + } + elem = snd_hctl_find_elem(hctl, id); + if (elem) + volume = vol(elem); + + snd_hctl_close(hctl); + + return (volume/63.0) * 100; +} + +void V4LRadioControl::setVolume(int volume) +{ + + int vol = (volume / 100.0) * 63; // 63 is a headphone max setting + callAmixer("Line DAC Playback Volume", QString().setNum(vol)+QString(",")+QString().setNum(vol)); +} + +bool V4LRadioControl::isMuted() const +{ + return muted; +} + +void V4LRadioControl::setMuted(bool muted) +{ + struct v4l2_control vctrl; + vctrl.id = V4L2_CID_AUDIO_MUTE; + vctrl.value = muted ? 1 : 0; + ioctl(fd, VIDIOC_S_CTRL, &vctrl); +} + +void V4LRadioControl::setupHeadPhone() +{ + QMap settings; + + settings["Jack Function"] = "Headset"; + settings["Left DAC_L1 Mixer HP Switch"] = "off"; + settings["Right DAC_R1 Mixer HP Switch"] = "off"; + settings["Line DAC Playback Switch"] = "on"; + settings["Line DAC Playback Volume"] = "63,63"; // Volume is set to 100% + settings["HPCOM DAC Playback Switch"] = "off"; + settings["Left DAC_L1 Mixer HP Switch"] = "off"; + settings["Left DAC_L1 Mixer Line Switch"] = "on"; + settings["Right DAC_R1 Mixer HP Switch"] = "off"; + settings["Right DAC_R1 Mixer Line Switch"] = "on"; + settings["Speaker Function"] = "Off"; + + settings["Input Select"] = "ADC"; + settings["Left PGA Mixer Line1L Switch"] = "off"; + settings["Right PGA Mixer Line1L Switch"] = "off"; + settings["Right PGA Mixer Line1R Switch"] = "off"; + settings["PGA Capture Volume"] = "0,0"; + + settings["PGA Capture Switch"] = "on"; + + settings["Left PGA Mixer Line2L Switch"] = "on"; + settings["Right PGA Mixer Line2R Switch"] = "on"; + + QMapIterator i(settings); + while (i.hasNext()) { + i.next(); + callAmixer(i.key(), i.value()); + } +} + +void V4LRadioControl::callAmixer(const QString& target, const QString& value) +{ + int err; + long tmp; + unsigned int count; + static snd_ctl_t *handle = NULL; + QString card("hw:0"); + snd_ctl_elem_info_t *info; + snd_ctl_elem_id_t *id; + snd_ctl_elem_value_t *control; + snd_ctl_elem_type_t type; + + snd_ctl_elem_info_alloca(&info); + snd_ctl_elem_id_alloca(&id); + snd_ctl_elem_value_alloca(&control); + snd_ctl_elem_id_set_interface(id, SND_CTL_ELEM_IFACE_MIXER); /* MIXER */ + + // in amixer parse func + // char target[64]; + // e.g. PGA CAPTure Switch + snd_ctl_elem_id_set_name(id, target.toAscii()); + + if (handle == NULL && (err = snd_ctl_open(&handle, card.toAscii(), 0)) < 0) + { + return; + } + + snd_ctl_elem_info_set_id(info, id); + if ((err = snd_ctl_elem_info(handle, info)) < 0) + { + snd_ctl_close(handle); + handle = NULL; + return; + } + + snd_ctl_elem_info_get_id(info, id); /* FIXME: Remove it when hctl find works ok !!! */ + type = snd_ctl_elem_info_get_type(info); + count = snd_ctl_elem_info_get_count(info); + + snd_ctl_elem_value_set_id(control, id); + + tmp = 0; + for (int idx = 0; idx < count && idx < 128; idx++) + { + switch (type) + { + case SND_CTL_ELEM_TYPE_BOOLEAN: + qDebug() << "SND_CTL_ELEM_TYPE_BOOLEAN" << SND_CTL_ELEM_TYPE_BOOLEAN; + if ((value == "on") ||(value == "1")) + { + tmp = 1; + } + snd_ctl_elem_value_set_boolean(control, idx, tmp); + break; + case SND_CTL_ELEM_TYPE_ENUMERATED: + tmp = getEnumItemIndex(handle, info, value); + snd_ctl_elem_value_set_enumerated(control, idx, tmp); + break; + case SND_CTL_ELEM_TYPE_INTEGER: + qDebug() << "SND_CTL_ELEM_TYPE_INTEGER" << SND_CTL_ELEM_TYPE_INTEGER; + tmp = atoi(value.toAscii()); + if (tmp < snd_ctl_elem_info_get_min(info)) + tmp = snd_ctl_elem_info_get_min(info); + else if (tmp > snd_ctl_elem_info_get_max(info)) + tmp = snd_ctl_elem_info_get_max(info); + snd_ctl_elem_value_set_integer(control, idx, tmp); + break; + default: + break; + + } + } + + if ((err = snd_ctl_elem_write(handle, control)) < 0) { + snd_ctl_close(handle); + handle = NULL; + return; + } + + snd_ctl_close(handle); + handle = NULL; +} + + +int V4LRadioControl::getEnumItemIndex(snd_ctl_t *handle, snd_ctl_elem_info_t *info, + const QString &value) +{ + int items, i; + + items = snd_ctl_elem_info_get_items(info); + if (items <= 0) + return -1; + + for (i = 0; i < items; i++) + { + snd_ctl_elem_info_set_item(info, i); + if (snd_ctl_elem_info(handle, info) < 0) + return -1; + QString name = snd_ctl_elem_info_get_item_name(info); + if(name == value) + { + return i; + } + } + return -1; +} + +bool V4LRadioControl::isSearching() const +{ + return scanning; +} + +void V4LRadioControl::cancelSearch() +{ + scanning = false; +} + +void V4LRadioControl::searchForward() +{ + // Scan up + if(scanning) { + scanning = false; + return; + } + scanning = true; + forward = true; +} + +void V4LRadioControl::searchBackward() +{ + // Scan down + if(scanning) { + scanning = false; + return; + } + scanning = true; + forward = false; +} + +void V4LRadioControl::start() +{ +} + +void V4LRadioControl::stop() +{ +} + +QRadioTuner::Error V4LRadioControl::error() const +{ + if(m_error) + return QRadioTuner::OpenError; + + return QRadioTuner::NoError; +} + +QString V4LRadioControl::errorString() const +{ + return QString(); +} + +void V4LRadioControl::search() +{ + int signal = signalStrength(); + if(sig != signal) { + sig = signal; + emit signalStrengthChanged(sig); + } + + if(!scanning) return; + + if (signal > 25) { + cancelSearch(); + return; + } + + if(forward) { + setFrequency(currentFreq+step); + } else { + setFrequency(currentFreq-step); + } + emit signalStrengthChanged(signalStrength()); +} + +bool V4LRadioControl::initRadio() +{ + v4l2_tuner tuner; + v4l2_frequency freq; + v4l2_capability cap; + + low = false; + available = false; + freqMin = freqMax = currentFreq = 0; + + fd = ::open("/dev/radio1", O_RDWR); + + if(fd != -1) { + // Capabilites + memset(&cap, 0, sizeof(cap)); + if(::ioctl(fd, VIDIOC_QUERYCAP, &cap ) >= 0) { + if(((cap.capabilities & V4L2_CAP_RADIO) == 0) && ((cap.capabilities & V4L2_CAP_AUDIO) == 0)) + available = true; + } + + tuner.index = 0; + + if (ioctl(fd, VIDIOC_G_TUNER, &tuner) < 0) { + return false; + } + + if (tuner.type != V4L2_TUNER_RADIO) + return false; + + if ((tuner.capability & V4L2_TUNER_CAP_LOW) != 0) { + // Units are 1/16th of a kHz. + low = true; + } + + if(low) { + freqMin = tuner.rangelow * 62.5; + freqMax = tuner.rangehigh * 62.5; + } else { + freqMin = tuner.rangelow * 62500; + freqMax = tuner.rangehigh * 62500; + } + + // frequency + memset(&freq, 0, sizeof(freq)); + + if(::ioctl(fd, VIDIOC_G_FREQUENCY, &freq) >= 0) { + if (((int)freq.frequency) != -1) { // -1 means not set. + if(low) + currentFreq = freq.frequency * 62.5; + else + currentFreq = freq.frequency * 62500; + } + } + + // stereo + bool stereo = false; + memset(&tuner, 0, sizeof(tuner)); + if (ioctl(fd, VIDIOC_G_TUNER, &tuner) >= 0) { + if((tuner.rxsubchans & V4L2_TUNER_SUB_STEREO) != 0) + stereo = true; + } + + return true; + } + + m_error = true; + emit error(); + + return false; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/radio/v4lradiocontrol_maemo5.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/multimedia/v4l/radio/v4lradiocontrol_maemo5.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,141 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 V4LRADIOCONTROL_H +#define V4LRADIOCONTROL_H + +#include +#include + +#include + +#include +#include + +#include + +QTM_USE_NAMESPACE + +class V4LRadioService; + +class V4LRadioControl : public QRadioTunerControl +{ + Q_OBJECT +public: + V4LRadioControl(QObject *parent = 0); + ~V4LRadioControl(); + + bool isAvailable() const; + QtMedia::AvailabilityError availabilityError() const; + + QRadioTuner::State state() const; + + QRadioTuner::Band band() const; + void setBand(QRadioTuner::Band b); + bool isBandSupported(QRadioTuner::Band b) const; + + int frequency() const; + int frequencyStep(QRadioTuner::Band b) const; + QPair frequencyRange(QRadioTuner::Band b) const; + void setFrequency(int frequency); + + bool isStereo() const; + QRadioTuner::StereoMode stereoMode() const; + void setStereoMode(QRadioTuner::StereoMode mode); + + int signalStrength() const; + + int volume() const; + void setVolume(int volume); + + bool isMuted() const; + void setMuted(bool muted); + + bool isSearching() const; + void cancelSearch(); + + void searchForward(); + void searchBackward(); + + void start(); + void stop(); + + QRadioTuner::Error error() const; + QString errorString() const; + +private slots: + void search(); + void enableFMRX(); + +private: + bool initRadio(); + void setupHeadPhone(); + bool createGstPipeline(); + void callAmixer(const QString& target, const QString& value); + int getEnumItemIndex(snd_ctl_t *handle, snd_ctl_elem_info_t *info, const QString &value); + int vol(snd_hctl_elem_t *elem) const; + +private: + int fd; + + bool m_error; + bool muted; + bool stereo; + bool low; + bool available; + int tuners; + int step; + int sig; + bool scanning; + bool forward; + QTimer* timer; + QTimer* tickTimer; + QRadioTuner::Band currentBand; + qint64 freqMin; + qint64 freqMax; + qint64 currentFreq; + + GstElement *pipeline; + + QDBusInterface* FMRXEnablerIFace; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/v4l.pro --- a/qtmobility/plugins/multimedia/v4l/v4l.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/v4l/v4l.pro Mon May 03 13:18:40 2010 +0300 @@ -17,7 +17,6 @@ SOURCES += v4lserviceplugin.cpp include(radio/radio.pri) -include(camera/camera.pri) target.path=$$QT_MOBILITY_PREFIX/plugins/mediaservice INSTALLS+=target diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/v4l/v4lserviceplugin.cpp --- a/qtmobility/plugins/multimedia/v4l/v4lserviceplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/v4l/v4lserviceplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,11 +40,11 @@ ****************************************************************************/ #include +#include #include -#include +#include #include "v4lserviceplugin.h" -#include "v4lcameraservice.h" #include "v4lradioservice.h" #include @@ -53,8 +53,7 @@ QStringList V4LServicePlugin::keys() const { return QStringList() << - QLatin1String(Q_MEDIASERVICE_RADIO) << - QLatin1String(Q_MEDIASERVICE_CAMERA); + QLatin1String(Q_MEDIASERVICE_RADIO); } QMediaService* V4LServicePlugin::create(QString const& key) @@ -62,10 +61,6 @@ if (key == QLatin1String(Q_MEDIASERVICE_RADIO)) return new V4LRadioService; - if (key == QLatin1String(Q_MEDIASERVICE_CAMERA)) - return new V4LCameraService; - - //qDebug() << "unsupported key:" << key; return 0; } @@ -76,61 +71,14 @@ QList V4LServicePlugin::devices(const QByteArray &service) const { - if (service == Q_MEDIASERVICE_CAMERA) { - if (m_cameraDevices.isEmpty()) - updateDevices(); - - return m_cameraDevices; - } - return QList(); } QString V4LServicePlugin::deviceDescription(const QByteArray &service, const QByteArray &device) { - if (service == Q_MEDIASERVICE_CAMERA) { - if (m_cameraDevices.isEmpty()) - updateDevices(); - - for (int i=0; i devices(const QByteArray &service) const; QString deviceDescription(const QByteArray &service, const QByteArray &device); - -private: - void updateDevices() const; - - mutable QList m_cameraDevices; - mutable QStringList m_cameraDescriptions; }; #endif // V4LSERVICEPLUGIN_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/wmp/qevrvideooverlay.cpp --- a/qtmobility/plugins/multimedia/wmp/qevrvideooverlay.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/wmp/qevrvideooverlay.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,6 +42,7 @@ #include "qevrvideooverlay.h" #include +#include QEvrVideoOverlay::QEvrVideoOverlay(HINSTANCE evrHwnd) : m_ref(1) @@ -49,7 +50,7 @@ , ptrMFCreateVideoPresenter(0) , m_presenter(0) , m_displayControl(0) - , m_aspectRatioMode(QVideoWidget::KeepAspectRatio) + , m_aspectRatioMode(Qt::KeepAspectRatio) , m_winId(0) , m_fullScreen(0) { @@ -69,17 +70,16 @@ void QEvrVideoOverlay::setWinId(WId id) { + m_winId = id; + if (m_displayControl) { m_displayControl->SetVideoWindow(id); - - QRect rect = m_displayRect; - - RECT displayRect = { rect.left(), rect.top(), rect.right(), rect.bottom() }; + m_displayControl->SetAspectRatioMode(m_aspectRatioMode == Qt::KeepAspectRatio + ? MFVideoARMode_PreservePicture + : MFVideoARMode_None); - m_displayControl->SetVideoPosition(0, &displayRect); + setDisplayRect(m_displayRect); } - - m_winId = id; } QRect QEvrVideoOverlay::displayRect() const @@ -92,7 +92,27 @@ if (m_displayControl) { RECT displayRect = { rect.left(), rect.top(), rect.right(), rect.bottom() }; - m_displayControl->SetVideoPosition(0, &displayRect); + if (m_aspectRatioMode == Qt::KeepAspectRatioByExpanding) { + SIZE size; + m_displayControl->GetNativeVideoSize(&size, 0); + + QSize clippedSize = rect.size(); + clippedSize.scale(size.cx, size.cy, Qt::KeepAspectRatio); + + long x = (size.cx - clippedSize.width()) / 2; + long y = (size.cy - clippedSize.height()) / 2; + + MFVideoNormalizedRect sourceRect = + { + float(x) / size.cx, + float(y) / size.cy, + float(x + clippedSize.width()) / size.cx, + float(y + clippedSize.height()) / size.cy + }; + m_displayControl->SetVideoPosition(&sourceRect, &displayRect); + } else { + m_displayControl->SetVideoPosition(0, &displayRect); + } } m_displayRect = rect; @@ -119,29 +139,21 @@ } } -QVideoWidget::AspectRatioMode QEvrVideoOverlay::aspectRatioMode() const +Qt::AspectRatioMode QEvrVideoOverlay::aspectRatioMode() const { return m_aspectRatioMode; } -void QEvrVideoOverlay::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QEvrVideoOverlay::setAspectRatioMode(Qt::AspectRatioMode mode) { - switch (mode) { - case QVideoWidget::KeepAspectRatio: - if (m_displayControl) - m_displayControl->SetAspectRatioMode(MFVideoARMode_PreservePicture); + m_aspectRatioMode = mode; - m_aspectRatioMode = mode; - break; - case QVideoWidget::IgnoreAspectRatio: - if (m_displayControl) - m_displayControl->SetAspectRatioMode(MFVideoARMode_None); - - m_aspectRatioMode = mode; - break; - default: - break; - } + if (m_displayControl) { + m_displayControl->SetAspectRatioMode(mode == Qt::KeepAspectRatio + ? MFVideoARMode_PreservePicture + : MFVideoARMode_None); + setDisplayRect(m_displayRect); + } } void QEvrVideoOverlay::repaint() @@ -194,15 +206,25 @@ m_displayControl = control; if (m_displayControl) { - QRect rect = displayRect(); - RECT displayRect = { rect.left(), rect.top(), rect.right(), rect.bottom() }; + m_displayControl->AddRef(); + m_displayControl->SetVideoWindow(m_winId); + m_displayControl->SetAspectRatioMode(m_aspectRatioMode == Qt::KeepAspectRatio + ? MFVideoARMode_PreservePicture + : MFVideoARMode_None); - m_displayControl->AddRef(); - m_displayControl->SetVideoWindow(winId()); - m_displayControl->SetVideoPosition(0, &displayRect); + setDisplayRect(m_displayRect); } } +void QEvrVideoOverlay::openStateChanged(long state) +{ + if (state == wmposMediaOpen) { + setDisplayRect(m_displayRect); + + emit nativeSizeChanged(); + } +}; + // IUnknown HRESULT QEvrVideoOverlay::QueryInterface(REFIID riid, void **object) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/wmp/qevrvideooverlay.h --- a/qtmobility/plugins/multimedia/wmp/qevrvideooverlay.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/wmp/qevrvideooverlay.h Mon May 03 13:18:40 2010 +0300 @@ -68,8 +68,8 @@ QSize nativeSize() const; - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); void repaint(); @@ -97,6 +97,9 @@ HRESULT STDMETHODCALLTYPE ShutdownObject(); HRESULT STDMETHODCALLTYPE DetachObject(); +public Q_SLOTS: + void openStateChanged(long state); + private: typedef HRESULT (WINAPI *PtrMFCreateVideoPresenter)(IUnknown*, REFIID, REFIID, void**); @@ -105,7 +108,7 @@ PtrMFCreateVideoPresenter ptrMFCreateVideoPresenter; IMFVideoPresenter *m_presenter; IMFVideoDisplayControl *m_displayControl; - QVideoWidget::AspectRatioMode m_aspectRatioMode; + Qt::AspectRatioMode m_aspectRatioMode; QSize m_sizeHint; QRect m_displayRect; WId m_winId; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/wmp/qwmpplayercontrol.cpp --- a/qtmobility/plugins/multimedia/wmp/qwmpplayercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/wmp/qwmpplayercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -68,6 +68,9 @@ m_player->get_settings(&m_settings); m_player->get_network(&m_network); + if (m_settings) + m_settings->put_autoStart(FALSE); + WMPPlayState state = wmppsUndefined; if (m_player->get_playState(&state) == S_OK) playStateChangeEvent(state); @@ -425,7 +428,7 @@ void QWmpPlayerControl::setUrl(const QUrl &url) { - if (m_player) { + if (url != QWmpPlayerControl::url() && m_player) { BSTR string = SysAllocString(reinterpret_cast(url.toString().unicode())); m_player->put_URL(string); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/wmp/qwmpplayerservice.cpp --- a/qtmobility/plugins/multimedia/wmp/qwmpplayerservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/wmp/qwmpplayerservice.cpp Mon May 03 13:18:40 2010 +0300 @@ -85,6 +85,8 @@ reinterpret_cast(&m_player))) != S_OK) { qWarning("failed to create media player control, %x: %s", hr, qwmp_error_string(hr)); } else { + m_events = new QWmpEvents(m_player); + if ((hr = m_player->QueryInterface( __uuidof(IOleObject), reinterpret_cast(&m_oleObject))) != S_OK) { qWarning("No IOleObject interface, %x: %s", hr, qwmp_error_string(hr)); @@ -103,9 +105,13 @@ IWMPVideoRenderConfig *config = 0; if (m_player->QueryInterface( __uuidof(IWMPVideoRenderConfig), reinterpret_cast(&config)) == S_OK) { - if (HINSTANCE evrHwnd = LoadLibrary(L"evr")) + if (HINSTANCE evrHwnd = LoadLibrary(L"evr")) { m_evrVideoOverlay = new QEvrVideoOverlay(evrHwnd); + connect(m_events, SIGNAL(OpenStateChange(long)), + m_evrVideoOverlay, SLOT(openStateChanged(long))); + } + config->Release(); } @@ -118,7 +124,6 @@ } } - m_events = new QWmpEvents(m_player); m_metaData = new QWmpMetaData(m_player, m_events); m_playlist = new QWmpPlaylistControl(m_player, m_events); m_control = new QWmpPlayerControl(m_player, m_events); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/wmp/qwmpvideooverlay.cpp --- a/qtmobility/plugins/multimedia/wmp/qwmpvideooverlay.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/wmp/qwmpvideooverlay.cpp Mon May 03 13:18:40 2010 +0300 @@ -48,7 +48,7 @@ , m_player(player) , m_object(object) , m_inPlaceObject(0) - , m_aspectRatioMode(QVideoWidget::KeepAspectRatio) + , m_aspectRatioMode(Qt::KeepAspectRatio) , m_enabled(false) { HRESULT hr; @@ -120,8 +120,27 @@ m_object->SetExtent(DVASPECT_CONTENT, &hmSize); - RECT rcPos = { rect.left(), rect.top(), rect.right(), rect.bottom() }; - m_inPlaceObject->SetObjectRects(&rcPos, &rcPos); + RECT rcClip = { rect.left(), rect.top(), rect.right(), rect.bottom() }; + + if (m_aspectRatioMode == Qt::KeepAspectRatioByExpanding) { + QSize size = m_sizeHint; + size.scale(rect.width(), rect.height(), Qt::KeepAspectRatioByExpanding); + + QRect positionRect(QPoint(0, 0), size); + positionRect.moveCenter(rect.center()); + + RECT rcPos = + { + positionRect.left(), + positionRect.top(), + positionRect.right(), + positionRect.bottom() + }; + + m_inPlaceObject->SetObjectRects(&rcPos, &rcClip); + } else { + m_inPlaceObject->SetObjectRects(&rcClip, &rcClip); + } } m_displayRect = rect; @@ -153,27 +172,18 @@ } } -QVideoWidget::AspectRatioMode QWmpVideoOverlay::aspectRatioMode() const +Qt::AspectRatioMode QWmpVideoOverlay::aspectRatioMode() const { return m_aspectRatioMode; } -void QWmpVideoOverlay::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QWmpVideoOverlay::setAspectRatioMode(Qt::AspectRatioMode mode) { - switch (mode) { - case QVideoWidget::KeepAspectRatio: - m_player->put_stretchToFit(FALSE); + m_aspectRatioMode = mode; - m_aspectRatioMode = mode; - break; - case QVideoWidget::IgnoreAspectRatio: - m_player->put_stretchToFit(TRUE); + m_player->put_stretchToFit(mode != Qt::KeepAspectRatio); - m_aspectRatioMode = mode; - break; - default: - break; - } + setDisplayRect(m_displayRect); } void QWmpVideoOverlay::repaint() @@ -283,10 +293,30 @@ QueryInterface(IID_IOleInPlaceUIWindow, reinterpret_cast(ppDoc)); if (m_enabled) { - QRect rect = displayRect(); + SetRect(lprcClipRect, + m_displayRect.left(), + m_displayRect.top(), + m_displayRect.right(), + m_displayRect.bottom()); - SetRect(lprcPosRect, rect.left(), rect.top(), rect.right(), rect.bottom()); - SetRect(lprcClipRect, rect.left(), rect.top(), rect.right(), rect.bottom()); + if (m_aspectRatioMode == Qt::KeepAspectRatioByExpanding) { + QSize size = m_sizeHint; + size.scale( + m_displayRect.width(), + m_displayRect.height(), + Qt::KeepAspectRatioByExpanding); + + QRect positionRect(QPoint(0, 0), size); + positionRect.moveCenter(m_displayRect.center()); + + SetRect(lprcPosRect, + positionRect.left(), + positionRect.top(), + positionRect.right(), + positionRect.bottom()); + } else { + *lprcPosRect = *lprcClipRect; + } } else { SetRectEmpty(lprcPosRect); SetRectEmpty(lprcClipRect); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/multimedia/wmp/qwmpvideooverlay.h --- a/qtmobility/plugins/multimedia/wmp/qwmpvideooverlay.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/multimedia/wmp/qwmpvideooverlay.h Mon May 03 13:18:40 2010 +0300 @@ -75,8 +75,8 @@ QSize nativeSize() const; void setNativeSize(const QSize &size); - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); int brightness() const; void setBrightness(int brightness); @@ -137,7 +137,7 @@ IOleObject *m_object; IOleInPlaceObject *m_inPlaceObject; WId m_winId; - QVideoWidget::AspectRatioMode m_aspectRatioMode; + Qt::AspectRatioMode m_aspectRatioMode; QSize m_sizeHint; QRect m_displayRect; bool m_fullScreen; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/dummy/dummyaccelerometer.cpp --- a/qtmobility/plugins/sensors/dummy/dummyaccelerometer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/dummy/dummyaccelerometer.cpp Mon May 03 13:18:40 2010 +0300 @@ -49,6 +49,8 @@ : dummycommon(sensor) { setReading(&m_reading); + addDataRate(100, 100); // 100Hz + sensor->setDataRate(100); // default is 100Hz } void dummyaccelerometer::poll() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/dummy/dummycommon.cpp --- a/qtmobility/plugins/sensors/dummy/dummycommon.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/dummy/dummycommon.cpp Mon May 03 13:18:40 2010 +0300 @@ -53,11 +53,6 @@ : QSensorBackend(sensor) , m_timerid(0) { - setSupportedUpdatePolicies(QSensor::OccasionalUpdates | - QSensor::InfrequentUpdates | - QSensor::FrequentUpdates | - QSensor::TimedUpdates | - QSensor::PolledUpdates); } void dummycommon::start() @@ -65,26 +60,9 @@ if (m_timerid) return; - int interval = m_sensor->updateInterval(); - - switch (m_sensor->updatePolicy()) { - case QSensor::OccasionalUpdates: - interval = 5000; - break; - case QSensor::InfrequentUpdates: + int interval = 1000 / sensor()->dataRate(); + if (interval < 0) interval = 1000; - break; - case QSensor::Undefined: /* fall through */ - case QSensor::FrequentUpdates: - interval = 100; - break; - case QSensor::TimedUpdates: - // already set - break; - default: - interval = 0; - break; - } if (interval) m_timerid = startTimer(interval); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/dummy/dummycommon.h --- a/qtmobility/plugins/sensors/dummy/dummycommon.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/dummy/dummycommon.h Mon May 03 13:18:40 2010 +0300 @@ -53,6 +53,7 @@ void start(); void stop(); + virtual void poll() = 0; void timerEvent(QTimerEvent * /*event*/); private: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/dummy/plugin_commonU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/dummy/plugin_commonU.def Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,16 @@ +; ============================================================================== +; Generated by qmake (2.01a) (Qt 4.6.2) on: 2010-03-11T09:27:57 +; This file is generated by qmake and should not be modified by the +; user. +; Name : plugin_commonU.def +; Part of : sensors_dummy +; Description : Fixes common plugin symbols to known ordinals +; Version : +; +; ============================================================================== + + +EXPORTS + qt_plugin_query_verification_data @ 1 NONAME + qt_plugin_instance @ 2 NONAME + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/generic/generic.pri --- a/qtmobility/plugins/sensors/generic/generic.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/generic/generic.pri Mon May 03 13:18:40 2010 +0300 @@ -1,5 +1,7 @@ HEADERS += genericorientationsensor.h\ + genericrotationsensor.h SOURCES += genericorientationsensor.cpp\ main.cpp\ + genericrotationsensor.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/generic/generic.pro --- a/qtmobility/plugins/sensors/generic/generic.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/generic/generic.pro Mon May 03 13:18:40 2010 +0300 @@ -7,7 +7,16 @@ TEMPLATE = lib CONFIG += plugin TARGET = $$qtLibraryTarget(sensors_generic) -symbian:TARGET.EPOCALLOWDLLDATA = 1 + +symbian { + TARGET.EPOCALLOWDLLDATA = 1 + TARGET.UID3 = 0x2002BFC3 + TARGET.CAPABILITY = ALL -TCB + + pluginDep.sources = $${TARGET}.dll + pluginDep.path = $${QT_PLUGINS_BASE_DIR}/sensors + DEPLOYMENT += pluginDep +} QT=core CONFIG+=mobility diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/generic/genericorientationsensor.cpp --- a/qtmobility/plugins/sensors/generic/genericorientationsensor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/generic/genericorientationsensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -48,16 +48,21 @@ : QSensorBackend(sensor) { accelerometer = new QAccelerometer(this); - accelerometer->setUpdatePolicy(QSensor::FrequentUpdates); accelerometer->addFilter(this); + accelerometer->connectToBackend(); - setSupportedUpdatePolicies(QSensor::OnChangeUpdates); setReading(&m_reading); + setDataRates(accelerometer); } void genericorientationsensor::start() { + accelerometer->setDataRate(sensor()->dataRate()); accelerometer->start(); + if (!accelerometer->isActive()) + sensorStopped(); + if (accelerometer->isBusy()) + sensorBusy(); } void genericorientationsensor::stop() @@ -65,28 +70,22 @@ accelerometer->stop(); } -void genericorientationsensor::poll() -{ - accelerometer->poll(); -} - bool genericorientationsensor::filter(QAccelerometerReading *reading) { QOrientationReading::Orientation o = m_reading.orientation(); - if (reading->x() < -7.35) { - o = QOrientationReading::LeftUp; - } else if (reading->y() < -7.35) { - o = QOrientationReading::BottomUp; - } else if (reading->x() > 7.35) { + if (reading->y() > 7.35) + o = QOrientationReading::TopUp; + else if (reading->y() < -7.35) + o = QOrientationReading::TopDown; + else if (reading->x() > 7.35) o = QOrientationReading::RightUp; - } else if (reading->y() > 7.35) { - o = QOrientationReading::BottomDown; - } else if (reading->z() > 7.35) { + else if (reading->x() < -7.35) + o = QOrientationReading::LeftUp; + else if (reading->z() > 7.35) o = QOrientationReading::FaceUp; - } else if (reading->z() < -7.35) { + else if (reading->z() < -7.35) o = QOrientationReading::FaceDown; - } if (o != m_reading.orientation()) { m_reading.setTimestamp(reading->timestamp()); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/generic/genericorientationsensor.h --- a/qtmobility/plugins/sensors/generic/genericorientationsensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/generic/genericorientationsensor.h Mon May 03 13:18:40 2010 +0300 @@ -57,7 +57,6 @@ void start(); void stop(); - void poll(); bool filter(QAccelerometerReading *reading); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/generic/genericrotationsensor.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/generic/genericrotationsensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,115 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "genericrotationsensor.h" +#include +#include + +#define RADIANS_TO_DEGREES 57.2957795 + +const char *genericrotationsensor::id("generic.rotation"); + +genericrotationsensor::genericrotationsensor(QSensor *sensor) + : QSensorBackend(sensor) +{ + accelerometer = new QAccelerometer(this); + accelerometer->addFilter(this); + accelerometer->connectToBackend(); + + setReading(&m_reading); + setDataRates(accelerometer); + + sensor->setProperty("hasZ", false); +} + +void genericrotationsensor::start() +{ + accelerometer->setDataRate(sensor()->dataRate()); + accelerometer->start(); + if (!accelerometer->isActive()) + sensorStopped(); + if (accelerometer->isBusy()) + sensorBusy(); +} + +void genericrotationsensor::stop() +{ + accelerometer->stop(); +} + +bool genericrotationsensor::filter(QSensorReading *reading) +{ + QAccelerometerReading *ar = qobject_cast(reading); + qreal pitch = 0; + qreal roll = 0; + + qreal x = ar->x(); + qreal y = ar->y(); + qreal z = ar->z(); + + // Note that the formula used come from this document: + // http://www.freescale.com/files/sensors/doc/app_note/AN3461.pdf + pitch = qAtan(y / sqrt(x*x + z*z)) * RADIANS_TO_DEGREES; + roll = qAtan(x / sqrt(y*y + z*z)) * RADIANS_TO_DEGREES; + // Roll is a left-handed rotation but we need right-handed rotation + roll = -roll; + + // We need to fix up roll to the (-180,180] range required. + // Check for negative theta values and apply an offset as required. + // Note that theta is defined as the angle of the Z axis relative + // to gravity (see referenced document). It's negative when the + // face of the device points downward. + qreal theta = qAtan(sqrt(x*x + y*y) / z) * RADIANS_TO_DEGREES; + if (theta < 0) { + if (roll > 0) + roll = 180 - roll; + else + roll = -180 - roll; + } + + m_reading.setTimestamp(ar->timestamp()); + m_reading.setX(pitch); + m_reading.setY(roll); + m_reading.setZ(0); + newReadingAvailable(); + return false; +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/generic/genericrotationsensor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/generic/genericrotationsensor.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,71 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 GENERICROTATIONSENSOR_H +#define GENERICROTATIONSENSOR_H + +#include +#include +#include +#include + +QTM_USE_NAMESPACE + +class genericrotationsensor : public QSensorBackend, public QSensorFilter +{ +public: + static const char *id; + + genericrotationsensor(QSensor *sensor); + + void start(); + void stop(); + + bool filter(QSensorReading *reading); + +private: + QRotationReading m_reading; + QAccelerometer *accelerometer; + QMagnetometer *magnetometer; +}; + +#endif + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/generic/main.cpp --- a/qtmobility/plugins/sensors/generic/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/generic/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,6 +40,7 @@ ****************************************************************************/ #include "genericorientationsensor.h" +#include "genericrotationsensor.h" #include #include #include @@ -55,6 +56,7 @@ { qDebug() << "loaded the Generic plugin"; QSensorManager::registerBackend(QOrientationSensor::type, genericorientationsensor::id, this); + QSensorManager::registerBackend(QRotationSensor::type, genericrotationsensor::id, this); } QSensorBackend *createBackend(QSensor *sensor) @@ -66,6 +68,13 @@ qDebug() << "can't make" << sensor->identifier() << "because no" << QAccelerometer::type << "sensors exist"; } + if (sensor->identifier() == genericrotationsensor::id) { + // Can't make this unless we have an accelerometer + if (!QSensor::defaultSensorForType(QAccelerometer::type).isEmpty()) + return new genericrotationsensor(sensor); + qDebug() << "can't make" << sensor->identifier() << "because no" << QAccelerometer::type << "sensors exist"; + } + return 0; } }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/generic/plugin_commonU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/generic/plugin_commonU.def Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,16 @@ +; ============================================================================== +; Generated by qmake (2.01a) (Qt 4.6.2) on: 2010-03-19T08:14:19 +; This file is generated by qmake and should not be modified by the +; user. +; Name : plugin_commonU.def +; Part of : sensors_generic +; Description : Fixes common plugin symbols to known ordinals +; Version : +; +; ============================================================================== + + +EXPORTS + qt_plugin_query_verification_data @ 1 NONAME + qt_plugin_instance @ 2 NONAME + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/n900/main.cpp --- a/qtmobility/plugins/sensors/n900/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/n900/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,7 +45,6 @@ #include #include #include -#include #include class n900SensorPlugin : public QObject, public QSensorPluginInterface, public QSensorBackendFactory @@ -63,23 +62,14 @@ QSensorBackend *createBackend(QSensor *sensor) { - if (sensor->identifier() == n900accelerometer::id) { - if (QFile::exists(QLatin1String(n900accelerometer::filename))) - return new n900accelerometer(sensor); - qDebug() << "can't make" << sensor->identifier() << "because" << n900accelerometer::filename << "doesn't exist"; - } + if (sensor->identifier() == n900accelerometer::id) + return new n900accelerometer(sensor); - if (sensor->identifier() == n900lightsensor::id) { - if (QFile::exists(QLatin1String(n900lightsensor::filename))) - return new n900lightsensor(sensor); - qDebug() << "can't make" << sensor->identifier() << "because" << n900lightsensor::filename << "doesn't exist"; - } + if (sensor->identifier() == n900lightsensor::id) + return new n900lightsensor(sensor); - if (sensor->identifier() == n900proximitysensor::id) { - if (QFile::exists(QLatin1String(n900proximitysensor::filename))) - return new n900proximitysensor(sensor); - qDebug() << "can't make" << sensor->identifier() << "because" << n900proximitysensor::filename << "doesn't exist"; - } + if (sensor->identifier() == n900proximitysensor::id) + return new n900proximitysensor(sensor); return 0; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/n900/n900.pro --- a/qtmobility/plugins/sensors/n900/n900.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/n900/n900.pro Mon May 03 13:18:40 2010 +0300 @@ -18,3 +18,8 @@ target.path = $$SOURCE_DIR/plugins/sensors INSTALLS += target +BUILD_ALL_PLUGINS=$$(BUILD_ALL_PLUGINS) +equals(BUILD_ALL_PLUGINS,1) { + DEFINES+=BUILD_ALL_PLUGINS +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/n900/n900accelerometer.cpp --- a/qtmobility/plugins/sensors/n900/n900accelerometer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/n900/n900accelerometer.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,16 +40,56 @@ ****************************************************************************/ #include "n900accelerometer.h" +#include #include #include +#include const char *n900accelerometer::id("n900.accelerometer"); const char *n900accelerometer::filename("/sys/class/i2c-adapter/i2c-3/3-001d/coord"); +const char *n900accelerometer::range("/sys/class/i2c-adapter/i2c-3/3-001d/scale"); +const char *n900accelerometer::rate("/sys/class/i2c-adapter/i2c-3/3-001d/rate"); n900accelerometer::n900accelerometer(QSensor *sensor) : n900filebasedsensor(sensor) { setReading(&m_reading); + // Details derived from the kernel driver + addDataRate(100, 100); // 100Hz + addDataRate(400, 400); // 400Hz + sensor->setDataRate(100); // default is 100Hz + addOutputRange(-22.418, 22.418, 0.17651); // 2G + addOutputRange(-89.672, 89.672, 0.70608); // 8G + setDescription(QLatin1String("lis302dl")); +} + +void n900accelerometer::start() +{ + FILE *fd; + + if (!QFile::exists(QLatin1String(filename))) + goto error; + + // Configure the range + fd = fopen(range, "w"); + if (!fd) goto error; + if (sensor()->outputRange() == 0) + fprintf(fd, "normal\n"); + else + fprintf(fd, "full\n"); + fclose(fd); + + // Configure the rate + fd = fopen(rate, "w"); + if (!fd) goto error; + fprintf(fd, "%d\n", sensor()->dataRate()); + fclose(fd); + + n900filebasedsensor::start(); + return; + +error: + sensorStopped(); } void n900accelerometer::poll() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/n900/n900accelerometer.h --- a/qtmobility/plugins/sensors/n900/n900accelerometer.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/n900/n900accelerometer.h Mon May 03 13:18:40 2010 +0300 @@ -52,10 +52,13 @@ public: static const char *id; static const char *filename; + static const char *range; + static const char *rate; n900accelerometer(QSensor *sensor); void poll(); + void start(); private: QAccelerometerReading m_reading; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/n900/n900filebasedsensor.cpp --- a/qtmobility/plugins/sensors/n900/n900filebasedsensor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/n900/n900filebasedsensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,11 +45,10 @@ : QSensorBackend(sensor) , m_timerid(0) { - setSupportedUpdatePolicies(QSensor::OccasionalUpdates | - QSensor::InfrequentUpdates | - QSensor::FrequentUpdates | - QSensor::TimedUpdates | - QSensor::PolledUpdates); +} + +n900filebasedsensor::~n900filebasedsensor() +{ } void n900filebasedsensor::start() @@ -57,26 +56,14 @@ if (m_timerid) return; - int interval = m_sensor->updateInterval(); + if (sensor()->dataRate() == 0) { + sensorStopped(); + return; + } - switch (m_sensor->updatePolicy()) { - case QSensor::OccasionalUpdates: - interval = 5000; - break; - case QSensor::InfrequentUpdates: + int interval = 1000 / sensor()->dataRate(); + if (interval < 0) interval = 1000; - break; - case QSensor::Undefined: /* fall through */ - case QSensor::FrequentUpdates: - interval = 100; - break; - case QSensor::TimedUpdates: - // already set - break; - default: - interval = 0; - break; - } if (interval) m_timerid = startTimer(interval); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/n900/n900filebasedsensor.h --- a/qtmobility/plugins/sensors/n900/n900filebasedsensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/n900/n900filebasedsensor.h Mon May 03 13:18:40 2010 +0300 @@ -50,9 +50,11 @@ { public: n900filebasedsensor(QSensor *sensor); + virtual ~n900filebasedsensor(); - void start(); - void stop(); + virtual void start(); + virtual void stop(); + virtual void poll() = 0; void timerEvent(QTimerEvent * /*event*/); private: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/n900/n900lightsensor.cpp --- a/qtmobility/plugins/sensors/n900/n900lightsensor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/n900/n900lightsensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,6 +40,7 @@ ****************************************************************************/ #include "n900lightsensor.h" +#include #include #include @@ -50,8 +51,65 @@ : n900filebasedsensor(sensor) { setReading(&m_reading); + // Sensor takes 12-400ms to complete one reading and is triggered by + // a read of the /sys file (no interrupt/timing loop/etc. is used). + // Since no continuous operation is possible, don't set a data rate. + addDataRate(2, 2); // Close enough to 2 Hz + sensor->setDataRate(2); + setDescription(QLatin1String("tsl2563")); } +void n900lightsensor::start() +{ + if (!QFile::exists(QLatin1String(filename))) + goto error; + + n900filebasedsensor::start(); + return; + +error: + sensorStopped(); +} + +struct lux_limit { + int min; + int max; +}; + +// Defines the min and max lux values that a given level has. +// These are used to add histeresis to the sensor. +// If the previous level is below a level, the lux must be at or above the minimum. +// If the previous level is above a level, the lux muyt be at or below the maximum. +static lux_limit limits[] = { + { 0, 0 }, // Undefined (not used) + { 0, 5 }, // Dark + { 10, 50 }, // Twilight + { 100, 200 }, // Light + { 500, 2000 }, // Bright + { 5000, 0 } // Sunny +}; + +#if 0 +// Used for debugging +static QString light_level(int level) +{ + switch (level) { + case 1: + return QLatin1String("Dark"); + case 2: + return QLatin1String("Twilight"); + case 3: + return QLatin1String("Light"); + case 4: + return QLatin1String("Bright"); + case 5: + return QLatin1String("Sunny"); + default: + return QLatin1String("Undefined"); + } +} +#endif + void n900lightsensor::poll() { FILE *fd = fopen(filename, "r"); @@ -61,21 +119,37 @@ fclose(fd); if (rs != 1) return; - QAmbientLightReading::LightLevel lightLevel = QAmbientLightReading::Undefined; - if (lux < 10) - lightLevel = QAmbientLightReading::Dark; - else if (lux < 50) - lightLevel = QAmbientLightReading::Twilight; - else if (lux < 100) - lightLevel = QAmbientLightReading::Light; - else if (lux < 150) - lightLevel = QAmbientLightReading::Bright; - else - lightLevel = QAmbientLightReading::Sunny; + // It's unweildly dealing with these constants so make some + // local aliases that are shorter. This makes the code below + // much easier to read. + enum { + Undefined = QAmbientLightReading::Undefined, + Dark = QAmbientLightReading::Dark, + Twilight = QAmbientLightReading::Twilight, + Light = QAmbientLightReading::Light, + Bright = QAmbientLightReading::Bright, + Sunny = QAmbientLightReading::Sunny + }; - m_reading.setTimestamp(clock()); - m_reading.setLightLevel(lightLevel); + int lightLevel = m_reading.lightLevel(); + // Check for change direction to allow for histeresis + if (lightLevel < Sunny && lux >= limits[Sunny ].min) lightLevel = Sunny; + else if (lightLevel < Bright && lux >= limits[Bright ].min) lightLevel = Bright; + else if (lightLevel < Light && lux >= limits[Light ].min) lightLevel = Light; + else if (lightLevel < Twilight && lux >= limits[Twilight].min) lightLevel = Twilight; + else if (lightLevel < Dark && lux >= limits[Dark ].min) lightLevel = Dark; + else if (lightLevel > Dark && lux <= limits[Dark ].max) lightLevel = Dark; + else if (lightLevel > Twilight && lux <= limits[Twilight].max) lightLevel = Twilight; + else if (lightLevel > Light && lux <= limits[Light ].max) lightLevel = Light; + else if (lightLevel > Bright && lux <= limits[Bright ].max) lightLevel = Bright; - newReadingAvailable(); + //qDebug() << "lightLevel" << light_level(lightLevel) << "lux" << lux; + + if (static_cast(m_reading.lightLevel()) != lightLevel) { + m_reading.setTimestamp(clock()); + m_reading.setLightLevel(static_cast(lightLevel)); + + newReadingAvailable(); + } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/n900/n900lightsensor.h --- a/qtmobility/plugins/sensors/n900/n900lightsensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/n900/n900lightsensor.h Mon May 03 13:18:40 2010 +0300 @@ -56,6 +56,7 @@ n900lightsensor(QSensor *sensor); void poll(); + void start(); private: QAmbientLightReading m_reading; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/n900/n900proximitysensor.cpp --- a/qtmobility/plugins/sensors/n900/n900proximitysensor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/n900/n900proximitysensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,6 +40,7 @@ ****************************************************************************/ #include "n900proximitysensor.h" +#include #include #include #include @@ -51,6 +52,20 @@ : n900filebasedsensor(sensor) { setReading(&m_reading); + addDataRate(100, 100); // 100Hz + sensor->setDataRate(100); // default is 10Hz +} + +void n900proximitysensor::start() +{ + if (!QFile::exists(QLatin1String(filename))) + goto error; + + n900filebasedsensor::start(); + return; + +error: + sensorStopped(); } void n900proximitysensor::poll() @@ -62,16 +77,17 @@ fclose(fd); if (rs != 1) return; - QProximityReading::Proximity proximity = QProximityReading::Undefined; + bool close; if (strcmp(buffer, "closed") == 0) { - proximity = QProximityReading::Close; + close = true; } else { - proximity = QProximityReading::NotClose; + close = false; } - m_reading.setTimestamp(clock()); - m_reading.setProximity(proximity); - - newReadingAvailable(); + if (close != m_reading.close()) { + m_reading.setTimestamp(clock()); + m_reading.setClose(close); + newReadingAvailable(); + } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/n900/n900proximitysensor.h --- a/qtmobility/plugins/sensors/n900/n900proximitysensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/n900/n900proximitysensor.h Mon May 03 13:18:40 2010 +0300 @@ -56,6 +56,7 @@ n900proximitysensor(QSensor *sensor); void poll(); + void start(); private: QProximityReading m_reading; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/s60_sensor_api/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/s60_sensor_api/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,72 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qs60sensorapiaccelerometer.h" +#include +#include +#include + +QTM_USE_NAMESPACE + +// API is used as name since underlying symbian API is called sensor API +class s60SensorApiSensorPlugin : public QObject, public QSensorPluginInterface, public QSensorBackendFactory +{ + Q_OBJECT + Q_INTERFACES(QtMobility::QSensorPluginInterface) + +public: + void registerSensors() + { + QSensorManager::registerBackend(QAccelerometer::type, QS60SensorApiAccelerometer::id, this); + } + + QSensorBackend *createBackend(QSensor *sensor) + { + if (sensor->identifier() == QS60SensorApiAccelerometer::id) + return new QS60SensorApiAccelerometer(sensor); + + return 0; + } +}; + +Q_EXPORT_PLUGIN2(libsensors_s60SensorApi, s60SensorApiSensorPlugin) + +#include "main.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/s60_sensor_api/qs60sensorapiaccelerometer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/s60_sensor_api/qs60sensorapiaccelerometer.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,143 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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$ +** +****************************************************************************/ +//Symbian +#include +#include + +// Local +#include "qs60sensorapiaccelerometer.h" + +// Constants +const int KAccelerometerSensorUID = 0x10273024; + +const char *QS60SensorApiAccelerometer::id("s60sensorapi.accelerometer"); + +QS60SensorApiAccelerometer::QS60SensorApiAccelerometer(QSensor *sensor) + : QSensorBackend(sensor) + , m_nativeSensor(NULL) + , m_sampleFactor(0.0f) +{ + TRAPD(err, findAndCreateNativeSensorL()); + if(err != KErrNone) { + sensorStopped(); + sensorError(err); + } + + setReading(&m_reading); + + // http://www.st.com/stonline/products/literature/ds/12726/lis302dl.pdf + // That 3D accelerometer inside N95 , N93i or N82 is from STMicroelectronics (type LIS302DL). + // http://wiki.forum.nokia.com/index.php/Nokia_Sensor_APIs. + // Sensor is set to 100Hz 2G mode and no public interface to switch it to 8G + + // 2G - mode + addDataRate(100, 100); + sensor->setDataRate(100); + addOutputRange(-22.418, 22.418, 0.17651); + setDescription(QLatin1String("lis302dl")); + + //Synbian interface gives values between -680 - 680 + m_sampleFactor = this->sensor()->outputRanges()[0].maximum / 680.0f; +} + +QS60SensorApiAccelerometer::~QS60SensorApiAccelerometer() +{ + stop(); + delete m_nativeSensor; + m_nativeSensor = NULL; +} + +void QS60SensorApiAccelerometer::start() +{ + if(!m_nativeSensor) + return; + + m_nativeSensor->AddDataListener(this); +} + +void QS60SensorApiAccelerometer::stop() +{ + if(!m_nativeSensor) + return; + + m_nativeSensor->RemoveDataListener(); +} + +void QS60SensorApiAccelerometer::poll() +{ + //empty implementation +} + + +void QS60SensorApiAccelerometer::HandleDataEventL(TRRSensorInfo aSensor, TRRSensorEvent aEvent) +{ + if (aSensor.iSensorId != KAccelerometerSensorUID) + return; + + TTime time; + time.UniversalTime(); + m_reading.setTimestamp(time.Int64()); + m_reading.setX((qreal)aEvent.iSensorData2 * m_sampleFactor); + m_reading.setY((qreal)aEvent.iSensorData1 * -m_sampleFactor); + m_reading.setZ((qreal)aEvent.iSensorData3 * -m_sampleFactor); + newReadingAvailable(); +} + +void QS60SensorApiAccelerometer::findAndCreateNativeSensorL() +{ + if(m_nativeSensor) + return; + + RArray sensorList; + CRRSensorApi::FindSensorsL(sensorList); + CleanupClosePushL(sensorList); + + TInt index = 0; + do { + if (sensorList[index].iSensorId == KAccelerometerSensorUID) + m_nativeSensor = CRRSensorApi::NewL(sensorList[index]); + } while(!m_nativeSensor && ++index < sensorList.Count()); + + if (!m_nativeSensor) + User::Leave(KErrHardwareNotAvailable); + + CleanupStack::PopAndDestroy(&sensorList); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/s60_sensor_api/qs60sensorapiaccelerometer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/s60_sensor_api/qs60sensorapiaccelerometer.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,79 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QS60SENSORAPIACCELEROMETER_H +#define QS60SENSORAPIACCELEROMETER_H + +// Qt +#include +#include + +// symbian +#include + +QTM_USE_NAMESPACE + +class QS60SensorApiAccelerometer : public QSensorBackend, public MRRSensorDataListener +{ +public: + static const char *id; + + QS60SensorApiAccelerometer(QSensor *sensor); + virtual ~QS60SensorApiAccelerometer(); + + // from QSensorBackend + virtual void start(); + virtual void stop(); + void poll(); + + // from MRRSensorDataListener + void HandleDataEventL(TRRSensorInfo aSensor, TRRSensorEvent aEvent); + +private: + void findAndCreateNativeSensorL(); + +private: + CRRSensorApi* m_nativeSensor; + QAccelerometerReading m_reading; + qreal m_sampleFactor; +}; + +#endif // QS60SENSORAPIACCELEROMETER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/s60_sensor_api/s60_sensor_api.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/s60_sensor_api/s60_sensor_api.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,15 @@ +INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + +HEADERS += qs60sensorapiaccelerometer.h + +SOURCES += main.cpp \ + qs60sensorapiaccelerometer.cpp + +LIBS += -lRRSensorApi + +# Enable this to build winscw and comment LIBS += -lRRSensorApi out +# MMP_RULES does not work with sbsv2 +# Sbsv2 does not work with s60 v3.1 winscw (works fine with armv5) +#MMP_RULES += "$${LITERAL_HASH}ifndef WINSCW" \ +# "LIBRARY RRSensorApi.lib" \ +# "$${LITERAL_HASH}endif" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/s60_sensor_api/s60_sensor_api.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/s60_sensor_api/s60_sensor_api.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,25 @@ +INCLUDEPATH+=../../../src/sensors + +include(../../../common.pri) +include(s60_sensor_api.pri) +include(version.pri) + +TEMPLATE = lib +CONFIG += plugin + +TARGET = $$qtLibraryTarget(sensor_s60sensorapi) +TARGET.EPOCALLOWDLLDATA = 1 +TARGET.UID3 = 0x2002BFC1 +TARGET.CAPABILITY = ALL -TCB + +QT=core +CONFIG+=mobility +MOBILITY+=sensors + +#S60 v3.1 sensor back end deployment +s60sensorapi.sources = $${TARGET}.dll +s60sensorapi.path = $${QT_PLUGINS_BASE_DIR}/sensors +DEPLOYMENT += s60sensorapi + +target.path += $$[QT_INSTALL_PLUGINS]/sensors +INSTALLS += target diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/s60_sensor_api/version.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/s60_sensor_api/version.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1 @@ +VERSION = 0.0.1 diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/sensors.pro --- a/qtmobility/plugins/sensors/sensors.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/plugins/sensors/sensors.pro Mon May 03 13:18:40 2010 +0300 @@ -8,6 +8,22 @@ SUBDIRS += n900 } +symbian { + exists($${EPOCROOT}epoc32/release/armv5/lib/SensrvClient.lib) { + message("Sensor framework found") + device_plugin=1 + } else { + exists($${EPOCROOT}epoc32/release/armv5/lib/RRSensorApi.lib) { + message("Sensor API found") + device_plugin=1 + SUBDIRS += s60_sensor_api + } else { + message("No native sensor interface found") + device_plugin=0 + } + } +} + SUBDIRS += generic !equals(device_plugin,1) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/accelerometersym.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/accelerometersym.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,119 @@ +/**************************************************************************** + ** + ** 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 Qt Mobility Components. + ** + ** $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$ + ** + ****************************************************************************/ + +// Internal Headers +#include "accelerometersym.h" + +/** + * set the id of the accelerometer sensor + */ +const char *CAccelerometerSensorSym::id("sym.accelerometer"); + +/** + * Factory function, this is used to create the accelerometer object + * @return CAccelerometerSensorSym if successful, leaves on failure + */ +CAccelerometerSensorSym* CAccelerometerSensorSym::NewL(QSensor *sensor) + { + CAccelerometerSensorSym* self = new (ELeave) CAccelerometerSensorSym(sensor); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +/** + * Destructor + * Closes the backend resources + */ +CAccelerometerSensorSym::~CAccelerometerSensorSym() + { + // Release the backend resources + Close(); + } + +/** + * Default constructor + */ +CAccelerometerSensorSym::CAccelerometerSensorSym(QSensor *sensor):CSensorBackendSym(sensor) + { + setReading(&iReading); + iBackendData.iSensorType = KSensrvChannelTypeIdAccelerometerXYZAxisData; + //Disable property listening + SetListening(ETrue, EFalse); + } + +/* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle accelerometer sensor specific + * reading data and provides conversion and utility code + */ +void CAccelerometerSensorSym::RecvData(CSensrvChannel &aChannel) + { + TPckg accelerometerpkg( iData ); + TInt ret = aChannel.GetData( accelerometerpkg ); + if(KErrNone != ret) + { + // If there is no reading available, return without setting + return; + } + // Get a lock on the reading data + iBackendData.iReadingLock.Wait(); + // Set qt mobility accelerometer reading with data from sensor server + iReading.setX(iData.iAxisX); + iReading.setY(iData.iAxisY); + iReading.setZ(iData.iAxisZ); + // Set the timestamp + iReading.setTimestamp(iData.iTimeStamp.Int64()); + // Release the lock + iBackendData.iReadingLock.Signal(); + } + +/** + * Second phase constructor + * Initialize the backend resources + */ +void CAccelerometerSensorSym::ConstructL() + { + //Initialize the backend resources + InitializeL(); + } + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/accelerometersym.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/accelerometersym.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,103 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 ACCELEROMETERSYM_H +#define ACCELEROMETERSYM_H + +// QT Mobility Sensor API headers +#include +#include + +// Internal Headers +#include "sensorbackendsym.h" + +// Sensor client headers +// Accelerometer Sensor specific header +#include + +QTM_USE_NAMESPACE + +class CAccelerometerSensorSym: public CSensorBackendSym + { +public: + /** + * Factory function, this is used to create the accelerometer object + * @return CAccelerometerSensorSym if successful, leaves on failure + */ + static CAccelerometerSensorSym* NewL(QSensor *sensor); + + /** + * Destructor + * Closes the backend resources + */ + ~CAccelerometerSensorSym(); + +private: + /** + * Default constructor + */ + CAccelerometerSensorSym(QSensor *sensor); + + /* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle accelerometer sensor specific + * reading data and provides conversion and utility code + */ + void RecvData(CSensrvChannel &aChannel); + + /** + * Second phase constructor + * Initialize the backend resources + */ + void ConstructL(); + +public: + /** + * Holds the id of the accelerometer + */ + static const char *id; + +private: + QAccelerometerReading iReading; + TSensrvAccelerometerAxisData iData; + }; + +#endif //ACCELEROMETERSYM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/ambientlightsensorsym.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/ambientlightsensorsym.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,150 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "ambientlightsensorsym.h" + +/** + * set the id of the ambient light sensor + */ +const char *CAmbientLightSensorSym::id("sym.ambientlight"); + +/** + * Factory function, this is used to create the ambient light sensor object + * @return CAmbientLightSensorSym if successful, leaves on failure + */ +CAmbientLightSensorSym* CAmbientLightSensorSym::NewL(QSensor *sensor) + { + CAmbientLightSensorSym* self = new (ELeave) CAmbientLightSensorSym(sensor); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +/** + * Destructor + * Closes the backend resources + */ +CAmbientLightSensorSym::~CAmbientLightSensorSym() + { + // Release the backend resources + Close(); + } + +/** + * Default constructor + */ +CAmbientLightSensorSym::CAmbientLightSensorSym(QSensor *sensor):CSensorBackendSym(sensor) + { + setReading(&iReading); + iBackendData.iSensorType = KSensrvChannelTypeIdAmbientLightData; + } + +/* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle ambient light sensor specific + * reading data and provides conversion and utility code + */ +void CAmbientLightSensorSym::RecvData(CSensrvChannel &aChannel) + { + TPckg lightpkg( iData ); + TInt ret = aChannel.GetData( lightpkg ); + if(KErrNone != ret) + { + // If there is no reading available, return without setting + return; + } + // Get a lock on the reading data + iBackendData.iReadingLock.Wait(); + switch (iData.iAmbientLight) + { + case TSensrvAmbientLightData::KAmbientLightVeryDark: + case TSensrvAmbientLightData::KAmbientLightDark: + { + iReading.setLightLevel(QAmbientLightReading::Dark); + } + break; + + case TSensrvAmbientLightData::KAmbientLightTwilight: + { + iReading.setLightLevel(QAmbientLightReading::Twilight); + } + break; + + case TSensrvAmbientLightData::KAmbientLightLight: + { + iReading.setLightLevel(QAmbientLightReading::Light); + } + break; + + case TSensrvAmbientLightData::KAmbientLightBright: + { + iReading.setLightLevel(QAmbientLightReading::Bright); + } + break; + + case TSensrvAmbientLightData::KAmbientLightSunny: + { + iReading.setLightLevel(QAmbientLightReading::Sunny); + } + break; + + default: + { + iReading.setLightLevel(QAmbientLightReading::Undefined); + } + } + // Set the timestamp + iReading.setTimestamp(iData.iTimeStamp.Int64()); + // Release the lock + iBackendData.iReadingLock.Signal(); + } + +/** + * Second phase constructor + * Initialize the backend resources + */ +void CAmbientLightSensorSym::ConstructL() + { + //Initialize the backend resources + InitializeL(); + } + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/ambientlightsensorsym.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/ambientlightsensorsym.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,104 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 AMBIENTLIGHTSENSORSYM_H +#define AMBIENTLIGHTSENSORSYM_H + +// QT Mobility Sensor API headers +#include +#include + +// Internal Headers +#include "sensorbackendsym.h" + +// Sensor client headers +// Ambient Light Sensor specific header +#include + +QTM_USE_NAMESPACE + +class CAmbientLightSensorSym: public CSensorBackendSym + { +public: + /** + * Factory function, this is used to create the ambient light sensor object + * @return CAmbientLightSensorSym if successful, leaves on failure + */ + static CAmbientLightSensorSym* NewL(QSensor *sensor); + + /** + * Destructor + * Closes the backend resources + */ + ~CAmbientLightSensorSym(); + +private: + /** + * Default constructor + */ + CAmbientLightSensorSym(QSensor *sensor); + + /* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle ambient light sensor specific + * reading data and provides conversion and utility code + */ + void RecvData(CSensrvChannel &aChannel); + + /** + * Second phase constructor + * Initialize the backend resources + */ + void ConstructL(); + +public: + /** + * Holds the id of the accelerometer + */ + static const char *id; + +private: + QAmbientLightReading iReading; + TSensrvAmbientLightData iData; + }; + +#endif //AMBIENTLIGHTSENSORSYM_H + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/compasssym.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/compasssym.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,145 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "compasssym.h" + +/** + * set the id of the accelerometer sensor + */ +const char *CCompassSym::id("sym.compass"); + +/** + * Factory function, this is used to create the compass object + * @return CCompassSym if successful, leaves on failure + */ +CCompassSym* CCompassSym::NewL(QSensor *sensor) + { + CCompassSym* self = new (ELeave) CCompassSym(sensor); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +/** + * Destructor + * Closes the backend resources + */ +CCompassSym::~CCompassSym() + { + delete iMagnetometer; + Close(); + } + +/** + * Default constructor + */ +CCompassSym::CCompassSym(QSensor *sensor):CSensorBackendSym(sensor) + { + setReading(&iReading); + iBackendData.iSensorType = KSensrvChannelTypeIdMagneticNorthData; + } + +/** + * start() overrides CSensorBackendSym::start() + * This is to allow starting magnetometer before stopping the compass + */ +void CCompassSym::start() + { + // start the magnetometer + iMagnetometer->start(); + // start the compass backend + CSensorBackendSym::start(); + } + +/** + * stop() overrides CSensorBackendSym::stop() + * This is to allow stopping magnetometer before stopping the compass + */ +void CCompassSym::stop() + { + // stop the magnetometer + iMagnetometer->stop(); + // start the compass backend + CSensorBackendSym::stop(); + } + +/* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle compass sensor specific + * reading data and provides conversion and utility code + */ +void CCompassSym::RecvData(CSensrvChannel &aChannel) + { + TPckg proxpkg( iData ); + TInt ret = aChannel.GetData( proxpkg ); + if(KErrNone != ret) + { + // If there is no reading available, return without setting + return; + } + // Get a lock on the reading data + iBackendData.iReadingLock.Wait(); + iReading.setAzimuth(iData.iAngleFromMagneticNorth); + // Retrieve and set the calibration level + iReading.setCalibrationLevel(iMagnetometer->GetCalibrationLevel()); + // Set the timestamp + iReading.setTimestamp(iData.iTimeStamp.Int64()); + // Release the lock + iBackendData.iReadingLock.Signal(); + } + +/** + * Second phase constructor + * Initialize the backend resources + */ +void CCompassSym::ConstructL() + { + // Initialize the backend + InitializeL(); + // Create magnetometer, this is required as in sensor server, + // calibration data is available only for magnetometer + iMagnetometer = CMagnetometerSensorSym::NewL(NULL); + // Listen only for property change on magnetometer as we are + // interested only in calibration property + iMagnetometer->SetListening(EFalse, ETrue); + } + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/compasssym.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/compasssym.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,119 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 COMPASSSYM_H +#define COMPASSSYM_H + +// QT Mobility Sensor API headers +#include +#include + +// Internal Headers +#include "sensorbackendsym.h" + +// Sensor client headers +// compass and magnetometer specific header +#include +#include +// Magnetometer sensor specific header +#include + +QTM_USE_NAMESPACE + +class CCompassSym: public CSensorBackendSym + { +public: + /** + * Factory function, this is used to create the compass object + * @return CCompassSym if successful, leaves on failure + */ + static CCompassSym* NewL(QSensor *sensor); + + /** + * Destructor + * Closes the backend resources + */ + ~CCompassSym(); + + /** + * start() overrides CSensorBackendSym::start() + * This is to allow starting magnetometer before stopping the compass + */ + void start(); + + /** + * stop() overrides CSensorBackendSym::stop() + * This is to allow stopping magnetometer before stopping the compass + */ + void stop(); + +private: + /** + * Default constructor + */ + CCompassSym(QSensor *sensor); + + /* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle compass sensor specific + * reading data and provides conversion and utility code + */ + void RecvData(CSensrvChannel &aChannel); + + /** + * Second phase constructor + * Initialize the backend resources + */ + void ConstructL(); + +public: + /** + * Holds the id of the compass + */ + static const char *id; + +private: + QCompassReading iReading; + TSensrvMagneticNorthData iData; + CMagnetometerSensorSym *iMagnetometer; + }; + +#endif //PROXIMITYSENSORSYM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/magnetometersensorsym.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/magnetometersensorsym.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,193 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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$ +** +****************************************************************************/ + +// Internal Headers +#include "magnetometersensorsym.h" + +/** + * set the id of the magnetometer sensor + */ +const char *CMagnetometerSensorSym::id("sym.magnetometer"); + +/** + * Factory function, this is used to create the magnetometer sensor object + * @return CMagnetometerSensorSym if successful, leaves on failure + */ +CMagnetometerSensorSym* CMagnetometerSensorSym::NewL(QSensor *sensor) + { + CMagnetometerSensorSym* self = new (ELeave) CMagnetometerSensorSym(sensor); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +/** + * Destructor + * Closes the backend resources + */ +CMagnetometerSensorSym::~CMagnetometerSensorSym() + { + //Closes the backend resources + Close(); + } + +/** + * Default constructor + */ +CMagnetometerSensorSym::CMagnetometerSensorSym(QSensor *sensor):CSensorBackendSym(sensor), + iCalibrationLevel(0.0) + { + if(sensor) + { + setReading(&iReading); + } + iBackendData.iSensorType = KSensrvChannelTypeIdMagnetometerXYZAxisData; + //Enable Property listening, required to get Calibration level + SetListening(ETrue, ETrue); + } + +/** + * start is overridden to allow retrieving initial calibration property before + * and to set the required value type flags + */ +void CMagnetometerSensorSym::start() + { + if(sensor()) + { + // Initialize the values + iReading.setX(0); + iReading.setY(0); + iReading.setZ(0); + // Set the required type of values + QVariant v = sensor()->property("returnGeoValues"); + iReturnGeoValues = (v.isValid() && v.toBool()); // if the property isn't set it's false + } + // get current property value for calibration and set it to reading + TSensrvProperty calibration; + TRAPD(err, iBackendData.iSensorChannel->GetPropertyL(KSensrvPropCalibrationLevel,ESensrvSingleProperty, calibration)); + // If error in getting the calibration level, continue to start the sensor + // as it is not a fatal error + if ( err == KErrNone ) + { + TInt calibrationVal; + calibration.GetValue(calibrationVal); + iCalibrationLevel = calibrationVal * (1.0/3.0); + } + // Call backend start + CSensorBackendSym::start(); + } + +/* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle magnetometer sensor specific + * reading data and provides conversion and utility code + */ +void CMagnetometerSensorSym::RecvData(CSensrvChannel &aChannel) + { + TPckg magnetometerpkg( iData ); + TInt ret = aChannel.GetData( magnetometerpkg ); + if(KErrNone != ret) + { + // If there is no reading available, return without setting + return; + } + // Get a lock on the reading data + iBackendData.iReadingLock.Wait(); + // If Geo values are requested set it + if(iReturnGeoValues) + { + iReading.setX(iData.iAxisXCalibrated); + iReading.setY(iData.iAxisYCalibrated); + iReading.setZ(iData.iAxisZCalibrated); + } + // If Raw values are requested set it + else + { + iReading.setX(iData.iAxisXRaw); + iReading.setY(iData.iAxisYRaw); + iReading.setZ(iData.iAxisZRaw); + } + // Set the timestamp + iReading.setTimestamp(iData.iTimeStamp.Int64()); + // Set the calibration level + iReading.setCalibrationLevel(iCalibrationLevel); + // Release the lock + iBackendData.iReadingLock.Signal(); + } + +/** + * HandlePropertyChange is called from backend, to indicate a change in property + */ +void CMagnetometerSensorSym::HandlePropertyChange(CSensrvChannel &/*aChannel*/, const TSensrvProperty &aChangedProperty) + { + if(aChangedProperty.GetPropertyId() != KSensrvPropCalibrationLevel) + { + // Do nothing, if calibration property has not changed + return; + } + TInt calibrationlevel; + aChangedProperty.GetValue(calibrationlevel); + // As Qt requires calibration level in qreal but symbian provides in enum + // It has been agreed with DS Team that the following mechanism will be + // used till discussions with qt mobility are complete + iCalibrationLevel = (1.0/3.0) * calibrationlevel; + } + +/* + * Used to retrieve the current calibration level + * iCalibrationLevel is automatically updated whenever there is a change + * in calibration level + */ +qreal CMagnetometerSensorSym::GetCalibrationLevel() + { + return iCalibrationLevel; + } + +/** + * Second phase constructor + * Initialize the backend resources + */ +void CMagnetometerSensorSym::ConstructL() + { + InitializeL(); + } + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/magnetometersensorsym.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/magnetometersensorsym.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,123 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 MAGNETOMETERSENSORSYM_H +#define MAGNETOMETERSENSORSYM_H + +// QT Mobility Sensor API headers +#include +#include + +// Internal Headers +#include "sensorbackendsym.h" + +// Sensor client headers +// Magnetometer Sensor specific header +#include + +QTM_USE_NAMESPACE + +class CMagnetometerSensorSym: public CSensorBackendSym + { +public: + /** + * Factory function, this is used to create the magnetometer sensor object + * @return CMagnetometerSensorSym if successful, leaves on failure + */ + static CMagnetometerSensorSym* NewL(QSensor *sensor); + + /** + * Destructor + * Closes the backend resources + */ + ~CMagnetometerSensorSym(); + + /* + * Used to retrieve the current calibration level + * iCalibrationLevel is automatically updated whenever there is a change + * in calibration level + */ + qreal GetCalibrationLevel(); + + /** + * start is overridden to allow retrieving initial calibration property before + * and to set the required value type flags + */ + void start(); + +private: + /** + * Default constructor + */ + CMagnetometerSensorSym(QSensor *sensor); + + /* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle magnetometer sensor specific + * reading data and provides conversion and utility code + */ + void RecvData(CSensrvChannel &aChannel); + + /** + * HandlePropertyChange is called from backend, to indicate a change in property + */ + void HandlePropertyChange(CSensrvChannel &aChannel, const TSensrvProperty &aChangedProperty); + + /** + * Second phase constructor + * Initialize the backend resources + */ + void ConstructL(); + +public: + /** + * Holds the id of the magnetometer + */ + static const char *id; + +private: + QMagnetometerReading iReading; + TSensrvMagnetometerAxisData iData; + qreal iCalibrationLevel; + bool iReturnGeoValues; + }; + +#endif //MAGNETOMETERSENSORSYM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,118 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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$ +** +****************************************************************************/ +// QT Mobility Sensor API headers +#include +#include +#include + +// Internal Headers +#include "proximitysensorsym.h" +#include "ambientlightsensorsym.h" +#include "magnetometersensorsym.h" +#include "compasssym.h" +#include "orientationsym.h" +#include "accelerometersym.h" + +// QT Utility headers +#include + +class SensorPluginSym : public QObject, public QSensorPluginInterface, public QSensorBackendFactory + { + Q_OBJECT + Q_INTERFACES(QtMobility::QSensorPluginInterface) +public: + void registerSensors() + { + qDebug() << "Loaded the symbian sensor plugins"; + QSensorManager::registerBackend(QProximitySensor::type, CProximitySensorSym::id, this); + QSensorManager::registerBackend(QAmbientLightSensor::type, CAmbientLightSensorSym::id, this); + QSensorManager::registerBackend(QMagnetometer::type, CMagnetometerSensorSym::id, this); + QSensorManager::registerBackend(QCompass::type, CCompassSym::id, this); + QSensorManager::registerBackend(QOrientationSensor::type, COrientationSensorSym::id, this); + QSensorManager::registerBackend(QAccelerometer::type, CAccelerometerSensorSym::id, this); + } + + QSensorBackend *createBackend(QSensor *sensor) + { + if (sensor->identifier() == CProximitySensorSym::id) + { + CProximitySensorSym *self = NULL; + TRAPD(err,self = CProximitySensorSym::NewL(sensor)); + return self; + } + if (sensor->identifier() == CAmbientLightSensorSym::id) + { + CAmbientLightSensorSym *self = NULL; + TRAPD(err,self = CAmbientLightSensorSym::NewL(sensor)); + return self; + } + if (sensor->identifier() == CMagnetometerSensorSym::id) + { + CMagnetometerSensorSym *self = NULL; + TRAPD(err,self = CMagnetometerSensorSym::NewL(sensor)); + return self; + } + if (sensor->identifier() == CCompassSym::id) + { + CCompassSym *self = NULL; + TRAPD(err,self = CCompassSym::NewL(sensor)); + return self; + } + if (sensor->identifier() == COrientationSensorSym::id) + { + COrientationSensorSym *self = NULL; + TRAPD(err,self = COrientationSensorSym::NewL(sensor)); + return self; + } + if (sensor->identifier() == CAccelerometerSensorSym::id) + { + CAccelerometerSensorSym *self = NULL; + TRAPD(err,self = CAccelerometerSensorSym::NewL(sensor)); + return self; + } + return 0; + } + }; + +Q_EXPORT_PLUGIN2(libsensors_sym, SensorPluginSym); + +#include "main.moc" + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/orientationsym.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/orientationsym.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,163 @@ +/**************************************************************************** + ** + ** 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 Qt Mobility Components. + ** + ** $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$ + ** + ****************************************************************************/ + +// Internal Headers +#include "orientationsym.h" + +/** + * set the id of the orientation sensor + */ +const char *COrientationSensorSym::id("sym.orientation"); + +/** + * Factory function, this is used to create the orientation sensor object + * @return COrientationSensorSym if successful, leaves on failure + */ +COrientationSensorSym* COrientationSensorSym::NewL(QSensor *sensor) + { + COrientationSensorSym* self = new (ELeave) COrientationSensorSym(sensor); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +/** + * Destructor + * Closes the backend resources + */ +COrientationSensorSym::~COrientationSensorSym() + { + // Release the backend resources + Close(); + } + +/** + * Default constructor + */ +COrientationSensorSym::COrientationSensorSym(QSensor *sensor):CSensorBackendSym(sensor) + { + setReading(&iReading); + iBackendData.iSensorType = KSensrvChannelTypeIdOrientationData; + } + +/* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle orientation sensor specific + * reading data and provides conversion and utility code + */ +void COrientationSensorSym::RecvData(CSensrvChannel &aChannel) + { + TPckg orientationpkg( iData ); + TInt ret = aChannel.GetData( orientationpkg ); + if(KErrNone != ret) + { + // If there is no reading available, return without setting + return; + } + // Get a lock on the reading data + iBackendData.iReadingLock.Wait(); + //Mapping device orientation enum values to Qt Orientation enum values + switch (iData.iDeviceOrientation) + { + // Indicates Display facing down + case TSensrvOrientationData::EOrientationDisplayDown: + { + iReading.setOrientation(QOrientationReading::TopDown); + } + break; + + // Indicates Display facing up + case TSensrvOrientationData::EOrientationDisplayUp: + { + iReading.setOrientation(QOrientationReading::TopUp); + } + break; + + // Indicates Display left up + case TSensrvOrientationData::EOrientationDisplayLeftUp: + { + iReading.setOrientation(QOrientationReading::LeftUp); + } + break; + + // Indicates Display right up + case TSensrvOrientationData::EOrientationDisplayRightUp: + { + iReading.setOrientation(QOrientationReading::RightUp); + } + break; + + // Indicates Display upwards(Top up) + case TSensrvOrientationData::EOrientationDisplayUpwards: + { + iReading.setOrientation(QOrientationReading::FaceUp); + } + break; + + // Indicates Display downwards(Top down) + case TSensrvOrientationData::EOrientationDisplayDownwards: + { + iReading.setOrientation(QOrientationReading::FaceDown); + } + break; + + // Undefined value + default: + { + iReading.setOrientation(QOrientationReading::Undefined); + } + } + + iReading.setTimestamp(iData.iTimeStamp.Int64()); + // Release the lock + iBackendData.iReadingLock.Signal(); + } + +/** + * Second phase constructor + * Initialize the backend resources + */ +void COrientationSensorSym::ConstructL() + { + InitializeL(); + } + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/orientationsym.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/orientationsym.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,103 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 ORIENTATIONSENSORSYM_H +#define ORIENTATIONSENSORSYM_H + +// QT Mobility Sensor API headers +#include +#include + +// Internal Headers +#include "sensorbackendsym.h" + +// Sensor client headers +// Orientation Sensor specific header +#include + +QTM_USE_NAMESPACE + +class COrientationSensorSym: public CSensorBackendSym + { +public: + /** + * Factory function, this is used to create the orientation sensor object + * @return COrientationSensorSym if successful, leaves on failure + */ + static COrientationSensorSym* NewL(QSensor *sensor); + + /** + * Destructor + * Closes the backend resources + */ + ~COrientationSensorSym(); + +private: + /** + * Default constructor + */ + COrientationSensorSym(QSensor *sensor); + + /* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle orientation sensor specific + * reading data and provides conversion and utility code + */ + void RecvData(CSensrvChannel &aChannel); + + /** + * Second phase constructor + * Initialize the backend resources + */ + void ConstructL(); + +public: + /** + * Holds the id of the orientation sensor + */ + static const char *id; + +private: + QOrientationReading iReading; + TSensrvOrientationData iData; + }; + +#endif //ORIENTATIONSENSORSYM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/proximitysensorsym.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/proximitysensorsym.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,114 @@ +/**************************************************************************** + ** + ** 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 Qt Mobility Components. + ** + ** $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$ + ** + ****************************************************************************/ + +// Internal Headers +#include "proximitysensorsym.h" + +/** + * set the id of the proximity sensor + */ +const char *CProximitySensorSym::id("sym.proximity"); + +/** + * Factory function, this is used to create the proximity sensor object + * @return CProximitySensorSym if successful, leaves on failure + */ +CProximitySensorSym* CProximitySensorSym::NewL(QSensor *sensor) + { + CProximitySensorSym* self = new (ELeave) CProximitySensorSym(sensor); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +/** + * Destructor + * Closes the backend resources + */ +CProximitySensorSym::~CProximitySensorSym() + { + // Release the backend resources + Close(); + } + +/** + * Default constructor + */ +CProximitySensorSym::CProximitySensorSym(QSensor *sensor):CSensorBackendSym(sensor) + { + setReading(&iReading); + iBackendData.iSensorType = KSensrvChannelTypeIdProximityMonitor; + } + +/* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle proximity sensor specific + * reading data and provides conversion and utility code + */ +void CProximitySensorSym::RecvData(CSensrvChannel &aChannel) + { + TPckg proxpkg( iData ); + TInt ret = aChannel.GetData( proxpkg ); + if(KErrNone != ret) + { + // If there is no reading available, return without setting + return; + } + // Get a lock on the reading data + iBackendData.iReadingLock.Wait(); + iReading.setClose(iData.iProximityState == TSensrvProximityData::EProximityDiscernible); + // Set the timestamp + iReading.setTimestamp(iData.iTimeStamp.Int64()); + // Release the lock + iBackendData.iReadingLock.Signal(); + } + +/** + * Second phase constructor + * Initialize the backend resources + */ +void CProximitySensorSym::ConstructL() + { + //Initialize the backend resources + InitializeL(); + } + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/proximitysensorsym.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/proximitysensorsym.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,103 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 PROXIMITYSENSORSYM_H +#define PROXIMITYSENSORSYM_H + +// QT Mobility Sensor API headers +#include +#include + +// Internal Headers +#include "sensorbackendsym.h" + +// Sensor client headers +// Proximity Sensor specific header +#include + +QTM_USE_NAMESPACE + +class CProximitySensorSym: public CSensorBackendSym + { +public: + /** + * Factory function, this is used to create the proximity sensor object + * @return CProximitySensorSym if successful, leaves on failure + */ + static CProximitySensorSym* NewL(QSensor *sensor); + + /** + * Destructor + * Closes the backend resources + */ + ~CProximitySensorSym(); + +private: + /** + * Default constructor + */ + CProximitySensorSym(QSensor *sensor); + + /* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented here to handle proximity sensor specific + * reading data and provides conversion and utility code + */ + void RecvData(CSensrvChannel &aChannel); + + /** + * Second phase constructor + * Initialize the backend resources + */ + void ConstructL(); + +public: + /** + * Holds the id of the proximity sensor + */ + static const char *id; + +private: + QProximityReading iReading; + TSensrvProximityData iData; + }; + +#endif //PROXIMITYSENSORSYM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/sensorbackenddatasym.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/sensorbackenddatasym.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,62 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 SENSORBACKENDDATASYM_H +#define SENSORBACKENDDATASYM_H + +class CSensrvChannel; +class TSensrvChannelInfo; + +QTM_USE_NAMESPACE +class TSensorBackendDataSym + { +public: + TBool iSensorAvailable; + CSensrvChannel* iSensorChannel; + TSensrvChannelTypeId iSensorType; + TSensrvChannelInfo iChannelInfo; + RFastLock iReadingLock; + TInt iTimerId; + TBool iPropertyListening; + TBool iDataListening; + }; + +#endif //SENSORBACKENDDATASYM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/sensorbackendsym.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/sensorbackendsym.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,353 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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$ +** +****************************************************************************/ +// Internal Includes +#include "sensorbackendsym.h" + +// Constants +const TInt KDesiredReadingCount = 1; +const TInt KMaximumReadingCount = 1; +const TInt KDefaultBufferingPeriod = 0; + +///// Internal Functions + +/* + * FindSensorL is used to find if a specific sensor is available on the + * device, if FindSensorL leaves then the sensor is not supported + */ +void CSensorBackendSym::FindSensorL() + { + // This method scans the device for the availability + // of specified sensor using Sensor APIs + CSensrvChannelFinder* finder = CSensrvChannelFinder::NewLC(); + RSensrvChannelInfoList channelList; + TSensrvChannelInfo channelInfo; + // Retrieve the list of channels available + finder->FindChannelsL( channelList, channelInfo ); + CleanupStack::PopAndDestroy(finder); + // Iterate the channel list and look for required sensor + for (TInt i = 0; iOpenChannelL(); + iBackendData.iReadingLock.CreateLocal(); + iBackendData.iSensorAvailable = ETrue; + } + else + { + User::Leave(KErrAlreadyExists); + } + } + +/* + * CloseSensorChannel is used to close the sensor channel and release the + * resources + */ +void CSensorBackendSym::CloseSensorChannelL() + { + // If the sensor channel is not created nothing to delete + if( iBackendData.iSensorChannel ) + { + // Stop listening before closing the channel + iBackendData.iSensorAvailable = EFalse; + StopListeningL(); + // Close the channel + User::LeaveIfError(iBackendData.iSensorChannel->CloseChannel()); + iBackendData.iReadingLock.Close(); + // If close is successful, destroy iSensorChannel + delete iBackendData.iSensorChannel; + iBackendData.iSensorChannel = NULL; + } + User::Leave( KErrNotFound ); + } + +/* + * Used to start listening to the sensor + */ +void CSensorBackendSym::StartListeningL() + { + // Check if data listening is enabled + if(iBackendData.iDataListening) + { + // Start timer if required i.e. if update interval is more than zero + TInt interval = sensor()->updateInterval(); + if( interval > 0 ) + { + iBackendData.iTimerId = startTimer(interval); + } + // Start listening to the sensor + // Before calling this api the channel should be found and opened + iBackendData.iSensorChannel->StartDataListeningL( this, + KDesiredReadingCount, + KMaximumReadingCount, + KDefaultBufferingPeriod ); + } + // start property listening if required + if ( iBackendData.iPropertyListening ) + { + iBackendData.iSensorChannel->SetPropertyListenerL(this); + } + } + +/* + * timerEvent is called when timer expires, this is used for supporting time based + * sensor update policies + */ +void CSensorBackendSym::timerEvent(QTimerEvent* /*aTimerEvent*/) + { + // Called upon timer expiry + //Use synchronization mechanism and emit the reading value + iBackendData.iReadingLock.Wait(); + newReadingAvailable(); + iBackendData.iReadingLock.Signal(); + } + +/* + * Used to stop listening to the sensor + */ +void CSensorBackendSym::StopListeningL() + { + if(iBackendData.iPropertyListening) + { + //Stop Property listening + iBackendData.iSensorChannel->SetPropertyListenerL(NULL); + } + if(iBackendData.iDataListening) + { + // If timer is being used, stop the timer + if (iBackendData.iTimerId) + { + killTimer(iBackendData.iTimerId); + iBackendData.iTimerId = 0; + } + // Stop listening to the sensor channel + User::LeaveIfError(iBackendData.iSensorChannel->StopDataListening()); + } + } + +/* + * Default C++ constructor + */ +CSensorBackendSym::CSensorBackendSym(QSensor *sensor):QSensorBackend(sensor) + { + // By default enabling Data listening + iBackendData.iDataListening = ETrue; + // By default disabling Property listening + iBackendData.iPropertyListening = EFalse; + } + +/* + * Backend Destructor + */ +CSensorBackendSym::~CSensorBackendSym() + { + // No Implementation + } + +/* + * InitializeL is used to create and init the sensor server objects + */ +void CSensorBackendSym::InitializeL() + { + // Initialize Symbian Sensor Framework Objects + OpenSensorChannelL(); + } + +/* + * Close is used to release all the sensor server objects + * May change when error handling is supported by mobility apis + */ +TInt CSensorBackendSym::Close() + { + // Close Symbian Sensor Framework objects + TRAPD(err,CloseSensorChannelL()); + return err; + } + + +///// Derived From QSensorBackend + +/** + * start is used to start listening to the sensor + */ +void CSensorBackendSym::start() + { + // Start listening to sensor, after this call DataRecieved will be called + // when data is available + TRAPD(err,StartListeningL()) + if( err != KErrNone ) + { + sensorStopped(); + sensorError(err); + } + } + +/* + * stop is used to stop listening to the sensor + */ +void CSensorBackendSym::stop() + { + // Stop listening to sensor, after this call DataRecieved wont be called + TRAPD(err,StopListeningL()) + if ( err != KErrNone ) + { + sensorError(err); + } + } + +//Derived From MSensrvDataListener + +/* + * DataReceived is called by the Sensor Server when ever data is available in the + * sensor buffer + */ +void CSensorBackendSym::DataReceived(CSensrvChannel &aChannel, TInt /*aCount*/, TInt /*aDataLost*/) + { + // Retrieve the data from sensor buffer + RecvData(aChannel); + // Notify only if no timer present + if( !iBackendData.iTimerId ) + { + newReadingAvailable(); + } + } + +/** + * DataError is called to indicate an error, fatal errors are inrecoverable + */ +void CSensorBackendSym::DataError(CSensrvChannel& /*aChannel*/, TSensrvErrorSeverity aError) + { + // If error is fatal stop the sensor + if( aError == ESensrvErrorSeverityFatal ) + { + sensorStopped(); + } + sensorError(KErrGeneral); + } + +/* + * GetDataListenerInterfaceL is used to get a pointer to the sensor server backend + * It is not required for QT Mobility Sensors API + */ +void CSensorBackendSym::CSensorBackendSym::GetDataListenerInterfaceL (TUid /*aInterfaceUid*/, TAny*&/*aInterface*/) + { + // No implementation required + } + +// From MSensrvProeprtyListener + +/** + * Notification about the changed value of a property. + */ +void CSensorBackendSym::PropertyChanged(CSensrvChannel &aChannel, const TSensrvProperty &aChangedProperty) + { + TRAP_IGNORE(HandlePropertyChange(aChannel,aChangedProperty)) + } + +/** + * Property listening failed. + */ +void CSensorBackendSym::PropertyError(CSensrvChannel &/*aChannel*/, TSensrvErrorSeverity aError) + { + if( aError == ESensrvErrorSeverityFatal ) + { + sensorStopped(); + } + sensorError(KErrGeneral); + } + +/** + * Set a listener for the indication, if the setting of the property succeeded. + */ +void CSensorBackendSym::SetPropertySuccessIndicationChanged(TSetPropertySuccessIndicator /*aIndication*/) + { + // No implementation required + } + +/* + * Returns a pointer to a specified interface extension - to allow future extension of this class without breaking binary compatibility. + */ +void CSensorBackendSym::GetPropertyListenerInterfaceL (TUid /*aInterfaceUid*/, TAny *&/*aInterface*/) + { + // No implementation required + } + +void CSensorBackendSym::SetListening(TBool aDataListening, TBool aPropertyListening) + { + iBackendData.iDataListening = aDataListening; + iBackendData.iPropertyListening = aPropertyListening; + } + +/** + * Deriving class implements this if it requires property change notification + */ +void CSensorBackendSym::HandlePropertyChange(CSensrvChannel &/*aChannel*/, const TSensrvProperty &/*aChangedProperty*/) + { + // No implementation required in this class + } + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/sensorbackendsym.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/sensorbackendsym.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,201 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 SENSORBACKENDSYM_H +#define SENSORBACKENDSYM_H + +// QT Mobility Sensor API headers +#include + +// Standard Symbian Headers +#include +#include + +// Sensor client headers +// Common Sensor Headers +#include +#include +#include +#include +#include +#include + +// Internal Headers +#include "sensorbackenddatasym.h" + +QTM_USE_NAMESPACE + +class CSensorBackendSym : public CBase, public QSensorBackend, public MSensrvDataListener, public MSensrvPropertyListener + { + public: + // From QSensorBackend + + /** + * start is used to start listening to the sensor + */ + virtual void start(); + + /* + * stop is used to stop listening to the sensor + */ + virtual void stop(); + + /* + * Backend Destructor + */ + ~CSensorBackendSym(); + + // From MSensrvDataListener + + /* + * DataReceived is called by the Sensor Server when ever data is available in the + * sensor buffer + */ + void DataReceived(CSensrvChannel &aChannel, TInt aCount, TInt aDataLost); + + /** + * DataError is called to indicate an error, fatal errors are inrecoverable + */ + void DataError(CSensrvChannel &aChannel, TSensrvErrorSeverity aError); + + /* + * GetDataListenerInterfaceL is used to get a pointer to the sensor server backend + * It is not required for QT Mobility Sensors API + */ + void GetDataListenerInterfaceL(TUid aInterfaceUid, TAny *&aInterface); + + // From MSensrvProeprtyListener + + /** + * Notification about the changed value of a property. + */ + void PropertyChanged (CSensrvChannel &aChannel, const TSensrvProperty &aChangedProperty); + + /** + * Property listening failed. + */ + void PropertyError (CSensrvChannel &aChannel, TSensrvErrorSeverity aError); + + /** + * Set a listener for the indication, if the setting of the property succeeded. + */ + void SetPropertySuccessIndicationChanged (TSetPropertySuccessIndicator aIndication); + + /* + * Returns a pointer to a specified interface extension - to allow future extension of this class without breaking binary compatibility. + */ + void GetPropertyListenerInterfaceL (TUid aInterfaceUid, TAny *&aInterface); + + /* + * To enable/disable data/property listening + */ + void SetListening(TBool aDataListening, TBool aPropertyListening); + + protected: + + /* + * Default C++ constructor + */ + CSensorBackendSym(QSensor *sensor); + + /** + * Deriving class implements this if it requires property change notification + */ + virtual void HandlePropertyChange(CSensrvChannel &aChannel, const TSensrvProperty &aChangedProperty); + + /* + * RecvData is used to retrieve the sensor reading from sensor server + * It is implemented the the sensor concrete class and handles sensor specific + * reading data and provides conversion and utility code + */ + virtual void RecvData(CSensrvChannel &aChannel) = 0; + + /* + * InitializeL is used to create and init the sensor server objects + */ + void InitializeL(); + + /* + * Close is used to release all the sensor server objects + * May change when error handling is supported by mobility apis + */ + TInt Close(); + + /* + * FindSensorL is used to find if a specific sensor is available on the + * device, if FindSensorL leaves then the sensor is not supported + */ + void FindSensorL(); + + /* + * OpenSensorChannelL is used to open the channel for sensor as indicated by + * iPrivateData.iChannelInfo + */ + void OpenSensorChannelL(); + + /* + * CloseSensorChannel is used to close the sensor channel and release the + * resources + */ + void CloseSensorChannelL(); + + /* + * Used to start listening to the sensor + */ + void StartListeningL(); + + /* + * Used to stop listening to the sensor + */ + void StopListeningL(); + + /* + * timerEvent is called when timer expires, this is used for supporting time based + * sensor update policies + */ + void timerEvent(QTimerEvent *aTimerEvent); + + protected: + TSensorBackendDataSym iBackendData; + }; + +#endif //SENSORBACKENDSYM_H + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/symbian.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/symbian.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,8 @@ +HEADERS += proximitysensorsym.h\ + ambientlightsensorsym.h \ + sensorbackendsym.h \ + sensorbackenddatasym.h \ +SOURCES += sensorbackendsym.cpp \ + proximitysensorsym.cpp \ + ambientlightsensorsym.cpp \ + main.cpp \ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/symbian.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/symbian.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,66 @@ +INCLUDEPATH+=../../../src/sensors +INCLUDEPATH+=../../sensors \epoc32\include\osextensions + +include(version.pri) +include(symbian.pri) +include(../../../common.pri) + +TEMPLATE = lib +CONFIG += plugin +TARGET = $$qtLibraryTarget(sensors_sym) + +SOURCES += \ + sensorbackendsym.cpp \ + proximitysensorsym.cpp \ + ambientlightsensorsym.cpp \ + magnetometersensorsym.cpp \ + compasssym.cpp \ + accelerometersym.cpp \ + orientationsym.cpp \ + main.cpp +PRIVATE_HEADERS += \ + sensorbackendsym.h \ + sensorbackenddatasym.h \ + proximitysensorsym.h \ + ambientlightsensorsym.h \ + magnetometersensorsym.h \ + compasssym.h \ + accelerometersym.h \ + orientationsym.h + +HEADERS = $$PRIVATE_HEADERS + +#SYSTEM_INCLUDE += ../../sensors + +LIBS += -lqtsensors +QT=core +CONFIG+=mobility +MOBILITY+=sensors +DEFINES+=QT_MAKEDLL + +#QMAKE_CXXFLAGS+=-Werror + +#MOC_DIR = moc/ +#OBJECTS_DIR = obj/ + +#DESTDIR = $$OUTPUT_DIR/bin/examples/sensors +#target.path = $$SOURCE_DIR/plugins/sensors +#INSTALLS += target +symbian { + TARGET.CAPABILITY = ALL -TCB + LIBS += -lSensrvClient + LIBS += -lsensrvutil +} +symbian: { +# Load predefined include paths (e.g. QT_PLUGINS_BASE_DIR) to be used in the pro-files +load(data_caging_paths) + +# Defines plugin files into Symbian .pkg package +pluginDep.sources = sensors_sym.dll +pluginDep.path = $$QT_PLUGINS_BASE_DIR/sensors +DEPLOYMENT += pluginDep +} + +target.path += $$[QT_INSTALL_PLUGINS]/sensors +INSTALLS += target + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/plugins/sensors/symbian/version.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/plugins/sensors/symbian/version.pri Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1 @@ +VERSION = 0.0.2 diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/qtmobility.pro --- a/qtmobility/qtmobility.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/qtmobility.pro Mon May 03 13:18:40 2010 +0300 @@ -32,42 +32,55 @@ } } -#lessThan(QT_MAJOR_VERSION, 4) { -# error(Qt Mobility requires Qt 4.6 or higher. Qt $${QT_VERSION} was found.); -#} +lessThan(QT_MAJOR_VERSION, 4) { + error(Qt Mobility requires Qt 4.6 or higher. Qt $${QT_VERSION} was found.); +} -#contains(QT_MAJOR_VERSION, 4):lessThan(QT_MINOR_VERSION, 6) { -# error(Qt Mobility requires Qt 4.6 or higher. Qt $${QT_VERSION} was found.); -#} +contains(QT_MAJOR_VERSION, 4):lessThan(QT_MINOR_VERSION, 6) { + error(Qt Mobility requires Qt 4.6 or higher. Qt $${QT_VERSION} was found.); +} -#generate prf file for Qt integration -#PRF_OUTPUT=$${QT_MOBILITY_BUILD_TREE}/features/mobility.prf +# MCL builds for Symbian do not run configure and require some manual setup steps. +# This test permits SD builds to skip installation of mobility.prf from within qmake. +# It is installed in a separate step. MCL builds for SD must set the +# MOBILITY_SD_MCL_BUILD flag to yes. +!contains(MOBILITY_SD_MCL_BUILD, yes) { + #generate prf file for Qt integration + PRF_OUTPUT=$${QT_MOBILITY_BUILD_TREE}/features/mobility.prf -#system(echo MOBILITY_PREFIX=$${QT_MOBILITY_PREFIX} > $$PRF_OUTPUT) -#system(echo MOBILITY_INCLUDE=$${QT_MOBILITY_INCLUDE} >> $$PRF_OUTPUT) -#system(echo MOBILITY_LIB=$${QT_MOBILITY_LIB} >> $$PRF_OUTPUT) + system(echo MOBILITY_PREFIX=$${QT_MOBILITY_PREFIX} > $$PRF_OUTPUT) + system(echo MOBILITY_INCLUDE=$${QT_MOBILITY_INCLUDE} >> $$PRF_OUTPUT) + system(echo MOBILITY_LIB=$${QT_MOBILITY_LIB} >> $$PRF_OUTPUT) -#MOD_QT_MOBILITY_SOURCE_TREE=$$replace(QT_MOBILITY_SOURCE_TREE, /, \\) -#unix:!symbian:system(cat $${QT_MOBILITY_SOURCE_TREE}/features/mobility.prf.template >> $$PRF_OUTPUT) -#win32:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT) -#symbian:system(type $${MOD_QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT) + unix:!symbian:system(cat $${QT_MOBILITY_SOURCE_TREE}/features/mobility.prf.template >> $$PRF_OUTPUT) + win32:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT) + symbian:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT) -#MOD_QT_MOBILITY_BUILD_TREE=$$replace(QT_MOBILITY_BUILD_TREE, /, \\) -#INSTALL_DATA=$$[QT_INSTALL_DATA] -#MOD_QT_INSTALL_DATA=$$replace(INSTALL_DATA, /, \\) -#symbian does not generate make install rule. we have to copy prf manually -#symbian:system(copy $${MOD_QT_MOBILITY_BUILD_TREE}\features\mobility.prf $${MOD_QT_INSTALL_DATA}\mkspecs\features) + #symbian does not generate make install rule. we have to copy prf manually + symbian { + FORMATDIR=$$[QT_INSTALL_DATA]\mkspecs\features + FORMATDIR=$$replace(FORMATDIR,/,\\ ) + system(copy "$${QT_MOBILITY_BUILD_TREE}\features\mobility.prf $$FORMATDIR") + } -# install feature file -#feature.path = $$[QT_INSTALL_DATA]/mkspecs/features -#feature.files = $$QT_MOBILITY_BUILD_TREE/features/mobility.prf -#INSTALLS += feature + # install feature file + feature.path = $$[QT_INSTALL_DATA]/mkspecs/features + feature.files = $$QT_MOBILITY_BUILD_TREE/features/mobility.prf + INSTALLS += feature +} TEMPLATE = subdirs CONFIG+=ordered -SUBDIRS += src tools plugins +SUBDIRS += src + +contains(build_tools, yes) { + SUBDIRS += tools +} + +SUBDIRS += plugins + #built documentation snippets, if enabled contains(build_docs, yes) { SUBDIRS += doc @@ -76,17 +89,11 @@ OTHER_FILES += doc/src/*.qdoc doc/src/examples/*.qdoc } -#contains(build_unit_tests, yes):SUBDIRS+=tests -#contains(build_examples, yes):SUBDIRS+=examples +contains(build_unit_tests, yes):SUBDIRS+=tests +contains(build_examples, yes):SUBDIRS+=examples # install Qt style headers qtmheaders.path = $${QT_MOBILITY_INCLUDE} qtmheaders.files = $${QT_MOBILITY_BUILD_TREE}/include/* INSTALLS += qtmheaders - -symbian { -BLD_INF_RULES.prj_exports += "./rom/qtmobility.iby $$CORE_MW_LAYER_IBY_EXPORT_PATH(qtmobility.iby)" -BLD_INF_RULES.prj_exports += "./rom/qtmobilityresources.iby $$CORE_ADAPT_LAYER_IBY_EXPORT_PATH(language/mw/qtmobilityresources.iby)" -BLD_INF_RULES.prj_exports += "./rom/qtmobility_stub.sis /epoc32/data/z/system/install/qtmobility_stub.sis" -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/rom/qtmobility.iby --- a/qtmobility/rom/qtmobility.iby Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,73 +0,0 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU Lesser General Public License as published by -* the Free Software Foundation, version 2.1 of the License. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU Lesser General Public License for more details. -* -* You should have received a copy of the GNU Lesser General Public License -* along with this program. If not, -* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". -* -* Description: -* -*/ - -#ifndef __QT_MOBILITY_IBY__ -#define __QT_MOBILITY_IBY__ - -#include - -#define UPGRADABLE_APP_REG_RSC(NAME) data=DATAZ_\PRIVATE\10003A3F\IMPORT\APPS\ ## NAME ## _reg.rsc Private\10003a3f\import\apps\ ## NAME ## _reg.rsc - -//Stub sis -data=ZSYSTEM\install\qtmobility_stub.sis \system\install\qtmobility_stub.sis - -//Core -file=ABI_DIR\BUILD_DIR\qtbearer.dll SHARED_LIB_DIR\qtbearer.dll PAGED -file=ABI_DIR\BUILD_DIR\qtlocation.dll SHARED_LIB_DIR\qtlocation.dll PAGED -file=ABI_DIR\BUILD_DIR\qtpublishsubscribe.dll SHARED_LIB_DIR\qtpublishsubscribe.dll PAGED -file=ABI_DIR\BUILD_DIR\pspathmapperserver.exe PROGRAMS_DIR\pspathmapperserver.exe PAGED -UPGRADABLE_APP_REG_RSC(pspathmapperserver) -file=ABI_DIR\BUILD_DIR\qtserviceframework.dll SHARED_LIB_DIR\qtserviceframework.dll PAGED -file=ABI_DIR\BUILD_DIR\sfwdatabasemanagerserver.dll SHARED_LIB_DIR\sfwdatabasemanagerserver.dll PAGED -file=ABI_DIR\BUILD_DIR\sfwdatabasemanagerserver.exe PROGRAMS_DIR\sfwdatabasemanagerserver.exe PAGED -file=ABI_DIR\BUILD_DIR\qtsysteminfo.dll SHARED_LIB_DIR\qtsysteminfo.dll PAGED -file=ABI_DIR\BUILD_DIR\qtmessaging.dll SHARED_LIB_DIR\qtmessaging.dll PAGED - -/* -file=ABI_DIR\BUILD_DIR\qtmedia.dll SHARED_LIB_DIR\qtmedia.dll PAGED -file=ABI_DIR\BUILD_DIR\qtsensors.dll SHARED_LIB_DIR\qtsensors.dll PAGED -*/ - -//Plugins -/* -file=ABI_DIR\BUILD_DIR\m3u.dll SHARED_LIB_DIR\m3u.dll PAGED -data=\epoc32\data\z\resource\qt\plugins\playlistformats\m3u.qtplugin resource\qt\plugins\playlistformats\m3u.qtplugin -file=ABI_DIR\BUILD_DIR\qtmobilitymultimediaengine.dll SHARED_LIB_DIR\qtmobilitymultimediaengine.dll PAGED -data=\epoc32\data\z\resource\qt\plugins\mediaservice\QtMobilityMultimediaEngine.qtplugin resource\qt\plugins\mediaservice\QtMobilityMultimediaEngine.qtplugin -*/ - -//Tools -S60_APP_EXE(servicefw) -UPGRADABLE_APP_REG_RSC(servicefw) - -S60_APP_EXE(servicexmlgen) -UPGRADABLE_APP_REG_RSC(servicexmlgen) - -S60_APP_EXE(qcrmlgen) -UPGRADABLE_APP_REG_RSC(qcrmlgen) - -S60_APP_EXE(vsexplorer) -UPGRADABLE_APP_REG_RSC(vsexplorer) - -S60_APP_EXE(icheck) -UPGRADABLE_APP_REG_RSC(icheck) - -#endif // __QT_MOBILITY_IBY__ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/rom/qtmobility_stub.pkg --- a/qtmobility/rom/qtmobility_stub.pkg Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ - -; Language -&EN - -; SIS header: name, uid, version -#{"QtMobility"},(0x2002AC89),1,0,0,TYPE=SA - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/rom/qtmobility_stub.sis Binary file qtmobility/rom/qtmobility_stub.sis has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/rom/qtmobilityresources.iby --- a/qtmobility/rom/qtmobilityresources.iby Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU Lesser General Public License as published by -* the Free Software Foundation, version 2.1 of the License. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU Lesser General Public License for more details. -* -* You should have received a copy of the GNU Lesser General Public License -* along with this program. If not, -* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". -* -* Description: -* -*/ - -#ifndef __QT_MOBILITYRESOURCES_IBY__ -#define __QT_MOBILITYRESOURCES_IBY__ - -#include - -//Core -S60_APP_RESOURCE(pspathmapperserver) - -//Tools -S60_APP_RESOURCE(servicefw) -S60_APP_RESOURCE(servicexmlgen) - -S60_APP_RESOURCE(qcrmlgen) -S60_APP_RESOURCE(vsexplorer) -S60_APP_RESOURCE(icheck) - -#endif // __QT_MOBILITYRESOURCES_IBY__ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/3rdparty/icd-network-wlan/libicd-network-wlan-dev.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/3rdparty/icd-network-wlan/libicd-network-wlan-dev.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,140 @@ +#ifndef WLAN_DEV_H +#define WLAN_DEV_H + +/** + * Copyright (C) 2007,2008 Nokia Corporation. All rights reserved. + * + * @author jukka.rissanen@nokia.com + * + * @file libicd-network-wlan-dev.h + */ + +#include +#include +#include +#include + + +/* Difference between network attributes value and wlan capabilities: + * + * WLAN + * Network capability Combined + * LSB attribute (from wlancond.h) + * ---- --------- ---------- -------- + * 0 mode mode + * 1 mode mode + * 2 mode mode + * 3 autoconnect attempt method + * 4 encrypt method method + * 5 encrypt method method + * 6 encrypt method method + * 7 encrypt method WPA2 + * 8 WPA2 algorithm + * 9 WPS algorithm + * 10 WPS PIN algorithm + * 11 WPS push button algorithm + * 12 WPS configured WPS + * 13 WPS PIN + * 14 WPS push button + * 15 WPS configured + * 16 rate + * 17 rate + * 18 rate + * 19 rate + * 20 rate + * 21 rate + * 22 rate + * 23 iap name rate iap name + * 24 silent rate silent + * 25 rate + * 26 + * 27 + * 28 security algorithm + * 29 always online security algorithm always online + * 30 security algorithm + * 31 security algorithm + * MSB + * + * + * Same view from different angle. + * + * MSB LSB (of 32 bits) + * 10987654321098765432109876543210 + * + * WWWWaaaaWmmmmmmm Combined format + * PPPPllllPeeeeooo + * SSSSggggAttttddd + * cbp oooo2hhhheee + * fti oooo + * gnn dddd + * + * aaaa Wmmmm mmm Capability format + * llll Peeee ooo + * gggg Atttt ddd + * oooo 2hhhh eee + * oooo + * dddd + * + * + * Note that WPS bits in nwattrs are moved towards MSB because algorithm + * was there first and we do not want to break binary compatibility. + */ + +/* capability bits inside network attributes var */ +#define NWATTR_WPS_MASK 0x0000F000 +#define NWATTR_ALGORITHM_MASK 0x00000F00 +#define NWATTR_WPA2_MASK 0x00000080 +#define NWATTR_METHOD_MASK 0x00000078 +#define NWATTR_MODE_MASK 0x00000007 + +#define CAP_LOCALMASK 0x0FFFE008 + +/* how much to shift between capability and network attributes var */ +#define CAP_SHIFT_WPS 3 +#define CAP_SHIFT_ALGORITHM 20 +#define CAP_SHIFT_WPA2 1 +#define CAP_SHIFT_METHOD 1 +#define CAP_SHIFT_MODE 0 +#define CAP_SHIFT_ALWAYS_ONLINE 26 + +/* ------------------------------------------------------------------------- */ +/* From combined to capability */ +static inline dbus_uint32_t nwattr2cap(guint nwattrs, dbus_uint32_t *cap) +{ + guint oldval = *cap; + + *cap &= CAP_LOCALMASK; /* clear old capabilities */ + *cap |= + ((nwattrs & ICD_NW_ATTR_ALWAYS_ONLINE) >> CAP_SHIFT_ALWAYS_ONLINE) | + ((nwattrs & NWATTR_WPS_MASK) >> CAP_SHIFT_WPS) | + ((nwattrs & NWATTR_ALGORITHM_MASK) << CAP_SHIFT_ALGORITHM) | + ((nwattrs & NWATTR_WPA2_MASK) << CAP_SHIFT_WPA2) | + ((nwattrs & NWATTR_METHOD_MASK) << CAP_SHIFT_METHOD) | + (nwattrs & NWATTR_MODE_MASK); + + return oldval; +} + + +/* ------------------------------------------------------------------------- */ +/* From capability to combined */ +static inline guint cap2nwattr(dbus_uint32_t cap, guint *nwattrs) +{ + guint oldval = *nwattrs; + + *nwattrs &= ~ICD_NW_ATTR_LOCALMASK; /* clear old capabilities */ + *nwattrs |= +#ifdef WLANCOND_WPS_MASK + ((cap & WLANCOND_WPS_MASK) << CAP_SHIFT_WPS) | +#endif + ((cap & (WLANCOND_ENCRYPT_ALG_MASK | + WLANCOND_ENCRYPT_GROUP_ALG_MASK)) >> CAP_SHIFT_ALGORITHM)| + ((cap & WLANCOND_ENCRYPT_WPA2_MASK) >> CAP_SHIFT_WPA2) | + ((cap & WLANCOND_ENCRYPT_METHOD_MASK) >> CAP_SHIFT_METHOD) | + (cap & WLANCOND_MODE_MASK); + + return oldval; +} + + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/bearer.pro --- a/qtmobility/src/bearer/bearer.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/bearer.pro Mon May 03 13:18:40 2010 +0300 @@ -19,6 +19,13 @@ qnetworkconfiguration.cpp symbian: { + contains (occ_enabled, yes) { + message("Building with OCC enabled") + DEFINES += OCC_FUNCTIONALITY_AVAILABLE=1 + LIBS += -lextendedconnpref + } else { + message("Building without OCC support") + } contains(snap_enabled, yes) { message("Building with SNAP support") DEFINES += SNAP_FUNCTIONALITY_AVAILABLE=1 @@ -54,32 +61,33 @@ QtBearerManagement.path = /sys/bin DEPLOYMENT += QtBearerManagement } else { - maemo6 { - CONFIG += link_pkgconfig + maemo6|maemo5 { + CONFIG += link_pkgconfig + QT += dbus - exists(../debug) { - message("Enabling debug messages.") - DEFINES += BEARER_MANAGEMENT_DEBUG - } + exists(../debug) { + message("Enabling debug messages.") + DEFINES += BEARER_MANAGEMENT_DEBUG + } HEADERS += qnetworksession_maemo_p.h \ qnetworkconfigmanager_maemo_p.h \ qnetworkconfiguration_maemo_p.h SOURCES += qnetworkconfigmanager_maemo.cpp \ - qnetworksession_maemo.cpp + qnetworksession_maemo.cpp - documentation.path = $$QT_MOBILITY_PREFIX/doc + documentation.path = $$QT_MOBILITY_PREFIX/doc documentation.files = doc/html - PKGCONFIG += glib-2.0 dbus-glib-1 gconf-2.0 osso-ic conninet + PKGCONFIG += glib-2.0 dbus-glib-1 gconf-2.0 osso-ic conninet - CONFIG += create_pc create_prl - QMAKE_PKGCONFIG_REQUIRES = glib-2.0 dbus-glib-1 gconf-2.0 osso-ic conninet - pkgconfig.path = $$QT_MOBILITY_LIB/pkgconfig - pkgconfig.files = QtBearer.pc + CONFIG += create_pc create_prl + QMAKE_PKGCONFIG_REQUIRES = glib-2.0 dbus-glib-1 gconf-2.0 osso-ic conninet + pkgconfig.path = $$QT_MOBILITY_LIB/pkgconfig + pkgconfig.files = QtBearer.pc - INSTALLS += pkgconfig documentation + INSTALLS += pkgconfig documentation } else { @@ -142,7 +150,7 @@ } !isEmpty(SDK6) { - LIBS += -framework CoreWLAN + LIBS += -framework CoreWLAN -framework Security DEFINES += MAC_SDK_10_6 } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qcorewlanengine_mac.mm --- a/qtmobility/src/bearer/qcorewlanengine_mac.mm Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qcorewlanengine_mac.mm Mon May 03 13:18:40 2010 +0300 @@ -49,11 +49,14 @@ #include +#include #if defined(MAC_SDK_10_6) //not much functionality without this #include #include #include #include +#include + #endif #include @@ -69,7 +72,7 @@ NSNotificationCenter *center; CWInterface * currentInterface; } -- (void)notificationHandler:(NSNotification *)notification; +- (void)notificationHandler;//:(NSNotification *)notification; - (void)remove; @end @@ -78,7 +81,7 @@ { [super init]; center = [NSNotificationCenter defaultCenter]; - currentInterface = [CWInterface interface]; + currentInterface = [CWInterface interfaceWithName:nil]; [center addObserver:self selector:@selector(notificationHandler:) name:kCWLinkDidChangeNotification object:nil]; [center addObserver:self selector:@selector(notificationHandler:) name:kCWPowerDidChangeNotification object:nil]; @@ -97,7 +100,7 @@ [center removeObserver:self]; } -- (void)notificationHandler:(NSNotification *)notification +- (void)notificationHandler;//:(NSNotification *)notification { QTM_NAMESPACE::QCoreWlanEngine::instance()->requestUpdate(); } @@ -165,10 +168,17 @@ getAllScInterfaces(); startNetworkChangeLoop(); #ifdef MAC_SDK_10_6 - QNSListener *listener; - listener = [[QNSListener alloc] init]; + if([[CWInterface supportedInterfaces] count] > 0 ) { + QNSListener *listener; + listener = [[QNSListener alloc] init]; + hasWifi = true; + } else { + hasWifi = false; + } #endif + getUserConfigurations(); requestUpdate(); + [pool release]; } QCoreWlanEngine::~QCoreWlanEngine() @@ -261,73 +271,143 @@ void QCoreWlanEngine::connectToId(const QString &id) { - NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; QString interfaceString = getInterfaceFromId(id); if(networkInterfaces.value(interfaceString) == "WLAN") { #if defined(MAC_SDK_10_6) + NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; CWInterface *wifiInterface = [CWInterface interfaceWithName: qstringToNSString(interfaceString)]; - CWConfiguration *userConfig = [ wifiInterface configuration]; + + if([wifiInterface power]) { + NSError *err = nil; + NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0]; + + QString wantedSsid = 0; + bool using8021X = false; + + if(getNetworkNameFromSsid(id) != id) { + NSArray *array = [CW8021XProfile allUser8021XProfiles]; + for (NSUInteger i=0; i<[array count]; ++i) { - NSSet *remNets = [userConfig rememberedNetworks]; //CWWirelessProfile - - NSEnumerator *enumerator = [remNets objectEnumerator]; - CWWirelessProfile *wProfile; - NSUInteger index=0; + if(id == nsstringToQString([[array objectAtIndex:i] userDefinedName]) + || id == nsstringToQString([[array objectAtIndex:i] ssid]) ) { + QString thisName = getSsidFromNetworkName(id); + if(thisName.isEmpty()) { + wantedSsid = id; + } else { + wantedSsid = thisName; + } + [params setValue: [array objectAtIndex:i] forKey:kCWAssocKey8021XProfile]; + using8021X = true; + break; + } + } + } - NSDictionary *parametersDict; - NSArray* apArray; + if(!using8021X) { + QString wantedNetwork; + QMapIterator > i(userProfiles); + while (i.hasNext()) { + i.next(); + wantedNetwork = i.key(); + if(id == wantedNetwork) { + wantedSsid = getSsidFromNetworkName(wantedNetwork); + break; + } + } + } - CW8021XProfile *user8021XProfile; - NSError *err; - NSMutableDictionary *params; + NSDictionary *parametersDict = [NSDictionary dictionaryWithObjectsAndKeys: + [NSNumber numberWithBool:YES], kCWScanKeyMerge, + [NSNumber numberWithInteger:100], kCWScanKeyRestTime, + qstringToNSString(wantedSsid), kCWScanKeySSID, + nil]; + - while ((wProfile = [enumerator nextObject])) { //CWWirelessProfile + NSArray *scanArray = [NSMutableArray arrayWithArray:[wifiInterface scanForNetworksWithParameters:parametersDict error:&err]]; + if(!err) { + for(uint row=0; row < [scanArray count]; row++ ) { + CWNetwork *apNetwork = [scanArray objectAtIndex:row]; + if(wantedSsid == nsstringToQString([apNetwork ssid])) { - if(id == nsstringToQString([wProfile ssid])) { - user8021XProfile = nil; - user8021XProfile = [ wProfile user8021XProfile]; + if(!using8021X) { + SecKeychainAttribute attributes[3]; - err = nil; - params = [NSMutableDictionary dictionaryWithCapacity:0]; + NSString *account = [apNetwork ssid]; + NSString *keyKind = @"AirPort network password"; + NSString *keyName = account; + + attributes[0].tag = kSecAccountItemAttr; + attributes[0].data = (void *)[account UTF8String]; + attributes[0].length = [account length]; + + attributes[1].tag = kSecDescriptionItemAttr; + attributes[1].data = (void *)[keyKind UTF8String]; + attributes[1].length = [keyKind length]; - if(user8021XProfile) { - [params setValue: user8021XProfile forKey:kCWAssocKey8021XProfile]; - } else { - [params setValue: [wProfile passphrase] forKey: kCWAssocKeyPassphrase]; - } + attributes[2].tag = kSecLabelItemAttr; + attributes[2].data = (void *)[keyName UTF8String]; + attributes[2].length = [keyName length]; + + SecKeychainAttributeList attributeList = {3,attributes}; - parametersDict = nil; - apArray = [NSMutableArray arrayWithArray:[wifiInterface scanForNetworksWithParameters:parametersDict error:&err]]; + SecKeychainSearchRef searchRef; + OSErr result = SecKeychainSearchCreateFromAttributes(NULL, kSecGenericPasswordItemClass, &attributeList, &searchRef); + + NSString *password = @""; + SecKeychainItemRef searchItem; - if(!err) { + if (SecKeychainSearchCopyNext(searchRef, &searchItem) == noErr) { + UInt32 realPasswordLength; + SecKeychainAttribute attributesW[8]; + attributesW[0].tag = kSecAccountItemAttr; + SecKeychainAttributeList listW = {1,attributesW}; + char *realPassword; + OSStatus status = SecKeychainItemCopyContent(searchItem, NULL, &listW, &realPasswordLength,(void **)&realPassword); - for(uint row=0; row < [apArray count]; row++ ) { - CWNetwork *apNetwork = [apArray objectAtIndex:row]; - if([[apNetwork ssid] compare:[wProfile ssid]] == NSOrderedSame) { + if (status == noErr) { + if (realPassword != NULL) { + + QByteArray pBuf; + pBuf.resize(realPasswordLength); + pBuf.prepend(realPassword); + pBuf.insert(realPasswordLength,'\0'); - bool result = [wifiInterface associateToNetwork: apNetwork parameters:[NSDictionary dictionaryWithDictionary:params] error:&err]; + password = [NSString stringWithUTF8String:pBuf]; + } + } - if(!result) { - emit connectionError(id, ConnectError); + CFRelease(searchItem); + SecKeychainItemFreeContent(&listW, realPassword); } else { - [autoreleasepool release]; - return; + qDebug() << "SecKeychainSearchCopyNext error"; } + [params setValue: password forKey: kCWAssocKeyPassphrase]; + } // end using8021X + + bool result = [wifiInterface associateToNetwork: apNetwork parameters:[NSDictionary dictionaryWithDictionary:params] error:&err]; + + if(!result) { + emit connectionError(id, ConnectError); + } else { + [autoreleasepool release]; + return; } } } + } else { + qDebug() <<"ERROR"<< nsstringToQString([err localizedDescription ]); } - index++; - } - emit connectionError(id, InterfaceLookupError); + emit connectionError(id, InterfaceLookupError); + [autoreleasepool release]; + + } else { + // not wifi + } #endif - } else { - // not wifi } emit connectionError(id, OperationNotSupported); - [autoreleasepool release]; } void QCoreWlanEngine::disconnectFromId(const QString &id) @@ -353,6 +433,7 @@ void QCoreWlanEngine::requestUpdate() { getAllScInterfaces(); + getUserConfigurations(); emit configurationsChanged(); } @@ -361,26 +442,66 @@ return coreWlanEngine(); } +QString QCoreWlanEngine::getSsidFromNetworkName(const QString &name) +{ + QMapIterator > i(userProfiles); + while (i.hasNext()) { + i.next(); + QMap map = i.value(); + QMapIterator ij(i.value()); + while (ij.hasNext()) { + ij.next(); + if(name == i.key()) { + return ij.key(); + } + } + } + return QString(); +} + +QString QCoreWlanEngine::getNetworkNameFromSsid(const QString &ssid) +{ + QMapIterator > i(userProfiles); + while (i.hasNext()) { + i.next(); + QMap map = i.value(); + QMapIterator ij(i.value()); + while (ij.hasNext()) { + ij.next(); + if(ij.key() == ssid) { + return i.key(); + } + } + } + return QString(); +} + QList QCoreWlanEngine::scanForSsids(const QString &interfaceName) { QList foundConfigs; + if(!hasWifi) { + return foundConfigs; + } #if defined(MAC_SDK_10_6) NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; + CWInterface *currentInterface = [CWInterface interfaceWithName:qstringToNSString(interfaceName)]; + QStringList addedConfigs; - CWInterface *currentInterface = [CWInterface interfaceWithName:qstringToNSString(interfaceName)]; if([currentInterface power]) { NSError *err = nil; - NSDictionary *parametersDict = nil; + NSDictionary *parametersDict = [NSDictionary dictionaryWithObjectsAndKeys: + [NSNumber numberWithBool:YES], kCWScanKeyMerge, + [NSNumber numberWithInt:kCWScanTypeFast], kCWScanKeyScanType, // get the networks in the scan cache + [NSNumber numberWithInteger:100], kCWScanKeyRestTime, nil]; NSArray* apArray = [currentInterface scanForNetworksWithParameters:parametersDict error:&err]; - CWNetwork *apNetwork; if(!err) { for(uint row=0; row < [apArray count]; row++ ) { - NSAutoreleasePool *looppool = [[NSAutoreleasePool alloc] init]; + apNetwork = [apArray objectAtIndex:row]; - apNetwork = [apArray objectAtIndex:row]; + QString networkSsid = nsstringToQString([apNetwork ssid]); + QNetworkConfigurationPrivate* cpPriv = new QNetworkConfigurationPrivate(); - QString networkSsid = nsstringToQString([apNetwork ssid]); cpPriv->name = networkSsid; cpPriv->isValid = true; cpPriv->id = networkSsid; @@ -388,32 +509,74 @@ cpPriv->bearer = QLatin1String("WLAN"); cpPriv->type = QNetworkConfiguration::InternetAccessPoint; cpPriv->serviceInterface = QNetworkInterface::interfaceFromName(interfaceName); - + bool known = isKnownSsid(networkSsid); if( [currentInterface.interfaceState intValue] == kCWInterfaceStateRunning) { - QString interfaceSsidString = nsstringToQString( [currentInterface ssid]); - if( cpPriv->name == interfaceSsidString) { + if( cpPriv->name == nsstringToQString( [currentInterface ssid])) { cpPriv->state |= QNetworkConfiguration::Active; } } + if(!cpPriv->state) { - if(isKnownSsid(cpPriv->serviceInterface.name(), networkSsid)) { + if(known) { cpPriv->state = QNetworkConfiguration::Discovered; } else { - cpPriv->state = QNetworkConfiguration::Defined; + cpPriv->state = QNetworkConfiguration::Undefined; } } - if(!cpPriv->state) { - cpPriv->state = QNetworkConfiguration::Undefined; - } if([[apNetwork securityMode ] intValue]== kCWSecurityModeOpen) cpPriv->purpose = QNetworkConfiguration::PublicPurpose; else cpPriv->purpose = QNetworkConfiguration::PrivatePurpose; + foundConfigs.append(cpPriv); - [looppool release]; + addedConfigs << networkSsid; + + } //end scanned row + } + } //end power + + + // add known configurations that are not around. + QMapIterator > i(userProfiles); + while (i.hasNext()) { + i.next(); + QString networkName = i.key(); + + if(!addedConfigs.contains(networkName)) { + QString interfaceName; + QMapIterator ij(i.value()); + while (ij.hasNext()) { + ij.next(); + interfaceName = ij.value(); + } + + QNetworkConfigurationPrivate* cpPriv = new QNetworkConfigurationPrivate(); + cpPriv->name = networkName; + cpPriv->isValid = true; + cpPriv->id = networkName; + cpPriv->internet = true; + cpPriv->bearer = QLatin1String("WLAN"); + cpPriv->type = QNetworkConfiguration::InternetAccessPoint; + cpPriv->serviceInterface = QNetworkInterface::interfaceFromName(interfaceName); + QString ssid = getSsidFromNetworkName(networkName); + if( [currentInterface.interfaceState intValue] == kCWInterfaceStateRunning) { + if( ssid == nsstringToQString( [currentInterface ssid])) { + cpPriv->state |= QNetworkConfiguration::Active; + } } + + if( addedConfigs.contains(ssid)) { + cpPriv->state |= QNetworkConfiguration::Discovered; + } + + if(!cpPriv->state) { + cpPriv->state = QNetworkConfiguration::Defined; + } + + foundConfigs.append(cpPriv); } } + [autoreleasepool drain]; #else Q_UNUSED(interfaceName); @@ -424,27 +587,29 @@ bool QCoreWlanEngine::isWifiReady(const QString &wifiDeviceName) { #if defined(MAC_SDK_10_6) - CWInterface *defaultInterface = [CWInterface interfaceWithName: qstringToNSString(wifiDeviceName)]; - if([defaultInterface power]) - return true; + if([[CWInterface supportedInterfaces] count] > 0 ) { + CWInterface *defaultInterface = [CWInterface interfaceWithName: qstringToNSString(wifiDeviceName)]; + if([defaultInterface power]) + return true; + } #else Q_UNUSED(wifiDeviceName); #endif return false; } -bool QCoreWlanEngine::isKnownSsid(const QString &interfaceName, const QString &ssid) +bool QCoreWlanEngine::isKnownSsid( const QString &ssid) { #if defined(MAC_SDK_10_6) - CWInterface *wifiInterface = [CWInterface interfaceWithName: qstringToNSString(interfaceName)]; - CWConfiguration *userConfig = [wifiInterface configuration]; - NSSet *remNets = [userConfig rememberedNetworks]; - for (CWWirelessProfile *wProfile in remNets) { - if(ssid == nsstringToQString([wProfile ssid])) + QMapIterator > i(userProfiles); + while (i.hasNext()) { + i.next(); + QMap map = i.value(); + if(map.keys().contains(ssid)) { return true; + } } #else - Q_UNUSED(interfaceName); Q_UNUSED(ssid); #endif return false; @@ -544,8 +709,78 @@ return; } +void QCoreWlanEngine::getUserConfigurations() +{ +#ifdef MAC_SDK_10_6 + NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; + userProfiles.clear(); + + NSArray *wifiInterfaces = [CWInterface supportedInterfaces]; + for(uint row=0; row < [wifiInterfaces count]; row++ ) { + + CWInterface *wifiInterface = [CWInterface interfaceWithName: [wifiInterfaces objectAtIndex:row]]; + NSString *nsInterfaceName = [wifiInterface name]; +// add user configured system networks + SCDynamicStoreRef dynRef = SCDynamicStoreCreate(kCFAllocatorSystemDefault, (CFStringRef)@"Qt corewlan", nil, nil); + NSDictionary *airportPlist = (NSDictionary *)SCDynamicStoreCopyValue(dynRef, (CFStringRef)[[NSString stringWithFormat:@"Setup:/Network/Interface/%@/AirPort", nsInterfaceName] autorelease]); + CFRelease(dynRef); + + NSDictionary *prefNetDict = [airportPlist objectForKey:@"PreferredNetworks"]; + + NSArray *thisSsidarray = [prefNetDict valueForKey:@"SSID_STR"]; + for(NSString *ssidkey in thisSsidarray) { + QString thisSsid = nsstringToQString(ssidkey); + if(!userProfiles.contains(thisSsid)) { + QMap map; + map.insert(thisSsid, nsstringToQString(nsInterfaceName)); + userProfiles.insert(thisSsid, map); + } + } + CFRelease(airportPlist); + + // 802.1X user profiles + QString userProfilePath = QDir::homePath() + "/Library/Preferences/com.apple.eap.profiles.plist"; + NSDictionary* eapDict = [[NSDictionary alloc] initWithContentsOfFile:qstringToNSString(userProfilePath)]; + NSString *profileStr= @"Profiles"; + NSString *nameStr = @"UserDefinedName"; + NSString *networkSsidStr = @"Wireless Network"; + for (id profileKey in eapDict) { + if ([profileStr isEqualToString:profileKey]) { + NSDictionary *itemDict = [eapDict objectForKey:profileKey]; + for (id itemKey in itemDict) { + + NSInteger dictSize = [itemKey count]; + id objects[dictSize]; + id keys[dictSize]; + + [itemKey getObjects:objects andKeys:keys]; + QString networkName; + QString ssid; + for(int i = 0; i < dictSize; i++) { + if([nameStr isEqualToString:keys[i]]) { + networkName = nsstringToQString(objects[i]); + } + if([networkSsidStr isEqualToString:keys[i]]) { + ssid = nsstringToQString(objects[i]); + } + if(!userProfiles.contains(networkName) + && !ssid.isEmpty()) { + QMap map; + map.insert(ssid, nsstringToQString(nsInterfaceName)); + userProfiles.insert(networkName, map); + } + } + } + [itemDict release]; + } + } + [eapDict release]; + } + [autoreleasepool release]; +#endif + +} #include "moc_qcorewlanengine_mac_p.cpp" QTM_END_NAMESPACE - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qcorewlanengine_mac_p.h --- a/qtmobility/src/bearer/qcorewlanengine_mac_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qcorewlanengine_mac_p.h Mon May 03 13:18:40 2010 +0300 @@ -90,14 +90,20 @@ QTimer pollTimer; QList scanForSsids(const QString &interfaceName); - bool isKnownSsid(const QString &interfaceName, const QString &ssid); + bool isKnownSsid(const QString &ssid); QList foundConfigurations; SCDynamicStoreRef storeSession; CFRunLoopSourceRef runloopSource; + bool hasWifi; + +protected: + QMap > userProfiles; void startNetworkChangeLoop(); - + void getUserConfigurations(); + QString getNetworkNameFromSsid(const QString &ssid); + QString getSsidFromNetworkName(const QString &name); }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qgenericengine.cpp --- a/qtmobility/src/bearer/qgenericengine.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qgenericengine.cpp Mon May 03 13:18:40 2010 +0300 @@ -175,7 +175,7 @@ if (interface.flags() & QNetworkInterface::IsLoopBack) continue; - // ignore WLAN interface handled in seperate engine + // ignore WLAN interface handled in separate engine if (qGetInterfaceType(interface.name()) == "WLAN") continue; @@ -198,7 +198,7 @@ else cpPriv->bearer = qGetInterfaceType(interface.name()); - if (interface.flags() & QNetworkInterface::IsUp) + if((interface.flags() & QNetworkInterface::IsUp) && !interface.addressEntries().isEmpty()) cpPriv->state |= QNetworkConfiguration::Active; configurationInterface[identifier] = interface.name(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworkconfigmanager.cpp --- a/qtmobility/src/bearer/qnetworkconfigmanager.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworkconfigmanager.cpp Mon May 03 13:18:40 2010 +0300 @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** @@ -43,7 +43,7 @@ #ifdef Q_OS_SYMBIAN #include "qnetworkconfigmanager_s60_p.h" -#elif Q_WS_MAEMO_6 +#elif (defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5)) #include "qnetworkconfigmanager_maemo_p.h" #else #include "qnetworkconfigmanager_p.h" @@ -162,6 +162,8 @@ sockets. \value DataStatistics If this flag is set QNetworkSession can provide statistics about transmitted and received data. + \value NetworkSessionRequired If this flag is set the platform requires that a network + session is created before network operations can be performed. */ /*! @@ -234,10 +236,9 @@ { QList result; QNetworkConfigurationManagerPrivate* conPriv = connManager(); - QList cpsIdents = conPriv->accessPointConfigurations.keys(); //find all InternetAccessPoints - foreach( QString ii, cpsIdents) { + foreach (const QString &ii, conPriv->accessPointConfigurations.keys()) { QExplicitlySharedDataPointer p = conPriv->accessPointConfigurations.value(ii); if ( (p->state & filter) == filter ) { @@ -248,8 +249,7 @@ } //find all service networks - cpsIdents = conPriv->snapConfigurations.keys(); - foreach( QString ii, cpsIdents) { + foreach (const QString &ii, conPriv->snapConfigurations.keys()) { QExplicitlySharedDataPointer p = conPriv->snapConfigurations.value(ii); if ( (p->state & filter) == filter ) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworkconfigmanager.h --- a/qtmobility/src/bearer/qnetworkconfigmanager.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworkconfigmanager.h Mon May 03 13:18:40 2010 +0300 @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** @@ -64,7 +64,8 @@ SystemSessionSupport = 0x00000004, ApplicationLevelRoaming = 0x00000008, ForcedRoaming = 0x00000010, - DataStatistics = 0x00000020 + DataStatistics = 0x00000020, + NetworkSessionRequired = 0x00000040 }; Q_DECLARE_FLAGS(Capabilities, Capability) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworkconfigmanager_maemo.cpp --- a/qtmobility/src/bearer/qnetworkconfigmanager_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworkconfigmanager_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** @@ -206,15 +206,44 @@ d->deleteConfiguration(id); } - - void QNetworkConfigurationManagerPrivate::registerPlatformCapabilities() { capFlags |= QNetworkConfigurationManager::CanStartAndStopInterfaces; capFlags |= QNetworkConfigurationManager::DataStatistics; capFlags |= QNetworkConfigurationManager::ForcedRoaming; + capFlags |= QNetworkConfigurationManager::NetworkSessionRequired; } +void QNetworkConfigurationManagerPrivate::init() +{ + // Setup DBus Interface for ICD + m_dbusInterface = new QDBusInterface(ICD_DBUS_API_INTERFACE, + ICD_DBUS_API_PATH, + ICD_DBUS_API_INTERFACE, + QDBusConnection::systemBus(), + this); + connect(&m_scanTimer, SIGNAL(timeout()), this, SLOT(finishAsyncConfigurationUpdate())); + m_scanTimer.setSingleShot(true); + + /* Turn on IAP state monitoring */ + startListeningStateSignalsForAllConnections(); + + /* Turn on IAP add/remove monitoring */ + iapMonitor()->setup(this); + + /* We create a default configuration which is a pseudo config */ + QNetworkConfigurationPrivate* cpPriv = new QNetworkConfigurationPrivate(); + cpPriv->name = "UserChoice"; + cpPriv->state = QNetworkConfiguration::Discovered; + cpPriv->isValid = true; + cpPriv->id = OSSO_IAP_ANY; + cpPriv->type = QNetworkConfiguration::UserChoice; + cpPriv->purpose = QNetworkConfiguration::UnknownPurpose; + cpPriv->roamingSupported = false; + cpPriv->manager = this; + QExplicitlySharedDataPointer ptr(cpPriv); + userChoiceConfigurations.insert(cpPriv->id, ptr); +} static inline QString network_attrs_to_security(uint network_attrs) { @@ -262,7 +291,6 @@ QNetworkConfiguration item; item.d = priv; emit configurationRemoved(item); - configChanged(priv.data(), false); } else qWarning("Configuration not found for IAP %s", iap_id.toAscii().data()); } else { @@ -274,9 +302,9 @@ uint32_t QNetworkConfigurationManagerPrivate::getNetworkAttrs(bool is_iap_id, - QString& iap_id, - QString& iap_type, - QString security_method) + const QString& iap_id, + const QString& iap_type, + QString security_method) { guint network_attr = 0; dbus_uint32_t cap = 0; @@ -320,43 +348,80 @@ void QNetworkConfigurationManagerPrivate::addConfiguration(QString& iap_id) { + // Note: When new IAP is created, this function gets called multiple times + // in a row. + // For example: Empty type & name for WLAN was stored into newly + // created IAP data in gconf when this function gets + // called for the first time. + // WLAN type & name are updated into IAP data in gconf + // as soon as WLAN connection is up and running. + // => And this function gets called again. + if (!accessPointConfigurations.contains(iap_id)) { Maemo::IAPConf saved_iap(iap_id); - QString iap_type = saved_iap.value("type").toString(); - if (!iap_type.isEmpty()) { - QNetworkConfigurationPrivate* cpPriv = new QNetworkConfigurationPrivate(); - cpPriv->name = saved_iap.value("name").toString(); - if (cpPriv->name.isEmpty()) - cpPriv->name = iap_id; - cpPriv->isValid = true; - cpPriv->id = iap_id; - cpPriv->iap_type = iap_type; - cpPriv->network_attrs = getNetworkAttrs(true, iap_id, iap_type, QString()); - cpPriv->service_id = saved_iap.value("service_id").toString(); - cpPriv->service_type = saved_iap.value("service_type").toString(); - if (iap_type.startsWith("WLAN")) { - QByteArray ssid = saved_iap.value("wlan_ssid").toByteArray(); - if (ssid.isEmpty()) { - qWarning() << "Cannot get ssid for" << iap_id; - } - } - cpPriv->type = QNetworkConfiguration::InternetAccessPoint; - cpPriv->state = QNetworkConfiguration::Defined; + QString iap_type = saved_iap.value("type").toString(); + QString iap_name = saved_iap.value("name").toString(); + QByteArray ssid = saved_iap.value("wlan_ssid").toByteArray(); + if (!iap_type.isEmpty() && !iap_name.isEmpty()) { + // Check if new IAP is actually Undefined WLAN configuration + // Note: SSID is used as an iap id for Undefined WLAN configurations + // => configuration must be searched using SSID + if (!ssid.isEmpty() && accessPointConfigurations.contains(ssid)) { + QExplicitlySharedDataPointer ptr = accessPointConfigurations.take(ssid); + if (ptr.data()) { + ptr->id = iap_id; + ptr->iap_type = iap_type; + ptr->network_attrs = getNetworkAttrs(true, iap_id, iap_type, QString()); + ptr->network_id = ssid; + ptr->service_id = saved_iap.value("service_id").toString(); + ptr->service_type = saved_iap.value("service_type").toString(); + if (m_onlineIapId == iap_id) { + ptr->state = QNetworkConfiguration::Active; + } else { + ptr->state = QNetworkConfiguration::Defined; + } + accessPointConfigurations.insert(iap_id, ptr); + configurationChanged(ptr.data()); + } + } else { + QNetworkConfigurationPrivate* cpPriv = new QNetworkConfigurationPrivate(); + cpPriv->name = saved_iap.value("name").toString(); + if (cpPriv->name.isEmpty()) + cpPriv->name = iap_id; + cpPriv->isValid = true; + cpPriv->id = iap_id; + cpPriv->iap_type = iap_type; + cpPriv->network_attrs = getNetworkAttrs(true, iap_id, iap_type, QString()); + cpPriv->service_id = saved_iap.value("service_id").toString(); + cpPriv->service_type = saved_iap.value("service_type").toString(); + if (iap_type.startsWith(QLatin1String("WLAN"))) { + QByteArray ssid = saved_iap.value("wlan_ssid").toByteArray(); + if (ssid.isEmpty()) { + qWarning() << "Cannot get ssid for" << iap_id; + } + cpPriv->network_id = ssid; + } + cpPriv->type = QNetworkConfiguration::InternetAccessPoint; + if (m_onlineIapId == iap_id) { + cpPriv->state = QNetworkConfiguration::Active; + } else { + cpPriv->state = QNetworkConfiguration::Defined; + } + cpPriv->manager = this; - QExplicitlySharedDataPointer ptr(cpPriv); - accessPointConfigurations.insert(iap_id, ptr); + QExplicitlySharedDataPointer ptr(cpPriv); + accessPointConfigurations.insert(iap_id, ptr); #ifdef BEARER_MANAGEMENT_DEBUG - qDebug("IAP: %s, name: %s, added to known list", iap_id.toAscii().data(), cpPriv->name.toAscii().data()); + qDebug("IAP: %s, name: %s, added to known list", iap_id.toAscii().data(), cpPriv->name.toAscii().data()); #endif - - QNetworkConfiguration item; - item.d = ptr; - emit configurationAdded(item); - configChanged(ptr.data(), true); - } else { - qWarning("IAP %s does not have \"type\" field defined, skipping this IAP.", iap_id.toAscii().data()); - } + QNetworkConfiguration item; + item.d = ptr; + emit configurationAdded(item); + } + } else { + qWarning("IAP %s does not have \"type\" or \"name\" fields defined, skipping this IAP.", iap_id.toAscii().data()); + } } else { #ifdef BEARER_MANAGEMENT_DEBUG qDebug() << "IAP" << iap_id << "already in db."; @@ -364,7 +429,7 @@ /* Check if the data in db changed and update configuration accordingly */ - QExplicitlySharedDataPointer ptr = accessPointConfigurations.take(iap_id); + QExplicitlySharedDataPointer ptr = accessPointConfigurations.value(iap_id); if (ptr.data()) { Maemo::IAPConf changed_iap(iap_id); QString iap_type = changed_iap.value("type").toString(); @@ -383,24 +448,28 @@ ptr->iap_type = iap_type; update_needed = true; } - if (iap_type.startsWith("WLAN")) { + if (iap_type.startsWith(QLatin1String("WLAN"))) { QByteArray ssid = changed_iap.value("wlan_ssid").toByteArray(); if (ssid.isEmpty()) { qWarning() << "Cannot get ssid for" << iap_id; } if (ptr->network_id != ssid) { - ptr->network_id = ssid; - update_needed = true; + ptr->network_id = ssid; + update_needed = true; } } } - accessPointConfigurations.insert(iap_id, ptr); if (update_needed) { - ptr->type = QNetworkConfiguration::InternetAccessPoint; - if (ptr->state != QNetworkConfiguration::Defined) { + ptr->type = QNetworkConfiguration::InternetAccessPoint; + if (m_onlineIapId == iap_id) { + if (ptr->state < QNetworkConfiguration::Active) { + ptr->state = QNetworkConfiguration::Active; + configurationChanged(ptr.data()); + } + } else if (ptr->state < QNetworkConfiguration::Defined) { ptr->state = QNetworkConfiguration::Defined; - configurationChanged(ptr.data()); - } + configurationChanged(ptr.data()); + } } } else { qWarning("Cannot find IAP %s from current configuration although it should be there.", iap_id.toAscii().data()); @@ -408,45 +477,28 @@ } } - void QNetworkConfigurationManagerPrivate::updateConfigurations() { - /* Contains known network id (like ssid) from storage */ - QMultiHash knownConfigs; - - /* All the scanned access points */ - QList scanned; - - /* Turn on IAP monitoring */ - iapMonitor()->setup(this); + doUpdateConfigurations(); +} - if (firstUpdate) { - /* We create a default configuration which is a pseudo config */ - QNetworkConfigurationPrivate* cpPriv = new QNetworkConfigurationPrivate(); - cpPriv->name = "UserChoice"; - cpPriv->state = QNetworkConfiguration::Discovered; - cpPriv->isValid = true; - cpPriv->id = OSSO_IAP_ANY; - cpPriv->type = QNetworkConfiguration::UserChoice; - cpPriv->purpose = QNetworkConfiguration::UnknownPurpose; - cpPriv->roamingSupported = false; - cpPriv->manager = this; - QExplicitlySharedDataPointer ptr(cpPriv); - userChoiceConfigurations.insert(cpPriv->id, ptr); - } +void QNetworkConfigurationManagerPrivate::doUpdateConfigurations(QList scanned) +{ + /* Contains all known iap_ids from storage */ + QList knownConfigs = accessPointConfigurations.keys(); - /* We return currently configured IAPs in the first run and do the WLAN - * scan in subsequent runs. - */ + /* Contains all known WLAN network ids (like ssid) from storage */ + QMultiHash notDiscoveredWLANConfigs; + QList all_iaps; Maemo::IAPConf::getAll(all_iaps); - foreach (QString iap_id, all_iaps) { + foreach (const QString &iap_id, all_iaps) { QByteArray ssid; Maemo::IAPConf saved_ap(iap_id); bool is_temporary = saved_ap.value("temporary").toBool(); - if (is_temporary) { + if (is_temporary) { #ifdef BEARER_MANAGEMENT_DEBUG qDebug() << "IAP" << iap_id << "is temporary, skipping it."; #endif @@ -454,7 +506,7 @@ } QString iap_type = saved_ap.value("type").toString(); - if (iap_type.startsWith("WLAN")) { + if (iap_type.startsWith(QLatin1String("WLAN"))) { ssid = saved_ap.value("wlan_ssid").toByteArray(); if (ssid.isEmpty()) { qWarning() << "Cannot get ssid for" << iap_id; @@ -465,7 +517,7 @@ SSIDInfo *info = new SSIDInfo; info->iap_id = iap_id; info->wlan_security = security_method; - knownConfigs.insert(ssid, info); + notDiscoveredWLANConfigs.insert(ssid, info); } else if (iap_type.isEmpty()) { qWarning() << "IAP" << iap_id << "network type is not set! Skipping it"; continue; @@ -485,7 +537,7 @@ else cpPriv->name = iap_id; } - cpPriv->isValid = true; + cpPriv->isValid = true; cpPriv->id = iap_id; cpPriv->network_id = ssid; cpPriv->network_attrs = getNetworkAttrs(true, iap_id, iap_type, QString()); @@ -503,35 +555,13 @@ qDebug("IAP: %s, name: %s, ssid: %s, added to known list", iap_id.toAscii().data(), cpPriv->name.toAscii().data(), !ssid.isEmpty() ? ssid.data() : "-"); #endif } else { + knownConfigs.removeOne(iap_id); #ifdef BEARER_MANAGEMENT_DEBUG qDebug("IAP: %s, ssid: %s, already exists in the known list", iap_id.toAscii().data(), !ssid.isEmpty() ? ssid.data() : "-"); #endif } } - if (!firstUpdate) { - QStringList scannedNetworkTypes; - QStringList networkTypesToScan; - QString error; - Maemo::Icd icd(ICD_SHORT_SCAN_TIMEOUT); - - scannedNetworkTypes = icd.scan(ICD_SCAN_REQUEST_ACTIVE, - networkTypesToScan, - scanned, - error); - if (!error.isEmpty()) { - qWarning() << "Network scanning failed" << error; - } else { -#ifdef BEARER_MANAGEMENT_DEBUG - if (!scanned.isEmpty()) - qDebug() << "Scan returned" << scanned.size() << "networks"; - else - qDebug() << "Scan returned nothing."; -#endif - } - } - - /* This is skipped in the first update as scanned size is zero */ if (!scanned.isEmpty()) for (int i=0; i priv = accessPointConfigurations.take(iapid); + QExplicitlySharedDataPointer priv = accessPointConfigurations.value(iapid); if (priv.data()) { - priv->state = QNetworkConfiguration::Discovered; /* Defined is set automagically */ + bool stateChanged = false; + // Check if state is not already Discovered or Active + if (priv->state < QNetworkConfiguration::Discovered) { + priv->state = QNetworkConfiguration::Discovered; /* Defined is set automagically */ + stateChanged = true; + } priv->network_attrs = ap.scan.network_attrs; priv->service_id = ap.scan.service_id; priv->service_type = ap.scan.service_type; priv->service_attrs = ap.scan.service_attrs; - configurationChanged(priv.data()); - accessPointConfigurations.insert(iapid, priv); + if (stateChanged) { + configurationChanged(priv.data()); + } #ifdef BEARER_MANAGEMENT_DEBUG qDebug("IAP: %s, ssid: %s, discovered", iapid.toAscii().data(), priv->network_id.data()); #endif - if (!ap.scan.network_type.startsWith("WLAN")) + if (!ap.scan.network_type.startsWith(QLatin1String("WLAN"))) continue; // not a wlan AP - /* Remove scanned AP from known configurations so that we can + /* Remove scanned AP from discovered WLAN configurations so that we can * emit configurationRemoved signal later */ - QList known_iaps = knownConfigs.values(priv->network_id); + QList known_iaps = notDiscoveredWLANConfigs.values(priv->network_id); rescan_list: if (!known_iaps.isEmpty()) { for (int k=0; kwlan_security == network_attrs_to_security(ap.scan.network_attrs)) { /* Remove IAP from the list */ - knownConfigs.remove(priv->network_id, iap); + notDiscoveredWLANConfigs.remove(priv->network_id, iap); #ifdef BEARER_MANAGEMENT_DEBUG qDebug() << "Removed IAP" << iap->iap_id << "from unknown config"; #endif @@ -588,68 +624,78 @@ } } else { - /* Non saved access point data */ + /* Non saved access point data */ QByteArray scanned_ssid = ap.scan.network_id; - QNetworkConfigurationPrivate* cpPriv = new QNetworkConfigurationPrivate(); - QString hrs = scanned_ssid.data(); + if (!accessPointConfigurations.contains(scanned_ssid)) { + QNetworkConfigurationPrivate* cpPriv = new QNetworkConfigurationPrivate(); + QString hrs = scanned_ssid.data(); - cpPriv->name = ap.network_name.isEmpty() ? hrs : ap.network_name; - cpPriv->isValid = true; - cpPriv->id = scanned_ssid.data(); // Note: id is now ssid, it should be set to IAP id if the IAP is saved - cpPriv->network_id = scanned_ssid; - cpPriv->iap_type = ap.scan.network_type; - cpPriv->network_attrs = ap.scan.network_attrs; - cpPriv->service_id = ap.scan.service_id; - cpPriv->service_type = ap.scan.service_type; - cpPriv->service_attrs = ap.scan.service_attrs; - cpPriv->manager = this; + cpPriv->name = ap.network_name.isEmpty() ? hrs : ap.network_name; + cpPriv->isValid = true; + cpPriv->id = scanned_ssid.data(); // Note: id is now ssid, it should be set to IAP id if the IAP is saved + cpPriv->network_id = scanned_ssid; + cpPriv->iap_type = ap.scan.network_type; + cpPriv->network_attrs = ap.scan.network_attrs; + cpPriv->service_id = ap.scan.service_id; + cpPriv->service_type = ap.scan.service_type; + cpPriv->service_attrs = ap.scan.service_attrs; + cpPriv->manager = this; + + cpPriv->type = QNetworkConfiguration::InternetAccessPoint; + cpPriv->state = QNetworkConfiguration::Undefined; - cpPriv->type = QNetworkConfiguration::InternetAccessPoint; - cpPriv->state = QNetworkConfiguration::Undefined; + QExplicitlySharedDataPointer ptr(cpPriv); + accessPointConfigurations.insert(cpPriv->id, ptr); - QExplicitlySharedDataPointer ptr(cpPriv); - accessPointConfigurations.insert(cpPriv->id, ptr); - -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "IAP with network id" << cpPriv->id << "was found in the scan."; -#endif + #ifdef BEARER_MANAGEMENT_DEBUG + qDebug() << "IAP with network id" << cpPriv->id << "was found in the scan."; + #endif - QNetworkConfiguration item; - item.d = ptr; - emit configurationAdded(item); - } - } + QNetworkConfiguration item; + item.d = ptr; + emit configurationAdded(item); + } else { + knownConfigs.removeOne(scanned_ssid); + } + } + } - - /* Remove non existing iaps since last update */ if (!firstUpdate) { - QHashIterator i(knownConfigs); + // Update Defined status to all defined WLAN IAPs which + // could not be found when access points were scanned + QHashIterator i(notDiscoveredWLANConfigs); while (i.hasNext()) { i.next(); SSIDInfo *iap = i.value(); QString iap_id = iap->iap_id; //qDebug() << i.key() << ": " << iap_id; - QExplicitlySharedDataPointer priv = accessPointConfigurations.take(iap_id); + QExplicitlySharedDataPointer priv = accessPointConfigurations.value(iap_id); if (priv.data()) { - priv->isValid = false; -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "IAP" << iap_id << "was removed as it was not found in scan."; -#endif + // WLAN AccessPoint configuration could not be Discovered + // => Make sure that configuration state is Defined + if (priv->state > QNetworkConfiguration::Defined) { + priv->state = QNetworkConfiguration::Defined; + configurationChanged(priv.data()); + } + } + } - QNetworkConfiguration item; - item.d = priv; - emit configurationRemoved(item); - configChanged(priv.data(), false); - + /* Remove non existing iaps since last update */ + foreach (const QString &oldIface, knownConfigs) { + QExplicitlySharedDataPointer priv = accessPointConfigurations.take(oldIface); + if (priv.data()) { + priv->isValid = false; + QNetworkConfiguration item; + item.d = priv; + emit configurationRemoved(item); //if we would have SNAP support we would have to remove the references //from existing ServiceNetworks to the removed access point configuration - } - } + } + } } - - QMutableHashIterator i(knownConfigs); + QMutableHashIterator i(notDiscoveredWLANConfigs); while (i.hasNext()) { i.next(); SSIDInfo *iap = i.value(); @@ -664,7 +710,6 @@ firstUpdate = false; } - QNetworkConfiguration QNetworkConfigurationManagerPrivate::defaultConfiguration() { /* Here we just return [ANY] request to icd and let the icd decide which @@ -676,39 +721,189 @@ return item; } +void QNetworkConfigurationManagerPrivate::startListeningStateSignalsForAllConnections() +{ + // Start listening ICD_DBUS_API_STATE_SIG signals + m_dbusInterface->connection().connect(ICD_DBUS_API_INTERFACE, + ICD_DBUS_API_PATH, + ICD_DBUS_API_INTERFACE, + ICD_DBUS_API_STATE_SIG, + this, SLOT(connectionStateSignalsSlot(QDBusMessage))); + + // Calling ICD_DBUS_API_STATE_REQ makes sure that initial state will be updated immediately + m_gettingInitialConnectionState = true; + m_dbusInterface->call(ICD_DBUS_API_STATE_REQ); +} + +void QNetworkConfigurationManagerPrivate::connectionStateSignalsSlot(QDBusMessage msg) +{ + QList arguments = msg.arguments(); + if (arguments[1].toUInt() != 0 || arguments.count() < 8) { + return; + } + + QString iapid = arguments[5].toByteArray().data(); + uint icd_connection_state = arguments[7].toUInt(); + + switch (icd_connection_state) { + case ICD_STATE_CONNECTED: + { + QExplicitlySharedDataPointer ptr = accessPointConfigurations.value(iapid); + if (ptr.data()) { + ptr->type = QNetworkConfiguration::InternetAccessPoint; + if (ptr->state != QNetworkConfiguration::Active) { + ptr->state = QNetworkConfiguration::Active; + if (!m_gettingInitialConnectionState) { + configurationChanged(ptr.data()); + if (m_onlineIapId.isEmpty()) { + emit onlineStateChanged(true); + } + } + m_onlineIapId = iapid; + } + } else { + // This gets called when new WLAN IAP is created using Connection dialog + // At this point Undefined WLAN configuration has SSID as iap id + // => Because of that configuration can not be found from + // accessPointConfigurations using correct iap id + emit onlineStateChanged(true); + m_onlineIapId = iapid; + } + break; + } + case ICD_STATE_DISCONNECTED: + { + QExplicitlySharedDataPointer ptr = accessPointConfigurations.value(iapid); + if (ptr.data()) { + ptr->type = QNetworkConfiguration::InternetAccessPoint; + if (ptr->state == QNetworkConfiguration::Active) { + ptr->state = QNetworkConfiguration::Discovered; + if (!m_gettingInitialConnectionState) { + configurationChanged(ptr.data()); + + // Note: If ICD switches used IAP from one to another: + // 1) new IAP is reported to be online first + // 2) old IAP is reported to be offline then + // => Device can be reported to be offline only + // if last known online IAP is reported to be disconnected + if (iapid == m_onlineIapId) { + // It's known that there is only one global ICD connection + // => Because ICD state was reported to be DISCONNECTED, Device is offline + m_onlineIapId.clear(); + emit onlineStateChanged(false); + } + } + } + } else { + // Disconnected IAP was not found from accessPointConfigurations + // => Reason: Online IAP was removed which resulted ICD to disconnect + if (iapid == m_onlineIapId) { + // It's known that there is only one global ICD connection + // => Because ICD state was reported to be DISCONNECTED, Device is offline + m_onlineIapId.clear(); + emit onlineStateChanged(false); + } + } + break; + } + default: + break; + } + + emit iapStateChanged(iapid, icd_connection_state); + + m_gettingInitialConnectionState = false; +} void QNetworkConfigurationManagerPrivate::performAsyncConfigurationUpdate() { - QTimer::singleShot(0, this, SLOT(updateConfigurations())); + if (m_scanGoingOn) { + return; + } + m_scanGoingOn = true; + + m_dbusInterface->connection().connect(ICD_DBUS_API_INTERFACE, + ICD_DBUS_API_PATH, + ICD_DBUS_API_INTERFACE, + ICD_DBUS_API_SCAN_SIG, + this, SLOT(asyncUpdateConfigurationsSlot(QDBusMessage))); + + QDBusMessage msg = m_dbusInterface->call(ICD_DBUS_API_SCAN_REQ, + (uint)ICD_SCAN_REQUEST_ACTIVE); + m_typesToBeScanned = msg.arguments()[0].value(); + m_scanTimer.start(ICD_SHORT_SCAN_TIMEOUT); } +void QNetworkConfigurationManagerPrivate::cancelAsyncConfigurationUpdate() +{ + if (!m_scanGoingOn) { + return; + } + m_scanGoingOn = false; + + if (m_scanTimer.isActive()) { + m_scanTimer.stop(); + } + + m_dbusInterface->connection().disconnect(ICD_DBUS_API_INTERFACE, + ICD_DBUS_API_PATH, + ICD_DBUS_API_INTERFACE, + ICD_DBUS_API_SCAN_SIG, + this, SLOT(asyncUpdateConfigurationsSlot(QDBusMessage))); + + // Stop scanning rounds by calling ICD_DBUS_API_SCAN_CANCEL + // <=> If ICD_DBUS_API_SCAN_CANCEL is not called, new scanning round will + // be started after the module scan timeout. + m_dbusInterface->call(ICD_DBUS_API_SCAN_CANCEL); +} + +void QNetworkConfigurationManagerPrivate::finishAsyncConfigurationUpdate() +{ + cancelAsyncConfigurationUpdate(); + doUpdateConfigurations(m_scanResult); + m_scanResult.clear(); +} + +void QNetworkConfigurationManagerPrivate::asyncUpdateConfigurationsSlot(QDBusMessage msg) +{ + QList arguments = msg.arguments(); + uint icd_scan_status = arguments.takeFirst().toUInt(); + if (icd_scan_status == ICD_SCAN_COMPLETE) { + m_typesToBeScanned.removeOne(arguments[6].toString()); + if (!m_typesToBeScanned.count()) { + finishAsyncConfigurationUpdate(); + } + } else { + Maemo::IcdScanResult scanResult; + scanResult.status = icd_scan_status; + scanResult.timestamp = arguments.takeFirst().toUInt(); + scanResult.scan.service_type = arguments.takeFirst().toString(); + scanResult.service_name = arguments.takeFirst().toString(); + scanResult.scan.service_attrs = arguments.takeFirst().toUInt(); + scanResult.scan.service_id = arguments.takeFirst().toString(); + scanResult.service_priority = arguments.takeFirst().toInt(); + scanResult.scan.network_type = arguments.takeFirst().toString(); + scanResult.network_name = arguments.takeFirst().toString(); + scanResult.scan.network_attrs = arguments.takeFirst().toUInt(); + scanResult.scan.network_id = arguments.takeFirst().toByteArray(); + scanResult.network_priority = arguments.takeFirst().toInt(); + scanResult.signal_strength = arguments.takeFirst().toInt(); + scanResult.station_id = arguments.takeFirst().toString(); + scanResult.signal_dB = arguments.takeFirst().toInt(); + + m_scanResult.append(scanResult); + } +} void QNetworkConfigurationManagerPrivate::cleanup() { + if (m_scanGoingOn) { + m_scanTimer.stop(); + m_dbusInterface->call(ICD_DBUS_API_SCAN_CANCEL); + } iapMonitor()->cleanup(); } - -void QNetworkConfigurationManagerPrivate::configChanged(QNetworkConfigurationPrivate *ptr, bool added) -{ - if (added) { - if (ptr && ptr->state == QNetworkConfiguration::Active) { - onlineConfigurations++; - if (!firstUpdate && onlineConfigurations == 1) - emit onlineStateChanged(true); - } - } else { - if (ptr && ptr->state == QNetworkConfiguration::Active) { - onlineConfigurations--; - if (!firstUpdate && onlineConfigurations == 0) - emit onlineStateChanged(false); - if (onlineConfigurations < 0) - onlineConfigurations = 0; - } - } -} - - #include "qnetworkconfigmanager_maemo.moc" #include "moc_qnetworkconfigmanager_maemo_p.cpp" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworkconfigmanager_maemo_p.h --- a/qtmobility/src/bearer/qnetworkconfigmanager_maemo_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworkconfigmanager_maemo_p.h Mon May 03 13:18:40 2010 +0300 @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** @@ -55,6 +55,8 @@ #include #include +#include +#include #include "qnetworkconfigmanager.h" #include "qnetworkconfiguration_maemo_p.h" @@ -69,10 +71,11 @@ Q_OBJECT public: QNetworkConfigurationManagerPrivate() - : QObject(0), capFlags(0), firstUpdate(true), onlineConfigurations(0) + : QObject(0), capFlags(0), firstUpdate(true), onlineConfigurations(0), m_scanGoingOn(false) { registerPlatformCapabilities(); updateConfigurations(); + init(); } virtual ~QNetworkConfigurationManagerPrivate() @@ -103,10 +106,14 @@ QNetworkConfiguration defaultConfiguration(); + void init(); + QNetworkConfigurationManager::Capabilities capFlags; void registerPlatformCapabilities(); void performAsyncConfigurationUpdate(); + void doUpdateConfigurations(QList scanned = QList()); + void startListeningStateSignalsForAllConnections(); //this table contains an up to date list of all configs at any time. //it must be updated if configurations change, are added/removed or @@ -121,20 +128,36 @@ void deleteConfiguration(QString &iap_id); void addConfiguration(QString &iap_id); void configurationChanged(QNetworkConfigurationPrivate *ptr); - uint32_t getNetworkAttrs(bool is_iap_id, QString& iap_id, - QString& iap_type, QString security_method); - void configChanged(QNetworkConfigurationPrivate *ptr, bool added); + uint32_t getNetworkAttrs(bool is_iap_id, const QString& iap_id, + const QString& iap_type, QString security_method); + + QDBusInterface *m_dbusInterface; + QTimer m_scanTimer; + bool m_gettingInitialConnectionState; + bool m_scanGoingOn; + QStringList m_typesToBeScanned; + QList m_scanResult; + QString m_onlineIapId; + friend class QNetworkSessionPrivate; public slots: void updateConfigurations(); +private slots: + void cancelAsyncConfigurationUpdate(); + void finishAsyncConfigurationUpdate(); + void asyncUpdateConfigurationsSlot(QDBusMessage msg); + void connectionStateSignalsSlot(QDBusMessage msg); + Q_SIGNALS: void configurationAdded(const QNetworkConfiguration& config); void configurationRemoved(const QNetworkConfiguration& config); void configurationUpdateComplete(); void configurationChanged(const QNetworkConfiguration& config); void onlineStateChanged(bool isOnline); + + void iapStateChanged(const QString& iapid, uint icd_connection_state); }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworkconfigmanager_s60_p.cpp --- a/qtmobility/src/bearer/qnetworkconfigmanager_s60_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworkconfigmanager_s60_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** @@ -44,6 +44,16 @@ #include #include #include +#include +#include +#include // For randgen seeding +#include // For randgen seeding + +// #define QT_BEARERMGMT_CONFIGMGR_DEBUG + +#ifdef QT_BEARERMGMT_CONFIGMGR_DEBUG +#include +#endif #ifdef SNAP_FUNCTIONALITY_AVAILABLE #include @@ -64,10 +74,16 @@ static const int KUserChoiceIAPId = 0; QNetworkConfigurationManagerPrivate::QNetworkConfigurationManagerPrivate() - : QObject(0), CActive(CActive::EPriorityIdle), capFlags(0), iFirstUpdate(true), iInitOk(true) + : QObject(0), CActive(CActive::EPriorityIdle), capFlags(0), + iFirstUpdate(true), iInitOk(true), iIgnoringUpdates(false), + iTimeToWait(0), iIgnoreEventLoop(0) { CActiveScheduler::Add(this); + // Seed the randomgenerator + qsrand(QTime(0,0,0).secsTo(QTime::currentTime()) + QCoreApplication::applicationPid()); + iIgnoreEventLoop = new QEventLoop(this); + registerPlatformCapabilities(); TRAPD(error, ipCommsDB = CCommsDatabase::NewL(EDatabaseTypeIAP)); if (error != KErrNone) { @@ -100,12 +116,9 @@ cpPriv->manager = this; QExplicitlySharedDataPointer ptr(cpPriv); userChoiceConfigurations.insert(cpPriv->id, ptr); - updateConfigurations(); updateStatesToSnaps(); - updateAvailableAccessPoints(); // On first time updates synchronously (without WLAN scans) - // Start monitoring IAP and/or SNAP changes in Symbian CommsDB startCommsDatabaseNotifications(); iFirstUpdate = false; @@ -115,22 +128,19 @@ { Cancel(); - QList configIdents = snapConfigurations.keys(); - foreach(QString oldIface, configIdents) { + foreach (const QString &oldIface, snapConfigurations.keys()) { QExplicitlySharedDataPointer priv = snapConfigurations.take(oldIface); priv->isValid = false; priv->id.clear(); } - configIdents = accessPointConfigurations.keys(); - foreach(QString oldIface, configIdents) { + foreach (const QString &oldIface, accessPointConfigurations.keys()) { QExplicitlySharedDataPointer priv = accessPointConfigurations.take(oldIface); priv->isValid = false; priv->id.clear(); } - configIdents = userChoiceConfigurations.keys(); - foreach(QString oldIface, configIdents) { + foreach (const QString &oldIface, userChoiceConfigurations.keys()) { QExplicitlySharedDataPointer priv = userChoiceConfigurations.take(oldIface); priv->isValid = false; priv->id.clear(); @@ -166,6 +176,7 @@ capFlags |= QNetworkConfigurationManager::ForcedRoaming; #endif capFlags |= QNetworkConfigurationManager::DataStatistics; + capFlags |= QNetworkConfigurationManager::NetworkSessionRequired; } void QNetworkConfigurationManagerPrivate::performAsyncConfigurationUpdate() @@ -193,7 +204,7 @@ { QList knownConfigs = accessPointConfigurations.keys(); QList knownSnapConfigs = snapConfigurations.keys(); - + #ifdef SNAP_FUNCTIONALITY_AVAILABLE // S60 version is >= Series60 3rd Edition Feature Pack 2 TInt error = KErrNone; @@ -350,7 +361,7 @@ #endif updateActiveAccessPoints(); - foreach (QString oldIface, knownConfigs) { + foreach (const QString &oldIface, knownConfigs) { //remove non existing IAP QExplicitlySharedDataPointer priv = accessPointConfigurations.take(oldIface); priv->isValid = false; @@ -360,8 +371,7 @@ emit configurationRemoved(item); } // Remove non existing IAP from SNAPs - QList snapConfigIdents = snapConfigurations.keys(); - foreach (QString iface, snapConfigIdents) { + foreach (const QString &iface, snapConfigurations.keys()) { QExplicitlySharedDataPointer priv2 = snapConfigurations.value(iface); // => Check if one of the IAPs of the SNAP is active for (int i=0; iserviceNetworkMembers.count(); i++) { @@ -372,7 +382,7 @@ } } } - foreach (QString oldIface, knownSnapConfigs) { + foreach (const QString &oldIface, knownSnapConfigs) { //remove non existing SNAPs QExplicitlySharedDataPointer priv = snapConfigurations.take(oldIface); priv->isValid = false; @@ -619,7 +629,7 @@ } // Make sure that state of rest of the IAPs won't be Active - foreach (QString iface, inactiveConfigs) { + foreach (const QString &iface, inactiveConfigs) { QExplicitlySharedDataPointer priv = accessPointConfigurations.value(iface); if (priv.data()) { // Configuration is either Defined or Discovered @@ -665,7 +675,7 @@ } // Make sure that state of rest of the IAPs won't be Discovered or Active - foreach (QString iface, unavailableConfigs) { + foreach (const QString &iface, unavailableConfigs) { QExplicitlySharedDataPointer priv = accessPointConfigurations.value(iface); if (priv.data()) { // Configuration is Defined @@ -685,8 +695,7 @@ void QNetworkConfigurationManagerPrivate::updateStatesToSnaps() { // Go through SNAPs and set correct state to SNAPs - QList snapConfigIdents = snapConfigurations.keys(); - foreach (QString iface, snapConfigIdents) { + foreach (const QString &iface, snapConfigurations.keys()) { bool discovered = false; bool active = false; QExplicitlySharedDataPointer priv = snapConfigurations.value(iface); @@ -798,23 +807,45 @@ void QNetworkConfigurationManagerPrivate::RunL() { + if (iIgnoringUpdates) { +#ifdef QT_BEARERMGMT_CONFIGMGR_DEBUG + qDebug("CommsDB event handling postponed (postpone-timer running because IAPs/SNAPs were updated very recently)."); +#endif + return; + } if (iStatus != KErrCancel) { RDbNotifier::TEvent event = STATIC_CAST(RDbNotifier::TEvent, iStatus.Int()); switch (event) { -// case RDbNotifier::EUnlock: /** All read locks have been removed. */ + case RDbNotifier::EUnlock: /** All read locks have been removed. */ case RDbNotifier::ECommit: /** A transaction has been committed. */ case RDbNotifier::ERollback: /** A transaction has been rolled back */ case RDbNotifier::ERecover: /** The database has been recovered */ - // Note that if further database events occur while a client is handling - // a request completion, the notifier records the most significant database - // event and this is signalled as soon as the client issues the next - // RequestNotification() request. - // => Stop recording notifications - stopCommsDatabaseNotifications(); - TRAPD(error, updateConfigurationsL()); - if (error == KErrNone) { - updateStatesToSnaps(); +#ifdef QT_BEARERMGMT_CONFIGMGR_DEBUG + qDebug("CommsDB event (of type RDbNotifier::TEvent) received: %d", iStatus.Int()); +#endif + iIgnoringUpdates = true; + // Other events than ECommit get lower priority. In practice with those events, + // we delay_before_updating methods, whereas + // with ECommit we _update_before_delaying the reaction to next event. + // Few important notes: 1) listening to only ECommit does not seem to be adequate, + // but updates will be missed. Hence other events are reacted upon too. + // 2) RDbNotifier records the most significant event, and that will be returned once + // we issue new RequestNotification, and hence updates will not be missed even + // when we are 'not reacting to them' for few seconds. + if (event == RDbNotifier::ECommit) { + TRAPD(error, updateConfigurationsL()); + if (error == KErrNone) { + updateStatesToSnaps(); + } + waitRandomTime(); + } else { + waitRandomTime(); + TRAPD(error, updateConfigurationsL()); + if (error == KErrNone) { + updateStatesToSnaps(); + } } + iIgnoringUpdates = false; // Wait time done, allow updating again iWaitingCommsDatabaseNotifications = true; break; default: @@ -822,7 +853,6 @@ break; } } - if (iWaitingCommsDatabaseNotifications) { if (!IsActive()) { SetActive(); @@ -882,8 +912,7 @@ } bool online = false; - QList iapConfigs = accessPointConfigurations.keys(); - foreach (QString iface, iapConfigs) { + foreach (const QString &iface, accessPointConfigurations.keys()) { QExplicitlySharedDataPointer priv = accessPointConfigurations.value(iface); if (priv.data()->state == QNetworkConfiguration::Active) { online = true; @@ -912,7 +941,7 @@ unDiscoveredConfigs.removeOne(ident); } } - foreach (QString iface, unDiscoveredConfigs) { + foreach (const QString &iface, unDiscoveredConfigs) { QExplicitlySharedDataPointer priv = accessPointConfigurations.value(iface); if (priv.data()) { // Configuration is Defined @@ -928,6 +957,20 @@ } } +// Waits for 1..4 seconds. +void QNetworkConfigurationManagerPrivate::waitRandomTime() +{ + iTimeToWait = (qAbs(qrand()) % 5) * 1000; + if (iTimeToWait < 1000) { + iTimeToWait = 1000; + } +#ifdef QT_BEARERMGMT_CONFIGMGR_DEBUG + qDebug("QNetworkConfigurationManager waiting random time: %d ms", iTimeToWait); +#endif + QTimer::singleShot(iTimeToWait, iIgnoreEventLoop, SLOT(quit())); + iIgnoreEventLoop->exec(); +} + QExplicitlySharedDataPointer QNetworkConfigurationManagerPrivate::dataByConnectionId(TUint aConnectionId) { QNetworkConfiguration item; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworkconfigmanager_s60_p.h --- a/qtmobility/src/bearer/qnetworkconfigmanager_s60_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworkconfigmanager_s60_p.h Mon May 03 13:18:40 2010 +0300 @@ -63,6 +63,7 @@ #endif class CCommsDatabase; +class QEventLoop; QT_BEGIN_NAMESPACE class QTimer; @@ -118,6 +119,7 @@ void accessPointScanningReady(TBool scanSuccessful, TConnMonIapInfo iapInfo); void startCommsDatabaseNotifications(); void stopCommsDatabaseNotifications(); + void waitRandomTime(); QNetworkConfiguration defaultConfigurationL(); TBool GetS60PlatformVersion(TUint& aMajor, TUint& aMinor) const; @@ -149,8 +151,10 @@ TBool iOnline; TBool iInitOk; TBool iUpdateGoingOn; + TBool iIgnoringUpdates; + TUint iTimeToWait; + QEventLoop* iIgnoreEventLoop; - AccessPointsAvailabilityScanner* ipAccessPointsAvailabilityScanner; friend class QNetworkSessionPrivate; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworkconfiguration.cpp --- a/qtmobility/src/bearer/qnetworkconfiguration.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworkconfiguration.cpp Mon May 03 13:18:40 2010 +0300 @@ -43,7 +43,7 @@ #ifdef Q_OS_SYMBIAN #include "qnetworkconfiguration_s60_p.h" -#elif Q_WS_MAEMO_6 +#elif defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) #include "qnetworkconfiguration_maemo_p.h" #else #include "qnetworkconfiguration_p.h" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworkmanagerservice_p.h --- a/qtmobility/src/bearer/qnetworkmanagerservice_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworkmanagerservice_p.h Mon May 03 13:18:40 2010 +0300 @@ -208,7 +208,7 @@ Q_DECLARE_FLAGS(ApSecurityFlags, ApSecurityFlag); - QNetworkManagerInterfaceAccessPoint(const QString &dbusPathName, QObject *parent = 0); + explicit QNetworkManagerInterfaceAccessPoint(const QString &dbusPathName, QObject *parent = 0); ~QNetworkManagerInterfaceAccessPoint(); QDBusInterface *connectionInterface() const; @@ -241,7 +241,7 @@ public: - QNetworkManagerInterfaceDevice(const QString &deviceObjectPath, QObject *parent = 0); + explicit QNetworkManagerInterfaceDevice(const QString &deviceObjectPath, QObject *parent = 0); ~QNetworkManagerInterfaceDevice(); QString udi() const; @@ -270,7 +270,8 @@ public: - QNetworkManagerInterfaceDeviceWired(const QString &ifaceDevicePath, QObject *parent = 0); + explicit QNetworkManagerInterfaceDeviceWired(const QString &ifaceDevicePath, + QObject *parent = 0); ~QNetworkManagerInterfaceDeviceWired(); QDBusInterface *connectionInterface() const; @@ -304,7 +305,8 @@ Rsn = 0x20 }; - QNetworkManagerInterfaceDeviceWireless(const QString &ifaceDevicePath, QObject *parent = 0); + explicit QNetworkManagerInterfaceDeviceWireless(const QString &ifaceDevicePath, + QObject *parent = 0); ~QNetworkManagerInterfaceDeviceWireless(); QDBusObjectPath path() const; @@ -335,7 +337,7 @@ public: - QNetworkManagerSettings(const QString &settingsService, QObject *parent = 0); + explicit QNetworkManagerSettings(const QString &settingsService, QObject *parent = 0); ~QNetworkManagerSettings(); QDBusInterface *connectionInterface() const; @@ -395,7 +397,7 @@ Activated = 2 }; - QNetworkManagerConnectionActive(const QString &dbusPathName, QObject *parent = 0); + explicit QNetworkManagerConnectionActive(const QString &dbusPathName, QObject *parent = 0); ~ QNetworkManagerConnectionActive(); QDBusInterface *connectionInterface() const; @@ -423,7 +425,7 @@ Q_OBJECT public: - QNetworkManagerIp4Config(const QString &dbusPathName, QObject *parent = 0); + explicit QNetworkManagerIp4Config(const QString &dbusPathName, QObject *parent = 0); ~QNetworkManagerIp4Config(); QStringList domains() const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworksession.cpp --- a/qtmobility/src/bearer/qnetworksession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworksession.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,7 +46,7 @@ #ifdef Q_OS_SYMBIAN #include "qnetworksession_s60_p.h" -#elif Q_WS_MAEMO_6 +#elif defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) #include "qnetworksession_maemo_p.h" #else #include "qnetworksession_p.h" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworksession.h --- a/qtmobility/src/bearer/qnetworksession.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworksession.h Mon May 03 13:18:40 2010 +0300 @@ -79,7 +79,7 @@ InvalidConfigurationError }; - QNetworkSession(const QNetworkConfiguration& connConfig, QObject* parent =0); + explicit QNetworkSession(const QNetworkConfiguration& connConfig, QObject* parent =0); virtual ~QNetworkSession(); bool isOpen() const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworksession_maemo.cpp --- a/qtmobility/src/bearer/qnetworksession_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworksession_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,280 +42,142 @@ #include #include "qnetworksession_maemo_p.h" -#include -#include #include #include #include -#include #include -#include #include #include + +QDBusArgument &operator<<(QDBusArgument &argument, + const QtMobility::ICd2DetailsDBusStruct &icd2) +{ + argument.beginStructure(); + argument << icd2.serviceType; + argument << icd2.serviceAttributes; + argument << icd2.setviceId; + argument << icd2.networkType; + argument << icd2.networkAttributes; + argument << icd2.networkId; + argument.endStructure(); + return argument; +} + +const QDBusArgument &operator>>(const QDBusArgument &argument, + QtMobility::ICd2DetailsDBusStruct &icd2) +{ + argument.beginStructure(); + argument >> icd2.serviceType; + argument >> icd2.serviceAttributes; + argument >> icd2.setviceId; + argument >> icd2.networkType; + argument >> icd2.networkAttributes; + argument >> icd2.networkId; + argument.endStructure(); + return argument; +} + +const QDBusArgument &operator>>(const QDBusArgument &argument, + QtMobility::ICd2DetailsList &detailsList) +{ + argument.beginArray(); + detailsList.clear(); + + while (!argument.atEnd()) { + QtMobility::ICd2DetailsDBusStruct element; + argument >> element; + detailsList.append(element); + } + + argument.endArray(); + return argument; +} + +QDBusArgument &operator<<(QDBusArgument &argument, + const QtMobility::ICd2DetailsList &detailsList) +{ + argument.beginArray(qMetaTypeId()); + for (int i = 0; i < detailsList.count(); ++i) + argument << detailsList[i]; + argument.endArray(); + return argument; +} + QTM_BEGIN_NAMESPACE static QHash properties; static QString get_network_interface(); -static DBusConnection *dbus_connection; -static DBusHandlerResult signal_handler(DBusConnection *connection, - DBusMessage *message, - void *user_data); -#define ICD_DBUS_MATCH "type='signal'," \ - "interface='" ICD_DBUS_INTERFACE "'," \ - "path='" ICD_DBUS_PATH "'" - - -static inline DBusConnection *get_dbus_conn(DBusError *error) -{ - DBusConnection *conn = dbus_bus_get(DBUS_BUS_SYSTEM, error); -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "Listening to bus" << dbus_bus_get_unique_name(conn); -#endif - - return conn; -} - - -/* Helper class that monitors the Icd status messages and - * can change the IAP status accordingly. This is a singleton. - */ -class IcdListener : public QObject +void QNetworkSessionPrivate::iapStateChanged(const QString& iapid, uint icd_connection_state) { - Q_OBJECT - -public: - IcdListener() : first_call(true) { } - friend DBusHandlerResult signal_handler(DBusConnection *connection, - DBusMessage *message, - void *user_data); - void setup(QNetworkSessionPrivate *d); - void cleanup(); - void cleanupSession(QNetworkSessionPrivate *ptr); - - enum IapConnectionStatus { - /* The IAP was connected */ - CONNECTED = 0, - /* The IAP was disconnected */ - DISCONNECTED, - /* The IAP is disconnecting */ - DISCONNECTING, - /* The IAP has a network address, but is not yet fully connected */ - NETWORK_UP - }; - -private: - void icdSignalReceived(QString&, QString&, QString&); - bool first_call; - QHash sessions; -}; - -Q_GLOBAL_STATIC(IcdListener, icdListener); - - -static DBusHandlerResult signal_handler(DBusConnection *, - DBusMessage *message, - void *user_data) -{ - if (dbus_message_is_signal(message, - ICD_DBUS_INTERFACE, - ICD_STATUS_CHANGED_SIG)) { - - IcdListener *icd = (IcdListener *)user_data; - DBusError error; - dbus_error_init(&error); - - char *iap_id = 0; - char *network_type = 0; - char *state = 0; - - if (dbus_message_get_args(message, &error, - DBUS_TYPE_STRING, &iap_id, - DBUS_TYPE_STRING, &network_type, - DBUS_TYPE_STRING, &state, - DBUS_TYPE_INVALID) == FALSE) { - qWarning() << QString("Failed to parse icd status signal: %1").arg(error.message); - } else { - QString _iap_id(iap_id); - QString _network_type(network_type); - QString _state(state); - - icd->icdSignalReceived(_iap_id, _network_type, _state); - } - - dbus_error_free(&error); - return DBUS_HANDLER_RESULT_HANDLED; + if ((publicConfig.type() == QNetworkConfiguration::UserChoice) && opened) { + updateIdentifier(iapid); } - return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; -} - - -void IcdListener::setup(QNetworkSessionPrivate *d) -{ - if (first_call) { - // We use the old Icd dbus interface like in ConIC - DBusError error; - dbus_error_init(&error); - - dbus_connection = get_dbus_conn(&error); - if (dbus_error_is_set(&error)) { - qWarning() << "Cannot get dbus connection."; - dbus_error_free(&error); - return; - } - - static struct DBusObjectPathVTable icd_vtable; - icd_vtable.message_function = signal_handler; - - dbus_bus_add_match(dbus_connection, ICD_DBUS_MATCH, &error); - if (dbus_error_is_set(&error)) { - qWarning() << "Cannot add match" << ICD_DBUS_MATCH; - dbus_error_free(&error); - return; - } - - if (dbus_connection_register_object_path(dbus_connection, - ICD_DBUS_PATH, - &icd_vtable, - (void*)this) == FALSE) { - qWarning() << "Cannot register dbus signal handler, interface"<< ICD_DBUS_INTERFACE << "path" << ICD_DBUS_PATH; - dbus_error_free(&error); - return; - } - -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "Listening" << ICD_STATUS_CHANGED_SIG << "signal from" << ICD_DBUS_SERVICE; -#endif - first_call = false; - dbus_error_free(&error); - } - - QString id = d->activeConfig.identifier(); - if (!sessions.contains(id)) { - QNetworkSessionPrivate *ptr = d; - sessions.insert(id, ptr); + if (((publicConfig.type() == QNetworkConfiguration::UserChoice) && (activeConfig.d->id == iapid)) || + (publicConfig.d->id == iapid)) { + switch (icd_connection_state) { + case ICD_STATE_CONNECTING: + updateState(QNetworkSession::Connecting); + break; + case ICD_STATE_CONNECTED: + updateState(QNetworkSession::Connected); + break; + case ICD_STATE_DISCONNECTING: + updateState(QNetworkSession::Closing); + break; + case ICD_STATE_DISCONNECTED: + updateState(QNetworkSession::Disconnected); + break; + default: + break; + } } } - -void IcdListener::icdSignalReceived(QString& iap_id, -#ifdef BEARER_MANAGEMENT_DEBUG - QString& network_type, -#else - QString&, -#endif - QString& state) -{ - if (iap_id == OSSO_IAP_SCAN) // icd sends scan status signals which we will ignore - return; - -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "Status received:" << iap_id << "type" << network_type << "state" << state; -#endif - - if (!sessions.contains(iap_id)) { -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "No session for IAP" << iap_id; -#endif - return; - } - - QNetworkSessionPrivate *session = sessions.value(iap_id); - QNetworkConfiguration ap_conf = session->manager.configurationFromIdentifier(iap_id); - if (!ap_conf.isValid()) { -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "Unknown IAP" << iap_id; -#endif - return; - } - - IapConnectionStatus status; - - if (state == "IDLE") { - status = DISCONNECTED; - } else if (state == "CONNECTED") { - status = CONNECTED; - } else if (state == "NETWORKUP") { - status = NETWORK_UP; - } else { - //qDebug() << "Unknown state" << state; - return; - } - - if (status == DISCONNECTED) { - if (ap_conf.state() == QNetworkConfiguration::Active) { - /* The IAP was just disconnected by Icd */ - session->updateState(QNetworkSession::Disconnected); - } else { -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "Got a network disconnect when in state" << ap_conf.state(); -#endif - } - } else if (status == CONNECTED) { - /* The IAP was just connected by Icd */ - session->updateState(QNetworkSession::Connected); - session->updateIdentifier(iap_id); - - if (session->publicConfig.identifier() == OSSO_IAP_ANY) { -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "IAP" << iap_id << "connected when connecting to" << OSSO_IAP_ANY; -#endif - } else { -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "IAP" << iap_id << "connected"; -#endif - } - } - - return; -} - - -void IcdListener::cleanup() -{ - if (!first_call) { - dbus_bus_remove_match(dbus_connection, ICD_DBUS_MATCH, NULL); - dbus_connection_unref(dbus_connection); - } -} - - -void IcdListener::cleanupSession(QNetworkSessionPrivate *ptr) -{ - if (ptr->publicConfig.type() == QNetworkConfiguration::UserChoice) - (void)sessions.take(ptr->activeConfig.identifier()); - else - (void)sessions.take(ptr->publicConfig.identifier()); -} - - void QNetworkSessionPrivate::cleanupSession(void) { - icdListener()->cleanupSession(this); - QObject::disconnect(q, SIGNAL(stateChanged(QNetworkSession::State)), this, SLOT(updateProxies(QNetworkSession::State))); } void QNetworkSessionPrivate::updateState(QNetworkSession::State newState) { - if( newState != state) { - state = newState; - - if (state == QNetworkSession::Disconnected) { + if (newState != state) { + if (newState == QNetworkSession::Disconnected) { + if (isOpen) { + // The Session was aborted by the user or system + lastError = QNetworkSession::SessionAbortedError; + emit q->error(lastError); + emit q->closed(); + } + if (m_stopTimer.isActive()) { + // Session was closed by calling stop() + m_stopTimer.stop(); + } isOpen = false; + opened = false; currentNetworkInterface.clear(); - if (publicConfig.type() == QNetworkConfiguration::UserChoice) - activeConfig.d->state = QNetworkConfiguration::Defined; - publicConfig.d->state = QNetworkConfiguration::Defined; - - } else if (state == QNetworkSession::Connected) { - isOpen = true; + if (publicConfig.type() == QNetworkConfiguration::UserChoice) { + copyConfig(publicConfig, activeConfig); + activeConfig.d->state = QNetworkConfiguration::Defined; + } else { + if (!activeConfig.isValid()) { + // Active configuration (IAP) was removed from system + // => Connection was disconnected and configuration became + // invalid + // => Also Session state must be changed to invalid + newState = QNetworkSession::Invalid; + } + } + } else if (newState == QNetworkSession::Connected) { + if (opened) { + isOpen = true; + } if (publicConfig.type() == QNetworkConfiguration::UserChoice) { activeConfig.d->state = QNetworkConfiguration::Active; activeConfig.d->type = QNetworkConfiguration::InternetAccessPoint; @@ -323,12 +185,15 @@ publicConfig.d->state = QNetworkConfiguration::Active; } - emit q->stateChanged(newState); + if (newState != state) { + state = newState; + emit q->stateChanged(newState); + } } } -void QNetworkSessionPrivate::updateIdentifier(QString &newId) +void QNetworkSessionPrivate::updateIdentifier(const QString &newId) { if (publicConfig.type() == QNetworkConfiguration::UserChoice) { activeConfig.d->network_attrs |= ICD_NW_ATTR_IAPNAME; @@ -357,7 +222,7 @@ return 0; } - foreach (Maemo::IcdStatisticsResult res, stats_results) { + foreach (const Maemo::IcdStatisticsResult &res, stats_results) { if (res.params.network_attrs & ICD_NW_ATTR_IAPNAME) { /* network_id is the IAP UUID */ if (QString(res.params.network_id.data()) == activeConfig.identifier()) { @@ -433,9 +298,6 @@ */ void QNetworkSessionPrivate::syncStateWithInterface() { - /* Start to listen Icd status messages. */ - icdListener()->setup(this); - /* Initially we are not active although the configuration might be in * connected state. */ @@ -447,10 +309,10 @@ if (publicConfig.d.data()) { QNetworkConfigurationManagerPrivate* mgr = (QNetworkConfigurationManagerPrivate*)publicConfig.d.data()->manager; if (mgr) { - QObject::connect(mgr, SIGNAL(configurationChanged(QNetworkConfiguration)), - this, SLOT(configurationChanged(QNetworkConfiguration))); + connect(mgr, SIGNAL(iapStateChanged(const QString&, uint)), + this, SLOT(iapStateChanged(const QString&, uint))); } else { - qWarning()<<"Manager object not set when trying to connect configurationChanged signal. Your configuration object is not correctly setup, did you remember to call manager.updateConfigurations() before creating session object?"; + qWarning()<<"Manager object not set when trying to connect iapStateChanged signal. Your configuration object is not correctly setup, did you remember to call manager.updateConfigurations() before creating session object?"; state = QNetworkSession::Invalid; lastError = QNetworkSession::UnknownSessionError; return; @@ -464,14 +326,14 @@ switch (publicConfig.type()) { case QNetworkConfiguration::InternetAccessPoint: - activeConfig = publicConfig; + activeConfig = publicConfig; break; case QNetworkConfiguration::ServiceNetwork: - serviceConfig = publicConfig; + serviceConfig = publicConfig; break; case QNetworkConfiguration::UserChoice: // active config will contain correct data after open() has succeeded - copyConfig(publicConfig, activeConfig); + copyConfig(publicConfig, activeConfig); /* We create new configuration that holds the actual configuration * returned by icd. This way publicConfig still contains the @@ -505,7 +367,6 @@ * supports only one connection anyway. */ if (icd.state(state_results) && !state_results.isEmpty()) { - /* If we did not get full state back, then we are not * connected and can skip the next part. */ @@ -518,46 +379,44 @@ */ if (publicConfig.type() == QNetworkConfiguration::UserChoice || publicConfig.d->id == state_results.first().params.network_id) { - switch (state_results.first().state) { case ICD_STATE_DISCONNECTED: - state = QNetworkSession::Disconnected; + state = QNetworkSession::Disconnected; if (activeConfig.d.data()) activeConfig.d->isValid = true; break; case ICD_STATE_CONNECTING: - state = QNetworkSession::Connecting; + state = QNetworkSession::Connecting; if (activeConfig.d.data()) activeConfig.d->isValid = true; break; case ICD_STATE_CONNECTED: { - if (!state_results.first().error.isEmpty()) + if (!state_results.first().error.isEmpty()) break; - + const QString id = state_results.first().params.network_id; - QNetworkConfigurationManagerPrivate *mgr = (QNetworkConfigurationManagerPrivate*)activeConfig.d.data()->manager; + QNetworkConfigurationManagerPrivate *mgr = (QNetworkConfigurationManagerPrivate*)publicConfig.d.data()->manager; if (mgr->accessPointConfigurations.contains(id)) { //we don't want the copied data if the config is already known by the manager //just reuse it so that existing references to the old data get the same update - QExplicitlySharedDataPointer priv = mgr->accessPointConfigurations.value(activeConfig.d->id); + QExplicitlySharedDataPointer priv = mgr->accessPointConfigurations.value(id); activeConfig.d = priv; } - state = QNetworkSession::Connected; - activeConfig.d->network_id = state_results.first().params.network_id; - activeConfig.d->id = activeConfig.d->network_id; - activeConfig.d->network_attrs = state_results.first().params.network_attrs; - activeConfig.d->iap_type = state_results.first().params.network_type; - activeConfig.d->service_type = state_results.first().params.service_type; - activeConfig.d->service_id = state_results.first().params.service_id; - activeConfig.d->service_attrs = state_results.first().params.service_attrs; - activeConfig.d->type = QNetworkConfiguration::InternetAccessPoint; - activeConfig.d->state = QNetworkConfiguration::Active; - activeConfig.d->isValid = true; - currentNetworkInterface = get_network_interface(); + activeConfig.d->network_id = state_results.first().params.network_id; + activeConfig.d->id = activeConfig.d->network_id; + activeConfig.d->network_attrs = state_results.first().params.network_attrs; + activeConfig.d->iap_type = state_results.first().params.network_type; + activeConfig.d->service_type = state_results.first().params.service_type; + activeConfig.d->service_id = state_results.first().params.service_id; + activeConfig.d->service_attrs = state_results.first().params.service_attrs; + activeConfig.d->type = QNetworkConfiguration::InternetAccessPoint; + activeConfig.d->state = QNetworkConfiguration::Active; + activeConfig.d->isValid = true; + currentNetworkInterface = get_network_interface(); Maemo::IAPConf iap_name(activeConfig.d->id); QString name_value = iap_name.value("name").toString(); @@ -566,7 +425,6 @@ else activeConfig.d->name = activeConfig.d->id; - // Add the new active configuration to manager or update the old config mgr = (QNetworkConfigurationManagerPrivate*)activeConfig.d.data()->manager; if (!(mgr->accessPointConfigurations.contains(activeConfig.d->id))) { @@ -581,23 +439,17 @@ //qDebug()<<"New configuration"<id<<"added to manager in sync"; #endif - } else { - mgr->configurationChanged((QNetworkConfigurationPrivate*)(activeConfig.d.data())); -#ifdef BEARER_MANAGEMENT_DEBUG - //qDebug()<<"Existing configuration"<id<<"updated in manager in sync"; -#endif - } - + } } break; case ICD_STATE_DISCONNECTING: - state = QNetworkSession::Closing; + state = QNetworkSession::Closing; if (activeConfig.d.data()) activeConfig.d->isValid = true; break; default: - break; + break; } } } else { @@ -686,7 +538,6 @@ state = QNetworkSession::NotAvailable; } else if ((activeConfig.state() & QNetworkConfiguration::Undefined) == QNetworkConfiguration::Undefined) { state = QNetworkSession::NotAvailable; - clearConfiguration(activeConfig); } bool oldActive = isOpen; @@ -701,7 +552,7 @@ if (oldState != state) { emit q->stateChanged(state); - if (state == QNetworkSession::Disconnected) { + if (state == QNetworkSession::Disconnected && oldActive) { #ifdef BEARER_MANAGEMENT_DEBUG //qDebug()<<"session aborted error emitted for"<ifa_next) { - family = ifa->ifa_addr->sa_family; - if (family != AF_INET) { - continue; /* Currently only IPv4 is supported by icd dbus interface */ - } - if (((struct sockaddr_in *)ifa->ifa_addr)->sin_addr.s_addr == addr.s_addr) { - iface = QString(ifa->ifa_name); - break; - } + if (ifa->ifa_addr) { + family = ifa->ifa_addr->sa_family; + if (family != AF_INET) { + continue; /* Currently only IPv4 is supported by icd dbus interface */ + } + if (((struct sockaddr_in *)ifa->ifa_addr)->sin_addr.s_addr == addr.s_addr) { + iface = QString(ifa->ifa_name); + break; + } + } } freeifaddrs(ifaddr); @@ -778,11 +621,18 @@ void QNetworkSessionPrivate::open() { + if (m_stopTimer.isActive()) { + m_stopTimer.stop(); + } + if (!publicConfig.isValid()) { + lastError = QNetworkSession::InvalidConfigurationError; + emit q->error(lastError); + return; + } if (serviceConfig.isValid()) { lastError = QNetworkSession::OperationNotSupportedError; emit q->error(lastError); } else if (!isOpen) { - if (publicConfig.type() == QNetworkConfiguration::UserChoice) { /* Caller is trying to connect to default IAP. * At this time we will not know the IAP details so we just @@ -810,219 +660,206 @@ if ((activeConfig.state() & QNetworkConfiguration::Active) != QNetworkConfiguration::Active) { state = QNetworkSession::Connecting; emit q->stateChanged(state); - - QTimer::singleShot(0, this, SLOT(do_open())); - return; + QTimer::singleShot(0, this, SLOT(do_open())); + return; } - isOpen = (activeConfig.state() & QNetworkConfiguration::Active) == QNetworkConfiguration::Active; if (isOpen) emit quitPendingWaitsForOpened(); } else { - /* We seem to be active so inform caller */ - emit quitPendingWaitsForOpened(); + /* We seem to be active so inform caller */ + emit quitPendingWaitsForOpened(); } } - void QNetworkSessionPrivate::do_open() { icd_connection_flags flags = connectFlags; - bool st; - QString result; QString iap = publicConfig.identifier(); if (state == QNetworkSession::Connected) { #ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "Already connected to" << activeConfig.identifier(); + qDebug() << "Already connected to" << activeConfig.identifier(); #endif emit q->stateChanged(QNetworkSession::Connected); - emit quitPendingWaitsForOpened(); + emit quitPendingWaitsForOpened(); return; } - Maemo::IcdConnectResult connect_result; - Maemo::Icd icd(ICD_LONG_CONNECT_TIMEOUT); - QNetworkConfiguration config; if (publicConfig.type() == QNetworkConfiguration::UserChoice) - config = activeConfig; + config = activeConfig; else - config = publicConfig; + config = publicConfig; if (iap == OSSO_IAP_ANY) { #ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "connecting to default IAP" << iap; + qDebug() << "connecting to default IAP" << iap; #endif - st = icd.connect(flags, connect_result); - + m_connectRequestTimer.start(ICD_LONG_CONNECT_TIMEOUT); + m_dbusInterface->asyncCall(ICD_DBUS_API_CONNECT_REQ, (uint)flags); // Return value ignored + m_asynchCallActive = true; } else { - - QList params; - Maemo::ConnectParams param; - param.connect.service_type = config.d->service_type; - param.connect.service_attrs = config.d->service_attrs; - param.connect.service_id = config.d->service_id; - param.connect.network_type = config.d->iap_type; - param.connect.network_attrs = config.d->network_attrs; - if (config.d->network_attrs & ICD_NW_ATTR_IAPNAME) - param.connect.network_id = QByteArray(iap.toLatin1()); - else - param.connect.network_id = config.d->network_id; - params.append(param); + ICd2DetailsDBusStruct icd2; + icd2.serviceType = config.d->service_type; + icd2.serviceAttributes = config.d->service_attrs; + icd2.setviceId = config.d->service_id; + icd2.networkType = config.d->iap_type; + icd2.networkAttributes = config.d->network_attrs; + if (config.d->network_attrs & ICD_NW_ATTR_IAPNAME) { + icd2.networkId = QByteArray(iap.toLatin1()); + } else { + icd2.networkId = config.d->network_id; + } #ifdef BEARER_MANAGEMENT_DEBUG - qDebug("connecting to %s/%s/0x%x/%s/0x%x/%s", - param.connect.network_id.data(), - param.connect.network_type.toAscii().constData(), - param.connect.network_attrs, - param.connect.service_type.toAscii().constData(), - param.connect.service_attrs, - param.connect.service_id.toAscii().constData()); -#endif - st = icd.connect(flags, params, connect_result); - } - - if (st) { - result = connect_result.connect.network_id.data(); - QString connected_iap = result; - - if (connected_iap.isEmpty()) { -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "connect to"<< iap << "failed, result is empty"; -#endif - updateState(QNetworkSession::Disconnected); - emit q->error(QNetworkSession::InvalidConfigurationError); - if (publicConfig.type() == QNetworkConfiguration::UserChoice) - cleanupAnyConfiguration(); - return; - } - - /* If the user tried to connect to some specific connection (foo) - * and we were already connected to some other connection (bar), - * then we cannot activate this session although icd has a valid - * connection to somewhere. - */ - if ((publicConfig.type() != QNetworkConfiguration::UserChoice) && - (connected_iap != config.identifier())) { - updateState(QNetworkSession::Disconnected); - emit q->error(QNetworkSession::InvalidConfigurationError); - return; - } - - - /* Did we connect to non saved IAP? */ - if (!(config.d->network_attrs & ICD_NW_ATTR_IAPNAME)) { - /* Because the connection succeeded, the IAP is now known. - */ - config.d->network_attrs |= ICD_NW_ATTR_IAPNAME; - config.d->id = connected_iap; - } - - /* User might have changed the IAP name when a new IAP was saved */ - Maemo::IAPConf iap_name(config.d->id); - QString name = iap_name.value("name").toString(); - if (!name.isEmpty()) - config.d->name = name; - - config.d->iap_type = connect_result.connect.network_type; - - config.d->isValid = true; - config.d->state = QNetworkConfiguration::Active; - config.d->type = QNetworkConfiguration::InternetAccessPoint; - - startTime = QDateTime::currentDateTime(); - updateState(QNetworkSession::Connected); - - currentNetworkInterface = get_network_interface(); - -#ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "connected to" << result << config.d->name << "at" << currentNetworkInterface; + qDebug("connecting to %s/%s/0x%x/%s/0x%x/%s", + icd2.networkId.data(), + icd2.networkType.toAscii().constData(), + icd2.networkAttributes, + icd2.serviceType.toAscii().constData(), + icd2.serviceAttributes, + icd2.setviceId.toAscii().constData()); #endif - /* We first check if the configuration already exists in the manager - * and if it is not found there, we then insert it. Note that this - * is only done for user choice config only because it can be missing - * from config manager list. - */ - - if (publicConfig.d->type == QNetworkConfiguration::UserChoice) { - -#ifdef BEARER_MANAGEMENT_DEBUG -#if 0 - QList configs; - QNetworkConfigurationManagerPrivate *conPriv = (QNetworkConfigurationManagerPrivate*)config.d.data()->manager; - QList cpsIdents = conPriv->accessPointConfigurations.keys(); - foreach( QString ii, cpsIdents) { - QExplicitlySharedDataPointer p = - conPriv->accessPointConfigurations.value(ii); - QNetworkConfiguration pt; - pt.d = conPriv->accessPointConfigurations.value(ii); - configs << pt; - } - - int all = configs.count(); - qDebug() << "All configurations:" << all; - foreach(QNetworkConfiguration p, configs) { - qDebug() << p.name() <<": isvalid->" <"<< p.type() << - " roaming->" << p.isRoamingAvailable() << "identifier->" << p.identifier() << - " purpose->" << p.purpose() << " state->" << p.state(); - } -#endif -#endif - - QNetworkConfigurationManagerPrivate *mgr = (QNetworkConfigurationManagerPrivate*)config.d.data()->manager; - if (!mgr->accessPointConfigurations.contains(result)) { - QExplicitlySharedDataPointer ptr = config.d; - mgr->accessPointConfigurations.insert(result, ptr); - - QNetworkConfiguration item; - item.d = ptr; - emit mgr->configurationAdded(item); - -#ifdef BEARER_MANAGEMENT_DEBUG - //qDebug()<<"New configuration"< priv = mgr->accessPointConfigurations.value(result); - QNetworkConfiguration reference; - reference.d = priv; - copyConfig(config, reference, false); - config = reference; - activeConfig = reference; - mgr->configurationChanged((QNetworkConfigurationPrivate*)(config.d.data())); - -#ifdef BEARER_MANAGEMENT_DEBUG - //qDebug()<<"Existing configuration"<error(QNetworkSession::UnknownSessionError); + ICd2DetailsList paramArray; + paramArray.append(icd2); + m_connectRequestTimer.start(ICD_LONG_CONNECT_TIMEOUT); + m_dbusInterface->asyncCall(ICD_DBUS_API_CONNECT_REQ, (uint)flags, QVariant::fromValue(paramArray)); // Return value ignored + m_asynchCallActive = true; } } + void QNetworkSessionPrivate::stateChange(const QDBusMessage& rep) +{ + if (m_asynchCallActive == true) { + if (m_connectRequestTimer.isActive()) + m_connectRequestTimer.stop(); + m_asynchCallActive = false; -void QNetworkSessionPrivate::cleanupAnyConfiguration() -{ + QString result = rep.arguments().at(5).toString(); // network id or empty string + QString connected_iap = result; + if (connected_iap.isEmpty()) { +#ifdef BEARER_MANAGEMENT_DEBUG + qDebug() << "connect to"<< publicConfig.identifier() << "failed, result is empty"; +#endif + updateState(QNetworkSession::Disconnected); + emit q->error(QNetworkSession::InvalidConfigurationError); + if (publicConfig.type() == QNetworkConfiguration::UserChoice) + copyConfig(publicConfig, activeConfig); + return; + } + + /* If the user tried to connect to some specific connection (foo) + * and we were already connected to some other connection (bar), + * then we cannot activate this session although icd has a valid + * connection to somewhere. + */ + if ((publicConfig.type() != QNetworkConfiguration::UserChoice) && + (connected_iap != config.identifier())) { + updateState(QNetworkSession::Disconnected); + emit q->error(QNetworkSession::InvalidConfigurationError); + return; + } + + /* Did we connect to non saved IAP? */ + if (!(config.d->network_attrs & ICD_NW_ATTR_IAPNAME)) { + /* Because the connection succeeded, the IAP is now known. + */ + config.d->network_attrs |= ICD_NW_ATTR_IAPNAME; + config.d->id = connected_iap; + } + + /* User might have changed the IAP name when a new IAP was saved */ + Maemo::IAPConf iap_name(config.d->id); + QString name = iap_name.value("name").toString(); + if (!name.isEmpty()) + config.d->name = name; + + config.d->iap_type = rep.arguments().at(3).toString(); // connect_result.connect.network_type; + config.d->isValid = true; + config.d->state = QNetworkConfiguration::Active; + config.d->type = QNetworkConfiguration::InternetAccessPoint; + + startTime = QDateTime::currentDateTime(); + updateState(QNetworkSession::Connected); + //currentNetworkInterface = get_network_interface(); #ifdef BEARER_MANAGEMENT_DEBUG - qDebug()<<"Removing configuration created for" << activeConfig.d->id; + //qDebug() << "connected to" << result << config.d->name << "at" << currentNetworkInterface; +#endif + + /* We first check if the configuration already exists in the manager + * and if it is not found there, we then insert it. Note that this + * is only done for user choice config only because it can be missing + * from config manager list. + */ + if (publicConfig.d->type == QNetworkConfiguration::UserChoice) { +#ifdef BEARER_MANAGEMENT_DEBUG +#if 0 + QList configs; + QNetworkConfigurationManagerPrivate *conPriv = (QNetworkConfigurationManagerPrivate*)config.d.data()->manager; + QList cpsIdents = conPriv->accessPointConfigurations.keys(); + foreach( QString ii, cpsIdents) { + QExplicitlySharedDataPointer p = + conPriv->accessPointConfigurations.value(ii); + QNetworkConfiguration pt; + pt.d = conPriv->accessPointConfigurations.value(ii); + configs << pt; + } + + int all = configs.count(); + qDebug() << "All configurations:" << all; + foreach(QNetworkConfiguration p, configs) { + qDebug() << p.name() <<": isvalid->" <"<< p.type() << + " roaming->" << p.isRoamingAvailable() << "identifier->" << p.identifier() << + " purpose->" << p.purpose() << " state->" << p.state(); + } +#endif #endif - activeConfig = publicConfig; + QNetworkConfigurationManagerPrivate *mgr = (QNetworkConfigurationManagerPrivate*)publicConfig.d.data()->manager; + if (!mgr->accessPointConfigurations.contains(result)) { + QExplicitlySharedDataPointer ptr = config.d; + mgr->accessPointConfigurations.insert(result, ptr); + + QNetworkConfiguration item; + item.d = ptr; + emit mgr->configurationAdded(item); + +#ifdef BEARER_MANAGEMENT_DEBUG + qDebug()<<"New configuration"< priv = mgr->accessPointConfigurations.value(result); + QNetworkConfiguration reference; + reference.d = priv; + copyConfig(config, reference, false); + reference.d.data()->id = result; // Note: Id was not copied in copyConfig() function + config = reference; + activeConfig = reference; + +#ifdef BEARER_MANAGEMENT_DEBUG + qDebug()<<"Existing configuration"<error(QNetworkSession::UnknownSessionError); +} void QNetworkSessionPrivate::close() { + if (m_connectRequestTimer.isActive()) + m_connectRequestTimer.stop(); + if (serviceConfig.isValid()) { lastError = QNetworkSession::OperationNotSupportedError; emit q->error(lastError); @@ -1036,33 +873,37 @@ void QNetworkSessionPrivate::stop() { + if (m_connectRequestTimer.isActive()) + m_connectRequestTimer.stop(); + if (serviceConfig.isValid()) { lastError = QNetworkSession::OperationNotSupportedError; emit q->error(lastError); } else { if ((activeConfig.state() & QNetworkConfiguration::Active) == QNetworkConfiguration::Active) { - state = QNetworkSession::Closing; - emit q->stateChanged(state); - - Maemo::Icd icd; + if (!m_stopTimer.isActive()) { + Maemo::Icd icd; #ifdef BEARER_MANAGEMENT_DEBUG - qDebug() << "stopping session" << publicConfig.identifier(); + qDebug() << "stopping session" << publicConfig.identifier(); #endif - icd.disconnect(ICD_CONNECTION_FLAG_APPLICATION_EVENT); - startTime = QDateTime(); + state = QNetworkSession::Closing; + emit q->stateChanged(state); + + opened = false; + isOpen = false; - /* Note that the state will go disconnected in - * updateStateFromActiveConfig() which gets called after - * configurationChanged is emitted (below). - */ + icd.disconnect(ICD_CONNECTION_FLAG_APPLICATION_EVENT); + startTime = QDateTime(); - activeConfig.d->state = QNetworkConfiguration::Discovered; - QNetworkConfigurationManagerPrivate *mgr = (QNetworkConfigurationManagerPrivate*)activeConfig.d.data()->manager; - mgr->configurationChanged((QNetworkConfigurationPrivate*)activeConfig.d.data()); + /* Note: Session state will change to disconnected + * as soon as QNetworkConfigurationManager sends + * corresponding iapStateChanged signal. + */ - opened = false; - isOpen = false; - + // Make sure that this Session will send closed signal + // even though ICD connection will not ever get closed + m_stopTimer.start(ICD_SHORT_CONNECT_TIMEOUT); // 10 seconds wait + } } else { opened = false; isOpen = false; @@ -1071,6 +912,14 @@ } } +void QNetworkSessionPrivate::finishStopBySendingClosedSignal() +{ + if ((activeConfig.state() & QNetworkConfiguration::Active) == QNetworkConfiguration::Active) { + state = QNetworkSession::Connected; + emit q->stateChanged(state); + } + emit q->closed(); +} void QNetworkSessionPrivate::migrate() { @@ -1186,7 +1035,6 @@ } -#include "qnetworksession_maemo.moc" #include "moc_qnetworksession_maemo_p.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworksession_maemo_p.h --- a/qtmobility/src/bearer/qnetworksession_maemo_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworksession_maemo_p.h Mon May 03 13:18:40 2010 +0300 @@ -58,26 +58,57 @@ #include #include #include +#include -#ifdef Q_WS_MAEMO_6 #include -#endif QTM_BEGIN_NAMESPACE +struct ICd2DetailsDBusStruct +{ + QString serviceType; + uint serviceAttributes; + QString setviceId; + QString networkType; + uint networkAttributes; + QByteArray networkId; +}; + +typedef QList ICd2DetailsList; + class QNetworkSessionPrivate : public QObject { Q_OBJECT public: QNetworkSessionPrivate() : tx_data(0), rx_data(0), m_activeTime(0), isOpen(false), -#ifdef Q_WS_MAEMO_6 connectFlags(ICD_CONNECTION_FLAG_USER_EVENT), -#else - connectFlags(0), -#endif - currentState(QNetworkSession::Invalid) + currentState(QNetworkSession::Invalid), + m_asynchCallActive(false) { + m_stopTimer.setSingleShot(true); + connect(&m_stopTimer, SIGNAL(timeout()), this, SLOT(finishStopBySendingClosedSignal())); + + QDBusConnection systemBus = QDBusConnection::systemBus(); + + m_dbusInterface = new QDBusInterface(ICD_DBUS_API_INTERFACE, + ICD_DBUS_API_PATH, + ICD_DBUS_API_INTERFACE, + systemBus, + this); + + systemBus.connect(ICD_DBUS_API_INTERFACE, + ICD_DBUS_API_PATH, + ICD_DBUS_API_INTERFACE, + ICD_DBUS_API_CONNECT_SIG, + this, + SLOT(stateChange(const QDBusMessage&))); + + qDBusRegisterMetaType(); + qDBusRegisterMetaType(); + + m_connectRequestTimer.setSingleShot(true); + connect(&m_connectRequestTimer, SIGNAL(timeout()), this, SLOT(connectTimeout())); } ~QNetworkSessionPrivate() @@ -121,8 +152,11 @@ private Q_SLOTS: void do_open(); void networkConfigurationsChanged(); - void configurationChanged(const QNetworkConfiguration &config); + void iapStateChanged(const QString& iapid, uint icd_connection_state); void updateProxies(QNetworkSession::State newState); + void finishStopBySendingClosedSignal(); + void stateChange(const QDBusMessage& rep); + void connectTimeout(); private: QNetworkConfigurationManager manager; @@ -133,6 +167,7 @@ // The config set on QNetworkSession. QNetworkConfiguration publicConfig; + QNetworkConfiguration config; // If publicConfig is a ServiceNetwork this is a copy of publicConfig. // If publicConfig is an UserChoice that is resolved to a ServiceNetwork this is the actual @@ -145,7 +180,6 @@ QNetworkConfiguration& copyConfig(QNetworkConfiguration &fromConfig, QNetworkConfiguration &toConfig, bool deepCopy = true); void clearConfiguration(QNetworkConfiguration &config); - void cleanupAnyConfiguration(); QNetworkSession::State state; bool isOpen; @@ -161,16 +195,32 @@ QString currentNetworkInterface; friend class IcdListener; void updateState(QNetworkSession::State); - void updateIdentifier(QString &newId); + void updateIdentifier(const QString &newId); quint64 getStatistics(bool sent) const; void cleanupSession(void); void updateProxyInformation(); void clearProxyInformation(); QNetworkSession::State currentState; + + QDBusInterface *m_dbusInterface; + + QTimer m_stopTimer; + + bool m_asynchCallActive; + QTimer m_connectRequestTimer; }; QTM_END_NAMESPACE +// Marshall the ICd2DetailsDBusStruct data into a D-Bus argument +QDBusArgument &operator<<(QDBusArgument &argument, const QtMobility::ICd2DetailsDBusStruct &icd2); + +// Retrieve the ICd2DetailsDBusStruct data from the D-Bus argument +const QDBusArgument &operator>>(const QDBusArgument &argument, QtMobility::ICd2DetailsDBusStruct &icd2); + +Q_DECLARE_METATYPE(QtMobility::ICd2DetailsDBusStruct); +Q_DECLARE_METATYPE(QtMobility::ICd2DetailsList); + #endif //QNETWORKSESSIONPRIVATE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworksession_p.cpp --- a/qtmobility/src/bearer/qnetworksession_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworksession_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -495,38 +495,33 @@ startTime = QDateTime(); return; } - QString connectionIdent = q->configuration().identifier(); QString interface = currentInterface().hardwareAddress().toLower(); - QString devicePath = "/org/freedesktop/Hal/devices/net_" + interface.replace(":","_"); + const QString devicePath = QLatin1String("/org/freedesktop/Hal/devices/net_") + + interface.replace(QLatin1Char(':'), QLatin1Char('_')); QString path; QString serviceName; - QNetworkManagerInterface * ifaceD; - ifaceD = new QNetworkManagerInterface(); + QScopedPointer ifaceD(new QNetworkManagerInterface()); - QList connections = ifaceD->activeConnections(); - foreach(QDBusObjectPath conpath, connections) { - QNetworkManagerConnectionActive *conDetails; - conDetails = new QNetworkManagerConnectionActive(conpath.path()); - QDBusObjectPath connection = conDetails->connection(); + foreach (const QDBusObjectPath &conpath, ifaceD->activeConnections()) { + QScopedPointer conDetails(new QNetworkManagerConnectionActive(conpath.path())); + const QDBusObjectPath connection = conDetails->connection(); serviceName = conDetails->serviceName(); - QList so = conDetails->devices(); - foreach(QDBusObjectPath device, so) { - + foreach (const QDBusObjectPath &device, conDetails->devices()) { if(device.path() == devicePath) { path = connection.path(); } break; } } -if(serviceName.isEmpty()) - return; - QNetworkManagerSettings *settingsiface; - settingsiface = new QNetworkManagerSettings(serviceName); - QList list = settingsiface->listConnections(); - foreach(QDBusObjectPath path, list) { - QNetworkManagerSettingsConnection *sysIface; - sysIface = new QNetworkManagerSettingsConnection(serviceName, path.path()); + + if(serviceName.isEmpty()) + return; + + QScopedPointer settingsiface(new QNetworkManagerSettings(serviceName)); + foreach (const QDBusObjectPath &path, settingsiface->listConnections()) { + QScopedPointer sysIface; + sysIface.reset(new QNetworkManagerSettingsConnection(serviceName, path.path())); startTime = QDateTime::fromTime_t(sysIface->getTimestamp()); // isOpen = (publicConfig.state() & QNetworkConfiguration::Active) == QNetworkConfiguration::Active; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworksession_s60_p.cpp --- a/qtmobility/src/bearer/qnetworksession_s60_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworksession_s60_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -54,16 +54,10 @@ QNetworkSessionPrivate::QNetworkSessionPrivate() : CActive(CActive::EPriorityStandard), state(QNetworkSession::Invalid), isOpen(false), ipConnectionNotifier(0), iError(QNetworkSession::UnknownSessionError), - iALREnabled(0) + iALREnabled(0), iConnectInBackground(false) { CActiveScheduler::Add(this); - // Try to load "Open C" dll dynamically and - // try to attach to setdefaultif function dynamically. - if (iOpenCLibrary.Load(_L("libc")) == KErrNone) { - iDynamicSetdefaultif = (TOpenCSetdefaultifFunction)iOpenCLibrary.Lookup(564); - } - TRAP_IGNORE(iConnectionMonitor.ConnectL()); } @@ -89,14 +83,12 @@ iConnection.Close(); iSocketServ.Close(); - if (iDynamicSetdefaultif) { - iDynamicSetdefaultif(0); - } + + // Close global 'Open C' RConnection + setdefaultif(0); iConnectionMonitor.CancelNotifications(); iConnectionMonitor.Close(); - - iOpenCLibrary.Close(); } void QNetworkSessionPrivate::syncStateWithInterface() @@ -202,13 +194,24 @@ return activeInterface; } -QVariant QNetworkSessionPrivate::sessionProperty(const QString& /*key*/) const +QVariant QNetworkSessionPrivate::sessionProperty(const QString& key) const { + if (key == "ConnectInBackground") { + return QVariant(iConnectInBackground); + } return QVariant(); } -void QNetworkSessionPrivate::setSessionProperty(const QString& /*key*/, const QVariant& /*value*/) +void QNetworkSessionPrivate::setSessionProperty(const QString& key, const QVariant& value) { + // Valid value means adding property, invalid means removing it. + if (key == "ConnectInBackground") { + if (value.isValid()) { + iConnectInBackground = value.toBool(); + } else { + iConnectInBackground = EFalse; + } + } } QString QNetworkSessionPrivate::errorString() const @@ -244,15 +247,24 @@ // => RConnection::ProgressNotification will be used for IAP/SNAP monitoring iConnectionMonitor.CancelNotifications(); - // Configuration must be at least in Discovered - state for connecting purposes. - if ((publicConfig.state() & QNetworkConfiguration::Discovered) != - QNetworkConfiguration::Discovered) { + // Configuration may have been invalidated after session creation by platform + // (e.g. configuration has been deleted). + if (!publicConfig.isValid()) { newState(QNetworkSession::Invalid); iError = QNetworkSession::InvalidConfigurationError; emit q->error(iError); syncStateWithInterface(); return; } + // If opening a (un)defined configuration, session emits error and enters + // NotAvailable -state. + if (publicConfig.state() == QNetworkConfiguration::Undefined || + publicConfig.state() == QNetworkConfiguration::Defined) { + newState(QNetworkSession::NotAvailable); + iError = QNetworkSession::InvalidConfigurationError; + emit q->error(iError); + return; + } TInt error = iSocketServ.Connect(); if (error != KErrNone) { @@ -301,14 +313,12 @@ activeInterface = interface(activeConfig.d.data()->numericId); connected = ETrue; startTime = QDateTime::currentDateTime(); - if (iDynamicSetdefaultif) { - // Use name of the IAP to set default IAP - QByteArray nameAsByteArray = publicConfig.name().toUtf8(); - ifreq ifr; - strcpy(ifr.ifr_name, nameAsByteArray.constData()); - - error = iDynamicSetdefaultif(&ifr); - } + // Use name of the IAP to open global 'Open C' RConnection + QByteArray nameAsByteArray = publicConfig.name().toUtf8(); + ifreq ifr; + memset(&ifr, 0, sizeof(struct ifreq)); + strcpy(ifr.ifr_name, nameAsByteArray.constData()); + error = setdefaultif(&ifr); isOpen = true; // Make sure that state will be Connected newState(QNetworkSession::Connected); @@ -320,9 +330,21 @@ } } if (!connected) { +#ifdef OCC_FUNCTIONALITY_AVAILABLE + // With One Click Connectivity (Symbian^3 onwards) it is possible + // to connect silently, without any popups. + TConnPrefList pref; + TExtendedConnPref prefs; + prefs.SetIapId(publicConfig.d.data()->numericId); + if (iConnectInBackground) { + prefs.SetNoteBehaviour( TExtendedConnPref::ENoteBehaviourConnSilent ); + } + pref.AppendL(&prefs); +#else TCommDbConnPref pref; pref.SetDialogPreference(ECommDbDialogPrefDoNotPrompt); pref.SetIapId(publicConfig.d.data()->numericId); +#endif iConnection.Start(pref, iStatus); if (!IsActive()) { SetActive(); @@ -330,7 +352,17 @@ newState(QNetworkSession::Connecting); } } else if (publicConfig.type() == QNetworkConfiguration::ServiceNetwork) { +#ifdef OCC_FUNCTIONALITY_AVAILABLE + TConnPrefList snapPref; + TExtendedConnPref prefs; + prefs.SetSnapId(publicConfig.d.data()->numericId); + if (iConnectInBackground) { + prefs.SetNoteBehaviour( TExtendedConnPref::ENoteBehaviourConnSilent ); + } + snapPref.AppendL(&prefs); +#else TConnSnapPref snapPref(publicConfig.d.data()->numericId); +#endif iConnection.Start(snapPref, iStatus); if (!IsActive()) { SetActive(); @@ -408,9 +440,9 @@ iConnection.Close(); iSocketServ.Close(); - if (iDynamicSetdefaultif) { - iDynamicSetdefaultif(0); - } + + // Close global 'Open C' RConnection + setdefaultif(0); #ifdef Q_CC_NOKIAX86 if ((allowSignals && iapClientCount(activeIap) <= 0) || @@ -432,20 +464,53 @@ void QNetworkSessionPrivate::stop() { - if (!isOpen) { - return; + if (!isOpen && + publicConfig.isValid() && + publicConfig.type() == QNetworkConfiguration::InternetAccessPoint) { + // If the publicConfig is type of IAP, enumerate through connections at + // connection monitor. If publicConfig is active in that list, stop it. + // Otherwise there is nothing to stop. Note: because this QNetworkSession is not open, + // activeConfig is not usable. + TUint count; + TRequestStatus status; + iConnectionMonitor.GetConnectionCount(count, status); + User::WaitForRequest(status); + if (status.Int() != KErrNone) { + return; + } + TUint numSubConnections; // Not used but needed by GetConnectionInfo i/f + TUint connectionId; + for (TInt i = 1; i <= count; ++i) { + // Get (connection monitor's assigned) connection ID + TInt ret = iConnectionMonitor.GetConnectionInfo(i, connectionId, numSubConnections); + if (ret == KErrNone) { + // See if connection Id matches with our Id. If so, stop() it. + if (publicConfig.d.data()->connectionId == connectionId) { + ret = iConnectionMonitor.SetBoolAttribute(connectionId, + 0, // subConnectionId don't care + KConnectionStop, + ETrue); + } + } + } + } else if (isOpen) { + // Since we are open, use RConnection to stop the interface + isOpen = false; + newState(QNetworkSession::Closing); + iConnection.Stop(RConnection::EStopAuthoritative); + isOpen = true; + close(false); + emit q->closed(); } - isOpen = false; - newState(QNetworkSession::Closing); - iConnection.Stop(RConnection::EStopAuthoritative); - isOpen = true; - close(false); - emit q->closed(); } void QNetworkSessionPrivate::migrate() { #ifdef SNAP_FUNCTIONALITY_AVAILABLE + // Close global 'Open C' RConnection + setdefaultif(0); + + // Start migrating to new IAP iMobility->MigrateToPreferredCarrier(); #endif } @@ -466,14 +531,16 @@ { #ifdef SNAP_FUNCTIONALITY_AVAILABLE iMobility->NewCarrierAccepted(); - if (iDynamicSetdefaultif) { - // Use name of the IAP to set default IAP - QByteArray nameAsByteArray = activeConfig.name().toUtf8(); - ifreq ifr; - strcpy(ifr.ifr_name, nameAsByteArray.constData()); + + QNetworkConfiguration newActiveConfig = activeConfiguration(iNewRoamingIap); - iDynamicSetdefaultif(&ifr); - } + // Use name of the new IAP to open global 'Open C' RConnection + QByteArray nameAsByteArray = newActiveConfig.name().toUtf8(); + ifreq ifr; + memset(&ifr, 0, sizeof(struct ifreq)); + strcpy(ifr.ifr_name, nameAsByteArray.constData()); + setdefaultif(&ifr); + newState(QNetworkSession::Connected, iNewRoamingIap); #endif } @@ -482,9 +549,19 @@ { #ifdef SNAP_FUNCTIONALITY_AVAILABLE iMobility->NewCarrierRejected(); + if (!iALRUpgradingConnection) { newState(QNetworkSession::Disconnected); } else { + QNetworkConfiguration newActiveConfig = activeConfiguration(iOldRoamingIap); + + // Use name of the old IAP to open global 'Open C' RConnection + QByteArray nameAsByteArray = newActiveConfig.name().toUtf8(); + ifreq ifr; + memset(&ifr, 0, sizeof(struct ifreq)); + strcpy(ifr.ifr_name, nameAsByteArray.constData()); + setdefaultif(&ifr); + newState(QNetworkSession::Connected, iOldRoamingIap); } #endif @@ -748,19 +825,19 @@ TInt statusCode = iStatus.Int(); switch (statusCode) { - case KErrNone: // Connection created succesfully + case KErrNone: // Connection created successfully { TInt error = KErrNone; QNetworkConfiguration newActiveConfig = activeConfiguration(); if (!newActiveConfig.isValid()) { error = KErrGeneral; - } else if (iDynamicSetdefaultif) { - // Use name of the IAP to set default IAP - QByteArray nameAsByteArray = newActiveConfig.name().toUtf8(); + } else { + // Use name of the IAP to open global 'Open C' RConnection ifreq ifr; + memset(&ifr, 0, sizeof(struct ifreq)); + QByteArray nameAsByteArray = newActiveConfig.name().toUtf8(); strcpy(ifr.ifr_name, nameAsByteArray.constData()); - - error = iDynamicSetdefaultif(&ifr); + error = setdefaultif(&ifr); } if (error != KErrNone) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnetworksession_s60_p.h --- a/qtmobility/src/bearer/qnetworksession_s60_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnetworksession_s60_p.h Mon May 03 13:18:40 2010 +0300 @@ -58,25 +58,25 @@ #include #include -#include +#include #include #include #ifdef SNAP_FUNCTIONALITY_AVAILABLE #include #endif - -typedef int(*TOpenCSetdefaultifFunction)(const struct ifreq*); +#ifdef OCC_FUNCTIONALITY_AVAILABLE + #include +#endif QTM_BEGIN_NAMESPACE class ConnectionProgressNotifier; +class QNetworkSessionPrivate : public QObject, public CActive, #ifdef SNAP_FUNCTIONALITY_AVAILABLE -class QNetworkSessionPrivate : public QObject, public CActive, public MMobilityProtocolResp, + public MMobilityProtocolResp, +#endif public MConnectionMonitorObserver -#else -class QNetworkSessionPrivate : public QObject, public CActive, public MConnectionMonitorObserver -#endif { Q_OBJECT public: @@ -162,9 +162,6 @@ QNetworkSession* q; QDateTime startTime; - RLibrary iOpenCLibrary; - TOpenCSetdefaultifFunction iDynamicSetdefaultif; - mutable RSocketServ iSocketServ; mutable RConnection iConnection; mutable RConnectionMonitor iConnectionMonitor; @@ -176,6 +173,7 @@ QNetworkSession::SessionError iError; TInt iALREnabled; TBool iALRUpgradingConnection; + TBool iConnectInBackground; QList iKnownConfigsBeforeConnectionStart; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/bearer/qnmwifiengine_unix.cpp --- a/qtmobility/src/bearer/qnmwifiengine_unix.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/bearer/qnmwifiengine_unix.cpp Mon May 03 13:18:40 2010 +0300 @@ -75,17 +75,14 @@ connect(iface, SIGNAL(activationFinished(QDBusPendingCallWatcher*)), this, SLOT(slotActivationFinished(QDBusPendingCallWatcher*))); - QList list = iface->getDevices(); - - foreach(QDBusObjectPath path, list) { + foreach (const QDBusObjectPath &path, iface->getDevices()) addDevice(path); - } QStringList connectionServices; connectionServices << NM_DBUS_SERVICE_SYSTEM_SETTINGS; connectionServices << NM_DBUS_SERVICE_USER_SETTINGS; QNetworkManagerSettings *settingsiface; - foreach (QString service, connectionServices) { + foreach (const QString &service, connectionServices) { settingsiface = new QNetworkManagerSettings(service, this); settingsiface->setConnections(); connect(settingsiface,SIGNAL(newConnection(QDBusObjectPath)), @@ -146,13 +143,12 @@ QString connPath; QScopedPointer settingsiface; - foreach (QString service, connectionServices) { + foreach (const QString &service, connectionServices) { QString ident; settingsiface.reset(new QNetworkManagerSettings(service)); - QList list = settingsiface->listConnections(); QNetworkManagerSettingsConnection *sysIface; - foreach(QDBusObjectPath path, list) { + foreach (const QDBusObjectPath &path, settingsiface->listConnections()) { ident = path.path(); bool addIt = false; QNetworkConfigurationPrivate* cpPriv = new QNetworkConfigurationPrivate(); @@ -218,12 +214,11 @@ void QNmWifiEngine::accessPointConnections() { - QList list = iface->getDevices(); QScopedPointer devIface; - foreach(QDBusObjectPath path, list) { + foreach (const QDBusObjectPath &path, iface->getDevices()) { devIface.reset(new QNetworkManagerInterfaceDevice(path.path())); if(devIface->deviceType() == DEVICE_TYPE_802_11_WIRELESS) { - QList apList = availableAccessPoints.uniqueKeys(); + const QList apList = availableAccessPoints.uniqueKeys(); QList::const_iterator i; for (i = apList.constBegin(); i != apList.constEnd(); ++i) { @@ -256,8 +251,7 @@ { QString interface = getInterfaceFromId(id); QScopedPointer devIface; - QList list = iface->getDevices(); - foreach(QDBusObjectPath path, list) { + foreach (const QDBusObjectPath &path, iface->getDevices()) { devIface.reset(new QNetworkManagerInterfaceDevice(path.path())); if(interface == devIface->networkInterface().name()) { @@ -355,10 +349,9 @@ connectionServices << NM_DBUS_SERVICE_USER_SETTINGS; QScopedPointer settingsiface; - foreach (QString service, connectionServices) { + foreach (const QString &service, connectionServices) { settingsiface.reset(new QNetworkManagerSettings(service)); - QList list = settingsiface->listConnections(); - foreach(QDBusObjectPath path, list) { + foreach (const QDBusObjectPath &path, settingsiface->listConnections()) { QNetworkManagerSettingsConnection sysIface(service, path.path()); knownSsids << sysIface.getSsid(); } @@ -370,10 +363,8 @@ QScopedPointer dbIface; activeConnectionPaths.clear(); dbIface.reset(new QNetworkManagerInterface); - QList connections = dbIface->activeConnections(); - foreach(QDBusObjectPath conpath, connections) { - activeConnectionPaths << conpath.path(); - } + foreach (const QDBusObjectPath &conpath, dbIface->activeConnections()) + activeConnectionPaths << conpath.path(); } QNetworkConfigurationPrivate * QNmWifiEngine::addAccessPoint( const QString &iPath, QDBusObjectPath path) @@ -462,9 +453,8 @@ { QStringList connectionSettings = getConnectionPathForId(id); QNetworkManagerInterface ifaceD; - QList connections = ifaceD.activeConnections(); QScopedPointer conDetailsD; - foreach(QDBusObjectPath path, connections) { + foreach (const QDBusObjectPath &path, ifaceD.activeConnections()) { conDetailsD.reset(new QNetworkManagerConnectionActive( path.path())); if(conDetailsD->connection().path() == connectionSettings.at(1) && conDetailsD->serviceName() == connectionSettings.at(0)) @@ -623,11 +613,9 @@ //active connection QNetworkManagerConnectionActive aConn(aconpath); - QList devs = aConn.devices(); - QScopedPointer ifaceDevice; QScopedPointer devWiredIface; - foreach(QDBusObjectPath dev, devs) { + foreach (const QDBusObjectPath &dev, aConn.devices()) { ifaceDevice.reset(new QNetworkManagerInterfaceDevice(dev.path())); if(ifaceDevice->deviceType() == DEVICE_TYPE_802_3_ETHERNET) { @@ -663,7 +651,7 @@ bool ok = false; if(knownSsids.contains(ssid, Qt::CaseSensitive)) { - foreach(QString onessid, knownSsids) { + foreach (const QString &onessid, knownSsids) { if(onessid == ssid && availableAccessPoints.contains(ssid)) { ok = true; break; @@ -693,8 +681,7 @@ QScopedPointer aConn; aConn.reset(new QNetworkManagerConnectionActive(aConPath)); QScopedPointer ifaceDevice; - QList devices = aConn->devices(); - foreach(QDBusObjectPath device, devices) { + foreach (const QDBusObjectPath &device, aConn->devices()) { ifaceDevice.reset(new QNetworkManagerInterfaceDevice(device.path())); if(ifaceDevice->ip4Address() == ipaddress) { return true; @@ -711,7 +698,7 @@ QNetworkInterface interface; QScopedPointer aConn; - foreach(QString conpath, activeConnectionPaths) { + foreach (const QString &conpath, activeConnectionPaths) { aConn.reset(new QNetworkManagerConnectionActive(conpath)); if(aConn->connection().path() == conIdPath.at(1) && aConn->serviceName() == conIdPath.at(0)) { @@ -723,9 +710,8 @@ } //try guessing - QList list = iface->getDevices(); QScopedPointer devIface; - foreach(QDBusObjectPath path, list) { + foreach (const QDBusObjectPath &path, iface->getDevices()) { devIface.reset(new QNetworkManagerInterfaceDevice(path.path())); if(devIface->deviceType() == type ) { if(devIface->state() == NM_DEVICE_STATE_DISCONNECTED) { @@ -793,23 +779,21 @@ void QNmWifiEngine::scanForAccessPoints() { availableAccessPoints.clear(); - QList list = iface->getDevices(); QScopedPointer devIface; QScopedPointer devWirelessIface; QScopedPointer accessPointIface; - foreach(QDBusObjectPath path, list) { + foreach (const QDBusObjectPath &path, iface->getDevices()) { devIface.reset(new QNetworkManagerInterfaceDevice(path.path())); if(devIface->deviceType() == DEVICE_TYPE_802_11_WIRELESS) { devWirelessIface.reset(new QNetworkManagerInterfaceDeviceWireless(devIface->connectionInterface()->path())); ////////////// AccessPoints - QList apList = devWirelessIface->getAccessPoints(); - foreach(QDBusObjectPath path, apList) { + foreach (const QDBusObjectPath &path, devWirelessIface->getAccessPoints()) { accessPointIface.reset(new QNetworkManagerInterfaceAccessPoint(path.path())); - QString ssid = accessPointIface->ssid(); + const QString ssid = accessPointIface->ssid(); availableAccessPoints.insert(ssid, path); } } @@ -818,11 +802,11 @@ QString QNmWifiEngine::deviceConnectionPath(const QString &mac) { - QString newMac = mac; - newMac = newMac.replace(":","_").toLower(); + QString newMac = mac.toLower(); + newMac.replace(QLatin1Char(':'), QLatin1Char('_')); //device object path might not contain just mac address //might contain extra numbers on the end. thanks HAL - foreach(QString device, devicePaths) { + foreach (const QString &device, devicePaths) { if(device.contains(newMac)) { newMac = device; break; @@ -837,11 +821,10 @@ connectionServices << NM_DBUS_SERVICE_SYSTEM_SETTINGS; connectionServices << NM_DBUS_SERVICE_USER_SETTINGS; QScopedPointer settingsiface; - foreach (QString service, connectionServices) { + foreach (const QString &service, connectionServices) { settingsiface.reset(new QNetworkManagerSettings(service)); - QList list = settingsiface->listConnections(); QScopedPointer sysIface; - foreach(QDBusObjectPath path, list) { + foreach (const QDBusObjectPath &path, settingsiface->listConnections()) { sysIface.reset(new QNetworkManagerSettingsConnection(service, path.path())); if(sysIface->getUuid() == uuid) return QStringList() << service << sysIface->connectionInterface()->path(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/contacts.pro --- a/qtmobility/src/contacts/contacts.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/contacts.pro Mon May 03 13:18:40 2010 +0300 @@ -26,6 +26,7 @@ qcontactdetail.h \ qcontactdetaildefinition.h \ qcontactdetailfielddefinition.h \ + qcontactfetchhint.h \ qcontactfilter.h \ qcontactid.h \ qcontactmanager.h \ @@ -45,6 +46,7 @@ qcontactdetail_p.h \ qcontactdetaildefinition_p.h \ qcontactdetailfielddefinition_p.h \ + qcontactfetchhint_p.h \ qcontactfilter_p.h \ qcontactid_p.h \ qcontactmanager_p.h \ @@ -61,6 +63,7 @@ qcontactdetail.cpp \ qcontactdetaildefinition.cpp \ qcontactdetailfielddefinition.cpp \ + qcontactfetchhint.cpp \ qcontactfilter.cpp \ qcontactid.cpp \ qcontactmanager_p.cpp \ @@ -74,6 +77,10 @@ $$PUBLIC_HEADERS \ $$PRIVATE_HEADERS +maemo5 { + isEmpty(CONTACTS_DEFAULT_ENGINE): CONTACTS_DEFAULT_ENGINE=maemo5 +} + maemo6 { isEmpty(CONTACTS_DEFAULT_ENGINE): CONTACTS_DEFAULT_ENGINE=tracker } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/details.pri --- a/qtmobility/src/contacts/details/details.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/details.pri Mon May 03 13:18:40 2010 +0300 @@ -12,6 +12,7 @@ details/qcontactfamily.h \ details/qcontactgender.h \ details/qcontactgeolocation.h \ + details/qcontactglobalpresence.h \ details/qcontactguid.h \ details/qcontactname.h \ details/qcontactnickname.h \ @@ -19,7 +20,11 @@ details/qcontactonlineaccount.h \ details/qcontactorganization.h \ details/qcontactphonenumber.h \ + details/qcontactpresence.h \ + details/qcontactringtone.h \ details/qcontactsynctarget.h \ + details/qcontacttag.h \ + details/qcontactthumbnail.h \ details/qcontacttimestamp.h \ details/qcontacttype.h \ details/qcontacturl.h diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactaddress.h --- a/qtmobility/src/contacts/details/qcontactaddress.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactaddress.h Mon May 03 13:18:40 2010 +0300 @@ -56,31 +56,31 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldStreet; - const char* FieldLocality; - const char* FieldRegion; - const char* FieldPostcode; - const char* FieldCountry; - const char* FieldSubTypes; - const char* FieldPostOfficeBox; - const char* SubTypeParcel; - const char* SubTypePostal; - const char* SubTypeDomestic; - const char* SubTypeInternational; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldStreet; + static const QLatin1Constant FieldLocality; + static const QLatin1Constant FieldRegion; + static const QLatin1Constant FieldPostcode; + static const QLatin1Constant FieldCountry; + static const QLatin1Constant FieldSubTypes; + static const QLatin1Constant FieldPostOfficeBox; + static const QLatin1Constant SubTypeParcel; + static const QLatin1Constant SubTypePostal; + static const QLatin1Constant SubTypeDomestic; + static const QLatin1Constant SubTypeInternational; #else - Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactAddress, "StreetAddress") - Q_DECLARE_LATIN1_LITERAL(FieldStreet, "Street"); - Q_DECLARE_LATIN1_LITERAL(FieldLocality, "Locality"); - Q_DECLARE_LATIN1_LITERAL(FieldRegion, "Region"); - Q_DECLARE_LATIN1_LITERAL(FieldPostcode, "Postcode"); - Q_DECLARE_LATIN1_LITERAL(FieldCountry, "Country"); - Q_DECLARE_LATIN1_LITERAL(FieldSubTypes, "SubTypes"); - Q_DECLARE_LATIN1_LITERAL(FieldPostOfficeBox, "PostOfficeBox"); - Q_DECLARE_LATIN1_LITERAL(SubTypeParcel, "Parcel"); - Q_DECLARE_LATIN1_LITERAL(SubTypePostal, "Postal"); - Q_DECLARE_LATIN1_LITERAL(SubTypeDomestic, "Domestic"); - Q_DECLARE_LATIN1_LITERAL(SubTypeInternational, "International"); + Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactAddress, "Address") + Q_DECLARE_LATIN1_CONSTANT(FieldStreet, "Street"); + Q_DECLARE_LATIN1_CONSTANT(FieldLocality, "Locality"); + Q_DECLARE_LATIN1_CONSTANT(FieldRegion, "Region"); + Q_DECLARE_LATIN1_CONSTANT(FieldPostcode, "Postcode"); + Q_DECLARE_LATIN1_CONSTANT(FieldCountry, "Country"); + Q_DECLARE_LATIN1_CONSTANT(FieldSubTypes, "SubTypes"); + Q_DECLARE_LATIN1_CONSTANT(FieldPostOfficeBox, "PostOfficeBox"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeParcel, "Parcel"); + Q_DECLARE_LATIN1_CONSTANT(SubTypePostal, "Postal"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeDomestic, "Domestic"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeInternational, "International"); #endif void setStreet(const QString& street) {setValue(FieldStreet, street);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactanniversary.h --- a/qtmobility/src/contacts/details/qcontactanniversary.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactanniversary.h Mon May 03 13:18:40 2010 +0300 @@ -55,27 +55,27 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldCalendarId; - const char* FieldOriginalDate; - const char* FieldEvent; - const char* FieldSubType; - const char* SubTypeWedding; - const char* SubTypeEngagement; - const char* SubTypeHouse; - const char* SubTypeEmployment; - const char* SubTypeMemorial; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldCalendarId; + static const QLatin1Constant FieldOriginalDate; + static const QLatin1Constant FieldEvent; + static const QLatin1Constant FieldSubType; + static const QLatin1Constant SubTypeWedding; + static const QLatin1Constant SubTypeEngagement; + static const QLatin1Constant SubTypeHouse; + static const QLatin1Constant SubTypeEmployment; + static const QLatin1Constant SubTypeMemorial; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactAnniversary, "Anniversary") - Q_DECLARE_LATIN1_LITERAL(FieldCalendarId, "CalendarId"); - Q_DECLARE_LATIN1_LITERAL(FieldOriginalDate, "OriginalDate"); - Q_DECLARE_LATIN1_LITERAL(FieldEvent, "Event"); - Q_DECLARE_LATIN1_LITERAL(FieldSubType, "SubType"); - Q_DECLARE_LATIN1_LITERAL(SubTypeWedding, "Wedding"); - Q_DECLARE_LATIN1_LITERAL(SubTypeEngagement, "Engagement"); - Q_DECLARE_LATIN1_LITERAL(SubTypeHouse, "House"); - Q_DECLARE_LATIN1_LITERAL(SubTypeEmployment, "Employment"); - Q_DECLARE_LATIN1_LITERAL(SubTypeMemorial, "Memorial"); + Q_DECLARE_LATIN1_CONSTANT(FieldCalendarId, "CalendarId"); + Q_DECLARE_LATIN1_CONSTANT(FieldOriginalDate, "OriginalDate"); + Q_DECLARE_LATIN1_CONSTANT(FieldEvent, "Event"); + Q_DECLARE_LATIN1_CONSTANT(FieldSubType, "SubType"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeWedding, "Wedding"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeEngagement, "Engagement"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeHouse, "House"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeEmployment, "Employment"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeMemorial, "Memorial"); #endif void setOriginalDate(const QDate& date) {setValue(FieldOriginalDate, date);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactavatar.h --- a/qtmobility/src/contacts/details/qcontactavatar.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactavatar.h Mon May 03 13:18:40 2010 +0300 @@ -43,16 +43,12 @@ #define QCONTACTAVATAR_H #include -#include +#include + #include "qtcontactsglobal.h" #include "qcontactdetail.h" #include "qcontact.h" -QT_BEGIN_NAMESPACE -class QPixmap; -class QSize; -QT_END_NAMESPACE - QTM_BEGIN_NAMESPACE /* Leaf class */ @@ -60,41 +56,23 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldAvatar; - const char* FieldAvatarPixmap; - const char* FieldSubType; - const char* SubTypeImage; - const char* SubTypeVideo; - const char* SubTypeTexturedMesh; - const char* SubTypeAudioRingtone; - const char* SubTypeVideoRingtone; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldImageUrl; + static const QLatin1Constant FieldVideoUrl; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactAvatar, "Avatar") - Q_DECLARE_LATIN1_LITERAL(FieldAvatar, "Avatar"); - Q_DECLARE_LATIN1_LITERAL(FieldAvatarPixmap, "AvatarPixmap"); - Q_DECLARE_LATIN1_LITERAL(FieldSubType, "SubType"); - Q_DECLARE_LATIN1_LITERAL(SubTypeImage, "Image"); - Q_DECLARE_LATIN1_LITERAL(SubTypeVideo, "Video"); - Q_DECLARE_LATIN1_LITERAL(SubTypeTexturedMesh, "TexturedMesh"); - Q_DECLARE_LATIN1_LITERAL(SubTypeAudioRingtone, "AudioRingtone"); - Q_DECLARE_LATIN1_LITERAL(SubTypeVideoRingtone, "VideoRingtone"); + Q_DECLARE_LATIN1_CONSTANT(FieldImageUrl, "ImageUrl"); + Q_DECLARE_LATIN1_CONSTANT(FieldVideoUrl, "VideoUrl"); + // MeshUri, VibetoneUri, Audio(theme)Uri, ...? #endif - void setAvatar(const QString& avatarPath) {setValue(FieldAvatar, avatarPath);} - QString avatar() const {return value(FieldAvatar);} - QPixmap pixmap() const {return value(QContactAvatar::FieldAvatarPixmap);} - bool setPixmap(const QPixmap& pixmap) - { - setSubType(SubTypeImage); - return setValue(FieldAvatarPixmap, QVariant::fromValue(pixmap)); - } - - void setSubType(const QString& subType) {setValue(FieldSubType, subType);} - QString subType() const {return value(FieldSubType);} + void setImageUrl(const QUrl& imageUrl) {setValue(FieldImageUrl, imageUrl);} + QUrl imageUrl() const {return value(FieldImageUrl);} + + void setVideoUrl(const QUrl& videoUrl) {setValue(FieldVideoUrl, videoUrl);} + QUrl videoUrl() const {return value(FieldVideoUrl);} }; QTM_END_NAMESPACE #endif - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactbirthday.h --- a/qtmobility/src/contacts/details/qcontactbirthday.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactbirthday.h Mon May 03 13:18:40 2010 +0300 @@ -55,11 +55,11 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldBirthday; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldBirthday; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactBirthday, "Birthday") - Q_DECLARE_LATIN1_LITERAL(FieldBirthday, "Birthday"); + Q_DECLARE_LATIN1_CONSTANT(FieldBirthday, "Birthday"); #endif void setDate(const QDate& date) {setValue(FieldBirthday, date);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactdetails.cpp --- a/qtmobility/src/contacts/details/qcontactdetails.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactdetails.cpp Mon May 03 13:18:40 2010 +0300 @@ -110,6 +110,13 @@ */ /*! + \class QContactGlobalPresence + \brief The QContactGlobalPresence class provides aggregated presence information + for a contact, synthesized or supplied by the backend. + \ingroup contacts-details + */ + +/*! \class QContactGuid \brief The QContactGuid class contains the globally unique Id of a contact. @@ -157,6 +164,20 @@ */ /*! + \class QContactPresence + \brief The QContactPresence class provides presence information + for an online account of a contact. + \ingroup contacts-details + */ + +/*! + \class QContactRingtone + \brief The QContactRingtone class provides a ringtone associated + with a contact + \ingroup contacts-details + */ + +/*! \class QContactSyncTarget \brief The QContactSyncTarget class provides a sync target for a contact. @@ -164,6 +185,20 @@ */ /*! + \class QContactTag + \brief The QContactTag class contains a tag associated with a + contact. + \ingroup contacts-details + */ + +/*! + \class QContactThumbnail + \brief The QContactThumbnail class contains a thumbnail used + in display lists to represent the contact. + \ingroup contacts-details + */ + +/*! \class QContactTimestamp \brief The QContactTimestamp class contains the creation and last-modified timestamp associated with the contact. @@ -187,91 +222,151 @@ \variable QContactName::DefinitionName The constant string which identifies the definition of details which are names. */ -Q_DEFINE_LATIN1_LITERAL(QContactName::DefinitionName, "Name"); +Q_DEFINE_LATIN1_CONSTANT(QContactName::DefinitionName, "Name"); /*! \variable QContactNickname::DefinitionName The constant string which identifies the definition of details which are nicknames. */ -Q_DEFINE_LATIN1_LITERAL(QContactNickname::DefinitionName, "Nickname"); +Q_DEFINE_LATIN1_CONSTANT(QContactNickname::DefinitionName, "Nickname"); /*! \variable QContactNote::DefinitionName The constant string which identifies the definition of details which are notes. */ -Q_DEFINE_LATIN1_LITERAL(QContactNote::DefinitionName, "Note"); +Q_DEFINE_LATIN1_CONSTANT(QContactNote::DefinitionName, "Note"); /*! \variable QContactAvatar::DefinitionName The constant string which identifies the definition of details which are avatars. */ -Q_DEFINE_LATIN1_LITERAL(QContactAvatar::DefinitionName, "Avatar"); +Q_DEFINE_LATIN1_CONSTANT(QContactAvatar::DefinitionName, "Avatar"); /*! \variable QContactAddress::DefinitionName The constant string which identifies the definition of details which are street addresses. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::DefinitionName, "StreetAddress"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::DefinitionName, "Address"); /*! \variable QContactPhoneNumber::DefinitionName The constant string which identifies the definition of details which are phone numbers. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::DefinitionName, "PhoneNumber"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::DefinitionName, "PhoneNumber"); + +/*! + \variable QContactPresence::DefinitionName + The constant string which identifies the definition of details which contain presence information. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactPresence::DefinitionName, "Presence"); + +/*! + \variable QContactPresence::FieldTimestamp + + The constant key for which the last update timestamp value is stored in details + of the QContactPresence type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactPresence::FieldTimestamp, "Timestamp"); + +/*! + \variable QContactPresence::FieldNickname + + The constant key for which the nickname value is stored in details + of the QContactPresence type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactPresence::FieldNickname, "Nickname"); + +/*! + \variable QContactPresence::FieldPresenceState + + The constant key for which the presence state value is stored in details + of the QContactPresence typel. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactPresence::FieldPresenceState, "PresenceState"); + +/*! + \variable QContactPresence::FieldPresenceStateText + + The constant key for which the presence provider provided text representation + of the presence state is stored in details of the QContactPresence type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactPresence::FieldPresenceStateText, "PresenceStateText"); + +/*! + \variable QContactPresence::FieldPresenceStateImageUrl + + The constant key for which the image url value for the current presence state + is stored in details of the QContactPresence type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactPresence::FieldPresenceStateImageUrl, "PresenceStateImageUrl"); + +/*! + \variable QContactPresence::FieldCustomMessage + + The constant key for which the user-entered custom message for their state + is stored in details of the QContactPresence type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactPresence::FieldCustomMessage, "CustomMessage"); + +/*! + \variable QContactRingtone::DefinitionName + The constant string which identifies the definition of details which are ringtones. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactRingtone::DefinitionName, "Ringtone"); /*! \variable QContactSyncTarget::DefinitionName - The constant string which identifies the definition of details which are synchronisation target stores. + The constant string which identifies the definition of details which are synchronization target stores. */ -Q_DEFINE_LATIN1_LITERAL(QContactSyncTarget::DefinitionName, "SyncTarget"); +Q_DEFINE_LATIN1_CONSTANT(QContactSyncTarget::DefinitionName, "SyncTarget"); /*! \variable QContactTimestamp::DefinitionName - The constant string which identifies the definition of details which are contact synchronisation timestamps. + The constant string which identifies the definition of details which are contact synchronization timestamps. */ -Q_DEFINE_LATIN1_LITERAL(QContactTimestamp::DefinitionName, "Timestamp"); +Q_DEFINE_LATIN1_CONSTANT(QContactTimestamp::DefinitionName, "Timestamp"); /*! \variable QContactType::DefinitionName The constant string which identifies the definition of details which identify the type of the contact. */ -Q_DEFINE_LATIN1_LITERAL(QContactType::DefinitionName, "Type"); +Q_DEFINE_LATIN1_CONSTANT(QContactType::DefinitionName, "Type"); /*! \variable QContactGuid::DefinitionName The constant string which identifies the definition of details which are globally unique identifiers. */ -Q_DEFINE_LATIN1_LITERAL(QContactGuid::DefinitionName, "Guid"); +Q_DEFINE_LATIN1_CONSTANT(QContactGuid::DefinitionName, "Guid"); /*! \variable QContactEmailAddress::DefinitionName The constant string which identifies the definition of details which are email addresses. */ -Q_DEFINE_LATIN1_LITERAL(QContactEmailAddress::DefinitionName, "EmailAddress"); +Q_DEFINE_LATIN1_CONSTANT(QContactEmailAddress::DefinitionName, "EmailAddress"); /*! \variable QContactFamily::DefinitionName The constant string which identifies the definition of details which contain the names of the contact's family. */ -Q_DEFINE_LATIN1_LITERAL(QContactFamily::DefinitionName, "Family"); +Q_DEFINE_LATIN1_CONSTANT(QContactFamily::DefinitionName, "Family"); /*! \variable QContactUrl::DefinitionName The constant string which identifies the definition of details which are universal resource location paths. */ -Q_DEFINE_LATIN1_LITERAL(QContactUrl::DefinitionName, "Url"); +Q_DEFINE_LATIN1_CONSTANT(QContactUrl::DefinitionName, "Url"); /*! \variable QContactBirthday::DefinitionName The constant string which identifies the definition of details which are the dates of birthdays. */ -Q_DEFINE_LATIN1_LITERAL(QContactBirthday::DefinitionName, "Birthday"); +Q_DEFINE_LATIN1_CONSTANT(QContactBirthday::DefinitionName, "Birthday"); /*! \variable QContactAnniversary::DefinitionName The constant string which identifies the definition of details which are anniversary dates. */ -Q_DEFINE_LATIN1_LITERAL(QContactAnniversary::DefinitionName, "Anniversary"); +Q_DEFINE_LATIN1_CONSTANT(QContactAnniversary::DefinitionName, "Anniversary"); /*! \variable QContactGender::DefinitionName @@ -279,7 +374,7 @@ The constant string which identifies the definition of details which identify the gender of a contact in a given context. */ -Q_DEFINE_LATIN1_LITERAL(QContactGender::DefinitionName, "Gender"); +Q_DEFINE_LATIN1_CONSTANT(QContactGender::DefinitionName, "Gender"); /*! \variable QContactGeoLocation::DefinitionName @@ -287,7 +382,61 @@ The constant string which identifies the definition of details which describe a location associated with a contact. */ -Q_DEFINE_LATIN1_LITERAL(QContactGeoLocation::DefinitionName, "GeoLocation"); +Q_DEFINE_LATIN1_CONSTANT(QContactGeoLocation::DefinitionName, "GeoLocation"); + +/*! + \variable QContactGlobalPresence::DefinitionName + The constant string which identifies the definition of details which contain presence information. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactGlobalPresence::DefinitionName, "GlobalPresence"); + +/*! + \variable QContactGlobalPresence::FieldTimestamp + + The constant key for which the last update timestamp value is stored in details + of the QContactGlobalPresence type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactGlobalPresence::FieldTimestamp, "Timestamp"); + +/*! + \variable QContactGlobalPresence::FieldNickname + + The constant key for which the nickname value is stored in details + of the QContactGlobalPresence type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactGlobalPresence::FieldNickname, "Nickname"); + +/*! + \variable QContactGlobalPresence::FieldPresenceState + + The constant key for which the presence state value is stored in details + of the QContactGlobalPresence typel. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactGlobalPresence::FieldPresenceState, "PresenceState"); + +/*! + \variable QContactGlobalPresence::FieldPresenceStateText + + The constant key for which the presence provider provided text representation + of the presence state is stored in details of the QContactGlobalPresence type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactGlobalPresence::FieldPresenceStateText, "PresenceStateText"); + +/*! + \variable QContactGlobalPresence::FieldPresenceStateImageUrl + + The constant key for which the image url value for the current presence state + is stored in details of the QContactGlobalPresence type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactGlobalPresence::FieldPresenceStateImageUrl, "PresenceStateImageUrl"); + +/*! + \variable QContactGlobalPresence::FieldCustomMessage + + The constant key for which the user-entered custom message for their state + is stored in details of the QContactGlobalPresence type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactGlobalPresence::FieldCustomMessage, "CustomMessage"); /*! \variable QContactOnlineAccount::DefinitionName @@ -296,77 +445,19 @@ which identify the organization to which a contact belongs in a given context. */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::DefinitionName, "OnlineAccount"); - -/*! - \variable QContactOnlineAccount::FieldNickname - - The constant key for which the nickname value is stored in details - of the QContactOnlineAccount type. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::FieldNickname, "Nickname"); - -/*! - \variable QContactOnlineAccount::FieldPresence - - The constant key for which the presence value is stored in details - of the QContactOnlineAccount typel. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::FieldPresence, "Presence"); - -/*! - \variable QContactOnlineAccount::PresenceAvailable - - The value for presence which specifies that the contact's current - status is available. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::PresenceAvailable, "Available"); - -/*! - \variable QContactOnlineAccount::PresenceHidden - - The value for presence which specifies that the contact's current. - status is hidden - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::PresenceHidden, "Hidden"); +Q_DEFINE_LATIN1_CONSTANT(QContactOnlineAccount::DefinitionName, "OnlineAccount"); /*! - \variable QContactOnlineAccount::PresenceBusy - The value for presence which specifies that the contact's current status is busy. + \variable QContactTag::DefinitionName + The constant string which identifies the definition of details which are tags. */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::PresenceBusy, "Busy"); - -/*! - \variable QContactOnlineAccount::PresenceAway - The value for presence which specifies that the contact's current status is away. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::PresenceAway, "Away"); - -/*! - \variable QContactOnlineAccount::PresenceExtendedAway - The value for presence which specifies that the contact's current status is extended away. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::PresenceExtendedAway, "ExtendedAway"); +Q_DEFINE_LATIN1_CONSTANT(QContactTag::DefinitionName, "Tag"); /*! - \variable QContactOnlineAccount::PresenceUnknown - The value for presence which specifies that the contact's current status is unknown. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::PresenceUnknown, "Unknown"); - -/*! - \variable QContactOnlineAccount::PresenceOffline - The value for presence which specifies that the contact's current status is offline. + \variable QContactThumbnail::DefinitionName + The constant string which identifies the definition of details which are thumbnails. */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::PresenceOffline, "Offline"); - -/*! - \variable QContactOnlineAccount::FieldStatusMessage - - The constant key for which the status message value is stored in - details of the QContactOnlineAccount type. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::FieldStatusMessage, "StatusMessage"); +Q_DEFINE_LATIN1_CONSTANT(QContactThumbnail::DefinitionName, "Thumbnail"); /*! \variable QContactOnlineAccount::FieldCapabilities @@ -374,7 +465,63 @@ The constant key for which the account capabilities value is stored in details of the QContactOnlineAccount type. */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::FieldCapabilities, "Capabilities"); +Q_DEFINE_LATIN1_CONSTANT(QContactOnlineAccount::FieldCapabilities, "Capabilities"); + +/*! + \variable QContactOnlineAccount::FieldAccountUri + + The constant key for which the remote account uri value is stored + in details of the QContactOnlineAccount type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactOnlineAccount::FieldAccountUri, "AccountUri"); + +/*! + \variable QContactOnlineAccount::FieldServiceProvider + + The constant key for which the service provider value is stored in + details of the QContactOnlineAccount type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactOnlineAccount::FieldServiceProvider, "ServiceProvider"); + +/*! + \variable QContactOnlineAccount::FieldSubTypes + + The constant key for which the subtypes value is stored in details + of the QContactOnlineAccount type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactOnlineAccount::FieldSubTypes, "SubTypes"); + +/*! + \variable QContactOnlineAccount::SubTypeSip + + The constant attribute value which describes the online account as + supporting SIP. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactOnlineAccount::SubTypeSip, "Sip"); + +/*! + \variable QContactOnlineAccount::SubTypeSipVoip + + The constant attribute value which describes the online account as + supporting SIP-based VoIP. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactOnlineAccount::SubTypeSipVoip, "SipVoip"); + +/*! + \variable QContactOnlineAccount::SubTypeImpp + + The constant attribute value which describes the online account as + supporting IMPP. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactOnlineAccount::SubTypeImpp, "Impp"); + +/*! + \variable QContactOnlineAccount::SubTypeVideoShare + + The constant attribute value which describes the online account as + supporting VideoShare. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactOnlineAccount::SubTypeVideoShare, "VideoShare"); /*! \variable QContactOrganization::DefinitionName @@ -383,7 +530,7 @@ which identify the organization to which a contact belongs in a given context. */ -Q_DEFINE_LATIN1_LITERAL(QContactOrganization::DefinitionName, "Organization"); +Q_DEFINE_LATIN1_CONSTANT(QContactOrganization::DefinitionName, "Organization"); /*! \variable QContactDisplayLabel::DefinitionName @@ -391,7 +538,7 @@ The constant string which identifies the definition of details which contain a display label of a contact. */ -Q_DEFINE_LATIN1_LITERAL(QContactDisplayLabel::DefinitionName, "DisplayLabel"); +Q_DEFINE_LATIN1_CONSTANT(QContactDisplayLabel::DefinitionName, "DisplayLabel"); /*! @@ -400,7 +547,7 @@ The constant key for which the phone number value is stored in details of the QContactPhoneNumber type. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::FieldNumber, "PhoneNumber"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::FieldNumber, "PhoneNumber"); /*! \variable QContactPhoneNumber::FieldSubTypes @@ -408,7 +555,7 @@ The constant key for which the subtype values are stored in details of the QContactPhoneNumber type. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::FieldSubTypes, "SubTypes"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::FieldSubTypes, "SubTypes"); /*! \variable QContactEmailAddress::FieldEmailAddress @@ -416,7 +563,7 @@ The constant key for which the email address value is stored in details of the QContactEmailAddress type. */ -Q_DEFINE_LATIN1_LITERAL(QContactEmailAddress::FieldEmailAddress, "EmailAddress"); +Q_DEFINE_LATIN1_CONSTANT(QContactEmailAddress::FieldEmailAddress, "EmailAddress"); /*! \variable QContactFamily::FieldSpouse @@ -424,7 +571,7 @@ The constant key for which the spouse name value is stored in details of the QContactFamily type. */ -Q_DEFINE_LATIN1_LITERAL(QContactFamily::FieldSpouse, "Spouse"); +Q_DEFINE_LATIN1_CONSTANT(QContactFamily::FieldSpouse, "Spouse"); /*! \variable QContactFamily::FieldChildren @@ -432,7 +579,7 @@ The constant key for which the children names value is stored in details of the QContactFamily type. */ -Q_DEFINE_LATIN1_LITERAL(QContactFamily::FieldChildren, "Children"); +Q_DEFINE_LATIN1_CONSTANT(QContactFamily::FieldChildren, "Children"); /*! \variable QContactGuid::FieldGuid @@ -440,39 +587,31 @@ The constant key for which the globally unique identifier value is stored in details of the QContactGuid type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGuid::FieldGuid, "Guid"); +Q_DEFINE_LATIN1_CONSTANT(QContactGuid::FieldGuid, "Guid"); /*! \variable QContactSyncTarget::FieldSyncTarget The constant key for which the value of the target store for - synchronisation is stored in details of the QContactSyncTarget type. + synchronization is stored in details of the QContactSyncTarget type. */ -Q_DEFINE_LATIN1_LITERAL(QContactSyncTarget::FieldSyncTarget, "SyncTarget"); - -/*! - \variable QContactAvatar::FieldAvatar - - The constant key for which the path the avatar value is stored in - details of the QContactAvatar type. - */ -Q_DEFINE_LATIN1_LITERAL(QContactAvatar::FieldAvatar, "Avatar"); +Q_DEFINE_LATIN1_CONSTANT(QContactSyncTarget::FieldSyncTarget, "SyncTarget"); /*! - \variable QContactAvatar::FieldAvatarPixmap - - The constant key for which the path the avatar value is stored in + \variable QContactAvatar::FieldImageUrl + + The constant key for which the url of the avatar image value is stored in details of the QContactAvatar type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAvatar::FieldAvatarPixmap, "AvatarPixmap"); +Q_DEFINE_LATIN1_CONSTANT(QContactAvatar::FieldImageUrl, "ImageUrl"); /*! - \variable QContactAvatar::FieldSubType - - The constant key for which the subtypes value is stored in details - of the QContactAvatar type. + \variable QContactAvatar::FieldVideoUrl + + The constant key for which the url of the avatar video value is stored in + details of the QContactAvatar type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAvatar::FieldSubType, "SubType"); +Q_DEFINE_LATIN1_CONSTANT(QContactAvatar::FieldVideoUrl, "VideoUrl"); /*! \variable QContactName::FieldPrefix @@ -480,7 +619,7 @@ The constant key for which the name prefix value is stored in details of the QContactName type. */ -Q_DEFINE_LATIN1_LITERAL(QContactName::FieldPrefix, "Prefix"); +Q_DEFINE_LATIN1_CONSTANT(QContactName::FieldPrefix, "Prefix"); /*! \variable QContactName::FieldFirstName @@ -488,7 +627,7 @@ The constant key for which the first name value is stored in details of the QContactName type. */ -Q_DEFINE_LATIN1_LITERAL(QContactName::FieldFirstName, "FirstName"); +Q_DEFINE_LATIN1_CONSTANT(QContactName::FieldFirstName, "FirstName"); /*! \variable QContactName::FieldMiddleName @@ -496,7 +635,7 @@ The constant key for which the middle name value is stored in details of the QContactName type. */ -Q_DEFINE_LATIN1_LITERAL(QContactName::FieldMiddleName, "MiddleName"); +Q_DEFINE_LATIN1_CONSTANT(QContactName::FieldMiddleName, "MiddleName"); /*! \variable QContactName::FieldLastName @@ -504,31 +643,7 @@ The constant key for which the last name value is stored in details of the QContactName type. */ -Q_DEFINE_LATIN1_LITERAL(QContactName::FieldLastName, "LastName"); - -/*! - \variable QContactName::FieldFirst - - The constant key for which the first name value is stored in - details of the QContactName type. - */ -Q_DEFINE_LATIN1_LITERAL(QContactName::FieldFirst, "FirstName"); - -/*! - \variable QContactName::FieldMiddle - - The constant key for which the middle name value is stored in - details of the QContactName type. - */ -Q_DEFINE_LATIN1_LITERAL(QContactName::FieldMiddle, "MiddleName"); - -/*! - \variable QContactName::FieldLast - - The constant key for which the last name value is stored in details - of the QContactName type. - */ -Q_DEFINE_LATIN1_LITERAL(QContactName::FieldLast, "LastName"); +Q_DEFINE_LATIN1_CONSTANT(QContactName::FieldLastName, "LastName"); /*! \variable QContactName::FieldSuffix @@ -536,7 +651,7 @@ The constant key for which the name suffix value is stored in details of the QContactName type. */ -Q_DEFINE_LATIN1_LITERAL(QContactName::FieldSuffix, "Suffix"); +Q_DEFINE_LATIN1_CONSTANT(QContactName::FieldSuffix, "Suffix"); /*! \variable QContactName::FieldCustomLabel @@ -544,7 +659,7 @@ The constant key for which the custom name label value is stored in details of the QContactName type, if supported. */ -Q_DEFINE_LATIN1_LITERAL(QContactName::FieldCustomLabel, "CustomLabel"); +Q_DEFINE_LATIN1_CONSTANT(QContactName::FieldCustomLabel, "CustomLabel"); /*! \variable QContactNickname::FieldNickname @@ -552,7 +667,7 @@ The constant key for which the nickname value is stored in details of the QContactNickname type. */ -Q_DEFINE_LATIN1_LITERAL(QContactNickname::FieldNickname, "Nickname"); +Q_DEFINE_LATIN1_CONSTANT(QContactNickname::FieldNickname, "Nickname"); /*! \variable QContactNote::FieldNote @@ -560,7 +675,7 @@ The constant key for which the note value is stored in details of the QContactNote type. */ -Q_DEFINE_LATIN1_LITERAL(QContactNote::FieldNote, "Note"); +Q_DEFINE_LATIN1_CONSTANT(QContactNote::FieldNote, "Note"); /*! \variable QContactAddress::FieldStreet @@ -568,7 +683,7 @@ The constant key for which the street value is stored in details of the QContactAddress type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::FieldStreet, "Street"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::FieldStreet, "Street"); /*! \variable QContactAddress::FieldLocality @@ -576,7 +691,7 @@ The constant key for which the locality value is stored in details of the QContactAddress type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::FieldLocality, "Locality"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::FieldLocality, "Locality"); /*! \variable QContactAddress::FieldRegion @@ -584,7 +699,7 @@ The constant key for which the region value is stored in details of the QContactAddress type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::FieldRegion, "Region"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::FieldRegion, "Region"); /*! \variable QContactAddress::FieldPostcode @@ -592,7 +707,7 @@ The constant key for which the postcode value is stored in details of the QContactAddress type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::FieldPostcode, "Postcode"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::FieldPostcode, "Postcode"); /*! \variable QContactAddress::FieldCountry @@ -600,7 +715,7 @@ The constant key for which the country value is stored in details of the QContactAddress type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::FieldCountry, "Country"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::FieldCountry, "Country"); /*! \variable QContactAddress::FieldPostOfficeBox @@ -608,7 +723,7 @@ The constant key for which the post office box value is stored in details of the QContactAddress type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::FieldPostOfficeBox, "PostOfficeBox"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::FieldPostOfficeBox, "PostOfficeBox"); /*! \variable QContactAddress::FieldSubTypes @@ -616,7 +731,7 @@ The constant key for which the subtypes value is stored in details of the QContactAddress type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::FieldSubTypes, "SubTypes"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::FieldSubTypes, "SubTypes"); /*! \variable QContactUrl::FieldUrl @@ -624,7 +739,7 @@ The constant key for which the url value is stored in details of the QContactUrl type. */ -Q_DEFINE_LATIN1_LITERAL(QContactUrl::FieldUrl, "Url"); +Q_DEFINE_LATIN1_CONSTANT(QContactUrl::FieldUrl, "Url"); /*! \variable QContactUrl::FieldSubType @@ -632,7 +747,7 @@ The constant key for which the subtypes value is stored in details of the QContactUrl type. */ -Q_DEFINE_LATIN1_LITERAL(QContactUrl::FieldSubType, "SubType"); +Q_DEFINE_LATIN1_CONSTANT(QContactUrl::FieldSubType, "SubType"); /*! \variable QContactBirthday::FieldBirthday @@ -640,7 +755,7 @@ The constant key for which the birthday date value is stored in details of the QContactBirthday type. */ -Q_DEFINE_LATIN1_LITERAL(QContactBirthday::FieldBirthday, "Birthday"); +Q_DEFINE_LATIN1_CONSTANT(QContactBirthday::FieldBirthday, "Birthday"); /*! \variable QContactAnniversary::FieldOriginalDate @@ -648,7 +763,7 @@ The constant key for which the anniversary original event date value is stored in details of the QContactAnniversary type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAnniversary::FieldOriginalDate, "OriginalDate"); +Q_DEFINE_LATIN1_CONSTANT(QContactAnniversary::FieldOriginalDate, "OriginalDate"); /*! \variable QContactAnniversary::FieldEvent @@ -656,7 +771,7 @@ The constant key for which the name of the event is stored in details of the QContactAnniversary type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAnniversary::FieldEvent, "Event"); +Q_DEFINE_LATIN1_CONSTANT(QContactAnniversary::FieldEvent, "Event"); /*! \variable QContactAnniversary::FieldCalendarId @@ -665,7 +780,7 @@ associated calendar entry is stored in details of the QContactAnniversary type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAnniversary::FieldCalendarId, "CalendarId"); +Q_DEFINE_LATIN1_CONSTANT(QContactAnniversary::FieldCalendarId, "CalendarId"); /*! \variable QContactAnniversary::FieldSubType @@ -673,7 +788,15 @@ The constant key for which the subtypes value is stored in details of the QContactAnniversary type. */ -Q_DEFINE_LATIN1_LITERAL(QContactAnniversary::FieldSubType, "SubType"); +Q_DEFINE_LATIN1_CONSTANT(QContactAnniversary::FieldSubType, "SubType"); + +/*! + \variable QContactDisplayLabel::FieldLabel + + The constant key for which the display label value is stored in + details of the QContactDisplayLabel type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactDisplayLabel::FieldLabel, "Label"); /*! \variable QContactGender::FieldGender @@ -681,25 +804,25 @@ The constant key for which the gender value is stored in details of the QContactGender type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGender::FieldGender, "Gender"); +Q_DEFINE_LATIN1_CONSTANT(QContactGender::FieldGender, "Gender"); /*! \variable QContactGender::GenderMale The value that identifies this contact as being male. */ -Q_DEFINE_LATIN1_LITERAL(QContactGender::GenderMale, "Male"); +Q_DEFINE_LATIN1_CONSTANT(QContactGender::GenderMale, "Male"); /*! \variable QContactGender::GenderFemale The value that identifies this contact as being female. */ -Q_DEFINE_LATIN1_LITERAL(QContactGender::GenderFemale, "Female"); +Q_DEFINE_LATIN1_CONSTANT(QContactGender::GenderFemale, "Female"); /*! \variable QContactGender::GenderUnspecified The value that identifies this contact as being of unspecified gender. */ -Q_DEFINE_LATIN1_LITERAL(QContactGender::GenderUnspecified, "Unspecified"); +Q_DEFINE_LATIN1_CONSTANT(QContactGender::GenderUnspecified, "Unspecified"); /*! \variable QContactGeoLocation::FieldLabel @@ -707,7 +830,7 @@ The constant key for which the location label value is stored in details of the QContactGeoLocation type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGeoLocation::FieldLabel, "Label"); +Q_DEFINE_LATIN1_CONSTANT(QContactGeoLocation::FieldLabel, "Label"); /*! \variable QContactGeoLocation::FieldLatitude @@ -715,7 +838,7 @@ The constant key for which the latitude value is stored in details of the QContactGeoLocation type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGeoLocation::FieldLatitude, "Latitude"); +Q_DEFINE_LATIN1_CONSTANT(QContactGeoLocation::FieldLatitude, "Latitude"); /*! \variable QContactGeoLocation::FieldLongitude @@ -723,7 +846,7 @@ The constant key for which the longitude value is stored in details of the QContactGeoLocation type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGeoLocation::FieldLongitude, "Longitude"); +Q_DEFINE_LATIN1_CONSTANT(QContactGeoLocation::FieldLongitude, "Longitude"); /*! \variable QContactGeoLocation::FieldAccuracy @@ -731,7 +854,7 @@ The constant key for which the location accuracy value is stored in details of the QContactGeoLocation type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGeoLocation::FieldAccuracy, "Accuracy"); +Q_DEFINE_LATIN1_CONSTANT(QContactGeoLocation::FieldAccuracy, "Accuracy"); /*! \variable QContactGeoLocation::FieldAltitude @@ -739,7 +862,7 @@ The constant key for which the altitude value is stored in details of the QContactGeoLocation type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGeoLocation::FieldAltitude, "Altitude"); +Q_DEFINE_LATIN1_CONSTANT(QContactGeoLocation::FieldAltitude, "Altitude"); /*! @@ -748,7 +871,7 @@ The constant key for which the altitude accuracy value is stored in details of the QContactGeoLocation type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGeoLocation::FieldAltitudeAccuracy, "AltitudeAccuracy"); +Q_DEFINE_LATIN1_CONSTANT(QContactGeoLocation::FieldAltitudeAccuracy, "AltitudeAccuracy"); /*! \variable QContactGeoLocation::FieldHeading @@ -756,7 +879,7 @@ The constant key for which the heading value is stored in details of the QContactGeoLocation type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGeoLocation::FieldHeading, "Heading"); +Q_DEFINE_LATIN1_CONSTANT(QContactGeoLocation::FieldHeading, "Heading"); /*! \variable QContactGeoLocation::FieldSpeed @@ -764,7 +887,15 @@ The constant key for which the speed value is stored in details of the QContactGeoLocation type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGeoLocation::FieldSpeed, "Speed"); +Q_DEFINE_LATIN1_CONSTANT(QContactGeoLocation::FieldSpeed, "Speed"); + +/*! + \variable QContactTag::FieldTag + + The constant key for which the tag value is stored in details + of the QContactTag type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactTag::FieldTag, "Tag"); /*! \variable QContactGeoLocation::FieldTimestamp @@ -772,63 +903,7 @@ The constant key for which the timestamp value is stored in details of the QContactGeoLocation type. */ -Q_DEFINE_LATIN1_LITERAL(QContactGeoLocation::FieldTimestamp, "Timestamp"); - -/*! - \variable QContactOnlineAccount::FieldAccountUri - - The constant key for which the remote account uri value is stored - in details of the QContactOnlineAccount type. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::FieldAccountUri, "AccountUri"); - -/*! - \variable QContactOnlineAccount::FieldServiceProvider - - The constant key for which the service provider value is stored in - details of the QContactOnlineAccount type. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::FieldServiceProvider, "ServiceProvider"); - -/*! - \variable QContactOnlineAccount::FieldSubTypes - - The constant key for which the subtypes value is stored in details - of the QContactOnlineAccount type. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::FieldSubTypes, "SubTypes"); - -/*! - \variable QContactOnlineAccount::SubTypeSip - - The constant attribute value which describes the online account as - supporting SIP. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::SubTypeSip, "Sip"); - -/*! - \variable QContactOnlineAccount::SubTypeSipVoip - - The constant attribute value which describes the online account as - supporting SIP-based VoIP. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::SubTypeSipVoip, "SipVoip"); - -/*! - \variable QContactOnlineAccount::SubTypeImpp - - The constant attribute value which describes the online account as - supporting IMPP. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::SubTypeImpp, "Impp"); - -/*! - \variable QContactOnlineAccount::SubTypeVideoShare - - The constant attribute value which describes the online account as - supporting VideoShare. - */ -Q_DEFINE_LATIN1_LITERAL(QContactOnlineAccount::SubTypeVideoShare, "VideoShare"); +Q_DEFINE_LATIN1_CONSTANT(QContactGeoLocation::FieldTimestamp, "Timestamp"); /*! \variable QContactOrganization::FieldName @@ -836,15 +911,15 @@ The constant key for which the name value is stored in details of the QContactOrganization type. */ -Q_DEFINE_LATIN1_LITERAL(QContactOrganization::FieldName, "Name"); +Q_DEFINE_LATIN1_CONSTANT(QContactOrganization::FieldName, "Name"); /*! - \variable QContactOrganization::FieldLogo - - The constant key for which the logo path value is stored in details + \variable QContactOrganization::FieldLogoUrl + + The constant key for which the logo url is stored in details of the QContactOrganization type. */ -Q_DEFINE_LATIN1_LITERAL(QContactOrganization::FieldLogo, "Logo"); +Q_DEFINE_LATIN1_CONSTANT(QContactOrganization::FieldLogoUrl, "LogoUrl"); /*! \variable QContactOrganization::FieldDepartment @@ -852,7 +927,7 @@ The constant key for which the organization's department value is stored in details of the QContactOrganization type. */ -Q_DEFINE_LATIN1_LITERAL(QContactOrganization::FieldDepartment, "Department"); +Q_DEFINE_LATIN1_CONSTANT(QContactOrganization::FieldDepartment, "Department"); /*! \variable QContactOrganization::FieldLocation @@ -861,7 +936,7 @@ location of the contact's part of the organization) value is stored in details of the QContactOrganization type. */ -Q_DEFINE_LATIN1_LITERAL(QContactOrganization::FieldLocation, "Location"); +Q_DEFINE_LATIN1_CONSTANT(QContactOrganization::FieldLocation, "Location"); /*! \variable QContactOrganization::FieldRole @@ -869,7 +944,7 @@ The constant key for which the contact's role within the organization is stored in details of the QContactOrganization type. */ -Q_DEFINE_LATIN1_LITERAL(QContactOrganization::FieldRole, "Role"); +Q_DEFINE_LATIN1_CONSTANT(QContactOrganization::FieldRole, "Role"); /*! \variable QContactOrganization::FieldTitle @@ -877,7 +952,7 @@ The constant key for which the contact's title within the organization is stored in details of the QContactOrganization type. */ -Q_DEFINE_LATIN1_LITERAL(QContactOrganization::FieldTitle, "Title"); +Q_DEFINE_LATIN1_CONSTANT(QContactOrganization::FieldTitle, "Title"); /*! \variable QContactOrganization::FieldAssistantName @@ -885,16 +960,39 @@ The constant key for which the contact's assistant name within the organization is stored in details of the QContactOrganization type. */ -Q_DEFINE_LATIN1_LITERAL(QContactOrganization::FieldAssistantName, "AssistantName"); - +Q_DEFINE_LATIN1_CONSTANT(QContactOrganization::FieldAssistantName, "AssistantName"); + +/*! + \variable QContactRingtone::FieldAudioRingtoneUrl + + The constant key for which the uri of the audio ringtone value is + stored in details of the QContactRingtone type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactRingtone::FieldAudioRingtoneUrl, "AudioRingtoneUrl"); /*! - \variable QContactDisplayLabel::FieldLabel - - The constant key for which the display label value is stored in - details of the QContactDisplayLabel type. + \variable QContactRingtone::FieldVideoRingtoneUrl + + The constant key for which the uri of the video ringtone value is + stored in details of the QContactRingtone type. */ -Q_DEFINE_LATIN1_LITERAL(QContactDisplayLabel::FieldLabel, "Label"); +Q_DEFINE_LATIN1_CONSTANT(QContactRingtone::FieldVideoRingtoneUrl, "VideoRingtoneUrl"); + +/*! + \variable QContactRingtone::FieldVibrationRingtoneUrl + + The constant key for which the uri of the vibration ringtone value is + stored in details of the QContactRingtone type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactRingtone::FieldVibrationRingtoneUrl, "VibrationRingtoneUrl"); + +/*! + \variable QContactThumbnail::FieldThumbnail + + The constant key for which the thumbnail image is stored in details + of the QContactThumbnail type. + */ +Q_DEFINE_LATIN1_CONSTANT(QContactThumbnail::FieldThumbnail, "Thumbnail"); /*! \variable QContactTimestamp::FieldModificationTimestamp @@ -903,7 +1001,7 @@ QContactTimestamp type which describes the last modification date and time of a contact. */ -Q_DEFINE_LATIN1_LITERAL(QContactTimestamp::FieldModificationTimestamp, "ModificationTimestamp"); +Q_DEFINE_LATIN1_CONSTANT(QContactTimestamp::FieldModificationTimestamp, "ModificationTimestamp"); /*! \variable QContactTimestamp::FieldCreationTimestamp @@ -912,7 +1010,7 @@ QContactTimestamp type which describes the creation date and time of a contact. */ -Q_DEFINE_LATIN1_LITERAL(QContactTimestamp::FieldCreationTimestamp, "CreationTimestamp"); +Q_DEFINE_LATIN1_CONSTANT(QContactTimestamp::FieldCreationTimestamp, "CreationTimestamp"); /*! \variable QContactType::FieldType @@ -920,7 +1018,7 @@ The constant key for the type value which is stored in details of the QContactType definition. */ -Q_DEFINE_LATIN1_LITERAL(QContactType::FieldType, "Type"); +Q_DEFINE_LATIN1_CONSTANT(QContactType::FieldType, "Type"); /*! @@ -929,7 +1027,7 @@ The constant attribute value which describes the contact as being an ordinary contact. */ -Q_DEFINE_LATIN1_LITERAL(QContactType::TypeContact, "Contact"); +Q_DEFINE_LATIN1_CONSTANT(QContactType::TypeContact, "Contact"); /*! \variable QContactType::TypeGroup @@ -937,7 +1035,7 @@ The constant attribute value which describes the contact as being a group. */ -Q_DEFINE_LATIN1_LITERAL(QContactType::TypeGroup, "Group"); +Q_DEFINE_LATIN1_CONSTANT(QContactType::TypeGroup, "Group"); /*! \variable QContactPhoneNumber::SubTypeLandline @@ -945,7 +1043,7 @@ The constant attribute value which describes the phone number as identifying a landline phone. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeLandline, "Landline"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeLandline, "Landline"); /*! \variable QContactPhoneNumber::SubTypeMobile @@ -953,15 +1051,15 @@ The constant attribute value which describes the phone number as identifying a mobile phone. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeMobile, "Mobile"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeMobile, "Mobile"); /*! - \variable QContactPhoneNumber::SubTypeFacsimile + \variable QContactPhoneNumber::SubTypeFax The constant attribute value which describes the phone number as - identifying a facsimile machine. + identifying a fax machine. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeFacsimile, "Facsimile"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeFax, "Fax"); /*! \variable QContactPhoneNumber::SubTypePager @@ -969,7 +1067,7 @@ The constant attribute value which describes the phone number as identifying a pager device. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypePager, "Pager"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypePager, "Pager"); /*! \variable QContactPhoneNumber::SubTypeCar @@ -977,7 +1075,7 @@ The constant attribute value which describes the phone number as identifying a car phone. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeCar, "Car"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeCar, "Car"); /*! \variable QContactPhoneNumber::SubTypeBulletinBoardSystem @@ -985,7 +1083,7 @@ The constant attribute value which describes the phone number as identifying a bulletin board system. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeBulletinBoardSystem, "BulletinBoardSystem"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeBulletinBoardSystem, "BulletinBoardSystem"); /*! \variable QContactPhoneNumber::SubTypeVoice @@ -993,7 +1091,7 @@ The constant attribute value which describes the phone number as supporting voice transmission. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeVoice, "Voice"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeVoice, "Voice"); /*! \variable QContactPhoneNumber::SubTypeModem @@ -1001,7 +1099,7 @@ The constant attribute value which describes the phone number as supporting digital data transfer. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeModem, "Modem"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeModem, "Modem"); /*! \variable QContactPhoneNumber::SubTypeVideo @@ -1009,7 +1107,7 @@ The constant attribute value which describes the phone number as supporting video transmission. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeVideo, "Video"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeVideo, "Video"); /*! \variable QContactPhoneNumber::SubTypeMessagingCapable @@ -1017,7 +1115,7 @@ The constant attribute value which describes the phone number as supporting messaging services. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeMessagingCapable, "MessagingCapable"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeMessagingCapable, "MessagingCapable"); /*! \variable QContactPhoneNumber::SubTypeAssistant @@ -1025,7 +1123,7 @@ The constant attribute value which describes the phone number as an assistant phone number. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeAssistant, "Assistant"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeAssistant, "Assistant"); /*! \variable QContactPhoneNumber::SubTypeDtmfMenu @@ -1033,7 +1131,7 @@ The constant attribute value which describes the phone number as supporting DTMF-controlled electronic menu navigation. */ -Q_DEFINE_LATIN1_LITERAL(QContactPhoneNumber::SubTypeDtmfMenu, "DtmfMenu"); +Q_DEFINE_LATIN1_CONSTANT(QContactPhoneNumber::SubTypeDtmfMenu, "DtmfMenu"); /*! \variable QContactAddress::SubTypeParcel @@ -1041,7 +1139,7 @@ The constant attribute value which describes the address as being an address for parcel delivery. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::SubTypeParcel, "Parcel"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::SubTypeParcel, "Parcel"); /*! \variable QContactAddress::SubTypePostal @@ -1049,7 +1147,7 @@ The constant attribute value which describes the address as being an address for postal delivery. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::SubTypePostal, "Postal"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::SubTypePostal, "Postal"); /*! \variable QContactAddress::SubTypeDomestic @@ -1057,7 +1155,7 @@ The constant attribute value which describes the address as being a domestic address. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::SubTypeDomestic, "Domestic"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::SubTypeDomestic, "Domestic"); /*! \variable QContactAddress::SubTypeInternational @@ -1065,48 +1163,7 @@ The constant attribute value which describes the address as being an international address. */ -Q_DEFINE_LATIN1_LITERAL(QContactAddress::SubTypeInternational, "International"); - -/*! - \variable QContactAvatar::SubTypeImage - - The constant attribute value which describes the avatar as being an - image. - */ -Q_DEFINE_LATIN1_LITERAL(QContactAvatar::SubTypeImage, "Image"); - -/*! - \variable QContactAvatar::SubTypeVideo - - The constant attribute value which describes the avatar as being a - video. - */ -Q_DEFINE_LATIN1_LITERAL(QContactAvatar::SubTypeVideo, "Video"); - -/*! - \variable QContactAvatar::SubTypeAudioRingtone - - The constant attribute value which describes the avatar as being an - audio ringtone. - */ -Q_DEFINE_LATIN1_LITERAL(QContactAvatar::SubTypeAudioRingtone, "AudioRingtone"); - -/*! - \variable QContactAvatar::SubTypeVideoRingtone - - The constant attribute value which describes the avatar as being a - video ringtone. - */ -Q_DEFINE_LATIN1_LITERAL(QContactAvatar::SubTypeVideoRingtone, "VideoRingtone"); - - -/*! - \variable QContactAvatar::SubTypeTexturedMesh - - The constant attribute value which describes the avatar as being a - textured, 3D mesh. - */ -Q_DEFINE_LATIN1_LITERAL(QContactAvatar::SubTypeTexturedMesh, "TexturedMesh"); +Q_DEFINE_LATIN1_CONSTANT(QContactAddress::SubTypeInternational, "International"); /*! \variable QContactUrl::SubTypeHomePage @@ -1114,7 +1171,7 @@ The constant attribute value which describes the url as being the homepage of the contact. */ -Q_DEFINE_LATIN1_LITERAL(QContactUrl::SubTypeHomePage, "HomePage"); +Q_DEFINE_LATIN1_CONSTANT(QContactUrl::SubTypeHomePage, "HomePage"); /*! \variable QContactUrl::SubTypeFavourite @@ -1122,7 +1179,7 @@ The constant attribute value which describes the url as being a favourite page of the contact. */ -Q_DEFINE_LATIN1_LITERAL(QContactUrl::SubTypeFavourite, "Favourite"); +Q_DEFINE_LATIN1_CONSTANT(QContactUrl::SubTypeFavourite, "Favourite"); /*! \variable QContactAnniversary::SubTypeWedding @@ -1130,7 +1187,7 @@ The constant attribute value which describes the anniversary as being a wedding anniversary. */ -Q_DEFINE_LATIN1_LITERAL(QContactAnniversary::SubTypeWedding, "Wedding"); +Q_DEFINE_LATIN1_CONSTANT(QContactAnniversary::SubTypeWedding, "Wedding"); /*! \variable QContactAnniversary::SubTypeEngagement @@ -1138,7 +1195,7 @@ The constant attribute value which describes the anniversary as being an engagement anniversary. */ -Q_DEFINE_LATIN1_LITERAL(QContactAnniversary::SubTypeEngagement, "Engagement"); +Q_DEFINE_LATIN1_CONSTANT(QContactAnniversary::SubTypeEngagement, "Engagement"); /*! \variable QContactAnniversary::SubTypeHouse @@ -1146,7 +1203,7 @@ The constant attribute value which describes the anniversary as being an anniversary of ownership of a particular residence. */ -Q_DEFINE_LATIN1_LITERAL(QContactAnniversary::SubTypeHouse, "House"); +Q_DEFINE_LATIN1_CONSTANT(QContactAnniversary::SubTypeHouse, "House"); /*! \variable QContactAnniversary::SubTypeEmployment @@ -1154,7 +1211,7 @@ The constant attribute value which describes the anniversary as being an anniversary of employment at a particular company. */ -Q_DEFINE_LATIN1_LITERAL(QContactAnniversary::SubTypeEmployment, "Employment"); +Q_DEFINE_LATIN1_CONSTANT(QContactAnniversary::SubTypeEmployment, "Employment"); /*! \variable QContactAnniversary::SubTypeMemorial @@ -1162,21 +1219,21 @@ The constant attribute value which describes the anniversary as being an anniversary of an event of sentimental significance. */ -Q_DEFINE_LATIN1_LITERAL(QContactAnniversary::SubTypeMemorial, "Memorial"); +Q_DEFINE_LATIN1_CONSTANT(QContactAnniversary::SubTypeMemorial, "Memorial"); /*! \fn QContactSyncTarget::syncTarget() const Returns the identifier of the backend store to which the contact - containing this detail should be synchronised. + containing this detail should be synchronized. */ /*! \fn QContactSyncTarget::setSyncTarget(const QString& syncTarget) Sets the identifier of the backend store to which the contact - containing this detail should be synchronised to \a syncTarget. + containing this detail should be synchronized to \a syncTarget. */ /*! @@ -1211,12 +1268,12 @@ /*! \fn QContactAnniversary::originalDate() const - Returns the original date of occurrance of the event stored in this detail. + Returns the original date of occurrence of the event stored in this detail. */ /*! \fn QContactAnniversary::setOriginalDate(const QDate& date) - Sets the original date of occurrance of the event stored in this detail to \a date. + Sets the original date of occurrence of the event stored in this detail to \a date. */ /*! @@ -1250,36 +1307,23 @@ */ /*! - \fn QContactAvatar::avatar() const - Returns the location of an avatar file associated with the contact. - */ - -/*! - \fn QContactAvatar::setAvatar(const QString& avatar) - Sets the location of an avatar file associated with the contact to \a avatar. - */ - -/*! - \fn QContactAvatar::pixmap() const - Returns a thumbnail for a picture associated with this contact. + \fn QContactAvatar::imageUrl() const + Returns the url of an avatar image associated with the contact */ /*! - \fn QContactAvatar::setPixmap(const QPixmap& pixmap) - Sets the thumbnail of a picture avatar associated with the contact to \a pixmap. - If \a pixmap is empty, the thumbnail pixmap will be removed. - - Returns true if the pixmap could be set, and false otherwise. + \fn QContactAvatar::setImageUrl(const QUrl& imageUrl) + Sets the url of an avatar image associated with the contact to \a imageUrl */ /*! - \fn QContactAvatar::setSubType(const QString& subType) - Sets the subtype which this detail implements to be the given \a subType. + \fn QContactAvatar::videoUrl() const + Returns the url of an avatar video associated with the contact */ /*! - \fn QContactAvatar::subType() const - Returns the subtype that this detail implements, if defined. + \fn QContactAvatar::setVideoUrl(const QUrl& videoUrl) + Sets the url of an avatar video associated with the contact to \a videoUrl */ /*! @@ -1648,6 +1692,26 @@ */ /*! + \fn QContactTag::setTag(const QString& tag) + Sets the tag associated with a contact which is stored in this detail to \a tag. + */ + +/*! + \fn QContactTag::tag() const + Returns the tag associated with a contact which is stored in this detail. + */ + +/*! + \fn QContactThumbnail::thumbnail() const + Returns the thumbnail image of the contact + */ + +/*! + \fn QContactThumbnail::setThumbnail(const QImage& thumbnail) + Sets the thumbnail image of the contact to be \a thumbnail + */ + +/*! \fn QContactTimestamp::created() const Returns the creation timestamp saved in this detail. */ @@ -1727,51 +1791,6 @@ */ /*! - \fn QContactOnlineAccount::setNickname(const QString& nickname) - - Sets the last-known nickname used by the contact during - communications via the online account about which this detail - stores presence information to \a nickname. - */ - -/*! - \fn QContactOnlineAccount::nickname() const - - Returns the last-known nickname used by the contact during - communications via the online account. - */ - -/*! - \fn QContactOnlineAccount::setPresence(const QString& presence) - - Sets the presence of the online account according to the presence - information provider to \a presence. - */ - -/*! - \fn QContactOnlineAccount::presence() const - - Returns the presence of the online account according to the - presence provider. - */ - -/*! - \fn QContactOnlineAccount::setStatusMessage(const QString& statusMessage) - - Sets the last-known status message of the contact which was - communicated via the online account about which this detail stores - presence information to \a statusMessage. - */ - -/*! - \fn QContactOnlineAccount::statusMessage() const - - Returns the last-known status message of the contact which was - communicated via the online account about which this detail stores - presence information. - */ - -/*! \fn QContactOnlineAccount::setCapabilities(const QStringList& capabilities) Sets the capabilities of the online account about which this detail stores @@ -1798,16 +1817,15 @@ */ /*! - \fn QContactOrganization::setLogo(const QString& logo) - Sets the logo of the organization stored in this detail to \a logo. + \fn QContactOrganization::setLogoUrl(const QUrl& logo) + Sets the url of the logo of the organization stored in this detail to \a logo. */ /*! - \fn QContactOrganization::logo() const - Returns the logo of the organization stored in this detail. + \fn QContactOrganization::logoUrl() const + Returns the url of the logo of the organization stored in this detail. */ - /*! \fn QContactOrganization::setDepartment(const QStringList& department) @@ -1870,6 +1888,230 @@ this organization. */ +/*! + \fn QContactRingtone::audioRingtoneUrl() const + + Returns the uri of the audio ringtone stored in the ringtone detail. + */ + +/*! + \fn QContactRingtone::setAudioRingtoneUrl(const QUrl& audioRingtoneUrl) + + Sets the uri of the audio ringtone stored in the ringtone detail + to \a audioRingtoneUrl. + */ + +/*! + \fn QContactRingtone::videoRingtoneUrl() const + + Returns the uri of the video ringtone stored in the ringtone detail. + */ + +/*! + \fn QContactRingtone::setVideoRingtoneUrl(const QUrl& videoRingtoneUrl) + + Sets the uri of the video ringtone stored in the ringtone detail + to \a videoRingtoneUrl. + */ + +/*! + \fn QContactRingtone::vibrationRingtoneUrl() const + + Returns the uri of the vibration ringtone stored in the ringtone detail. + */ + +/*! + \fn QContactRingtone::setVibrationRingtoneUrl(const QUrl& vibrationRingtoneUrl) + + Sets the uri of the vibration ringtone stored in the ringtone detail + to \a vibrationRingtoneUrl. + */ + +/*! + \fn QContactPresence::setTimestamp(const QDateTime& updateTimestamp) + + Sets the update timestamp of the presence detail to be + \a updateTimestamp. + */ + +/*! + \fn QContactPresence::timestamp() const + + Returns the timestamp at which the data in the presence detail was valid. + */ + +/*! + \fn QContactPresence::setNickname(const QString& nickname) + + Sets the last-known nickname used by the contact during + communications via the online account about which this detail + stores presence information to \a nickname. + */ + +/*! + \fn QContactPresence::nickname() const + + Returns the last-known nickname used by the contact during + communications via the online account. + */ + +/*! + \enum QContactPresence::PresenceState + + This enum defines the possible presence states supported by the default schema. + + \value PresenceUnknown Signifies that the presence state of the contact is not currently known + \value PresenceAvailable Signifies that the contact is available + \value PresenceHidden Signifies that the contact is hidden + \value PresenceBusy Signifies that the contact is busy + \value PresenceAway Signifies that the contact is away + \value PresenceExtendedAway Signifies that the contact is away for an extended period of time + \value PresenceOffline Signifies that the contact is offline + */ + +/*! + \fn QContactPresence::setPresenceState(QContactPresence::PresenceState presenceState) + + Sets the presence state of the online account according to the presence + information provider to the given \a presenceState. + */ + +/*! + \fn QContactPresence::presenceState() const + + Returns the presence state of the online account according to the + presence provider. + */ + +/*! + \fn QContactPresence::setPresenceStateText(const QString& presenceStateText) + + Sets the text corresponding to the presence state to \a presenceStateText. + This function is generally called by presence providers to allow custom + naming of states, or to allow finer grained state reporting than is + provided by the presence state API. + */ + +/*! + \fn QContactPresence::presenceStateText() const + + Returns the text corresponding to the current presence state. + */ + +/*! + \fn QContactPresence::setCustomMessage(const QString& customMessage) + + Sets the custom status message from the contact for the online account + about which this detail stores presence information, to \a customMessage. + */ + +/*! + \fn QContactPresence::customMessage() const + + Returns the custom status message from the contact for the online account + about which this detail stores presence information. + */ + +/*! + \fn QContactPresence::setPresenceStateImageUrl(const QUrl& presenceStateImageUrl) + + Sets the last-known status image url of the contact for the online account + about which this detail stores presence information, to \a presenceStateImageUrl. + */ + +/*! + \fn QContactPresence::presenceStateImageUrl() const + + Returns the last-known status image url of the contact for the online account + about which this detail stores presence information. + */ + +/*! + \fn QContactGlobalPresence::setTimestamp(const QDateTime& updateTimestamp) + + Sets the update timestamp of the global presence detail to be + \a updateTimestamp. + */ + +/*! + \fn QContactGlobalPresence::timestamp() const + + Returns the timestamp at which the data in the global presence detail was valid. + */ + +/*! + \fn QContactGlobalPresence::setNickname(const QString& nickname) + + Sets the last-known nickname used by the contact during + communications via any online account about which this detail + aggregates presence information to \a nickname. + */ + +/*! + \fn QContactGlobalPresence::nickname() const + + Returns the last-known nickname used by the contact during + communications via any online account about which this detail + aggregates presence information. + */ + +/*! + \fn QContactGlobalPresence::setPresenceState(QContactPresence::PresenceState presenceState) + + Sets the presence state of this aggregate detail according to the presence + information available from the presence providers which this detail aggregates + to the given \a presenceState. + */ + +/*! + \fn QContactGlobalPresence::presenceState() const + + Returns the aggregate presence state of any online accounts about which this detail + aggregates presence information. + */ + +/*! + \fn QContactGlobalPresence::setPresenceStateText(const QString& presenceStateText) + + Sets the text corresponding to the presence state to \a presenceStateText. + This function is generally called by presence providers to allow custom + naming of states, or to allow finer grained state reporting than is + provided by the presence state API. + */ + +/*! + \fn QContactGlobalPresence::presenceStateText() const + + Returns the text corresponding to the current presence state. + */ + +/*! + \fn QContactGlobalPresence::setCustomMessage(const QString& customMessage) + + Sets the custom status message from the contact for the aggregate presence + detail, to \a customMessage. + */ + +/*! + \fn QContactGlobalPresence::customMessage() const + + Returns the custom status message from the contact for the aggregate presence + detail. + */ + +/*! + \fn QContactGlobalPresence::setPresenceStateImageUrl(const QUrl& presenceStateImageUrl) + + Sets the last-known status image url of the contact to \a presenceStateImageUrl. + */ + +/*! + \fn QContactGlobalPresence::presenceStateImageUrl() const + + Returns the last-known status image url of the contact. + */ + + /* Convenience filters */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactdetails.h --- a/qtmobility/src/contacts/details/qcontactdetails.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactdetails.h Mon May 03 13:18:40 2010 +0300 @@ -54,6 +54,7 @@ #include "qcontactfamily.h" #include "qcontactgender.h" #include "qcontactgeolocation.h" +#include "qcontactglobalpresence.h" #include "qcontactguid.h" #include "qcontactname.h" #include "qcontactnickname.h" @@ -61,7 +62,11 @@ #include "qcontactonlineaccount.h" #include "qcontactorganization.h" #include "qcontactphonenumber.h" +#include "qcontactpresence.h" +#include "qcontactringtone.h" #include "qcontactsynctarget.h" +#include "qcontacttag.h" +#include "qcontactthumbnail.h" #include "qcontacttimestamp.h" #include "qcontacttype.h" #include "qcontacturl.h" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactdisplaylabel.h --- a/qtmobility/src/contacts/details/qcontactdisplaylabel.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactdisplaylabel.h Mon May 03 13:18:40 2010 +0300 @@ -56,11 +56,11 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldLabel; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldLabel; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactDisplayLabel, "DisplayLabel") - Q_DECLARE_LATIN1_LITERAL(FieldLabel, "Label"); + Q_DECLARE_LATIN1_CONSTANT(FieldLabel, "Label"); #endif QString label() const {return value(FieldLabel);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactemailaddress.h --- a/qtmobility/src/contacts/details/qcontactemailaddress.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactemailaddress.h Mon May 03 13:18:40 2010 +0300 @@ -56,11 +56,11 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldEmailAddress; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldEmailAddress; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactEmailAddress, "EmailAddress") - Q_DECLARE_LATIN1_LITERAL(FieldEmailAddress, "EmailAddress"); + Q_DECLARE_LATIN1_CONSTANT(FieldEmailAddress, "EmailAddress"); #endif void setEmailAddress(const QString& emailAddress) {setValue(FieldEmailAddress, emailAddress);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactfamily.h --- a/qtmobility/src/contacts/details/qcontactfamily.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactfamily.h Mon May 03 13:18:40 2010 +0300 @@ -56,13 +56,13 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldSpouse; - const char* FieldChildren; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldSpouse; + static const QLatin1Constant FieldChildren; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactFamily, "Family") - Q_DECLARE_LATIN1_LITERAL(FieldSpouse, "Spouse"); - Q_DECLARE_LATIN1_LITERAL(FieldChildren, "Children"); + Q_DECLARE_LATIN1_CONSTANT(FieldSpouse, "Spouse"); + Q_DECLARE_LATIN1_CONSTANT(FieldChildren, "Children"); #endif void setSpouse(const QString& spouseName) {setValue(FieldSpouse, spouseName);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactgender.h --- a/qtmobility/src/contacts/details/qcontactgender.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactgender.h Mon May 03 13:18:40 2010 +0300 @@ -55,17 +55,17 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldGender; - const char* GenderMale; - const char* GenderFemale; - const char* GenderUnspecified; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldGender; + static const QLatin1Constant GenderMale; + static const QLatin1Constant GenderFemale; + static const QLatin1Constant GenderUnspecified; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactGender, "Gender") - Q_DECLARE_LATIN1_LITERAL(FieldGender, "Gender"); - Q_DECLARE_LATIN1_LITERAL(GenderMale, "Male"); - Q_DECLARE_LATIN1_LITERAL(GenderFemale, "Female"); - Q_DECLARE_LATIN1_LITERAL(GenderUnspecified, "Unspecified"); + Q_DECLARE_LATIN1_CONSTANT(FieldGender, "Gender"); + Q_DECLARE_LATIN1_CONSTANT(GenderMale, "Male"); + Q_DECLARE_LATIN1_CONSTANT(GenderFemale, "Female"); + Q_DECLARE_LATIN1_CONSTANT(GenderUnspecified, "Unspecified"); #endif void setGender(const QString& gender) {setValue(FieldGender, gender);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactgeolocation.h --- a/qtmobility/src/contacts/details/qcontactgeolocation.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactgeolocation.h Mon May 03 13:18:40 2010 +0300 @@ -57,27 +57,27 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldLabel; - const char* FieldLatitude; - const char* FieldLongitude; - const char* FieldAccuracy; - const char* FieldAltitude; - const char* FieldAltitudeAccuracy; - const char* FieldHeading; - const char* FieldSpeed; - const char* FieldTimestamp; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldLabel; + static const QLatin1Constant FieldLatitude; + static const QLatin1Constant FieldLongitude; + static const QLatin1Constant FieldAccuracy; + static const QLatin1Constant FieldAltitude; + static const QLatin1Constant FieldAltitudeAccuracy; + static const QLatin1Constant FieldHeading; + static const QLatin1Constant FieldSpeed; + static const QLatin1Constant FieldTimestamp; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactGeoLocation, "GeoLocation") - Q_DECLARE_LATIN1_LITERAL(FieldLabel, "Label"); - Q_DECLARE_LATIN1_LITERAL(FieldLatitude, "Latitude"); - Q_DECLARE_LATIN1_LITERAL(FieldLongitude, "Longitude"); - Q_DECLARE_LATIN1_LITERAL(FieldAccuracy, "Accuracy"); - Q_DECLARE_LATIN1_LITERAL(FieldAltitude, "Altitude"); - Q_DECLARE_LATIN1_LITERAL(FieldAltitudeAccuracy, "AltitudeAccuracy"); - Q_DECLARE_LATIN1_LITERAL(FieldHeading, "Heading"); - Q_DECLARE_LATIN1_LITERAL(FieldSpeed, "Speed"); - Q_DECLARE_LATIN1_LITERAL(FieldTimestamp, "Timestamp"); + Q_DECLARE_LATIN1_CONSTANT(FieldLabel, "Label"); + Q_DECLARE_LATIN1_CONSTANT(FieldLatitude, "Latitude"); + Q_DECLARE_LATIN1_CONSTANT(FieldLongitude, "Longitude"); + Q_DECLARE_LATIN1_CONSTANT(FieldAccuracy, "Accuracy"); + Q_DECLARE_LATIN1_CONSTANT(FieldAltitude, "Altitude"); + Q_DECLARE_LATIN1_CONSTANT(FieldAltitudeAccuracy, "AltitudeAccuracy"); + Q_DECLARE_LATIN1_CONSTANT(FieldHeading, "Heading"); + Q_DECLARE_LATIN1_CONSTANT(FieldSpeed, "Speed"); + Q_DECLARE_LATIN1_CONSTANT(FieldTimestamp, "Timestamp"); #endif void setLabel(const QString& label) {setValue(FieldLabel, label);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactglobalpresence.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/contacts/details/qcontactglobalpresence.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,95 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QCONTACTGLOBALPRESENCE_H +#define QCONTACTGLOBALPRESENCE_H + +#include +#include + +#include "qtcontactsglobal.h" +#include "qcontactdetail.h" +#include "qcontact.h" +#include "qcontactpresence.h" + +QTM_BEGIN_NAMESPACE + +/* Leaf class */ +class Q_CONTACTS_EXPORT QContactGlobalPresence : public QContactDetail +{ +public: +#ifdef Q_QDOC + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldTimestamp; + static const QLatin1Constant FieldNickname; + static const QLatin1Constant FieldPresenceState; + static const QLatin1Constant FieldPresenceStateText; + static const QLatin1Constant FieldPresenceStateImageUrl; + static const QLatin1Constant FieldCustomMessage; +#else + Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactGlobalPresence, "GlobalPresence") + Q_DECLARE_LATIN1_CONSTANT(FieldTimestamp, "Timestamp"); + Q_DECLARE_LATIN1_CONSTANT(FieldNickname, "Nickname"); + Q_DECLARE_LATIN1_CONSTANT(FieldPresenceState, "PresenceState"); + Q_DECLARE_LATIN1_CONSTANT(FieldPresenceStateText, "PresenceStateText"); + Q_DECLARE_LATIN1_CONSTANT(FieldPresenceStateImageUrl, "PresenceStateImageUrl"); + Q_DECLARE_LATIN1_CONSTANT(FieldCustomMessage, "CustomMessage"); +#endif + + void setTimestamp(const QDateTime& timestamp) {setValue(FieldTimestamp, timestamp);} + QDateTime timestamp() const {return value(FieldTimestamp);} + void setNickname(const QString& nickname) {setValue(FieldNickname, nickname);} + QString nickname() const {return value(FieldNickname);} + void setPresenceState(QContactPresence::PresenceState presenceState) {setValue(FieldPresenceState, static_cast(presenceState));} + QContactPresence::PresenceState presenceState() const {return static_cast(value(FieldPresenceState));} + void setPresenceStateText(const QString& presenceStateText) {setValue(FieldPresenceStateText, presenceStateText);} + QString presenceStateText() const {return value(FieldPresenceStateText);} + void setPresenceStateImageUrl(const QUrl& presenceStateImageUrl) {setValue(FieldPresenceStateImageUrl, presenceStateImageUrl);} + QUrl presenceStateImageUrl() const {return value(FieldPresenceStateImageUrl);} + void setCustomMessage(const QString& customMessage) {setValue(FieldCustomMessage, customMessage);} + QString customMessage() const {return value(FieldCustomMessage);} +}; + +QTM_END_NAMESPACE + +#endif + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactguid.h --- a/qtmobility/src/contacts/details/qcontactguid.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactguid.h Mon May 03 13:18:40 2010 +0300 @@ -56,11 +56,11 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldGuid; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldGuid; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactGuid, "Guid") - Q_DECLARE_LATIN1_LITERAL(FieldGuid, "Guid"); + Q_DECLARE_LATIN1_CONSTANT(FieldGuid, "Guid"); #endif void setGuid(const QString& guid) {setValue(FieldGuid, guid);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactname.h --- a/qtmobility/src/contacts/details/qcontactname.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactname.h Mon May 03 13:18:40 2010 +0300 @@ -55,27 +55,21 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldPrefix; - const char* FieldFirst; // deprecated - const char* FieldMiddle;// deprecated - const char* FieldLast; // deprecated - const char* FieldFirstName; - const char* FieldMiddleName; - const char* FieldLastName; - const char* FieldSuffix; - const char* FieldCustomLabel; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldPrefix; + static const QLatin1Constant FieldFirstName; + static const QLatin1Constant FieldMiddleName; + static const QLatin1Constant FieldLastName; + static const QLatin1Constant FieldSuffix; + static const QLatin1Constant FieldCustomLabel; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactName, "Name") - Q_DECLARE_LATIN1_LITERAL(FieldPrefix, "Prefix"); - Q_DECLARE_LATIN1_LITERAL(FieldFirst, "FirstName"); // deprecated - Q_DECLARE_LATIN1_LITERAL(FieldMiddle, "MiddleName");// deprecated - Q_DECLARE_LATIN1_LITERAL(FieldLast, "LastName"); // deprecated - Q_DECLARE_LATIN1_LITERAL(FieldFirstName, "FirstName"); - Q_DECLARE_LATIN1_LITERAL(FieldMiddleName, "MiddleName"); - Q_DECLARE_LATIN1_LITERAL(FieldLastName, "LastName"); - Q_DECLARE_LATIN1_LITERAL(FieldSuffix, "Suffix"); - Q_DECLARE_LATIN1_LITERAL(FieldCustomLabel, "CustomLabel"); + Q_DECLARE_LATIN1_CONSTANT(FieldPrefix, "Prefix"); + Q_DECLARE_LATIN1_CONSTANT(FieldFirstName, "FirstName"); + Q_DECLARE_LATIN1_CONSTANT(FieldMiddleName, "MiddleName"); + Q_DECLARE_LATIN1_CONSTANT(FieldLastName, "LastName"); + Q_DECLARE_LATIN1_CONSTANT(FieldSuffix, "Suffix"); + Q_DECLARE_LATIN1_CONSTANT(FieldCustomLabel, "CustomLabel"); #endif QString prefix() const {return value(FieldPrefix);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactnickname.h --- a/qtmobility/src/contacts/details/qcontactnickname.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactnickname.h Mon May 03 13:18:40 2010 +0300 @@ -55,11 +55,11 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldNickname; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldNickname; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactNickname, "Nickname") - Q_DECLARE_LATIN1_LITERAL(FieldNickname, "Nickname"); + Q_DECLARE_LATIN1_CONSTANT(FieldNickname, "Nickname"); #endif void setNickname(const QString& nickname) {setValue(FieldNickname, nickname);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactnote.h --- a/qtmobility/src/contacts/details/qcontactnote.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactnote.h Mon May 03 13:18:40 2010 +0300 @@ -55,11 +55,11 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldNote; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldNote; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactNote, "Note") - Q_DECLARE_LATIN1_LITERAL(FieldNote, "Note"); + Q_DECLARE_LATIN1_CONSTANT(FieldNote, "Note"); #endif void setNote(const QString& note) {setValue(FieldNote, note);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactonlineaccount.h --- a/qtmobility/src/contacts/details/qcontactonlineaccount.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactonlineaccount.h Mon May 03 13:18:40 2010 +0300 @@ -56,57 +56,33 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldAccountUri; - const char* FieldServiceProvider; - const char* FieldSubTypes; - const char* FieldNickname; - const char* FieldPresence; - const char* FieldStatusMessage; - const char* FieldCapabilities; - const char* PresenceAvailable; - const char* PresenceHidden; - const char* PresenceBusy; - const char* PresenceAway; - const char* PresenceExtendedAway; - const char* PresenceUnknown; - const char* PresenceOffline; - const char* SubTypeSip; - const char* SubTypeSipVoip; - const char* SubTypeImpp; - const char* SubTypeVideoShare; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldAccountUri; + static const QLatin1Constant FieldServiceProvider; + static const QLatin1Constant FieldCapabilities; + static const QLatin1Constant FieldSubTypes; + static const QLatin1Constant SubTypeSip; + static const QLatin1Constant SubTypeSipVoip; + static const QLatin1Constant SubTypeImpp; + static const QLatin1Constant SubTypeVideoShare; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactOnlineAccount, "OnlineAccount") - Q_DECLARE_LATIN1_LITERAL(FieldAccountUri, "AccountUri"); - Q_DECLARE_LATIN1_LITERAL(FieldServiceProvider, "ServiceProvider"); - Q_DECLARE_LATIN1_LITERAL(FieldNickname, "Nickname"); - Q_DECLARE_LATIN1_LITERAL(FieldPresence, "Presence"); - Q_DECLARE_LATIN1_LITERAL(FieldStatusMessage, "StatusMessage"); - Q_DECLARE_LATIN1_LITERAL(FieldCapabilities, "Capabilities"); - Q_DECLARE_LATIN1_LITERAL(FieldSubTypes, "SubTypes"); - Q_DECLARE_LATIN1_LITERAL(PresenceAvailable, "Available"); - Q_DECLARE_LATIN1_LITERAL(PresenceHidden, "Hidden"); - Q_DECLARE_LATIN1_LITERAL(PresenceBusy, "Busy"); - Q_DECLARE_LATIN1_LITERAL(PresenceAway, "Away"); - Q_DECLARE_LATIN1_LITERAL(PresenceExtendedAway, "ExtendedAway"); - Q_DECLARE_LATIN1_LITERAL(PresenceUnknown, "Unknown"); - Q_DECLARE_LATIN1_LITERAL(PresenceOffline, "Offline"); - Q_DECLARE_LATIN1_LITERAL(SubTypeSip, "Sip"); - Q_DECLARE_LATIN1_LITERAL(SubTypeSipVoip, "SipVoip"); - Q_DECLARE_LATIN1_LITERAL(SubTypeImpp, "Impp"); - Q_DECLARE_LATIN1_LITERAL(SubTypeVideoShare, "VideoShare"); + Q_DECLARE_LATIN1_CONSTANT(FieldAccountUri, "AccountUri"); + Q_DECLARE_LATIN1_CONSTANT(FieldServiceProvider, "ServiceProvider"); + Q_DECLARE_LATIN1_CONSTANT(FieldCapabilities, "Capabilities"); + Q_DECLARE_LATIN1_CONSTANT(FieldSubTypes, "SubTypes"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeSip, "Sip"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeSipVoip, "SipVoip"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeImpp, "Impp"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeVideoShare, "VideoShare"); #endif void setAccountUri(const QString& accountUri) {setValue(FieldAccountUri, accountUri);} QString accountUri() const {return value(FieldAccountUri);} + void setServiceProvider(const QString& serviceProvider) {setValue(FieldServiceProvider, serviceProvider);} QString serviceProvider() const {return value(FieldServiceProvider);} - void setNickname(const QString& nickname) {setValue(FieldNickname, nickname);} - QString nickname() const {return value(FieldNickname);} - void setPresence(const QString& presence) {setValue(FieldPresence, presence);} - QString presence() const {return value(FieldPresence);} - void setStatusMessage(const QString& statusMessage) {setValue(FieldStatusMessage, statusMessage);} - QString statusMessage() const {return value(FieldStatusMessage);} + void setCapabilities(const QStringList& capabilities) {setValue(FieldCapabilities, capabilities);} QStringList capabilities() const {return value(FieldCapabilities);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactorganization.h --- a/qtmobility/src/contacts/details/qcontactorganization.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactorganization.h Mon May 03 13:18:40 2010 +0300 @@ -43,6 +43,7 @@ #define QCONTACTORGANIZATION_H #include +#include #include "qtcontactsglobal.h" #include "qcontactdetail.h" @@ -55,29 +56,29 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldName; - const char* FieldLogo; - const char* FieldDepartment; - const char* FieldLocation; - const char* FieldRole; - const char* FieldTitle; - const char* FieldAssistantName; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldName; + static const QLatin1Constant FieldLogoUrl; + static const QLatin1Constant FieldDepartment; + static const QLatin1Constant FieldLocation; + static const QLatin1Constant FieldRole; + static const QLatin1Constant FieldTitle; + static const QLatin1Constant FieldAssistantName; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactOrganization, "Organization") - Q_DECLARE_LATIN1_LITERAL(FieldName, "Name"); - Q_DECLARE_LATIN1_LITERAL(FieldLogo, "Logo"); - Q_DECLARE_LATIN1_LITERAL(FieldDepartment, "Department"); - Q_DECLARE_LATIN1_LITERAL(FieldLocation, "Location"); - Q_DECLARE_LATIN1_LITERAL(FieldRole, "Role"); - Q_DECLARE_LATIN1_LITERAL(FieldTitle, "Title"); - Q_DECLARE_LATIN1_LITERAL(FieldAssistantName, "AssistantName"); + Q_DECLARE_LATIN1_CONSTANT(FieldName, "Name"); + Q_DECLARE_LATIN1_CONSTANT(FieldLogoUrl, "LogoUrl"); + Q_DECLARE_LATIN1_CONSTANT(FieldDepartment, "Department"); + Q_DECLARE_LATIN1_CONSTANT(FieldLocation, "Location"); + Q_DECLARE_LATIN1_CONSTANT(FieldRole, "Role"); + Q_DECLARE_LATIN1_CONSTANT(FieldTitle, "Title"); + Q_DECLARE_LATIN1_CONSTANT(FieldAssistantName, "AssistantName"); #endif void setName(const QString& name) {setValue(FieldName, name);} QString name() const {return value(FieldName);} - void setLogo(const QString& logo) {setValue(FieldLogo, logo);} - QString logo() const {return value(FieldLogo);} + void setLogoUrl(const QUrl& logo) {setValue(FieldLogoUrl, logo);} + QUrl logoUrl() const {return value(FieldLogoUrl);} void setDepartment(const QStringList& department) {setValue(FieldDepartment, department);} QStringList department() const {return value(FieldDepartment);} void setLocation(const QString& location) {setValue(FieldLocation, location);} @@ -87,7 +88,7 @@ void setTitle(const QString& title) {setValue(FieldTitle, title);} QString title() const {return value(FieldTitle);} void setAssistantName(const QString& assistantName) {setValue(FieldAssistantName, assistantName);} - QString assistantName() const {return value(FieldAssistantName);} + QString assistantName() const {return value(FieldAssistantName);} }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactphonenumber.h --- a/qtmobility/src/contacts/details/qcontactphonenumber.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactphonenumber.h Mon May 03 13:18:40 2010 +0300 @@ -57,37 +57,37 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldNumber; - const char* FieldSubTypes; - const char* SubTypeLandline; - const char* SubTypeMobile; - const char* SubTypeFacsimile; - const char* SubTypePager; - const char* SubTypeVoice; - const char* SubTypeModem; - const char* SubTypeVideo; - const char* SubTypeCar; - const char* SubTypeBulletinBoardSystem; - const char* SubTypeMessagingCapable; - const char* SubTypeAssistant; - const char* SubTypeDtmfMenu; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldNumber; + static const QLatin1Constant FieldSubTypes; + static const QLatin1Constant SubTypeLandline; + static const QLatin1Constant SubTypeMobile; + static const QLatin1Constant SubTypeFax; + static const QLatin1Constant SubTypePager; + static const QLatin1Constant SubTypeVoice; + static const QLatin1Constant SubTypeModem; + static const QLatin1Constant SubTypeVideo; + static const QLatin1Constant SubTypeCar; + static const QLatin1Constant SubTypeBulletinBoardSystem; + static const QLatin1Constant SubTypeMessagingCapable; + static const QLatin1Constant SubTypeAssistant; + static const QLatin1Constant SubTypeDtmfMenu; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactPhoneNumber, "PhoneNumber") - Q_DECLARE_LATIN1_LITERAL(FieldNumber, "PhoneNumber"); - Q_DECLARE_LATIN1_LITERAL(FieldSubTypes, "SubTypes"); - Q_DECLARE_LATIN1_LITERAL(SubTypeLandline, "Landline"); - Q_DECLARE_LATIN1_LITERAL(SubTypeMobile, "Mobile"); - Q_DECLARE_LATIN1_LITERAL(SubTypeFacsimile, "Facsimile"); - Q_DECLARE_LATIN1_LITERAL(SubTypePager, "Pager"); - Q_DECLARE_LATIN1_LITERAL(SubTypeVoice, "Voice"); - Q_DECLARE_LATIN1_LITERAL(SubTypeModem, "Modem"); - Q_DECLARE_LATIN1_LITERAL(SubTypeVideo, "Video"); - Q_DECLARE_LATIN1_LITERAL(SubTypeCar, "Car"); - Q_DECLARE_LATIN1_LITERAL(SubTypeBulletinBoardSystem, "BulletinBoardSystem"); - Q_DECLARE_LATIN1_LITERAL(SubTypeMessagingCapable, "MessagingCapable"); - Q_DECLARE_LATIN1_LITERAL(SubTypeAssistant, "Assistant"); - Q_DECLARE_LATIN1_LITERAL(SubTypeDtmfMenu, "DtmfMenu"); + Q_DECLARE_LATIN1_CONSTANT(FieldNumber, "PhoneNumber"); + Q_DECLARE_LATIN1_CONSTANT(FieldSubTypes, "SubTypes"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeLandline, "Landline"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeMobile, "Mobile"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeFax, "Fax"); + Q_DECLARE_LATIN1_CONSTANT(SubTypePager, "Pager"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeVoice, "Voice"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeModem, "Modem"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeVideo, "Video"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeCar, "Car"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeBulletinBoardSystem, "BulletinBoardSystem"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeMessagingCapable, "MessagingCapable"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeAssistant, "Assistant"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeDtmfMenu, "DtmfMenu"); #endif void setNumber(const QString& number) {setValue(FieldNumber, number);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactpresence.h --- a/qtmobility/src/contacts/details/qcontactpresence.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactpresence.h Mon May 03 13:18:40 2010 +0300 @@ -43,8 +43,8 @@ #ifndef QCONTACTPRESENCE_H #define QCONTACTPRESENCE_H -#include #include +#include #include "qtcontactsglobal.h" #include "qcontactdetail.h" @@ -57,41 +57,45 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldAccountUri; - const char* FieldNickname; - const char* FieldPresence; - const char* FieldStatusMessage; - const char* PresenceAvailable; - const char* PresenceHidden; - const char* PresenceBusy; - const char* PresenceAway; - const char* PresenceExtendedAway; - const char* PresenceUnknown; - const char* PresenceOffline; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldTimestamp; + static const QLatin1Constant FieldNickname; + static const QLatin1Constant FieldPresenceState; + static const QLatin1Constant FieldPresenceStateText; + static const QLatin1Constant FieldPresenceStateImageUrl; + static const QLatin1Constant FieldCustomMessage; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactPresence, "Presence") - Q_DECLARE_LATIN1_LITERAL(FieldAccountUri, "AccountUri"); - Q_DECLARE_LATIN1_LITERAL(FieldNickname, "Nickname"); - Q_DECLARE_LATIN1_LITERAL(FieldPresence, "Presence"); - Q_DECLARE_LATIN1_LITERAL(FieldStatusMessage, "StatusMessage"); - Q_DECLARE_LATIN1_LITERAL(PresenceAvailable, "Available"); - Q_DECLARE_LATIN1_LITERAL(PresenceHidden, "Hidden"); - Q_DECLARE_LATIN1_LITERAL(PresenceBusy, "Busy"); - Q_DECLARE_LATIN1_LITERAL(PresenceAway, "Away"); - Q_DECLARE_LATIN1_LITERAL(PresenceExtendedAway, "ExtendedAway"); - Q_DECLARE_LATIN1_LITERAL(PresenceUnknown, "Unknown"); - Q_DECLARE_LATIN1_LITERAL(PresenceOffline, "Offline"); + Q_DECLARE_LATIN1_CONSTANT(FieldTimestamp, "Timestamp"); + Q_DECLARE_LATIN1_CONSTANT(FieldNickname, "Nickname"); + Q_DECLARE_LATIN1_CONSTANT(FieldPresenceState, "PresenceState"); + Q_DECLARE_LATIN1_CONSTANT(FieldPresenceStateText, "PresenceStateText"); + Q_DECLARE_LATIN1_CONSTANT(FieldPresenceStateImageUrl, "PresenceStateImageUrl"); + Q_DECLARE_LATIN1_CONSTANT(FieldCustomMessage, "CustomMessage"); #endif - void Q_DECL_DEPRECATED setAccountUri(const QString& accountUri) {qWarning("This class has been deprecated! Please use QContactOnlineAccount and Read-Only Field Constraints!"); setValue(FieldAccountUri, accountUri);} - QString Q_DECL_DEPRECATED accountUri() const {qWarning("This class has been deprecated! Please use QContactOnlineAccount and Read-Only Field Constraints!"); return value(FieldAccountUri);} - void Q_DECL_DEPRECATED setNickname(const QString& nickname) {qWarning("This class has been deprecated! Please use QContactOnlineAccount and Read-Only Field Constraints!"); setValue(FieldNickname, nickname);} - QString Q_DECL_DEPRECATED nickname() const {qWarning("This class has been deprecated! Please use QContactOnlineAccount and Read-Only Field Constraints!"); return value(FieldNickname);} - void Q_DECL_DEPRECATED setPresence(const QString& presence) {qWarning("This class has been deprecated! Please use QContactOnlineAccount and Read-Only Field Constraints!"); setValue(FieldPresence, presence);} - QString Q_DECL_DEPRECATED presence() const {qWarning("This class has been deprecated! Please use QContactOnlineAccount and Read-Only Field Constraints!"); return value(FieldPresence);} - void Q_DECL_DEPRECATED setStatusMessage(const QString& statusMessage) {qWarning("This class has been deprecated! Please use QContactOnlineAccount and Read-Only Field Constraints!"); setValue(FieldStatusMessage, statusMessage);} - QString Q_DECL_DEPRECATED statusMessage() const {qWarning("This class has been deprecated! Please use QContactOnlineAccount and Read-Only Field Constraints!"); return value(FieldStatusMessage);} + enum PresenceState { + PresenceUnknown = 0, + PresenceAvailable, + PresenceHidden, + PresenceBusy, + PresenceAway, + PresenceExtendedAway, + PresenceOffline, + }; + + void setTimestamp(const QDateTime& timestamp) {setValue(FieldTimestamp, timestamp);} + QDateTime timestamp() const {return value(FieldTimestamp);} + void setNickname(const QString& nickname) {setValue(FieldNickname, nickname);} + QString nickname() const {return value(FieldNickname);} + void setPresenceState(PresenceState presence) {setValue(FieldPresenceState, static_cast(presence));} + PresenceState presenceState() const {return static_cast(value(FieldPresenceState));} + void setPresenceStateText(const QString& presenceStateText) {setValue(FieldPresenceStateText, presenceStateText);} + QString presenceStateText() const {return value(FieldPresenceStateText);} + void setPresenceStateImageUrl(const QUrl& presenceStateImageUrl) {setValue(FieldPresenceStateImageUrl, presenceStateImageUrl);} + QUrl presenceStateImageUrl() const {return value(FieldPresenceStateImageUrl);} + void setCustomMessage(const QString& customMessage) {setValue(FieldCustomMessage, customMessage);} + QString customMessage() const {return value(FieldCustomMessage);} }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactringtone.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/contacts/details/qcontactringtone.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,81 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QCONTACTRINGTONE_H +#define QCONTACTRINGTONE_H + +#include + +#include "qtcontactsglobal.h" +#include "qcontactdetail.h" +#include "qcontact.h" + +QTM_BEGIN_NAMESPACE + +/* Leaf class */ +class Q_CONTACTS_EXPORT QContactRingtone : public QContactDetail +{ +public: +#ifdef Q_QDOC + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldAudioRingtoneUrl; + static const QLatin1Constant FieldVideoRingtoneUrl; + static const QLatin1Constant FieldVibrationRingtoneUrl; +#else + Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactRingtone, "Ringtone") + Q_DECLARE_LATIN1_CONSTANT(FieldAudioRingtoneUrl, "AudioRingtoneUrl"); + Q_DECLARE_LATIN1_CONSTANT(FieldVideoRingtoneUrl, "VideoRingtoneUrl"); + Q_DECLARE_LATIN1_CONSTANT(FieldVibrationRingtoneUrl, "VibrationRingtoneUrl"); +#endif + + void setAudioRingtoneUrl(const QUrl& audioRingtoneUrl) {setValue(FieldAudioRingtoneUrl, audioRingtoneUrl);} + QUrl audioRingtoneUrl() const {return value(FieldAudioRingtoneUrl);} + + void setVideoRingtoneUrl(const QUrl& videoRingtoneUrl) {setValue(FieldVideoRingtoneUrl, videoRingtoneUrl);} + QUrl videoRingtoneUrl() const {return value(FieldVideoRingtoneUrl);} + + void setVibrationRingtoneUrl(const QUrl& vibrationRingtoneUrl) {setValue(FieldVibrationRingtoneUrl, vibrationRingtoneUrl);} + QUrl vibrationRingtoneUrl() const {return value(FieldVibrationRingtoneUrl);} +}; + +QTM_END_NAMESPACE + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactsynctarget.h --- a/qtmobility/src/contacts/details/qcontactsynctarget.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontactsynctarget.h Mon May 03 13:18:40 2010 +0300 @@ -56,11 +56,11 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldSyncTarget; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldSyncTarget; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactSyncTarget, "SyncTarget") - Q_DECLARE_LATIN1_LITERAL(FieldSyncTarget, "SyncTarget"); + Q_DECLARE_LATIN1_CONSTANT(FieldSyncTarget, "SyncTarget"); #endif void setSyncTarget(const QString& syncTarget) {setValue(FieldSyncTarget, syncTarget);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontacttag.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/contacts/details/qcontacttag.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,72 @@ + +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Mobility Components. +** +** $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 QCONTACTTAG_H +#define QCONTACTTAG_H + +#include + +#include "qtcontactsglobal.h" +#include "qcontactdetail.h" +#include "qcontact.h" + +QTM_BEGIN_NAMESPACE + +/* Leaf class */ +class Q_CONTACTS_EXPORT QContactTag : public QContactDetail +{ +public: +#ifdef Q_QDOC + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldTag; +#else + Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactTag, "Tag") + Q_DECLARE_LATIN1_CONSTANT(FieldTag, "Tag"); +#endif + + void setTag(const QString& tag) {setValue(FieldTag, tag);} + QString tag() const {return value(FieldTag);} +}; + +QTM_END_NAMESPACE + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontactthumbnail.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/contacts/details/qcontactthumbnail.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,72 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QCONTACTTHUMBNAIL_H +#define QCONTACTTHUMBNAIL_H + +#include +#include + +#include "qtcontactsglobal.h" +#include "qcontactdetail.h" +#include "qcontact.h" + +QTM_BEGIN_NAMESPACE + +/* Leaf class */ +class Q_CONTACTS_EXPORT QContactThumbnail : public QContactDetail +{ +public: +#ifdef Q_QDOC + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldThumbnail; +#else + Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactThumbnail, "Thumbnail") + Q_DECLARE_LATIN1_CONSTANT(FieldThumbnail, "Thumbnail"); +#endif + + void setThumbnail(const QImage& thumbnail) {setValue(FieldThumbnail, thumbnail);} + QImage thumbnail() const {return value(FieldThumbnail);} +}; + +QTM_END_NAMESPACE + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontacttimestamp.h --- a/qtmobility/src/contacts/details/qcontacttimestamp.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontacttimestamp.h Mon May 03 13:18:40 2010 +0300 @@ -55,13 +55,13 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldModificationTimestamp; - const char* FieldCreationTimestamp; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldModificationTimestamp; + static const QLatin1Constant FieldCreationTimestamp; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactTimestamp, "Timestamp") - Q_DECLARE_LATIN1_LITERAL(FieldModificationTimestamp, "ModificationTimestamp"); - Q_DECLARE_LATIN1_LITERAL(FieldCreationTimestamp, "CreationTimestamp"); + Q_DECLARE_LATIN1_CONSTANT(FieldModificationTimestamp, "ModificationTimestamp"); + Q_DECLARE_LATIN1_CONSTANT(FieldCreationTimestamp, "CreationTimestamp"); #endif void setLastModified(const QDateTime& timestamp) {setValue(FieldModificationTimestamp, timestamp);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontacttype.h --- a/qtmobility/src/contacts/details/qcontacttype.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontacttype.h Mon May 03 13:18:40 2010 +0300 @@ -55,15 +55,15 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldType; - const char* TypeContact; - const char* TypeGroup; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldType; + static const QLatin1Constant TypeContact; + static const QLatin1Constant TypeGroup; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactType, "Type") - Q_DECLARE_LATIN1_LITERAL(FieldType, "Type"); - Q_DECLARE_LATIN1_LITERAL(TypeContact, "Contact"); - Q_DECLARE_LATIN1_LITERAL(TypeGroup, "Group"); + Q_DECLARE_LATIN1_CONSTANT(FieldType, "Type"); + Q_DECLARE_LATIN1_CONSTANT(TypeContact, "Contact"); + Q_DECLARE_LATIN1_CONSTANT(TypeGroup, "Group"); #endif void setType(const QString& type) {setValue(FieldType, type);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/details/qcontacturl.h --- a/qtmobility/src/contacts/details/qcontacturl.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/details/qcontacturl.h Mon May 03 13:18:40 2010 +0300 @@ -55,18 +55,18 @@ { public: #ifdef Q_QDOC - const char* DefinitionName; - const char* FieldUrl; - const char* FieldSubType; - const char* SubTypeHomePage; - const char* SubTypeFavourite; - const char* SubTypeSocialNetworking; + static const QLatin1Constant DefinitionName; + static const QLatin1Constant FieldUrl; + static const QLatin1Constant FieldSubType; + static const QLatin1Constant SubTypeHomePage; + static const QLatin1Constant SubTypeFavourite; + static const QLatin1Constant SubTypeSocialNetworking; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactUrl, "Url") - Q_DECLARE_LATIN1_LITERAL(FieldUrl, "Url"); - Q_DECLARE_LATIN1_LITERAL(FieldSubType, "SubType"); - Q_DECLARE_LATIN1_LITERAL(SubTypeHomePage, "HomePage"); - Q_DECLARE_LATIN1_LITERAL(SubTypeFavourite, "Favourite"); + Q_DECLARE_LATIN1_CONSTANT(FieldUrl, "Url"); + Q_DECLARE_LATIN1_CONSTANT(FieldSubType, "SubType"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeHomePage, "HomePage"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeFavourite, "Favourite"); #endif void setUrl(const QString& url) {setValue(FieldUrl, url);} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/engines/qcontactinvalidbackend.cpp --- a/qtmobility/src/contacts/engines/qcontactinvalidbackend.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/engines/qcontactinvalidbackend.cpp Mon May 03 13:18:40 2010 +0300 @@ -59,23 +59,9 @@ } /*! \reimp */ -void QContactInvalidEngine::deref() -{ - delete this; -} - -/*! \reimp */ QString QContactInvalidEngine::managerName() const { return QString(QLatin1String("invalid")); } -/*! \reimp */ -QString QContactInvalidEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const -{ - Q_UNUSED(contact); - error = QContactManager::NotSupportedError; - return QString(); -} - QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/engines/qcontactinvalidbackend_p.h --- a/qtmobility/src/contacts/engines/qcontactinvalidbackend_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/engines/qcontactinvalidbackend_p.h Mon May 03 13:18:40 2010 +0300 @@ -66,9 +66,183 @@ { public: QContactInvalidEngine(); - void deref(); QString managerName() const; - QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const; + + /*! \reimp */ + QMap managerParameters() const {return QMap();} + /*! \reimp */ + int managerVersion() const {return 0;} + + /*! \reimp */ + QList contactIds(const QContactFilter&, const QList&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QList(); + } + + /*! \reimp */ + QList contacts(const QContactFilter&, const QList&, const QContactFetchHint&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QList(); + } + + /*! \reimp */ + QContact contact(const QContactLocalId&, const QContactFetchHint&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QContact(); + } + + /*! \reimp */ + bool saveContacts(QList*, QMap*, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + /*! \reimp */ + bool removeContacts(const QList&, QMap*, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + /*! \reimp */ + QContact conformingContact(const QContact&, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return QContact(); + } + + /*! \reimp */ + virtual QString synthesizedDisplayLabel(const QContact&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QString(); + } + + /*! \reimp */ + virtual bool setSelfContactId(const QContactLocalId&, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + /*! \reimp */ + virtual QContactLocalId selfContactId(QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return 0; + } + + /*! \reimp */ + virtual QList relationships(const QString&, const QContactId&, QContactRelationship::Role, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QList(); + } + + /*! \reimp */ + virtual bool saveRelationships(QList*, QMap*, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + /*! \reimp */ + virtual bool removeRelationships(const QList&, QMap*, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + /*! \reimp */ + virtual QContact compatibleContact(const QContact&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QContact(); + } + + /*! \reimp */ + virtual bool validateContact(const QContact&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return false; + } + + /*! \reimp */ + virtual bool validateDefinition(const QContactDetailDefinition&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return false; + } + + /*! \reimp */ + virtual QMap detailDefinitions(const QString&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QMap(); + } + + /*! \reimp */ + virtual QContactDetailDefinition detailDefinition(const QString&, const QString&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QContactDetailDefinition(); + } + + /*! \reimp */ + virtual bool saveDetailDefinition(const QContactDetailDefinition&, const QString&, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + /*! \reimp */ + virtual bool removeDetailDefinition(const QString&, const QString&, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + /*! \reimp */ + virtual void requestDestroyed(QContactAbstractRequest*) {} + /*! \reimp */ + virtual bool startRequest(QContactAbstractRequest*) {return false;} + /*! \reimp */ + virtual bool cancelRequest(QContactAbstractRequest*) {return false;} + /*! \reimp */ + virtual bool waitForRequestFinished(QContactAbstractRequest*, int) {return false;} + + /*! \reimp */ + virtual bool hasFeature(QContactManager::ManagerFeature, const QString&) const + { + return false; + } + + /*! \reimp */ + virtual bool isRelationshipTypeSupported(const QString&, const QString&) const + { + return false; + } + + /*! \reimp */ + virtual bool isFilterSupported(const QContactFilter&) const + { + return false; + } + + /*! \reimp */ + virtual QList supportedDataTypes() const + { + return QList(); + } + /*! \reimp */ + virtual QStringList supportedContactTypes() const + { + return QStringList(); + } }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/engines/qcontactmemorybackend.cpp --- a/qtmobility/src/contacts/engines/qcontactmemorybackend.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/engines/qcontactmemorybackend.cpp Mon May 03 13:18:40 2010 +0300 @@ -53,6 +53,8 @@ #include #include #include +#include + QTM_BEGIN_NAMESPACE /*! @@ -74,7 +76,7 @@ */ /* static data for manager class */ -QMap QContactMemoryEngine::engines; +QMap QContactMemoryEngine::engineDatas; /*! * Factory function for creating a new in-memory backend, based @@ -93,54 +95,42 @@ anonymous = true; } - if (engines.contains(idValue)) { - QContactMemoryEngine *engine = engines.value(idValue); - engine->d->m_refCount.ref(); - engine->d->m_anonymous = anonymous; - return engine; + QContactMemoryEngineData* data = engineDatas.value(idValue); + if (data) { + data->m_refCount.ref(); } else { - QContactMemoryEngine *engine = new QContactMemoryEngine(parameters); - engine->d->m_engineName = QString(QLatin1String("memory")); - engine->d->m_engineVersion = 1; - engine->d->m_id = idValue; - engine->d->m_anonymous = anonymous; - engines.insert(idValue, engine); - return engine; + data = new QContactMemoryEngineData(); + data->m_id = idValue; + data->m_anonymous = anonymous; + engineDatas.insert(idValue, data); } + return new QContactMemoryEngine(data); } /*! - * Constructs a new in-memory backend. - * - * Loads the in-memory data associated with the memory store identified by the "id" parameter - * from the given \a parameters if it exists, or a new, anonymous store if it does not. + * Constructs a new in-memory backend which shares the given \a data with + * other shared memory engines. */ -QContactMemoryEngine::QContactMemoryEngine(const QMap& parameters) - : d(new QContactMemoryEngineData) +QContactMemoryEngine::QContactMemoryEngine(QContactMemoryEngineData* data) + : d(data) { - Q_UNUSED(parameters); + d->m_sharedEngines.append(this); } -/*! \reimp */ -void QContactMemoryEngine::deref() +/*! Frees any memory used by this engine */ +QContactMemoryEngine::~QContactMemoryEngine() { + d->m_sharedEngines.removeAll(this); if (!d->m_refCount.deref()) { - engines.remove(d->m_id); + engineDatas.remove(d->m_id); delete d; - delete this; } } /*! \reimp */ QString QContactMemoryEngine::managerName() const { - return d->m_engineName; -} - -/*! This function is deprecated and should not be used. Use QContactMemoryEngine::managerVersion() instead! */ -int QContactMemoryEngine::implementationVersion() const -{ - return d->m_engineVersion; + return QLatin1String("memory"); } /*! \reimp */ @@ -152,124 +142,91 @@ } /*! \reimp */ -bool QContactMemoryEngine::setSelfContactId(const QContactLocalId& contactId, QContactManager::Error& error) +bool QContactMemoryEngine::setSelfContactId(const QContactLocalId& contactId, QContactManager::Error* error) { if (contactId == QContactLocalId(0) || d->m_contactIds.contains(contactId)) { - error = QContactManager::NoError; + *error = QContactManager::NoError; QContactLocalId oldId = d->m_selfContactId; d->m_selfContactId = contactId; - QContactChangeSet cs; - cs.oldAndNewSelfContactId() = QPair(oldId, contactId); - cs.emitSignals(this); + QContactChangeSet changeSet; + changeSet.setOldAndNewSelfContactId(QPair(oldId, contactId)); + d->emitSharedSignals(&changeSet); return true; } - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return false; } /*! \reimp */ -QContactLocalId QContactMemoryEngine::selfContactId(QContactManager::Error& error) const +QContactLocalId QContactMemoryEngine::selfContactId(QContactManager::Error* error) const { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; if (d->m_selfContactId != QContactLocalId(0)) - error = QContactManager::NoError; + *error = QContactManager::NoError; return d->m_selfContactId; } /*! \reimp */ -QList QContactMemoryEngine::contacts(const QList& sortOrders, QContactManager::Error& error) const -{ - return contactIds(sortOrders, error); -} - -/*! \reimp */ -QList QContactMemoryEngine::contactIds(const QList &sortOrders, QContactManager::Error &error) const +QContact QContactMemoryEngine::contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const { - // TODO: this needs to be done properly... - error = QContactManager::NoError; - QList sortedIds; - QList sortedContacts; - for (int i = 0; i < d->m_contacts.size(); i++) - QContactManagerEngine::addSorted(&sortedContacts, d->m_contacts.at(i), sortOrders); - for (int i = 0; i < sortedContacts.size(); i++) - sortedIds.append(sortedContacts.at(i).id().localId()); - return sortedIds; -} - -/*! \reimp */ -QList QContactMemoryEngine::contacts(const QList &sortOrders, const QStringList& definitionRestrictions, QContactManager::Error &error) const -{ - Q_UNUSED(definitionRestrictions); - error = QContactManager::NoError; - QList sortedContacts; - for (int i = 0; i < d->m_contacts.size(); i++) - QContactManagerEngine::addSorted(&sortedContacts, contact(d->m_contacts.at(i).localId(), QStringList(), error), sortOrders); - // we ignore the restrictions - we don't want to do extra work to remove them. - // note that the restriction is "optional" - it defines the minimum set of detail types which _must_ be returned - // but doesn't require that they are the _only_ detail types which are returned. - return sortedContacts; -} - -/*! \reimp */ -QContact QContactMemoryEngine::contact(const QContactLocalId& contactId, QContactManager::Error& error) const -{ + Q_UNUSED(fetchHint); // no optimisations are possible in the memory backend; ignore the fetch hint. int index = d->m_contactIds.indexOf(contactId); if (index != -1) { // found the contact successfully. - error = QContactManager::NoError; - QContact retn = d->m_contacts.at(index); - - // synthesize the display label if we need to. - QContactDisplayLabel dl = retn.detail(QContactDisplayLabel::DefinitionName); - if (dl.label().isEmpty()) { - QContactManager::Error synthError; - retn = setContactDisplayLabel(synthesizedDisplayLabel(retn, synthError), retn); - } - - // also, retrieve the current relationships the contact is involved with. - QList relationshipCache = d->m_orderedRelationships.value(contactId); - QContactManagerEngine::setContactRelationships(&retn, relationshipCache); - - // and return the contact - return retn; + *error = QContactManager::NoError; + return d->m_contacts.at(index); } - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return QContact(); } /*! \reimp */ -QContact QContactMemoryEngine::contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QList QContactMemoryEngine::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const { - Q_UNUSED(definitionRestrictions); // return the entire contact (meets contract, no optimisations possible for memory engine). - int index = d->m_contactIds.indexOf(contactId); - if (index != -1) { - // found the contact successfully. - error = QContactManager::NoError; - QContact retn = d->m_contacts.at(index); + /* Special case the fast case */ + if (filter.type() == QContactFilter::DefaultFilter && sortOrders.count() == 0) { + return d->m_contactIds; + } else { + QList clist = contacts(filter, sortOrders, QContactFetchHint(), error); + + /* Extract the ids */ + QList ids; + foreach(const QContact& c, clist) + ids.append(c.localId()); + + return ids; + } +} - // synthesize the display label if we need to. - QContactDisplayLabel dl = retn.detail(QContactDisplayLabel::DefinitionName); - if (dl.label().isEmpty()) { - QContactManager::Error synthError; - retn = setContactDisplayLabel(synthesizedDisplayLabel(retn, synthError), retn); - } +/*! \reimp */ +QList QContactMemoryEngine::contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const +{ + Q_UNUSED(fetchHint); // no optimisations are possible in the memory backend; ignore the fetch hint. + Q_UNUSED(error); + + QList sorted; - // also, retrieve the current relationships the contact is involved with. - QList relationshipCache = d->m_orderedRelationships.value(contactId); - QContactManagerEngine::setContactRelationships(&retn, relationshipCache); - - // and return the contact - return retn; + /* First filter out contacts - check for default filter first */ + if (filter.type() == QContactFilter::DefaultFilter) { + foreach(const QContact&c, d->m_contacts) { + QContactManagerEngine::addSorted(&sorted,c, sortOrders); + } + } else { + foreach(const QContact&c, d->m_contacts) { + if (QContactManagerEngine::testFilter(filter, c)) + QContactManagerEngine::addSorted(&sorted,c, sortOrders); + } } - error = QContactManager::DoesNotExistError; - return QContact(); + return sorted; } -bool QContactMemoryEngine::saveContact(QContact* theContact, QContactChangeSet& changeSet, QContactManager::Error& error) +/*! Saves the given contact \a theContact, storing any error to \a error and + filling the \a changeSet with ids of changed contacts as required */ +bool QContactMemoryEngine::saveContact(QContact* theContact, QContactChangeSet& changeSet, QContactManager::Error* error) { // ensure that the contact's details conform to their definitions if (!validateContact(*theContact, error)) { @@ -283,7 +240,7 @@ QContact oldContact = d->m_contacts.at(index); if (oldContact.type() != theContact->type()) { - error = QContactManager::AlreadyExistsError; + *error = QContactManager::AlreadyExistsError; return false; } @@ -292,45 +249,19 @@ QContactManagerEngine::setDetailAccessConstraints(&ts, QContactDetail::ReadOnly | QContactDetail::Irremovable); theContact->saveDetail(&ts); - /* And we need to check that the relationships are up-to-date or not modified */ - QList orderedList = theContact->relationshipOrder(); - QList upToDateList = d->m_orderedRelationships.value(theContact->localId()); - if (theContact->relationships() != orderedList) { - // the user has modified the order of relationships; we may need to update the lists etc. - if (upToDateList.size() != orderedList.size()) { - // the cache was stale; relationships have been added or removed in the meantime. - error = QContactManager::InvalidRelationshipError; - return false; - } - - // size is the same, need to ensure that no invalid relationships are in the list. - for (int i = 0; i < orderedList.size(); i++) { - QContactRelationship currOrderedRel = orderedList.at(i); - if (!upToDateList.contains(currOrderedRel)) { - // the cache was stale; relationships have been added and removed in the meantime. - error = QContactManager::InvalidRelationshipError; - return false; - } - } - - // everything is fine. update the up-to-date list - d->m_orderedRelationships.insert(theContact->localId(), orderedList); - } - // synthesize the display label for the contact. - QContact saveContact = setContactDisplayLabel(synthesizedDisplayLabel(*theContact, error), *theContact); - *theContact = saveContact; + setContactDisplayLabel(theContact, synthesizedDisplayLabel(*theContact, error)); // Looks ok, so continue d->m_contacts.replace(index, *theContact); - changeSet.changedContacts().insert(theContact->localId()); + changeSet.insertChangedContact(theContact->localId()); } else { // id does not exist; if not zero, fail. QContactId newId; newId.setManagerUri(managerUri()); if (theContact->id() != QContactId() && theContact->id() != newId) { // the ID is not empty, and it doesn't identify an existing contact in our database either. - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return false; } @@ -346,66 +277,28 @@ theContact->setId(newId); // synthesize the display label for the contact. - QContact saveContact = setContactDisplayLabel(synthesizedDisplayLabel(*theContact, error), *theContact); - *theContact = saveContact; + setContactDisplayLabel(theContact, synthesizedDisplayLabel(*theContact, error)); // finally, add the contact to our internal lists and return d->m_contacts.append(*theContact); // add contact to list d->m_contactIds.append(theContact->localId()); // track the contact id. - changeSet.addedContacts().insert(theContact->localId()); + changeSet.insertAddedContact(theContact->localId()); } - error = QContactManager::NoError; // successful. + *error = QContactManager::NoError; // successful. return true; } /*! \reimp */ -bool QContactMemoryEngine::saveContact(QContact* contact, QContactManager::Error& error) -{ - QContactChangeSet changeSet; - bool retn = saveContact(contact, changeSet, error); - changeSet.emitSignals(this); - return retn; -} - -/*! \reimp */ -QList QContactMemoryEngine::saveContacts(QList* contacts, QContactManager::Error& error) -{ - QList ret; - if (!contacts) { - error = QContactManager::BadArgumentError; - return ret; - } else { - // for batch processing, we store up the changes and emit at the end. - QContactChangeSet changeSet; - QContactManager::Error functionError = QContactManager::NoError; - for (int i = 0; i < contacts->count(); i++) { - QContact current = contacts->at(i); - if (!saveContact(¤t, changeSet, error)) { - functionError = error; - ret.append(functionError); - } else { - (*contacts)[i] = current; - ret.append(QContactManager::NoError); - } - } - - error = functionError; - changeSet.emitSignals(this); - return ret; - } -} - -/*! \reimp */ -bool QContactMemoryEngine::saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error& error) +bool QContactMemoryEngine::saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error) { if(errorMap) { errorMap->clear(); } if (!contacts) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } @@ -415,25 +308,27 @@ for (int i = 0; i < contacts->count(); i++) { current = contacts->at(i); if (!saveContact(¤t, changeSet, error)) { - operationError = error; + operationError = *error; errorMap->insert(i, operationError); } else { (*contacts)[i] = current; } } - error = operationError; - changeSet.emitSignals(this); + *error = operationError; + d->emitSharedSignals(&changeSet); // return false if some error occurred - return error == QContactManager::NoError; + return (*error == QContactManager::NoError); } -bool QContactMemoryEngine::removeContact(const QContactLocalId& contactId, QContactChangeSet& changeSet, QContactManager::Error& error) +/*! Removes the contact identified by the given \a contactId, storing any error to \a error and + filling the \a changeSet with ids of changed contacts and relationships as required */ +bool QContactMemoryEngine::removeContact(const QContactLocalId& contactId, QContactChangeSet& changeSet, QContactManager::Error* error) { int index = d->m_contactIds.indexOf(contactId); if (index == -1) { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return false; } @@ -441,100 +336,58 @@ QContactId thisContact; thisContact.setManagerUri(managerUri()); thisContact.setLocalId(contactId); - QList allRelationships = relationships(QString(), thisContact, QContactRelationshipFilter::Either, error); - if (error != QContactManager::NoError && error != QContactManager::DoesNotExistError) { - error = QContactManager::UnspecifiedError; // failed to clean up relationships + QList allRelationships = relationships(QString(), thisContact, QContactRelationship::Either, error); + if (*error != QContactManager::NoError && *error != QContactManager::DoesNotExistError) { + *error = QContactManager::UnspecifiedError; // failed to clean up relationships return false; } // this is meant to be a transaction, so if any of these fail, we're in BIG TROUBLE. // a real backend will use DBMS transactions to ensure database integrity. - for (int i = 0; i < allRelationships.size(); i++) { - QContactRelationship currRel = allRelationships.at(i); - removeRelationship(currRel, error); - } + removeRelationships(allRelationships, 0, error); // having cleaned up the relationships, remove the contact from the lists. d->m_contacts.removeAt(index); d->m_contactIds.removeAt(index); - error = QContactManager::NoError; + *error = QContactManager::NoError; // and if it was the self contact, reset the self contact id if (contactId == d->m_selfContactId) { d->m_selfContactId = QContactLocalId(0); - changeSet.oldAndNewSelfContactId() = QPair(contactId, QContactLocalId(0)); + changeSet.setOldAndNewSelfContactId(QPair(contactId, QContactLocalId(0))); } - changeSet.removedContacts().insert(contactId); + changeSet.insertRemovedContact(contactId); return true; } /*! \reimp */ -bool QContactMemoryEngine::removeContact(const QContactLocalId& contactId, QContactManager::Error& error) -{ - QContactChangeSet changeSet; - bool retn = removeContact(contactId, changeSet, error); - changeSet.emitSignals(this); - return retn; -} - -/*! \reimp */ -QList QContactMemoryEngine::removeContacts(QList* contactIds, QContactManager::Error& error) +bool QContactMemoryEngine::removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error) { - QList ret; - if (!contactIds) { - error = QContactManager::BadArgumentError; - return ret; + if (contactIds.count() == 0) { + *error = QContactManager::BadArgumentError; + return false; } - - // for batch processing, we store up the changes and emit at the end. + QContactChangeSet changeSet; - QContactManager::Error functionError = QContactManager::NoError; - for (int i = 0; i < contactIds->count(); i++) { - QContactLocalId current = contactIds->at(i); + QContactLocalId current; + QContactManager::Error operationError = QContactManager::NoError; + for (int i = 0; i < contactIds.count(); i++) { + current = contactIds.at(i); if (!removeContact(current, changeSet, error)) { - functionError = error; - ret.append(functionError); - } else { - (*contactIds)[i] = 0; - ret.append(QContactManager::NoError); + operationError = *error; + errorMap->insert(i, operationError); } } - error = functionError; - changeSet.emitSignals(this); - return ret; + *error = operationError; + d->emitSharedSignals(&changeSet); + // return false if some errors occurred + return (*error == QContactManager::NoError); } /*! \reimp */ -bool QContactMemoryEngine::removeContacts(QList* contactIds, QMap* errorMap, QContactManager::Error& error) -{ - if (!contactIds) { - error = QContactManager::BadArgumentError; - return false; - } - - QContactChangeSet changeSet; - QContactLocalId current; - QContactManager::Error operationError = QContactManager::NoError; - for (int i = 0; i < contactIds->count(); i++) { - current = contactIds->at(i); - if (!removeContact(current, changeSet, error)) { - operationError = error; - errorMap->insert(i, operationError); - } else { - (*contactIds)[i] = 0; - } - } - - error = operationError; - changeSet.emitSignals(this); - // return false if some errors occurred - return error == QContactManager::NoError; -} - -/*! \reimp */ -QList QContactMemoryEngine::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationshipFilter::Role role, QContactManager::Error& error) const +QList QContactMemoryEngine::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) const { QContactId defaultId; QList retn; @@ -552,40 +405,44 @@ } // otherwise, check that the participant exists and plays the required role in the relationship. - if (role == QContactRelationshipFilter::First && curr.first() == participantId) { + if (role == QContactRelationship::First && curr.first() == participantId) { retn.append(curr); - } else if (role == QContactRelationshipFilter::Second && curr.second() == participantId) { + } else if (role == QContactRelationship::Second && curr.second() == participantId) { retn.append(curr); - } else if (role == QContactRelationshipFilter::Either && (curr.first() == participantId || curr.second() == participantId)) { + } else if (role == QContactRelationship::Either && (curr.first() == participantId || curr.second() == participantId)) { retn.append(curr); } } - error = QContactManager::NoError; + *error = QContactManager::NoError; if (retn.isEmpty()) - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return retn; } -bool QContactMemoryEngine::saveRelationship(QContactRelationship* relationship, QContactChangeSet& changeSet, QContactManager::Error& error) +/*! Saves the given relationship \a relationship, storing any error to \a error and + filling the \a changeSet with ids of changed contacts and relationships as required */ +bool QContactMemoryEngine::saveRelationship(QContactRelationship* relationship, QContactChangeSet& changeSet, QContactManager::Error* error) { // Attempt to validate the relationship. // first, check that the source contact exists and is in this manager. QString myUri = managerUri(); + int firstContactIndex = d->m_contactIds.indexOf(relationship->first().localId()); if ((!relationship->first().managerUri().isEmpty() && relationship->first().managerUri() != myUri) - ||!d->m_contactIds.contains(relationship->first().localId())) { - error = QContactManager::InvalidRelationshipError; + ||firstContactIndex == -1) { + *error = QContactManager::InvalidRelationshipError; return false; } // second, check that the second contact exists (if it's local); we cannot check other managers' contacts. QContactId dest = relationship->second(); + int secondContactIndex = d->m_contactIds.indexOf(dest.localId()); if (dest.managerUri().isEmpty() || dest.managerUri() == myUri) { // this entry in the destination list is supposedly stored in this manager. // check that it exists, and that it isn't the source contact (circular) - if (!d->m_contactIds.contains(dest.localId()) || dest.localId() == relationship->first().localId()) { - error = QContactManager::InvalidRelationshipError; + if (secondContactIndex == -1 || dest.localId() == relationship->first().localId()) { + *error = QContactManager::InvalidRelationshipError; return false; } } @@ -599,13 +456,11 @@ // check to see if the relationship already exists in the database. If so, replace. // We do this because we don't want duplicates in our lists / maps of relationships. - error = QContactManager::NoError; + *error = QContactManager::NoError; QList allRelationships = d->m_relationships; for (int i = 0; i < allRelationships.size(); i++) { QContactRelationship curr = allRelationships.at(i); if (curr == *relationship) { - d->m_relationships.removeAt(i); - d->m_relationships.insert(i, *relationship); return true; // TODO: set error to AlreadyExistsError and return false? } @@ -618,8 +473,12 @@ secondRelationships.append(*relationship); d->m_orderedRelationships.insert(relationship->first().localId(), firstRelationships); d->m_orderedRelationships.insert(relationship->second().localId(), secondRelationships); - changeSet.addedRelationshipsContacts().insert(relationship->first().localId()); - changeSet.addedRelationshipsContacts().insert(relationship->second().localId()); + changeSet.insertAddedRelationshipsContact(relationship->first().localId()); + changeSet.insertAddedRelationshipsContact(relationship->second().localId()); + + // update the contacts involved + QContactManagerEngine::setContactRelationships(&d->m_contacts[firstContactIndex], firstRelationships); + QContactManagerEngine::setContactRelationships(&d->m_contacts[secondContactIndex], secondRelationships); // finally, insert into our list of all relationships, and return. d->m_relationships.append(*relationship); @@ -627,43 +486,37 @@ } /*! \reimp */ -bool QContactMemoryEngine::saveRelationship(QContactRelationship* relationship, QContactManager::Error& error) +bool QContactMemoryEngine::saveRelationships(QList* relationships, QMap* errorMap, QContactManager::Error* error) { - QContactChangeSet changeSet; - bool retn = saveRelationship(relationship, changeSet, error); - changeSet.emitSignals(this); - return retn; -} - -/*! \reimp */ -QList QContactMemoryEngine::saveRelationships(QList* relationships, QContactManager::Error& error) -{ - error = QContactManager::NoError; + *error = QContactManager::NoError; QContactManager::Error functionError; QContactChangeSet changeSet; - QList retn; + for (int i = 0; i < relationships->size(); i++) { QContactRelationship curr = relationships->at(i); - saveRelationship(&curr, changeSet, functionError); - retn.append(functionError); + saveRelationship(&curr, changeSet, &functionError); + if (functionError != QContactManager::NoError && errorMap) + errorMap->insert(i, functionError); // and replace the current relationship with the updated version. relationships->replace(i, curr); // also, update the total error if it did not succeed. if (functionError != QContactManager::NoError) - error = functionError; + *error = functionError; } - changeSet.emitSignals(this); - return retn; + d->emitSharedSignals(&changeSet); + return (*error == QContactManager::NoError); } -bool QContactMemoryEngine::removeRelationship(const QContactRelationship& relationship, QContactChangeSet& changeSet, QContactManager::Error& error) +/*! Removes the given relationship \a relationship, storing any error to \a error and + filling the \a changeSet with ids of changed contacts and relationships as required */ +bool QContactMemoryEngine::removeRelationship(const QContactRelationship& relationship, QContactChangeSet& changeSet, QContactManager::Error* error) { // attempt to remove it from our list of relationships. if (!d->m_relationships.removeOne(relationship)) { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return false; } @@ -675,53 +528,56 @@ d->m_orderedRelationships.insert(relationship.first().localId(), firstRelationships); d->m_orderedRelationships.insert(relationship.second().localId(), secondRelationships); + // Update the contacts as well + int firstContactIndex = d->m_contactIds.indexOf(relationship.first().localId()); + int secondContactIndex = relationship.second().managerUri() == managerUri() ? d->m_contactIds.indexOf(relationship.second().localId()) : -1; + if (firstContactIndex != -1) + QContactMemoryEngine::setContactRelationships(&d->m_contacts[firstContactIndex], firstRelationships); + if (secondContactIndex != -1) + QContactMemoryEngine::setContactRelationships(&d->m_contacts[secondContactIndex], secondRelationships); + // set our changes, and return. - changeSet.removedRelationshipsContacts().insert(relationship.first().localId()); - changeSet.removedRelationshipsContacts().insert(relationship.second().localId()); - error = QContactManager::NoError; + changeSet.insertRemovedRelationshipsContact(relationship.first().localId()); + changeSet.insertRemovedRelationshipsContact(relationship.second().localId()); + *error = QContactManager::NoError; return true; } /*! \reimp */ -bool QContactMemoryEngine::removeRelationship(const QContactRelationship& relationship, QContactManager::Error& error) +bool QContactMemoryEngine::removeRelationships(const QList& relationships, QMap* errorMap, QContactManager::Error* error) { - QContactChangeSet changeSet; - bool retn = removeRelationship(relationship, changeSet, error); - changeSet.emitSignals(this); - return retn; + QContactManager::Error functionError; + QContactChangeSet cs; + for (int i = 0; i < relationships.size(); i++) { + removeRelationship(relationships.at(i), cs, &functionError); + + // update the total error if it did not succeed. + if (functionError != QContactManager::NoError) { + if (errorMap) + errorMap->insert(i, functionError); + *error = functionError; + } + } + + d->emitSharedSignals(&cs); + return (*error == QContactManager::NoError); } /*! \reimp */ -QList QContactMemoryEngine::removeRelationships(const QList& relationships, QContactManager::Error& error) -{ - QList retn; - QContactManager::Error functionError; - for (int i = 0; i < relationships.size(); i++) { - removeRelationship(relationships.at(i), functionError); - retn.append(functionError); - - // update the total error if it did not succeed. - if (functionError != QContactManager::NoError) { - error = functionError; - } - } - - return retn; -} - -/*! \reimp */ -QMap QContactMemoryEngine::detailDefinitions(const QString& contactType, QContactManager::Error& error) const +QMap QContactMemoryEngine::detailDefinitions(const QString& contactType, QContactManager::Error* error) const { // lazy initialisation of schema definitions. if (d->m_definitions.isEmpty()) { d->m_definitions = QContactManagerEngine::schemaDefinitions(); } - error = QContactManager::NoError; + *error = QContactManager::NoError; return d->m_definitions.value(contactType); } -bool QContactMemoryEngine::saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactChangeSet& changeSet, QContactManager::Error& error) +/*! Saves the given detail definition \a def, storing any error to \a error and + filling the \a changeSet with ids of changed contacts as required */ +bool QContactMemoryEngine::saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactChangeSet& changeSet, QContactManager::Error* error) { // we should check for changes to the database in this function, and add ids of changed data to changeSet. TODO. Q_UNUSED(changeSet); @@ -735,20 +591,22 @@ defsForThisType.insert(def.name(), def); d->m_definitions.insert(contactType, defsForThisType); - error = QContactManager::NoError; + *error = QContactManager::NoError; return true; } /*! \reimp */ -bool QContactMemoryEngine::saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error& error) +bool QContactMemoryEngine::saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error* error) { QContactChangeSet changeSet; bool retn = saveDetailDefinition(def, contactType, changeSet, error); - changeSet.emitSignals(this); + d->emitSharedSignals(&changeSet); return retn; } -bool QContactMemoryEngine::removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactChangeSet& changeSet, QContactManager::Error& error) +/*! Removes the detail definition identified by \a definitionId, storing any error to \a error and + filling the \a changeSet with ids of changed contacts as required */ +bool QContactMemoryEngine::removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactChangeSet& changeSet, QContactManager::Error* error) { // we should check for changes to the database in this function, and add ids of changed data to changeSet... // we should also check to see if the changes have invalidated any contact data, and add the ids of those contacts @@ -756,7 +614,7 @@ Q_UNUSED(changeSet); if (definitionId.isEmpty()) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } @@ -765,90 +623,60 @@ bool success = defsForThisType.remove(definitionId); d->m_definitions.insert(contactType, defsForThisType); if (success) - error = QContactManager::NoError; + *error = QContactManager::NoError; else - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return success; } /*! \reimp */ -bool QContactMemoryEngine::removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error& error) +bool QContactMemoryEngine::removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) { QContactChangeSet changeSet; bool retn = removeDetailDefinition(definitionId, contactType, changeSet, error); - changeSet.emitSignals(this); + d->emitSharedSignals(&changeSet); return retn; } /*! \reimp */ void QContactMemoryEngine::requestDestroyed(QContactAbstractRequest* req) { - d->m_asynchronousOperations.removeOne(req); + Q_UNUSED(req); } /*! \reimp */ bool QContactMemoryEngine::startRequest(QContactAbstractRequest* req) { - if (!d->m_asynchronousOperations.contains(req)) - d->m_asynchronousOperations.enqueue(req); + if (!req) + return false; updateRequestState(req, QContactAbstractRequest::ActiveState); - QTimer::singleShot(0, this, SLOT(performAsynchronousOperation())); + performAsynchronousOperation(req); return true; } /*! \reimp */ bool QContactMemoryEngine::cancelRequest(QContactAbstractRequest* req) { - updateRequestState(req, QContactAbstractRequest::CanceledState); - return true; -} - -/*! This function is deprecated! Use QContactMemoryEngine::waitForRequestFinished() instead! - Waits up to \a msecs milliseconds for the request \a req to emit the progress() signal. - Returns true if the progress() signal was emitted during the period, otherwise false. -*/ -bool QContactMemoryEngine::waitForRequestProgress(QContactAbstractRequest* req, int msecs) -{ - Q_UNUSED(msecs); - - if (!d->m_asynchronousOperations.removeOne(req)) - return false; // didn't exist. - - // replace at head of queue - d->m_asynchronousOperations.insert(0, req); - - // and perform the operation. - performAsynchronousOperation(); - - return true; + Q_UNUSED(req); // we can't cancel since we complete immediately + return false; } /*! \reimp */ bool QContactMemoryEngine::waitForRequestFinished(QContactAbstractRequest* req, int msecs) { // in our implementation, we always complete any operation we start. - // so, waitForRequestFinished is equivalent to waitForRequestProgress. - return waitForRequestProgress(req, msecs); + Q_UNUSED(msecs); + Q_UNUSED(req); + + return true; } /*! * This slot is called some time after an asynchronous request is started. * It performs the required operation, sets the result and returns. */ -void QContactMemoryEngine::performAsynchronousOperation() +void QContactMemoryEngine::performAsynchronousOperation(QContactAbstractRequest *currentRequest) { - QContactAbstractRequest *currentRequest; - - // take the first pending request and finish it - if (d->m_asynchronousOperations.isEmpty()) - return; - currentRequest = d->m_asynchronousOperations.dequeue(); - - // check to see if it is cancelling; if so, remove it from the queue and return. - if (currentRequest->state() == QContactAbstractRequest::CanceledState) { - return; - } - // store up changes, and emit signals once at the end of the (possibly batch) operation. QContactChangeSet changeSet; @@ -860,15 +688,16 @@ QContactFetchRequest* r = static_cast(currentRequest); QContactFilter filter = r->filter(); QList sorting = r->sorting(); - QStringList defs = r->definitionRestrictions(); + QContactFetchHint fetchHint = r->fetchHint(); QContactManager::Error operationError; - QList requestedContacts = QContactManagerEngine::contacts(filter, sorting, defs, operationError); + QList requestedContacts = contacts(filter, sorting, fetchHint, &operationError); // update the request with the results. if (!requestedContacts.isEmpty() || operationError != QContactManager::NoError) - updateContactFetchRequest(r, requestedContacts, operationError); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateContactFetchRequest(r, requestedContacts, operationError, QContactAbstractRequest::FinishedState); + else + updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); } break; @@ -879,11 +708,12 @@ QList sorting = r->sorting(); QContactManager::Error operationError = QContactManager::NoError; - QList requestedContactIds = QContactManagerEngine::contactIds(filter, sorting, operationError); + QList requestedContactIds = contactIds(filter, sorting, &operationError); if (!requestedContactIds.isEmpty() || operationError != QContactManager::NoError) - updateContactLocalIdFetchRequest(r, requestedContactIds, operationError); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateContactLocalIdFetchRequest(r, requestedContactIds, operationError, QContactAbstractRequest::FinishedState); + else + updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); } break; @@ -894,10 +724,9 @@ QContactManager::Error operationError = QContactManager::NoError; QMap errorMap; - saveContacts(&contacts, &errorMap, operationError); + saveContacts(&contacts, &errorMap, &operationError); - updateContactSaveRequest(r, contacts, operationError, errorMap); // there will always be results of some form. emit resultsAvailable(). - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateContactSaveRequest(r, contacts, operationError, errorMap, QContactAbstractRequest::FinishedState); } break; @@ -915,7 +744,7 @@ for (int i = 0; i < contactsToRemove.size(); i++) { QContactManager::Error tempError; - removeContact(contactsToRemove.at(i), changeSet, tempError); + removeContact(contactsToRemove.at(i), changeSet, &tempError); if (tempError != QContactManager::NoError) { errorMap.insert(i, tempError); @@ -924,8 +753,9 @@ } if (!errorMap.isEmpty() || operationError != QContactManager::NoError) - updateContactRemoveRequest(r, operationError, errorMap); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateContactRemoveRequest(r, operationError, errorMap, QContactAbstractRequest::FinishedState); + else + updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); } break; @@ -937,11 +767,11 @@ QMap requestedDefinitions; QStringList names = r->definitionNames(); if (names.isEmpty()) - names = detailDefinitions(r->contactType(), operationError).keys(); // all definitions. + names = detailDefinitions(r->contactType(), &operationError).keys(); // all definitions. QContactManager::Error tempError; for (int i = 0; i < names.size(); i++) { - QContactDetailDefinition current = detailDefinition(names.at(i), r->contactType(), tempError); + QContactDetailDefinition current = detailDefinition(names.at(i), r->contactType(), &tempError); requestedDefinitions.insert(names.at(i), current); if (tempError != QContactManager::NoError) { @@ -951,8 +781,9 @@ } if (!errorMap.isEmpty() || !requestedDefinitions.isEmpty() || operationError != QContactManager::NoError) - updateDefinitionFetchRequest(r, requestedDefinitions, operationError, errorMap); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateDefinitionFetchRequest(r, requestedDefinitions, operationError, errorMap, QContactAbstractRequest::FinishedState); + else + updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); } break; @@ -967,7 +798,7 @@ QContactManager::Error tempError; for (int i = 0; i < definitions.size(); i++) { QContactDetailDefinition current = definitions.at(i); - saveDetailDefinition(current, r->contactType(), changeSet, tempError); + saveDetailDefinition(current, r->contactType(), changeSet, &tempError); savedDefinitions.append(current); if (tempError != QContactManager::NoError) { @@ -977,8 +808,7 @@ } // update the request with the results. - updateDefinitionSaveRequest(r, savedDefinitions, operationError, errorMap); // there will always be results of some form. emit resultsAvailable(). - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateDefinitionSaveRequest(r, savedDefinitions, operationError, errorMap, QContactAbstractRequest::FinishedState); } break; @@ -992,7 +822,7 @@ for (int i = 0; i < names.size(); i++) { QContactManager::Error tempError; - removeDetailDefinition(names.at(i), r->contactType(), changeSet, tempError); + removeDetailDefinition(names.at(i), r->contactType(), changeSet, &tempError); if (tempError != QContactManager::NoError) { errorMap.insert(i, tempError); @@ -1001,8 +831,7 @@ } // there are no results, so just update the status with the error. - updateDefinitionRemoveRequest(r, operationError, errorMap); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateDefinitionRemoveRequest(r, operationError, errorMap, QContactAbstractRequest::FinishedState); } break; @@ -1011,7 +840,7 @@ QContactRelationshipFetchRequest* r = static_cast(currentRequest); QContactManager::Error operationError = QContactManager::NoError; QList operationErrors; - QList allRelationships = relationships(QString(), QContactId(), QContactRelationshipFilter::Either, operationError); + QList allRelationships = relationships(QString(), QContactId(), QContactRelationship::Either, &operationError); QList requestedRelationships; // select the requested relationships. @@ -1028,8 +857,9 @@ // update the request with the results. if (!requestedRelationships.isEmpty() || operationError != QContactManager::NoError) - updateRelationshipFetchRequest(r, requestedRelationships, operationError); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateRelationshipFetchRequest(r, requestedRelationships, operationError, QContactAbstractRequest::FinishedState); + else + updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); } break; @@ -1040,23 +870,12 @@ QList relationshipsToRemove = r->relationships(); QMap errorMap; - bool foundMatch = false; - for (int i = 0; i < relationshipsToRemove.size(); i++) { - QContactManager::Error tempError; - removeRelationship(relationshipsToRemove.at(i), tempError); - - if (tempError != QContactManager::NoError) { - errorMap.insert(i, tempError); - operationError = tempError; - } - } - - if (foundMatch == false && operationError == QContactManager::NoError) - operationError = QContactManager::DoesNotExistError; + removeRelationships(r->relationships(), &errorMap, &operationError); if (!errorMap.isEmpty() || operationError != QContactManager::NoError) - updateRelationshipRemoveRequest(r, operationError, errorMap); // emit resultsAvailable() - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateRelationshipRemoveRequest(r, operationError, errorMap, QContactAbstractRequest::FinishedState); + else + updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); } break; @@ -1066,23 +885,11 @@ QContactManager::Error operationError = QContactManager::NoError; QMap errorMap; QList requestRelationships = r->relationships(); - QList savedRelationships; - QContactManager::Error tempError; - for (int i = 0; i < requestRelationships.size(); i++) { - QContactRelationship current = requestRelationships.at(i); - saveRelationship(¤t, tempError); - savedRelationships.append(current); - - if (tempError != QContactManager::NoError) { - errorMap.insert(i, tempError); - operationError = tempError; - } - } + saveRelationships(&requestRelationships, &errorMap, &operationError); // update the request with the results. - updateRelationshipSaveRequest(r, savedRelationships, operationError, errorMap); // there will always be results of some form. emit resultsAvailable(). - updateRequestState(currentRequest, QContactAbstractRequest::FinishedState); + updateRelationshipSaveRequest(r, requestRelationships, operationError, errorMap, QContactAbstractRequest::FinishedState); } break; @@ -1091,7 +898,7 @@ } // now emit any signals we have to emit - changeSet.emitSignals(this); + d->emitSharedSignals(&changeSet); } /*! @@ -1107,7 +914,6 @@ case QContactManager::ActionPreferences: case QContactManager::Relationships: case QContactManager::ArbitraryRelationshipTypes: - case QContactManager::RelationshipOrdering: case QContactManager::MutableDefinitions: return true; case QContactManager::Anonymous: @@ -1123,16 +929,18 @@ /*! * \reimp */ -QStringList QContactMemoryEngine::supportedRelationshipTypes(const QString& contactType) const +bool QContactMemoryEngine::isRelationshipTypeSupported(const QString& relationshipType, const QString& contactType) const { - Q_UNUSED(contactType); - return QStringList() - << QContactRelationship::HasMember - << QContactRelationship::Aggregates - << QContactRelationship::IsSameAs - << QContactRelationship::HasAssistant - << QContactRelationship::HasManager - << QContactRelationship::HasSpouse; + // the memory backend supports arbitrary relationship types + // but some relationship types don't make sense for groups. + if (contactType == QContactType::TypeGroup) { + if (relationshipType == QContactRelationship::HasSpouse || relationshipType == QContactRelationship::HasAssistant) { + return false; + } + } + + // all other relationship types for all contact types are supported. + return true; } /*! @@ -1157,10 +965,9 @@ } /*! - * This function is deprecated. Use QContactManagerEngine::isFilterSupported() instead! * The function returns true if the backend natively supports the given filter \a filter, otherwise false. */ -bool QContactMemoryEngine::filterSupported(const QContactFilter& filter) const +bool QContactMemoryEngine::isFilterSupported(const QContactFilter& filter) const { Q_UNUSED(filter); // Until we add hashes for common stuff, fall back to slow code diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/engines/qcontactmemorybackend_p.h --- a/qtmobility/src/contacts/engines/qcontactmemorybackend_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/engines/qcontactmemorybackend_p.h Mon May 03 13:18:40 2010 +0300 @@ -75,6 +75,7 @@ QTM_BEGIN_NAMESPACE class QContactAbstractRequest; +class QContactManagerEngine; class QContactMemoryEngineData : public QSharedData { public: @@ -83,8 +84,7 @@ m_refCount(QAtomicInt(1)), m_selfContactId(0), m_nextContactId(1), - m_anonymous(false), - m_engineVersion(0) + m_anonymous(false) { } @@ -93,8 +93,7 @@ m_refCount(QAtomicInt(1)), m_selfContactId(other.m_selfContactId), m_nextContactId(other.m_nextContactId), - m_anonymous(other.m_anonymous), - m_engineVersion(0) + m_anonymous(other.m_anonymous) { } @@ -114,89 +113,113 @@ mutable QMap > m_definitions; // map of contact type to map of definition name to definitions. QContactLocalId m_nextContactId; bool m_anonymous; // Is this backend ever shared? - QString m_engineName; // name of this engine as supplied by factory (memory) - int m_engineVersion; // version of this engine as supplied by factory - QQueue m_asynchronousOperations; // async requests to be performed. + void emitSharedSignals(QContactChangeSet* cs) + { + foreach(QContactManagerEngine* engine, m_sharedEngines) + cs->emitSignals(engine); + } + + QList m_sharedEngines; // The list of engines that share this data }; -class Q_CONTACTS_EXPORT QContactMemoryEngine : public QContactManagerEngine +class QContactMemoryEngine : public QContactManagerEngine { Q_OBJECT public: - using QContactManagerEngine::contacts; + static QContactMemoryEngine *createMemoryEngine(const QMap& parameters); - static QContactMemoryEngine *createMemoryEngine(const QMap& parameters); - void deref(); + ~QContactMemoryEngine(); /* URI reporting */ QString managerName() const; QMap managerParameters() const; + /*! \reimp */ + int managerVersion() const {return 1;} + + virtual QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const; + virtual QList contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; + virtual QContact contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; + + virtual bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error); + virtual bool removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error); + + /*! \reimp */ + virtual QContact compatibleContact(const QContact& original, QContactManager::Error* error) const + { + return QContactManagerEngine::compatibleContact(original, error); + } + + /*! \reimp */ + virtual QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const + { + return QContactManagerEngine::synthesizedDisplayLabel(contact, error); + } /* "Self" contact id (MyCard) */ - bool setSelfContactId(const QContactLocalId& contactId, QContactManager::Error& error); - QContactLocalId selfContactId(QContactManager::Error& error) const; + virtual bool setSelfContactId(const QContactLocalId& contactId, QContactManager::Error* error); + virtual QContactLocalId selfContactId(QContactManager::Error* error) const; - /* Contacts - Accessors and Mutators */ - QList Q_DECL_DEPRECATED contacts(const QList& sortOrders, QContactManager::Error& error) const; - QList Q_DECL_DEPRECATED saveContacts(QList* contacts, QContactManager::Error& error); - QList Q_DECL_DEPRECATED removeContacts(QList* contactIds, QContactManager::Error& error); - QContact Q_DECL_DEPRECATED contact(const QContactLocalId& contactId, QContactManager::Error& error) const; + /* Relationships between contacts */ + virtual QList relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) const; + virtual bool saveRelationships(QList* relationships, QMap* errorMap, QContactManager::Error* error); + virtual bool removeRelationships(const QList& relationships, QMap* errorMap, QContactManager::Error* error); - QList contactIds(const QList &sortOrders, QContactManager::Error &error) const; - QList contacts(const QList &sortOrders, const QStringList& definitionRestrictions, QContactManager::Error &error) const; - QContact contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error& error); - bool saveContact(QContact* contact, QContactManager::Error& error); - bool removeContacts(QList* contactIds, QMap* errorMap, QContactManager::Error& error); - bool removeContact(const QContactLocalId& contactId, QContactManager::Error& error); - - /* Relationships - Accessors and Mutators */ - QList relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationshipFilter::Role role, QContactManager::Error& error) const; - bool saveRelationship(QContactRelationship* relationship, QContactManager::Error& error); - QList saveRelationships(QList* relationships, QContactManager::Error& error); - bool removeRelationship(const QContactRelationship& relationship, QContactManager::Error& error); - QList removeRelationships(const QList& relationships, QContactManager::Error& error); + /*! \reimp */ + virtual bool validateContact(const QContact& contact, QContactManager::Error* error) const + { + return QContactManagerEngine::validateContact(contact, error); + } + /*! \reimp */ + virtual bool validateDefinition(const QContactDetailDefinition& def, QContactManager::Error* error) const + { + return QContactManagerEngine::validateDefinition(def, error); + } /* Definitions - Accessors and Mutators */ - QMap detailDefinitions(const QString& contactType, QContactManager::Error& error) const; - bool saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error& error); - bool removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error& error); + virtual QMap detailDefinitions(const QString& contactType, QContactManager::Error* error) const; + /*! \reimp */ + virtual QContactDetailDefinition detailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) const + { + return QContactManagerEngine::detailDefinition(definitionId, contactType, error); + } + virtual bool saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error* error); + virtual bool removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error); /* Asynchronous Request Support */ - void requestDestroyed(QContactAbstractRequest* req); - bool startRequest(QContactAbstractRequest* req); - bool cancelRequest(QContactAbstractRequest* req); - bool waitForRequestProgress(QContactAbstractRequest* req, int msecs); - bool waitForRequestFinished(QContactAbstractRequest* req, int msecs); + virtual void requestDestroyed(QContactAbstractRequest* req); + virtual bool startRequest(QContactAbstractRequest* req); + virtual bool cancelRequest(QContactAbstractRequest* req); + virtual bool waitForRequestFinished(QContactAbstractRequest* req, int msecs); /* Capabilities reporting */ - bool hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const; - QStringList supportedRelationshipTypes(const QString& contactType) const; - bool filterSupported(const QContactFilter& filter) const; - QList supportedDataTypes() const; - - /* Version Reporting */ - int implementationVersion() const; + virtual bool hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const; + virtual bool isRelationshipTypeSupported(const QString& relationshipType, const QString& contactType) const; + virtual bool isFilterSupported(const QContactFilter& filter) const; + virtual QList supportedDataTypes() const; + /*! \reimp */ + virtual QStringList supportedContactTypes() const + { + return QContactManagerEngine::supportedContactTypes(); + } protected: - QContactMemoryEngine(const QMap& parameters); - -private slots: - void performAsynchronousOperation(); + QContactMemoryEngine(QContactMemoryEngineData* data); private: /* Implement "signal coalescing" for batch functions via change set */ - bool saveContact(QContact* theContact, QContactChangeSet& changeSet, QContactManager::Error& error); - bool removeContact(const QContactLocalId& contactId, QContactChangeSet& changeSet, QContactManager::Error& error); - bool saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactChangeSet& changeSet, QContactManager::Error& error); - bool removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactChangeSet& changeSet, QContactManager::Error& error); - bool saveRelationship(QContactRelationship* relationship, QContactChangeSet& changeSet, QContactManager::Error& error); - bool removeRelationship(const QContactRelationship& relationship, QContactChangeSet& changeSet, QContactManager::Error& error); + bool saveContact(QContact* theContact, QContactChangeSet& changeSet, QContactManager::Error* error); + bool removeContact(const QContactLocalId& contactId, QContactChangeSet& changeSet, QContactManager::Error* error); + bool saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactChangeSet& changeSet, QContactManager::Error* error); + bool removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactChangeSet& changeSet, QContactManager::Error* error); + bool saveRelationship(QContactRelationship* relationship, QContactChangeSet& changeSet, QContactManager::Error* error); + bool removeRelationship(const QContactRelationship& relationship, QContactChangeSet& changeSet, QContactManager::Error* error); + + void performAsynchronousOperation(QContactAbstractRequest* request); QContactMemoryEngineData* d; - static QMap engines; + static QMap engineDatas; }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/filters/qcontactlocalidfilter.h --- a/qtmobility/src/contacts/filters/qcontactlocalidfilter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/filters/qcontactlocalidfilter.h Mon May 03 13:18:40 2010 +0300 @@ -43,6 +43,7 @@ #define QCONTACTLOCALIDFILTER_H #include "qcontactfilter.h" +#include "qcontactid.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/filters/qcontactrelationshipfilter.cpp --- a/qtmobility/src/contacts/filters/qcontactrelationshipfilter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/filters/qcontactrelationshipfilter.cpp Mon May 03 13:18:40 2010 +0300 @@ -80,14 +80,6 @@ Q_IMPLEMENT_CONTACTFILTER_PRIVATE(QContactRelationshipFilter) /*! - \enum QContactRelationshipFilter::Role - Describes the roles that a contact may take in a relationship - \value First The contact is the first contact in the relationship - \value Second The contact is the second contact in the relationship - \value Either The contact is either the first or second contact in the relationship - */ - -/*! \fn QContactRelationshipFilter::QContactRelationshipFilter(const QContactFilter& other) Constructs a copy of \a other if possible, else constructs a new QContactRelationshipFilter. */ @@ -139,7 +131,7 @@ /*! Sets the role in the relationship with the tested contact that the related contact must play in order for the tested contact to match this filter to be \a relatedContactRole */ -void QContactRelationshipFilter::setRelatedContactRole(QContactRelationshipFilter::Role relatedContactRole) +void QContactRelationshipFilter::setRelatedContactRole(QContactRelationship::Role relatedContactRole) { Q_D(QContactRelationshipFilter); d->m_relatedContactRole = relatedContactRole; @@ -148,73 +140,10 @@ /*! Returns the role in the relationship with the tested contact that the related contact must play in order for the tested contact to match this filter */ -QContactRelationshipFilter::Role QContactRelationshipFilter::relatedContactRole() const +QContactRelationship::Role QContactRelationshipFilter::relatedContactRole() const { Q_D(const QContactRelationshipFilter); return d->m_relatedContactRole; } -/*! - \internal - Sets the role in the relationship that a contact must be in order to match this filter to \a roleInRelationship - - This function has been deprecated - you should pass the opposite value (e.g. First instead of Second, Second - instead of First) to \c setRelatedContactRole(). - \sa setRelatedContactRole() - */ -void QContactRelationshipFilter::setRole(QContactRelationshipFilter::Role roleInRelationship) -{ - Q_D(QContactRelationshipFilter); - switch(roleInRelationship) { - case QContactRelationshipFilter::Either: - d->m_relatedContactRole = QContactRelationshipFilter::Either; - break; - case QContactRelationshipFilter::First: - d->m_relatedContactRole = QContactRelationshipFilter::Second; - break; - case QContactRelationshipFilter::Second: - d->m_relatedContactRole = QContactRelationshipFilter::First; - break; - } -} - -/*! - \internal - Sets the contact id of the other participant which must be present in the relationship with the contact - in order for the contact to match the filter to be \a id - */ -void QContactRelationshipFilter::setOtherParticipantId(const QContactId& id) -{ - Q_D(QContactRelationshipFilter); - d->m_relatedContactId = id; -} - -/*! - \internal - Returns the role that a contact must have in a relationship in order to match the filter - */ -QContactRelationshipFilter::Role QContactRelationshipFilter::role() const -{ - Q_D(const QContactRelationshipFilter); - switch(d->m_relatedContactRole) { - case QContactRelationshipFilter::First: - return QContactRelationshipFilter::Second; - case QContactRelationshipFilter::Second: - return QContactRelationshipFilter::First; - case QContactRelationshipFilter::Either: - default: - return QContactRelationshipFilter::Either; - } -} - -/*! - \internal - Returns the id of another contact with whom a contact must have a relationship in order to match the filter - */ -QContactId QContactRelationshipFilter::otherParticipantId() const -{ - Q_D(const QContactRelationshipFilter); - return d->m_relatedContactId; -} - QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/filters/qcontactrelationshipfilter.h --- a/qtmobility/src/contacts/filters/qcontactrelationshipfilter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/filters/qcontactrelationshipfilter.h Mon May 03 13:18:40 2010 +0300 @@ -45,6 +45,7 @@ #include "qtcontactsglobal.h" #include "qcontactfilter.h" #include "qcontactid.h" +#include "qcontactrelationship.h" #include #include @@ -60,25 +61,14 @@ QContactRelationshipFilter(); QContactRelationshipFilter(const QContactFilter& other); - enum Role { - First = 0, - Second, - Either - }; - void setRelationshipType(const QString& relationshipType); void setRelatedContactId(const QContactId& relatedContactId); - void setRelatedContactRole(QContactRelationshipFilter::Role relatedContactRole); + void setRelatedContactRole(QContactRelationship::Role relatedContactRole); QString relationshipType() const; QContactId relatedContactId() const; - QContactRelationshipFilter::Role relatedContactRole() const; + QContactRelationship::Role relatedContactRole() const; - // deprecated and will be removed after transition period has elapsed. replaced by setRelatedContactRole / setRelatedContactId. - void Q_DECL_DEPRECATED setRole(QContactRelationshipFilter::Role roleInRelationship); - void Q_DECL_DEPRECATED setOtherParticipantId(const QContactId& contactId); - QContactRelationshipFilter::Role Q_DECL_DEPRECATED role() const; - QContactId Q_DECL_DEPRECATED otherParticipantId() const; private: Q_DECLARE_CONTACTFILTER_PRIVATE(QContactRelationshipFilter) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/filters/qcontactrelationshipfilter_p.h --- a/qtmobility/src/contacts/filters/qcontactrelationshipfilter_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/filters/qcontactrelationshipfilter_p.h Mon May 03 13:18:40 2010 +0300 @@ -56,6 +56,7 @@ #include "qcontactfilter_p.h" #include "qcontactfilter.h" #include "qcontactid.h" +#include "qcontactrelationship.h" #include "qcontactrelationshipfilter.h" @@ -70,7 +71,7 @@ public: QContactRelationshipFilterPrivate() : QContactFilterPrivate(), - m_relatedContactRole(QContactRelationshipFilter::Either) + m_relatedContactRole(QContactRelationship::Either) { } @@ -98,7 +99,7 @@ QString m_relationshipType; QContactId m_relatedContactId; - QContactRelationshipFilter::Role m_relatedContactRole; + QContactRelationship::Role m_relatedContactRole; }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontact.cpp --- a/qtmobility/src/contacts/qcontact.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontact.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,6 +40,7 @@ ****************************************************************************/ #include +#include #include "qcontact.h" #include "qcontact_p.h" @@ -52,7 +53,7 @@ /*! \class QContact - \brief The QContact class provides an addressbook contact. + \brief The QContact class represents an addressbook contact. \ingroup contacts-main @@ -60,7 +61,7 @@ An instance of the QContact class represents an in-memory contact, and may not reflect the state of that contact found in persistent - storage until the appropriate synchronisation method is called + storage until the appropriate synchronization method is called on the QContactManager (i.e., saveContact, removeContact). \sa QContactManager, QContactDetail @@ -233,10 +234,13 @@ /*! Returns the first detail stored in the contact which is of the given \a definitionName */ QContactDetail QContact::detail(const QString& definitionName) const { + if (definitionName.isEmpty()) + return d->m_details.first(); + // build the sub-list of matching details. for (int i = 0; i < d->m_details.size(); i++) { const QContactDetail& existing = d->m_details.at(i); - if (definitionName.isEmpty() || definitionName == existing.definitionName()) { + if (QContactDetailPrivate::detailPrivate(existing)->m_definitionName == definitionName) { return existing; } } @@ -256,7 +260,7 @@ } else { for (int i = 0; i < d->m_details.size(); i++) { const QContactDetail& existing = d->m_details.at(i); - if (definitionName == existing.definitionName()) { + if (QContactDetailPrivate::detailPrivate(existing)->m_definitionName == definitionName) { sublist.append(existing); } } @@ -277,7 +281,68 @@ } else { for (int i = 0; i < d->m_details.size(); i++) { const QContactDetail& existing = d->m_details.at(i); - if (definitionName == existing.definitionName() && existing.hasValue(fieldName) && value == existing.value(fieldName)) { + if (QContactDetailPrivate::detailPrivate(existing)->m_definitionName == definitionName + && existing.hasValue(fieldName) && value == existing.value(fieldName)) { + sublist.append(existing); + } + } + } + + return sublist; +} + +/*! Returns the first detail stored in the contact which is of the given \a definitionName */ +QContactDetail QContact::detail(const char* definitionName) const +{ + if (definitionName == 0) + return d->m_details.first(); + + // build the sub-list of matching details. + for (int i = 0; i < d->m_details.size(); i++) { + const QContactDetail& existing = d->m_details.at(i); + if (QContactDetailPrivate::detailPrivate(existing)->m_definitionName == definitionName) { + return existing; + } + } + + return QContactDetail(); +} + +/*! Returns a list of details of the given \a definitionName */ +QList QContact::details(const char* definitionName) const +{ + // build the sub-list of matching details. + QList sublist; + + // special case + if (definitionName == 0) { + sublist = d->m_details; + } else { + for (int i = 0; i < d->m_details.size(); i++) { + const QContactDetail& existing = d->m_details.at(i); + if (QContactDetailPrivate::detailPrivate(existing)->m_definitionName == definitionName) { + sublist.append(existing); + } + } + } + + return sublist; +} + +/*! Returns a list of details of the given \a definitionName, \a fieldName and field \a value*/ +QList QContact::details(const char* definitionName, const char* fieldName, const QString& value) const +{ + // build the sub-list of matching details. + QList sublist; + + // special case + if (fieldName == 0) { + sublist = details(definitionName); + } else { + for (int i = 0; i < d->m_details.size(); i++) { + const QContactDetail& existing = d->m_details.at(i); + if (QContactDetailPrivate::detailPrivate(existing)->m_definitionName == definitionName + && existing.hasValue(fieldName) && value == existing.value(fieldName)) { sublist.append(existing); } } @@ -317,14 +382,14 @@ return false; /* Also handle contact type specially - only one of them. */ - if (detail->definitionName() == QContactType::DefinitionName) { + if (QContactDetailPrivate::detailPrivate(*detail)->m_definitionName == QContactType::DefinitionName.latin1()) { detail->d->m_access = QContactDetail::Irremovable; d->m_details[1] = *detail; return true; } /* And display label.. */ - if (detail->definitionName() == QContactDisplayLabel::DefinitionName) { + if (QContactDetailPrivate::detailPrivate(*detail)->m_definitionName == QContactDisplayLabel::DefinitionName.latin1()) { detail->d->m_access = QContactDetail::Irremovable | QContactDetail::ReadOnly; return false; } @@ -406,6 +471,24 @@ other.d->m_details == d->m_details; } +/*! Returns the hash value for \a key. */ +uint qHash(const QContact &key) +{ + uint hash = qHash(key.id()); + foreach (const QContactDetail& detail, key.details()) { + hash += qHash(detail); + } + return hash; +} + +QDebug operator<<(QDebug dbg, const QContact& contact) +{ + dbg.nospace() << "QContact(" << contact.id() << ")"; + foreach (const QContactDetail& detail, contact.details()) { + dbg.space() << '\n' << detail; + } + return dbg.maybeSpace(); +} /*! Retrieve the first detail for which the given \a actionName is available */ QContactDetail QContact::detailWithAction(const QString& actionName) const @@ -434,7 +517,7 @@ QContactAction *currImpl = QContactManagerData::action(descriptors.at(i)); for (int i = 0; i < d->m_details.size(); i++) { QContactDetail detail = d->m_details.at(i); - if (currImpl->supportsDetail(detail)) { + if (currImpl->isDetailSupported(detail, *this)) { retn.append(detail); break; } @@ -470,75 +553,44 @@ } /*! - * \preliminary - * Returns a list of ids of contacts which are related to this contact in a relationship of the - * given \a relationshipType, where those other contacts participate in the relationship in the - * given \a role + Returns a list of ids of contacts which are related to this contact in a relationship of the + given \a relationshipType, where those other contacts participate in the relationship in the + given \a role. */ -QList QContact::relatedContacts(const QString& relationshipType, QContactRelationshipFilter::Role role) const +QList QContact::relatedContacts(const QString& relationshipType, QContactRelationship::Role role) const { QList retn; for (int i = 0; i < d->m_relationshipsCache.size(); i++) { QContactRelationship curr = d->m_relationshipsCache.at(i); - if (curr.relationshipType() == relationshipType || relationshipType.isEmpty()) { + if (relationshipType.isEmpty() || curr.relationshipType() == relationshipType) { // check that the other contacts fill the given role - if (role == QContactRelationshipFilter::First) { + if (role == QContactRelationship::First) { if (curr.first() != d->m_id) { - retn.append(curr.first()); + if (!retn.contains(curr.first())) { + retn.append(curr.first()); + } } - } else if (role == QContactRelationshipFilter::Second) { + } else if (role == QContactRelationship::Second) { if (curr.first() == d->m_id) { - retn.append(curr.second()); + if (!retn.contains(curr.second())) { + retn.append(curr.second()); + } } } else { // role == Either. if (curr.first() == d->m_id) { - retn.append(curr.second()); + if (!retn.contains(curr.second())) { + retn.append(curr.second()); + } } else { - retn.append(curr.first()); + if (!retn.contains(curr.first())) { + retn.append(curr.first()); + } } } } } - QList removeDuplicates; - for (int i = 0; i < retn.size(); i++) { - QContactId curr = retn.at(i); - if (!removeDuplicates.contains(curr)) { - removeDuplicates.append(curr); - } - } - - return removeDuplicates; -} - -/*! - * \preliminary - * Sets the order of importance of the relationships for this contact by saving a \a reordered list of relationships which involve the contact. - * The list must include all of the relationships in which the contact is involved, and must not include any relationships which do - * not involve the contact. In order for the ordering preference to be persisted, the contact must be saved in its manager. - * - * It is possible that relationships will have been added or removed from the contact stored in the manager, - * thus rendering the relationship cache of the contact in memory stale. If this happens, attempting to save the contact after reordering - * its relationships will result in an error occurring. The updated relationships list must be retrieved from the manager, reordered and set - * in the contact before the contact can be saved successfully. - * - * \sa relationships(), relationshipOrder() - */ -void QContact::setRelationshipOrder(const QList& reordered) -{ - d->m_reorderedRelationshipsCache = reordered; -} - -/*! - * \preliminary - * Returns the ordered list of relationships in which the contact is involved. By default, this list is equal to the cached - * list of relationships which is available by calling relationships(). - * - * \sa setRelationshipOrder() - */ -QList QContact::relationshipOrder() const -{ - return d->m_reorderedRelationshipsCache; + return retn; } /*! @@ -573,8 +625,10 @@ /*! * \preliminary * Set a particular detail as the \a preferredDetail for a given \a actionName. Returns - * true if the detail was successfully set as the preferred detail for the action - * identified by \a actionName, otherwise returns false + * true if the detail exists in the contact and was successfully set as the preferred detail for the action + * identified by \a actionName, otherwise returns false. + * Note that since QContact is a value class, no error checking is done on the action name + * (to ensure that an action of that name is available) in this function. */ bool QContact::setPreferredDetail(const QString& actionName, const QContactDetail& preferredDetail) { @@ -638,4 +692,22 @@ return retn; } + + +/*! + * \preliminary + * Returns a map of action name to the preferred detail for the action of that name. + */ +QMap QContact::preferredDetails() const +{ + QMap ret; + QMap::const_iterator it = d->m_preferences.constBegin(); + while (it != d->m_preferences.constEnd()) { + ret.insert(it.key(), d->m_details.at(it.value())); + ++it; + } + + return ret; +} + QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontact.h --- a/qtmobility/src/contacts/qcontact.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontact.h Mon May 03 13:18:40 2010 +0300 @@ -101,16 +101,36 @@ QContactDetail detailWithAction(const QString& actionName) const; QList detailsWithAction(const QString& actionName) const; + QList details(const QString& definitionName, const QString& fieldName, const QString& value) const; + + QContactDetail detail(const char* definitionId) const; + QList details(const char* definitionId) const; + QList details(const char* definitionId, const char* fieldName, const QString& value) const; + + /* Templated retrieval for definition names */ + template QContactDetail detail(const QLatin1Constant& definitionName) const + { + return detail(definitionName.latin1()); + } + template QList details(const QLatin1Constant& definitionName) const + { + return details(definitionName.latin1()); + } + template QList details(const QLatin1Constant& definitionName, const QLatin1Constant& fieldName, const QString& value) + { + return details(definitionName.latin1(), fieldName.latin1(), value); + } + /* Templated (type-specific) detail retrieval */ template QList details() const { - QList props = details(T::DefinitionName); + QList props = details(T::DefinitionName.latin1()); QList ret; foreach(QContactDetail prop, props) ret.append(T(prop)); return ret; } - + /* Templated (type-specific) detail retrieval base on given detail field name and field value */ template QList details(const QString& fieldName, const QString& value) const { @@ -120,13 +140,19 @@ ret.append(T(prop)); return ret; } - - /* Detail retrieval base on given detail definition name, field name and field value */ - QList details(const QString& definitionName, const QString& fieldName, const QString& value) const; + + template QList details(const char* fieldName, const QString& value) const + { + QList props = details(T::DefinitionName.latin1(), fieldName, value); + QList ret; + foreach(QContactDetail prop, props) + ret.append(T(prop)); + return ret; + } template T detail() const { - return T(detail(T::DefinitionName)); + return T(detail(T::DefinitionName.latin1())); } /* generic detail addition/removal functions */ @@ -135,9 +161,7 @@ /* Relationships that this contact was involved in when it was retrieved from the manager */ QList relationships(const QString& relationshipType = QString()) const; - QList relatedContacts(const QString& relationshipType = QString(), QContactRelationshipFilter::Role role = QContactRelationshipFilter::Either) const; - void setRelationshipOrder(const QList& reordered); - QList relationshipOrder() const; + QList relatedContacts(const QString& relationshipType = QString(), QContactRelationship::Role role = QContactRelationship::Either) const; /* Actions available to be performed on this contact */ QList availableActions(const QString& vendorName = QString(), int implementationVersion = -1) const; @@ -146,6 +170,7 @@ bool setPreferredDetail(const QString& actionName, const QContactDetail& preferredDetail); bool isPreferredDetail(const QString& actionName, const QContactDetail& detail) const; QContactDetail preferredDetail(const QString& actionName) const; + QMap preferredDetails() const; private: friend class QContactManager; @@ -155,6 +180,11 @@ QSharedDataPointer d; }; +Q_CONTACTS_EXPORT uint qHash(const QContact& key); +#ifndef QT_NO_DEBUG_STREAM +Q_CONTACTS_EXPORT QDebug operator<<(QDebug dbg, const QContact& contact); +#endif + QTM_END_NAMESPACE Q_DECLARE_TYPEINFO(QTM_PREPEND_NAMESPACE(QContact), Q_MOVABLE_TYPE); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactabstractrequest.cpp --- a/qtmobility/src/contacts/qcontactabstractrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactabstractrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -105,7 +105,10 @@ Constructs a new, invalid asynchronous request */ -/*! Constructs a new request from the given request data \a otherd */ +/*! + \internal + Constructs a new request from the given request data \a otherd +*/ QContactAbstractRequest::QContactAbstractRequest(QContactAbstractRequestPrivate* otherd) : d_ptr(otherd) { @@ -171,15 +174,6 @@ } /*! - \internal - Returns the list of errors which occurred during the most recent asynchronous operation. Each individual error in the list corresponds to a result in the result list. - */ -QList QContactAbstractRequest::errors() const -{ - return QList(); -} - -/*! Returns the type of this asynchronous request */ QContactAbstractRequest::RequestType QContactAbstractRequest::type() const diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactabstractrequest.h --- a/qtmobility/src/contacts/qcontactabstractrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactabstractrequest.h Mon May 03 13:18:40 2010 +0300 @@ -55,9 +55,8 @@ public: QContactAbstractRequest() {} - virtual ~QContactAbstractRequest(); + ~QContactAbstractRequest(); - QList Q_DECL_DEPRECATED errors() const; // deprecated, removed in week 3. see leaf classes for detailed error reporting. enum State { InactiveState = 0, // operation not yet started ActiveState, // operation started, not yet finished diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactaction.cpp --- a/qtmobility/src/contacts/qcontactaction.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactaction.cpp Mon May 03 13:18:40 2010 +0300 @@ -57,6 +57,7 @@ \brief The QContactAction class provides an interface for performing an action on a QContact or QContactDetail. \ingroup contacts-main + \ingroup contacts-actions An action is anything that can be performed on a contact, or a detail of a contact. An example of an action might be "Send Email" or "Dial" or "Plot Navigation Route". One action may be @@ -122,7 +123,7 @@ QList ret; QList details = contact.details(); for (int j=0; j < details.count(); j++) { - if (supportsDetail(details.at(j))) + if (isDetailSupported(details.at(j), contact)) ret.append(details.at(j)); } return ret; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactaction.h --- a/qtmobility/src/contacts/qcontactaction.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactaction.h Mon May 03 13:18:40 2010 +0300 @@ -76,26 +76,29 @@ virtual QVariantMap metaData() const = 0; // label, icon etc - under discussion! - replaces the above virtual QContactFilter contactFilter(const QVariant& value = QVariant()) const = 0; // use for matching - virtual bool supportsDetail(const QContactDetail& detail) const = 0; // whether this implementation supports the given detail - virtual QList supportedDetails(const QContact& contact) const; + virtual bool isDetailSupported(const QContactDetail &detail, const QContact &contact = QContact()) const = 0; + virtual QList supportedDetails(const QContact& contact) const = 0; /* Initiate the asynchronous action on the given contact (and optionally detail) */ - virtual void invokeAction(const QContact& contact, const QContactDetail& detail = QContactDetail()) = 0; + virtual bool invokeAction(const QContact& contact, const QContactDetail& detail = QContactDetail(), const QVariantMap& parameters = QVariantMap()) = 0; /* The possible states of an action */ enum State { InactiveState = 0, // operation not yet started - AutonomousState, // operation started, no further information available - name under discussion. ActiveState, // operation started, not yet finished FinishedState, // operation successfully completed + FinishedDetachedState, // operation started, no further information available - name under discussion. FinishedWithErrorState // operation finished, but error occurred }; - /* Returns the most recently received result, or an invalid QVariantMap if no results received */ - virtual QVariantMap result() const = 0; + virtual State state() const = 0; + + /* Returns the most recently received result, or an empty QVariantMap if no results received */ + virtual QVariantMap results() const = 0; Q_SIGNALS: - void progress(QContactAction::State state, const QVariantMap& result); + void stateChanged(QContactAction::State); + void resultsAvailable(); }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactactiondescriptor.cpp --- a/qtmobility/src/contacts/qcontactactiondescriptor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactactiondescriptor.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,7 @@ #include "qcontactactiondescriptor.h" #include "qcontactactiondescriptor_p.h" +#include QTM_BEGIN_NAMESPACE @@ -48,6 +49,7 @@ \class QContactActionDescriptor \brief The QContactActionDescriptor class provides information that uniquely identifies a specific implementation of an action + \ingroup contacts-actions */ /*! @@ -166,4 +168,28 @@ return !(*this == other); } +/*! + * Returns true if the action descriptor is less than the \a other action descriptor. The + * comparison is performed first on the vendor name, then the action name, then the implementation + * version. + */ +bool QContactActionDescriptor::operator<(const QContactActionDescriptor& other) const +{ + int comp = d->m_vendorName.compare(other.d->m_vendorName); + if (comp != 0) + return comp < 0; + comp = d->m_actionName.compare(other.d->m_actionName); + if (comp != 0) + return comp < 0; + return d->m_implementationVersion < other.d->m_implementationVersion; +} + +/*! Returns the hash value for \a key. */ +uint qHash(const QContactActionDescriptor& key) +{ + return QT_PREPEND_NAMESPACE(qHash)(key.vendorName()) + + QT_PREPEND_NAMESPACE(qHash)(key.actionName()) + + QT_PREPEND_NAMESPACE(qHash)(key.implementationVersion()); +} + QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactactiondescriptor.h --- a/qtmobility/src/contacts/qcontactactiondescriptor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactactiondescriptor.h Mon May 03 13:18:40 2010 +0300 @@ -53,7 +53,7 @@ class Q_CONTACTS_EXPORT QContactActionDescriptor { public: - QContactActionDescriptor(const QString& actionName = QString(), const QString& vendorName = QString(), int vendorVersion = -1); + explicit QContactActionDescriptor(const QString& actionName = QString(), const QString& vendorName = QString(), int vendorVersion = -1); QContactActionDescriptor(const QContactActionDescriptor& other); QContactActionDescriptor& operator=(const QContactActionDescriptor& other); ~QContactActionDescriptor(); @@ -61,6 +61,7 @@ bool isEmpty() const; bool operator==(const QContactActionDescriptor& other) const; bool operator!=(const QContactActionDescriptor& other) const; + bool operator<(const QContactActionDescriptor& other) const; void setActionName(const QString& actionName); void setVendorName(const QString& vendorName); @@ -74,6 +75,8 @@ QSharedDataPointer d; }; +Q_CONTACTS_EXPORT uint qHash(const QContactActionDescriptor& key); + QTM_END_NAMESPACE Q_DECLARE_TYPEINFO(QTM_PREPEND_NAMESPACE(QContactActionDescriptor), Q_MOVABLE_TYPE); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactactionfactory.cpp --- a/qtmobility/src/contacts/qcontactactionfactory.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactactionfactory.cpp Mon May 03 13:18:40 2010 +0300 @@ -47,17 +47,13 @@ \class QContactActionFactory \brief The QContactActionFactory class provides an interface for clients to retrieve instances of action implementations + \ingroup contacts-actions */ QContactActionFactory::~QContactActionFactory() { } -uint qHash(const QContactActionDescriptor& ad) -{ - return qHash(ad.actionName()) + qHash(ad.vendorName()) + ad.implementationVersion(); -} - /*! * \fn QContactActionFactory::~QContactActionFactory() * Clears any memory in use by this factory diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactactionfactory.h --- a/qtmobility/src/contacts/qcontactactionfactory.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactactionfactory.h Mon May 03 13:18:40 2010 +0300 @@ -69,8 +69,6 @@ virtual QVariantMap actionMetadata(const QContactActionDescriptor& descriptor) const = 0; }; -uint qHash(const QContactActionDescriptor& ad); - QTM_END_NAMESPACE QT_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactchangeset.cpp --- a/qtmobility/src/contacts/qcontactchangeset.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactchangeset.cpp Mon May 03 13:18:40 2010 +0300 @@ -113,59 +113,207 @@ } /*! - Returns a reference to the set of ids of contacts which have been added to + Returns the set of ids of contacts which have been added to the database. */ -QSet& QContactChangeSet::addedContacts() +QSet QContactChangeSet::addedContacts() const { return d->m_addedContacts; } /*! - Returns a reference to the set of ids of contacts which have been changed in + Inserts the given contact id \a addedContactId into the set of ids of contacts + which have been added to the database. + */ +void QContactChangeSet::insertAddedContact(QContactLocalId addedContactId) +{ + d->m_addedContacts.insert(addedContactId); +} + +/*! + Inserts each of the given contact ids \a addedContactIds into the set of ids of contacts + which have been added to the database. + */ +void QContactChangeSet::insertAddedContacts(const QList& addedContactIds) +{ + foreach (const QContactLocalId& id, addedContactIds) + d->m_addedContacts.insert(id); +} + +/*! + Clears the set of ids of contacts which have been added to the database + */ +void QContactChangeSet::clearAddedContacts() +{ + d->m_addedContacts.clear(); +} + +/*! + Returns the set of ids of contacts which have been changed in the database. */ -QSet& QContactChangeSet::changedContacts() +QSet QContactChangeSet::changedContacts() const { return d->m_changedContacts; } /*! - Returns a reference to the set of ids of contacts which have been removed from + Inserts the given contact id \a changedContactId into the set of ids of contacts + which have been changed to the database. + */ +void QContactChangeSet::insertChangedContact(QContactLocalId changedContactId) +{ + d->m_changedContacts.insert(changedContactId); +} + +/*! + Inserts each of the given contact ids \a changedContactIds into the set of ids of contacts + which have been changed to the database. + */ +void QContactChangeSet::insertChangedContacts(const QList& changedContactIds) +{ + foreach (const QContactLocalId& id, changedContactIds) + d->m_changedContacts.insert(id); +} + +/*! + Clears the set of ids of contacts which have been changed to the database + */ +void QContactChangeSet::clearChangedContacts() +{ + d->m_changedContacts.clear(); +} + +/*! + Returns the set of ids of contacts which have been removed from the database. */ -QSet& QContactChangeSet::removedContacts() +QSet QContactChangeSet::removedContacts() const { return d->m_removedContacts; } /*! - Returns a reference to the set of ids of contacts which have been affected + Inserts the given contact id \a removedContactId into the set of ids of contacts + which have been removed to the database. + */ +void QContactChangeSet::insertRemovedContact(QContactLocalId removedContactId) +{ + d->m_removedContacts.insert(removedContactId); +} + +/*! + Inserts each of the given contact ids \a removedContactIds into the set of ids of contacts + which have been removed to the database. + */ +void QContactChangeSet::insertRemovedContacts(const QList& removedContactIds) +{ + foreach (const QContactLocalId& id, removedContactIds) + d->m_removedContacts.insert(id); +} + +/*! + Clears the set of ids of contacts which have been removed to the database + */ +void QContactChangeSet::clearRemovedContacts() +{ + d->m_removedContacts.clear(); +} + +/*! + Returns the set of ids of contacts which have been affected by the addition of relationships to the database. */ -QSet& QContactChangeSet::addedRelationshipsContacts() +QSet QContactChangeSet::addedRelationshipsContacts() const { return d->m_addedRelationships; } /*! - Returns a reference to the set of ids of contacts which have been affected + Inserts the given contact id \a affectedContactId into the set of ids of contacts + which have been affected by the addition of a relationship to the database. + */ +void QContactChangeSet::insertAddedRelationshipsContact(QContactLocalId affectedContactId) +{ + d->m_addedRelationships.insert(affectedContactId); +} + +/*! + Inserts each of the given contact ids \a affectedContactIds into the set of ids of contacts + which have been affected by the addition of a relationship to the database. + */ +void QContactChangeSet::insertAddedRelationshipsContacts(const QList& affectedContactIds) +{ + foreach (const QContactLocalId& id, affectedContactIds) + d->m_addedRelationships.insert(id); +} + +/*! + Clears the set of ids of contacts which have been affected by the addition of a relationship to the database. + */ +void QContactChangeSet::clearAddedRelationshipsContacts() +{ + d->m_addedRelationships.clear(); +} + +/*! + Returns the set of ids of contacts which have been affected by the removal of relationships from the database. */ -QSet& QContactChangeSet::removedRelationshipsContacts() +QSet QContactChangeSet::removedRelationshipsContacts() const { return d->m_removedRelationships; } /*! - Returns a reference to the pair of ids which represents the + Inserts the given contact id \a affectedContactId into the set of ids of contacts + which have been affected by the removal of a relationship to the database. + */ +void QContactChangeSet::insertRemovedRelationshipsContact(QContactLocalId affectedContactId) +{ + d->m_removedRelationships.insert(affectedContactId); +} + +/*! + Inserts each of the given contact ids \a affectedContactIds into the set of ids of contacts + which have been affected by the removal of a relationship to the database. + */ +void QContactChangeSet::insertRemovedRelationshipsContacts(const QList& affectedContactIds) +{ + foreach (const QContactLocalId& id, affectedContactIds) + d->m_removedRelationships.insert(id); +} + +/*! + Clears the set of ids of contacts which have been affected by the removal of a relationship to the database. + */ +void QContactChangeSet::clearRemovedRelationshipsContacts() +{ + d->m_removedRelationships.clear(); +} + +/*! + Sets the pair of ids which represent the old and new self contact ids + to the given pair of ids \a oldAndNewContactId. + The first id in the pair is the old self contact id, while the second + id in the pair is the new self contact id. If the new id is different + to the old id at the point in time when emitSignals() is called, + the QContactManagerEngine::selfContactIdChanged signal will be emitted. + */ +void QContactChangeSet::setOldAndNewSelfContactId(const QPair &oldAndNewContactId) +{ + d->m_oldAndNewSelfContactId = oldAndNewContactId; +} + +/*! + Returns the pair of ids which represents the old and new self contact ids. The first id in the pair is the old self contact id, while the second id in the pair is the new self contact id. If the new id is different to the old id at the point in time when emitSignals() is called, the QContactManagerEngine::selfContactIdChanged() signal will be emitted. */ -QPair& QContactChangeSet::oldAndNewSelfContactId() +QPair QContactChangeSet::oldAndNewSelfContactId() const { return d->m_oldAndNewSelfContactId; } @@ -173,7 +321,7 @@ /*! Clears all flags and sets of ids in this change set */ -void QContactChangeSet::clear() +void QContactChangeSet::clearAll() { d->m_dataChanged = false; d->m_addedContacts.clear(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactchangeset.h --- a/qtmobility/src/contacts/qcontactchangeset.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactchangeset.h Mon May 03 13:18:40 2010 +0300 @@ -44,6 +44,7 @@ #define QCONTACTCHANGESET_H #include "qtcontactsglobal.h" +#include "qcontactid.h" #include #include @@ -65,14 +66,35 @@ void setDataChanged(bool dataChanged); bool dataChanged(); - QSet& addedContacts(); - QSet& changedContacts(); - QSet& removedContacts(); - QSet& addedRelationshipsContacts(); - QSet& removedRelationshipsContacts(); - QPair& oldAndNewSelfContactId(); + QSet addedContacts() const; + void insertAddedContact(QContactLocalId addedContactId); + void insertAddedContacts(const QList& addedContactIds); + void clearAddedContacts(); + + QSet changedContacts() const; + void insertChangedContact(QContactLocalId addedContactId); + void insertChangedContacts(const QList& addedContactIds); + void clearChangedContacts(); + + QSet removedContacts() const; + void insertRemovedContact(QContactLocalId addedContactId); + void insertRemovedContacts(const QList& addedContactIds); + void clearRemovedContacts(); - void clear(); + QSet addedRelationshipsContacts() const; + void insertAddedRelationshipsContact(QContactLocalId affectedContactId); + void insertAddedRelationshipsContacts(const QList& affectedContactIds); + void clearAddedRelationshipsContacts(); + + QSet removedRelationshipsContacts() const; + void insertRemovedRelationshipsContact(QContactLocalId affectedContactId); + void insertRemovedRelationshipsContacts(const QList& affectedContactIds); + void clearRemovedRelationshipsContacts(); + + void setOldAndNewSelfContactId(const QPair& oldAndNewContactId); + QPair oldAndNewSelfContactId() const; + + void clearAll(); void emitSignals(QContactManagerEngine *engine); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactdetail.cpp --- a/qtmobility/src/contacts/qcontactdetail.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactdetail.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,6 +42,7 @@ #include "qcontactdetail.h" #include "qcontactdetail_p.h" #include "qcontactmanager.h" +#include QTM_BEGIN_NAMESPACE @@ -49,17 +50,52 @@ QAtomicInt QContactDetailPrivate::lastDetailKey(1); /* Definitions of predefined string constants */ -Q_DEFINE_LATIN1_LITERAL(QContactDetail::FieldDetailUri, "DetailUri"); -Q_DEFINE_LATIN1_LITERAL(QContactDetail::FieldLinkedDetailUris, "LinkedDetailUris"); -Q_DEFINE_LATIN1_LITERAL(QContactDetail::FieldContext, "Context"); -Q_DEFINE_LATIN1_LITERAL(QContactDetail::ContextOther, "Other"); -Q_DEFINE_LATIN1_LITERAL(QContactDetail::ContextHome, "Home"); -Q_DEFINE_LATIN1_LITERAL(QContactDetail::ContextWork, "Work"); +Q_DEFINE_LATIN1_CONSTANT(QContactDetail::FieldDetailUri, "DetailUri"); +Q_DEFINE_LATIN1_CONSTANT(QContactDetail::FieldLinkedDetailUris, "LinkedDetailUris"); +Q_DEFINE_LATIN1_CONSTANT(QContactDetail::FieldContext, "Context"); +Q_DEFINE_LATIN1_CONSTANT(QContactDetail::ContextOther, "Other"); +Q_DEFINE_LATIN1_CONSTANT(QContactDetail::ContextHome, "Home"); +Q_DEFINE_LATIN1_CONSTANT(QContactDetail::ContextWork, "Work"); + +static uint qHash(const QContactStringHolder& holder) +{ + if (!holder.m_str) + return 0; + uint h = 0; + uint g; + const register uchar*p = (const uchar*)holder.m_str; + + while (*p) { + h = (h << 4) + *p++; + if ((g = (h & 0xf0000000)) != 0) + h ^= g >> 23; + h &= ~g; + } + return h; +} + +/* Storage */ +QHash QContactStringHolder::s_allocated; +QHash QContactStringHolder::s_qstrings; + +/* Dtor function */ +static int qClearAllocatedStringHash() +{ + QHash::const_iterator it = QContactStringHolder::s_allocated.constBegin(); + while (it != QContactStringHolder::s_allocated.constEnd()) { + delete[] it.value(); + it++; + } + QContactStringHolder::s_allocated.clear(); + QContactStringHolder::s_qstrings.clear(); + return 1; +} +Q_DESTRUCTOR_FUNCTION(qClearAllocatedStringHash); /*! \class QContactDetail - \brief The QContactDetail class provides access to a single, complete detail about a contact. + \brief The QContactDetail class represents a single, complete detail about a contact. \ingroup contacts-main All of the information for a contact is stored in one or more QContactDetail objects. @@ -158,8 +194,18 @@ { } +/*! + Constructs a new, empty detail of the definition identified by \a thisDefinitionId. + The definitionId must be restricted to the Latin 1 character set. + */ +QContactDetail::QContactDetail(const QString& thisDefinitionId) + : d(new QContactDetailPrivate) +{ + d->m_definitionName = thisDefinitionId; +} + /*! Constructs a new, empty detail of the definition identified by \a thisDefinitionId */ -QContactDetail::QContactDetail(const QString& thisDefinitionId) +QContactDetail::QContactDetail(const char* thisDefinitionId) : d(new QContactDetailPrivate) { d->m_definitionName = thisDefinitionId; @@ -171,10 +217,29 @@ { } -/*! Constructs a detail that is a copy of \a other if \a other is of the expected definition identified by \a expectedDefinitionId, else constructs a new, empty detail of the definition identified by the \a expectedDefinitionId */ +/*! + Constructs a detail that is a copy of \a other if \a other is of the expected definition + identified by \a expectedDefinitionId, else constructs a new, empty detail of the + definition identified by the \a expectedDefinitionId +*/ +QContactDetail::QContactDetail(const QContactDetail& other, const char* expectedDefinitionId) +{ + if (other.d->m_definitionName == expectedDefinitionId) { + d = other.d; + } else { + d = new QContactDetailPrivate; + d->m_definitionName = expectedDefinitionId; + } +} + +/*! + Constructs a detail that is a copy of \a other if \a other is of the expected definition + identified by \a expectedDefinitionId, else constructs a new, empty detail of the + definition identified by the \a expectedDefinitionId +*/ QContactDetail::QContactDetail(const QContactDetail& other, const QString& expectedDefinitionId) { - if (other.definitionName() == expectedDefinitionId) { + if (other.d->m_definitionName == expectedDefinitionId) { d = other.d; } else { d = new QContactDetailPrivate; @@ -190,11 +255,33 @@ return *this; } -/*! Assigns this detail to \a other if the definition of \a other is that identified by the given \a expectedDefinitionId, else assigns this detail to be a new, empty detail of the definition identified by the given \a expectedDefinitionId */ +/*! + Assigns this detail to \a other if the definition of \a other is that identified + by the given \a expectedDefinitionId, else assigns this detail to be a new, empty + detail of the definition identified by the given \a expectedDefinitionId +*/ +QContactDetail& QContactDetail::assign(const QContactDetail& other, const char* expectedDefinitionId) +{ + if (this != &other) { + if (other.d->m_definitionName == expectedDefinitionId) { + d = other.d; + } else { + d = new QContactDetailPrivate; + d->m_definitionName = expectedDefinitionId; + } + } + return *this; +} + +/*! + Assigns this detail to \a other if the definition of \a other is that identified + by the given \a expectedDefinitionId, else assigns this detail to be a new, empty + detail of the definition identified by the given \a expectedDefinitionId +*/ QContactDetail& QContactDetail::assign(const QContactDetail& other, const QString& expectedDefinitionId) { if (this != &other) { - if (other.definitionName() == expectedDefinitionId) { + if (other.d->m_definitionName == expectedDefinitionId) { d = other.d; } else { d = new QContactDetailPrivate; @@ -220,7 +307,7 @@ be compared according to their values. */ bool QContactDetail::operator==(const QContactDetail& other) const { - if (d.constData()->m_definitionName != other.d.constData()->m_definitionName) + if (! (d.constData()->m_definitionName == other.d.constData()->m_definitionName)) return false; if (d.constData()->m_access != other.d.constData()->m_access) @@ -232,17 +319,34 @@ return true; } -/*! Sets the preferred actions for this detail to be the given list of \a preferredActions */ -void QContactDetail::setPreferredActions(const QList& preferredActions) +/*! Returns the hash value for \a key. */ +uint qHash(const QContactDetail &key) { - d->m_preferredActions = preferredActions; + const QContactDetailPrivate* dptr= QContactDetailPrivate::detailPrivate(key); + uint hash = QT_PREPEND_NAMESPACE(qHash)(dptr->m_definitionName) + + QT_PREPEND_NAMESPACE(qHash)(dptr->m_access); + QHash::const_iterator it = dptr->m_values.constBegin(); + while(it != dptr->m_values.constEnd()) { + hash += QT_PREPEND_NAMESPACE(qHash)(it.key()) + + QT_PREPEND_NAMESPACE(qHash)(it.value().toString()); + ++it; + } + return hash; } -/*! Returns the list of preferred actions for this detail */ -QList QContactDetail::preferredActions() const +#ifndef QT_NO_DEBUG_STREAM +QDebug operator<<(QDebug dbg, const QContactDetail& detail) { - return d->m_preferredActions; + dbg.nospace() << "QContactDetail(name=" << detail.definitionName() << ", key=" << detail.key(); + QVariantMap fields = detail.variantValues(); + QVariantMap::const_iterator it; + for (it = fields.constBegin(); it != fields.constEnd(); ++it) { + dbg.nospace() << ", " << it.key() << '=' << it.value(); + } + dbg.nospace() << ')'; + return dbg.maybeSpace(); } +#endif /*! Returns true if no values are contained in this detail. Note that context is stored as a value; hence, if a context is set, this function will return false. */ bool QContactDetail::isEmpty() const @@ -271,9 +375,16 @@ no value for the given \a key exists */ QString QContactDetail::value(const QString& key) const { - if (d.constData()->m_values.contains(key)) - return d.constData()->m_values.value(key).toString(); - return QString(); + return d.constData()->m_values.value(key.toLatin1().constData()).toString(); +} + + +/*! \overload + Returns the value stored in this detail for the given \a key as a QString, or an empty QString if + no value for the given \a key exists */ +QString QContactDetail::value(const char* key) const +{ + return d.constData()->m_values.value(key).toString(); } // A bug in qdoc means this comment needs to appear below the comment for the other value(). @@ -285,9 +396,13 @@ /*! Returns the value stored in this detail for the given \a key as a QVariant, or an invalid QVariant if no value for the given \a key exists */ QVariant QContactDetail::variantValue(const QString& key) const { - if (d.constData()->m_values.contains(key)) - return d.constData()->m_values.value(key); - return QVariant(); // returns an invalid qvariant + return d.constData()->m_values.value(key.toLatin1().constData()); +} + +/*! Returns the value stored in this detail for the given \a key as a QVariant, or an invalid QVariant if no value for the given \a key exists */ +QVariant QContactDetail::variantValue(const char* key) const +{ + return d.constData()->m_values.value(key); } /*! @@ -295,9 +410,15 @@ */ bool QContactDetail::hasValue(const QString& key) const { - if (d.constData()->m_values.contains(key)) - return true; - return false; + return d.constData()->m_values.contains(key.toLatin1().constData()); +} + +/*! + Returns true if this detail has a field with the given \a key, or false otherwise. + */ +bool QContactDetail::hasValue(const char * key) const +{ + return d.constData()->m_values.contains(key); } /*! Inserts \a value into the detail for the given \a key if \a value is valid. If \a value is invalid, @@ -309,6 +430,19 @@ if (!value.isValid()) return removeValue(key); + d->m_values.insert(QContactStringHolder(key), value); + return true; +} + +/*! Inserts \a value into the detail for the given \a key if \a value is valid. If \a value is invalid, + removes the field with the given \a key from the detail. Returns true if the given \a value was set + for the \a key (if the \a value was valid), or if the given \a key was removed from detail (if the + \a value was invalid), and returns false if the key was unable to be removed (and the \a value was invalid) */ +bool QContactDetail::setValue(const char* key, const QVariant& value) +{ + if (!value.isValid()) + return removeValue(key); + d->m_values.insert(key, value); return true; } @@ -316,6 +450,13 @@ /*! Removes the value stored in this detail for the given \a key. Returns true if a value was stored for the given \a key and the operation succeeded, and false otherwise */ bool QContactDetail::removeValue(const QString& key) { + if(d->m_values.remove(key.toLatin1().constData())) + return true; + return false; +} +/*! Removes the value stored in this detail for the given \a key. Returns true if a value was stored for the given \a key and the operation succeeded, and false otherwise */ +bool QContactDetail::removeValue(const char * key) +{ if(d->m_values.remove(key)) return true; return false; @@ -326,7 +467,14 @@ */ QVariantMap QContactDetail::variantValues() const { - return d.constData()->m_values; + QVariantMap ret; + QHash::const_iterator it = d.constData()->m_values.constBegin(); + while(it != d.constData()->m_values.constEnd()) { + ret.insert(it.key(), it.value()); + ++it; + } + + return ret; } /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactdetail.h --- a/qtmobility/src/contacts/qcontactdetail.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactdetail.h Mon May 03 13:18:40 2010 +0300 @@ -57,8 +57,9 @@ { public: QContactDetail(); + QContactDetail(const char* definitionName); // possibly internal QContactDetail(const QString& definitionName); - virtual ~QContactDetail(); + ~QContactDetail(); QContactDetail(const QContactDetail& other); QContactDetail& operator=(const QContactDetail& other); @@ -74,19 +75,19 @@ // Predefined attribute names and values #ifdef Q_QDOC - const char* FieldContext; - const char* ContextHome; - const char* ContextWork; - const char* ContextOther; - const char* FieldDetailUri; - const char* FieldLinkedDetailUris; + static const QLatin1Constant FieldContext; + static const QLatin1Constant ContextHome; + static const QLatin1Constant ContextWork; + static const QLatin1Constant ContextOther; + static const QLatin1Constant FieldDetailUri; + static const QLatin1Constant FieldLinkedDetailUris; #else - Q_DECLARE_LATIN1_LITERAL(FieldContext, "Context"); - Q_DECLARE_LATIN1_LITERAL(ContextHome, "Home"); - Q_DECLARE_LATIN1_LITERAL(ContextWork, "Work"); - Q_DECLARE_LATIN1_LITERAL(ContextOther, "Other"); - Q_DECLARE_LATIN1_LITERAL(FieldDetailUri, "DetailUri"); - Q_DECLARE_LATIN1_LITERAL(FieldLinkedDetailUris, "LinkedDetailUris"); + Q_DECLARE_LATIN1_CONSTANT(FieldContext, "Context"); + Q_DECLARE_LATIN1_CONSTANT(ContextHome, "Home"); + Q_DECLARE_LATIN1_CONSTANT(ContextWork, "Work"); + Q_DECLARE_LATIN1_CONSTANT(ContextOther, "Other"); + Q_DECLARE_LATIN1_CONSTANT(FieldDetailUri, "DetailUri"); + Q_DECLARE_LATIN1_CONSTANT(FieldLinkedDetailUris, "LinkedDetailUris"); #endif bool operator==(const QContactDetail& other) const; @@ -98,9 +99,6 @@ int key() const; void resetKey(); - void setPreferredActions(const QList& preferredActions); - QList preferredActions() const; - QString value(const QString& key) const; bool setValue(const QString& key, const QVariant& value); bool removeValue(const QString& key); @@ -113,7 +111,40 @@ return variantValue(key).value(); } - + /* These are probably internal */ + QString value(const char* key) const; + bool setValue(const char* key, const QVariant& value); + bool removeValue(const char* key); + bool hasValue(const char* key) const; + QVariant variantValue(const char *key) const; + template T value(const char *key) const + { + return variantValue(key).value(); + } + template QString value(const QLatin1Constant& key) const + { + return value(key.latin1()); + } + template bool setValue(const QLatin1Constant& key, const QVariant& value) + { + return setValue(key.latin1(), value); + } + template bool removeValue(const QLatin1Constant& key) + { + return removeValue(key.latin1()); + } + template bool hasValue(const QLatin1Constant& key) const + { + return hasValue(key.latin1()); + } + template QVariant variantValue(const QLatin1Constant& key) const + { + return variantValue(key.latin1()); + } + template T value(const QLatin1Constant& key) const + { + return value(key.latin1()); + } void setContexts(const QStringList& contexts) { @@ -156,8 +187,10 @@ } protected: - QContactDetail(const QContactDetail& other, const QString& expectedDefinitionId); - QContactDetail& assign(const QContactDetail& other, const QString& expectedDefinitionId); + QContactDetail(const QContactDetail &other, const QString& expectedDefinitionId); + QContactDetail& assign(const QContactDetail &other, const QString& expectedDefinitionId); + QContactDetail(const QContactDetail &other, const char* expectedDefinitionId); + QContactDetail& assign(const QContactDetail &other, const char* expectedDefinitionId); private: friend class QContact; @@ -165,17 +198,22 @@ QSharedDataPointer d; }; +Q_CONTACTS_EXPORT uint qHash(const QContactDetail& key); +#ifndef QT_NO_DEBUG_STREAM +Q_CONTACTS_EXPORT QDebug operator<<(QDebug dbg, const QContactDetail& detail); +#endif + Q_DECLARE_OPERATORS_FOR_FLAGS(QContactDetail::AccessConstraints); #define Q_DECLARE_CUSTOM_CONTACT_DETAIL(className, definitionNameString) \ - className() : QContactDetail(DefinitionName) {} \ - className(const QContactDetail& field) : QContactDetail(field, DefinitionName) {} \ - className& operator=(const QContactDetail& other) {assign(other, DefinitionName); return *this;} \ + className() : QContactDetail(DefinitionName.latin1()) {} \ + className(const QContactDetail& field) : QContactDetail(field, DefinitionName.latin1()) {} \ + className& operator=(const QContactDetail& other) {assign(other, DefinitionName.latin1()); return *this;} \ \ - Q_DECLARE_LATIN1_LITERAL(DefinitionName, definitionNameString); + Q_DECLARE_LATIN1_CONSTANT(DefinitionName, definitionNameString); #define Q_IMPLEMENT_CUSTOM_CONTACT_DETAIL(className, definitionNameString) \ - Q_DEFINE_LATIN1_LITERAL(className::DefinitionName, definitionNameString) + Q_DEFINE_LATIN1_CONSTANT(className::DefinitionName, definitionNameString) QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactdetail_p.h --- a/qtmobility/src/contacts/qcontactdetail_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactdetail_p.h Mon May 03 13:18:40 2010 +0300 @@ -57,11 +57,102 @@ #include "qcontactdetail.h" #include -#include #include +#include QTM_BEGIN_NAMESPACE +/* + Yet another string class + + Mostly a wrapper around char *, where we do pointer equality checks before + a strcmp, given our common use case of equivalent pointers. + + Also handles when things get passed in as a QString, by converting to Latin1 + and caching the result, and caching conversions to QString (hit by definitionName a lot) +*/ +class QContactStringHolder +{ +public: + QContactStringHolder() + : m_str(0) + { + } + + ~QContactStringHolder() + { + } + + QContactStringHolder(const QContactStringHolder& other) + : m_str(other.m_str) + { + } + + QContactStringHolder& operator=(const QContactStringHolder& other) + { + m_str = other.m_str; // checking for ==this is not worth the effort + return *this; + } + + QContactStringHolder(const char *str) + : m_str(str) + { + } + + QContactStringHolder& operator=(const char *str) + { + m_str = str; + return *this; + } + + explicit QContactStringHolder(const QString& str) + { + *this = str; + } + + QContactStringHolder& operator=(const QString& str) + { + m_str = s_allocated.value(str, 0); + if (!m_str) { + m_str = qstrdup(str.toLatin1().constData()); + s_allocated.insert(str, const_cast(m_str)); // it's my pointer + } + return *this; + } + + bool operator==(const char* other) const + { + return other == m_str || (qstrcmp(other, m_str) == 0); + } + + bool operator==(const QString& other) const + { + return (s_allocated.value(other, 0) == m_str) || (other == QLatin1String(m_str)); + } + + bool operator==(const QContactStringHolder& other) const + { + return (other.m_str == m_str) || (qstrcmp(other.m_str, m_str) == 0); + } + + operator QString() const + { + QString s = s_qstrings.value(m_str); + if (!s.isEmpty()) + return s; + s = QString::fromLatin1(m_str); + s_qstrings.insert(m_str, s); + return s; + } + +public: + // The only data we have + const char* m_str; + + static QHash s_allocated; + static QHash s_qstrings; +}; + class QContactDetailPrivate : public QSharedData { public: @@ -77,27 +168,34 @@ m_id(other.m_id), m_definitionName(other.m_definitionName), m_values(other.m_values), - m_preferredActions(other.m_preferredActions), m_access(other.m_access) { } - ~QContactDetailPrivate() {} + ~QContactDetailPrivate() + { + } int m_id; // internal, unique id. - QString m_definitionName; - QVariantMap m_values; // the value(s) stored in this field. - QList m_preferredActions; + QContactStringHolder m_definitionName; + QHash m_values; + QContactDetail::AccessConstraints m_access; static QAtomicInt lastDetailKey; - QContactDetail::AccessConstraints m_access; static void setAccessConstraints(QContactDetail *d, QContactDetail::AccessConstraints constraint) { d->d->m_access = constraint; } + + static const QContactDetailPrivate* detailPrivate(const QContactDetail& detail) + { + return detail.d.constData(); + } }; QTM_END_NAMESPACE +Q_DECLARE_TYPEINFO(QTM_PREPEND_NAMESPACE(QContactStringHolder), Q_MOVABLE_TYPE); + #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactdetaildefinition.cpp --- a/qtmobility/src/contacts/qcontactdetaildefinition.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactdetaildefinition.cpp Mon May 03 13:18:40 2010 +0300 @@ -59,18 +59,6 @@ Returns true if this detail definition has different allowable field types or uniqueness to the \a other definition */ -/*! - \enum QContactDetailDefinition::AccessConstraint - - \obsolete - - This enum defines the access constraints which may be set on all details of this definition in the store for which the definition is valid. - - \value NoConstraint Details of definitions with this access constraint set have no special access semantics associated with them. Users can read, write, and otherwise modify such details in any manner. - \value ReadOnly Details of definitions with this access constraint set are dynamically modified by the backend. Users cannot write values to details of definitions with this access constraint set. - \value CreateOnly Details of definitions with this access constraint set are static once created. Their value cannot be changed dynamically, nor can they be written or read by users. - */ - /*! Construct a new, invalid QContactDetailDefinition */ QContactDetailDefinition::QContactDetailDefinition() : d(new QContactDetailDefinitionData) @@ -170,28 +158,4 @@ d->m_fields.remove(key); } -/*! - Returns the access constraint that is applied to details of this definition - - \obsolete - - This function is obsolete - use \l QContactDetail::accessConstraints() - */ -QContactDetailDefinition::AccessConstraint QContactDetailDefinition::accessConstraint() const -{ - return QContactDetailDefinition::NoConstraint; -} - -/*! - Sets the access constraint that is applied to details of this definition to \a constraint - - \obsolete - - This function is obsolete. - */ -void QContactDetailDefinition::setAccessConstraint(const QContactDetailDefinition::AccessConstraint& constraint) -{ - Q_UNUSED(constraint); -} - QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactdetaildefinition.h --- a/qtmobility/src/contacts/qcontactdetaildefinition.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactdetaildefinition.h Mon May 03 13:18:40 2010 +0300 @@ -88,17 +88,6 @@ void insertField(const QString& key, const QContactDetailFieldDefinition& field); void removeField(const QString& key); - /* Access constraints which may apply to details of a definition - to be removed week 3 */ - enum AccessConstraint { - NoConstraint = 0, - ReadOnly, - CreateOnly - }; - - /* Accessor and mutator for access constraints on details of this definition */ - QContactDetailDefinition::AccessConstraint Q_DECL_DEPRECATED accessConstraint() const; - void Q_DECL_DEPRECATED setAccessConstraint(const QContactDetailDefinition::AccessConstraint& constraint); - private: QSharedDataPointer d; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactdetailfielddefinition.cpp --- a/qtmobility/src/contacts/qcontactdetailfielddefinition.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactdetailfielddefinition.cpp Mon May 03 13:18:40 2010 +0300 @@ -53,20 +53,6 @@ */ /*! - * \enum QContactDetailFieldDefinition::AccessConstraint - * - * \obsolete - * - * This enum defines the access constraints which may be set on fields of a detail definition in the store for which the definition is valid. - * The constraint which applies to the definition takes precedence over a constraint which applies to a field of that definition. - * For example, if a field has the \c QContactDetailFieldDefinition::NoConstraint constraint, but the detail definition from which the field came has - * either the \c QContactDetailDefinition::ReadOnly or \c QContactDetailDefinition::CreateOnly constraint, then the field will be a read-only field. - * - * \value NoConstraint Fields with this access constraint set have no special access semantics associated with them. Users can read, write, and otherwise modify such fields in any manner. - * \value ReadOnly Fields with this access constraint set are dynamically modified by the backend. Users cannot write values to fields of details of definitions with this access constraint set. - */ - -/*! * Constructs a new field with no constraints and an invalid data type. */ QContactDetailFieldDefinition::QContactDetailFieldDefinition() @@ -131,29 +117,6 @@ } /*! - * Returns the access constraints which apply to this field - * - * \obsolete - * Obsolete - use \l QContactDetail::accessConstraints() instead. - */ -QContactDetailFieldDefinition::AccessConstraint QContactDetailFieldDefinition::accessConstraint() const -{ - return QContactDetailFieldDefinition::NoConstraint; -} - -/*! - * Sets the access constraints which apply to this field to \a constraint - * - * \obsolete - * - * This is no longer used. - */ -void QContactDetailFieldDefinition::setAccessConstraint(QContactDetailFieldDefinition::AccessConstraint constraint) -{ - Q_UNUSED(constraint); -} - -/*! * Returns true if the allowable values and data type of the \a other field are equal to those of this field */ bool QContactDetailFieldDefinition::operator==(const QContactDetailFieldDefinition& other) const diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactdetailfielddefinition.h --- a/qtmobility/src/contacts/qcontactdetailfielddefinition.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactdetailfielddefinition.h Mon May 03 13:18:40 2010 +0300 @@ -66,15 +66,6 @@ QVariantList allowableValues() const; void setAllowableValues(const QVariantList values); - /* Access constraint stuff to be removed wk 3 */ - enum AccessConstraint { - NoConstraint = 0, - ReadOnly - }; - - QContactDetailFieldDefinition::AccessConstraint Q_DECL_DEPRECATED accessConstraint() const; - void Q_DECL_DEPRECATED setAccessConstraint(QContactDetailFieldDefinition::AccessConstraint constraint); - bool operator==(const QContactDetailFieldDefinition& other) const; bool operator!=(const QContactDetailFieldDefinition& other) const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactfetchhint.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/contacts/qcontactfetchhint.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,198 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qcontactfetchhint.h" +#include "qcontactfetchhint_p.h" + +#include + +QTM_BEGIN_NAMESPACE + +/*! + \class QContactFetchHint + \brief The QContactFetchHint class provides hints to the manager about which contact + information needs to be retrieved in an asynchronous fetch request or a synchronous + function call. + + All of the hints may be ignored at the discretion of the manager, however if a manager + is able to optimize retrieval of contacts due to hints, it may do so. If a manager + ignores a hint, it must retrieve the full set of data that the hint refers to. + + The fetch hint contains: + \list + \o a list of detail definition names which the client is interested + in (empty if interested in all detail definitions) + \o a list of relationship types which the client is interested in + (empty if interested in all relationships) + \o some optimization flags which allow the client to tell the backend if they are + not interested in any relationships, any action preferences, or any binary blobs (images etc). + \endlist + + Important note: a client should not make changes to a contact which has been retrieved + using a fetch hint other than the default fetch hint. Doing so will result in information + loss when saving the contact back to the manager (as the "new" restricted contact will + replace the previously saved contact in the backend). + */ + +/*! + \enum QContactFetchHint::OptimizationHint + + This enum defines flags which may be set to inform the backend that the client does + not require certain information. The backend may safely ignore the hint, but then + must return the full set of information relating to the optimization hint. + + \value AllRequired Tells the backend that all information is required + \value NoRelationships Tells the backend that the client does not require retrieved contacts to include a cache of relationships + \value NoActionPreferences Tells the backend that the client does not require retrieved contacts to include a cache of action preferences + \value NoBinaryBlobs Tells the backend that the client does not require retrieved contacts to include binary blobs such as thumbnail images + */ + +/*! + Constructs a new contact fetch hint which requests that the backend fetch all information + */ +QContactFetchHint::QContactFetchHint() + : d(new QContactFetchHintPrivate) +{ +} + +/*! + Constructs a new contact fetch hint as a copy of \a other + */ +QContactFetchHint::QContactFetchHint(const QContactFetchHint &other) + : d(other.d) +{ +} + +/*! + Frees any memory in use by the fetch hint + */ +QContactFetchHint::~QContactFetchHint() +{ +} + +/*! + Assigns this fetch hint to be equal to the \a other fetch hint + */ +QContactFetchHint& QContactFetchHint::operator=(const QContactFetchHint& other) +{ + d = other.d; + return *this; +} + +/*! + Returns the list of definition names that identify detail definitions of which details + the manager should (at a minimum) retrieve when fetching contacts. + This hint may be ignored by the backend, in which case it will return the full set of details for + each contact retrieved. + + \sa setDetailDefinitionsHint() + */ +QStringList QContactFetchHint::detailDefinitionsHint() const +{ + return d->m_definitionsHint; +} + +/*! + Sets the list of definition names that identify detail definitions of which details + the manager should (at a minimum) retrieve when fetching contacts to \a definitionNames. + This hint may be ignored by the backend, in which case it will return the full set of details for + each contact retrieved. + + \sa detailDefinitionsHint() + */ +void QContactFetchHint::setDetailDefinitionsHint(const QStringList& definitionNames) +{ + d->m_definitionsHint = definitionNames; +} + +/*! + Returns the list of relationship types that the manager should (at a minimum) retrieve + when fetching contacts. + This hint may be ignored by the backend, in which case it will return the full set of + relationships for each contact retrieved. + + \sa setRelationshipTypesHint(), QContact::relationships() + */ +QStringList QContactFetchHint::relationshipTypesHint() const +{ + return d->m_relationshipsHint; +} + +/*! + Sets the list of relationship types that the manager should (at a minimum) retrieve + when fetching contacts to \a relationshipTypes. + This hint may be ignored by the backend, in which case it will return the full set of + relationships for each contact retrieved. + + \sa relationshipTypesHint(), QContact::relationships() + */ +void QContactFetchHint::setRelationshipTypesHint(const QStringList& relationshipTypes) +{ + d->m_relationshipsHint = relationshipTypes; +} + +/*! + Returns the optimization hint flags specified by the client. + These hints may be ignored by the backend, in which case it will return + the full set of information accessible in a contact, including + relationships, action preferences, and binary blobs. + + \sa setOptimizationHints() + */ +QContactFetchHint::OptimizationHints QContactFetchHint::optimizationHints() const +{ + return d->m_optimizationHints; +} + +/*! + Sets the optimization hint flags specified by the client to \a hints. + These hints may be ignored by the backend, in which case it will return + the full set of information accessible in a contact, including + relationships, action preferences, and binary blobs. + + \sa optimizationHints() + */ +void QContactFetchHint::setOptimizationHints(OptimizationHints hints) +{ + d->m_optimizationHints = hints; +} + +QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactfetchhint.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/contacts/qcontactfetchhint.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,86 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QCONTACTFETCHHINT_H +#define QCONTACTFETCHHINT_H + +#include +#include +#include + +#include "qtcontactsglobal.h" +#include "qcontactdetaildefinition.h" + +QTM_BEGIN_NAMESPACE + +class QContactFetchHintPrivate; +class Q_CONTACTS_EXPORT QContactFetchHint { +public: + QContactFetchHint(); + QContactFetchHint(const QContactFetchHint& other); + ~QContactFetchHint(); + QContactFetchHint& operator=(const QContactFetchHint& other); + + QStringList detailDefinitionsHint() const; + void setDetailDefinitionsHint(const QStringList& definitionNames); + + QStringList relationshipTypesHint() const; + void setRelationshipTypesHint(const QStringList& relationshipTypes); + + enum OptimizationHint { + AllRequired = 0x0, + NoRelationships = 0x1, + NoActionPreferences = 0x2, + NoBinaryBlobs = 0x4 + // any other optimization hints? + }; + Q_DECLARE_FLAGS(OptimizationHints, OptimizationHint) + + OptimizationHints optimizationHints() const; + void setOptimizationHints(OptimizationHints hints); + +private: + QSharedDataPointer d; +}; + +QTM_END_NAMESPACE + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactfetchhint_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/contacts/qcontactfetchhint_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,91 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QCONTACTFETCHHINT_P_H +#define QCONTACTFETCHHINT_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 "qcontactfetchhint.h" + +#include +#include + +QTM_BEGIN_NAMESPACE + +class QContactFetchHintPrivate : public QSharedData +{ +public: + QContactFetchHintPrivate() + : QSharedData(), + m_optimizationHints(QContactFetchHint::AllRequired) + { + } + + QContactFetchHintPrivate(const QContactFetchHintPrivate& other) + : QSharedData(other), + m_definitionsHint(other.m_definitionsHint), + m_relationshipsHint(other.m_relationshipsHint), + m_optimizationHints(other.m_optimizationHints) + { + } + + ~QContactFetchHintPrivate() + { + } + + QStringList m_definitionsHint; + QStringList m_relationshipsHint; + QContactFetchHint::OptimizationHints m_optimizationHints; +}; + +QTM_END_NAMESPACE + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactfilter.cpp --- a/qtmobility/src/contacts/qcontactfilter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactfilter.cpp Mon May 03 13:18:40 2010 +0300 @@ -61,40 +61,40 @@ */ /*! - * \enum QContactFilter::FilterType - * Describes the type of the filter - * \value InvalidFilter An invalid filter which matches nothing - * \value ContactDetailFilter A filter which matches contacts containing one or more details of a particular definition with a particular value - * \value ContactDetailRangeFilter A filter which matches contacts containing one or more details of a particular definition whose values are within a particular range - * \value ChangeLogFilter A filter which matches contacts whose timestamps have been updated since some particular date and time - * \value ActionFilter A filter which matches contacts for which a particular action is available, or which contain a detail with a particular value for which a particular action is available - * \value RelationshipFilter A filter which matches contacts which participate in a particular type of relationship, or relationship with a specified contact - * \value IntersectionFilter A filter which matches all contacts that are matched by all filters it includes - * \value UnionFilter A filter which matches any contact that is matched by any of the filters it includes - * \value LocalIdFilter A filter which matches any contact whose local id is contained in a particular list of contact local ids - * \value DefaultFilter A filter which matches everything + \enum QContactFilter::FilterType + Describes the type of the filter + \value InvalidFilter An invalid filter which matches nothing + \value ContactDetailFilter A filter which matches contacts containing one or more details of a particular definition with a particular value + \value ContactDetailRangeFilter A filter which matches contacts containing one or more details of a particular definition whose values are within a particular range + \value ChangeLogFilter A filter which matches contacts whose timestamps have been updated since some particular date and time + \value ActionFilter A filter which matches contacts for which a particular action is available, or which contain a detail with a particular value for which a particular action is available + \value RelationshipFilter A filter which matches contacts which participate in a particular type of relationship, or relationship with a specified contact + \value IntersectionFilter A filter which matches all contacts that are matched by all filters it includes + \value UnionFilter A filter which matches any contact that is matched by any of the filters it includes + \value LocalIdFilter A filter which matches any contact whose local id is contained in a particular list of contact local ids + \value DefaultFilter A filter which matches everything */ /*! - * \enum QContactFilter::MatchFlag - * Describes the semantics of matching followed by the filter - * \value MatchExactly Performs QVariant-based matching - * \value MatchContains The search term is contained in the item - * \value MatchStartsWith The search term matches the start of the item - * \value MatchEndsWith The search term matches the end of the item - * \value MatchFixedString Performs string-based matching. String-based comparisons are case-insensitive unless the \c MatchCaseSensitive flag is also specified - * \value MatchCaseSensitive The search is case sensitive - * \value MatchPhoneNumber The search term is considered to be in the form of a phone number, and special processing (removing dialing prefixes, non significant - * characters like '-'. ')' etc). may be performed when matching the item. - * \value MatchKeypadCollation The search term is in the form of text entered by a numeric phone keypad (such as ITU-T E.161 compliant keypads). Each digit in the - * search term can represent a number of alphanumeric symbols. For example, the search string "43556" would match items "HELLO", "GEKKO", "HELL6" and "43556" among others. - * Accented characters and other punctuation characters may additionally be matched by the QContactManager in a way consistent with the platform. + \enum QContactFilter::MatchFlag + Describes the semantics of matching followed by the filter + \value MatchExactly Performs QVariant-based matching + \value MatchContains The search term is contained in the item + \value MatchStartsWith The search term matches the start of the item + \value MatchEndsWith The search term matches the end of the item + \value MatchFixedString Performs string-based matching. String-based comparisons are case-insensitive unless the \c MatchCaseSensitive flag is also specified + \value MatchCaseSensitive The search is case sensitive + \value MatchPhoneNumber The search term is considered to be in the form of a phone number, and special processing (removing dialing prefixes, non significant + characters like '-'. ')' etc). may be performed when matching the item. + \value MatchKeypadCollation The search term is in the form of text entered by a numeric phone keypad (such as ITU-T E.161 compliant keypads). Each digit in the + search term can represent a number of alphanumeric symbols. For example, the search string "43556" would match items "HELLO", "GEKKO", "HELL6" and "43556" among others. + Accented characters and other punctuation characters may additionally be matched by the QContactManager in a way consistent with the platform. */ /*! - * \fn QContactFilter::operator!=(const QContactFilter& other) const - * Returns true if this filter is not identical to the \a other filter. - * \sa operator==() + \fn QContactFilter::operator!=(const QContactFilter& other) const + Returns true if this filter is not identical to the \a other filter. + \sa operator==() */ #if !defined(Q_CC_MWERKS) @@ -155,14 +155,21 @@ return d_ptr->compare(other.d_ptr); } -/*! Constructs a new filter from the given data pointer \a d */ +/*! + \internal + Constructs a new filter from the given data pointer \a d + */ QContactFilter::QContactFilter(QContactFilterPrivate *d) : d_ptr(d) { } -/*! Intersects the \a left and \a right filters */ +/*! + \relates QContactFilter + Returns a filter which is the intersection of the \a left and \a right filters + \sa QContactIntersectionFilter + */ const QContactFilter operator&(const QContactFilter& left, const QContactFilter& right) { // XXX TODO: empty intersection/union operations are not well defined yet. @@ -186,7 +193,11 @@ return nif; } -/*! Unions the \a left and \a right filters */ +/*! + \relates QContactFilter + Returns a filter which is the union of the \a left and \a right filters + \sa QContactUnionFilter + */ const QContactFilter operator|(const QContactFilter& left, const QContactFilter& right) { if (left.type() == QContactFilter::UnionFilter) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactfilter.h --- a/qtmobility/src/contacts/qcontactfilter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactfilter.h Mon May 03 13:18:40 2010 +0300 @@ -63,7 +63,7 @@ { public: QContactFilter(); - virtual ~QContactFilter(); + ~QContactFilter(); QContactFilter(const QContactFilter& other); QContactFilter& operator=(const QContactFilter& other); @@ -91,7 +91,7 @@ MatchFixedString = Qt::MatchFixedString, // 8 MatchCaseSensitive = Qt::MatchCaseSensitive, // 16 MatchPhoneNumber = 1024, - MatchKeypadCollation = 1025 + MatchKeypadCollation = 2048 }; Q_DECLARE_FLAGS(MatchFlags, MatchFlag) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactid.cpp --- a/qtmobility/src/contacts/qcontactid.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactid.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,8 @@ #include "qcontactid.h" #include "qcontactid_p.h" +#include +#include QTM_BEGIN_NAMESPACE @@ -115,6 +117,46 @@ return !(*this == other); } +/*! Returns true if this id is less than the \a other id. + This id will be considered less than the \a other id if the + manager URI of this id is alphabetically less than the manager + URI of the \a other id. If both ids have the same manager URI, + this id will be considered less than the \a other id if the + local id of this id is less than the local id of the \a other id. + + The invalid, empty id consists of an empty manager URI and the + invalid, zero local id, and hence will be less than any non-invalid + id. + + This operator is provided primarily to allow use of a QContactId + as a key in a QMap. + */ +bool QContactId::operator<(const QContactId& other) const +{ + const int comp = this->managerUri().compare(other.managerUri()); + if (comp != 0) + return comp < 0; + + return this->localId() < other.localId(); +} + +/*! + * Returns the hash value for \a key. + */ +uint qHash(const QContactId &key) +{ + return QT_PREPEND_NAMESPACE(qHash)(key.managerUri()) + + QT_PREPEND_NAMESPACE(qHash)(key.localId()); +} + +#ifndef QT_NO_DEBUG_STREAM +QDebug operator<<(QDebug dbg, const QContactId& id) +{ + dbg.nospace() << "QContactId(" << id.managerUri() << ", " << id.localId() << ")"; + return dbg.maybeSpace(); +} +#endif + /*! * Returns the URI of the manager which contains the contact identified by this id */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactid.h --- a/qtmobility/src/contacts/qcontactid.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactid.h Mon May 03 13:18:40 2010 +0300 @@ -49,6 +49,8 @@ QTM_BEGIN_NAMESPACE +typedef quint32 QContactLocalId; + class QContactIdPrivate; class Q_CONTACTS_EXPORT QContactId { @@ -61,6 +63,7 @@ bool operator==(const QContactId& other) const; bool operator!=(const QContactId& other) const; + bool operator<(const QContactId& other) const; QString managerUri() const; QContactLocalId localId() const; @@ -72,6 +75,11 @@ QSharedDataPointer d; }; +Q_CONTACTS_EXPORT uint qHash(const QContactId& key); +#ifndef QT_NO_DEBUG_STREAM +Q_CONTACTS_EXPORT QDebug operator<<(QDebug dbg, const QContactId& id); +#endif + QTM_END_NAMESPACE Q_DECLARE_TYPEINFO(QTM_PREPEND_NAMESPACE(QContactId), Q_MOVABLE_TYPE); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactmanager.cpp --- a/qtmobility/src/contacts/qcontactmanager.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactmanager.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,6 +45,7 @@ #include "qcontactfilter.h" #include "qcontactdetaildefinition.h" #include "qcontactmanager_p.h" +#include "qcontactfetchhint.h" #include #include @@ -53,7 +54,7 @@ QTM_BEGIN_NAMESPACE /*! \class QContactManager - \brief The QContactManager class provides clients with access to contact information stored in a particular backend. + \brief The QContactManager class provides an interface which allows clients with access to contact information stored in a particular backend. \ingroup contacts-main This class provides adding, updating and removal of contacts. @@ -331,7 +332,7 @@ */ QList QContactManager::contactIds(const QList& sortOrders) const { - return d->m_engine->contactIds(sortOrders, d->m_error); + return d->m_engine->contactIds(QContactFilter(), sortOrders, &d->m_error); } /*! @@ -340,20 +341,24 @@ */ QList QContactManager::contactIds(const QContactFilter& filter, const QList& sortOrders) const { - return d->m_engine->contactIds(filter, sortOrders, d->m_error); + return d->m_engine->contactIds(filter, sortOrders, &d->m_error); } /*! Returns the list of contacts stored in the manager sorted according to the given list of \a sortOrders. - The \a definitionRestrictions parameter describes the details that are of - interest, as a performance hint. If the list is empty, all existing details for the matching - contacts will be returned. Otherwise, the returned contacts may only contain details of the - supplied definition names, although the manager is free to return extra details. + The \a fetchHint parameter describes the optimization hints that a manager may take. + If the \a fetchHint is the default constructed hint, all existing details, relationships and action preferences + in the matching contacts will be returned. A client should not make changes to a contact which has + been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information + loss when saving the contact back to the manager (as the "new" restricted contact will + replace the previously saved contact in the backend). + + \sa QContactFetchHint */ -QList QContactManager::contacts(const QList& sortOrders, const QStringList& definitionRestrictions) const +QList QContactManager::contacts(const QList& sortOrders, const QContactFetchHint& fetchHint) const { - return d->m_engine->contacts(sortOrders, definitionRestrictions, d->m_error); + return d->m_engine->contacts(QContactFilter(), sortOrders, fetchHint, &d->m_error); } /*! @@ -362,14 +367,18 @@ Depending on the manager implementation, this filtering operation might be slow and involve retrieving all the contacts and testing them against the supplied filter - see the \l isFilterSupported() function. - The \a definitionRestrictions parameter describes the details that are of - interest, as a performance hint. If the list is empty, all existing details for the matching - contacts will be returned. Otherwise, the returned contacts may only contain details of the - supplied definition names, although the manager is free to return extra details. + The \a fetchHint parameter describes the optimization hints that a manager may take. + If the \a fetchHint is the default constructed hint, all existing details, relationships and action preferences + in the matching contacts will be returned. A client should not make changes to a contact which has + been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information + loss when saving the contact back to the manager (as the "new" restricted contact will + replace the previously saved contact in the backend). + + \sa QContactFetchHint */ -QList QContactManager::contacts(const QContactFilter& filter, const QList& sortOrders, const QStringList& definitionRestrictions) const +QList QContactManager::contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint) const { - return d->m_engine->contacts(filter, sortOrders, definitionRestrictions, d->m_error); + return d->m_engine->contacts(filter, sortOrders, fetchHint, &d->m_error); } /*! @@ -378,14 +387,18 @@ If the contact does not exist, an empty, default constructed QContact will be returned, and the error returned by \l error() will be \c QContactManager::DoesNotExistError. - The \a definitionRestrictions parameter describes the details that are of - interest, as a performance hint. If the list is empty, all existing details for the requested - contact will be returned. Otherwise, the returned contact may only contain details of the - supplied definition names, although the manager is free to return extra details. + The \a fetchHint parameter describes the optimization hints that a manager may take. + If the \a fetchHint is the default constructed hint, all existing details, relationships and action preferences + in the matching contact will be returned. A client should not make changes to a contact which has + been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information + loss when saving the contact back to the manager (as the "new" restricted contact will + replace the previously saved contact in the backend). + + \sa QContactFetchHint */ -QContact QContactManager::contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions) const +QContact QContactManager::contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint) const { - return d->m_engine->contact(contactId, definitionRestrictions, d->m_error); + return d->m_engine->contact(contactId, fetchHint, &d->m_error); } /*! @@ -426,7 +439,12 @@ */ bool QContactManager::saveContact(QContact* contact) { - return d->m_engine->saveContact(contact, d->m_error); + if (contact) { + return d->m_engine->saveContact(contact, &d->m_error); + } else { + d->m_error = QContactManager::BadArgumentError; + return false; + } } /*! @@ -437,45 +455,7 @@ */ bool QContactManager::removeContact(const QContactLocalId& contactId) { - return d->m_engine->removeContact(contactId, d->m_error); -} - -/*! - \internal - Adds the list of contacts given by \a contactList to the database. - Returns a list of the error codes corresponding to the contacts in - the \a contactList. The \l QContactManager::error() function will - only return \c QContactManager::NoError if all contacts were saved - successfully. - - For each newly saved contact that was successful, the uid of the contact - in the list will be updated with the new value. If a failure occurs - when saving a new contact, the id will be cleared. If a failure occurs - when updating a contact that already exists, then TODO. - - This function was deprecated in week 1 and will be removed after the transition period has elapsed. - - \sa QContactManager::saveContact() - */ -QList QContactManager::saveContacts(QList* contactList) -{ - if (contactList) { - QMap errorMap; - QList errorList; - int size = contactList->size(); - d->m_engine->saveContacts(contactList, &errorMap, d->m_error); - - for (int j=0; j < size; j++) { - if (errorMap.contains(j)) - errorList << errorMap.value(j); - else - errorList << QContactManager::NoError; - } - return errorList; - } else { - d->m_error = QContactManager::BadArgumentError; - return QList(); - } + return d->m_engine->removeContact(contactId, &d->m_error); } /*! @@ -496,7 +476,13 @@ */ bool QContactManager::saveContacts(QList* contacts, QMap* errorMap) { - return d->m_engine->saveContacts(contacts, errorMap, d->m_error); + if (errorMap) + errorMap->clear(); + if (!contacts) { + d->m_error =QContactManager::BadArgumentError; + return false; + } + return d->m_engine->saveContacts(contacts, errorMap, &d->m_error); } /*! @@ -504,6 +490,9 @@ \a contactIds. Returns true if all contacts were removed successfully, otherwise false. + Any contact that was removed successfully will have the relationships + in which it was involved removed also. + The manager might populate \a errorMap (the map of indices of the \a contactIds list to the error which occurred when saving the contact at that index) for every index for which the contact could not be removed, if it is able. @@ -511,58 +500,40 @@ only return \c QContactManager::NoError if all contacts were removed successfully. - For each contact that was removed succesfully, the corresponding - id in the \a contactIds list will be retained but set to zero. The id of contacts - that were not successfully removed will be left alone. - - Any contact that was removed successfully will have the relationships - in which it was involved removed also. + If the given list of contact ids \a contactIds is empty, the function will return false + and calling error() will return \c QContactManager::BadArgumentError. If the list is non-empty + and contains ids which do not identify a valid contact in the manager, the function will + remove any contacts which are identified by ids in the \a contactIds list, insert + \c QContactManager::DoesNotExist entries into the \a errorMap for the indices of invalid ids + in the \a contactIds list, return false, and set the overall operation error to + \c QContactManager::DoesNotExistError. \sa QContactManager::removeContact() */ -bool QContactManager::removeContacts(QList* contactIds, QMap* errorMap) +bool QContactManager::removeContacts(const QList& contactIds, QMap* errorMap) { - return d->m_engine->removeContacts(contactIds, errorMap, d->m_error); + if (contactIds.isEmpty()) { + d->m_error = QContactManager::BadArgumentError; + return false; + } + + if (errorMap) + errorMap->clear(); + return d->m_engine->removeContacts(contactIds, errorMap, &d->m_error); } /*! - \internal - Remove the list of contacts identified in \a idList. - Returns a list of the error codes corresponding to the contact ids in - the \a idList. The \l QContactManager::error() function will - only return \c QContactManager::NoError if all contacts were removed - successfully. + \preliminary + Returns a pruned or modified version of the \a original contact which is valid and can be saved in the manager. + The returned contact might have entire details removed or arbitrarily changed. The cache of relationships + in the contact are ignored entirely when considering compatibility with the backend, as they are + saved and validated separately. - For each contact that was removed succesfully, the corresponding - id in the list will be retained but set to zero. The id of contacts - that were not successfully removed will be left alone. - - Any contact that was removed successfully will have the relationships - in which it was involved removed also. - - This function was deprecated in week 1 and will be removed after the transition period has elapsed. - - \sa QContactManager::removeContact() + This function is preliminary and the behaviour is subject to change! */ -QList QContactManager::removeContacts(QList* idList) +QContact QContactManager::compatibleContact(const QContact& original) { - if (idList) { - QMap errorMap; - QList errorList; - int size = idList->size(); - d->m_engine->removeContacts(idList, &errorMap, d->m_error); - - for (int j=0; j < size; j++) { - if (errorMap.contains(j)) - errorList << errorMap.value(j); - else - errorList << QContactManager::NoError; - } - return errorList; - } else { - d->m_error = QContactManager::BadArgumentError; - return QList(); - } + return d->m_engine->compatibleContact(original, &d->m_error); } /*! @@ -570,7 +541,7 @@ */ QString QContactManager::synthesizedDisplayLabel(const QContact& contact) const { - return d->m_engine->synthesizedDisplayLabel(contact, d->m_error); + return d->m_engine->synthesizedDisplayLabel(contact, &d->m_error); } /*! @@ -586,7 +557,7 @@ */ bool QContactManager::setSelfContactId(const QContactLocalId& contactId) { - return d->m_engine->setSelfContactId(contactId, d->m_error); + return d->m_engine->setSelfContactId(contactId, &d->m_error); } /*! @@ -598,16 +569,17 @@ */ QContactLocalId QContactManager::selfContactId() const { - return d->m_engine->selfContactId(d->m_error); + return d->m_engine->selfContactId(&d->m_error); } + /*! Returns a list of relationships in which the contact identified by the given \a participantId participates in the given \a role. If \a participantId is the default-constructed id, \a role is ignored and all relationships are returned. */ -QList QContactManager::relationships(const QContactId& participantId, QContactRelationshipFilter::Role role) const +QList QContactManager::relationships(const QContactId& participantId, QContactRelationship::Role role) const { - return d->m_engine->relationships(QString(), participantId, role, d->m_error); + return d->m_engine->relationships(QString(), participantId, role, &d->m_error); } /*! @@ -615,9 +587,9 @@ If \a participantId is the default-constructed id, \a role is ignored and all relationships of the given \a relationshipType are returned. If \a relationshipType is empty, relationships of any type are returned. */ -QList QContactManager::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationshipFilter::Role role) const +QList QContactManager::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role) const { - return d->m_engine->relationships(relationshipType, participantId, role, d->m_error); + return d->m_engine->relationships(relationshipType, participantId, role, &d->m_error); } /*! @@ -627,26 +599,38 @@ to \c QContactManager::NoError. Note that relationships cannot be updated directly using this function; in order to update a relationship, you must remove the old relationship, make the required modifications, and then save it. - The given relationship is invalid if it is circular (one of the destination contacts is also the source contact), or - if it references a non-existent local contact (either source or destination). If the given \a relationship is invalid, + The given relationship is invalid if it is circular (the first contact is the second contact), or + if it references a non-existent local contact (either the first or second contact). If the given \a relationship is invalid, the function will return \c false and the error will be set to \c QContactManager::InvalidRelationshipError. If the given \a relationship could not be saved in the database (due to backend limitations) the function will return \c false and error will be set to \c QContactManager::NotSupportedError. - - If any destination contact manager URI is not set in the \a relationship, these will be - automatically set to the URI of this manager, before the relationship is saved. */ bool QContactManager::saveRelationship(QContactRelationship* relationship) { - return d->m_engine->saveRelationship(relationship, d->m_error); + if (relationship) { + return d->m_engine->saveRelationship(relationship, &d->m_error); + } else { + d->m_error =QContactManager::BadArgumentError; + return false; + } } /*! - Saves the given \a relationships in the database and returns a list of error codes. + Saves the given \a relationships in the database and returns true if the operation was successful. + For any relationship which was unable to be saved, an entry into the \a errorMap will be created, + with the key being the index into the input relationships list, and the value being the error which + occurred for that index. */ -QList QContactManager::saveRelationships(QList* relationships) +bool QContactManager::saveRelationships(QList* relationships, QMap* errorMap) { - return d->m_engine->saveRelationships(relationships, d->m_error); + // check arguments + if (errorMap) + errorMap->clear(); + if (!relationships) { + d->m_error =QContactManager::BadArgumentError; + return false; + } + return d->m_engine->saveRelationships(relationships, errorMap, &d->m_error); } /*! @@ -654,20 +638,23 @@ will be removed, the error will be set to \c QContactManager::NoError and this function will return true. If no such relationship exists in the manager, the error will be set to \c QContactManager::DoesNotExistError and this function will return false. - - The priority of the relationship is ignored when determining existence of the relationship. */ bool QContactManager::removeRelationship(const QContactRelationship& relationship) { - return d->m_engine->removeRelationship(relationship, d->m_error); + return d->m_engine->removeRelationship(relationship, &d->m_error); } /*! - Removes the given \a relationships from the database and returns a list of error codes. + Removes the given \a relationships from the database and returns true if the operation was successful. + For any relationship which was unable to be removed, an entry into the \a errorMap will be created, + with the key being the index into the input relationships list, and the value being the error which + occurred for that index. */ -QList QContactManager::removeRelationships(const QList& relationships) +bool QContactManager::removeRelationships(const QList& relationships, QMap* errorMap) { - return d->m_engine->removeRelationships(relationships, d->m_error); + if (errorMap) + errorMap->clear(); + return d->m_engine->removeRelationships(relationships, errorMap, &d->m_error); } /*! @@ -677,44 +664,44 @@ QMap QContactManager::detailDefinitions(const QString& contactType) const { if (!supportedContactTypes().contains(contactType)) { - d->m_error = QContactManager::InvalidContactTypeError; + d->m_error =QContactManager::InvalidContactTypeError; return QMap(); } - return d->m_engine->detailDefinitions(contactType, d->m_error); + return d->m_engine->detailDefinitions(contactType, &d->m_error); } /*! Returns the definition identified by the given \a definitionName that is valid for the contacts whose type is the given \a contactType in this store, or a default-constructed QContactDetailDefinition if no such definition exists */ QContactDetailDefinition QContactManager::detailDefinition(const QString& definitionName, const QString& contactType) const { if (!supportedContactTypes().contains(contactType)) { - d->m_error = QContactManager::InvalidContactTypeError; + d->m_error =QContactManager::InvalidContactTypeError; return QContactDetailDefinition(); } - return d->m_engine->detailDefinition(definitionName, contactType, d->m_error); + return d->m_engine->detailDefinition(definitionName, contactType, &d->m_error); } /*! Persists the given definition \a def in the database, which is valid for contacts whose type is the given \a contactType. Returns true if the definition was saved successfully, otherwise returns false */ bool QContactManager::saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType) { if (!supportedContactTypes().contains(contactType)) { - d->m_error = QContactManager::InvalidContactTypeError; + d->m_error =QContactManager::InvalidContactTypeError; return false; } - return d->m_engine->saveDetailDefinition(def, contactType, d->m_error); + return d->m_engine->saveDetailDefinition(def, contactType, &d->m_error); } /*! Removes the detail definition identified by \a definitionName from the database, which is valid for contacts whose type is the given \a contactType. Returns true if the definition was removed successfully, otherwise returns false */ bool QContactManager::removeDetailDefinition(const QString& definitionName, const QString& contactType) { if (!supportedContactTypes().contains(contactType)) { - d->m_error = QContactManager::InvalidContactTypeError; + d->m_error =QContactManager::InvalidContactTypeError; return false; } - return d->m_engine->removeDetailDefinition(definitionName, contactType, d->m_error); + return d->m_engine->removeDetailDefinition(definitionName, contactType, &d->m_error); } /*! @@ -725,7 +712,6 @@ \value DetailOrdering When a contact is retrieved, the manager will return the details in the same order in which they were saved \value Relationships The manager supports at least some types of relationships between contacts \value ArbitraryRelationshipTypes The manager supports relationships of arbitrary types between contacts - \value RelationshipOrdering The manager supports relationships (re)ordering \value MutableDefinitions The manager supports saving, updating or removing detail definitions. Some built-in definitions may still be immutable \value SelfContact The manager supports the concept of saving a contact which represents the current user \value ChangeLogs The manager supports reporting of timestamps of changes, and filtering and sorting by those timestamps @@ -763,19 +749,17 @@ } /*! - Returns the list of relationship types which are supported by this manager where contacts of the - given type \a contactType may be the first (dominant) contact in the relationship. - If the backend does not support the \c QContactManager::Relationships feature, this list should - be empty. If the backend supports the \c QContactManager::Relationships feature and also - supports the \c QContactManager::ArbitraryRelationshipTypes feature, the list will - contain the natively supported (well-known) relationship types contained in the list, but clients - are able to add relationships of any custom type also. + Returns true if the manager supports the relationship type specified in \a relationshipType for + contacts whose type is the given \a contactType. - \sa QContactRelationship::first() + Note that some managers may support the relationship type for a contact in a limited manner + (for example, only as the first contact in the relationship, or only as the second contact + in the relationship). In this case, it will still return true. It will only return false + if the relationship is entirely unsupported for the given type of contact. */ -QStringList QContactManager::supportedRelationshipTypes(const QString& contactType) const +bool QContactManager::isRelationshipTypeSupported(const QString& relationshipType, const QString& contactType) const { - return d->m_engine->supportedRelationshipTypes(contactType); + return d->m_engine->isRelationshipTypeSupported(relationshipType, contactType); } /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactmanager.h --- a/qtmobility/src/contacts/qcontactmanager.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactmanager.h Mon May 03 13:18:40 2010 +0300 @@ -56,6 +56,7 @@ #include "qcontactid.h" #include "qcontactrelationship.h" #include "qcontactsortorder.h" +#include "qcontactfetchhint.h" QTM_BEGIN_NAMESPACE @@ -113,33 +114,32 @@ /* Contacts - Accessors and Mutators */ QList contactIds(const QList& sortOrders = QList()) const; QList contactIds(const QContactFilter& filter, const QList& sortOrders = QList()) const; - QList contacts(const QList& sortOrders = QList(), const QStringList& definitionRestrictions = QStringList()) const; - QList contacts(const QContactFilter& filter, const QList& sortOrders = QList(), const QStringList& definitionRestrictions = QStringList()) const; - - QContact contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions = QStringList()) const; // retrieve a contact + QList contacts(const QList& sortOrders = QList(), const QContactFetchHint& fetchHint = QContactFetchHint()) const; + QList contacts(const QContactFilter& filter, const QList& sortOrders = QList(), const QContactFetchHint& fetchHint = QContactFetchHint()) const; + QContact contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint = QContactFetchHint()) const; // retrieve a contact bool saveContact(QContact* contact); // note: MODIFIES contact (sets the contactId) bool removeContact(const QContactLocalId& contactId); // remove the contact from the persistent store + bool saveContacts(QList* contacts, QMap* errorMap); // batch API - save. + bool removeContacts(const QList& contactIds, QMap* errorMap); // batch API - remove. - QList Q_DECL_DEPRECATED saveContacts(QList* contacts); // deprecated batch API - save - QList Q_DECL_DEPRECATED removeContacts(QList* contactIds); // deprecated batch API - remove - bool saveContacts(QList* contacts, QMap* errorMap); // batch API - save. - bool removeContacts(QList* contactIds, QMap* errorMap); // batch API - remove. + /* Return a pruned or modified contact which is valid and can be saved in the manager */ + QContact compatibleContact(const QContact& original); // Preliminary function! /* Synthesize the display label of a contact */ - QString synthesizedDisplayLabel(const QContact& contact) const; // replaces the above + QString synthesizedDisplayLabel(const QContact& contact) const; /* "Self" contact id (MyCard) */ bool setSelfContactId(const QContactLocalId& contactId); QContactLocalId selfContactId() const; /* Relationships */ - QList relationships(const QContactId& participantId, QContactRelationshipFilter::Role role = QContactRelationshipFilter::Either) const; - QList relationships(const QString& relationshipType = QString(), const QContactId& participantId = QContactId(), QContactRelationshipFilter::Role role = QContactRelationshipFilter::Either) const; + QList relationships(const QContactId& participantId, QContactRelationship::Role role = QContactRelationship::Either) const; + QList relationships(const QString& relationshipType = QString(), const QContactId& participantId = QContactId(), QContactRelationship::Role role = QContactRelationship::Either) const; bool saveRelationship(QContactRelationship* relationship); - QList saveRelationships(QList* relationships); + bool saveRelationships(QList* relationships, QMap* errorMap); bool removeRelationship(const QContactRelationship& relationship); - QList removeRelationships(const QList& relationships); + bool removeRelationships(const QList& relationships, QMap* errorMap); /* Definitions - Accessors and Mutators */ QMap detailDefinitions(const QString& contactType = QContactType::TypeContact) const; @@ -149,21 +149,20 @@ /* Functionality reporting */ enum ManagerFeature { - Groups = 0, - ActionPreferences, + Groups = 0, // backend supports QContactType::TypeGroup type contacts (convenience for clients... should be deprecated) + ActionPreferences, // per-contact action preferences MutableDefinitions, Relationships, ArbitraryRelationshipTypes, - RelationshipOrdering, DetailOrdering, SelfContact, Anonymous, ChangeLogs }; bool hasFeature(QContactManager::ManagerFeature feature, const QString& contactType = QContactType::TypeContact) const; - QStringList supportedRelationshipTypes(const QString& contactType = QContactType::TypeContact) const; + bool isRelationshipTypeSupported(const QString& relationshipType, const QString& contactType = QContactType::TypeContact) const; // replaces the above QList supportedDataTypes() const; - bool isFilterSupported(const QContactFilter& filter) const;// replaces the above. + bool isFilterSupported(const QContactFilter& filter) const; QStringList supportedContactTypes() const; /* return a list of available backends for which a QContactManager can be constructed. */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactmanager_p.cpp --- a/qtmobility/src/contacts/qcontactmanager_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactmanager_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -141,7 +141,7 @@ if (implementationVersion == -1 ||//no given implementation version required versions.isEmpty() || //the manager engine factory does not report any version versions.contains(implementationVersion)) { - m_engine = f->engine(parameters, m_error); + m_engine = f->engine(parameters, &m_error); found = true; break; } @@ -167,7 +167,7 @@ if (!m_engine) { if (m_error == QContactManager::NoError) m_error = QContactManager::DoesNotExistError; - m_engine = new QContactInvalidEngine(); // XXX share + m_engine = new QContactInvalidEngine(); } } } @@ -176,6 +176,10 @@ void QContactManagerData::loadStaticFactories() { if (!m_discoveredStatic) { +#if !defined QT_NO_DEBUG + const bool showDebug = qgetenv("QT_DEBUG_PLUGINS").toInt() > 0; +#endif + m_discoveredStatic = true; /* Clean stuff up at the end */ @@ -188,7 +192,10 @@ QContactActionFactory *g = qobject_cast(staticPlugins.at(i)); if (f) { QString name = f->managerName(); - qDebug() << "Static: found an engine plugin" << f << "with name" << name; +#if !defined QT_NO_DEBUG + if (showDebug) + qDebug() << "Static: found an engine plugin" << f << "with name" << name; +#endif if (name != QLatin1String("memory") && name != QLatin1String("invalid") && !name.isEmpty()) { // we also need to ensure that we haven't already loaded this factory. if (m_engines.keys().contains(name)) { @@ -203,8 +210,10 @@ if (g) { QString name = g->name(); - qDebug() << "Static: found an action factory" << g << "with name" << name; - +#if !defined QT_NO_DEBUG + if (showDebug) + qDebug() << "Static: found an action factory" << g << "with name" << name; +#endif if (m_actionfactories.contains(g)) { qWarning() << "Static contacts plugin" << name << "has the same name as currently loaded plugin; ignored"; } else { @@ -225,9 +234,71 @@ } } +class DirChecker +{ +public: + DirChecker(); + ~DirChecker(); + bool checkDir(const QDir& dir); + +private: +#if defined(Q_OS_SYMBIAN) + RFs rfs; +#endif +}; + +#if defined(Q_OS_SYMBIAN) +DirChecker::DirChecker() +{ + qt_symbian_throwIfError(rfs.Connect()); +} + +bool DirChecker::checkDir(const QDir& dir) +{ + bool pathFound = false; + // In Symbian, going cdUp() in a c:/private// will result in *platsec* error at fileserver (requires AllFiles capability) + // Also, trying to cd() to a nonexistent directory causes *platsec* error. This does not cause functional harm, but should + // nevertheless be changed to use native Symbian methods to avoid unnecessary platsec warnings (as per qpluginloader.cpp). + // Use native Symbian code to check for directory existence, because checking + // for files from under non-existent protected dir like E:/private/ using + // QDir::exists causes platform security violations on most apps. + QString nativePath = QDir::toNativeSeparators(dir.absolutePath()); + TPtrC ptr = TPtrC16(static_cast(nativePath.utf16()), nativePath.length()); + TUint attributes; + TInt err = rfs.Att(ptr, attributes); + if (err == KErrNone) { + // yes, the directory exists. + pathFound = true; + } + return pathFound; +} + +DirChecker::~DirChecker() +{ + rfs.Close(); +} +#else +DirChecker::DirChecker() +{ +} + +DirChecker::~DirChecker() +{ +} + +bool DirChecker::checkDir(const QDir &dir) +{ + return dir.exists(); +} +#endif + /* Plugin loader */ void QContactManagerData::loadFactories() { +#if !defined QT_NO_DEBUG + const bool showDebug = qgetenv("QT_DEBUG_PLUGINS").toInt() > 0; +#endif + // Always do this.. loadStaticFactories(); @@ -242,7 +313,12 @@ QSet processed; paths << QApplication::applicationDirPath() << QApplication::libraryPaths(); - qDebug() << "Plugin paths:" << paths; +#if !defined QT_NO_DEBUG + if (showDebug) + qDebug() << "Plugin paths:" << paths; +#endif + + DirChecker dirChecker; /* Enumerate our plugin paths */ for (int i=0; i < paths.count(); i++) { @@ -250,7 +326,7 @@ continue; processed.insert(paths.at(i)); QDir pluginsDir(paths.at(i)); - if (!pluginsDir.exists()) + if (!dirChecker.checkDir(pluginsDir)) continue; #if defined(Q_OS_WIN) @@ -264,41 +340,20 @@ } #endif -#if defined(Q_OS_SYMBIAN) - // In Symbian, going cdUp() in a c:/private// will result in *platsec* error at fileserver (requires AllFiles capability) - // Also, trying to cd() to a nonexistent directory causes *platsec* error. This does not cause functional harm, but should - // nevertheless be changed to use native Symbian methods to avoid unnecessary platsec warnings (as per qpluginloader.cpp). - RFs rfs; - qt_symbian_throwIfError(rfs.Connect()); - bool pluginPathFound = false; - QStringList directories; - directories << QString("plugins/contacts") << QString("contacts") << QString("../plugins/contacts"); - foreach (const QString& dirName, directories) { - QString testDirPath = pluginsDir.path() + "/" + dirName; - testDirPath = QDir::cleanPath(testDirPath); - // Use native Symbian code to check for directory existence, because checking - // for files from under non-existent protected dir like E:/private/ using - // QDir::exists causes platform security violations on most apps. - QString nativePath = QDir::toNativeSeparators(testDirPath); - TPtrC ptr = TPtrC16(static_cast(nativePath.utf16()), nativePath.length()); - TUint attributes; - TInt err = rfs.Att(ptr, attributes); - if (err == KErrNone) { - // yes, the directory exists. - pluginsDir.cd(testDirPath); - pluginPathFound = true; - break; - } - } - rfs.Close(); - if (pluginPathFound) { -#else - if (pluginsDir.cd(QLatin1String("plugins/contacts")) || pluginsDir.cd(QLatin1String("contacts")) || (pluginsDir.cdUp() && pluginsDir.cd(QLatin1String("plugins/contacts")))) { + QString subdir(QLatin1String("plugins/contacts")); + if (pluginsDir.path().endsWith(QLatin1String("/plugins")) + || pluginsDir.path().endsWith(QLatin1String("/plugins/"))) + subdir = QLatin1String("contacts"); + + if (dirChecker.checkDir(QDir(pluginsDir.path() + QLatin1Char('/') + subdir))) { + pluginsDir.cd(subdir); + const QStringList& files = pluginsDir.entryList(QDir::Files); +#if !defined QT_NO_DEBUG + if (showDebug) + qDebug() << "Looking for contacts plugins in" << pluginsDir.path() << files; #endif - const QStringList& files = pluginsDir.entryList(QDir::Files); - qDebug() << "Looking for plugins in" << pluginsDir.path() << files; for (int j=0; j < files.count(); j++) { - plugins << pluginsDir.absoluteFilePath(files.at(j)); + plugins << pluginsDir.absoluteFilePath(files.at(j)); } } } @@ -311,8 +366,10 @@ if (f) { QString name = f->managerName(); - qDebug() << "Dynamic: found an engine plugin" << f << "with name" << name; - +#if !defined QT_NO_DEBUG + if (showDebug) + qDebug() << "Dynamic: found a contact engine plugin" << f << "with name" << name; +#endif if (name != QLatin1String("memory") && name != QLatin1String("invalid") && !name.isEmpty()) { // we also need to ensure that we haven't already loaded this factory. if (m_engines.keys().contains(name)) { @@ -327,8 +384,10 @@ if (g) { QString name = g->name(); - qDebug() << "Dynamic: found an action factory" << g << "with name" << name; - +#if !defined QT_NO_DEBUG + if (showDebug) + qDebug() << "Dynamic: found a contact action factory" << g << "with name" << name; +#endif // we also need to ensure that we haven't already loaded this factory. if (m_actionfactories.contains(g)) { qWarning() << "Contacts plugin" << plugins.at(i) << "has the same name as currently loaded plugin" << name << "; ignored"; @@ -348,12 +407,14 @@ } /* Debugging */ - if (!f && !g) { +#if !defined QT_NO_DEBUG + if (showDebug && !f && !g) { qDebug() << "Unknown plugin:" << qpl.errorString(); if (qpl.instance()) { qDebug() << "[qobject:" << qpl.instance() << "]"; } } +#endif } QStringList engineNames; @@ -364,8 +425,12 @@ } engineNames << QString::fromAscii("%1[%2]").arg(f->managerName()).arg(versions.join(QString::fromAscii(","))); } - qDebug() << "Found engines:" << engineNames; - qDebug() << "Found actions:" << m_actionmap.keys(); +#if !defined QT_NO_DEBUG + if (showDebug) { + qDebug() << "Found engines:" << engineNames; + qDebug() << "Found actions:" << m_actionmap.keys(); + } +#endif } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactmanager_p.h --- a/qtmobility/src/contacts/qcontactmanager_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactmanager_p.h Mon May 03 13:18:40 2010 +0300 @@ -81,9 +81,7 @@ ~QContactManagerData() { - if (m_engine) - m_engine->deref(); - // We rely on the owning manager to delete m_info + delete m_engine; } void createEngine(const QString& managerName, const QMap& parameters); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactmanagerengine.cpp --- a/qtmobility/src/contacts/qcontactmanagerengine.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactmanagerengine.cpp Mon May 03 13:18:40 2010 +0300 @@ -52,9 +52,12 @@ #include "qcontactabstractrequest_p.h" #include "qcontactrequests.h" #include "qcontactrequests_p.h" +#include "qcontact.h" +#include "qcontactfetchhint.h" #include "qcontact_p.h" #include "qcontactdetail_p.h" + QTM_BEGIN_NAMESPACE /*! @@ -62,17 +65,18 @@ \preliminary \brief The QContactManagerEngine class provides the interface for all implementations of the contact manager backend functionality. - + \ingroup contacts-backends + Instances of this class are usually provided by a \l QContactManagerEngineFactory, which is loaded from a plugin. - + The default implementation of this interface provides a basic level of functionality for some functions so that specific engines can simply implement the functionality that is supported by the specific contacts engine that is being adapted. - + More information on writing a contacts engine plugin is TODO. - + \sa QContactManager, QContactManagerEngineFactory */ @@ -83,19 +87,6 @@ */ /*! - \fn QContactManagerEngine::deref() - - Notifies the engine that it is no longer required. If this - engine can not be shared between managers, it is safe for the - engine to delete itself in this function. - - If the engine implementation can be shared, this function can use a - reference count and track lifetime that way. The factory that - returns an instance of this engine should increment the reference - count in this case. - */ - -/*! \fn QContactManagerEngine::dataChanged() This signal is emitted some time after changes occur to the data managed by this @@ -218,112 +209,64 @@ } /*! - Returns a list of contact ids sorted according to the given list of \a sortOrders. - Depending on the backend, this operation may involve retrieving all the contacts. - Any error which occurs will be saved in \a error. - */ -QList QContactManagerEngine::contactIds(const QList& sortOrders, QContactManager::Error& error) const -{ - Q_UNUSED(sortOrders); - error = QContactManager::NotSupportedError; - return QList(); -} - -/*! Returns a list of contact ids that match the given \a filter, sorted according to the given list of \a sortOrders. Depending on the backend, this filtering operation may involve retrieving all the contacts. Any error which occurs will be saved in \a error. */ -QList QContactManagerEngine::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error& error) const +QList QContactManagerEngine::contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const { - /* Slow way */ - QList ret; - - /* If the filter matches all ids, then return the list of all ids */ - if (filter.type() == QContactFilter::DefaultFilter) { - const QList& allIds = contactIds(sortOrders, error); - if (error != QContactManager::NoError) - return ret; - return allIds; - } + Q_UNUSED(filter); + Q_UNUSED(sortOrders); - /* Otherwise, retrieve all contacts, test and return matching */ - const QList& all = contacts(sortOrders, QStringList(), error); - - if (error != QContactManager::NoError) - return ret; - - for (int j = 0; j < all.count(); j++) { - if (testFilter(filter, all.at(j))) - ret << all.at(j).localId(); - } - - return ret; + *error = QContactManager::NotSupportedError; + return QList(); } /*! - Returns the list of contacts stored in the manager sorted according to the given list of \a sortOrders. - If the given list of detail definition names \a definitionRestrictions is empty, each contact returned will include - all of the details which are stored in it, otherwise only those details which are of a definition whose name is included - in the \a definitionRestrictions list will be included. - Any error which occurs will be saved in \a error. + Returns the list of contacts which match the given \a filter stored in the manager sorted according to the given list of \a sortOrders. + + Any operation error which occurs will be saved in \a error. + + The \a fetchHint parameter describes the optimization hints that a manager may take. + If the \a fetchHint is the default constructed hint, all existing details, relationships and action preferences + in the matching contacts will be returned. A client should not make changes to a contact which has + been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information + loss when saving the contact back to the manager (as the "new" restricted contact will + replace the previously saved contact in the backend). + + \sa QContactFetchHint */ -QList QContactManagerEngine::contacts(const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QList QContactManagerEngine::contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const { + Q_UNUSED(filter); Q_UNUSED(sortOrders); - Q_UNUSED(definitionRestrictions); - error = QContactManager::NotSupportedError; + Q_UNUSED(fetchHint); + *error = QContactManager::NotSupportedError; return QList(); } /*! - Returns a list of contacs that match the given \a filter, sorted according to the given list of \a sortOrders. - Depending on the backend, this filtering operation may involve retrieving all the contacts. - If the given list of detail definition names \a definitionRestrictions is empty, each contact returned will include - all of the details which are stored in it, otherwise only those details which are of a definition whose name is included - in the \a definitionRestrictions list will be included. - Any error which occurs will be saved in \a error. - */ -QList QContactManagerEngine::contacts(const QContactFilter& filter, const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const -{ - /* Slow way */ - QList ret; + Returns the contact in the database identified by \a contactId. - /* Retrieve each contact.. . . */ - const QList& all = contacts(sortOrders, definitionRestrictions, error); - if (error != QContactManager::NoError) - return ret; + If the contact does not exist, an empty, default constructed QContact will be returned, + and the \a error will be set to \c QContactManager::DoesNotExistError. - if (filter.type() == QContactFilter::DefaultFilter) - return all; + Any operation error which occurs will be saved in \a error. - for (int j = 0; j < all.count(); j++) { - if (testFilter(filter, all.at(j))) { - ret << all.at(j); - } - } - - return ret; -} + The \a fetchHint parameter describes the optimization hints that a manager may take. + If the \a fetchHint is the default constructed hint, all existing details, relationships and action preferences + in the matching contact will be returned. A client should not make changes to a contact which has + been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information + loss when saving the contact back to the manager (as the "new" restricted contact will + replace the previously saved contact in the backend). -/*! - Returns the contact in the database identified by \a contactId. - If the list of detail definition names \a definitionRestrictions given is non-empty, - the contact returned will contain at least those details which are of a definition whose name is - contained in the \a definitionRestrictions list. - Note that the returned contact may also contain other details, but this function guarantees that - all details whose definition name is included in the given list of definition names \a definitionRestrictions - will be included in the returned contact. - - The default implementation returns the entire contact. - - Any errors encountered should be stored to \a error. + \sa QContactFetchHint */ -QContact QContactManagerEngine::contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QContact QContactManagerEngine::contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const { Q_UNUSED(contactId); - Q_UNUSED(definitionRestrictions); - error = QContactManager::NotSupportedError; + Q_UNUSED(fetchHint); + *error = QContactManager::NotSupportedError; return QContact(); } @@ -338,10 +281,11 @@ \c QContactManager::NotSupportedError and the function will return false. */ -bool QContactManagerEngine::setSelfContactId(const QContactLocalId& contactId, QContactManager::Error& error) +bool QContactManagerEngine::setSelfContactId(const QContactLocalId& contactId, QContactManager::Error* error) { Q_UNUSED(contactId); - error = QContactManager::NotSupportedError; + + *error = QContactManager::NotSupportedError; return false; } @@ -352,9 +296,9 @@ the concept of a "self" contact, an invalid id will be returned and the \a error will be set to \c QContactManager::DoesNotExistError. */ -QContactLocalId QContactManagerEngine::selfContactId(QContactManager::Error& error) const +QContactLocalId QContactManagerEngine::selfContactId(QContactManager::Error* error) const { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return QContactLocalId(); } @@ -365,46 +309,65 @@ If no relationships of the given \a relationshipType in which the contact identified by the given \a participantId is involved in the given \a role exists, \a error is set to QContactManager::DoesNotExistError. */ -QList QContactManagerEngine::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationshipFilter::Role role, QContactManager::Error& error) const +QList QContactManagerEngine::relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) const { Q_UNUSED(relationshipType); Q_UNUSED(participantId); Q_UNUSED(role); - error = QContactManager::NotSupportedError; + + *error = QContactManager::NotSupportedError; return QList(); } /*! + Saves the given \a relationships in the database and returns true if the operation was successful. + For any relationship which was unable to be saved, an entry into the \a errorMap will be created, + with the key being the index into the input relationships list, and the value being the error which + occurred for that index. + + The overall operation error will be saved in \a error. + */ +bool QContactManagerEngine::saveRelationships(QList* relationships, QMap* errorMap, QContactManager::Error* error) +{ + Q_UNUSED(relationships); + Q_UNUSED(errorMap); + + *error = QContactManager::NotSupportedError; + return false; +} + +/*! Saves the given \a relationship in the database. If the relationship already exists in the database, this function will return \c false and the \a error will be set to \c QContactManager::AlreadyExistsError. If the relationship is saved successfully, this function will return \c true and \a error will be set to \c QContactManager::NoError. Note that relationships cannot be updated directly using this function; in order to update a relationship, you must remove the old relationship, make the required modifications, and then save it. - The given relationship is invalid if it is circular (one of the destination contacts is also the source contact), or - if it references a non-existent local contact (either source or destination). If the given \a relationship is invalid, + The given relationship is invalid if it is circular (the first contact is the second contact), or + if it references a non-existent local contact (either the first or second contact). If the given \a relationship is invalid, the function will return \c false and the \a error will be set to \c QContactManager::InvalidRelationshipError. - If the given \a relationship could not be saved in the database (due to backend limitations) - the function will return \c false and \a error will be set to \c QContactManager::NotSupportedError. - If any destination contact manager URI is not set in the \a relationship, these will be - automatically set to the URI of this manager, before the relationship is saved. + The default implementation of this function converts the argument into a call to saveRelationships. */ -bool QContactManagerEngine::saveRelationship(QContactRelationship* relationship, QContactManager::Error& error) +bool QContactManagerEngine::saveRelationship(QContactRelationship *relationship, QContactManager::Error *error) { - Q_UNUSED(relationship); - error = QContactManager::NotSupportedError; - return false; -} + // Convert to a list op + if (relationship) { + QList list; + list.append(*relationship); + + QMap errors; + bool ret = saveRelationships(&list, &errors, error); -/*! - Saves the given \a relationships in the database and returns a list of error codes. Any error which occurs will be saved in \a error. - */ -QList QContactManagerEngine::saveRelationships(QList* relationships, QContactManager::Error& error) -{ - Q_UNUSED(relationships); - error = QContactManager::NotSupportedError; - return QList(); + if (errors.count() > 0) + *error = errors.begin().value(); + + *relationship = list.value(0); + return ret; + } else { + *error = QContactManager::BadArgumentError; + return false; + } } /*! @@ -413,23 +376,39 @@ relationship exists in the manager, the \a error will be set to \c QContactManager::DoesNotExistError and this function will return false. - The priority of the relationship is ignored when determining existence of the relationship. + The default implementation of this function converts the argument into a call to removeRelationships */ -bool QContactManagerEngine::removeRelationship(const QContactRelationship& relationship, QContactManager::Error& error) +bool QContactManagerEngine::removeRelationship(const QContactRelationship& relationship, QContactManager::Error* error) { - Q_UNUSED(relationship); - error = QContactManager::DoesNotExistError; - return false; + // Convert to a list op + QList list; + list.append(relationship); + + QMap errors; + bool ret = removeRelationships(list, &errors, error); + + if (errors.count() > 0) + *error = errors.begin().value(); + + return ret; } + /*! - Removes the given \a relationships from the database and returns a list of error codes. Any error which occurs will be saved in \a error. + Removes the given \a relationships from the database and returns true if the operation was successful. + For any relationship which was unable to be removed, an entry into the \a errorMap will be created, + with the key being the index into the input relationships list, and the value being the error which + occurred for that index. + + The overall operation error will be saved in \a error. */ -QList QContactManagerEngine::removeRelationships(const QList& relationships, QContactManager::Error& error) +bool QContactManagerEngine::removeRelationships(const QList& relationships, QMap* errorMap, QContactManager::Error* error) { Q_UNUSED(relationships); - error = QContactManager::DoesNotExistError; - return QList(); + Q_UNUSED(errorMap); + + *error = QContactManager::NotSupportedError; + return false; } /*! @@ -437,10 +416,10 @@ Any error that occurs will be stored in \a error. Returns the synthesized display label. */ -QString QContactManagerEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const +QString QContactManagerEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const { // synthesize the display name from the name of the contact, or, failing that, the organisation of the contact. - error = QContactManager::NoError; + *error = QContactManager::NoError; QList allNames = contact.details(QContactName::DefinitionName); const QLatin1String space(" "); @@ -497,22 +476,21 @@ } } - error = QContactManager::UnspecifiedError; + *error = QContactManager::UnspecifiedError; return QString(); } /*! - Returns a copy of the given contact \a contact with its display label set to \a displayLabel. + Sets the contact display label of \a contact to the supplied \a displayLabel. + This function does not touch the database in any way, and is purely a convenience to allow engine implementations to set the display label. */ -QContact QContactManagerEngine::setContactDisplayLabel(const QString& displayLabel, const QContact& contact) const +void QContactManagerEngine::setContactDisplayLabel(QContact* contact, const QString& displayLabel) { - QContact retn = contact; QContactDisplayLabel dl; dl.setValue(QContactDisplayLabel::FieldLabel, displayLabel); setDetailAccessConstraints(&dl, QContactDetail::Irremovable); - retn.d->m_details.replace(0, dl); - return retn; + contact->d->m_details.replace(0, dl); } /*! @@ -522,10 +500,168 @@ { Q_UNUSED(feature); Q_UNUSED(contactType); + return false; } /*! + Given an input \a filter, returns the canonical version of the filter. + + Some of the following transformations may be applied: + \list + \o Any QContactActionFilters are transformed into the corresponding + QContactFilters returned by matching actions + \o Any QContactInvalidFilters contained in a union filter will be removed + \o Any default QContactFilters contained in an intersection filter will be removed + \o Any QContactIntersectionFilters with a QContactInvalidFilter contained will be + replaced with a QContactInvalidFilter + \o Any QContactUnionFilters with a default QContactFilter contained will be replaced + with a default QContactFilter + \o An empty QContactIntersectionFilter will be replaced with a QContactDefaultFilter + \o An empty QContactUnionFilter will be replaced with a QContactInvalidFilter + \o An empty QContactLocalIdFilter will be replaced with a QContactInvalidFilter + \o An intersection or union filter with a single entry will be replaced by that entry + \o A QContactDetailFilter or QContactDetailRangeFilter with no definition name will be replaced with a QContactInvalidFilter + \o A QContactDetailRangeFilter with no range specified will be converted to a QContactDetailFilter + \endlist +*/ +QContactFilter QContactManagerEngine::canonicalizedFilter(const QContactFilter &filter) +{ + switch(filter.type()) { + case QContactFilter::ActionFilter: + { + // Find any matching actions, and do a union filter on their filter objects + QContactActionFilter af(filter); + QList descriptors = QContactAction::actionDescriptors(af.actionName(), af.vendorName(), af.implementationVersion()); + + QList filters; + // There's a small wrinkle if there's a value specified in the action filter + // we have to adjust any contained QContactDetailFilters to have that value + // or test if a QContactDetailRangeFilter contains this value already + for (int j = 0; j < descriptors.count(); j++) { + QContactAction* action = QContactAction::action(descriptors.at(j)); + + // Action filters are not allowed to return action filters, at all + // it's too annoying to check for recursion + QContactFilter d = action->contactFilter(af.value()); + delete action; // clean up. + if (!validateActionFilter(d)) + continue; + + filters.append(d); + } + + if (filters.count() == 0) + return QContactInvalidFilter(); + if (filters.count() == 1) + return filters.first(); + + QContactUnionFilter f; + f.setFilters(filters); + return canonicalizedFilter(f); + } + break; + + case QContactFilter::IntersectionFilter: + { + QContactIntersectionFilter f(filter); + QList filters = f.filters(); + QList::iterator it = filters.begin(); + + // XXX in theory we can remove duplicates in a set filter + while (it != filters.end()) { + QContactFilter canon = canonicalizedFilter(*it); + if (canon.type() == QContactFilter::DefaultFilter) { + it = filters.erase(it); + } else if (canon.type() == QContactFilter::InvalidFilter) { + return QContactInvalidFilter(); + } else { + *it = canon; + ++it; + } + } + + if (filters.count() == 0) + return QContactFilter(); + if (filters.count() == 1) + return filters.first(); + + f.setFilters(filters); + return f; + } + break; + + case QContactFilter::UnionFilter: + { + QContactUnionFilter f(filter); + QList filters = f.filters(); + QList::iterator it = filters.begin(); + + // XXX in theory we can remove duplicates in a set filter + while (it != filters.end()) { + QContactFilter canon = canonicalizedFilter(*it); + if (canon.type() == QContactFilter::InvalidFilter) { + it = filters.erase(it); + } else if (canon.type() == QContactFilter::DefaultFilter) { + return QContactFilter(); + } else { + *it = canon; + ++it; + } + } + + if (filters.count() == 0) + return QContactInvalidFilter(); + if (filters.count() == 1) + return filters.first(); + + f.setFilters(filters); + return f; + } + break; + + case QContactFilter::LocalIdFilter: + { + QContactLocalIdFilter f(filter); + if (f.ids().count() == 0) + return QContactInvalidFilter(); + } + break; // fall through to return at end + + case QContactFilter::ContactDetailRangeFilter: + { + QContactDetailRangeFilter f(filter); + if (f.detailDefinitionName().isEmpty()) + return QContactInvalidFilter(); + if (f.minValue() == f.maxValue() + && f.rangeFlags() == (QContactDetailRangeFilter::ExcludeLower | QContactDetailRangeFilter::ExcludeUpper)) + return QContactInvalidFilter(); + if ((f.minValue().isNull() && f.maxValue().isNull()) || (f.minValue() == f.maxValue())) { + QContactDetailFilter df; + df.setDetailDefinitionName(f.detailDefinitionName(), f.detailFieldName()); + df.setMatchFlags(f.matchFlags()); + df.setValue(f.minValue()); + return df; + } + } + break; // fall through to return at end + + case QContactFilter::ContactDetailFilter: + { + QContactDetailFilter f(filter); + if (f.detailDefinitionName().isEmpty()) + return QContactInvalidFilter(); + } + break; // fall through to return at end + + default: + break; // fall through to return at end + } + return filter; +} + + +/*! Returns a whether the supplied \a filter can be implemented natively by this engine. If not, the base class implementation will emulate the functionality. @@ -533,6 +669,7 @@ bool QContactManagerEngine::isFilterSupported(const QContactFilter& filter) const { Q_UNUSED(filter); + return false; } @@ -545,12 +682,20 @@ } /*! - Returns the list of relationship types supported by this engine for contacts whose type is the given \a contactType. + Returns true if the manager supports the relationship type specified in \a relationshipType for + contacts whose type is the given \a contactType. + + Note that some managers may support the relationship type for a contact in a limited manner + (for example, only as the first contact in the relationship, or only as the second contact + in the relationship). In this case, it will still return true. It will only return false + if the relationship is entirely unsupported for the given type of contact. */ -QStringList QContactManagerEngine::supportedRelationshipTypes(const QString& contactType) const +bool QContactManagerEngine::isRelationshipTypeSupported(const QString& relationshipType, const QString& contactType) const { + Q_UNUSED(relationshipType); Q_UNUSED(contactType); - return QStringList(); + + return false; } /*! @@ -562,7 +707,7 @@ QStringList QContactManagerEngine::supportedContactTypes() const { QContactManager::Error error; - QList allowableVals = detailDefinition(QContactType::DefinitionName, QContactType::TypeContact, error).fields().value(QContactType::FieldType).allowableValues(); + QList allowableVals = detailDefinition(QContactType::DefinitionName, QContactType::TypeContact, &error).fields().value(QContactType::FieldType).allowableValues(); QStringList retn; for (int i = 0; i < allowableVals.size(); i++) retn += allowableVals.at(i).toString(); @@ -570,13 +715,10 @@ } /*! + \fn int QContactManagerEngine::managerVersion() const + Returns the engine backend implementation version number */ -int QContactManagerEngine::managerVersion() const -{ - return 0; -} - /*! Returns the base schema definitions */ QMap > QContactManagerEngine::schemaDefinitions() @@ -677,9 +819,10 @@ f.setDataType(QVariant::String); f.setAllowableValues(QVariantList()); fields.insert(QContactOrganization::FieldName, f); - fields.insert(QContactOrganization::FieldLogo, f); fields.insert(QContactOrganization::FieldLocation, f); fields.insert(QContactOrganization::FieldTitle, f); + f.setDataType(QVariant::Url); + fields.insert(QContactOrganization::FieldLogoUrl, f); f.setDataType(QVariant::StringList); fields.insert(QContactOrganization::FieldDepartment, f); f.setAllowableValues(contexts); @@ -700,7 +843,7 @@ subTypes << QString(QLatin1String(QContactPhoneNumber::SubTypeBulletinBoardSystem)); subTypes << QString(QLatin1String(QContactPhoneNumber::SubTypeCar)); subTypes << QString(QLatin1String(QContactPhoneNumber::SubTypeDtmfMenu)); - subTypes << QString(QLatin1String(QContactPhoneNumber::SubTypeFacsimile)); + subTypes << QString(QLatin1String(QContactPhoneNumber::SubTypeFax)); subTypes << QString(QLatin1String(QContactPhoneNumber::SubTypeLandline)); subTypes << QString(QLatin1String(QContactPhoneNumber::SubTypeMessagingCapable)); subTypes << QString(QLatin1String(QContactPhoneNumber::SubTypeMobile)); @@ -827,18 +970,6 @@ f.setDataType(QVariant::String); fields.insert(QContactOnlineAccount::FieldAccountUri, f); fields.insert(QContactOnlineAccount::FieldServiceProvider, f); - fields.insert(QContactOnlineAccount::FieldNickname, f); - fields.insert(QContactOnlineAccount::FieldStatusMessage, f); - QVariantList presenceValues; - presenceValues << QString(QLatin1String(QContactOnlineAccount::PresenceAvailable)); - presenceValues << QString(QLatin1String(QContactOnlineAccount::PresenceHidden)); - presenceValues << QString(QLatin1String(QContactOnlineAccount::PresenceBusy)); - presenceValues << QString(QLatin1String(QContactOnlineAccount::PresenceAway)); - presenceValues << QString(QLatin1String(QContactOnlineAccount::PresenceExtendedAway)); - presenceValues << QString(QLatin1String(QContactOnlineAccount::PresenceUnknown)); - presenceValues << QString(QLatin1String(QContactOnlineAccount::PresenceOffline)); - f.setAllowableValues(presenceValues); - fields.insert(QContactOnlineAccount::FieldPresence, f); f.setDataType(QVariant::StringList); f.setAllowableValues(contexts); fields.insert(QContactDetail::FieldContext, f); @@ -848,24 +979,30 @@ d.setUnique(false); retn.insert(d.name(), d); - // avatar - d.setName(QContactAvatar::DefinitionName); + // presence + d.setName(QContactPresence::DefinitionName); fields.clear(); - f.setDataType(QVariant::String); - f.setAllowableValues(QVariantList()); - fields.insert(QContactAvatar::FieldAvatar, f); - - f.setDataType(QVariant::Pixmap); f.setAllowableValues(QVariantList()); - fields.insert(QContactAvatar::FieldAvatarPixmap, f); - - f.setDataType(QVariant::String); // only allowed to be a single subtype - subTypes.clear(); - subTypes << QString(QLatin1String(QContactAvatar::SubTypeImage)); - subTypes << QString(QLatin1String(QContactAvatar::SubTypeTexturedMesh)); - subTypes << QString(QLatin1String(QContactAvatar::SubTypeVideo)); - f.setAllowableValues(subTypes); - fields.insert(QContactAvatar::FieldSubType, f); + f.setDataType(QVariant::DateTime); + fields.insert(QContactPresence::FieldTimestamp, f); + f.setDataType(QVariant::String); + fields.insert(QContactPresence::FieldNickname, f); + fields.insert(QContactPresence::FieldCustomMessage, f); + fields.insert(QContactPresence::FieldPresenceStateText, f); + QVariantList presenceValues; + presenceValues << QContactPresence::PresenceAvailable; + presenceValues << QContactPresence::PresenceAway; + presenceValues << QContactPresence::PresenceBusy; + presenceValues << QContactPresence::PresenceExtendedAway; + presenceValues << QContactPresence::PresenceHidden; + presenceValues << QContactPresence::PresenceOffline; + presenceValues << QContactPresence::PresenceUnknown; + f.setAllowableValues(presenceValues); + f.setDataType(QVariant::Int); + fields.insert(QContactPresence::FieldPresenceState, f); + f.setAllowableValues(QVariantList()); + f.setDataType(QVariant::Url); + fields.insert(QContactPresence::FieldPresenceStateImageUrl, f); f.setDataType(QVariant::StringList); f.setAllowableValues(contexts); fields.insert(QContactDetail::FieldContext, f); @@ -873,6 +1010,68 @@ d.setUnique(false); retn.insert(d.name(), d); + // global presence + d.setName(QContactGlobalPresence::DefinitionName); + fields.clear(); + f.setAllowableValues(QVariantList()); + f.setDataType(QVariant::DateTime); + fields.insert(QContactGlobalPresence::FieldTimestamp, f); + f.setDataType(QVariant::String); + fields.insert(QContactGlobalPresence::FieldNickname, f); + fields.insert(QContactGlobalPresence::FieldCustomMessage, f); + fields.insert(QContactGlobalPresence::FieldPresenceStateText, f); + f.setAllowableValues(presenceValues); + f.setDataType(QVariant::Int); + fields.insert(QContactGlobalPresence::FieldPresenceState, f); + f.setAllowableValues(QVariantList()); + f.setDataType(QVariant::Url); + fields.insert(QContactGlobalPresence::FieldPresenceStateImageUrl, f); + f.setDataType(QVariant::StringList); + f.setAllowableValues(contexts); + fields.insert(QContactDetail::FieldContext, f); + d.setFields(fields); + d.setUnique(true); // unique and read only! + retn.insert(d.name(), d); + + // avatar + d.setName(QContactAvatar::DefinitionName); + fields.clear(); + f.setDataType(QVariant::Url); + f.setAllowableValues(QVariantList()); + fields.insert(QContactAvatar::FieldImageUrl, f); + fields.insert(QContactAvatar::FieldVideoUrl, f); + f.setDataType(QVariant::StringList); + f.setAllowableValues(contexts); + fields.insert(QContactDetail::FieldContext, f); + d.setFields(fields); + d.setUnique(false); + retn.insert(d.name(), d); + + // ringtone + d.setName(QContactRingtone::DefinitionName); + fields.clear(); + f.setDataType(QVariant::Url); + f.setAllowableValues(QVariantList()); + fields.insert(QContactRingtone::FieldAudioRingtoneUrl, f); + fields.insert(QContactRingtone::FieldVideoRingtoneUrl, f); + fields.insert(QContactRingtone::FieldVibrationRingtoneUrl, f); + f.setDataType(QVariant::StringList); + f.setAllowableValues(contexts); + fields.insert(QContactDetail::FieldContext, f); + d.setFields(fields); + d.setUnique(false); + retn.insert(d.name(), d); + + // thumbnail + d.setName(QContactThumbnail::DefinitionName); + fields.clear(); + f.setDataType(QVariant::Image); + f.setAllowableValues(QVariantList()); + fields.insert(QContactThumbnail::FieldThumbnail, f); + d.setFields(fields); + d.setUnique(true); // only one thumbnail, no context. + retn.insert(d.name(), d); + // GeoLocation d.setName(QContactGeoLocation::DefinitionName); fields.clear(); @@ -940,6 +1139,19 @@ d.setUnique(false); retn.insert(d.name(), d); + // tag + d.setName(QContactTag::DefinitionName); + fields.clear(); + f.setDataType(QVariant::String); + f.setAllowableValues(QVariantList()); + fields.insert(QContactTag::FieldTag, f); + f.setDataType(QVariant::StringList); + f.setAllowableValues(contexts); + fields.insert(QContactDetail::FieldContext, f); + d.setFields(fields); + d.setUnique(false); + retn.insert(d.name(), d); + // in the default schema, we have two contact types: TypeContact, TypeGroup. // the entire default schema is valid for both types. QMap > retnSchema; @@ -949,57 +1161,6 @@ return retnSchema; } - -/*! - Adds the given \a contact to the database if \a contact has a - default-constructed id, or an id with the manager URI set to the URI of - this manager and a local id of zero. - - If the manager URI of the id of the \a contact is neither empty nor equal to the URI of - this manager, or local id of the \a contact is non-zero but does not exist in the - manager, the operation will fail and \a error will be set to - \c QContactManager::DoesNotExistError. - - Alternatively, the function will update the existing contact in the database if \a contact - has a non-zero id and currently exists in the database. - - If the \a contact contains one or more details whose definitions have - not yet been saved with the manager, the operation will fail and \a error will be - set to \c QContactManager::UnsupportedError. - - If the \a contact has had its relationships reordered, the manager - will check to make sure that every relationship that the contact is currently - involved in is included in the reordered list, and that no relationships which - either do not involve the contact, or have not been saved in the manager are - included in the list. If these conditions are not met, the function will - return \c false and \a error will be set to \c QContactManager::InvalidRelationshipError. - - The engine must automatically synthesize the display label of the contact when it is saved, - by either using the built in \l synthesizedDisplayLabel() function or overriding it, and - then calling \l setContactDisplayLabel(). - - Returns false on failure, or true on - success. On successful save of a contact with an id of zero, its - id will be set to a new, valid id with the manager URI set to the URI of - this manager, and the local id set to a new, valid local id. - - This function is called by the contacts framework in both the - single contact save and batch contact save, if the saveContacts - function is not overridden. - - The backend must emit the appropriate signals to inform clients of changes - to the database resulting from this operation. - - Any errors encountered during this operation should be stored to - \a error. - */ -bool QContactManagerEngine::saveContact(QContact* contact, QContactManager::Error& error) -{ - Q_UNUSED(contact); - error = QContactManager::NotSupportedError; - return false; -} - /*! Checks that the given contact \a contact does not have details which don't conform to a valid definition, violate uniqueness constraints, @@ -1016,7 +1177,7 @@ Any errors encountered during this operation should be stored to \a error. */ -bool QContactManagerEngine::validateContact(const QContact& contact, QContactManager::Error& error) const +bool QContactManagerEngine::validateContact(const QContact& contact, QContactManager::Error* error) const { QList uniqueDefinitionIds; @@ -1026,15 +1187,15 @@ QVariantMap values = d.variantValues(); QContactDetailDefinition def = detailDefinition(d.definitionName(), contact.type(), error); // check that the definition is supported - if (error != QContactManager::NoError) { - error = QContactManager::InvalidDetailError; + if (*error != QContactManager::NoError) { + *error = QContactManager::InvalidDetailError; return false; // this definition is not supported. } // check uniqueness if (def.isUnique()) { if (uniqueDefinitionIds.contains(def.name())) { - error = QContactManager::AlreadyExistsError; + *error = QContactManager::AlreadyExistsError; return false; // can't have two of a unique detail. } uniqueDefinitionIds.append(def.name()); @@ -1045,14 +1206,14 @@ const QString& key = keys.at(i); // check that no values exist for nonexistent fields. if (!def.fields().contains(key)) { - error = QContactManager::InvalidDetailError; + *error = QContactManager::InvalidDetailError; return false; // value for nonexistent field. } QContactDetailFieldDefinition field = def.fields().value(key); // check that the type of each value corresponds to the allowable field type if (static_cast(field.dataType()) != values.value(key).userType()) { - error = QContactManager::InvalidDetailError; + *error = QContactManager::InvalidDetailError; return false; // type doesn't match. } @@ -1064,13 +1225,13 @@ QList innerValues = values.value(key).toList(); for (int i = 0; i < innerValues.size(); i++) { if (!field.allowableValues().contains(innerValues.at(i))) { - error = QContactManager::InvalidDetailError; + *error = QContactManager::InvalidDetailError; return false; // value not allowed. } } } else if (!field.allowableValues().contains(values.value(key))) { // the datatype is not a list; the value wasn't allowed. - error = QContactManager::InvalidDetailError; + *error = QContactManager::InvalidDetailError; return false; // value not allowed. } } @@ -1080,7 +1241,6 @@ return true; } - /*! Checks that the given detail definition \a definition seems valid, with a correct id, defined fields, and any specified value types @@ -1093,15 +1253,15 @@ Any errors encountered during this operation should be stored to \a error. */ -bool QContactManagerEngine::validateDefinition(const QContactDetailDefinition& definition, QContactManager::Error& error) const +bool QContactManagerEngine::validateDefinition(const QContactDetailDefinition& definition, QContactManager::Error* error) const { if (definition.name().isEmpty()) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } if (definition.fields().count() == 0) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } @@ -1111,56 +1271,37 @@ while(it.hasNext()) { it.next(); if (it.key().isEmpty()) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } if (!types.contains(it.value().dataType())) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } // Check that each allowed value is the same type for (int i=0; i < it.value().allowableValues().count(); i++) { if (it.value().allowableValues().at(i).type() != it.value().dataType()) { - error = QContactManager::BadArgumentError; + *error = QContactManager::BadArgumentError; return false; } } } - error = QContactManager::NoError; + *error = QContactManager::NoError; return true; } /*! - Remove the contact identified by \a contactId from the database, - and removes the contact from any relationships in which it was involved. - Returns true if the contact was removed successfully, otherwise - returns false. - - The backend must emit the appropriate signals to inform clients of changes - to the database resulting from this operation. - - Any errors encountered during this operation should be stored to - \a error. - */ -bool QContactManagerEngine::removeContact(const QContactLocalId& contactId, QContactManager::Error& error) -{ - Q_UNUSED(contactId); - error = QContactManager::NotSupportedError; - return false; -} - -/*! Returns the registered detail definitions which are valid for contacts whose type is of the given \a contactType in this engine. Any errors encountered during this operation should be stored to \a error. */ -QMap QContactManagerEngine::detailDefinitions(const QString& contactType, QContactManager::Error& error) const +QMap QContactManagerEngine::detailDefinitions(const QString& contactType, QContactManager::Error* error) const { Q_UNUSED(contactType); - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QMap(); } @@ -1172,16 +1313,14 @@ Any errors encountered during this operation should be stored to \a error. */ -QContactDetailDefinition QContactManagerEngine::detailDefinition(const QString& definitionName, const QString& contactType, QContactManager::Error& error) const +QContactDetailDefinition QContactManagerEngine::detailDefinition(const QString& definitionName, const QString& contactType, QContactManager::Error* error) const { - Q_UNUSED(definitionName); - QMap definitions = detailDefinitions(contactType, error); if (definitions.contains(definitionName)) { - error = QContactManager::NoError; + *error = QContactManager::NoError; return definitions.value(definitionName); } else { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return QContactDetailDefinition(); } } @@ -1197,11 +1336,12 @@ Any errors encountered during this operation should be stored to \a error. */ -bool QContactManagerEngine::saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error& error) +bool QContactManagerEngine::saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error* error) { Q_UNUSED(def); Q_UNUSED(contactType); - error = QContactManager::NotSupportedError; + + *error = QContactManager::NotSupportedError; return false; } @@ -1216,11 +1356,12 @@ Any errors encountered during this operation should be stored to \a error. */ -bool QContactManagerEngine::removeDetailDefinition(const QString& definitionName, const QString& contactType, QContactManager::Error& error) +bool QContactManagerEngine::removeDetailDefinition(const QString& definitionName, const QString& contactType, QContactManager::Error* error) { Q_UNUSED(definitionName); Q_UNUSED(contactType); - error = QContactManager::NotSupportedError; + + *error = QContactManager::NotSupportedError; return false; } @@ -1234,13 +1375,76 @@ Application code should not call this function, since validation of the detail will happen in the engine in any case. */ -void QContactManagerEngine::setDetailAccessConstraints(QContactDetail *detail, QContactDetail::AccessConstraints constraints) const +void QContactManagerEngine::setDetailAccessConstraints(QContactDetail *detail, QContactDetail::AccessConstraints constraints) { if (detail) { QContactDetailPrivate::setAccessConstraints(detail, constraints); } } + +/*! + Adds the given \a contact to the database if \a contact has a + default-constructed id, or an id with the manager URI set to the URI of + this manager and a local id of zero, otherwise updates the contact in + the database which has the same id to be the given \a contact. + If the id is non-zero but does not identify any contact stored in the + manager, the function will return false and \a error will be set to + \c QContactManager::DoesNotExistError. + + Returns true if the save operation completed successfully, otherwise + returns false. Any error which occurs will be saved in \a error. + + The default implementation will convert this into a call to saveContacts. + + \sa managerUri() + */ +bool QContactManagerEngine::saveContact(QContact* contact, QContactManager::Error* error) +{ + // Convert to a list op + if (contact) { + QList list; + list.append(*contact); + + QMap errors; + bool ret = saveContacts(&list, &errors, error); + + if (errors.count() > 0) + *error = errors.begin().value(); + + *contact = list.value(0); + return ret; + } else { + *error = QContactManager::BadArgumentError; + return false; + } +} + +/*! + Remove the contact identified by \a contactId from the database, + and also removes any relationships in which the contact was involved. + Returns true if the contact was removed successfully, otherwise + returns false. + + Any error which occurs will be saved in \a error. + + The default implementation will convert this into a call to removeContacts. + */ +bool QContactManagerEngine::removeContact(const QContactLocalId& contactId, QContactManager::Error* error) +{ + // Convert to a list op + QList list; + list.append(contactId); + + QMap errors; + bool ret = removeContacts(list, &errors, error); + + if (errors.count() > 0) + *error = errors.begin().value(); + + return ret; +} + /*! Adds the list of contacts given by \a contacts list to the database. Returns true if the contacts were saved successfully, otherwise false. @@ -1260,32 +1464,12 @@ \sa QContactManager::saveContact() */ -bool QContactManagerEngine::saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error& error) +bool QContactManagerEngine::saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error) { - if(errorMap) { - errorMap->clear(); - } - - if (!contacts) { - error = QContactManager::BadArgumentError; - return false; - } - - QContactManager::Error functionError = QContactManager::NoError; - for (int i = 0; i < contacts->count(); i++) { - QContact current = contacts->at(i); - if (!saveContact(¤t, error)) { - functionError = error; - if (errorMap) { - errorMap->insert(i, functionError); - } - } else { - (*contacts)[i] = current; - } - } - - error = functionError; - return (functionError == QContactManager::NoError); + Q_UNUSED(contacts); + Q_UNUSED(errorMap); + *error = QContactManager::NotSupportedError; + return false; } /*! @@ -1293,6 +1477,9 @@ \a contactIds. Returns true if all contacts were removed successfully, otherwise false. + Any contact that was removed successfully will have the relationships + in which it was involved removed also. + The manager might populate \a errorMap (the map of indices of the \a contactIds list to the error which occurred when saving the contact at that index) for every index for which the contact could not be removed, if it is able. @@ -1300,44 +1487,108 @@ only return \c QContactManager::NoError if all contacts were removed successfully. - For each contact that was removed succesfully, the corresponding - id in the \a contactIds list will be retained but set to zero. The id of contacts - that were not successfully removed will be left alone. - - Any contact that was removed successfully will have the relationships - in which it was involved removed also. + If the list contains ids which do not identify a valid contact in the manager, the function will + remove any contacts which are identified by ids in the \a contactIds list, insert + \c QContactManager::DoesNotExist entries into the \a errorMap for the indices of invalid ids + in the \a contactIds list, return false, and set the overall operation error to + \c QContactManager::DoesNotExistError. Any errors encountered during this operation should be stored to \a error. \sa QContactManager::removeContact() */ -bool QContactManagerEngine::removeContacts(QList* contactIds, QMap* errorMap, QContactManager::Error& error) +bool QContactManagerEngine::removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error) +{ + Q_UNUSED(contactIds); + Q_UNUSED(errorMap); + *error = QContactManager::NotSupportedError; + return false; +} + +/*! + Returns a pruned or modified version of the \a original contact which is valid and can be saved in the manager. + The returned contact might have entire details removed or arbitrarily changed. The cache of relationships + in the contact are ignored entirely when considering compatibility with the backend, as they are + saved and validated separately. Any error which occurs will be saved to \a error. + */ +QContact QContactManagerEngine::compatibleContact(const QContact& original, QContactManager::Error* error) const { - if(errorMap) { - errorMap->clear(); - } + QContact conforming; + QContactManager::Error tempError; + QList uniqueDefinitionIds; + QList allDetails = original.details(); + QMap defs = detailDefinitions(original.type(), &tempError); + for (int j = 0; j < allDetails.size(); j++) { + // check that the detail conforms to the definition in this manager. + // if so, then add it to the conforming contact to be returned. if not, prune it. + const QContactDetail& d = allDetails.at(j); - if (!contactIds) { - error = QContactManager::BadArgumentError; - return false; - } + QVariantMap values = d.variantValues(); + QContactDetailDefinition def = detailDefinition(d.definitionName(), original.type(), &tempError); + // check that the definition is supported + if (*error != QContactManager::NoError) { + continue; // this definition is not supported. + } + + // check uniqueness + if (def.isUnique()) { + if (uniqueDefinitionIds.contains(def.name())) { + continue; // can't have two of a unique detail. + } + uniqueDefinitionIds.append(def.name()); + } - QContactManager::Error functionError = QContactManager::NoError; - for (int i = 0; i < contactIds->count(); i++) { - QContactLocalId current = contactIds->at(i); - if (!removeContact(current, error)) { - functionError = error; - if (errorMap) { - errorMap->insert(i, functionError); + bool addToConforming = true; + QList keys = values.keys(); + for (int i=0; i < keys.count(); i++) { + const QString& key = keys.at(i); + // check that no values exist for nonexistent fields. + if (!def.fields().contains(key)) { + addToConforming = false; + break; // value for nonexistent field. + } + + QContactDetailFieldDefinition field = def.fields().value(key); + // check that the type of each value corresponds to the allowable field type + if (static_cast(field.dataType()) != values.value(key).userType()) { + addToConforming = false; + break; // type doesn't match. } - } else { - (*contactIds)[i] = 0; + + // check that the value is allowable + // if the allowable values is an empty list, any are allowed. + if (!field.allowableValues().isEmpty()) { + // if the field datatype is a list, check that it contains only allowable values + if (field.dataType() == QVariant::List || field.dataType() == QVariant::StringList) { + QList innerValues = values.value(key).toList(); + for (int i = 0; i < innerValues.size(); i++) { + if (!field.allowableValues().contains(innerValues.at(i))) { + addToConforming = false; + break; // value not allowed. + } + } + } else if (!field.allowableValues().contains(values.value(key))) { + // the datatype is not a list; the value wasn't allowed. + addToConforming = false; + break; // value not allowed. + } + } + } + + // if it conforms to this manager's schema, save it in the conforming contact + // else, ignore it (prune it out of the conforming contact). + if (addToConforming) { + QContactDetail saveCopy = d; + conforming.saveDetail(&saveCopy); } } - error = functionError; - return (functionError == QContactManager::NoError); + if (!conforming.isEmpty()) + *error = QContactManager::NoError; + else + *error = QContactManager::DoesNotExistError; + return conforming; } /*! @@ -1461,7 +1712,92 @@ Qt::CaseSensitivity cs = (cdf.matchFlags() & QContactFilter::MatchCaseSensitive) ? Qt::CaseSensitive : Qt::CaseInsensitive; /* See what flags are requested, since we're looking at a value */ - if (cdf.matchFlags() & (QContactFilter::MatchEndsWith | QContactFilter::MatchStartsWith | QContactFilter::MatchContains | QContactFilter::MatchFixedString)) { + if (cdf.matchFlags() & QContactFilter::MatchPhoneNumber) { + /* Doing phone number filtering. We hand roll an implementation here, backends will obviously want to override this. */ + QString input = cdf.value().toString(); + + /* preprocess the input - ignore any non-digits (doesn't perform ITU-T collation */ + QString preprocessedInput; + for (int i = 0; i < input.size(); i++) { + QChar current = input.at(i).toLower(); + if (current.isDigit()) preprocessedInput.append(current); + // note: we ignore characters like '+', 'p', 'w', '*' and '#' which may be important. + } + + /* Look at every detail in the set of details and compare */ + for (int j = 0; j < details.count(); j++) { + const QContactDetail& detail = details.at(j); + const QString& valueString = detail.value(cdf.detailFieldName()); + QString preprocessedValueString; + for (int i = 0; i < valueString.size(); i++) { + QChar current = valueString.at(i).toLower(); + if (current.isDigit()) preprocessedValueString.append(current); + // note: we ignore characters like '+', 'p', 'w', '*' and '#' which may be important. + } + + // if the matchflags input don't require a particular criteria to pass, we assume that it has passed. + // the "default" match strategy is an "endsWith" strategy. + bool me = (cdf.matchFlags() & 7) == QContactFilter::MatchExactly; + bool mc = (cdf.matchFlags() & 7) == QContactFilter::MatchContains; + bool msw = (cdf.matchFlags() & 7) == QContactFilter::MatchStartsWith; + bool mew = (cdf.matchFlags() & 7) == QContactFilter::MatchEndsWith; + + bool mer = (me ? preprocessedValueString == preprocessedInput : true); + bool mcr = (mc ? preprocessedValueString.contains(preprocessedInput) : true); + bool mswr = (msw ? preprocessedValueString.startsWith(preprocessedInput) : true); + bool mewr = (mew ? preprocessedValueString.endsWith(preprocessedInput) : true); + if (mewr && mswr && mcr && mer) { + return true; // this detail meets all of the criteria which were required, and hence must match. + } + } + } else if (cdf.matchFlags() & QContactFilter::MatchKeypadCollation) { + // XXX TODO: not sure about the filtering semantics for MatchKeypadCollation. + QString input = cdf.value().toString(); + + /* Look at every detail in the set of details and compare */ + for (int j = 0; j < details.count(); j++) { + const QContactDetail& detail = details.at(j); + const QString& valueString = detail.value(cdf.detailFieldName()).toLower(); + + // preprocess the valueString + QString preprocessedValue; + for (int i = 0; i < valueString.size(); i++) { + // we use ITU-T keypad collation by default. + QChar currentValueChar = valueString.at(i); + if (currentValueChar == QLatin1Char('a') || currentValueChar == QLatin1Char('b') || currentValueChar == QLatin1Char('c')) + preprocessedValue.append(QLatin1Char('2')); + else if (currentValueChar == QLatin1Char('d') || currentValueChar == QLatin1Char('e') || currentValueChar == QLatin1Char('f')) + preprocessedValue.append(QLatin1Char('3')); + else if (currentValueChar == QLatin1Char('g') || currentValueChar == QLatin1Char('h') || currentValueChar == QLatin1Char('i')) + preprocessedValue.append(QLatin1Char('4')); + else if (currentValueChar == QLatin1Char('j') || currentValueChar == QLatin1Char('k') || currentValueChar == QLatin1Char('l')) + preprocessedValue.append(QLatin1Char('5')); + else if (currentValueChar == QLatin1Char('m') || currentValueChar == QLatin1Char('n') || currentValueChar == QLatin1Char('o')) + preprocessedValue.append(QLatin1Char('6')); + else if (currentValueChar == QLatin1Char('p') || currentValueChar == QLatin1Char('q') || currentValueChar == QLatin1Char('r') || currentValueChar == QLatin1Char('s')) + preprocessedValue.append(QLatin1Char('7')); + else if (currentValueChar == QLatin1Char('t') || currentValueChar == QLatin1Char('u') || currentValueChar == QLatin1Char('v')) + preprocessedValue.append(QLatin1Char('8')); + else if (currentValueChar == QLatin1Char('w') || currentValueChar == QLatin1Char('x') || currentValueChar == QLatin1Char('y') || currentValueChar == QLatin1Char('z')) + preprocessedValue.append(QLatin1Char('9')); + else + preprocessedValue.append(currentValueChar); + } + + bool me = (cdf.matchFlags() & 7) == QContactFilter::MatchExactly; + bool mc = (cdf.matchFlags() & 7) == QContactFilter::MatchContains; + bool msw = (cdf.matchFlags() & 7) == QContactFilter::MatchStartsWith; + bool mew = (cdf.matchFlags() & 7) == QContactFilter::MatchEndsWith; + + bool mer = (me ? preprocessedValue == input : true); + bool mcr = (mc ? preprocessedValue.contains(input) : true); + bool mswr = (msw ? preprocessedValue.startsWith(input) : true); + bool mewr = (mew ? preprocessedValue.endsWith(input) : true); + if (mewr && mswr && mcr && mer) { + return true; // this detail meets all of the criteria which were required, and hence must match. + } + } + } else if (cdf.matchFlags() & (QContactFilter::MatchEndsWith | QContactFilter::MatchStartsWith | QContactFilter::MatchContains | QContactFilter::MatchFixedString)) { /* We're strictly doing string comparisons here */ bool matchStarts = (cdf.matchFlags() & 7) == QContactFilter::MatchStartsWith; bool matchEnds = (cdf.matchFlags() & 7) == QContactFilter::MatchEndsWith; @@ -1610,17 +1946,17 @@ // now check to see if we have a match. foreach (const QContactRelationship& rel, allRelationships) { // perform the matching. - if (rf.relatedContactRole() == QContactRelationshipFilter::Second) { // this is the role of the related contact; ie, to match, contact.id() must be the first in the relationship. + if (rf.relatedContactRole() == QContactRelationship::Second) { // this is the role of the related contact; ie, to match, contact.id() must be the first in the relationship. if ((rf.relationshipType().isEmpty() || rel.relationshipType() == rf.relationshipType()) && CONTACT_IDS_MATCH(rel.first(), contact.id()) && CONTACT_IDS_MATCH(relatedContactId, rel.second())) { return true; } - } else if (rf.relatedContactRole() == QContactRelationshipFilter::First) { // this is the role of the related contact; ie, to match, contact.id() must be the second in the relationship. + } else if (rf.relatedContactRole() == QContactRelationship::First) { // this is the role of the related contact; ie, to match, contact.id() must be the second in the relationship. if ((rf.relationshipType().isEmpty() || rel.relationshipType() == rf.relationshipType()) && CONTACT_IDS_MATCH(rel.second(), contact.id()) && CONTACT_IDS_MATCH(relatedContactId, rel.first())) { return true; } - } else { // QContactRelationshipFilter::Either + } else { // QContactRelationship::Either if ((rf.relationshipType().isEmpty() || rel.relationshipType() == rf.relationshipType()) && ((CONTACT_IDS_MATCH(relatedContactId, rel.first()) && !CONTACT_IDS_MATCH(contactUri, relatedContactId)) || (CONTACT_IDS_MATCH(relatedContactId, rel.second()) && !CONTACT_IDS_MATCH(contactUri, relatedContactId)))) { return true; @@ -1799,12 +2135,14 @@ */ void QContactManagerEngine::addSorted(QList* sorted, const QContact& toAdd, const QList& sortOrders) { - for (int i = 0; i < sorted->size(); i++) { - // check to see if the new contact should be inserted here - int comparison = compareContact(sorted->at(i), toAdd, sortOrders); - if (comparison > 0) { - sorted->insert(i, toAdd); - return; + if (sortOrders.count() > 0) { + for (int i = 0; i < sorted->size(); i++) { + // check to see if the new contact should be inserted here + int comparison = compareContact(sorted->at(i), toAdd, sortOrders); + if (comparison > 0) { + sorted->insert(i, toAdd); + return; + } } } @@ -1822,11 +2160,11 @@ QContactManagerEngine::addSorted(&sortedContacts, c, sortOrders); } - foreach(const QContact c, sortedContacts) { + foreach(const QContact& c, sortedContacts) { sortedIds.append(c.localId()); } } else { - foreach(const QContact c, cs) { + foreach(const QContact& c, cs) { sortedIds.append(c.localId()); } } @@ -1885,136 +2223,219 @@ /*! Updates the given asynchronous request \a req by setting the new \a state - of the request. It then causes the stateChanged() signal to be emitted by the request. + of the request. If the new state is different, the stateChanged() signal + will be emitted by the request. */ void QContactManagerEngine::updateRequestState(QContactAbstractRequest* req, QContactAbstractRequest::State state) { - req->d_ptr->m_state = state; - emit req->stateChanged(state); + if (req->d_ptr->m_state != state) { + req->d_ptr->m_state = state; + emit req->stateChanged(state); + } } /*! Updates the given QContactLocalIdFetchRequest \a req with the latest results \a result, and operation error \a error. + In addition, the state of the request will be changed to \a newState. + It then causes the request to emit its resultsAvailable() signal to notify clients of the request progress. + + If the new request state is different from the previous state, the stateChanged() signal will also be emitted from the request. */ -void QContactManagerEngine::updateContactLocalIdFetchRequest(QContactLocalIdFetchRequest* req, const QList& result, QContactManager::Error error) +void QContactManagerEngine::updateContactLocalIdFetchRequest(QContactLocalIdFetchRequest* req, const QList& result, QContactManager::Error error, QContactAbstractRequest::State newState) { QContactLocalIdFetchRequestPrivate* rd = static_cast(req->d_ptr); req->d_ptr->m_error = error; rd->m_ids = result; + bool emitState = rd->m_state != newState; + rd->m_state = newState; emit req->resultsAvailable(); + if (emitState) + emit req->stateChanged(newState); } /*! Updates the given QContactFetchRequest \a req with the latest results \a result, and operation error \a error. + In addition, the state of the request will be changed to \a newState. + It then causes the request to emit its resultsAvailable() signal to notify clients of the request progress. + + If the new request state is different from the previous state, the stateChanged() signal will also be emitted from the request. */ -void QContactManagerEngine::updateContactFetchRequest(QContactFetchRequest* req, const QList& result, QContactManager::Error error) +void QContactManagerEngine::updateContactFetchRequest(QContactFetchRequest* req, const QList& result, QContactManager::Error error, QContactAbstractRequest::State newState) { QContactFetchRequestPrivate* rd = static_cast(req->d_ptr); req->d_ptr->m_error = error; rd->m_contacts = result; + bool emitState = rd->m_state != newState; + rd->m_state = newState; emit req->resultsAvailable(); + if (emitState) + emit req->stateChanged(newState); } /*! Updates the given QContactRemoveRequest \a req with the operation error \a error, and map of input index to individual error \a errorMap. + In addition, the state of the request will be changed to \a newState. + It then causes the request to emit its resultsAvailable() signal to notify clients of the request progress. + + If the new request state is different from the previous state, the stateChanged() signal will also be emitted from the request. */ -void QContactManagerEngine::updateContactRemoveRequest(QContactRemoveRequest* req, QContactManager::Error error, const QMap& errorMap) +void QContactManagerEngine::updateContactRemoveRequest(QContactRemoveRequest* req, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State newState) { QContactRemoveRequestPrivate* rd = static_cast(req->d_ptr); req->d_ptr->m_error = error; rd->m_errors = errorMap; + bool emitState = rd->m_state != newState; + rd->m_state = newState; emit req->resultsAvailable(); + if (emitState) + emit req->stateChanged(newState); } /*! Updates the given QContactSaveRequest \a req with the latest results \a result, operation error \a error, and map of input index to individual error \a errorMap. + In addition, the state of the request will be changed to \a newState. + It then causes the request to emit its resultsAvailable() signal to notify clients of the request progress. + + If the new request state is different from the previous state, the stateChanged() signal will also be emitted from the request. */ -void QContactManagerEngine::updateContactSaveRequest(QContactSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap) +void QContactManagerEngine::updateContactSaveRequest(QContactSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State newState) { QContactSaveRequestPrivate* rd = static_cast(req->d_ptr); req->d_ptr->m_error = error; rd->m_errors = errorMap; rd->m_contacts = result; + bool emitState = rd->m_state != newState; + rd->m_state = newState; emit req->resultsAvailable(); + if (emitState) + emit req->stateChanged(newState); } /*! Updates the given QContactDetailDefinitionSaveRequest \a req with the latest results \a result, operation error \a error, and map of input index to individual error \a errorMap. + In addition, the state of the request will be changed to \a newState. + It then causes the request to emit its resultsAvailable() signal to notify clients of the request progress. + + If the new request state is different from the previous state, the stateChanged() signal will also be emitted from the request. */ -void QContactManagerEngine::updateDefinitionSaveRequest(QContactDetailDefinitionSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap) +void QContactManagerEngine::updateDefinitionSaveRequest(QContactDetailDefinitionSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State newState) { QContactDetailDefinitionSaveRequestPrivate* rd = static_cast(req->d_ptr); req->d_ptr->m_error = error; rd->m_errors = errorMap; rd->m_definitions = result; + bool emitState = rd->m_state != newState; + rd->m_state = newState; emit req->resultsAvailable(); + if (emitState) + emit req->stateChanged(newState); } /*! Updates the given QContactDetailDefinitionRemoveRequest \a req with the operation error \a error, and map of input index to individual error \a errorMap. + In addition, the state of the request will be changed to \a newState. + It then causes the request to emit its resultsAvailable() signal to notify clients of the request progress. + + If the new request state is different from the previous state, the stateChanged() signal will also be emitted from the request. */ -void QContactManagerEngine::updateDefinitionRemoveRequest(QContactDetailDefinitionRemoveRequest* req, QContactManager::Error error, const QMap& errorMap) +void QContactManagerEngine::updateDefinitionRemoveRequest(QContactDetailDefinitionRemoveRequest* req, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State newState) { QContactDetailDefinitionRemoveRequestPrivate* rd = static_cast(req->d_ptr); req->d_ptr->m_error = error; rd->m_errors = errorMap; + bool emitState = rd->m_state != newState; + rd->m_state = newState; emit req->resultsAvailable(); + if (emitState) + emit req->stateChanged(newState); } /*! Updates the given QContactDetailDefinitionFetchRequest \a req with the latest results \a result, operation error \a error, and map of input index to individual error \a errorMap. + In addition, the state of the request will be changed to \a newState. + It then causes the request to emit its resultsAvailable() signal to notify clients of the request progress. + + If the new request state is different from the previous state, the stateChanged() signal will also be emitted from the request. */ -void QContactManagerEngine::updateDefinitionFetchRequest(QContactDetailDefinitionFetchRequest* req, const QMap& result, QContactManager::Error error, const QMap& errorMap) +void QContactManagerEngine::updateDefinitionFetchRequest(QContactDetailDefinitionFetchRequest* req, const QMap& result, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State newState) { QContactDetailDefinitionFetchRequestPrivate* rd = static_cast(req->d_ptr); req->d_ptr->m_error = error; rd->m_errors = errorMap; rd->m_definitions = result; + bool emitState = rd->m_state != newState; + rd->m_state = newState; emit req->resultsAvailable(); + if (emitState) + emit req->stateChanged(newState); } /*! Updates the given QContactRelationshipSaveRequest \a req with the latest results \a result, operation error \a error, and map of input index to individual error \a errorMap. + In addition, the state of the request will be changed to \a newState. + It then causes the request to emit its resultsAvailable() signal to notify clients of the request progress. + + If the new request state is different from the previous state, the stateChanged() signal will also be emitted from the request. */ -void QContactManagerEngine::updateRelationshipSaveRequest(QContactRelationshipSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap) +void QContactManagerEngine::updateRelationshipSaveRequest(QContactRelationshipSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State newState) { QContactRelationshipSaveRequestPrivate* rd = static_cast(req->d_ptr); req->d_ptr->m_error = error; rd->m_errors = errorMap; rd->m_relationships = result; + bool emitState = rd->m_state != newState; + rd->m_state = newState; emit req->resultsAvailable(); + if (emitState) + emit req->stateChanged(newState); } /*! Updates the given QContactRelationshipRemoveRequest \a req with the operation error \a error, and map of input index to individual error \a errorMap. + In addition, the state of the request will be changed to \a newState. + It then causes the request to emit its resultsAvailable() signal to notify clients of the request progress. + + If the new request state is different from the previous state, the stateChanged() signal will also be emitted from the request. */ -void QContactManagerEngine::updateRelationshipRemoveRequest(QContactRelationshipRemoveRequest* req, QContactManager::Error error, const QMap& errorMap) +void QContactManagerEngine::updateRelationshipRemoveRequest(QContactRelationshipRemoveRequest* req, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State newState) { QContactRelationshipRemoveRequestPrivate* rd = static_cast(req->d_ptr); req->d_ptr->m_error = error; rd->m_errors = errorMap; + bool emitState = rd->m_state != newState; + rd->m_state = newState; emit req->resultsAvailable(); + if (emitState) + emit req->stateChanged(newState); } /*! Updates the given QContactRelationshipFetchRequest \a req with the latest results \a result, and operation error \a error. + In addition, the state of the request will be changed to \a newState. + It then causes the request to emit its resultsAvailable() signal to notify clients of the request progress. + + If the new request state is different from the previous state, the stateChanged() signal will also be emitted from the request. */ -void QContactManagerEngine::updateRelationshipFetchRequest(QContactRelationshipFetchRequest* req, const QList& result, QContactManager::Error error) +void QContactManagerEngine::updateRelationshipFetchRequest(QContactRelationshipFetchRequest* req, const QList& result, QContactManager::Error error, QContactAbstractRequest::State newState) { QContactRelationshipFetchRequestPrivate* rd = static_cast(req->d_ptr); req->d_ptr->m_error = error; rd->m_relationships = result; + bool emitState = rd->m_state != newState; + rd->m_state = newState; emit req->resultsAvailable(); + if (emitState) + emit req->stateChanged(newState); } #include "moc_qcontactmanagerengine.cpp" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactmanagerengine.h --- a/qtmobility/src/contacts/qcontactmanagerengine.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactmanagerengine.h Mon May 03 13:18:40 2010 +0300 @@ -56,6 +56,7 @@ #include "qcontactmanager.h" #include "qcontactabstractrequest.h" #include "qcontactrequests.h" +#include "qcontactfetchhint.h" QTM_BEGIN_NAMESPACE @@ -68,78 +69,66 @@ public: QContactManagerEngine() {} - virtual void deref() = 0; /* URI reporting */ - virtual QString managerName() const; // e.g. "Symbian" - virtual QMap managerParameters() const; // e.g. "filename=private.db" + virtual QString managerName() const = 0; // e.g. "Symbian" + virtual QMap managerParameters() const = 0; // e.g. "filename=private.db" + virtual int managerVersion() const = 0; + + /* Default and only implementation of this */ QString managerUri() const; - virtual int managerVersion() const; // replaces the above /* Filtering */ - virtual QList contactIds(const QList& sortOrders, QContactManager::Error& error) const; - virtual QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error& error) const; - virtual QList contacts(const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - virtual QList contacts(const QContactFilter& filter, const QList& sortOrders, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - virtual QContact contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const; + virtual QList contactIds(const QContactFilter& filter, const QList& sortOrders, QContactManager::Error* error) const = 0; + virtual QList contacts(const QContactFilter& filter, const QList& sortOrders, const QContactFetchHint& fetchHint, QContactManager::Error* error) const = 0; + virtual QContact contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const = 0; - virtual bool saveContact(QContact* contact, QContactManager::Error& error); - virtual bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error& error); - virtual bool removeContact(const QContactLocalId& contactId, QContactManager::Error& error); - virtual bool removeContacts(QList* contactIds, QMap* errorMap, QContactManager::Error& error); + virtual bool saveContact(QContact* contact, QContactManager::Error* error); + virtual bool removeContact(const QContactLocalId& contactId, QContactManager::Error* error); + virtual bool saveRelationship(QContactRelationship* relationship, QContactManager::Error* error); + virtual bool removeRelationship(const QContactRelationship& relationship, QContactManager::Error* error); + + virtual bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error) = 0; + virtual bool removeContacts(const QList& contactIds, QMap* errorMap, QContactManager::Error* error) = 0; + + /* Return a pruned or modified contact which is valid and can be saved in the backend */ + virtual QContact compatibleContact(const QContact& original, QContactManager::Error* error) const = 0; /* Synthesize the display label of a contact */ - virtual QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const; // replaces the above - QContact setContactDisplayLabel(const QString& displayLabel, const QContact& contact) const; + virtual QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const = 0; /* "Self" contact id (MyCard) */ - virtual bool setSelfContactId(const QContactLocalId& contactId, QContactManager::Error& error); - virtual QContactLocalId selfContactId(QContactManager::Error& error) const; + virtual bool setSelfContactId(const QContactLocalId& contactId, QContactManager::Error* error) = 0; + virtual QContactLocalId selfContactId(QContactManager::Error* error) const = 0; /* Relationships between contacts */ - virtual QList relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationshipFilter::Role role, QContactManager::Error& error) const; - virtual bool saveRelationship(QContactRelationship* relationship, QContactManager::Error& error); - virtual QList saveRelationships(QList* relationships, QContactManager::Error& error); - virtual bool removeRelationship(const QContactRelationship& relationship, QContactManager::Error& error); - virtual QList removeRelationships(const QList& relationships, QContactManager::Error& error); + virtual QList relationships(const QString& relationshipType, const QContactId& participantId, QContactRelationship::Role role, QContactManager::Error* error) const = 0; + virtual bool saveRelationships(QList* relationships, QMap* errorMap, QContactManager::Error* error) = 0; + virtual bool removeRelationships(const QList& relationships, QMap* errorMap, QContactManager::Error* error) = 0; /* Validation for saving */ - virtual bool validateContact(const QContact& contact, QContactManager::Error& error) const; - virtual bool validateDefinition(const QContactDetailDefinition& def, QContactManager::Error& error) const; + virtual bool validateContact(const QContact& contact, QContactManager::Error* error) const = 0; + virtual bool validateDefinition(const QContactDetailDefinition& def, QContactManager::Error* error) const = 0; /* Definitions - Accessors and Mutators */ - virtual QMap detailDefinitions(const QString& contactType, QContactManager::Error& error) const; - virtual QContactDetailDefinition detailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error& error) const; - virtual bool saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error& error); - virtual bool removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error& error); + virtual QMap detailDefinitions(const QString& contactType, QContactManager::Error* error) const = 0; + virtual QContactDetailDefinition detailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) const = 0; + virtual bool saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error* error) = 0; + virtual bool removeDetailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) = 0; /* Asynchronous Request Support */ - virtual void requestDestroyed(QContactAbstractRequest* req); - virtual bool startRequest(QContactAbstractRequest* req); - virtual bool cancelRequest(QContactAbstractRequest* req); - virtual bool waitForRequestFinished(QContactAbstractRequest* req, int msecs); - - // Async update functions - static void updateRequestState(QContactAbstractRequest* req, QContactAbstractRequest::State state); - static void updateContactLocalIdFetchRequest(QContactLocalIdFetchRequest* req, const QList& result, QContactManager::Error error); - static void updateContactFetchRequest(QContactFetchRequest* req, const QList& result, QContactManager::Error error); - static void updateContactRemoveRequest(QContactRemoveRequest* req, QContactManager::Error error, const QMap& errorMap); - static void updateContactSaveRequest(QContactSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap); - static void updateDefinitionSaveRequest(QContactDetailDefinitionSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap); - static void updateDefinitionRemoveRequest(QContactDetailDefinitionRemoveRequest* req, QContactManager::Error error, const QMap& errorMap); - static void updateDefinitionFetchRequest(QContactDetailDefinitionFetchRequest* req, const QMap& result, QContactManager::Error error, const QMap& errorMap); - static void updateRelationshipSaveRequest(QContactRelationshipSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap); - static void updateRelationshipRemoveRequest(QContactRelationshipRemoveRequest* req, QContactManager::Error error, const QMap& errorMap); - static void updateRelationshipFetchRequest(QContactRelationshipFetchRequest* req, const QList& result, QContactManager::Error error); - + virtual void requestDestroyed(QContactAbstractRequest* req) = 0; + virtual bool startRequest(QContactAbstractRequest* req) = 0; + virtual bool cancelRequest(QContactAbstractRequest* req) = 0; + virtual bool waitForRequestFinished(QContactAbstractRequest* req, int msecs) = 0; /* Capabilities reporting */ - virtual bool hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const; - virtual QStringList supportedRelationshipTypes(const QString& contactType) const; - virtual bool isFilterSupported(const QContactFilter& filter) const; // replaces the above - virtual QList supportedDataTypes() const; - virtual QStringList supportedContactTypes() const; - + virtual bool hasFeature(QContactManager::ManagerFeature feature, const QString& contactType) const = 0; + virtual bool isRelationshipTypeSupported(const QString& relationshipType, const QString& contactType) const = 0; + virtual bool isFilterSupported(const QContactFilter& filter) const = 0; + virtual QList supportedDataTypes() const = 0; + virtual QStringList supportedContactTypes() const = 0; + /* Reports the built-in definitions from the schema */ static QMap > schemaDefinitions(); @@ -153,6 +142,25 @@ void selfContactIdChanged(const QContactLocalId& oldId, const QContactLocalId& newId); public: + // Async update functions + static void updateRequestState(QContactAbstractRequest* req, QContactAbstractRequest::State state); + + static void updateContactLocalIdFetchRequest(QContactLocalIdFetchRequest* req, const QList& result, QContactManager::Error error, QContactAbstractRequest::State); + static void updateContactFetchRequest(QContactFetchRequest* req, const QList& result, QContactManager::Error error, QContactAbstractRequest::State); + static void updateContactRemoveRequest(QContactRemoveRequest* req, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State); + static void updateContactSaveRequest(QContactSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State); + static void updateDefinitionSaveRequest(QContactDetailDefinitionSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State); + static void updateDefinitionRemoveRequest(QContactDetailDefinitionRemoveRequest* req, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State); + static void updateDefinitionFetchRequest(QContactDetailDefinitionFetchRequest* req, const QMap& result, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State); + static void updateRelationshipSaveRequest(QContactRelationshipSaveRequest* req, const QList& result, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State); + static void updateRelationshipRemoveRequest(QContactRelationshipRemoveRequest* req, QContactManager::Error error, const QMap& errorMap, QContactAbstractRequest::State); + static void updateRelationshipFetchRequest(QContactRelationshipFetchRequest* req, const QList& result, QContactManager::Error error, QContactAbstractRequest::State); + + // Other protected area update functions + static void setDetailAccessConstraints(QContactDetail* detail, QContactDetail::AccessConstraints constraints); + static void setContactDisplayLabel(QContact* contact, const QString& displayLabel); + static void setContactRelationships(QContact* contact, const QList& relationships); + /* Helper functions */ static int compareContact(const QContact& a, const QContact& b, const QList& sortOrders); static void addSorted(QList* sorted, const QContact& toAdd, const QList& sortOrders); @@ -160,10 +168,8 @@ static bool testFilter(const QContactFilter& filter, const QContact& contact); static bool validateActionFilter(const QContactFilter& filter); static QList sortContacts(const QList& contacts, const QList& sortOrders); - static void setContactRelationships(QContact* contact, const QList& relationships); -protected: - void setDetailAccessConstraints(QContactDetail* detail, QContactDetail::AccessConstraints constraints) const; + static QContactFilter canonicalizedFilter(const QContactFilter& filter); private: /* QContactChangeSet is a utility class used to emit the appropriate signals */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactmanagerenginefactory.cpp --- a/qtmobility/src/contacts/qcontactmanagerenginefactory.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactmanagerenginefactory.cpp Mon May 03 13:18:40 2010 +0300 @@ -49,6 +49,7 @@ \preliminary \brief The QContactManagerEngineFactory class provides the interface for plugins that implement QContactManagerEngine functionality. + \ingroup contacts-backends This class provides a simple interface for the creation of manager engine instances. Each factory has a specific id @@ -68,7 +69,7 @@ } /*! - \fn QContactManagerEngineFactory::engine(const QMap& parameters, QContactManager::Error &error) + \fn QContactManagerEngineFactory::engine(const QMap& parameters, QContactManager::Error* error) This function is called by the QContactManager implementation to create an instance of the engine provided by this factory. diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactmanagerenginefactory.h --- a/qtmobility/src/contacts/qcontactmanagerenginefactory.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactmanagerenginefactory.h Mon May 03 13:18:40 2010 +0300 @@ -58,7 +58,7 @@ // engine factory functions virtual QList supportedImplementationVersions() const; virtual ~QContactManagerEngineFactory(); - virtual QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error& error) = 0; + virtual QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error* error) = 0; virtual QString managerName() const = 0; }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactrelationship.cpp --- a/qtmobility/src/contacts/qcontactrelationship.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactrelationship.cpp Mon May 03 13:18:40 2010 +0300 @@ -47,6 +47,8 @@ #include #include #include +#include +#include QTM_BEGIN_NAMESPACE @@ -73,47 +75,48 @@ */ /*! + \enum QContactRelationship::Role + Describes the roles that a contact may take in a relationship. + \value First The contact is the first contact in the relationship + \value Second The contact is the second contact in the relationship + \value Either The contact is either the first or second contact in the relationship + */ + +/*! * \variable QContactRelationship::HasMember * The relationship type which identifies the first contact as being a group which includes the second contact */ -Q_DEFINE_LATIN1_LITERAL(QContactRelationship::HasMember, "HasMember"); +Q_DEFINE_LATIN1_CONSTANT(QContactRelationship::HasMember, "HasMember"); /*! * \variable QContactRelationship::Aggregates * The relationship type which identifies the first contact as aggregating the second contact into a metacontact */ -Q_DEFINE_LATIN1_LITERAL(QContactRelationship::Aggregates, "Aggregates"); - -/*! - * \variable QContactRelationship::Is - * \obsolete - * Deprecated - use QContactRelationship::IsSameAs instead. - */ -Q_DEFINE_LATIN1_LITERAL(QContactRelationship::Is, "IsSameAs"); +Q_DEFINE_LATIN1_CONSTANT(QContactRelationship::Aggregates, "Aggregates"); /*! * \variable QContactRelationship::IsSameAs * The relationship type which identifies the first contact as being the same contact as the second contact */ -Q_DEFINE_LATIN1_LITERAL(QContactRelationship::IsSameAs, "IsSameAs"); +Q_DEFINE_LATIN1_CONSTANT(QContactRelationship::IsSameAs, "IsSameAs"); /*! * \variable QContactRelationship::HasAssistant * The relationship type which identifies the second contact as being the assistant of the first contact */ -Q_DEFINE_LATIN1_LITERAL(QContactRelationship::HasAssistant, "HasAssistant"); +Q_DEFINE_LATIN1_CONSTANT(QContactRelationship::HasAssistant, "HasAssistant"); /*! * \variable QContactRelationship::HasManager * The relationship type which identifies the second contact as being the manager of the first contact */ -Q_DEFINE_LATIN1_LITERAL(QContactRelationship::HasManager, "HasManager"); +Q_DEFINE_LATIN1_CONSTANT(QContactRelationship::HasManager, "HasManager"); /*! * \variable QContactRelationship::HasSpouse * The relationship type which identifies the second contact as being the spouse of the first contact */ -Q_DEFINE_LATIN1_LITERAL(QContactRelationship::HasSpouse, "HasSpouse"); +Q_DEFINE_LATIN1_CONSTANT(QContactRelationship::HasSpouse, "HasSpouse"); /*! * Constructs a new relationship @@ -162,6 +165,24 @@ } /*! + * Returns the hash value for \a key. + */ +uint qHash(const QContactRelationship &key) +{ + return qHash(key.first()) + qHash(key.second()) + + QT_PREPEND_NAMESPACE(qHash)(key.relationshipType()); +} + +#ifndef QT_NO_DEBUG_STREAM +QDebug operator<<(QDebug dbg, const QContactRelationship& rel) +{ + dbg.nospace() << "QContactRelationship(" << rel.first() << ' ' << rel.relationshipType() + << ' ' << rel.second() << ')'; + return dbg.maybeSpace(); +} +#endif + +/*! * \fn QContactRelationship::operator!=(const QContactRelationship& other) const * Returns true if this relationship is not equal to \a other, otherwise returns false. */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qcontactrelationship.h --- a/qtmobility/src/contacts/qcontactrelationship.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qcontactrelationship.h Mon May 03 13:18:40 2010 +0300 @@ -59,21 +59,20 @@ { public: #ifdef Q_QDOC - const char* HasMember; - const char* Aggregates; - const char* Is; - const char* IsSameAs; - const char* HasAssistant; - const char* HasManager; - const char* HasSpouse; + static const QLatin1Constant HasMember; + static const QLatin1Constant Aggregates; + static const QLatin1Constant Is; + static const QLatin1Constant IsSameAs; + static const QLatin1Constant HasAssistant; + static const QLatin1Constant HasManager; + static const QLatin1Constant HasSpouse; #else - Q_DECLARE_LATIN1_LITERAL(HasMember, "HasMember"); - Q_DECLARE_LATIN1_LITERAL(Aggregates, "Aggregates"); - Q_DECLARE_LATIN1_LITERAL(Is, "IsSameAs"); // deprecated - Q_DECLARE_LATIN1_LITERAL(IsSameAs, "IsSameAs"); - Q_DECLARE_LATIN1_LITERAL(HasAssistant, "HasAssistant"); - Q_DECLARE_LATIN1_LITERAL(HasManager, "HasManager"); - Q_DECLARE_LATIN1_LITERAL(HasSpouse, "HasSpouse"); + Q_DECLARE_LATIN1_CONSTANT(HasMember, "HasMember"); + Q_DECLARE_LATIN1_CONSTANT(Aggregates, "Aggregates"); + Q_DECLARE_LATIN1_CONSTANT(IsSameAs, "IsSameAs"); + Q_DECLARE_LATIN1_CONSTANT(HasAssistant, "HasAssistant"); + Q_DECLARE_LATIN1_CONSTANT(HasManager, "HasManager"); + Q_DECLARE_LATIN1_CONSTANT(HasSpouse, "HasSpouse"); #endif QContactRelationship(); @@ -92,10 +91,21 @@ void setSecond(const QContactId& secondId); void setRelationshipType(const QString& relationshipType); + enum Role { + First = 0, + Second, + Either + }; + private: QSharedDataPointer d; }; +Q_CONTACTS_EXPORT uint qHash(const QContactRelationship& key); +#ifndef QT_NO_DEBUG_STREAM +Q_CONTACTS_EXPORT QDebug operator<<(QDebug dbg, const QContactRelationship& rel); +#endif + QTM_END_NAMESPACE #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qtcontacts.h --- a/qtmobility/src/contacts/qtcontacts.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qtcontacts.h Mon May 03 13:18:40 2010 +0300 @@ -55,6 +55,7 @@ #include "qcontactdetailfielddefinition.h" // field in a detail definition #include "qcontactdetail.h" // contact detail #include "qcontactdetails.h" // leaf detail classes +#include "qcontactfetchhint.h" // backend optimization hint class #include "qcontactfilter.h" // contact filter #include "qcontactfilters.h" // leaf filter classes #include "qcontactsortorder.h" // contact sorting diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/qtcontactsglobal.h --- a/qtmobility/src/contacts/qtcontactsglobal.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/qtcontactsglobal.h Mon May 03 13:18:40 2010 +0300 @@ -44,19 +44,18 @@ #include #include +#include -#define QTCONTACTS_VERSION_NAME "com.nokia.qt.mobility.contacts.api.version" -#define QTCONTACTS_IMPLEMENTATION_VERSION_NAME "com.nokia.qt.mobility.contacts.implementation.version" -#define QTCONTACTS_VERSION 1 +#define QTCONTACTS_VERSION_NAME "com.nokia.qt.mobility.contacts.api.version" +#define QTCONTACTS_IMPLEMENTATION_VERSION_NAME "com.nokia.qt.mobility.contacts.implementation.version" +#define QTCONTACTS_VERSION 1 QTM_BEGIN_NAMESPACE -typedef quint32 QContactLocalId; // XXX Put this else where - /* - * Latin1Literal + * QLatin1Constant * - * The idea of the Latin1Literal is to provide a POD-esque container + * The idea of the QLatin1Constant is to provide a POD-esque container * for constant strings which are defined in various places * (e.g., detail leaf class definition names, field keys, constant field values, etc). * We would ideally like these to be stored in the .rodata section to allow @@ -66,64 +65,109 @@ * member to a char array from a const char array, in order to squash * the compiler warning regarding uninitialised const value without * initialiser list in default ctor (POD requires default ctor). - * Does it work as hoped? */ -template struct Latin1Literal +template struct QLatin1Constant { - //const char str[N]; // causes compiler warning due to uninitialized const value - char str[N]; + char chars[N]; + + bool operator ==(const QLatin1Constant& other) const {return (chars == other.chars) || (qstrcmp(chars, other.chars) == 0);} + bool operator !=(const QLatin1Constant& other) const {return !operator==(other);} - operator QLatin1String() const {return QLatin1String(str);} - operator QString() const {return QString::fromLatin1(str, N-1);} + inline const char * latin1() const {return chars;} + + operator QLatin1String() const {return QLatin1String(chars);} + operator QString() const {return QString::fromLatin1(chars, N-1);} + operator QVariant() const {return QVariant(operator QString());} }; -template bool operator==(const Latin1Literal& a, const QLatin1String& b) +/* Hash - this comes from qhash.cpp >.> */ +template uint qHash(const QLatin1Constant& a) { - return QLatin1String(a.str) == b; + uint h = 0; + uint g; + int n = N - 1; + const register uchar*p = (const uchar*)a.chars; + + while (n--) { + h = (h << 4) + *p++; + if ((g = (h & 0xf0000000)) != 0) + h ^= g >> 23; + h &= ~g; + } + return h; } -template bool operator==(const Latin1Literal& a, const QString& b) +/* Operators for QLatin1Constant */ +template bool operator==(const QLatin1Constant&, const QLatin1Constant&) { - return b == QLatin1String(a.str); + // For N != M, this is always false + // For N == M, the member function gets called + return false; } - -template bool operator==(const QLatin1String& b, const Latin1Literal& a) +template bool operator!=(const QLatin1Constant&, const QLatin1Constant&) { - return QLatin1String(a.str) == b; + // If N != M, this is always true + // For N == M, the member function again gets called + return true; } -template bool operator==(const QString& b, const Latin1Literal& a) +template bool operator <(const QLatin1Constant& a, const QLatin1Constant& b) { - return b == QLatin1String(a.str); + return qstrcmp(a.chars, b.chars) < 0; } -template bool operator!=(const Latin1Literal& a, const QLatin1String& b) +/* Operators for QLatin1String */ +template bool operator==(const QLatin1Constant& a, const QLatin1String& b) { - return QLatin1String(a.str) != b; + return (a.chars == b.latin1()) || (qstrcmp(a.chars, b.latin1()) == 0); +} + +template bool operator==(const QLatin1String& b, const QLatin1Constant& a) +{ + return (a.chars == b.latin1()) || (qstrcmp(a.chars, b.latin1()) == 0); +} + +template bool operator!=(const QLatin1Constant& a, const QLatin1String& b) +{ + return (a.chars != b.latin1()) && (qstrcmp(a.chars, b.latin1()) != 0); } -template bool operator!=(const Latin1Literal& a, const QString& b) +template bool operator!=(const QLatin1String& b, const QLatin1Constant& a) { - return b != QLatin1String(a.str); + return (a.chars != b.latin1()) && (qstrcmp(a.chars, b.latin1()) != 0); +} + +/* Operators for QString */ +template bool operator==(const QLatin1Constant& a, const QString& b) +{ + return b == QLatin1String(a.chars); } -template bool operator!=(const QLatin1String& b, const Latin1Literal& a) +template bool operator==(const QString& b, const QLatin1Constant& a) { - return QLatin1String(a.str) != b; + return b == QLatin1String(a.chars); } -template bool operator!=(const QString& b, const Latin1Literal& a) +template bool operator!=(const QLatin1Constant& a, const QString& b) { - return b != QLatin1String(a.str); + return b != QLatin1String(a.chars); } -#define Q_DECLARE_LATIN1_LITERAL(varname, str) static const Latin1Literal varname -#define Q_DEFINE_LATIN1_LITERAL(varname, str) const Latin1Literal varname = {str} +template bool operator!=(const QString& b, const QLatin1Constant& a) +{ + return b != QLatin1String(a.chars); +} + +#define Q_DECLARE_LATIN1_CONSTANT(varname, str) static const QLatin1Constant varname +#define Q_DEFINE_LATIN1_CONSTANT(varname, str) const QLatin1Constant varname = {str} QTM_END_NAMESPACE // Not needed since this is a typedef, and qglobal already does this for the base type // Q_DECLARE_TYPEINFO(QTM_PREPEND_NAMESPACE(QContactLocalId), Q_PRIMITIVE_TYPE); +// Workaround for unannounced SC break +#include "qcontactid.h" + #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactdetaildefinitionfetchrequest.cpp --- a/qtmobility/src/contacts/requests/qcontactdetaildefinitionfetchrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactdetaildefinitionfetchrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -63,11 +63,6 @@ { } -/*! Cleans up the memory in use by this detail definition fetch request */ -QContactDetailDefinitionFetchRequest::~QContactDetailDefinitionFetchRequest() -{ -} - /*! Sets the names of the detail definitions to retrieve to \a names */ void QContactDetailDefinitionFetchRequest::setDefinitionNames(const QStringList& names) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactdetaildefinitionfetchrequest.h --- a/qtmobility/src/contacts/requests/qcontactdetaildefinitionfetchrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactdetaildefinitionfetchrequest.h Mon May 03 13:18:40 2010 +0300 @@ -58,7 +58,6 @@ public: QContactDetailDefinitionFetchRequest(); - ~QContactDetailDefinitionFetchRequest(); /* Selection */ void setDefinitionNames(const QStringList& names); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactdetaildefinitionremoverequest.cpp --- a/qtmobility/src/contacts/requests/qcontactdetaildefinitionremoverequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactdetaildefinitionremoverequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -63,11 +63,6 @@ { } -/*! Cleans up the memory in use by this detail definition remove request */ -QContactDetailDefinitionRemoveRequest::~QContactDetailDefinitionRemoveRequest() -{ -} - /*! Sets the type of contact for which detail definitions should be removed to \a contactType, and the names of the detail definitions to remove from the manager to \a names. Managers may store different definitions which are valid for different contact types, and so attempting to remove definitions with certain names may fail if no such diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactdetaildefinitionremoverequest.h --- a/qtmobility/src/contacts/requests/qcontactdetaildefinitionremoverequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactdetaildefinitionremoverequest.h Mon May 03 13:18:40 2010 +0300 @@ -56,7 +56,6 @@ public: QContactDetailDefinitionRemoveRequest(); - ~QContactDetailDefinitionRemoveRequest(); /* Selection */ void setDefinitionNames(const QString& contactType, const QStringList& names); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactdetaildefinitionsaverequest.cpp --- a/qtmobility/src/contacts/requests/qcontactdetaildefinitionsaverequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactdetaildefinitionsaverequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -64,11 +64,6 @@ { } -/*! Cleans up the memory in use by this detail definition save request */ -QContactDetailDefinitionSaveRequest::~QContactDetailDefinitionSaveRequest() -{ -} - /*! Sets the definitions to save to be \a definitions */ void QContactDetailDefinitionSaveRequest::setDefinitions(const QList& definitions) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactdetaildefinitionsaverequest.h --- a/qtmobility/src/contacts/requests/qcontactdetaildefinitionsaverequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactdetaildefinitionsaverequest.h Mon May 03 13:18:40 2010 +0300 @@ -58,7 +58,6 @@ public: QContactDetailDefinitionSaveRequest(); - ~QContactDetailDefinitionSaveRequest(); /* Selection */ void setDefinitions(const QList& definitions); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactfetchrequest.cpp --- a/qtmobility/src/contacts/requests/qcontactfetchrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactfetchrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -63,11 +63,6 @@ { } -/*! Cleans up the memory in use by this contact fetch request */ -QContactFetchRequest::~QContactFetchRequest() -{ -} - /*! Sets the contact filter used to determine which contacts will be retrieved to \a filter */ void QContactFetchRequest::setFilter(const QContactFilter& filter) { @@ -82,13 +77,18 @@ d->m_sorting = sorting; } -/*! Sets the list of allowable detail definition names to \a definitionNames. Any contacts retrieved - by the request will have any details whose definition name is not on the restricted list - removed prior to being returned. */ -void QContactFetchRequest::setDefinitionRestrictions(const QStringList& definitionNames) +/*! + Sets the fetch hint which may be used by the backend to optimize contact retrieval + to \a fetchHint. A client should not make changes to a contact which has been retrieved + using a fetch hint other than the default fetch hint. Doing so will result in information + loss when saving the contact back to the manager (as the "new" restricted contact will + replace the previously saved contact in the backend). + \sa QContactFetchHint + */ +void QContactFetchRequest::setFetchHint(const QContactFetchHint &fetchHint) { Q_D(QContactFetchRequest); - d->m_definitionRestrictions = definitionNames; + d->m_fetchHint = fetchHint; } /*! Returns the filter that will be used to select contacts to be returned */ @@ -105,11 +105,18 @@ return d->m_sorting; } -/*! Returns the list of definition names which define which details contacts in the result list will be limited to */ -QStringList QContactFetchRequest::definitionRestrictions() const +/*! + Returns the fetch hint which may be used by the backend to optimize contact retrieval. + A client should not make changes to a contact which has been retrieved + using a fetch hint other than the default fetch hint. Doing so will result in information + loss when saving the contact back to the manager (as the "new" restricted contact will + replace the previously saved contact in the backend). + \sa QContactFetchHint + */ +QContactFetchHint QContactFetchRequest::fetchHint() const { Q_D(const QContactFetchRequest); - return d->m_definitionRestrictions; + return d->m_fetchHint; } /*! Returns the list of contacts retrieved by this request */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactfetchrequest.h --- a/qtmobility/src/contacts/requests/qcontactfetchrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactfetchrequest.h Mon May 03 13:18:40 2010 +0300 @@ -47,6 +47,7 @@ #include "qcontactsortorder.h" #include "qcontactfilter.h" #include "qcontact.h" +#include "qcontactfetchhint.h" #include #include @@ -60,15 +61,14 @@ public: QContactFetchRequest(); - ~QContactFetchRequest(); /* Selection, restriction and sorting */ void setFilter(const QContactFilter& filter); void setSorting(const QList& sorting); - void setDefinitionRestrictions(const QStringList& definitionNames); + void setFetchHint(const QContactFetchHint& fetchHint); QContactFilter filter() const; QList sorting() const; - QStringList definitionRestrictions() const; + QContactFetchHint fetchHint() const; /* Results */ QList contacts() const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactlocalidfetchrequest.cpp --- a/qtmobility/src/contacts/requests/qcontactlocalidfetchrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactlocalidfetchrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -63,11 +63,6 @@ { } -/*! Cleans up the memory in use by this contact id fetch request */ -QContactLocalIdFetchRequest::~QContactLocalIdFetchRequest() -{ -} - /*! Sets the filter which will be used to select the contacts whose ids will be returned to \a filter */ void QContactLocalIdFetchRequest::setFilter(const QContactFilter& filter) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactlocalidfetchrequest.h --- a/qtmobility/src/contacts/requests/qcontactlocalidfetchrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactlocalidfetchrequest.h Mon May 03 13:18:40 2010 +0300 @@ -59,7 +59,6 @@ public: QContactLocalIdFetchRequest(); - ~QContactLocalIdFetchRequest(); /* Selection, restriction and sorting */ void setFilter(const QContactFilter& filter); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactrelationshipfetchrequest.cpp --- a/qtmobility/src/contacts/requests/qcontactrelationshipfetchrequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactrelationshipfetchrequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -66,12 +66,6 @@ { } -/*! Cleans up the memory in use by this relationship fetch request - */ -QContactRelationshipFetchRequest::~QContactRelationshipFetchRequest() -{ -} - /*! Sets the source contact criterion of the fetch request to \a firstId. If \a firstId is the default-constructed id, or the first contact id is not set, the request will fetch relationships involving any first contact. @@ -126,55 +120,6 @@ return d->m_second; } -/*! - \internal - Sets the participant criterion of the fetch request to \a - participantUri. If the \a participantUri references a contact in - the manager from which the relationships are being fetched and the - \a role is \c QContactRelationshipFilter::Either, a relationship - will match the criterion if the contact appears in the relationship - as either the source or a destination contact. If the \a - participantUri references a contact in a different manager to the - one from which the relationships are being fetched and the \a role - is \c QContactRelationshipFilter::Either, a relationship will match - the criterion only if the contact appears in the relationship as a - destination contact. If the \a participantUri references a contact - in a different manager to the one from which the relationships are - being fetched and the \a role is \c - QContactRelationshipFilter::Source, no relationships will be - fetched. - - If the \a participantUri consists of an empty manager URI and the - zero contact id, or if the participant criterion is not set, the - request will fetch relationships involving any participant. - */ -void QContactRelationshipFetchRequest::setParticipant(const QContactId& participantUri, QContactRelationshipFilter::Role role) -{ - Q_D(QContactRelationshipFetchRequest); - d->m_participantUri = participantUri; - d->m_role = role; -} - -/*! - \internal - Returns the participant criterion of the fetch request - */ -QContactId QContactRelationshipFetchRequest::participant() const -{ - Q_D(const QContactRelationshipFetchRequest); - return d->m_participantUri; -} - -/*! - \internal - Returns the role of the participant criterion of the fetch request - */ -QContactRelationshipFilter::Role QContactRelationshipFetchRequest::participantRole() const -{ - Q_D(const QContactRelationshipFetchRequest); - return d->m_role; -} - /*! Returns the list of relationships that was the result of the request */ QList QContactRelationshipFetchRequest::relationships() const diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactrelationshipfetchrequest.h --- a/qtmobility/src/contacts/requests/qcontactrelationshipfetchrequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactrelationshipfetchrequest.h Mon May 03 13:18:40 2010 +0300 @@ -60,7 +60,6 @@ public: QContactRelationshipFetchRequest(); - ~QContactRelationshipFetchRequest(); /* Selection */ void setFirst(const QContactId& firstId); @@ -69,12 +68,6 @@ void setRelationshipType(const QString& relationshipType); QString relationshipType() const; - // we no longer use "participant" or "participant role" -- deprecated and will be removed after transition period has elapsed. - void Q_DECL_DEPRECATED setParticipant(const QContactId& participant, QContactRelationshipFilter::Role role = QContactRelationshipFilter::Either); // deprecated - QContactId Q_DECL_DEPRECATED participant() const; // deprecated - QContactRelationshipFilter::Role Q_DECL_DEPRECATED participantRole() const; // deprecated - - // replaces the above functions. void setSecond(const QContactId& secondId); QContactId second() const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactrelationshipremoverequest.cpp --- a/qtmobility/src/contacts/requests/qcontactrelationshipremoverequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactrelationshipremoverequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -64,86 +64,6 @@ { } -/*! Cleans up the memory in use by this relationship remove request */ -QContactRelationshipRemoveRequest::~QContactRelationshipRemoveRequest() -{ -} - -/*! - \internal - Sets the first contact criterion of the remove request to \a firstId. - If \a firstId is the default-constructed id, or the first contact is not set, - the request will remove relationships involving any first contact. - - This function is obsolete; set the list of relationships to remove by calling setRelationships() instead. - */ -void QContactRelationshipRemoveRequest::setFirst(const QContactId& firstId) -{ - Q_D(QContactRelationshipRemoveRequest); - d->m_first = firstId; -} - -/*! - \internal - Returns the first contact criterion of the remove request. - This function is obsolete; retrieve the lists of relationships that will be removed by calling relationships() instead. - */ -QContactId QContactRelationshipRemoveRequest::first() const -{ - Q_D(const QContactRelationshipRemoveRequest); - return d->m_first; -} - -/*! - \internal - Sets the relationship type criterion of the remove request to \a relationshipType. - If \a relationshipType is empty, or the relationship type is not set, - the request will remove relationships of any type. - - This function is obsolete; set the list of relationships to remove by calling setRelationships() instead. - */ -void QContactRelationshipRemoveRequest::setRelationshipType(const QString& relationshipType) -{ - Q_D(QContactRelationshipRemoveRequest); - d->m_relationshipType = relationshipType; -} - -/*! - \internal - Returns the relationship type criterion of the fetch request. - This function is obsolete; retrieve the lists of relationships that will be removed by calling relationships() instead. - */ -QString QContactRelationshipRemoveRequest::relationshipType() const -{ - Q_D(const QContactRelationshipRemoveRequest); - return d->m_relationshipType; -} - -/*! - \internal - Sets the second contact criterion of the remove request to \a secondId. - If \a secondId is the default-constructed id, or the second contact is not set, - the request will remove relationships involving any second contact. - - This function is obsolete; set the list of relationships to remove by calling setRelationships() instead. - */ -void QContactRelationshipRemoveRequest::setSecond(const QContactId& secondId) -{ - Q_D(QContactRelationshipRemoveRequest); - d->m_second = secondId; -} - -/*! - \internal - Returns the second contact criterion of the remove request. - This function is obsolete; retrieve the lists of relationships that will be removed by calling relationships() instead. - */ -QContactId QContactRelationshipRemoveRequest::second() const -{ - Q_D(const QContactRelationshipRemoveRequest); - return d->m_second; -} - /*! Sets the list of relationships which will be removed to \a relationships */ void QContactRelationshipRemoveRequest::setRelationships(const QList& relationships) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactrelationshipremoverequest.h --- a/qtmobility/src/contacts/requests/qcontactrelationshipremoverequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactrelationshipremoverequest.h Mon May 03 13:18:40 2010 +0300 @@ -56,19 +56,9 @@ public: QContactRelationshipRemoveRequest(); - ~QContactRelationshipRemoveRequest(); /* Selection */ - void Q_DECL_DEPRECATED setFirst(const QContactId& firstId); // deprecated, replaced by explicitly defined relationship list - QContactId Q_DECL_DEPRECATED first() const; // deprecated, replaced by explicitly defined relationship list - - void Q_DECL_DEPRECATED setRelationshipType(const QString& relationshipType); // deprecated, replaced by explicitly defined relationship list - QString Q_DECL_DEPRECATED relationshipType() const; // deprecated, replaced by explicitly defined relationship list - - void Q_DECL_DEPRECATED setSecond(const QContactId& secondId); // deprecated, replaced by explicitly defined relationship list - QContactId Q_DECL_DEPRECATED second() const; // deprecated, replaced by explicitly defined relationship list - - void setRelationships(const QList& relationships); // replaces the above functions. + void setRelationships(const QList& relationships); QList relationships() const; /* Results */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactrelationshipsaverequest.cpp --- a/qtmobility/src/contacts/requests/qcontactrelationshipsaverequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactrelationshipsaverequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -63,11 +63,6 @@ { } -/*! Cleans up the memory in use by this relationship save request */ -QContactRelationshipSaveRequest::~QContactRelationshipSaveRequest() -{ -} - /*! Sets the relationships to save to be \a contactRelationships */ void QContactRelationshipSaveRequest::setRelationships(const QList& contactRelationships) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactrelationshipsaverequest.h --- a/qtmobility/src/contacts/requests/qcontactrelationshipsaverequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactrelationshipsaverequest.h Mon May 03 13:18:40 2010 +0300 @@ -58,7 +58,6 @@ public: QContactRelationshipSaveRequest(); - ~QContactRelationshipSaveRequest(); /* Selection */ void setRelationships(const QList& contactRelationships); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactremoverequest.cpp --- a/qtmobility/src/contacts/requests/qcontactremoverequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactremoverequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -62,34 +62,6 @@ { } -/*! Cleans up the memory in use by the contact remove request */ -QContactRemoveRequest::~QContactRemoveRequest() -{ -} - -/*! - \internal - Sets the filter which will be used to select the contacts to remove to \a filter. - This function is obsolete; set the list of contacts that will be removed by calling setContactIds(). - */ -void QContactRemoveRequest::setFilter(const QContactFilter& filter) -{ - Q_D(QContactRemoveRequest); - d->m_filter = filter; -} - -/*! - \internal - Returns the filter which will be used to select the contacts to remove. - This function is obsolete; retrieve the list of contacts that will be removed by calling contactIds(). - */ -QContactFilter QContactRemoveRequest::filter() const -{ - Q_D(const QContactRemoveRequest); - return d->m_filter; -} - - /*! Sets the list of ids of contacts which will be removed to \a contactIds */ void QContactRemoveRequest::setContactIds(const QList& contactIds) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactremoverequest.h --- a/qtmobility/src/contacts/requests/qcontactremoverequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactremoverequest.h Mon May 03 13:18:40 2010 +0300 @@ -57,13 +57,9 @@ public: QContactRemoveRequest(); - ~QContactRemoveRequest(); /* Selection */ - void Q_DECL_DEPRECATED setFilter(const QContactFilter& filter); // deprecated, replaced by explicit list of contacts to remove - QContactFilter Q_DECL_DEPRECATED filter() const; // deprecated, replaced by explicit list of contacts to remove - - void setContactIds(const QList& contactIds); // replaces the above + void setContactIds(const QList& contactIds); QList contactIds() const; /* Results */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactrequests_p.h --- a/qtmobility/src/contacts/requests/qcontactrequests_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactrequests_p.h Mon May 03 13:18:40 2010 +0300 @@ -105,7 +105,7 @@ QContactFilter m_filter; QList m_sorting; - QStringList m_definitionRestrictions; + QContactFetchHint m_fetchHint; QList m_contacts; }; @@ -127,8 +127,6 @@ return QContactAbstractRequest::ContactRemoveRequest; } - QContactFilter m_filter; // deprecated, to be removed - QList m_contactIds; QMap m_errors; }; @@ -227,8 +225,7 @@ { public: QContactRelationshipFetchRequestPrivate() - : QContactAbstractRequestPrivate(), - m_role(QContactRelationshipFilter::Either) // deprecated + : QContactAbstractRequestPrivate() { } @@ -248,9 +245,6 @@ // results QList m_relationships; - - QContactId m_participantUri; // deprecated - QContactRelationshipFilter::Role m_role; // deprecated }; class QContactRelationshipSaveRequestPrivate : public QContactAbstractRequestPrivate @@ -291,10 +285,6 @@ return QContactAbstractRequest::RelationshipRemoveRequest; } - QContactId m_first; // deprecated, to be removed - QContactId m_second; // deprecated, to be removed - QString m_relationshipType; // deprecated, to be removed - QList m_relationships; QMap m_errors; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactsaverequest.cpp --- a/qtmobility/src/contacts/requests/qcontactsaverequest.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactsaverequest.cpp Mon May 03 13:18:40 2010 +0300 @@ -63,11 +63,6 @@ { } -/*! Cleans up the memory in use by this contact save request */ -QContactSaveRequest::~QContactSaveRequest() -{ -} - /*! Sets the list of contacts to be saved to \a contacts */ void QContactSaveRequest::setContacts(const QList& contacts) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/contacts/requests/qcontactsaverequest.h --- a/qtmobility/src/contacts/requests/qcontactsaverequest.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactsaverequest.h Mon May 03 13:18:40 2010 +0300 @@ -57,7 +57,6 @@ public: QContactSaveRequest(); - ~QContactSaveRequest(); /* Selection */ void setContacts(const QList& contacts); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/gconfitem.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/location/gconfitem.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,370 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Mobility Components. +** +** $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 +#include +#include +#include +#include + +#include "gconfitem.h" + +#include +#include +#include + +struct GConfItemPrivate { + QString key; + QVariant value; + guint notify_id; + + static void notify_trampoline(GConfClient*, guint, GConfEntry *, gpointer); +}; + +#define withClient(c) for(GConfClient *c = (g_type_init(), gconf_client_get_default()); c; g_object_unref(c), c=NULL) + +static QByteArray convertKey (QString key) +{ + if (key.startsWith('/')) + return key.toUtf8(); + else + { + qWarning() << "Using dot-separated key names with GConfItem is deprecated."; + qWarning() << "Please use" << '/' + key.replace('.', '/') << "instead of" << key; + return '/' + key.replace('.', '/').toUtf8(); + } +} + +static QString convertKey(const char *key) +{ + return QString::fromUtf8(key); +} + +static QVariant convertValue(GConfValue *src) +{ + if (!src) { + return QVariant(); + } else { + switch (src->type) { + case GCONF_VALUE_INVALID: + return QVariant(QVariant::Invalid); + case GCONF_VALUE_BOOL: + return QVariant((bool)gconf_value_get_bool(src)); + case GCONF_VALUE_INT: + return QVariant(gconf_value_get_int(src)); + case GCONF_VALUE_FLOAT: + return QVariant(gconf_value_get_float(src)); + case GCONF_VALUE_STRING: + return QVariant(QString::fromUtf8(gconf_value_get_string(src))); + case GCONF_VALUE_LIST: + switch (gconf_value_get_list_type(src)) { + case GCONF_VALUE_STRING: + { + QStringList result; + for (GSList *elts = gconf_value_get_list(src); elts; elts = elts->next) + result.append(QString::fromUtf8(gconf_value_get_string((GConfValue *)elts->data))); + return QVariant(result); + } + default: + { + QList result; + for (GSList *elts = gconf_value_get_list(src); elts; elts = elts->next) + result.append(convertValue((GConfValue *)elts->data)); + return QVariant(result); + } + } + case GCONF_VALUE_SCHEMA: + default: + return QVariant(); + } + } +} + +static GConfValue *convertString(const QString &str) +{ + GConfValue *v = gconf_value_new (GCONF_VALUE_STRING); + gconf_value_set_string (v, str.toUtf8().data()); + return v; +} + +static GConfValueType primitiveType (const QVariant &elt) +{ + switch(elt.type()) { + case QVariant::String: + return GCONF_VALUE_STRING; + case QVariant::Int: + return GCONF_VALUE_INT; + case QVariant::Double: + return GCONF_VALUE_FLOAT; + case QVariant::Bool: + return GCONF_VALUE_BOOL; + default: + return GCONF_VALUE_INVALID; + } +} + +static GConfValueType uniformType(const QList &list) +{ + GConfValueType result = GCONF_VALUE_INVALID; + + foreach (const QVariant &elt, list) { + GConfValueType elt_type = primitiveType (elt); + + if (elt_type == GCONF_VALUE_INVALID) + return GCONF_VALUE_INVALID; + + if (result == GCONF_VALUE_INVALID) + result = elt_type; + else if (result != elt_type) + return GCONF_VALUE_INVALID; + } + + if (result == GCONF_VALUE_INVALID) + return GCONF_VALUE_STRING; // empty list. + else + return result; +} + +static int convertValue(const QVariant &src, GConfValue **valp) +{ + GConfValue *v; + + switch(src.type()) { + case QVariant::Invalid: + v = NULL; + break; + case QVariant::Bool: + v = gconf_value_new (GCONF_VALUE_BOOL); + gconf_value_set_bool (v, src.toBool()); + break; + case QVariant::Int: + v = gconf_value_new (GCONF_VALUE_INT); + gconf_value_set_int (v, src.toInt()); + break; + case QVariant::Double: + v = gconf_value_new (GCONF_VALUE_FLOAT); + gconf_value_set_float (v, src.toDouble()); + break; + case QVariant::String: + v = convertString(src.toString()); + break; + case QVariant::StringList: + { + GSList *elts = NULL; + v = gconf_value_new(GCONF_VALUE_LIST); + gconf_value_set_list_type(v, GCONF_VALUE_STRING); + foreach (const QString &str, src.toStringList()) + elts = g_slist_prepend(elts, convertString(str)); + gconf_value_set_list_nocopy(v, g_slist_reverse(elts)); + break; + } + case QVariant::List: + { + GConfValueType elt_type = uniformType(src.toList()); + if (elt_type == GCONF_VALUE_INVALID) + v = NULL; + else + { + GSList *elts = NULL; + v = gconf_value_new(GCONF_VALUE_LIST); + gconf_value_set_list_type(v, elt_type); + foreach (const QVariant &elt, src.toList()) + { + GConfValue *val = NULL; + convertValue(elt, &val); // guaranteed to succeed. + elts = g_slist_prepend(elts, val); + } + gconf_value_set_list_nocopy(v, g_slist_reverse(elts)); + } + break; + } + default: + return 0; + } + + *valp = v; + return 1; +} + +void GConfItemPrivate::notify_trampoline (GConfClient*, + guint, + GConfEntry *, + gpointer data) +{ + GConfItem *item = (GConfItem *)data; + item->update_value (true); +} + +void GConfItem::update_value (bool emit_signal) +{ + QVariant new_value; + + withClient(client) { + GError *error = NULL; + QByteArray k = convertKey(priv->key); + GConfValue *v = gconf_client_get(client, k.data(), &error); + + if (error) { + qWarning() << error->message; + g_error_free (error); + new_value = priv->value; + } else { + new_value = convertValue(v); + if (v) + gconf_value_free(v); + } + } + + if (new_value != priv->value) { + priv->value = new_value; + if (emit_signal) + emit valueChanged(); + } +} + +QString GConfItem::key() const +{ + return priv->key; +} + +QVariant GConfItem::value() const +{ + return priv->value; +} + +QVariant GConfItem::value(const QVariant &def) const +{ + if (priv->value.isNull()) + return def; + else + return priv->value; +} + +void GConfItem::set(const QVariant &val) +{ + withClient(client) { + QByteArray k = convertKey(priv->key); + GConfValue *v; + if (convertValue(val, &v)) { + GError *error = NULL; + + if (v) { + gconf_client_set(client, k.data(), v, &error); + gconf_value_free(v); + } else { + gconf_client_unset(client, k.data(), &error); + } + + if (error) { + qWarning() << error->message; + g_error_free(error); + } else if (priv->value != val) { + priv->value = val; + emit valueChanged(); + } + + } else + qWarning() << "Can't store a" << val.typeName(); + } +} + +void GConfItem::unset() { + set(QVariant()); +} + +QList GConfItem::listDirs() const +{ + QList children; + + withClient(client) { + QByteArray k = convertKey(priv->key); + GSList *dirs = gconf_client_all_dirs(client, k.data(), NULL); + for (GSList *d = dirs; d; d = d->next) { + children.append(convertKey((char *)d->data)); + g_free (d->data); + } + g_slist_free (dirs); + } + + return children; +} + +QList GConfItem::listEntries() const +{ + QList children; + + withClient(client) { + QByteArray k = convertKey(priv->key); + GSList *entries = gconf_client_all_entries(client, k.data(), NULL); + for (GSList *e = entries; e; e = e->next) { + children.append(convertKey(((GConfEntry *)e->data)->key)); + gconf_entry_free ((GConfEntry *)e->data); + } + g_slist_free (entries); + } + + return children; +} + +GConfItem::GConfItem(const QString &key, QObject *parent) + : QObject (parent) +{ + priv = new GConfItemPrivate; + priv->key = key; + withClient(client) { + update_value (false); + QByteArray k = convertKey(priv->key); + gconf_client_add_dir (client, k.data(), GCONF_CLIENT_PRELOAD_ONELEVEL, NULL); + priv->notify_id = gconf_client_notify_add (client, k.data(), + GConfItemPrivate::notify_trampoline, this, + NULL, NULL); + } +} + +GConfItem::~GConfItem() +{ + withClient(client) { + QByteArray k = convertKey(priv->key); + gconf_client_notify_remove (client, priv->notify_id); + gconf_client_remove_dir (client, k.data(), NULL); + } + delete priv; +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/gconfitem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/location/gconfitem.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,166 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Mobility Components. +** +** $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 GCONFITEM_H +#define GCONFITEM_H + +#include +#include +#include + +/*! + + \brief GConfItem is a simple C++ wrapper for GConf. + + Creating a GConfItem instance gives you access to a single GConf + key. You can get and set its value, and connect to its + valueChanged() signal to be notified about changes. + + The value of a GConf key is returned to you as a QVariant, and you + pass in a QVariant when setting the value. GConfItem converts + between a QVariant and GConf values as needed, and according to the + following rules: + + - A QVariant of type QVariant::Invalid denotes an unset GConf key. + + - QVariant::Int, QVariant::Double, QVariant::Bool are converted to + and from the obvious equivalents. + + - QVariant::String is converted to/from a GConf string and always + uses the UTF-8 encoding. No other encoding is supported. + + - QVariant::StringList is converted to a list of UTF-8 strings. + + - QVariant::List (which denotes a QList) is converted + to/from a GConf list. All elements of such a list must have the + same type, and that type must be one of QVariant::Int, + QVariant::Double, QVariant::Bool, or QVariant::String. (A list of + strings is returned as a QVariant::StringList, however, when you + get it back.) + + - Any other QVariant or GConf value is essentially ignored. + + \warning GConfItem is as thread-safe as GConf. + +*/ + +class GConfItem : public QObject +{ + Q_OBJECT + + public: + /*! Initializes a GConfItem to access the GConf key denoted by + \a key. Key names should follow the normal GConf conventions + like "/myapp/settings/first". + + \param key The name of the key. + \param parent Parent object + */ + explicit GConfItem(const QString &key, QObject *parent = 0); + + /*! Finalizes a GConfItem. + */ + virtual ~GConfItem(); + + /*! Returns the key of this item, as given to the constructor. + */ + QString key() const; + + /*! Returns the current value of this item, as a QVariant. + */ + QVariant value() const; + + /*! Returns the current value of this item, as a QVariant. If + * there is no value for this item, return \a def instead. + */ + QVariant value(const QVariant &def) const; + + /*! Set the value of this item to \a val. If \a val can not be + represented in GConf or GConf refuses to accept it for other + reasons, the current value is not changed and nothing happens. + + When the new value is different from the old value, the + changedValue() signal is emitted on this GConfItem as part + of calling set(), but other GConfItem:s for the same key do + only receive a notification once the main loop runs. + + \param val The new value. + */ + void set(const QVariant &val); + + /*! Unset this item. This is equivalent to + + \code + item.set(QVariant(QVariant::Invalid)); + \endcode + */ + void unset(); + + /*! Return a list of the directories below this item. The + returned strings are absolute key names like + "/myapp/settings". + + A directory is a key that has children. The same key might + also have a value, but that is confusing and best avoided. + */ + QList listDirs() const; + + /*! Return a list of entries below this item. The returned + strings are absolute key names like "/myapp/settings/first". + + A entry is a key that has a value. The same key might also + have children, but that is confusing and is best avoided. + */ + QList listEntries() const; + + signals: + /*! Emitted when the value of this item has changed. + */ + void valueChanged(); + + private: + friend struct GConfItemPrivate; + struct GConfItemPrivate *priv; + + void update_value(bool emit_signal); +}; + +#endif // GCONFITEM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/liblocationwrapper.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/location/liblocationwrapper.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,385 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "liblocationwrapper_p.h" + +using namespace std; + +QTM_BEGIN_NAMESPACE + +Q_GLOBAL_STATIC(LiblocationWrapper, LocationEngine) + +LiblocationWrapper *LiblocationWrapper::instance() +{ + return LocationEngine(); +} + +LiblocationWrapper::~LiblocationWrapper() +{ + if (locationDevice) + g_object_unref(locationDevice); + if (locationControl) + g_object_unref(locationControl); +} + +bool LiblocationWrapper::inited() +{ + int retval = false; + if (!(locationState & LiblocationWrapper::Inited)) { + g_type_init(); + + locationControl = location_gpsd_control_get_default(); + + if (locationControl) { + g_object_set(G_OBJECT(locationControl), + "preferred-method", LOCATION_METHOD_USER_SELECTED, + "preferred-interval", LOCATION_INTERVAL_1S, + NULL); + locationDevice = + (LocationGPSDevice*)g_object_new(LOCATION_TYPE_GPS_DEVICE, + NULL); + + if (locationDevice) { + errorHandlerId = + g_signal_connect(G_OBJECT(locationControl), "error-verbose", + G_CALLBACK(&locationError), + static_cast(this)); + posChangedId = + g_signal_connect(G_OBJECT(locationDevice), "changed", + G_CALLBACK(&locationChanged), + static_cast(this)); + locationState = LiblocationWrapper::Inited; + retval = true; + startcounter = 0; + } + } + } else { + retval = true; + } + return retval; +} + +void LiblocationWrapper::locationError(LocationGPSDevice *device, + gint errorCode, gpointer data) +{ + Q_UNUSED(device); + QString locationError; + + switch (errorCode) { + case LOCATION_ERROR_USER_REJECTED_DIALOG: + locationError = "User didn't enable requested methods"; + break; + case LOCATION_ERROR_USER_REJECTED_SETTINGS: + locationError = "User changed settings, which disabled location."; + break; + case LOCATION_ERROR_BT_GPS_NOT_AVAILABLE: + locationError = "Problems with BT GPS"; + break; + case LOCATION_ERROR_METHOD_NOT_ALLOWED_IN_OFFLINE_MODE: + locationError = "Requested method is not allowed in offline mode"; + break; + case LOCATION_ERROR_SYSTEM: + locationError = "System error."; + break; + default: + locationError = "Unknown error."; + } + + qDebug() << "Location error:" << locationError; + + LiblocationWrapper *object; + object = (LiblocationWrapper *)data; + emit object->error(); +} + +void LiblocationWrapper::locationChanged(LocationGPSDevice *device, + gpointer data) +{ + QGeoPositionInfo posInfo; + QGeoCoordinate coordinate; + QGeoSatelliteInfo satInfo; + int satellitesInUseCount = 0; + LiblocationWrapper *object; + + if (!data || !device) { + return; + } + + object = (LiblocationWrapper *)data; + + if (device) { + if (device->fix) { + if (device->fix->fields & LOCATION_GPS_DEVICE_TIME_SET) { + posInfo.setTimestamp(QDateTime::fromTime_t(device->fix->time)); + } + + if (device->fix->fields & LOCATION_GPS_DEVICE_LATLONG_SET) { + coordinate.setLatitude(device->fix->latitude); + coordinate.setLongitude(device->fix->longitude); + posInfo.setAttribute(QGeoPositionInfo::HorizontalAccuracy, + device->fix->eph); + posInfo.setAttribute(QGeoPositionInfo::VerticalAccuracy, + device->fix->epv); + } + + if (device->fix->fields & LOCATION_GPS_DEVICE_ALTITUDE_SET) { + coordinate.setAltitude(device->fix->altitude); + } + + if (device->fix->fields & LOCATION_GPS_DEVICE_SPEED_SET) { + posInfo.setAttribute(QGeoPositionInfo::GroundSpeed, + device->fix->speed); + } + + if (device->fix->fields & LOCATION_GPS_DEVICE_CLIMB_SET) { + posInfo.setAttribute(QGeoPositionInfo::VerticalSpeed, + device->fix->climb); + } + + if (device->fix->fields & LOCATION_GPS_DEVICE_TRACK_SET) { + posInfo.setAttribute(QGeoPositionInfo::Direction, + device->fix->track); + } + } + + if (device->satellites_in_view) { + QList satsInView; + QList satsInUse; + unsigned int i; + for (i=0;isatellites->len;i++) { + LocationGPSDeviceSatellite *satData = + (LocationGPSDeviceSatellite *)g_ptr_array_index(device->satellites, + i); + satInfo.setSignalStrength(satData->signal_strength); + satInfo.setPrnNumber(satData->prn); + satInfo.setAttribute(QGeoSatelliteInfo::Elevation, + satData->elevation); + satInfo.setAttribute(QGeoSatelliteInfo::Azimuth, + satData->azimuth); + + satsInView.append(satInfo); + if (satData->in_use) { + satellitesInUseCount++; + satsInUse.append(satInfo); + } + } + + if (!satsInView.isEmpty()) + object->satellitesInViewUpdated(satsInView); + + if (!satsInUse.isEmpty()) + object->satellitesInUseUpdated(satsInUse); + } + } + + posInfo.setCoordinate(coordinate); + + if ((device->fix->fields & LOCATION_GPS_DEVICE_TIME_SET) && + ((device->fix->mode == LOCATION_GPS_DEVICE_MODE_3D) || + (device->fix->mode == LOCATION_GPS_DEVICE_MODE_2D))) { + object->setLocation(posInfo, true); + } else { + object->setLocation(posInfo, false); + } +} + +void LiblocationWrapper::setLocation(const QGeoPositionInfo &update, + bool locationValid) +{ + validLastSatUpdate = locationValid; + lastSatUpdate = update; +} + +QGeoPositionInfo LiblocationWrapper::position() { + return lastSatUpdate; +} + +bool LiblocationWrapper::fixIsValid() +{ + return validLastSatUpdate; +} + +QGeoPositionInfo LiblocationWrapper::lastKnownPosition(bool fromSatellitePositioningMethodsOnly) const +{ + QGeoPositionInfo posInfo; + QGeoCoordinate coordinate; + double time; + double latitude; + double longitude; + double altitude; + double speed; + double track; + double climb; + + GConfItem lastKnownPositionTime("/system/nokia/location/lastknown/time"); + GConfItem lastKnownPositionLatitude("/system/nokia/location/lastknown/latitude"); + GConfItem lastKnownPositionLongitude("/system/nokia/location/lastknown/longitude"); + GConfItem lastKnownPositionAltitude("/system/nokia/location/lastknown/altitude"); + GConfItem lastKnownPositionSpeed("/system/nokia/location/lastknown/speed"); + GConfItem lastKnownPositionTrack("/system/nokia/location/lastknown/track"); + GConfItem lastKnownPositionClimb("/system/nokia/location/lastknown/climb"); + + if (validLastSatUpdate) + return lastSatUpdate; + + if (!fromSatellitePositioningMethodsOnly) + if (validLastUpdate) + return lastUpdate; + + time = lastKnownPositionTime.value().toDouble(); + latitude = lastKnownPositionLatitude.value().toDouble(); + longitude = lastKnownPositionLongitude.value().toDouble(); + altitude = lastKnownPositionAltitude.value().toDouble(); + speed = lastKnownPositionSpeed.value().toDouble(); + track = lastKnownPositionTrack.value().toDouble(); + climb = lastKnownPositionClimb.value().toDouble(); + + if (longitude && latitude) { + coordinate.setLongitude(longitude); + coordinate.setLatitude(latitude); + if (altitude) { + coordinate.setAltitude(altitude); + } + posInfo.setCoordinate(coordinate); + } + + if (speed) { + posInfo.setAttribute(QGeoPositionInfo::GroundSpeed, speed); + } + + if (track) { + posInfo.setAttribute(QGeoPositionInfo::Direction, track); + } + + if (climb) { + posInfo.setAttribute(QGeoPositionInfo::VerticalSpeed, climb); + } + + // Only positions with time (3D) are provided. + if (time) { + posInfo.setTimestamp(QDateTime::fromTime_t(time)); + return posInfo; + } + + return QGeoPositionInfo(); +} + +void LiblocationWrapper::satellitesInViewUpdated(const QList &satellites) +{ + satsInView = satellites; +} + +void LiblocationWrapper::satellitesInUseUpdated(const QList &satellites) +{ + satsInUse = satellites; +} + +QList LiblocationWrapper::satellitesInView() +{ + return satsInView; +} + +QList LiblocationWrapper::satellitesInUse() +{ + return satsInUse; +} + +void LiblocationWrapper::start() { + startcounter++; + + if ((locationState & LiblocationWrapper::Inited) && + !(locationState & LiblocationWrapper::Started)) { + if (!errorHandlerId) { + errorHandlerId = + g_signal_connect(G_OBJECT(locationControl), "error-verbose", + G_CALLBACK(&locationError), + static_cast(this)); + } + + if (!posChangedId) { + posChangedId = + g_signal_connect(G_OBJECT(locationDevice), "changed", + G_CALLBACK(&locationChanged), + static_cast(this)); + } + + location_gpsd_control_start(locationControl); + + locationState |= LiblocationWrapper::Started; + locationState &= ~LiblocationWrapper::Stopped; + } +} + +void LiblocationWrapper::stop() { + startcounter--; + + if (startcounter > 0) + return; + + if ((locationState & (LiblocationWrapper::Started | + LiblocationWrapper::Inited)) && + !(locationState & LiblocationWrapper::Stopped)) { + if (errorHandlerId) + g_signal_handler_disconnect(G_OBJECT(locationControl), + errorHandlerId); + if (posChangedId) + g_signal_handler_disconnect(G_OBJECT(locationDevice), + posChangedId); + errorHandlerId = 0; + posChangedId = 0; + startcounter = 0; + location_gpsd_control_stop(locationControl); + + locationState &= ~LiblocationWrapper::Started; + locationState |= LiblocationWrapper::Stopped; + } +} + +bool LiblocationWrapper::isActive() { + if (locationState & LiblocationWrapper::Started) + return true; + else + return false; +} + +#include "moc_liblocationwrapper_p.cpp" +QTM_END_NAMESPACE + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/liblocationwrapper_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/location/liblocationwrapper_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,123 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 LIBLOCATIONWRAPPER_H +#define LIBLOCATINWRAPPER_H + +// INCLUDES +#include +#include + +#include "qgeocoordinate.h" +#include "qgeopositioninfo.h" +#include "qgeosatelliteinfo.h" + +#include "gconfitem.h" + +extern "C" { + #include + #include + #include + #include + #include +} + +QTM_BEGIN_NAMESPACE + +class LiblocationWrapper : public QObject +{ + Q_OBJECT + +public: + static LiblocationWrapper *instance(); + ~LiblocationWrapper(); + + void start(); + void stop(); + QGeoPositionInfo lastKnownPosition(bool fromSatellitePositioningMethodsOnly = false) const; + bool inited(); + QGeoPositionInfo position(); + bool fixIsValid(); + bool isActive(); + QList satellitesInView(); + QList satellitesInUse(); + +private: + QFile *file; + LocationGPSDControl *locationControl; + LocationGPSDevice *locationDevice; + + static void locationError(LocationGPSDevice *device, gint code, gpointer data); + static void locationChanged(LocationGPSDevice *device, gpointer data); + + int errorHandlerId; + int posChangedId; + int origUpdateInterval; + int startcounter; + QGeoPositionInfo lastUpdate; + QGeoPositionInfo lastSatUpdate; + bool validLastUpdate; + bool validLastSatUpdate; + + void satellitesInViewUpdated(const QList &satellites); + void satellitesInUseUpdated(const QList &satellites); + QList satsInView; + QList satsInUse; + + enum LocationState { + Undefined = 0, + Inited = 1, + Started = 2, + Stopped = 4, + RequestActive = 8, + RequestSingleShot = 16 + }; + int locationState; + +private slots: + void setLocation(const QGeoPositionInfo &update, bool locationValid); + +signals: + void error(); +}; + +QTM_END_NAMESPACE +#endif // LIBLOCATIONWRAPPER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/location.pro --- a/qtmobility/src/location/location.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/location.pro Mon May 03 13:18:40 2010 +0300 @@ -20,7 +20,7 @@ PRIVATE_HEADERS += qlocationutils_p.h \ qnmeapositioninfosource_p.h -symbian { +symbian { PRIVATE_HEADERS += qgeopositioninfosource_s60_p.h \ qmlbackendao_s60_p.h \ qgeosatelliteinfosource_s60_p.h \ @@ -51,20 +51,18 @@ } } -wince* { +wince* { PRIVATE_HEADERS += qgeopositioninfosource_wince_p.h \ qgeosatelliteinfosource_wince_p.h \ qgeoinfothread_wince_p.h SOURCES += qgeopositioninfosource_wince.cpp \ qgeosatelliteinfosource_wince.cpp \ qgeoinfothread_wince.cpp - LIBS += -lgpsapi } maemo6 { CONFIG += qdbus link_pkgconfig - SOURCES += qgeopositioninfosource_maemo.cpp \ qgeosatelliteinfosource_maemo.cpp \ dbuscomm_maemo.cpp \ @@ -75,23 +73,43 @@ dbusserver_maemo_p.h } +maemo5 { + CONFIG += qdbus link_pkgconfig + SOURCES += gconfitem.cpp \ + liblocationwrapper.cpp \ + qgeopositioninfosource_maemo5.cpp \ + qgeosatelliteinfosource_maemo5.cpp \ + qgeoareamonitor_maemo.cpp + HEADERS += gconfitem.h \ + liblocationwrapper_p.h \ + qgeopositioninfosource_maemo5_p.h \ + qgeosatelliteinfosource_maemo5_p.h \ + qgeoareamonitor_maemo_p.h + PKGCONFIG += glib-2.0 gconf-2.0 + CONFIG += create_pc create_prl + LIBS += -llocation + QMAKE_PKGCONFIG_REQUIRES = glib-2.0 gconf-2.0 + pkgconfig.path = $$QT_MOBILITY_LIB/pkgconfig + pkgconfig.files = QtLocation.pc +} + HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS -SOURCES += qlocationutils.cpp \ - qgeocoordinate.cpp \ - qgeopositioninfo.cpp \ - qgeosatelliteinfo.cpp \ - qgeosatelliteinfosource.cpp \ - qgeopositioninfosource.cpp \ - qgeoareamonitor.cpp \ - qnmeapositioninfosource.cpp - -symbian { +SOURCES += qlocationutils.cpp \ + qgeocoordinate.cpp \ + qgeopositioninfo.cpp \ + qgeosatelliteinfo.cpp \ + qgeosatelliteinfosource.cpp \ + qgeopositioninfosource.cpp \ + qgeoareamonitor.cpp \ + qnmeapositioninfosource.cpp +symbian { TARGET.CAPABILITY = ALL -TCB TARGET.UID3 = 0x2002AC83 INCLUDEPATH += $${EPOCROOT}epoc32\include\osextensions \ - $${EPOCROOT}epoc32\include\LBTHeaders + $${EPOCROOT}epoc32\include\LBTHeaders \ + $${EPOCROOT}epoc32\include\platform LIBS += -llbs contains(lbt_enabled, yes) { LIBS += -llbt diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeoareamonitor.cpp --- a/qtmobility/src/location/qgeoareamonitor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeoareamonitor.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,6 +42,8 @@ #if defined(Q_OS_SYMBIAN) && defined(QT_LOCATION_S60_MONITORING) #include "qgeoareamonitor_s60_p.h" +#elif defined(Q_WS_MAEMO_5) +#include "qgeoareamonitor_maemo_p.h" #endif /*! @@ -174,6 +176,9 @@ QGeoAreaMonitor *ret = NULL; TRAPD(error, ret = QGeoAreaMonitorS60::NewL(parent)); return ret; +#elif defined(Q_WS_MAEMO_5) + QGeoAreaMonitorMaemo *ret = new QGeoAreaMonitorMaemo(parent); + return ret; #else Q_UNUSED(parent); #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeoareamonitor_maemo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/location/qgeoareamonitor_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,100 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgeoareamonitor_maemo_p.h" + +QTM_BEGIN_NAMESPACE + +#define UPDATE_INTERVAL_5S 5000 +#define TO_METERS 1000 + +QGeoAreaMonitorMaemo::QGeoAreaMonitorMaemo(QObject *parent) : QGeoAreaMonitor(parent) +{ + insideArea = false; + location = QGeoPositionInfoSource::createDefaultSource(this); + if(location) { + location->setUpdateInterval(UPDATE_INTERVAL_5S); + connect(location, SIGNAL(positionUpdated(QGeoPositionInfo)), + this, SLOT(positionUpdated(QGeoPositionInfo))); + location->startUpdates(); + } +} + +QGeoAreaMonitorMaemo::~QGeoAreaMonitorMaemo() +{ + if(location) + location->stopUpdates(); + +} + +void QGeoAreaMonitorMaemo::setCenter(const QGeoCoordinate& coordinate) +{ + if (coordinate.isValid()) + QGeoAreaMonitor::setCenter(coordinate); +} + +void QGeoAreaMonitorMaemo::setRadius(qreal radius) +{ + QGeoAreaMonitor::setRadius(radius); +} + +void QGeoAreaMonitorMaemo::positionUpdated(const QGeoPositionInfo &info) +{ + double distance = + location_distance_between(info.coordinate().latitude(), + info.coordinate().longitude(), + QGeoAreaMonitor::center().latitude(), + QGeoAreaMonitor::center().longitude()); + + distance = distance * TO_METERS; + + if (distance <= QGeoAreaMonitor::radius()) { + if(!insideArea) + emit areaEntered(info); + insideArea = true; + } else if (insideArea) { + emit areaExited(info); + insideArea = false; + } +} + +#include "moc_qgeoareamonitor_maemo_p.cpp" +QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeoareamonitor_maemo_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/location/qgeoareamonitor_maemo_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,81 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGEOAREAMONITORMAEMO_H +#define QGEOAREAMONITORMAEMO_H + +#include "qgeoareamonitor.h" +#include "qgeopositioninfosource.h" + +extern "C" { + // The following include is needed since liblocation v. 0.102 has a bug in + // location-distance-utils.h + #include + + #include +} + +QTM_BEGIN_NAMESPACE + +/** + * QGeoAreaMonitorMaemo + * + */ +class QGeoAreaMonitorMaemo : public QGeoAreaMonitor +{ + Q_OBJECT + +public : + QGeoAreaMonitorMaemo(QObject *parent = 0); + ~QGeoAreaMonitorMaemo(); + void setCenter(const QGeoCoordinate &coordinate); + void setRadius(qreal radius); + +private slots: + void positionUpdated(const QGeoPositionInfo &info); + +private: + bool insideArea; + QGeoPositionInfoSource *location; +}; + +QTM_END_NAMESPACE +#endif // QGEOAREAMONITORMAEMO_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeoareamonitor_s60.cpp --- a/qtmobility/src/location/qgeoareamonitor_s60.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeoareamonitor_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -130,6 +130,9 @@ case ExitTrigger : //emit areaExited trigger emit areaExited(posInfo); break; + case NotifyChangesTrigger: + case InvalidTrigger: + break; } } @@ -221,7 +224,7 @@ datetime.MicroSecond() / 1000)); //store the time stamp - aQInfo.setDateTime(dt); + aQInfo.setTimestamp(dt); //store the horizontal accuracy aQInfo.setAttribute(QGeoPositionInfo::HorizontalAccuracy, pos.HorizontalAccuracy()); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeoinfothread_wince.cpp --- a/qtmobility/src/location/qgeoinfothread_wince.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeoinfothread_wince.cpp Mon May 03 13:18:40 2010 +0300 @@ -139,13 +139,6 @@ locker.unlock(); wakeUp(); - /* - // See comments above run() to see why we're doing things like this - if (!isRunning()) - start(); - else - wakeUp(); - */ } } @@ -162,13 +155,6 @@ locker.unlock(); wakeUp(); - /* - // See comments above run() to see why we're doing things like this - if (!isRunning()) - start(); - else - wakeUp(); - */ } } @@ -355,7 +341,6 @@ // The GPS state has been updated. - /* If this takes ages we can mark the on state from updates and check for the off state after timeouts if (dwRet == WAIT_OBJECT_0 + 1) { GPS_DEVICE device; device.dwVersion = GPS_VERSION_1; @@ -372,7 +357,6 @@ m_gps = GPSOpenDevice(m_newDataEvent, m_gpsStateChange, NULL, 0); } } - */ // We reach this point if the gps state has changed, if the wake up event has been // triggered, if we received data we were not interested in from the GPS, diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeopositioninfo.cpp --- a/qtmobility/src/location/qgeopositioninfo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeopositioninfo.cpp Mon May 03 13:18:40 2010 +0300 @@ -49,7 +49,7 @@ class QGeoPositionInfoPrivate { public: - QDateTime dateTime; + QDateTime timestamp; QGeoCoordinate coord; QHash doubleAttribs; }; @@ -89,12 +89,12 @@ } /*! - Creates a QGeoPositionInfo for the given \a coordinate and \a dateTime. + Creates a QGeoPositionInfo for the given \a coordinate and \a timestamp. */ -QGeoPositionInfo::QGeoPositionInfo(const QGeoCoordinate &coordinate, const QDateTime &dateTime) +QGeoPositionInfo::QGeoPositionInfo(const QGeoCoordinate &coordinate, const QDateTime ×tamp) : d(new QGeoPositionInfoPrivate) { - d->dateTime = dateTime; + d->timestamp = timestamp; d->coord = coordinate; } @@ -123,7 +123,7 @@ if (this == &other) return *this; - d->dateTime = other.d->dateTime; + d->timestamp = other.d->timestamp; d->coord = other.d->coord; d->doubleAttribs = other.d->doubleAttribs; @@ -136,7 +136,7 @@ */ bool QGeoPositionInfo::operator==(const QGeoPositionInfo &other) const { - return d->dateTime == other.d->dateTime + return d->timestamp == other.d->timestamp && d->coord == other.d->coord && d->doubleAttribs == other.d->doubleAttribs; } @@ -149,25 +149,25 @@ */ /*! - Returns true if the dateTime() and coordinate() values are both valid. + Returns true if the timestamp() and coordinate() values are both valid. \sa QGeoCoordinate::isValid(), QDateTime::isValid() */ bool QGeoPositionInfo::isValid() const { - return d->dateTime.isValid() && d->coord.isValid(); + return d->timestamp.isValid() && d->coord.isValid(); } /*! - Sets the date and time at which this position was reported to \a dateTime. + Sets the date and time at which this position was reported to \a timestamp. - The \a dateTime must be in UTC time. + The \a timestamp must be in UTC time. - \sa dateTime() + \sa timestamp() */ -void QGeoPositionInfo::setDateTime(const QDateTime &dateTime) +void QGeoPositionInfo::setTimestamp(const QDateTime ×tamp) { - d->dateTime = dateTime; + d->timestamp = timestamp; } /*! @@ -175,11 +175,11 @@ Returns an invalid QDateTime if no date/time value has been set. - \sa setDateTime() + \sa setTimestamp() */ -QDateTime QGeoPositionInfo::dateTime() const +QDateTime QGeoPositionInfo::timestamp() const { - return d->dateTime; + return d->timestamp; } /*! @@ -217,7 +217,11 @@ /*! Returns the value of the specified \a attribute as a qreal value. - Returns -1 if the value has not been set. + Returns -1 if the value has not been set, although this may also + be a legitimate value for some attributes. + + The function hasAttribute() should be used to determine whether or + not a value has been set for an attribute. \sa hasAttribute(), setAttribute() */ @@ -246,13 +250,13 @@ } #ifndef QT_NO_DEBUG_STREAM -QDebug operator<<(QDebug dbg, const QGeoPositionInfo &update) +QDebug operator<<(QDebug dbg, const QGeoPositionInfo &info) { - dbg.nospace() << "QGeoPositionInfo(" << update.d->dateTime; + dbg.nospace() << "QGeoPositionInfo(" << info.d->timestamp; dbg.nospace() << ", "; - dbg.nospace() << update.d->coord; + dbg.nospace() << info.d->coord; - QList attribs = update.d->doubleAttribs.keys(); + QList attribs = info.d->doubleAttribs.keys(); for (int i = 0; i < attribs.count(); i++) { dbg.nospace() << ", "; switch (attribs[i]) { @@ -275,7 +279,7 @@ dbg.nospace() << "VerticalAccuracy="; break; } - dbg.nospace() << update.d->doubleAttribs[attribs[i]]; + dbg.nospace() << info.d->doubleAttribs[attribs[i]]; } dbg.nospace() << ')'; return dbg; @@ -294,7 +298,7 @@ QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &info) { - stream << info.d->dateTime; + stream << info.d->timestamp; stream << info.d->coord; stream << info.d->doubleAttribs; return stream; @@ -314,7 +318,7 @@ QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &info) { - stream >> info.d->dateTime; + stream >> info.d->timestamp; stream >> info.d->coord; stream >> info.d->doubleAttribs; return stream; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeopositioninfo.h --- a/qtmobility/src/location/qgeopositioninfo.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeopositioninfo.h Mon May 03 13:18:40 2010 +0300 @@ -82,8 +82,8 @@ bool isValid() const; - void setDateTime(const QDateTime &dateTime); - QDateTime dateTime() const; + void setTimestamp(const QDateTime ×tamp); + QDateTime timestamp() const; void setCoordinate(const QGeoCoordinate &coordinate); QGeoCoordinate coordinate() const; @@ -95,22 +95,22 @@ private: #ifndef QT_NO_DEBUG_STREAM - friend Q_LOCATION_EXPORT QDebug operator<<(QDebug dbg, const QGeoPositionInfo &update); + friend Q_LOCATION_EXPORT QDebug operator<<(QDebug dbg, const QGeoPositionInfo &info); #endif #ifndef QT_NO_DATASTREAM - friend Q_LOCATION_EXPORT QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &update); - friend Q_LOCATION_EXPORT QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &update); + friend Q_LOCATION_EXPORT QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &info); + friend Q_LOCATION_EXPORT QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &info); #endif QGeoPositionInfoPrivate *d; }; #ifndef QT_NO_DEBUG_STREAM -Q_LOCATION_EXPORT QDebug operator<<(QDebug dbg, const QGeoPositionInfo &update); +Q_LOCATION_EXPORT QDebug operator<<(QDebug dbg, const QGeoPositionInfo &info); #endif #ifndef QT_NO_DATASTREAM -Q_LOCATION_EXPORT QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &update); -Q_LOCATION_EXPORT QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &update); +Q_LOCATION_EXPORT QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &info); +Q_LOCATION_EXPORT QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &info); #endif QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeopositioninfosource.cpp --- a/qtmobility/src/location/qgeopositioninfosource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeopositioninfosource.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,6 +46,8 @@ # include "qgeopositioninfosource_wince_p.h" #elif defined(Q_WS_MAEMO_6) # include "qgeopositioninfosource_maemo_p.h" +#elif defined(Q_WS_MAEMO_5) +# include "qgeopositioninfosource_maemo5_p.h" #endif QTM_BEGIN_NAMESPACE @@ -74,7 +76,8 @@ \code // Emit updates every 10 seconds if available QGeoPositionInfoSource *source = QGeoPositionInfoSource::createDefaultSource(); - source->setUpdateInterval(10000); + if (source) + source->setUpdateInterval(10000); \endcode To remove an update interval that was previously set, call @@ -136,6 +139,11 @@ interval is less than the minimumUpdateInterval(), the minimum interval is used instead. + Changes to the update interval will happen as soon as is practical, however the + time the change takes may vary between implementations. Whether or not the elapsed + time from the previous interval is counted as part of the new interval is also + implementation dependent. + The default value for this property is 0. Note: Subclass implementations must call the base implementation of @@ -193,10 +201,12 @@ #if defined(Q_OS_SYMBIAN) QGeoPositionInfoSource *ret = NULL; TRAPD(error, ret = CQGeoPositionInfoSourceS60::NewL(parent)); + if (error != KErrNone) + return 0; return ret; #elif defined(Q_OS_WINCE) return new QGeoPositionInfoSourceWinCE(parent); -#elif defined(Q_WS_MAEMO_6) +#elif (defined(Q_WS_MAEMO_6)) || (defined(Q_WS_MAEMO_5)) QGeoPositionInfoSourceMaemo *source = new QGeoPositionInfoSourceMaemo(parent); int status = source->init(); @@ -208,8 +218,8 @@ return source; #else Q_UNUSED(parent); + return 0; #endif - return 0; } /*! @@ -250,7 +260,7 @@ as soon as they become available. An updateTimout() signal will be emitted if this QGeoPositionInfoSource subclass determines - that it will not be able to provide regular updates. This could happen if a satelllite fix is + that it will not be able to provide regular updates. This could happen if a satellite fix is lost or if a hardware error is detected. Position updates will recommence if the data becomes available later on. The updateTimout() signal will not be emitted again until after the periodic updates resume. diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeopositioninfosource_maemo5.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/location/qgeopositioninfosource_maemo5.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,288 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgeopositioninfosource_maemo5_p.h" +#include "liblocationwrapper_p.h" + +using namespace std; + +QTM_BEGIN_NAMESPACE + +QGeoPositionInfoSourceMaemo::QGeoPositionInfoSourceMaemo(QObject *parent) + : QGeoPositionInfoSource(parent) +{ + // default values + availableMethods = SatellitePositioningMethods; + + timerInterval = DEFAULT_UPDATE_INTERVAL; + updateTimer = new QTimer(this); + updateTimer->setSingleShot(true); + connect(updateTimer, SIGNAL(timeout()), this, SLOT(newPositionUpdate())); + + requestTimer = new QTimer(this); + requestTimer->setSingleShot(true); + connect(requestTimer, SIGNAL(timeout()), this, SLOT(requestTimeoutElapsed())); + + errorOccurred = false; + errorSent = false; + + positionInfoState = QGeoPositionInfoSourceMaemo::Undefined; +} + +int QGeoPositionInfoSourceMaemo::init() +{ + if (LiblocationWrapper::instance()->inited()) { + connect(LiblocationWrapper::instance(), SIGNAL(error()), this, SLOT(error())); + return INIT_OK; + } else { + return INIT_FAILED; + } +} + +QGeoPositionInfo QGeoPositionInfoSourceMaemo::lastKnownPosition(bool fromSatellitePositioningMethodsOnly) const +{ + return (LiblocationWrapper::instance()->lastKnownPosition(fromSatellitePositioningMethodsOnly)); +} + +QGeoPositionInfoSource::PositioningMethods QGeoPositionInfoSourceMaemo::supportedPositioningMethods() const +{ + return availableMethods; +} + +void QGeoPositionInfoSourceMaemo::setUpdateInterval(int msec) +{ + bool updateTimerInterval = false; + + if (positionInfoState & QGeoPositionInfoSourceMaemo::PowersaveActive) + if (positionInfoState & QGeoPositionInfoSourceMaemo::Stopped) + updateTimerInterval = true; + + if (!msec) { + timerInterval = MINIMUM_UPDATE_INTERVAL; + QGeoPositionInfoSource::setUpdateInterval(0); + } else { + timerInterval = (msec < MINIMUM_UPDATE_INTERVAL) ? MINIMUM_UPDATE_INTERVAL : msec; + QGeoPositionInfoSource::setUpdateInterval(timerInterval); + } + + if (timerInterval >= POWERSAVE_THRESHOLD) + positionInfoState |= QGeoPositionInfoSourceMaemo::PowersaveActive; + else + positionInfoState &= ~QGeoPositionInfoSourceMaemo::PowersaveActive; + + // If powersave has been active when new update interval has been set, + // ensure that timer is started. + if(updateTimerInterval) + startLocationDaemon(); + + // Ensure that new timer interval is taken into use immediately. + activateTimer(); +} + +void QGeoPositionInfoSourceMaemo::setPreferredPositioningMethods(PositioningMethods sources) +{ + Q_UNUSED(sources) + return; +} + +int QGeoPositionInfoSourceMaemo::minimumUpdateInterval() const +{ + return MINIMUM_UPDATE_INTERVAL; +} + +// public slots: +void QGeoPositionInfoSourceMaemo::startUpdates() +{ + startLocationDaemon(); + + // Ensure that powersave is selected, if stopUpdates() has been called, + // but selected update interval is still greater than POWERSAVE_THRESHOLD. + if (timerInterval >= POWERSAVE_THRESHOLD) + positionInfoState |= QGeoPositionInfoSourceMaemo::PowersaveActive; + + activateTimer(); +} + +void QGeoPositionInfoSourceMaemo::stopUpdates() +{ + positionInfoState &= ~QGeoPositionInfoSourceMaemo::PowersaveActive; + + if (!(positionInfoState & QGeoPositionInfoSourceMaemo::RequestActive)) { + updateTimer->stop(); + if (LiblocationWrapper::instance()->isActive()) + LiblocationWrapper::instance()->stop(); + } + + errorOccurred = false; + errorSent = false; + + positionInfoState &= ~QGeoPositionInfoSourceMaemo::Started; + positionInfoState |= QGeoPositionInfoSourceMaemo::Stopped; +} + +void QGeoPositionInfoSourceMaemo::requestUpdate(int timeout) +{ + int timeoutForRequest = 0; + + if (!timeout) { + if (LiblocationWrapper::instance()->isActive()) + // If GPS is active, assume quick fix. + timeoutForRequest = DEFAULT_UPDATE_INTERVAL; + else + // Otherwise reserve longer time to get a fix. + timeoutForRequest = POWERSAVE_POWERON_PERIOD; + } else if (timeout < MINIMUM_UPDATE_INTERVAL) { + if (positionInfoState & QGeoPositionInfoSourceMaemo::RequestActive) + return; + + emit updateTimeout(); + return; + } else { + timeoutForRequest = timeout; + } + + positionInfoState |= QGeoPositionInfoSourceMaemo::RequestActive; + + if (!(LiblocationWrapper::instance()->isActive())) + LiblocationWrapper::instance()->start(); + + activateTimer(); + requestTimer->start(timeoutForRequest); +} + +void QGeoPositionInfoSourceMaemo::newPositionUpdate() +{ + if (LiblocationWrapper::instance()->fixIsValid()) { + errorOccurred = false; + errorSent = false; + + if (positionInfoState & QGeoPositionInfoSourceMaemo::RequestActive) { + positionInfoState &= ~QGeoPositionInfoSourceMaemo::RequestActive; + requestTimer->stop(); + + if (positionInfoState & QGeoPositionInfoSourceMaemo::Stopped) + if (LiblocationWrapper::instance()->isActive()) + LiblocationWrapper::instance()->stop(); + + // Ensure that requested position fix is emitted even though + // powersave is active and GPS would normally be off. + if ((positionInfoState & QGeoPositionInfoSourceMaemo::PowersaveActive) && + (positionInfoState & QGeoPositionInfoSourceMaemo::Stopped)) { + emit positionUpdated(LiblocationWrapper::instance()->position()); + } + } + + // Make sure that if update is triggered when waking up, there + // is no false position update. + if (!((positionInfoState & QGeoPositionInfoSourceMaemo::PowersaveActive) && + (positionInfoState & QGeoPositionInfoSourceMaemo::Stopped))) + emit positionUpdated(LiblocationWrapper::instance()->position()); + } else { + // if an error occurs when we are updating periodically and we haven't + // sent an error since the last fix... + if (!(positionInfoState & QGeoPositionInfoSourceMaemo::RequestActive) && + errorOccurred && !errorSent) { + errorSent = true; + // we need to emit the updateTimeout signal + emit updateTimeout(); + } + } + activateTimer(); +} + +void QGeoPositionInfoSourceMaemo::requestTimeoutElapsed() +{ + updateTimer->stop(); + emit updateTimeout(); + + positionInfoState &= ~QGeoPositionInfoSourceMaemo::RequestActive; + + if (positionInfoState & QGeoPositionInfoSourceMaemo::Stopped) + if (LiblocationWrapper::instance()->isActive()) + LiblocationWrapper::instance()->stop(); + + activateTimer(); +} + +void QGeoPositionInfoSourceMaemo::error() +{ + errorOccurred = true; +} + +void QGeoPositionInfoSourceMaemo::activateTimer() { + if (positionInfoState & QGeoPositionInfoSourceMaemo::RequestActive) { + updateTimer->start(MINIMUM_UPDATE_INTERVAL); + return; + } + + if (positionInfoState & QGeoPositionInfoSourceMaemo::PowersaveActive) { + if (positionInfoState & QGeoPositionInfoSourceMaemo::Started) { + // Cannot call stopUpdates() here since we want to keep powersave + // active. + if (LiblocationWrapper::instance()->isActive()) + LiblocationWrapper::instance()->stop(); + updateTimer->start(timerInterval - POWERSAVE_POWERON_PERIOD); + errorOccurred = false; + errorSent = false; + + positionInfoState &= ~QGeoPositionInfoSourceMaemo::Started; + positionInfoState |= QGeoPositionInfoSourceMaemo::Stopped; + } else if (positionInfoState & QGeoPositionInfoSourceMaemo::Stopped) { + startLocationDaemon(); + updateTimer->start(POWERSAVE_POWERON_PERIOD); + } + return; + } + + if (positionInfoState & QGeoPositionInfoSourceMaemo::Started) + updateTimer->start(timerInterval); +} + +void QGeoPositionInfoSourceMaemo::startLocationDaemon() { + if (!(LiblocationWrapper::instance()->isActive())) + LiblocationWrapper::instance()->start(); + positionInfoState |= QGeoPositionInfoSourceMaemo::Started; + positionInfoState &= ~QGeoPositionInfoSourceMaemo::Stopped; +} + +#include "moc_qgeopositioninfosource_maemo5_p.cpp" +QTM_END_NAMESPACE + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeopositioninfosource_maemo5_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/location/qgeopositioninfosource_maemo5_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,115 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGEOPOSITIONINFOSOURCEMAEMO5_H +#define QGEOPOSITIONINFOSOURCEMAEMO5_H + +#include +#include "qgeopositioninfosource.h" + +#define INIT_OK 0 +#define INIT_FAILED -1 +#define MINIMUM_UPDATE_INTERVAL 1000 +#define DEFAULT_UPDATE_INTERVAL 5000 +#define POWERSAVE_THRESHOLD 180000 +#define POWERSAVE_POWERON_PERIOD 120000 + +QTM_BEGIN_NAMESPACE + +class LiblocationWrapper; + +class QGeoPositionInfoSourceMaemo : public QGeoPositionInfoSource +{ + Q_OBJECT + +public: + + QGeoPositionInfoSourceMaemo(QObject *parent = 0); + + int init(); + + virtual void setUpdateInterval(int interval); + virtual void setPreferredPositioningMethods(PositioningMethods sources); + virtual QGeoPositionInfo lastKnownPosition(bool fromSatellitePositioningMethodsOnly = false) const; + virtual PositioningMethods supportedPositioningMethods() const; + virtual int minimumUpdateInterval() const; + +private: + PositioningMethods availableMethods; + bool positionInited; + QTimer *updateTimer; + QTimer *requestTimer; + int timerInterval; + bool errorOccurred; + bool errorSent; + + void activateTimer(); + void startLocationDaemon(); + + enum PositionInfoState { + Undefined = 0, + Started = 1, + Stopped = 2, + RequestActive = 4, + PowersaveActive = 8 + }; + int positionInfoState; + +signals: + void positionUpdated(const QGeoPositionInfo &update); + +public slots: + void startUpdates(); + void stopUpdates(); + void requestUpdate(int timeout = DEFAULT_UPDATE_INTERVAL); + void newPositionUpdate(); + +private slots: + void requestTimeoutElapsed(); + void error(); + +private: + Q_DISABLE_COPY(QGeoPositionInfoSourceMaemo) +}; + +QTM_END_NAMESPACE + +#endif // QGEOPOSITIONINFOSOURCEMAEMO5_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeopositioninfosource_s60.cpp --- a/qtmobility/src/location/qgeopositioninfosource_s60.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeopositioninfosource_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -167,19 +167,21 @@ if ((error == KErrNone) || (error == KPositionPartialUpdate)) { + bool typeSet = false; for (int i = 0;i < mListSize ;i++) { if (mList[i].mUid == posInfo.ModuleId()) { type = mList[i].mPosMethod; + typeSet = true; + break; } } - if (!((aFromSatellitePositioningMethodsOnly == TRUE) && + if (!((aFromSatellitePositioningMethodsOnly == TRUE) && typeSet && (type != SatellitePositioningMethods))) { QGeoCoordinate coord; posInfo.GetPosition(pos); - coord.setLatitude(pos.Latitude()); coord.setLongitude(pos.Longitude()); coord.setAltitude(pos.Altitude()); @@ -193,7 +195,7 @@ datetime.MicroSecond() / 1000)); //store the time stamp - posUpdate.setDateTime(dt); + posUpdate.setTimestamp(dt); //store the horizontal accuracy posUpdate.setAttribute(QGeoPositionInfo::HorizontalAccuracy, pos.HorizontalAccuracy()); @@ -297,7 +299,8 @@ //lesser than timeout TInt CQGeoPositionInfoSourceS60::getMoreAccurateMethod(TInt aTimeout, TUint8 aBits) { - TInt index = -1, temp = INT_MAX; + TInt index = -1; + double temp = -1.0; PositioningMethods posMethods; TTimeIntervalMicroSeconds microSeconds; @@ -313,7 +316,7 @@ && (mList[i].mStatus != TPositionModuleStatus::EDeviceError) && (((aBits >> i) & 1)) && (mList[i].mTimeToFirstFix < microSeconds)) { - if (mList[i].mHorizontalAccuracy < temp) { + if ((temp == -1.0) || (mList[i].mHorizontalAccuracy < temp)) { index = i; temp = mList[i].mHorizontalAccuracy; } @@ -426,6 +429,8 @@ if ((ret == KErrNone) && (temp != NULL)) { temp->setUpdateInterval(interval); + if (mRegUpdateAO) + delete mRegUpdateAO; mRegUpdateAO = temp; //to be uncommented when startUpdates are done @@ -433,7 +438,6 @@ if (mStartUpdates) mRegUpdateAO->startUpdates(); - mCurrentModuleId = mList[i].mUid; mCurrentMethod = mList[i].mPosMethod; @@ -456,8 +460,8 @@ interval = QGeoPositionInfoSource::updateInterval(); - delete mRegUpdateAO; - + if (mRegUpdateAO) + delete mRegUpdateAO; bits = mModuleFlags; @@ -508,7 +512,8 @@ //check if device status of the request update module changed if (id == mReqModuleId) { - delete mReqUpdateAO; + if (mRegUpdateAO) + delete mReqUpdateAO; mReqUpdateAO = NULL; mReqModuleId = TUid::Null(); emit updateTimeout(); @@ -543,7 +548,7 @@ if (error != KErrNone) mCurrentModuleId = TUid::Null(); - for (TInt i = 0; i < modCount; i++) { + for (TUint i = 0; i < modCount; i++) { //get module information mPositionServer.GetModuleInfoByIndex(i, moduleInfo); @@ -602,7 +607,7 @@ datetime.MicroSecond() / 1000)); //store the time stamp - aPosInfo2.setDateTime(dt); + aPosInfo2.setTimestamp(dt); //store the horizontal accuracy aPosInfo2.setAttribute(QGeoPositionInfo::HorizontalAccuracy, pos.HorizontalAccuracy()); @@ -683,12 +688,14 @@ TInt index = -1; TUint8 bits; - CQMLBackendAO *temp; + CQMLBackendAO *temp= NULL; //return if already a request update is pending if (mReqUpdateAO && mReqUpdateAO->isRequestPending()) return; + if (aTimeout == 0) + aTimeout = 20000; bits = mModuleFlags; @@ -712,7 +719,8 @@ if ((ret == KErrNone) && (temp != NULL)) { //delete the old reqest update - delete mReqUpdateAO; + if (mReqUpdateAO) + delete mReqUpdateAO; //set the requestAO to the newly created AO mReqUpdateAO = temp; @@ -733,6 +741,7 @@ //cleanup resources if the invalid requpdate is still stored if (mReqUpdateAO) { delete mReqUpdateAO; + mReqUpdateAO = NULL; mReqModuleId = TUid::Null(); } @@ -761,8 +770,8 @@ // the poistioning methods are not supported // if the preferred positioning method is the current poistioning - if (!(mSupportedMethods & aMethods) || (aMethods == AllPositioningMethods) || - (aMethods == mCurrentMethod)) + if (!(mSupportedMethods & aMethods) || (aMethods == PositioningMethods(AllPositioningMethods)) || + (aMethods == PositioningMethods(mCurrentMethod))) return; @@ -786,7 +795,7 @@ TRAPD(error, temp = CQMLBackendAO::NewL(this, RegularUpdate, mList[index].mUid)); - if (temp != NULL) + if ((temp != NULL) && (error == KErrNone)) break; bits = bits & (0XFF ^(1 << index)); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeopositioninfosource_s60_p.h --- a/qtmobility/src/location/qgeopositioninfosource_s60_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeopositioninfosource_s60_p.h Mon May 03 13:18:40 2010 +0300 @@ -216,9 +216,9 @@ private: /** - * Active object for requestUpdate + * current module ID */ - CQMLBackendAO * mReqUpdateAO; + TPositionModuleId mCurrentModuleId; /** *prvmoduleID @@ -231,10 +231,9 @@ CQMLBackendAO * mDevStatusUpdateAO; /** - * Positioner server - */ - RPositionServer mPositionServer; - + * Active object for requestUpdate + */ + CQMLBackendAO * mReqUpdateAO; /** * Active object for regular updates. @@ -242,6 +241,11 @@ CQMLBackendAO * mRegUpdateAO; /** + * Positioner server + */ + RPositionServer mPositionServer; + + /** * list of supported position methods */ CPosMethodInfo mList[MAX_SIZE]; @@ -251,11 +255,6 @@ PositioningMethod mCurrentMethod; /** - * current module ID - */ - TPositionModuleId mCurrentModuleId; - - /** * maintaiss the size of thr CPosMethodInfo array */ int mListSize; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeosatelliteinfo.cpp --- a/qtmobility/src/location/qgeosatelliteinfo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeosatelliteinfo.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,6 +42,7 @@ #include #include +#include QTM_BEGIN_NAMESPACE @@ -229,4 +230,43 @@ } #endif +#ifndef QT_NO_DATASTREAM +/*! + \fn QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info) + \relates QGeoSatelliteInfo + + Writes the given \a info to the specified \a stream. + + \sa {Format of the QDataStream Operators} +*/ + +QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info) +{ + stream << info.d->prn; + stream << info.d->signal; + stream << info.d->doubleAttribs; + return stream; +} +#endif + +#ifndef QT_NO_DATASTREAM +/*! + \fn QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info) + \relates QGeoSatelliteInfo + + Reads satellite information from the specified \a stream into the given + \a info. + + \sa {Format of the QDataStream Operators} +*/ + +QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info) +{ + stream >> info.d->prn; + stream >> info.d->signal; + stream >> info.d->doubleAttribs; + return stream; +} +#endif + QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeosatelliteinfo.h --- a/qtmobility/src/location/qgeosatelliteinfo.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeosatelliteinfo.h Mon May 03 13:18:40 2010 +0300 @@ -45,6 +45,7 @@ QT_BEGIN_NAMESPACE class QDebug; +class QDataStream; QT_END_NAMESPACE QT_BEGIN_HEADER @@ -87,6 +88,10 @@ #ifndef QT_NO_DEBUG_STREAM friend Q_LOCATION_EXPORT QDebug operator<<(QDebug dbg, const QGeoSatelliteInfo &info); #endif +#ifndef QT_NO_DATASTREAM + friend Q_LOCATION_EXPORT QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info); + friend Q_LOCATION_EXPORT QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info); +#endif QGeoSatelliteInfoPrivate *d; }; @@ -94,6 +99,11 @@ Q_LOCATION_EXPORT QDebug operator<<(QDebug dbg, const QGeoSatelliteInfo &info); #endif +#ifndef QT_NO_DATASTREAM +Q_LOCATION_EXPORT QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info); +Q_LOCATION_EXPORT QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info); +#endif + QTM_END_NAMESPACE QT_END_HEADER diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeosatelliteinfosource.cpp --- a/qtmobility/src/location/qgeosatelliteinfosource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeosatelliteinfosource.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,6 +46,8 @@ # include "qgeosatelliteinfosource_wince_p.h" #elif defined(Q_WS_MAEMO_6) # include "qgeosatelliteinfosource_maemo_p.h" +#elif defined(Q_WS_MAEMO_5) +# include "qgeosatelliteinfosource_maemo5_p.h" #endif QTM_BEGIN_NAMESPACE @@ -88,10 +90,12 @@ #if defined(Q_OS_SYMBIAN) CQGeoSatelliteInfoSourceS60 *ret = NULL; TRAPD(error, ret = CQGeoSatelliteInfoSourceS60::NewL(parent)); + if (error != KErrNone) + return 0; return ret; #elif defined(Q_OS_WINCE) return new QGeoSatelliteInfoSourceWinCE(parent); -#elif defined(Q_WS_MAEMO_6) +#elif (defined(Q_WS_MAEMO_6)) || (defined(Q_WS_MAEMO_5)) QGeoSatelliteInfoSourceMaemo *source = new QGeoSatelliteInfoSourceMaemo(parent); int status = source->init(); @@ -103,8 +107,8 @@ return source; #else Q_UNUSED(parent); + return 0; #endif - return 0; } /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeosatelliteinfosource_maemo5.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/location/qgeosatelliteinfosource_maemo5.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,243 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qgeosatelliteinfosource_maemo5_p.h" +#include "liblocationwrapper_p.h" + +QTM_BEGIN_NAMESPACE + +QGeoSatelliteInfoSourceMaemo::QGeoSatelliteInfoSourceMaemo(QObject *parent) + : QGeoSatelliteInfoSource(parent) +{ + client_id_ = -1; + timerInterval = DEFAULT_UPDATE_INTERVAL; + updateTimer = new QTimer(this); + updateTimer->setSingleShot(true); + connect(updateTimer, SIGNAL(timeout()), this, SLOT(satelliteStatus())); + + requestTimer = new QTimer(this); + requestTimer->setSingleShot(true); + connect(requestTimer, SIGNAL(timeout()), this, SLOT(requestTimeoutElapsed())); + + satelliteInfoState = QGeoSatelliteInfoSourceMaemo::Undefined; +} + +int QGeoSatelliteInfoSourceMaemo::init() +{ + if (LiblocationWrapper::instance()->inited()) + return INIT_OK; + else + return INIT_FAILED; +} + +void QGeoSatelliteInfoSourceMaemo::setUpdateInterval(int msec) +{ + bool updateTimerInterval = false; + + if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::PowersaveActive) + if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::Stopped) + updateTimerInterval = true; + + timerInterval = (msec < MINIMUM_UPDATE_INTERVAL) ? MINIMUM_UPDATE_INTERVAL : msec; + + if (timerInterval >= POWERSAVE_THRESHOLD) + satelliteInfoState |= QGeoSatelliteInfoSourceMaemo::PowersaveActive; + else + satelliteInfoState &= ~QGeoSatelliteInfoSourceMaemo::PowersaveActive; + + // If powersave has been active when new update interval has been set, + // ensure that timer is started. + if(updateTimerInterval) + startLocationDaemon(); + + // Ensure that new timer interval is taken into use immediately. + activateTimer(); +} + +void QGeoSatelliteInfoSourceMaemo::startUpdates() +{ + startLocationDaemon(); + + // Ensure that powersave is selected, if stopUpdates() has been called, + // but selected update interval is still greater than POWERSAVE_THRESHOLD. + if (timerInterval >= POWERSAVE_THRESHOLD) + satelliteInfoState |= QGeoSatelliteInfoSourceMaemo::PowersaveActive; + + activateTimer(); +} + +void QGeoSatelliteInfoSourceMaemo::stopUpdates() +{ + satelliteInfoState &= ~QGeoSatelliteInfoSourceMaemo::PowersaveActive; + + if (!(satelliteInfoState & QGeoSatelliteInfoSourceMaemo::RequestActive)) { + updateTimer->stop(); + if (LiblocationWrapper::instance()->isActive()) + LiblocationWrapper::instance()->stop(); + } + + satelliteInfoState &= ~QGeoSatelliteInfoSourceMaemo::Started; + satelliteInfoState |= QGeoSatelliteInfoSourceMaemo::Stopped; +} + +void QGeoSatelliteInfoSourceMaemo::requestUpdate(int timeout) +{ + int timeoutForRequest = 0; + + if (!timeout) { + if (LiblocationWrapper::instance()->isActive()) + // If GPS is active, assume quick fix. + timeoutForRequest = DEFAULT_UPDATE_INTERVAL; + else + // Otherwise reserve longer time to get a fix. + timeoutForRequest = POWERSAVE_POWERON_PERIOD; + } else if (timeout < MINIMUM_UPDATE_INTERVAL) { + if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::RequestActive) + return; + + emit requestTimeout(); + return; + } else { + timeoutForRequest = timeout; + } + + satelliteInfoState |= QGeoSatelliteInfoSourceMaemo::RequestActive; + + if (!(LiblocationWrapper::instance()->isActive())) + LiblocationWrapper::instance()->start(); + + activateTimer(); + requestTimer->start(timeoutForRequest); +} + +void QGeoSatelliteInfoSourceMaemo::satelliteStatus() +{ + QList satellitesInView = + LiblocationWrapper::instance()->satellitesInView(); + QList satellitesInUse = + LiblocationWrapper::instance()->satellitesInUse(); + + if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::RequestActive) { + satelliteInfoState &= ~QGeoSatelliteInfoSourceMaemo::RequestActive; + + requestTimer->stop(); + + if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::Stopped) { + if (LiblocationWrapper::instance()->isActive()) { + LiblocationWrapper::instance()->stop(); + } + } + + // Ensure that requested satellite info is emitted even though + // powersave is active and GPS would normally be off. + if ((satelliteInfoState & QGeoSatelliteInfoSourceMaemo::PowersaveActive) && + (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::Stopped)) { + if (satellitesInView.length()) { + emit satellitesInViewUpdated(satellitesInView); + emit satellitesInUseUpdated(satellitesInUse); + } + } + } + + // Make sure that if update is triggered when waking up, there + // is no false position update. + if (!((satelliteInfoState & QGeoSatelliteInfoSourceMaemo::PowersaveActive) && + (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::Stopped))) { + if (satellitesInView.length()) { + emit satellitesInViewUpdated(satellitesInView); + emit satellitesInUseUpdated(satellitesInUse); + } + } + + activateTimer(); +} + +void QGeoSatelliteInfoSourceMaemo::requestTimeoutElapsed() +{ + updateTimer->stop(); + emit requestTimeout(); + + satelliteInfoState &= ~QGeoSatelliteInfoSourceMaemo::RequestActive; + + if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::Stopped) + if (LiblocationWrapper::instance()->isActive()) + LiblocationWrapper::instance()->stop(); + + activateTimer(); +} + +void QGeoSatelliteInfoSourceMaemo::activateTimer() { + if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::RequestActive) { + updateTimer->start(MINIMUM_UPDATE_INTERVAL); + return; + } + + if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::PowersaveActive) { + if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::Started) { + // Cannot call stopUpdates() here since we want to keep powersave + // active. + if (LiblocationWrapper::instance()->isActive()) + LiblocationWrapper::instance()->stop(); + updateTimer->start(timerInterval - POWERSAVE_POWERON_PERIOD); + + satelliteInfoState &= ~QGeoSatelliteInfoSourceMaemo::Started; + satelliteInfoState |= QGeoSatelliteInfoSourceMaemo::Stopped; + } else if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::Stopped) { + startLocationDaemon(); + updateTimer->start(POWERSAVE_POWERON_PERIOD); + } + return; + } + + if (satelliteInfoState & QGeoSatelliteInfoSourceMaemo::Started) + updateTimer->start(timerInterval); +} + +void QGeoSatelliteInfoSourceMaemo::startLocationDaemon() { + if (!(LiblocationWrapper::instance()->isActive())) + LiblocationWrapper::instance()->start(); + satelliteInfoState |= QGeoSatelliteInfoSourceMaemo::Started; + satelliteInfoState &= ~QGeoSatelliteInfoSourceMaemo::Stopped; +} + +#include "moc_qgeosatelliteinfosource_maemo5_p.cpp" +QTM_END_NAMESPACE + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeosatelliteinfosource_maemo5_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/location/qgeosatelliteinfosource_maemo5_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,108 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QGEOSATELLITEINFOSOURCE_MAEMO5_H +#define QGEOSATELLITEINFOSOURCE_MAEMO5_H + +#include +#include "qgeosatelliteinfosource.h" +#include "qgeosatelliteinfo.h" + +#define INIT_OK 0 +#define INIT_FAILED -1 +#define MINIMUM_UPDATE_INTERVAL 1000 +#define DEFAULT_UPDATE_INTERVAL 5000 +#define POWERSAVE_THRESHOLD 180000 +#define POWERSAVE_POWERON_PERIOD 120000 + +QTM_BEGIN_NAMESPACE + +class LiblocationWrapper; + +class QGeoSatelliteInfoSourceMaemo : public QGeoSatelliteInfoSource +{ + Q_OBJECT + +public: + explicit QGeoSatelliteInfoSourceMaemo(QObject *parent = 0); + + int init(); + +private: + int client_id_; + void setUpdateInterval(int interval); + QTimer *updateTimer; + QTimer *requestTimer; + int timerInterval; + void activateTimer(); + void startLocationDaemon(); + + enum SatelliteInfoState { + Undefined = 0, + Started = 1, + Stopped = 2, + RequestActive = 4, + PowersaveActive = 8 + }; + int satelliteInfoState; + +public slots: + virtual void startUpdates(); + void stopUpdates(); + void requestUpdate(int timeout = 5000); + void satelliteStatus(); + +signals: + void satellitesInViewUpdated(const QList &satellites); + void satellitesInUseUpdated(const QList &satellites); + void requestTimeout(); + +private slots: + void requestTimeoutElapsed(); + +private: + Q_DISABLE_COPY(QGeoSatelliteInfoSourceMaemo) +}; + +QTM_END_NAMESPACE + +#endif // QGEOSATELLITEINFOSOURCE_MAEMO5_H + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeosatelliteinfosource_s60.cpp --- a/qtmobility/src/location/qgeosatelliteinfosource_s60.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeosatelliteinfosource_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,6 +45,7 @@ #include "qgeopositioninfosource_s60_p.h" #include "qgeosatelliteinfosource_s60_p.h" #include "qgeosatelliteinfosource.h" +#include "qgeosatelliteinfo.h" #include @@ -154,6 +155,8 @@ mRegUpdateAO = temp; mRegUpdateAO->setUpdateInterval(0); mCurrentModuleId = mList[index].mUid; + } else { + delete temp; } CleanupStack::Pop(2); @@ -212,7 +215,8 @@ //lesser than timeout TInt CQGeoSatelliteInfoSourceS60::getMoreAccurateMethod(TInt aTimeout, TUint8 aBits) { - TInt index = -1, temp = INT_MAX; + TInt index = -1; + double temp = -1.0; TTimeIntervalMicroSeconds microSeconds; @@ -228,7 +232,7 @@ && (mList[i].mStatus != TPositionModuleStatus::EDeviceError) && (((aBits >> i) & 1)) && (mList[i].mTimeToFirstFix < microSeconds)) { - if (mList[i].mHorizontalAccuracy < temp) { + if ((temp == -1.0) || (mList[i].mHorizontalAccuracy < temp)) { index = i; temp = mList[i].mHorizontalAccuracy; } @@ -267,7 +271,6 @@ //time taken for the subsequent fix time_to_next_fix = quality.TimeToNextFix(); - if ((i = checkModule(id)) == -1) { //update the properties of the module @@ -325,6 +328,8 @@ if ((ret == KErrNone) && (temp != NULL)) { temp->setUpdateInterval(interval); + if (mRegUpdateAO) + delete mRegUpdateAO; mRegUpdateAO = temp; //to be uncommented when startUpdates are done @@ -350,8 +355,8 @@ TUint8 bits; - delete mRegUpdateAO; - + if (mRegUpdateAO) + delete mRegUpdateAO; bits = mModuleFlags; @@ -395,7 +400,8 @@ //check if device status of the request update module changed if (id == mReqModuleId) { - delete mReqUpdateAO; + if (mRegUpdateAO) + delete mReqUpdateAO; mReqUpdateAO = NULL; mReqModuleId = TUid::Null(); emit requestTimeout(); @@ -421,7 +427,7 @@ //count on the modules currently supported by the device mPositionServer.GetNumModules(modCount); - for (TInt i = 0; i < modCount; i++) { + for (TUint i = 0; i < modCount; i++) { //get module information mPositionServer.GetModuleInfoByIndex(i, moduleInfo); @@ -465,7 +471,6 @@ QList &qListSatInUse) { TInt satInView = aSatInfo.NumSatellitesInView(); - TInt satUsed = aSatInfo.NumSatellitesUsed(); TSatelliteData satData; QGeoSatelliteInfo qInfo; @@ -518,7 +523,7 @@ TInt index = -1; TUint8 bits; - CQMLBackendAO *temp; + CQMLBackendAO *temp = NULL; //requestupdate //return if already a request update is pending @@ -552,7 +557,8 @@ if ((ret == KErrNone) && (temp != NULL)) { //delete the old reqest update - delete mReqUpdateAO; + if (mReqUpdateAO) + delete mReqUpdateAO; //set the requestAO to the newly created AO mReqUpdateAO = temp; @@ -573,6 +579,7 @@ //cleanup resources if the invalid requpdate is still stored if (mReqUpdateAO) { delete mReqUpdateAO; + mReqUpdateAO = NULL; mReqModuleId = TUid::Null(); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qgeosatelliteinfosource_s60_p.h --- a/qtmobility/src/location/qgeosatelliteinfosource_s60_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qgeosatelliteinfosource_s60_p.h Mon May 03 13:18:40 2010 +0300 @@ -188,9 +188,9 @@ private: /** - * Active object for requestUpdate + * current module ID */ - CQMLBackendAO * mReqUpdateAO; + TPositionModuleId mCurrentModuleId; /** *prvmoduleID @@ -203,16 +203,21 @@ CQMLBackendAO * mDevStatusUpdateAO; /** - * Positioner server - */ - RPositionServer mPositionServer; - + * Active object for requestUpdate + */ + CQMLBackendAO * mReqUpdateAO; /** * Active object for regular updates. */ CQMLBackendAO * mRegUpdateAO; + /** + * Positioner server + */ + RPositionServer mPositionServer; + + /* * Number of Satellites in View */ @@ -229,11 +234,6 @@ CSatMethodInfo mList[MAX_SIZE]; /** - * current module ID - */ - TPositionModuleId mCurrentModuleId; - - /** * maintaiss the size of thr CPosMethodInfo array */ int mListSize; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qlocationutils.cpp --- a/qtmobility/src/location/qlocationutils.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qlocationutils.cpp Mon May 03 13:18:40 2010 +0300 @@ -70,7 +70,7 @@ if (parts.count() > 1 && parts[1].count() > 0) { QTime time; if (QLocationUtils::getNmeaTime(parts[1], &time)) - info->setDateTime(QDateTime(QDate(), time, Qt::UTC)); + info->setTimestamp(QDateTime(QDate(), time, Qt::UTC)); } if (parts.count() > 5 && parts[3].count() == 1 && parts[5].count() == 1) { @@ -105,7 +105,7 @@ if (parts.count() > 5 && parts[5].count() > 0) { QTime time; if (QLocationUtils::getNmeaTime(parts[5], &time)) - info->setDateTime(QDateTime(QDate(), time, Qt::UTC)); + info->setTimestamp(QDateTime(QDate(), time, Qt::UTC)); } if (parts.count() > 4 && parts[2].count() == 1 && parts[4].count() == 1) { @@ -177,7 +177,7 @@ if (coord.type() != QGeoCoordinate::InvalidCoordinate) info->setCoordinate(coord); - info->setDateTime(QDateTime(date, time, Qt::UTC)); + info->setTimestamp(QDateTime(date, time, Qt::UTC)); } static void qlocationutils_readVtg(const char *data, int size, QGeoPositionInfo *info, bool *hasFix) @@ -224,7 +224,7 @@ date.setDate(year, month, day); } - info->setDateTime(QDateTime(date, time, Qt::UTC)); + info->setTimestamp(QDateTime(date, time, Qt::UTC)); } bool QLocationUtils::getPosInfoFromNmea(const char *data, int size, QGeoPositionInfo *info, bool *hasFix) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qmlbackendao_s60.cpp --- a/qtmobility/src/location/qmlbackendao_s60.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qmlbackendao_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -288,7 +288,6 @@ { TPositionUpdateOptions aPosOption; - mPositioner.GetUpdateOptions(aPosOption); aPosOption.SetUpdateInterval(TTimeIntervalMicroSeconds(0)); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qmlbackendao_s60_p.h --- a/qtmobility/src/location/qmlbackendao_s60_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qmlbackendao_s60_p.h Mon May 03 13:18:40 2010 +0300 @@ -129,6 +129,8 @@ private: + HPositionGenericInfo *mPosInfo; + // Request is a device or a regular CQGeoPositionInfoSourceS60 *mRequester; @@ -141,7 +143,6 @@ // Positioning Information RPositioner mPositioner; - HPositionGenericInfo *mPosInfo; TPositionSatelliteInfo mPosSatInfo; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qmlbackendmonitorao_s60.cpp --- a/qtmobility/src/location/qmlbackendmonitorao_s60.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qmlbackendmonitorao_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -95,10 +95,11 @@ void QMLBackendMonitorAO::RunL() { + CMonitorTriggerInfo *triggerInfo = NULL; switch (iStatus.Int()) { case KErrNone : //retrieve the triggerInfo corresponding to iTriggerInfo.iTriggerId - CMonitorTriggerInfo* triggerInfo = iTriggerMonitorInfo->getMonitorTriggerInfo( + triggerInfo = iTriggerMonitorInfo->getMonitorTriggerInfo( iTriggerInfo.iTriggerId); if (triggerInfo) { //callback called only if generated for the current AO - Trigger ID diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qmlbackendmonitorcreatetriggerao_s60.cpp --- a/qtmobility/src/location/qmlbackendmonitorcreatetriggerao_s60.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qmlbackendmonitorcreatetriggerao_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -105,7 +105,7 @@ CleanupStack::PushL(trigArea); - CLbtTriggerConditionArea* cond; + CLbtTriggerConditionArea* cond = NULL; if (aType == EntryTrigger) { //2: Construct a entry type of trigger condition diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qmlbackendtriggerchangeao_s60.cpp --- a/qtmobility/src/location/qmlbackendtriggerchangeao_s60.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qmlbackendtriggerchangeao_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -332,7 +332,7 @@ } -QMLBackendTriggerChangeAO::QMLBackendTriggerChangeAO() : iTriggerMonitorInfo(NULL), CActive(EPriorityNormal) +QMLBackendTriggerChangeAO::QMLBackendTriggerChangeAO() : CActive(EPriorityNormal), iTriggerMonitorInfo(NULL) { CActiveScheduler::Add(this); //add current AO, to the Schedular } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/location/qnmeapositioninfosource.cpp --- a/qtmobility/src/location/qnmeapositioninfosource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/location/qnmeapositioninfosource.cpp Mon May 03 13:18:40 2010 +0300 @@ -44,7 +44,6 @@ #include #include #include -#include #include QTM_BEGIN_NAMESPACE @@ -119,7 +118,7 @@ if (size <= 0) continue; bool ok = m_proxy->parsePosInfoFromNmeaData(buf, size, &update, &hasFix); - if (ok && update.dateTime().isValid()) { + if (ok && update.timestamp().isValid()) { QPendingGeoPositionInfo pending; pending.info = update; pending.hasFix = hasFix; @@ -156,7 +155,7 @@ int timeToNextUpdate = -1; QTime prevTime; if (m_pendingUpdates.size() > 0) - prevTime = m_pendingUpdates.head().info.dateTime().time(); + prevTime = m_pendingUpdates.head().info.timestamp().time(); // find the next update with a valid time (as long as the time is valid, // we can calculate when the update should be emitted) @@ -166,7 +165,7 @@ if (size <= 0) continue; if (m_proxy->parsePosInfoFromNmeaData(buf, size, &info, &hasFix)) { - QTime time = info.dateTime().time(); + QTime time = info.timestamp().time(); if (time.isValid()) { if (!prevTime.isValid()) { timeToNextUpdate = 0; @@ -361,16 +360,17 @@ void QNmeaPositionInfoSourcePrivate::notifyNewUpdate(QGeoPositionInfo *update, bool hasFix) { - //qDebug() << "QNmeaPositionInfoSourcePrivate::notifyNewUpdate()" << update->dateTime() << hasFix << m_invokedStart << (m_requestTimer && m_requestTimer->isActive()); + // include before uncommenting + //qDebug() << "QNmeaPositionInfoSourcePrivate::notifyNewUpdate()" << update->timestamp() << hasFix << m_invokedStart << (m_requestTimer && m_requestTimer->isActive()); - QDate date = update->dateTime().date(); + QDate date = update->timestamp().date(); if (date.isValid()) { m_currentDate = date; } else { // some sentence have time but no date - QTime time = update->dateTime().time(); + QTime time = update->timestamp().time(); if (time.isValid() && m_currentDate.isValid()) - update->setDateTime(QDateTime(m_currentDate, time, Qt::UTC)); + update->setTimestamp(QDateTime(m_currentDate, time, Qt::UTC)); } if (hasFix && update->isValid()) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/eventloggerengine_maemo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/messaging/eventloggerengine_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,330 @@ +#include "eventloggerengine_maemo_p.h" +#include "telepathyengine_maemo_p.h" +#include + +QTM_BEGIN_NAMESPACE + + +Q_GLOBAL_STATIC(EventLoggerEngine,eventLoggerEngine); + + +EventLoggerEngine* EventLoggerEngine::instance() +{ + return eventLoggerEngine(); +} + + +EventLoggerEngine::EventLoggerEngine(QObject *parent) +{ + Q_UNUSED(parent); + // qDebug() << "EventLoggerEngine::EventLoggerEngine"; + DBusError err=DBUS_ERROR_INIT; + g_type_init(); + dbus = dbus_bus_get(DBUS_BUS_SESSION, &err); // Create dummy Dbus object and + dbus_connection_setup_with_g_main (dbus, NULL); //add it to g_mainloop because eventlogger library expects that someone alse has added session bus to g_mainloop + el=rtcom_el_new (); + if(!RTCOM_IS_EL(el)) qDebug() << "EventLoggerEngine::EventLoggerEngine():Could't create RTComEl\n"; + + + + g_signal_connect(G_OBJECT(el), "new-event", G_CALLBACK(new_event_cb),(void*)this); +} + +void EventLoggerEngine::new_event_cb(RTComEl *el,int event_id, + const char *local_uid,const char *remote_uid,const char *remote_ebook_uid, + const char *group_uid,const char *service,EventLoggerEngine *p) +{ + p->newEvent(event_id, local_uid,remote_uid ,remote_ebook_uid,group_uid,service); +}; + +void EventLoggerEngine::newEvent(int event_id, + const char *local_uid,const char *remote_uid,const char *remote_ebook_uid, + const char *group_uid,const char *service) +{ + Q_UNUSED(local_uid); Q_UNUSED(remote_uid);Q_UNUSED(remote_ebook_uid); + Q_UNUSED(group_uid);Q_UNUSED(service); + QString eventIds=QString::number(event_id); + QMessageId id(eventIds); + + + notification(event_id,service,QMessageStorePrivate::Added); +} + +QMessageManager::NotificationFilterId EventLoggerEngine::registerNotificationFilter(QMessageStorePrivate& aPrivateStore, + const QMessageFilter &filter) +{ + iListenForNotifications = true; + ipMessageStorePrivate = &aPrivateStore; + + int filterId = ++_filterId; + _filters.insert(filterId, filter); + return filterId; +} + +void EventLoggerEngine::unregisterNotificationFilter(QMessageManager::NotificationFilterId notificationFilterId) +{ + _filters.remove(notificationFilterId); + if (_filters.count() == 0) { + iListenForNotifications = false; + } +} +QMessage EventLoggerEngine::eventToMessage(RTComElEvent & ev) +{ + + QMessage message; + + if (!strcmp(ev.fld_service, "RTCOM_EL_SERVICE_SMS")) { + message.setType(QMessage::Sms); + } else if (!strcmp(ev.fld_service,"RTCOM_EL_SERVICE_CHAT")) { + message.setType(QMessage::InstantMessage); + } else { + message.setType(QMessage::NoType); // Other type, as exampele voice Call + }; + + message.setParentAccountId(QMessageAccountId(QString("y/Account/%1").arg(ev.fld_local_uid))); + + if (!ev.fld_is_read) { + message.setStatus(QMessage::Read); + }; + message.setPriority(QMessage::NormalPriority); + message.setDate(QDateTime::fromTime_t(ev.fld_start_time)); + message.setReceivedDate(QDateTime::fromTime_t(ev.fld_start_time)); + if (ev.fld_outgoing) QMessagePrivate::setStandardFolder(message,QMessage::SentFolder); + else + QMessagePrivate::setStandardFolder(message,QMessage::InboxFolder); + // qDebug() << "event_type:" << ev.fld_event_type << ev.fld_event_type_id << "Outgoing:" << ev.fld_outgoing << " Folder:" << message.standardFolder(); + message.setFrom(QMessageAddress(QMessageAddress::Phone, QString(ev.fld_remote_uid))); + QMessagePrivate::setSenderName(message, QString(ev.fld_remote_uid)); + QMessageAddressList messageAddresslist; + messageAddresslist.append(QMessageAddress(QMessageAddress::Phone, QString(ev.fld_local_uid))); + message.setTo(messageAddresslist); + message.setBody(QString(ev.fld_free_text)); + QMessagePrivate* privateMessage = QMessagePrivate::implementation(message); + privateMessage->_id = QMessageId(QString::number(ev.fld_id)); + privateMessage->_modified = false; + // qDebug() << "id:" << message.id().toString() << "From:" << message.from().addressee() << "Text:" << message.textContent(); + return message; + +} + + +bool EventLoggerEngine::deleteMessage(const QMessageId& id) +{ + int status=rtcom_el_delete_event(el,id.toString().toInt(),NULL); + return status==0; +} + +QMessage EventLoggerEngine::message(const QMessageId& id) +{ + + QMessage message; + + // qDebug() << "EventLoggerEngine::getMessage id=" << id.toString(); + + RTComElEvent ev; + bzero(&ev,sizeof(ev)); + RTComElQuery *q=rtcom_el_query_new(el); + rtcom_el_query_prepare(q,"id",id.toString().toInt(),RTCOM_EL_OP_EQUAL,NULL); + RTComElIter *iter=rtcom_el_get_events(el,q); + g_object_unref(q); + if(iter && rtcom_el_iter_first(iter)) + { + gboolean res=rtcom_el_iter_get_full(iter,&ev); + if(res) { +#if 0 + printf("got event id=%d service_id=%d event_typ_id=%d\n\ +local_uid=%s local_name=%s\n\ +remote_uid=%s remote_name=%s remote_ebook_uid=%s\n\ +channel=%s free_text=%s group_uid=%s\n\ +service=%s event_type=%s\n\ +additional_text=%s icon_name=%s pango_markup=%s\n", + ev.fld_id,ev.fld_service_id,ev.fld_event_type_id, + ev.fld_local_uid,ev.fld_local_name, + ev.fld_remote_uid,ev.fld_remote_name,ev.fld_remote_ebook_uid, + ev.fld_channel,ev.fld_free_text,ev.fld_group_uid, + ev.fld_service,ev.fld_event_type, + ev.fld_additional_text,ev.fld_icon_name,ev.fld_pango_markup); +#endif + if (!strcmp(ev.fld_service, "RTCOM_EL_SERVICE_SMS")) { + message.setType(QMessage::Sms); + } else if (!strcmp(ev.fld_service,"RTCOM_EL_SERVICE_CHAT")) { + message.setType(QMessage::InstantMessage); + } else { + message.setType(QMessage::NoType); // Other type, as exampele voice Call + }; + //QMessageAccount account = TelepathyEngine::instance()->account(QMessageAccountId(QString("/y/Account%1").arg(ev.fld_local_uid))); + + message.setParentAccountId(QMessageAccountId(QString("/y/Account/%1").arg(ev.fld_local_uid))); + if (!ev.fld_is_read) { + message.setStatus(QMessage::Read); + }; + message.setPriority(QMessage::NormalPriority); + message.setDate(QDateTime::fromTime_t(ev.fld_start_time)); + message.setReceivedDate(QDateTime::fromTime_t(ev.fld_start_time)); + if (ev.fld_outgoing) QMessagePrivate::setStandardFolder(message,QMessage::SentFolder); + else + QMessagePrivate::setStandardFolder(message,QMessage::InboxFolder); + message.setFrom(QMessageAddress(QMessageAddress::Phone, QString(ev.fld_remote_uid))); + QMessagePrivate::setSenderName(message, QString(ev.fld_remote_uid)); + QMessageAddressList messageAddresslist; + messageAddresslist.append(QMessageAddress(QMessageAddress::Phone, QString(ev.fld_local_uid))); + message.setTo(messageAddresslist); + message.setBody(QString(ev.fld_free_text)); + QMessagePrivate* privateMessage = QMessagePrivate::implementation(message); + privateMessage->_id = id; + privateMessage->_modified = false; + // qDebug() << "id:" << message.id().toString() << "From:" << message.from().addressee() << "Text:" << message.textContent(); + }; + }; + if(iter) g_object_unref(iter); + // debugMessage(message); + + return message; + +} + +void EventLoggerEngine::debugMessage(QMessage &message) +{ + qDebug() << "id:" << message.id().toString() << "type:" << message.type() << "size:" << message.size() << "status:" << message.status() << "priority:" << message.priority(); + qDebug() << "AccountId:" << message.parentAccountId().toString() << "StantardFolder" << message.standardFolder() << "parenFolderId:" << message.parentFolderId().toString(); + qDebug() << "Date:" << message.date() << "receivedDate:" << message.receivedDate() << "Subject:" << message.subject(); + qDebug() << "From:" << message.from().addressee(); + qDebug() << "To:" << (message.to().isEmpty() ? "**none**" : message.to().first().addressee()); + qDebug() << "Body:" <message(QMessageId(QString::number(eventId))); + if (msg.type() == QMessage::NoType) { + matchingFilters.clear(); + break; + } else { + messageRetrieved = true; + } + } + if (privateMessageFilter->filter(msg)) { + matchingFilters.insert(it.key()); + } + } + } + + if (matchingFilters.count() > 0) { + ipMessageStorePrivate->messageNotification(notificationType, + QMessageId(QString::number(eventId)), + matchingFilters); + } + +} + +#if 0 +QMessageIdList EventLoggerEngine::filterAndOrderMessages(const QMessageFilter &filter, const QMessageSortOrder& sortOrder, + QString body, QMessageDataComparator::MatchFlags matchFlags) +{ + filterAndOrderMessages(filte, sortOrder, body, matchFlags); +} +#endif + +QMessageIdList EventLoggerEngine::filterAndOrderMessages(const QMessageFilter &filter, + const QMessageSortOrder& sortOrder, + QString body, + QMessageDataComparator::MatchFlags matchFlags) +{ + Q_UNUSED(body); + Q_UNUSED(matchFlags); + Q_UNUSED(sortOrder); + QMessageId fId; // Filtering id + // QMessageType fType; + QDate fDate; + RTComElEvent ev; + QMessage message; + + const char *services[]={"RTCOM_EL_SERVICE_CHAT","RTCOM_EL_SERVICE_SMS", NULL }; + + QMessageIdList idList; + + QMessageFilterPrivate* pf = QMessageFilterPrivate::implementation(filter); +#if 0 + if ((filters.count() == 1) && (pf->_field == QMessageFilterPrivate::None) && (pf->_filterList.count() == 0)) { + if (pf->_notFilter) { + // There is only one filter: empty ~QMessageFilter() + // => return empty QMessageIdList + return idList; + } else { + // There is only one filter: empty QMessageFilter() + // => return all messages + + } + } + // Pre-filtering setup + switch (pf->_field) { + case QMessageFilterPrivate::Id: + case QMessageFilterPrivate::ParentAccountId: + { + if (pf->_comparatorType == QMessageFilterPrivate::Equality) { // QMessageAccountId + iNumberOfHandledFilters++; + QMessageDataComparator::EqualityComparator cmp(static_cast(pf->_comparatorValue)); + if (cmp == QMessageDataComparator::Equal) { + QMessageAccount messageAccount = TelepathyEngine::instance()->account(QMessageAccountId(QString("/y/Account%1").arg(pf->_value.toString()))); + } + } + } + } +#endif + RTComElQuery *q=rtcom_el_query_new(el); + rtcom_el_query_prepare(q,"service", services, RTCOM_EL_OP_IN_STRV, NULL); + RTComElIter *iter=rtcom_el_get_events(el,q); + g_object_unref(q); + if(iter && rtcom_el_iter_first(iter)) + do { + bzero(&ev,sizeof(ev)); + if(rtcom_el_iter_get_full(iter,&ev)) + { + message=eventToMessage(ev); + // debugMessage(message); + if (pf->filter(message)) { + // qDebug() <<"Filter :filtering match" << message.id().toString(); + //matchingFilters.insert(it.key()); + idList.append(message.id()); + }; + }; + } + while( rtcom_el_iter_next(iter)); +#if 0 + foreach(const QMessageId& id, idList) { + qDebug() << "id=" << id.toString(); + } +#endif + return idList; +} + +QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/eventloggerengine_maemo_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/messaging/eventloggerengine_maemo_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,71 @@ +#ifndef EVENTLOGGERENGINE_H +#define EVENTLOGGERENGINE_H +#include "qmessageglobal.h" +#include "qmessagemanager.h" +#include "qmessageaccount.h" +#include "qmessageaccountid.h" +#include "qmessageaccount_p.h" +#include "qmessageaccountfilter.h" +#include "qmessageaccountfilter_p.h" +#include "qmessageservice.h" +#include "qmessage.h" +#include "qmessagemanager.h" +#include "maemohelpers_p.h" +#include "qmessagestore_p.h" +#include "qmessage_p.h" +#include "qmessagefilter.h" +#include "qmessagefilter_p.h" +#include "qmessagefolderfilter_p.h" +#include + +extern "C" { + +#include +#include +#include +#include + +}; + +QTM_BEGIN_NAMESPACE + + +class EventLoggerEngine +{ + +public: + + explicit EventLoggerEngine(QObject *parent = 0); + static EventLoggerEngine* instance(); + void unregisterNotificationFilter(QMessageManager::NotificationFilterId notificationFilterId); + QMessageManager::NotificationFilterId registerNotificationFilter(QMessageStorePrivate& aPrivateStore,const QMessageFilter &filter); + QMessage message(const QMessageId& id); + bool deleteMessage(const QMessageId& id); + QMessage eventToMessage(RTComElEvent & ev); + void notification(int eventId, QString servive,QMessageStorePrivate::NotificationType notificationType); + static void new_event_cb(RTComEl *el,int event_id, + const char *local_uid,const char *remote_uid,const char *remote_ebook_uid, + const char *group_uid,const char *service,EventLoggerEngine *p); + void newEvent(int event_id, + const char *local_uid,const char *remote_uid,const char *remote_ebook_uid, + const char *group_uid,const char *service); + QMessageIdList filterAndOrderMessages(const QMessageFilter &filter, const QMessageSortOrder& sortOrder, + QString body, QMessageDataComparator::MatchFlags matchFlags); + +signals: + +public slots: + +private: + QMessageStorePrivate* ipMessageStorePrivate; + void debugMessage(QMessage &message); + RTComEl *el; + DBusConnection * dbus; + bool iListenForNotifications; + QMessageManager::NotificationFilterId _filterId; + QMap _filters; + +}; + +QTM_END_NAMESPACE +#endif // EVENTLOGGERENGINE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/maemohelpers.cpp --- a/qtmobility/src/messaging/maemohelpers.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/maemohelpers.cpp Mon May 03 13:18:40 2010 +0300 @@ -67,27 +67,29 @@ void MessagingHelper::filterAccounts(QMessageAccountIdList& accountIds, const QMessageAccountFilter& filter) { - QMessageAccountFilterPrivate* pf = QMessageAccountFilterPrivate::implementation(filter); - if ((pf->_field == QMessageAccountFilterPrivate::None) && - (pf->_filterList.count() == 0)) { - if (pf->_notFilter) { - // There is only one filter: empty ~QMessageFilter() - // => accountIds must be cleared - accountIds.clear(); - return; - } else { - // There is only one filter: empty QMessageFilter() - // => accountIds list can remain intact - return; + if (accountIds.count() && !filter.isEmpty()) { + QMessageAccountFilterPrivate* pf = QMessageAccountFilterPrivate::implementation(filter); + if ((pf->_field == QMessageAccountFilterPrivate::None) && + (pf->_filterList.count() == 0)) { + if (pf->_notFilter) { + // There is only one filter: empty ~QMessageFilter() + // => accountIds must be cleared + accountIds.clear(); + return; + } else { + // There is only one filter: empty QMessageFilter() + // => accountIds list can remain intact + return; + } } - } - if (pf->_valid) { - QMessageStore* store = QMessageStore::instance(); - for (int i=accountIds.count()-1; i >= 0; i--) { - QMessageAccount account = store->account(accountIds[i]); - if (!pf->filter(account)) { - accountIds.removeAt(i); + if (pf->_valid) { + QMessageStore* store = QMessageStore::instance(); + for (int i=accountIds.count()-1; i >= 0; i--) { + QMessageAccount account = store->account(accountIds[i]); + if (!pf->filter(account)) { + accountIds.removeAt(i); + } } } } @@ -103,12 +105,18 @@ void MessagingHelper::orderAccounts(QMessageAccountIdList& accountIds, const QMessageAccountSortOrder &sortOrder) { - messagingHelper()->m_AccountSortOrder = (QMessageAccountSortOrder*)&sortOrder; - qSort(accountIds.begin(), accountIds.end(), MessagingHelper::accountLessThan); + if (!sortOrder.isEmpty()) { + messagingHelper()->m_AccountSortOrder = (QMessageAccountSortOrder*)&sortOrder; + qSort(accountIds.begin(), accountIds.end(), MessagingHelper::accountLessThan); + } } void MessagingHelper::applyOffsetAndLimitToAccountIdList(QMessageAccountIdList& accountIds, int limit, int offset) { + if (accountIds.count() == 0) { + return; + } + if (offset > 0) { if (offset > accountIds.count()) { accountIds.clear(); @@ -127,27 +135,29 @@ void MessagingHelper::filterFolders(QMessageFolderIdList& folderIds, const QMessageFolderFilter& filter) { - QMessageFolderFilterPrivate* pf = QMessageFolderFilterPrivate::implementation(filter); - if ((pf->_field == QMessageFolderFilterPrivate::None) && - (pf->_filterList.count() == 0)) { - if (pf->_notFilter) { - // There is only one filter: empty ~QMessageFilter() - // => accountIds must be cleared - folderIds.clear(); - return; - } else { - // There is only one filter: empty QMessageFilter() - // => accountIds list can remain intact - return; + if (folderIds.count() && !filter.isEmpty()) { + QMessageFolderFilterPrivate* pf = QMessageFolderFilterPrivate::implementation(filter); + if ((pf->_field == QMessageFolderFilterPrivate::None) && + (pf->_filterList.count() == 0)) { + if (pf->_notFilter) { + // There is only one filter: empty ~QMessageFilter() + // => accountIds must be cleared + folderIds.clear(); + return; + } else { + // There is only one filter: empty QMessageFilter() + // => accountIds list can remain intact + return; + } } - } - if (pf->_valid) { - QMessageStore* store = QMessageStore::instance(); - for (int i=folderIds.count()-1; i >= 0; i--) { - QMessageFolder folder = store->folder(folderIds[i]); - if (!pf->filter(folder)) { - folderIds.removeAt(i); + if (pf->_valid) { + QMessageStore* store = QMessageStore::instance(); + for (int i=folderIds.count()-1; i >= 0; i--) { + QMessageFolder folder = store->folder(folderIds[i]); + if (!pf->filter(folder)) { + folderIds.removeAt(i); + } } } } @@ -163,12 +173,18 @@ void MessagingHelper::orderFolders(QMessageFolderIdList& folderIds, const QMessageFolderSortOrder &sortOrder) { - messagingHelper()->m_FolderSortOrder = (QMessageFolderSortOrder*)&sortOrder; - qSort(folderIds.begin(), folderIds.end(), MessagingHelper::folderLessThan); + if (!sortOrder.isEmpty()) { + messagingHelper()->m_FolderSortOrder = (QMessageFolderSortOrder*)&sortOrder; + qSort(folderIds.begin(), folderIds.end(), MessagingHelper::folderLessThan); + } } void MessagingHelper::applyOffsetAndLimitToFolderIdList(QMessageFolderIdList& folderIds, int limit, int offset) { + if (folderIds.count() == 0) { + return; + } + if (offset > 0) { if (offset > folderIds.count()) { folderIds.clear(); @@ -187,27 +203,29 @@ void MessagingHelper::filterMessages(QMessageIdList& messageIds, const QMessageFilter& filter) { - QMessageFilterPrivate* pf = QMessageFilterPrivate::implementation(filter); - if ((pf->_field == QMessageFilterPrivate::None) && - (pf->_filterList.count() == 0)) { - if (pf->_notFilter) { - // There is only one filter: empty ~QMessageFilter() - // => accountIds must be cleared - messageIds.clear(); - return; - } else { - // There is only one filter: empty QMessageFilter() - // => accountIds list can remain intact - return; + if (messageIds.count() && !filter.isEmpty()) { + QMessageFilterPrivate* pf = QMessageFilterPrivate::implementation(filter); + if ((pf->_field == QMessageFilterPrivate::None) && + (pf->_filterList.count() == 0)) { + if (pf->_notFilter) { + // There is only one filter: empty ~QMessageFilter() + // => accountIds must be cleared + messageIds.clear(); + return; + } else { + // There is only one filter: empty QMessageFilter() + // => accountIds list can remain intact + return; + } } - } - if (pf->_valid) { - QMessageStore* store = QMessageStore::instance(); - for (int i=messageIds.count()-1; i >= 0; i--) { - QMessage message = store->message(messageIds[i]); - if (!pf->filter(message)) { - messageIds.removeAt(i); + if (pf->_valid) { + QMessageStore* store = QMessageStore::instance(); + for (int i=messageIds.count()-1; i >= 0; i--) { + QMessage message = store->message(messageIds[i]); + if (!pf->filter(message)) { + messageIds.removeAt(i); + } } } } @@ -223,12 +241,18 @@ void MessagingHelper::orderMessages(QMessageIdList& messageIds, const QMessageSortOrder &sortOrder) { - messagingHelper()->m_MessageSortOrder = (QMessageSortOrder*)&sortOrder; - qSort(messageIds.begin(), messageIds.end(), MessagingHelper::messageLessThan); + if (!sortOrder.isEmpty()) { + messagingHelper()->m_MessageSortOrder = (QMessageSortOrder*)&sortOrder; + qSort(messageIds.begin(), messageIds.end(), MessagingHelper::messageLessThan); + } } void MessagingHelper::applyOffsetAndLimitToMessageIdList(QMessageIdList& messageIds, int limit, int offset) { + if (messageIds.count() == 0) { + return; + } + if (offset > 0) { if (offset > messageIds.count()) { messageIds.clear(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/messaging.pro --- a/qtmobility/src/messaging/messaging.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/messaging.pro Mon May 03 13:18:40 2010 +0300 @@ -1,171 +1,169 @@ TEMPLATE = lib TARGET = QtMessaging - include(../../common.pri) - INCLUDEPATH += . -#Input - -DEFINES += QT_BUILD_MESSAGING_LIB QT_MAKEDLL - -PUBLIC_HEADERS += \ - qmessageid.h \ - qmessagecontentcontainerid.h \ - qmessagefolderid.h \ - qmessageaccountid.h \ - qmessagecontentcontainer.h \ - qmessageaddress.h \ - qmessage.h \ - qmessagefolder.h \ - qmessageaccount.h \ - qmessageaccountfilter.h \ - qmessageaccountsortorder.h \ - qmessagefolderfilter.h \ - qmessagefoldersortorder.h \ - qmessagefilter.h \ - qmessagemanager.h \ - qmessagesortorder.h \ - qmessageservice.h \ - qmessagedatacomparator.h \ - qmessageglobal.h - -PRIVATE_HEADERS += \ - addresshelper_p.h \ - qmessageid_p.h \ - qmessagecontentcontainerid_p.h \ - qmessagefolderid_p.h \ - qmessageaccountid_p.h \ - qmessagecontentcontainer_p.h \ - qmessageaddress_p.h \ - qmessage_p.h \ - qmessagefolder_p.h \ - qmessageaccount_p.h \ - qmessageaccountfilter_p.h \ - qmessageaccountsortorder_p.h \ - qmessagefolderfilter_p.h \ - qmessagefoldersortorder_p.h \ - qmessagefilter_p.h \ - qmessagesortorder_p.h \ - qmessagestore.h \ - qmessagestore_p.h - +# Input +DEFINES += QT_BUILD_MESSAGING_LIB \ + QT_MAKEDLL +PUBLIC_HEADERS += qmessageid.h \ + qmessagecontentcontainerid.h \ + qmessagefolderid.h \ + qmessageaccountid.h \ + qmessagecontentcontainer.h \ + qmessageaddress.h \ + qmessage.h \ + qmessagefolder.h \ + qmessageaccount.h \ + qmessageaccountfilter.h \ + qmessageaccountsortorder.h \ + qmessagefolderfilter.h \ + qmessagefoldersortorder.h \ + qmessagefilter.h \ + qmessagemanager.h \ + qmessagesortorder.h \ + qmessageservice.h \ + qmessagedatacomparator.h \ + qmessageglobal.h +PRIVATE_HEADERS += addresshelper_p.h \ + qmessageid_p.h \ + qmessagecontentcontainerid_p.h \ + qmessagefolderid_p.h \ + qmessageaccountid_p.h \ + qmessagecontentcontainer_p.h \ + qmessageaddress_p.h \ + qmessage_p.h \ + qmessagefolder_p.h \ + qmessageaccount_p.h \ + qmessageaccountfilter_p.h \ + qmessageaccountsortorder_p.h \ + qmessagefolderfilter_p.h \ + qmessagefoldersortorder_p.h \ + qmessagefilter_p.h \ + qmessagesortorder_p.h \ + qmessagestore.h \ + qmessagestore_p.h SOURCES += qmessageid.cpp \ - qmessagecontentcontainerid.cpp \ - qmessagefolderid.cpp \ - qmessageaccountid.cpp \ - qmessagecontentcontainer.cpp \ - addresshelper.cpp \ - qmessageaddress.cpp \ - qmessage.cpp \ - qmessagefolder.cpp \ - qmessageaccount.cpp \ - qmessageaccountfilter.cpp \ - qmessageaccountsortorder.cpp \ - qmessagefolderfilter.cpp \ - qmessagefoldersortorder.cpp \ - qmessagefilter.cpp \ - qmessagemanager.cpp \ - qmessagesortorder.cpp \ - qmessagestore.cpp \ - qmessageservice.cpp - - -symbian|win32|maemo6|maemo5|mac { -mac { -SOURCES += qmessageid_stub.cpp \ - qmessagecontentcontainerid_stub.cpp \ - qmessagefolderid_stub.cpp \ - qmessageaccountid_stub.cpp \ - qmessagecontentcontainer_stub.cpp \ - qmessage_stub.cpp \ - qmessagefolder_stub.cpp \ - qmessageaccount_stub.cpp \ - qmessageaccountfilter_stub.cpp \ - qmessageaccountsortorder_stub.cpp \ - qmessagefolderfilter_stub.cpp \ - qmessagefoldersortorder_stub.cpp \ - qmessagefilter_stub.cpp \ - qmessagesortorder_stub.cpp \ - qmessagestore_stub.cpp \ - qmessageservice_stub.cpp -} -maemo6|maemo5 { - QT += dbus - CONFIG += link_pkgconfig - - PUBLIC_HEADERS -= qmessagecontentcontainer_p.h - PRIVATE_HEADERS -= qmessagecontentcontainer_p.h - - HEADERS += qmessagecontentcontainer_maemo_p.h \ - modestengine_maemo_p.h \ - telepathyengine_maemo_p.h \ - maemohelpers_p.h - - SOURCES += qmessageid_maemo.cpp \ - qmessagecontentcontainerid_maemo.cpp \ - qmessagefolderid_maemo.cpp \ - qmessageaccountid_maemo.cpp \ - qmessagecontentcontainer_maemo.cpp \ - qmessage_maemo.cpp \ - qmessagefolder_maemo.cpp \ - qmessageaccount_maemo.cpp \ - qmessageaccountfilter_maemo.cpp \ - qmessageaccountsortorder_maemo.cpp \ - qmessagefolderfilter_maemo.cpp \ - qmessagefoldersortorder_maemo.cpp \ - qmessagefilter_maemo.cpp \ - qmessagesortorder_maemo.cpp \ - qmessagestore_maemo.cpp \ - qmessageservice_maemo.cpp \ - modestengine_maemo.cpp \ - telepathyengine_maemo.cpp \ - maemohelpers.cpp - - documentation.path = $$QT_MOBILITY_PREFIX/doc - documentation.files = doc/html - - PKGCONFIG += glib-2.0 dbus-glib-1 gconf-2.0 libosso libmodest-dbus-client-1.0 TpSession TelepathyQt4 - - CONFIG += create_pc create_prl - QMAKE_PKGCONFIG_REQUIRES = glib-2.0 dbus-glib-1 gconf-2.0 osso modest-dbus-client-1.0 TpSession TelepathyQt4 - pkgconfig.path = $$QT_MOBILITY_LIB/pkgconfig - pkgconfig.files = QtMessaging.pc - - INSTALLS += pkgconfig documentation -} -symbian { - INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE - - HEADERS -= qmessagestore_p.h \ - qmessagecontentcontainer_p.h \ - qmessage_p.h - - HEADERS += qmtmengine_symbian_p.h \ - qmessagestore_symbian_p.h \ - qmessageservice_symbian_p.h \ - qmessagecontentcontainer_symbian_p.h \ - qmessage_symbian_p.h - - SOURCES += qmtmengine_symbian.cpp \ - qmessageid_symbian.cpp \ - qmessagecontentcontainerid_symbian.cpp \ - qmessagefolderid_symbian.cpp \ - qmessageaccountid_symbian.cpp \ - qmessagecontentcontainer_symbian.cpp \ - qmessage_symbian.cpp \ - qmessagefolder_symbian.cpp \ - qmessageaccount_symbian.cpp \ - qmessageaccountfilter_symbian.cpp \ - qmessageaccountsortorder_symbian.cpp \ - qmessagefolderfilter_symbian.cpp \ - qmessagefoldersortorder_symbian.cpp \ - qmessagefilter_symbian.cpp \ - qmessagesortorder_symbian.cpp \ - qmessagestore_symbian.cpp \ - qmessageservice_symbian.cpp - - LIBS += -lsendas2 \ + qmessagecontentcontainerid.cpp \ + qmessagefolderid.cpp \ + qmessageaccountid.cpp \ + qmessagecontentcontainer.cpp \ + addresshelper.cpp \ + qmessageaddress.cpp \ + qmessage.cpp \ + qmessagefolder.cpp \ + qmessageaccount.cpp \ + qmessageaccountfilter.cpp \ + qmessageaccountsortorder.cpp \ + qmessagefolderfilter.cpp \ + qmessagefoldersortorder.cpp \ + qmessagefilter.cpp \ + qmessagemanager.cpp \ + qmessagesortorder.cpp \ + qmessagestore.cpp \ + qmessageservice.cpp +symbian|win32|maemo6|maemo5|mac { + mac|maemo6: SOURCES += qmessageid_stub.cpp \ + qmessagecontentcontainerid_stub.cpp \ + qmessagefolderid_stub.cpp \ + qmessageaccountid_stub.cpp \ + qmessagecontentcontainer_stub.cpp \ + qmessage_stub.cpp \ + qmessagefolder_stub.cpp \ + qmessageaccount_stub.cpp \ + qmessageaccountfilter_stub.cpp \ + qmessageaccountsortorder_stub.cpp \ + qmessagefolderfilter_stub.cpp \ + qmessagefoldersortorder_stub.cpp \ + qmessagefilter_stub.cpp \ + qmessagesortorder_stub.cpp \ + qmessagestore_stub.cpp \ + qmessageservice_stub.cpp + maemo5 { + QT += dbus + CONFIG += link_pkgconfig + PUBLIC_HEADERS -= qmessagecontentcontainer_p.h + PRIVATE_HEADERS -= qmessagecontentcontainer_p.h + HEADERS += qmessagecontentcontainer_maemo_p.h \ + modestengine_maemo_p.h \ + telepathyengine_maemo_p.h \ + maemohelpers_p.h\ + eventloggerengine_maemo_p.h + SOURCES += qmessageid_maemo.cpp \ + qmessagecontentcontainerid_maemo.cpp \ + qmessagefolderid_maemo.cpp \ + qmessageaccountid_maemo.cpp \ + qmessagecontentcontainer_maemo.cpp \ + qmessage_maemo.cpp \ + qmessagefolder_maemo.cpp \ + qmessageaccount_maemo.cpp \ + qmessageaccountfilter_maemo.cpp \ + qmessageaccountsortorder_maemo.cpp \ + qmessagefolderfilter_maemo.cpp \ + qmessagefoldersortorder_maemo.cpp \ + qmessagefilter_maemo.cpp \ + qmessagesortorder_maemo.cpp \ + qmessagestore_maemo.cpp \ + qmessageservice_maemo.cpp \ + modestengine_maemo.cpp \ + telepathyengine_maemo.cpp \ + maemohelpers.cpp\ + eventloggerengine_maemo.cpp + documentation.path = $$QT_MOBILITY_PREFIX/doc + documentation.files = doc/html + PKGCONFIG += glib-2.0 \ + dbus-glib-1 \ + gconf-2.0 \ + libosso \ + libmodest-dbus-client-1.0 \ + TpSession \ + TelepathyQt4 + CONFIG += create_pc \ + create_prl + QMAKE_PKGCONFIG_REQUIRES = glib-2.0 \ + dbus-glib-1 \ + gconf-2.0 \ + osso \ + modest-dbus-client-1.0 \ + TpSession \ + TelepathyQt4 + pkgconfig.path = $$QT_MOBILITY_LIB/pkgconfig + pkgconfig.files = QtMessaging.pc + INSTALLS += pkgconfig \ + documentation + LIBS += -lgconf-2 -lrtcom-eventlogger -lmodest-dbus-client-1.0 -losso -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -ltpsession -ltelepathy-qt4 + } + maemo5 { + LIBS += -lgconf-2 -lrtcom-eventlogger -lmodest-dbus-client-1.0 -losso -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -ltpsession -ltelepathy-qt4 + } + symbian { + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE + HEADERS -= qmessagestore_p.h \ + qmessagecontentcontainer_p.h \ + qmessage_p.h + HEADERS += qmtmengine_symbian_p.h \ + qmessagestore_symbian_p.h \ + qmessageservice_symbian_p.h \ + qmessagecontentcontainer_symbian_p.h \ + qmessage_symbian_p.h + SOURCES += qmtmengine_symbian.cpp \ + qmessageid_symbian.cpp \ + qmessagecontentcontainerid_symbian.cpp \ + qmessagefolderid_symbian.cpp \ + qmessageaccountid_symbian.cpp \ + qmessagecontentcontainer_symbian.cpp \ + qmessage_symbian.cpp \ + qmessagefolder_symbian.cpp \ + qmessageaccount_symbian.cpp \ + qmessageaccountfilter_symbian.cpp \ + qmessageaccountsortorder_symbian.cpp \ + qmessagefolderfilter_symbian.cpp \ + qmessagefoldersortorder_symbian.cpp \ + qmessagefilter_symbian.cpp \ + qmessagesortorder_symbian.cpp \ + qmessagestore_symbian.cpp \ + qmessageservice_symbian.cpp + LIBS += -lsendas2 \ -lmsgs \ -letext \ -lefsrv \ @@ -175,119 +173,111 @@ -lbafl \ -lmtur \ -lsendui \ - -lsmcm \ + -lsmcm \ -limcm \ -leikcore \ -lcone \ -lapgrfx \ -lapmime - - TARGET.CAPABILITY = ALL -TCB - TARGET.UID3 = 0x2002AC82 - - QtMessaging.sources = QtMessaging.dll - QtMessaging.path = /sys/bin - DEPLOYMENT += QtMessaging + TARGET.CAPABILITY = ALL \ + -TCB + TARGET.UID3 = 0x2002AC82 + QtMessaging.sources = QtMessaging.dll + QtMessaging.path = /sys/bin + DEPLOYMENT += QtMessaging + } + win32 { + PRIVATE_HEADERS += winhelpers_p.h + SOURCES += winhelpers.cpp \ + qmessageid_win.cpp \ + qmessagecontentcontainerid_win.cpp \ + qmessagefolderid_win.cpp \ + qmessageaccountid_win.cpp \ + qmessagecontentcontainer_win.cpp \ + qmessage_win.cpp \ + qmessagefolder_win.cpp \ + qmessageaccount_win.cpp \ + qmessageaccountfilter_win.cpp \ + qmessageaccountsortorder_win.cpp \ + qmessagefolderfilter_win.cpp \ + qmessagefoldersortorder_win.cpp \ + qmessagefilter_win.cpp \ + qmessagesortorder_win.cpp \ + qmessagestore_win.cpp \ + qmessageservice_win.cpp + wince* { + # Include the source files from QMF needed for MIME parsing + # These files are copied directly from the QMF repo with no changes: + PRIVATE_HEADERS += win32wce/qmailaddress.h \ + win32wce/qmailcodec.h \ + win32wce/qmailfolderfwd.h \ + win32wce/qmailglobal.h \ + win32wce/qmailid.h \ + win32wce/qmailipc.h \ + win32wce/qmaillog.h \ + win32wce/qmailmessage.h \ + win32wce/qmailmessagefwd.h \ + win32wce/qmailmessage_p.h \ + win32wce/qmailnamespace.h \ + win32wce/qmailtimestamp.h \ + win32wce/longstring_p.h \ + win32wce/qprivateimplementation.h \ + win32wce/qprivateimplementationdef.h + SOURCES += win32wce/qmailaddress.cpp \ + win32wce/qmailcodec.cpp \ + win32wce/qmailid.cpp \ + win32wce/qmailinstantiations.cpp \ + win32wce/qmaillog.cpp \ + win32wce/qmailmessage.cpp \ + win32wce/qmailmessagefwd.cpp \ + win32wce/qmailnamespace.cpp \ + win32wce/qmailtimestamp.cpp \ + win32wce/longstring.cpp \ + win32wce/qprivateimplementation.cpp + DEFINES += QTOPIAMAIL_PARSING_ONLY \ + QTOPIAMAIL_OMIT_QCOP \ + SINGLE_MODULE_QTOPIAMAIL + LIBS += cemapi.lib \ + strmiids.lib \ + uuid.lib + } + else:LIBS += mapi32.lib \ + shlwapi.lib \ + user32.lib + } } - -win32 { -PRIVATE_HEADERS += \ - winhelpers_p.h - -SOURCES += winhelpers.cpp \ - qmessageid_win.cpp \ - qmessagecontentcontainerid_win.cpp \ - qmessagefolderid_win.cpp \ - qmessageaccountid_win.cpp \ - qmessagecontentcontainer_win.cpp \ - qmessage_win.cpp \ - qmessagefolder_win.cpp \ - qmessageaccount_win.cpp \ - qmessageaccountfilter_win.cpp \ - qmessageaccountsortorder_win.cpp \ - qmessagefolderfilter_win.cpp \ - qmessagefoldersortorder_win.cpp \ - qmessagefilter_win.cpp \ - qmessagesortorder_win.cpp \ - qmessagestore_win.cpp \ - qmessageservice_win.cpp - -wince* { - # Include the source files from QMF needed for MIME parsing - # These files are copied directly from the QMF repo with no changes: - - PRIVATE_HEADERS += win32wce/qmailaddress.h \ - win32wce/qmailcodec.h \ - win32wce/qmailfolderfwd.h \ - win32wce/qmailglobal.h \ - win32wce/qmailid.h \ - win32wce/qmailipc.h \ - win32wce/qmaillog.h \ - win32wce/qmailmessage.h \ - win32wce/qmailmessagefwd.h \ - win32wce/qmailmessage_p.h \ - win32wce/qmailnamespace.h \ - win32wce/qmailtimestamp.h \ - win32wce/longstring_p.h \ - win32wce/qprivateimplementation.h \ - win32wce/qprivateimplementationdef.h - - SOURCES += win32wce/qmailaddress.cpp \ - win32wce/qmailcodec.cpp \ - win32wce/qmailid.cpp \ - win32wce/qmailinstantiations.cpp \ - win32wce/qmaillog.cpp \ - win32wce/qmailmessage.cpp \ - win32wce/qmailmessagefwd.cpp \ - win32wce/qmailnamespace.cpp \ - win32wce/qmailtimestamp.cpp \ - win32wce/longstring.cpp \ - win32wce/qprivateimplementation.cpp - - DEFINES += QTOPIAMAIL_PARSING_ONLY QTOPIAMAIL_OMIT_QCOP SINGLE_MODULE_QTOPIAMAIL +else:contains(qmf_enabled, yes) { + DEFINES += USE_QMF_IMPLEMENTATION + + # QMF headers must be located at $QMF_INCLUDEDIR + INCLUDEPATH += $$(QMF_INCLUDEDIR) \ + $$(QMF_INCLUDEDIR)/support - LIBS += cemapi.lib strmiids.lib uuid.lib -} -else { - LIBS += mapi32.lib shlwapi.lib user32.lib -} - + # QMF libraries must be located at $QMF_LIBDIR + LIBS += -L \ + $$(QMF_LIBDIR) \ + -lqtopiamail + PRIVATE_HEADERS += qmfhelpers_p.h \ + qmessagestore_qmf_p.h + SOURCES += qmessageid_qmf.cpp \ + qmessagecontentcontainerid_qmf.cpp \ + qmessagefolderid_qmf.cpp \ + qmessageaccountid_qmf.cpp \ + qmessagecontentcontainer_qmf.cpp \ + qmessage_qmf.cpp \ + qmessagefolder_qmf.cpp \ + qmessageaccount_qmf.cpp \ + qmessageaccountfilter_qmf.cpp \ + qmessageaccountsortorder_qmf.cpp \ + qmessagefolderfilter_qmf.cpp \ + qmessagefoldersortorder_qmf.cpp \ + qmessagefilter_qmf.cpp \ + qmessagesortorder_qmf.cpp \ + qmessagestore_qmf.cpp \ + qmessageservice_qmf.cpp \ + qmfhelpers.cpp } -} else { - contains(qmf_enabled, yes) { - -DEFINES += USE_QMF_IMPLEMENTATION - -# QMF headers must be located at $QMF_INCLUDEDIR -INCLUDEPATH += $$(QMF_INCLUDEDIR) $$(QMF_INCLUDEDIR)/support - -# QMF libraries must be located at $QMF_LIBDIR -LIBS += -L $$(QMF_LIBDIR) -lqtopiamail - -PRIVATE_HEADERS += \ - qmfhelpers_p.h \ - qmessagestore_qmf_p.h - -SOURCES += qmessageid_qmf.cpp \ - qmessagecontentcontainerid_qmf.cpp \ - qmessagefolderid_qmf.cpp \ - qmessageaccountid_qmf.cpp \ - qmessagecontentcontainer_qmf.cpp \ - qmessage_qmf.cpp \ - qmessagefolder_qmf.cpp \ - qmessageaccount_qmf.cpp \ - qmessageaccountfilter_qmf.cpp \ - qmessageaccountsortorder_qmf.cpp \ - qmessagefolderfilter_qmf.cpp \ - qmessagefoldersortorder_qmf.cpp \ - qmessagefilter_qmf.cpp \ - qmessagesortorder_qmf.cpp \ - qmessagestore_qmf.cpp \ - qmessageservice_qmf.cpp \ - qmfhelpers.cpp -} -} -HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS - +HEADERS += $$PUBLIC_HEADERS \ + $$PRIVATE_HEADERS CONFIG += middleware include(../../features/deploy.pri) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/modestengine_maemo.cpp --- a/qtmobility/src/messaging/modestengine_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/modestengine_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,19 +40,162 @@ ****************************************************************************/ #include "modestengine_maemo_p.h" #include "maemohelpers_p.h" +#include "qmessage_p.h" #include "qmessageaccount.h" #include "qmessageaccount_p.h" #include "qmessageaccountfilter.h" #include "qmessageaccountfilter_p.h" -#include "qmessageservice.h" -#include -#include +#include "qmessagefolder_p.h" +#include "qmessagestore_p.h" +#include "qmessageservice_maemo_p.h" +#include "qmessagecontentcontainer_maemo_p.h" #include -#include +#include +#include +#include + #include - #include +#include +#include +#include +#include + +// Marshall the ModestStringMap data into a D-Bus argument +QDBusArgument &operator<<(QDBusArgument &argument, + const QtMobility::ModestStringMap &map) +{ + QtMobility::ModestStringMap::const_iterator iter; + + argument.beginMap (QVariant::String, QVariant::String); + for (iter = map.constBegin(); iter != map.constEnd(); iter++) { + argument.beginMapEntry(); + argument << iter.key() << iter.value(); + argument.endMapEntry(); + } + argument.endMap(); + + return argument; +} + +// Retrieve the ModestStringMap data from the D-Bus argument +const QDBusArgument &operator>>(const QDBusArgument &argument, + QtMobility::ModestStringMap &map) +{ + map.clear(); + + argument.beginMap(); + while (!argument.atEnd()) { + QString key, value; + argument.beginMapEntry(); + argument >> key >> value; + argument.endMapEntry(); + map[key] = value; + } + argument.endMap(); + + return argument; +} + +QDBusArgument &operator<<(QDBusArgument &argument, + const QtMobility::ModestUnreadMessageDBusStruct &unreadMessage) +{ + argument.beginStructure(); + argument << unreadMessage.timeStamp; + argument << unreadMessage.subject; + argument.endStructure(); + return argument; +} + +const QDBusArgument &operator>>(const QDBusArgument &argument, + QtMobility::ModestUnreadMessageDBusStruct &unreadMessage) +{ + argument.beginStructure(); + argument >> unreadMessage.timeStamp; + argument >> unreadMessage.subject; + argument.endStructure(); + return argument; +} + +QDBusArgument &operator<<(QDBusArgument &argument, + const QtMobility::ModestAccountsUnreadMessagesDBusStruct &unreadMessages) +{ + argument.beginStructure(); + argument << unreadMessages.accountId; + argument << unreadMessages.accountName; + argument << unreadMessages.accountProtocol; + argument << unreadMessages.unreadCount; + argument << unreadMessages.unreadMessages; + argument.endStructure(); + return argument; +} + +const QDBusArgument &operator>>(const QDBusArgument &argument, + QtMobility::ModestAccountsUnreadMessagesDBusStruct &unreadMessages) +{ + argument.beginStructure(); + argument >> unreadMessages.accountId; + argument >> unreadMessages.accountName; + argument >> unreadMessages.accountProtocol; + argument >> unreadMessages.unreadCount; + argument >> unreadMessages.unreadMessages; + argument.endStructure(); + return argument; +} + +QDBusArgument &operator<<(QDBusArgument &argument, const QtMobility::ModestMessage &message) +{ + argument.beginStructure(); + argument << message.id; + argument << message.subject; + argument << message.folder; + argument << message.sender; + argument << message.size; + argument << message.hasAttachment; + argument << message.isUnread; + argument << message.timeStamp; + argument.endStructure(); + return argument; +} + +const QDBusArgument &operator>>(const QDBusArgument &argument, QtMobility::ModestMessage &message) +{ + argument.beginStructure(); + argument >> message.id; + argument >> message.subject; + argument >> message.folder; + argument >> message.sender; + argument >> message.size; + argument >> message.hasAttachment; + argument >> message.isUnread; + argument >> message.timeStamp; + argument.endStructure(); + return argument; +} + +QDBusArgument &operator<<(QDBusArgument &argument, const QtMobility::MessagingModestMimePart &mimePart) +{ + argument.beginStructure(); + argument << mimePart.mimeType; + argument << mimePart.isAttachment; + argument << mimePart.fileName; + argument << mimePart.contentId; + argument.endStructure(); + return argument; +} + +const QDBusArgument &operator>>(const QDBusArgument &argument, QtMobility::MessagingModestMimePart &mimePart) +{ + argument.beginStructure(); + argument >> mimePart.mimeType; + argument >> mimePart.isAttachment; + argument >> mimePart.fileName; + argument >> mimePart.contentId; + argument.endStructure(); + return argument; +} + QTM_BEGIN_NAMESPACE /* configuration key definitions for modest */ @@ -65,10 +208,32 @@ #define MODESTENGINE_ACCOUNT_EMAIL "email" #define MODESTENGINE_ACCOUNT_STORE_ACCOUNT "store_account" #define MODESTENGINE_ACCOUNT_TRANSPORT_ACCOUNT "transport_account" +#define MODESTENGINE_ACCOUNT_PROTOCOL "proto" +#define MODESTENGINE_ACCOUNT_USERNAME "username" +#define MODESTENGINE_ACCOUNT_HOSTNAME "hostname" +#define MODESTENGINE_ACCOUNT_PORT "port" + +// The modest engine has a new plugin, we need service names for it +#define MODESTENGINE_QTM_PLUGIN_PATH "/com/nokia/Qtm/Modest/Plugin" +#define MODESTENGINE_QTM_PLUGIN_NAME "com.nokia.Qtm.Modest.Plugin" + +typedef enum { + MODEST_DBUS_SEARCH_SUBJECT = (1 << 0), + MODEST_DBUS_SEARCH_SENDER = (1 << 1), + MODEST_DBUS_SEARCH_RECIPIENT = (1 << 2), + MODEST_DBUS_SEARCH_SIZE = (1 << 3), + MODEST_DBUS_SEARCH_BODY = (1 << 6) +} ModestDBusSearchFlags; + +// Specific priority settings to translate to modest priorities +#define MODESTENGINE_HIGH_PRIORITY 2 +#define MODESTENGINE_NORMAL_PRIORITY 0 +#define MODESTENGINE_LOW_PRIORITY 1 Q_GLOBAL_STATIC(ModestEngine,modestEngine); ModestEngine::ModestEngine() + : m_queryIds(0) { g_type_init(); m_gconfclient = gconf_client_get_default(); @@ -77,6 +242,62 @@ } else { updateEmailAccounts(); } + + // Setup DBus Interface for Modest + m_ModestDBusInterface = new QDBusInterface(MODEST_DBUS_SERVICE, + MODEST_DBUS_OBJECT, + MODEST_DBUS_IFACE, + QDBusConnection::sessionBus(), + this); + + // Get notifications of Incoming Messages + m_ModestDBusInterface->connection().connect(MODEST_DBUS_SERVICE, + MODEST_DBUS_OBJECT, + MODEST_DBUS_IFACE, + MODEST_DBUS_SIGNAL_FOLDER_UPDATED, + this, SLOT(folderUpdatedSlot(QDBusMessage))); + + // Get notifications of message Read/Unread state changes + m_ModestDBusInterface->connection().connect(MODEST_DBUS_SERVICE, + MODEST_DBUS_OBJECT, + MODEST_DBUS_IFACE, + MODEST_DBUS_SIGNAL_MSG_READ_CHANGED, + this, SLOT(messageReadChangedSlot(QDBusMessage))); + + // Setup Qt Mobility Modest Plugin based DBus Interface for Modest + m_QtmPluginDBusInterface = new QDBusInterface(MODESTENGINE_QTM_PLUGIN_NAME, + MODESTENGINE_QTM_PLUGIN_PATH, + MODESTENGINE_QTM_PLUGIN_NAME, + QDBusConnection::sessionBus(), + this); + + qDBusRegisterMetaType< ModestStringMap >(); + qDBusRegisterMetaType< ModestStringMapList >(); + + qRegisterMetaType(); + + qRegisterMetaType(); + qRegisterMetaType(); + qDBusRegisterMetaType(); + + qRegisterMetaType(); + + + connect(&m_MailFoldersWatcher, SIGNAL(fileChanged(int, QString, uint)), + this, SLOT(fileChangedSlot(int, QString, uint))); + + watchAllKnownEmailFolders(); + + // Get latest messages from each account + // => This ensures that notifications of all incoming messages will be sent + int messagesPerAccount = 1; + QDBusPendingCall pendingCall = m_ModestDBusInterface->asyncCall(MODEST_DBUS_METHOD_GET_UNREAD_MESSAGES, + messagesPerAccount); + QDBusPendingCallWatcher* pendingCallWatcher = new QDBusPendingCallWatcher(pendingCall); + pendingCallWatcher->setProperty("setOnlyDates", true); + connect(pendingCallWatcher, SIGNAL(finished(QDBusPendingCallWatcher*)), + this, SLOT(pendingGetUnreadMessagesFinishedSlot(QDBusPendingCallWatcher*))); + } ModestEngine::~ModestEngine() @@ -90,6 +311,51 @@ return modestEngine(); } +MessagingModestMessage ModestEngine::messageFromModest(const QString& accountId, const QString &folderId, const QString& messageId) const +{ + MessagingModestMessage modestMessage; + + QDBusPendingCall pendingCall = m_QtmPluginDBusInterface->asyncCall("GetMessage", + accountId, + folderId, + messageId); + QDBusPendingCallWatcher pendingCallWatcher(pendingCall); + pendingCallWatcher.waitForFinished(); + + QDBusMessage msg = pendingCallWatcher.reply(); + + if (msg.type() == QDBusMessage::ReplyMessage) { + modestMessage.id = messageId; + modestMessage.accountId = accountId; + modestMessage.folderId = folderId; + modestMessage.url = msg.arguments()[0].toString(); + modestMessage.mimeType = msg.arguments()[1].toString(); + modestMessage.from = msg.arguments()[2].toString(); + modestMessage.to = msg.arguments()[3].toString(); + modestMessage.cc = msg.arguments()[4].toString(); + modestMessage.bcc = msg.arguments()[5].toString(); + modestMessage.replyTo = msg.arguments()[6].toString(); + modestMessage.subject = msg.arguments()[7].toString(); + modestMessage.dateReceived = msg.arguments()[8].toLongLong(); + modestMessage.dateSent = msg.arguments()[9].toLongLong(); + modestMessage.size = msg.arguments()[10].toLongLong(); + modestMessage.flags = static_cast(msg.arguments()[11].toUInt()); + modestMessage.priority = static_cast(msg.arguments()[12].toUInt()); + + QVariant variant = msg.arguments()[13]; + QDBusArgument argument = variant.value(); + argument >> modestMessage.mimeParts; + } else { + modestMessage.dateReceived = 0; + modestMessage.dateSent = 0; + modestMessage.size = 0; + modestMessage.flags = MessagingModestMessageNotDefined; + modestMessage.priority = MessagingModestMessagePriorityDefined; + } + + return modestMessage; +} + void ModestEngine::updateEmailAccounts() const { iDefaultEmailAccountId = QMessageAccountId(); @@ -105,12 +371,14 @@ #endif g_error_free(error); } else { - gchar *default_account = gconf_client_get_string(m_gconfclient, MODESTENGINE_DEFAULT_ACCOUNT, &error); + gchar *default_account_id = gconf_client_get_string(m_gconfclient, MODESTENGINE_DEFAULT_ACCOUNT, &error); if (error) { qWarning("qtmessaging: failed to get '%s': %s", MODESTENGINE_DEFAULT_ACCOUNT, error->message); g_error_free(error); } + const size_t prefix_len = strlen(MODESTENGINE_ACCOUNT_NAMESPACE) + 1; + GSList *iter = accounts; while (iter) { if (!(iter->data)) { @@ -118,61 +386,83 @@ continue; } - const gchar* account_name_key = (const gchar*)iter->data; + const gchar* account_key = (const gchar*)iter->data; + // account_key = /apps/modest/server_accounts/ + // => take account id from account_key & unescape account id + gchar* unescaped_account_id = gconf_unescape_key(account_key+prefix_len, strlen(account_key)-prefix_len); gboolean account_ok = FALSE; // Check if account is enabled - if (account_name_key) { - gchar* key = g_strconcat(account_name_key, "/", MODESTENGINE_ACCOUNT_ENABLED, NULL); + if (account_key) { + gchar* key = g_strconcat(account_key, "/", MODESTENGINE_ACCOUNT_ENABLED, NULL); account_ok = gconf_client_get_bool(m_gconfclient, key, NULL); g_free(key); } + // Check if account store is defined if (account_ok) { - gchar* key = g_strconcat(account_name_key, "/", MODESTENGINE_ACCOUNT_STORE_ACCOUNT, NULL); + gchar* key = g_strconcat(account_key, "/", MODESTENGINE_ACCOUNT_STORE_ACCOUNT, NULL); gchar* server_account_name = gconf_client_get_string(m_gconfclient, key, NULL); if (server_account_name) { - gchar* key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", server_account_name, NULL); - if (!gconf_client_dir_exists(m_gconfclient, key, NULL)) { + gchar* escaped_server_account_name = gconf_escape_key(server_account_name, strlen(server_account_name)); + g_free(server_account_name); + gchar* store_account_key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", escaped_server_account_name, NULL); + if (!gconf_client_dir_exists(m_gconfclient, store_account_key, NULL)) { account_ok = FALSE; } - g_free(server_account_name); + g_free(store_account_key); + g_free(escaped_server_account_name); } g_free(key); } + // Check if account transport is defined if (account_ok) { - gchar* key = g_strconcat(account_name_key, "/", MODESTENGINE_ACCOUNT_TRANSPORT_ACCOUNT, NULL); + gchar* key = g_strconcat(account_key, "/", MODESTENGINE_ACCOUNT_TRANSPORT_ACCOUNT, NULL); gchar* server_account_name = gconf_client_get_string(m_gconfclient, key, NULL); if (server_account_name) { - gchar* key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", server_account_name, NULL); - if (!gconf_client_dir_exists(m_gconfclient, key, NULL)) { + gchar* escaped_server_account_name = gconf_escape_key(server_account_name, strlen(server_account_name)); + g_free(server_account_name); + gchar* transport_account_key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", escaped_server_account_name, NULL); + if (!gconf_client_dir_exists(m_gconfclient, transport_account_key, NULL)) { account_ok = FALSE; } - g_free(server_account_name); + g_free(transport_account_key); + g_free(escaped_server_account_name); } g_free(key); } if (account_ok) { - QString accountId = QString::fromUtf8(account_name_key); - gchar* name_key = g_strconcat(account_name_key, "/", MODESTENGINE_ACCOUNT_DISPLAY_NAME, NULL); - QString accountName = QString::fromUtf8(gconf_client_get_string(m_gconfclient, name_key, NULL)); + gchar* escaped_account_id = gconf_escape_key(unescaped_account_id, strlen(unescaped_account_id)); + QString accountId = "MO_"+QString::fromUtf8(escaped_account_id); + g_free(escaped_account_id); + + gchar* name_key = g_strconcat(account_key, "/", MODESTENGINE_ACCOUNT_DISPLAY_NAME, NULL); + gchar* account_name = gconf_client_get_string(m_gconfclient, name_key, NULL); + QString accountName = QString::fromUtf8(account_name); + g_free(account_name); g_free(name_key); - gchar* email_key = g_strconcat(account_name_key, "/", MODESTENGINE_ACCOUNT_EMAIL, NULL); - QString accountAddress = QString::fromUtf8(gconf_client_get_string(m_gconfclient, email_key, NULL)); + + gchar* email_key = g_strconcat(account_key, "/", MODESTENGINE_ACCOUNT_EMAIL, NULL); + gchar* email = gconf_client_get_string(m_gconfclient, email_key, NULL); + QString accountAddress = QString::fromUtf8(email); + g_free(email); g_free(email_key); + QMessageAccount account = QMessageAccountPrivate::from(QMessageAccountId(accountId), accountName, QMessageAddress(QMessageAddress::Email, accountAddress), QMessage::Email); iAccounts.insert(accountId, account); - if (strncmp(account_name_key, default_account, strlen(default_account))) { + // Check if newly added account is default account + if (!strncmp(default_account_id, unescaped_account_id, strlen(default_account_id))) { iDefaultEmailAccountId = accountId; } } + g_free(unescaped_account_id); g_free(iter->data); iter->data = NULL; iter = g_slist_next(iter); @@ -180,13 +470,17 @@ // strings were freed in while loop // => it's enough to just free accounts list g_slist_free(accounts); - g_free(default_account); + g_free(default_account_id); } } QMessageAccountIdList ModestEngine::queryAccounts(const QMessageAccountFilter &filter, const QMessageAccountSortOrder &sortOrder, uint limit, uint offset, bool &isFiltered, bool &isSorted) const { + Q_UNUSED(sortOrder) + Q_UNUSED(limit) + Q_UNUSED(offset) + QMessageAccountIdList accountIds; updateEmailAccounts(); @@ -214,15 +508,410 @@ return iAccounts[id.toString()]; } -QMessageAccountId ModestEngine::defaultAccount(QMessage::Type type) const +QMessageAccountId ModestEngine::defaultAccount() const { updateEmailAccounts(); return iDefaultEmailAccountId; } +QFileInfoList ModestEngine::localFolders() const +{ + QDir dir(localRootFolder()); + dir.setFilter(QDir::AllDirs | QDir::NoDotAndDotDot); + QFileInfoList fileInfoList = dir.entryInfoList(); + appendLocalSubFolders(fileInfoList, 0); + return fileInfoList; +} + +void ModestEngine::appendLocalSubFolders(QFileInfoList& fileInfoList, int startIndex) const +{ + int endIndex = fileInfoList.count(); + for (int i=startIndex; i < endIndex; i++) { + QDir dir(fileInfoList[i].absoluteFilePath()); + if (dir.exists()) { + dir.setFilter(QDir::AllDirs | QDir::NoDotAndDotDot); + QFileInfoList dirs = dir.entryInfoList(); + for (int j = 0; j < dirs.count(); j++) { + QString fileName = dirs[j].fileName(); + if (fileName != "cur" && fileName != "new" && fileName != "tmp") { + fileInfoList.append(dirs[j]); + } + } + } + } + if (fileInfoList.count() > endIndex) { + appendLocalSubFolders(fileInfoList, endIndex); + } +} + +void ModestEngine::appendIMAPSubFolders(QFileInfoList& fileInfoList, int startIndex) const +{ + int endIndex = fileInfoList.count(); + for (int i=startIndex; i < endIndex; i++) { + QDir dir(fileInfoList[i].absoluteFilePath()+QString("/subfolders")); + if (dir.exists()) { + dir.setFilter(QDir::AllDirs | QDir::NoDotAndDotDot); + fileInfoList.append(dir.entryInfoList()); + } + } + if (fileInfoList.count() > endIndex) { + appendIMAPSubFolders(fileInfoList, endIndex); + } +} + +QString ModestEngine::localRootFolder() const +{ + return QDir::home().absolutePath()+QString("/.modest/local_folders"); +} + +QString ModestEngine::accountRootFolder(QMessageAccountId& accountId) const +{ + QString modestAccountId = escapeString(modestAccountIdFromAccountId(accountId)); + + QString userName; + QString hostName; + QString port; + QString protocol; + + gchar* store_account_key = g_strconcat(MODESTENGINE_ACCOUNT_NAMESPACE, "/", modestAccountId.toUtf8().data(), "/", MODESTENGINE_ACCOUNT_STORE_ACCOUNT, NULL); + gchar* store_account_name = gconf_client_get_string(m_gconfclient, store_account_key, NULL); + g_free(store_account_key); + gchar* escaped_store_account_name = gconf_escape_key(store_account_name, strlen(store_account_name)); + g_free(store_account_name); + + gchar* username_key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", escaped_store_account_name, "/", MODESTENGINE_ACCOUNT_USERNAME, NULL); + gchar* account_username = gconf_client_get_string(m_gconfclient, username_key, NULL); + userName = QString::fromUtf8(account_username); + g_free(account_username); + g_free(username_key); + + gchar* hostname_key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", escaped_store_account_name, "/", MODESTENGINE_ACCOUNT_HOSTNAME, NULL); + gchar* account_hostname = gconf_client_get_string(m_gconfclient, hostname_key, NULL); + hostName = QString::fromUtf8(account_hostname); + g_free(account_hostname); + g_free(hostname_key); + + gchar* port_key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", escaped_store_account_name, "/", MODESTENGINE_ACCOUNT_PORT, NULL); + gint account_port = gconf_client_get_int(m_gconfclient, port_key, NULL); + port = QString::number(account_port); + g_free(port_key); + + gchar* protocol_key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", escaped_store_account_name, "/", MODESTENGINE_ACCOUNT_PROTOCOL, NULL); + gchar* account_protocol = gconf_client_get_string(m_gconfclient, protocol_key, NULL); + protocol = QString::fromUtf8(account_protocol); + g_free(account_protocol); + g_free(protocol_key); + + g_free(escaped_store_account_name); + + if (protocol == "pop") { + return QDir::home().absolutePath()+"/.modest/cache/mail/"+protocol+"/"+userName+"__"+hostName+"_"+port; + } else if (protocol == "imap") { + return QDir::home().absolutePath()+"/.modest/cache/mail/"+protocol+"/"+userName+"__"+hostName+"_"+port+"/folders"; + } + return QString(); +} + +QFileInfoList ModestEngine::accountFolders(QMessageAccountId& accountId) const +{ + QFileInfoList fileInfoList; + + EmailProtocol protocol = accountEmailProtocol(accountId); + + if (protocol == ModestEngine::EmailProtocolPop3) { + QFileInfo fileInfo = QFileInfo(accountRootFolder(accountId)+"/cache"); + fileInfoList.append(fileInfo); + } else if (protocol == ModestEngine::EmailProtocolIMAP) { + QDir dir(accountRootFolder(accountId)); + dir.setFilter(QDir::AllDirs | QDir::NoDotAndDotDot); + fileInfoList = dir.entryInfoList(); + appendIMAPSubFolders(fileInfoList, 0); + } + + return fileInfoList; +} + +ModestEngine::EmailProtocol ModestEngine::accountEmailProtocol(QMessageAccountId& accountId) const +{ + EmailProtocol protocol = EmailProtocolUnknown; + + QString modestAccountId = escapeString(modestAccountIdFromAccountId(accountId)); + + gchar* store_account_key = g_strconcat(MODESTENGINE_ACCOUNT_NAMESPACE, "/", modestAccountId.toUtf8().data(), "/", MODESTENGINE_ACCOUNT_STORE_ACCOUNT, NULL); + gchar* store_account_name = gconf_client_get_string(m_gconfclient, store_account_key, NULL); + g_free(store_account_key); + gchar* escaped_store_account_name = gconf_escape_key(store_account_name, strlen(store_account_name)); + g_free(store_account_name); + + gchar* protocol_key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", escaped_store_account_name, "/", MODESTENGINE_ACCOUNT_PROTOCOL, NULL); + gchar* account_protocol = gconf_client_get_string(m_gconfclient, protocol_key, NULL); + if (QString("pop") == account_protocol) { + protocol = EmailProtocolPop3; + } else if (QString("imap") == account_protocol) { + protocol = EmailProtocolIMAP; + } + g_free(account_protocol); + g_free(protocol_key); + + g_free(escaped_store_account_name); + + return protocol; +} + +QString ModestEngine::accountEmailProtocolAsString(const QMessageAccountId& accountId) const +{ + QString protocol; + + QString modestAccountId = escapeString(modestAccountIdFromAccountId(accountId)); + + gchar* store_account_key = g_strconcat(MODESTENGINE_ACCOUNT_NAMESPACE, "/", modestAccountId.toUtf8().data(), "/", MODESTENGINE_ACCOUNT_STORE_ACCOUNT, NULL); + gchar* store_account_name = gconf_client_get_string(m_gconfclient, store_account_key, NULL); + g_free(store_account_key); + gchar* escaped_store_account_name = gconf_escape_key(store_account_name, strlen(store_account_name)); + g_free(store_account_name); + + gchar* protocol_key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", escaped_store_account_name, "/", MODESTENGINE_ACCOUNT_PROTOCOL, NULL); + gchar* account_protocol = gconf_client_get_string(m_gconfclient, protocol_key, NULL); + protocol = QString::fromUtf8(account_protocol); + g_free(account_protocol); + g_free(protocol_key); + + g_free(escaped_store_account_name); + + return protocol; +} + +QString ModestEngine::accountUsername(QMessageAccountId& accountId) const +{ + QString username; + + QString modestAccountId = escapeString(modestAccountIdFromAccountId(accountId)); + + gchar* store_account_key = g_strconcat(MODESTENGINE_ACCOUNT_NAMESPACE, "/", modestAccountId.toUtf8().data(), "/", MODESTENGINE_ACCOUNT_STORE_ACCOUNT, NULL); + gchar* store_account_name = gconf_client_get_string(m_gconfclient, store_account_key, NULL); + g_free(store_account_key); + gchar* escaped_store_account_name = gconf_escape_key(store_account_name, strlen(store_account_name)); + g_free(store_account_name); + + gchar* username_key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", escaped_store_account_name, "/", MODESTENGINE_ACCOUNT_USERNAME, NULL); + gchar* account_username = gconf_client_get_string(m_gconfclient, username_key, NULL); + username = QString::fromUtf8(account_username); + g_free(account_username); + g_free(username_key); + + g_free(escaped_store_account_name); + + return username; +} + +QString ModestEngine::accountHostname(QMessageAccountId& accountId) const +{ + QString host; + + QString modestAccountId = escapeString(modestAccountIdFromAccountId(accountId)); + + gchar* store_account_key = g_strconcat(MODESTENGINE_ACCOUNT_NAMESPACE, "/", modestAccountId.toUtf8().data(), "/", MODESTENGINE_ACCOUNT_STORE_ACCOUNT, NULL); + gchar* store_account_name = gconf_client_get_string(m_gconfclient, store_account_key, NULL); + g_free(store_account_key); + gchar* escaped_store_account_name = gconf_escape_key(store_account_name, strlen(store_account_name)); + g_free(store_account_name); + + gchar* host_key = g_strconcat(MODESTENGINE_SERVER_ACCOUNT_NAMESPACE, "/", escaped_store_account_name, "/", MODESTENGINE_ACCOUNT_HOSTNAME, NULL); + gchar* account_host = gconf_client_get_string(m_gconfclient, host_key, NULL); + host = QString::fromUtf8(account_host); + g_free(account_host); + g_free(host_key); + + g_free(escaped_store_account_name); + + return host; +} + +QMessageFolderIdList ModestEngine::queryFolders(const QMessageFolderFilter &filter, const QMessageFolderSortOrder &sortOrder, + uint limit, uint offset, bool &isFiltered, bool &isSorted) const +{ + Q_UNUSED(sortOrder) + Q_UNUSED(limit) + Q_UNUSED(offset) + + QMessageFolderIdList folderIds; + + updateEmailAccounts(); + + //QDBusMessage msg = m_ModestDBusInterface->call(MODEST_DBUS_METHOD_GET_FOLDERS); + QFileInfoList localFolders = this->localFolders(); + QString localRootFolder = this->localRootFolder(); + + foreach (QMessageAccount value, iAccounts) { + QMessageAccountId accountId = value.id(); + QString rootFolder = accountRootFolder(accountId); + QFileInfoList folders = this->accountFolders(accountId); + + for (int i=0; i < folders.count(); i++) { + QString filePath = folders[i].absoluteFilePath(); + QString id = accountId.toString()+"&"+accountEmailProtocolAsString(accountId)+"&"+filePath.right(filePath.size()-rootFolder.size()-1); + id = id.remove("/subfolders"); + folderIds.append(QMessageFolderId(id)); + } + + // Each account sees local folders as account folders + for (int i=0; i < localFolders.count(); i++) { + QString filePath = localFolders[i].absoluteFilePath(); + QString id = accountId.toString()+"&"+"maildir"+"&"+filePath.right(filePath.size()-localRootFolder.size()-1); + folderIds.append(QMessageFolderId(id)); + } + } + + MessagingHelper::filterFolders(folderIds, filter); + isFiltered = true; + isSorted = false; + return folderIds; +} + +int ModestEngine::countFolders(const QMessageFolderFilter &filter) const +{ + bool isFiltered, isSorted; + return queryFolders(filter, QMessageFolderSortOrder(), 0, 0, isFiltered, isSorted).count(); +} + +QMessageFolder ModestEngine::folder(const QMessageFolderId &id) const +{ + QString idString = id.toString(); + int endOfAccountId = idString.indexOf('&'); + int endOfProtocolString = idString.lastIndexOf('&'); + QString accountId = idString.left(endOfAccountId); + QString protocolString = idString.mid(endOfAccountId+1, endOfProtocolString-endOfAccountId-1); + QString folder = idString.right(idString.length()-idString.lastIndexOf('&')-1); + QMessageFolderId parentId; + QString name; + if (folder.lastIndexOf('/') == -1) { + // Folder does not have subfolders + name = folder; + if ((protocolString == "pop") && (name == "cache")) { + name = "Inbox"; + } + } else { + // Folder has subfolders + name = folder.right(folder.length()-folder.lastIndexOf('/')-1); + parentId = idString.left(idString.lastIndexOf('/')); + } + return QMessageFolderPrivate::from(id, QMessageAccountId(accountId), parentId, name, folder); +} + +void ModestEngine::watchAllKnownEmailFolders() +{ + QFileInfoList localFolders = this->localFolders(); + + // Changes in local Email folders can be monitored using directory + // monitoring. <=> All messages are stored as individual files. + for (int i=0; i < localFolders.count(); i++) { + m_MailFoldersWatcher.addDirectory(localFolders[i].absoluteFilePath()+"/cur", IN_MOVED_TO | IN_DELETE); + } + + // Monitor changes also in root folder to see if new folders are added + m_MailFoldersWatcher.addDirectory(localRootFolder(), IN_CREATE); + + // Changes in remote Email folders must be monitored using file monitoring. + // That's because message headers are stored into summary.mmap file (and summary.mmap + // file maybe the only place that contains message information). + // => summary.mmap files will be monitored + foreach (QMessageAccount value, iAccounts) { + QMessageAccountId accountId = value.id(); + QString rootFolder = accountRootFolder(accountId); + EmailProtocol protocol = accountEmailProtocol(accountId); + QFileInfoList folders = this->accountFolders(accountId); + + for (int i=0; i < folders.count(); i++) { + if (protocol == ModestEngine::EmailProtocolPop3) { + QString folder = folders[i].absoluteFilePath(); + m_MailFoldersWatcher.addDirectory(folder, IN_CREATE); + } else if (protocol == ModestEngine::EmailProtocolIMAP) { + m_MailFoldersWatcher.addDirectory(folders[i].absoluteFilePath(), IN_MOVED_TO | IN_DELETE); + } + } + + } +} + +void ModestEngine::fileChangedSlot(int watchDescriptor, QString filePath, uint events) +{ + Q_UNUSED(watchDescriptor) + + if (events & IN_CREATE) { + if (QFileInfo(filePath).isDir()) { + // New directory was added + // => Start watching new folder + QString newDirPath = QString(filePath.toUtf8()); + m_MailFoldersWatcher.addDirectory(newDirPath + "/cur"); + } + } + + int filenameBegin = filePath.lastIndexOf('/')+1; + QString fileName = filePath.mid(filenameBegin,filePath.lastIndexOf('.')-filenameBegin); + if (fileName != "summary") { + if (events & (IN_MOVED_TO | IN_CREATE)) { + if (events != (IN_MOVED_TO | IN_MOVED_FROM)) { + notification(messageIdFromModestMessageFilePath(filePath), ModestEngine::Added); + } + } else if (events & IN_DELETE) { + notification(messageIdFromModestMessageFilePath(filePath), ModestEngine::Removed); + } + } +} + bool ModestEngine::sendEmail(QMessage &message) { - return composeEmail(message); + ModestStringMap senderInfo; + ModestStringMap recipients; + ModestStringMap messageData; + ModestStringMapList attachments; + ModestStringMapList images; + uint priority = 0; + ModestStringMap headers; + + senderInfo = getModestSenderInfo(message); + + if (senderInfo.isEmpty()) { + return false; + } + + recipients = getModestRecipients(message); + + if (recipients.isEmpty()) { + return false; + } + + messageData = getModestMessageData(message); + attachments = getModestAttachments(message); + images = getModestImages(message); + priority = getModestPriority(message); + headers = getModestHeaders(message); + + qDebug() << "Sending D-BUS message"; + + QDBusPendingCall call = m_QtmPluginDBusInterface->asyncCall ( + "SendEmail", + QVariant::fromValue (senderInfo), + QVariant::fromValue (recipients), + QVariant::fromValue (messageData), + QVariant::fromValue (attachments), + QVariant::fromValue (images), + priority, + QVariant::fromValue (headers)); + + qDebug() << "Message sent"; + + if (call.isError()) { + qWarning() << "Call failed! " << call.error(); + return false; + } + + QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher (call, this); + + connect (watcher, SIGNAL(finished(QDBusPendingCallWatcher*)), + this, SLOT(sendEmailCallEnded(QDBusPendingCallWatcher*))); + + return true; } bool ModestEngine::composeEmail(const QMessage &message) @@ -232,10 +921,10 @@ if (!list.empty()){ for (int i = 0; i < list.size(); ++i) { if (i == 0) { - mailString += list.at(i).recipient(); + mailString += list.at(i).addressee(); } else { mailString += QString("%2C%20"); - mailString += list.at(i).recipient(); + mailString += list.at(i).addressee(); } } } @@ -274,20 +963,2170 @@ return true; } -bool ModestEngine::queryMessages(QMessageService& messageService, const QMessageFilter &filter, const QMessageSortOrder &sortOrder, uint limit, uint offset) const +bool ModestEngine::showMessage(const QMessageId &id) { + QMessage msg = message(id, false); + QMessagePrivate* privateMessage = QMessagePrivate::implementation(msg); + if (privateMessage->_url.isEmpty()) { + return false; + } else { + m_ModestDBusInterface->call(MODEST_DBUS_METHOD_OPEN_MESSAGE, + privateMessage->_url); + } + return true; +} + +bool ModestEngine::exportUpdates(const QMessageAccountId &id) +{ + Q_UNUSED(id) // Modest does not offer Account specific updates + + m_ModestDBusInterface->call(MODEST_DBUS_METHOD_SEND_RECEIVE); return true; } -bool ModestEngine::queryMessages(QMessageService& messageService, const QMessageFilter &filter, const QString &body, QMessageDataComparator::MatchFlags matchFlags, const QMessageSortOrder &sortOrder, uint limit, uint offset) const +QMessage ModestEngine::message(const QMessageId &id, bool useCache) const +{ + if (useCache) { + QMessage message = m_messageCache.value(id.toString()); + if (message.type() != QMessage::NoType) { + return message; + } + } + + QString modestAccountId = modestAccountIdFromMessageId(id); + QString modestFolderId = modestFolderIdFromMessageId(id); + QString modestMessageId = modestMessageIdFromMessageId(id); + + MessagingModestMessage modestMessage = messageFromModest(modestAccountId, + modestFolderId, + modestMessageId); + + if (modestMessage.flags & MessagingModestMessageDeleted) { + return QMessage(); + } + + if (modestMessage.accountId.isEmpty()) { + return QMessage(); + } + + return messageFromModestMessage(modestMessage, accountIdFromMessageId(id)); +} + +QMessage::StandardFolder ModestEngine::standardFolderFromModestFolderId(const QString& modestFolderId) const +{ + if (!QString::compare(modestFolderId, "INBOX", Qt::CaseInsensitive)) { + return QMessage::InboxFolder; + } else if (!QString::compare(modestFolderId, "drafts", Qt::CaseInsensitive)) { + return QMessage::DraftsFolder; + } else if (!QString::compare(modestFolderId, "sent", Qt::CaseInsensitive)) { + return QMessage::SentFolder; + } + + return QMessage::DraftsFolder; +} + +QString ModestEngine::modestFolderIdFromStandardFolder(QMessage::StandardFolder standardFolder) const +{ + switch (standardFolder) { + case QMessage::InboxFolder: return "INBOX"; + case QMessage::DraftsFolder: return "drafts"; + case QMessage::SentFolder: return "sent"; + case QMessage::OutboxFolder: return "outbox"; + case QMessage::TrashFolder: return "thrash"; + } + return "drafts"; +} + +QMessage ModestEngine::messageFromModestMessage(const MessagingModestMessage& modestMessage, + QMessageAccountId accountId) const { + QMessage message; + QMessagePrivate* privateMessage = QMessagePrivate::implementation(message); + QMessageContentContainerPrivate* container = QMessagePrivate::containerImplementation(message); + + // Type + message.setType(QMessage::Email); + + // Parent Account Id + QMessageAccountId parentAccountId; + if (accountId.isValid()) { + parentAccountId = accountId; + } else { + parentAccountId = realAccountId(modestMessage); + } + message.setParentAccountId(parentAccountId); + + // Parent Folder Id + QMessageFolderId folderId; + if (modestMessage.accountId == "local_folders") { + folderId = folderIdFromModestFolderId(parentAccountId, true, modestMessage.folderId); + } else { + // Since Message is not in local folder, message status can be set to Incoming + privateMessage->_status = privateMessage->_status | QMessage::Incoming; + folderId = folderIdFromModestFolderId(parentAccountId, false, modestMessage.folderId); + } + privateMessage->_parentFolderId = folderId; + + // Message Id + QMessageId messageId = QMessageId(folderId.toString()+"/"+modestMessage.id); + privateMessage->_id = messageId; + + // Dates + message.setDate(QDateTime::fromTime_t(modestMessage.dateSent)); + message.setReceivedDate(QDateTime::fromTime_t(modestMessage.dateReceived)); + + // Priority + switch (modestMessage.priority) { + case QtMobility::MessagingModestMessageHighPriority: + message.setPriority(QMessage::HighPriority); + break; + case QtMobility::MessagingModestMessageNormalPriority: + message.setPriority(QMessage::NormalPriority); + break; + case QtMobility::MessagingModestMessageLowPriority: + message.setPriority(QMessage::LowPriority); + break; + case QtMobility::MessagingModestMessageSuspendedPriority: + message.setPriority(QMessage::NormalPriority); + break; + } + + // Standard Folder + QMessagePrivate::setStandardFolder(message, + standardFolderFromModestFolderId(modestMessage.folderId)); + + // Body & Attachments handling + for (int i=0; i < modestMessage.mimeParts.count(); i++) { + if (!modestMessage.mimeParts[i].isAttachment) { + // Body + QByteArray fullMimeType = modestMessage.mimeParts[i].mimeType.toUtf8(); + QString contentId = modestMessage.mimeParts[i].contentId; + QByteArray fileName = modestMessage.mimeParts[i].fileName.toAscii(); + + QByteArray mainType("text"); + QByteArray subType("plain"); + QByteArray charset; + + int index = fullMimeType.indexOf("/"); + if (index != -1) { + mainType = fullMimeType.left(index).trimmed(); + + subType = fullMimeType.mid(index + 1).trimmed(); + index = subType.indexOf(";"); + if (index != -1) { + QString remainder = subType.mid(index + 1); + subType = subType.left(index).trimmed(); + + QRegExp charsetPattern("charset=(\\S+)"); + index = charsetPattern.indexIn(remainder); + if (index != -1) { + charset = charsetPattern.cap(1).toLatin1(); + } + } + } + + if (charset.isEmpty()) { + charset = "UTF-8"; + } + + QMessageContentContainerId existingBodyId(message.bodyId()); + if (existingBodyId.isValid()) { + if (existingBodyId == container->bodyContentId()) { + // The body content is in the message itself + container->_containingMessageId = messageId.toString(); + container->_attachmentId = contentId; + container->_name = fileName; + container->_type = mainType; + container->_subType = subType; + container->_charset = charset; + container->_size = 0; + container->_available = true; + } else { + // The body content is in the first attachment + QMessageContentContainerPrivate *attachmentContainer(QMessageContentContainerPrivate::implementation(*container->attachment(existingBodyId))); + attachmentContainer->_containingMessageId = messageId.toString(); + attachmentContainer->_attachmentId = contentId; + attachmentContainer->_name = fileName; + attachmentContainer->_type = mainType; + attachmentContainer->_subType = subType; + attachmentContainer->_charset = charset; + attachmentContainer->_size = 0; + attachmentContainer->_available = true; + } + } else { + if (container->_attachments.isEmpty()) { + // Put the content directly into the message + container->_containingMessageId = messageId.toString(); + container->_attachmentId = contentId; + container->_name = fileName; + container->_type = mainType; + container->_subType = subType; + container->_charset = charset; + container->_size = 0; + container->_available = true; + privateMessage->_bodyId = container->bodyContentId(); + } else { + // Add the body as the first attachment + QMessageContentContainer newBody; + QMessageContentContainerPrivate *attachmentContainer = QMessageContentContainerPrivate::implementation(newBody); + attachmentContainer->_containingMessageId = messageId.toString(); + attachmentContainer->_attachmentId = contentId; + attachmentContainer->_name = fileName; + attachmentContainer->_type = mainType; + attachmentContainer->_subType = subType; + attachmentContainer->_charset = charset; + attachmentContainer->_size = 0; + attachmentContainer->_available = true; + privateMessage->_bodyId = container->prependContent(newBody); + } + } + } else { + // Attachment + QString fullMimeType = modestMessage.mimeParts[i].mimeType; + QString contentId = modestMessage.mimeParts[i].contentId; + int slashIndex = fullMimeType.indexOf('/'); + QByteArray mimeType = fullMimeType.left(slashIndex).toAscii(); + QByteArray mimeSubType = fullMimeType.mid(slashIndex+1).toAscii(); + // TODO: Attachment size + QByteArray fileName = modestMessage.mimeParts[i].fileName.toAscii(); + fileName = fileName.mid(fileName.lastIndexOf('/')+1); + QString msgId = messageId.toString(); + QMessageContentContainer attachment = + QMessageContentContainerPrivate::from(msgId, + contentId, + fileName, + mimeType, + mimeSubType, + 0); + appendAttachmentToMessage(message, attachment); + } + } + + // From + if (modestMessage.from.size() > 0) { + message.setFrom(QMessageAddress(QMessageAddress::Email, modestMessage.from)); + QMessagePrivate::setSenderName(message, modestMessage.from); + } + + // To + if (modestMessage.to.size() > 0) { + QMessageAddressList toAddresses; + foreach (const QString &element, modestMessage.to.split(",", QString::SkipEmptyParts)) { + QMessageAddress addr; + addr.setType(QMessageAddress::Email); + addr.setAddressee(element.trimmed()); + toAddresses.append(addr); + } + message.setTo(toAddresses); + } + + // Cc + if (modestMessage.cc.size() > 0) { + QMessageAddressList ccAddresses; + foreach (const QString &element, modestMessage.cc.split(",", QString::SkipEmptyParts)) { + QMessageAddress addr; + addr.setType(QMessageAddress::Email); + addr.setAddressee(element.trimmed()); + ccAddresses.append(addr); + } + message.setCc(ccAddresses); + } + + // Bcc + if (modestMessage.bcc.size() > 0) { + QMessageAddressList bccAddresses; + foreach (const QString &element, modestMessage.bcc.split(",", QString::SkipEmptyParts)) { + QMessageAddress addr; + addr.setType(QMessageAddress::Email); + addr.setAddressee(element.trimmed()); + bccAddresses.append(addr); + } + message.setBcc(bccAddresses); + } + + // Subject + message.setSubject(modestMessage.subject); + + // Size + privateMessage->_size = modestMessage.size; + + // Read Status + if (modestMessage.flags & MessagingModestMessageSeen) { + privateMessage->_status = privateMessage->_status | QMessage::Read; + } + + // Message MIME type + QString fullMimeType = modestMessage.mimeType; + int slashIndex = fullMimeType.indexOf('/'); + QByteArray mimeType = fullMimeType.left(slashIndex).toAscii(); + QByteArray mimeSubType = fullMimeType.mid(slashIndex+1).toAscii(); + container->_type = mimeType.data(); + container->_subType = mimeSubType.data(); + + // Modest specific url + privateMessage->_url = modestMessage.url; + + // Modified flag + privateMessage->_modified = false; + + return message; +} + +void ModestEngine::appendAttachmentToMessage(QMessage& message, QMessageContentContainer& attachment) const +{ + QMessagePrivate* privateMessage = QMessagePrivate::implementation(message); + QMessageContentContainerPrivate* container = QMessagePrivate::containerImplementation(message); + + if (container->_attachments.isEmpty()) { + QMessageContentContainerId existingBodyId(message.bodyId()); + if (existingBodyId == QMessageContentContainerPrivate::bodyContentId()) { + // The body content is in the message itself - move it to become the first attachment + QMessageContentContainer newBody(message); + QMessageContentContainerPrivate::implementation(newBody)->setDerivedMessage(0); + + container->setContentType("multipart", "mixed", ""); + privateMessage->_bodyId = container->prependContent(newBody); + } else { + // This message is now multipart + container->setContentType("multipart", "mixed", ""); + } + + container->_available = true; + } + + container->appendContent(attachment); + + bool haveAttachments = !container->_attachments.isEmpty(); + message.setStatus(QMessage::HasAttachments,haveAttachments); + + privateMessage->_modified = true; +} + +bool ModestEngine::addMessage(QMessage &message) +{ + QString modestFolder; + ModestStringMap senderInfo; + ModestStringMap recipients; + ModestStringMap messageData; + ModestStringMapList attachments; + ModestStringMapList images; + uint priority = 0; + ModestStringMap headers; + + qDebug() << __PRETTY_FUNCTION__; + + senderInfo = getModestSenderInfo (message); + recipients = getModestRecipients (message); + messageData = getModestMessageData (message); + attachments = getModestAttachments (message); + images = getModestImages (message); + priority = getModestPriority (message); + headers = getModestHeaders (message); + + QString accountName; + if (message.parentFolderId().isValid()) { + modestFolder = modestFolderIdFromFolderId (message.parentFolderId()); + accountName = modestAccountIdFromFolderId(message.parentFolderId()); + } else { + modestFolder = modestFolderIdFromStandardFolder(message.standardFolder()); + if (message.standardFolder() == QMessage::DraftsFolder) { + accountName = "local_folders"; + } else { + accountName = modestAccountIdFromAccountId(message.parentAccountId()); + } + } + senderInfo["account-name"] = accountName; + + QDBusPendingCall pendingCall = m_QtmPluginDBusInterface->asyncCall ( + "AddMessage", + QVariant::fromValue (modestFolder), + QVariant::fromValue (senderInfo), + QVariant::fromValue (recipients), + QVariant::fromValue (messageData), + QVariant::fromValue (attachments), + QVariant::fromValue (images), + priority, + QVariant::fromValue (headers)); + + if (pendingCall.isError()) { + qWarning() << "DBus call failed! " << pendingCall.error(); + return false; + } + + QDBusPendingCallWatcher pendingCallWatcher(pendingCall); + pendingCallWatcher.waitForFinished(); + QDBusMessage msg = pendingCallWatcher.reply(); + if (msg.type() == QDBusMessage::ErrorMessage) { + qWarning() << "Failed to add message via modest: " << msg.errorMessage(); + return false; + } + + QMessagePrivate* privateMessage = QMessagePrivate::implementation(message); + QString messageId; + if (message.parentFolderId().isValid()) { + messageId = message.parentFolderId().toString()+"/"+msg.arguments()[0].toString(); + } else if (accountName == "local_folders") { + messageId = message.parentAccountId().toString()+ + "&maildir&"+modestFolder+"/"+msg.arguments()[0].toString(); + } else { + messageId = message.parentAccountId().toString()+"&"+ + accountEmailProtocolAsString(message.parentAccountId())+ + "&"+modestFolder+"/"+msg.arguments()[0].toString(); + } + privateMessage->_id = QMessageId(messageId); + return true; } +bool ModestEngine::updateMessage(QMessage &message) +{ + Q_UNUSED(message) // TODO: + + return false; +} + +bool ModestEngine::removeMessage(const QMessageId &id, QMessageManager::RemovalOption option) +{ + Q_UNUSED(option) // TODO: + + QMessage msg = message(id, false); + QMessagePrivate* privateMessage = QMessagePrivate::implementation(msg); + if (privateMessage->_url.isEmpty()) { + return false; + } else { + m_ModestDBusInterface->call(MODEST_DBUS_METHOD_DELETE_MESSAGE, + privateMessage->_url); + // Make sure that there will instant notification about removed message + notification(id, ModestEngine::Removed); + } + return true; +} + +bool ModestEngine::filterMessage(const QMessage& message, QMessageFilterPrivate::SortedMessageFilterList filterList, int start) const +{ + if (filterList.count() > start) { + for (int j=start; j < filterList.count(); j++) { + QMessageFilterPrivate* pf = QMessageFilterPrivate::implementation(filterList[j]); + if (!pf->filter(message)) { + return false; + } + } + } + return true; +} + +QMessageIdList ModestEngine::queryMessagesSync(const QMessageFilter &filter, const QMessageSortOrder &sortOrder, + uint limit, uint offset, bool &isFiltered, bool &isSorted) const +{ + QMessageIdList ids; + + QMessageServicePrivate* privateService = QMessageServicePrivate::implementation(m_service); + if (privateService->queryMessages(m_service, filter, sortOrder, limit, offset, + QMessageServicePrivate::EnginesToCallModest)) { + QObject::connect(&m_service, SIGNAL(stateChanged(QMessageService::State)), + this, SLOT(stateChanged(QMessageService::State))); + + m_eventLoop.exec(); + + isSorted = m_isSorted; + isFiltered = m_isFiltered; + ids = m_ids; + m_ids.clear(); + } + + return ids; +} + +QMessageIdList ModestEngine::queryMessagesSync(const QMessageFilter &filter, const QString &body, + QMessageDataComparator::MatchFlags matchFlags, + const QMessageSortOrder &sortOrder, uint limit, uint offset, + bool &isFiltered, bool &isSorted) const +{ + QMessageIdList ids; + + QMessageServicePrivate* privateService = QMessageServicePrivate::implementation(m_service); + if (privateService->queryMessages(m_service, filter, body, matchFlags, + sortOrder, limit, offset, + QMessageServicePrivate::EnginesToCallModest)) { + QObject::connect(&m_service, SIGNAL(stateChanged(QMessageService::State)), + this, SLOT(stateChanged(QMessageService::State))); + + m_eventLoop.exec(); + + isSorted = m_isSorted; + isFiltered = m_isFiltered; + ids = m_ids; + m_ids.clear(); + } + + return ids; +} + +int ModestEngine::countMessagesSync(const QMessageFilter &filter) const +{ + int count; + + QMessageServicePrivate* privateService = QMessageServicePrivate::implementation(m_service); + if (privateService->countMessages(m_service, filter, QMessageServicePrivate::EnginesToCallModest)) { + QObject::connect(&m_service, SIGNAL(stateChanged(QMessageService::State)), + this, SLOT(stateChanged(QMessageService::State))); + + m_eventLoop.exec(); + + count = m_count; + } + + return count; +} + +void ModestEngine::stateChanged(QMessageService::State newState) +{ + if (newState == QMessageService::FinishedState) { + QMessageServicePrivate* privateService = QMessageServicePrivate::implementation(m_service); + + m_ids = privateService->_ids; + m_isSorted = privateService->_sorted; + m_isFiltered = privateService->_filtered; + m_count = privateService->_count; + + m_eventLoop.quit(); + } +} + +bool ModestEngine::queryMessages(QMessageService& messageService, const QMessageFilter &filter, const QMessageSortOrder &sortOrder, uint limit, uint offset) const +{ + return queryMessages(messageService, filter, QString(), 0, sortOrder, limit, offset); +} + bool ModestEngine::countMessages(QMessageService& messageService, const QMessageFilter &filter) { + m_pendingMessageQueries.append(MessageQueryInfo()); + + MessageQueryInfo &queryInfo = m_pendingMessageQueries[m_pendingMessageQueries.count()-1]; + + queryInfo.filter = filter; + queryInfo.limit = 0; + queryInfo.offset = 0; + queryInfo.privateService = QMessageServicePrivate::implementation(messageService); + queryInfo.currentFilterListIndex = 0; + queryInfo.handledFiltersCount = 0; + queryInfo.isQuery = false; + queryInfo.returnWithSingleShot = false; + + if (!startQueryingAndFilteringMessages(m_pendingMessageQueries[m_pendingMessageQueries.count()-1])) { + QMessageServicePrivate::implementation(messageService)->setFinished(false); + m_pendingMessageQueries.removeAt(m_pendingMessageQueries.count()-1); + return false; + } + + return true; +} + +bool ModestEngine::queryMessages(QMessageService& messageService, const QMessageFilter &filter, const QString &body, + QMessageDataComparator::MatchFlags matchFlags, const QMessageSortOrder &sortOrder, + uint limit, uint offset) const +{ + m_pendingMessageQueries.append(MessageQueryInfo()); + + MessageQueryInfo &queryInfo = m_pendingMessageQueries[m_pendingMessageQueries.count()-1]; + + queryInfo.body = body; + queryInfo.matchFlags = matchFlags; + queryInfo.filter = filter; + queryInfo.sortOrder = sortOrder; + queryInfo.limit = limit; + queryInfo.offset = offset; + queryInfo.privateService = QMessageServicePrivate::implementation(messageService); + queryInfo.currentFilterListIndex = 0; + queryInfo.handledFiltersCount = 0; + queryInfo.isQuery = true; + queryInfo.returnWithSingleShot = false; + + if (!startQueryingAndFilteringMessages(m_pendingMessageQueries[m_pendingMessageQueries.count()-1])) { + QMessageServicePrivate::implementation(messageService)->setFinished(false); + m_pendingMessageQueries.removeAt(m_pendingMessageQueries.count()-1); + return false; + } + + return true; +} + +bool ModestEngine::startQueryingAndFilteringMessages(MessageQueryInfo &msgQueryInfo) const +{ + QMessageFilterPrivate* pf = QMessageFilterPrivate::implementation(msgQueryInfo.filter); + if (pf->_filterList.count() == 0) { + if ((pf->_field == QMessageFilterPrivate::None) && + (pf->_filterList.count() == 0) && + (pf->_notFilter)) { + // There is only one filter: empty ~QMessageFilter() + // => return empty QMessageIdList + msgQueryInfo.ids.clear(); + msgQueryInfo.returnWithSingleShot = true; + QTimer::singleShot(0, (ModestEngine*)this, SLOT(returnQueryResultsSlot())); + return true; + } else { + // One single filter to be handled + QMessageFilter newFilter; + QMessageFilterPrivate* pfNew = QMessageFilterPrivate::implementation(newFilter); + pfNew->_filterList.append(QMessageFilterPrivate::SortedMessageFilterList()); + pfNew->_filterList[0] << msgQueryInfo.filter; + msgQueryInfo.filter = newFilter; + } + } + + return queryAndFilterMessages(msgQueryInfo); +} + +void ModestEngine::returnQueryResultsSlot() +{ + for (int i=m_pendingMessageQueries.count()-1; i >= 0; i--) { + if (m_pendingMessageQueries[i].returnWithSingleShot) { + if (m_pendingMessageQueries[i].isQuery) { + m_pendingMessageQueries[i].privateService->messagesFound(m_pendingMessageQueries[i].ids, true, true); + } else { + m_pendingMessageQueries[i].privateService->messagesCounted(m_pendingMessageQueries[i].ids.count()); + } + m_pendingMessageQueries.removeAt(i); + } + } +} + +bool ModestEngine::queryAndFilterMessages(MessageQueryInfo &msgQueryInfo) const +{ + QStringList accountIds; + QStringList folderUris; + QDateTime startTimeStamp; + QDateTime endTimeStamp; + QDateTime startReceptionTimeStamp; + QDateTime endReceptionTimeStamp; + + QMessageFilterPrivate* pf = QMessageFilterPrivate::implementation(msgQueryInfo.filter); + + // Filters have been sorted into matrix of filters: + // - there is AND operation between every filter in one row + // - there is OR operation between every row + // => Every row can be handled individually + // => Final result set can be created by combining result sets + // from individual row based queries + QMessageFilterPrivate::SortedMessageFilterList filters = pf->_filterList[msgQueryInfo.currentFilterListIndex]; + + msgQueryInfo.realAccountId = QString(); + + int handledFiltersCount = 0; + pf = QMessageFilterPrivate::implementation(filters[handledFiltersCount]); + if ((filters.count() == 1) && + (pf->_field == QMessageFilterPrivate::None) && + (pf->_filterList.count() == 0)) { + if (pf->_notFilter) { + // There is only one filter: empty ~QMessageFilter() + // => this query results empty QMessageIdList + // => Skip to next query round + int index = -1; + for (int i=0; i < m_pendingMessageQueries.count(); i++) { + if (m_pendingMessageQueries[i].queryId == msgQueryInfo.queryId) { + index = i; + break; + } + } + if (index >= 0) { + handleQueryFinished(index); + } + return true; + } else { + // There is only one filter: empty QMessageFilter() + // => return all messages + handledFiltersCount++; + } + } + + bool handled = true; + while (handledFiltersCount < filters.count() && handled) { + handled = false; + pf = QMessageFilterPrivate::implementation(filters[handledFiltersCount]); + switch (pf->_field) { + case QMessageFilterPrivate::Id: + break; + case QMessageFilterPrivate::ParentAccountId: + { + if (pf->_comparatorType == QMessageFilterPrivate::Equality) { + if (accountIds.count()) { + // Only one account/one query can be used + break; + } + QMessageDataComparator::EqualityComparator cmp(static_cast(pf->_comparatorValue)); + if (cmp == QMessageDataComparator::Equal) { + if (pf->_value.toString().length() > 0) { + accountIds.append(modestAccountIdFromAccountId(pf->_value.toString())); + msgQueryInfo.realAccountId = pf->_value.toString(); + handled = true; + } + } + } + break; + } + case QMessageFilterPrivate::ParentFolderId: + { + if (pf->_comparatorType == QMessageFilterPrivate::Equality) { + QMessageDataComparator::EqualityComparator cmp(static_cast(pf->_comparatorValue)); + if (cmp == QMessageDataComparator::Equal) { + if (pf->_value.toString().length() > 0) { + folderUris.append(modestFolderIdFromFolderId(pf->_value.toString())); + if (accountIds.count() == 0) { + accountIds.append(modestAccountIdFromFolderId(pf->_value.toString())); + + // Note: Even though local folders belong to "local_folders" account + // inside Modest, local folders can belong to any "real" + // POP3 or IMAP account in Qt Mobility Messaging side + // <=> Qt Mobility Messaging does not have "Local Folders" + // account + // If folder is local folder, "local_folders" accountId will be + // added to accountIds list to enable correct filtering inside + // Modest Plugin + accountIds.append("local_folders"); + + // realAccountId will contain id of Qt Mobility Messaging account + // (AccountId can be found from the beginning of folderId string) + // <=> realAccountId will not ever be "local_folders" + msgQueryInfo.realAccountId = accountIdFromFolderId(pf->_value.toString()).toString(); + } + handled = true; + } + } + } + break; + } + case QMessageFilterPrivate::AncestorFolderIds: + break; + case QMessageFilterPrivate::Type: + break; + case QMessageFilterPrivate::StandardFolder: + if (pf->_comparatorType == QMessageFilterPrivate::Equality) { + QMessageDataComparator::EqualityComparator cmp(static_cast(pf->_comparatorValue)); + if (cmp == QMessageDataComparator::Equal) { + QMessage::StandardFolder standardFolder = static_cast(pf->_value.toInt()); + if (standardFolder == QMessage::SentFolder) { + folderUris.append("sent"); + if (accountIds.count() == 0) { + accountIds.append("local_folders"); + } + } + handled = true; + } + } + break; + case QMessageFilterPrivate::ParentAccountIdFilter: + break; + case QMessageFilterPrivate::ParentFolderIdFilter: + break; + case QMessageFilterPrivate::TimeStamp: + { + if (pf->_comparatorType == QMessageFilterPrivate::Equality) { + QMessageDataComparator::EqualityComparator cmp(static_cast(pf->_comparatorValue)); + if (cmp == QMessageDataComparator::Equal) { + endTimeStamp = pf->_value.toDateTime(); + startTimeStamp = pf->_value.toDateTime(); + handled = true; + } + } + if (pf->_comparatorType == QMessageFilterPrivate::Relation) { + QMessageDataComparator::RelationComparator cmp(static_cast(pf->_comparatorValue)); + if (cmp == QMessageDataComparator::LessThan) { + endTimeStamp = pf->_value.toDateTime(); + handled = true; + } else if (cmp == QMessageDataComparator::LessThanEqual) { + endTimeStamp = pf->_value.toDateTime(); + handled = true; + } else if (cmp == QMessageDataComparator::GreaterThan) { + startTimeStamp = pf->_value.toDateTime(); + handled = true; + } if (cmp == QMessageDataComparator::GreaterThanEqual) { + startTimeStamp = pf->_value.toDateTime(); + handled = true; + } + } + break; + } + case QMessageFilterPrivate::ReceptionTimeStamp: + { + if (pf->_comparatorType == QMessageFilterPrivate::Equality) { + QMessageDataComparator::EqualityComparator cmp(static_cast(pf->_comparatorValue)); + if (cmp == QMessageDataComparator::Equal) { + endReceptionTimeStamp = pf->_value.toDateTime(); + startReceptionTimeStamp = pf->_value.toDateTime(); + handled = true; + } + } + if (pf->_comparatorType == QMessageFilterPrivate::Relation) { + QMessageDataComparator::RelationComparator cmp(static_cast(pf->_comparatorValue)); + if (cmp == QMessageDataComparator::LessThan) { + endReceptionTimeStamp = pf->_value.toDateTime(); + handled = true; + } else if (cmp == QMessageDataComparator::LessThanEqual) { + endReceptionTimeStamp = pf->_value.toDateTime(); + handled = true; + } else if (cmp == QMessageDataComparator::GreaterThan) { + startReceptionTimeStamp = pf->_value.toDateTime(); + handled = true; + } if (cmp == QMessageDataComparator::GreaterThanEqual) { + startReceptionTimeStamp = pf->_value.toDateTime(); + handled = true; + } + } + break; + } + case QMessageFilterPrivate::Sender: + break; + case QMessageFilterPrivate::Recipients: + break; + case QMessageFilterPrivate::Subject: + break; + case QMessageFilterPrivate::Status: + break; + case QMessageFilterPrivate::Priority: + break; + case QMessageFilterPrivate::Size: + break; + case QMessageFilterPrivate::None: + break; + } + handledFiltersCount++; + } + + msgQueryInfo.handledFiltersCount = 0; // Do filtering also for filters which has been handled above + + return searchMessages(msgQueryInfo, accountIds, folderUris, msgQueryInfo.body, startTimeStamp, + endTimeStamp, startReceptionTimeStamp, endReceptionTimeStamp); +} + +bool ModestEngine::searchMessages(MessageQueryInfo &msgQueryInfo, const QStringList& accountIds, + const QStringList& folderUris, const QString& body, + const QDateTime& startTimeStamp, const QDateTime& endTimeStamp, + const QDateTime& startReceptionTimeStamp, const QDateTime& endReceptionTimeStamp) const +{ + Q_UNUSED(body) //TODO: Body search + + qulonglong sDate = 0; + if (startTimeStamp.isValid() && startReceptionTimeStamp.isValid()) { + if (startTimeStamp < startReceptionTimeStamp) { + sDate = startTimeStamp.toTime_t(); + } else { + sDate = startReceptionTimeStamp.toTime_t(); + } + } else { + if (startTimeStamp.isValid()) { + sDate = startTimeStamp.toTime_t(); + } else if (startReceptionTimeStamp.isValid()) { + sDate = startReceptionTimeStamp.toTime_t(); + } + } + + + qulonglong eDate = 0; + if (endTimeStamp.isValid() && endReceptionTimeStamp.isValid()) { + if (endTimeStamp > endReceptionTimeStamp) { + eDate = endTimeStamp.toTime_t(); + } else { + eDate = endReceptionTimeStamp.toTime_t(); + } + } else { + if (endTimeStamp.isValid()) { + eDate = endTimeStamp.toTime_t(); + } else if (endReceptionTimeStamp.isValid()) { + eDate = endReceptionTimeStamp.toTime_t(); + } + } + + if (m_pendingMessageQueries.count() == 1) { + // This is the first query in pending queries queue + // => connect to signals + m_QtmPluginDBusInterface->connection().connect(MODESTENGINE_QTM_PLUGIN_NAME, + MODESTENGINE_QTM_PLUGIN_PATH, + MODESTENGINE_QTM_PLUGIN_NAME, + "HeadersReceived", + (ModestEngine*)this, + SLOT(searchMessagesHeadersReceivedSlot(QDBusMessage))); + + m_QtmPluginDBusInterface->connection().connect(MODESTENGINE_QTM_PLUGIN_NAME, + MODESTENGINE_QTM_PLUGIN_PATH, + MODESTENGINE_QTM_PLUGIN_NAME, + "HeadersFetched", + (ModestEngine*)this, + SLOT(searchMessagesHeadersFetchedSlot(QDBusMessage))); + } + + QDBusMessage reply = m_QtmPluginDBusInterface->call("GetHeaders", + accountIds, + folderUris, + sDate, + eDate, + false); + if (reply.type() != QDBusMessage::ErrorMessage) { + m_messageCache.clear(); + msgQueryInfo.queryId = reply.arguments().takeFirst().toInt(); + } else { + // Request failed + int index = -1; + for (int i=0; i < m_pendingMessageQueries.count(); i++) { + if (m_pendingMessageQueries[i].queryId == msgQueryInfo.queryId) { + index = i; + break; + } + } + if (index > -1) { + m_pendingMessageQueries.removeAt(index); + } + msgQueryInfo.privateService->setFinished(false); + + if (m_pendingMessageQueries.count() == 0) { + // This was last query in pending queries queue + // => Disconnect from "GetHeaders" request related DBus signals + // Note: Disconnecting signals is done to optimize signal handling + // <=> Disconnecting prevents unnecessary handling of signals + // which have been sent from other applications using + // Qt Mobility Messaging API + m_QtmPluginDBusInterface->connection().disconnect(MODESTENGINE_QTM_PLUGIN_NAME, + MODESTENGINE_QTM_PLUGIN_PATH, + MODESTENGINE_QTM_PLUGIN_NAME, + "HeadersReceived", + (ModestEngine*)this, + SLOT(searchMessagesHeadersReceivedSlot(QDBusMessage))); + + m_QtmPluginDBusInterface->connection().disconnect(MODESTENGINE_QTM_PLUGIN_NAME, + MODESTENGINE_QTM_PLUGIN_PATH, + MODESTENGINE_QTM_PLUGIN_NAME, + "HeadersFetched", + (ModestEngine*)this, + SLOT(searchMessagesHeadersFetchedSlot(QDBusMessage))); + } + return false; + } + return true; } +void ModestEngine::searchMessagesHeadersReceivedSlot(QDBusMessage msg) +{ + QList arguments = msg.arguments(); + int queryId = arguments.takeFirst().toInt(); + + int index = -1; + for (int i=0; i < m_pendingMessageQueries.count(); i++) { + if (m_pendingMessageQueries[i].queryId == queryId) { + index = i; + break; + } + } + if (index == -1) { + // Received DBus Message is not reply for the DBus query + // that was sent from this process/instance of modest engine + // => Continue waiting + return; + } + + MessageQueryInfo &queryInfo = m_pendingMessageQueries[index]; + + QString reportedAccountId = arguments.takeFirst().toString(); + QString accountId; + if (!queryInfo.realAccountId.isEmpty()) { + // Search was done to Modest "local_folders" account + // => Correct Qt Mobility Messaging AccountId + // can be taken realAccountId field + // => Transform Messaging AccountId to Modest accountId + // by removing "MO_" from the beginning of accountId string + accountId = queryInfo.realAccountId; + accountId.remove(0,3); + } else { + accountId = reportedAccountId.remove("_store"); + } + + QString folderId = arguments.takeFirst().toString(); + QVariant variant = arguments.takeFirst(); + QDBusArgument argument = variant.value(); + QList > messages; + argument >> messages; + + QMessageFilterPrivate::SortedMessageFilterList filters; + int firstUnhandledFilterIndex = 0; + + QMessageFilterPrivate* pf = QMessageFilterPrivate::implementation(queryInfo.filter); + if (pf->_filterList.count() == 0) { + filters.append(queryInfo.filter); + } else { + if (queryInfo.handledFiltersCount < pf->_filterList[queryInfo.currentFilterListIndex].count()) { + filters = pf->_filterList[queryInfo.currentFilterListIndex]; + } + } + firstUnhandledFilterIndex = queryInfo.handledFiltersCount; + + for (int i=0; i < messages.count(); i++) { + MessagingModestMessage modestMessage; + modestMessage.accountId = accountId; + modestMessage.folderId = folderId; + modestMessage.dateReceived = 0; + modestMessage.dateSent = 0; + modestMessage.size = 0; + modestMessage.flags = MessagingModestMessageNotDefined; + modestMessage.priority = MessagingModestMessagePriorityDefined; + QMapIterator j(messages[i]); + while (j.hasNext()) { + j.next(); + if (j.key() == "url") { + modestMessage.url = j.value().toString(); + } else if (j.key() == "message-uid") { + modestMessage.id = j.value().toString(); + } else if (j.key() == "from") { + modestMessage.from = j.value().toString(); + } else if (j.key() == "to") { + modestMessage.to = j.value().toString(); + } else if (j.key() == "cc") { + modestMessage.cc = j.value().toString(); + } else if (j.key() == "bcc") { + modestMessage.bcc = j.value().toString(); + } else if (j.key() == "replyto") { + modestMessage.replyTo = j.value().toString(); + } else if (j.key() == "subject") { + modestMessage.subject = j.value().toString(); + } else if (j.key() == "date-received") { + modestMessage.dateReceived = j.value().toLongLong(); + } else if (j.key() == "date-sent") { + modestMessage.dateSent = j.value().toLongLong(); + } else if (j.key() == "size") { + modestMessage.size = j.value().toLongLong(); + } else if (j.key() == "flags") { + modestMessage.flags = static_cast(j.value().toUInt()); + } else if (j.key() == "priority") { + modestMessage.priority = static_cast(j.value().toUInt()); + } + } + + QMessage message = messageFromModestMessage(modestMessage); + if (reportedAccountId == "local_folders") { + QMessagePrivate* privateMessage = QMessagePrivate::implementation(message); + QString id = privateMessage->_id.toString(); + QString newProtocol = "maildir"; + replaceProtocol(id, newProtocol); + privateMessage->_id = QMessageId(id); + id = privateMessage->_parentFolderId.toString(); + replaceProtocol(id, newProtocol); + privateMessage->_parentFolderId = QMessageFolderId(id); + } + if (filterMessage(message, filters, 0)) { + if (!queryInfo.ids.contains(message.id())) { + if (m_messageCache.size() < maxCacheSize) { + m_messageCache.insert(message.id().toString(), message); + } + queryInfo.ids.append(message.id()); + } + } + } +} + +void ModestEngine::searchMessagesHeadersFetchedSlot(QDBusMessage msg) +{ + QList arguments = msg.arguments(); + int queryId = arguments.takeFirst().toInt(); + + int index = -1; + for (int i=0; i < m_pendingMessageQueries.count(); i++) { + if (m_pendingMessageQueries[i].queryId == queryId) { + index = i; + break; + } + } + if (index == -1) { + // Received DBus Message is not reply for the DBus query + // that was sent from this process/instance of modest engine + // => Continue waiting + return; + } + + handleQueryFinished(index); +} + +void ModestEngine::handleQueryFinished(int index) const +{ + MessageQueryInfo &queryInfo = m_pendingMessageQueries[index]; + + queryInfo.currentFilterListIndex++; + QMessageFilterPrivate* pf = QMessageFilterPrivate::implementation(queryInfo.filter); + if (queryInfo.currentFilterListIndex < pf->_filterList.count()) { + if (queryAndFilterMessages(queryInfo)) { + // Continue searching + return; + } + } + + MessagingHelper::orderMessages(queryInfo.ids, queryInfo.sortOrder); + MessagingHelper::applyOffsetAndLimitToMessageIdList(queryInfo.ids, queryInfo.limit, queryInfo.offset); + + // Search finished + if (queryInfo.isQuery) { + queryInfo.privateService->messagesFound(queryInfo.ids, true, true); + } else { + queryInfo.privateService->messagesCounted(queryInfo.ids.count()); + } + m_pendingMessageQueries.removeAt(index); + + if (m_pendingMessageQueries.count() == 0) { + // This was last query in pending queries queue + // => Disconnect from "GetHeaders" request related DBus signals + // Note: Disconnecting signals is done to optimize signal handling + // <=> Disconnecting prevents unnecessary handling of signals + // which have been sent from other applications using + // Qt Mobility Messaging API + m_QtmPluginDBusInterface->connection().disconnect(MODESTENGINE_QTM_PLUGIN_NAME, + MODESTENGINE_QTM_PLUGIN_PATH, + MODESTENGINE_QTM_PLUGIN_NAME, + "HeadersReceived", + (ModestEngine*)this, + SLOT(searchMessagesHeadersReceivedSlot(QDBusMessage))); + + m_QtmPluginDBusInterface->connection().disconnect(MODESTENGINE_QTM_PLUGIN_NAME, + MODESTENGINE_QTM_PLUGIN_PATH, + MODESTENGINE_QTM_PLUGIN_NAME, + "HeadersFetched", + (ModestEngine*)this, + SLOT(searchMessagesHeadersFetchedSlot(QDBusMessage))); + } +} + +void +ModestEngine::sendEmailCallEnded(QDBusPendingCallWatcher *watcher) +{ + if (watcher->isError ()) { + // TODO: Emit a failure + qWarning() << "Failed to send email via modest: " << watcher->error(); + } else { + // TODO: Emit a success (or put to outbox) + qDebug() << "Message should be outboxed now..."; + } +} + +void +ModestEngine::addMessageCallEnded(QDBusPendingCallWatcher *watcher) +{ + QDBusPendingReply reply = *watcher; + if (reply.isError ()) { + // TODO: Emit a failure + qWarning() << "Failed to add message via modest: " << reply.error(); + } else { + QString id = reply.argumentAt<0>(); + // TODO: Emit a success ... with message's id? + qDebug() << "Message with id" << id << "should be added now"; + } +} + +void ModestEngine::folderUpdatedSlot(QDBusMessage msg) +{ + QList arguments = msg.arguments(); + QString modestAccountId = arguments.takeFirst().toString(); + QString modestFolderId = arguments.takeFirst().toString(); + QMessageFolderId updatedFolderId; + + if (modestAccountId == "local_folders") { + updatedFolderId = QMessageFolderId("MO_LOCAL&maildir&"+modestFolderId); + } else { + QMessageAccountId accountId = QMessageAccountId("MO_"+escapeString(modestAccountId)); + QString protocol = accountEmailProtocolAsString(accountId); + if ((protocol == "pop") && (modestFolderId == "INBOX")) { + modestFolderId = "cache"; + } + updatedFolderId = QMessageFolderId(accountId.toString()+"&"+protocol+"&"+modestFolderId); + } + + int messagesPerAccount = 5; + QDBusPendingCall pendingCall = m_ModestDBusInterface->asyncCall(MODEST_DBUS_METHOD_GET_UNREAD_MESSAGES, + messagesPerAccount); + QDBusPendingCallWatcher* pendingCallWatcher = new QDBusPendingCallWatcher(pendingCall); + pendingCallWatcher->setProperty("folderId", updatedFolderId.toString()); + connect(pendingCallWatcher, SIGNAL(finished(QDBusPendingCallWatcher*)), + this, SLOT(pendingGetUnreadMessagesFinishedSlot(QDBusPendingCallWatcher*))); +} + +void ModestEngine::pendingGetUnreadMessagesFinishedSlot(QDBusPendingCallWatcher* pendingCallWatcher) +{ + QDBusMessage msg = pendingCallWatcher->reply(); + QVariant variant = msg.arguments().takeFirst(); + QDBusArgument argument = variant.value(); + QList accountsWithUnreadMessages; + argument >> accountsWithUnreadMessages; + + bool setOnlyDates = false; + if (pendingCallWatcher->property("setOnlyDates").isValid()) { + setOnlyDates = true; + } + QMessageFolderId folderId; + if (pendingCallWatcher->property("folderId").isValid()) { + folderId = QMessageFolderId(pendingCallWatcher->property("folderId").toString()); + } + + for (int i=0; i < accountsWithUnreadMessages.count(); i++) { + QDateTime newLatestTimeStamp; + QDateTime latestTimeStamp = accountsLatestTimestamp.take(accountsWithUnreadMessages[i].accountId); + for (int j=0; j < accountsWithUnreadMessages[i].unreadMessages.count(); j++) { + ModestUnreadMessageDBusStruct unreadMessage = accountsWithUnreadMessages[i].unreadMessages[j]; + QDateTime time = QDateTime::fromTime_t(unreadMessage.timeStamp); + if (time > newLatestTimeStamp) { + newLatestTimeStamp = time; + } + if (!setOnlyDates) { + if (time > latestTimeStamp) { + searchNewMessages(unreadMessage.subject, QString(), time, time, MODEST_DBUS_SEARCH_SUBJECT, 0); + } + } + } + if (newLatestTimeStamp.isValid()) { + accountsLatestTimestamp.remove(accountsWithUnreadMessages[i].accountId); + accountsLatestTimestamp.insert(accountsWithUnreadMessages[i].accountId, newLatestTimeStamp); + } else { + accountsLatestTimestamp.insert(accountsWithUnreadMessages[i].accountId, QDateTime::currentDateTime()); + } + } +} + +void ModestEngine::searchNewMessages(const QString& searchString, const QString& folderToSearch, + const QDateTime& startDate, const QDateTime& endDate, + int searchflags, uint minimumMessageSize) const +{ + qlonglong sDate = 0; + if (startDate.isValid()) { + sDate = startDate.toTime_t(); + } + qlonglong eDate = 0; + if (endDate.isValid()) { + eDate = endDate.toTime_t(); + } + + QDBusInterface interface(MODEST_DBUS_SERVICE, MODEST_DBUS_OBJECT, MODEST_DBUS_IFACE); + QDBusPendingCall pendingCall = interface.asyncCall(MODEST_DBUS_METHOD_SEARCH, + searchString, + folderToSearch, + sDate, + eDate, + searchflags, + minimumMessageSize); + QDBusPendingCallWatcher* pendingCallWatcher = new QDBusPendingCallWatcher(pendingCall); + connect(pendingCallWatcher, SIGNAL(finished(QDBusPendingCallWatcher*)), + this, SLOT(pendingSearchFinishedSlot(QDBusPendingCallWatcher*))); +} + +void ModestEngine::pendingSearchFinishedSlot(QDBusPendingCallWatcher* pendingCallWatcher) +{ + QDBusMessage msg = pendingCallWatcher->reply(); + QVariant variant = msg.arguments().takeFirst(); + QDBusArgument argument = variant.value(); + QList messages; + argument >> messages; + + for (int i=0; i < messages.count(); i++) { + notification(messageIdFromModestMessageId(messages[i].id), ModestEngine::Added); + } +} + +void ModestEngine::messageReadChangedSlot(QDBusMessage msg) +{ + QString changedMessageId = msg.arguments().takeFirst().toString(); + notification(messageIdFromModestMessageId(changedMessageId), ModestEngine::Updated); +} + +QMessageManager::NotificationFilterId ModestEngine::registerNotificationFilter(QMessageStorePrivate& messageStore, + const QMessageFilter &filter, + QMessageManager::NotificationFilterId id) +{ + m_messageStore = &messageStore; + + int filterId = id; + if (filterId == 0) { + filterId = ++m_filterId; + } + m_filters.insert(filterId, filter); + return filterId; +} + +void ModestEngine::unregisterNotificationFilter(QMessageManager::NotificationFilterId notificationFilterId) +{ + m_filters.remove(notificationFilterId); +} + +QByteArray ModestEngine::getMimePart (const QMessageId &id, const QString &attachmentId) +{ + QByteArray result; + + QString modestAccountId = modestAccountIdFromMessageId(id); + QString modestFolderId = modestFolderIdFromMessageId(id); + QString modestMessageId = modestMessageIdFromMessageId(id); + + QString filePath, mimeType; + int mimeSize = -1; + bool expunge = false, isAttachment = false; + + QDBusPendingReply reply = + m_QtmPluginDBusInterface->asyncCall( + "GetMimePart", + QVariant::fromValue(modestAccountId), + QVariant::fromValue(modestFolderId), + QVariant::fromValue(modestMessageId), + QVariant::fromValue(attachmentId)); + + reply.waitForFinished(); + + if (reply.isError()) { + qWarning () << reply.error(); + return result; + } + + filePath = reply.argumentAt<0>(); + mimeType = reply.argumentAt<1>(); + mimeSize = reply.argumentAt<2>(); + isAttachment = reply.argumentAt<3>(); + expunge = reply.argumentAt<4>(); + + if (filePath.isEmpty()) { + qWarning() << "Received empty file path!"; + return result; + } + + QFile file(filePath); + + if (file.open(QIODevice::ReadWrite) == false) { + qWarning() << "Failed to open file" << filePath << ": " + << file.error(); + return result; + } + + result = file.readAll(); + + if (expunge) { + file.remove(); + } else { + file.close(); + } + + return result; +} + +void ModestEngine::notification(const QMessageId& messageId, NotificationType notificationType) const +{ + QMessageId realMessageId = messageId; + + if (notificationType == ModestEngine::Removed) { + // Make sure that there will not be many Removed notifications + // in a row for a same message + QString modestMessageId = modestMessageIdFromMessageId(messageId); + if (!m_latestRemoveNotifications.contains(modestMessageId)) { + if (m_latestRemoveNotifications.count() > 10) { + // Remove oldest notification from the beginning of the list + m_latestRemoveNotifications.removeFirst(); + } + // Append new notification + m_latestRemoveNotifications.append(modestMessageId); + } else { + return; + } + } + + QMessageManager::NotificationFilterIdSet matchingFilters; + + // Copy the filter map to protect against modification during traversal + QMap filters(m_filters); + QMap::const_iterator it = filters.begin(), end = filters.end(); + QMessage message; + bool messageRetrieved = false; + for ( ; it != end; ++it) { + const QMessageFilter &filter(it.value()); + + if (!messageRetrieved) { + QString modestAccountId = modestAccountIdFromMessageId(messageId); + QString modestFolderId = modestFolderIdFromMessageId(messageId); + QString modestMessageId = modestMessageIdFromMessageId(messageId); + + MessagingModestMessage modestMessage = messageFromModest(modestAccountId, + modestFolderId, + modestMessageId); + + if (modestMessage.accountId.isEmpty()) { + return; + } + + if (modestMessage.flags & MessagingModestMessageDeleted) { + notificationType = ModestEngine::Removed; + } + if (modestMessage.size == 0) { + notificationType = ModestEngine::Removed; + } + + message = messageFromModestMessage(modestMessage); + realMessageId =message.id(); + messageRetrieved = true; + } + + if (filter.isEmpty()) { + // Empty filter matches to all messages + matchingFilters.insert(it.key()); + } else { + if (message.type() == QMessage::NoType) { + continue; + } + QMessageFilterPrivate* privateMessageFilter = QMessageFilterPrivate::implementation(filter); + if (privateMessageFilter->filter(message)) { + matchingFilters.insert(it.key()); + } + } + } + + if (matchingFilters.count() > 0) { + if (notificationType == ModestEngine::Added) { + m_messageStore->messageNotification(QMessageStorePrivate::Added, realMessageId, matchingFilters); + } else if (notificationType == ModestEngine::Updated) { + m_messageStore->messageNotification(QMessageStorePrivate::Updated, realMessageId, matchingFilters); + } else if (notificationType == ModestEngine::Removed) { + m_messageStore->messageNotification(QMessageStorePrivate::Removed, realMessageId, matchingFilters); + } + } +} + +QMessageAccountId ModestEngine::accountIdFromModestMessageId(const QString& modestMessageId) const +{ + // Modest messageId format is following: + // ://@:... + QMessageAccountId accountId; + + int usernameBegin = modestMessageId.indexOf("//")+2; + int usernameEnd = modestMessageId.indexOf("@"); + QString username = QUrl::fromPercentEncoding(modestMessageId.mid(usernameBegin, usernameEnd-usernameBegin).toUtf8()); + int hostnameBegin = usernameEnd+1; + int hostnameEnd = modestMessageId.indexOf(':',hostnameBegin); + QString hostname = QUrl::fromPercentEncoding(modestMessageId.mid(hostnameBegin, hostnameEnd-hostnameBegin).toUtf8()); + + foreach (QMessageAccount value, iAccounts) { + QMessageAccountId accId = value.id(); + if ((accountUsername(accId) == username) && + (accountHostname(accId) == hostname)) { + accountId = accId; + } + } + + if (!accountId.isValid()) { + if (modestMessageId.left(modestMessageId.indexOf(':')) == "maildir") { + accountId = QMessageAccountId("MO_LOCAL"); + } + } + + return accountId; +} + +QMessageFolderId ModestEngine::folderIdFromModestMessageId(const QString& modestMessageId, + const QMessageAccountId accountId) const +{ + // Modest messageId format is following: + // ://@:... + QMessageFolderId folderId; + QString folderIdAsString; + + if (!accountId.isValid()) { + folderIdAsString = accountIdFromModestMessageId(modestMessageId).toString(); + } else { + folderIdAsString = accountId.toString(); + } + + int protocolEnd = modestMessageId.indexOf(':'); + QString protocol = modestMessageId.left(protocolEnd); + folderIdAsString += "&" + protocol; + if (protocol == "pop") { + folderIdAsString += "&cache"; + } else if (protocol == "imap") { + int pathBegin = modestMessageId.indexOf('/',modestMessageId.lastIndexOf(':'))+1; + int pathEnd = modestMessageId.lastIndexOf('/'); + folderIdAsString += "&" + modestMessageId.mid(pathBegin, pathEnd-pathBegin); + } else if (protocol == "maildir") { + int pathBegin = modestMessageId.indexOf('#')+1; + int pathEnd = modestMessageId.lastIndexOf('/'); + folderIdAsString += "&" + modestMessageId.mid(pathBegin, pathEnd-pathBegin); + } + folderId = QMessageFolderId(QUrl::fromPercentEncoding(folderIdAsString.toUtf8())); + + return folderId; +} + +QString ModestEngine::modestAccountIdFromAccountId(const QMessageAccountId& accountId) const +{ + // Just remove "MO_" prefix from the beginning of id string + return accountId.toString().remove(0,3); +} + +QString ModestEngine::modestFolderIdFromFolderId(const QMessageFolderId& folderId) const +{ + QString modestFolderId; + + QString folderIdString = folderId.toString(); + int protocolBegin = folderIdString.indexOf('&'); + int protocolEnd = folderIdString.lastIndexOf('&'); + + modestFolderId = folderIdString.mid(protocolEnd+1); + QString protocol = folderIdString.mid(protocolBegin+1,protocolEnd-protocolBegin-1); + if ((protocol == "pop") && (modestFolderId == "cache")) { + modestFolderId = "INBOX"; + } + + return modestFolderId; +} + +QString ModestEngine::modestFolderUriFromFolderId(const QMessageFolderId& folderId) const +{ + Q_UNUSED(folderId) //TODO: + return QString(); +} + +QString ModestEngine::modestAccountIdFromMessageId(const QMessageId& messageId, + bool checkProtocol) const +{ + QString id = messageId.toString(); + int protocolBegin = id.indexOf('&'); + int protocolEnd = id.lastIndexOf('&'); + QString protocol = id.mid(protocolBegin+1,protocolEnd-protocolBegin-1); + if (checkProtocol && protocol == "maildir") { + return "local_folders"; + } + + return unescapeString(id.left(protocolBegin).remove(0,3)); +} + +QMessageAccountId ModestEngine::accountIdFromFolderId(const QMessageFolderId& folderId) const +{ + QString id = folderId.toString(); + int protocolBegin = id.indexOf('&'); + return QMessageAccountId(id.left(protocolBegin)); +} + +QMessageAccountId ModestEngine::accountIdFromMessageId(const QMessageId& messageId) const +{ + QString id = messageId.toString(); + int protocolBegin = id.indexOf('&'); + return QMessageAccountId(id.left(protocolBegin)); +} + +QString ModestEngine::modestAccountIdFromFolderId(const QMessageFolderId& folderId, + bool checkProtocol) const +{ + QString id = folderId.toString(); + int protocolBegin = id.indexOf('&'); + int protocolEnd = id.lastIndexOf('&'); + QString protocol = id.mid(protocolBegin+1,protocolEnd-protocolBegin-1); + if (checkProtocol && protocol == "maildir") { + return "local_folders"; + } + + return unescapeString(id.left(protocolBegin).remove(0,3)); +} + +QString ModestEngine::modestFolderIdFromMessageId(const QMessageId& messageId) const +{ + QString id = messageId.toString(); + + int protocolBegin = id.indexOf('&'); + int protocolEnd = id.lastIndexOf('&'); + int folderEnd = id.lastIndexOf('/'); + + QString protocol = id.mid(protocolBegin+1,protocolEnd-protocolBegin-1); + id = id.mid(protocolEnd+1,folderEnd-protocolEnd-1); + if ((protocol == "pop") && (id == "cache")) { + id = "INBOX"; + } + + return id; +} + +void ModestEngine::replaceProtocol(QString& id, const QString& newProtocol) const +{ + int protocolBegin = id.indexOf('&'); + int protocolEnd = id.lastIndexOf('&'); + id.remove(protocolBegin+1,protocolEnd-protocolBegin-1); + id.insert(protocolBegin+1, newProtocol); +} + +QMessageAccountId ModestEngine::realAccountId(const MessagingModestMessage& modestMessage) const +{ + QMessageAccountId accountId; + + if (modestMessage.accountId == "local_folders") { + QString accountIdString; + // Message is in local foldar, but message can be linked + // to actual account using 'From', 'To', 'Cc' or 'Bcc' fields + foreach (QMessageAccount value, iAccounts) { + QMessageAccountPrivate* privAccount = QMessageAccountPrivate::implementation(value); + if (modestMessage.from.contains(privAccount->_address.addressee())) { + accountIdString = value.id().toString(); + break; + } else if (modestMessage.to.contains(privAccount->_address.addressee())) { + accountIdString = value.id().toString(); + break; + } else if (modestMessage.cc.contains(privAccount->_address.addressee())) { + accountIdString = value.id().toString(); + break; + } else if (modestMessage.bcc.contains(privAccount->_address.addressee())) { + accountIdString = value.id().toString(); + break; + } + } + if (!accountIdString.isEmpty()) { + accountId = QMessageAccountId(accountIdString); + } + } else { + accountId = accountIdFromModestAccountId(modestMessage.accountId); + } + + return accountId; +} + +QString ModestEngine::modestMessageIdFromMessageId(const QMessageId& messageId) const +{ + QString id = messageId.toString(); + return id.mid(id.lastIndexOf('/')+1); +} + +QMessageAccountId ModestEngine::accountIdFromModestAccountId(const QString& accountId) const +{ + // Just add "MO_" prefix to the beginning of id string & escape created Id + return QMessageAccountId(escapeString("MO_"+accountId)); +} + +QMessageFolderId ModestEngine::folderIdFromModestFolderId(const QMessageAccountId& accountId, + bool isLocalFolder, + const QString& modestFolderId) const +{ + // Format: && + QMessageFolderId folderId; + + if (isLocalFolder) { + folderId = QMessageFolderId(accountId.toString()+"&maildir&"+modestFolderId); + } else { + QString protocol = accountEmailProtocolAsString(accountId); + if ((protocol == "pop") && (modestFolderId == "INBOX")) { + folderId = QMessageFolderId(accountId.toString()+"&"+protocol+"&cache"); + } else { + folderId = QMessageFolderId(accountId.toString()+"&"+protocol+"&"+modestFolderId); + } + } + + return folderId; +} + +QMessageId ModestEngine::messageIdFromModestMessageId(const QString& messageId) const +{ + QString messageIdString = folderIdFromModestMessageId(messageId).toString(); + int idPartBegin = messageId.lastIndexOf('/'); + messageIdString += messageId.mid(idPartBegin, idPartBegin-messageId.length()); + return QMessageId(messageIdString); +} + +QMessageId ModestEngine::messageIdFromModestMessageFilePath(const QString& messageFilePath) const +{ + QString messageIdString; + + QString filePath = messageFilePath; + QString localRootFolder = this->localRootFolder(); + if (filePath.startsWith(localRootFolder)) { + messageIdString = "MO_LOCAL&maildir&"; + filePath.remove(0,localRootFolder.length()+1); + filePath.remove("/cur"); + messageIdString += filePath.left(filePath.lastIndexOf('!')); + } else { + foreach (QMessageAccount value, iAccounts) { + QMessageAccountId accountId = value.id(); + QString rootFolder = accountRootFolder(accountId); + if (filePath.startsWith(rootFolder)) { + QString protocol = accountEmailProtocolAsString(accountId); + messageIdString = accountId.toString()+"&"+protocol+"&"; + filePath.remove(0,rootFolder.length()+1); + filePath.remove("/subfolders"); + messageIdString += filePath.left(filePath.lastIndexOf('.')); + if (protocol == "pop") { + QDir dir(messageFilePath); + dir.setFilter(QDir::AllEntries | QDir::NoDotAndDotDot); + QFileInfoList dirs = dir.entryInfoList(); + if (dirs.count() > 0) { + QString fileName = dirs[0].fileName(); + // Remove folder that contains actual message + messageIdString = messageIdString.left(messageIdString.lastIndexOf('/')+1); + // Add message name + messageIdString = messageIdString+fileName; + } + } + } + } + } + + return QMessageId(messageIdString); +} + +QString ModestEngine::unescapeString(const QString& string) +{ + QString unescapedString; + + QByteArray str = string.toUtf8(); + gchar* unescaped_string = gconf_unescape_key(str.data(), str.length()); + unescapedString = QString::fromUtf8(unescaped_string); + g_free(unescaped_string); + + return unescapedString; +} + +QString ModestEngine::escapeString(const QString& string) +{ + QString escapedString; + + QByteArray str = unescapeString(string).toUtf8(); + gchar* escaped_string = gconf_escape_key(str.data(), str.length()); + escapedString = QString::fromUtf8(escaped_string); + g_free(escaped_string); + + return escapedString; +} + +INotifyWatcher::INotifyWatcher() +{ + // Initialize inotify instance + // => returned file descriptor is associated with + // a new inotify event queue + // O_CLOEXEC flag makes sure that file descriptor + // is closed if execution is transfered + // from this process to a new program + // (Check more info from 'execve' documentation) +#ifdef IN_CLOEXEC + m_inotifyFileDescriptor = inotify_init1(IN_CLOEXEC); +#else + m_inotifyFileDescriptor = inotify_init(); + if (m_inotifyFileDescriptor >= 0) { + ::fcntl(m_inotifyFileDescriptor, F_SETFD, FD_CLOEXEC); + } +#endif + if (m_inotifyFileDescriptor >= 0) { + // Change thread affinity for this object to this + // thread. + // => Event processing (for this objects events) will + // be done in this thread + moveToThread(this); + } +} + +INotifyWatcher::~INotifyWatcher() +{ + // Tell the thread's event loop to exit + // => thread returns from the call to exec() + exit(); + + // Wait until this thread has finished execution + // <=> waits until thread returns from run() + wait(); + + clear(); + + // Close file descriptor that's referring to inotify instance + // => The underlying inotify object and its resources are freed + ::close(m_inotifyFileDescriptor); +} + +void INotifyWatcher::clear() +{ + // Remove all watches from inotify instance watch list + QMapIterator i(m_dirs); + while (i.hasNext()) { + inotify_rm_watch(m_inotifyFileDescriptor, i.next().key()); + } + m_dirs.clear(); + + QMapIterator j(m_files); + while (j.hasNext()) { + inotify_rm_watch(m_inotifyFileDescriptor, j.next().key()); + } + m_files.clear(); +} + +void INotifyWatcher::run() +{ + // Start listening inotify + QSocketNotifier socketNotifier(m_inotifyFileDescriptor, QSocketNotifier::Read, this); + connect(&socketNotifier, SIGNAL(activated(int)), SLOT(notifySlot())); + + // Enter the thread event loop + (void) exec(); +} + +int INotifyWatcher::addFile(const QString& path, uint eventsToWatch) +{ + int watchDescriptor = 0; + QMutexLocker locker(&m_mutex); + + if (m_inotifyFileDescriptor >= 0) { + int watchDescriptor = 0; + if (eventsToWatch == 0) { + watchDescriptor = inotify_add_watch(m_inotifyFileDescriptor, + QFile::encodeName(path), + 0 | IN_ATTRIB + | IN_MODIFY + | IN_MOVE + | IN_MOVE_SELF + | IN_DELETE_SELF); + } else { + watchDescriptor = inotify_add_watch(m_inotifyFileDescriptor, + QFile::encodeName(path), + eventsToWatch); + } + if (watchDescriptor > 0) { + m_files.insert(watchDescriptor, path); + } else { + watchDescriptor = 0; + } + } + + // Start thread (if thread is not already running) + start(); + + return watchDescriptor; +} + +int INotifyWatcher::addDirectory(const QString& path, uint eventsToWatch) +{ + int watchDescriptor = 0; + QMutexLocker locker(&m_mutex); + + if (m_inotifyFileDescriptor >= 0) { + int watchDescriptor = 0; + if (eventsToWatch == 0) { + watchDescriptor = inotify_add_watch(m_inotifyFileDescriptor, + QFile::encodeName(path), + 0 | IN_ATTRIB + | IN_MOVE + | IN_CREATE + | IN_DELETE + | IN_DELETE_SELF); + } else { + watchDescriptor = inotify_add_watch(m_inotifyFileDescriptor, + QFile::encodeName(path), + eventsToWatch); + } + if (watchDescriptor > 0) { + m_dirs.insert(watchDescriptor, path); + } else { + watchDescriptor = 0; + } + } + + // Start thread (if thread is not already running) + start(); + + return watchDescriptor; +} + +QStringList INotifyWatcher::directories() const +{ + return m_dirs.values(); +} + +QStringList INotifyWatcher::files() const +{ + return m_dirs.values(); +} + +void INotifyWatcher::notifySlot() +{ + QMutexLocker locker(&m_mutex); + + int bufferSize = 0; + ioctl(m_inotifyFileDescriptor, FIONREAD, (char*) &bufferSize); + QVarLengthArray buffer(bufferSize); + bufferSize = read(m_inotifyFileDescriptor, buffer.data(), bufferSize); + const char* at = buffer.data(); + const char* const end = at + bufferSize; + + QMap eventsForWatchedFile; + QMap eventsForFileInWatchedDirectory; + while (at < end) { + const inotify_event *event = reinterpret_cast(at); + if (m_files.contains(event->wd)) { + // File event handling + if (eventsForWatchedFile.contains(event->wd)) { + // There is already unhandled event for this file in queue + // => Mask is ORed to existing event + eventsForWatchedFile[event->wd].mask |= event->mask; + } else { + // There is no event for this file in queue + // => New event is created + INotifyEvent inotifyEvent; + inotifyEvent.watchDescriptor = event->wd; + inotifyEvent.mask = event->mask; + inotifyEvent.fileName = QString::fromAscii(event->name, event->len); + eventsForWatchedFile.insert(event->wd, inotifyEvent); + } + } else { + // Directory event handling + QString changeForFileInDirectory = QString::fromAscii(event->name, event->len); + // Remove unnecessary postfix (starting with '!') from the file name + changeForFileInDirectory = changeForFileInDirectory.left(changeForFileInDirectory.lastIndexOf('!')); + if (!changeForFileInDirectory.isEmpty()) { + QString eventId = QString::number(event->wd)+changeForFileInDirectory; + if (eventsForFileInWatchedDirectory.contains(eventId)) { + // There is already unhandled event for this file in queue + // => Mask is ORed to existing event + eventsForFileInWatchedDirectory[eventId].mask |= event->mask; + } else { + // There is no event for this file in queue + // => New event is created + INotifyEvent inotifyEvent; + inotifyEvent.watchDescriptor = event->wd; + inotifyEvent.mask = event->mask; + inotifyEvent.fileName = QString::fromAscii(event->name, event->len); + eventsForFileInWatchedDirectory.insert(eventId, inotifyEvent); + } + } + } + at += sizeof(inotify_event) + event->len; + } + + QMap::const_iterator it = eventsForWatchedFile.constBegin(); + while (it != eventsForWatchedFile.constEnd()) { + INotifyEvent event = *it; + QString file = m_files.value(event.watchDescriptor); + if (!file.isEmpty()) { + emit fileChanged(event.watchDescriptor, file, event.mask); + } + ++it; + } + + QMap::const_iterator jt = eventsForFileInWatchedDirectory.constBegin(); + while (jt != eventsForFileInWatchedDirectory.constEnd()) { + INotifyEvent event = *jt; + QString file = m_dirs.value(event.watchDescriptor)+"/"+event.fileName; + emit fileChanged(event.watchDescriptor, file, event.mask); + ++jt; + } +} + +ModestStringMap ModestEngine::getModestSenderInfo(QMessage &message) +{ + QMessageAddress address; + ModestStringMap senderInfo; + QMessageAccountId accountId; + QString value; + + accountId = message.parentAccountId(); + if (accountId.isValid() == false) { + qWarning () << "Account ID is invalid"; + return ModestStringMap(); + } + + senderInfo["account-name"] = unescapeString(modestAccountIdFromAccountId(accountId)); + + QMessageAccount messageAccount = account(accountId); + QMessageAccountPrivate* privAccount = QMessageAccountPrivate::implementation(messageAccount); + address = privAccount->_address; + value = address.addressee(); + + if (value.isEmpty() == false && value.isNull() == false) { + senderInfo["from"] = value; + } + + return senderInfo; +} + +ModestStringMap ModestEngine::getModestRecipients(QMessage &message) +{ + QMessageAddressList addresses; + QMessageAddress address; + ModestStringMap recipients; + QString value; + + addresses = message.to(); + value.clear(); + for (int i = 0; i < addresses.length(); i++) { + address = addresses[i]; + + if (value.isEmpty()) { + value = address.addressee(); + } else { + value.append (","); + value.append (address.addressee()); + } + } + + if (value.isEmpty() == false && value.isNull() == false) { + recipients["to"] = value; + } + + addresses = message.cc(); + value.clear(); + for (int i = 0; i < addresses.length(); i++) { + address = addresses[i]; + + if (value.isEmpty()) { + value = address.addressee(); + } else { + value.append (","); + value.append (address.addressee()); + } + } + + if (value.isEmpty() == false && value.isNull() == false) { + recipients["cc"] = value; + } + + addresses = message.bcc(); + value.clear(); + for (int i = 0; i < addresses.length(); i++) { + address = addresses[i]; + + if (value.isEmpty()) { + value = address.addressee(); + } else { + value.append (","); + value.append (address.addressee()); + } + } + + if (value.isEmpty() == false && value.isNull() == false) { + recipients["bcc"] = value; + } + + return recipients; +} + +ModestStringMap ModestEngine::getModestMessageData(QMessage &message) +{ + QMessageContentContainerId bodyId; + QMessageContentContainer body; + ModestStringMap messageData; + QString value; + + value = message.subject(); + + if (value.isEmpty() == false && value.isNull() == false) { + messageData["subject"] = value; + } + + bodyId = message.bodyId(); + if (bodyId.isValid()) { + body = message.find (bodyId); + } else { + body = message; + } + + value = body.contentType(); + + if (value == "text") { + QString key, data; + bool hasContent = false; + + value = body.contentSubType(); + + if ((hasContent = body.isContentAvailable()) == true) { + data = body.textContent(); + } + + if (value == "plain") { + key = "plain-body"; + } else if (value == "html") { + key = "html-body"; + } + + if (key.isEmpty() == false && key.isNull() == false && hasContent) { + messageData[key] = data; + } + } + + return messageData; +} + +ModestStringMapList ModestEngine::getModestAttachments(QMessage &message) +{ + QMessageContentContainerIdList attachmentIds; + ModestStringMapList attachments; + QMessage::StatusFlags messageStatus; + QString value; + + messageStatus = message.status(); + + if (messageStatus & QMessage::HasAttachments) { + attachmentIds = message.attachmentIds(); + + foreach (QMessageContentContainerId identifier, attachmentIds) { + ModestStringMap attachmentData; + QMessageContentContainer attachmentCont; + + if (identifier.isValid() == false) continue; + + attachmentCont = message.find (identifier); + + if (attachmentCont.isContentAvailable () == false) continue; + + attachmentData.clear(); + + value = attachmentCont.contentType(); + + if (value.isEmpty() == false) { + value.append("/"); + value.append (attachmentCont.contentSubType()); + attachmentData["mime-type"] = value; + + qDebug() << "mime-type: " << value; + } + + value = QMessageContentContainerPrivate::attachmentFilename ( + attachmentCont); + + if (value.isEmpty() == false) { + attachmentData["filename"] = value; + qDebug() << "filename: " << value; + } + + qDebug() << "Charset: " << attachmentCont.contentCharset(); + qDebug() << "Headers: " << attachmentCont.headerFields(); + + if (attachmentData.isEmpty() == false) { + attachmentData["content-id"] = identifier.toString(); + attachments.append (attachmentData); + } + } + } + + return attachments; +} + +ModestStringMapList ModestEngine::getModestImages(QMessage &message) +{ + Q_UNUSED(message); + // Don't know if this even makes sense. Modest expects inlined images + // to be in a separate list, but that doesn't make much sense? + return ModestStringMapList(); +} + +uint ModestEngine::getModestPriority(QMessage &message) +{ + uint priority = 0; + + switch (message.priority()) { + case QMessage::HighPriority: + priority = MODESTENGINE_HIGH_PRIORITY; + break; + + default: + case QMessage::NormalPriority: + priority = MODESTENGINE_NORMAL_PRIORITY; + break; + + case QMessage::LowPriority: + priority = MODESTENGINE_LOW_PRIORITY; + break; + } + + return priority; +} + +ModestStringMap ModestEngine::getModestHeaders(QMessage &message) +{ + Q_UNUSED(message); + return ModestStringMap(); // stub +} + +#include "moc_modestengine_maemo_p.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/modestengine_maemo_p.h --- a/qtmobility/src/messaging/modestengine_maemo_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/modestengine_maemo_p.h Mon May 03 13:18:40 2010 +0300 @@ -12,7 +12,7 @@ ** You may use this file in accordance with the terms and conditions ** contained in the Technology Preview License Agreement accompanying ** this package. -**file:///home/maminkki/sbox/qtm-messaging/src/messaging/qmtmengine_symbian_p.h +** ** 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 @@ -43,45 +43,377 @@ #define MODESTENGINE_MAEMO_H #include "qmessagemanager.h" +#include "qmessagefilter_p.h" +#include "qmessageservice.h" + #include "gconf/gconf-client.h" #include "libosso.h" +#include +#include +#include +#include +#include +#include +#include +#include + +class QDBusInterface; +class QFileSystemWatcher; +class QEventLoop; + QTM_BEGIN_NAMESPACE +typedef QMap< QString, QString > ModestStringMap; +typedef QList< ModestStringMap > ModestStringMapList; + +static const int maxCacheSize = 1000; + class QMessageService; +class QMessageServicePrivate; +class QMessageStorePrivate; + +struct MessageQueryInfo +{ + int queryId; + QString body; + QMessageDataComparator::MatchFlags matchFlags; + QMessageFilter filter; + QMessageSortOrder sortOrder; + int limit; + int offset; + QMessageServicePrivate* privateService; + QDBusPendingCallWatcher* pendingCallWatcher; + int currentFilterListIndex; + int handledFiltersCount; + QMessageIdList ids; + QString realAccountId; + bool isQuery; + bool returnWithSingleShot; +}; + +struct ModestUnreadMessageDBusStruct +{ + qlonglong timeStamp; + QString subject; +}; + +struct ModestAccountsUnreadMessagesDBusStruct +{ + QString accountId; + QString accountName; + QString accountProtocol; + qlonglong unreadCount; + QList unreadMessages; +}; + +struct ModestMessage +{ + QString id; + QString subject; + QString folder; + QString sender; + long long size; + bool hasAttachment; + bool isUnread; + long long timeStamp; +}; + +typedef enum { + MessagingModestMessageNotDefined = 0, + MessagingModestMessageAnswered = 1<<0, + MessagingModestMessageDeleted = 1<<1, + MessagingModestMessageDraft = 1<<2, + MessagingModestMessageFlagged = 1<<3, + MessagingModestMessageSeen = 1<<4, + MessagingModestMessageAttachments = 1<<5, + MessagingModestMessageCached = 1<<6, + MessagingModestMessagePartial = 1<<7, + MessagingModestMessageExpunged = 1<<8, + MessagingModestMessageHasPriority = 1<<9|1<<10 +} MessagingModestMessageFlags; + +typedef enum { + MessagingModestMessagePriorityDefined = 0, + MessagingModestMessageHighPriority = 1<<9|1<<10, + MessagingModestMessageNormalPriority = 0<<9|0<<10, + MessagingModestMessageLowPriority = 0<<9|1<<10, + MessagingModestMessageSuspendedPriority = 1<<9|0<<10 +} MessagingModestMessagePriority; -class ModestEngine +struct MessagingModestMimePart +{ + QString mimeType; + bool isAttachment; + QString fileName; + QString contentId; +}; + +struct MessagingModestMessage +{ + QString id; + QString url; + QString accountId; + QString folderId; + QString mimeType; + QString from; + QString to; + QString cc; + QString bcc; + QString replyTo; + QString subject; + qlonglong dateReceived; + qlonglong dateSent; + qlonglong size; + MessagingModestMessageFlags flags; + MessagingModestMessagePriority priority; + QList mimeParts; +}; + +struct INotifyEvent +{ + int watchDescriptor; + uint32_t mask; + QString fileName; +}; + +class INotifyWatcher : public QThread { + Q_OBJECT + public: + enum FileNotification + { + FileNotificationAdded, + FileNotificationUpdated, + FileNotificationRemoved + }; + + INotifyWatcher(); + ~INotifyWatcher(); + + void run(); + int addFile(const QString& path, uint eventsToWatch = 0); + QStringList files() const; + int addDirectory(const QString& path, uint eventsToWatch = 0); + QStringList directories() const; + void clear(); + +private slots: + void notifySlot(); + +signals: + void fileChanged(int watchDescriptor, QString filePath, uint events); + +private: //Data + int m_inotifyFileDescriptor; + QMutex m_mutex; + QMap m_files; + QMap m_dirs; +}; + +class ModestEngine : public QObject +{ + Q_OBJECT + +public: + enum EmailProtocol + { + EmailProtocolUnknown = -1, + EmailProtocolPop3 = 1, + EmailProtocolIMAP, + }; + + enum NotificationType + { + None = 0, + Added, + Updated, + Removed + }; + static ModestEngine* instance(); ModestEngine(); ~ModestEngine(); + bool exportUpdates(const QMessageAccountId &id); + QMessageAccountIdList queryAccounts(const QMessageAccountFilter &filter, const QMessageAccountSortOrder &sortOrder, uint limit, uint offset, bool &isFiltered, bool &isSorted) const; int countAccounts(const QMessageAccountFilter &filter) const; QMessageAccount account(const QMessageAccountId &id) const; - QMessageAccountId defaultAccount(QMessage::Type type) const; + QMessageAccountId defaultAccount() const; + + QMessageFolderIdList queryFolders(const QMessageFolderFilter &filter, const QMessageFolderSortOrder &sortOrder, + uint limit, uint offset, bool &isFiltered, bool &isSorted) const; + int countFolders(const QMessageFolderFilter &filter) const; + QMessageFolder folder(const QMessageFolderId &id) const; + + QMessage message(const QMessageId &id, bool useCache = true) const; + bool addMessage(QMessage &message); + bool updateMessage(QMessage &message); + bool removeMessage(const QMessageId &id, QMessageManager::RemovalOption option); - bool queryMessages(QMessageService& messageService, const QMessageFilter &filter, const QMessageSortOrder &sortOrder, uint limit, uint offset) const; - bool queryMessages(QMessageService& messageService, const QMessageFilter &filter, const QString &body, QMessageDataComparator::MatchFlags matchFlags, const QMessageSortOrder &sortOrder, uint limit, uint offset) const; + bool queryMessages(QMessageService& messageService, const QMessageFilter &filter, + const QMessageSortOrder &sortOrder, uint limit, uint offset) const; + bool queryMessages(QMessageService& messageService, const QMessageFilter &filter, + const QString &body, QMessageDataComparator::MatchFlags matchFlags, + const QMessageSortOrder &sortOrder, uint limit, uint offset) const; bool countMessages(QMessageService& messageService, const QMessageFilter &filter); + QMessageIdList queryMessagesSync(const QMessageFilter &filter, const QMessageSortOrder &sortOrder, + uint limit, uint offset, bool &isFiltered, bool &isSorted) const; + QMessageIdList queryMessagesSync(const QMessageFilter &filter, const QString &body, + QMessageDataComparator::MatchFlags matchFlags, + const QMessageSortOrder &sortOrder, uint limit, uint offset, + bool &isFiltered, bool &isSorted) const; + int countMessagesSync(const QMessageFilter &filter) const; + bool sendEmail(QMessage &message); bool composeEmail(const QMessage &message); + bool showMessage(const QMessageId &id); + + QMessageManager::NotificationFilterId registerNotificationFilter(QMessageStorePrivate& messageStore, + const QMessageFilter& filter, + QMessageManager::NotificationFilterId id = 0); + void unregisterNotificationFilter(QMessageManager::NotificationFilterId notificationFilterId); + QByteArray getMimePart (const QMessageId &id, const QString &attachmentId); private: + QFileInfoList localFolders() const; + void appendLocalSubFolders(QFileInfoList& fileInfoList, int startIndex) const; + void appendIMAPSubFolders(QFileInfoList& fileInfoList, int startIndex) const; + QFileInfoList accountFolders(QMessageAccountId& accountId) const; + QString localRootFolder() const; + QString accountRootFolder(QMessageAccountId& accountId) const; + EmailProtocol accountEmailProtocol(QMessageAccountId& accountId) const; + QString accountEmailProtocolAsString(const QMessageAccountId& accountId) const; + QString accountUsername(QMessageAccountId& accountId) const; + QString accountHostname(QMessageAccountId& accountId) const; + void updateEmailAccounts() const; + bool filterMessage(const QMessage& message, QMessageFilterPrivate::SortedMessageFilterList filterList, int start) const; + bool queryAndFilterMessages(MessageQueryInfo &msgQueryInfo) const; + bool startQueryingAndFilteringMessages(MessageQueryInfo &msgQueryInfo) const; + bool searchMessages(MessageQueryInfo &msgQueryInfo, const QStringList& accountIds, + const QStringList& folderUris, const QString& body, + const QDateTime& startTimeStamp, const QDateTime& endTimeStamp, + const QDateTime& startReceptionTimeStamp, const QDateTime& endReceptionTimeStamp) const; + void searchNewMessages(const QString& searchString, const QString& folderToSearch, + const QDateTime& startDate, const QDateTime& endDate, + int searchflags, uint minimumMessageSize) const; + void handleQueryFinished(int queryIndex) const; + + void watchAllKnownEmailFolders(); + void notification(const QMessageId& messageId, NotificationType notificationType) const; + + QMessageAccountId accountIdFromModestMessageId(const QString& modestMessageId) const; + QMessageFolderId folderIdFromModestMessageId(const QString& modestMessageId, + const QMessageAccountId accountId = QMessageAccountId()) const; + + MessagingModestMessage messageFromModest(const QString& accountId, + const QString &folderId, + const QString& messageId) const; + + QString modestAccountIdFromAccountId(const QMessageAccountId& accountId) const; + QString modestFolderIdFromFolderId(const QMessageFolderId& folderId) const; + QString modestFolderUriFromFolderId(const QMessageFolderId& folderId) const; + QString modestAccountIdFromMessageId(const QMessageId& messageId, bool checkProtocol = true) const; + QString modestAccountIdFromFolderId(const QMessageFolderId& folderId, bool checkProtocol = true) const; + QString modestFolderIdFromMessageId(const QMessageId& messageId) const; + QString modestMessageIdFromMessageId(const QMessageId& messageId) const; + void replaceProtocol(QString& id, const QString& newProtocol) const; + QMessageAccountId realAccountId(const MessagingModestMessage& modestMessage) const; + QMessageAccountId accountIdFromMessageId(const QMessageId& messageId) const; + QMessageAccountId accountIdFromFolderId(const QMessageFolderId& folderId) const; + QMessageAccountId accountIdFromModestAccountId(const QString& accountId) const; + QMessageFolderId folderIdFromModestFolderId(const QMessageAccountId& accountId, + bool isLocalFolder, + const QString& folderId) const; + QMessageId messageIdFromModestMessageId(const QString& messageId) const; + QMessageId messageIdFromModestMessageFilePath(const QString& messageFilePath) const; + + QMessage messageFromModestMessage(const MessagingModestMessage& modestMessage, + QMessageAccountId accountId = QMessageAccountId()) const; + void appendAttachmentToMessage(QMessage& message, QMessageContentContainer& attachment) const; + + static QString unescapeString(const QString& string); + static QString escapeString(const QString& string); + + QMessage::StandardFolder standardFolderFromModestFolderId(const QString& modestFolderId) const; + QString modestFolderIdFromStandardFolder(QMessage::StandardFolder standardFolder) const; + + ModestStringMap getModestSenderInfo(QMessage &message); + ModestStringMap getModestRecipients(QMessage &message); + ModestStringMap getModestMessageData(QMessage &message); + ModestStringMapList getModestAttachments(QMessage &message); + ModestStringMapList getModestImages(QMessage &message); + uint getModestPriority(QMessage &message); + ModestStringMap getModestHeaders(QMessage &message); + +private slots: + void searchMessagesHeadersReceivedSlot(QDBusMessage msg); + void searchMessagesHeadersFetchedSlot(QDBusMessage msg); + void folderUpdatedSlot(QDBusMessage msg); + void messageReadChangedSlot(QDBusMessage msg); + void pendingGetUnreadMessagesFinishedSlot(QDBusPendingCallWatcher* pendingCallWatcher); + void pendingSearchFinishedSlot(QDBusPendingCallWatcher* pendingCallWatcher); + void fileChangedSlot(int watchDescriptor, QString filePath, uint events); + void sendEmailCallEnded(QDBusPendingCallWatcher *watcher); + void addMessageCallEnded(QDBusPendingCallWatcher *watcher); + void stateChanged(QMessageService::State newState); + void returnQueryResultsSlot(); + private: //Data - GConfClient* m_gconfclient; + GConfClient *m_gconfclient; + + QDBusInterface *m_ModestDBusInterface; + QDBusInterface *m_QtmPluginDBusInterface; + + INotifyWatcher m_MailFoldersWatcher; mutable QHash iAccounts; mutable QMessageAccountId iDefaultEmailAccountId; + + mutable int m_queryIds; + mutable QList m_pendingMessageQueries; + + QMap m_filters; + QMessageManager::NotificationFilterId m_filterId; + QMessageStorePrivate* m_messageStore; + + QMap accountsLatestTimestamp; + + mutable QStringList m_latestRemoveNotifications; + + mutable QMap m_messageCache; + + // Following variables are used for sync queries + mutable QMessageService m_service; + mutable QEventLoop m_eventLoop; + mutable QMessageIdList m_ids; + mutable int m_count; + mutable bool m_isSorted; + mutable bool m_isFiltered; }; QTM_END_NAMESPACE +// Marshall the MyStructure data into a D-Bus argument +QDBusArgument &operator<<(QDBusArgument &argument, const QtMobility::ModestStringMap &map); + +// Retrieve the MyStructure data from the D-Bus argument +const QDBusArgument &operator>>(const QDBusArgument &argument, QtMobility::ModestStringMap &map); + +Q_DECLARE_METATYPE(QtMobility::ModestStringMap); +Q_DECLARE_METATYPE(QtMobility::ModestStringMapList); +Q_DECLARE_METATYPE(QtMobility::INotifyWatcher::FileNotification); +Q_DECLARE_METATYPE(QtMobility::ModestUnreadMessageDBusStruct); +Q_DECLARE_METATYPE(QtMobility::ModestAccountsUnreadMessagesDBusStruct); +Q_DECLARE_METATYPE(QtMobility::ModestMessage); +Q_DECLARE_METATYPE(QtMobility::MessagingModestMimePart); + #endif // MODESTENGINE_MAEMO_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessage.cpp --- a/qtmobility/src/messaging/qmessage.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessage.cpp Mon May 03 13:18:40 2010 +0300 @@ -65,7 +65,7 @@ \ingroup messaging QMessage supports a number of types. Including internet email messages, - the telephony types SMS and MMS, and also XMPP messages. + and the telephony types SMS and MMS. The QMessageId identifier for a message is returned by id(). Messages can be constructed by retrieval from the messaging store via their identifier using QMessageManager::message(). A @@ -86,7 +86,7 @@ Only phone numbers are valid destination addresses for SMS messages, only email addresses are valid destination addresses for Email messages, MMS messages may be addressed to either phone numbers - or email addresses. Only XMPP addresses are valid destination addresses for XMPP messages. + or email addresses. \sa QMessageContentContainer, QMessageManager, QMessageId */ @@ -96,12 +96,12 @@ This enum type is used to describe the type of a message. - \value NoType The message type is not defined. - \value Mms The message is an MMS, Multimedia Messaging Service object. - \value Sms The message is an SMS, Short Message Service object. - \value Email The message is an Email, Internet Message Format object. - \value Xmpp The message is an XMPP, Extensible Messaging and Presence Protocol object. - \value AnyType Bitflag value that matches any message type defined. + \value NoType The message type is not defined. + \value Mms The message is an MMS, Multimedia Messaging Service object. + \value Sms The message is an SMS, Short Message Service object. + \value Email The message is an Email, Internet Message Format object. + \value InstantMessage The message is an instant message object, such as XMPP. + \value AnyType Bitflag value that matches any message type defined. \sa type(), setType() */ @@ -238,7 +238,7 @@ Returns the standard folder of the message. - Defaults to InboxFolder. + Defaults to DraftsFolder. */ /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessage.h --- a/qtmobility/src/messaging/qmessage.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessage.h Mon May 03 13:18:40 2010 +0300 @@ -62,11 +62,11 @@ public: enum Type { - NoType = 0, - Mms = 0x1, - Sms = 0x2, - Email = 0x4, - Xmpp = 0x8, + NoType = 0, + Mms = 0x1, + Sms = 0x2, + Email = 0x4, + InstantMessage = 0x8, // Extensible AnyType = 0xFFFFFFFF }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessage_maemo.cpp --- a/qtmobility/src/messaging/qmessage_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessage_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -53,6 +53,16 @@ return result; } +QMessagePrivate* QMessagePrivate::implementation(const QMessage &message) +{ + return message.d_ptr; +} + +QMessageContentContainerPrivate* QMessagePrivate::containerImplementation(const QMessage &message) +{ + return ((QMessageContentContainer*)&message)->d_ptr; +} + QString QMessagePrivate::senderName(const QMessage &message) { return message.d_ptr->_senderName; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessage_p.h --- a/qtmobility/src/messaging/qmessage_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessage_p.h Mon May 03 13:18:40 2010 +0300 @@ -73,6 +73,7 @@ static QMessage convert(const QMailMessage &message); static QMailMessage convert(const QMessage &message); static QMailMessage *convert(QMessage *message); + //static const QMailMessage *convert(const QMessage *message); #else Q_DECLARE_PUBLIC(QMessage) @@ -87,7 +88,7 @@ _contentFormat(0), #endif _size(0), - _standardFolder(QMessage::InboxFolder), + _standardFolder(QMessage::DraftsFolder), _type(QMessage::NoType), _status(0), _priority(QMessage::NormalPriority), @@ -102,7 +103,6 @@ } QMessage *q_ptr; - #if defined(Q_OS_WIN) struct { unsigned properties : 1; @@ -135,6 +135,13 @@ bool _modified; QMessageContentContainerId _bodyId; +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + QString _url; + + static QMessagePrivate* implementation(const QMessage &message); + static QMessageContentContainerPrivate* containerImplementation(const QMessage &message); +#endif + static QMessage from(const QMessageId &id); static QString senderName(const QMessage &message); static void setSenderName(const QMessage &message, const QString &senderName); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessage_qmf.cpp --- a/qtmobility/src/messaging/qmessage_qmf.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessage_qmf.cpp Mon May 03 13:18:40 2010 +0300 @@ -97,7 +97,7 @@ } } - return QMessage::InboxFolder; + return QMessage::DraftsFolder; } QMessage QMessagePrivate::convert(const QMailMessage &message) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessage_stub.cpp --- a/qtmobility/src/messaging/qmessage_stub.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessage_stub.cpp Mon May 03 13:18:40 2010 +0300 @@ -100,7 +100,7 @@ QMessage::StandardFolder QMessage::standardFolder() const { - return QMessage::InboxFolder; // stub + return QMessage::DraftsFolder; // stub } QMessageAddress QMessage::from() const diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessage_win.cpp --- a/qtmobility/src/messaging/qmessage_win.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessage_win.cpp Mon May 03 13:18:40 2010 +0300 @@ -525,7 +525,7 @@ // Forward the text content inline QStringList addresses; foreach (const QMessageAddress &address, to()) { - addresses.append(address.recipient()); + addresses.append(address.addressee()); } QString existingText(textContent()); @@ -533,7 +533,7 @@ QString prefix(QString("\r\n----- %1 -----\r\n\r\n").arg(qApp->translate("QMessage", "Forwarded Message"))); prefix.append(QString("%1: %2\r\n").arg(qApp->translate("QMessage", "Subject")).arg(subject())); prefix.append(QString("%1: %2\r\n").arg(qApp->translate("QMessage", "Date")).arg(date().toString())); - prefix.append(QString("%1: %2\r\n").arg(qApp->translate("QMessage", "From")).arg(from().recipient())); + prefix.append(QString("%1: %2\r\n").arg(qApp->translate("QMessage", "From")).arg(from().addressee())); prefix.append(QString("%1: %2\r\n").arg(qApp->translate("QMessage", "To")).arg(addresses.join(","))); QString postfix("\r\n\r\n-----------------------------\r\n"); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageaccount_maemo.cpp --- a/qtmobility/src/messaging/qmessageaccount_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageaccount_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,7 @@ #include "qmessageaccount.h" #include "qmessageaccount_p.h" #include "qmessagemanager.h" +#include "modestengine_maemo_p.h" QTM_BEGIN_NAMESPACE @@ -54,6 +55,11 @@ return result; } +QMessageAccountPrivate* QMessageAccountPrivate::implementation(const QMessageAccount &account) +{ + return account.d_ptr; +} + QMessageAccount::QMessageAccount() : d_ptr(new QMessageAccountPrivate(this)) { @@ -103,7 +109,14 @@ QMessageAccountId QMessageAccount::defaultAccount(QMessage::Type type) { - //TODO: + QMessageAccountId accountId; + + if (type == QMessage::Email) { + accountId = ModestEngine::instance()->defaultAccount(); + } + //TODO: Default SMS Account + + return accountId; } QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageaccount_p.h --- a/qtmobility/src/messaging/qmessageaccount_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageaccount_p.h Mon May 03 13:18:40 2010 +0300 @@ -64,9 +64,13 @@ #endif QMessage::TypeFlags _types; -#if defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) +#if defined(Q_OS_WIN) static QMessageAccount from(const QMessageAccountId &id, const QString &name, const QMessageAddress &address, const QMessage::TypeFlags &types); #endif +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + static QMessageAccount from(const QMessageAccountId &id, const QString &name, const QMessageAddress &address, const QMessage::TypeFlags &types); + static QMessageAccountPrivate* implementation(const QMessageAccount &account); +#endif #if defined(Q_OS_SYMBIAN) static QMessageAccount from(const QMessageAccountId &id, const QString &name, long int service1EntryId, long int service2EntryId, const QMessage::TypeFlags &types); #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageaccountid_maemo.cpp --- a/qtmobility/src/messaging/qmessageaccountid_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageaccountid_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,8 @@ #include "qmessageaccountid.h" #include "qmessageaccountid_p.h" +#include + QTM_BEGIN_NAMESPACE QMessageAccountId::QMessageAccountId() @@ -99,10 +101,10 @@ long left = 0; long right = 0; if (d_ptr) { - left = d_ptr->_id.toLong(); + left = qHash(d_ptr->_id); } if (other.d_ptr) { - right = other.d_ptr->_id.toLong(); + right = qHash(other.d_ptr->_id); } return (left < right); @@ -124,7 +126,7 @@ uint qHash(const QMessageAccountId &id) { - //TODO: return qHash(id.toString()); + return qHash(id.toString()); } QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageaccountid_symbian.cpp --- a/qtmobility/src/messaging/qmessageaccountid_symbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageaccountid_symbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,7 +40,7 @@ ****************************************************************************/ #include "qmessageaccountid.h" #include "qmessageaccountid_p.h" -#include +#include QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageaddress.cpp --- a/qtmobility/src/messaging/qmessageaddress.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageaddress.cpp Mon May 03 13:18:40 2010 +0300 @@ -52,7 +52,7 @@ \ingroup messaging - A message address consists of a recipient string and a type. + A message address consists of an addressee string and a type. */ /*! @@ -60,10 +60,10 @@ This enum type is used to describe the type of a message address. - \value System A system address. - \value Phone A telephony address. - \value Email An Email, Internet Message Format address. - \value Xmpp An XMPP, Extensible Messaging and Presence Protocol address. + \value System A system address. + \value Phone A telephony address. + \value Email An Email, Internet Message Format address. + \value InstantMessage An Instant Messaging address. \sa type(), setType() */ @@ -78,13 +78,13 @@ } /*! - Constructs a message address with the type \a type and the recipient address \a recipient. + Constructs a message address with the given \a type and \a addressee. */ -QMessageAddress::QMessageAddress(Type type, const QString &recipient) +QMessageAddress::QMessageAddress(Type type, const QString &addressee) : d_ptr(new QMessageAddressPrivate(this)) { d_ptr->type = type; - d_ptr->recipient = recipient; + d_ptr->addressee = addressee; } /*! @@ -100,7 +100,7 @@ QMessageAddress& QMessageAddress::operator=(const QMessageAddress& other) { if (&other != this) { - d_ptr->recipient = other.d_ptr->recipient; + d_ptr->addressee = other.d_ptr->addressee; d_ptr->type = other.d_ptr->type; } @@ -119,7 +119,7 @@ /*! \internal */ bool QMessageAddress::operator==(const QMessageAddress& other) const { - return ((d_ptr->type == other.d_ptr->type) && (d_ptr->recipient == other.d_ptr->recipient)); + return ((d_ptr->type == other.d_ptr->type) && (d_ptr->addressee == other.d_ptr->addressee)); } /*! \internal */ @@ -129,23 +129,23 @@ } /*! - Returns the recipient. + Returns the addressee. - \sa setRecipient() + \sa setAddressee() */ -QString QMessageAddress::recipient() const +QString QMessageAddress::addressee() const { - return d_ptr->recipient; + return d_ptr->addressee; } /*! - Sets the recipient to \a recipient. + Sets the addressee to \a addressee. - \sa recipient() + \sa addressee() */ -void QMessageAddress::setRecipient(const QString &recipient) +void QMessageAddress::setAddressee(const QString &addressee) { - d_ptr->recipient = recipient; + d_ptr->addressee = addressee; } /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageaddress.h --- a/qtmobility/src/messaging/qmessageaddress.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageaddress.h Mon May 03 13:18:40 2010 +0300 @@ -57,12 +57,12 @@ System = 1, Phone, Email, - Xmpp + InstantMessage // Extensible }; QMessageAddress(); - QMessageAddress(Type type, const QString &recipient); + QMessageAddress(Type type, const QString &addressee); QMessageAddress(const QMessageAddress &other); virtual ~QMessageAddress(); @@ -75,8 +75,8 @@ Type type() const; void setType(Type type); - QString recipient() const; - void setRecipient(const QString &recipient); + QString addressee() const; + void setAddressee(const QString &addressee); static void parseEmailAddress(const QString& emailAddress, QString *name, QString *address, QString *suffix = 0, bool *startDelimeterFound = 0, bool *endDelimeterFound = 0); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageaddress_p.h --- a/qtmobility/src/messaging/qmessageaddress_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageaddress_p.h Mon May 03 13:18:40 2010 +0300 @@ -57,7 +57,7 @@ QMessageAddress *q_ptr; QMessageAddress::Type type; - QString recipient; + QString addressee; }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagecontentcontainer.cpp --- a/qtmobility/src/messaging/qmessagecontentcontainer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagecontentcontainer.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,8 @@ #include "qmessagecontentcontainer.h" #ifdef Q_OS_SYMBIAN #include "qmessagecontentcontainer_symbian_p.h" +#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) +#include "qmessagecontentcontainer_maemo_p.h" #else #include "qmessagecontentcontainer_p.h" #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagecontentcontainer_maemo.cpp --- a/qtmobility/src/messaging/qmessagecontentcontainer_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagecontentcontainer_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,14 +40,16 @@ ****************************************************************************/ #include "qmessagecontentcontainer.h" #include "qmessagecontentcontainer_maemo_p.h" +#include "modestengine_maemo_p.h" + #include #include #include QTM_BEGIN_NAMESPACE -QMessageContentContainer QMessageContentContainerPrivate::from(long int messageId, - unsigned int attachmentId, +QMessageContentContainer QMessageContentContainerPrivate::from(QString &messageId, + QString &attachmentId, QByteArray &name, QByteArray &mimeType, QByteArray &mimeSubType, @@ -110,8 +112,8 @@ _size = 0; _header.clear(); _attachments.clear(); - _containingMessageId = 0; - _attachmentId = 0; + _containingMessageId = QString(); + _attachmentId.clear(); } void QMessageContentContainerPrivate::setContentType(const QByteArray &type, const QByteArray &subType, const QByteArray &charset) @@ -310,10 +312,12 @@ QString QMessageContentContainer::textContent() const { - //TODO: if (d_ptr->_textContent.isEmpty() && d_ptr->_attachmentId != 0) { - //TODO: CMTMEngine* mtmEngine = CMTMEngine::instance(); - //TODO: const_cast(d_ptr->_textContent) = mtmEngine->attachmentTextContent(d_ptr->_containingMessageId, d_ptr->_attachmentId, d_ptr->_charset); - //TODO: } + if (d_ptr->_textContent.isEmpty() && d_ptr->_attachmentId != 0) { + ModestEngine *engine = ModestEngine::instance(); + d_ptr->_textContent = engine->getMimePart(QMessageId(d_ptr->_containingMessageId), + d_ptr->_attachmentId); + d_ptr->_size = d_ptr->_textContent.size(); + } if (!d_ptr->_textContent.isEmpty()) { return d_ptr->_textContent; } @@ -328,10 +332,13 @@ QByteArray QMessageContentContainer::content() const { - //TODO: if (d_ptr->_content.isEmpty() && d_ptr->_attachmentId != 0) { - //TODO: CMTMEngine* mtmEngine = CMTMEngine::instance(); - //TODO: const_cast(d_ptr->_content) = mtmEngine->attachmentContent(d_ptr->_containingMessageId, d_ptr->_attachmentId); - //TODO: } + if (d_ptr->_content.isEmpty() && d_ptr->_attachmentId != 0) { + ModestEngine *engine = ModestEngine::instance(); + d_ptr->_content = engine->getMimePart( + QMessageId (d_ptr->_containingMessageId), + d_ptr->_attachmentId); + d_ptr->_size = d_ptr->_content.size(); + } return d_ptr->_content; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagecontentcontainer_maemo_p.h --- a/qtmobility/src/messaging/qmessagecontentcontainer_maemo_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagecontentcontainer_maemo_p.h Mon May 03 13:18:40 2010 +0300 @@ -72,13 +72,13 @@ QList _attachments; QMultiMap _header; - long int _containingMessageId; - unsigned int _attachmentId; + QString _containingMessageId; + QString _attachmentId; QMessageContentContainerPrivate(QMessageContentContainer *contentContainer) : q_ptr(contentContainer), _message(0), _available(false), _size(0), - _containingMessageId(0), _attachmentId(0) + _attachmentId(0) { } @@ -124,7 +124,7 @@ static QByteArray attachmentFilename(const QMessageContentContainer& container); - static QMessageContentContainer from(long int messageId, unsigned int attachmentId, QByteArray &name, + static QMessageContentContainer from(QString &messageId, QString &attachmentId, QByteArray &name, QByteArray &mimeType, QByteArray &mimeSubType, int size); static QMessageContentContainerPrivate* implementation(const QMessageContentContainer &container); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagefilter_maemo.cpp --- a/qtmobility/src/messaging/qmessagefilter_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagefilter_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -236,13 +236,13 @@ QMessageDataComparator::EqualityComparator cmp(static_cast(filter._comparatorValue)); if (cmp == QMessageDataComparator::Equal) { if (filter._value.toString().length() > 0) { - if (message.from().recipient().compare(filter._value.toString(),caseSensitivity) == 0) { + if (message.from().addressee().compare(filter._value.toString(),caseSensitivity) == 0) { return true; } } } else { // NotEqual if (filter._value.toString().length() > 0) { - if (message.from().recipient().compare(filter._value.toString(),caseSensitivity) != 0) { + if (message.from().addressee().compare(filter._value.toString(),caseSensitivity) != 0) { return true; } } else { @@ -252,11 +252,11 @@ } else if (filter._comparatorType == QMessageFilterPrivate::Inclusion) { QMessageDataComparator::InclusionComparator cmp(static_cast(filter._comparatorValue)); if (cmp == QMessageDataComparator::Includes) { - if (message.from().recipient().contains(filter._value.toString(),caseSensitivity)) { + if (message.from().addressee().contains(filter._value.toString(),caseSensitivity)) { return true; } } else { // Excludes - if (!message.from().recipient().contains(filter._value.toString(),caseSensitivity)) { + if (!message.from().addressee().contains(filter._value.toString(),caseSensitivity)) { return true; } } @@ -271,7 +271,7 @@ // Check to addresses QMessageAddressList addrList = message.to(); for (int i=0; i < addrList.count(); i++) { - if (addrList[i].recipient().contains(filter._value.toString(),caseSensitivity)) { + if (addrList[i].addressee().contains(filter._value.toString(),caseSensitivity)) { includes = true; break; } @@ -280,7 +280,7 @@ // Check cc addresses addrList = message.cc(); for (int i=0; i < addrList.count(); i++) { - if (addrList[i].recipient().contains(filter._value.toString(),caseSensitivity)) { + if (addrList[i].addressee().contains(filter._value.toString(),caseSensitivity)) { includes = true; break; } @@ -290,7 +290,7 @@ // Check bcc addresses addrList = message.bcc(); for (int i=0; i < addrList.count(); i++) { - if (addrList[i].recipient().contains(filter._value.toString(),caseSensitivity)) { + if (addrList[i].addressee().contains(filter._value.toString(),caseSensitivity)) { includes = true; break; } @@ -497,30 +497,30 @@ if (filter._comparatorType == QMessageFilterPrivate::Equality) { QMessageDataComparator::EqualityComparator cmp(static_cast(filter._comparatorValue)); if (cmp == QMessageDataComparator::Equal) { - if (message.size() == filter._value.toUInt()) { + if (message.size() == filter._value.toInt()) { return true; } } else { // NotEqual - if (message.size() != filter._value.toUInt()) { + if (message.size() != filter._value.toInt()) { return true; } } } else if (filter._comparatorType == QMessageFilterPrivate::Relation) { QMessageDataComparator::RelationComparator cmp(static_cast(filter._comparatorValue)); if (cmp == QMessageDataComparator::LessThan) { - if (message.size() < filter._value.toUInt()) { + if (message.size() < filter._value.toInt()) { return true; } } else if (cmp == QMessageDataComparator::LessThanEqual) { - if (message.size() <= filter._value.toUInt()) { + if (message.size() <= filter._value.toInt()) { return true; } } else if (cmp == QMessageDataComparator::GreaterThan) { - if (message.size() > filter._value.toUInt()) { + if (message.size() > filter._value.toInt()) { return true; } } else { // GreaterThanEqual - if (message.size() >= filter._value.toUInt()) { + if (message.size() >= filter._value.toInt()) { return true; } } @@ -651,16 +651,16 @@ QMessageFilter::QMessageFilter() : d_ptr(new QMessageFilterPrivate(this)) { - d_ptr->_matchFlags = 0; + d_ptr->_matchFlags = 0; - d_ptr->_valid = true; // Empty filter is valid - d_ptr->_notFilter = false; - d_ptr->_notFilterForComparator = false; - d_ptr->_ids = QMessageIdList(); - d_ptr->_value = QVariant(); - d_ptr->_field = QMessageFilterPrivate::None; - d_ptr->_comparatorType = QMessageFilterPrivate::Equality; - d_ptr->_comparatorValue = 0; + d_ptr->_valid = true; // Empty filter is valid + d_ptr->_notFilter = false; + d_ptr->_notFilterForComparator = false; + d_ptr->_ids = QMessageIdList(); + d_ptr->_value = QVariant(); + d_ptr->_field = QMessageFilterPrivate::None; + d_ptr->_comparatorType = QMessageFilterPrivate::Equality; + d_ptr->_comparatorValue = 0; d_ptr->_accountFilter = 0; d_ptr->_folderFilter = 0; } @@ -728,7 +728,7 @@ bool QMessageFilter::isEmpty() const { return ((d_ptr->_field == QMessageFilterPrivate::None) && - (d_ptr->_notFilter == false) && + (d_ptr->_notFilter == false) && (d_ptr->_filterList.count()) == 0); } @@ -741,13 +741,13 @@ { QMessageFilter result(*this); if (result.isEmpty()) { - result.d_ptr->_notFilter = true; + result.d_ptr->_notFilter = true; } else { - if (result.d_ptr->_notFilter) { - result.d_ptr->_notFilter = false; - } else { - QMessageFilterPrivate::applyNot(result); - } + if (result.d_ptr->_notFilter) { + result.d_ptr->_notFilter = false; + } else { + QMessageFilterPrivate::applyNot(result); + } } return result; } @@ -768,27 +768,27 @@ const QMessageFilter& QMessageFilter::operator&=(const QMessageFilter& other) { - if (&other == this) { - return *this; - } + if (&other == this) { + return *this; + } - if (isEmpty()) { - *this = other; - return *this; - } + if (isEmpty()) { + *this = other; + return *this; + } - if (other.isEmpty()) { - return *this; - } + if (other.isEmpty()) { + return *this; + } - if (d_ptr->_notFilter && !d_ptr->_notFilterForComparator) { - return *this; - } + if (d_ptr->_notFilter && !d_ptr->_notFilterForComparator) { + return *this; + } - if (other.d_ptr->_notFilter && !d_ptr->_notFilterForComparator) { - *this = other; - return *this; - } + if (other.d_ptr->_notFilter && !d_ptr->_notFilterForComparator) { + *this = other; + return *this; + } if (d_ptr->_filterList.count() == 0) { QMessageFilter newFilter = QMessageFilter(*this); @@ -829,27 +829,27 @@ const QMessageFilter& QMessageFilter::operator|=(const QMessageFilter& other) { - if (&other == this) { - return *this; - } + if (&other == this) { + return *this; + } - if (isEmpty()) { - return *this; - } + if (isEmpty()) { + return *this; + } - if (other.isEmpty()) { - *this = other; - return *this; - } + if (other.isEmpty()) { + *this = other; + return *this; + } - if (d_ptr->_notFilter && !d_ptr->_notFilterForComparator) { - *this = other; - return *this; - } + if (d_ptr->_notFilter && !d_ptr->_notFilterForComparator) { + *this = other; + return *this; + } - if (other.d_ptr->_notFilter && !d_ptr->_notFilterForComparator) { - return *this; - } + if (other.d_ptr->_notFilter && !d_ptr->_notFilterForComparator) { + return *this; + } if (d_ptr->_filterList.count() == 0) { QMessageFilter newFilter = QMessageFilter(*this); @@ -1048,7 +1048,7 @@ QMessageFilter QMessageFilter::byReceptionTimeStamp(const QDateTime &value, QMessageDataComparator::EqualityComparator cmp) { QMessageFilter result; - result.d_ptr->_field = QMessageFilterPrivate::TimeStamp; + result.d_ptr->_field = QMessageFilterPrivate::ReceptionTimeStamp; result.d_ptr->_value = value; result.d_ptr->_comparatorType = QMessageFilterPrivate::Equality; result.d_ptr->_comparatorValue = static_cast(cmp); @@ -1059,7 +1059,7 @@ QMessageFilter QMessageFilter::byReceptionTimeStamp(const QDateTime &value, QMessageDataComparator::RelationComparator cmp) { QMessageFilter result; - result.d_ptr->_field = QMessageFilterPrivate::TimeStamp; + result.d_ptr->_field = QMessageFilterPrivate::ReceptionTimeStamp; result.d_ptr->_value = value; result.d_ptr->_comparatorType = QMessageFilterPrivate::Relation; result.d_ptr->_comparatorValue = static_cast(cmp); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagefilter_symbian.cpp --- a/qtmobility/src/messaging/qmessagefilter_symbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagefilter_symbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -236,13 +236,13 @@ QMessageDataComparator::EqualityComparator cmp(static_cast(filter._comparatorValue)); if (cmp == QMessageDataComparator::Equal) { if (filter._value.toString().length() > 0) { - if (message.from().recipient().compare(filter._value.toString(),caseSensitivity) == 0) { + if (message.from().addressee().compare(filter._value.toString(),caseSensitivity) == 0) { return true; } } } else { // NotEqual if (filter._value.toString().length() > 0) { - if (message.from().recipient().compare(filter._value.toString(),caseSensitivity) != 0) { + if (message.from().addressee().compare(filter._value.toString(),caseSensitivity) != 0) { return true; } } else { @@ -252,11 +252,11 @@ } else if (filter._comparatorType == QMessageFilterPrivate::Inclusion) { QMessageDataComparator::InclusionComparator cmp(static_cast(filter._comparatorValue)); if (cmp == QMessageDataComparator::Includes) { - if (message.from().recipient().contains(filter._value.toString(),caseSensitivity)) { + if (message.from().addressee().contains(filter._value.toString(),caseSensitivity)) { return true; } } else { // Excludes - if (!message.from().recipient().contains(filter._value.toString(),caseSensitivity)) { + if (!message.from().addressee().contains(filter._value.toString(),caseSensitivity)) { return true; } } @@ -271,7 +271,7 @@ // Check to addresses QMessageAddressList addrList = message.to(); for (int i=0; i < addrList.count(); i++) { - if (addrList[i].recipient().contains(filter._value.toString(),caseSensitivity)) { + if (addrList[i].addressee().contains(filter._value.toString(),caseSensitivity)) { includes = true; break; } @@ -280,7 +280,7 @@ // Check cc addresses addrList = message.cc(); for (int i=0; i < addrList.count(); i++) { - if (addrList[i].recipient().contains(filter._value.toString(),caseSensitivity)) { + if (addrList[i].addressee().contains(filter._value.toString(),caseSensitivity)) { includes = true; break; } @@ -290,7 +290,7 @@ // Check bcc addresses addrList = message.bcc(); for (int i=0; i < addrList.count(); i++) { - if (addrList[i].recipient().contains(filter._value.toString(),caseSensitivity)) { + if (addrList[i].addressee().contains(filter._value.toString(),caseSensitivity)) { includes = true; break; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagefilter_win.cpp --- a/qtmobility/src/messaging/qmessagefilter_win.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagefilter_win.cpp Mon May 03 13:18:40 2010 +0300 @@ -534,14 +534,14 @@ if (filter.d_ptr->_field == QMessageFilterPrivate::Recipients) { QMessageAddressList addresses(message.to() + message.cc() + message.bcc()); foreach(QMessageAddress address, addresses) { - tmp = address.recipient(); + tmp = address.addressee(); if (!caseSensitive) { tmp = tmp.toLower(); } messageStrings.append(tmp); } } else if (filter.d_ptr->_field == QMessageFilterPrivate::Sender) { - tmp = message.from().recipient(); + tmp = message.from().addressee(); if (!caseSensitive) { tmp = tmp.toLower(); } @@ -1754,7 +1754,7 @@ QMessageFilter QMessageFilter::byType(QMessage::TypeFlags aType, QMessageDataComparator::InclusionComparator cmp) { - QMessage::TypeFlags type(aType & (QMessage::Sms | QMessage::Email)); // strip Mms, Xmpp + QMessage::TypeFlags type(aType & (QMessage::Sms | QMessage::Email)); // strip Mms, InstantMessage if (type == QMessage::Sms) { if (cmp == QMessageDataComparator::Includes) { return QMessageFilter::byParentAccountId(QMessageAccount::defaultAccount(QMessage::Sms), QMessageDataComparator::Equal); @@ -1774,7 +1774,7 @@ return QMessageFilter(); // inclusion, match all return ~QMessageFilter(); // exclusion, match none } - // Mms/Xmpp only + // Mms/InstantMessage only if (cmp == QMessageDataComparator::Includes) return ~QMessageFilter(); // mms only inclusion, match none return QMessageFilter(); // mms only exclusion, match all diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagefolderid_maemo.cpp --- a/qtmobility/src/messaging/qmessagefolderid_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagefolderid_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,8 @@ #include "qmessagefolderid.h" #include "qmessagefolderid_p.h" +#include + QTM_BEGIN_NAMESPACE QMessageFolderId::QMessageFolderId() @@ -124,7 +126,7 @@ uint qHash(const QMessageFolderId &id) { - //TODO: return qHash(id.toString()); + return qHash(id.toString()); } QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagefolderid_symbian.cpp --- a/qtmobility/src/messaging/qmessagefolderid_symbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagefolderid_symbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,7 +40,7 @@ ****************************************************************************/ #include "qmessagefolderid.h" #include "qmessagefolderid_p.h" -#include +#include QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageid_maemo.cpp --- a/qtmobility/src/messaging/qmessageid_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageid_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,6 +40,7 @@ ****************************************************************************/ #include "qmessageid.h" +#include QTM_BEGIN_NAMESPACE @@ -123,7 +124,7 @@ uint qHash(const QMessageId &id) { - //TODO: return qHash(id.toString()); + return qHash(id.toString()); } QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageid_symbian.cpp --- a/qtmobility/src/messaging/qmessageid_symbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageid_symbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ #include "qmessageid.h" -#include +#include QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageservice_maemo.cpp --- a/qtmobility/src/messaging/qmessageservice_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageservice_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,31 +39,21 @@ ** ****************************************************************************/ #include "qmessageservice.h" +#include "qmessageservice_maemo_p.h" + +#include "maemohelpers_p.h" #include "modestengine_maemo_p.h" #include "telepathyengine_maemo_p.h" -#include +#include "eventloggerengine_maemo_p.h" QTM_BEGIN_NAMESPACE -class QMessageServicePrivate : public QObject -{ -public: - QMessageServicePrivate(QMessageService* parent); - ~QMessageServicePrivate(); - - void setFinished(bool successful); - -public: - QMessageService* q_ptr; - QMessageService::State _state; - bool _active; - QMessageManager::Error _error; -}; - QMessageServicePrivate::QMessageServicePrivate(QMessageService* parent) : q_ptr(parent), _state(QMessageService::InactiveState), - _active(false) + _error(QMessageManager::NoError), + _active(false), _actionId(-1), + _pendingRequestCount(0) { } @@ -71,22 +61,271 @@ { } +QMessageServicePrivate* QMessageServicePrivate::implementation(const QMessageService &service) +{ + return service.d_ptr; +} + +bool QMessageServicePrivate::queryMessages(QMessageService &messageService, + const QMessageFilter &filter, + const QMessageSortOrder &sortOrder, + uint limit, uint offset, + EnginesToCall enginesToCall) +{ + qDebug() << "QMessageServicePrivate::queryMessages 1"; + if (_active) { + return false; + } + + _ids.clear(); + _sorted = true; + _filtered = true; + + _active = true; + _error = QMessageManager::NoError; + bool modestEngineCalled=false; + + if (enginesToCall & EnginesToCallTelepathy) { + _ids= EventLoggerEngine::instance()->filterAndOrderMessages(filter,sortOrder,QString(),QMessageDataComparator::MatchFlags()); + qDebug() << "QMessageServicePrivate::queryMessages filterAndOrderMessages:"; + } + + _pendingRequestCount = 0; + if (enginesToCall & EnginesToCallModest) { + qDebug() << "QMessageServicePrivate::queryMessages modest"; + modestEngineCalled=true; + if (ModestEngine::instance()->queryMessages(messageService, filter, sortOrder, limit, offset)) { + qDebug() << "QMessageServicePrivate::queryMessages modest done"; + _pendingRequestCount++; + + } + qDebug() << "QMessageServicePrivate::queryMessages modest done 2"; + } + + if (!modestEngineCalled && enginesToCall & EnginesToCallTelepathy && _pendingRequestCount==0 ) { + qDebug() << "QMessageServicePrivate::queryMessages only eventloggerengine"; + if (!_sorted) { + MessagingHelper::orderMessages(_ids, sortOrder); + } + MessagingHelper::applyOffsetAndLimitToMessageIdList(_ids, limit, offset); + + emit q_ptr->messagesFound(_ids); + + qDebug() << "QMessageServicePrivate::queryMessages setFinished(true)"; + setFinished(true); + + _ids.clear(); + qDebug() << "QMessageServicePrivate::queryMessages return true"; + return true; // Operation initialized and completed + } + + + if (_pendingRequestCount > 0) { + _filter = filter; + _sortOrder = sortOrder; + _limit = limit; + _offset = offset; + + _state = QMessageService::ActiveState; + emit messageService.stateChanged(_state); + } else { + qDebug() << "QMessageServicePrivate::queryMessages setFinixhed() active=" << _active; + if(_active)setFinished(false); + } + + return _active; +} + +bool QMessageServicePrivate::queryMessages(QMessageService &messageService, + const QMessageFilter &filter, + const QString &body, + QMessageDataComparator::MatchFlags matchFlags, + const QMessageSortOrder &sortOrder, + uint limit, uint offset, + EnginesToCall enginesToCall) +{ + qDebug() << "QMessageServicePrivate::queryMessages 2"; + if (_active) { + return false; + } + + _ids.clear(); + _sorted = true; + _filtered = true; + + _active = true; + _error = QMessageManager::NoError; + + _pendingRequestCount = 0; + + bool modestEngineCalled=false; + + if (enginesToCall & EnginesToCallTelepathy) { + _ids= EventLoggerEngine::instance()->filterAndOrderMessages(filter,sortOrder,body,matchFlags); + } + + if (enginesToCall & EnginesToCallModest) { + modestEngineCalled=true; + if (ModestEngine::instance()->queryMessages(messageService, filter, body, matchFlags, + sortOrder, limit, offset)) { + _pendingRequestCount++; + } + } + + if (!modestEngineCalled && enginesToCall & EnginesToCallTelepathy && _pendingRequestCount==0 ) { + if (!_sorted) { + MessagingHelper::orderMessages(_ids, sortOrder); + } + MessagingHelper::applyOffsetAndLimitToMessageIdList(_ids, limit, offset); + + emit q_ptr->messagesFound(_ids); + setFinished(true); + + _ids.clear(); + qDebug() << "QMessageServicePrivate::queryMessages return true"; + return true; // Operation initialized and completed + } + + if (_pendingRequestCount > 0) { + _filter = filter; + _sortOrder = sortOrder; + _limit = limit; + _offset = offset; + + _state = QMessageService::ActiveState; + emit stateChanged(_state); + } else { + if(_active)setFinished(false); + } + + return _active; +} + +bool QMessageServicePrivate::countMessages(QMessageService &messageService, + const QMessageFilter &filter, + EnginesToCall enginesToCall) +{ + if (_active) { + return false; + } + + _count = 0; + + _active = true; + _error = QMessageManager::NoError; + + _pendingRequestCount = 0; + if (enginesToCall & EnginesToCallModest) { + if (ModestEngine::instance()->countMessages(messageService, filter)) { + _pendingRequestCount++; + } + } + + //TODO: SMS count support + //if (enginesToCall & EnginesToCallTelepathy) { + //} + + if (_pendingRequestCount > 0) { + _state = QMessageService::ActiveState; + emit stateChanged(_state); + } else { + setFinished(false); + } + + return _active; +} + + +void QMessageServicePrivate::setFinished(bool successful) +{ + qDebug() << "setFinished" << successful; + if (!successful && _pendingRequestCount > 0) { + _pendingRequestCount--; + } + + if (_pendingRequestCount == 0) { + if (!successful && (_error == QMessageManager::NoError)) { + // We must report an error of some sort + _error = QMessageManager::RequestIncomplete; + } + qDebug() << "emit stateChanged(FinishedState)"; + _state = QMessageService::FinishedState; + _active = false; + emit q_ptr->stateChanged(_state); + } +} + +void QMessageServicePrivate::stateChanged(QMessageService::State state) +{ + _state = state; + qDebug() <<" StateChanged" << state; + emit q_ptr->stateChanged(_state); +} + +void QMessageServicePrivate::messagesFound(const QMessageIdList &ids, bool isFiltered, bool isSorted) +{ + qDebug() <<" MessagesFound"; + _pendingRequestCount--; + + if (!isFiltered) { + _filtered = false; + } + + if (!isSorted) { + _sorted = false; + } else { + if ((ids.count() > 0) && (_ids.count() > 0)) { + _sorted = false; + } + } + + _ids.append(ids); + + if (_pendingRequestCount == 0) { + if (!_filtered) { + MessagingHelper::filterMessages(_ids, _filter); + } + if (!_sorted) { + MessagingHelper::orderMessages(_ids, _sortOrder); + } + MessagingHelper::applyOffsetAndLimitToMessageIdList(_ids, _limit, _offset); + + emit q_ptr->messagesFound(_ids); + + setFinished(true); + + _ids.clear(); + _filter = QMessageFilter(); + _sortOrder = QMessageSortOrder(); + } +} + +void QMessageServicePrivate::messagesCounted(int count) +{ + _pendingRequestCount--; + _count += count; + if (_pendingRequestCount == 0) { + emit q_ptr->messagesCounted(_count); + + setFinished(true); + + _count = 0; + } +} + +void QMessageServicePrivate::progressChanged(uint value, uint total) +{ + emit q_ptr->progressChanged(value, total); +} + + + QMessageService::QMessageService(QObject *parent) : QObject(parent), d_ptr(new QMessageServicePrivate(this)) { -} - -void QMessageServicePrivate::setFinished(bool successful) -{ - if (!successful && (_error == QMessageManager::NoError)) { - // We must report an error of some sort - _error = QMessageManager::RequestIncomplete; - } - - _state = QMessageService::FinishedState; - emit q_ptr->stateChanged(_state); - _active = false; + EventLoggerEngine::instance(); + TelepathyEngine::instance(); } QMessageService::~QMessageService() @@ -95,63 +334,22 @@ bool QMessageService::queryMessages(const QMessageFilter &filter, const QMessageSortOrder &sortOrder, uint limit, uint offset) { - if (d_ptr->_active) { - return false; - } - - d_ptr->_active = true; - d_ptr->_error = QMessageManager::NoError; - - if (ModestEngine::instance()->queryMessages(*this, filter, sortOrder, limit, offset)) { - d_ptr->_state = QMessageService::ActiveState; - emit stateChanged(d_ptr->_state); - } else { - d_ptr->setFinished(false); - } - - return d_ptr->_active; + return d_ptr->queryMessages(*this, filter, sortOrder, limit, offset); } bool QMessageService::queryMessages(const QMessageFilter &filter, const QString &body, QMessageDataComparator::MatchFlags matchFlags, const QMessageSortOrder &sortOrder, uint limit, uint offset) { - if (d_ptr->_active) { - return false; - } - - d_ptr->_active = true; - d_ptr->_error = QMessageManager::NoError; - - if (ModestEngine::instance()->queryMessages(*this, filter, body, matchFlags, sortOrder, limit, offset)) { - d_ptr->_state = QMessageService::ActiveState; - emit stateChanged(d_ptr->_state); - } else { - d_ptr->setFinished(false); - } - - return d_ptr->_active; + return d_ptr->queryMessages(*this, filter, body, matchFlags, sortOrder, limit, offset); } bool QMessageService::countMessages(const QMessageFilter &filter) { - if (d_ptr->_active) { - return false; - } - - d_ptr->_active = true; - d_ptr->_error = QMessageManager::NoError; - - if (ModestEngine::instance()->countMessages(*this, filter)) { - d_ptr->_state = QMessageService::ActiveState; - emit stateChanged(d_ptr->_state); - } else { - d_ptr->setFinished(false); - } - - return d_ptr->_active; + return d_ptr->countMessages(*this, filter); } bool QMessageService::send(QMessage &message) { + // qDebug() << "QMessageService::send"; if (d_ptr->_active) { return false; } @@ -164,13 +362,33 @@ d_ptr->_state = QMessageService::ActiveState; emit stateChanged(d_ptr->_state); + QMessageAccountId accountId = message.parentAccountId(); + QMessage::Type msgType = QMessage::NoType; + // Check message type - if(message.type() == QMessage::AnyType || message.type() == QMessage::NoType) { - d_ptr->_error = QMessageManager::ConstraintFailure; - retVal = false; + if (message.type() == QMessage::AnyType || message.type() == QMessage::NoType) { + QMessage::TypeFlags types = QMessage::NoType; + if (accountId.isValid()) { + // ParentAccountId was defined => Message type can be read + // from parent account + QMessageAccount account = QMessageAccount(accountId); + QMessage::TypeFlags types = account.messageTypes(); + if (types & QMessage::Sms) { + msgType = QMessage::Sms; + } else if (account.messageTypes() & QMessage::InstantMessage) { + msgType = QMessage::InstantMessage; + } else if (types & QMessage::Mms) { + msgType = QMessage::Mms; + } else if (types & QMessage::Email) { + msgType = QMessage::Email; + } + } + if (msgType == QMessage::NoType) { + d_ptr->_error = QMessageManager::ConstraintFailure; + retVal = false; + } } - QMessageAccountId accountId = message.parentAccountId(); if (retVal) { // Check account if (!accountId.isValid()) { @@ -185,7 +403,7 @@ QMessageAccount account(accountId); if (retVal) { // Check account/message type compatibility - if (!(account.messageTypes() & message.type())) { + if (!(account.messageTypes() & message.type()) && (msgType == QMessage::NoType)) { d_ptr->_error = QMessageManager::ConstraintFailure; retVal = false; } @@ -196,21 +414,21 @@ QMessageAddressList recipients = message.to() + message.bcc() + message.cc(); if (recipients.isEmpty()) { d_ptr->_error = QMessageManager::ConstraintFailure; - return false; + retVal = false; } } - QMessage outgoing(message); + if (retVal) { + QMessage outgoing(message); - // Set default account if unset - if (!outgoing.parentAccountId().isValid()) { - outgoing.setParentAccountId(accountId); - } + // Set default account if unset + if (!outgoing.parentAccountId().isValid()) { + outgoing.setParentAccountId(accountId); + } - if (retVal) { if (account.messageTypes() & QMessage::Sms) { retVal = TelepathyEngine::instance()->sendMessage(message); - } else if (account.messageTypes() & QMessage::Xmpp) { + } else if (account.messageTypes() & QMessage::InstantMessage) { retVal = TelepathyEngine::instance()->sendMessage(message); } else if (account.messageTypes() & QMessage::Mms) { d_ptr->_error = QMessageManager::NotYetImplemented; @@ -275,19 +493,63 @@ bool QMessageService::show(const QMessageId& id) { - Q_UNUSED(id) - return false; // stub + if (d_ptr->_active) { + return false; + } + + if (!id.isValid()) { + d_ptr->_error = QMessageManager::InvalidId; + return false; + } + + d_ptr->_active = true; + d_ptr->_error = QMessageManager::NoError; + + bool retVal = true; + d_ptr->_state = QMessageService::ActiveState; + emit stateChanged(d_ptr->_state); + + if (id.toString().startsWith("MO_")) { + retVal = ModestEngine::instance()->showMessage(id); + } else { + retVal = false; + } + + d_ptr->setFinished(retVal); + return retVal; } bool QMessageService::exportUpdates(const QMessageAccountId &id) { - Q_UNUSED(id) - return false; // stub + if (d_ptr->_active) { + return false; + } + + if (!id.isValid()) { + d_ptr->_error = QMessageManager::InvalidId; + return false; + } + + d_ptr->_active = true; + d_ptr->_error = QMessageManager::NoError; + + bool retVal = true; + d_ptr->_state = QMessageService::ActiveState; + emit stateChanged(d_ptr->_state); + + if (id.toString().startsWith("MO_")) { + retVal = ModestEngine::instance()->exportUpdates(id); + } else { + retVal = false; + } + + d_ptr->setFinished(retVal); + return retVal; } QMessageService::State QMessageService::state() const { - return InactiveState; // stub + return d_ptr->_state; } void QMessageService::cancel() @@ -296,7 +558,7 @@ QMessageManager::Error QMessageService::error() const { - return QMessageManager::NoError; + return d_ptr->_error; } QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageservice_maemo_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/messaging/qmessageservice_maemo_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,97 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qmessageservice.h" + +QTM_BEGIN_NAMESPACE + +class QMessageServicePrivate +{ +public: + enum EnginesToCall + { + EnginesToCallModest = 0x1, + EnginesToCallTelepathy = 0x2, + // Extensible + EnginesToCallAll = 0xFFFFFFFF, + }; + + QMessageServicePrivate(QMessageService* parent); + ~QMessageServicePrivate(); + + static QMessageServicePrivate* implementation(const QMessageService &service); + + bool queryMessages(QMessageService &messageService, const QMessageFilter &filter, + const QMessageSortOrder &sortOrder, uint limit, uint offset, + EnginesToCall enginesToCall = EnginesToCallAll); + bool queryMessages(QMessageService &messageService, const QMessageFilter &filter, + const QString &body, QMessageDataComparator::MatchFlags matchFlags, + const QMessageSortOrder &sortOrder, uint limit, uint offset, + EnginesToCall enginesToCall = EnginesToCallAll); + bool countMessages(QMessageService &messageService, const QMessageFilter &filter, + EnginesToCall enginesToCall = EnginesToCallAll); + + void setFinished(bool successful); + void stateChanged(QMessageService::State state); + void messagesFound(const QMessageIdList &ids, bool isFiltered, bool isSorted); + void messagesCounted(int count); + void progressChanged(uint value, uint total); + +public: + QMessageService* q_ptr; + QMessageService::State _state; + QMessageManager::Error _error; + bool _active; + int _actionId; + int _pendingRequestCount; + + QMessageIdList _ids; + int _count; + bool _sorted; + bool _filtered; + + QMessageFilter _filter; + QMessageSortOrder _sortOrder; + int _limit; + int _offset; +}; + +QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessageservice_win.cpp --- a/qtmobility/src/messaging/qmessageservice_win.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessageservice_win.cpp Mon May 03 13:18:40 2010 +0300 @@ -230,7 +230,7 @@ foreach(const QMessageAddress& a, addressList) { if(a.type() == filterAddressType) - temp.append(a.recipient()); + temp.append(a.addressee()); } return temp.isEmpty() ? Lptstr(0) : LptstrFromQString(temp.join(";")); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagesortorder_maemo.cpp --- a/qtmobility/src/messaging/qmessagesortorder_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagesortorder_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -102,10 +102,10 @@ QString leftStr; QString rightStr; foreach (QMessageAddress a, left->to() + left->cc() + left->bcc()) { - leftStr.append(a.recipient() + ";"); + leftStr.append(a.addressee() + ";"); } foreach (QMessageAddress a, right->to() + right->cc() + right->bcc()) { - rightStr.append(a.recipient() + ";"); + rightStr.append(a.addressee() + ";"); } COMPARE(leftStr, rightStr) } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagesortorder_symbian.cpp --- a/qtmobility/src/messaging/qmessagesortorder_symbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagesortorder_symbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -103,10 +103,10 @@ QString leftStr; QString rightStr; foreach (QMessageAddress a, left->to() + left->cc() + left->bcc()) { - leftStr.append(a.recipient() + ";"); + leftStr.append(a.addressee() + ";"); } foreach (QMessageAddress a, right->to() + right->cc() + right->bcc()) { - rightStr.append(a.recipient() + ";"); + rightStr.append(a.addressee() + ";"); } COMPARE(leftStr, rightStr) } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagesortorder_win.cpp --- a/qtmobility/src/messaging/qmessagesortorder_win.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagesortorder_win.cpp Mon May 03 13:18:40 2010 +0300 @@ -88,10 +88,10 @@ QString leftStr; QString rightStr; foreach (QMessageAddress a, left->to() + left->cc() + left->bcc()) { - leftStr.append(a.recipient() + ";"); + leftStr.append(a.addressee() + ";"); } foreach (QMessageAddress a, right->to() + right->cc() + right->bcc()) { - rightStr.append(a.recipient() + ";"); + rightStr.append(a.addressee() + ";"); } COMPARE(leftStr, rightStr) } @@ -223,7 +223,7 @@ result.append(QMessageFilter::byType(QMessage::Mms) & filter); result.append(QMessageFilter::byType(QMessage::Sms) & filter); result.append(QMessageFilter::byType(QMessage::Email) & filter); - result.append(QMessageFilter::byType(QMessage::Xmpp) & filter); + result.append(QMessageFilter::byType(QMessage::InstantMessage) & filter); } } break; case Read: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagestore_maemo.cpp --- a/qtmobility/src/messaging/qmessagestore_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagestore_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -43,6 +43,7 @@ #include "modestengine_maemo_p.h" #include "telepathyengine_maemo_p.h" #include "maemohelpers_p.h" +#include "eventloggerengine_maemo_p.h" QTM_BEGIN_NAMESPACE @@ -54,13 +55,14 @@ :d_ptr(d), q_ptr(q) {} QMessageStorePrivate *d_ptr; QMessageStore *q_ptr; - //... + EventLoggerEngine *el; }; QMessageStorePrivate::QMessageStorePrivate() :q_ptr(0), p_ptr(0) { + } QMessageStorePrivate::~QMessageStorePrivate() @@ -68,11 +70,29 @@ } void QMessageStorePrivate::initialize(QMessageStore *store) -{ +{ q_ptr = store; p_ptr = new QMessageStorePrivatePlatform(this, store); + p_ptr->el= EventLoggerEngine::instance(); } +void QMessageStorePrivate::messageNotification(QMessageStorePrivate::NotificationType type, const QMessageId& id, + const QMessageManager::NotificationFilterIdSet &matchingFilters) +{ + switch (type) { + case Added: + emit q_ptr->messageAdded(id, matchingFilters); + break; + case Updated: + emit q_ptr->messageUpdated(id, matchingFilters); + break; + case Removed: + emit q_ptr->messageRemoved(id, matchingFilters); + break; + } +} + + Q_GLOBAL_STATIC(QMessageStorePrivate,data); QMessageStore::QMessageStore(QObject *parent) @@ -81,7 +101,10 @@ { Q_ASSERT(d_ptr != 0); Q_ASSERT(d_ptr->q_ptr == 0); // QMessageStore should be singleton - d_ptr->initialize(this); + // d_ptr->initialize(this); + // be sure that singletons are initialized + EventLoggerEngine::instance(); + TelepathyEngine::instance(); } QMessageStore::~QMessageStore() @@ -105,31 +128,66 @@ QMessageIdList QMessageStore::queryMessages(const QMessageFilter &filter, const QMessageSortOrder &sortOrder, uint limit, uint offset) const { - Q_UNUSED(filter) - Q_UNUSED(sortOrder) - Q_UNUSED(limit) - Q_UNUSED(offset) - return QMessageIdList(); // stub + QMessageIdList messageIds; + + bool isFiltered = false; + bool isSorted = false; + + messageIds = ModestEngine::instance()->queryMessagesSync(filter, sortOrder, limit, offset, + isFiltered, isSorted); + + // messageIds += d_ptr->p_ptr->el->filterAndOrderMessages(filter,sortOrder,QString(),QMessageDataComparator::MatchFlags()); + messageIds += EventLoggerEngine::instance()->filterAndOrderMessages(filter,sortOrder,QString(),QMessageDataComparator::MatchFlags()); + + if (!isFiltered) { + MessagingHelper::filterMessages(messageIds, filter); + } + if (!isSorted) { + MessagingHelper::orderMessages(messageIds, sortOrder); + } + MessagingHelper::applyOffsetAndLimitToMessageIdList(messageIds, limit, offset); + + return messageIds; } QMessageIdList QMessageStore::queryMessages(const QMessageFilter &filter, const QString &body, QMessageDataComparator::MatchFlags matchFlags, const QMessageSortOrder &sortOrder, uint limit, uint offset) const { - Q_UNUSED(filter) - Q_UNUSED(sortOrder) - Q_UNUSED(body) - Q_UNUSED(matchFlags) - Q_UNUSED(limit) - Q_UNUSED(offset) - return QMessageIdList(); // stub + QMessageIdList messageIds; + + bool isFiltered = false; + bool isSorted = false; + messageIds = ModestEngine::instance()->queryMessagesSync(filter, body, matchFlags, sortOrder, limit, offset, + isFiltered, isSorted); + // messageIds +=d_ptr->p_ptr->el->filterAndOrderMessages(filter,sortOrder,body,matchFlags); + messageIds +=EventLoggerEngine::instance()->filterAndOrderMessages(filter,sortOrder,body,matchFlags); + + if (!isFiltered) { + MessagingHelper::filterMessages(messageIds, filter); + } + if (!isSorted) { + MessagingHelper::orderMessages(messageIds, sortOrder); + } + MessagingHelper::applyOffsetAndLimitToMessageIdList(messageIds, limit, offset); + + return messageIds; } QMessageFolderIdList QMessageStore::queryFolders(const QMessageFolderFilter &filter, const QMessageFolderSortOrder &sortOrder, uint limit, uint offset) const { - Q_UNUSED(filter) - Q_UNUSED(sortOrder) - Q_UNUSED(limit) - Q_UNUSED(offset) - return QMessageFolderIdList(); // stub + QMessageFolderIdList folderIds; + + bool isFiltered = false; + bool isSorted = false; + folderIds = ModestEngine::instance()->queryFolders(filter, sortOrder, limit, offset, isFiltered, isSorted); + if (!isFiltered) { + MessagingHelper::filterFolders(folderIds, filter); + } + if (!isSorted) { + MessagingHelper::orderFolders(folderIds, sortOrder); + } + MessagingHelper::applyOffsetAndLimitToFolderIdList(folderIds, limit, offset); + + return folderIds; } QMessageAccountIdList QMessageStore::queryAccounts(const QMessageAccountFilter &filter, const QMessageAccountSortOrder &sortOrder, uint limit, uint offset) const @@ -156,14 +214,20 @@ int QMessageStore::countMessages(const QMessageFilter& filter) const { - Q_UNUSED(filter) - return 0; // stub + int count = 0; + + count += ModestEngine::instance()->countMessagesSync(filter); + + return count; } int QMessageStore::countFolders(const QMessageFolderFilter& filter) const { - Q_UNUSED(filter) - return 0; // stub + int count = 0; + + count += ModestEngine::instance()->countFolders(filter); + + return count; } int QMessageStore::countAccounts(const QMessageAccountFilter& filter) const @@ -177,58 +241,155 @@ bool QMessageStore::removeMessage(const QMessageId& id, QMessageManager::RemovalOption option) { - Q_UNUSED(id) - Q_UNUSED(option) - return false; // stub + if (id.toString().startsWith("MO_")) { + return ModestEngine::instance()->removeMessage(id, option); + } + return EventLoggerEngine::instance()->deleteMessage(id); } bool QMessageStore::removeMessages(const QMessageFilter& filter, QMessageManager::RemovalOption option) { - Q_UNUSED(filter) - Q_UNUSED(option) - return true; // stub + QMessageIdList ids = queryMessages(filter, QMessageSortOrder(), 0, 0); + + for (int i=0; i < ids.count(); i++) { + if (ids[i].toString().startsWith("MO_")) { + if (!ModestEngine::instance()->removeMessage(ids[i], option)) { + return false; + } + } else + if(!EventLoggerEngine::instance()->deleteMessage(ids[i])) + return false; + } + return true; } bool QMessageStore::addMessage(QMessage *m) { - Q_UNUSED(m) - return true; // stub + bool retVal = true; + + QMessageAccountId accountId = m->parentAccountId(); + QMessage::Type msgType = QMessage::NoType; + + // Check message type + if (m->type() == QMessage::AnyType || m->type() == QMessage::NoType) { + if (accountId.isValid()) { + // ParentAccountId was defined => Message type can be read + // from parent account + QMessageAccount account = QMessageAccount(accountId); + QMessage::TypeFlags types = account.messageTypes(); + if (types & QMessage::Sms) { + msgType = QMessage::Sms; + } else if (account.messageTypes() & QMessage::InstantMessage) { + msgType = QMessage::InstantMessage; + } else if (types & QMessage::Mms) { + msgType = QMessage::Mms; + } else if (types & QMessage::Email) { + msgType = QMessage::Email; + } + } + if (msgType == QMessage::NoType) { + retVal = false; + } + } + + if (retVal) { + // Check account + if (!accountId.isValid()) { + accountId = QMessageAccount::defaultAccount(m->type()); + if (!accountId.isValid()) { + retVal = false; + } + } + } + + QMessageAccount account(accountId); + if (retVal) { + // Check account/message type compatibility + if (!(account.messageTypes() & m->type()) && (msgType == QMessage::NoType)) { + retVal = false; + } + } + + if (retVal) { + // Set default account if unset + if (!m->parentAccountId().isValid()) { + m->setParentAccountId(accountId); + } + + if (account.messageTypes() & QMessage::Sms) { + retVal = false; //TODO: + qWarning() << "QMessageManager::add not yet implemented for SMS"; + } else if (account.messageTypes() & QMessage::InstantMessage) { + retVal = false; //TODO: + qWarning() << "QMessageManager::add not yet implemented for Instant Message"; + } else if (account.messageTypes() & QMessage::Mms) { + retVal = false; //TODO: + qWarning() << "QMessageManager::add not yet implemented for MMS"; + } else if (account.messageTypes() & QMessage::Email) { + retVal = ModestEngine::instance()->addMessage(*m); + } + } + + return retVal; } bool QMessageStore::updateMessage(QMessage *m) { - Q_UNUSED(m) - return true; // stub + bool retVal = false; + + if (m->type() == QMessage::Sms) { + retVal = false; //TODO: + qWarning() << "QMessageManager::update not yet implemented for SMS"; + } else if (m->type() == QMessage::InstantMessage) { + retVal = false; //TODO: + qWarning() << "QMessageManager::update not yet implemented for Instant Message"; + } else if (m->type() == QMessage::Mms) { + retVal = false; //TODO: + qWarning() << "QMessageManager::update not yet implemented for Instant MMS"; + } else if (m->type() == QMessage::Email) { + retVal = ModestEngine::instance()->updateMessage(*m); + } + + return retVal; } QMessage QMessageStore::message(const QMessageId& id) const { - Q_UNUSED(id) - return QMessage(); // stub + if (id.toString().startsWith("MO_")) { + return ModestEngine::instance()->message(id); + } else { + return d_ptr->p_ptr->el->message(id); + } } QMessageFolder QMessageStore::folder(const QMessageFolderId& id) const { - Q_UNUSED(id) - return QMessageFolder(); // stub + if (id.toString().startsWith("MO_")) { + return ModestEngine::instance()->folder(id); + } + + return QMessageFolder(); } QMessageAccount QMessageStore::account(const QMessageAccountId& id) const { - QMessageAccount acc=ModestEngine::instance()->account(id); - if(acc.id()==id) return acc; - return TelepathyEngine::instance()->account(id); + if (id.toString().startsWith("MO_")) { + return ModestEngine::instance()->account(id); + } else { + return TelepathyEngine::instance()->account(id); + } } QMessageManager::NotificationFilterId QMessageStore::registerNotificationFilter(const QMessageFilter &filter) { - Q_UNUSED(filter) - return 0; // stub + QMessageManager::NotificationFilterId id = d_ptr->p_ptr->el->registerNotificationFilter(*d_ptr,filter); + return ModestEngine::instance()->registerNotificationFilter(*data(), filter, id); } void QMessageStore::unregisterNotificationFilter(QMessageManager::NotificationFilterId notificationFilterId) { - Q_UNUSED(notificationFilterId) + ModestEngine::instance()->unregisterNotificationFilter(notificationFilterId); + d_ptr->p_ptr->el->unregisterNotificationFilter( notificationFilterId); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmessagestore_p.h --- a/qtmobility/src/messaging/qmessagestore_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmessagestore_p.h Mon May 03 13:18:40 2010 +0300 @@ -63,7 +63,16 @@ QMessageStore *q_ptr; QMessageStorePrivatePlatform *p_ptr; - +#ifdef Q_WS_MAEMO_5 + enum NotificationType + { + Added, + Updated, + Removed + }; + void messageNotification(QMessageStorePrivate::NotificationType type, const QMessageId& id, + const QMessageManager::NotificationFilterIdSet &matchingFilters); +#endif #ifdef Q_OS_WIN static QMutex* mutex(QMessageStore*); static QMutex* mutex(QMessageManager&); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmfhelpers.cpp --- a/qtmobility/src/messaging/qmfhelpers.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmfhelpers.cpp Mon May 03 13:18:40 2010 +0300 @@ -201,7 +201,7 @@ if (t & QMessage::Email) { result = static_cast(result | QMailMessage::Email); } - if (t & QMessage::Xmpp) { + if (t & QMessage::InstantMessage) { result = static_cast(result | QMailMessage::Instant); } @@ -223,7 +223,7 @@ result = static_cast(static_cast(result | QMessage::Email)); } if (t & QMailMessage::Instant) { - result = static_cast(static_cast(result | QMessage::Xmpp)); + result = static_cast(static_cast(result | QMessage::InstantMessage)); } return result; @@ -377,8 +377,8 @@ type = QMessageAddress::System; } else if (spec == "Phone") { type = QMessageAddress::Phone; - } else if (spec == "XMPP") { - type = QMessageAddress::Xmpp; + } else if (spec == "InstantMessage") { + type = QMessageAddress::InstantMessage; } } @@ -395,11 +395,11 @@ suffix = " (TYPE=System)"; } else if (address.type() == QMessageAddress::Phone) { suffix = " (TYPE=Phone)"; - } else if (address.type() == QMessageAddress::Xmpp) { - suffix = " (TYPE=XMPP)"; + } else if (address.type() == QMessageAddress::InstantMessage) { + suffix = " (TYPE=InstantMessage)"; } - return QMailAddress(address.recipient() + suffix); + return QMailAddress(address.addressee() + suffix); } QMessageAddressList convert(const QList &list) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/qmtmengine_symbian.cpp --- a/qtmobility/src/messaging/qmtmengine_symbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/qmtmengine_symbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -70,22 +70,22 @@ #include // CMsvFindOperation #include // TMsvPartList #include // CnvUtfConverter -#include -#include // Attachemt mimeheader +#include +#include // Attachemt mimeheader #include #include #include #include // CMtmUiRegistry #include // CBaseMtmUi -#include -#include // SendUi API -#include //CMessageData -#include +#include +#include // SendUi API +#include //CMessageData +#include #include #include #include #include -#include +#include #include #include // KImcvMultipart declaration @@ -774,7 +774,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < list.size(); ++i) { - qreceiver = list.at(i).recipient(); + qreceiver = list.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); messageData->AppendToAddressL(receiver, KNullDesC); } @@ -809,7 +809,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < list.size(); ++i) { - qreceiver = list.at(i).recipient(); + qreceiver = list.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); messageData->AppendToAddressL(receiver, KNullDesC); } @@ -878,7 +878,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < list.size(); ++i) { - qreceiver = list.at(i).recipient(); + qreceiver = list.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); messageData->AppendToAddressL(receiver, KNullDesC); } @@ -887,7 +887,7 @@ TPtrC16 ccReceiver(KNullDesC); QString ccQreceiver; for (int i = 0; i < ccList.size(); ++i) { - ccQreceiver = ccList.at(i).recipient(); + ccQreceiver = ccList.at(i).addressee(); ccReceiver.Set(reinterpret_cast(ccQreceiver.utf16())); messageData->AppendCcAddressL(ccReceiver, KNullDesC); } @@ -896,7 +896,7 @@ TPtrC16 bccReceiver(KNullDesC); QString bccQreceiver; for (int i = 0; i < bccList.size(); ++i) { - bccQreceiver = bccList.at(i).recipient(); + bccQreceiver = bccList.at(i).addressee(); bccReceiver.Set(reinterpret_cast(bccQreceiver.utf16())); messageData->AppendBccAddressL(bccReceiver, KNullDesC); } @@ -2460,7 +2460,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < list.size(); ++i) { - qreceiver = list.at(i).recipient(); + qreceiver = list.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); ipSmsMtm->AddAddresseeL(receiver); ipSmsMtm->SaveMessageL(); @@ -2582,7 +2582,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < list.size(); ++i) { - qreceiver = list.at(i).recipient(); + qreceiver = list.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); ipMmsMtm->AddAddresseeL(receiver); } @@ -2801,7 +2801,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < list.size(); ++i) { - qreceiver = list.at(i).recipient(); + qreceiver = list.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); ipSmsMtm->AddAddresseeL(receiver); ipSmsMtm->SaveMessageL(); @@ -2862,7 +2862,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < list.size(); ++i) { - qreceiver = list.at(i).recipient(); + qreceiver = list.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); ipMmsMtm->AddAddresseeL(receiver); } @@ -3085,7 +3085,7 @@ } msvEntry.iDescription.Set(TPtrC(reinterpret_cast(message.subject().utf16()))); - msvEntry.iDetails.Set(TPtrC(reinterpret_cast(message.from().recipient().utf16()))); + msvEntry.iDetails.Set(TPtrC(reinterpret_cast(message.from().addressee().utf16()))); if (mtmUid == KUidMsgTypeSMTP) { ipSmtpMtm->Entry().ChangeL(msvEntry); @@ -3233,7 +3233,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < toList.size(); ++i) { - qreceiver = toList.at(i).recipient(); + qreceiver = toList.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); emailEntry->ToRecipients().AppendL(receiver); } @@ -3244,7 +3244,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < ccList.size(); ++i) { - qreceiver = ccList.at(i).recipient(); + qreceiver = ccList.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); emailEntry->CcRecipients().AppendL(receiver); } @@ -3255,7 +3255,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < bccList.size(); ++i) { - qreceiver = bccList.at(i).recipient(); + qreceiver = bccList.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); emailEntry->BccRecipients().AppendL(receiver); } @@ -3580,14 +3580,14 @@ CImHeader* pImHeader = CImHeader::NewLC(); pImHeader->RestoreL(*pMsvStore); pImHeader->SetSubjectL(TPtrC(reinterpret_cast(message.subject().utf16()))); - pImHeader->SetFromL(TPtrC(reinterpret_cast(message.from().recipient().utf16()))); + pImHeader->SetFromL(TPtrC(reinterpret_cast(message.from().addressee().utf16()))); QList toList(message.to()); if (toList.count() > 0) { TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < toList.size(); ++i) { - qreceiver = toList.at(i).recipient(); + qreceiver = toList.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); pImHeader->ToRecipients().AppendL(receiver); } @@ -3598,7 +3598,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < ccList.size(); ++i) { - qreceiver = ccList.at(i).recipient(); + qreceiver = ccList.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); pImHeader->CcRecipients().AppendL(receiver); } @@ -3609,7 +3609,7 @@ TPtrC16 receiver(KNullDesC); QString qreceiver; for (int i = 0; i < bccList.size(); ++i) { - qreceiver = bccList.at(i).recipient(); + qreceiver = bccList.at(i).addressee(); receiver.Set(reinterpret_cast(qreceiver.utf16())); pImHeader->BccRecipients().AppendL(receiver); } @@ -3626,7 +3626,7 @@ TMsvEntry changedEntry = pMsvEntry->Entry(); changedEntry.iDescription.Set(TPtrC(reinterpret_cast(message.subject().utf16()))); if (toList.count() > 0) { - changedEntry.iDetails.Set(TPtrC(reinterpret_cast(toList.at(0).recipient().utf16()))); + changedEntry.iDetails.Set(TPtrC(reinterpret_cast(toList.at(0).addressee().utf16()))); } if (!message.receivedDate().isNull() || !message.date().isNull()) { // Change the date to given date diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/telepathyengine_maemo.cpp --- a/qtmobility/src/messaging/telepathyengine_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/telepathyengine_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -1,3 +1,43 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qmessageglobal.h" #include "qmessagemanager.h" #include "qmessageaccount.h" @@ -17,8 +57,7 @@ TelepathyEngine::TelepathyEngine() { - tpSession=new TpSession("ring",TRUE); // Create as sync, telephony "ring" as default - + tpSession=TpSession::instance(TRUE); // Create as sync, telephony "ring" as default } TelepathyEngine::~TelepathyEngine() @@ -33,42 +72,32 @@ bool TelepathyEngine::sendMessage(QMessage &message) { - QMessage::Type type=message.type(); - QString cm=type == QMessage::Sms ? "ring" : type == QMessage::Xmpp ? "gabble" : ""; - QMessageAddressList toList=message.to(); - QMessageAccountId account=message.parentAccountId(); - if(!cm.isEmpty()) { - foreach(QMessageAddress to,toList) { - tpSession->sendMessageToAddress(cm,to.recipient(),message.textContent()); - }; - } - else - qDebug() << "TelepathyEngine::sendMessage unsupported message type" << type; + bool retVal=false; + QMessage::Type type=message.type(); + QMessageAccountId account=message.parentAccountId(); + QString cm=type == QMessage::Sms ? "ring" : type == QMessage::InstantMessage ? account.toString() : ""; + QMessageAddressList toList=message.to(); + if(!cm.isEmpty()) { + foreach(QMessageAddress to,toList) { + tpSession->sendMessageToAddress(cm,to.addressee(),message.textContent()); + retVal=true; + }; + } + else + qDebug() << "TelepathyEngine::sendMessage unsupported message type" << type; + return retVal; } -bool TelepathyEngine::queryMessages(QMessageService& messageService, const QMessageFilter &filter, const QMessageSortOrder &sortOrder, uint limit, uint offset) const -{ - return true; -} - -bool TelepathyEngine::queryMessages(QMessageService& messageService, const QMessageFilter &filter, const QString &body, QMessageDataComparator::MatchFlags matchFlags, const QMessageSortOrder &sortOrder, uint limit, uint offset) const -{ - return true; -} - -bool TelepathyEngine::countMessages(QMessageService& messageService, const QMessageFilter &filter) -{ - return true; -}; void TelepathyEngine::updateImAccounts() const { // iDefaultImAccountId = QMessageAccountId(); +// qDebug() << "TelepathyEngine::updateImAccounts"; iAccounts.clear(); foreach (TpSessionAccount *tpacc, tpSession->accounts) { - qDebug() << "TelepathyEngine::updateImAccounts" << tpacc->acc->cmName() << " " << tpacc->acc->protocol() << " " << tpacc->acc->displayName(); + // qDebug() << "TelepathyEngine::updateImAccounts" << tpacc->acc->cmName() << " " << tpacc->acc->protocol() << " " << tpacc->acc->displayName(); bool account_ok = tpacc->acc->isEnabled() && tpacc->acc->isValidAccount(); QString cm=tpacc->acc->cmName(); if (account_ok) { @@ -89,8 +118,8 @@ QString accountAddress = tpacc->acc->normalizedName(); QMessageAccount account = QMessageAccountPrivate::from(QMessageAccountId(accountId), accountName, - QMessageAddress(QMessageAddress::Xmpp, accountAddress), - QMessage::Xmpp); + QMessageAddress(QMessageAddress::InstantMessage, accountAddress), + QMessage::InstantMessage); iAccounts.insert(accountId, account); } else qDebug() << "Protocol " << tpacc->acc->protocol() << "with connectionmanager " << cm << "Is not yet supported"; // if (strncmp(account_name_key, default_account, strlen(default_account))) iDefaultEmailAccountId = accountId; @@ -102,6 +131,7 @@ QMessageAccountIdList TelepathyEngine::queryAccounts(const QMessageAccountFilter &filter, const QMessageAccountSortOrder &sortOrder, uint limit, uint offset, bool &isFiltered, bool &isSorted) const { + // qDebug() << "TelepathyEngine::queryAccounts"; QMessageAccountIdList accountIds; updateImAccounts(); @@ -131,6 +161,7 @@ QMessageAccountId TelepathyEngine ::defaultAccount(QMessage::Type type) const { + // qDebug() << "TelepathyEngine::defaultAccount"; updateImAccounts(); return defaultSmsAccountId; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/telepathyengine_maemo_p.h --- a/qtmobility/src/messaging/telepathyengine_maemo_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/telepathyengine_maemo_p.h Mon May 03 13:18:40 2010 +0300 @@ -1,3 +1,43 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 TELEPATHYENGINE_MAEMO_P_H #define TELEPATHYENGINE_MAEMO_P_H #include @@ -25,9 +65,6 @@ QMessageAccount account(const QMessageAccountId &id) const; QMessageAccountId defaultAccount(QMessage::Type type) const; - bool queryMessages(QMessageService& messageService, const QMessageFilter &filter, const QMessageSortOrder &sortOrder, uint limit, uint offset) const; - bool queryMessages(QMessageService& messageService, const QMessageFilter &filter, const QString &body, QMessageDataComparator::MatchFlags matchFlags, const QMessageSortOrder &sortOrder, uint limit, uint offset) const; - bool countMessages(QMessageService& messageService, const QMessageFilter &filter); bool sendMessage(QMessage &message); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/messaging/winhelpers.cpp --- a/qtmobility/src/messaging/winhelpers.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/messaging/winhelpers.cpp Mon May 03 13:18:40 2010 +0300 @@ -437,11 +437,11 @@ entry.rgPropVals[0].Value.l = type; #ifdef _WIN32_WCE - QString addressStr = addr.recipient(); + QString addressStr = addr.addressee(); #else QString addressStr("[%1:%2]"); addressStr = addressStr.arg(addr.type() == QMessageAddress::Phone ? "SMS" : "SMTP"); - addressStr = addressStr.arg(addr.recipient()); + addressStr = addressStr.arg(addr.addressee()); #endif // TODO: Escape illegal characters, as per: http://msdn.microsoft.com/en-us/library/cc842281.aspx @@ -1001,7 +1001,7 @@ qWarning() << "Unable to set subject in message."; *error = QMessageManager::FrameworkFault; } else { - QString emailAddress = source.from().recipient(); + QString emailAddress = source.from().addressee(); if (!setMapiProperty(message, PR_SENDER_EMAIL_ADDRESS, emailAddress)) { qWarning() << "Unable to set sender address in message."; *error = QMessageManager::FrameworkFault; @@ -3032,7 +3032,7 @@ } } - return QMessage::InboxFolder; + return QMessage::DraftsFolder; } bool MapiStore::setAdviseSink(ULONG mask, IMAPIAdviseSink *sink) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/README --- a/qtmobility/src/multimedia/experimental/README Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -The Camera API of Qt Mobility is still in ALPHA. It has not undergone -the same level of review and testing as the rest of the APIs. - -The API exposed by the classes in this component are not stable, and will -undergo modification or removal prior to the final release of Qt Mobility. - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/experimental.pri --- a/qtmobility/src/multimedia/experimental/experimental.pri Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -PUBLIC_HEADERS += \ - experimental/qimagecapturecontrol.h \ - experimental/qcamera.h \ - experimental/qstillimagecapture.h \ - experimental/qcameracontrol.h \ - experimental/qcameraexposurecontrol.h \ - experimental/qcamerafocuscontrol.h \ - experimental/qimageprocessingcontrol.h - -SOURCES += \ - experimental/qimagecapturecontrol.cpp \ - experimental/qcamera.cpp \ - experimental/qstillimagecapture.cpp \ - experimental/qcameracontrol.cpp \ - experimental/qcameraexposurecontrol.cpp \ - experimental/qcamerafocuscontrol.cpp \ - experimental/qimageprocessingcontrol.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qcamera.cpp --- a/qtmobility/src/multimedia/experimental/qcamera.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1082 +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 Qt Mobility Components. -** -** $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 - -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -QTM_BEGIN_NAMESPACE - -/*! - \class QCamera - - \preliminary - \brief The QCamera class provides interface for system camera devices. - - \ingroup camera - - QCamera can be used with QVideoWidget for viewfinder display - and QMediaRecorder for video recording. - - \code - camera = new QCamera; - viewFinder = new QVideoWidget(camera); - viewFinder->show(); - - recorder = new QMediaRecorder(camera); - imageCapture = new QStillImageCapture(camera); - - camera->start(); - \endcode - -The Camera API of Qt Mobility is still in \bold Technology Preview. It has -not undergone the same level of review and testing as the rest of the APIs. - -The API exposed by the classes in this component are not stable, and will -undergo modification or removal prior to the final release of Qt Mobility. -*/ - - -class QCameraPrivate : public QMediaObjectPrivate -{ - Q_DECLARE_NON_CONST_PUBLIC(QCamera) -public: - void initControls(); - - QCameraControl *control; - QCameraExposureControl *exposureControl; - QCameraFocusControl *focusControl; - QImageProcessingControl *imageControl; - QImageCaptureControl *captureControl; - - QCamera::Error error; - QString errorString; - - void _q_error(int error, const QString &errorString); - void _q_updateFocusStatus(QCamera::FocusStatus); - void unsetError() { error = QCamera::NoError; errorString.clear(); } -}; - -void QCameraPrivate::_q_error(int error, const QString &errorString) -{ - Q_Q(QCamera); - - this->error = QCamera::Error(error); - this->errorString = errorString; - - emit q->error(this->error); -} - -void QCameraPrivate::_q_updateFocusStatus(QCamera::FocusStatus status) -{ - Q_Q(QCamera); - - emit q->focusStatusChanged(status); - - if (status == QCamera::FocusReached) - emit q->focusReached(); - else if (status == QCamera::FocusUnableToReach) - emit q->focusUnableToReach(); -} - -void QCameraPrivate::initControls() -{ - Q_Q(QCamera); - - if (service) { - control = qobject_cast(service->control(QCameraControl_iid)); - exposureControl = qobject_cast(service->control(QCameraExposureControl_iid)); - focusControl = qobject_cast(service->control(QCameraFocusControl_iid)); - imageControl = qobject_cast(service->control(QImageProcessingControl_iid)); - captureControl = qobject_cast(service->control(QImageCaptureControl_iid)); - - if (control) { - q->connect(control, SIGNAL(stateChanged(QCamera::State)), q, SIGNAL(stateChanged(QCamera::State))); - q->connect(control, SIGNAL(captureModeChanged(QCamera::CaptureMode)), - q, SIGNAL(captureModeChanged(QCamera::CaptureMode))); - q->connect(control, SIGNAL(error(int,QString)), q, SLOT(_q_error(int,QString))); - } - - error = QCamera::NoError; - } else { - control = 0; - exposureControl = 0; - focusControl = 0; - imageControl = 0; - captureControl = 0; - - error = QCamera::ServiceMissingError; - errorString = QCamera::tr("The camera service is missing"); - } - - if (exposureControl) { - q->connect(exposureControl, SIGNAL(flashReady(bool)), q, SIGNAL(flashReady(bool))); - q->connect(exposureControl, SIGNAL(exposureLocked()), q, SIGNAL(exposureLocked())); - - q->connect(exposureControl, SIGNAL(apertureChanged(qreal)), - q, SIGNAL(apertureChanged(qreal))); - q->connect(exposureControl, SIGNAL(apertureRangeChanged()), - q, SIGNAL(apertureRangeChanged())); - q->connect(exposureControl, SIGNAL(shutterSpeedChanged(qreal)), - q, SIGNAL(shutterSpeedChanged(qreal))); - q->connect(exposureControl, SIGNAL(isoSensitivityChanged(int)), - q, SIGNAL(isoSensitivityChanged(int))); - } - - if (focusControl) { - q->connect(focusControl, SIGNAL(focusStatusChanged(QCamera::FocusStatus)), - q, SLOT(_q_updateFocusStatus(QCamera::FocusStatus))); - q->connect(focusControl, SIGNAL(opticalZoomChanged(qreal)), q, SIGNAL(opticalZoomChanged(qreal))); - q->connect(focusControl, SIGNAL(digitalZoomChanged(qreal)), q, SIGNAL(digitalZoomChanged(qreal))); - } -} - -/*! - Construct a QCamera from service \a provider and \a parent. -*/ - -QCamera::QCamera(QObject *parent, QMediaServiceProvider *provider): - QMediaObject(*new QCameraPrivate, parent, provider->requestService(Q_MEDIASERVICE_CAMERA)) -{ - Q_D(QCamera); - d->initControls(); -} - -/*! - Construct a QCamera from device name \a device and \a parent. -*/ - -QCamera::QCamera(const QByteArray& device, QObject *parent): - QMediaObject(*new QCameraPrivate, parent, - QMediaServiceProvider::defaultServiceProvider()->requestService(Q_MEDIASERVICE_CAMERA, QMediaServiceProviderHint(device))) -{ - Q_D(QCamera); - d->initControls(); - - if (d->service != 0) { - //pass device name to service - QVideoDeviceControl *deviceControl = - qobject_cast(d->service->control(QVideoDeviceControl_iid)); - - if (deviceControl) { - QString deviceName(device); - - for (int i=0; ideviceCount(); i++) { - if (deviceControl->deviceName(i) == deviceName) { - deviceControl->setSelectedDevice(i); - break; - } - } - } - } -} - -/*! - Destroys the camera object. -*/ - -QCamera::~QCamera() -{ -} - - -/*! - Returne true if the camera service is ready to use. -*/ -bool QCamera::isAvailable() const -{ - if (d_func()->control != NULL) - return true; - else - return false; -} - -/*! - Returns the error state of the camera service. -*/ - -QtMedia::AvailabilityError QCamera::availabilityError() const -{ - if (d_func()->control != NULL) { - if (d_func()->error == QCamera::NoError) - return QtMedia::NoError; - else - return QtMedia::ResourceError; - } else - return QtMedia::ServiceMissingError; -} - -/*! - Returns the error state of the object. -*/ - -QCamera::Error QCamera::error() const -{ - return d_func()->error; -} - -/*! - Returns a string describing a camera's error state. -*/ -QString QCamera::errorString() const -{ - return d_func()->errorString; -} - - -/*! - Returns the supported capture modes. -*/ -QCamera::CaptureModes QCamera::supportedCaptureModes() const -{ - return d_func()->control ? d_func()->control->supportedCaptureModes() : QCamera::CaptureDisabled; -} - -/*! - \property QCamera::captureMode - - Returns the type of media (video or still images), - the camera is configured to capture. -*/ - -QCamera::CaptureMode QCamera::captureMode() const -{ - return d_func()->control ? d_func()->control->captureMode() : QCamera::CaptureDisabled; -} - -void QCamera::setCaptureMode(QCamera::CaptureMode mode) -{ - Q_D(QCamera); - if (d->control) - d->control->setCaptureMode(mode); -} - - -/*! - Starts the camera. - - This can involve powering up the camera device and can be asynchronyous. - - State is changed to QCamera::ActiveState if camera is started - succesfuly, otherwise error() signal is emited. -*/ - -void QCamera::start() -{ - Q_D(QCamera); - - d->unsetError(); - - if (d->control) - d->control->start(); - else { - d->errorString = tr("The camera service is missing"); - QMetaObject::invokeMethod(this, "error", Qt::QueuedConnection, - Q_ARG(QCamera::Error, QCamera::ServiceMissingError)); - } -} - -/*! - Stops the camera. -*/ - -void QCamera::stop() -{ - Q_D(QCamera); - - d->unsetError(); - - if(d->control) - d->control->stop(); - else - d->_q_error(QCamera::ServiceMissingError, tr("The camera service is missing")); -} - -/*! - Lock the exposure. -*/ - -void QCamera::lockExposure() -{ - Q_D(QCamera); - - d->unsetError(); - - if(d->exposureControl) - d->exposureControl->lockExposure(); - else - d->_q_error(NotSupportedFeatureError, tr("Exposure locking is not supported")); -} - -/*! - Unlock the exposure. -*/ - -void QCamera::unlockExposure() -{ - Q_D(QCamera); - - d->unsetError(); - - if(d->exposureControl) - d->exposureControl->unlockExposure(); -} - -/*! - Starts single or continuous autofocus. - - Does nothing in hyperfocal or infinity focus modes. - - If supported by camera, startFocusing() turns on the manual focusing notifications, - otherwise it does nothing in manual mode. -*/ - -void QCamera::startFocusing() -{ - Q_D(QCamera); - - d->unsetError(); - - if(d->focusControl) - d->focusControl->startFocusing(); - else - d->_q_error(NotSupportedFeatureError, tr("Focus locking is not supported")); -} - -/*! - Cancels the single autofocus request or stops continuous focusing. - - Does nothing in hyperfocal or infinity focus modes. - - If supported by camera, startFocusing() turns off the manual focusing notifications, - otherwise it does nothing in manual mode. -*/ - -void QCamera::cancelFocusing() -{ - Q_D(QCamera); - - if(d->focusControl) - d->focusControl->cancelFocusing(); -} - -/*! - Returns a list of camera device's available from the default service provider. -*/ - -QList QCamera::availableDevices() -{ - return QMediaServiceProvider::defaultServiceProvider()->devices(QByteArray(Q_MEDIASERVICE_CAMERA)); -} - -/*! - Returns the description of the \a device. -*/ - -QString QCamera::deviceDescription(const QByteArray &device) -{ - return QMediaServiceProvider::defaultServiceProvider()->deviceDescription(QByteArray(Q_MEDIASERVICE_CAMERA), device); -} - -QCamera::State QCamera::state() const -{ - if(d_func()->control) - return (QCamera::State)d_func()->control->state(); - - return QCamera::StoppedState; -} - -/*! - Returns the flash mode being used. -*/ - -QCamera::FlashMode QCamera::flashMode() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->flashMode() : QCamera::FlashOff; -} - -/*! - Set the flash mode to \a mode -*/ - -void QCamera::setFlashMode(QCamera::FlashMode mode) -{ - if (d_func()->exposureControl) - d_func()->exposureControl->setFlashMode(mode); -} - -/*! - Returns the flash modes available. -*/ - -QCamera::FlashModes QCamera::supportedFlashModes() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->supportedFlashModes() : QCamera::FlashOff; -} - -/*! - Returns true if flash is charged. -*/ - -bool QCamera::isFlashReady() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->isFlashReady() : false; -} - -/*! - Returns the focus mode being used. -*/ - -QCamera::FocusMode QCamera::focusMode() const -{ - return d_func()->focusControl ? d_func()->focusControl->focusMode() : QCamera::AutoFocus; -} - -/*! - Set the focus mode to \a mode -*/ - -void QCamera::setFocusMode(QCamera::FocusMode mode) -{ - if (d_func()->focusControl) - d_func()->focusControl->setFocusMode(mode); -} - -/*! - Returns the focus modes available. -*/ - -QCamera::FocusModes QCamera::supportedFocusModes() const -{ - return d_func()->focusControl ? d_func()->focusControl->supportedFocusModes() : QCamera::AutoFocus; -} - -/*! - Returns the focus status -*/ - -QCamera::FocusStatus QCamera::focusStatus() const -{ - return d_func()->focusControl ? d_func()->focusControl->focusStatus() : QCamera::FocusInitial; -} - -/*! - Returns true if macro focusing enabled. -*/ - -bool QCamera::macroFocusingEnabled() const -{ - return d_func()->focusControl ? d_func()->focusControl->macroFocusingEnabled() : false; -} - -/*! - Returns true if macro focusing is supported. -*/ - -bool QCamera::isMacroFocusingSupported() const -{ - return d_func()->focusControl ? d_func()->focusControl->isMacroFocusingSupported() : false; -} - -/*! - Set macro focusing to \a enabled. -*/ - -void QCamera::setMacroFocusingEnabled(bool enabled) -{ - if (d_func()->focusControl) - d_func()->focusControl->setMacroFocusingEnabled(enabled); -} - -/*! - Returns the exposure mode being used. -*/ - -QCamera::ExposureMode QCamera::exposureMode() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->exposureMode() : QCamera::ExposureAuto; -} - -/*! - Set exposure mode to \a mode -*/ - -void QCamera::setExposureMode(QCamera::ExposureMode mode) -{ - if (d_func()->exposureControl) - d_func()->exposureControl->setExposureMode(mode); -} - -/*! - Return the exposure modes available. -*/ - -QCamera::ExposureModes QCamera::supportedExposureModes() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->supportedExposureModes() : QCamera::ExposureAuto; -} - -/*! - Returns the exposure compensation. -*/ - -qreal QCamera::exposureCompensation() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->exposureCompensation() : 0; -} - -/*! - Sets the exposure compensation to \a ev -*/ - -void QCamera::setExposureCompensation(qreal ev) -{ - if (d_func()->exposureControl) - d_func()->exposureControl->setExposureCompensation(ev); -} - -/*! - Returns the metering mode being used. -*/ - -QCamera::MeteringMode QCamera::meteringMode() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->meteringMode() : QCamera::MeteringMatrix; -} - -/*! - Sets the metering mode to \a mode. -*/ - -void QCamera::setMeteringMode(QCamera::MeteringMode mode) -{ - if (d_func()->exposureControl) - d_func()->exposureControl->setMeteringMode(mode); -} - -/*! - Returns the metering modes available. -*/ - -QCamera::MeteringModes QCamera::supportedMeteringModes() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->supportedMeteringModes() : QCamera::MeteringMatrix; -} - -/*! - Returns the white balance mode being used. -*/ - -QCamera::WhiteBalanceMode QCamera::whiteBalanceMode() const -{ - return d_func()->imageControl ? d_func()->imageControl->whiteBalanceMode() : QCamera::WhiteBalanceAuto; -} - -/*! - Sets the white balance to \a mode. -*/ - -void QCamera::setWhiteBalanceMode(QCamera::WhiteBalanceMode mode) -{ - if (d_func()->imageControl) - d_func()->imageControl->setWhiteBalanceMode(mode); -} - -/*! - Returns the white balance modes available. -*/ - -QCamera::WhiteBalanceModes QCamera::supportedWhiteBalanceModes() const -{ - return d_func()->imageControl ? d_func()->imageControl->supportedWhiteBalanceModes() : QCamera::WhiteBalanceAuto; -} - -/*! - Returns the current color temperature if the - manual white balance is active, otherwise the - return value is undefined. -*/ - -int QCamera::manualWhiteBalance() const -{ - return d_func()->imageControl ? d_func()->imageControl->manualWhiteBalance() : -1; -} - -/*! - Sets manual white balance to \a colorTemperature -*/ - -void QCamera::setManualWhiteBalance(int colorTemperature) -{ - if (d_func()->imageControl) - d_func()->imageControl->setManualWhiteBalance(colorTemperature); -} - -/*! - Returns the ISO sensitivity. -*/ - -int QCamera::isoSensitivity() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->isoSensitivity() : -1; -} - -/*! - Returns the list of ISO senitivities camera supports. - - If the camera supports arbitrary ISO sensitivities within the supported range, - *\a continuous is set to true, otherwise *\a continuous is set to false. -*/ -QList QCamera::supportedIsoSensitivities(bool *continuous) const -{ - if (continuous) - *continuous = 0; - - return d_func()->exposureControl ? d_func()->exposureControl->supportedIsoSensitivities(continuous) - : QList(); -} - -/*! - Sets the manual sensitivity to \a iso -*/ - -void QCamera::setManualIsoSensitivity(int iso) -{ - if (d_func()->exposureControl) - d_func()->exposureControl->setManualIsoSensitivity(iso); -} - -/*! - Turn on auto sensitivity -*/ - -void QCamera::setAutoIsoSensitivity() -{ - if (d_func()->exposureControl) - d_func()->exposureControl->setAutoIsoSensitivity(); -} - -/*! - \property QCamera::shutterSpeed - \brief The effective length of time the shutter is open in seconds. -*/ - -/*! - \fn QCamera::shutterSpeedChanged(qreal speed) - - Signals that a camera's shutter \a speed has changed. -*/ - -/*! - \property QCamera::isoSensitivity - \brief The sensor ISO sensitivity. Lower sensitivity, the noise is lower, but more light is needed. -*/ - -/*! - \property QCamera::aperture - \brief Lens aperture is specified as an F number, the ratio of the focal length to effective aperture diameter. -*/ - -qreal QCamera::aperture() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->aperture() : -1.0; -} - -/*! - Returns the list of aperture values camera supports. - The apertures list can change depending on the focal length, - in such a case the apertureRangeChanged() signal is emited. - - If the camera supports arbitrary aperture values within the supported range, - *\a continuous is set to true, otherwise *\a continuous is set to false. -*/ -QList QCamera::supportedApertures(bool * continuous) const -{ - if (continuous) - *continuous = 0; - - return d_func()->exposureControl ? \ - d_func()->exposureControl->supportedApertures(continuous) : QList(); -} - -/*! - Sets the aperture to \a aperture -*/ - -void QCamera::setManualAperture(qreal aperture) -{ - if (d_func()->exposureControl) - d_func()->exposureControl->setManualAperture(aperture); -} - -/*! - Turn on auto aperture -*/ - -void QCamera::setAutoAperture() -{ - if (d_func()->exposureControl) - d_func()->exposureControl->setAutoAperture(); -} - -/*! - Return the current shutter speed in seconds. -*/ - -qreal QCamera::shutterSpeed() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->shutterSpeed() : -1; -} - -/*! - Returns the list of shutter speed values in seconds camera supports. - - If the camera supports arbitrary shutter speed values within the supported range, - *\a continuous is set to true, otherwise *\a continuous is set to false. -*/ -QList QCamera::supportedShutterSpeeds(bool *continuous) const -{ - if (continuous) - *continuous = false; - - return d_func()->exposureControl ? - d_func()->exposureControl->supportedShutterSpeeds(continuous) : QList(); -} - -/*! - Set the shutter speed to \a seconds -*/ - -void QCamera::setManualShutterSpeed(qreal seconds) -{ - if (d_func()->exposureControl) - d_func()->exposureControl->setManualShutterSpeed(seconds); -} - -/*! - Turn on auto shutter speed -*/ - -void QCamera::setAutoShutterSpeed() -{ - if (d_func()->exposureControl) - d_func()->exposureControl->setAutoShutterSpeed(); -} - -/*! - Returns the maximum optical zoom -*/ - -qreal QCamera::maximumOpticalZoom() const -{ - return d_func()->focusControl ? d_func()->focusControl->maximumOpticalZoom() : 1.0; -} - -/*! - Returns the maximum digital zoom -*/ - -qreal QCamera::maximumDigitalZoom() const -{ - return d_func()->focusControl ? d_func()->focusControl->maximumDigitalZoom() : 1.0; -} - -/*! - Returns the current optical zoom value. - - \sa QCamera::opticalZoomChanged(qreal), QCamera::digitalZoom() -*/ - -qreal QCamera::opticalZoom() const -{ - return d_func()->focusControl ? d_func()->focusControl->opticalZoom() : 1.0; -} - -/*! - Returns the current digital zoom value. - - \sa QCamera::digitalZoomChanged(qreal), QCamera::opticalZoom() -*/ -qreal QCamera::digitalZoom() const -{ - return d_func()->focusControl ? d_func()->focusControl->digitalZoom() : 1.0; -} - - -/*! - Set the camera \a optical and \a digital zoom values. -*/ -void QCamera::zoomTo(qreal optical, qreal digital) -{ - if (d_func()->focusControl) - d_func()->focusControl->zoomTo(optical, digital); - else - d_func()->_q_error(NotSupportedFeatureError, tr("The camera doesn't support zooming.")); - -} - -/*! - Return true if exposure locked. -*/ - -bool QCamera::isExposureLocked() const -{ - return d_func()->exposureControl ? d_func()->exposureControl->isExposureLocked() : true; -} - -/*! - \enum QCamera::State - \value ActiveState The camera has been started and can produce data. - \value SuspendedState The camera is temporary not available, - usually as a result of higher priority client requested - the camera device. - \value StoppedState The camera has been stopped. -*/ - -/*! - \enum QCamera::FlashMode - - \value FlashOff Flash is Off. - \value FlashOn Flash is On. - \value FlashAuto Automatic flash. - \value FlashRedEyeReduction Red eye reduction flash. - \value FlashFill Use flash to fillin shadows. -*/ - -/*! - \enum QCamera::FocusMode - - \value ManualFocus Manual focus mode. - \value AutoFocus One-shot auto focus mode. - \value ContinuousFocus Continuous auto focus mode. - \value InfinityFocus Focus strictly to infinity. - \value HyperfocalFocus Focus to hyperfocal distance, with with the maximum depth of field achieved. - All objects at distances from half of this - distance out to infinity will be acceptably sharp. -*/ - -/*! - \enum QCamera::FocusStatus - - \value FocusIntial The initial focus state. - \value FocusRequested Focus request is in progress. - \value FocusCanceled The focus request was canceled. - \value FocusReached Focus has been reached. - \value FocusLost Focus has been lost. - \value FocusUnableToReach Unable to achieve focus. - - When the QCamera::InfinityFocus or QCamera::HyperfocalFocus mode - is requested, the focus status changes to QCamera::FocusRequested - until the requested state is reached - and stays in the QCamera::FocusReached status after. - - In manual focusing mode the focus stays in the QCamera::FocusReached status, - or, when supported by camera, QCamera::FocusLost and QCamera::FocusReached values - could be used for manual focus notifications. - - In autofocus mode, on focus request the status changes to QCamera::FocusRequested, - and then depending on request results the focus status - changes to QCamera::FocusReached, QCamera::FocusUnableToReach or QCamera::FocusCanceled. - - In countinous autofocus mode, the status changes to QCamera::FocusRequested, - and since the focus is reached is stays in QCamera::FocusReached and QCamera::FocusLost states - until continous focusing is canceled with cancelAutofocus() or setFocusMode(). -*/ - -/*! - \enum QCamera::ExposureMode - - \value ExposureManual Manual mode. - \value ExposureAuto Automatic mode. - \value ExposureNight Night mode. - \value ExposureBacklight Backlight exposure mode. - \value ExposureSpotlight Spotlight exposure mode. - \value ExposureSports Spots exposure mode. - \value ExposureSnow Snow exposure mode. - \value ExposureBeach Beach exposure mode. - \value ExposureLargeAperture Use larger aperture with small depth of field. - \value ExposureSmallAperture Use smaller aperture. - \value ExposurePortrait Portrait exposure mode. -*/ - -/*! - \enum QCamera::ExposureStatus - - \value CorrectExposure The exposure is correct. - \value UnderExposure The photo will be underexposed. - \value OverExposure The photo will be overexposed. -*/ - -/*! - \enum QCamera::MeteringMode - - \value MeteringAverage Center weighted average metering mode. - \value MeteringSpot Spot metering mode. - \value MeteringMatrix Matrix metering mode. -*/ - -/*! - \enum QCamera::WhiteBalanceMode - - \value WhiteBalanceManual Manual white balance. In this mode the white balance should be set with - setManualWhiteBalance() - \value WhiteBalanceAuto Auto white balance mode. - \value WhiteBalanceSunlight Sunlight white balance mode. - \value WhiteBalanceCloudy Cloudy white balance mode. - \value WhiteBalanceShade Shade white balance mode. - \value WhiteBalanceTungsten Tungsten white balance mode. - \value WhiteBalanceFluorescent Fluorescent white balance mode. - \value WhiteBalanceIncandescent Incandescent white balance mode. - \value WhiteBalanceFlash Flash white balance mode. - \value WhiteBalanceSunset Sunset white balance mode. -*/ - -/*! - \property QCamera::state - \brief The current state of the camera object. -*/ - -/*! - \fn void QCamera::stateChanged(State state) - - Signal emitted when \a state of the Camera object has changed. -*/ - -/*! - \fn void QCamera::exposureLocked() - - Signal emitted when exposure locked. -*/ - -/*! - \fn void QCamera::focusStatusChanged(FocusStatus status) - - Signal emitted when focus \a status changed. -*/ - -/*! - \fn void QCamera::flashReady(bool ready) - - Signal emitted when flash status changed, flash is ready if \a ready true. -*/ - -/*! - \fn void QCamera::zoomValueChanged(qreal value) - - Signal emitted when zoom value changes to new \a value. -*/ - -/*! - \fn void QCamera::apertureChanged(qreal value) - - Signal emitted when aperature changes to \a value. -*/ - -/*! - \fn void QCamera::apertureRangeChanged() - - Signal emitted when aperature range has changed. -*/ - -/*! - \fn QCamera::imageCaptured(const QString &fileName, const QImage &preview) - - Signals that an image intendec to be saved to to \a fileName - has been captured and a \a preview is available. -*/ - - -/*! - \fn QCamera::imageSaved(const QString &fileName) - - Signals that an captured image has been saved to \a fileName. -*/ - - -/*! - \fn void QCamera::isoSensitivityChanged(int value) - - Signal emitted when sensitivity changes to \a value. -*/ - -/*! - \enum QCamera::Error - - \value NoError No errors have occurred. - \value CameraError An error has occurred. - \value NotReadyToCaptureError System resource not available. - \value InvalidRequestError System resource doesn't support functionality. - \value ServiceMissingError No service available. - \value NotSupportedFeatureError The feature is not supported. -*/ - -/*! - \fn void QCamera::error(QCamera::Error value) - - Signal emitted when error state changes to \a value. -*/ - - -/*! - \fn void QCamera::focusReached() - - Signals the focus was reached. - This signal is emited after focusStatus changes to QCamera::FocusReached state. -*/ - -/*! - \fn void QCamera::focusUnableToReach() - - Signals the focus was unable to reach. - This signal is emited after focusStatus changes to QCamera::FocusUnableToReach state. -*/ - -#include "moc_qcamera.cpp" -QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qcamera.h --- a/qtmobility/src/multimedia/experimental/qcamera.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,290 +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 Qt Mobility Components. -** -** $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 QCAMERA_H -#define QCAMERA_H - -#include -#include -#include - -#include -#include -#include - -#include - -QTM_BEGIN_NAMESPACE - -class QCameraControl; - - -class QCameraPrivate; -class Q_MEDIA_EXPORT QCamera : public QMediaObject -{ - Q_OBJECT - - Q_ENUMS(CaptureMode State Error FocusStatus) - - Q_PROPERTY(CaptureMode captureMode READ captureMode WRITE setCaptureMode NOTIFY captureModeChanged) - Q_PROPERTY(qreal aperture READ aperture WRITE setManualAperture NOTIFY apertureChanged) - Q_PROPERTY(qreal shutterSpeed READ shutterSpeed WRITE setManualShutterSpeed NOTIFY shutterSpeedChanged) - Q_PROPERTY(int isoSensitivity READ isoSensitivity WRITE setManualIsoSensitivity NOTIFY isoSensitivityChanged) - -public: - enum State { ActiveState, SuspendedState, StoppedState }; - - enum CaptureMode - { - CaptureDisabled = 0, - CaptureStillImage = 0x1, - CaptureVideo = 0x2 - }; - Q_DECLARE_FLAGS(CaptureModes, CaptureMode) - - enum Error - { - NoError, - CameraError, - NotReadyToCaptureError, - InvalidRequestError, - ServiceMissingError, - NotSupportedFeatureError - }; - - enum FlashMode { - FlashOff = 0x1, - FlashOn = 0x2, - FlashAuto = 0x4, - FlashRedEyeReduction = 0x8, - FlashFill = 0x10 - }; - Q_DECLARE_FLAGS(FlashModes, FlashMode) - - enum FocusMode { - ManualFocus = 0x1, - HyperfocalFocus = 0x02, - InfinityFocus = 0x04, - AutoFocus = 0x8, - ContinuousFocus = 0x10 - }; - Q_DECLARE_FLAGS(FocusModes, FocusMode) - - enum FocusStatus { - FocusInitial, - FocusRequested, - FocusCanceled, - FocusReached, - FocusLost, - FocusUnableToReach - }; - - enum ExposureMode { - ExposureManual = 0x1, - ExposureAuto = 0x2, - ExposureNight = 0x4, - ExposureBacklight = 0x8, - ExposureSpotlight = 0x10, - ExposureSports = 0x20, - ExposureSnow = 0x40, - ExposureBeach = 0x80, - ExposureLargeAperture = 0x100, - ExposureSmallAperture = 0x200, - ExposurePortrait = 0x400 - }; - Q_DECLARE_FLAGS(ExposureModes, ExposureMode) - - enum ExposureStatus { - CorrectExposure, - UnderExposure, - OverExposure - }; - - enum MeteringMode { - MeteringAverage = 0x1, - MeteringSpot = 0x2, - MeteringMatrix = 0x4 - }; - Q_DECLARE_FLAGS(MeteringModes, MeteringMode) - - enum WhiteBalanceMode { - WhiteBalanceManual = 0x1, - WhiteBalanceAuto = 0x2, - WhiteBalanceSunlight = 0x4, - WhiteBalanceCloudy = 0x8, - WhiteBalanceShade = 0x10, - WhiteBalanceTungsten = 0x20, - WhiteBalanceFluorescent = 0x40, - WhiteBalanceIncandescent = 0x80, - WhiteBalanceFlash = 0x100, - WhiteBalanceSunset = 0x200 - }; - Q_DECLARE_FLAGS(WhiteBalanceModes, WhiteBalanceMode) - - Q_PROPERTY(QCamera::State state READ state NOTIFY stateChanged) - - QCamera(QObject *parent = 0, QMediaServiceProvider *provider = QMediaServiceProvider::defaultServiceProvider()); - QCamera(const QByteArray& device, QObject *parent = 0); - ~QCamera(); - - static QList availableDevices(); - static QString deviceDescription(const QByteArray &device); - - bool isAvailable() const; - QtMedia::AvailabilityError availabilityError() const; - - State state() const; - - CaptureMode captureMode() const; - CaptureModes supportedCaptureModes() const; - - FlashMode flashMode() const; - void setFlashMode(FlashMode mode); - FlashModes supportedFlashModes() const; - bool isFlashReady() const; - - FocusMode focusMode() const; - void setFocusMode(FocusMode mode); - FocusModes supportedFocusModes() const; - FocusStatus focusStatus() const; - - bool macroFocusingEnabled() const; - bool isMacroFocusingSupported() const; - void setMacroFocusingEnabled(bool); - - ExposureMode exposureMode() const; - void setExposureMode(ExposureMode mode); - ExposureModes supportedExposureModes() const; - - qreal exposureCompensation() const; - void setExposureCompensation(qreal ev); - - MeteringMode meteringMode() const; - void setMeteringMode(MeteringMode mode); - MeteringModes supportedMeteringModes() const; - - WhiteBalanceMode whiteBalanceMode() const; - void setWhiteBalanceMode(WhiteBalanceMode mode); - WhiteBalanceModes supportedWhiteBalanceModes() const; - int manualWhiteBalance() const; - void setManualWhiteBalance(int colorTemperature); - - int isoSensitivity() const; - QList supportedIsoSensitivities(bool *continuous = 0) const; - void setManualIsoSensitivity(int iso); - void setAutoIsoSensitivity(); - - qreal aperture() const; - QList supportedApertures(bool *continuous = 0) const; - void setManualAperture(qreal aperture); - void setAutoAperture(); - - qreal shutterSpeed() const; - QList supportedShutterSpeeds(bool *continuous = 0) const; - void setManualShutterSpeed(qreal seconds); - void setAutoShutterSpeed(); - - qreal maximumOpticalZoom() const; - qreal maximumDigitalZoom() const; - qreal opticalZoom() const; - qreal digitalZoom() const; - - void zoomTo(qreal opticalZoom, qreal digitalZoom); - - bool isExposureLocked() const; - - Error error() const; - QString errorString() const; - -public Q_SLOTS: - void start(); - void stop(); - - void setCaptureMode(QCamera::CaptureMode mode); - - void lockExposure(); - void unlockExposure(); - - void startFocusing(); - void cancelFocusing(); - -Q_SIGNALS: - void captureModeChanged(QCamera::CaptureMode); - void flashReady(bool); - void focusStatusChanged(QCamera::FocusStatus); - void opticalZoomChanged(qreal); - void digitalZoomChanged(qreal); - - void apertureChanged(qreal); - void apertureRangeChanged(); - void shutterSpeedChanged(qreal); - void isoSensitivityChanged(int); - - void exposureLocked(); - - void focusReached(); - void focusUnableToReach(); - - void stateChanged(QCamera::State); - void error(QCamera::Error); - -private: - Q_DISABLE_COPY(QCamera) - Q_DECLARE_PRIVATE(QCamera) - Q_PRIVATE_SLOT(d_func(), void _q_error(int, const QString &)) - Q_PRIVATE_SLOT(d_func(), void _q_updateFocusStatus(QCamera::FocusStatus)) -}; - -Q_DECLARE_OPERATORS_FOR_FLAGS(QCamera::CaptureModes) -Q_DECLARE_OPERATORS_FOR_FLAGS(QCamera::FlashModes) -Q_DECLARE_OPERATORS_FOR_FLAGS(QCamera::FocusModes) -Q_DECLARE_OPERATORS_FOR_FLAGS(QCamera::WhiteBalanceModes) -Q_DECLARE_OPERATORS_FOR_FLAGS(QCamera::MeteringModes) -Q_DECLARE_OPERATORS_FOR_FLAGS(QCamera::ExposureModes) - -QTM_END_NAMESPACE - -Q_DECLARE_METATYPE(QTM_PREPEND_NAMESPACE(QCamera)::State) -Q_DECLARE_METATYPE(QTM_PREPEND_NAMESPACE(QCamera)::Error) -Q_DECLARE_METATYPE(QTM_PREPEND_NAMESPACE(QCamera)::FocusStatus) - - -#endif // QCAMERA_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qcameracontrol.cpp --- a/qtmobility/src/multimedia/experimental/qcameracontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,133 +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 Qt Mobility Components. -** -** $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 -#include "qmediacontrol_p.h" - -QTM_BEGIN_NAMESPACE - -/*! - \class QCameraControl - - \preliminary - - \brief The QCameraControl class is an abstract base class for - classes that control still cameras or video cameras. - - \ingroup camera - - This service is provided by a QMediaService object via - QMediaService::control(). It is used by QCamera. - - The interface name of QCameraControl is \c com.nokia.Qt.QCameraControl/1.0 as - defined in QCameraControl_iid. - - -The Camera API of Qt Mobility is still in \bold Technology Preview. It has -not undergone the same level of review and testing as the rest of the APIs. - -The API exposed by the classes in this component are not stable, and will -undergo modification or removal prior to the final release of Qt Mobility. - - \sa QMediaService::control(), QCamera -*/ - -/*! - \macro QCameraControl_iid - - \c com.nokia.Qt.QCameraControl/1.0 - - Defines the interface name of the QCameraControl class. - - \relates QCameraControl -*/ - -/*! - Constructs a camera control object with \a parent. -*/ - -QCameraControl::QCameraControl(QObject *parent): - QMediaControl(*new QMediaControlPrivate, parent) -{ -} - -/*! - Destruct the camera control object. -*/ - -QCameraControl::~QCameraControl() -{ -} - -/*! - \fn QCameraControl::start() - Start the camera service. -*/ - -/*! - \fn QCameraControl::stop() - - Stop the camera service. -*/ - -/*! - \fn QCameraControl::state() const - - Returns the state of the camera service. - - \sa QCamera::state -*/ - -/*! - \fn void QCameraControl::stateChanged(QCamera::State state) - - Signal emitted when \a state changes state. -*/ - -/*! - \fn void QCameraControl::error(int error, const QString &errorString) - - Signal emitted when an error occurs with error code \a error and - a description of the error \a errorString. -*/ - -#include "moc_qcameracontrol.cpp" -QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qcameracontrol.h --- a/qtmobility/src/multimedia/experimental/qcameracontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +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 Qt Mobility Components. -** -** $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 QCAMERACONTROL_H -#define QCAMERACONTROL_H - -#include -#include - -#include - -QTM_BEGIN_NAMESPACE - -class Q_MEDIA_EXPORT QCameraControl : public QMediaControl -{ - Q_OBJECT - -public: - ~QCameraControl(); - - virtual void start() = 0; - virtual void stop() = 0; - virtual QCamera::State state() const = 0; - - virtual QCamera::CaptureMode captureMode() const = 0; - virtual void setCaptureMode(QCamera::CaptureMode) = 0; - virtual QCamera::CaptureModes supportedCaptureModes() const = 0; - -Q_SIGNALS: - void stateChanged(QCamera::State); - void error(int error, const QString &errorString); - void captureModeChanged(QCamera::CaptureMode); - -protected: - QCameraControl(QObject* parent = 0); -}; - -#define QCameraControl_iid "com.nokia.Qt.QCameraControl/1.0" -Q_MEDIA_DECLARE_CONTROL(QCameraControl, QCameraControl_iid) - -QTM_END_NAMESPACE - -#endif // QCAMERACONTROL_H - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qcameraexposurecontrol.cpp --- a/qtmobility/src/multimedia/experimental/qcameraexposurecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,331 +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 Qt Mobility Components. -** -** $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 -#include "qmediacontrol_p.h" - -QTM_BEGIN_NAMESPACE - -/*! - \class QCameraExposureControl - - \preliminary - \brief The QCameraExposureControl class supplies control for exposure - related camera parameters. - - \ingroup camera - - The interface name of QCameraExposureControl is \c com.nokia.Qt.QCameraExposureControl/1.0 as - defined in QCameraExposureControl_iid. - -The Camera API of Qt Mobility is still in \bold Technology Preview. It has not undergone -the same level of review and testing as the rest of the APIs. - -The API exposed by the classes in this component are not stable, and will -undergo modification or removal prior to the final release of Qt Mobility. - - \sa QMediaService::control(), QCamera -*/ - -/*! - \macro QCameraExposureControl_iid - - \c com.nokia.Qt.QCameraExposureControl/1.0 - - Defines the interface name of the QCameraExposureControl class. - - \relates QCameraExposureControl -*/ - -/*! - Constructs a camera exposure control object with \a parent. -*/ - -QCameraExposureControl::QCameraExposureControl(QObject *parent): - QMediaControl(*new QMediaControlPrivate, parent) -{ -} - -/*! - Destruct the camera control object. -*/ - -QCameraExposureControl::~QCameraExposureControl() -{ -} - -/*! - \fn void QCameraExposureControl::lockExposure() - - Lock the exposure. -*/ - - -/*! - \fn void QCameraExposureControl::unlockExposure() - - Unlock the exposure. -*/ - - -/*! - \fn QCamera::FlashMode QCameraExposureControl::flashMode() const - - Returns the current flash mode. -*/ - - -/*! - \fn void QCameraExposureControl::setFlashMode(QCamera::FlashMode mode) - - Set the current flash \a mode. -*/ - - -/*! - \fn QCamera::FlashModes QCameraExposureControl::supportedFlashModes() const - - Returns the flash modes available. -*/ - - -/*! - \fn bool QCameraExposureControl::isFlashReady() const - - Returns true if flash is charged. -*/ - - - -/*! - \fn QCamera::ExposureMode QCameraExposureControl::exposureMode() const - - Returns the exposure mode. -*/ - - -/*! - \fn void QCameraExposureControl::setExposureMode(QCamera::ExposureMode mode) - - Set the exposure mode to \a mode. -*/ - - -/*! - \fn QCamera::ExposureModes QCameraExposureControl::supportedExposureModes() const - - Returns the available exposure modes. -*/ - - -/*! - \fn qreal QCameraExposureControl::exposureCompensation() const - - Returns the exposure compensation in EV. -*/ - - -/*! - \fn void QCameraExposureControl::setExposureCompensation(qreal ev) - - Set the exposure compensation to \a ev -*/ - - - -/*! - \fn QCamera::MeteringMode QCameraExposureControl::meteringMode() const - Returns the current metering mode. -*/ - - -/*! - \fn void QCameraExposureControl::setMeteringMode(QCamera::MeteringMode mode) - -Set the metering mode to \a mode. -*/ - - -/*! - \fn QCamera::MeteringModes QCameraExposureControl::supportedMeteringModes() const - Return the metering modes available. -*/ - -/*! - \fn int QCameraExposureControl::isoSensitivity() const - - Returns the ISO sensitivity, or -1 if unknown. -*/ - -/*! - \fn QList QCameraExposureControl::supportedIsoSensitivities(bool *continuous) const - - Returns the list of ISO senitivities camera supports. - - If the camera supports arbitrary ISO sensitivities within the supported range, - *\a continuous is set to true, otherwise *\a continuous is set to false. -*/ - - -/*! - \fn void QCameraExposureControl::setManualIsoSensitivity(int iso) - - Set the sensitivity to \a iso -*/ - - -/*! - \fn void QCameraExposureControl::setAutoIsoSensitivity() - - Turn on auto sensitivity -*/ - - -/*! - \fn qreal QCameraExposureControl::aperture() const - - Returns the aperture -*/ - - -/*! - \fn QList QCameraExposureControl::supportedApertures(bool *continuous) const - - Returns the list of aperture values camera supports. - The apertures list can change depending on the focal length, - in such a case the apertureRangeChanged() signal is emited. - - If the camera supports arbitrary aperture values within the supported range, - *\a continuous is set to true, otherwise *\a continuous is set to false. -*/ - - -/*! - \fn void QCameraExposureControl::setManualAperture(qreal aperture) - - Set the aperture to \a aperture -*/ - - -/*! - \fn void QCameraExposureControl::setAutoAperture() - - Turn on auto aperture -*/ - - - -/*! - \fn qreal QCameraExposureControl::shutterSpeed() const - - Returns the shutter speed -*/ - -/*! - \fn QList QCameraExposureControl::supportedShutterSpeeds(bool *continuous) const - - Returns the list of shutter speed values in seconds camera supports. - - If the camera supports arbitrary shutter speed values within the supported range, - *\a continuous is set to true, otherwise *\a continuous is set to false. -*/ - - -/*! - \fn void QCameraExposureControl::setManualShutterSpeed(qreal seconds) - - Set the shutter speed to \a seconds -*/ - - -/*! - \fn void QCameraExposureControl::setAutoShutterSpeed() - - Turn on auto shutter speed -*/ - - - -/*! - \fn bool QCameraExposureControl::isExposureLocked() const - - Returns true if exposure locked -*/ - -/*! - \fn void QCameraExposureControl::exposureLocked() - - Signal emitted when exposure locked. -*/ - -/*! - \fn void QCameraExposureControl::flashReady(bool ready) - - Signal emitted when flash state changes, flash is charged \a ready. -*/ - -/*! - \fn void QCameraExposureControl::apertureChanged(qreal value) - - Signal emitted when the aperture value has changed to \a value. -*/ - -/*! - \fn void QCameraExposureControl::apertureRangeChanged() - - Signal emitted when the aperture range has changed. -*/ - -/*! - \fn void QCameraExposureControl::shutterSpeedChanged(qreal value) - - Signal emitted when the shutter speed changes to \a value. -*/ - -/*! - \fn void QCameraExposureControl::isoSensitivityChanged(int value) - - Signal emitted when sensitity value changes to \a value. -*/ - -#include "moc_qcameraexposurecontrol.cpp" -QTM_END_NAMESPACE - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qcameraexposurecontrol.h --- a/qtmobility/src/multimedia/experimental/qcameraexposurecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,115 +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 Qt Mobility Components. -** -** $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 QCAMERAEXPOSURECONTROL_H -#define QCAMERAEXPOSURECONTROL_H - -#include -#include - -#include - -QTM_BEGIN_NAMESPACE - -class Q_MEDIA_EXPORT QCameraExposureControl : public QMediaControl -{ - Q_OBJECT - -public: - ~QCameraExposureControl(); - - virtual QCamera::FlashMode flashMode() const = 0; - virtual void setFlashMode(QCamera::FlashMode mode) = 0; - virtual QCamera::FlashModes supportedFlashModes() const = 0; - virtual bool isFlashReady() const = 0; - - virtual QCamera::ExposureMode exposureMode() const = 0; - virtual void setExposureMode(QCamera::ExposureMode mode) = 0; - virtual QCamera::ExposureModes supportedExposureModes() const = 0; - - virtual qreal exposureCompensation() const = 0; - virtual void setExposureCompensation(qreal ev) = 0; - - virtual QCamera::MeteringMode meteringMode() const = 0; - virtual void setMeteringMode(QCamera::MeteringMode mode) = 0; - virtual QCamera::MeteringModes supportedMeteringModes() const = 0; - - virtual int isoSensitivity() const = 0; - virtual QList supportedIsoSensitivities(bool *continuous = 0) const = 0; - virtual void setManualIsoSensitivity(int iso) = 0; - virtual void setAutoIsoSensitivity() = 0; - - virtual qreal aperture() const = 0; - virtual QList supportedApertures(bool *continuous = 0) const = 0; - virtual void setManualAperture(qreal aperture) = 0; - virtual void setAutoAperture() = 0; - - virtual qreal shutterSpeed() const = 0; - virtual QList supportedShutterSpeeds(bool *continuous = 0) const = 0; - virtual void setManualShutterSpeed(qreal seconds) = 0; - virtual void setAutoShutterSpeed() = 0; - - virtual bool isExposureLocked() const = 0; - -public Q_SLOTS: - virtual void lockExposure() = 0; - virtual void unlockExposure() = 0; - -Q_SIGNALS: - void exposureLocked(); - void flashReady(bool); - - void apertureChanged(qreal); - void apertureRangeChanged(); - void shutterSpeedChanged(qreal); - void isoSensitivityChanged(int); - -protected: - QCameraExposureControl(QObject* parent = 0); -}; - -#define QCameraExposureControl_iid "com.nokia.Qt.QCameraExposureControl/1.0" -Q_MEDIA_DECLARE_CONTROL(QCameraExposureControl, QCameraExposureControl_iid) - -QTM_END_NAMESPACE - -#endif // QCAMERACONTROL_H - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qcamerafocuscontrol.cpp --- a/qtmobility/src/multimedia/experimental/qcamerafocuscontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,222 +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 Qt Mobility Components. -** -** $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 -#include "qmediacontrol_p.h" - -QTM_BEGIN_NAMESPACE - -/*! - \class QCameraFocusControl - - \preliminary - \brief The QCameraFocusControl class supplies control for - focusing related camera parameters. - - \ingroup camera - - The interface name of QCameraFocusControl is \c com.nokia.Qt.QCameraFocusControl/1.0 as - defined in QCameraFocusControl_iid. - -The Camera API of Qt Mobility is still in \bold Technology Preview. It has not undergone -the same level of review and testing as the rest of the APIs. - -The API exposed by the classes in this component are not stable, and will -undergo modification or removal prior to the final release of Qt Mobility. - - \sa QMediaService::control(), QCamera -*/ - -/*! - \macro QCameraFocusControl_iid - - \c com.nokia.Qt.QCameraFocusControl/1.0 - - Defines the interface name of the QCameraFocusControl class. - - \relates QCameraFocusControl -*/ - -/*! - Constructs a camera control object with \a parent. -*/ - -QCameraFocusControl::QCameraFocusControl(QObject *parent): - QMediaControl(*new QMediaControlPrivate, parent) -{ -} - -/*! - Destruct the camera control object. -*/ - -QCameraFocusControl::~QCameraFocusControl() -{ -} - - -/*! - \fn void QCameraFocusControl::startFocusing() - - Starts single or continuous autofocus. - - Does nothing in hyperfocal or infinity focus modes. - - If supported by camera, startFocusing() turns on the manual focusing notifications, - otherwise it does nothing in manual mode. -*/ - -/*! - \fn void QCameraFocusControl::cancelFocusing() - - Cancels the single autofocus request or stops continuous focusing. - - Does nothing in hyperfocal or infinity focus modes. - - If supported by camera, startFocusing() turns off the manual focusing notifications, - otherwise it does nothing in manual mode. -*/ - -/*! - \fn QCamera::FocusMode QCameraFocusControl::focusMode() const - - Returns the focus mode being used. -*/ - - -/*! - \fn void QCameraFocusControl::setFocusMode(QCamera::FocusMode mode) - - Set the focus mode to \a mode. -*/ - - -/*! - \fn QCamera::FocusModes QCameraFocusControl::supportedFocusModes() const - - Returns focus modes available. -*/ - - -/*! - \fn QCamera::FocusStatus QCameraFocusControl::focusStatus() const - - Returns the focus status. -*/ - - -/*! - \fn bool QCameraFocusControl::macroFocusingEnabled() const - - Returns true if macro focusing enabled. -*/ - - -/*! - \fn bool QCameraFocusControl::isMacroFocusingSupported() const - - Returns true if macro focusing is available. -*/ - - -/*! - \fn void QCameraFocusControl::setMacroFocusingEnabled(bool enable) - - Set macro focusing to \a enable -*/ - - -/*! - \fn qreal QCameraFocusControl::maximumOpticalZoom() const - - Returns the maximum optical zoom value, or 1.0 if optical zoom is not supported. -*/ - - -/*! - \fn qreal QCameraFocusControl::maximumDigitalZoom() const - - Returns the maximum digital zoom value, or 1.0 if digital zoom is not supported. -*/ - - -/*! - \fn qreal QCameraFocusControl::opticalZoom() const - - Return the current optical zoom value. -*/ - -/*! - \fn qreal QCameraFocusControl::digitalZoom() const - - Return the current digital zoom value. -*/ - - -/*! - \fn void QCameraFocusControl::zoomTo(qreal opticalZoom, qreal digitalZoom) - - Set the zoom value to \a value -*/ - - -/*! - \fn void QCameraFocusControl::focusStatusChanged(QCamera::FocusStatus status) - - Signal emitted when focus \a status changed. -*/ - - -/*! - \fn void QCameraFocusControl::opticalZoomChanged(qreal zoom) - - Signal emitted when the optical \a zoom value changed. -*/ - -/*! - \fn void QCameraFocusControl::digitalZoomChanged(qreal zoom) - - Signal emitted when the digital \a zoom value changed. -*/ - -#include "moc_qcamerafocuscontrol.cpp" -QTM_END_NAMESPACE - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qcamerafocuscontrol.h --- a/qtmobility/src/multimedia/experimental/qcamerafocuscontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +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 Qt Mobility Components. -** -** $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 QCAMERAFOCUSCONTROL_H -#define QCAMERAFOCUSCONTROL_H - -#include -#include - -#include - -QTM_BEGIN_NAMESPACE - -class Q_MEDIA_EXPORT QCameraFocusControl : public QMediaControl -{ - Q_OBJECT - -public: - ~QCameraFocusControl(); - - virtual QCamera::FocusMode focusMode() const = 0; - virtual void setFocusMode(QCamera::FocusMode mode) = 0; - virtual QCamera::FocusModes supportedFocusModes() const = 0; - virtual QCamera::FocusStatus focusStatus() const = 0; - - virtual bool macroFocusingEnabled() const = 0; - virtual bool isMacroFocusingSupported() const = 0; - virtual void setMacroFocusingEnabled(bool) = 0; - - virtual qreal maximumOpticalZoom() const = 0; - virtual qreal maximumDigitalZoom() const = 0; - virtual qreal opticalZoom() const = 0; - virtual qreal digitalZoom() const = 0; - - virtual void zoomTo(qreal optical, qreal digital) = 0; - -public Q_SLOTS: - virtual void startFocusing() = 0; - virtual void cancelFocusing() = 0; - -Q_SIGNALS: - void opticalZoomChanged(qreal opticalZoom); - void digitalZoomChanged(qreal digitalZoom); - void focusStatusChanged(QCamera::FocusStatus); - -protected: - QCameraFocusControl(QObject* parent = 0); -}; - -#define QCameraFocusControl_iid "com.nokia.Qt.QCameraFocusingControl/1.0" -Q_MEDIA_DECLARE_CONTROL(QCameraFocusControl, QCameraFocusControl_iid) - -QTM_END_NAMESPACE - -#endif // QCAMERAFOCUSCONTROL_H - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qimagecapturecontrol.cpp --- a/qtmobility/src/multimedia/experimental/qimagecapturecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,130 +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 Qt Mobility Components. -** -** $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 -#include - -QTM_BEGIN_NAMESPACE - -/*! - \class QImageCaptureControl - - \brief The QImageCaptureControl class provides a control interface - for image capture services. - - \ingroup camera - - \preliminary - - The interface name of QImageCaptureControl is \c com.nokia.Qt.QImageCaptureControl/1.0 as - defined in QImageCaptureControl_iid. - -The Camera API of Qt Mobility is still in \bold Technology Preview. It has not undergone -the same level of review and testing as the rest of the APIs. - -The API exposed by the classes in this component are not stable, and will -undergo modification or removal prior to the final release of Qt Mobility. - - \sa QMediaService::control() -*/ - -/*! - \macro QImageCaptureControl_iid - - \c com.nokia.Qt.QImageCaptureControl/1.0 - - Defines the interface name of the QImageCaptureControl class. - - \relates QImageCaptureControl -*/ - -/*! - Constructs a new image capture control object with the given \a parent -*/ -QImageCaptureControl::QImageCaptureControl(QObject *parent) - :QMediaControl(parent) -{ -} - -/*! - Destroys an image capture control. -*/ -QImageCaptureControl::~QImageCaptureControl() -{ -} - -/*! - \fn QImageCaptureControl::isReadyForCapture() const - - Identifies if a capture control is ready to perform a capture. - - Returns true if the control is ready; and false if it is not. -*/ - -/*! - \fn QImageCaptureControl::readyForCaptureChanged(bool ready) - - Signals that a capture control's \a ready state has changed. -*/ - -/*! - \fn QImageCaptureControl::capture(const QString &fileName) - - Initiates the capture of an image to \a fileName. -*/ - -/*! - \fn QImageCaptureControl::imageCaptured(const QString &fileName, const QImage &preview) - - Signals that an image intendec to be saved to to \a fileName - has been captured and a \a preview is available. -*/ - - -/*! - \fn QImageCaptureControl::imageSaved(const QString &fileName) - - Signals that an captured image has been saved to \a fileName. -*/ - -#include "moc_qimagecapturecontrol.cpp" -QTM_END_NAMESPACE - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qimagecapturecontrol.h --- a/qtmobility/src/multimedia/experimental/qimagecapturecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,83 +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 Qt Mobility Components. -** -** $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 QIMAGECAPTURECONTROL_H -#define QIMAGECAPTURECONTROL_H - -#include - -QT_BEGIN_NAMESPACE -class QImage; -QT_END_NAMESPACE - -QTM_BEGIN_NAMESPACE - -class Q_MEDIA_EXPORT QImageCaptureControl : public QMediaControl -{ - Q_OBJECT - -public: - ~QImageCaptureControl(); - - virtual bool isReadyForCapture() const = 0; - - virtual void capture(const QString &fileName) = 0; - -Q_SIGNALS: - void readyForCaptureChanged(bool); - - void imageCaptured(const QString &fileName, const QImage &preview); - void imageSaved(const QString &fileName); - - void error(int error, const QString &errorString); - -protected: - QImageCaptureControl(QObject* parent = 0); -}; - -#define QImageCaptureControl_iid "com.nokia.Qt.QImageCaptureControl/1.0" -Q_MEDIA_DECLARE_CONTROL(QImageCaptureControl, QImageCaptureControl_iid) - -QTM_END_NAMESPACE - -#endif // QMEDIAPLAYERCONTROL_H - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qimageprocessingcontrol.cpp --- a/qtmobility/src/multimedia/experimental/qimageprocessingcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,179 +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 Qt Mobility Components. -** -** $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 -#include "qmediacontrol_p.h" - -QTM_BEGIN_NAMESPACE - -/*! - \class QImageProcessingControl - \ingroup multimedia-serv - - \preliminary - \brief The QImageProcessingControl class provides an abstract class - for controling image processing parameters, like white balance, - contrast, saturation, sharpening and denoising. - - The interface name of QImageProcessingControl is \c com.nokia.Qt.QImageProcessingControl/1.0 as - defined in QImageProcessingControl_iid. - - -The Camera API of Qt Mobility is still in \bold Technology Preview. It has not undergone -the same level of review and testing as the rest of the APIs. - -The API exposed by the classes in this component are not stable, and will -undergo modification or removal prior to the final release of Qt Mobility. - - - \sa QMediaService::control(), QCamera -*/ - -/*! - \macro QImageProcessingControl_iid - - \c com.nokia.Qt.QImageProcessingControl/1.0 - - Defines the interface name of the QImageProcessingControl class. - - \relates QImageProcessingControl -*/ - -/*! - Constructs an image processing control object with \a parent. -*/ - -QImageProcessingControl::QImageProcessingControl(QObject *parent): - QMediaControl(*new QMediaControlPrivate, parent) -{ -} - -/*! - Destruct the image processing control object. -*/ - -QImageProcessingControl::~QImageProcessingControl() -{ -} - - -/*! - \fn QImageProcessingControl::whiteBalanceMode() const - Return the white balance mode being used. -*/ - -/*! - \fn QImageProcessingControl::setWhiteBalanceMode(QCamera::WhiteBalanceMode mode) - Set the white balance mode to \a mode -*/ - -/*! - \fn QImageProcessingControl::supportedWhiteBalanceModes() const - Return the list of supported white balance modes. -*/ - -/*! - \fn QImageProcessingControl::manualWhiteBalance() const - Return the manual white balance, in K. -*/ - -/*! - \fn QImageProcessingControl::setManualWhiteBalance(int colorTemperature) - Set the white balance to \a colorTemperature -*/ - -/*! - \fn QImageProcessingControl::contrast() const - Return the contrast. -*/ - -/*! - \fn QImageProcessingControl::setContrast(qreal value) - Set the contrast to \a value. -*/ - -/*! - \fn QImageProcessingControl::isDenoisingSupported() const - Returns true if denoising is supported. -*/ - -/*! - \fn QImageProcessingControl::saturation() const - Returns the saturation value. -*/ - -/*! - \fn QImageProcessingControl::setSaturation(qreal value) - Sets the saturation value to \a value. -*/ - -/*! - \fn QImageProcessingControl::denoisingLevel() const - Returns the denoising level. -*/ - -/*! - \fn QImageProcessingControl::setDenoisingLevel(qreal level) - - Sets the denoising \a level. -*/ - -/*! - \fn QImageProcessingControl::isSharpeningSupported() const - - Identifies if sharpening is supported. - - Returns true if sharpening is supported; and false if it is not. -*/ - -/*! - \fn QImageProcessingControl::setSharpeningLevel(qreal level) - Sets the sharpening \a level. -*/ - -/*! - \fn QImageProcessingControl::sharpeningLevel() const - Returns the sharpening level. -*/ - -#include "moc_qimageprocessingcontrol.cpp" -QTM_END_NAMESPACE - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qimageprocessingcontrol.h --- a/qtmobility/src/multimedia/experimental/qimageprocessingcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,89 +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 Qt Mobility Components. -** -** $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 QIMAGEPROCESSINGCONTROL_H -#define QIMAGEPROCESSINGCONTROL_H - -#include -#include - -#include - -QTM_BEGIN_NAMESPACE - -class Q_MEDIA_EXPORT QImageProcessingControl : public QMediaControl -{ - Q_OBJECT - -public: - ~QImageProcessingControl(); - - virtual QCamera::WhiteBalanceMode whiteBalanceMode() const = 0; - virtual void setWhiteBalanceMode(QCamera::WhiteBalanceMode mode) = 0; - virtual QCamera::WhiteBalanceModes supportedWhiteBalanceModes() const = 0; - virtual int manualWhiteBalance() const = 0; - virtual void setManualWhiteBalance(int colorTemperature) = 0; - - virtual qreal contrast() const = 0; - virtual void setContrast(qreal value) = 0; - - virtual qreal saturation() const = 0; - virtual void setSaturation(qreal value) = 0; - - virtual bool isSharpeningSupported() const = 0; - virtual qreal sharpeningLevel() const = 0; - virtual void setSharpeningLevel(qreal value) = 0; - - virtual bool isDenoisingSupported() const = 0; - virtual qreal denoisingLevel() const = 0; - virtual void setDenoisingLevel(qreal value) = 0; - -protected: - QImageProcessingControl(QObject* parent = 0); -}; - -#define QImageProcessingControl_iid "com.nokia.Qt.QImageProcessingControl/1.0" -Q_MEDIA_DECLARE_CONTROL(QImageProcessingControl, QImageProcessingControl_iid) - -QTM_END_NAMESPACE - -#endif - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qstillimagecapture.cpp --- a/qtmobility/src/multimedia/experimental/qstillimagecapture.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,344 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -QTM_BEGIN_NAMESPACE - -/*! - \class QStillImageCapture - \ingroup multimedia - - \preliminary - \brief The QStillImageCapture class is used for the recording of media content. - - The QStillImageCapture class is a high level images recording class. - It's not intended to be used alone but for accessing the media - recording functions of other media objects, like QCamera. - - \code - camera = new QCamera; - viewFinder = new QVideoWidget(camera); - viewFinder->show(); - - imageCapture = new QStillImageCapture(camera); - - camera->start(); - - imageCapture->capture(fileName); - \endcode - - \sa QCamera -*/ - -namespace -{ -class MediaRecorderRegisterMetaTypes -{ -public: - MediaRecorderRegisterMetaTypes() - { - qRegisterMetaType("QStillImageCapture::Error"); - } -} _registerRecorderMetaTypes; -} - - -class QStillImageCapturePrivate : public QMediaObjectPrivate -{ - Q_DECLARE_NON_CONST_PUBLIC(QStillImageCapture) - -public: - QStillImageCapturePrivate(); - void initControls(); - - QImageCaptureControl *control; - QImageEncoderControl *encoderControl; - QStillImageCapture::Error error; - QString errorString; - - void _q_error(int error, const QString &errorString); - - void unsetError() { error = QStillImageCapture::NoError; errorString.clear(); } -}; - -QStillImageCapturePrivate::QStillImageCapturePrivate(): - control(0), - error(QStillImageCapture::NoError) -{ -} - -void QStillImageCapturePrivate::initControls() -{ - Q_Q(QStillImageCapture); - - if (!service) - return; - - control = qobject_cast(service->control(QImageCaptureControl_iid)); - encoderControl = qobject_cast(service->control(QImageEncoderControl_iid)); - - if (control) { - q->connect(control, SIGNAL(imageCaptured(QString,QImage)), - q, SIGNAL(imageCaptured(QString,QImage))); - q->connect(control, SIGNAL(imageSaved(QString)), - q, SIGNAL(imageSaved(QString))); - q->connect(control, SIGNAL(readyForCaptureChanged(bool)), - q, SIGNAL(readyForCaptureChanged(bool))); - q->connect(control, SIGNAL(error(int,QString)), - q, SLOT(_q_error(int,QString))); - } - -} - -void QStillImageCapturePrivate::_q_error(int error, const QString &errorString) -{ - Q_Q(QStillImageCapture); - - this->error = QStillImageCapture::Error(error); - this->errorString = errorString; - - emit q->error(this->error); -} - - -/*! - Constructs a media recorder which records the media produced by \a mediaObject. - - The \a parent is passed to QMediaObject. -*/ - -QStillImageCapture::QStillImageCapture(QMediaObject *mediaObject, QObject *parent): - QMediaObject(*new QStillImageCapturePrivate, parent, mediaObject->service()) -{ - Q_D(QStillImageCapture); - - d->initControls(); -} - -/*! - Destroys images capture object. -*/ - -QStillImageCapture::~QStillImageCapture() -{ -} - -/*! - Returns true if the images capture service ready to use. -*/ -bool QStillImageCapture::isAvailable() const -{ - if (d_func()->control != NULL) - return true; - else - return false; -} - -/*! - Returns the availability error code. -*/ -QtMedia::AvailabilityError QStillImageCapture::availabilityError() const -{ - if (d_func()->control != NULL) - return QtMedia::NoError; - else - return QtMedia::ServiceMissingError; -} - -/*! - Returns the current error state. - - \sa errorString() -*/ - -QStillImageCapture::Error QStillImageCapture::error() const -{ - return d_func()->error; -} - -/*! - Returns a string describing the current error state. - - \sa error() -*/ - -QString QStillImageCapture::errorString() const -{ - return d_func()->errorString; -} - - -/*! - Returns a list of supported image codecs. -*/ -QStringList QStillImageCapture::supportedImageCodecs() const -{ - return d_func()->encoderControl ? - d_func()->encoderControl->supportedImageCodecs() : QStringList(); -} - -/*! - Returns a description of an image \a codec. -*/ -QString QStillImageCapture::imageCodecDescription(const QString &codec) const -{ - return d_func()->encoderControl ? - d_func()->encoderControl->imageCodecDescription(codec) : QString(); -} - -/*! - Returns a list of resolutions images can be encoded at. - - If non null image \a settings parameter is passed, - the returned list is reduced to resolution supported with partial settings like image codec or quality applied. - - If the encoder supports arbitrary resolutions within the supported range, - *\a continuous is set to true, otherwise *\a continuous is set to false. - - \sa QImageEncoderSettings::resolution() -*/ -QList QStillImageCapture::supportedResolutions(const QImageEncoderSettings &settings, bool *continuous) const -{ - if (continuous) - *continuous = false; - - return d_func()->encoderControl ? - d_func()->encoderControl->supportedResolutions(settings, continuous) : QList(); -} - -/*! - Returns the image encoder settings being used. - - \sa setEncodingSettings() -*/ - -QImageEncoderSettings QStillImageCapture::encodingSettings() const -{ - return d_func()->encoderControl ? - d_func()->encoderControl->imageSettings() : QImageEncoderSettings(); -} - -/*! - Sets the image encodeing \a settings. - - If some parameters are not specified, or null settings are passed, - the encoder choose the default encoding parameters. - - \sa encodingSettings() -*/ - -void QStillImageCapture::setEncodingSettings(const QImageEncoderSettings &settings) -{ - Q_D(QStillImageCapture); - - if (d->encoderControl) - d->encoderControl->setImageSettings(settings); -} - -/*! - \property QStillImageCapture::readyForCapture - Indicates the service is ready to capture an image immediately. -*/ - -bool QStillImageCapture::isReadyForCapture() const -{ - return d_func()->control ? d_func()->control->isReadyForCapture() : false; -} - -/*! - \fn QStillImageCapture::readyForCaptureChanged(bool ready) - - Signals that a camera's \a ready for capture state has changed. -*/ - -/*! - Capture the image and save it to \a file. - This operation is asynchronous in majority of cases, - followed by signals QStillImageCapture::imageCaptured(), QStillImageCapture::imageSaved() - or QStillImageCapture::error() -*/ -void QStillImageCapture::capture(const QString &file) -{ - Q_D(QStillImageCapture); - - d->unsetError(); - - if (d->control) { - d->control->capture(file); - } else { - d->error = NotSupportedFeatureError; - d->errorString = tr("Device does not support images capture."); - - emit error(d->error); - } -} - - -/*! - \enum QStillImageCapture::Error - - \value NoError No Errors. - \value NotReadyError The service is not ready for capture yet. - \value ResourceError Device is not ready or not available. - \value NotSupportedFeatureError Device does not support stillimages capture. - \value FormatError Current format is not supported. -*/ - -/*! - \fn QStillImageCapture::error(QStillImageCapture::Error error) - - Signals that an \a error has occurred. -*/ - - -#include "moc_qstillimagecapture.cpp" -QTM_END_NAMESPACE - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/experimental/qstillimagecapture.h --- a/qtmobility/src/multimedia/experimental/qstillimagecapture.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +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 Qt Mobility Components. -** -** $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 QSTILLIMAGECAPTURE_H -#define QSTILLIMAGECAPTURE_H - -#include -#include - -QT_BEGIN_NAMESPACE -class QSize; -QT_END_NAMESPACE - -QTM_BEGIN_NAMESPACE - -class QImageEncoderSettings; - -class QStillImageCapturePrivate; -class Q_MEDIA_EXPORT QStillImageCapture : public QMediaObject -{ - Q_OBJECT - Q_ENUMS(Error) - Q_PROPERTY(bool readyForCapture READ isReadyForCapture NOTIFY readyForCaptureChanged) -public: - enum Error - { - NoError, - NotReadyError, - ResourceError, - NotSupportedFeatureError, - FormatError - }; - - QStillImageCapture(QMediaObject *mediaObject, QObject *parent = 0); - ~QStillImageCapture(); - - bool isAvailable() const; - QtMedia::AvailabilityError availabilityError() const; - - Error error() const; - QString errorString() const; - - bool isReadyForCapture() const; - - QStringList supportedImageCodecs() const; - QString imageCodecDescription(const QString &codecName) const; - - QList supportedResolutions(const QImageEncoderSettings &settings = QImageEncoderSettings(), - bool *continuous = 0) const; - - QImageEncoderSettings encodingSettings() const; - void setEncodingSettings(const QImageEncoderSettings& settings); - -public Q_SLOTS: - void capture(const QString &fileName); - -Q_SIGNALS: - void error(QStillImageCapture::Error error); - - void readyForCaptureChanged(bool); - void imageCaptured(const QString &fileName, const QImage &preview); - void imageSaved(const QString &fileName); - -private: - Q_DISABLE_COPY(QStillImageCapture) - Q_DECLARE_PRIVATE(QStillImageCapture) - Q_PRIVATE_SLOT(d_func(), void _q_error(int, const QString &)) -}; - -QTM_END_NAMESPACE - -Q_DECLARE_METATYPE(QTM_PREPEND_NAMESPACE(QStillImageCapture::Error)) - -#endif - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/multimedia.pro --- a/qtmobility/src/multimedia/multimedia.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/multimedia.pro Mon May 03 13:18:40 2010 +0300 @@ -12,6 +12,7 @@ !static:DEFINES += QT_MAKEDLL DEFINES += QT_BUILD_MEDIA_LIB +!symbian:DEFINES += QTM_PLUGIN_PATH=\\\"$$replace(QT_MOBILITY_PREFIX, \\\\, /)/plugins\\\" PRIVATE_HEADERS += \ qmediacontrol_p.h \ @@ -103,42 +104,8 @@ qvideorenderercontrol.cpp \ qmediatimerange.cpp -contains(QT_CONFIG, declarative) { - QT += declarative - - PRIVATE_HEADERS += \ - qmetadatacontrolmetaobject_p.h \ - qmlaudio_p.h \ - qmlgraphicsvideo_p.h \ - qmlmediabase_p.h \ - qsoundeffect_p.h \ - wavedecoder.h - - SOURCES += \ - qmetadatacontrolmetaobject.cpp \ - qmlaudio.cpp \ - qmlgraphicsvideo.cpp \ - qmlmediabase.cpp \ - qsoundeffect.cpp \ - wavedecoder.cpp - - maemo5: DEFINES += QT_MULTIMEDIA_MAEMO5 - system(pkg-config --exists \'libpulse >= 0.9.10\') { - DEFINES += QT_MULTIMEDIA_PULSEAUDIO - PRIVATE_HEADERS += qsoundeffect_pulse_p.h - SOURCES += qsoundeffect_pulse_p.cpp - LIBS_PRIVATE += -lpulse - } else:x11 { - DEFINES += QT_MULTIMEDIA_QMEDIAPLAYER - PRIVATE_HEADERS += qsoundeffect_qmedia_p.h - SOURCES += qsoundeffect_qmedia_p.cpp - } else { - PRIVATE_HEADERS += qsoundeffect_qsound_p.h - SOURCES += qsoundeffect_qsound_p.cpp - } -} - maemo5 { + QMAKE_CXXFLAGS += -march=armv7a -mcpu=cortex-a8 -mfloat-abi=softfp -mfpu=neon HEADERS += qxvideosurface_maemo5_p.h SOURCES += qxvideosurface_maemo5.cpp SOURCES += qgraphicsvideoitem_maemo5.cpp @@ -147,7 +114,6 @@ SOURCES += qgraphicsvideoitem.cpp } -include (experimental/experimental.pri) HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS symbian { @@ -156,7 +122,6 @@ QtMediaDeployment.path = /sys/bin DEPLOYMENT += QtMediaDeployment TARGET.UID3=0x2002AC77 - MMP_RULES += EXPORTUNFROZEN TARGET.CAPABILITY = ALL -TCB } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qaudiocapturesource.cpp --- a/qtmobility/src/multimedia/qaudiocapturesource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qaudiocapturesource.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,9 +39,9 @@ ** ****************************************************************************/ -#include +#include "qmediaobject_p.h" #include -#include +#include "qaudioendpointselector.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qaudiocapturesource.h --- a/qtmobility/src/multimedia/qaudiocapturesource.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qaudiocapturesource.h Mon May 03 13:18:40 2010 +0300 @@ -48,12 +48,12 @@ #include -#include -#include -#include -#include +#include "qmediarecorder.h" +#include "qmediacontrol.h" +#include "qmediaobject.h" +#include "qmediaservice.h" -#include +#include "qmediaserviceprovider.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qaudioencodercontrol.cpp --- a/qtmobility/src/multimedia/qaudioencodercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qaudioencodercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qaudioencodercontrol.h" #include QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qaudioencodercontrol.h --- a/qtmobility/src/multimedia/qaudioencodercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qaudioencodercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,8 @@ #ifndef QAUDIOENCODERCONTROL_H #define QAUDIOENCODERCONTROL_H -#include -#include +#include "qmediacontrol.h" +#include "qmediarecorder.h" #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qaudioendpointselector.cpp --- a/qtmobility/src/multimedia/qaudioendpointselector.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qaudioendpointselector.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qaudioendpointselector.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qaudioendpointselector.h --- a/qtmobility/src/multimedia/qaudioendpointselector.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qaudioendpointselector.h Mon May 03 13:18:40 2010 +0300 @@ -43,7 +43,7 @@ #define QAUDIOENDPOINTSELECTOR_H #include -#include +#include "qmediacontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qgraphicsvideoitem.cpp --- a/qtmobility/src/multimedia/qgraphicsvideoitem.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qgraphicsvideoitem.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,17 +39,21 @@ ** ****************************************************************************/ -#include +#include "qgraphicsvideoitem.h" -#include -#include -#include -#include -#include +#include "qmediaobject.h" +#include "qmediaservice.h" +#include "qpaintervideosurface_p.h" +#include "qvideooutputcontrol.h" +#include "qvideorenderercontrol.h" + +#include #include -//#include -//#define QGRAPHICSVIDEOITEM_SHADERS + +#if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_1_CL) && !defined(QT_OPENGL_ES_1) +#include +#endif QTM_BEGIN_NAMESPACE @@ -204,18 +208,6 @@ */ /*! - \enum QGraphicsVideoItem::FillMode - - Enumerates the methods of scaling a video to fit a graphics item. - - \value Stretch The video is stretched to fit the item's size. - \value PreserveAspectFit The video is uniformly scaled to fix the item's - size without cropping. - \value PreserveAspectCrop The video is uniformly scaled to fill the item's - size, cropping if necessary. -*/ - -/*! Constructs a graphics item that displays video. The \a parent is passed to QGraphicsItem. @@ -282,7 +274,7 @@ d->service = d->mediaObject->service(); if (d->service) { - connect(d->service, SIGNAL(destroyed()), this, SLOT(_q_serviceDestroyed())); + connect(d->service, SIGNAL(destroyed()), this, SLOT(_q_serviceDestroyed())); d->outputControl = qobject_cast( d->service->control(QVideoOutputControl_iid)); @@ -397,9 +389,7 @@ if (d->surface && d->surface->isActive()) { d->surface->paint(painter, d->boundingRect, d->sourceRect); d->surface->setReady(true); -#ifndef QGRAPHICSVIDEOITEM_SHADERS // Flickers - } -#else +#if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_1_CL) && !defined(QT_OPENGL_ES_1) } else if (d->updatePaintDevice && (painter->paintEngine()->type() == QPaintEngine::OpenGL || painter->paintEngine()->type() == QPaintEngine::OpenGL2)) { d->updatePaintDevice = false; @@ -410,8 +400,8 @@ } else { d->surface->setShaderType(QPainterVideoSurface::FragmentProgramShader); } +#endif } -#endif } /*! @@ -421,21 +411,12 @@ */ QVariant QGraphicsVideoItem::itemChange(GraphicsItemChange change, const QVariant &value) { - Q_D(QGraphicsVideoItem); - - if (change == ItemVisibleChange && d->outputControl != 0 && d->rendererControl != 0) { - if (value.toBool()) { - d->outputControl->setOutput(QVideoOutputControl::RendererOutput); + return QGraphicsItem::itemChange(change, value); +} - return d->outputControl->output() == QVideoOutputControl::RendererOutput; - } else { - d->outputControl->setOutput(QVideoOutputControl::NoOutput); - - return value; - } - } else { - return QGraphicsItem::itemChange(change, value); - } +void QGraphicsVideoItem::timerEvent(QTimerEvent *event) +{ + QGraphicsObject::timerEvent(event); } #include "moc_qgraphicsvideoitem.cpp" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qgraphicsvideoitem.h --- a/qtmobility/src/multimedia/qgraphicsvideoitem.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qgraphicsvideoitem.h Mon May 03 13:18:40 2010 +0300 @@ -44,7 +44,7 @@ #include -#include +#include "qvideowidget.h" QT_BEGIN_NAMESPACE class QVideoSurfaceFormat; @@ -62,13 +62,6 @@ Q_PROPERTY(QSizeF size READ size WRITE setSize) Q_PROPERTY(QSizeF nativeSize READ nativeSize NOTIFY nativeSizeChanged) public: - enum FillMode - { - Stretch, - PreserveAspectFit, - PreserveAspectCrop - }; - QGraphicsVideoItem(QGraphicsItem *parent = 0); ~QGraphicsVideoItem(); @@ -91,9 +84,10 @@ void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); Q_SIGNALS: - void nativeSizeChanged(const QSizeF &size) const; + void nativeSizeChanged(const QSizeF &size); protected: + void timerEvent(QTimerEvent *event); QVariant itemChange(GraphicsItemChange change, const QVariant &value); QGraphicsVideoItemPrivate *d_ptr; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qgraphicsvideoitem_maemo5.cpp --- a/qtmobility/src/multimedia/qgraphicsvideoitem_maemo5.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qgraphicsvideoitem_maemo5.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,25 +40,187 @@ ****************************************************************************/ #include +#include +#include +#include #include #include #include #include -#include +#include "qgraphicsvideoitem.h" -#include -#include -#include -#include -#include +#include "qmediaobject.h" +#include "qmediaservice.h" +#include "qpaintervideosurface_p.h" +#include "qvideooutputcontrol.h" +#include "qvideorenderercontrol.h" #include -#include +#include "qxvideosurface_maemo5_p.h" + QTM_BEGIN_NAMESPACE +//update overlay geometry slightly later, +//to ensure color key is alredy replaced with static frame +#define GEOMETRY_UPDATE_DELAY 20 +//this is necessary to prevent flickering, see maemo bug 8798 +//on geometry changes, the color key is replaced with static image frame +//until the overlay is re-initialized +#define SOFTWARE_RENDERING_DURATION 150 + +#ifdef __ARM_NEON__ + +/* +* ARM NEON optimized implementation of UYVY -> RGB16 convertor +*/ +static void uyvy422_to_rgb16_line_neon (uint8_t * dst, const uint8_t * src, int n) +{ + /* and this is the NEON code itself */ + static __attribute__ ((aligned (16))) uint16_t acc_r[8] = { + 22840, 22840, 22840, 22840, 22840, 22840, 22840, 22840, + }; + static __attribute__ ((aligned (16))) uint16_t acc_g[8] = { + 17312, 17312, 17312, 17312, 17312, 17312, 17312, 17312, + }; + static __attribute__ ((aligned (16))) uint16_t acc_b[8] = { + 28832, 28832, 28832, 28832, 28832, 28832, 28832, 28832, + }; + /* + * Registers: + * q0, q1 : d0, d1, d2, d3 - are used for initial loading of YUV data + * q2 : d4, d5 - are used for storing converted RGB data + * q3 : d6, d7 - are used for temporary storage + * + * q6 : d12, d13 - are used for converting to RGB16 + * q7 : d14, d15 - are used for storing RGB16 data + * q4-q5 - reserved + * + * q8, q9 : d16, d17, d18, d19 - are used for expanded Y data + * q10 : d20, d21 + * q11 : d22, d23 + * q12 : d24, d25 + * q13 : d26, d27 + * q13, q14, q15 - various constants (#16, #149, #204, #50, #104, #154) + */ + asm volatile (".macro convert_macroblock size\n" + /* load up to 16 source pixels in UYVY format */ + ".if \\size == 16\n" + "pld [%[src], #128]\n" + "vld1.32 {d0, d1, d2, d3}, [%[src]]!\n" + ".elseif \\size == 8\n" + "vld1.32 {d0, d1}, [%[src]]!\n" + ".elseif \\size == 4\n" + "vld1.32 {d0}, [%[src]]!\n" + ".elseif \\size == 2\n" + "vld1.32 {d0[0]}, [%[src]]!\n" + ".else\n" ".error \"unsupported macroblock size\"\n" ".endif\n" + /* convert from 'packed' to 'planar' representation */ + "vuzp.8 d0, d1\n" /* d1 - separated Y data (first 8 bytes) */ + "vuzp.8 d2, d3\n" /* d3 - separated Y data (next 8 bytes) */ + "vuzp.8 d0, d2\n" /* d0 - separated U data, d2 - separated V data */ + /* split even and odd Y color components */ + "vuzp.8 d1, d3\n" /* d1 - evenY, d3 - oddY */ + /* clip upper and lower boundaries */ + "vqadd.u8 q0, q0, q4\n" + "vqadd.u8 q1, q1, q4\n" + "vqsub.u8 q0, q0, q5\n" + "vqsub.u8 q1, q1, q5\n" + "vshr.u8 d4, d2, #1\n" /* d4 = V >> 1 */ + "vmull.u8 q8, d1, d27\n" /* q8 = evenY * 149 */ + "vmull.u8 q9, d3, d27\n" /* q9 = oddY * 149 */ + "vld1.16 {d20, d21}, [%[acc_r], :128]\n" /* q10 - initialize accumulator for red */ + "vsubw.u8 q10, q10, d4\n" /* red acc -= (V >> 1) */ + "vmlsl.u8 q10, d2, d28\n" /* red acc -= V * 204 */ + "vld1.16 {d22, d23}, [%[acc_g], :128]\n" /* q11 - initialize accumulator for green */ + "vmlsl.u8 q11, d2, d30\n" /* green acc -= V * 104 */ + "vmlsl.u8 q11, d0, d29\n" /* green acc -= U * 50 */ + "vld1.16 {d24, d25}, [%[acc_b], :128]\n" /* q12 - initialize accumulator for blue */ + "vmlsl.u8 q12, d0, d30\n" /* blue acc -= U * 104 */ + "vmlsl.u8 q12, d0, d31\n" /* blue acc -= U * 154 */ + "vhsub.s16 q3, q8, q10\n" /* calculate even red components */ + "vhsub.s16 q10, q9, q10\n" /* calculate odd red components */ + "vqshrun.s16 d0, q3, #6\n" /* right shift, narrow and saturate even red components */ + "vqshrun.s16 d3, q10, #6\n" /* right shift, narrow and saturate odd red components */ + "vhadd.s16 q3, q8, q11\n" /* calculate even green components */ + "vhadd.s16 q11, q9, q11\n" /* calculate odd green components */ + "vqshrun.s16 d1, q3, #6\n" /* right shift, narrow and saturate even green components */ + "vqshrun.s16 d4, q11, #6\n" /* right shift, narrow and saturate odd green components */ + "vhsub.s16 q3, q8, q12\n" /* calculate even blue components */ + "vhsub.s16 q12, q9, q12\n" /* calculate odd blue components */ + "vqshrun.s16 d2, q3, #6\n" /* right shift, narrow and saturate even blue components */ + "vqshrun.s16 d5, q12, #6\n" /* right shift, narrow and saturate odd blue components */ + "vzip.8 d0, d3\n" /* join even and odd red components */ + "vzip.8 d1, d4\n" /* join even and odd green components */ + "vzip.8 d2, d5\n" /* join even and odd blue components */ + "vshll.u8 q7, d0, #8\n" //red + "vshll.u8 q6, d1, #8\n" //greed + "vsri.u16 q7, q6, #5\n" + "vshll.u8 q6, d2, #8\n" //blue + "vsri.u16 q7, q6, #11\n" //now there is rgb16 in q7 + ".if \\size == 16\n" + "vst1.16 {d14, d15}, [%[dst]]!\n" + //"vst3.8 {d0, d1, d2}, [%[dst]]!\n" + "vshll.u8 q7, d3, #8\n" //red + "vshll.u8 q6, d4, #8\n" //greed + "vsri.u16 q7, q6, #5\n" + "vshll.u8 q6, d5, #8\n" //blue + "vsri.u16 q7, q6, #11\n" //now there is rgb16 in q7 + //"vst3.8 {d3, d4, d5}, [%[dst]]!\n" + "vst1.16 {d14, d15}, [%[dst]]!\n" + ".elseif \\size == 8\n" + "vst1.16 {d14, d15}, [%[dst]]!\n" + //"vst3.8 {d0, d1, d2}, [%[dst]]!\n" + ".elseif \\size == 4\n" + "vst1.8 {d14}, [%[dst]]!\n" + ".elseif \\size == 2\n" + "vst1.8 {d14[0]}, [%[dst]]!\n" + "vst1.8 {d14[1]}, [%[dst]]!\n" + ".else\n" + ".error \"unsupported macroblock size\"\n" + ".endif\n" + ".endm\n" + "vmov.u8 d8, #15\n" /* add this to U/V to saturate upper boundary */ + "vmov.u8 d9, #20\n" /* add this to Y to saturate upper boundary */ + "vmov.u8 d10, #31\n" /* sub this from U/V to saturate lower boundary */ + "vmov.u8 d11, #36\n" /* sub this from Y to saturate lower boundary */ + "vmov.u8 d26, #16\n" + "vmov.u8 d27, #149\n" + "vmov.u8 d28, #204\n" + "vmov.u8 d29, #50\n" + "vmov.u8 d30, #104\n" + "vmov.u8 d31, #154\n" + "subs %[n], %[n], #16\n" + "blt 2f\n" + "1:\n" + "convert_macroblock 16\n" + "subs %[n], %[n], #16\n" + "bge 1b\n" + "2:\n" + "tst %[n], #8\n" + "beq 3f\n" + "convert_macroblock 8\n" + "3:\n" + "tst %[n], #4\n" + "beq 4f\n" + "convert_macroblock 4\n" + "4:\n" + "tst %[n], #2\n" + "beq 5f\n" + "convert_macroblock 2\n" + "5:\n" + ".purgem convert_macroblock\n":[src] "+&r" (src),[dst] "+&r" (dst), + [n] "+&r" (n) + :[acc_r] "r" (&acc_r[0]),[acc_g] "r" (&acc_g[0]),[acc_b] "r" (&acc_b[0]) + :"cc", "memory", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "d10", "d11", "d12", "d13", "d14", "d15", + "d16", "d17", "d18", "d19", "d20", "d21", "d22", "d23", + "d24", "d25", "d26", "d27", "d28", "d29", "d30", "d31"); +} + +#endif + class QGraphicsVideoItemPrivate { public: @@ -72,6 +234,7 @@ , savedViewportUpdateMode(QGraphicsView::FullViewportUpdate) , aspectRatioMode(Qt::KeepAspectRatio) , rect(0.0, 0.0, 320, 240) + , softwareRenderingEnabled(false) { } @@ -91,8 +254,15 @@ QRectF sourceRect; QSizeF nativeSize; + QPixmap lastFrame; + QBasicTimer softwareRenderingTimer; + QBasicTimer geometryUpdateTimer; + bool softwareRenderingEnabled; + QRect overlayRect; + void clearService(); void updateRects(); + void updateLastFrame(); void _q_present(); void _q_formatChanged(const QVideoSurfaceFormat &format); @@ -146,6 +316,60 @@ } } +void QGraphicsVideoItemPrivate::updateLastFrame() +{ + lastFrame = QPixmap(); + + if (!softwareRenderingEnabled) + return; + + QVideoFrame lastVideoFrame = surface->lastFrame(); + + if (!lastVideoFrame.isValid()) + return; + + if (lastVideoFrame.map(QAbstractVideoBuffer::ReadOnly)) { + +#ifdef __ARM_NEON__ + if (lastVideoFrame.pixelFormat() == QVideoFrame::Format_UYVY) { + QImage lastImage(lastVideoFrame.size(), QImage::Format_RGB16); + + const uchar *src = lastVideoFrame.bits(); + uchar *dst = lastImage.bits(); + const int srcLineStep = lastVideoFrame.bytesPerLine(); + const int dstLineStep = lastImage.bytesPerLine(); + const int h = lastVideoFrame.height(); + const int w = lastVideoFrame.width(); + + for (int y=0; yupdate(boundingRect); @@ -154,6 +378,7 @@ void QGraphicsVideoItemPrivate::_q_formatChanged(const QVideoSurfaceFormat &format) { nativeSize = format.sizeHint(); + lastFrame = QPixmap(); updateRects(); @@ -176,52 +401,6 @@ clearService(); } -/*! - \class QGraphicsVideoItem - - \brief The QGraphicsVideoItem class provides a graphics item which display video produced by a QMediaObject. - - \ingroup multimedia - - Attaching a QGraphicsVideoItem to a QMediaObject allows it to display - the video or image output of that media object. A QGraphicsVideoItem - is attached to a media object by passing a pointer to the QMediaObject - to the setMediaObject() function. - - \code - player = new QMediaPlayer(this); - - QGraphicsVideoItem *item = new QGraphicsVideoItem; - item->setMediaObject(player); - graphicsView->scence()->addItem(item); - graphicsView->show(); - - player->setMedia(video); - player->play(); - \endcode - - \bold {Note}: Only a single display output can be attached to a media object at one time. - - \sa QMediaObject, QMediaPlayer, QVideoWidget -*/ - -/*! - \enum QGraphicsVideoItem::FillMode - - Enumerates the methods of scaling a video to fit a graphics item. - - \value Stretch The video is stretched to fit the item's size. - \value PreserveAspectFit The video is uniformly scaled to fix the item's - size without cropping. - \value PreserveAspectCrop The video is uniformly scaled to fill the item's - size, cropping if necessary. -*/ - -/*! - Constructs a graphics item that displays video. - - The \a parent is passed to QGraphicsItem. -*/ QGraphicsVideoItem::QGraphicsVideoItem(QGraphicsItem *parent) : QGraphicsObject(parent) , d_ptr(new QGraphicsVideoItemPrivate) @@ -240,9 +419,6 @@ connect(d_ptr->surface, SIGNAL(activeChanged(bool)), this, SLOT(_q_present())); } -/*! - Destroys a video graphics item. -*/ QGraphicsVideoItem::~QGraphicsVideoItem() { @@ -259,11 +435,6 @@ delete d_ptr; } -/*! - \property QGraphicsVideoItem::mediaObject - \brief the media object which provides the video displayed by a graphics item. -*/ - QMediaObject *QGraphicsVideoItem::mediaObject() const { return d_func()->mediaObject; @@ -310,11 +481,6 @@ } } -/*! - \property QGraphicsVideoItem::aspectRatioMode - \brief how a video is scaled to fit the graphics item's size. -*/ - Qt::AspectRatioMode QGraphicsVideoItem::aspectRatioMode() const { return d_func()->aspectRatioMode; @@ -328,14 +494,6 @@ d->updateRects(); } -/*! - \property QGraphicsVideoItem::offset - \brief the video item's offset. - - QGraphicsVideoItem will draw video using the offset for its top left - corner. -*/ - QPointF QGraphicsVideoItem::offset() const { return d_func()->rect.topLeft(); @@ -349,14 +507,6 @@ d->updateRects(); } -/*! - \property QGraphicsVideoItem::size - \brief the video item's size. - - QGraphicsVideoItem will draw video scaled to fit size according to its - fillMode. -*/ - QSizeF QGraphicsVideoItem::size() const { return d_func()->rect.size(); @@ -370,43 +520,23 @@ d->updateRects(); } -/*! - \property QGraphicsVideoItem::nativeSize - \brief the native size of the video. -*/ - QSizeF QGraphicsVideoItem::nativeSize() const { return d_func()->nativeSize; } -/*! - \fn QGraphicsVideoItem::nativeSizeChanged(const QSizeF &size) - - Signals that the native \a size of the video has changed. -*/ - - -/*! - \reimp -*/ QRectF QGraphicsVideoItem::boundingRect() const { return d_func()->boundingRect; } - -/*! - \reimp -*/ void QGraphicsVideoItem::paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { + qDebug() << "QGraphicsVideoItem::paint"; Q_UNUSED(option); Q_D(QGraphicsVideoItem); - //qDebug() << "paint video item on widget" << widget; - QGraphicsView *view = 0; if (scene() && !scene()->views().isEmpty()) view = scene()->views().first(); @@ -417,57 +547,78 @@ if (view != d->currentView) { if (d->currentView) { d->currentView->setViewportUpdateMode(d->savedViewportUpdateMode); - /*disconnect(d->currentView->verticalScrollBar(), SIGNAL(valueChanged(int)), - this, SLOT(_q_present())); - disconnect(d->currentView->horizontalScrollBar(), SIGNAL(valueChanged(int)), - this, SLOT(_q_present()));*/ } d->currentView = view; if (view) { d->savedViewportUpdateMode = view->viewportUpdateMode(); view->setViewportUpdateMode(QGraphicsView::FullViewportUpdate); - /*connect(d->currentView->verticalScrollBar(), SIGNAL(valueChanged(int)), - this, SLOT(_q_present())); - connect(d->currentView->horizontalScrollBar(), SIGNAL(valueChanged(int)), - this, SLOT(_q_present()));*/ } } QColor colorKey = Qt::black; + bool geometryChanged = false; if (d->surface) { if (widget) d->surface->setWinId(widget->winId()); QTransform transform = painter->combinedTransform(); - QRect deviceRect = transform.mapRect(boundingRect()).toRect(); + QRect overlayRect = transform.mapRect(boundingRect()).toRect(); + QRect currentSurfaceRect = d->surface->displayRect(); if (widget) { //workaround for xvideo issue with U/V planes swapped - QPoint topLeft = widget->mapToGlobal(deviceRect.topLeft()); + QPoint topLeft = widget->mapToGlobal(overlayRect.topLeft()); if ((topLeft.x() & 1) == 0) - deviceRect.moveLeft(deviceRect.left()-1); + overlayRect.moveLeft(overlayRect.left()-1); } - if (d->surface->displayRect() != deviceRect) { + d->overlayRect = overlayRect; + + if (currentSurfaceRect != overlayRect) { + if (!d->surface->displayRect().isEmpty()) { + if (d->softwareRenderingEnabled) { + //recalculate scaled frame pixmap if area is resized + if (currentSurfaceRect.size() != overlayRect.size()) { + d->updateLastFrame(); + d->surface->setDisplayRect( overlayRect ); + } + } else { + d->softwareRenderingEnabled = true; + d->updateLastFrame(); + + //don't set new geometry right now, + //but with small delay, to ensure the frame is already + //rendered on top of color key + if (!d->geometryUpdateTimer.isActive()) + d->geometryUpdateTimer.start(GEOMETRY_UPDATE_DELAY, this); + } + } else + d->surface->setDisplayRect( overlayRect ); + + geometryChanged = true; + d->softwareRenderingTimer.start(SOFTWARE_RENDERING_DURATION, this); + //qDebug() << "set video display rect:" << deviceRect; - d->surface->setDisplayRect( deviceRect ); - // repaint last frame after the color key area is filled - QMetaObject::invokeMethod(d->surface, "repaintLastFrame", Qt::QueuedConnection); + } colorKey = d->surface->colorKey(); } - painter->fillRect(d->boundingRect, colorKey); + + if (!d->softwareRenderingEnabled) { + painter->fillRect(d->boundingRect, colorKey); + } else { + if (!d->lastFrame.isNull()) { + painter->drawPixmap(d->boundingRect.topLeft(), d->lastFrame ); + + } else + painter->fillRect(d->boundingRect, Qt::black); + } } -/*! - \reimp - - \internal -*/ QVariant QGraphicsVideoItem::itemChange(GraphicsItemChange change, const QVariant &value) { Q_D(QGraphicsVideoItem); @@ -491,5 +642,26 @@ return value; } +void QGraphicsVideoItem::timerEvent(QTimerEvent *event) +{ + Q_D(QGraphicsVideoItem); + + if (event->timerId() == d->softwareRenderingTimer.timerId() && d->softwareRenderingEnabled) { + d->softwareRenderingTimer.stop(); + d->softwareRenderingEnabled = false; + d->updateLastFrame(); + // repaint last frame, to ensure geometry change is applyed in paused state + d->surface->repaintLastFrame(); + d->_q_present(); + } else if ((event->timerId() == d->geometryUpdateTimer.timerId())) { + d->geometryUpdateTimer.stop(); + //slightly delayed geometry update, + //to avoid flicker at the first geometry change + d->surface->setDisplayRect( d->overlayRect ); + } + + QGraphicsObject::timerEvent(event); +} + #include "moc_qgraphicsvideoitem.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qimageencodercontrol.cpp --- a/qtmobility/src/multimedia/qimageencodercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qimageencodercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qimageencodercontrol.h" #include QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qimageencodercontrol.h --- a/qtmobility/src/multimedia/qimageencodercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qimageencodercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,9 +42,9 @@ #ifndef QIMAGEENCODERCONTROL_H #define QIMAGEENCODERCONTROL_H -#include -#include -#include +#include "qmediacontrol.h" +#include "qmediarecorder.h" +#include "qmediaencodersettings.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qlocalmediaplaylistprovider.cpp --- a/qtmobility/src/multimedia/qlocalmediaplaylistprovider.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qlocalmediaplaylistprovider.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,9 +39,9 @@ ** ****************************************************************************/ -#include -#include -#include +#include "qlocalmediaplaylistprovider.h" +#include "qmediaplaylistprovider_p.h" +#include "qmediacontent.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qlocalmediaplaylistprovider.h --- a/qtmobility/src/multimedia/qlocalmediaplaylistprovider.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qlocalmediaplaylistprovider.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef QLOCALMEDIAPAYLISTPROVIDER_H #define QLOCALMEDIAPAYLISTPROVIDER_H -#include +#include "qmediaplaylistprovider.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediacontainercontrol.cpp --- a/qtmobility/src/multimedia/qmediacontainercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediacontainercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,7 +40,7 @@ ****************************************************************************/ -#include +#include "qmediacontainercontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediacontainercontrol.h --- a/qtmobility/src/multimedia/qmediacontainercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediacontainercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -43,7 +43,7 @@ #ifndef QMEDIACONTAINERCONTROL_H #define QMEDIACONTAINERCONTROL_H -#include +#include "qmediacontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediacontent.cpp --- a/qtmobility/src/multimedia/qmediacontent.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediacontent.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #include #include -#include +#include "qmediacontent.h" QTM_BEGIN_NAMESPACE @@ -107,6 +107,19 @@ } /*! + Constructs a media content with \a request providing a reference to the content. + + This constructor can be used to reference media content via network protocols such as HTTP. + This may include additional information required to obtain the resource, such as Cookies or HTTP headers. +*/ + +QMediaContent::QMediaContent(const QNetworkRequest &request): + d(new QMediaContentPrivate) +{ + d->resources << QMediaResource(request); +} + +/*! Constructs a media content with \a resource providing a reference to the content. */ @@ -191,6 +204,15 @@ } /*! + Returns a QNetworkRequest that represents that canonical resource for this media content. +*/ + +QNetworkRequest QMediaContent::canonicalRequest() const +{ + return canonicalResource().request(); +} + +/*! Returns a QMediaResource that represents that canonical resource for this media content. */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediacontent.h --- a/qtmobility/src/multimedia/qmediacontent.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediacontent.h Mon May 03 13:18:40 2010 +0300 @@ -45,7 +45,7 @@ #include #include -#include +#include "qmediaresource.h" #include @@ -58,6 +58,7 @@ public: QMediaContent(); QMediaContent(const QUrl &contentUrl); + QMediaContent(const QNetworkRequest &contentRequest); QMediaContent(const QMediaResource &contentResource); QMediaContent(const QMediaResourceList &resources); QMediaContent(const QMediaContent &other); @@ -71,6 +72,7 @@ bool isNull() const; QUrl canonicalUrl() const; + QNetworkRequest canonicalRequest() const; QMediaResource canonicalResource() const; QMediaResourceList resources() const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediacontrol.cpp --- a/qtmobility/src/multimedia/qmediacontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediacontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,8 @@ #include #include -#include -#include +#include "qmediacontrol.h" +#include "qmediacontrol_p.h" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaencodersettings.cpp --- a/qtmobility/src/multimedia/qmediaencodersettings.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaencodersettings.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qmediaencodersettings.h" QTM_BEGIN_NAMESPACE @@ -194,6 +194,13 @@ /*! Sets the audio encoding \a mode setting. + If QtMedia::ConstantQualityEncoding is set, + the quality encoding parameter is used and bit rate is ignored, + otherwise the bitrate is used. + + The audio codec, channels count and sample rate settings + are used in all the encoding modes. + \sa encodingMode(), QtMedia::EncodingMode */ void QAudioEncoderSettings::setEncodingMode(QtMedia::EncodingMode mode) @@ -247,7 +254,7 @@ } /*! - Sets the audio bit \a rate. + Sets the audio bit \a rate in bits per second. */ void QAudioEncoderSettings::setBitRate(int rate) { @@ -256,7 +263,7 @@ } /*! - Returns the audio sample rate. + Returns the audio sample rate in Hz. */ int QAudioEncoderSettings::sampleRate() const { @@ -264,7 +271,7 @@ } /*! - Sets the audio sample \a rate. + Sets the audio sample \a rate in Hz. A value of -1 indicates the encoder should make an optimal choice based on what is avaialbe from the audio source and the limitations of the codec. @@ -286,6 +293,12 @@ /*! Set the audio encoding \a quality. + + Setting the audio quality parameter allows backend to choose the balanced + set of encoding parameters to achieve the desired quality level. + + The \a quality settings parameter is only used in the + \l {QtMedia::ConstantQualityEncoding}{constant quality} \l{encodingMode()}{encoding mode}. */ void QAudioEncoderSettings::setQuality(QtMedia::EncodingQuality quality) { @@ -437,6 +450,12 @@ /*! Sets the video encoding \a mode. + If QtMedia::ConstantQualityEncoding is set, + the quality encoding parameter is used and bit rate is ignored, + otherwise the bitrate is used. + + The rest of encoding settings are respected regardless of encoding mode. + \sa QtMedia::EncodingMode */ void QVideoEncoderSettings::setEncodingMode(QtMedia::EncodingMode mode) @@ -464,7 +483,7 @@ } /*! - Returns bit rate of the encoded video stream. + Returns bit rate of the encoded video stream in bits per second. */ int QVideoEncoderSettings::bitRate() const { @@ -549,6 +568,12 @@ /*! Sets the video encoding \a quality. + + Setting the video quality parameter allows backend to choose the balanced + set of encoding parameters to achieve the desired quality level. + + The \a quality settings parameter is only used in the + \l {QtMedia::ConstantQualityEncoding}{constant quality} \l{encodingMode()}{encoding mode}. */ void QVideoEncoderSettings::setQuality(QtMedia::EncodingQuality quality) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaencodersettings.h --- a/qtmobility/src/multimedia/qmediaencodersettings.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaencodersettings.h Mon May 03 13:18:40 2010 +0300 @@ -46,7 +46,7 @@ #include #include #include -#include +#include "qtmedianamespace.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaimageviewer.cpp --- a/qtmobility/src/multimedia/qmediaimageviewer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaimageviewer.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,14 +39,14 @@ ** ****************************************************************************/ -#include +#include "qmediaimageviewer.h" -#include -#include +#include "qmediaobject_p.h" +#include "qmediaimageviewerservice_p.h" -#include -#include -#include +#include "qmediaplaylist.h" +#include "qmediacontent.h" +#include "qmediaresource.h" #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaimageviewer.h --- a/qtmobility/src/multimedia/qmediaimageviewer.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaimageviewer.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,8 @@ #ifndef QMEDIAIMAGEVIEWER_H #define QMEDIAIMAGEVIEWER_H -#include -#include +#include "qmediaobject.h" +#include "qmediacontent.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaimageviewerservice.cpp --- a/qtmobility/src/multimedia/qmediaimageviewerservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaimageviewerservice.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,17 +39,17 @@ ** ****************************************************************************/ -#include +#include "qmediaimageviewerservice_p.h" -#include -#include +#include "qmediacontrol_p.h" +#include "qmediaservice_p.h" -#include -#include -#include -#include -#include -#include +#include "qmediacontent.h" +#include "qmediaresource.h" +#include "qvideooutputcontrol.h" +#include "qmediaobject_p.h" +#include "qvideorenderercontrol.h" +#include "qvideowidgetcontrol.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaimageviewerservice_p.h --- a/qtmobility/src/multimedia/qmediaimageviewerservice_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaimageviewerservice_p.h Mon May 03 13:18:40 2010 +0300 @@ -54,12 +54,12 @@ // #include -#include -#include -#include -#include -#include -#include +#include "qmediaservice.h" +#include "qmediaimageviewer.h" +#include "qvideooutputcontrol.h" +#include "qvideorenderercontrol.h" +#include "qvideowidget.h" +#include "qvideowidgetcontrol.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaobject.cpp --- a/qtmobility/src/multimedia/qmediaobject.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaobject.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,10 +41,10 @@ #include -#include +#include "qmediaobject_p.h" -#include -#include +#include "qmediaservice.h" +#include "qmetadatacontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaobject.h --- a/qtmobility/src/multimedia/qmediaobject.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaobject.h Mon May 03 13:18:40 2010 +0300 @@ -46,7 +46,7 @@ #include #include -#include +#include "qtmedianamespace.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaobject_p.h --- a/qtmobility/src/multimedia/qmediaobject_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaobject_p.h Mon May 03 13:18:40 2010 +0300 @@ -57,7 +57,7 @@ #include #include -#include +#include "qmediaobject.h" QTM_BEGIN_NAMESPACE @@ -74,6 +74,7 @@ public: QMediaObjectPrivate():metaDataControl(0), notifyTimer(0) {} + virtual ~QMediaObjectPrivate() {} void _q_notify(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplayer.cpp --- a/qtmobility/src/multimedia/qmediaplayer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplayer.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,16 +46,16 @@ #include -#include +#include "qmediaplayer.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include "qmediaobject_p.h" +#include "qmediaservice.h" +#include "qmediaplayercontrol.h" +#include "qmediaserviceprovider.h" +#include "qmediaplaylist.h" +#include "qmediaplaylistcontrol.h" +#include "qvideowidget.h" +#include "qgraphicsvideoitem.h" QTM_BEGIN_NAMESPACE @@ -240,10 +240,17 @@ static QMediaService *playerService(QMediaPlayer::Flags flags, QMediaServiceProvider *provider) { - if (flags && QMediaPlayer::LowLatency) + if (flags) { + QMediaServiceProviderHint::Features features = 0; + if (flags & QMediaPlayer::LowLatency) + features |= QMediaServiceProviderHint::LowLatencyPlayback; + + if (flags & QMediaPlayer::StreamPlayback) + features |= QMediaServiceProviderHint::StreamPlayback; + return provider->requestService(Q_MEDIASERVICE_MEDIAPLAYER, - QMediaServiceProviderHint(QMediaServiceProviderHint::LowLatencyPlayback)); - else + QMediaServiceProviderHint(features)); + } else return provider->requestService(Q_MEDIASERVICE_MEDIAPLAYER); } @@ -942,6 +949,11 @@ The player is expected to be used with simple audio formats, but playback should start without significant delay. Such playback service can be used for beeps, ringtones, etc. + + \value StreamPlayback + The player is expected to play QIODevice based streams. + If passed to QMediaPlayer constructor, the service supporting + streams playback will be choosen. */ #include "moc_qmediaplayer.cpp" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplayer.h --- a/qtmobility/src/multimedia/qmediaplayer.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplayer.h Mon May 03 13:18:40 2010 +0300 @@ -42,9 +42,9 @@ #ifndef QMEDIAPLAYER_H #define QMEDIAPLAYER_H -#include -#include -#include +#include "qmediaserviceprovider.h" +#include "qmediaobject.h" +#include "qmediacontent.h" QTM_BEGIN_NAMESPACE @@ -95,7 +95,8 @@ enum Flag { - LowLatency = 0x01 + LowLatency = 0x01, + StreamPlayback = 0x02 }; Q_DECLARE_FLAGS(Flags, Flag) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplayercontrol.cpp --- a/qtmobility/src/multimedia/qmediaplayercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplayercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,9 +39,9 @@ ** ****************************************************************************/ -#include -#include -#include +#include "qmediaplayercontrol.h" +#include "qmediacontrol_p.h" +#include "qmediaplayer.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplayercontrol.h --- a/qtmobility/src/multimedia/qmediaplayercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplayercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,9 +42,9 @@ #ifndef QMEDIAPLAYERCONTROL_H #define QMEDIAPLAYERCONTROL_H -#include -#include -#include +#include "qmediacontrol.h" +#include "qmediaplayer.h" +#include "qmediatimerange.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylist.cpp --- a/qtmobility/src/multimedia/qmediaplaylist.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylist.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,14 +39,14 @@ ** ****************************************************************************/ -#include -#include -#include -#include -#include -#include -#include -#include +#include "qmediaplaylist.h" +#include "qmediaplaylist_p.h" +#include "qmediaplaylistprovider.h" +#include "qlocalmediaplaylistprovider.h" +#include "qmediaplaylistioplugin.h" +#include "qmediaservice.h" +#include "qmediaplaylistcontrol.h" +#include "qmediaplayercontrol.h" #include #include @@ -54,7 +54,7 @@ #include #include -#include +#include "qmediapluginloader_p.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylist.h --- a/qtmobility/src/multimedia/qmediaplaylist.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylist.h Mon May 03 13:18:40 2010 +0300 @@ -44,8 +44,8 @@ #include -#include -#include +#include "qmediacontent.h" +#include "qmediaobject.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylist_p.h --- a/qtmobility/src/multimedia/qmediaplaylist_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylist_p.h Mon May 03 13:18:40 2010 +0300 @@ -53,12 +53,12 @@ // We mean it. // -#include -#include -#include -#include -#include -#include +#include "qmediaplaylist.h" +#include "qmediaplaylistcontrol.h" +#include "qmediaplayer.h" +#include "qmediaplayercontrol.h" +#include "qlocalmediaplaylistprovider.h" +#include "qmediaobject_p.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylistcontrol.cpp --- a/qtmobility/src/multimedia/qmediaplaylistcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylistcontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,8 +40,8 @@ ****************************************************************************/ -#include -#include +#include "qmediaplaylistcontrol.h" +#include "qmediacontrol_p.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylistcontrol.h --- a/qtmobility/src/multimedia/qmediaplaylistcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylistcontrol.h Mon May 03 13:18:40 2010 +0300 @@ -43,8 +43,8 @@ #ifndef QMEDIAPLAYLISTCONTROL_H #define QMEDIAPLAYLISTCONTROL_H -#include -#include +#include "qmediacontrol.h" +#include "qmediaplaylistnavigator.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylistioplugin.cpp --- a/qtmobility/src/multimedia/qmediaplaylistioplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylistioplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qmediaplaylistioplugin.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylistioplugin.h --- a/qtmobility/src/multimedia/qmediaplaylistioplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylistioplugin.h Mon May 03 13:18:40 2010 +0300 @@ -48,7 +48,7 @@ #include -#include +#include "qmediacontent.h" QT_BEGIN_NAMESPACE class QString; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylistnavigator.cpp --- a/qtmobility/src/multimedia/qmediaplaylistnavigator.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylistnavigator.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,10 +39,10 @@ ** ****************************************************************************/ -#include -#include -#include -#include +#include "qmediaplaylistnavigator.h" +#include "qmediaplaylistprovider.h" +#include "qmediaplaylist.h" +#include "qmediaobject_p.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylistnavigator.h --- a/qtmobility/src/multimedia/qmediaplaylistnavigator.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylistnavigator.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,8 @@ #ifndef QMEDIAPLAYLISTNAVIGATOR_H #define QMEDIAPLAYLISTNAVIGATOR_H -#include -#include +#include "qmediaplaylistprovider.h" +#include "qmediaplaylist.h" #include QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylistprovider.cpp --- a/qtmobility/src/multimedia/qmediaplaylistprovider.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylistprovider.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#include -#include +#include "qmediaplaylistprovider.h" +#include "qmediaplaylistprovider_p.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylistprovider.h --- a/qtmobility/src/multimedia/qmediaplaylistprovider.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylistprovider.h Mon May 03 13:18:40 2010 +0300 @@ -44,8 +44,8 @@ #include -#include -#include +#include "qmediacontent.h" +#include "qmediaplaylist.h" QT_BEGIN_NAMESPACE class QString; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaplaylistprovider_p.h --- a/qtmobility/src/multimedia/qmediaplaylistprovider_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaplaylistprovider_p.h Mon May 03 13:18:40 2010 +0300 @@ -53,7 +53,7 @@ // We mean it. // -#include +#include "qmediaplaylist.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediapluginloader.cpp --- a/qtmobility/src/multimedia/qmediapluginloader.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediapluginloader.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,13 +39,13 @@ ** ****************************************************************************/ -#include +#include "qmediapluginloader_p.h" #include #include #include #include -#include +#include "qmediaserviceproviderplugin.h" QTM_BEGIN_NAMESPACE @@ -87,7 +87,6 @@ return; if (staticMediaPlugins() && staticMediaPlugins()->contains(m_location)) { - qWarning() << "Load static plugins for" << m_location; foreach(QObject *o, staticMediaPlugins()->value(m_location)) { if (o != 0 && o->qt_metacast(m_iid) != 0) { QFactoryInterface* p = qobject_cast(o); @@ -100,6 +99,10 @@ } else { QStringList paths = QCoreApplication::libraryPaths(); +#ifdef QTM_PLUGIN_PATH + paths << QTM_PLUGIN_PATH; +#endif + foreach (QString const &path, paths) { QString pluginPathName(path + m_location); QDir pluginDir(pluginPathName); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediarecorder.cpp --- a/qtmobility/src/multimedia/qmediarecorder.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediarecorder.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,15 +39,15 @@ ** ****************************************************************************/ -#include +#include "qmediarecorder.h" -#include -#include -#include -#include -#include -#include -#include +#include "qmediarecordercontrol.h" +#include "qmediaobject_p.h" +#include "qmediaservice.h" +#include "qmediaserviceprovider.h" +#include "qaudioencodercontrol.h" +#include "qvideoencodercontrol.h" +#include "qmediacontainercontrol.h" #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediarecorder.h --- a/qtmobility/src/multimedia/qmediarecorder.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediarecorder.h Mon May 03 13:18:40 2010 +0300 @@ -42,9 +42,9 @@ #ifndef QMEDIARECORDER_H #define QMEDIARECORDER_H -#include -#include -#include +#include "qmediaobject.h" +#include "qmediaserviceprovider.h" +#include "qmediaencodersettings.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediarecordercontrol.cpp --- a/qtmobility/src/multimedia/qmediarecordercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediarecordercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qmediarecordercontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediarecordercontrol.h --- a/qtmobility/src/multimedia/qmediarecordercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediarecordercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,8 @@ #ifndef QMEDIARECORDERCONTROL_H #define QMEDIARECORDERCONTROL_H -#include -#include +#include "qmediacontrol.h" +#include "qmediarecorder.h" QT_BEGIN_NAMESPACE class QUrl; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaresource.cpp --- a/qtmobility/src/multimedia/qmediaresource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaresource.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qmediaresource.h" #include #include @@ -92,7 +92,17 @@ */ QMediaResource::QMediaResource(const QUrl &url, const QString &mimeType) { - values.insert(Url, qVariantFromValue(url)); + values.insert(Url, url); + values.insert(MimeType, mimeType); +} + +/*! + Constructs a media resource with the given \a mimeType from a network \a request. +*/ +QMediaResource::QMediaResource(const QNetworkRequest &request, const QString &mimeType) +{ + values.insert(Request, QVariant::fromValue(request)); + values.insert(Url, request.url()); values.insert(MimeType, mimeType); } @@ -161,6 +171,17 @@ } /*! + Returns the network request associated with this media resource. +*/ +QNetworkRequest QMediaResource::request() const +{ + if(values.contains(Request)) + return qvariant_cast(values.value(Request)); + + return QNetworkRequest(url()); +} + +/*! Returns the MIME type of a media resource. This may be null if the MIME type is unknown. diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaresource.h --- a/qtmobility/src/multimedia/qmediaresource.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaresource.h Mon May 03 13:18:40 2010 +0300 @@ -44,6 +44,7 @@ #include #include +#include #include @@ -54,6 +55,7 @@ public: QMediaResource(); QMediaResource(const QUrl &url, const QString &mimeType = QString()); + QMediaResource(const QNetworkRequest &request, const QString &mimeType = QString()); QMediaResource(const QMediaResource &other); QMediaResource &operator =(const QMediaResource &other); ~QMediaResource(); @@ -64,6 +66,7 @@ bool operator !=(const QMediaResource &other) const; QUrl url() const; + QNetworkRequest request() const; QString mimeType() const; QString language() const; @@ -99,6 +102,7 @@ enum Property { Url, + Request, MimeType, Language, AudioCodec, @@ -108,7 +112,7 @@ VideoBitRate, SampleRate, ChannelCount, - Resolution, + Resolution }; QMap values; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaservice.cpp --- a/qtmobility/src/multimedia/qmediaservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaservice.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#include -#include +#include "qmediaservice.h" +#include "qmediaservice_p.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaservice.h --- a/qtmobility/src/multimedia/qmediaservice.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaservice.h Mon May 03 13:18:40 2010 +0300 @@ -46,7 +46,7 @@ #include #include -#include +#include "qmediacontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaservice_p.h --- a/qtmobility/src/multimedia/qmediaservice_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaservice_p.h Mon May 03 13:18:40 2010 +0300 @@ -61,6 +61,7 @@ { public: QMediaServicePrivate(): q_ptr(0) {} + virtual ~QMediaServicePrivate() {} QMediaService *q_ptr; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaserviceprovider.cpp --- a/qtmobility/src/multimedia/qmediaserviceprovider.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaserviceprovider.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,11 +42,11 @@ #include #include -#include -#include -#include -#include -#include +#include "qmediaservice.h" +#include "qmediaserviceprovider.h" +#include "qmediaserviceproviderplugin.h" +#include "qmediapluginloader_p.h" +#include "qmediaplayer.h" QTM_BEGIN_NAMESPACE @@ -101,6 +101,9 @@ \value RecordingSupport The service provides audio or video recording functions. + + \value StreamPlayback + The service is capable of playing QIODevice based streams. */ /*! @@ -346,7 +349,7 @@ estimate = currentEstimate; plugin = currentPlugin; - if (currentEstimate == QtMedia::PreferedService) + if (currentEstimate == QtMedia::PreferredService) break; } } @@ -394,14 +397,25 @@ QMediaServiceSupportedFormatsInterface *iface = qobject_cast(obj); - //if low latency playback was asked, skip services known - //not to provide low latency playback - if (flags & QMediaPlayer::LowLatency) { + + if (flags) { QMediaServiceFeaturesInterface *iface = qobject_cast(obj); - if (iface && !(iface->supportedFeatures(serviceType) & QMediaServiceProviderHint::LowLatencyPlayback)) - continue; + if (iface) { + QMediaServiceProviderHint::Features features = iface->supportedFeatures(serviceType); + + //if low latency playback was asked, skip services known + //not to provide low latency playback + if ((flags & QMediaPlayer::LowLatency) && + !(features & QMediaServiceProviderHint::LowLatencyPlayback)) + continue; + + //the same for QIODevice based streams support + if ((flags & QMediaPlayer::StreamPlayback) && + !(features & QMediaServiceProviderHint::StreamPlayback)) + continue; + } } if (iface) @@ -410,7 +424,7 @@ allServicesProvideInterface = false; } - //don't return PreferedService + //don't return PreferredService supportEstimate = qMin(supportEstimate, QtMedia::ProbablySupported); //Return NotSupported only if no services are available of serviceType @@ -431,14 +445,25 @@ QMediaServiceSupportedFormatsInterface *iface = qobject_cast(obj); - // If low latency playback was asked for, skip MIME types from services known - // not to provide low latency playback + if (flags & QMediaPlayer::LowLatency) { QMediaServiceFeaturesInterface *iface = qobject_cast(obj); - if (iface && !(iface->supportedFeatures(serviceType) & QMediaServiceProviderHint::LowLatencyPlayback)) - continue; + if (iface) { + QMediaServiceProviderHint::Features features = iface->supportedFeatures(serviceType); + + // If low latency playback was asked for, skip MIME types from services known + // not to provide low latency playback + if ((flags & QMediaPlayer::LowLatency) && + !(features & QMediaServiceProviderHint::LowLatencyPlayback)) + continue; + + //the same for QIODevice based streams support + if ((flags & QMediaPlayer::StreamPlayback) && + !(features & QMediaServiceProviderHint::StreamPlayback)) + continue; + } } if (iface) { @@ -563,12 +588,35 @@ return QString(); } + +#ifdef QT_BUILD_INTERNAL + +static QMediaServiceProvider *qt_defaultMediaServiceProvider = 0; + +/*! + Sets a media service \a provider as the default. + + \internal +*/ +void QMediaServiceProvider::setDefaultServiceProvider(QMediaServiceProvider *provider) +{ + qt_defaultMediaServiceProvider = provider; +} + +#endif + /*! Returns a default provider of media services. */ QMediaServiceProvider *QMediaServiceProvider::defaultServiceProvider() { +#ifdef QT_BUILD_INTERNAL + return qt_defaultMediaServiceProvider != 0 + ? qt_defaultMediaServiceProvider + : static_cast(pluginProvider()); +#else return pluginProvider(); +#endif } /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaserviceprovider.h --- a/qtmobility/src/multimedia/qmediaserviceprovider.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaserviceprovider.h Mon May 03 13:18:40 2010 +0300 @@ -45,7 +45,7 @@ #include #include #include -#include +#include "qtmedianamespace.h" QTM_BEGIN_NAMESPACE @@ -59,7 +59,8 @@ enum Feature { LowLatencyPlayback = 0x01, - RecordingSupport = 0x02 + RecordingSupport = 0x02, + StreamPlayback = 0x04 }; Q_DECLARE_FLAGS(Features, Feature) @@ -110,6 +111,10 @@ virtual QString deviceDescription(const QByteArray &serviceType, const QByteArray &device); static QMediaServiceProvider* defaultServiceProvider(); + +#ifdef QT_BUILD_INTERNAL + static void setDefaultServiceProvider(QMediaServiceProvider *provider); +#endif }; /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediaserviceproviderplugin.h --- a/qtmobility/src/multimedia/qmediaserviceproviderplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediaserviceproviderplugin.h Mon May 03 13:18:40 2010 +0300 @@ -46,7 +46,7 @@ #include #include #include -#include +#include "qmediaserviceprovider.h" #ifdef Q_MOC_RUN # pragma Q_MOC_EXPAND_MACROS diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmediatimerange.h --- a/qtmobility/src/multimedia/qmediatimerange.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmediatimerange.h Mon May 03 13:18:40 2010 +0300 @@ -43,7 +43,7 @@ #define QMEDIATIMERANGE_H #include -#include +#include "qtmedianamespace.h" #include QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmetadatacontrol.cpp --- a/qtmobility/src/multimedia/qmetadatacontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmetadatacontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#include -#include +#include "qmediacontrol_p.h" +#include "qmetadatacontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmetadatacontrol.h --- a/qtmobility/src/multimedia/qmetadatacontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qmetadatacontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,10 +42,10 @@ #ifndef QMETADATACONTROL_H #define QMETADATACONTROL_H -#include -#include +#include "qmediacontrol.h" +#include "qmediaobject.h" -#include +#include "qmediaresource.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmetadatacontrolmetaobject.cpp --- a/qtmobility/src/multimedia/qmetadatacontrolmetaobject.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,233 +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 Qt Mobility Components. -** -** $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 "qmetadatacontrolmetaobject_p.h" - -#include "qmetadatacontrol.h" - -QTM_BEGIN_NAMESPACE - -namespace -{ - struct MetaDataKey - { - QtMedia::MetaData key; - const char *name; - }; - - const MetaDataKey qt_metaDataKeys[] = - { - { QtMedia::Title, "title" }, - { QtMedia::SubTitle, "subTitle" }, - { QtMedia::Author, "author" }, - { QtMedia::Comment, "comment" }, - { QtMedia::Description, "description" }, - { QtMedia::Category, "category" }, - { QtMedia::Genre, "genre" }, - { QtMedia::Year, "year" }, - { QtMedia::Date, "date" }, - { QtMedia::UserRating, "userRating" }, - { QtMedia::Keywords, "keywords" }, - { QtMedia::Language, "language" }, - { QtMedia::Publisher, "publisher" }, - { QtMedia::Copyright, "copyright" }, - { QtMedia::ParentalRating, "parentalRating" }, - { QtMedia::RatingOrganisation, "ratingOrganisation" }, - - // Media - { QtMedia::Size, "size" }, - { QtMedia::MediaType, "mediaType" }, - { QtMedia::Duration, "duration" }, - - // Audio - { QtMedia::AudioBitRate, "audioBitRate" }, - { QtMedia::AudioCodec, "audioCodec" }, - { QtMedia::AverageLevel, "averageLevel" }, - { QtMedia::ChannelCount, "channelCount" }, - { QtMedia::PeakValue, "peakValue" }, - { QtMedia::SampleRate, "frequency" }, - - // Music - { QtMedia::AlbumTitle, "albumTitle" }, - { QtMedia::AlbumArtist, "albumArtist" }, - { QtMedia::ContributingArtist, "contributingArtist" }, - { QtMedia::Composer, "composer" }, - { QtMedia::Conductor, "conductor" }, - { QtMedia::Lyrics, "lyrics" }, - { QtMedia::Mood, "mood" }, - { QtMedia::TrackNumber, "trackNumber" }, - { QtMedia::TrackCount, "trackCount" }, - - { QtMedia::CoverArtUrlSmall, "coverArtUrlSmall" }, - { QtMedia::CoverArtUrlLarge, "coverArtUrlLarge" }, - - // Image/Video - { QtMedia::Resolution, "resolution" }, - { QtMedia::PixelAspectRatio, "pixelAspectRatio" }, - - // Video - { QtMedia::VideoFrameRate, "videoFrameRate" }, - { QtMedia::VideoBitRate, "videoBitRate" }, - { QtMedia::VideoCodec, "videoCodec" }, - - { QtMedia::PosterUrl, "posterUrl" }, - - // Movie - { QtMedia::ChapterNumber, "chapterNumber" }, - { QtMedia::Director, "director" }, - { QtMedia::LeadPerformer, "leadPerformer" }, - { QtMedia::Writer, "writer" }, - - // Photos - { QtMedia::CameraManufacturer, "cameraManufacturer" }, - { QtMedia::CameraModel, "cameraModel" }, - { QtMedia::Event, "event" }, - { QtMedia::Subject, "subject" }, - { QtMedia::Orientation, "orientation" }, - { QtMedia::ExposureTime, "exposureTime" }, - { QtMedia::FNumber, "fNumber" }, - { QtMedia::ExposureProgram, "exposureProgram" }, - { QtMedia::ISOSpeedRatings, "isoSpeedRatings" }, - { QtMedia::ExposureBiasValue, "exposureBiasValue" }, - { QtMedia::DateTimeOriginal, "dateTimeOriginal" }, - { QtMedia::DateTimeDigitized, "dateTimeDigitized" }, - { QtMedia::SubjectDistance, "subjectDistance" }, - { QtMedia::MeteringMode, "meteringMode" }, - { QtMedia::LightSource, "lightSource" }, - { QtMedia::Flash, "flash" }, - { QtMedia::FocalLength, "focalLength" }, - { QtMedia::ExposureMode, "exposureMode" }, - { QtMedia::WhiteBalance, "whiteBalance" }, - { QtMedia::DigitalZoomRatio, "digitalZoomRatio" }, - { QtMedia::FocalLengthIn35mmFilm, "focalLengthIn35mmFilm" }, - { QtMedia::SceneCaptureType, "sceneCaptureType" }, - { QtMedia::GainControl, "gainControl" }, - { QtMedia::Contrast, "contrast" }, - { QtMedia::Saturation, "saturation" }, - { QtMedia::Sharpness, "sharpness" }, - { QtMedia::DeviceSettingDescription, "deviceSettingDescription" } - }; -} - -QMetaDataControlMetaObject::QMetaDataControlMetaObject(QMetaDataControl *control, QObject *object) - : m_control(control) - , m_object(object) - , m_mem(0) - , m_propertyOffset(0) - , m_signalOffset(0) -{ - m_builder.setSuperClass(m_object->metaObject()); - m_builder.setClassName(m_object->metaObject()->className()); - m_builder.setFlags(QMetaObjectBuilder::DynamicMetaObject); - - QObjectPrivate *op = QObjectPrivate::get(m_object); - if (op->metaObject) - m_builder.setSuperClass(op->metaObject); - - m_mem = m_builder.toMetaObject(); - *static_cast(this) = *m_mem; - - op->metaObject = this; - m_propertyOffset = propertyOffset(); - m_signalOffset = methodOffset(); -} - -QMetaDataControlMetaObject::~QMetaDataControlMetaObject() -{ - qFree(m_mem); - - QObjectPrivate *op = QObjectPrivate::get(m_object); - op->metaObject = 0; -} - -int QMetaDataControlMetaObject::metaCall(QMetaObject::Call c, int id, void **a) -{ - if (c == QMetaObject::ReadProperty && id >= m_propertyOffset) { - int propId = id - m_propertyOffset; - - *reinterpret_cast(a[0]) = m_control->metaData(m_keys.at(propId)); - - return -1; - } else if (c == QMetaObject::WriteProperty && id >= m_propertyOffset) { - int propId = id - m_propertyOffset; - - m_control->setMetaData(m_keys.at(propId), *reinterpret_cast(a[0])); - - activate(m_object, m_signalOffset + propId, 0); - - return -1; - } else { - return m_object->qt_metacall(c, id, a); - } -} - -int QMetaDataControlMetaObject::createProperty(const char *name, const char *) -{ - const int count = sizeof(qt_metaDataKeys) / sizeof(MetaDataKey); - - for (int i = 0; i < count; ++i) { - if (qstrcmp(name, qt_metaDataKeys[i].name) == 0) { - int id = m_keys.count(); - m_keys.append(qt_metaDataKeys[i].key); - - m_builder.addSignal("__" + QByteArray::number(id) + "()"); - - QMetaPropertyBuilder build = m_builder.addProperty(name, "QVariant", id); - build.setDynamic(true); - - qFree(m_mem); - m_mem = m_builder.toMetaObject(); - *static_cast(this) = *m_mem; - - return m_propertyOffset + id; - } - } - - return -1; -} - -void QMetaDataControlMetaObject::metaDataChanged() -{ - for (int i = 0; i < m_keys.count(); ++i) - activate(m_object, m_signalOffset + i, 0); -} - -QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmetadatacontrolmetaobject_p.h --- a/qtmobility/src/multimedia/qmetadatacontrolmetaobject_p.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +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 Qt Mobility Components. -** -** $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 QMETADATACONTROLMETAOBJECT_P_H -#define QMETADATACONTROLMETAOJBECT_P_H - -#include - -#include -#include -#include - -QTM_BEGIN_NAMESPACE - -class QMetaDataControl; - -class QMetaDataControlMetaObject : public QAbstractDynamicMetaObject -{ -public: - QMetaDataControlMetaObject(QMetaDataControl *control, QObject *object); - ~QMetaDataControlMetaObject(); - - int metaCall(QMetaObject::Call call, int _id, void **arguments); - int createProperty(const char *, const char *); - - void metaDataChanged(); - -private: - QMetaDataControl *m_control; - QObject *m_object; - QMetaObject *m_mem; - - int m_propertyOffset; - int m_signalOffset; - - QVector m_keys; - QMetaObjectBuilder m_builder; -}; - -QTM_END_NAMESPACE - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmlaudio.cpp --- a/qtmobility/src/multimedia/qmlaudio.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,291 +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 Qt Mobility Components. -** -** $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 "qmlaudio_p.h" - -#include "qmediaplayercontrol.h" - -QML_DEFINE_TYPE(Qt,4,6,Audio,QTM_PREPEND_NAMESPACE(QmlAudio)); - -QTM_BEGIN_NAMESPACE - -/*! - \qmlclass Audio QmlAudio - \brief The Audio element allows you to add audio to a scene. -*/ - -/*! - \internal - \class QmlAudio - \brief The QmlAudio class provides a audio item that you can add to a QmlView. -*/ - -void QmlAudio::_q_error(QMediaPlayer::Error errorCode, const QString &errorString) -{ - m_error = errorCode; - m_errorString = errorString; - - emit error(Error(errorCode), errorString); - emit errorChanged(); -} - - -QmlAudio::QmlAudio(QObject *parent) - : QObject(parent) -{ - setObject(this); -} - -QmlAudio::~QmlAudio() -{ - shutdown(); -} - -/*! - \qmlmethod Audio::play() - - Starts playback of the audio. -*/ - -void QmlAudio::play() -{ - m_playerControl->play(); -} - -/*! - \qmlmethod Audio::pause() - - Pauses playback of the audio. -*/ - -void QmlAudio::pause() -{ - m_playerControl->pause(); -} - -/*! - \qmlmethod Audio::stop() - - Stops playback of the audio. -*/ - -void QmlAudio::stop() -{ - m_playerControl->stop(); -} - -/*! - \qmlproperty url Audio::source - - This property holds the source URL of the audio. -*/ - -/*! - \qmlproperty bool Audio::playing - - This property holds whether the audio is playing. -*/ - -/*! - \qmlproperty bool Audio::paused - - This property holds whether the audio is paused. -*/ - -/*! - \qmlsignal Audio::onStarted() - - This handler is called when playback is started. -*/ - -/*! - \qmlsignal Audio::onResumed() - - This handler is called when playback is resumed from the paused state. -*/ - -/*! - \qmlsignal Audio::onPaused() - - This handler is called when playback is paused. -*/ - -/*! - \qmlsignal Audio::onStopped() - - This handler is called when playback is stopped. -*/ - -/*! - \qmlproperty enum Audio::status - - This property holds the status of audio loading. It can be one of: - - \list - \o NoMedia - no audio has been set. - \o Loading - the audio is currently being loaded. - \o Loaded - the audio has been loaded. - \o Buffering - the audio is buffering data. - \o Stalled - playback has been interrupted while the audio is buffering data. - \o Buffered - the audio has buffered data. - \o EndOfMedia - the audio has played to the end. - \o InvalidMedia - the audio cannot be played. - \o UnknownStatus - the status of the audio is unknown. - \endlist -*/ - -QmlAudio::Status QmlAudio::status() const -{ - return Status(m_status); -} - -/*! - \qmlsignal Audio::onLoaded() - - This handler is called when the video source has been loaded. -*/ - -/*! - \qmlsignal Audio::onBuffering() - - This handler is called when the video stream starts buffering. -*/ - -/*! - \qmlsignal Audio::onStalled() - - This handler is called when playback has stalled while the video stream buffers. -*/ - -/*! - \qmlsignal Audio::onBuffered() - - This handler is called when the video stream has finished buffering. -*/ - -/*! - \qmlsignal Audio::onEndOfMedia - - This handler is called when playback stops because end of the video has been reached. -*/ -/*! - \qmlproperty int Audio::duration - - This property holds the duration of the audio in milliseconds. - - If the audio doesn't have a fixed duration (a live stream for example) this will be 0. -*/ - -/*! - \qmlproperty int Audio::position - - This property holds the current playback position in milliseconds. -*/ - -/*! - \qmlproperty qreal Audio::volume - - This property holds the volume of the audio output, from 0.0 (silent) to 1.0 (maximum volume). -*/ - -/*! - \qmlproperty bool Audio::muted - - This property holds whether the audio output is muted. -*/ - -/*! - \qmlproperty qreal Audio::bufferProgress - - This property holds how much of the data buffer is currently filled, from 0.0 (empty) to 1.0 - (full). -*/ - -/*! - \qmlproperty bool Audio::seekable - - This property holds whether position of the audio can be changed. -*/ - -/*! - \qmlproperty qreal playbackRate - - This property holds the rate at which audio is played at as a multiple of the normal rate. -*/ - -/*! - \qmlproperty enum Audio::error - - This property holds the error state of the audio. It can be one of: - - \list - \o NoError - there is no current error. - \o ResourceError - the audio cannot be played due to a problem allocating resources. - \o FormatError - the audio format is not supported. - \o NetworkError - the audio cannot be played due to network issues. - \o AccessDenied - the audio cannot be played due to insufficient permissions. - \o ServiceMissing - the audio cannot be played because the media service could not be - instantiated. - \endlist -*/ - -QmlAudio::Error QmlAudio::error() const -{ - return Error(m_error); -} - -/*! - \qmlproperty string Audio::errorString - - This property holds a string describing the current error condition in more detail. -*/ - -/*! - \qmlproperty Audio::onError(error, errorString) - - This property is called when an \l {Error}{error} has occurred. The errorString parameter - may contain more detailed information about the error. -*/ - -#include "moc_qmlaudio_p.cpp" - -QTM_END_NAMESPACE - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmlaudio_p.h --- a/qtmobility/src/multimedia/qmlaudio_p.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,157 +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 Qt Mobility Components. -** -** $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 QMLAUDIO_P_H -#define QMLAUDIO_P_H - -#include - -#include -#include - -class QTimerEvent; - -QTM_BEGIN_NAMESPACE - -class QmlAudio : public QObject, public QmlMediaBase, public QmlParserStatus -{ - Q_OBJECT - Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged) - Q_PROPERTY(bool playing READ isPlaying WRITE setPlaying NOTIFY playingChanged) - Q_PROPERTY(bool paused READ isPaused WRITE setPaused NOTIFY pausedChanged) - Q_PROPERTY(Status status READ status NOTIFY statusChanged) - Q_PROPERTY(int duration READ duration NOTIFY durationChanged) - Q_PROPERTY(int position READ position WRITE setPosition NOTIFY positionChanged) - Q_PROPERTY(qreal volume READ volume WRITE setVolume NOTIFY volumeChanged) - Q_PROPERTY(bool muted READ isMuted WRITE setMuted NOTIFY mutedChanged) - Q_PROPERTY(int bufferProgress READ bufferProgress NOTIFY bufferProgressChanged) - Q_PROPERTY(bool seekable READ isSeekable NOTIFY seekableChanged) - Q_PROPERTY(qreal playbackRate READ playbackRate WRITE setPlaybackRate NOTIFY playbackRateChanged) - Q_PROPERTY(Error error READ error NOTIFY errorChanged) - Q_PROPERTY(QString errorString READ errorString NOTIFY errorChanged) - Q_ENUMS(Status) - Q_ENUMS(Error) - Q_INTERFACES(QmlParserStatus) -public: - enum Status - { - UnknownStatus = QMediaPlayer::UnknownMediaStatus, - NoMedia = QMediaPlayer::NoMedia, - Loading = QMediaPlayer::LoadingMedia, - Loaded = QMediaPlayer::LoadedMedia, - Stalled = QMediaPlayer::StalledMedia, - Buffering = QMediaPlayer::BufferingMedia, - Buffered = QMediaPlayer::BufferedMedia, - EndOfMedia = QMediaPlayer::EndOfMedia, - InvalidMedia = QMediaPlayer::InvalidMedia - }; - - enum Error - { - NoError = QMediaPlayer::NoError, - ResourceError = QMediaPlayer::ResourceError, - FormatError = QMediaPlayer::FormatError, - NetworkError = QMediaPlayer::NetworkError, - AccessDenied = QMediaPlayer::AccessDeniedError, - ServiceMissing = QMediaPlayer::ServiceMissingError - }; - - QmlAudio(QObject *parent = 0); - ~QmlAudio(); - - Status status() const; - Error error() const; - -public Q_SLOTS: - void play(); - void pause(); - void stop(); - -Q_SIGNALS: - void sourceChanged(); - - void playingChanged(); - void pausedChanged(); - - void started(); - void resumed(); - void paused(); - void stopped(); - - void statusChanged(); - - void loaded(); - void buffering(); - void stalled(); - void buffered(); - void endOfMedia(); - - void durationChanged(); - void positionChanged(); - - void volumeChanged(); - void mutedChanged(); - - void bufferProgressChanged(); - - void seekableChanged(); - void playbackRateChanged(); - - void errorChanged(); - void error(QmlAudio::Error error, const QString &errorString); - -private Q_SLOTS: - void _q_error(QMediaPlayer::Error, const QString &); - -private: - Q_DISABLE_COPY(QmlAudio) - Q_PRIVATE_SLOT(mediaBase(), void _q_stateChanged(QMediaPlayer::State)) - Q_PRIVATE_SLOT(mediaBase(), void _q_mediaStatusChanged(QMediaPlayer::MediaStatus)) - Q_PRIVATE_SLOT(mediaBase(), void _q_metaDataChanged()) - - inline QmlMediaBase *mediaBase() { return this; } -}; - -QTM_END_NAMESPACE - -QML_DECLARE_TYPE(QTM_PREPEND_NAMESPACE(QmlAudio)) - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmlgraphicsvideo.cpp --- a/qtmobility/src/multimedia/qmlgraphicsvideo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,376 +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 Qt Mobility Components. -** -** $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 "qmlgraphicsvideo_p.h" - -#include -#include -#include -#include -#include - -QML_DEFINE_TYPE(Qt,4,6,Video,QTM_PREPEND_NAMESPACE(QmlGraphicsVideo)); - -QTM_BEGIN_NAMESPACE - -void QmlGraphicsVideo::_q_nativeSizeChanged(const QSizeF &size) -{ - setImplicitWidth(size.width()); - setImplicitHeight(size.height()); -} - -void QmlGraphicsVideo::_q_error(QMediaPlayer::Error errorCode, const QString &errorString) -{ - m_error = errorCode; - m_errorString = errorString; - - emit error(Error(errorCode), errorString); - emit errorChanged(); -} - - -/*! - \qmlclass Video QmlGraphicsVideo - \brief The Video element allows you to add videos to a scene. - \inherits Item -*/ - -/*! - \internal - \class QmlGraphicsVideo - \brief The QmlGraphicsVideo class provides a video item that you can add to a QmlView. -*/ - -QmlGraphicsVideo::QmlGraphicsVideo(QmlGraphicsItem *parent) - : QmlGraphicsItem(parent) - , m_graphicsItem(0) - , m_fillMode(QmlGraphicsVideo::PreserveAspectFit) - -{ - m_graphicsItem = new QGraphicsVideoItem(this); - connect(m_graphicsItem, SIGNAL(nativeSizeChanged(QSizeF)), - this, SLOT(_q_nativeSizeChanged(QSizeF))); - - setObject(this); - - if (m_mediaService) { - connect(m_playerControl, SIGNAL(audioAvailableChanged(bool)), - this, SIGNAL(hasAudioChanged())); - connect(m_playerControl, SIGNAL(videoAvailableChanged(bool)), - this, SIGNAL(hasVideoChanged())); - - m_graphicsItem->setMediaObject(m_mediaObject); - } -} - -QmlGraphicsVideo::~QmlGraphicsVideo() -{ - shutdown(); - - delete m_graphicsItem; -} - -/*! - \qmlproperty url Video::source - - This property holds the source URL of the video. -*/ - -/*! - \qmlproperty bool Video::playing - - This property holds whether the video is playing. -*/ - -/*! - \qmlproperty bool Video::paused - - This property holds whether the video is paused. -*/ - -/*! - \qmlsignal Video::onStarted() - - This handler is called when playback is started. -*/ - -/*! - \qmlsignal Video::onResumed() - - This handler is called when playback is resumed from the paused state. -*/ - -/*! - \qmlsignal Video::onPaused() - - This handler is called when playback is paused. -*/ - -/*! - \qmlsignal Video::onStopped() - - This handler is called when playback is stopped. -*/ - -/*! - \qmlproperty enum Video::status - - This property holds the status of video loading. It can be one of: - - \list - \o NoMedia - no video has been set. - \o Loading - the video is currently being loaded. - \o Loaded - the video has been loaded. - \o Buffering - the video is buffering data. - \o Stalled - playback has been interrupted while the video is buffering data. - \o Buffered - the video has buffered data. - \o EndOfMedia - the video has played to the end. - \o InvalidMedia - the video cannot be played. - \o UnknownStatus - the status of the video is unknown. - \endlist -*/ - -QmlGraphicsVideo::Status QmlGraphicsVideo::status() const -{ - return Status(m_status); -} - -/*! - \qmlsignal Video::onLoaded() - - This handler is called when the video source has been loaded. -*/ - -/*! - \qmlsignal Video::onBuffering() - - This handler is called when the video stream starts buffering. -*/ - -/*! - \qmlsignal Video::onStalled() - - This handler is called when playback has stalled while the video stream buffers. -*/ - -/*! - \qmlsignal Video::onBuffered() - - This handler is called when the video stream has finished buffering. -*/ - -/*! - \qmlsignal Video::onEndOfMedia - - This handler is called when playback stops because end of the video has been reached. -*/ - -/*! - \qmlproperty int Video::duration - - This property holds the duration of the video in milliseconds. - - If the video doesn't have a fixed duration (a live stream for example) this will be 0. -*/ - -/*! - \qmlproperty int Video::position - - This property holds the current playback position in milliseconds. -*/ - -/*! - \qmlproperty qreal Video::volume - - This property holds the volume of the audio output, from 0.0 (silent) to 1.0 (maximum volume). -*/ - -/*! - \qmlproperty bool Video::muted - - This property holds whether the audio output is muted. -*/ - -/*! - \qmlproperty bool Audio::hasAudio - - This property holds whether the source contains audio. -*/ - -bool QmlGraphicsVideo::hasAudio() const -{ - return m_playerControl->isAudioAvailable(); -} - -/*! - \qmlproperty bool Video::hasVideo - - This property holds whether the source contains video. -*/ - -bool QmlGraphicsVideo::hasVideo() const -{ - return m_playerControl->isVideoAvailable(); -} - -/*! - \qmlproperty qreal Video::bufferProgress - - This property holds how much of the data buffer is currently filled, from 0.0 (empty) to 1.0 - (full). -*/ - -/*! - \qmlproperty bool Video::seekable - - This property holds whether position of the video can be changed. -*/ - -/*! - \qmlproperty qreal playbackRate - - This property holds the rate at which video is played at as a multiple of the normal rate. -*/ - -/*! - \qmlproperty enum Video::error - - This property holds the error state of the video. It can be one of: - - \list - \o NoError - there is no current error. - \o ResourceError - the video cannot be played due to a problem allocating resources. - \o FormatError - the video format is not supported. - \o NetworkError - the video cannot be played due to network issues. - \o AccessDenied - the video cannot be played due to insufficient permissions. - \o ServiceMissing - the video cannot be played because the media service could not be - instantiated. - \endlist -*/ - - -QmlGraphicsVideo::Error QmlGraphicsVideo::error() const -{ - return Error(m_error); -} - -/*! - \qmlproperty string Video::errorString - - This property holds a string describing the current error condition in more detail. -*/ - -/*! - \qmlproperty Video::onError(error, errorString) - - This property is called when an \l {Error}{error} has occurred. The errorString parameter - may contain more detailed information about the error. -*/ - -/*! - \qmlproperty enum Video::FillMode - - Set this property to define how the video is scaled to fit the target area. - - \list - \o Stretch - the video is scaled to fit. - \o PreserveAspectFit - the video is scaled uniformly to fit without cropping - \o PreserveAspectCrop - the video is scaled uniformly to fill, cropping if necessary - \endlist -*/ - -QmlGraphicsVideo::FillMode QmlGraphicsVideo::fillMode() const -{ - return FillMode(m_graphicsItem->aspectRatioMode()); -} - -void QmlGraphicsVideo::setFillMode(FillMode mode) -{ - m_graphicsItem->setAspectRatioMode(Qt::AspectRatioMode(mode)); -} - -/*! - \qmlmethod Video::play() - - Starts playback of the video. -*/ - -void QmlGraphicsVideo::play() -{ - m_playerControl->play(); -} - -/*! - \qmlmethod Video::pause() - - Pauses playback of the video. -*/ - -void QmlGraphicsVideo::pause() -{ - m_playerControl->pause(); -} - -/*! - \qmlmethod Video::stop() - - Stops playback of the video. -*/ - -void QmlGraphicsVideo::stop() -{ - m_playerControl->stop(); -} - -void QmlGraphicsVideo::paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) -{ -} - -void QmlGraphicsVideo::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) -{ - m_graphicsItem->setSize(newGeometry.size()); - - QmlGraphicsItem::geometryChanged(newGeometry, oldGeometry); -} - -#include "moc_qmlgraphicsvideo_p.cpp" - -QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmlgraphicsvideo_p.h --- a/qtmobility/src/multimedia/qmlgraphicsvideo_p.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,193 +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 Qt Mobility Components. -** -** $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 QMLGRAPHICSVIDEO_H -#define QMLGRAPHICSVIDEO_H - -#include - -#include - -#include -#include - -QT_BEGIN_NAMESPACE -class QVideoSurfaceFormat; -class QTimerEvent; -QT_END_NAMESPACE - -QTM_BEGIN_NAMESPACE - -class QmlGraphicsVideo : public QmlGraphicsItem, public QmlMediaBase -{ - Q_OBJECT - Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged) - Q_PROPERTY(bool playing READ isPlaying WRITE setPlaying NOTIFY playingChanged) - Q_PROPERTY(bool paused READ isPaused WRITE setPaused NOTIFY pausedChanged) - Q_PROPERTY(Status status READ status NOTIFY statusChanged) - Q_PROPERTY(int duration READ duration NOTIFY durationChanged) - Q_PROPERTY(int position READ position WRITE setPosition NOTIFY positionChanged) - Q_PROPERTY(qreal volume READ volume WRITE setVolume NOTIFY volumeChanged) - Q_PROPERTY(bool muted READ isMuted WRITE setMuted NOTIFY mutedChanged) - Q_PROPERTY(bool hasAudio READ hasAudio NOTIFY hasAudioChanged) - Q_PROPERTY(bool hasVideo READ hasVideo NOTIFY hasVideoChanged) - Q_PROPERTY(int bufferProgress READ bufferProgress NOTIFY bufferProgressChanged) - Q_PROPERTY(bool seekable READ isSeekable NOTIFY seekableChanged) - Q_PROPERTY(qreal playbackRate READ playbackRate WRITE setPlaybackRate NOTIFY playbackRateChanged) - Q_PROPERTY(Error error READ error NOTIFY errorChanged) - Q_PROPERTY(QString errorString READ errorString NOTIFY errorChanged) - Q_PROPERTY(FillMode fillMode READ fillMode WRITE setFillMode) - Q_ENUMS(FillMode) - Q_ENUMS(Status) - Q_ENUMS(Error) -public: - enum FillMode - { - Stretch = Qt::IgnoreAspectRatio, - PreserveAspectFit = Qt::KeepAspectRatio, - PreserveAspectCrop = Qt::KeepAspectRatioByExpanding - }; - - enum Status - { - UnknownStatus = QMediaPlayer::UnknownMediaStatus, - NoMedia = QMediaPlayer::NoMedia, - Loading = QMediaPlayer::LoadingMedia, - Loaded = QMediaPlayer::LoadedMedia, - Stalled = QMediaPlayer::StalledMedia, - Buffering = QMediaPlayer::BufferingMedia, - Buffered = QMediaPlayer::BufferedMedia, - EndOfMedia = QMediaPlayer::EndOfMedia, - InvalidMedia = QMediaPlayer::InvalidMedia - }; - - enum Error - { - NoError = QMediaPlayer::NoError, - ResourceError = QMediaPlayer::ResourceError, - FormatError = QMediaPlayer::FormatError, - NetworkError = QMediaPlayer::NetworkError, - AccessDenied = QMediaPlayer::AccessDeniedError, - ServiceMissing = QMediaPlayer::ServiceMissingError - }; - - QmlGraphicsVideo(QmlGraphicsItem *parent = 0); - ~QmlGraphicsVideo(); - - bool hasAudio() const; - bool hasVideo() const; - - FillMode fillMode() const; - void setFillMode(FillMode mode); - - Status status() const; - Error error() const; - - void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *); - -public Q_SLOTS: - void play(); - void pause(); - void stop(); - -Q_SIGNALS: - void sourceChanged(); - - void playingChanged(); - void pausedChanged(); - - void started(); - void resumed(); - void paused(); - void stopped(); - - void statusChanged(); - - void loaded(); - void buffering(); - void stalled(); - void buffered(); - void endOfMedia(); - - void durationChanged(); - void positionChanged(); - - void volumeChanged(); - void mutedChanged(); - void hasAudioChanged(); - void hasVideoChanged(); - - void bufferProgressChanged(); - - void seekableChanged(); - void playbackRateChanged(); - - void errorChanged(); - void error(QmlGraphicsVideo::Error error, const QString &errorString); - -protected: - void geometryChanged(const QRectF &geometry, const QRectF &); - -private Q_SLOTS: - void _q_nativeSizeChanged(const QSizeF &size); - void _q_error(QMediaPlayer::Error, const QString &); - -private: - Q_DISABLE_COPY(QmlGraphicsVideo) - - QGraphicsVideoItem *m_graphicsItem; - - FillMode m_fillMode; - QRectF m_scaledRect; - bool m_updatePaintDevice; - - Q_PRIVATE_SLOT(mediaBase(), void _q_stateChanged(QMediaPlayer::State)) - Q_PRIVATE_SLOT(mediaBase(), void _q_mediaStatusChanged(QMediaPlayer::MediaStatus)) - Q_PRIVATE_SLOT(mediaBase(), void _q_metaDataChanged()) - - inline QmlMediaBase *mediaBase() { return this; } -}; - -QTM_END_NAMESPACE - -QML_DECLARE_TYPE(QTM_PREPEND_NAMESPACE(QmlGraphicsVideo)) - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmlmediabase.cpp --- a/qtmobility/src/multimedia/qmlmediabase.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,376 +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 Qt Mobility Components. -** -** $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 "qmlmediabase_p.h" - -#include -#include - -#include -#include -#include -#include -#include - -QTM_BEGIN_NAMESPACE - -class QmlMediaBaseObject : public QMediaObject -{ -public: - QmlMediaBaseObject(QMediaService *service) - : QMediaObject(0, service) - { - } -}; - -class QmlMediaBasePlayerControl : public QMediaPlayerControl -{ -public: - QmlMediaBasePlayerControl(QObject *parent) - : QMediaPlayerControl(parent) - { - } - - QMediaPlayer::State state() const { return QMediaPlayer::StoppedState; } - QMediaPlayer::MediaStatus mediaStatus() const { return QMediaPlayer::NoMedia; } - - qint64 duration() const { return 0; } - qint64 position() const { return 0; } - void setPosition(qint64) {} - int volume() const { return 100; } - void setVolume(int) {} - bool isMuted() const { return false; } - void setMuted(bool) {} - int bufferStatus() const { return 0; } - bool isAudioAvailable() const { return false; } - bool isVideoAvailable() const { return false; } - bool isSeekable() const { return false; } - QMediaTimeRange availablePlaybackRanges() const { return QMediaTimeRange(); } - qreal playbackRate() const { return 1; } - void setPlaybackRate(qreal) {} - QMediaContent media() const { return QMediaContent(); } - const QIODevice *mediaStream() const { return 0; } - void setMedia(const QMediaContent &, QIODevice *) {} - - void play() {} - void pause() {} - void stop() {} -}; - -class QmlMediaBaseAnimation : public QObject -{ -public: - QmlMediaBaseAnimation(QmlMediaBase *media) - : m_media(media) - { - } - - void start() { if (!m_timer.isActive()) m_timer.start(500, this); } - void stop() { m_timer.stop(); } - -protected: - void timerEvent(QTimerEvent *event) - { - if (event->timerId() == m_timer.timerId()) { - event->accept(); - - if (m_media->m_state == QMediaPlayer::PlayingState) - emit m_media->positionChanged(); - if (m_media->m_status == QMediaPlayer::BufferingMedia || QMediaPlayer::StalledMedia) - emit m_media->bufferProgressChanged(); - } else { - QObject::timerEvent(event); - } - } - -private: - QmlMediaBase *m_media; - QBasicTimer m_timer; -}; - -void QmlMediaBase::_q_stateChanged(QMediaPlayer::State state) -{ - if (state != m_state) { - QMediaPlayer::State oldState = state; - - m_state = state; - - switch (state) { - case QMediaPlayer::PlayingState: - if (oldState == QMediaPlayer::StoppedState) - emit started(); - else if (oldState == QMediaPlayer::PausedState) - emit resumed(); - break; - case QMediaPlayer::PausedState: - emit paused(); - case QMediaPlayer::StoppedState: - emit stopped(); - break; - default: - break; - } - - emit playingChanged(); - emit pausedChanged(); - - if (m_state == QMediaPlayer::PlayingState - || m_status == QMediaPlayer::BufferingMedia - || m_status == QMediaPlayer::StalledMedia) { - m_animation->start(); - } else { - m_animation->stop(); - } - } -} - -void QmlMediaBase::_q_mediaStatusChanged(QMediaPlayer::MediaStatus status) -{ - if (status != m_status) { - m_status = status; - - switch (status) { - case QMediaPlayer::LoadedMedia: - emit loaded(); - break; - case QMediaPlayer::BufferingMedia: - emit buffering(); - break; - case QMediaPlayer::BufferedMedia: - emit buffered(); - break; - case QMediaPlayer::StalledMedia: - emit stalled(); - break; - case QMediaPlayer::EndOfMedia: - emit endOfMedia(); - break; - default: - break; - } - - emit statusChanged(); - - if (m_state == QMediaPlayer::PlayingState - || m_status == QMediaPlayer::BufferingMedia - || m_status == QMediaPlayer::StalledMedia) { - m_animation->start(); - } else { - m_animation->stop(); - } - } -} - -void QmlMediaBase::_q_metaDataChanged() -{ - m_metaObject->metaDataChanged(); -} - -QmlMediaBase::QmlMediaBase() - : m_mediaService(0) - , m_playerControl(0) - , m_mediaObject(0) - , m_mediaProvider(0) - , m_metaDataControl(0) - , m_metaObject(0) - , m_animation(0) - , m_state(QMediaPlayer::StoppedState) - , m_status(QMediaPlayer::NoMedia) - , m_error(QMediaPlayer::NoError) -{ -} - -QmlMediaBase::~QmlMediaBase() -{ -} - -void QmlMediaBase::shutdown() -{ - delete m_metaObject; - delete m_mediaObject; - - if (m_mediaProvider) - m_mediaProvider->releaseService(m_mediaService); - - delete m_animation; - -} - -void QmlMediaBase::setObject(QObject *object) -{ - if ((m_mediaProvider = QMediaServiceProvider::defaultServiceProvider())) { - if ((m_mediaService = m_mediaProvider->requestService(Q_MEDIASERVICE_MEDIAPLAYER))) { - m_playerControl = qobject_cast( - m_mediaService->control(QMediaPlayerControl_iid)); - m_metaDataControl = qobject_cast( - m_mediaService->control(QMetaDataControl_iid)); - m_mediaObject = new QmlMediaBaseObject(m_mediaService); - } - } - - if (m_playerControl) { - QObject::connect(m_playerControl, SIGNAL(stateChanged(QMediaPlayer::State)), - object, SLOT(_q_stateChanged(QMediaPlayer::State))); - QObject::connect(m_playerControl, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), - object, SLOT(_q_mediaStatusChanged(QMediaPlayer::MediaStatus))); - QObject::connect(m_playerControl, SIGNAL(mediaChanged(QMediaContent)), - object, SIGNAL(sourceChanged())); - QObject::connect(m_playerControl, SIGNAL(durationChanged(qint64)), - object, SIGNAL(durationChanged())); - QObject::connect(m_playerControl, SIGNAL(positionChanged(qint64)), - object, SIGNAL(positionChanged())); - QObject::connect(m_playerControl, SIGNAL(volumeChanged(int)), - object, SIGNAL(volumeChanged())); - QObject::connect(m_playerControl, SIGNAL(mutedChanged(bool)), - object, SIGNAL(mutedChanged())); - - m_animation = new QmlMediaBaseAnimation(this); - } else { - m_playerControl = new QmlMediaBasePlayerControl(object); - } - - if (m_metaDataControl) { - m_metaObject = new QMetaDataControlMetaObject(m_metaDataControl, object); - - QObject::connect(m_metaDataControl, SIGNAL(metaDataChanged()), - object, SLOT(_q_metaDataChanged())); - } -} - -QUrl QmlMediaBase::source() const -{ - return m_playerControl->media().canonicalUrl(); -} - -void QmlMediaBase::setSource(const QUrl &url) -{ - m_playerControl->setMedia(QMediaContent(url), 0); -} - -bool QmlMediaBase::isPlaying() const -{ - return m_state != QMediaPlayer::StoppedState; -} - -void QmlMediaBase::setPlaying(bool playing) -{ - if (playing && m_state == QMediaPlayer::StoppedState) - m_playerControl->play(); - else if (!playing) - m_playerControl->stop(); -} - -bool QmlMediaBase::isPaused() const -{ - return m_state == QMediaPlayer::PausedState; -} - -void QmlMediaBase::setPaused(bool paused) -{ - if (paused && m_state == QMediaPlayer::PlayingState) - m_playerControl->pause(); - if (!paused && m_state == QMediaPlayer::PausedState) - m_playerControl->play(); -} - -int QmlMediaBase::duration() const -{ - return m_playerControl->duration(); -} - -int QmlMediaBase::position() const -{ - return m_playerControl->position(); - -} - -void QmlMediaBase::setPosition(int position) -{ - m_playerControl->setPosition(position); -} - -qreal QmlMediaBase::volume() const -{ - return qreal(m_playerControl->volume()) / 100; -} - -void QmlMediaBase::setVolume(qreal volume) -{ - m_playerControl->setVolume(volume * 100); -} - -bool QmlMediaBase::isMuted() const -{ - return m_playerControl->isMuted(); -} - -void QmlMediaBase::setMuted(bool muted) -{ - m_playerControl->setMuted(muted); -} - -qreal QmlMediaBase::bufferProgress() const -{ - return qreal(m_playerControl->bufferStatus()) / 100; -} - -bool QmlMediaBase::isSeekable() const -{ - return m_playerControl->isSeekable(); -} - -qreal QmlMediaBase::playbackRate() const -{ - return m_playerControl->playbackRate(); -} - -void QmlMediaBase::setPlaybackRate(qreal rate) -{ - m_playerControl->setPlaybackRate(rate); -} - -QString QmlMediaBase::errorString() const -{ - return m_errorString; -} - -QTM_END_NAMESPACE - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qmlmediabase_p.h --- a/qtmobility/src/multimedia/qmlmediabase_p.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,151 +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 Qt Mobility Components. -** -** $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 QMLMEDIABASE_P_H -#define QMLMEDIABASE_P_H - - -#include -#include - -QTM_BEGIN_NAMESPACE - -class QMediaPlayerControl; -class QMediaService; -class QMediaServiceProvider; -class QMetaDataControl; -class QMetaDataControlMetaObject; -class QmlMediaBaseAnimation; - -class QmlMediaBase -{ -public: - QmlMediaBase(); - virtual ~QmlMediaBase(); - - QUrl source() const; - void setSource(const QUrl &url); - - bool isPlaying() const; - void setPlaying(bool playing); - - bool isPaused() const; - void setPaused(bool paused); - - int duration() const; - - int position() const; - void setPosition(int position); - - qreal volume() const; - void setVolume(qreal volume); - - bool isMuted() const; - void setMuted(bool muted); - - qreal bufferProgress() const; - - bool isSeekable() const; - - qreal playbackRate() const; - void setPlaybackRate(qreal rate); - - QString errorString() const; - - void _q_stateChanged(QMediaPlayer::State state); - void _q_mediaStatusChanged(QMediaPlayer::MediaStatus status); - - void _q_metaDataChanged(); - -protected: - void shutdown(); - - void setObject(QObject *object); - - virtual void sourceChanged() = 0; - - virtual void playingChanged() = 0; - virtual void pausedChanged() = 0; - - virtual void started() = 0; - virtual void resumed() = 0; - virtual void paused() = 0; - virtual void stopped() = 0; - - virtual void statusChanged() = 0; - - virtual void loaded() = 0; - virtual void buffering() = 0; - virtual void stalled() = 0; - virtual void buffered() = 0; - virtual void endOfMedia() = 0; - - virtual void durationChanged() = 0; - virtual void positionChanged() = 0; - - virtual void volumeChanged() = 0; - virtual void mutedChanged() = 0; - - virtual void bufferProgressChanged() = 0; - - virtual void seekableChanged() = 0; - virtual void playbackRateChanged() = 0; - - QMediaService *m_mediaService; - QMediaPlayerControl *m_playerControl; - - QMediaObject *m_mediaObject; - QMediaServiceProvider *m_mediaProvider; - QMetaDataControl *m_metaDataControl; - QMetaDataControlMetaObject *m_metaObject; - QmlMediaBaseAnimation *m_animation; - - QMediaPlayer::State m_state; - QMediaPlayer::MediaStatus m_status; - QMediaPlayer::Error m_error; - QString m_errorString; - - friend class QmlMediaBaseAnimation; -}; - -QTM_END_NAMESPACE - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qpaintervideosurface.cpp --- a/qtmobility/src/multimedia/qpaintervideosurface.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qpaintervideosurface.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qpaintervideosurface_p.h" #include @@ -360,23 +360,23 @@ { const qreal b = brightness / 200.0; const qreal c = contrast / 100.0 + 1.0; - const qreal h = hue / 200.0; + const qreal h = hue / 100.0; const qreal s = saturation / 100.0 + 1.0; const qreal cosH = qCos(M_PI * h); const qreal sinH = qSin(M_PI * h); - const qreal h11 = -0.4728 * cosH + 0.7954 * sinH + 1.4728; - const qreal h21 = -0.9253 * cosH - 0.0118 * sinH + 0.9523; - const qreal h31 = 0.4525 * cosH + 0.8072 * sinH - 0.4524; + const qreal h11 = 0.787 * cosH - 0.213 * sinH + 0.213; + const qreal h21 = -0.213 * cosH + 0.143 * sinH + 0.213; + const qreal h31 = -0.213 * cosH - 0.787 * sinH + 0.213; - const qreal h12 = 1.4728 * cosH - 1.3728 * sinH - 1.4728; - const qreal h22 = 1.9253 * cosH + 0.5891 * sinH - 0.9253; - const qreal h32 = -0.4525 * cosH - 1.9619 * sinH + 0.4525; + const qreal h12 = -0.715 * cosH - 0.715 * sinH + 0.715; + const qreal h22 = 0.285 * cosH + 0.140 * sinH + 0.715; + const qreal h32 = -0.715 * cosH + 0.715 * sinH + 0.715; - const qreal h13 = 1.4728 * cosH - 0.2181 * sinH - 1.4728; - const qreal h23 = 0.9253 * cosH + 1.1665 * sinH - 0.9253; - const qreal h33 = 0.5475 * cosH - 1.3846 * sinH + 0.4525; + const qreal h13 = -0.072 * cosH + 0.928 * sinH + 0.072; + const qreal h23 = -0.072 * cosH - 0.283 * sinH + 0.072; + const qreal h33 = 0.928 * cosH + 0.072 * sinH + 0.072; const qreal sr = (1.0 - s) * 0.3086; const qreal sg = (1.0 - s) * 0.6094; @@ -529,6 +529,32 @@ "DP4 result.color.z, yuv, matrix[2];\n" "END"; +// Paints a YUV444 frame. +static const char *qt_arbfp_xyuvShaderProgram = + "!!ARBfp1.0\n" + "PARAM matrix[4] = { program.local[0..2]," + "{ 0.0, 0.0, 0.0, 1.0 } };\n" + "TEMP ayuv;\n" + "TEX ayuv, fragment.texcoord[0], texture[0], 2D;\n" + "MOV ayuv.x, matrix[3].w;\n" + "DP4 result.color.x, ayuv.yzwx, matrix[0];\n" + "DP4 result.color.y, ayuv.yzwx, matrix[1];\n" + "DP4 result.color.z, ayuv.yzwx, matrix[2];\n" + "END"; + +// Paints a AYUV444 frame. +static const char *qt_arbfp_ayuvShaderProgram = + "!!ARBfp1.0\n" + "PARAM matrix[4] = { program.local[0..2]," + "{ 0.0, 0.0, 0.0, 1.0 } };\n" + "TEMP ayuv;\n" + "TEX ayuv, fragment.texcoord[0], texture[0], 2D;\n" + "MOV ayuv.x, matrix[3].w;\n" + "DP4 result.color.x, ayuv.yzwx, matrix[0];\n" + "DP4 result.color.y, ayuv.yzwx, matrix[1];\n" + "DP4 result.color.z, ayuv.yzwx, matrix[2];\n" + "TEX result.color.w, fragment.texcoord[0], texture, 2D;\n" + "END"; class QVideoSurfaceArbFpPainter : public QVideoSurfaceGLPainter { @@ -577,9 +603,13 @@ m_imagePixelFormats << QVideoFrame::Format_RGB32 + << QVideoFrame::Format_BGR32 << QVideoFrame::Format_ARGB32 << QVideoFrame::Format_RGB24 + << QVideoFrame::Format_BGR24 << QVideoFrame::Format_RGB565 + << QVideoFrame::Format_AYUV444 + << QVideoFrame::Format_YUV444 << QVideoFrame::Format_YV12 << QVideoFrame::Format_YUV420P; m_glPixelFormats @@ -603,18 +633,36 @@ initRgbTextureInfo(GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, format.frameSize()); program = qt_arbfp_xrgbShaderProgram; break; + case QVideoFrame::Format_BGR32: + initRgbTextureInfo(GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, format.frameSize()); + program = qt_arbfp_rgbShaderProgram; + break; case QVideoFrame::Format_ARGB32: initRgbTextureInfo(GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, format.frameSize()); program = qt_arbfp_argbShaderProgram; break; case QVideoFrame::Format_RGB24: initRgbTextureInfo(GL_RGB8, GL_RGBA, GL_UNSIGNED_BYTE, format.frameSize()); - program = qt_arbfp_argbShaderProgram; + program = qt_arbfp_rgbShaderProgram; + break; + case QVideoFrame::Format_BGR24: + initRgbTextureInfo(GL_RGB8, GL_RGBA, GL_UNSIGNED_BYTE, format.frameSize()); + program = qt_arbfp_xrgbShaderProgram; break; case QVideoFrame::Format_RGB565: initRgbTextureInfo(GL_RGB, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, format.frameSize()); program = qt_arbfp_rgbShaderProgram; break; + case QVideoFrame::Format_YUV444: + initRgbTextureInfo(GL_RGB, GL_RGB, GL_UNSIGNED_BYTE, format.frameSize()); + program = qt_arbfp_xyuvShaderProgram; + m_yuv = true; + break; + case QVideoFrame::Format_AYUV444: + initRgbTextureInfo(GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, format.frameSize()); + program = qt_arbfp_ayuvShaderProgram; + m_yuv = true; + break; case QVideoFrame::Format_YV12: initYv12TextureInfo(format.frameSize()); program = qt_arbfp_yuvPlanarShaderProgram; @@ -704,6 +752,9 @@ if (m_frame.isValid()) { painter->beginNativePainting(); + glEnable(GL_STENCIL_TEST); + glEnable(GL_SCISSOR_TEST); + const float txLeft = source.left() / m_frameSize.width(); const float txRight = source.right() / m_frameSize.width(); const float txTop = m_scanLineDirection == QVideoSurfaceFormat::TopToBottom @@ -784,6 +835,9 @@ glDisableClientState(GL_VERTEX_ARRAY); glDisable(GL_FRAGMENT_PROGRAM_ARB); + glDisable(GL_STENCIL_TEST); + glDisable(GL_SCISSOR_TEST); + painter->endNativePainting(); } return QAbstractVideoSurface::NoError; @@ -854,6 +908,28 @@ " gl_FragColor = colorMatrix * color;\n" "}\n"; +// Paints a YUV444 frame. +static const char *qt_glsl_xyuvShaderProgram = + "uniform sampler2D texRgb;\n" + "uniform mediump mat4 colorMatrix;\n" + "varying highp vec2 textureCoord;\n" + "void main(void)\n" + "{\n" + " highp vec4 color = vec4(texture2D(texRgb, textureCoord.st).gba, 1.0);\n" + " gl_FragColor = colorMatrix * color;\n" + "}\n"; + +// Paints a AYUV444 frame. +static const char *qt_glsl_ayuvShaderProgram = + "uniform sampler2D texRgb;\n" + "uniform mediump mat4 colorMatrix;\n" + "varying highp vec2 textureCoord;\n" + "void main(void)\n" + "{\n" + " highp vec4 color = vec4(texture2D(texRgb, textureCoord.st).gba, 1.0);\n" + " color = colorMatrix * color;\n" + " gl_FragColor = vec4(color.rgb, texture2D(texRgb, textureCoord.st).r);\n" + "}\n"; class QVideoSurfaceGlslPainter : public QVideoSurfaceGLPainter { @@ -877,11 +953,15 @@ { m_imagePixelFormats << QVideoFrame::Format_RGB32 + << QVideoFrame::Format_BGR32 << QVideoFrame::Format_ARGB32 #ifndef QT_OPENGL_ES << QVideoFrame::Format_RGB24 + << QVideoFrame::Format_BGR24 #endif << QVideoFrame::Format_RGB565 + << QVideoFrame::Format_YUV444 + << QVideoFrame::Format_AYUV444 << QVideoFrame::Format_YV12 << QVideoFrame::Format_YUV420P; m_glPixelFormats @@ -905,6 +985,10 @@ initRgbTextureInfo(GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, format.frameSize()); fragmentProgram = qt_glsl_xrgbShaderProgram; break; + case QVideoFrame::Format_BGR32: + initRgbTextureInfo(GL_RGB, GL_RGBA, GL_UNSIGNED_BYTE, format.frameSize()); + fragmentProgram = qt_glsl_rgbShaderProgram; + break; case QVideoFrame::Format_ARGB32: initRgbTextureInfo(GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, format.frameSize()); fragmentProgram = qt_glsl_argbShaderProgram; @@ -914,11 +998,25 @@ initRgbTextureInfo(GL_RGB8, GL_RGB, GL_UNSIGNED_BYTE, format.frameSize()); fragmentProgram = qt_glsl_rgbShaderProgram; break; + case QVideoFrame::Format_BGR24: + initRgbTextureInfo(GL_RGB8, GL_RGB, GL_UNSIGNED_BYTE, format.frameSize()); + fragmentProgram = qt_glsl_argbShaderProgram; + break; #endif case QVideoFrame::Format_RGB565: initRgbTextureInfo(GL_RGB, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, format.frameSize()); fragmentProgram = qt_glsl_rgbShaderProgram; break; + case QVideoFrame::Format_YUV444: + initRgbTextureInfo(GL_RGB, GL_RGB, GL_UNSIGNED_BYTE, format.frameSize()); + fragmentProgram = qt_glsl_xyuvShaderProgram; + m_yuv = true; + break; + case QVideoFrame::Format_AYUV444: + initRgbTextureInfo(GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, format.frameSize()); + fragmentProgram = qt_glsl_ayuvShaderProgram; + m_yuv = true; + break; case QVideoFrame::Format_YV12: initYv12TextureInfo(format.frameSize()); fragmentProgram = qt_glsl_yuvPlanarShaderProgram; @@ -987,6 +1085,9 @@ if (m_frame.isValid()) { painter->beginNativePainting(); + glEnable(GL_STENCIL_TEST); + glEnable(GL_SCISSOR_TEST); + const int width = QGLContext::currentContext()->device()->width(); const int height = QGLContext::currentContext()->device()->height(); @@ -1085,6 +1186,9 @@ m_program.release(); + + glDisable(GL_SCISSOR_TEST); + glDisable(GL_STENCIL_TEST); painter->endNativePainting(); } return QAbstractVideoSurface::NoError; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qradiotuner.cpp --- a/qtmobility/src/multimedia/qradiotuner.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qradiotuner.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,10 +39,10 @@ ** ****************************************************************************/ -#include -#include -#include -#include +#include "qradiotuner.h" +#include "qmediaservice.h" +#include "qmediaobject_p.h" +#include "qradiotunercontrol.h" #include @@ -551,6 +551,7 @@ \value FM 87.5 to 108.0 MHz, except Japan 76-90 MHz \value SW 1.711 to 30.0 MHz, divided into 15 bands. 5kHz channel spacing \value LW 148.5 to 283.5 kHz, 9kHz channel spacing (Europe, Africa, Asia) + \value FM2 range not defined, used when area supports more than one FM range. */ /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qradiotuner.h --- a/qtmobility/src/multimedia/qradiotuner.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qradiotuner.h Mon May 03 13:18:40 2010 +0300 @@ -44,8 +44,8 @@ #include -#include -#include +#include "qmediaobject.h" +#include "qmediaserviceprovider.h" #include @@ -71,7 +71,7 @@ public: enum State { ActiveState, StoppedState }; - enum Band { AM, FM, SW, LW }; + enum Band { AM, FM, SW, LW, FM2 }; enum Error { NoError, ResourceError, OpenError, OutOfRangeError }; enum StereoMode { ForceStereo, ForceMono, Auto }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qradiotunercontrol.cpp --- a/qtmobility/src/multimedia/qradiotunercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qradiotunercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,8 +40,8 @@ ****************************************************************************/ #include -#include -#include +#include "qradiotunercontrol.h" +#include "qmediacontrol_p.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qradiotunercontrol.h --- a/qtmobility/src/multimedia/qradiotunercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qradiotunercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,8 @@ #ifndef QRADIOTUNERCONTROL_H #define QRADIOTUNERCONTROL_H -#include -#include +#include "qmediacontrol.h" +#include "qradiotuner.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qsoundeffect.cpp --- a/qtmobility/src/multimedia/qsoundeffect.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,253 +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 Qt Mobility Components. -** -** $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 "qmediacontent.h" -#include "qmediaplayer.h" - -#include "qsoundeffect_p.h" - -#if defined(QT_MULTIMEDIA_PULSEAUDIO) -#include "qsoundeffect_pulse_p.h" -#elif(QT_MULTIMEDIA_QMEDIAPLAYER) -#include "qsoundeffect_qmedia_p.h" -#else -#include "qsoundeffect_qsound_p.h" -#endif - -QML_DEFINE_TYPE(Qt,4,6,SoundEffect,QSoundEffect) - -/*! - \qmlclass QSoundEffect - \brief The SoundEffect element provides a way to play sound effects in qml. - - The following example plays a wav file on mouse click. - - \qml - SoundEffect { - id: playSound - source: "test.wav" - } - MouseRegion { - id: playArea - anchors.fill: parent - onPressed: { - playSound.play() - } - } - \endeml - - \sa SoundEffect -*/ - -/*! - \qmlproperty QUrl SoundEffect::source - - This property provides a way to control the sound to play. -*/ - -/*! - \qmlproperty int SoundEffect::loopCount - - This property provides a way to control the number of times to repeat the sound on each play(). -*/ - -/*! - \qmlproperty int SoundEffect::volume - - This property provides a way to control the volume for playback. -*/ - -/*! - \qmlproperty bool SoundEffect::muted - - This property provides a way to control muting. -*/ - -/*! - \qmlproperty int SoundEffect::duration - - This property holds the duration in milliseconds of the current source audio. -*/ - -/*! - \qmlsignal SoundEffect::sourceChanged() - - This handler is called when the source has changed. -*/ - -/*! - \qmlsignal SoundEffect::loopCountChanged() - - This handler is called when the number of loops has changes. -*/ - -/*! - \qmlsignal SoundEffect::volumeChanged() - - This handler is called when the volume has changed. -*/ - -/*! - \qmlsignal SoundEffect::mutedChanged() - - This handler is called when the mute state has changed. -*/ - -/*! - \qmlsignal SoundEffect::durationChanged() - - This handler is called when the duration has changed. -*/ - -QSoundEffect::QSoundEffect(QObject *parent) : - QObject(parent), - m_loopCount(1), - m_volume(100), - m_muted(false), - m_runningCount(0) -{ - d = new QSoundEffectPrivate(this); - connect(d, SIGNAL(volumeChanged(int)), SIGNAL(volumeChanged())); - connect(d, SIGNAL(mutedChanged(bool)), SIGNAL(mutedChanged())); - connect(d, SIGNAL(durationChanged(qint64)), SIGNAL(durationChanged())); - connect(d, SIGNAL(stateChanged(QMediaPlayer::State)), SLOT(repeat())); -} - -QSoundEffect::~QSoundEffect() -{ - delete d; -} - -QUrl QSoundEffect::source() const -{ - return d != 0 ? d->media().canonicalUrl() : QUrl(); -} - -void QSoundEffect::setSource(const QUrl &url) -{ - if (d != 0 && d->media().canonicalUrl() == url) - return; - - d->setVolume(m_volume); - d->setMuted(m_muted); - d->setMedia(url); - - if (url.isEmpty()) - return; - - emit sourceChanged(); -} - -int QSoundEffect::loopCount() const -{ - return m_loopCount; -} - -void QSoundEffect::setLoopCount(int loopCount) -{ - if (m_loopCount == loopCount) - return; - - m_loopCount = loopCount; - emit loopCountChanged(); -} - -int QSoundEffect::volume() const -{ - return d != 0 ? d->volume() : m_volume; -} - -void QSoundEffect::setVolume(int volume) -{ - if (m_volume == volume) - return; - - m_volume = volume; - if (d != 0) - d->setVolume(volume); - else - emit volumeChanged(); -} - -bool QSoundEffect::isMuted() const -{ - return d != 0 ? d->isMuted() : m_muted; -} - -void QSoundEffect::setMuted(bool muted) -{ - if (m_muted == muted) - return; - - m_muted = muted; - if (d != 0) - d->setMuted(muted); - else - emit mutedChanged(); -} - -int QSoundEffect::duration() const -{ - return d != 0 ? d->duration() : 0; -} - -void QSoundEffect::play() -{ - m_runningCount = 0; - - if (d != 0) - d->play(); -} - -void QSoundEffect::stop() -{ - if (d != 0) - d->stop(); -} - -void QSoundEffect::repeat() -{ - if (d->state() == QMediaPlayer::StoppedState) { - if (++m_runningCount < m_loopCount) - d->play(); - } -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qsoundeffect_pulse_p.cpp --- a/qtmobility/src/multimedia/qsoundeffect_pulse_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,502 +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 Qt Mobility Components. -** -** $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$ -** -****************************************************************************/ - -// -// 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 -#include -#include -#include - -#include "qmediacontent.h" -#include "qmediaplayer.h" -#include "qsoundeffect_p.h" - -#include "wavedecoder.h" - -#include "qsoundeffect_pulse_p.h" - -#if(QT_MULTIMEDIA_MAEMO5) -#include -#endif - -// Less than ideal -#define PA_SCACHE_ENTRY_SIZE_MAX (1024*1024*16) - -namespace -{ -inline pa_sample_spec audioFormatToSampleSpec(const QAudioFormat &format) -{ - pa_sample_spec spec; - - spec.rate = format.frequency(); - spec.channels = format.channels(); - - if (format.sampleSize() == 8) - spec.format = PA_SAMPLE_U8; - else if (format.sampleSize() == 16) { - switch (format.byteOrder()) { - case QAudioFormat::BigEndian: spec.format = PA_SAMPLE_S16BE; break; - case QAudioFormat::LittleEndian: spec.format = PA_SAMPLE_S16LE; break; - } - } - else if (format.sampleSize() == 32) { - switch (format.byteOrder()) { - case QAudioFormat::BigEndian: spec.format = PA_SAMPLE_S32BE; break; - case QAudioFormat::LittleEndian: spec.format = PA_SAMPLE_S32LE; break; - } - } - - return spec; -} - -class PulseDaemon -{ -public: - PulseDaemon():m_prepared(false) - { - prepare(); - } - - ~PulseDaemon() - { - if (m_prepared) - release(); - } - - inline void lock() - { - pa_threaded_mainloop_lock(m_mainLoop); - } - - inline void unlock() - { - pa_threaded_mainloop_unlock(m_mainLoop); - } - - inline pa_context *context() const - { - return m_context; - } - - int volume() - { - return m_volume; - } - -private: - void prepare() - { - m_volume = 100; - - m_mainLoop = pa_threaded_mainloop_new(); - if (m_mainLoop == 0) { - qWarning("PulseAudioService: unable to create pulseaudio mainloop"); - return; - } - - if (pa_threaded_mainloop_start(m_mainLoop) != 0) { - qWarning("PulseAudioService: unable to start pulseaudio mainloop"); - pa_threaded_mainloop_free(m_mainLoop); - return; - } - - m_mainLoopApi = pa_threaded_mainloop_get_api(m_mainLoop); - - lock(); - m_context = pa_context_new(m_mainLoopApi, QString("QtPulseAudio:%1").arg(::getpid()).toAscii().constData()); - -#if(QT_MULTIMEDIA_MAEMO5) - pa_context_set_state_callback(m_context, context_state_callback, this); -#endif - if (m_context == 0) { - qWarning("PulseAudioService: Unable to create new pulseaudio context"); - pa_threaded_mainloop_free(m_mainLoop); - return; - } - - if (pa_context_connect(m_context, NULL, (pa_context_flags_t)0, NULL) < 0) { - qWarning("PulseAudioService: pa_context_connect() failed"); - pa_context_unref(m_context); - pa_threaded_mainloop_free(m_mainLoop); - return; - } - unlock(); - - m_prepared = true; - } - - void release() - { - if (!m_prepared) return; - pa_threaded_mainloop_stop(m_mainLoop); - pa_threaded_mainloop_free(m_mainLoop); - m_prepared = false; - } - -#if(QT_MULTIMEDIA_MAEMO5) - static void context_state_callback(pa_context *c, void *userdata) - { - PulseDaemon *self = reinterpret_cast(userdata); - switch (pa_context_get_state(c)) { - case PA_CONTEXT_CONNECTING: - case PA_CONTEXT_AUTHORIZING: - case PA_CONTEXT_SETTING_NAME: - break; - case PA_CONTEXT_READY: - pa_ext_stream_restore_set_subscribe_cb(c, &stream_restore_monitor_callback, self); - pa_ext_stream_restore_subscribe(c, 1, NULL, self); - break; - default: - break; - } - } - static void stream_restore_monitor_callback(pa_context *c, void *userdata) - { - PulseDaemon *self = reinterpret_cast(userdata); - pa_ext_stream_restore2_read(c, &stream_restore_info_callback, self); - } - static void stream_restore_info_callback(pa_context *c, const pa_ext_stream_restore2_info *info, - int eol, void *userdata) - { - Q_UNUSED(c) - - PulseDaemon *self = reinterpret_cast(userdata); - - if (!eol) { - if (QString(info->name).startsWith(QLatin1String("sink-input-by-media-role:x-maemo"))) { - const unsigned str_length = 256; - char str[str_length]; - pa_cvolume_snprint(str, str_length, &info->volume); - self->m_volume = QString(str).replace(" ","").replace("%","").mid(2).toInt(); - } - } - } -#endif - - int m_volume; - bool m_prepared; - pa_context *m_context; - pa_threaded_mainloop *m_mainLoop; - pa_mainloop_api *m_mainLoopApi; -}; -} - -Q_GLOBAL_STATIC(PulseDaemon, daemon) - - -QSoundEffectPrivate::QSoundEffectPrivate(QObject* parent): - QObject(parent), - m_muted(false), - m_playQueued(false), - m_volume(100), - m_duration(0), - m_dataUploaded(0), - m_state(QMediaPlayer::StoppedState), - m_status(QMediaPlayer::NoMedia), - m_reply(0), - m_stream(0), - m_networkAccessManager(0) -{ -} - -QSoundEffectPrivate::~QSoundEffectPrivate() -{ - delete m_reply; - unloadSample(); -} - -qint64 QSoundEffectPrivate::duration() const -{ - return m_duration; -} - -int QSoundEffectPrivate::volume() const -{ - return m_volume; -} - -bool QSoundEffectPrivate::isMuted() const -{ - return m_muted; -} - -QMediaContent QSoundEffectPrivate::media() const -{ - return m_media; -} - -QMediaPlayer::State QSoundEffectPrivate::state() const -{ - return m_state; -} - -QMediaPlayer::MediaStatus QSoundEffectPrivate::mediaStatus() const -{ - return m_status; -} - -void QSoundEffectPrivate::play() -{ - if (m_status == QMediaPlayer::LoadingMedia) { - m_playQueued = true; - return; - } - - if (m_status != QMediaPlayer::BufferedMedia || - m_state == QMediaPlayer::PlayingState) - return; - - pa_volume_t m_vol = PA_VOLUME_NORM; - - daemon()->lock(); -#if(QT_MULTIMEDIA_MAEMO5) - m_vol = PA_VOLUME_NORM/100*((daemon()->volume()+m_volume)/2); -#endif - pa_operation_unref( - pa_context_play_sample(daemon()->context(), - m_name.constData(), - 0, - m_vol, - play_callback, - this) - ); - daemon()->unlock(); - - m_playbackTime.start(); - - emit stateChanged(m_state = QMediaPlayer::PlayingState); -} - -void QSoundEffectPrivate::stop() -{ - emit stateChanged(m_state = QMediaPlayer::StoppedState); -} - -void QSoundEffectPrivate::setVolume(int volume) -{ - m_volume = volume; -} - -void QSoundEffectPrivate::setMuted(bool muted) -{ - m_muted = muted; -} - -void QSoundEffectPrivate::setMedia(const QMediaContent &media) -{ - if (media.isNull()) { - m_media = QMediaContent(); - unloadSample(); - return; - } - if (m_media == media) - return; - m_media = media; - - if (m_networkAccessManager == 0) - m_networkAccessManager = new QNetworkAccessManager(this); - - m_stream = m_networkAccessManager->get(QNetworkRequest(m_media.canonicalUrl())); - - unloadSample(); - loadSample(); - - emit mediaChanged(m_media); -} - -void QSoundEffectPrivate::decoderReady() -{ - if (m_waveDecoder->size() >= PA_SCACHE_ENTRY_SIZE_MAX) { - m_status = QMediaPlayer::InvalidMedia; - emit mediaStatusChanged(m_status); - qWarning("QtPulseAudio: attempting to load to large a sample"); - return; - } - - if (m_name.isNull()) - m_name = QString("QtPulseSample-%1-%2").arg(::getpid()).arg(int(this)).toUtf8(); - - pa_sample_spec spec = audioFormatToSampleSpec(m_waveDecoder->audioFormat()); - - daemon()->lock(); - pa_stream *stream = pa_stream_new(daemon()->context(), m_name.constData(), &spec, 0); - pa_stream_set_state_callback(stream, stream_state_callback, this); - pa_stream_set_write_callback(stream, stream_write_callback, this); - pa_stream_connect_upload(stream, (size_t)m_waveDecoder->size()); - daemon()->unlock(); -} - -void QSoundEffectPrivate::decoderError() -{ - emit mediaStatusChanged(m_status = QMediaPlayer::InvalidMedia); -} - -void QSoundEffectPrivate::checkPlayTime() -{ - int elapsed = m_playbackTime.elapsed(); - - if (elapsed >= m_duration) { - m_state = QMediaPlayer::StoppedState; - emit stateChanged(m_state); - } - else - startTimer(m_duration - elapsed); -} - -void QSoundEffectPrivate::loadSample() -{ - m_waveDecoder = new WaveDecoder(m_stream); - connect(m_waveDecoder, SIGNAL(formatKnown()), SLOT(decoderReady())); - connect(m_waveDecoder, SIGNAL(invalidFormat()), SLOT(decoderError())); - - m_status = QMediaPlayer::LoadingMedia; - emit mediaStatusChanged(m_status); -} - -void QSoundEffectPrivate::unloadSample() -{ - if (m_status != QMediaPlayer::BufferedMedia) - return; - - m_status = QMediaPlayer::NoMedia; - - daemon()->lock(); - pa_context_remove_sample(daemon()->context(), m_name.constData(), NULL, NULL); - daemon()->unlock(); - - m_duration = 0; - m_dataUploaded = 0; -} - -void QSoundEffectPrivate::timerEvent(QTimerEvent *event) -{ - if (m_state == QMediaPlayer::PlayingState) { - m_state = QMediaPlayer::StoppedState; - emit stateChanged(m_state); - } - - killTimer(event->timerId()); -} - -void QSoundEffectPrivate::stream_write_callback(pa_stream *s, size_t length, void *userdata) -{ - Q_UNUSED(length); - - QSoundEffectPrivate *self = reinterpret_cast(userdata); - - size_t bufferSize = qMin(pa_stream_writable_size(s), - size_t(self->m_waveDecoder->bytesAvailable())); - char buffer[bufferSize]; - - size_t len = 0; - while (len < length) { - qint64 read = self->m_waveDecoder->read(buffer, qMin(bufferSize, length -len)); - if (read > 0) { - if (pa_stream_write(s, buffer, size_t(read), 0, 0, PA_SEEK_RELATIVE) == 0) - len += size_t(read); - else - break; - } - } - self->m_dataUploaded += len; - - if (self->m_waveDecoder->size() == self->m_dataUploaded) { - pa_stream_finish_upload(s); - - self->m_duration = self->m_waveDecoder->duration(); - emit self->durationChanged(self->m_duration); - - self->m_status = QMediaPlayer::BufferedMedia; - emit self->mediaStatusChanged(self->m_status); - - self->m_waveDecoder->deleteLater(); - if (!self->m_media.isNull()) - self->m_stream->deleteLater(); - - if (self->m_playQueued) { - self->m_playQueued = false; - QMetaObject::invokeMethod(self, "play"); - } - } -} - -void QSoundEffectPrivate::stream_state_callback(pa_stream *s, void *userdata) -{ - QSoundEffectPrivate *self = reinterpret_cast(userdata); - - switch (pa_stream_get_state(s)) { - case PA_STREAM_CREATING: - case PA_STREAM_READY: - case PA_STREAM_TERMINATED: - break; - - case PA_STREAM_FAILED: - default: - self->m_status = QMediaPlayer::InvalidMedia; - emit self->mediaStatusChanged(self->m_status); - break; - } -} - -void QSoundEffectPrivate::play_callback(pa_context *c, int success, void *userdata) -{ - Q_UNUSED(c); - - QSoundEffectPrivate *self = reinterpret_cast(userdata); - - if (success == 1) - QMetaObject::invokeMethod(self, "checkPlayTime", Qt::QueuedConnection); - else { - self->m_state = QMediaPlayer::StoppedState; - emit self->stateChanged(self->m_state); - } -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qsoundeffect_pulse_p.h --- a/qtmobility/src/multimedia/qsoundeffect_pulse_p.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,134 +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 Qt Mobility Components. -** -** $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 QSOUNDEFFECT_PULSE_H -#define QSOUNDEFFECT_PULSE_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 - -#include - -#include - -#include "qsoundeffect_p.h" - -#include - -QTM_USE_NAMESPACE - -class QNetworkReply; -class QNetworkAccessManager; -class WaveDecoder; - -class QSoundEffectPrivate : public QObject -{ - Q_OBJECT -public: - explicit QSoundEffectPrivate(QObject* parent); - ~QSoundEffectPrivate(); - - qint64 duration() const; - int volume() const; - bool isMuted() const; - QMediaContent media() const; - QMediaPlayer::State state() const; - QMediaPlayer::MediaStatus mediaStatus() const; - -public Q_SLOTS: - void play(); - void stop(); - void setVolume(int volume); - void setMuted(bool muted); - void setMedia(const QMediaContent &media); - -Q_SIGNALS: - void mediaChanged(const QMediaContent &media); - void mediaStatusChanged(QMediaPlayer::MediaStatus status); - void stateChanged(QMediaPlayer::State newState); - void durationChanged(qint64 duration); - void volumeChanged(int volume); - void mutedChanged(bool muted); - void error(QMediaPlayer::Error error); - -private slots: - void decoderReady(); - void decoderError(); - void checkPlayTime(); - -private: - void loadSample(); - void unloadSample(); - - void timerEvent(QTimerEvent *event); - - static void stream_write_callback(pa_stream *s, size_t length, void *userdata); - static void stream_state_callback(pa_stream *s, void *userdata); - static void play_callback(pa_context *c, int success, void *userdata); - - bool m_muted; - bool m_playQueued; - int m_volume; - int m_duration; - int m_dataUploaded; - QTime m_playbackTime; - QMediaPlayer::State m_state; - QMediaPlayer::MediaStatus m_status; - QByteArray m_name; - QMediaContent m_media; - QNetworkReply *m_reply; - WaveDecoder *m_waveDecoder; - QIODevice *m_stream; - QNetworkAccessManager *m_networkAccessManager; -}; - -#endif // QSOUNDEFFECT_PULSE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qsoundeffect_qmedia_p.cpp --- a/qtmobility/src/multimedia/qsoundeffect_qmedia_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,163 +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 Qt Mobility Components. -** -** $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$ -** -****************************************************************************/ - -// -// 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 - -#include "qmediacontent.h" -#include "qmediaplayer.h" - -#include "qsoundeffect_p.h" -#include "qsoundeffect_qmedia_p.h" - - -QSoundEffectPrivate::QSoundEffectPrivate(QObject* parent): - QObject(parent), - m_muted(false), - m_volume(100), - m_player(0) -{ -} - -QSoundEffectPrivate::~QSoundEffectPrivate() -{ - if (m_player) delete m_player; -} - -qint64 QSoundEffectPrivate::duration() const -{ - if (m_player) return m_player->duration(); - - return 0; -} - -int QSoundEffectPrivate::volume() const -{ - if (m_player) return m_player->volume(); - - return m_volume; -} - -bool QSoundEffectPrivate::isMuted() const -{ - if (m_player) return m_player->isMuted(); - - return m_muted; -} - -QMediaContent QSoundEffectPrivate::media() const -{ - if (m_player) return m_player->media(); - - return QMediaContent(); -} - -QMediaPlayer::State QSoundEffectPrivate::state() const -{ - if (m_player) return m_player->state(); - - return QMediaPlayer::StoppedState; -} - -QMediaPlayer::MediaStatus QSoundEffectPrivate::mediaStatus() const -{ - if (m_player) return m_player->mediaStatus(); - - return QMediaPlayer::UnknownMediaStatus; -} - -void QSoundEffectPrivate::play() -{ - if (m_player && !m_player->isMuted()) - m_player->play(); -} - -void QSoundEffectPrivate::stop() -{ - if (m_player) - m_player->stop(); -} - -void QSoundEffectPrivate::setVolume(int volume) -{ - m_volume = volume; - - if (m_player) - m_player->setVolume(volume); -} - -void QSoundEffectPrivate::setMuted(bool muted) -{ - m_muted = muted; - - if (m_player) - m_player->setMuted(muted); -} - -void QSoundEffectPrivate::setMedia(const QMediaContent &media) -{ - if (media.isNull()) - return; - - if (m_player == 0) { - m_player = new QMediaPlayer(this, QMediaPlayer::LowLatency); - m_player->setVolume(m_volume); - m_player->setMuted(m_muted); - - connect(m_player, SIGNAL(volumeChanged(int)), SIGNAL(volumeChanged(int))); - connect(m_player, SIGNAL(mutedChanged(bool)), SIGNAL(mutedChanged(bool))); - connect(m_player, SIGNAL(durationChanged(qint64)), SIGNAL(durationChanged(qint64))); - connect(m_player, SIGNAL(stateChanged(QMediaPlayer::State)), SIGNAL(stateChanged(QMediaPlayer::State))); - } - - m_player->setMedia(media.canonicalUrl()); -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qsoundeffect_qmedia_p.h --- a/qtmobility/src/multimedia/qsoundeffect_qmedia_p.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +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 Qt Mobility Components. -** -** $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 QSOUNDEFFECT_QMEDIA_H -#define QSOUNDEFFECT_QMEDIA_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 -#include - -#include -#include - -#include "qsoundeffect_p.h" - -QTM_USE_NAMESPACE - -class WaveDecoder; - -class QSoundEffectPrivate : public QObject -{ - Q_OBJECT -public: - explicit QSoundEffectPrivate(QObject* parent); - ~QSoundEffectPrivate(); - - qint64 duration() const; - int volume() const; - bool isMuted() const; - QMediaContent media() const; - QMediaPlayer::State state() const; - QMediaPlayer::MediaStatus mediaStatus() const; - -public Q_SLOTS: - void play(); - void stop(); - void setVolume(int volume); - void setMuted(bool muted); - void setMedia(const QMediaContent &media); - -Q_SIGNALS: - void mediaChanged(const QMediaContent &media); - void mediaStatusChanged(QMediaPlayer::MediaStatus status); - void stateChanged(QMediaPlayer::State newState); - void durationChanged(qint64 duration); - void volumeChanged(int volume); - void mutedChanged(bool muted); - void error(QMediaPlayer::Error error); - -private: - bool m_muted; - int m_volume; - QMediaPlayer *m_player; -}; - -#endif // QSOUNDEFFECT_QMEDIA_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qsoundeffect_qsound_p.cpp --- a/qtmobility/src/multimedia/qsoundeffect_qsound_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,223 +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 Qt Mobility Components. -** -** $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$ -** -****************************************************************************/ - -// -// 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 -#include -#include -#include -#include -#include - -#include "qmediacontent.h" -#include "qmediaplayer.h" -#include "qsoundeffect_p.h" - -#include "wavedecoder.h" - -#include "qsoundeffect_qsound_p.h" - - -QSoundEffectPrivate::QSoundEffectPrivate(QObject* parent): - QObject(parent), - m_queued(false), - m_muted(false), - m_state(QMediaPlayer::StoppedState), - m_status(QMediaPlayer::NoMedia), - m_file(0), - m_sound(0) -{ - m_timer = new QTimer(this); - connect(m_timer,SIGNAL(timeout()),SLOT(checkPlayTime())); - m_media = QMediaContent(); -} - -QSoundEffectPrivate::~QSoundEffectPrivate() -{ - if (m_sound) delete m_sound; - if (m_waveDecoder) delete m_waveDecoder; - m_file->close(); -} - -qint64 QSoundEffectPrivate::duration() const -{ - if (m_waveDecoder) - return m_waveDecoder->size(); - - return 0; -} - -int QSoundEffectPrivate::volume() const -{ - return 100; -} - -bool QSoundEffectPrivate::isMuted() const -{ - return m_muted; -} - -QMediaContent QSoundEffectPrivate::media() const -{ - return m_media; -} - -QMediaPlayer::State QSoundEffectPrivate::state() const -{ - return m_state; -} - -QMediaPlayer::MediaStatus QSoundEffectPrivate::mediaStatus() const -{ - return m_status; -} - -void QSoundEffectPrivate::play() -{ - if (m_sound && !m_muted) { - m_queued = false; - m_timer->start(20); - m_playbackTime.start(); - m_sound->play(); - emit stateChanged(m_state = QMediaPlayer::PlayingState); - } else if (m_status == QMediaPlayer::LoadingMedia) - m_queued = true; -} - -void QSoundEffectPrivate::stop() -{ - m_timer->stop(); - - if (m_sound) { - m_sound->stop(); - emit stateChanged(m_state = QMediaPlayer::StoppedState); - } -} - -void QSoundEffectPrivate::setVolume(int volume) -{ - Q_UNUSED(volume) -} - -void QSoundEffectPrivate::setMuted(bool muted) -{ - m_muted = muted; -} - -void QSoundEffectPrivate::setMedia(const QMediaContent &media) -{ - m_queued = false; - - if (media.isNull() || media.canonicalUrl().scheme() != "file") { - m_media = QMediaContent(); - return; - } - if (m_media == media) - return; - - m_media = media; - m_file = new QFile(m_media.canonicalUrl().toLocalFile()); - m_file->open(QIODevice::ReadOnly|QIODevice::Unbuffered); - - unloadSample(); - loadSample(); - - emit mediaChanged(m_media); -} - -void QSoundEffectPrivate::decoderReady() -{ - m_file->close(); - m_sound = new QSound(m_media.canonicalUrl().toLocalFile()); - emit mediaStatusChanged(m_status = QMediaPlayer::LoadedMedia); - - if (m_queued) - play(); -} - -void QSoundEffectPrivate::decoderError() -{ - m_file->close(); - emit mediaStatusChanged(m_status = QMediaPlayer::InvalidMedia); -} - -void QSoundEffectPrivate::checkPlayTime() -{ - if (m_sound->isFinished()) { - m_timer->stop(); - m_state = QMediaPlayer::StoppedState; - emit stateChanged(m_state); - } -} - -void QSoundEffectPrivate::loadSample() -{ - m_waveDecoder = new WaveDecoder(m_file); - connect(m_waveDecoder, SIGNAL(formatKnown()), SLOT(decoderReady())); - connect(m_waveDecoder, SIGNAL(invalidFormat()), SLOT(decoderError())); - - m_status = QMediaPlayer::LoadingMedia; - emit mediaStatusChanged(m_status); -} - -void QSoundEffectPrivate::unloadSample() -{ - if (m_sound == 0) - return; - - m_status = QMediaPlayer::NoMedia; - - if (m_sound) - delete m_sound; - - m_sound = 0; -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qsoundeffect_qsound_p.h --- a/qtmobility/src/multimedia/qsoundeffect_qsound_p.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,124 +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 Qt Mobility Components. -** -** $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 QSOUNDEFFECT_QSOUND_H -#define QSOUNDEFFECT_QSOUND_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 -#include - -#include - -#include "qsoundeffect_p.h" - -QT_BEGIN_NAMESPACE -class QTimer; -class QSound; -class QFile; -QT_END_NAMESPACE - -QTM_USE_NAMESPACE -class WaveDecoder; -class QSoundEffectPrivate : public QObject -{ - Q_OBJECT -public: - explicit QSoundEffectPrivate(QObject* parent); - ~QSoundEffectPrivate(); - - qint64 duration() const; - int volume() const; - bool isMuted() const; - QMediaContent media() const; - QMediaPlayer::State state() const; - QMediaPlayer::MediaStatus mediaStatus() const; - -public Q_SLOTS: - void play(); - void stop(); - void setVolume(int volume); - void setMuted(bool muted); - void setMedia(const QMediaContent &media); - -Q_SIGNALS: - void mediaChanged(const QMediaContent &media); - void mediaStatusChanged(QMediaPlayer::MediaStatus status); - void stateChanged(QMediaPlayer::State newState); - void durationChanged(qint64 duration); - void volumeChanged(int volume); - void mutedChanged(bool muted); - void error(QMediaPlayer::Error error); - -private slots: - void decoderReady(); - void decoderError(); - void checkPlayTime(); - -private: - void loadSample(); - void unloadSample(); - - bool m_queued; - bool m_muted; - QTime m_playbackTime; - QMediaPlayer::State m_state; - QMediaPlayer::MediaStatus m_status; - QFile *m_file; - QByteArray m_name; - QMediaContent m_media; - WaveDecoder *m_waveDecoder; - QSound *m_sound; - QTimer *m_timer; -}; - -#endif // QSOUNDEFFECT_QSOUND_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qtmedianamespace.h --- a/qtmobility/src/multimedia/qtmedianamespace.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qtmedianamespace.h Mon May 03 13:18:40 2010 +0300 @@ -150,7 +150,7 @@ NotSupported, MaybeSupported, ProbablySupported, - PreferedService + PreferredService }; enum EncodingQuality diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qtmedianamespace.qdoc --- a/qtmobility/src/multimedia/qtmedianamespace.qdoc Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qtmedianamespace.qdoc Mon May 03 13:18:40 2010 +0300 @@ -172,7 +172,7 @@ \value NotSupported The feature is not supported. \value MaybeSupported The feature may be supported. \value ProbablySupported The feature is probably supported. - \value PreferedService The service is the preferred provider of a service. + \value PreferredService The service is the preferred provider of a service. */ /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideodevicecontrol.cpp --- a/qtmobility/src/multimedia/qvideodevicecontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideodevicecontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qvideodevicecontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideodevicecontrol.h --- a/qtmobility/src/multimedia/qvideodevicecontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideodevicecontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef QVIDEODEVICECONTROL_H #define QVIDEODEVICECONTROL_H -#include +#include "qmediacontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideoencodercontrol.cpp --- a/qtmobility/src/multimedia/qvideoencodercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideoencodercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qvideoencodercontrol.h" #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideoencodercontrol.h --- a/qtmobility/src/multimedia/qvideoencodercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideoencodercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,8 @@ #ifndef QVIDEOENCODERCONTROL_H #define QVIDEOENCODERCONTROL_H -#include -#include +#include "qmediacontrol.h" +#include "qmediarecorder.h" #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideooutputcontrol.cpp --- a/qtmobility/src/multimedia/qvideooutputcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideooutputcontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qvideooutputcontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideooutputcontrol.h --- a/qtmobility/src/multimedia/qvideooutputcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideooutputcontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef QVIDEOOUTPUTCONTROL_H #define QVIDEOOUTPUTCONTROL_H -#include +#include "qmediacontrol.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideorenderercontrol.cpp --- a/qtmobility/src/multimedia/qvideorenderercontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideorenderercontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,9 +39,9 @@ ** ****************************************************************************/ -#include +#include "qvideorenderercontrol.h" -#include +#include "qmediacontrol_p.h" QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideorenderercontrol.h --- a/qtmobility/src/multimedia/qvideorenderercontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideorenderercontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #ifndef QVIDEORENDERERCONTROL_H #define QVIDEORENDERERCONTROL_H -#include +#include "qmediacontrol.h" QT_BEGIN_NAMESPACE class QAbstractVideoSurface; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideowidget.cpp --- a/qtmobility/src/multimedia/qvideowidget.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideowidget.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,16 +39,16 @@ ** ****************************************************************************/ -#include +#include "qvideowidget_p.h" -#include -#include -#include -#include -#include +#include "qmediaobject.h" +#include "qmediaservice.h" +#include "qvideooutputcontrol.h" +#include "qvideowindowcontrol.h" +#include "qvideowidgetcontrol.h" -#include -#include +#include "qpaintervideosurface_p.h" +#include "qvideorenderercontrol.h" #include #include @@ -106,12 +106,12 @@ } -QVideoWidget::AspectRatioMode QVideoWidgetControlBackend::aspectRatioMode() const +Qt::AspectRatioMode QVideoWidgetControlBackend::aspectRatioMode() const { return m_widgetControl->aspectRatioMode(); } -void QVideoWidgetControlBackend::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QVideoWidgetControlBackend::setAspectRatioMode(Qt::AspectRatioMode mode) { m_widgetControl->setAspectRatioMode(mode); } @@ -121,16 +121,16 @@ : m_rendererControl(control) , m_widget(widget) , m_surface(new QPainterVideoSurface) - , m_aspectRatioMode(QVideoWidget::KeepAspectRatio) + , m_aspectRatioMode(Qt::KeepAspectRatio) , m_updatePaintDevice(true) { connect(this, SIGNAL(brightnessChanged(int)), m_widget, SLOT(_q_brightnessChanged(int))); connect(this, SIGNAL(contrastChanged(int)), m_widget, SLOT(_q_contrastChanged(int))); connect(this, SIGNAL(hueChanged(int)), m_widget, SLOT(_q_hueChanged(int))); connect(this, SIGNAL(saturationChanged(int)), m_widget, SLOT(_q_saturationChanged(int))); - connect(m_surface, SIGNAL(frameChanged()), m_widget, SLOT(update())); + connect(m_surface, SIGNAL(frameChanged()), this, SLOT(frameChanged())); connect(m_surface, SIGNAL(surfaceFormatChanged(QVideoSurfaceFormat)), - m_widget, SLOT(_q_dimensionsChanged())); + this, SLOT(formatChanged(QVideoSurfaceFormat))); m_rendererControl->setSurface(m_surface); } @@ -173,12 +173,12 @@ emit saturationChanged(saturation); } -QVideoWidget::AspectRatioMode QRendererVideoWidgetBackend::aspectRatioMode() const +Qt::AspectRatioMode QRendererVideoWidgetBackend::aspectRatioMode() const { return m_aspectRatioMode; } -void QRendererVideoWidgetBackend::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QRendererVideoWidgetBackend::setAspectRatioMode(Qt::AspectRatioMode mode) { m_aspectRatioMode = mode; @@ -208,6 +208,7 @@ void QRendererVideoWidgetBackend::resizeEvent(QResizeEvent *) { + updateRects(); } void QRendererVideoWidgetBackend::moveEvent(QMoveEvent *) @@ -218,13 +219,23 @@ { QPainter painter(m_widget); - if (m_surface->isActive()) { - m_surface->paint(&painter, displayRect()); + if (m_widget->testAttribute(Qt::WA_OpaquePaintEvent)) { + QRegion borderRegion = event->region(); + borderRegion = borderRegion.subtracted(m_boundingRect); + + QBrush brush = m_widget->palette().window(); + + QVector rects = borderRegion.rects(); + for (QVector::iterator it = rects.begin(), end = rects.end(); it != end; ++it) { + painter.fillRect(*it, brush); + } + } + + if (m_surface->isActive() && m_boundingRect.intersects(event->rect())) { + m_surface->paint(&painter, m_boundingRect, m_sourceRect); m_surface->setReady(true); } else { - painter.fillRect(event->rect(), m_widget->palette().background()); - #if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_1_CL) && !defined(QT_OPENGL_ES_1) if (m_updatePaintDevice && (painter.paintEngine()->type() == QPaintEngine::OpenGL || painter.paintEngine()->type() == QPaintEngine::OpenGL2)) { @@ -239,35 +250,57 @@ } #endif } + +} + +void QRendererVideoWidgetBackend::formatChanged(const QVideoSurfaceFormat &format) +{ + m_nativeSize = format.sizeHint(); + + updateRects(); + + m_widget->updateGeometry(); + m_widget->update(); +} + +void QRendererVideoWidgetBackend::frameChanged() +{ + m_widget->update(m_boundingRect); } -QRect QRendererVideoWidgetBackend::displayRect() const +void QRendererVideoWidgetBackend::updateRects() { - QRect displayRect = m_widget->rect(); + QRect rect = m_widget->rect(); - if (m_aspectRatioMode != QVideoWidget::IgnoreAspectRatio) { - QVideoSurfaceFormat format = m_surface->surfaceFormat(); - - QSize aspectRatio = format.pixelAspectRatio(); + if (m_nativeSize.isEmpty()) { + m_boundingRect = QRect(); + } else if (m_aspectRatioMode == Qt::IgnoreAspectRatio) { + m_boundingRect = rect; + m_sourceRect = QRectF(0, 0, 1, 1); + } else if (m_aspectRatioMode == Qt::KeepAspectRatio) { + QSize size = m_nativeSize; + size.scale(rect.size(), Qt::KeepAspectRatio); - QSize size = format.viewport().size(); - size.rwidth() *= aspectRatio.width(); - size.rheight() *= aspectRatio.height(); - size.scale(displayRect.size(), Qt::KeepAspectRatio); + m_boundingRect = QRect(0, 0, size.width(), size.height()); + m_boundingRect.moveCenter(rect.center()); + + m_sourceRect = QRectF(0, 0, 1, 1); + } else if (m_aspectRatioMode == Qt::KeepAspectRatioByExpanding) { + m_boundingRect = rect; - QPoint center = displayRect.center(); + QSizeF size = rect.size(); + size.scale(m_nativeSize, Qt::KeepAspectRatio); - displayRect = QRect(QPoint(0, 0), size); - displayRect.moveCenter(center); + m_sourceRect = QRectF( + 0, 0, size.width() / m_nativeSize.width(), size.height() / m_nativeSize.height()); + m_sourceRect.moveCenter(QPointF(0.5, 0.5)); } - - return displayRect; } QWindowVideoWidgetBackend::QWindowVideoWidgetBackend(QVideoWindowControl *control, QWidget *widget) : m_windowControl(control) , m_widget(widget) - , m_aspectRatioMode(QVideoWidget::KeepAspectRatio) + , m_aspectRatioMode(Qt::KeepAspectRatio) { connect(control, SIGNAL(brightnessChanged(int)), m_widget, SLOT(_q_brightnessChanged(int))); connect(control, SIGNAL(contrastChanged(int)), m_widget, SLOT(_q_contrastChanged(int))); @@ -306,12 +339,12 @@ m_windowControl->setFullScreen(fullScreen); } -QVideoWidget::AspectRatioMode QWindowVideoWidgetBackend::aspectRatioMode() const +Qt::AspectRatioMode QWindowVideoWidgetBackend::aspectRatioMode() const { return m_windowControl->aspectRatioMode(); } -void QWindowVideoWidgetBackend::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QWindowVideoWidgetBackend::setAspectRatioMode(Qt::AspectRatioMode mode) { m_windowControl->setAspectRatioMode(mode); } @@ -344,6 +377,12 @@ void QWindowVideoWidgetBackend::paintEvent(QPaintEvent *event) { + if (m_widget->testAttribute(Qt::WA_OpaquePaintEvent)) { + QPainter painter(m_widget); + + painter.fillRect(event->rect(), m_widget->palette().window()); + } + m_windowControl->repaint(); event->accept(); @@ -484,6 +523,7 @@ void QVideoWidgetPrivate::_q_dimensionsChanged() { q_func()->updateGeometry(); + q_func()->update(); } /*! @@ -516,16 +556,6 @@ */ /*! - \enum QVideoWidget::AspectRatioMode - - Specfies how video is scaled with respect to its aspect ratio. - - \value IgnoreAspectRatio The video is scaled to fill the widget ignoring its aspect ratio. - \value KeepAspectRatio The video is scaled to the largest rectangle that will fit within the - widget's dimensions while still retaining its original aspect ratio. -*/ - -/*! Constructs a new video widget. The \a parent is passed to QWidget. @@ -535,10 +565,6 @@ , d_ptr(new QVideoWidgetPrivate) { d_ptr->q_ptr = this; - - QPalette palette = QWidget::palette(); - palette.setColor(QPalette::Background, Qt::black); - setPalette(palette); } /*! @@ -618,12 +644,12 @@ \brief how video is scaled with respect to its aspect ratio. */ -QVideoWidget::AspectRatioMode QVideoWidget::aspectRatioMode() const +Qt::AspectRatioMode QVideoWidget::aspectRatioMode() const { return d_func()->aspectRatioMode; } -void QVideoWidget::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QVideoWidget::setAspectRatioMode(Qt::AspectRatioMode mode) { Q_D(QVideoWidget); @@ -869,9 +895,6 @@ if (d->currentBackend) d->currentBackend->hideEvent(event); - if (d->outputControl) - d->outputControl->setOutput(QVideoOutputControl::NoOutput); - QWidget::hideEvent(event); } @@ -906,8 +929,13 @@ { Q_D(QVideoWidget); - if (d->currentBackend) + if (d->currentBackend) { d->currentBackend->paintEvent(event); + } else if (testAttribute(Qt::WA_OpaquePaintEvent)) { + QPainter painter(this); + + painter.fillRect(event->rect(), palette().window()); + } } #include "moc_qvideowidget.cpp" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideowidget.h --- a/qtmobility/src/multimedia/qvideowidget.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideowidget.h Mon May 03 13:18:40 2010 +0300 @@ -56,16 +56,13 @@ Q_OBJECT Q_PROPERTY(QMediaObject* mediaObject READ mediaObject WRITE setMediaObject) Q_PROPERTY(bool fullScreen READ isFullScreen WRITE setFullScreen NOTIFY fullScreenChanged) - Q_PROPERTY(AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode NOTIFY aspectRatioModeChanged) + Q_PROPERTY(Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode NOTIFY aspectRatioModeChanged) Q_PROPERTY(int brightness READ brightness WRITE setBrightness NOTIFY brightnessChanged) Q_PROPERTY(int contrast READ contrast WRITE setContrast NOTIFY contrastChanged) Q_PROPERTY(int hue READ hue WRITE setHue NOTIFY hueChanged) Q_PROPERTY(int saturation READ saturation WRITE setSaturation NOTIFY saturationChanged) - Q_ENUMS(AspectRatio) public: - enum AspectRatioMode { IgnoreAspectRatio, KeepAspectRatio }; - QVideoWidget(QWidget *parent = 0); ~QVideoWidget(); @@ -76,7 +73,7 @@ bool isFullScreen() const; #endif - AspectRatioMode aspectRatioMode() const; + Qt::AspectRatioMode aspectRatioMode() const; int brightness() const; int contrast() const; @@ -87,7 +84,7 @@ public Q_SLOTS: void setFullScreen(bool fullScreen); - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + void setAspectRatioMode(Qt::AspectRatioMode mode); void setBrightness(int brightness); void setContrast(int contrast); void setHue(int hue); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideowidget_p.h --- a/qtmobility/src/multimedia/qvideowidget_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideowidget_p.h Mon May 03 13:18:40 2010 +0300 @@ -54,13 +54,13 @@ // #include -#include +#include "qvideowidget.h" #ifndef QT_NO_OPENGL #include #endif -#include +#include "qpaintervideosurface_p.h" QTM_BEGIN_NAMESPACE @@ -76,8 +76,8 @@ virtual void setFullScreen(bool fullScreen) = 0; - virtual QVideoWidget::AspectRatioMode aspectRatioMode() const = 0; - virtual void setAspectRatioMode(QVideoWidget::AspectRatioMode mode) = 0; + virtual Qt::AspectRatioMode aspectRatioMode() const = 0; + virtual void setAspectRatioMode(Qt::AspectRatioMode mode) = 0; }; class QVideoWidgetBackend : public QObject, public QVideoWidgetControlInterface @@ -108,8 +108,8 @@ void setFullScreen(bool fullScreen); - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); private: QVideoWidgetControl *m_widgetControl; @@ -134,8 +134,8 @@ void setFullScreen(bool fullScreen); - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); QSize sizeHint() const; @@ -152,14 +152,20 @@ void hueChanged(int hue); void saturationChanged(int saturation); +private Q_SLOTS: + void formatChanged(const QVideoSurfaceFormat &format); + void frameChanged(); + private: - QRect displayRect() const; + void updateRects(); QVideoRendererControl *m_rendererControl; QWidget *m_widget; QPainterVideoSurface *m_surface; - QVideoWidget::AspectRatioMode m_aspectRatioMode; - QSize m_aspectRatio; + Qt::AspectRatioMode m_aspectRatioMode; + QRect m_boundingRect; + QRectF m_sourceRect; + QSize m_nativeSize; bool m_updatePaintDevice; }; @@ -179,8 +185,8 @@ void setFullScreen(bool fullScreen); - QVideoWidget::AspectRatioMode aspectRatioMode() const; - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); + Qt::AspectRatioMode aspectRatioMode() const; + void setAspectRatioMode(Qt::AspectRatioMode mode); QSize sizeHint() const; @@ -193,7 +199,7 @@ private: QVideoWindowControl *m_windowControl; QWidget *m_widget; - QVideoWidget::AspectRatioMode m_aspectRatioMode; + Qt::AspectRatioMode m_aspectRatioMode; QSize m_pixelAspectRatio; }; @@ -218,7 +224,7 @@ , contrast(0) , hue(0) , saturation(0) - , aspectRatioMode(QVideoWidget::KeepAspectRatio) + , aspectRatioMode(Qt::KeepAspectRatio) , nonFullScreenFlags(0) , wasFullScreen(false) { @@ -237,7 +243,7 @@ int contrast; int hue; int saturation; - QVideoWidget::AspectRatioMode aspectRatioMode; + Qt::AspectRatioMode aspectRatioMode; Qt::WindowFlags nonFullScreenFlags; bool wasFullScreen; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideowidgetcontrol.cpp --- a/qtmobility/src/multimedia/qvideowidgetcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideowidgetcontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#include -#include +#include "qvideowidgetcontrol.h" +#include "qmediacontrol_p.h" QTM_BEGIN_NAMESPACE @@ -125,7 +125,7 @@ */ /*! - \fn QVideoWidgetControl::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) + \fn QVideoWidgetControl::setAspectRatioMode(Qt::AspectRatioMode mode) Sets the aspect ratio \a mode which determines how video is scaled to the fit the widget with respect to its aspect ratio. diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideowidgetcontrol.h --- a/qtmobility/src/multimedia/qvideowidgetcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideowidgetcontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,8 @@ #ifndef QVIDEOWIDGETCONTROL_H #define QVIDEOWIDGETCONTROL_H -#include -#include +#include "qvideowidget.h" +#include "qmediacontrol.h" #include @@ -60,8 +60,8 @@ virtual QWidget *videoWidget() = 0; - virtual QVideoWidget::AspectRatioMode aspectRatioMode() const = 0; - virtual void setAspectRatioMode(QVideoWidget::AspectRatioMode mode) = 0; + virtual Qt::AspectRatioMode aspectRatioMode() const = 0; + virtual void setAspectRatioMode(Qt::AspectRatioMode mode) = 0; virtual bool isFullScreen() const = 0; virtual void setFullScreen(bool fullScreen) = 0; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideowindowcontrol.cpp --- a/qtmobility/src/multimedia/qvideowindowcontrol.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideowindowcontrol.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include "qvideowindowcontrol.h" QTM_BEGIN_NAMESPACE @@ -60,7 +60,7 @@ QVideoWindowControl *windowControl = mediaService->control(); windowControl->setWinId(widget->winId()); windowControl->setDisplayRect(widget->rect()); - windowControl->setAspectRatioMode(QVideoWidget::KeepAspectRatio); + windowControl->setAspectRatioMode(Qt::KeepAspectRatio); \endcode QVideoWindowControl is one of number of possible video output controls, @@ -174,7 +174,7 @@ */ /*! - \fn QVideoWindowControl::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) + \fn QVideoWindowControl::setAspectRatioMode(Qt::AspectRatioMode mode) Sets the aspect ratio \a mode which determines how video is scaled to the fit the display region with respect to its aspect ratio. diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qvideowindowcontrol.h --- a/qtmobility/src/multimedia/qvideowindowcontrol.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qvideowindowcontrol.h Mon May 03 13:18:40 2010 +0300 @@ -42,8 +42,8 @@ #ifndef QVIDEOWINDOWCONTROL_H #define QVIDEOWINDOWCONTROL_H -#include -#include +#include "qmediacontrol.h" +#include "qvideowidget.h" #include @@ -69,8 +69,8 @@ virtual QSize nativeSize() const = 0; - virtual QVideoWidget::AspectRatioMode aspectRatioMode() const = 0; - virtual void setAspectRatioMode(QVideoWidget::AspectRatioMode mode) = 0; + virtual Qt::AspectRatioMode aspectRatioMode() const = 0; + virtual void setAspectRatioMode(Qt::AspectRatioMode mode) = 0; virtual int brightness() const = 0; virtual void setBrightness(int brightness) = 0; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qxvideosurface_maemo5.cpp --- a/qtmobility/src/multimedia/qxvideosurface_maemo5.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qxvideosurface_maemo5.cpp Mon May 03 13:18:40 2010 +0300 @@ -263,6 +263,8 @@ { //qDebug() << "QXVideoSurface::start" << format; + m_lastFrame = QVideoFrame(); + if (m_image) XFree(m_image); @@ -340,7 +342,7 @@ if (m_image) { XFree(m_image); m_image = 0; - lastFrame = QVideoFrame(); + m_lastFrame = QVideoFrame(); QAbstractVideoSurface::stop(); } @@ -355,9 +357,9 @@ setError(IncorrectFormatError); return false; } else { - lastFrame = frame; + m_lastFrame = frame; - if (!lastFrame.map(QAbstractVideoBuffer::ReadOnly)) { + if (!m_lastFrame.map(QAbstractVideoBuffer::ReadOnly)) { qWarning() << "Failed to map video frame"; setError(IncorrectFormatError); return false; @@ -365,12 +367,12 @@ bool presented = false; if (frame.handleType() != XvHandleType && - m_image->data_size > lastFrame.mappedBytes()) { + m_image->data_size > m_lastFrame.mappedBytes()) { qWarning("Insufficient frame buffer size"); setError(IncorrectFormatError); } else if (frame.handleType() != XvHandleType && m_image->num_planes > 0 && - m_image->pitches[0] != lastFrame.bytesPerLine()) { + m_image->pitches[0] != m_lastFrame.bytesPerLine()) { qWarning("Incompatible frame pitches"); setError(IncorrectFormatError); } else { @@ -380,7 +382,7 @@ img = frame.handle().value(); } else { img = m_image; - memcpy(m_image->data, lastFrame.bits(), qMin(lastFrame.mappedBytes(), m_image->data_size)); + memcpy(m_image->data, m_lastFrame.bits(), qMin(m_lastFrame.mappedBytes(), m_image->data_size)); } if (img) @@ -403,7 +405,7 @@ presented = true; } - lastFrame.unmap(); + m_lastFrame.unmap(); return presented; } @@ -412,8 +414,8 @@ void QXVideoSurface::repaintLastFrame() { - if (lastFrame.isValid()) - present(QVideoFrame(lastFrame)); + if (m_lastFrame.isValid()) + present(QVideoFrame(m_lastFrame)); } bool QXVideoSurface::findPort() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/qxvideosurface_maemo5_p.h --- a/qtmobility/src/multimedia/qxvideosurface_maemo5_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/multimedia/qxvideosurface_maemo5_p.h Mon May 03 13:18:40 2010 +0300 @@ -75,6 +75,8 @@ QList supportedPixelFormats( QAbstractVideoBuffer::HandleType handleType = QAbstractVideoBuffer::NoHandle) const; + QVideoFrame lastFrame() const { return m_lastFrame; } + public slots: bool start(const QVideoSurfaceFormat &format); void stop(); @@ -95,7 +97,7 @@ QRect m_displayRect; QColor m_colorKey; - QVideoFrame lastFrame; + QVideoFrame m_lastFrame; bool findPort(); void querySupportedFormats(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/wavedecoder.cpp --- a/qtmobility/src/multimedia/wavedecoder.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,137 +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 Qt Mobility Components. -** -** $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 "wavedecoder.h" - -#include -#include -#include - -WaveDecoder::WaveDecoder(QIODevice *s, QObject *parent): - QIODevice(parent), - haveFormat(false), - dataSize(0), - remaining(0), - source(s) -{ - open(QIODevice::ReadOnly | QIODevice::Unbuffered); - - if (source->bytesAvailable() >= sizeof(CombinedHeader)) - QTimer::singleShot(0, this, SLOT(handleData())); - else - connect(source, SIGNAL(readyRead()), SLOT(handleData())); -} - -WaveDecoder::~WaveDecoder() -{ -} - -QAudioFormat WaveDecoder::audioFormat() const -{ - return format; -} - -int WaveDecoder::duration() const -{ - return size() * 1000 / (format.sampleSize() / 8) / format.channels() / format.frequency(); -} - -qint64 WaveDecoder::size() const -{ - return haveFormat ? dataSize : 0; -} - -bool WaveDecoder::isSequential() const -{ - return source->isSequential(); -} - -qint64 WaveDecoder::bytesAvailable() const -{ - return haveFormat ? source->bytesAvailable() : 0; -} - -qint64 WaveDecoder::readData(char *data, qint64 maxlen) -{ - return haveFormat ? source->read(data, maxlen) : 0; -} - -qint64 WaveDecoder::writeData(const char *data, qint64 len) -{ - Q_UNUSED(data); - Q_UNUSED(len); - - return -1; -} - -void WaveDecoder::handleData() -{ - if (source->bytesAvailable() < sizeof(CombinedHeader)) - return; - - source->disconnect(SIGNAL(readyRead()), this, SLOT(handleData())); - source->read((char*)&header, sizeof(CombinedHeader)); - - if (qstrncmp(header.riff.descriptor.id, "RIFF", 4) != 0 || - qstrncmp(header.riff.type, "WAVE", 4) != 0 || - qstrncmp(header.wave.descriptor.id, "fmt ", 4) != 0 || - (header.wave.audioFormat != 0 && header.wave.audioFormat != 1) || - qstrncmp(header.data.descriptor.id, "data", 4) != 0) { - - emit invalidFormat(); - } - else { - int bps = qFromLittleEndian(header.wave.bitsPerSample); - - format.setCodec("audio/pcm"); - format.setSampleType(bps == 8 ? QAudioFormat::UnSignedInt : QAudioFormat::SignedInt); - format.setByteOrder(QAudioFormat::LittleEndian); - format.setFrequency(qFromLittleEndian(header.wave.sampleRate)); - format.setSampleSize(bps); - format.setChannels(qFromLittleEndian(header.wave.numChannels)); - - dataSize = qFromLittleEndian(header.data.descriptor.size); - - haveFormat = true; - connect(source, SIGNAL(readyRead()), SIGNAL(readyRead())); - emit formatKnown(); - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/multimedia/wavedecoder.h --- a/qtmobility/src/multimedia/wavedecoder.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +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 Qt Mobility Components. -** -** $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 WAVEDECODER_H -#define WAVEDECODER_H - -#include -#include - -class WaveDecoder : public QIODevice -{ -Q_OBJECT - -public: - explicit WaveDecoder(QIODevice *source, QObject *parent = 0); - ~WaveDecoder(); - - QAudioFormat audioFormat() const; - int duration() const; - - qint64 size() const; - bool isSequential() const; - qint64 bytesAvailable() const; - -signals: - void formatKnown(); - void invalidFormat(); - -private slots: - void handleData(); - -private: - qint64 readData(char *data, qint64 maxlen); - qint64 writeData(const char *data, qint64 len); - - struct chunk - { - char id[4]; - quint32 size; - }; - struct RIFFHeader - { - chunk descriptor; - char type[4]; - }; - struct WAVEHeader - { - chunk descriptor; - quint16 audioFormat; - quint16 numChannels; - quint32 sampleRate; - quint32 byteRate; - quint16 blockAlign; - quint16 bitsPerSample; - }; - struct DATAHeader - { - chunk descriptor; - }; - struct CombinedHeader - { - RIFFHeader riff; - WAVEHeader wave; - DATAHeader data; - }; - - bool haveFormat; - qint64 dataSize; - qint64 remaining; - QAudioFormat format; - QIODevice *source; - CombinedHeader header; -}; - -#endif // WAVEDECODER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/publishsubscribe/gconfitem.cpp --- a/qtmobility/src/publishsubscribe/gconfitem.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/publishsubscribe/gconfitem.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,7 +45,7 @@ #include #include -#include "gconfitem.h" +#include "gconfitem_p.h" #include #include @@ -54,6 +54,7 @@ struct GConfItemPrivate { QString key; QVariant value; + bool monitor; guint notify_id; static void notify_trampoline(GConfClient*, guint, GConfEntry *, gpointer); @@ -226,17 +227,23 @@ void GConfItemPrivate::notify_trampoline (GConfClient*, guint, - GConfEntry *, + GConfEntry *entry, gpointer data) { GConfItem *item = (GConfItem *)data; - item->update_value (true); + + + item->update_value (true, entry->key, convertValue(entry->value)); } -void GConfItem::update_value (bool emit_signal) +void GConfItem::update_value (bool emit_signal, const QString& key, const QVariant& value) { QVariant new_value; + if (emit_signal) { + emit subtreeChanged(key, value); + } + withClient(client) { GError *error = NULL; QByteArray k = convertKey(priv->key); @@ -344,18 +351,21 @@ return children; } -GConfItem::GConfItem(const QString &key, QObject *parent) +GConfItem::GConfItem(const QString &key, bool monitor, QObject *parent) : QObject (parent) { priv = new GConfItemPrivate; priv->key = key; + priv->monitor = monitor; withClient(client) { - update_value (false); - QByteArray k = convertKey(priv->key); - gconf_client_add_dir (client, k.data(), GCONF_CLIENT_PRELOAD_ONELEVEL, NULL); - priv->notify_id = gconf_client_notify_add (client, k.data(), - GConfItemPrivate::notify_trampoline, this, - NULL, NULL); + update_value (false, "", QVariant()); + if (priv->monitor) { + QByteArray k = convertKey(priv->key); + gconf_client_add_dir (client, k.data(), GCONF_CLIENT_PRELOAD_ONELEVEL, NULL); + priv->notify_id = gconf_client_notify_add (client, k.data(), + GConfItemPrivate::notify_trampoline, this, + NULL, NULL); + } } } @@ -363,8 +373,10 @@ { withClient(client) { QByteArray k = convertKey(priv->key); - gconf_client_notify_remove (client, priv->notify_id); - gconf_client_remove_dir (client, k.data(), NULL); + if (priv->monitor) { + gconf_client_notify_remove (client, priv->notify_id); + gconf_client_remove_dir (client, k.data(), NULL); + } } delete priv; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/publishsubscribe/gconfitem.h --- a/qtmobility/src/publishsubscribe/gconfitem.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,166 +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 Qt Mobility Components. -** -** $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 GCONFITEM_H -#define GCONFITEM_H - -#include -#include -#include - -/*! - - \brief GConfItem is a simple C++ wrapper for GConf. - - Creating a GConfItem instance gives you access to a single GConf - key. You can get and set its value, and connect to its - valueChanged() signal to be notified about changes. - - The value of a GConf key is returned to you as a QVariant, and you - pass in a QVariant when setting the value. GConfItem converts - between a QVariant and GConf values as needed, and according to the - following rules: - - - A QVariant of type QVariant::Invalid denotes an unset GConf key. - - - QVariant::Int, QVariant::Double, QVariant::Bool are converted to - and from the obvious equivalents. - - - QVariant::String is converted to/from a GConf string and always - uses the UTF-8 encoding. No other encoding is supported. - - - QVariant::StringList is converted to a list of UTF-8 strings. - - - QVariant::List (which denotes a QList) is converted - to/from a GConf list. All elements of such a list must have the - same type, and that type must be one of QVariant::Int, - QVariant::Double, QVariant::Bool, or QVariant::String. (A list of - strings is returned as a QVariant::StringList, however, when you - get it back.) - - - Any other QVariant or GConf value is essentially ignored. - - \warning GConfItem is as thread-safe as GConf. - -*/ - -class GConfItem : public QObject -{ - Q_OBJECT - - public: - /*! Initializes a GConfItem to access the GConf key denoted by - \a key. Key names should follow the normal GConf conventions - like "/myapp/settings/first". - - \param key The name of the key. - \param parent Parent object - */ - explicit GConfItem(const QString &key, QObject *parent = 0); - - /*! Finalizes a GConfItem. - */ - virtual ~GConfItem(); - - /*! Returns the key of this item, as given to the constructor. - */ - QString key() const; - - /*! Returns the current value of this item, as a QVariant. - */ - QVariant value() const; - - /*! Returns the current value of this item, as a QVariant. If - * there is no value for this item, return \a def instead. - */ - QVariant value(const QVariant &def) const; - - /*! Set the value of this item to \a val. If \a val can not be - represented in GConf or GConf refuses to accept it for other - reasons, the current value is not changed and nothing happens. - - When the new value is different from the old value, the - changedValue() signal is emitted on this GConfItem as part - of calling set(), but other GConfItem:s for the same key do - only receive a notification once the main loop runs. - - \param val The new value. - */ - void set(const QVariant &val); - - /*! Unset this item. This is equivalent to - - \code - item.set(QVariant(QVariant::Invalid)); - \endcode - */ - void unset(); - - /*! Return a list of the directories below this item. The - returned strings are absolute key names like - "/myapp/settings". - - A directory is a key that has children. The same key might - also have a value, but that is confusing and best avoided. - */ - QList listDirs() const; - - /*! Return a list of entries below this item. The returned - strings are absolute key names like "/myapp/settings/first". - - A entry is a key that has a value. The same key might also - have children, but that is confusing and is best avoided. - */ - QList listEntries() const; - - signals: - /*! Emitted when the value of this item has changed. - */ - void valueChanged(); - - private: - friend struct GConfItemPrivate; - struct GConfItemPrivate *priv; - - void update_value(bool emit_signal); -}; - -#endif // GCONFITEM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/publishsubscribe/gconfitem_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/publishsubscribe/gconfitem_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,172 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 GCONFITEM_H +#define GCONFITEM_H + +#include +#include +#include + +/*! + + \brief GConfItem is a simple C++ wrapper for GConf. + + Creating a GConfItem instance gives you access to a single GConf + key. You can get and set its value, and connect to its + valueChanged() signal to be notified about changes. + + The value of a GConf key is returned to you as a QVariant, and you + pass in a QVariant when setting the value. GConfItem converts + between a QVariant and GConf values as needed, and according to the + following rules: + + - A QVariant of type QVariant::Invalid denotes an unset GConf key. + + - QVariant::Int, QVariant::Double, QVariant::Bool are converted to + and from the obvious equivalents. + + - QVariant::String is converted to/from a GConf string and always + uses the UTF-8 encoding. No other encoding is supported. + + - QVariant::StringList is converted to a list of UTF-8 strings. + + - QVariant::List (which denotes a QList) is converted + to/from a GConf list. All elements of such a list must have the + same type, and that type must be one of QVariant::Int, + QVariant::Double, QVariant::Bool, or QVariant::String. (A list of + strings is returned as a QVariant::StringList, however, when you + get it back.) + + - Any other QVariant or GConf value is essentially ignored. + + \warning GConfItem is as thread-safe as GConf. + +*/ + + +class GConfItem : public QObject +{ + Q_OBJECT + + public: + /*! Initializes a GConfItem to access the GConf key denoted by + \a key. Key names should follow the normal GConf conventions + like "/myapp/settings/first". + + \param key The name of the key. + \param parent Parent object + */ + explicit GConfItem(const QString &key, bool monitor = false, QObject *parent = 0); + + /*! Finalizes a GConfItem. + */ + virtual ~GConfItem(); + + /*! Returns the key of this item, as given to the constructor. + */ + QString key() const; + + /*! Returns the current value of this item, as a QVariant. + */ + QVariant value() const; + + /*! Returns the current value of this item, as a QVariant. If + * there is no value for this item, return \a def instead. + */ + QVariant value(const QVariant &def) const; + + /*! Set the value of this item to \a val. If \a val can not be + represented in GConf or GConf refuses to accept it for other + reasons, the current value is not changed and nothing happens. + + When the new value is different from the old value, the + changedValue() signal is emitted on this GConfItem as part + of calling set(), but other GConfItem:s for the same key do + only receive a notification once the main loop runs. + + \param val The new value. + */ + void set(const QVariant &val); + + /*! Unset this item. This is equivalent to + + \code + item.set(QVariant(QVariant::Invalid)); + \endcode + */ + void unset(); + + /*! Return a list of the directories below this item. The + returned strings are absolute key names like + "/myapp/settings". + + A directory is a key that has children. The same key might + also have a value, but that is confusing and best avoided. + */ + QList listDirs() const; + + /*! Return a list of entries below this item. The returned + strings are absolute key names like "/myapp/settings/first". + + A entry is a key that has a value. The same key might also + have children, but that is confusing and is best avoided. + */ + QList listEntries() const; + + signals: + /*! Emitted when the value of this item has changed. + */ + void valueChanged(); + + /*! Emitted when some value in subtree of this item changes + */ + + void subtreeChanged(const QString& key, const QVariant& value); + + private: + friend struct GConfItemPrivate; + struct GConfItemPrivate *priv; + + void update_value(bool emit_signal, const QString& key, const QVariant& value); +}; + +#endif // GCONFITEM_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/publishsubscribe/gconflayer_linux.cpp --- a/qtmobility/src/publishsubscribe/gconflayer_linux.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/publishsubscribe/gconflayer_linux.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,9 +41,6 @@ #include "gconflayer_linux_p.h" #include -#include - -#include QTM_BEGIN_NAMESPACE @@ -52,6 +49,8 @@ GConfLayer::GConfLayer() { + GConfItem *gconfItem = new GConfItem("/", true, this); + connect(gconfItem, SIGNAL(subtreeChanged(const QString &, const QVariant &)), this, SLOT(notifyChanged(const QString &, const QVariant &))); } GConfLayer::~GConfLayer() @@ -60,7 +59,7 @@ while (i.hasNext()) { i.next(); - removeHandle(Handle(i.value())); + doRemoveHandle(Handle(i.value())); } } @@ -97,15 +96,22 @@ bool GConfLayer::value(Handle handle, QVariant *data) { + QMutexLocker locker(&m_mutex); GConfHandle *sh = gConfHandle(handle); if (!sh) return false; - return value(InvalidHandle, sh->path, data); + return getValue(InvalidHandle, sh->path, data); } bool GConfLayer::value(Handle handle, const QString &subPath, QVariant *data) { + QMutexLocker locker(&m_mutex); + return getValue(handle, subPath, data); +} + +bool GConfLayer::getValue(Handle handle, const QString &subPath, QVariant *data) +{ if (handle != InvalidHandle && !gConfHandle(handle)) return false; @@ -127,7 +133,7 @@ value = path.mid(index + 1); path.truncate(index); - handle = item(handle, path); + handle = getItem(handle, path); createdHandle = true; } @@ -136,64 +142,92 @@ return false; QString fullPath(sh->path); - if (fullPath != QLatin1String("/")) + if (fullPath != QLatin1String("/") && !value.isEmpty()) fullPath.append(QLatin1Char('/')); fullPath.append(value); - qDebug() << "Read value from" << fullPath; GConfItem gconfItem(fullPath); - *data = gconfItem.value(); - qDebug() << "*data = " << *data; + QVariant readValue = gconfItem.value(); + switch (readValue.type()) { + case QVariant::Invalid: + case QVariant::Bool: + case QVariant::Int: + case QVariant::Double: + case QVariant::StringList: + case QVariant::List: + *data = readValue; + break; + case QVariant::String: + { + QString readString = readValue.toString(); + QDataStream readStream(QByteArray::fromBase64(readString.toAscii())); + QVariant serializedValue; + readStream >> serializedValue; + if (serializedValue.isValid()) { + *data = serializedValue; + } else { + *data = readValue; + } + break; + } + default: + break; + } if (createdHandle) - removeHandle(handle); - + doRemoveHandle(handle); return data->isValid(); } QSet GConfLayer::children(Handle handle) { + QMutexLocker locker(&m_mutex); + GConfHandle *sh = gConfHandle(handle); if (!sh) return QSet(); - qDebug() << "Get children from" << sh->path; GConfItem gconfItem(sh->path); QSet ret; - foreach (QString child, gconfItem.listEntries() + gconfItem.listDirs()) { - int index = child.lastIndexOf(QLatin1Char('/'), -1); + foreach (const QString child, gconfItem.listEntries() + gconfItem.listDirs()) { + const int index = child.lastIndexOf(QLatin1Char('/'), -1); ret += child.mid(index + 1); - qDebug() << "found" << child.mid(index + 1); } return ret; } -QAbstractValueSpaceLayer::Handle GConfLayer::item(Handle parent, const QString &path) +QAbstractValueSpaceLayer::Handle GConfLayer::item(Handle parent, const QString &subPath) +{ + QMutexLocker locker(&m_mutex); + return getItem(parent, subPath); +} + +QAbstractValueSpaceLayer::Handle GConfLayer::getItem(Handle parent, const QString &subPath) { QString fullPath; // Fail on invalid path. - if (path.isEmpty() || path.contains(QLatin1String("//"))) + if (subPath.isEmpty() || subPath.contains(QLatin1String("//"))) return InvalidHandle; if (parent == InvalidHandle) { - fullPath = path; + fullPath = subPath; } else { GConfHandle *sh = gConfHandle(parent); if (!sh) return InvalidHandle; - if (path == QLatin1String("/")) { + if (subPath == QLatin1String("/")) { fullPath = sh->path; - } else if (sh->path.endsWith(QLatin1Char('/')) && path.startsWith(QLatin1Char('/'))) - fullPath = sh->path + path.mid(1); - else if (!sh->path.endsWith(QLatin1Char('/')) && !path.startsWith(QLatin1Char('/'))) - fullPath = sh->path + QLatin1Char('/') + path; + } else if (sh->path.endsWith(QLatin1Char('/')) && subPath.startsWith(QLatin1Char('/'))) + fullPath = sh->path + subPath.mid(1); + else if (!sh->path.endsWith(QLatin1Char('/')) && !subPath.startsWith(QLatin1Char('/'))) + fullPath = sh->path + QLatin1Char('/') + subPath; else - fullPath = sh->path + path; + fullPath = sh->path + subPath; } if (m_handles.contains(fullPath)) { @@ -211,20 +245,31 @@ void GConfLayer::setProperty(Handle handle, Properties properties) { + QMutexLocker locker(&m_mutex); + GConfHandle *sh = gConfHandle(handle); if (!sh) return; + QString basePath = sh->path; + if (!basePath.endsWith(QLatin1Char('/'))) { + basePath += QLatin1Char('/'); + } if (properties & QAbstractValueSpaceLayer::Publish) { - qDebug() << "TODO: Start monitoring (child) items from" << sh->path; + m_monitoringHandles.insert(sh); } else { - qDebug() << "TODO: Stop monitoring (child) items from" << sh->path; + m_monitoringHandles.remove(sh); } - } void GConfLayer::removeHandle(Handle handle) { + QMutexLocker locker(&m_mutex); + doRemoveHandle(handle); +} + +void GConfLayer::doRemoveHandle(Handle handle) +{ GConfHandle *sh = gConfHandle(handle); if (!sh) return; @@ -232,6 +277,7 @@ if (--sh->refCount) return; + m_monitoringHandles.remove(sh); m_handles.remove(sh->path); delete sh; @@ -242,6 +288,8 @@ const QString &subPath, const QVariant &data) { + QMutexLocker locker(&m_mutex); + GConfHandle *sh = gConfHandle(handle); if (!sh) return false; @@ -265,7 +313,7 @@ if (path.isEmpty()) path.append(QLatin1Char('/')); - sh = gConfHandle(item(Handle(sh), path)); + sh = gConfHandle(getItem(Handle(sh), path)); createdHandle = true; } @@ -275,14 +323,29 @@ fullPath.append(value); - - qDebug() << "Write value" << data << "to" << fullPath; GConfItem gconfItem(fullPath); - gconfItem.set(data); + switch (data.type()) { + case QVariant::Invalid: + case QVariant::Bool: + case QVariant::Int: + case QVariant::Double: + case QVariant::String: + case QVariant::StringList: + case QVariant::List: + gconfItem.set(data); + break; + default: + QByteArray byteArray; + QDataStream writeStream(&byteArray, QIODevice::WriteOnly); + writeStream << data; + QString serializedValue(byteArray.toBase64()); + gconfItem.set(serializedValue); + } if (createdHandle) - removeHandle(Handle(sh)); - return true; //TODO: How to check whether set was ok? + doRemoveHandle(Handle(sh)); + + return true; } void GConfLayer::sync() @@ -300,47 +363,31 @@ Handle handle, const QString &subPath) { + QMutexLocker locker(&m_mutex); + + QString fullPath; + GConfHandle *sh = gConfHandle(handle); if (!sh) return false; - QString path(subPath); - while (path.endsWith(QLatin1Char('/'))) - path.chop(1); - - int index = path.lastIndexOf(QLatin1Char('/'), -1); - - bool createdHandle = false; - - QString value; - if (index == -1) { - value = path; + if (handle == InvalidHandle) { + fullPath = subPath; } else { - // want a value that is in a sub path under handle - value = path.mid(index + 1); - path.truncate(index); - - if (path.isEmpty()) - path.append(QLatin1Char('/')); - - sh = gConfHandle(item(Handle(sh), path)); - createdHandle = true; + if (subPath == QLatin1String("/")) + fullPath = sh->path; + else if (sh->path.endsWith(QLatin1Char('/')) && subPath.startsWith(QLatin1Char('/'))) + fullPath = sh->path + subPath.mid(1); + else if (!sh->path.endsWith(QLatin1Char('/')) && !subPath.startsWith(QLatin1Char('/'))) + fullPath = sh->path + QLatin1Char('/') + subPath; + else + fullPath = sh->path + subPath; } - QString fullPath(sh->path); - if (fullPath != QLatin1String("/")) - fullPath.append(QLatin1Char('/')); - - fullPath.append(value); - - qDebug() << "TODO: Remove value from" << fullPath; GConfItem gconfItem(fullPath); gconfItem.unset(); - if (createdHandle) - removeHandle(Handle(sh)); - - return true; //TODO: How to check whether unset was ok? + return true; } void GConfLayer::addWatch(QValueSpacePublisher *, Handle) @@ -364,6 +411,15 @@ return false; } +void GConfLayer::notifyChanged(const QString &key, const QVariant & /*value*/) +{ + foreach (GConfHandle *handle, m_monitoringHandles.values()) { + if (key.startsWith(handle->path)) { + emit handleChanged(Handle(handle)); + } + } +} + #include "moc_gconflayer_linux_p.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/publishsubscribe/gconflayer_linux_p.h --- a/qtmobility/src/publishsubscribe/gconflayer_linux_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/publishsubscribe/gconflayer_linux_p.h Mon May 03 13:18:40 2010 +0300 @@ -45,10 +45,9 @@ #include "qvaluespace_p.h" #include "qvaluespacepublisher.h" -#include #include -#include -#include +#include "gconfitem_p.h" +#include QTM_BEGIN_NAMESPACE @@ -95,6 +94,9 @@ public: static GConfLayer *instance(); +private slots: + void notifyChanged(const QString &key, const QVariant &value); + private: struct GConfHandle { GConfHandle(const QString &p) @@ -120,9 +122,15 @@ return 0; } + //private methods not locking a mutex + bool getValue(Handle handle, const QString &subPath, QVariant *data); + Handle getItem(Handle parent, const QString &subPath); + void doRemoveHandle(Handle handle); + private: //data - QHash m_monitoringHandles; - QSet m_monitoringPaths; + QSet m_monitoringHandles; + QMap m_monitoringItems; + QMutex m_mutex; }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/publishsubscribe/psmapperserver_symbian/pathmapper_symbian.cpp --- a/qtmobility/src/publishsubscribe/psmapperserver_symbian/pathmapper_symbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/publishsubscribe/psmapperserver_symbian/pathmapper_symbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -130,7 +130,7 @@ QString basePath = path; if (basePath.right(1) != QString(QLatin1Char('/'))) basePath += QLatin1Char('/'); - foreach (QString foundPath, childPaths(basePath)) { + foreach (const QString foundPath, childPaths(basePath)) { QString value = foundPath.mid(basePath.size()); int index = value.indexOf(QLatin1Char('/')); if (index != -1) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/publishsubscribe/psmapperserver_symbian/pspathmapperserver.pro --- a/qtmobility/src/publishsubscribe/psmapperserver_symbian/pspathmapperserver.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/publishsubscribe/psmapperserver_symbian/pspathmapperserver.pro Mon May 03 13:18:40 2010 +0300 @@ -3,13 +3,17 @@ QT = core TARGET.UID3 = 0x2002AC88 +CONFIG += no_icon + SOURCES += pspathmapperservermain.cpp include(../../../common.pri) DEPENDPATH += ../xqsettingsmanager_symbian -INCLUDEPATH += ../xqsettingsmanager_symbian +INCLUDEPATH += ../xqsettingsmanager_symbian\ + $${EPOCROOT}epoc32\include\platform + DEFINES += XQSETTINGSMANAGER_NO_LIBRARY DEFINES += XQSETTINGSMANAGER_NO_TRANSACTIONS DEFINES += XQSETTINGSMANAGER_NO_CENREPKEY_CREATION_DELETION diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/publishsubscribe/publishsubscribe.pro --- a/qtmobility/src/publishsubscribe/publishsubscribe.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/publishsubscribe/publishsubscribe.pro Mon May 03 13:18:40 2010 +0300 @@ -33,7 +33,8 @@ include(xqsettingsmanager_symbian/settingsmanager.pri) DEPENDPATH += psmapperserver_symbian - INCLUDEPATH += psmapperserver_symbian + INCLUDEPATH += psmapperserver_symbian \ + $${EPOCROOT}epoc32\include\platform HEADERS += pathmapper_symbian_p.h \ pathmapper_proxy_symbian_p.h @@ -64,7 +65,7 @@ SOURCES += gconflayer_linux.cpp #As a workaround build GConfItem wrapper class with the project - HEADERS += gconfitem.h + HEADERS += gconfitem_p.h SOURCES += gconfitem.cpp CONFIG += link_pkgconfig diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/publishsubscribe/qvaluespacemanager_p.h --- a/qtmobility/src/publishsubscribe/qvaluespacemanager_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/publishsubscribe/qvaluespacemanager_p.h Mon May 03 13:18:40 2010 +0300 @@ -52,8 +52,8 @@ // // We mean it. // +#include "qvaluespace_p.h" #include -#include "qvaluespace_p.h" QT_USE_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/publishsubscribe/settingslayer_symbian.cpp --- a/qtmobility/src/publishsubscribe/settingslayer_symbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/publishsubscribe/settingslayer_symbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -238,7 +238,7 @@ if (!sh) return; - foreach (QString fullPath, m_pathMapper.childPaths(sh->path)) { + foreach (const QString fullPath, m_pathMapper.childPaths(sh->path)) { PathMapper::Target target; quint32 category; quint32 key; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/.gitignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/s60installs/.gitignore Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,2 @@ +!qtmobility_stub.pkg +!qtmobility_stub.sis diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/bwins/QtContactsu.def --- a/qtmobility/src/s60installs/bwins/QtContactsu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/bwins/QtContactsu.def Mon May 03 13:18:40 2010 +0300 @@ -40,545 +40,545 @@ ??0QContactEmailAddress@QtMobility@@QAE@XZ @ 39 NONAME ; QtMobility::QContactEmailAddress::QContactEmailAddress(void) ??0QContactFamily@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 40 NONAME ; QtMobility::QContactFamily::QContactFamily(class QtMobility::QContactDetail const &) ??0QContactFamily@QtMobility@@QAE@XZ @ 41 NONAME ; QtMobility::QContactFamily::QContactFamily(void) - ??0QContactFetchRequest@QtMobility@@QAE@XZ @ 42 NONAME ; QtMobility::QContactFetchRequest::QContactFetchRequest(void) - ??0QContactFilter@QtMobility@@IAE@PAVQContactFilterPrivate@1@@Z @ 43 NONAME ; QtMobility::QContactFilter::QContactFilter(class QtMobility::QContactFilterPrivate *) - ??0QContactFilter@QtMobility@@QAE@ABV01@@Z @ 44 NONAME ; QtMobility::QContactFilter::QContactFilter(class QtMobility::QContactFilter const &) - ??0QContactFilter@QtMobility@@QAE@XZ @ 45 NONAME ; QtMobility::QContactFilter::QContactFilter(void) - ??0QContactGender@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 46 NONAME ; QtMobility::QContactGender::QContactGender(class QtMobility::QContactDetail const &) - ??0QContactGender@QtMobility@@QAE@XZ @ 47 NONAME ; QtMobility::QContactGender::QContactGender(void) - ??0QContactGeoLocation@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 48 NONAME ; QtMobility::QContactGeoLocation::QContactGeoLocation(class QtMobility::QContactDetail const &) - ??0QContactGeoLocation@QtMobility@@QAE@XZ @ 49 NONAME ; QtMobility::QContactGeoLocation::QContactGeoLocation(void) - ??0QContactGeolocation@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 50 NONAME ; QtMobility::QContactGeolocation::QContactGeolocation(class QtMobility::QContactDetail const &) - ??0QContactGeolocation@QtMobility@@QAE@XZ @ 51 NONAME ; QtMobility::QContactGeolocation::QContactGeolocation(void) - ??0QContactGuid@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 52 NONAME ; QtMobility::QContactGuid::QContactGuid(class QtMobility::QContactDetail const &) - ??0QContactGuid@QtMobility@@QAE@XZ @ 53 NONAME ; QtMobility::QContactGuid::QContactGuid(void) - ??0QContactId@QtMobility@@QAE@ABV01@@Z @ 54 NONAME ; QtMobility::QContactId::QContactId(class QtMobility::QContactId const &) - ??0QContactId@QtMobility@@QAE@XZ @ 55 NONAME ; QtMobility::QContactId::QContactId(void) - ??0QContactIntersectionFilter@QtMobility@@QAE@ABVQContactFilter@1@@Z @ 56 NONAME ; QtMobility::QContactIntersectionFilter::QContactIntersectionFilter(class QtMobility::QContactFilter const &) - ??0QContactIntersectionFilter@QtMobility@@QAE@XZ @ 57 NONAME ; QtMobility::QContactIntersectionFilter::QContactIntersectionFilter(void) - ??0QContactInvalidFilter@QtMobility@@QAE@ABVQContactFilter@1@@Z @ 58 NONAME ; QtMobility::QContactInvalidFilter::QContactInvalidFilter(class QtMobility::QContactFilter const &) - ??0QContactInvalidFilter@QtMobility@@QAE@XZ @ 59 NONAME ; QtMobility::QContactInvalidFilter::QContactInvalidFilter(void) - ??0QContactLocalIdFetchRequest@QtMobility@@QAE@XZ @ 60 NONAME ; QtMobility::QContactLocalIdFetchRequest::QContactLocalIdFetchRequest(void) - ??0QContactLocalIdFilter@QtMobility@@QAE@ABVQContactFilter@1@@Z @ 61 NONAME ; QtMobility::QContactLocalIdFilter::QContactLocalIdFilter(class QtMobility::QContactFilter const &) - ??0QContactLocalIdFilter@QtMobility@@QAE@XZ @ 62 NONAME ; QtMobility::QContactLocalIdFilter::QContactLocalIdFilter(void) - ??0QContactManager@QtMobility@@QAE@ABVQString@@ABV?$QMap@VQString@@V1@@@PAVQObject@@@Z @ 63 NONAME ; QtMobility::QContactManager::QContactManager(class QString const &, class QMap const &, class QObject *) - ??0QContactManager@QtMobility@@QAE@ABVQString@@HABV?$QMap@VQString@@V1@@@PAVQObject@@@Z @ 64 NONAME ; QtMobility::QContactManager::QContactManager(class QString const &, int, class QMap const &, class QObject *) - ??0QContactManager@QtMobility@@QAE@PAVQObject@@@Z @ 65 NONAME ; QtMobility::QContactManager::QContactManager(class QObject *) - ??0QContactManagerEngine@QtMobility@@QAE@XZ @ 66 NONAME ; QtMobility::QContactManagerEngine::QContactManagerEngine(void) - ??0QContactMemoryEngine@QtMobility@@IAE@ABV?$QMap@VQString@@V1@@@@Z @ 67 NONAME ; QtMobility::QContactMemoryEngine::QContactMemoryEngine(class QMap const &) - ??0QContactName@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 68 NONAME ; QtMobility::QContactName::QContactName(class QtMobility::QContactDetail const &) - ??0QContactName@QtMobility@@QAE@XZ @ 69 NONAME ; QtMobility::QContactName::QContactName(void) - ??0QContactNickname@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 70 NONAME ; QtMobility::QContactNickname::QContactNickname(class QtMobility::QContactDetail const &) - ??0QContactNickname@QtMobility@@QAE@XZ @ 71 NONAME ; QtMobility::QContactNickname::QContactNickname(void) - ??0QContactNote@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 72 NONAME ; QtMobility::QContactNote::QContactNote(class QtMobility::QContactDetail const &) - ??0QContactNote@QtMobility@@QAE@XZ @ 73 NONAME ; QtMobility::QContactNote::QContactNote(void) - ??0QContactOnlineAccount@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 74 NONAME ; QtMobility::QContactOnlineAccount::QContactOnlineAccount(class QtMobility::QContactDetail const &) - ??0QContactOnlineAccount@QtMobility@@QAE@XZ @ 75 NONAME ; QtMobility::QContactOnlineAccount::QContactOnlineAccount(void) - ??0QContactOrganization@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 76 NONAME ; QtMobility::QContactOrganization::QContactOrganization(class QtMobility::QContactDetail const &) - ??0QContactOrganization@QtMobility@@QAE@XZ @ 77 NONAME ; QtMobility::QContactOrganization::QContactOrganization(void) - ??0QContactPhoneNumber@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 78 NONAME ; QtMobility::QContactPhoneNumber::QContactPhoneNumber(class QtMobility::QContactDetail const &) - ??0QContactPhoneNumber@QtMobility@@QAE@XZ @ 79 NONAME ; QtMobility::QContactPhoneNumber::QContactPhoneNumber(void) - ??0QContactRelationship@QtMobility@@QAE@ABV01@@Z @ 80 NONAME ; QtMobility::QContactRelationship::QContactRelationship(class QtMobility::QContactRelationship const &) - ??0QContactRelationship@QtMobility@@QAE@XZ @ 81 NONAME ; QtMobility::QContactRelationship::QContactRelationship(void) - ??0QContactRelationshipFetchRequest@QtMobility@@QAE@XZ @ 82 NONAME ; QtMobility::QContactRelationshipFetchRequest::QContactRelationshipFetchRequest(void) - ??0QContactRelationshipFilter@QtMobility@@QAE@ABVQContactFilter@1@@Z @ 83 NONAME ; QtMobility::QContactRelationshipFilter::QContactRelationshipFilter(class QtMobility::QContactFilter const &) - ??0QContactRelationshipFilter@QtMobility@@QAE@XZ @ 84 NONAME ; QtMobility::QContactRelationshipFilter::QContactRelationshipFilter(void) - ??0QContactRelationshipRemoveRequest@QtMobility@@QAE@XZ @ 85 NONAME ; QtMobility::QContactRelationshipRemoveRequest::QContactRelationshipRemoveRequest(void) - ??0QContactRelationshipSaveRequest@QtMobility@@QAE@XZ @ 86 NONAME ; QtMobility::QContactRelationshipSaveRequest::QContactRelationshipSaveRequest(void) - ??0QContactRemoveRequest@QtMobility@@QAE@XZ @ 87 NONAME ; QtMobility::QContactRemoveRequest::QContactRemoveRequest(void) - ??0QContactSaveRequest@QtMobility@@QAE@XZ @ 88 NONAME ; QtMobility::QContactSaveRequest::QContactSaveRequest(void) - ??0QContactSortOrder@QtMobility@@QAE@ABV01@@Z @ 89 NONAME ; QtMobility::QContactSortOrder::QContactSortOrder(class QtMobility::QContactSortOrder const &) - ??0QContactSortOrder@QtMobility@@QAE@XZ @ 90 NONAME ; QtMobility::QContactSortOrder::QContactSortOrder(void) - ??0QContactSyncTarget@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 91 NONAME ; QtMobility::QContactSyncTarget::QContactSyncTarget(class QtMobility::QContactDetail const &) - ??0QContactSyncTarget@QtMobility@@QAE@XZ @ 92 NONAME ; QtMobility::QContactSyncTarget::QContactSyncTarget(void) - ??0QContactTimestamp@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 93 NONAME ; QtMobility::QContactTimestamp::QContactTimestamp(class QtMobility::QContactDetail const &) - ??0QContactTimestamp@QtMobility@@QAE@XZ @ 94 NONAME ; QtMobility::QContactTimestamp::QContactTimestamp(void) - ??0QContactType@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 95 NONAME ; QtMobility::QContactType::QContactType(class QtMobility::QContactDetail const &) - ??0QContactType@QtMobility@@QAE@XZ @ 96 NONAME ; QtMobility::QContactType::QContactType(void) - ??0QContactUnionFilter@QtMobility@@QAE@ABVQContactFilter@1@@Z @ 97 NONAME ; QtMobility::QContactUnionFilter::QContactUnionFilter(class QtMobility::QContactFilter const &) - ??0QContactUnionFilter@QtMobility@@QAE@XZ @ 98 NONAME ; QtMobility::QContactUnionFilter::QContactUnionFilter(void) - ??0QContactUrl@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 99 NONAME ; QtMobility::QContactUrl::QContactUrl(class QtMobility::QContactDetail const &) - ??0QContactUrl@QtMobility@@QAE@XZ @ 100 NONAME ; QtMobility::QContactUrl::QContactUrl(void) - ??1QContact@QtMobility@@QAE@XZ @ 101 NONAME ; QtMobility::QContact::~QContact(void) - ??1QContactAbstractRequest@QtMobility@@UAE@XZ @ 102 NONAME ; QtMobility::QContactAbstractRequest::~QContactAbstractRequest(void) - ??1QContactAction@QtMobility@@UAE@XZ @ 103 NONAME ; QtMobility::QContactAction::~QContactAction(void) - ??1QContactActionDescriptor@QtMobility@@QAE@XZ @ 104 NONAME ; QtMobility::QContactActionDescriptor::~QContactActionDescriptor(void) - ??1QContactActionFactory@QtMobility@@UAE@XZ @ 105 NONAME ; QtMobility::QContactActionFactory::~QContactActionFactory(void) - ??1QContactActionFilter@QtMobility@@UAE@XZ @ 106 NONAME ; QtMobility::QContactActionFilter::~QContactActionFilter(void) - ??1QContactAddress@QtMobility@@UAE@XZ @ 107 NONAME ; QtMobility::QContactAddress::~QContactAddress(void) - ??1QContactAnniversary@QtMobility@@UAE@XZ @ 108 NONAME ; QtMobility::QContactAnniversary::~QContactAnniversary(void) - ??1QContactAvatar@QtMobility@@UAE@XZ @ 109 NONAME ; QtMobility::QContactAvatar::~QContactAvatar(void) - ??1QContactBirthday@QtMobility@@UAE@XZ @ 110 NONAME ; QtMobility::QContactBirthday::~QContactBirthday(void) - ??1QContactChangeLogFilter@QtMobility@@UAE@XZ @ 111 NONAME ; QtMobility::QContactChangeLogFilter::~QContactChangeLogFilter(void) - ??1QContactChangeSet@QtMobility@@QAE@XZ @ 112 NONAME ; QtMobility::QContactChangeSet::~QContactChangeSet(void) - ??1QContactDetail@QtMobility@@UAE@XZ @ 113 NONAME ; QtMobility::QContactDetail::~QContactDetail(void) - ??1QContactDetailDefinition@QtMobility@@QAE@XZ @ 114 NONAME ; QtMobility::QContactDetailDefinition::~QContactDetailDefinition(void) - ??1QContactDetailDefinitionFetchRequest@QtMobility@@UAE@XZ @ 115 NONAME ; QtMobility::QContactDetailDefinitionFetchRequest::~QContactDetailDefinitionFetchRequest(void) - ??1QContactDetailDefinitionRemoveRequest@QtMobility@@UAE@XZ @ 116 NONAME ; QtMobility::QContactDetailDefinitionRemoveRequest::~QContactDetailDefinitionRemoveRequest(void) - ??1QContactDetailDefinitionSaveRequest@QtMobility@@UAE@XZ @ 117 NONAME ; QtMobility::QContactDetailDefinitionSaveRequest::~QContactDetailDefinitionSaveRequest(void) - ??1QContactDetailFieldDefinition@QtMobility@@QAE@XZ @ 118 NONAME ; QtMobility::QContactDetailFieldDefinition::~QContactDetailFieldDefinition(void) - ??1QContactDetailFilter@QtMobility@@UAE@XZ @ 119 NONAME ; QtMobility::QContactDetailFilter::~QContactDetailFilter(void) - ??1QContactDetailRangeFilter@QtMobility@@UAE@XZ @ 120 NONAME ; QtMobility::QContactDetailRangeFilter::~QContactDetailRangeFilter(void) - ??1QContactDisplayLabel@QtMobility@@UAE@XZ @ 121 NONAME ; QtMobility::QContactDisplayLabel::~QContactDisplayLabel(void) - ??1QContactEmailAddress@QtMobility@@UAE@XZ @ 122 NONAME ; QtMobility::QContactEmailAddress::~QContactEmailAddress(void) - ??1QContactFamily@QtMobility@@UAE@XZ @ 123 NONAME ; QtMobility::QContactFamily::~QContactFamily(void) - ??1QContactFetchRequest@QtMobility@@UAE@XZ @ 124 NONAME ; QtMobility::QContactFetchRequest::~QContactFetchRequest(void) - ??1QContactFilter@QtMobility@@UAE@XZ @ 125 NONAME ; QtMobility::QContactFilter::~QContactFilter(void) - ??1QContactGender@QtMobility@@UAE@XZ @ 126 NONAME ; QtMobility::QContactGender::~QContactGender(void) - ??1QContactGeoLocation@QtMobility@@UAE@XZ @ 127 NONAME ; QtMobility::QContactGeoLocation::~QContactGeoLocation(void) - ??1QContactGeolocation@QtMobility@@UAE@XZ @ 128 NONAME ; QtMobility::QContactGeolocation::~QContactGeolocation(void) - ??1QContactGuid@QtMobility@@UAE@XZ @ 129 NONAME ; QtMobility::QContactGuid::~QContactGuid(void) - ??1QContactId@QtMobility@@QAE@XZ @ 130 NONAME ; QtMobility::QContactId::~QContactId(void) - ??1QContactIntersectionFilter@QtMobility@@UAE@XZ @ 131 NONAME ; QtMobility::QContactIntersectionFilter::~QContactIntersectionFilter(void) - ??1QContactInvalidFilter@QtMobility@@UAE@XZ @ 132 NONAME ; QtMobility::QContactInvalidFilter::~QContactInvalidFilter(void) - ??1QContactLocalIdFetchRequest@QtMobility@@UAE@XZ @ 133 NONAME ; QtMobility::QContactLocalIdFetchRequest::~QContactLocalIdFetchRequest(void) - ??1QContactLocalIdFilter@QtMobility@@UAE@XZ @ 134 NONAME ; QtMobility::QContactLocalIdFilter::~QContactLocalIdFilter(void) - ??1QContactManager@QtMobility@@UAE@XZ @ 135 NONAME ; QtMobility::QContactManager::~QContactManager(void) - ??1QContactManagerEngine@QtMobility@@UAE@XZ @ 136 NONAME ; QtMobility::QContactManagerEngine::~QContactManagerEngine(void) - ??1QContactManagerEngineFactory@QtMobility@@UAE@XZ @ 137 NONAME ; QtMobility::QContactManagerEngineFactory::~QContactManagerEngineFactory(void) - ??1QContactMemoryEngine@QtMobility@@UAE@XZ @ 138 NONAME ; QtMobility::QContactMemoryEngine::~QContactMemoryEngine(void) - ??1QContactName@QtMobility@@UAE@XZ @ 139 NONAME ; QtMobility::QContactName::~QContactName(void) - ??1QContactNickname@QtMobility@@UAE@XZ @ 140 NONAME ; QtMobility::QContactNickname::~QContactNickname(void) - ??1QContactNote@QtMobility@@UAE@XZ @ 141 NONAME ; QtMobility::QContactNote::~QContactNote(void) - ??1QContactOnlineAccount@QtMobility@@UAE@XZ @ 142 NONAME ; QtMobility::QContactOnlineAccount::~QContactOnlineAccount(void) - ??1QContactOrganization@QtMobility@@UAE@XZ @ 143 NONAME ; QtMobility::QContactOrganization::~QContactOrganization(void) - ??1QContactPhoneNumber@QtMobility@@UAE@XZ @ 144 NONAME ; QtMobility::QContactPhoneNumber::~QContactPhoneNumber(void) - ??1QContactRelationship@QtMobility@@QAE@XZ @ 145 NONAME ; QtMobility::QContactRelationship::~QContactRelationship(void) - ??1QContactRelationshipFetchRequest@QtMobility@@UAE@XZ @ 146 NONAME ; QtMobility::QContactRelationshipFetchRequest::~QContactRelationshipFetchRequest(void) - ??1QContactRelationshipFilter@QtMobility@@UAE@XZ @ 147 NONAME ; QtMobility::QContactRelationshipFilter::~QContactRelationshipFilter(void) - ??1QContactRelationshipRemoveRequest@QtMobility@@UAE@XZ @ 148 NONAME ; QtMobility::QContactRelationshipRemoveRequest::~QContactRelationshipRemoveRequest(void) - ??1QContactRelationshipSaveRequest@QtMobility@@UAE@XZ @ 149 NONAME ; QtMobility::QContactRelationshipSaveRequest::~QContactRelationshipSaveRequest(void) - ??1QContactRemoveRequest@QtMobility@@UAE@XZ @ 150 NONAME ; QtMobility::QContactRemoveRequest::~QContactRemoveRequest(void) - ??1QContactSaveRequest@QtMobility@@UAE@XZ @ 151 NONAME ; QtMobility::QContactSaveRequest::~QContactSaveRequest(void) - ??1QContactSortOrder@QtMobility@@QAE@XZ @ 152 NONAME ; QtMobility::QContactSortOrder::~QContactSortOrder(void) - ??1QContactSyncTarget@QtMobility@@UAE@XZ @ 153 NONAME ; QtMobility::QContactSyncTarget::~QContactSyncTarget(void) - ??1QContactTimestamp@QtMobility@@UAE@XZ @ 154 NONAME ; QtMobility::QContactTimestamp::~QContactTimestamp(void) - ??1QContactType@QtMobility@@UAE@XZ @ 155 NONAME ; QtMobility::QContactType::~QContactType(void) - ??1QContactUnionFilter@QtMobility@@UAE@XZ @ 156 NONAME ; QtMobility::QContactUnionFilter::~QContactUnionFilter(void) - ??1QContactUrl@QtMobility@@UAE@XZ @ 157 NONAME ; QtMobility::QContactUrl::~QContactUrl(void) - ??4QContact@QtMobility@@QAEAAV01@ABV01@@Z @ 158 NONAME ; class QtMobility::QContact & QtMobility::QContact::operator=(class QtMobility::QContact const &) - ??4QContactActionDescriptor@QtMobility@@QAEAAV01@ABV01@@Z @ 159 NONAME ; class QtMobility::QContactActionDescriptor & QtMobility::QContactActionDescriptor::operator=(class QtMobility::QContactActionDescriptor const &) - ??4QContactAddress@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 160 NONAME ; class QtMobility::QContactAddress & QtMobility::QContactAddress::operator=(class QtMobility::QContactDetail const &) - ??4QContactAnniversary@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 161 NONAME ; class QtMobility::QContactAnniversary & QtMobility::QContactAnniversary::operator=(class QtMobility::QContactDetail const &) - ??4QContactAvatar@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 162 NONAME ; class QtMobility::QContactAvatar & QtMobility::QContactAvatar::operator=(class QtMobility::QContactDetail const &) - ??4QContactBirthday@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 163 NONAME ; class QtMobility::QContactBirthday & QtMobility::QContactBirthday::operator=(class QtMobility::QContactDetail const &) - ??4QContactChangeSet@QtMobility@@QAEAAV01@ABV01@@Z @ 164 NONAME ; class QtMobility::QContactChangeSet & QtMobility::QContactChangeSet::operator=(class QtMobility::QContactChangeSet const &) - ??4QContactDetail@QtMobility@@QAEAAV01@ABV01@@Z @ 165 NONAME ; class QtMobility::QContactDetail & QtMobility::QContactDetail::operator=(class QtMobility::QContactDetail const &) - ??4QContactDetailDefinition@QtMobility@@QAEAAV01@ABV01@@Z @ 166 NONAME ; class QtMobility::QContactDetailDefinition & QtMobility::QContactDetailDefinition::operator=(class QtMobility::QContactDetailDefinition const &) - ??4QContactDetailFieldDefinition@QtMobility@@QAEAAV01@ABV01@@Z @ 167 NONAME ; class QtMobility::QContactDetailFieldDefinition & QtMobility::QContactDetailFieldDefinition::operator=(class QtMobility::QContactDetailFieldDefinition const &) - ??4QContactDisplayLabel@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 168 NONAME ; class QtMobility::QContactDisplayLabel & QtMobility::QContactDisplayLabel::operator=(class QtMobility::QContactDetail const &) - ??4QContactEmailAddress@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 169 NONAME ; class QtMobility::QContactEmailAddress & QtMobility::QContactEmailAddress::operator=(class QtMobility::QContactDetail const &) - ??4QContactFamily@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 170 NONAME ; class QtMobility::QContactFamily & QtMobility::QContactFamily::operator=(class QtMobility::QContactDetail const &) - ??4QContactFilter@QtMobility@@QAEAAV01@ABV01@@Z @ 171 NONAME ; class QtMobility::QContactFilter & QtMobility::QContactFilter::operator=(class QtMobility::QContactFilter const &) - ??4QContactGender@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 172 NONAME ; class QtMobility::QContactGender & QtMobility::QContactGender::operator=(class QtMobility::QContactDetail const &) - ??4QContactGeoLocation@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 173 NONAME ; class QtMobility::QContactGeoLocation & QtMobility::QContactGeoLocation::operator=(class QtMobility::QContactDetail const &) - ??4QContactGeolocation@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 174 NONAME ; class QtMobility::QContactGeolocation & QtMobility::QContactGeolocation::operator=(class QtMobility::QContactDetail const &) - ??4QContactGuid@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 175 NONAME ; class QtMobility::QContactGuid & QtMobility::QContactGuid::operator=(class QtMobility::QContactDetail const &) - ??4QContactId@QtMobility@@QAEAAV01@ABV01@@Z @ 176 NONAME ; class QtMobility::QContactId & QtMobility::QContactId::operator=(class QtMobility::QContactId const &) - ??4QContactName@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 177 NONAME ; class QtMobility::QContactName & QtMobility::QContactName::operator=(class QtMobility::QContactDetail const &) - ??4QContactNickname@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 178 NONAME ; class QtMobility::QContactNickname & QtMobility::QContactNickname::operator=(class QtMobility::QContactDetail const &) - ??4QContactNote@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 179 NONAME ; class QtMobility::QContactNote & QtMobility::QContactNote::operator=(class QtMobility::QContactDetail const &) - ??4QContactOnlineAccount@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 180 NONAME ; class QtMobility::QContactOnlineAccount & QtMobility::QContactOnlineAccount::operator=(class QtMobility::QContactDetail const &) - ??4QContactOrganization@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 181 NONAME ; class QtMobility::QContactOrganization & QtMobility::QContactOrganization::operator=(class QtMobility::QContactDetail const &) - ??4QContactPhoneNumber@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 182 NONAME ; class QtMobility::QContactPhoneNumber & QtMobility::QContactPhoneNumber::operator=(class QtMobility::QContactDetail const &) - ??4QContactRelationship@QtMobility@@QAEAAV01@ABV01@@Z @ 183 NONAME ; class QtMobility::QContactRelationship & QtMobility::QContactRelationship::operator=(class QtMobility::QContactRelationship const &) - ??4QContactSortOrder@QtMobility@@QAEAAV01@ABV01@@Z @ 184 NONAME ; class QtMobility::QContactSortOrder & QtMobility::QContactSortOrder::operator=(class QtMobility::QContactSortOrder const &) - ??4QContactSyncTarget@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 185 NONAME ; class QtMobility::QContactSyncTarget & QtMobility::QContactSyncTarget::operator=(class QtMobility::QContactDetail const &) - ??4QContactTimestamp@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 186 NONAME ; class QtMobility::QContactTimestamp & QtMobility::QContactTimestamp::operator=(class QtMobility::QContactDetail const &) - ??4QContactType@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 187 NONAME ; class QtMobility::QContactType & QtMobility::QContactType::operator=(class QtMobility::QContactDetail const &) - ??4QContactUrl@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 188 NONAME ; class QtMobility::QContactUrl & QtMobility::QContactUrl::operator=(class QtMobility::QContactDetail const &) - ??6QContactIntersectionFilter@QtMobility@@QAEAAV01@ABVQContactFilter@1@@Z @ 189 NONAME ; class QtMobility::QContactIntersectionFilter & QtMobility::QContactIntersectionFilter::operator<<(class QtMobility::QContactFilter const &) - ??6QContactUnionFilter@QtMobility@@QAEAAV01@ABVQContactFilter@1@@Z @ 190 NONAME ; class QtMobility::QContactUnionFilter & QtMobility::QContactUnionFilter::operator<<(class QtMobility::QContactFilter const &) - ??8QContact@QtMobility@@QBE_NABV01@@Z @ 191 NONAME ; bool QtMobility::QContact::operator==(class QtMobility::QContact const &) const - ??8QContactActionDescriptor@QtMobility@@QBE_NABV01@@Z @ 192 NONAME ; bool QtMobility::QContactActionDescriptor::operator==(class QtMobility::QContactActionDescriptor const &) const - ??8QContactDetail@QtMobility@@QBE_NABV01@@Z @ 193 NONAME ; bool QtMobility::QContactDetail::operator==(class QtMobility::QContactDetail const &) const - ??8QContactDetailDefinition@QtMobility@@QBE_NABV01@@Z @ 194 NONAME ; bool QtMobility::QContactDetailDefinition::operator==(class QtMobility::QContactDetailDefinition const &) const - ??8QContactDetailFieldDefinition@QtMobility@@QBE_NABV01@@Z @ 195 NONAME ; bool QtMobility::QContactDetailFieldDefinition::operator==(class QtMobility::QContactDetailFieldDefinition const &) const - ??8QContactFilter@QtMobility@@QBE_NABV01@@Z @ 196 NONAME ; bool QtMobility::QContactFilter::operator==(class QtMobility::QContactFilter const &) const - ??8QContactId@QtMobility@@QBE_NABV01@@Z @ 197 NONAME ; bool QtMobility::QContactId::operator==(class QtMobility::QContactId const &) const - ??8QContactRelationship@QtMobility@@QBE_NABV01@@Z @ 198 NONAME ; bool QtMobility::QContactRelationship::operator==(class QtMobility::QContactRelationship const &) const - ??8QContactSortOrder@QtMobility@@QBE_NABV01@@Z @ 199 NONAME ; bool QtMobility::QContactSortOrder::operator==(class QtMobility::QContactSortOrder const &) const - ??9QContact@QtMobility@@QBE_NABV01@@Z @ 200 NONAME ; bool QtMobility::QContact::operator!=(class QtMobility::QContact const &) const - ??9QContactActionDescriptor@QtMobility@@QBE_NABV01@@Z @ 201 NONAME ; bool QtMobility::QContactActionDescriptor::operator!=(class QtMobility::QContactActionDescriptor const &) const - ??9QContactDetail@QtMobility@@QBE_NABV01@@Z @ 202 NONAME ; bool QtMobility::QContactDetail::operator!=(class QtMobility::QContactDetail const &) const - ??9QContactDetailDefinition@QtMobility@@QBE_NABV01@@Z @ 203 NONAME ; bool QtMobility::QContactDetailDefinition::operator!=(class QtMobility::QContactDetailDefinition const &) const - ??9QContactDetailFieldDefinition@QtMobility@@QBE_NABV01@@Z @ 204 NONAME ; bool QtMobility::QContactDetailFieldDefinition::operator!=(class QtMobility::QContactDetailFieldDefinition const &) const - ??9QContactFilter@QtMobility@@QBE_NABV01@@Z @ 205 NONAME ; bool QtMobility::QContactFilter::operator!=(class QtMobility::QContactFilter const &) const - ??9QContactId@QtMobility@@QBE_NABV01@@Z @ 206 NONAME ; bool QtMobility::QContactId::operator!=(class QtMobility::QContactId const &) const - ??9QContactRelationship@QtMobility@@QBE_NABV01@@Z @ 207 NONAME ; bool QtMobility::QContactRelationship::operator!=(class QtMobility::QContactRelationship const &) const - ??9QContactSortOrder@QtMobility@@QBE_NABV01@@Z @ 208 NONAME ; bool QtMobility::QContactSortOrder::operator!=(class QtMobility::QContactSortOrder const &) const - ??BQContactSortOrder@QtMobility@@QBE?AV?$QList@VQContactSortOrder@QtMobility@@@@XZ @ 209 NONAME ; QtMobility::QContactSortOrder::operator class QList(void) const - ??IQtMobility@@YA?BVQContactFilter@0@ABV10@0@Z @ 210 NONAME ; class QtMobility::QContactFilter const QtMobility::operator&(class QtMobility::QContactFilter const &, class QtMobility::QContactFilter const &) - ??UQtMobility@@YA?BVQContactFilter@0@ABV10@0@Z @ 211 NONAME ; class QtMobility::QContactFilter const QtMobility::operator|(class QtMobility::QContactFilter const &, class QtMobility::QContactFilter const &) - ??_EQContact@QtMobility@@QAE@I@Z @ 212 NONAME ; QtMobility::QContact::~QContact(unsigned int) - ??_EQContactAbstractRequest@QtMobility@@UAE@I@Z @ 213 NONAME ; QtMobility::QContactAbstractRequest::~QContactAbstractRequest(unsigned int) - ??_EQContactAction@QtMobility@@UAE@I@Z @ 214 NONAME ; QtMobility::QContactAction::~QContactAction(unsigned int) - ??_EQContactActionDescriptor@QtMobility@@QAE@I@Z @ 215 NONAME ; QtMobility::QContactActionDescriptor::~QContactActionDescriptor(unsigned int) - ??_EQContactActionFactory@QtMobility@@UAE@I@Z @ 216 NONAME ; QtMobility::QContactActionFactory::~QContactActionFactory(unsigned int) - ??_EQContactActionFilter@QtMobility@@UAE@I@Z @ 217 NONAME ; QtMobility::QContactActionFilter::~QContactActionFilter(unsigned int) - ??_EQContactAddress@QtMobility@@UAE@I@Z @ 218 NONAME ; QtMobility::QContactAddress::~QContactAddress(unsigned int) - ??_EQContactAnniversary@QtMobility@@UAE@I@Z @ 219 NONAME ; QtMobility::QContactAnniversary::~QContactAnniversary(unsigned int) - ??_EQContactAvatar@QtMobility@@UAE@I@Z @ 220 NONAME ; QtMobility::QContactAvatar::~QContactAvatar(unsigned int) - ??_EQContactBirthday@QtMobility@@UAE@I@Z @ 221 NONAME ; QtMobility::QContactBirthday::~QContactBirthday(unsigned int) - ??_EQContactChangeLogFilter@QtMobility@@UAE@I@Z @ 222 NONAME ; QtMobility::QContactChangeLogFilter::~QContactChangeLogFilter(unsigned int) - ??_EQContactDetail@QtMobility@@UAE@I@Z @ 223 NONAME ; QtMobility::QContactDetail::~QContactDetail(unsigned int) - ??_EQContactDetailDefinition@QtMobility@@QAE@I@Z @ 224 NONAME ; QtMobility::QContactDetailDefinition::~QContactDetailDefinition(unsigned int) - ??_EQContactDetailDefinitionFetchRequest@QtMobility@@UAE@I@Z @ 225 NONAME ; QtMobility::QContactDetailDefinitionFetchRequest::~QContactDetailDefinitionFetchRequest(unsigned int) - ??_EQContactDetailDefinitionRemoveRequest@QtMobility@@UAE@I@Z @ 226 NONAME ; QtMobility::QContactDetailDefinitionRemoveRequest::~QContactDetailDefinitionRemoveRequest(unsigned int) - ??_EQContactDetailDefinitionSaveRequest@QtMobility@@UAE@I@Z @ 227 NONAME ; QtMobility::QContactDetailDefinitionSaveRequest::~QContactDetailDefinitionSaveRequest(unsigned int) - ??_EQContactDetailFilter@QtMobility@@UAE@I@Z @ 228 NONAME ; QtMobility::QContactDetailFilter::~QContactDetailFilter(unsigned int) - ??_EQContactDetailRangeFilter@QtMobility@@UAE@I@Z @ 229 NONAME ; QtMobility::QContactDetailRangeFilter::~QContactDetailRangeFilter(unsigned int) - ??_EQContactDisplayLabel@QtMobility@@UAE@I@Z @ 230 NONAME ; QtMobility::QContactDisplayLabel::~QContactDisplayLabel(unsigned int) - ??_EQContactEmailAddress@QtMobility@@UAE@I@Z @ 231 NONAME ; QtMobility::QContactEmailAddress::~QContactEmailAddress(unsigned int) - ??_EQContactFamily@QtMobility@@UAE@I@Z @ 232 NONAME ; QtMobility::QContactFamily::~QContactFamily(unsigned int) - ??_EQContactFetchRequest@QtMobility@@UAE@I@Z @ 233 NONAME ; QtMobility::QContactFetchRequest::~QContactFetchRequest(unsigned int) - ??_EQContactFilter@QtMobility@@UAE@I@Z @ 234 NONAME ; QtMobility::QContactFilter::~QContactFilter(unsigned int) - ??_EQContactGender@QtMobility@@UAE@I@Z @ 235 NONAME ; QtMobility::QContactGender::~QContactGender(unsigned int) - ??_EQContactGeoLocation@QtMobility@@UAE@I@Z @ 236 NONAME ; QtMobility::QContactGeoLocation::~QContactGeoLocation(unsigned int) - ??_EQContactGeolocation@QtMobility@@UAE@I@Z @ 237 NONAME ; QtMobility::QContactGeolocation::~QContactGeolocation(unsigned int) - ??_EQContactGuid@QtMobility@@UAE@I@Z @ 238 NONAME ; QtMobility::QContactGuid::~QContactGuid(unsigned int) - ??_EQContactId@QtMobility@@QAE@I@Z @ 239 NONAME ; QtMobility::QContactId::~QContactId(unsigned int) - ??_EQContactIntersectionFilter@QtMobility@@UAE@I@Z @ 240 NONAME ; QtMobility::QContactIntersectionFilter::~QContactIntersectionFilter(unsigned int) - ??_EQContactInvalidFilter@QtMobility@@UAE@I@Z @ 241 NONAME ; QtMobility::QContactInvalidFilter::~QContactInvalidFilter(unsigned int) - ??_EQContactLocalIdFetchRequest@QtMobility@@UAE@I@Z @ 242 NONAME ; QtMobility::QContactLocalIdFetchRequest::~QContactLocalIdFetchRequest(unsigned int) - ??_EQContactLocalIdFilter@QtMobility@@UAE@I@Z @ 243 NONAME ; QtMobility::QContactLocalIdFilter::~QContactLocalIdFilter(unsigned int) - ??_EQContactManager@QtMobility@@UAE@I@Z @ 244 NONAME ; QtMobility::QContactManager::~QContactManager(unsigned int) - ??_EQContactManagerEngine@QtMobility@@UAE@I@Z @ 245 NONAME ; QtMobility::QContactManagerEngine::~QContactManagerEngine(unsigned int) - ??_EQContactManagerEngineFactory@QtMobility@@UAE@I@Z @ 246 NONAME ; QtMobility::QContactManagerEngineFactory::~QContactManagerEngineFactory(unsigned int) - ??_EQContactMemoryEngine@QtMobility@@UAE@I@Z @ 247 NONAME ; QtMobility::QContactMemoryEngine::~QContactMemoryEngine(unsigned int) - ??_EQContactName@QtMobility@@UAE@I@Z @ 248 NONAME ; QtMobility::QContactName::~QContactName(unsigned int) - ??_EQContactNickname@QtMobility@@UAE@I@Z @ 249 NONAME ; QtMobility::QContactNickname::~QContactNickname(unsigned int) - ??_EQContactNote@QtMobility@@UAE@I@Z @ 250 NONAME ; QtMobility::QContactNote::~QContactNote(unsigned int) - ??_EQContactOnlineAccount@QtMobility@@UAE@I@Z @ 251 NONAME ; QtMobility::QContactOnlineAccount::~QContactOnlineAccount(unsigned int) - ??_EQContactOrganization@QtMobility@@UAE@I@Z @ 252 NONAME ; QtMobility::QContactOrganization::~QContactOrganization(unsigned int) - ??_EQContactPhoneNumber@QtMobility@@UAE@I@Z @ 253 NONAME ; QtMobility::QContactPhoneNumber::~QContactPhoneNumber(unsigned int) - ??_EQContactRelationship@QtMobility@@QAE@I@Z @ 254 NONAME ; QtMobility::QContactRelationship::~QContactRelationship(unsigned int) - ??_EQContactRelationshipFetchRequest@QtMobility@@UAE@I@Z @ 255 NONAME ; QtMobility::QContactRelationshipFetchRequest::~QContactRelationshipFetchRequest(unsigned int) - ??_EQContactRelationshipFilter@QtMobility@@UAE@I@Z @ 256 NONAME ; QtMobility::QContactRelationshipFilter::~QContactRelationshipFilter(unsigned int) - ??_EQContactRelationshipRemoveRequest@QtMobility@@UAE@I@Z @ 257 NONAME ; QtMobility::QContactRelationshipRemoveRequest::~QContactRelationshipRemoveRequest(unsigned int) - ??_EQContactRelationshipSaveRequest@QtMobility@@UAE@I@Z @ 258 NONAME ; QtMobility::QContactRelationshipSaveRequest::~QContactRelationshipSaveRequest(unsigned int) - ??_EQContactRemoveRequest@QtMobility@@UAE@I@Z @ 259 NONAME ; QtMobility::QContactRemoveRequest::~QContactRemoveRequest(unsigned int) - ??_EQContactSaveRequest@QtMobility@@UAE@I@Z @ 260 NONAME ; QtMobility::QContactSaveRequest::~QContactSaveRequest(unsigned int) - ??_EQContactSortOrder@QtMobility@@QAE@I@Z @ 261 NONAME ; QtMobility::QContactSortOrder::~QContactSortOrder(unsigned int) - ??_EQContactSyncTarget@QtMobility@@UAE@I@Z @ 262 NONAME ; QtMobility::QContactSyncTarget::~QContactSyncTarget(unsigned int) - ??_EQContactTimestamp@QtMobility@@UAE@I@Z @ 263 NONAME ; QtMobility::QContactTimestamp::~QContactTimestamp(unsigned int) - ??_EQContactType@QtMobility@@UAE@I@Z @ 264 NONAME ; QtMobility::QContactType::~QContactType(unsigned int) - ??_EQContactUnionFilter@QtMobility@@UAE@I@Z @ 265 NONAME ; QtMobility::QContactUnionFilter::~QContactUnionFilter(unsigned int) - ??_EQContactUrl@QtMobility@@UAE@I@Z @ 266 NONAME ; QtMobility::QContactUrl::~QContactUrl(unsigned int) - ?accessConstraint@QContactDetailDefinition@QtMobility@@QBE?AW4AccessConstraint@12@XZ @ 267 NONAME ; enum QtMobility::QContactDetailDefinition::AccessConstraint QtMobility::QContactDetailDefinition::accessConstraint(void) const - ?accessConstraint@QContactDetailFieldDefinition@QtMobility@@QBE?AW4AccessConstraint@12@XZ @ 268 NONAME ; enum QtMobility::QContactDetailFieldDefinition::AccessConstraint QtMobility::QContactDetailFieldDefinition::accessConstraint(void) const - ?accessConstraints@QContactDetail@QtMobility@@QBE?AV?$QFlags@W4AccessConstraint@QContactDetail@QtMobility@@@@XZ @ 269 NONAME ; class QFlags QtMobility::QContactDetail::accessConstraints(void) const - ?accountUri@QContactOnlineAccount@QtMobility@@QBE?AVQString@@XZ @ 270 NONAME ; class QString QtMobility::QContactOnlineAccount::accountUri(void) const - ?accuracy@QContactGeoLocation@QtMobility@@QBENXZ @ 271 NONAME ; double QtMobility::QContactGeoLocation::accuracy(void) const - ?accuracy@QContactGeolocation@QtMobility@@QBENXZ @ 272 NONAME ; double QtMobility::QContactGeolocation::accuracy(void) const - ?action@QContactAction@QtMobility@@SAPAV12@ABVQContactActionDescriptor@2@@Z @ 273 NONAME ; class QtMobility::QContactAction * QtMobility::QContactAction::action(class QtMobility::QContactActionDescriptor const &) - ?actionDescriptors@QContactAction@QtMobility@@SA?AV?$QList@VQContactActionDescriptor@QtMobility@@@@ABVQString@@0H@Z @ 274 NONAME ; class QList QtMobility::QContactAction::actionDescriptors(class QString const &, class QString const &, int) - ?actionName@QContactActionDescriptor@QtMobility@@QBE?AVQString@@XZ @ 275 NONAME ; class QString QtMobility::QContactActionDescriptor::actionName(void) const - ?actionName@QContactActionFilter@QtMobility@@QBE?AVQString@@XZ @ 276 NONAME ; class QString QtMobility::QContactActionFilter::actionName(void) const - ?addSorted@QContactManagerEngine@QtMobility@@SAXPAV?$QList@VQContact@QtMobility@@@@ABVQContact@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 277 NONAME ; void QtMobility::QContactManagerEngine::addSorted(class QList *, class QtMobility::QContact const &, class QList const &) - ?addedContacts@QContactChangeSet@QtMobility@@QAEAAV?$QSet@I@@XZ @ 278 NONAME ; class QSet & QtMobility::QContactChangeSet::addedContacts(void) - ?addedRelationshipsContacts@QContactChangeSet@QtMobility@@QAEAAV?$QSet@I@@XZ @ 279 NONAME ; class QSet & QtMobility::QContactChangeSet::addedRelationshipsContacts(void) - ?allowableValues@QContactDetailFieldDefinition@QtMobility@@QBE?AV?$QList@VQVariant@@@@XZ @ 280 NONAME ; class QList QtMobility::QContactDetailFieldDefinition::allowableValues(void) const - ?altitude@QContactGeoLocation@QtMobility@@QBENXZ @ 281 NONAME ; double QtMobility::QContactGeoLocation::altitude(void) const - ?altitude@QContactGeolocation@QtMobility@@QBENXZ @ 282 NONAME ; double QtMobility::QContactGeolocation::altitude(void) const - ?altitudeAccuracy@QContactGeoLocation@QtMobility@@QBENXZ @ 283 NONAME ; double QtMobility::QContactGeoLocation::altitudeAccuracy(void) const - ?altitudeAccuracy@QContactGeolocation@QtMobility@@QBENXZ @ 284 NONAME ; double QtMobility::QContactGeolocation::altitudeAccuracy(void) const - ?append@QContactIntersectionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 285 NONAME ; void QtMobility::QContactIntersectionFilter::append(class QtMobility::QContactFilter const &) - ?append@QContactUnionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 286 NONAME ; void QtMobility::QContactUnionFilter::append(class QtMobility::QContactFilter const &) - ?assign@QContactDetail@QtMobility@@IAEAAV12@ABV12@ABVQString@@@Z @ 287 NONAME ; class QtMobility::QContactDetail & QtMobility::QContactDetail::assign(class QtMobility::QContactDetail const &, class QString const &) - ?assistantName@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 288 NONAME ; class QString QtMobility::QContactOrganization::assistantName(void) const - ?availableActions@QContact@QtMobility@@QBE?AV?$QList@VQContactActionDescriptor@QtMobility@@@@ABVQString@@H@Z @ 289 NONAME ; class QList QtMobility::QContact::availableActions(class QString const &, int) const - ?availableActions@QContactAction@QtMobility@@SA?AVQStringList@@ABVQString@@H@Z @ 290 NONAME ; class QStringList QtMobility::QContactAction::availableActions(class QString const &, int) - ?availableManagers@QContactManager@QtMobility@@SA?AVQStringList@@XZ @ 291 NONAME ; class QStringList QtMobility::QContactManager::availableManagers(void) - ?avatar@QContactAvatar@QtMobility@@QBE?AVQString@@XZ @ 292 NONAME ; class QString QtMobility::QContactAvatar::avatar(void) const - ?blankPolicy@QContactSortOrder@QtMobility@@QBE?AW4BlankPolicy@12@XZ @ 293 NONAME ; enum QtMobility::QContactSortOrder::BlankPolicy QtMobility::QContactSortOrder::blankPolicy(void) const - ?buildUri@QContactManager@QtMobility@@SA?AVQString@@ABV3@ABV?$QMap@VQString@@V1@@@H@Z @ 294 NONAME ; class QString QtMobility::QContactManager::buildUri(class QString const &, class QMap const &, int) - ?calendarId@QContactAnniversary@QtMobility@@QBE?AVQString@@XZ @ 295 NONAME ; class QString QtMobility::QContactAnniversary::calendarId(void) const - ?cancel@QContactAbstractRequest@QtMobility@@QAE_NXZ @ 296 NONAME ; bool QtMobility::QContactAbstractRequest::cancel(void) - ?cancelRequest@QContactManagerEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@@Z @ 297 NONAME ; bool QtMobility::QContactManagerEngine::cancelRequest(class QtMobility::QContactAbstractRequest *) - ?cancelRequest@QContactMemoryEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@@Z @ 298 NONAME ; bool QtMobility::QContactMemoryEngine::cancelRequest(class QtMobility::QContactAbstractRequest *) - ?capabilities@QContactOnlineAccount@QtMobility@@QBE?AVQStringList@@XZ @ 299 NONAME ; class QStringList QtMobility::QContactOnlineAccount::capabilities(void) const - ?caseSensitivity@QContactSortOrder@QtMobility@@QBE?AW4CaseSensitivity@Qt@@XZ @ 300 NONAME ; enum Qt::CaseSensitivity QtMobility::QContactSortOrder::caseSensitivity(void) const - ?changedContacts@QContactChangeSet@QtMobility@@QAEAAV?$QSet@I@@XZ @ 301 NONAME ; class QSet & QtMobility::QContactChangeSet::changedContacts(void) - ?children@QContactFamily@QtMobility@@QBE?AVQStringList@@XZ @ 302 NONAME ; class QStringList QtMobility::QContactFamily::children(void) const - ?clear@QContactChangeSet@QtMobility@@QAEXXZ @ 303 NONAME ; void QtMobility::QContactChangeSet::clear(void) - ?clearDetails@QContact@QtMobility@@QAEXXZ @ 304 NONAME ; void QtMobility::QContact::clearDetails(void) - ?compareContact@QContactManagerEngine@QtMobility@@SAHABVQContact@2@0ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 305 NONAME ; int QtMobility::QContactManagerEngine::compareContact(class QtMobility::QContact const &, class QtMobility::QContact const &, class QList const &) - ?compareVariant@QContactManagerEngine@QtMobility@@SAHABVQVariant@@0W4CaseSensitivity@Qt@@@Z @ 306 NONAME ; int QtMobility::QContactManagerEngine::compareVariant(class QVariant const &, class QVariant const &, enum Qt::CaseSensitivity) - ?contact@QContactManager@QtMobility@@QBE?AVQContact@2@ABIABVQStringList@@@Z @ 307 NONAME ; class QtMobility::QContact QtMobility::QContactManager::contact(unsigned int const &, class QStringList const &) const - ?contact@QContactManagerEngine@QtMobility@@UBE?AVQContact@2@ABIAAW4Error@QContactManager@2@@Z @ 308 NONAME ; class QtMobility::QContact QtMobility::QContactManagerEngine::contact(unsigned int const &, enum QtMobility::QContactManager::Error &) const - ?contact@QContactManagerEngine@QtMobility@@UBE?AVQContact@2@ABIABVQStringList@@AAW4Error@QContactManager@2@@Z @ 309 NONAME ; class QtMobility::QContact QtMobility::QContactManagerEngine::contact(unsigned int const &, class QStringList const &, enum QtMobility::QContactManager::Error &) const - ?contact@QContactMemoryEngine@QtMobility@@UBE?AVQContact@2@ABIAAW4Error@QContactManager@2@@Z @ 310 NONAME ; class QtMobility::QContact QtMobility::QContactMemoryEngine::contact(unsigned int const &, enum QtMobility::QContactManager::Error &) const - ?contact@QContactMemoryEngine@QtMobility@@UBE?AVQContact@2@ABIABVQStringList@@AAW4Error@QContactManager@2@@Z @ 311 NONAME ; class QtMobility::QContact QtMobility::QContactMemoryEngine::contact(unsigned int const &, class QStringList const &, enum QtMobility::QContactManager::Error &) const - ?contactIds@QContactManager@QtMobility@@QBE?AV?$QList@I@@ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 312 NONAME ; class QList QtMobility::QContactManager::contactIds(class QList const &) const - ?contactIds@QContactManager@QtMobility@@QBE?AV?$QList@I@@ABVQContactFilter@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 313 NONAME ; class QList QtMobility::QContactManager::contactIds(class QtMobility::QContactFilter const &, class QList const &) const - ?contactIds@QContactManagerEngine@QtMobility@@UBE?AV?$QList@I@@ABV?$QList@VQContactSortOrder@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 314 NONAME ; class QList QtMobility::QContactManagerEngine::contactIds(class QList const &, enum QtMobility::QContactManager::Error &) const - ?contactIds@QContactManagerEngine@QtMobility@@UBE?AV?$QList@I@@ABVQContactFilter@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 315 NONAME ; class QList QtMobility::QContactManagerEngine::contactIds(class QtMobility::QContactFilter const &, class QList const &, enum QtMobility::QContactManager::Error &) const - ?contactIds@QContactMemoryEngine@QtMobility@@UBE?AV?$QList@I@@ABV?$QList@VQContactSortOrder@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 316 NONAME ; class QList QtMobility::QContactMemoryEngine::contactIds(class QList const &, enum QtMobility::QContactManager::Error &) const - ?contactIds@QContactRemoveRequest@QtMobility@@QBE?AV?$QList@I@@XZ @ 317 NONAME ; class QList QtMobility::QContactRemoveRequest::contactIds(void) const - ?contactType@QContactDetailDefinitionFetchRequest@QtMobility@@QBE?AVQString@@XZ @ 318 NONAME ; class QString QtMobility::QContactDetailDefinitionFetchRequest::contactType(void) const - ?contactType@QContactDetailDefinitionRemoveRequest@QtMobility@@QBE?AVQString@@XZ @ 319 NONAME ; class QString QtMobility::QContactDetailDefinitionRemoveRequest::contactType(void) const - ?contactType@QContactDetailDefinitionSaveRequest@QtMobility@@QBE?AVQString@@XZ @ 320 NONAME ; class QString QtMobility::QContactDetailDefinitionSaveRequest::contactType(void) const - ?contacts@QContactFetchRequest@QtMobility@@QBE?AV?$QList@VQContact@QtMobility@@@@XZ @ 321 NONAME ; class QList QtMobility::QContactFetchRequest::contacts(void) const - ?contacts@QContactManager@QtMobility@@QBE?AV?$QList@I@@ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 322 NONAME ; class QList QtMobility::QContactManager::contacts(class QList const &) const - ?contacts@QContactManager@QtMobility@@QBE?AV?$QList@I@@ABVQContactFilter@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 323 NONAME ; class QList QtMobility::QContactManager::contacts(class QtMobility::QContactFilter const &, class QList const &) const - ?contacts@QContactManager@QtMobility@@QBE?AV?$QList@VQContact@QtMobility@@@@ABV?$QList@VQContactSortOrder@QtMobility@@@@ABVQStringList@@@Z @ 324 NONAME ; class QList QtMobility::QContactManager::contacts(class QList const &, class QStringList const &) const - ?contacts@QContactManager@QtMobility@@QBE?AV?$QList@VQContact@QtMobility@@@@ABVQContactFilter@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@ABVQStringList@@@Z @ 325 NONAME ; class QList QtMobility::QContactManager::contacts(class QtMobility::QContactFilter const &, class QList const &, class QStringList const &) const - ?contacts@QContactManagerEngine@QtMobility@@UBE?AV?$QList@I@@ABV?$QList@VQContactSortOrder@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 326 NONAME ; class QList QtMobility::QContactManagerEngine::contacts(class QList const &, enum QtMobility::QContactManager::Error &) const - ?contacts@QContactManagerEngine@QtMobility@@UBE?AV?$QList@I@@ABVQContactFilter@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 327 NONAME ; class QList QtMobility::QContactManagerEngine::contacts(class QtMobility::QContactFilter const &, class QList const &, enum QtMobility::QContactManager::Error &) const - ?contacts@QContactManagerEngine@QtMobility@@UBE?AV?$QList@VQContact@QtMobility@@@@ABV?$QList@VQContactSortOrder@QtMobility@@@@ABVQStringList@@AAW4Error@QContactManager@2@@Z @ 328 NONAME ; class QList QtMobility::QContactManagerEngine::contacts(class QList const &, class QStringList const &, enum QtMobility::QContactManager::Error &) const - ?contacts@QContactManagerEngine@QtMobility@@UBE?AV?$QList@VQContact@QtMobility@@@@ABVQContactFilter@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@ABVQStringList@@AAW4Error@QContactManager@2@@Z @ 329 NONAME ; class QList QtMobility::QContactManagerEngine::contacts(class QtMobility::QContactFilter const &, class QList const &, class QStringList const &, enum QtMobility::QContactManager::Error &) const - ?contacts@QContactMemoryEngine@QtMobility@@UBE?AV?$QList@I@@ABV?$QList@VQContactSortOrder@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 330 NONAME ; class QList QtMobility::QContactMemoryEngine::contacts(class QList const &, enum QtMobility::QContactManager::Error &) const - ?contacts@QContactMemoryEngine@QtMobility@@UBE?AV?$QList@VQContact@QtMobility@@@@ABV?$QList@VQContactSortOrder@QtMobility@@@@ABVQStringList@@AAW4Error@QContactManager@2@@Z @ 331 NONAME ; class QList QtMobility::QContactMemoryEngine::contacts(class QList const &, class QStringList const &, enum QtMobility::QContactManager::Error &) const - ?contacts@QContactSaveRequest@QtMobility@@QBE?AV?$QList@VQContact@QtMobility@@@@XZ @ 332 NONAME ; class QList QtMobility::QContactSaveRequest::contacts(void) const - ?contactsAdded@QContactManager@QtMobility@@IAEXABV?$QList@I@@@Z @ 333 NONAME ; void QtMobility::QContactManager::contactsAdded(class QList const &) - ?contactsAdded@QContactManagerEngine@QtMobility@@IAEXABV?$QList@I@@@Z @ 334 NONAME ; void QtMobility::QContactManagerEngine::contactsAdded(class QList const &) - ?contactsChanged@QContactManager@QtMobility@@IAEXABV?$QList@I@@@Z @ 335 NONAME ; void QtMobility::QContactManager::contactsChanged(class QList const &) - ?contactsChanged@QContactManagerEngine@QtMobility@@IAEXABV?$QList@I@@@Z @ 336 NONAME ; void QtMobility::QContactManagerEngine::contactsChanged(class QList const &) - ?contactsRemoved@QContactManager@QtMobility@@IAEXABV?$QList@I@@@Z @ 337 NONAME ; void QtMobility::QContactManager::contactsRemoved(class QList const &) - ?contactsRemoved@QContactManagerEngine@QtMobility@@IAEXABV?$QList@I@@@Z @ 338 NONAME ; void QtMobility::QContactManagerEngine::contactsRemoved(class QList const &) - ?contexts@QContactDetail@QtMobility@@QBE?AVQStringList@@XZ @ 339 NONAME ; class QStringList QtMobility::QContactDetail::contexts(void) const - ?country@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 340 NONAME ; class QString QtMobility::QContactAddress::country(void) const - ?createEngine@QContactManager@QtMobility@@AAEXABVQString@@ABV?$QMap@VQString@@V1@@@@Z @ 341 NONAME ; void QtMobility::QContactManager::createEngine(class QString const &, class QMap const &) - ?createMemoryEngine@QContactMemoryEngine@QtMobility@@SAPAV12@ABV?$QMap@VQString@@V1@@@@Z @ 342 NONAME ; class QtMobility::QContactMemoryEngine * QtMobility::QContactMemoryEngine::createMemoryEngine(class QMap const &) - ?created@QContactTimestamp@QtMobility@@QBE?AVQDateTime@@XZ @ 343 NONAME ; class QDateTime QtMobility::QContactTimestamp::created(void) const - ?customLabel@QContactName@QtMobility@@QBE?AVQString@@XZ @ 344 NONAME ; class QString QtMobility::QContactName::customLabel(void) const - ?d_func@QContactActionFilter@QtMobility@@AAEPAVQContactActionFilterPrivate@2@XZ @ 345 NONAME ; class QtMobility::QContactActionFilterPrivate * QtMobility::QContactActionFilter::d_func(void) - ?d_func@QContactActionFilter@QtMobility@@ABEPBVQContactActionFilterPrivate@2@XZ @ 346 NONAME ; class QtMobility::QContactActionFilterPrivate const * QtMobility::QContactActionFilter::d_func(void) const - ?d_func@QContactChangeLogFilter@QtMobility@@AAEPAVQContactChangeLogFilterPrivate@2@XZ @ 347 NONAME ; class QtMobility::QContactChangeLogFilterPrivate * QtMobility::QContactChangeLogFilter::d_func(void) - ?d_func@QContactChangeLogFilter@QtMobility@@ABEPBVQContactChangeLogFilterPrivate@2@XZ @ 348 NONAME ; class QtMobility::QContactChangeLogFilterPrivate const * QtMobility::QContactChangeLogFilter::d_func(void) const - ?d_func@QContactDetailDefinitionFetchRequest@QtMobility@@AAEPAVQContactDetailDefinitionFetchRequestPrivate@2@XZ @ 349 NONAME ; class QtMobility::QContactDetailDefinitionFetchRequestPrivate * QtMobility::QContactDetailDefinitionFetchRequest::d_func(void) - ?d_func@QContactDetailDefinitionFetchRequest@QtMobility@@ABEPBVQContactDetailDefinitionFetchRequestPrivate@2@XZ @ 350 NONAME ; class QtMobility::QContactDetailDefinitionFetchRequestPrivate const * QtMobility::QContactDetailDefinitionFetchRequest::d_func(void) const - ?d_func@QContactDetailDefinitionRemoveRequest@QtMobility@@AAEPAVQContactDetailDefinitionRemoveRequestPrivate@2@XZ @ 351 NONAME ; class QtMobility::QContactDetailDefinitionRemoveRequestPrivate * QtMobility::QContactDetailDefinitionRemoveRequest::d_func(void) - ?d_func@QContactDetailDefinitionRemoveRequest@QtMobility@@ABEPBVQContactDetailDefinitionRemoveRequestPrivate@2@XZ @ 352 NONAME ; class QtMobility::QContactDetailDefinitionRemoveRequestPrivate const * QtMobility::QContactDetailDefinitionRemoveRequest::d_func(void) const - ?d_func@QContactDetailDefinitionSaveRequest@QtMobility@@AAEPAVQContactDetailDefinitionSaveRequestPrivate@2@XZ @ 353 NONAME ; class QtMobility::QContactDetailDefinitionSaveRequestPrivate * QtMobility::QContactDetailDefinitionSaveRequest::d_func(void) - ?d_func@QContactDetailDefinitionSaveRequest@QtMobility@@ABEPBVQContactDetailDefinitionSaveRequestPrivate@2@XZ @ 354 NONAME ; class QtMobility::QContactDetailDefinitionSaveRequestPrivate const * QtMobility::QContactDetailDefinitionSaveRequest::d_func(void) const - ?d_func@QContactDetailFilter@QtMobility@@AAEPAVQContactDetailFilterPrivate@2@XZ @ 355 NONAME ; class QtMobility::QContactDetailFilterPrivate * QtMobility::QContactDetailFilter::d_func(void) - ?d_func@QContactDetailFilter@QtMobility@@ABEPBVQContactDetailFilterPrivate@2@XZ @ 356 NONAME ; class QtMobility::QContactDetailFilterPrivate const * QtMobility::QContactDetailFilter::d_func(void) const - ?d_func@QContactDetailRangeFilter@QtMobility@@AAEPAVQContactDetailRangeFilterPrivate@2@XZ @ 357 NONAME ; class QtMobility::QContactDetailRangeFilterPrivate * QtMobility::QContactDetailRangeFilter::d_func(void) - ?d_func@QContactDetailRangeFilter@QtMobility@@ABEPBVQContactDetailRangeFilterPrivate@2@XZ @ 358 NONAME ; class QtMobility::QContactDetailRangeFilterPrivate const * QtMobility::QContactDetailRangeFilter::d_func(void) const - ?d_func@QContactFetchRequest@QtMobility@@AAEPAVQContactFetchRequestPrivate@2@XZ @ 359 NONAME ; class QtMobility::QContactFetchRequestPrivate * QtMobility::QContactFetchRequest::d_func(void) - ?d_func@QContactFetchRequest@QtMobility@@ABEPBVQContactFetchRequestPrivate@2@XZ @ 360 NONAME ; class QtMobility::QContactFetchRequestPrivate const * QtMobility::QContactFetchRequest::d_func(void) const - ?d_func@QContactIntersectionFilter@QtMobility@@AAEPAVQContactIntersectionFilterPrivate@2@XZ @ 361 NONAME ; class QtMobility::QContactIntersectionFilterPrivate * QtMobility::QContactIntersectionFilter::d_func(void) - ?d_func@QContactIntersectionFilter@QtMobility@@ABEPBVQContactIntersectionFilterPrivate@2@XZ @ 362 NONAME ; class QtMobility::QContactIntersectionFilterPrivate const * QtMobility::QContactIntersectionFilter::d_func(void) const - ?d_func@QContactLocalIdFetchRequest@QtMobility@@AAEPAVQContactLocalIdFetchRequestPrivate@2@XZ @ 363 NONAME ; class QtMobility::QContactLocalIdFetchRequestPrivate * QtMobility::QContactLocalIdFetchRequest::d_func(void) - ?d_func@QContactLocalIdFetchRequest@QtMobility@@ABEPBVQContactLocalIdFetchRequestPrivate@2@XZ @ 364 NONAME ; class QtMobility::QContactLocalIdFetchRequestPrivate const * QtMobility::QContactLocalIdFetchRequest::d_func(void) const - ?d_func@QContactLocalIdFilter@QtMobility@@AAEPAVQContactLocalIdFilterPrivate@2@XZ @ 365 NONAME ; class QtMobility::QContactLocalIdFilterPrivate * QtMobility::QContactLocalIdFilter::d_func(void) - ?d_func@QContactLocalIdFilter@QtMobility@@ABEPBVQContactLocalIdFilterPrivate@2@XZ @ 366 NONAME ; class QtMobility::QContactLocalIdFilterPrivate const * QtMobility::QContactLocalIdFilter::d_func(void) const - ?d_func@QContactRelationshipFetchRequest@QtMobility@@AAEPAVQContactRelationshipFetchRequestPrivate@2@XZ @ 367 NONAME ; class QtMobility::QContactRelationshipFetchRequestPrivate * QtMobility::QContactRelationshipFetchRequest::d_func(void) - ?d_func@QContactRelationshipFetchRequest@QtMobility@@ABEPBVQContactRelationshipFetchRequestPrivate@2@XZ @ 368 NONAME ; class QtMobility::QContactRelationshipFetchRequestPrivate const * QtMobility::QContactRelationshipFetchRequest::d_func(void) const - ?d_func@QContactRelationshipFilter@QtMobility@@AAEPAVQContactRelationshipFilterPrivate@2@XZ @ 369 NONAME ; class QtMobility::QContactRelationshipFilterPrivate * QtMobility::QContactRelationshipFilter::d_func(void) - ?d_func@QContactRelationshipFilter@QtMobility@@ABEPBVQContactRelationshipFilterPrivate@2@XZ @ 370 NONAME ; class QtMobility::QContactRelationshipFilterPrivate const * QtMobility::QContactRelationshipFilter::d_func(void) const - ?d_func@QContactRelationshipRemoveRequest@QtMobility@@AAEPAVQContactRelationshipRemoveRequestPrivate@2@XZ @ 371 NONAME ; class QtMobility::QContactRelationshipRemoveRequestPrivate * QtMobility::QContactRelationshipRemoveRequest::d_func(void) - ?d_func@QContactRelationshipRemoveRequest@QtMobility@@ABEPBVQContactRelationshipRemoveRequestPrivate@2@XZ @ 372 NONAME ; class QtMobility::QContactRelationshipRemoveRequestPrivate const * QtMobility::QContactRelationshipRemoveRequest::d_func(void) const - ?d_func@QContactRelationshipSaveRequest@QtMobility@@AAEPAVQContactRelationshipSaveRequestPrivate@2@XZ @ 373 NONAME ; class QtMobility::QContactRelationshipSaveRequestPrivate * QtMobility::QContactRelationshipSaveRequest::d_func(void) - ?d_func@QContactRelationshipSaveRequest@QtMobility@@ABEPBVQContactRelationshipSaveRequestPrivate@2@XZ @ 374 NONAME ; class QtMobility::QContactRelationshipSaveRequestPrivate const * QtMobility::QContactRelationshipSaveRequest::d_func(void) const - ?d_func@QContactRemoveRequest@QtMobility@@AAEPAVQContactRemoveRequestPrivate@2@XZ @ 375 NONAME ; class QtMobility::QContactRemoveRequestPrivate * QtMobility::QContactRemoveRequest::d_func(void) - ?d_func@QContactRemoveRequest@QtMobility@@ABEPBVQContactRemoveRequestPrivate@2@XZ @ 376 NONAME ; class QtMobility::QContactRemoveRequestPrivate const * QtMobility::QContactRemoveRequest::d_func(void) const - ?d_func@QContactSaveRequest@QtMobility@@AAEPAVQContactSaveRequestPrivate@2@XZ @ 377 NONAME ; class QtMobility::QContactSaveRequestPrivate * QtMobility::QContactSaveRequest::d_func(void) - ?d_func@QContactSaveRequest@QtMobility@@ABEPBVQContactSaveRequestPrivate@2@XZ @ 378 NONAME ; class QtMobility::QContactSaveRequestPrivate const * QtMobility::QContactSaveRequest::d_func(void) const - ?d_func@QContactUnionFilter@QtMobility@@AAEPAVQContactUnionFilterPrivate@2@XZ @ 379 NONAME ; class QtMobility::QContactUnionFilterPrivate * QtMobility::QContactUnionFilter::d_func(void) - ?d_func@QContactUnionFilter@QtMobility@@ABEPBVQContactUnionFilterPrivate@2@XZ @ 380 NONAME ; class QtMobility::QContactUnionFilterPrivate const * QtMobility::QContactUnionFilter::d_func(void) const - ?dataChanged@QContactChangeSet@QtMobility@@QAE_NXZ @ 381 NONAME ; bool QtMobility::QContactChangeSet::dataChanged(void) - ?dataChanged@QContactManager@QtMobility@@IAEXXZ @ 382 NONAME ; void QtMobility::QContactManager::dataChanged(void) - ?dataChanged@QContactManagerEngine@QtMobility@@IAEXXZ @ 383 NONAME ; void QtMobility::QContactManagerEngine::dataChanged(void) - ?dataType@QContactDetailFieldDefinition@QtMobility@@QBE?AW4Type@QVariant@@XZ @ 384 NONAME ; enum QVariant::Type QtMobility::QContactDetailFieldDefinition::dataType(void) const - ?date@QContactBirthday@QtMobility@@QBE?AVQDate@@XZ @ 385 NONAME ; class QDate QtMobility::QContactBirthday::date(void) const - ?definitionName@QContactDetail@QtMobility@@QBE?AVQString@@XZ @ 386 NONAME ; class QString QtMobility::QContactDetail::definitionName(void) const - ?definitionNames@QContactDetailDefinitionFetchRequest@QtMobility@@QBE?AVQStringList@@XZ @ 387 NONAME ; class QStringList QtMobility::QContactDetailDefinitionFetchRequest::definitionNames(void) const - ?definitionNames@QContactDetailDefinitionRemoveRequest@QtMobility@@QBE?AVQStringList@@XZ @ 388 NONAME ; class QStringList QtMobility::QContactDetailDefinitionRemoveRequest::definitionNames(void) const - ?definitionRestrictions@QContactFetchRequest@QtMobility@@QBE?AVQStringList@@XZ @ 389 NONAME ; class QStringList QtMobility::QContactFetchRequest::definitionRestrictions(void) const - ?definitions@QContactDetailDefinitionFetchRequest@QtMobility@@QBE?AV?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@XZ @ 390 NONAME ; class QMap QtMobility::QContactDetailDefinitionFetchRequest::definitions(void) const - ?definitions@QContactDetailDefinitionSaveRequest@QtMobility@@QBE?AV?$QList@VQContactDetailDefinition@QtMobility@@@@XZ @ 391 NONAME ; class QList QtMobility::QContactDetailDefinitionSaveRequest::definitions(void) const - ?department@QContactOrganization@QtMobility@@QBE?AVQStringList@@XZ @ 392 NONAME ; class QStringList QtMobility::QContactOrganization::department(void) const - ?deref@QContactMemoryEngine@QtMobility@@UAEXXZ @ 393 NONAME ; void QtMobility::QContactMemoryEngine::deref(void) - ?detail@QContact@QtMobility@@QBE?AVQContactDetail@2@ABVQString@@@Z @ 394 NONAME ; class QtMobility::QContactDetail QtMobility::QContact::detail(class QString const &) const - ?detailDefinition@QContactManager@QtMobility@@QBE?AVQContactDetailDefinition@2@ABVQString@@0@Z @ 395 NONAME ; class QtMobility::QContactDetailDefinition QtMobility::QContactManager::detailDefinition(class QString const &, class QString const &) const - ?detailDefinition@QContactManagerEngine@QtMobility@@UBE?AVQContactDetailDefinition@2@ABVQString@@0AAW4Error@QContactManager@2@@Z @ 396 NONAME ; class QtMobility::QContactDetailDefinition QtMobility::QContactManagerEngine::detailDefinition(class QString const &, class QString const &, enum QtMobility::QContactManager::Error &) const - ?detailDefinitionName@QContactDetailFilter@QtMobility@@QBE?AVQString@@XZ @ 397 NONAME ; class QString QtMobility::QContactDetailFilter::detailDefinitionName(void) const - ?detailDefinitionName@QContactDetailRangeFilter@QtMobility@@QBE?AVQString@@XZ @ 398 NONAME ; class QString QtMobility::QContactDetailRangeFilter::detailDefinitionName(void) const - ?detailDefinitionName@QContactSortOrder@QtMobility@@QBE?AVQString@@XZ @ 399 NONAME ; class QString QtMobility::QContactSortOrder::detailDefinitionName(void) const - ?detailDefinitions@QContactManager@QtMobility@@QBE?AV?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@ABVQString@@@Z @ 400 NONAME ; class QMap QtMobility::QContactManager::detailDefinitions(class QString const &) const - ?detailDefinitions@QContactManagerEngine@QtMobility@@UBE?AV?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@ABVQString@@AAW4Error@QContactManager@2@@Z @ 401 NONAME ; class QMap QtMobility::QContactManagerEngine::detailDefinitions(class QString const &, enum QtMobility::QContactManager::Error &) const - ?detailDefinitions@QContactMemoryEngine@QtMobility@@UBE?AV?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@ABVQString@@AAW4Error@QContactManager@2@@Z @ 402 NONAME ; class QMap QtMobility::QContactMemoryEngine::detailDefinitions(class QString const &, enum QtMobility::QContactManager::Error &) const - ?detailFieldName@QContactDetailFilter@QtMobility@@QBE?AVQString@@XZ @ 403 NONAME ; class QString QtMobility::QContactDetailFilter::detailFieldName(void) const - ?detailFieldName@QContactDetailRangeFilter@QtMobility@@QBE?AVQString@@XZ @ 404 NONAME ; class QString QtMobility::QContactDetailRangeFilter::detailFieldName(void) const - ?detailFieldName@QContactSortOrder@QtMobility@@QBE?AVQString@@XZ @ 405 NONAME ; class QString QtMobility::QContactSortOrder::detailFieldName(void) const - ?detailUri@QContactDetail@QtMobility@@QBE?AVQString@@XZ @ 406 NONAME ; class QString QtMobility::QContactDetail::detailUri(void) const - ?detailWithAction@QContact@QtMobility@@QBE?AVQContactDetail@2@ABVQString@@@Z @ 407 NONAME ; class QtMobility::QContactDetail QtMobility::QContact::detailWithAction(class QString const &) const - ?details@QContact@QtMobility@@QBE?AV?$QList@VQContactDetail@QtMobility@@@@ABVQString@@00@Z @ 408 NONAME ; class QList QtMobility::QContact::details(class QString const &, class QString const &, class QString const &) const - ?details@QContact@QtMobility@@QBE?AV?$QList@VQContactDetail@QtMobility@@@@ABVQString@@@Z @ 409 NONAME ; class QList QtMobility::QContact::details(class QString const &) const - ?detailsWithAction@QContact@QtMobility@@QBE?AV?$QList@VQContactDetail@QtMobility@@@@ABVQString@@@Z @ 410 NONAME ; class QList QtMobility::QContact::detailsWithAction(class QString const &) const - ?direction@QContactSortOrder@QtMobility@@QBE?AW4SortOrder@Qt@@XZ @ 411 NONAME ; enum Qt::SortOrder QtMobility::QContactSortOrder::direction(void) const - ?displayLabel@QContact@QtMobility@@QBE?AVQString@@XZ @ 412 NONAME ; class QString QtMobility::QContact::displayLabel(void) const - ?emailAddress@QContactEmailAddress@QtMobility@@QBE?AVQString@@XZ @ 413 NONAME ; class QString QtMobility::QContactEmailAddress::emailAddress(void) const - ?emitSignals@QContactChangeSet@QtMobility@@QAEXPAVQContactManagerEngine@2@@Z @ 414 NONAME ; void QtMobility::QContactChangeSet::emitSignals(class QtMobility::QContactManagerEngine *) - ?error@QContactAbstractRequest@QtMobility@@QBE?AW4Error@QContactManager@2@XZ @ 415 NONAME ; enum QtMobility::QContactManager::Error QtMobility::QContactAbstractRequest::error(void) const - ?error@QContactManager@QtMobility@@QBE?AW4Error@12@XZ @ 416 NONAME ; enum QtMobility::QContactManager::Error QtMobility::QContactManager::error(void) const - ?errorMap@QContactDetailDefinitionFetchRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 417 NONAME ; class QMap QtMobility::QContactDetailDefinitionFetchRequest::errorMap(void) const - ?errorMap@QContactDetailDefinitionRemoveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 418 NONAME ; class QMap QtMobility::QContactDetailDefinitionRemoveRequest::errorMap(void) const - ?errorMap@QContactDetailDefinitionSaveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 419 NONAME ; class QMap QtMobility::QContactDetailDefinitionSaveRequest::errorMap(void) const - ?errorMap@QContactRelationshipRemoveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 420 NONAME ; class QMap QtMobility::QContactRelationshipRemoveRequest::errorMap(void) const - ?errorMap@QContactRelationshipSaveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 421 NONAME ; class QMap QtMobility::QContactRelationshipSaveRequest::errorMap(void) const - ?errorMap@QContactRemoveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 422 NONAME ; class QMap QtMobility::QContactRemoveRequest::errorMap(void) const - ?errorMap@QContactSaveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 423 NONAME ; class QMap QtMobility::QContactSaveRequest::errorMap(void) const - ?errors@QContactAbstractRequest@QtMobility@@QBE?AV?$QList@W4Error@QContactManager@QtMobility@@@@XZ @ 424 NONAME ; class QList QtMobility::QContactAbstractRequest::errors(void) const - ?event@QContactAnniversary@QtMobility@@QBE?AVQString@@XZ @ 425 NONAME ; class QString QtMobility::QContactAnniversary::event(void) const - ?eventType@QContactChangeLogFilter@QtMobility@@QBE?AW4EventType@12@XZ @ 426 NONAME ; enum QtMobility::QContactChangeLogFilter::EventType QtMobility::QContactChangeLogFilter::eventType(void) const - ?fields@QContactDetailDefinition@QtMobility@@QAEAAV?$QMap@VQString@@VQContactDetailFieldDefinition@QtMobility@@@@XZ @ 427 NONAME ; class QMap & QtMobility::QContactDetailDefinition::fields(void) - ?fields@QContactDetailDefinition@QtMobility@@QBE?AV?$QMap@VQString@@VQContactDetailFieldDefinition@QtMobility@@@@XZ @ 428 NONAME ; class QMap QtMobility::QContactDetailDefinition::fields(void) const - ?filter@QContactFetchRequest@QtMobility@@QBE?AVQContactFilter@2@XZ @ 429 NONAME ; class QtMobility::QContactFilter QtMobility::QContactFetchRequest::filter(void) const - ?filter@QContactLocalIdFetchRequest@QtMobility@@QBE?AVQContactFilter@2@XZ @ 430 NONAME ; class QtMobility::QContactFilter QtMobility::QContactLocalIdFetchRequest::filter(void) const - ?filter@QContactRemoveRequest@QtMobility@@QBE?AVQContactFilter@2@XZ @ 431 NONAME ; class QtMobility::QContactFilter QtMobility::QContactRemoveRequest::filter(void) const - ?filterSupported@QContactManager@QtMobility@@QBE_NABVQContactFilter@2@@Z @ 432 NONAME ; bool QtMobility::QContactManager::filterSupported(class QtMobility::QContactFilter const &) const - ?filterSupported@QContactManagerEngine@QtMobility@@UBE_NABVQContactFilter@2@@Z @ 433 NONAME ; bool QtMobility::QContactManagerEngine::filterSupported(class QtMobility::QContactFilter const &) const - ?filterSupported@QContactMemoryEngine@QtMobility@@UBE_NABVQContactFilter@2@@Z @ 434 NONAME ; bool QtMobility::QContactMemoryEngine::filterSupported(class QtMobility::QContactFilter const &) const - ?filters@QContactIntersectionFilter@QtMobility@@QBE?AV?$QList@VQContactFilter@QtMobility@@@@XZ @ 435 NONAME ; class QList QtMobility::QContactIntersectionFilter::filters(void) const - ?filters@QContactUnionFilter@QtMobility@@QBE?AV?$QList@VQContactFilter@QtMobility@@@@XZ @ 436 NONAME ; class QList QtMobility::QContactUnionFilter::filters(void) const - ?first@QContactName@QtMobility@@QBE?AVQString@@XZ @ 437 NONAME ; class QString QtMobility::QContactName::first(void) const - ?first@QContactRelationship@QtMobility@@QBE?AVQContactId@2@XZ @ 438 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationship::first(void) const - ?first@QContactRelationshipFetchRequest@QtMobility@@QBE?AVQContactId@2@XZ @ 439 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationshipFetchRequest::first(void) const - ?first@QContactRelationshipRemoveRequest@QtMobility@@QBE?AVQContactId@2@XZ @ 440 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationshipRemoveRequest::first(void) const - ?firstName@QContactName@QtMobility@@QBE?AVQString@@XZ @ 441 NONAME ; class QString QtMobility::QContactName::firstName(void) const - ?fromUri@QContactManager@QtMobility@@SAPAV12@ABVQString@@PAVQObject@@@Z @ 442 NONAME ; class QtMobility::QContactManager * QtMobility::QContactManager::fromUri(class QString const &, class QObject *) - ?gender@QContactGender@QtMobility@@QBE?AVQString@@XZ @ 443 NONAME ; class QString QtMobility::QContactGender::gender(void) const - ?getStaticMetaObject@QContactAbstractRequest@QtMobility@@SAABUQMetaObject@@XZ @ 444 NONAME ; struct QMetaObject const & QtMobility::QContactAbstractRequest::getStaticMetaObject(void) - ?getStaticMetaObject@QContactAction@QtMobility@@SAABUQMetaObject@@XZ @ 445 NONAME ; struct QMetaObject const & QtMobility::QContactAction::getStaticMetaObject(void) - ?getStaticMetaObject@QContactActionFactory@QtMobility@@SAABUQMetaObject@@XZ @ 446 NONAME ; struct QMetaObject const & QtMobility::QContactActionFactory::getStaticMetaObject(void) - ?getStaticMetaObject@QContactDetailDefinitionFetchRequest@QtMobility@@SAABUQMetaObject@@XZ @ 447 NONAME ; struct QMetaObject const & QtMobility::QContactDetailDefinitionFetchRequest::getStaticMetaObject(void) - ?getStaticMetaObject@QContactDetailDefinitionRemoveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 448 NONAME ; struct QMetaObject const & QtMobility::QContactDetailDefinitionRemoveRequest::getStaticMetaObject(void) - ?getStaticMetaObject@QContactDetailDefinitionSaveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 449 NONAME ; struct QMetaObject const & QtMobility::QContactDetailDefinitionSaveRequest::getStaticMetaObject(void) - ?getStaticMetaObject@QContactFetchRequest@QtMobility@@SAABUQMetaObject@@XZ @ 450 NONAME ; struct QMetaObject const & QtMobility::QContactFetchRequest::getStaticMetaObject(void) - ?getStaticMetaObject@QContactLocalIdFetchRequest@QtMobility@@SAABUQMetaObject@@XZ @ 451 NONAME ; struct QMetaObject const & QtMobility::QContactLocalIdFetchRequest::getStaticMetaObject(void) - ?getStaticMetaObject@QContactManager@QtMobility@@SAABUQMetaObject@@XZ @ 452 NONAME ; struct QMetaObject const & QtMobility::QContactManager::getStaticMetaObject(void) - ?getStaticMetaObject@QContactManagerEngine@QtMobility@@SAABUQMetaObject@@XZ @ 453 NONAME ; struct QMetaObject const & QtMobility::QContactManagerEngine::getStaticMetaObject(void) - ?getStaticMetaObject@QContactMemoryEngine@QtMobility@@SAABUQMetaObject@@XZ @ 454 NONAME ; struct QMetaObject const & QtMobility::QContactMemoryEngine::getStaticMetaObject(void) - ?getStaticMetaObject@QContactRelationshipFetchRequest@QtMobility@@SAABUQMetaObject@@XZ @ 455 NONAME ; struct QMetaObject const & QtMobility::QContactRelationshipFetchRequest::getStaticMetaObject(void) - ?getStaticMetaObject@QContactRelationshipRemoveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 456 NONAME ; struct QMetaObject const & QtMobility::QContactRelationshipRemoveRequest::getStaticMetaObject(void) - ?getStaticMetaObject@QContactRelationshipSaveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 457 NONAME ; struct QMetaObject const & QtMobility::QContactRelationshipSaveRequest::getStaticMetaObject(void) - ?getStaticMetaObject@QContactRemoveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 458 NONAME ; struct QMetaObject const & QtMobility::QContactRemoveRequest::getStaticMetaObject(void) - ?getStaticMetaObject@QContactSaveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 459 NONAME ; struct QMetaObject const & QtMobility::QContactSaveRequest::getStaticMetaObject(void) - ?guid@QContactGuid@QtMobility@@QBE?AVQString@@XZ @ 460 NONAME ; class QString QtMobility::QContactGuid::guid(void) const - ?hasFeature@QContactManager@QtMobility@@QBE_NW4ManagerFeature@12@ABVQString@@@Z @ 461 NONAME ; bool QtMobility::QContactManager::hasFeature(enum QtMobility::QContactManager::ManagerFeature, class QString const &) const - ?hasFeature@QContactManagerEngine@QtMobility@@UBE_NW4ManagerFeature@QContactManager@2@ABVQString@@@Z @ 462 NONAME ; bool QtMobility::QContactManagerEngine::hasFeature(enum QtMobility::QContactManager::ManagerFeature, class QString const &) const - ?hasFeature@QContactMemoryEngine@QtMobility@@UBE_NW4ManagerFeature@QContactManager@2@ABVQString@@@Z @ 463 NONAME ; bool QtMobility::QContactMemoryEngine::hasFeature(enum QtMobility::QContactManager::ManagerFeature, class QString const &) const - ?hasValue@QContactDetail@QtMobility@@QBE_NABVQString@@@Z @ 464 NONAME ; bool QtMobility::QContactDetail::hasValue(class QString const &) const - ?heading@QContactGeoLocation@QtMobility@@QBENXZ @ 465 NONAME ; double QtMobility::QContactGeoLocation::heading(void) const - ?heading@QContactGeolocation@QtMobility@@QBENXZ @ 466 NONAME ; double QtMobility::QContactGeolocation::heading(void) const - ?id@QContact@QtMobility@@QBE?AVQContactId@2@XZ @ 467 NONAME ; class QtMobility::QContactId QtMobility::QContact::id(void) const - ?ids@QContactLocalIdFetchRequest@QtMobility@@QBE?AV?$QList@I@@XZ @ 468 NONAME ; class QList QtMobility::QContactLocalIdFetchRequest::ids(void) const - ?ids@QContactLocalIdFilter@QtMobility@@QBE?AV?$QList@I@@XZ @ 469 NONAME ; class QList QtMobility::QContactLocalIdFilter::ids(void) const - ?implementationVersion@QContactActionDescriptor@QtMobility@@QBEHXZ @ 470 NONAME ; int QtMobility::QContactActionDescriptor::implementationVersion(void) const - ?implementationVersion@QContactActionFilter@QtMobility@@QBEHXZ @ 471 NONAME ; int QtMobility::QContactActionFilter::implementationVersion(void) const - ?implementationVersion@QContactManager@QtMobility@@QBEHXZ @ 472 NONAME ; int QtMobility::QContactManager::implementationVersion(void) const - ?implementationVersion@QContactManagerEngine@QtMobility@@UBEHXZ @ 473 NONAME ; int QtMobility::QContactManagerEngine::implementationVersion(void) const - ?implementationVersion@QContactMemoryEngine@QtMobility@@UBEHXZ @ 474 NONAME ; int QtMobility::QContactMemoryEngine::implementationVersion(void) const - ?insertField@QContactDetailDefinition@QtMobility@@QAEXABVQString@@ABVQContactDetailFieldDefinition@2@@Z @ 475 NONAME ; void QtMobility::QContactDetailDefinition::insertField(class QString const &, class QtMobility::QContactDetailFieldDefinition const &) - ?isActive@QContactAbstractRequest@QtMobility@@QBE_NXZ @ 476 NONAME ; bool QtMobility::QContactAbstractRequest::isActive(void) const - ?isCanceled@QContactAbstractRequest@QtMobility@@QBE_NXZ @ 477 NONAME ; bool QtMobility::QContactAbstractRequest::isCanceled(void) const - ?isEmpty@QContact@QtMobility@@QBE_NXZ @ 478 NONAME ; bool QtMobility::QContact::isEmpty(void) const - ?isEmpty@QContactActionDescriptor@QtMobility@@QBE_NXZ @ 479 NONAME ; bool QtMobility::QContactActionDescriptor::isEmpty(void) const - ?isEmpty@QContactDetail@QtMobility@@QBE_NXZ @ 480 NONAME ; bool QtMobility::QContactDetail::isEmpty(void) const - ?isEmpty@QContactDetailDefinition@QtMobility@@QBE_NXZ @ 481 NONAME ; bool QtMobility::QContactDetailDefinition::isEmpty(void) const - ?isFilterSupported@QContactManager@QtMobility@@QBE_NABVQContactFilter@2@@Z @ 482 NONAME ; bool QtMobility::QContactManager::isFilterSupported(class QtMobility::QContactFilter const &) const - ?isFilterSupported@QContactManagerEngine@QtMobility@@UBE_NABVQContactFilter@2@@Z @ 483 NONAME ; bool QtMobility::QContactManagerEngine::isFilterSupported(class QtMobility::QContactFilter const &) const - ?isFinished@QContactAbstractRequest@QtMobility@@QBE_NXZ @ 484 NONAME ; bool QtMobility::QContactAbstractRequest::isFinished(void) const - ?isInactive@QContactAbstractRequest@QtMobility@@QBE_NXZ @ 485 NONAME ; bool QtMobility::QContactAbstractRequest::isInactive(void) const - ?isPreferredDetail@QContact@QtMobility@@QBE_NABVQString@@ABVQContactDetail@2@@Z @ 486 NONAME ; bool QtMobility::QContact::isPreferredDetail(class QString const &, class QtMobility::QContactDetail const &) const - ?isUnique@QContactDetailDefinition@QtMobility@@QBE_NXZ @ 487 NONAME ; bool QtMobility::QContactDetailDefinition::isUnique(void) const - ?isValid@QContactSortOrder@QtMobility@@QBE_NXZ @ 488 NONAME ; bool QtMobility::QContactSortOrder::isValid(void) const - ?key@QContactDetail@QtMobility@@QBEHXZ @ 489 NONAME ; int QtMobility::QContactDetail::key(void) const - ?label@QContactDisplayLabel@QtMobility@@QBE?AVQString@@XZ @ 490 NONAME ; class QString QtMobility::QContactDisplayLabel::label(void) const - ?label@QContactGeoLocation@QtMobility@@QBE?AVQString@@XZ @ 491 NONAME ; class QString QtMobility::QContactGeoLocation::label(void) const - ?label@QContactGeolocation@QtMobility@@QBE?AVQString@@XZ @ 492 NONAME ; class QString QtMobility::QContactGeolocation::label(void) const - ?last@QContactName@QtMobility@@QBE?AVQString@@XZ @ 493 NONAME ; class QString QtMobility::QContactName::last(void) const - ?lastModified@QContactTimestamp@QtMobility@@QBE?AVQDateTime@@XZ @ 494 NONAME ; class QDateTime QtMobility::QContactTimestamp::lastModified(void) const - ?lastName@QContactName@QtMobility@@QBE?AVQString@@XZ @ 495 NONAME ; class QString QtMobility::QContactName::lastName(void) const - ?latitude@QContactGeoLocation@QtMobility@@QBENXZ @ 496 NONAME ; double QtMobility::QContactGeoLocation::latitude(void) const - ?latitude@QContactGeolocation@QtMobility@@QBENXZ @ 497 NONAME ; double QtMobility::QContactGeolocation::latitude(void) const - ?linkedDetailUris@QContactDetail@QtMobility@@QBE?AVQStringList@@XZ @ 498 NONAME ; class QStringList QtMobility::QContactDetail::linkedDetailUris(void) const - ?localId@QContact@QtMobility@@QBEIXZ @ 499 NONAME ; unsigned int QtMobility::QContact::localId(void) const - ?localId@QContactId@QtMobility@@QBEIXZ @ 500 NONAME ; unsigned int QtMobility::QContactId::localId(void) const - ?locality@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 501 NONAME ; class QString QtMobility::QContactAddress::locality(void) const - ?location@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 502 NONAME ; class QString QtMobility::QContactOrganization::location(void) const - ?logo@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 503 NONAME ; class QString QtMobility::QContactOrganization::logo(void) const - ?longitude@QContactGeoLocation@QtMobility@@QBENXZ @ 504 NONAME ; double QtMobility::QContactGeoLocation::longitude(void) const - ?longitude@QContactGeolocation@QtMobility@@QBENXZ @ 505 NONAME ; double QtMobility::QContactGeolocation::longitude(void) const - ?manager@QContactAbstractRequest@QtMobility@@QBEPAVQContactManager@2@XZ @ 506 NONAME ; class QtMobility::QContactManager * QtMobility::QContactAbstractRequest::manager(void) const - ?managerName@QContactManager@QtMobility@@QBE?AVQString@@XZ @ 507 NONAME ; class QString QtMobility::QContactManager::managerName(void) const - ?managerName@QContactManagerEngine@QtMobility@@UBE?AVQString@@XZ @ 508 NONAME ; class QString QtMobility::QContactManagerEngine::managerName(void) const - ?managerName@QContactMemoryEngine@QtMobility@@UBE?AVQString@@XZ @ 509 NONAME ; class QString QtMobility::QContactMemoryEngine::managerName(void) const - ?managerParameters@QContactManager@QtMobility@@QBE?AV?$QMap@VQString@@V1@@@XZ @ 510 NONAME ; class QMap QtMobility::QContactManager::managerParameters(void) const - ?managerParameters@QContactManagerEngine@QtMobility@@UBE?AV?$QMap@VQString@@V1@@@XZ @ 511 NONAME ; class QMap QtMobility::QContactManagerEngine::managerParameters(void) const - ?managerParameters@QContactMemoryEngine@QtMobility@@UBE?AV?$QMap@VQString@@V1@@@XZ @ 512 NONAME ; class QMap QtMobility::QContactMemoryEngine::managerParameters(void) const - ?managerUri@QContactId@QtMobility@@QBE?AVQString@@XZ @ 513 NONAME ; class QString QtMobility::QContactId::managerUri(void) const - ?managerUri@QContactManager@QtMobility@@QBE?AVQString@@XZ @ 514 NONAME ; class QString QtMobility::QContactManager::managerUri(void) const - ?managerUri@QContactManagerEngine@QtMobility@@QBE?AVQString@@XZ @ 515 NONAME ; class QString QtMobility::QContactManagerEngine::managerUri(void) const - ?managerVersion@QContactManager@QtMobility@@QBEHXZ @ 516 NONAME ; int QtMobility::QContactManager::managerVersion(void) const - ?managerVersion@QContactManagerEngine@QtMobility@@UBEHXZ @ 517 NONAME ; int QtMobility::QContactManagerEngine::managerVersion(void) const - ?match@QContactDisplayLabel@QtMobility@@SA?AVQContactFilter@2@ABVQString@@@Z @ 518 NONAME ; class QtMobility::QContactFilter QtMobility::QContactDisplayLabel::match(class QString const &) - ?match@QContactEmailAddress@QtMobility@@SA?AVQContactFilter@2@ABVQString@@@Z @ 519 NONAME ; class QtMobility::QContactFilter QtMobility::QContactEmailAddress::match(class QString const &) - ?match@QContactName@QtMobility@@SA?AVQContactFilter@2@ABVQString@@0@Z @ 520 NONAME ; class QtMobility::QContactFilter QtMobility::QContactName::match(class QString const &, class QString const &) - ?match@QContactName@QtMobility@@SA?AVQContactFilter@2@ABVQString@@@Z @ 521 NONAME ; class QtMobility::QContactFilter QtMobility::QContactName::match(class QString const &) - ?match@QContactPhoneNumber@QtMobility@@SA?AVQContactFilter@2@ABVQString@@@Z @ 522 NONAME ; class QtMobility::QContactFilter QtMobility::QContactPhoneNumber::match(class QString const &) - ?matchFlags@QContactDetailFilter@QtMobility@@QBE?AV?$QFlags@W4MatchFlag@QContactFilter@QtMobility@@@@XZ @ 523 NONAME ; class QFlags QtMobility::QContactDetailFilter::matchFlags(void) const - ?matchFlags@QContactDetailRangeFilter@QtMobility@@QBE?AV?$QFlags@W4MatchFlag@QContactFilter@QtMobility@@@@XZ @ 524 NONAME ; class QFlags QtMobility::QContactDetailRangeFilter::matchFlags(void) const - ?maxValue@QContactDetailRangeFilter@QtMobility@@QBE?AVQVariant@@XZ @ 525 NONAME ; class QVariant QtMobility::QContactDetailRangeFilter::maxValue(void) const - ?metaObject@QContactAbstractRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 526 NONAME ; struct QMetaObject const * QtMobility::QContactAbstractRequest::metaObject(void) const - ?metaObject@QContactAction@QtMobility@@UBEPBUQMetaObject@@XZ @ 527 NONAME ; struct QMetaObject const * QtMobility::QContactAction::metaObject(void) const - ?metaObject@QContactActionFactory@QtMobility@@UBEPBUQMetaObject@@XZ @ 528 NONAME ; struct QMetaObject const * QtMobility::QContactActionFactory::metaObject(void) const - ?metaObject@QContactDetailDefinitionFetchRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 529 NONAME ; struct QMetaObject const * QtMobility::QContactDetailDefinitionFetchRequest::metaObject(void) const - ?metaObject@QContactDetailDefinitionRemoveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 530 NONAME ; struct QMetaObject const * QtMobility::QContactDetailDefinitionRemoveRequest::metaObject(void) const - ?metaObject@QContactDetailDefinitionSaveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 531 NONAME ; struct QMetaObject const * QtMobility::QContactDetailDefinitionSaveRequest::metaObject(void) const - ?metaObject@QContactFetchRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 532 NONAME ; struct QMetaObject const * QtMobility::QContactFetchRequest::metaObject(void) const - ?metaObject@QContactLocalIdFetchRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 533 NONAME ; struct QMetaObject const * QtMobility::QContactLocalIdFetchRequest::metaObject(void) const - ?metaObject@QContactManager@QtMobility@@UBEPBUQMetaObject@@XZ @ 534 NONAME ; struct QMetaObject const * QtMobility::QContactManager::metaObject(void) const - ?metaObject@QContactManagerEngine@QtMobility@@UBEPBUQMetaObject@@XZ @ 535 NONAME ; struct QMetaObject const * QtMobility::QContactManagerEngine::metaObject(void) const - ?metaObject@QContactMemoryEngine@QtMobility@@UBEPBUQMetaObject@@XZ @ 536 NONAME ; struct QMetaObject const * QtMobility::QContactMemoryEngine::metaObject(void) const - ?metaObject@QContactRelationshipFetchRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 537 NONAME ; struct QMetaObject const * QtMobility::QContactRelationshipFetchRequest::metaObject(void) const - ?metaObject@QContactRelationshipRemoveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 538 NONAME ; struct QMetaObject const * QtMobility::QContactRelationshipRemoveRequest::metaObject(void) const - ?metaObject@QContactRelationshipSaveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 539 NONAME ; struct QMetaObject const * QtMobility::QContactRelationshipSaveRequest::metaObject(void) const - ?metaObject@QContactRemoveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 540 NONAME ; struct QMetaObject const * QtMobility::QContactRemoveRequest::metaObject(void) const - ?metaObject@QContactSaveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 541 NONAME ; struct QMetaObject const * QtMobility::QContactSaveRequest::metaObject(void) const - ?middle@QContactName@QtMobility@@QBE?AVQString@@XZ @ 542 NONAME ; class QString QtMobility::QContactName::middle(void) const - ?middleName@QContactName@QtMobility@@QBE?AVQString@@XZ @ 543 NONAME ; class QString QtMobility::QContactName::middleName(void) const - ?minValue@QContactDetailRangeFilter@QtMobility@@QBE?AVQVariant@@XZ @ 544 NONAME ; class QVariant QtMobility::QContactDetailRangeFilter::minValue(void) const - ?name@QContactDetailDefinition@QtMobility@@QBE?AVQString@@XZ @ 545 NONAME ; class QString QtMobility::QContactDetailDefinition::name(void) const - ?name@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 546 NONAME ; class QString QtMobility::QContactOrganization::name(void) const - ?names@QContactDetailDefinitionFetchRequest@QtMobility@@QBE?AVQStringList@@XZ @ 547 NONAME ; class QStringList QtMobility::QContactDetailDefinitionFetchRequest::names(void) const - ?names@QContactDetailDefinitionRemoveRequest@QtMobility@@QBE?AVQStringList@@XZ @ 548 NONAME ; class QStringList QtMobility::QContactDetailDefinitionRemoveRequest::names(void) const - ?nickname@QContactNickname@QtMobility@@QBE?AVQString@@XZ @ 549 NONAME ; class QString QtMobility::QContactNickname::nickname(void) const - ?nickname@QContactOnlineAccount@QtMobility@@QBE?AVQString@@XZ @ 550 NONAME ; class QString QtMobility::QContactOnlineAccount::nickname(void) const - ?note@QContactNote@QtMobility@@QBE?AVQString@@XZ @ 551 NONAME ; class QString QtMobility::QContactNote::note(void) const - ?number@QContactPhoneNumber@QtMobility@@QBE?AVQString@@XZ @ 552 NONAME ; class QString QtMobility::QContactPhoneNumber::number(void) const - ?oldAndNewSelfContactId@QContactChangeSet@QtMobility@@QAEAAU?$QPair@II@@XZ @ 553 NONAME ; struct QPair & QtMobility::QContactChangeSet::oldAndNewSelfContactId(void) - ?originalDate@QContactAnniversary@QtMobility@@QBE?AVQDate@@XZ @ 554 NONAME ; class QDate QtMobility::QContactAnniversary::originalDate(void) const - ?otherParticipantId@QContactRelationshipFilter@QtMobility@@QBE?AVQContactId@2@XZ @ 555 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationshipFilter::otherParticipantId(void) const - ?parseUri@QContactManager@QtMobility@@SA_NABVQString@@PAV3@PAV?$QMap@VQString@@V1@@@@Z @ 556 NONAME ; bool QtMobility::QContactManager::parseUri(class QString const &, class QString *, class QMap *) - ?participant@QContactRelationshipFetchRequest@QtMobility@@QBE?AVQContactId@2@XZ @ 557 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationshipFetchRequest::participant(void) const - ?participantRole@QContactRelationshipFetchRequest@QtMobility@@QBE?AW4Role@QContactRelationshipFilter@2@XZ @ 558 NONAME ; enum QtMobility::QContactRelationshipFilter::Role QtMobility::QContactRelationshipFetchRequest::participantRole(void) const - ?performAsynchronousOperation@QContactMemoryEngine@QtMobility@@AAEXXZ @ 559 NONAME ; void QtMobility::QContactMemoryEngine::performAsynchronousOperation(void) - ?pixmap@QContactAvatar@QtMobility@@QBE?AVQPixmap@@XZ @ 560 NONAME ; class QPixmap QtMobility::QContactAvatar::pixmap(void) const - ?postOfficeBox@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 561 NONAME ; class QString QtMobility::QContactAddress::postOfficeBox(void) const - ?postcode@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 562 NONAME ; class QString QtMobility::QContactAddress::postcode(void) const - ?preferredActions@QContactDetail@QtMobility@@QBE?AV?$QList@VQContactActionDescriptor@QtMobility@@@@XZ @ 563 NONAME ; class QList QtMobility::QContactDetail::preferredActions(void) const - ?preferredDetail@QContact@QtMobility@@QBE?AVQContactDetail@2@ABVQString@@@Z @ 564 NONAME ; class QtMobility::QContactDetail QtMobility::QContact::preferredDetail(class QString const &) const - ?prefix@QContactName@QtMobility@@QBE?AVQString@@XZ @ 565 NONAME ; class QString QtMobility::QContactName::prefix(void) const - ?prepend@QContactIntersectionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 566 NONAME ; void QtMobility::QContactIntersectionFilter::prepend(class QtMobility::QContactFilter const &) - ?prepend@QContactUnionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 567 NONAME ; void QtMobility::QContactUnionFilter::prepend(class QtMobility::QContactFilter const &) - ?presence@QContactOnlineAccount@QtMobility@@QBE?AVQString@@XZ @ 568 NONAME ; class QString QtMobility::QContactOnlineAccount::presence(void) const - ?progress@QContactAction@QtMobility@@IAEXW4State@12@ABV?$QMap@VQString@@VQVariant@@@@@Z @ 569 NONAME ; void QtMobility::QContactAction::progress(enum QtMobility::QContactAction::State, class QMap const &) - ?progress@QContactAction@QtMobility@@IAEXW4Status@12@ABV?$QMap@VQString@@VQVariant@@@@@Z @ 570 NONAME ; void QtMobility::QContactAction::progress(enum QtMobility::QContactAction::Status, class QMap const &) - ?progress@QContactDetailDefinitionFetchRequest@QtMobility@@IAEXPAV12@_N@Z @ 571 NONAME ; void QtMobility::QContactDetailDefinitionFetchRequest::progress(class QtMobility::QContactDetailDefinitionFetchRequest *, bool) - ?progress@QContactDetailDefinitionRemoveRequest@QtMobility@@IAEXPAV12@@Z @ 572 NONAME ; void QtMobility::QContactDetailDefinitionRemoveRequest::progress(class QtMobility::QContactDetailDefinitionRemoveRequest *) - ?progress@QContactDetailDefinitionSaveRequest@QtMobility@@IAEXPAV12@@Z @ 573 NONAME ; void QtMobility::QContactDetailDefinitionSaveRequest::progress(class QtMobility::QContactDetailDefinitionSaveRequest *) - ?progress@QContactFetchRequest@QtMobility@@IAEXPAV12@_N@Z @ 574 NONAME ; void QtMobility::QContactFetchRequest::progress(class QtMobility::QContactFetchRequest *, bool) - ?progress@QContactLocalIdFetchRequest@QtMobility@@IAEXPAV12@_N@Z @ 575 NONAME ; void QtMobility::QContactLocalIdFetchRequest::progress(class QtMobility::QContactLocalIdFetchRequest *, bool) - ?progress@QContactRelationshipFetchRequest@QtMobility@@IAEXPAV12@_N@Z @ 576 NONAME ; void QtMobility::QContactRelationshipFetchRequest::progress(class QtMobility::QContactRelationshipFetchRequest *, bool) - ?progress@QContactRelationshipRemoveRequest@QtMobility@@IAEXPAV12@@Z @ 577 NONAME ; void QtMobility::QContactRelationshipRemoveRequest::progress(class QtMobility::QContactRelationshipRemoveRequest *) - ?progress@QContactRelationshipSaveRequest@QtMobility@@IAEXPAV12@@Z @ 578 NONAME ; void QtMobility::QContactRelationshipSaveRequest::progress(class QtMobility::QContactRelationshipSaveRequest *) - ?progress@QContactRemoveRequest@QtMobility@@IAEXPAV12@@Z @ 579 NONAME ; void QtMobility::QContactRemoveRequest::progress(class QtMobility::QContactRemoveRequest *) - ?progress@QContactSaveRequest@QtMobility@@IAEXPAV12@@Z @ 580 NONAME ; void QtMobility::QContactSaveRequest::progress(class QtMobility::QContactSaveRequest *) + ??0QContactFetchHint@QtMobility@@QAE@ABV01@@Z @ 42 NONAME ; QtMobility::QContactFetchHint::QContactFetchHint(class QtMobility::QContactFetchHint const &) + ??0QContactFetchHint@QtMobility@@QAE@XZ @ 43 NONAME ; QtMobility::QContactFetchHint::QContactFetchHint(void) + ??0QContactFetchRequest@QtMobility@@QAE@XZ @ 44 NONAME ; QtMobility::QContactFetchRequest::QContactFetchRequest(void) + ??0QContactFilter@QtMobility@@IAE@PAVQContactFilterPrivate@1@@Z @ 45 NONAME ; QtMobility::QContactFilter::QContactFilter(class QtMobility::QContactFilterPrivate *) + ??0QContactFilter@QtMobility@@QAE@ABV01@@Z @ 46 NONAME ; QtMobility::QContactFilter::QContactFilter(class QtMobility::QContactFilter const &) + ??0QContactFilter@QtMobility@@QAE@XZ @ 47 NONAME ; QtMobility::QContactFilter::QContactFilter(void) + ??0QContactGender@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 48 NONAME ; QtMobility::QContactGender::QContactGender(class QtMobility::QContactDetail const &) + ??0QContactGender@QtMobility@@QAE@XZ @ 49 NONAME ; QtMobility::QContactGender::QContactGender(void) + ??0QContactGeoLocation@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 50 NONAME ; QtMobility::QContactGeoLocation::QContactGeoLocation(class QtMobility::QContactDetail const &) + ??0QContactGeoLocation@QtMobility@@QAE@XZ @ 51 NONAME ; QtMobility::QContactGeoLocation::QContactGeoLocation(void) + ??0QContactGlobalPresence@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 52 NONAME ; QtMobility::QContactGlobalPresence::QContactGlobalPresence(class QtMobility::QContactDetail const &) + ??0QContactGlobalPresence@QtMobility@@QAE@XZ @ 53 NONAME ; QtMobility::QContactGlobalPresence::QContactGlobalPresence(void) + ??0QContactGuid@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 54 NONAME ; QtMobility::QContactGuid::QContactGuid(class QtMobility::QContactDetail const &) + ??0QContactGuid@QtMobility@@QAE@XZ @ 55 NONAME ; QtMobility::QContactGuid::QContactGuid(void) + ??0QContactId@QtMobility@@QAE@ABV01@@Z @ 56 NONAME ; QtMobility::QContactId::QContactId(class QtMobility::QContactId const &) + ??0QContactId@QtMobility@@QAE@XZ @ 57 NONAME ; QtMobility::QContactId::QContactId(void) + ??0QContactIntersectionFilter@QtMobility@@QAE@ABVQContactFilter@1@@Z @ 58 NONAME ; QtMobility::QContactIntersectionFilter::QContactIntersectionFilter(class QtMobility::QContactFilter const &) + ??0QContactIntersectionFilter@QtMobility@@QAE@XZ @ 59 NONAME ; QtMobility::QContactIntersectionFilter::QContactIntersectionFilter(void) + ??0QContactInvalidFilter@QtMobility@@QAE@ABVQContactFilter@1@@Z @ 60 NONAME ; QtMobility::QContactInvalidFilter::QContactInvalidFilter(class QtMobility::QContactFilter const &) + ??0QContactInvalidFilter@QtMobility@@QAE@XZ @ 61 NONAME ; QtMobility::QContactInvalidFilter::QContactInvalidFilter(void) + ??0QContactLocalIdFetchRequest@QtMobility@@QAE@XZ @ 62 NONAME ; QtMobility::QContactLocalIdFetchRequest::QContactLocalIdFetchRequest(void) + ??0QContactLocalIdFilter@QtMobility@@QAE@ABVQContactFilter@1@@Z @ 63 NONAME ; QtMobility::QContactLocalIdFilter::QContactLocalIdFilter(class QtMobility::QContactFilter const &) + ??0QContactLocalIdFilter@QtMobility@@QAE@XZ @ 64 NONAME ; QtMobility::QContactLocalIdFilter::QContactLocalIdFilter(void) + ??0QContactManager@QtMobility@@QAE@ABVQString@@ABV?$QMap@VQString@@V1@@@PAVQObject@@@Z @ 65 NONAME ; QtMobility::QContactManager::QContactManager(class QString const &, class QMap const &, class QObject *) + ??0QContactManager@QtMobility@@QAE@ABVQString@@HABV?$QMap@VQString@@V1@@@PAVQObject@@@Z @ 66 NONAME ; QtMobility::QContactManager::QContactManager(class QString const &, int, class QMap const &, class QObject *) + ??0QContactManager@QtMobility@@QAE@PAVQObject@@@Z @ 67 NONAME ; QtMobility::QContactManager::QContactManager(class QObject *) + ??0QContactManagerEngine@QtMobility@@QAE@XZ @ 68 NONAME ; QtMobility::QContactManagerEngine::QContactManagerEngine(void) + ??0QContactName@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 69 NONAME ; QtMobility::QContactName::QContactName(class QtMobility::QContactDetail const &) + ??0QContactName@QtMobility@@QAE@XZ @ 70 NONAME ; QtMobility::QContactName::QContactName(void) + ??0QContactNickname@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 71 NONAME ; QtMobility::QContactNickname::QContactNickname(class QtMobility::QContactDetail const &) + ??0QContactNickname@QtMobility@@QAE@XZ @ 72 NONAME ; QtMobility::QContactNickname::QContactNickname(void) + ??0QContactNote@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 73 NONAME ; QtMobility::QContactNote::QContactNote(class QtMobility::QContactDetail const &) + ??0QContactNote@QtMobility@@QAE@XZ @ 74 NONAME ; QtMobility::QContactNote::QContactNote(void) + ??0QContactOnlineAccount@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 75 NONAME ; QtMobility::QContactOnlineAccount::QContactOnlineAccount(class QtMobility::QContactDetail const &) + ??0QContactOnlineAccount@QtMobility@@QAE@XZ @ 76 NONAME ; QtMobility::QContactOnlineAccount::QContactOnlineAccount(void) + ??0QContactOrganization@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 77 NONAME ; QtMobility::QContactOrganization::QContactOrganization(class QtMobility::QContactDetail const &) + ??0QContactOrganization@QtMobility@@QAE@XZ @ 78 NONAME ; QtMobility::QContactOrganization::QContactOrganization(void) + ??0QContactPhoneNumber@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 79 NONAME ; QtMobility::QContactPhoneNumber::QContactPhoneNumber(class QtMobility::QContactDetail const &) + ??0QContactPhoneNumber@QtMobility@@QAE@XZ @ 80 NONAME ; QtMobility::QContactPhoneNumber::QContactPhoneNumber(void) + ??0QContactPresence@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 81 NONAME ; QtMobility::QContactPresence::QContactPresence(class QtMobility::QContactDetail const &) + ??0QContactPresence@QtMobility@@QAE@XZ @ 82 NONAME ; QtMobility::QContactPresence::QContactPresence(void) + ??0QContactRelationship@QtMobility@@QAE@ABV01@@Z @ 83 NONAME ; QtMobility::QContactRelationship::QContactRelationship(class QtMobility::QContactRelationship const &) + ??0QContactRelationship@QtMobility@@QAE@XZ @ 84 NONAME ; QtMobility::QContactRelationship::QContactRelationship(void) + ??0QContactRelationshipFetchRequest@QtMobility@@QAE@XZ @ 85 NONAME ; QtMobility::QContactRelationshipFetchRequest::QContactRelationshipFetchRequest(void) + ??0QContactRelationshipFilter@QtMobility@@QAE@ABVQContactFilter@1@@Z @ 86 NONAME ; QtMobility::QContactRelationshipFilter::QContactRelationshipFilter(class QtMobility::QContactFilter const &) + ??0QContactRelationshipFilter@QtMobility@@QAE@XZ @ 87 NONAME ; QtMobility::QContactRelationshipFilter::QContactRelationshipFilter(void) + ??0QContactRelationshipRemoveRequest@QtMobility@@QAE@XZ @ 88 NONAME ; QtMobility::QContactRelationshipRemoveRequest::QContactRelationshipRemoveRequest(void) + ??0QContactRelationshipSaveRequest@QtMobility@@QAE@XZ @ 89 NONAME ; QtMobility::QContactRelationshipSaveRequest::QContactRelationshipSaveRequest(void) + ??0QContactRemoveRequest@QtMobility@@QAE@XZ @ 90 NONAME ; QtMobility::QContactRemoveRequest::QContactRemoveRequest(void) + ??0QContactRingtone@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 91 NONAME ; QtMobility::QContactRingtone::QContactRingtone(class QtMobility::QContactDetail const &) + ??0QContactRingtone@QtMobility@@QAE@XZ @ 92 NONAME ; QtMobility::QContactRingtone::QContactRingtone(void) + ??0QContactSaveRequest@QtMobility@@QAE@XZ @ 93 NONAME ; QtMobility::QContactSaveRequest::QContactSaveRequest(void) + ??0QContactSortOrder@QtMobility@@QAE@ABV01@@Z @ 94 NONAME ; QtMobility::QContactSortOrder::QContactSortOrder(class QtMobility::QContactSortOrder const &) + ??0QContactSortOrder@QtMobility@@QAE@XZ @ 95 NONAME ; QtMobility::QContactSortOrder::QContactSortOrder(void) + ??0QContactSyncTarget@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 96 NONAME ; QtMobility::QContactSyncTarget::QContactSyncTarget(class QtMobility::QContactDetail const &) + ??0QContactSyncTarget@QtMobility@@QAE@XZ @ 97 NONAME ; QtMobility::QContactSyncTarget::QContactSyncTarget(void) + ??0QContactTag@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 98 NONAME ; QtMobility::QContactTag::QContactTag(class QtMobility::QContactDetail const &) + ??0QContactTag@QtMobility@@QAE@XZ @ 99 NONAME ; QtMobility::QContactTag::QContactTag(void) + ??0QContactThumbnail@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 100 NONAME ; QtMobility::QContactThumbnail::QContactThumbnail(class QtMobility::QContactDetail const &) + ??0QContactThumbnail@QtMobility@@QAE@XZ @ 101 NONAME ; QtMobility::QContactThumbnail::QContactThumbnail(void) + ??0QContactTimestamp@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 102 NONAME ; QtMobility::QContactTimestamp::QContactTimestamp(class QtMobility::QContactDetail const &) + ??0QContactTimestamp@QtMobility@@QAE@XZ @ 103 NONAME ; QtMobility::QContactTimestamp::QContactTimestamp(void) + ??0QContactType@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 104 NONAME ; QtMobility::QContactType::QContactType(class QtMobility::QContactDetail const &) + ??0QContactType@QtMobility@@QAE@XZ @ 105 NONAME ; QtMobility::QContactType::QContactType(void) + ??0QContactUnionFilter@QtMobility@@QAE@ABVQContactFilter@1@@Z @ 106 NONAME ; QtMobility::QContactUnionFilter::QContactUnionFilter(class QtMobility::QContactFilter const &) + ??0QContactUnionFilter@QtMobility@@QAE@XZ @ 107 NONAME ; QtMobility::QContactUnionFilter::QContactUnionFilter(void) + ??0QContactUrl@QtMobility@@QAE@ABVQContactDetail@1@@Z @ 108 NONAME ; QtMobility::QContactUrl::QContactUrl(class QtMobility::QContactDetail const &) + ??0QContactUrl@QtMobility@@QAE@XZ @ 109 NONAME ; QtMobility::QContactUrl::QContactUrl(void) + ??1QContact@QtMobility@@QAE@XZ @ 110 NONAME ; QtMobility::QContact::~QContact(void) + ??1QContactAbstractRequest@QtMobility@@UAE@XZ @ 111 NONAME ; QtMobility::QContactAbstractRequest::~QContactAbstractRequest(void) + ??1QContactAction@QtMobility@@UAE@XZ @ 112 NONAME ; QtMobility::QContactAction::~QContactAction(void) + ??1QContactActionDescriptor@QtMobility@@QAE@XZ @ 113 NONAME ; QtMobility::QContactActionDescriptor::~QContactActionDescriptor(void) + ??1QContactActionFactory@QtMobility@@UAE@XZ @ 114 NONAME ; QtMobility::QContactActionFactory::~QContactActionFactory(void) + ??1QContactActionFilter@QtMobility@@UAE@XZ @ 115 NONAME ; QtMobility::QContactActionFilter::~QContactActionFilter(void) + ??1QContactAddress@QtMobility@@UAE@XZ @ 116 NONAME ; QtMobility::QContactAddress::~QContactAddress(void) + ??1QContactAnniversary@QtMobility@@UAE@XZ @ 117 NONAME ; QtMobility::QContactAnniversary::~QContactAnniversary(void) + ??1QContactAvatar@QtMobility@@UAE@XZ @ 118 NONAME ; QtMobility::QContactAvatar::~QContactAvatar(void) + ??1QContactBirthday@QtMobility@@UAE@XZ @ 119 NONAME ; QtMobility::QContactBirthday::~QContactBirthday(void) + ??1QContactChangeLogFilter@QtMobility@@UAE@XZ @ 120 NONAME ; QtMobility::QContactChangeLogFilter::~QContactChangeLogFilter(void) + ??1QContactChangeSet@QtMobility@@QAE@XZ @ 121 NONAME ; QtMobility::QContactChangeSet::~QContactChangeSet(void) + ??1QContactDetail@QtMobility@@UAE@XZ @ 122 NONAME ; QtMobility::QContactDetail::~QContactDetail(void) + ??1QContactDetailDefinition@QtMobility@@QAE@XZ @ 123 NONAME ; QtMobility::QContactDetailDefinition::~QContactDetailDefinition(void) + ??1QContactDetailDefinitionFetchRequest@QtMobility@@UAE@XZ @ 124 NONAME ; QtMobility::QContactDetailDefinitionFetchRequest::~QContactDetailDefinitionFetchRequest(void) + ??1QContactDetailDefinitionRemoveRequest@QtMobility@@UAE@XZ @ 125 NONAME ; QtMobility::QContactDetailDefinitionRemoveRequest::~QContactDetailDefinitionRemoveRequest(void) + ??1QContactDetailDefinitionSaveRequest@QtMobility@@UAE@XZ @ 126 NONAME ; QtMobility::QContactDetailDefinitionSaveRequest::~QContactDetailDefinitionSaveRequest(void) + ??1QContactDetailFieldDefinition@QtMobility@@QAE@XZ @ 127 NONAME ; QtMobility::QContactDetailFieldDefinition::~QContactDetailFieldDefinition(void) + ??1QContactDetailFilter@QtMobility@@UAE@XZ @ 128 NONAME ; QtMobility::QContactDetailFilter::~QContactDetailFilter(void) + ??1QContactDetailRangeFilter@QtMobility@@UAE@XZ @ 129 NONAME ; QtMobility::QContactDetailRangeFilter::~QContactDetailRangeFilter(void) + ??1QContactDisplayLabel@QtMobility@@UAE@XZ @ 130 NONAME ; QtMobility::QContactDisplayLabel::~QContactDisplayLabel(void) + ??1QContactEmailAddress@QtMobility@@UAE@XZ @ 131 NONAME ; QtMobility::QContactEmailAddress::~QContactEmailAddress(void) + ??1QContactFamily@QtMobility@@UAE@XZ @ 132 NONAME ; QtMobility::QContactFamily::~QContactFamily(void) + ??1QContactFetchHint@QtMobility@@QAE@XZ @ 133 NONAME ; QtMobility::QContactFetchHint::~QContactFetchHint(void) + ??1QContactFetchRequest@QtMobility@@UAE@XZ @ 134 NONAME ; QtMobility::QContactFetchRequest::~QContactFetchRequest(void) + ??1QContactFilter@QtMobility@@UAE@XZ @ 135 NONAME ; QtMobility::QContactFilter::~QContactFilter(void) + ??1QContactGender@QtMobility@@UAE@XZ @ 136 NONAME ; QtMobility::QContactGender::~QContactGender(void) + ??1QContactGeoLocation@QtMobility@@UAE@XZ @ 137 NONAME ; QtMobility::QContactGeoLocation::~QContactGeoLocation(void) + ??1QContactGlobalPresence@QtMobility@@UAE@XZ @ 138 NONAME ; QtMobility::QContactGlobalPresence::~QContactGlobalPresence(void) + ??1QContactGuid@QtMobility@@UAE@XZ @ 139 NONAME ; QtMobility::QContactGuid::~QContactGuid(void) + ??1QContactId@QtMobility@@QAE@XZ @ 140 NONAME ; QtMobility::QContactId::~QContactId(void) + ??1QContactIntersectionFilter@QtMobility@@UAE@XZ @ 141 NONAME ; QtMobility::QContactIntersectionFilter::~QContactIntersectionFilter(void) + ??1QContactInvalidFilter@QtMobility@@UAE@XZ @ 142 NONAME ; QtMobility::QContactInvalidFilter::~QContactInvalidFilter(void) + ??1QContactLocalIdFetchRequest@QtMobility@@UAE@XZ @ 143 NONAME ; QtMobility::QContactLocalIdFetchRequest::~QContactLocalIdFetchRequest(void) + ??1QContactLocalIdFilter@QtMobility@@UAE@XZ @ 144 NONAME ; QtMobility::QContactLocalIdFilter::~QContactLocalIdFilter(void) + ??1QContactManager@QtMobility@@UAE@XZ @ 145 NONAME ; QtMobility::QContactManager::~QContactManager(void) + ??1QContactManagerEngine@QtMobility@@UAE@XZ @ 146 NONAME ; QtMobility::QContactManagerEngine::~QContactManagerEngine(void) + ??1QContactManagerEngineFactory@QtMobility@@UAE@XZ @ 147 NONAME ; QtMobility::QContactManagerEngineFactory::~QContactManagerEngineFactory(void) + ??1QContactName@QtMobility@@UAE@XZ @ 148 NONAME ; QtMobility::QContactName::~QContactName(void) + ??1QContactNickname@QtMobility@@UAE@XZ @ 149 NONAME ; QtMobility::QContactNickname::~QContactNickname(void) + ??1QContactNote@QtMobility@@UAE@XZ @ 150 NONAME ; QtMobility::QContactNote::~QContactNote(void) + ??1QContactOnlineAccount@QtMobility@@UAE@XZ @ 151 NONAME ; QtMobility::QContactOnlineAccount::~QContactOnlineAccount(void) + ??1QContactOrganization@QtMobility@@UAE@XZ @ 152 NONAME ; QtMobility::QContactOrganization::~QContactOrganization(void) + ??1QContactPhoneNumber@QtMobility@@UAE@XZ @ 153 NONAME ; QtMobility::QContactPhoneNumber::~QContactPhoneNumber(void) + ??1QContactPresence@QtMobility@@UAE@XZ @ 154 NONAME ; QtMobility::QContactPresence::~QContactPresence(void) + ??1QContactRelationship@QtMobility@@QAE@XZ @ 155 NONAME ; QtMobility::QContactRelationship::~QContactRelationship(void) + ??1QContactRelationshipFetchRequest@QtMobility@@UAE@XZ @ 156 NONAME ; QtMobility::QContactRelationshipFetchRequest::~QContactRelationshipFetchRequest(void) + ??1QContactRelationshipFilter@QtMobility@@UAE@XZ @ 157 NONAME ; QtMobility::QContactRelationshipFilter::~QContactRelationshipFilter(void) + ??1QContactRelationshipRemoveRequest@QtMobility@@UAE@XZ @ 158 NONAME ; QtMobility::QContactRelationshipRemoveRequest::~QContactRelationshipRemoveRequest(void) + ??1QContactRelationshipSaveRequest@QtMobility@@UAE@XZ @ 159 NONAME ; QtMobility::QContactRelationshipSaveRequest::~QContactRelationshipSaveRequest(void) + ??1QContactRemoveRequest@QtMobility@@UAE@XZ @ 160 NONAME ; QtMobility::QContactRemoveRequest::~QContactRemoveRequest(void) + ??1QContactRingtone@QtMobility@@UAE@XZ @ 161 NONAME ; QtMobility::QContactRingtone::~QContactRingtone(void) + ??1QContactSaveRequest@QtMobility@@UAE@XZ @ 162 NONAME ; QtMobility::QContactSaveRequest::~QContactSaveRequest(void) + ??1QContactSortOrder@QtMobility@@QAE@XZ @ 163 NONAME ; QtMobility::QContactSortOrder::~QContactSortOrder(void) + ??1QContactSyncTarget@QtMobility@@UAE@XZ @ 164 NONAME ; QtMobility::QContactSyncTarget::~QContactSyncTarget(void) + ??1QContactTag@QtMobility@@UAE@XZ @ 165 NONAME ; QtMobility::QContactTag::~QContactTag(void) + ??1QContactThumbnail@QtMobility@@UAE@XZ @ 166 NONAME ; QtMobility::QContactThumbnail::~QContactThumbnail(void) + ??1QContactTimestamp@QtMobility@@UAE@XZ @ 167 NONAME ; QtMobility::QContactTimestamp::~QContactTimestamp(void) + ??1QContactType@QtMobility@@UAE@XZ @ 168 NONAME ; QtMobility::QContactType::~QContactType(void) + ??1QContactUnionFilter@QtMobility@@UAE@XZ @ 169 NONAME ; QtMobility::QContactUnionFilter::~QContactUnionFilter(void) + ??1QContactUrl@QtMobility@@UAE@XZ @ 170 NONAME ; QtMobility::QContactUrl::~QContactUrl(void) + ??4QContact@QtMobility@@QAEAAV01@ABV01@@Z @ 171 NONAME ; class QtMobility::QContact & QtMobility::QContact::operator=(class QtMobility::QContact const &) + ??4QContactActionDescriptor@QtMobility@@QAEAAV01@ABV01@@Z @ 172 NONAME ; class QtMobility::QContactActionDescriptor & QtMobility::QContactActionDescriptor::operator=(class QtMobility::QContactActionDescriptor const &) + ??4QContactAddress@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 173 NONAME ; class QtMobility::QContactAddress & QtMobility::QContactAddress::operator=(class QtMobility::QContactDetail const &) + ??4QContactAnniversary@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 174 NONAME ; class QtMobility::QContactAnniversary & QtMobility::QContactAnniversary::operator=(class QtMobility::QContactDetail const &) + ??4QContactAvatar@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 175 NONAME ; class QtMobility::QContactAvatar & QtMobility::QContactAvatar::operator=(class QtMobility::QContactDetail const &) + ??4QContactBirthday@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 176 NONAME ; class QtMobility::QContactBirthday & QtMobility::QContactBirthday::operator=(class QtMobility::QContactDetail const &) + ??4QContactChangeSet@QtMobility@@QAEAAV01@ABV01@@Z @ 177 NONAME ; class QtMobility::QContactChangeSet & QtMobility::QContactChangeSet::operator=(class QtMobility::QContactChangeSet const &) + ??4QContactDetail@QtMobility@@QAEAAV01@ABV01@@Z @ 178 NONAME ; class QtMobility::QContactDetail & QtMobility::QContactDetail::operator=(class QtMobility::QContactDetail const &) + ??4QContactDetailDefinition@QtMobility@@QAEAAV01@ABV01@@Z @ 179 NONAME ; class QtMobility::QContactDetailDefinition & QtMobility::QContactDetailDefinition::operator=(class QtMobility::QContactDetailDefinition const &) + ??4QContactDetailFieldDefinition@QtMobility@@QAEAAV01@ABV01@@Z @ 180 NONAME ; class QtMobility::QContactDetailFieldDefinition & QtMobility::QContactDetailFieldDefinition::operator=(class QtMobility::QContactDetailFieldDefinition const &) + ??4QContactDisplayLabel@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 181 NONAME ; class QtMobility::QContactDisplayLabel & QtMobility::QContactDisplayLabel::operator=(class QtMobility::QContactDetail const &) + ??4QContactEmailAddress@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 182 NONAME ; class QtMobility::QContactEmailAddress & QtMobility::QContactEmailAddress::operator=(class QtMobility::QContactDetail const &) + ??4QContactFamily@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 183 NONAME ; class QtMobility::QContactFamily & QtMobility::QContactFamily::operator=(class QtMobility::QContactDetail const &) + ??4QContactFetchHint@QtMobility@@QAEAAV01@ABV01@@Z @ 184 NONAME ; class QtMobility::QContactFetchHint & QtMobility::QContactFetchHint::operator=(class QtMobility::QContactFetchHint const &) + ??4QContactFilter@QtMobility@@QAEAAV01@ABV01@@Z @ 185 NONAME ; class QtMobility::QContactFilter & QtMobility::QContactFilter::operator=(class QtMobility::QContactFilter const &) + ??4QContactGender@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 186 NONAME ; class QtMobility::QContactGender & QtMobility::QContactGender::operator=(class QtMobility::QContactDetail const &) + ??4QContactGeoLocation@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 187 NONAME ; class QtMobility::QContactGeoLocation & QtMobility::QContactGeoLocation::operator=(class QtMobility::QContactDetail const &) + ??4QContactGlobalPresence@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 188 NONAME ; class QtMobility::QContactGlobalPresence & QtMobility::QContactGlobalPresence::operator=(class QtMobility::QContactDetail const &) + ??4QContactGuid@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 189 NONAME ; class QtMobility::QContactGuid & QtMobility::QContactGuid::operator=(class QtMobility::QContactDetail const &) + ??4QContactId@QtMobility@@QAEAAV01@ABV01@@Z @ 190 NONAME ; class QtMobility::QContactId & QtMobility::QContactId::operator=(class QtMobility::QContactId const &) + ??4QContactName@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 191 NONAME ; class QtMobility::QContactName & QtMobility::QContactName::operator=(class QtMobility::QContactDetail const &) + ??4QContactNickname@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 192 NONAME ; class QtMobility::QContactNickname & QtMobility::QContactNickname::operator=(class QtMobility::QContactDetail const &) + ??4QContactNote@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 193 NONAME ; class QtMobility::QContactNote & QtMobility::QContactNote::operator=(class QtMobility::QContactDetail const &) + ??4QContactOnlineAccount@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 194 NONAME ; class QtMobility::QContactOnlineAccount & QtMobility::QContactOnlineAccount::operator=(class QtMobility::QContactDetail const &) + ??4QContactOrganization@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 195 NONAME ; class QtMobility::QContactOrganization & QtMobility::QContactOrganization::operator=(class QtMobility::QContactDetail const &) + ??4QContactPhoneNumber@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 196 NONAME ; class QtMobility::QContactPhoneNumber & QtMobility::QContactPhoneNumber::operator=(class QtMobility::QContactDetail const &) + ??4QContactPresence@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 197 NONAME ; class QtMobility::QContactPresence & QtMobility::QContactPresence::operator=(class QtMobility::QContactDetail const &) + ??4QContactRelationship@QtMobility@@QAEAAV01@ABV01@@Z @ 198 NONAME ; class QtMobility::QContactRelationship & QtMobility::QContactRelationship::operator=(class QtMobility::QContactRelationship const &) + ??4QContactRingtone@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 199 NONAME ; class QtMobility::QContactRingtone & QtMobility::QContactRingtone::operator=(class QtMobility::QContactDetail const &) + ??4QContactSortOrder@QtMobility@@QAEAAV01@ABV01@@Z @ 200 NONAME ; class QtMobility::QContactSortOrder & QtMobility::QContactSortOrder::operator=(class QtMobility::QContactSortOrder const &) + ??4QContactSyncTarget@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 201 NONAME ; class QtMobility::QContactSyncTarget & QtMobility::QContactSyncTarget::operator=(class QtMobility::QContactDetail const &) + ??4QContactTag@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 202 NONAME ; class QtMobility::QContactTag & QtMobility::QContactTag::operator=(class QtMobility::QContactDetail const &) + ??4QContactThumbnail@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 203 NONAME ; class QtMobility::QContactThumbnail & QtMobility::QContactThumbnail::operator=(class QtMobility::QContactDetail const &) + ??4QContactTimestamp@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 204 NONAME ; class QtMobility::QContactTimestamp & QtMobility::QContactTimestamp::operator=(class QtMobility::QContactDetail const &) + ??4QContactType@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 205 NONAME ; class QtMobility::QContactType & QtMobility::QContactType::operator=(class QtMobility::QContactDetail const &) + ??4QContactUrl@QtMobility@@QAEAAV01@ABVQContactDetail@1@@Z @ 206 NONAME ; class QtMobility::QContactUrl & QtMobility::QContactUrl::operator=(class QtMobility::QContactDetail const &) + ??6QContactIntersectionFilter@QtMobility@@QAEAAV01@ABVQContactFilter@1@@Z @ 207 NONAME ; class QtMobility::QContactIntersectionFilter & QtMobility::QContactIntersectionFilter::operator<<(class QtMobility::QContactFilter const &) + ??6QContactUnionFilter@QtMobility@@QAEAAV01@ABVQContactFilter@1@@Z @ 208 NONAME ; class QtMobility::QContactUnionFilter & QtMobility::QContactUnionFilter::operator<<(class QtMobility::QContactFilter const &) + ??6QtMobility@@YA?AVQDebug@@V1@ABVQContact@0@@Z @ 209 NONAME ; class QDebug QtMobility::operator<<(class QDebug, class QtMobility::QContact const &) + ??6QtMobility@@YA?AVQDebug@@V1@ABVQContactDetail@0@@Z @ 210 NONAME ; class QDebug QtMobility::operator<<(class QDebug, class QtMobility::QContactDetail const &) + ??6QtMobility@@YA?AVQDebug@@V1@ABVQContactId@0@@Z @ 211 NONAME ; class QDebug QtMobility::operator<<(class QDebug, class QtMobility::QContactId const &) + ??6QtMobility@@YA?AVQDebug@@V1@ABVQContactRelationship@0@@Z @ 212 NONAME ; class QDebug QtMobility::operator<<(class QDebug, class QtMobility::QContactRelationship const &) + ??8QContact@QtMobility@@QBE_NABV01@@Z @ 213 NONAME ; bool QtMobility::QContact::operator==(class QtMobility::QContact const &) const + ??8QContactActionDescriptor@QtMobility@@QBE_NABV01@@Z @ 214 NONAME ; bool QtMobility::QContactActionDescriptor::operator==(class QtMobility::QContactActionDescriptor const &) const + ??8QContactDetail@QtMobility@@QBE_NABV01@@Z @ 215 NONAME ; bool QtMobility::QContactDetail::operator==(class QtMobility::QContactDetail const &) const + ??8QContactDetailDefinition@QtMobility@@QBE_NABV01@@Z @ 216 NONAME ; bool QtMobility::QContactDetailDefinition::operator==(class QtMobility::QContactDetailDefinition const &) const + ??8QContactDetailFieldDefinition@QtMobility@@QBE_NABV01@@Z @ 217 NONAME ; bool QtMobility::QContactDetailFieldDefinition::operator==(class QtMobility::QContactDetailFieldDefinition const &) const + ??8QContactFilter@QtMobility@@QBE_NABV01@@Z @ 218 NONAME ; bool QtMobility::QContactFilter::operator==(class QtMobility::QContactFilter const &) const + ??8QContactId@QtMobility@@QBE_NABV01@@Z @ 219 NONAME ; bool QtMobility::QContactId::operator==(class QtMobility::QContactId const &) const + ??8QContactRelationship@QtMobility@@QBE_NABV01@@Z @ 220 NONAME ; bool QtMobility::QContactRelationship::operator==(class QtMobility::QContactRelationship const &) const + ??8QContactSortOrder@QtMobility@@QBE_NABV01@@Z @ 221 NONAME ; bool QtMobility::QContactSortOrder::operator==(class QtMobility::QContactSortOrder const &) const + ??9QContact@QtMobility@@QBE_NABV01@@Z @ 222 NONAME ; bool QtMobility::QContact::operator!=(class QtMobility::QContact const &) const + ??9QContactActionDescriptor@QtMobility@@QBE_NABV01@@Z @ 223 NONAME ; bool QtMobility::QContactActionDescriptor::operator!=(class QtMobility::QContactActionDescriptor const &) const + ??9QContactDetail@QtMobility@@QBE_NABV01@@Z @ 224 NONAME ; bool QtMobility::QContactDetail::operator!=(class QtMobility::QContactDetail const &) const + ??9QContactDetailDefinition@QtMobility@@QBE_NABV01@@Z @ 225 NONAME ; bool QtMobility::QContactDetailDefinition::operator!=(class QtMobility::QContactDetailDefinition const &) const + ??9QContactDetailFieldDefinition@QtMobility@@QBE_NABV01@@Z @ 226 NONAME ; bool QtMobility::QContactDetailFieldDefinition::operator!=(class QtMobility::QContactDetailFieldDefinition const &) const + ??9QContactFilter@QtMobility@@QBE_NABV01@@Z @ 227 NONAME ; bool QtMobility::QContactFilter::operator!=(class QtMobility::QContactFilter const &) const + ??9QContactId@QtMobility@@QBE_NABV01@@Z @ 228 NONAME ; bool QtMobility::QContactId::operator!=(class QtMobility::QContactId const &) const + ??9QContactRelationship@QtMobility@@QBE_NABV01@@Z @ 229 NONAME ; bool QtMobility::QContactRelationship::operator!=(class QtMobility::QContactRelationship const &) const + ??9QContactSortOrder@QtMobility@@QBE_NABV01@@Z @ 230 NONAME ; bool QtMobility::QContactSortOrder::operator!=(class QtMobility::QContactSortOrder const &) const + ??BQContactSortOrder@QtMobility@@QBE?AV?$QList@VQContactSortOrder@QtMobility@@@@XZ @ 231 NONAME ; QtMobility::QContactSortOrder::operator class QList(void) const + ??IQtMobility@@YA?BVQContactFilter@0@ABV10@0@Z @ 232 NONAME ; class QtMobility::QContactFilter const QtMobility::operator&(class QtMobility::QContactFilter const &, class QtMobility::QContactFilter const &) + ??MQContactActionDescriptor@QtMobility@@QBE_NABV01@@Z @ 233 NONAME ; bool QtMobility::QContactActionDescriptor::operator<(class QtMobility::QContactActionDescriptor const &) const + ??MQContactId@QtMobility@@QBE_NABV01@@Z @ 234 NONAME ; bool QtMobility::QContactId::operator<(class QtMobility::QContactId const &) const + ??UQtMobility@@YA?BVQContactFilter@0@ABV10@0@Z @ 235 NONAME ; class QtMobility::QContactFilter const QtMobility::operator|(class QtMobility::QContactFilter const &, class QtMobility::QContactFilter const &) + ??_EQContact@QtMobility@@QAE@I@Z @ 236 NONAME ; QtMobility::QContact::~QContact(unsigned int) + ??_EQContactAbstractRequest@QtMobility@@UAE@I@Z @ 237 NONAME ; QtMobility::QContactAbstractRequest::~QContactAbstractRequest(unsigned int) + ??_EQContactAction@QtMobility@@UAE@I@Z @ 238 NONAME ; QtMobility::QContactAction::~QContactAction(unsigned int) + ??_EQContactActionDescriptor@QtMobility@@QAE@I@Z @ 239 NONAME ; QtMobility::QContactActionDescriptor::~QContactActionDescriptor(unsigned int) + ??_EQContactActionFactory@QtMobility@@UAE@I@Z @ 240 NONAME ; QtMobility::QContactActionFactory::~QContactActionFactory(unsigned int) + ??_EQContactActionFilter@QtMobility@@UAE@I@Z @ 241 NONAME ; QtMobility::QContactActionFilter::~QContactActionFilter(unsigned int) + ??_EQContactAddress@QtMobility@@UAE@I@Z @ 242 NONAME ; QtMobility::QContactAddress::~QContactAddress(unsigned int) + ??_EQContactAnniversary@QtMobility@@UAE@I@Z @ 243 NONAME ; QtMobility::QContactAnniversary::~QContactAnniversary(unsigned int) + ??_EQContactAvatar@QtMobility@@UAE@I@Z @ 244 NONAME ; QtMobility::QContactAvatar::~QContactAvatar(unsigned int) + ??_EQContactBirthday@QtMobility@@UAE@I@Z @ 245 NONAME ; QtMobility::QContactBirthday::~QContactBirthday(unsigned int) + ??_EQContactChangeLogFilter@QtMobility@@UAE@I@Z @ 246 NONAME ; QtMobility::QContactChangeLogFilter::~QContactChangeLogFilter(unsigned int) + ??_EQContactDetail@QtMobility@@UAE@I@Z @ 247 NONAME ; QtMobility::QContactDetail::~QContactDetail(unsigned int) + ??_EQContactDetailDefinition@QtMobility@@QAE@I@Z @ 248 NONAME ; QtMobility::QContactDetailDefinition::~QContactDetailDefinition(unsigned int) + ??_EQContactDetailDefinitionFetchRequest@QtMobility@@UAE@I@Z @ 249 NONAME ; QtMobility::QContactDetailDefinitionFetchRequest::~QContactDetailDefinitionFetchRequest(unsigned int) + ??_EQContactDetailDefinitionRemoveRequest@QtMobility@@UAE@I@Z @ 250 NONAME ; QtMobility::QContactDetailDefinitionRemoveRequest::~QContactDetailDefinitionRemoveRequest(unsigned int) + ??_EQContactDetailDefinitionSaveRequest@QtMobility@@UAE@I@Z @ 251 NONAME ; QtMobility::QContactDetailDefinitionSaveRequest::~QContactDetailDefinitionSaveRequest(unsigned int) + ??_EQContactDetailFilter@QtMobility@@UAE@I@Z @ 252 NONAME ; QtMobility::QContactDetailFilter::~QContactDetailFilter(unsigned int) + ??_EQContactDetailRangeFilter@QtMobility@@UAE@I@Z @ 253 NONAME ; QtMobility::QContactDetailRangeFilter::~QContactDetailRangeFilter(unsigned int) + ??_EQContactDisplayLabel@QtMobility@@UAE@I@Z @ 254 NONAME ; QtMobility::QContactDisplayLabel::~QContactDisplayLabel(unsigned int) + ??_EQContactEmailAddress@QtMobility@@UAE@I@Z @ 255 NONAME ; QtMobility::QContactEmailAddress::~QContactEmailAddress(unsigned int) + ??_EQContactFamily@QtMobility@@UAE@I@Z @ 256 NONAME ; QtMobility::QContactFamily::~QContactFamily(unsigned int) + ??_EQContactFetchRequest@QtMobility@@UAE@I@Z @ 257 NONAME ; QtMobility::QContactFetchRequest::~QContactFetchRequest(unsigned int) + ??_EQContactFilter@QtMobility@@UAE@I@Z @ 258 NONAME ; QtMobility::QContactFilter::~QContactFilter(unsigned int) + ??_EQContactGender@QtMobility@@UAE@I@Z @ 259 NONAME ; QtMobility::QContactGender::~QContactGender(unsigned int) + ??_EQContactGeoLocation@QtMobility@@UAE@I@Z @ 260 NONAME ; QtMobility::QContactGeoLocation::~QContactGeoLocation(unsigned int) + ??_EQContactGlobalPresence@QtMobility@@UAE@I@Z @ 261 NONAME ; QtMobility::QContactGlobalPresence::~QContactGlobalPresence(unsigned int) + ??_EQContactGuid@QtMobility@@UAE@I@Z @ 262 NONAME ; QtMobility::QContactGuid::~QContactGuid(unsigned int) + ??_EQContactId@QtMobility@@QAE@I@Z @ 263 NONAME ; QtMobility::QContactId::~QContactId(unsigned int) + ??_EQContactIntersectionFilter@QtMobility@@UAE@I@Z @ 264 NONAME ; QtMobility::QContactIntersectionFilter::~QContactIntersectionFilter(unsigned int) + ??_EQContactInvalidFilter@QtMobility@@UAE@I@Z @ 265 NONAME ; QtMobility::QContactInvalidFilter::~QContactInvalidFilter(unsigned int) + ??_EQContactLocalIdFetchRequest@QtMobility@@UAE@I@Z @ 266 NONAME ; QtMobility::QContactLocalIdFetchRequest::~QContactLocalIdFetchRequest(unsigned int) + ??_EQContactLocalIdFilter@QtMobility@@UAE@I@Z @ 267 NONAME ; QtMobility::QContactLocalIdFilter::~QContactLocalIdFilter(unsigned int) + ??_EQContactManager@QtMobility@@UAE@I@Z @ 268 NONAME ; QtMobility::QContactManager::~QContactManager(unsigned int) + ??_EQContactManagerEngine@QtMobility@@UAE@I@Z @ 269 NONAME ; QtMobility::QContactManagerEngine::~QContactManagerEngine(unsigned int) + ??_EQContactManagerEngineFactory@QtMobility@@UAE@I@Z @ 270 NONAME ; QtMobility::QContactManagerEngineFactory::~QContactManagerEngineFactory(unsigned int) + ??_EQContactName@QtMobility@@UAE@I@Z @ 271 NONAME ; QtMobility::QContactName::~QContactName(unsigned int) + ??_EQContactNickname@QtMobility@@UAE@I@Z @ 272 NONAME ; QtMobility::QContactNickname::~QContactNickname(unsigned int) + ??_EQContactNote@QtMobility@@UAE@I@Z @ 273 NONAME ; QtMobility::QContactNote::~QContactNote(unsigned int) + ??_EQContactOnlineAccount@QtMobility@@UAE@I@Z @ 274 NONAME ; QtMobility::QContactOnlineAccount::~QContactOnlineAccount(unsigned int) + ??_EQContactOrganization@QtMobility@@UAE@I@Z @ 275 NONAME ; QtMobility::QContactOrganization::~QContactOrganization(unsigned int) + ??_EQContactPhoneNumber@QtMobility@@UAE@I@Z @ 276 NONAME ; QtMobility::QContactPhoneNumber::~QContactPhoneNumber(unsigned int) + ??_EQContactPresence@QtMobility@@UAE@I@Z @ 277 NONAME ; QtMobility::QContactPresence::~QContactPresence(unsigned int) + ??_EQContactRelationship@QtMobility@@QAE@I@Z @ 278 NONAME ; QtMobility::QContactRelationship::~QContactRelationship(unsigned int) + ??_EQContactRelationshipFetchRequest@QtMobility@@UAE@I@Z @ 279 NONAME ; QtMobility::QContactRelationshipFetchRequest::~QContactRelationshipFetchRequest(unsigned int) + ??_EQContactRelationshipFilter@QtMobility@@UAE@I@Z @ 280 NONAME ; QtMobility::QContactRelationshipFilter::~QContactRelationshipFilter(unsigned int) + ??_EQContactRelationshipRemoveRequest@QtMobility@@UAE@I@Z @ 281 NONAME ; QtMobility::QContactRelationshipRemoveRequest::~QContactRelationshipRemoveRequest(unsigned int) + ??_EQContactRelationshipSaveRequest@QtMobility@@UAE@I@Z @ 282 NONAME ; QtMobility::QContactRelationshipSaveRequest::~QContactRelationshipSaveRequest(unsigned int) + ??_EQContactRemoveRequest@QtMobility@@UAE@I@Z @ 283 NONAME ; QtMobility::QContactRemoveRequest::~QContactRemoveRequest(unsigned int) + ??_EQContactRingtone@QtMobility@@UAE@I@Z @ 284 NONAME ; QtMobility::QContactRingtone::~QContactRingtone(unsigned int) + ??_EQContactSaveRequest@QtMobility@@UAE@I@Z @ 285 NONAME ; QtMobility::QContactSaveRequest::~QContactSaveRequest(unsigned int) + ??_EQContactSortOrder@QtMobility@@QAE@I@Z @ 286 NONAME ; QtMobility::QContactSortOrder::~QContactSortOrder(unsigned int) + ??_EQContactSyncTarget@QtMobility@@UAE@I@Z @ 287 NONAME ; QtMobility::QContactSyncTarget::~QContactSyncTarget(unsigned int) + ??_EQContactTag@QtMobility@@UAE@I@Z @ 288 NONAME ; QtMobility::QContactTag::~QContactTag(unsigned int) + ??_EQContactThumbnail@QtMobility@@UAE@I@Z @ 289 NONAME ; QtMobility::QContactThumbnail::~QContactThumbnail(unsigned int) + ??_EQContactTimestamp@QtMobility@@UAE@I@Z @ 290 NONAME ; QtMobility::QContactTimestamp::~QContactTimestamp(unsigned int) + ??_EQContactType@QtMobility@@UAE@I@Z @ 291 NONAME ; QtMobility::QContactType::~QContactType(unsigned int) + ??_EQContactUnionFilter@QtMobility@@UAE@I@Z @ 292 NONAME ; QtMobility::QContactUnionFilter::~QContactUnionFilter(unsigned int) + ??_EQContactUrl@QtMobility@@UAE@I@Z @ 293 NONAME ; QtMobility::QContactUrl::~QContactUrl(unsigned int) + ?accessConstraints@QContactDetail@QtMobility@@QBE?AV?$QFlags@W4AccessConstraint@QContactDetail@QtMobility@@@@XZ @ 294 NONAME ; class QFlags QtMobility::QContactDetail::accessConstraints(void) const + ?accountUri@QContactOnlineAccount@QtMobility@@QBE?AVQString@@XZ @ 295 NONAME ; class QString QtMobility::QContactOnlineAccount::accountUri(void) const + ?accuracy@QContactGeoLocation@QtMobility@@QBENXZ @ 296 NONAME ; double QtMobility::QContactGeoLocation::accuracy(void) const + ?action@QContactAction@QtMobility@@SAPAV12@ABVQContactActionDescriptor@2@@Z @ 297 NONAME ; class QtMobility::QContactAction * QtMobility::QContactAction::action(class QtMobility::QContactActionDescriptor const &) + ?actionDescriptors@QContactAction@QtMobility@@SA?AV?$QList@VQContactActionDescriptor@QtMobility@@@@ABVQString@@0H@Z @ 298 NONAME ; class QList QtMobility::QContactAction::actionDescriptors(class QString const &, class QString const &, int) + ?actionName@QContactActionDescriptor@QtMobility@@QBE?AVQString@@XZ @ 299 NONAME ; class QString QtMobility::QContactActionDescriptor::actionName(void) const + ?actionName@QContactActionFilter@QtMobility@@QBE?AVQString@@XZ @ 300 NONAME ; class QString QtMobility::QContactActionFilter::actionName(void) const + ?addSorted@QContactManagerEngine@QtMobility@@SAXPAV?$QList@VQContact@QtMobility@@@@ABVQContact@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 301 NONAME ; void QtMobility::QContactManagerEngine::addSorted(class QList *, class QtMobility::QContact const &, class QList const &) + ?addedContacts@QContactChangeSet@QtMobility@@QBE?AV?$QSet@I@@XZ @ 302 NONAME ; class QSet QtMobility::QContactChangeSet::addedContacts(void) const + ?addedRelationshipsContacts@QContactChangeSet@QtMobility@@QBE?AV?$QSet@I@@XZ @ 303 NONAME ; class QSet QtMobility::QContactChangeSet::addedRelationshipsContacts(void) const + ?allowableValues@QContactDetailFieldDefinition@QtMobility@@QBE?AV?$QList@VQVariant@@@@XZ @ 304 NONAME ; class QList QtMobility::QContactDetailFieldDefinition::allowableValues(void) const + ?altitude@QContactGeoLocation@QtMobility@@QBENXZ @ 305 NONAME ; double QtMobility::QContactGeoLocation::altitude(void) const + ?altitudeAccuracy@QContactGeoLocation@QtMobility@@QBENXZ @ 306 NONAME ; double QtMobility::QContactGeoLocation::altitudeAccuracy(void) const + ?append@QContactIntersectionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 307 NONAME ; void QtMobility::QContactIntersectionFilter::append(class QtMobility::QContactFilter const &) + ?append@QContactUnionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 308 NONAME ; void QtMobility::QContactUnionFilter::append(class QtMobility::QContactFilter const &) + ?assign@QContactDetail@QtMobility@@IAEAAV12@ABV12@ABVQString@@@Z @ 309 NONAME ; class QtMobility::QContactDetail & QtMobility::QContactDetail::assign(class QtMobility::QContactDetail const &, class QString const &) + ?assistantName@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 310 NONAME ; class QString QtMobility::QContactOrganization::assistantName(void) const + ?audioRingtoneUrl@QContactRingtone@QtMobility@@QBE?AVQUrl@@XZ @ 311 NONAME ; class QUrl QtMobility::QContactRingtone::audioRingtoneUrl(void) const + ?availableActions@QContact@QtMobility@@QBE?AV?$QList@VQContactActionDescriptor@QtMobility@@@@ABVQString@@H@Z @ 312 NONAME ; class QList QtMobility::QContact::availableActions(class QString const &, int) const + ?availableActions@QContactAction@QtMobility@@SA?AVQStringList@@ABVQString@@H@Z @ 313 NONAME ; class QStringList QtMobility::QContactAction::availableActions(class QString const &, int) + ?availableManagers@QContactManager@QtMobility@@SA?AVQStringList@@XZ @ 314 NONAME ; class QStringList QtMobility::QContactManager::availableManagers(void) + ?blankPolicy@QContactSortOrder@QtMobility@@QBE?AW4BlankPolicy@12@XZ @ 315 NONAME ; enum QtMobility::QContactSortOrder::BlankPolicy QtMobility::QContactSortOrder::blankPolicy(void) const + ?buildUri@QContactManager@QtMobility@@SA?AVQString@@ABV3@ABV?$QMap@VQString@@V1@@@H@Z @ 316 NONAME ; class QString QtMobility::QContactManager::buildUri(class QString const &, class QMap const &, int) + ?calendarId@QContactAnniversary@QtMobility@@QBE?AVQString@@XZ @ 317 NONAME ; class QString QtMobility::QContactAnniversary::calendarId(void) const + ?cancel@QContactAbstractRequest@QtMobility@@QAE_NXZ @ 318 NONAME ; bool QtMobility::QContactAbstractRequest::cancel(void) + ?cancelRequest@QContactManagerEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@@Z @ 319 NONAME ; bool QtMobility::QContactManagerEngine::cancelRequest(class QtMobility::QContactAbstractRequest *) + ?canonicalizedFilter@QContactManagerEngine@QtMobility@@SA?AVQContactFilter@2@ABV32@@Z @ 320 NONAME ; class QtMobility::QContactFilter QtMobility::QContactManagerEngine::canonicalizedFilter(class QtMobility::QContactFilter const &) + ?capabilities@QContactOnlineAccount@QtMobility@@QBE?AVQStringList@@XZ @ 321 NONAME ; class QStringList QtMobility::QContactOnlineAccount::capabilities(void) const + ?caseSensitivity@QContactSortOrder@QtMobility@@QBE?AW4CaseSensitivity@Qt@@XZ @ 322 NONAME ; enum Qt::CaseSensitivity QtMobility::QContactSortOrder::caseSensitivity(void) const + ?changedContacts@QContactChangeSet@QtMobility@@QBE?AV?$QSet@I@@XZ @ 323 NONAME ; class QSet QtMobility::QContactChangeSet::changedContacts(void) const + ?children@QContactFamily@QtMobility@@QBE?AVQStringList@@XZ @ 324 NONAME ; class QStringList QtMobility::QContactFamily::children(void) const + ?clearAddedContacts@QContactChangeSet@QtMobility@@QAEXXZ @ 325 NONAME ; void QtMobility::QContactChangeSet::clearAddedContacts(void) + ?clearAddedRelationshipsContacts@QContactChangeSet@QtMobility@@QAEXXZ @ 326 NONAME ; void QtMobility::QContactChangeSet::clearAddedRelationshipsContacts(void) + ?clearAll@QContactChangeSet@QtMobility@@QAEXXZ @ 327 NONAME ; void QtMobility::QContactChangeSet::clearAll(void) + ?clearChangedContacts@QContactChangeSet@QtMobility@@QAEXXZ @ 328 NONAME ; void QtMobility::QContactChangeSet::clearChangedContacts(void) + ?clearDetails@QContact@QtMobility@@QAEXXZ @ 329 NONAME ; void QtMobility::QContact::clearDetails(void) + ?clearRemovedContacts@QContactChangeSet@QtMobility@@QAEXXZ @ 330 NONAME ; void QtMobility::QContactChangeSet::clearRemovedContacts(void) + ?clearRemovedRelationshipsContacts@QContactChangeSet@QtMobility@@QAEXXZ @ 331 NONAME ; void QtMobility::QContactChangeSet::clearRemovedRelationshipsContacts(void) + ?compareContact@QContactManagerEngine@QtMobility@@SAHABVQContact@2@0ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 332 NONAME ; int QtMobility::QContactManagerEngine::compareContact(class QtMobility::QContact const &, class QtMobility::QContact const &, class QList const &) + ?compareVariant@QContactManagerEngine@QtMobility@@SAHABVQVariant@@0W4CaseSensitivity@Qt@@@Z @ 333 NONAME ; int QtMobility::QContactManagerEngine::compareVariant(class QVariant const &, class QVariant const &, enum Qt::CaseSensitivity) + ?compatibleContact@QContactManager@QtMobility@@QAE?AVQContact@2@ABV32@@Z @ 334 NONAME ; class QtMobility::QContact QtMobility::QContactManager::compatibleContact(class QtMobility::QContact const &) + ?compatibleContact@QContactManagerEngine@QtMobility@@UBE?AVQContact@2@ABV32@PAW4Error@QContactManager@2@@Z @ 335 NONAME ; class QtMobility::QContact QtMobility::QContactManagerEngine::compatibleContact(class QtMobility::QContact const &, enum QtMobility::QContactManager::Error *) const + ?contact@QContactManager@QtMobility@@QBE?AVQContact@2@ABIABVQContactFetchHint@2@@Z @ 336 NONAME ; class QtMobility::QContact QtMobility::QContactManager::contact(unsigned int const &, class QtMobility::QContactFetchHint const &) const + ?contact@QContactManagerEngine@QtMobility@@UBE?AVQContact@2@ABIABVQContactFetchHint@2@PAW4Error@QContactManager@2@@Z @ 337 NONAME ; class QtMobility::QContact QtMobility::QContactManagerEngine::contact(unsigned int const &, class QtMobility::QContactFetchHint const &, enum QtMobility::QContactManager::Error *) const + ?contactIds@QContactManager@QtMobility@@QBE?AV?$QList@I@@ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 338 NONAME ; class QList QtMobility::QContactManager::contactIds(class QList const &) const + ?contactIds@QContactManager@QtMobility@@QBE?AV?$QList@I@@ABVQContactFilter@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 339 NONAME ; class QList QtMobility::QContactManager::contactIds(class QtMobility::QContactFilter const &, class QList const &) const + ?contactIds@QContactManagerEngine@QtMobility@@UBE?AV?$QList@I@@ABVQContactFilter@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@PAW4Error@QContactManager@2@@Z @ 340 NONAME ; class QList QtMobility::QContactManagerEngine::contactIds(class QtMobility::QContactFilter const &, class QList const &, enum QtMobility::QContactManager::Error *) const + ?contactIds@QContactRemoveRequest@QtMobility@@QBE?AV?$QList@I@@XZ @ 341 NONAME ; class QList QtMobility::QContactRemoveRequest::contactIds(void) const + ?contactType@QContactDetailDefinitionFetchRequest@QtMobility@@QBE?AVQString@@XZ @ 342 NONAME ; class QString QtMobility::QContactDetailDefinitionFetchRequest::contactType(void) const + ?contactType@QContactDetailDefinitionRemoveRequest@QtMobility@@QBE?AVQString@@XZ @ 343 NONAME ; class QString QtMobility::QContactDetailDefinitionRemoveRequest::contactType(void) const + ?contactType@QContactDetailDefinitionSaveRequest@QtMobility@@QBE?AVQString@@XZ @ 344 NONAME ; class QString QtMobility::QContactDetailDefinitionSaveRequest::contactType(void) const + ?contacts@QContactFetchRequest@QtMobility@@QBE?AV?$QList@VQContact@QtMobility@@@@XZ @ 345 NONAME ; class QList QtMobility::QContactFetchRequest::contacts(void) const + ?contacts@QContactManager@QtMobility@@QBE?AV?$QList@VQContact@QtMobility@@@@ABV?$QList@VQContactSortOrder@QtMobility@@@@ABVQContactFetchHint@2@@Z @ 346 NONAME ; class QList QtMobility::QContactManager::contacts(class QList const &, class QtMobility::QContactFetchHint const &) const + ?contacts@QContactManager@QtMobility@@QBE?AV?$QList@VQContact@QtMobility@@@@ABVQContactFilter@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@ABVQContactFetchHint@2@@Z @ 347 NONAME ; class QList QtMobility::QContactManager::contacts(class QtMobility::QContactFilter const &, class QList const &, class QtMobility::QContactFetchHint const &) const + ?contacts@QContactManagerEngine@QtMobility@@UBE?AV?$QList@VQContact@QtMobility@@@@ABVQContactFilter@2@ABV?$QList@VQContactSortOrder@QtMobility@@@@ABVQContactFetchHint@2@PAW4Error@QContactManager@2@@Z @ 348 NONAME ; class QList QtMobility::QContactManagerEngine::contacts(class QtMobility::QContactFilter const &, class QList const &, class QtMobility::QContactFetchHint const &, enum QtMobility::QContactManager::Error *) const + ?contacts@QContactSaveRequest@QtMobility@@QBE?AV?$QList@VQContact@QtMobility@@@@XZ @ 349 NONAME ; class QList QtMobility::QContactSaveRequest::contacts(void) const + ?contactsAdded@QContactManager@QtMobility@@IAEXABV?$QList@I@@@Z @ 350 NONAME ; void QtMobility::QContactManager::contactsAdded(class QList const &) + ?contactsAdded@QContactManagerEngine@QtMobility@@IAEXABV?$QList@I@@@Z @ 351 NONAME ; void QtMobility::QContactManagerEngine::contactsAdded(class QList const &) + ?contactsChanged@QContactManager@QtMobility@@IAEXABV?$QList@I@@@Z @ 352 NONAME ; void QtMobility::QContactManager::contactsChanged(class QList const &) + ?contactsChanged@QContactManagerEngine@QtMobility@@IAEXABV?$QList@I@@@Z @ 353 NONAME ; void QtMobility::QContactManagerEngine::contactsChanged(class QList const &) + ?contactsRemoved@QContactManager@QtMobility@@IAEXABV?$QList@I@@@Z @ 354 NONAME ; void QtMobility::QContactManager::contactsRemoved(class QList const &) + ?contactsRemoved@QContactManagerEngine@QtMobility@@IAEXABV?$QList@I@@@Z @ 355 NONAME ; void QtMobility::QContactManagerEngine::contactsRemoved(class QList const &) + ?contexts@QContactDetail@QtMobility@@QBE?AVQStringList@@XZ @ 356 NONAME ; class QStringList QtMobility::QContactDetail::contexts(void) const + ?country@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 357 NONAME ; class QString QtMobility::QContactAddress::country(void) const + ?createEngine@QContactManager@QtMobility@@AAEXABVQString@@ABV?$QMap@VQString@@V1@@@@Z @ 358 NONAME ; void QtMobility::QContactManager::createEngine(class QString const &, class QMap const &) + ?created@QContactTimestamp@QtMobility@@QBE?AVQDateTime@@XZ @ 359 NONAME ; class QDateTime QtMobility::QContactTimestamp::created(void) const + ?customLabel@QContactName@QtMobility@@QBE?AVQString@@XZ @ 360 NONAME ; class QString QtMobility::QContactName::customLabel(void) const + ?customMessage@QContactGlobalPresence@QtMobility@@QBE?AVQString@@XZ @ 361 NONAME ; class QString QtMobility::QContactGlobalPresence::customMessage(void) const + ?customMessage@QContactPresence@QtMobility@@QBE?AVQString@@XZ @ 362 NONAME ; class QString QtMobility::QContactPresence::customMessage(void) const + ?d_func@QContactActionFilter@QtMobility@@AAEPAVQContactActionFilterPrivate@2@XZ @ 363 NONAME ; class QtMobility::QContactActionFilterPrivate * QtMobility::QContactActionFilter::d_func(void) + ?d_func@QContactActionFilter@QtMobility@@ABEPBVQContactActionFilterPrivate@2@XZ @ 364 NONAME ; class QtMobility::QContactActionFilterPrivate const * QtMobility::QContactActionFilter::d_func(void) const + ?d_func@QContactChangeLogFilter@QtMobility@@AAEPAVQContactChangeLogFilterPrivate@2@XZ @ 365 NONAME ; class QtMobility::QContactChangeLogFilterPrivate * QtMobility::QContactChangeLogFilter::d_func(void) + ?d_func@QContactChangeLogFilter@QtMobility@@ABEPBVQContactChangeLogFilterPrivate@2@XZ @ 366 NONAME ; class QtMobility::QContactChangeLogFilterPrivate const * QtMobility::QContactChangeLogFilter::d_func(void) const + ?d_func@QContactDetailDefinitionFetchRequest@QtMobility@@AAEPAVQContactDetailDefinitionFetchRequestPrivate@2@XZ @ 367 NONAME ; class QtMobility::QContactDetailDefinitionFetchRequestPrivate * QtMobility::QContactDetailDefinitionFetchRequest::d_func(void) + ?d_func@QContactDetailDefinitionFetchRequest@QtMobility@@ABEPBVQContactDetailDefinitionFetchRequestPrivate@2@XZ @ 368 NONAME ; class QtMobility::QContactDetailDefinitionFetchRequestPrivate const * QtMobility::QContactDetailDefinitionFetchRequest::d_func(void) const + ?d_func@QContactDetailDefinitionRemoveRequest@QtMobility@@AAEPAVQContactDetailDefinitionRemoveRequestPrivate@2@XZ @ 369 NONAME ; class QtMobility::QContactDetailDefinitionRemoveRequestPrivate * QtMobility::QContactDetailDefinitionRemoveRequest::d_func(void) + ?d_func@QContactDetailDefinitionRemoveRequest@QtMobility@@ABEPBVQContactDetailDefinitionRemoveRequestPrivate@2@XZ @ 370 NONAME ; class QtMobility::QContactDetailDefinitionRemoveRequestPrivate const * QtMobility::QContactDetailDefinitionRemoveRequest::d_func(void) const + ?d_func@QContactDetailDefinitionSaveRequest@QtMobility@@AAEPAVQContactDetailDefinitionSaveRequestPrivate@2@XZ @ 371 NONAME ; class QtMobility::QContactDetailDefinitionSaveRequestPrivate * QtMobility::QContactDetailDefinitionSaveRequest::d_func(void) + ?d_func@QContactDetailDefinitionSaveRequest@QtMobility@@ABEPBVQContactDetailDefinitionSaveRequestPrivate@2@XZ @ 372 NONAME ; class QtMobility::QContactDetailDefinitionSaveRequestPrivate const * QtMobility::QContactDetailDefinitionSaveRequest::d_func(void) const + ?d_func@QContactDetailFilter@QtMobility@@AAEPAVQContactDetailFilterPrivate@2@XZ @ 373 NONAME ; class QtMobility::QContactDetailFilterPrivate * QtMobility::QContactDetailFilter::d_func(void) + ?d_func@QContactDetailFilter@QtMobility@@ABEPBVQContactDetailFilterPrivate@2@XZ @ 374 NONAME ; class QtMobility::QContactDetailFilterPrivate const * QtMobility::QContactDetailFilter::d_func(void) const + ?d_func@QContactDetailRangeFilter@QtMobility@@AAEPAVQContactDetailRangeFilterPrivate@2@XZ @ 375 NONAME ; class QtMobility::QContactDetailRangeFilterPrivate * QtMobility::QContactDetailRangeFilter::d_func(void) + ?d_func@QContactDetailRangeFilter@QtMobility@@ABEPBVQContactDetailRangeFilterPrivate@2@XZ @ 376 NONAME ; class QtMobility::QContactDetailRangeFilterPrivate const * QtMobility::QContactDetailRangeFilter::d_func(void) const + ?d_func@QContactFetchRequest@QtMobility@@AAEPAVQContactFetchRequestPrivate@2@XZ @ 377 NONAME ; class QtMobility::QContactFetchRequestPrivate * QtMobility::QContactFetchRequest::d_func(void) + ?d_func@QContactFetchRequest@QtMobility@@ABEPBVQContactFetchRequestPrivate@2@XZ @ 378 NONAME ; class QtMobility::QContactFetchRequestPrivate const * QtMobility::QContactFetchRequest::d_func(void) const + ?d_func@QContactIntersectionFilter@QtMobility@@AAEPAVQContactIntersectionFilterPrivate@2@XZ @ 379 NONAME ; class QtMobility::QContactIntersectionFilterPrivate * QtMobility::QContactIntersectionFilter::d_func(void) + ?d_func@QContactIntersectionFilter@QtMobility@@ABEPBVQContactIntersectionFilterPrivate@2@XZ @ 380 NONAME ; class QtMobility::QContactIntersectionFilterPrivate const * QtMobility::QContactIntersectionFilter::d_func(void) const + ?d_func@QContactLocalIdFetchRequest@QtMobility@@AAEPAVQContactLocalIdFetchRequestPrivate@2@XZ @ 381 NONAME ; class QtMobility::QContactLocalIdFetchRequestPrivate * QtMobility::QContactLocalIdFetchRequest::d_func(void) + ?d_func@QContactLocalIdFetchRequest@QtMobility@@ABEPBVQContactLocalIdFetchRequestPrivate@2@XZ @ 382 NONAME ; class QtMobility::QContactLocalIdFetchRequestPrivate const * QtMobility::QContactLocalIdFetchRequest::d_func(void) const + ?d_func@QContactLocalIdFilter@QtMobility@@AAEPAVQContactLocalIdFilterPrivate@2@XZ @ 383 NONAME ; class QtMobility::QContactLocalIdFilterPrivate * QtMobility::QContactLocalIdFilter::d_func(void) + ?d_func@QContactLocalIdFilter@QtMobility@@ABEPBVQContactLocalIdFilterPrivate@2@XZ @ 384 NONAME ; class QtMobility::QContactLocalIdFilterPrivate const * QtMobility::QContactLocalIdFilter::d_func(void) const + ?d_func@QContactRelationshipFetchRequest@QtMobility@@AAEPAVQContactRelationshipFetchRequestPrivate@2@XZ @ 385 NONAME ; class QtMobility::QContactRelationshipFetchRequestPrivate * QtMobility::QContactRelationshipFetchRequest::d_func(void) + ?d_func@QContactRelationshipFetchRequest@QtMobility@@ABEPBVQContactRelationshipFetchRequestPrivate@2@XZ @ 386 NONAME ; class QtMobility::QContactRelationshipFetchRequestPrivate const * QtMobility::QContactRelationshipFetchRequest::d_func(void) const + ?d_func@QContactRelationshipFilter@QtMobility@@AAEPAVQContactRelationshipFilterPrivate@2@XZ @ 387 NONAME ; class QtMobility::QContactRelationshipFilterPrivate * QtMobility::QContactRelationshipFilter::d_func(void) + ?d_func@QContactRelationshipFilter@QtMobility@@ABEPBVQContactRelationshipFilterPrivate@2@XZ @ 388 NONAME ; class QtMobility::QContactRelationshipFilterPrivate const * QtMobility::QContactRelationshipFilter::d_func(void) const + ?d_func@QContactRelationshipRemoveRequest@QtMobility@@AAEPAVQContactRelationshipRemoveRequestPrivate@2@XZ @ 389 NONAME ; class QtMobility::QContactRelationshipRemoveRequestPrivate * QtMobility::QContactRelationshipRemoveRequest::d_func(void) + ?d_func@QContactRelationshipRemoveRequest@QtMobility@@ABEPBVQContactRelationshipRemoveRequestPrivate@2@XZ @ 390 NONAME ; class QtMobility::QContactRelationshipRemoveRequestPrivate const * QtMobility::QContactRelationshipRemoveRequest::d_func(void) const + ?d_func@QContactRelationshipSaveRequest@QtMobility@@AAEPAVQContactRelationshipSaveRequestPrivate@2@XZ @ 391 NONAME ; class QtMobility::QContactRelationshipSaveRequestPrivate * QtMobility::QContactRelationshipSaveRequest::d_func(void) + ?d_func@QContactRelationshipSaveRequest@QtMobility@@ABEPBVQContactRelationshipSaveRequestPrivate@2@XZ @ 392 NONAME ; class QtMobility::QContactRelationshipSaveRequestPrivate const * QtMobility::QContactRelationshipSaveRequest::d_func(void) const + ?d_func@QContactRemoveRequest@QtMobility@@AAEPAVQContactRemoveRequestPrivate@2@XZ @ 393 NONAME ; class QtMobility::QContactRemoveRequestPrivate * QtMobility::QContactRemoveRequest::d_func(void) + ?d_func@QContactRemoveRequest@QtMobility@@ABEPBVQContactRemoveRequestPrivate@2@XZ @ 394 NONAME ; class QtMobility::QContactRemoveRequestPrivate const * QtMobility::QContactRemoveRequest::d_func(void) const + ?d_func@QContactSaveRequest@QtMobility@@AAEPAVQContactSaveRequestPrivate@2@XZ @ 395 NONAME ; class QtMobility::QContactSaveRequestPrivate * QtMobility::QContactSaveRequest::d_func(void) + ?d_func@QContactSaveRequest@QtMobility@@ABEPBVQContactSaveRequestPrivate@2@XZ @ 396 NONAME ; class QtMobility::QContactSaveRequestPrivate const * QtMobility::QContactSaveRequest::d_func(void) const + ?d_func@QContactUnionFilter@QtMobility@@AAEPAVQContactUnionFilterPrivate@2@XZ @ 397 NONAME ; class QtMobility::QContactUnionFilterPrivate * QtMobility::QContactUnionFilter::d_func(void) + ?d_func@QContactUnionFilter@QtMobility@@ABEPBVQContactUnionFilterPrivate@2@XZ @ 398 NONAME ; class QtMobility::QContactUnionFilterPrivate const * QtMobility::QContactUnionFilter::d_func(void) const + ?dataChanged@QContactChangeSet@QtMobility@@QAE_NXZ @ 399 NONAME ; bool QtMobility::QContactChangeSet::dataChanged(void) + ?dataChanged@QContactManager@QtMobility@@IAEXXZ @ 400 NONAME ; void QtMobility::QContactManager::dataChanged(void) + ?dataChanged@QContactManagerEngine@QtMobility@@IAEXXZ @ 401 NONAME ; void QtMobility::QContactManagerEngine::dataChanged(void) + ?dataType@QContactDetailFieldDefinition@QtMobility@@QBE?AW4Type@QVariant@@XZ @ 402 NONAME ; enum QVariant::Type QtMobility::QContactDetailFieldDefinition::dataType(void) const + ?date@QContactBirthday@QtMobility@@QBE?AVQDate@@XZ @ 403 NONAME ; class QDate QtMobility::QContactBirthday::date(void) const + ?definitionName@QContactDetail@QtMobility@@QBE?AVQString@@XZ @ 404 NONAME ; class QString QtMobility::QContactDetail::definitionName(void) const + ?definitionNames@QContactDetailDefinitionFetchRequest@QtMobility@@QBE?AVQStringList@@XZ @ 405 NONAME ; class QStringList QtMobility::QContactDetailDefinitionFetchRequest::definitionNames(void) const + ?definitionNames@QContactDetailDefinitionRemoveRequest@QtMobility@@QBE?AVQStringList@@XZ @ 406 NONAME ; class QStringList QtMobility::QContactDetailDefinitionRemoveRequest::definitionNames(void) const + ?definitions@QContactDetailDefinitionFetchRequest@QtMobility@@QBE?AV?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@XZ @ 407 NONAME ; class QMap QtMobility::QContactDetailDefinitionFetchRequest::definitions(void) const + ?definitions@QContactDetailDefinitionSaveRequest@QtMobility@@QBE?AV?$QList@VQContactDetailDefinition@QtMobility@@@@XZ @ 408 NONAME ; class QList QtMobility::QContactDetailDefinitionSaveRequest::definitions(void) const + ?department@QContactOrganization@QtMobility@@QBE?AVQStringList@@XZ @ 409 NONAME ; class QStringList QtMobility::QContactOrganization::department(void) const + ?detail@QContact@QtMobility@@QBE?AVQContactDetail@2@ABVQString@@@Z @ 410 NONAME ; class QtMobility::QContactDetail QtMobility::QContact::detail(class QString const &) const + ?detailDefinition@QContactManager@QtMobility@@QBE?AVQContactDetailDefinition@2@ABVQString@@0@Z @ 411 NONAME ; class QtMobility::QContactDetailDefinition QtMobility::QContactManager::detailDefinition(class QString const &, class QString const &) const + ?detailDefinition@QContactManagerEngine@QtMobility@@UBE?AVQContactDetailDefinition@2@ABVQString@@0PAW4Error@QContactManager@2@@Z @ 412 NONAME ; class QtMobility::QContactDetailDefinition QtMobility::QContactManagerEngine::detailDefinition(class QString const &, class QString const &, enum QtMobility::QContactManager::Error *) const + ?detailDefinitionName@QContactDetailFilter@QtMobility@@QBE?AVQString@@XZ @ 413 NONAME ; class QString QtMobility::QContactDetailFilter::detailDefinitionName(void) const + ?detailDefinitionName@QContactDetailRangeFilter@QtMobility@@QBE?AVQString@@XZ @ 414 NONAME ; class QString QtMobility::QContactDetailRangeFilter::detailDefinitionName(void) const + ?detailDefinitionName@QContactSortOrder@QtMobility@@QBE?AVQString@@XZ @ 415 NONAME ; class QString QtMobility::QContactSortOrder::detailDefinitionName(void) const + ?detailDefinitions@QContactManager@QtMobility@@QBE?AV?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@ABVQString@@@Z @ 416 NONAME ; class QMap QtMobility::QContactManager::detailDefinitions(class QString const &) const + ?detailDefinitions@QContactManagerEngine@QtMobility@@UBE?AV?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@ABVQString@@PAW4Error@QContactManager@2@@Z @ 417 NONAME ; class QMap QtMobility::QContactManagerEngine::detailDefinitions(class QString const &, enum QtMobility::QContactManager::Error *) const + ?detailDefinitionsHint@QContactFetchHint@QtMobility@@QBE?AVQStringList@@XZ @ 418 NONAME ; class QStringList QtMobility::QContactFetchHint::detailDefinitionsHint(void) const + ?detailFieldName@QContactDetailFilter@QtMobility@@QBE?AVQString@@XZ @ 419 NONAME ; class QString QtMobility::QContactDetailFilter::detailFieldName(void) const + ?detailFieldName@QContactDetailRangeFilter@QtMobility@@QBE?AVQString@@XZ @ 420 NONAME ; class QString QtMobility::QContactDetailRangeFilter::detailFieldName(void) const + ?detailFieldName@QContactSortOrder@QtMobility@@QBE?AVQString@@XZ @ 421 NONAME ; class QString QtMobility::QContactSortOrder::detailFieldName(void) const + ?detailUri@QContactDetail@QtMobility@@QBE?AVQString@@XZ @ 422 NONAME ; class QString QtMobility::QContactDetail::detailUri(void) const + ?detailWithAction@QContact@QtMobility@@QBE?AVQContactDetail@2@ABVQString@@@Z @ 423 NONAME ; class QtMobility::QContactDetail QtMobility::QContact::detailWithAction(class QString const &) const + ?details@QContact@QtMobility@@QBE?AV?$QList@VQContactDetail@QtMobility@@@@ABVQString@@00@Z @ 424 NONAME ; class QList QtMobility::QContact::details(class QString const &, class QString const &, class QString const &) const + ?details@QContact@QtMobility@@QBE?AV?$QList@VQContactDetail@QtMobility@@@@ABVQString@@@Z @ 425 NONAME ; class QList QtMobility::QContact::details(class QString const &) const + ?detailsWithAction@QContact@QtMobility@@QBE?AV?$QList@VQContactDetail@QtMobility@@@@ABVQString@@@Z @ 426 NONAME ; class QList QtMobility::QContact::detailsWithAction(class QString const &) const + ?direction@QContactSortOrder@QtMobility@@QBE?AW4SortOrder@Qt@@XZ @ 427 NONAME ; enum Qt::SortOrder QtMobility::QContactSortOrder::direction(void) const + ?displayLabel@QContact@QtMobility@@QBE?AVQString@@XZ @ 428 NONAME ; class QString QtMobility::QContact::displayLabel(void) const + ?emailAddress@QContactEmailAddress@QtMobility@@QBE?AVQString@@XZ @ 429 NONAME ; class QString QtMobility::QContactEmailAddress::emailAddress(void) const + ?emitSignals@QContactChangeSet@QtMobility@@QAEXPAVQContactManagerEngine@2@@Z @ 430 NONAME ; void QtMobility::QContactChangeSet::emitSignals(class QtMobility::QContactManagerEngine *) + ?error@QContactAbstractRequest@QtMobility@@QBE?AW4Error@QContactManager@2@XZ @ 431 NONAME ; enum QtMobility::QContactManager::Error QtMobility::QContactAbstractRequest::error(void) const + ?error@QContactManager@QtMobility@@QBE?AW4Error@12@XZ @ 432 NONAME ; enum QtMobility::QContactManager::Error QtMobility::QContactManager::error(void) const + ?errorMap@QContactDetailDefinitionFetchRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 433 NONAME ; class QMap QtMobility::QContactDetailDefinitionFetchRequest::errorMap(void) const + ?errorMap@QContactDetailDefinitionRemoveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 434 NONAME ; class QMap QtMobility::QContactDetailDefinitionRemoveRequest::errorMap(void) const + ?errorMap@QContactDetailDefinitionSaveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 435 NONAME ; class QMap QtMobility::QContactDetailDefinitionSaveRequest::errorMap(void) const + ?errorMap@QContactRelationshipRemoveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 436 NONAME ; class QMap QtMobility::QContactRelationshipRemoveRequest::errorMap(void) const + ?errorMap@QContactRelationshipSaveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 437 NONAME ; class QMap QtMobility::QContactRelationshipSaveRequest::errorMap(void) const + ?errorMap@QContactRemoveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 438 NONAME ; class QMap QtMobility::QContactRemoveRequest::errorMap(void) const + ?errorMap@QContactSaveRequest@QtMobility@@QBE?AV?$QMap@HW4Error@QContactManager@QtMobility@@@@XZ @ 439 NONAME ; class QMap QtMobility::QContactSaveRequest::errorMap(void) const + ?event@QContactAnniversary@QtMobility@@QBE?AVQString@@XZ @ 440 NONAME ; class QString QtMobility::QContactAnniversary::event(void) const + ?eventType@QContactChangeLogFilter@QtMobility@@QBE?AW4EventType@12@XZ @ 441 NONAME ; enum QtMobility::QContactChangeLogFilter::EventType QtMobility::QContactChangeLogFilter::eventType(void) const + ?fetchHint@QContactFetchRequest@QtMobility@@QBE?AVQContactFetchHint@2@XZ @ 442 NONAME ; class QtMobility::QContactFetchHint QtMobility::QContactFetchRequest::fetchHint(void) const + ?fields@QContactDetailDefinition@QtMobility@@QBE?AV?$QMap@VQString@@VQContactDetailFieldDefinition@QtMobility@@@@XZ @ 443 NONAME ; class QMap QtMobility::QContactDetailDefinition::fields(void) const + ?filter@QContactFetchRequest@QtMobility@@QBE?AVQContactFilter@2@XZ @ 444 NONAME ; class QtMobility::QContactFilter QtMobility::QContactFetchRequest::filter(void) const + ?filter@QContactLocalIdFetchRequest@QtMobility@@QBE?AVQContactFilter@2@XZ @ 445 NONAME ; class QtMobility::QContactFilter QtMobility::QContactLocalIdFetchRequest::filter(void) const + ?filters@QContactIntersectionFilter@QtMobility@@QBE?AV?$QList@VQContactFilter@QtMobility@@@@XZ @ 446 NONAME ; class QList QtMobility::QContactIntersectionFilter::filters(void) const + ?filters@QContactUnionFilter@QtMobility@@QBE?AV?$QList@VQContactFilter@QtMobility@@@@XZ @ 447 NONAME ; class QList QtMobility::QContactUnionFilter::filters(void) const + ?first@QContactRelationship@QtMobility@@QBE?AVQContactId@2@XZ @ 448 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationship::first(void) const + ?first@QContactRelationshipFetchRequest@QtMobility@@QBE?AVQContactId@2@XZ @ 449 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationshipFetchRequest::first(void) const + ?firstName@QContactName@QtMobility@@QBE?AVQString@@XZ @ 450 NONAME ; class QString QtMobility::QContactName::firstName(void) const + ?fromUri@QContactManager@QtMobility@@SAPAV12@ABVQString@@PAVQObject@@@Z @ 451 NONAME ; class QtMobility::QContactManager * QtMobility::QContactManager::fromUri(class QString const &, class QObject *) + ?gender@QContactGender@QtMobility@@QBE?AVQString@@XZ @ 452 NONAME ; class QString QtMobility::QContactGender::gender(void) const + ?getStaticMetaObject@QContactAbstractRequest@QtMobility@@SAABUQMetaObject@@XZ @ 453 NONAME ; struct QMetaObject const & QtMobility::QContactAbstractRequest::getStaticMetaObject(void) + ?getStaticMetaObject@QContactAction@QtMobility@@SAABUQMetaObject@@XZ @ 454 NONAME ; struct QMetaObject const & QtMobility::QContactAction::getStaticMetaObject(void) + ?getStaticMetaObject@QContactActionFactory@QtMobility@@SAABUQMetaObject@@XZ @ 455 NONAME ; struct QMetaObject const & QtMobility::QContactActionFactory::getStaticMetaObject(void) + ?getStaticMetaObject@QContactDetailDefinitionFetchRequest@QtMobility@@SAABUQMetaObject@@XZ @ 456 NONAME ; struct QMetaObject const & QtMobility::QContactDetailDefinitionFetchRequest::getStaticMetaObject(void) + ?getStaticMetaObject@QContactDetailDefinitionRemoveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 457 NONAME ; struct QMetaObject const & QtMobility::QContactDetailDefinitionRemoveRequest::getStaticMetaObject(void) + ?getStaticMetaObject@QContactDetailDefinitionSaveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 458 NONAME ; struct QMetaObject const & QtMobility::QContactDetailDefinitionSaveRequest::getStaticMetaObject(void) + ?getStaticMetaObject@QContactFetchRequest@QtMobility@@SAABUQMetaObject@@XZ @ 459 NONAME ; struct QMetaObject const & QtMobility::QContactFetchRequest::getStaticMetaObject(void) + ?getStaticMetaObject@QContactLocalIdFetchRequest@QtMobility@@SAABUQMetaObject@@XZ @ 460 NONAME ; struct QMetaObject const & QtMobility::QContactLocalIdFetchRequest::getStaticMetaObject(void) + ?getStaticMetaObject@QContactManager@QtMobility@@SAABUQMetaObject@@XZ @ 461 NONAME ; struct QMetaObject const & QtMobility::QContactManager::getStaticMetaObject(void) + ?getStaticMetaObject@QContactManagerEngine@QtMobility@@SAABUQMetaObject@@XZ @ 462 NONAME ; struct QMetaObject const & QtMobility::QContactManagerEngine::getStaticMetaObject(void) + ?getStaticMetaObject@QContactRelationshipFetchRequest@QtMobility@@SAABUQMetaObject@@XZ @ 463 NONAME ; struct QMetaObject const & QtMobility::QContactRelationshipFetchRequest::getStaticMetaObject(void) + ?getStaticMetaObject@QContactRelationshipRemoveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 464 NONAME ; struct QMetaObject const & QtMobility::QContactRelationshipRemoveRequest::getStaticMetaObject(void) + ?getStaticMetaObject@QContactRelationshipSaveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 465 NONAME ; struct QMetaObject const & QtMobility::QContactRelationshipSaveRequest::getStaticMetaObject(void) + ?getStaticMetaObject@QContactRemoveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 466 NONAME ; struct QMetaObject const & QtMobility::QContactRemoveRequest::getStaticMetaObject(void) + ?getStaticMetaObject@QContactSaveRequest@QtMobility@@SAABUQMetaObject@@XZ @ 467 NONAME ; struct QMetaObject const & QtMobility::QContactSaveRequest::getStaticMetaObject(void) + ?guid@QContactGuid@QtMobility@@QBE?AVQString@@XZ @ 468 NONAME ; class QString QtMobility::QContactGuid::guid(void) const + ?hasFeature@QContactManager@QtMobility@@QBE_NW4ManagerFeature@12@ABVQString@@@Z @ 469 NONAME ; bool QtMobility::QContactManager::hasFeature(enum QtMobility::QContactManager::ManagerFeature, class QString const &) const + ?hasFeature@QContactManagerEngine@QtMobility@@UBE_NW4ManagerFeature@QContactManager@2@ABVQString@@@Z @ 470 NONAME ; bool QtMobility::QContactManagerEngine::hasFeature(enum QtMobility::QContactManager::ManagerFeature, class QString const &) const + ?hasValue@QContactDetail@QtMobility@@QBE_NABVQString@@@Z @ 471 NONAME ; bool QtMobility::QContactDetail::hasValue(class QString const &) const + ?heading@QContactGeoLocation@QtMobility@@QBENXZ @ 472 NONAME ; double QtMobility::QContactGeoLocation::heading(void) const + ?id@QContact@QtMobility@@QBE?AVQContactId@2@XZ @ 473 NONAME ; class QtMobility::QContactId QtMobility::QContact::id(void) const + ?ids@QContactLocalIdFetchRequest@QtMobility@@QBE?AV?$QList@I@@XZ @ 474 NONAME ; class QList QtMobility::QContactLocalIdFetchRequest::ids(void) const + ?ids@QContactLocalIdFilter@QtMobility@@QBE?AV?$QList@I@@XZ @ 475 NONAME ; class QList QtMobility::QContactLocalIdFilter::ids(void) const + ?imageUrl@QContactAvatar@QtMobility@@QBE?AVQUrl@@XZ @ 476 NONAME ; class QUrl QtMobility::QContactAvatar::imageUrl(void) const + ?implementationVersion@QContactActionDescriptor@QtMobility@@QBEHXZ @ 477 NONAME ; int QtMobility::QContactActionDescriptor::implementationVersion(void) const + ?implementationVersion@QContactActionFilter@QtMobility@@QBEHXZ @ 478 NONAME ; int QtMobility::QContactActionFilter::implementationVersion(void) const + ?insertAddedContact@QContactChangeSet@QtMobility@@QAEXI@Z @ 479 NONAME ; void QtMobility::QContactChangeSet::insertAddedContact(unsigned int) + ?insertAddedContacts@QContactChangeSet@QtMobility@@QAEXABV?$QList@I@@@Z @ 480 NONAME ; void QtMobility::QContactChangeSet::insertAddedContacts(class QList const &) + ?insertAddedRelationshipsContact@QContactChangeSet@QtMobility@@QAEXI@Z @ 481 NONAME ; void QtMobility::QContactChangeSet::insertAddedRelationshipsContact(unsigned int) + ?insertAddedRelationshipsContacts@QContactChangeSet@QtMobility@@QAEXABV?$QList@I@@@Z @ 482 NONAME ; void QtMobility::QContactChangeSet::insertAddedRelationshipsContacts(class QList const &) + ?insertChangedContact@QContactChangeSet@QtMobility@@QAEXI@Z @ 483 NONAME ; void QtMobility::QContactChangeSet::insertChangedContact(unsigned int) + ?insertChangedContacts@QContactChangeSet@QtMobility@@QAEXABV?$QList@I@@@Z @ 484 NONAME ; void QtMobility::QContactChangeSet::insertChangedContacts(class QList const &) + ?insertField@QContactDetailDefinition@QtMobility@@QAEXABVQString@@ABVQContactDetailFieldDefinition@2@@Z @ 485 NONAME ; void QtMobility::QContactDetailDefinition::insertField(class QString const &, class QtMobility::QContactDetailFieldDefinition const &) + ?insertRemovedContact@QContactChangeSet@QtMobility@@QAEXI@Z @ 486 NONAME ; void QtMobility::QContactChangeSet::insertRemovedContact(unsigned int) + ?insertRemovedContacts@QContactChangeSet@QtMobility@@QAEXABV?$QList@I@@@Z @ 487 NONAME ; void QtMobility::QContactChangeSet::insertRemovedContacts(class QList const &) + ?insertRemovedRelationshipsContact@QContactChangeSet@QtMobility@@QAEXI@Z @ 488 NONAME ; void QtMobility::QContactChangeSet::insertRemovedRelationshipsContact(unsigned int) + ?insertRemovedRelationshipsContacts@QContactChangeSet@QtMobility@@QAEXABV?$QList@I@@@Z @ 489 NONAME ; void QtMobility::QContactChangeSet::insertRemovedRelationshipsContacts(class QList const &) + ?isActive@QContactAbstractRequest@QtMobility@@QBE_NXZ @ 490 NONAME ; bool QtMobility::QContactAbstractRequest::isActive(void) const + ?isCanceled@QContactAbstractRequest@QtMobility@@QBE_NXZ @ 491 NONAME ; bool QtMobility::QContactAbstractRequest::isCanceled(void) const + ?isEmpty@QContact@QtMobility@@QBE_NXZ @ 492 NONAME ; bool QtMobility::QContact::isEmpty(void) const + ?isEmpty@QContactActionDescriptor@QtMobility@@QBE_NXZ @ 493 NONAME ; bool QtMobility::QContactActionDescriptor::isEmpty(void) const + ?isEmpty@QContactDetail@QtMobility@@QBE_NXZ @ 494 NONAME ; bool QtMobility::QContactDetail::isEmpty(void) const + ?isEmpty@QContactDetailDefinition@QtMobility@@QBE_NXZ @ 495 NONAME ; bool QtMobility::QContactDetailDefinition::isEmpty(void) const + ?isFilterSupported@QContactManager@QtMobility@@QBE_NABVQContactFilter@2@@Z @ 496 NONAME ; bool QtMobility::QContactManager::isFilterSupported(class QtMobility::QContactFilter const &) const + ?isFilterSupported@QContactManagerEngine@QtMobility@@UBE_NABVQContactFilter@2@@Z @ 497 NONAME ; bool QtMobility::QContactManagerEngine::isFilterSupported(class QtMobility::QContactFilter const &) const + ?isFinished@QContactAbstractRequest@QtMobility@@QBE_NXZ @ 498 NONAME ; bool QtMobility::QContactAbstractRequest::isFinished(void) const + ?isInactive@QContactAbstractRequest@QtMobility@@QBE_NXZ @ 499 NONAME ; bool QtMobility::QContactAbstractRequest::isInactive(void) const + ?isPreferredDetail@QContact@QtMobility@@QBE_NABVQString@@ABVQContactDetail@2@@Z @ 500 NONAME ; bool QtMobility::QContact::isPreferredDetail(class QString const &, class QtMobility::QContactDetail const &) const + ?isRelationshipTypeSupported@QContactManager@QtMobility@@QBE_NABVQString@@0@Z @ 501 NONAME ; bool QtMobility::QContactManager::isRelationshipTypeSupported(class QString const &, class QString const &) const + ?isRelationshipTypeSupported@QContactManagerEngine@QtMobility@@UBE_NABVQString@@0@Z @ 502 NONAME ; bool QtMobility::QContactManagerEngine::isRelationshipTypeSupported(class QString const &, class QString const &) const + ?isUnique@QContactDetailDefinition@QtMobility@@QBE_NXZ @ 503 NONAME ; bool QtMobility::QContactDetailDefinition::isUnique(void) const + ?isValid@QContactSortOrder@QtMobility@@QBE_NXZ @ 504 NONAME ; bool QtMobility::QContactSortOrder::isValid(void) const + ?key@QContactDetail@QtMobility@@QBEHXZ @ 505 NONAME ; int QtMobility::QContactDetail::key(void) const + ?label@QContactDisplayLabel@QtMobility@@QBE?AVQString@@XZ @ 506 NONAME ; class QString QtMobility::QContactDisplayLabel::label(void) const + ?label@QContactGeoLocation@QtMobility@@QBE?AVQString@@XZ @ 507 NONAME ; class QString QtMobility::QContactGeoLocation::label(void) const + ?lastModified@QContactTimestamp@QtMobility@@QBE?AVQDateTime@@XZ @ 508 NONAME ; class QDateTime QtMobility::QContactTimestamp::lastModified(void) const + ?lastName@QContactName@QtMobility@@QBE?AVQString@@XZ @ 509 NONAME ; class QString QtMobility::QContactName::lastName(void) const + ?latitude@QContactGeoLocation@QtMobility@@QBENXZ @ 510 NONAME ; double QtMobility::QContactGeoLocation::latitude(void) const + ?linkedDetailUris@QContactDetail@QtMobility@@QBE?AVQStringList@@XZ @ 511 NONAME ; class QStringList QtMobility::QContactDetail::linkedDetailUris(void) const + ?localId@QContact@QtMobility@@QBEIXZ @ 512 NONAME ; unsigned int QtMobility::QContact::localId(void) const + ?localId@QContactId@QtMobility@@QBEIXZ @ 513 NONAME ; unsigned int QtMobility::QContactId::localId(void) const + ?locality@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 514 NONAME ; class QString QtMobility::QContactAddress::locality(void) const + ?location@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 515 NONAME ; class QString QtMobility::QContactOrganization::location(void) const + ?logoUrl@QContactOrganization@QtMobility@@QBE?AVQUrl@@XZ @ 516 NONAME ; class QUrl QtMobility::QContactOrganization::logoUrl(void) const + ?longitude@QContactGeoLocation@QtMobility@@QBENXZ @ 517 NONAME ; double QtMobility::QContactGeoLocation::longitude(void) const + ?manager@QContactAbstractRequest@QtMobility@@QBEPAVQContactManager@2@XZ @ 518 NONAME ; class QtMobility::QContactManager * QtMobility::QContactAbstractRequest::manager(void) const + ?managerName@QContactManager@QtMobility@@QBE?AVQString@@XZ @ 519 NONAME ; class QString QtMobility::QContactManager::managerName(void) const + ?managerName@QContactManagerEngine@QtMobility@@UBE?AVQString@@XZ @ 520 NONAME ; class QString QtMobility::QContactManagerEngine::managerName(void) const + ?managerParameters@QContactManager@QtMobility@@QBE?AV?$QMap@VQString@@V1@@@XZ @ 521 NONAME ; class QMap QtMobility::QContactManager::managerParameters(void) const + ?managerParameters@QContactManagerEngine@QtMobility@@UBE?AV?$QMap@VQString@@V1@@@XZ @ 522 NONAME ; class QMap QtMobility::QContactManagerEngine::managerParameters(void) const + ?managerUri@QContactId@QtMobility@@QBE?AVQString@@XZ @ 523 NONAME ; class QString QtMobility::QContactId::managerUri(void) const + ?managerUri@QContactManager@QtMobility@@QBE?AVQString@@XZ @ 524 NONAME ; class QString QtMobility::QContactManager::managerUri(void) const + ?managerUri@QContactManagerEngine@QtMobility@@QBE?AVQString@@XZ @ 525 NONAME ; class QString QtMobility::QContactManagerEngine::managerUri(void) const + ?managerVersion@QContactManager@QtMobility@@QBEHXZ @ 526 NONAME ; int QtMobility::QContactManager::managerVersion(void) const + ?match@QContactDisplayLabel@QtMobility@@SA?AVQContactFilter@2@ABVQString@@@Z @ 527 NONAME ; class QtMobility::QContactFilter QtMobility::QContactDisplayLabel::match(class QString const &) + ?match@QContactEmailAddress@QtMobility@@SA?AVQContactFilter@2@ABVQString@@@Z @ 528 NONAME ; class QtMobility::QContactFilter QtMobility::QContactEmailAddress::match(class QString const &) + ?match@QContactName@QtMobility@@SA?AVQContactFilter@2@ABVQString@@0@Z @ 529 NONAME ; class QtMobility::QContactFilter QtMobility::QContactName::match(class QString const &, class QString const &) + ?match@QContactName@QtMobility@@SA?AVQContactFilter@2@ABVQString@@@Z @ 530 NONAME ; class QtMobility::QContactFilter QtMobility::QContactName::match(class QString const &) + ?match@QContactPhoneNumber@QtMobility@@SA?AVQContactFilter@2@ABVQString@@@Z @ 531 NONAME ; class QtMobility::QContactFilter QtMobility::QContactPhoneNumber::match(class QString const &) + ?matchFlags@QContactDetailFilter@QtMobility@@QBE?AV?$QFlags@W4MatchFlag@QContactFilter@QtMobility@@@@XZ @ 532 NONAME ; class QFlags QtMobility::QContactDetailFilter::matchFlags(void) const + ?matchFlags@QContactDetailRangeFilter@QtMobility@@QBE?AV?$QFlags@W4MatchFlag@QContactFilter@QtMobility@@@@XZ @ 533 NONAME ; class QFlags QtMobility::QContactDetailRangeFilter::matchFlags(void) const + ?maxValue@QContactDetailRangeFilter@QtMobility@@QBE?AVQVariant@@XZ @ 534 NONAME ; class QVariant QtMobility::QContactDetailRangeFilter::maxValue(void) const + ?metaObject@QContactAbstractRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 535 NONAME ; struct QMetaObject const * QtMobility::QContactAbstractRequest::metaObject(void) const + ?metaObject@QContactAction@QtMobility@@UBEPBUQMetaObject@@XZ @ 536 NONAME ; struct QMetaObject const * QtMobility::QContactAction::metaObject(void) const + ?metaObject@QContactActionFactory@QtMobility@@UBEPBUQMetaObject@@XZ @ 537 NONAME ; struct QMetaObject const * QtMobility::QContactActionFactory::metaObject(void) const + ?metaObject@QContactDetailDefinitionFetchRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 538 NONAME ; struct QMetaObject const * QtMobility::QContactDetailDefinitionFetchRequest::metaObject(void) const + ?metaObject@QContactDetailDefinitionRemoveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 539 NONAME ; struct QMetaObject const * QtMobility::QContactDetailDefinitionRemoveRequest::metaObject(void) const + ?metaObject@QContactDetailDefinitionSaveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 540 NONAME ; struct QMetaObject const * QtMobility::QContactDetailDefinitionSaveRequest::metaObject(void) const + ?metaObject@QContactFetchRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 541 NONAME ; struct QMetaObject const * QtMobility::QContactFetchRequest::metaObject(void) const + ?metaObject@QContactLocalIdFetchRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 542 NONAME ; struct QMetaObject const * QtMobility::QContactLocalIdFetchRequest::metaObject(void) const + ?metaObject@QContactManager@QtMobility@@UBEPBUQMetaObject@@XZ @ 543 NONAME ; struct QMetaObject const * QtMobility::QContactManager::metaObject(void) const + ?metaObject@QContactManagerEngine@QtMobility@@UBEPBUQMetaObject@@XZ @ 544 NONAME ; struct QMetaObject const * QtMobility::QContactManagerEngine::metaObject(void) const + ?metaObject@QContactRelationshipFetchRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 545 NONAME ; struct QMetaObject const * QtMobility::QContactRelationshipFetchRequest::metaObject(void) const + ?metaObject@QContactRelationshipRemoveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 546 NONAME ; struct QMetaObject const * QtMobility::QContactRelationshipRemoveRequest::metaObject(void) const + ?metaObject@QContactRelationshipSaveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 547 NONAME ; struct QMetaObject const * QtMobility::QContactRelationshipSaveRequest::metaObject(void) const + ?metaObject@QContactRemoveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 548 NONAME ; struct QMetaObject const * QtMobility::QContactRemoveRequest::metaObject(void) const + ?metaObject@QContactSaveRequest@QtMobility@@UBEPBUQMetaObject@@XZ @ 549 NONAME ; struct QMetaObject const * QtMobility::QContactSaveRequest::metaObject(void) const + ?middleName@QContactName@QtMobility@@QBE?AVQString@@XZ @ 550 NONAME ; class QString QtMobility::QContactName::middleName(void) const + ?minValue@QContactDetailRangeFilter@QtMobility@@QBE?AVQVariant@@XZ @ 551 NONAME ; class QVariant QtMobility::QContactDetailRangeFilter::minValue(void) const + ?name@QContactDetailDefinition@QtMobility@@QBE?AVQString@@XZ @ 552 NONAME ; class QString QtMobility::QContactDetailDefinition::name(void) const + ?name@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 553 NONAME ; class QString QtMobility::QContactOrganization::name(void) const + ?nickname@QContactGlobalPresence@QtMobility@@QBE?AVQString@@XZ @ 554 NONAME ; class QString QtMobility::QContactGlobalPresence::nickname(void) const + ?nickname@QContactNickname@QtMobility@@QBE?AVQString@@XZ @ 555 NONAME ; class QString QtMobility::QContactNickname::nickname(void) const + ?nickname@QContactPresence@QtMobility@@QBE?AVQString@@XZ @ 556 NONAME ; class QString QtMobility::QContactPresence::nickname(void) const + ?note@QContactNote@QtMobility@@QBE?AVQString@@XZ @ 557 NONAME ; class QString QtMobility::QContactNote::note(void) const + ?number@QContactPhoneNumber@QtMobility@@QBE?AVQString@@XZ @ 558 NONAME ; class QString QtMobility::QContactPhoneNumber::number(void) const + ?oldAndNewSelfContactId@QContactChangeSet@QtMobility@@QBE?AU?$QPair@II@@XZ @ 559 NONAME ; struct QPair QtMobility::QContactChangeSet::oldAndNewSelfContactId(void) const + ?optimizationHints@QContactFetchHint@QtMobility@@QBE?AV?$QFlags@W4OptimizationHint@QContactFetchHint@QtMobility@@@@XZ @ 560 NONAME ; class QFlags QtMobility::QContactFetchHint::optimizationHints(void) const + ?originalDate@QContactAnniversary@QtMobility@@QBE?AVQDate@@XZ @ 561 NONAME ; class QDate QtMobility::QContactAnniversary::originalDate(void) const + ?parseUri@QContactManager@QtMobility@@SA_NABVQString@@PAV3@PAV?$QMap@VQString@@V1@@@@Z @ 562 NONAME ; bool QtMobility::QContactManager::parseUri(class QString const &, class QString *, class QMap *) + ?postOfficeBox@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 563 NONAME ; class QString QtMobility::QContactAddress::postOfficeBox(void) const + ?postcode@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 564 NONAME ; class QString QtMobility::QContactAddress::postcode(void) const + ?preferredDetail@QContact@QtMobility@@QBE?AVQContactDetail@2@ABVQString@@@Z @ 565 NONAME ; class QtMobility::QContactDetail QtMobility::QContact::preferredDetail(class QString const &) const + ?preferredDetails@QContact@QtMobility@@QBE?AV?$QMap@VQString@@VQContactDetail@QtMobility@@@@XZ @ 566 NONAME ; class QMap QtMobility::QContact::preferredDetails(void) const + ?prefix@QContactName@QtMobility@@QBE?AVQString@@XZ @ 567 NONAME ; class QString QtMobility::QContactName::prefix(void) const + ?prepend@QContactIntersectionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 568 NONAME ; void QtMobility::QContactIntersectionFilter::prepend(class QtMobility::QContactFilter const &) + ?prepend@QContactUnionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 569 NONAME ; void QtMobility::QContactUnionFilter::prepend(class QtMobility::QContactFilter const &) + ?presenceState@QContactGlobalPresence@QtMobility@@QBE?AW4PresenceState@QContactPresence@2@XZ @ 570 NONAME ; enum QtMobility::QContactPresence::PresenceState QtMobility::QContactGlobalPresence::presenceState(void) const + ?presenceState@QContactPresence@QtMobility@@QBE?AW4PresenceState@12@XZ @ 571 NONAME ; enum QtMobility::QContactPresence::PresenceState QtMobility::QContactPresence::presenceState(void) const + ?presenceStateImageUrl@QContactGlobalPresence@QtMobility@@QBE?AVQUrl@@XZ @ 572 NONAME ; class QUrl QtMobility::QContactGlobalPresence::presenceStateImageUrl(void) const + ?presenceStateImageUrl@QContactPresence@QtMobility@@QBE?AVQUrl@@XZ @ 573 NONAME ; class QUrl QtMobility::QContactPresence::presenceStateImageUrl(void) const + ?presenceStateText@QContactGlobalPresence@QtMobility@@QBE?AVQString@@XZ @ 574 NONAME ; class QString QtMobility::QContactGlobalPresence::presenceStateText(void) const + ?presenceStateText@QContactPresence@QtMobility@@QBE?AVQString@@XZ @ 575 NONAME ; class QString QtMobility::QContactPresence::presenceStateText(void) const + ?qHash@QtMobility@@YAIABVQContact@1@@Z @ 576 NONAME ; unsigned int QtMobility::qHash(class QtMobility::QContact const &) + ?qHash@QtMobility@@YAIABVQContactActionDescriptor@1@@Z @ 577 NONAME ; unsigned int QtMobility::qHash(class QtMobility::QContactActionDescriptor const &) + ?qHash@QtMobility@@YAIABVQContactDetail@1@@Z @ 578 NONAME ; unsigned int QtMobility::qHash(class QtMobility::QContactDetail const &) + ?qHash@QtMobility@@YAIABVQContactId@1@@Z @ 579 NONAME ; unsigned int QtMobility::qHash(class QtMobility::QContactId const &) + ?qHash@QtMobility@@YAIABVQContactRelationship@1@@Z @ 580 NONAME ; unsigned int QtMobility::qHash(class QtMobility::QContactRelationship const &) ?qt_metacall@QContactAbstractRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 581 NONAME ; int QtMobility::QContactAbstractRequest::qt_metacall(enum QMetaObject::Call, int, void * *) ?qt_metacall@QContactAction@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 582 NONAME ; int QtMobility::QContactAction::qt_metacall(enum QMetaObject::Call, int, void * *) ?qt_metacall@QContactActionFactory@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 583 NONAME ; int QtMobility::QContactActionFactory::qt_metacall(enum QMetaObject::Call, int, void * *) @@ -589,585 +589,514 @@ ?qt_metacall@QContactLocalIdFetchRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 588 NONAME ; int QtMobility::QContactLocalIdFetchRequest::qt_metacall(enum QMetaObject::Call, int, void * *) ?qt_metacall@QContactManager@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 589 NONAME ; int QtMobility::QContactManager::qt_metacall(enum QMetaObject::Call, int, void * *) ?qt_metacall@QContactManagerEngine@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 590 NONAME ; int QtMobility::QContactManagerEngine::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QContactMemoryEngine@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 591 NONAME ; int QtMobility::QContactMemoryEngine::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QContactRelationshipFetchRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 592 NONAME ; int QtMobility::QContactRelationshipFetchRequest::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QContactRelationshipRemoveRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 593 NONAME ; int QtMobility::QContactRelationshipRemoveRequest::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QContactRelationshipSaveRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 594 NONAME ; int QtMobility::QContactRelationshipSaveRequest::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QContactRemoveRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 595 NONAME ; int QtMobility::QContactRemoveRequest::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QContactSaveRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 596 NONAME ; int QtMobility::QContactSaveRequest::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacast@QContactAbstractRequest@QtMobility@@UAEPAXPBD@Z @ 597 NONAME ; void * QtMobility::QContactAbstractRequest::qt_metacast(char const *) - ?qt_metacast@QContactAction@QtMobility@@UAEPAXPBD@Z @ 598 NONAME ; void * QtMobility::QContactAction::qt_metacast(char const *) - ?qt_metacast@QContactActionFactory@QtMobility@@UAEPAXPBD@Z @ 599 NONAME ; void * QtMobility::QContactActionFactory::qt_metacast(char const *) - ?qt_metacast@QContactDetailDefinitionFetchRequest@QtMobility@@UAEPAXPBD@Z @ 600 NONAME ; void * QtMobility::QContactDetailDefinitionFetchRequest::qt_metacast(char const *) - ?qt_metacast@QContactDetailDefinitionRemoveRequest@QtMobility@@UAEPAXPBD@Z @ 601 NONAME ; void * QtMobility::QContactDetailDefinitionRemoveRequest::qt_metacast(char const *) - ?qt_metacast@QContactDetailDefinitionSaveRequest@QtMobility@@UAEPAXPBD@Z @ 602 NONAME ; void * QtMobility::QContactDetailDefinitionSaveRequest::qt_metacast(char const *) - ?qt_metacast@QContactFetchRequest@QtMobility@@UAEPAXPBD@Z @ 603 NONAME ; void * QtMobility::QContactFetchRequest::qt_metacast(char const *) - ?qt_metacast@QContactLocalIdFetchRequest@QtMobility@@UAEPAXPBD@Z @ 604 NONAME ; void * QtMobility::QContactLocalIdFetchRequest::qt_metacast(char const *) - ?qt_metacast@QContactManager@QtMobility@@UAEPAXPBD@Z @ 605 NONAME ; void * QtMobility::QContactManager::qt_metacast(char const *) - ?qt_metacast@QContactManagerEngine@QtMobility@@UAEPAXPBD@Z @ 606 NONAME ; void * QtMobility::QContactManagerEngine::qt_metacast(char const *) - ?qt_metacast@QContactMemoryEngine@QtMobility@@UAEPAXPBD@Z @ 607 NONAME ; void * QtMobility::QContactMemoryEngine::qt_metacast(char const *) - ?qt_metacast@QContactRelationshipFetchRequest@QtMobility@@UAEPAXPBD@Z @ 608 NONAME ; void * QtMobility::QContactRelationshipFetchRequest::qt_metacast(char const *) - ?qt_metacast@QContactRelationshipRemoveRequest@QtMobility@@UAEPAXPBD@Z @ 609 NONAME ; void * QtMobility::QContactRelationshipRemoveRequest::qt_metacast(char const *) - ?qt_metacast@QContactRelationshipSaveRequest@QtMobility@@UAEPAXPBD@Z @ 610 NONAME ; void * QtMobility::QContactRelationshipSaveRequest::qt_metacast(char const *) - ?qt_metacast@QContactRemoveRequest@QtMobility@@UAEPAXPBD@Z @ 611 NONAME ; void * QtMobility::QContactRemoveRequest::qt_metacast(char const *) - ?qt_metacast@QContactSaveRequest@QtMobility@@UAEPAXPBD@Z @ 612 NONAME ; void * QtMobility::QContactSaveRequest::qt_metacast(char const *) - ?rangeFlags@QContactDetailRangeFilter@QtMobility@@QBE?AV?$QFlags@W4RangeFlag@QContactDetailRangeFilter@QtMobility@@@@XZ @ 613 NONAME ; class QFlags QtMobility::QContactDetailRangeFilter::rangeFlags(void) const - ?region@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 614 NONAME ; class QString QtMobility::QContactAddress::region(void) const - ?relatedContactId@QContactRelationshipFilter@QtMobility@@QBE?AVQContactId@2@XZ @ 615 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationshipFilter::relatedContactId(void) const - ?relatedContactRole@QContactRelationshipFilter@QtMobility@@QBE?AW4Role@12@XZ @ 616 NONAME ; enum QtMobility::QContactRelationshipFilter::Role QtMobility::QContactRelationshipFilter::relatedContactRole(void) const - ?relatedContacts@QContact@QtMobility@@QBE?AV?$QList@VQContactId@QtMobility@@@@ABVQString@@W4Role@QContactRelationshipFilter@2@@Z @ 617 NONAME ; class QList QtMobility::QContact::relatedContacts(class QString const &, enum QtMobility::QContactRelationshipFilter::Role) const - ?relationshipOrder@QContact@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@XZ @ 618 NONAME ; class QList QtMobility::QContact::relationshipOrder(void) const - ?relationshipType@QContactRelationship@QtMobility@@QBE?AVQString@@XZ @ 619 NONAME ; class QString QtMobility::QContactRelationship::relationshipType(void) const - ?relationshipType@QContactRelationshipFetchRequest@QtMobility@@QBE?AVQString@@XZ @ 620 NONAME ; class QString QtMobility::QContactRelationshipFetchRequest::relationshipType(void) const - ?relationshipType@QContactRelationshipFilter@QtMobility@@QBE?AVQString@@XZ @ 621 NONAME ; class QString QtMobility::QContactRelationshipFilter::relationshipType(void) const - ?relationshipType@QContactRelationshipRemoveRequest@QtMobility@@QBE?AVQString@@XZ @ 622 NONAME ; class QString QtMobility::QContactRelationshipRemoveRequest::relationshipType(void) const - ?relationships@QContact@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@ABVQString@@@Z @ 623 NONAME ; class QList QtMobility::QContact::relationships(class QString const &) const - ?relationships@QContactManager@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@ABVQContactId@2@W4Role@QContactRelationshipFilter@2@@Z @ 624 NONAME ; class QList QtMobility::QContactManager::relationships(class QtMobility::QContactId const &, enum QtMobility::QContactRelationshipFilter::Role) const - ?relationships@QContactManager@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@ABVQString@@ABVQContactId@2@W4Role@QContactRelationshipFilter@2@@Z @ 625 NONAME ; class QList QtMobility::QContactManager::relationships(class QString const &, class QtMobility::QContactId const &, enum QtMobility::QContactRelationshipFilter::Role) const - ?relationships@QContactManagerEngine@QtMobility@@UBE?AV?$QList@VQContactRelationship@QtMobility@@@@ABVQString@@ABVQContactId@2@W4Role@QContactRelationshipFilter@2@AAW4Error@QContactManager@2@@Z @ 626 NONAME ; class QList QtMobility::QContactManagerEngine::relationships(class QString const &, class QtMobility::QContactId const &, enum QtMobility::QContactRelationshipFilter::Role, enum QtMobility::QContactManager::Error &) const - ?relationships@QContactMemoryEngine@QtMobility@@UBE?AV?$QList@VQContactRelationship@QtMobility@@@@ABVQString@@ABVQContactId@2@W4Role@QContactRelationshipFilter@2@AAW4Error@QContactManager@2@@Z @ 627 NONAME ; class QList QtMobility::QContactMemoryEngine::relationships(class QString const &, class QtMobility::QContactId const &, enum QtMobility::QContactRelationshipFilter::Role, enum QtMobility::QContactManager::Error &) const - ?relationships@QContactRelationshipFetchRequest@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@XZ @ 628 NONAME ; class QList QtMobility::QContactRelationshipFetchRequest::relationships(void) const - ?relationships@QContactRelationshipRemoveRequest@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@XZ @ 629 NONAME ; class QList QtMobility::QContactRelationshipRemoveRequest::relationships(void) const - ?relationships@QContactRelationshipSaveRequest@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@XZ @ 630 NONAME ; class QList QtMobility::QContactRelationshipSaveRequest::relationships(void) const - ?relationshipsAdded@QContactManager@QtMobility@@IAEXABV?$QList@I@@@Z @ 631 NONAME ; void QtMobility::QContactManager::relationshipsAdded(class QList const &) - ?relationshipsAdded@QContactManagerEngine@QtMobility@@IAEXABV?$QList@I@@@Z @ 632 NONAME ; void QtMobility::QContactManagerEngine::relationshipsAdded(class QList const &) - ?relationshipsRemoved@QContactManager@QtMobility@@IAEXABV?$QList@I@@@Z @ 633 NONAME ; void QtMobility::QContactManager::relationshipsRemoved(class QList const &) - ?relationshipsRemoved@QContactManagerEngine@QtMobility@@IAEXABV?$QList@I@@@Z @ 634 NONAME ; void QtMobility::QContactManagerEngine::relationshipsRemoved(class QList const &) - ?remove@QContactIntersectionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 635 NONAME ; void QtMobility::QContactIntersectionFilter::remove(class QtMobility::QContactFilter const &) - ?remove@QContactUnionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 636 NONAME ; void QtMobility::QContactUnionFilter::remove(class QtMobility::QContactFilter const &) - ?removeContact@QContactManager@QtMobility@@QAE_NABI@Z @ 637 NONAME ; bool QtMobility::QContactManager::removeContact(unsigned int const &) - ?removeContact@QContactManagerEngine@QtMobility@@UAE_NABIAAW4Error@QContactManager@2@@Z @ 638 NONAME ; bool QtMobility::QContactManagerEngine::removeContact(unsigned int const &, enum QtMobility::QContactManager::Error &) - ?removeContact@QContactMemoryEngine@QtMobility@@AAE_NABIAAVQContactChangeSet@2@AAW4Error@QContactManager@2@@Z @ 639 NONAME ; bool QtMobility::QContactMemoryEngine::removeContact(unsigned int const &, class QtMobility::QContactChangeSet &, enum QtMobility::QContactManager::Error &) - ?removeContact@QContactMemoryEngine@QtMobility@@UAE_NABIAAW4Error@QContactManager@2@@Z @ 640 NONAME ; bool QtMobility::QContactMemoryEngine::removeContact(unsigned int const &, enum QtMobility::QContactManager::Error &) - ?removeContacts@QContactManager@QtMobility@@QAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@PAV?$QList@I@@@Z @ 641 NONAME ; class QList QtMobility::QContactManager::removeContacts(class QList *) - ?removeContacts@QContactManager@QtMobility@@QAE_NPAV?$QList@I@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 642 NONAME ; bool QtMobility::QContactManager::removeContacts(class QList *, class QMap *) - ?removeContacts@QContactManagerEngine@QtMobility@@UAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@PAV?$QList@I@@AAW4Error@QContactManager@2@@Z @ 643 NONAME ; class QList QtMobility::QContactManagerEngine::removeContacts(class QList *, enum QtMobility::QContactManager::Error &) - ?removeContacts@QContactManagerEngine@QtMobility@@UAE_NPAV?$QList@I@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 644 NONAME ; bool QtMobility::QContactManagerEngine::removeContacts(class QList *, class QMap *, enum QtMobility::QContactManager::Error &) - ?removeContacts@QContactMemoryEngine@QtMobility@@UAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@PAV?$QList@I@@AAW4Error@QContactManager@2@@Z @ 645 NONAME ; class QList QtMobility::QContactMemoryEngine::removeContacts(class QList *, enum QtMobility::QContactManager::Error &) - ?removeContacts@QContactMemoryEngine@QtMobility@@UAE_NPAV?$QList@I@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 646 NONAME ; bool QtMobility::QContactMemoryEngine::removeContacts(class QList *, class QMap *, enum QtMobility::QContactManager::Error &) - ?removeDetail@QContact@QtMobility@@QAE_NPAVQContactDetail@2@@Z @ 647 NONAME ; bool QtMobility::QContact::removeDetail(class QtMobility::QContactDetail *) - ?removeDetailDefinition@QContactManager@QtMobility@@QAE_NABVQString@@0@Z @ 648 NONAME ; bool QtMobility::QContactManager::removeDetailDefinition(class QString const &, class QString const &) - ?removeDetailDefinition@QContactManagerEngine@QtMobility@@UAE_NABVQString@@0AAW4Error@QContactManager@2@@Z @ 649 NONAME ; bool QtMobility::QContactManagerEngine::removeDetailDefinition(class QString const &, class QString const &, enum QtMobility::QContactManager::Error &) - ?removeDetailDefinition@QContactMemoryEngine@QtMobility@@AAE_NABVQString@@0AAVQContactChangeSet@2@AAW4Error@QContactManager@2@@Z @ 650 NONAME ; bool QtMobility::QContactMemoryEngine::removeDetailDefinition(class QString const &, class QString const &, class QtMobility::QContactChangeSet &, enum QtMobility::QContactManager::Error &) - ?removeDetailDefinition@QContactMemoryEngine@QtMobility@@UAE_NABVQString@@0AAW4Error@QContactManager@2@@Z @ 651 NONAME ; bool QtMobility::QContactMemoryEngine::removeDetailDefinition(class QString const &, class QString const &, enum QtMobility::QContactManager::Error &) - ?removeField@QContactDetailDefinition@QtMobility@@QAEXABVQString@@@Z @ 652 NONAME ; void QtMobility::QContactDetailDefinition::removeField(class QString const &) - ?removeRelationship@QContactManager@QtMobility@@QAE_NABVQContactRelationship@2@@Z @ 653 NONAME ; bool QtMobility::QContactManager::removeRelationship(class QtMobility::QContactRelationship const &) - ?removeRelationship@QContactManagerEngine@QtMobility@@UAE_NABVQContactRelationship@2@AAW4Error@QContactManager@2@@Z @ 654 NONAME ; bool QtMobility::QContactManagerEngine::removeRelationship(class QtMobility::QContactRelationship const &, enum QtMobility::QContactManager::Error &) - ?removeRelationship@QContactMemoryEngine@QtMobility@@AAE_NABVQContactRelationship@2@AAVQContactChangeSet@2@AAW4Error@QContactManager@2@@Z @ 655 NONAME ; bool QtMobility::QContactMemoryEngine::removeRelationship(class QtMobility::QContactRelationship const &, class QtMobility::QContactChangeSet &, enum QtMobility::QContactManager::Error &) - ?removeRelationship@QContactMemoryEngine@QtMobility@@UAE_NABVQContactRelationship@2@AAW4Error@QContactManager@2@@Z @ 656 NONAME ; bool QtMobility::QContactMemoryEngine::removeRelationship(class QtMobility::QContactRelationship const &, enum QtMobility::QContactManager::Error &) - ?removeRelationships@QContactManager@QtMobility@@QAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@ABV?$QList@VQContactRelationship@QtMobility@@@@@Z @ 657 NONAME ; class QList QtMobility::QContactManager::removeRelationships(class QList const &) - ?removeRelationships@QContactManagerEngine@QtMobility@@UAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@ABV?$QList@VQContactRelationship@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 658 NONAME ; class QList QtMobility::QContactManagerEngine::removeRelationships(class QList const &, enum QtMobility::QContactManager::Error &) - ?removeRelationships@QContactMemoryEngine@QtMobility@@UAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@ABV?$QList@VQContactRelationship@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 659 NONAME ; class QList QtMobility::QContactMemoryEngine::removeRelationships(class QList const &, enum QtMobility::QContactManager::Error &) - ?removeValue@QContactDetail@QtMobility@@QAE_NABVQString@@@Z @ 660 NONAME ; bool QtMobility::QContactDetail::removeValue(class QString const &) - ?removedContacts@QContactChangeSet@QtMobility@@QAEAAV?$QSet@I@@XZ @ 661 NONAME ; class QSet & QtMobility::QContactChangeSet::removedContacts(void) - ?removedRelationshipsContacts@QContactChangeSet@QtMobility@@QAEAAV?$QSet@I@@XZ @ 662 NONAME ; class QSet & QtMobility::QContactChangeSet::removedRelationshipsContacts(void) - ?requestDestroyed@QContactManagerEngine@QtMobility@@UAEXPAVQContactAbstractRequest@2@@Z @ 663 NONAME ; void QtMobility::QContactManagerEngine::requestDestroyed(class QtMobility::QContactAbstractRequest *) - ?requestDestroyed@QContactMemoryEngine@QtMobility@@UAEXPAVQContactAbstractRequest@2@@Z @ 664 NONAME ; void QtMobility::QContactMemoryEngine::requestDestroyed(class QtMobility::QContactAbstractRequest *) - ?resetKey@QContactDetail@QtMobility@@QAEXXZ @ 665 NONAME ; void QtMobility::QContactDetail::resetKey(void) - ?resultsAvailable@QContactAbstractRequest@QtMobility@@IAEXXZ @ 666 NONAME ; void QtMobility::QContactAbstractRequest::resultsAvailable(void) - ?role@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 667 NONAME ; class QString QtMobility::QContactOrganization::role(void) const - ?role@QContactRelationshipFilter@QtMobility@@QBE?AW4Role@12@XZ @ 668 NONAME ; enum QtMobility::QContactRelationshipFilter::Role QtMobility::QContactRelationshipFilter::role(void) const - ?saveContact@QContactManager@QtMobility@@QAE_NPAVQContact@2@@Z @ 669 NONAME ; bool QtMobility::QContactManager::saveContact(class QtMobility::QContact *) - ?saveContact@QContactManagerEngine@QtMobility@@UAE_NPAVQContact@2@AAW4Error@QContactManager@2@@Z @ 670 NONAME ; bool QtMobility::QContactManagerEngine::saveContact(class QtMobility::QContact *, enum QtMobility::QContactManager::Error &) - ?saveContact@QContactMemoryEngine@QtMobility@@AAE_NPAVQContact@2@AAVQContactChangeSet@2@AAW4Error@QContactManager@2@@Z @ 671 NONAME ; bool QtMobility::QContactMemoryEngine::saveContact(class QtMobility::QContact *, class QtMobility::QContactChangeSet &, enum QtMobility::QContactManager::Error &) - ?saveContact@QContactMemoryEngine@QtMobility@@UAE_NPAVQContact@2@AAW4Error@QContactManager@2@@Z @ 672 NONAME ; bool QtMobility::QContactMemoryEngine::saveContact(class QtMobility::QContact *, enum QtMobility::QContactManager::Error &) - ?saveContacts@QContactManager@QtMobility@@QAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@PAV?$QList@VQContact@QtMobility@@@@@Z @ 673 NONAME ; class QList QtMobility::QContactManager::saveContacts(class QList *) - ?saveContacts@QContactManager@QtMobility@@QAE_NPAV?$QList@VQContact@QtMobility@@@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 674 NONAME ; bool QtMobility::QContactManager::saveContacts(class QList *, class QMap *) - ?saveContacts@QContactManagerEngine@QtMobility@@UAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@PAV?$QList@VQContact@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 675 NONAME ; class QList QtMobility::QContactManagerEngine::saveContacts(class QList *, enum QtMobility::QContactManager::Error &) - ?saveContacts@QContactManagerEngine@QtMobility@@UAE_NPAV?$QList@VQContact@QtMobility@@@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 676 NONAME ; bool QtMobility::QContactManagerEngine::saveContacts(class QList *, class QMap *, enum QtMobility::QContactManager::Error &) - ?saveContacts@QContactMemoryEngine@QtMobility@@UAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@PAV?$QList@VQContact@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 677 NONAME ; class QList QtMobility::QContactMemoryEngine::saveContacts(class QList *, enum QtMobility::QContactManager::Error &) - ?saveContacts@QContactMemoryEngine@QtMobility@@UAE_NPAV?$QList@VQContact@QtMobility@@@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 678 NONAME ; bool QtMobility::QContactMemoryEngine::saveContacts(class QList *, class QMap *, enum QtMobility::QContactManager::Error &) - ?saveDetail@QContact@QtMobility@@QAE_NPAVQContactDetail@2@@Z @ 679 NONAME ; bool QtMobility::QContact::saveDetail(class QtMobility::QContactDetail *) - ?saveDetailDefinition@QContactManager@QtMobility@@QAE_NABVQContactDetailDefinition@2@ABVQString@@@Z @ 680 NONAME ; bool QtMobility::QContactManager::saveDetailDefinition(class QtMobility::QContactDetailDefinition const &, class QString const &) - ?saveDetailDefinition@QContactManagerEngine@QtMobility@@UAE_NABVQContactDetailDefinition@2@ABVQString@@AAW4Error@QContactManager@2@@Z @ 681 NONAME ; bool QtMobility::QContactManagerEngine::saveDetailDefinition(class QtMobility::QContactDetailDefinition const &, class QString const &, enum QtMobility::QContactManager::Error &) - ?saveDetailDefinition@QContactMemoryEngine@QtMobility@@AAE_NABVQContactDetailDefinition@2@ABVQString@@AAVQContactChangeSet@2@AAW4Error@QContactManager@2@@Z @ 682 NONAME ; bool QtMobility::QContactMemoryEngine::saveDetailDefinition(class QtMobility::QContactDetailDefinition const &, class QString const &, class QtMobility::QContactChangeSet &, enum QtMobility::QContactManager::Error &) - ?saveDetailDefinition@QContactMemoryEngine@QtMobility@@UAE_NABVQContactDetailDefinition@2@ABVQString@@AAW4Error@QContactManager@2@@Z @ 683 NONAME ; bool QtMobility::QContactMemoryEngine::saveDetailDefinition(class QtMobility::QContactDetailDefinition const &, class QString const &, enum QtMobility::QContactManager::Error &) - ?saveRelationship@QContactManager@QtMobility@@QAE_NPAVQContactRelationship@2@@Z @ 684 NONAME ; bool QtMobility::QContactManager::saveRelationship(class QtMobility::QContactRelationship *) - ?saveRelationship@QContactManagerEngine@QtMobility@@UAE_NPAVQContactRelationship@2@AAW4Error@QContactManager@2@@Z @ 685 NONAME ; bool QtMobility::QContactManagerEngine::saveRelationship(class QtMobility::QContactRelationship *, enum QtMobility::QContactManager::Error &) - ?saveRelationship@QContactMemoryEngine@QtMobility@@AAE_NPAVQContactRelationship@2@AAVQContactChangeSet@2@AAW4Error@QContactManager@2@@Z @ 686 NONAME ; bool QtMobility::QContactMemoryEngine::saveRelationship(class QtMobility::QContactRelationship *, class QtMobility::QContactChangeSet &, enum QtMobility::QContactManager::Error &) - ?saveRelationship@QContactMemoryEngine@QtMobility@@UAE_NPAVQContactRelationship@2@AAW4Error@QContactManager@2@@Z @ 687 NONAME ; bool QtMobility::QContactMemoryEngine::saveRelationship(class QtMobility::QContactRelationship *, enum QtMobility::QContactManager::Error &) - ?saveRelationships@QContactManager@QtMobility@@QAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@PAV?$QList@VQContactRelationship@QtMobility@@@@@Z @ 688 NONAME ; class QList QtMobility::QContactManager::saveRelationships(class QList *) - ?saveRelationships@QContactManagerEngine@QtMobility@@UAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@PAV?$QList@VQContactRelationship@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 689 NONAME ; class QList QtMobility::QContactManagerEngine::saveRelationships(class QList *, enum QtMobility::QContactManager::Error &) - ?saveRelationships@QContactMemoryEngine@QtMobility@@UAE?AV?$QList@W4Error@QContactManager@QtMobility@@@@PAV?$QList@VQContactRelationship@QtMobility@@@@AAW4Error@QContactManager@2@@Z @ 690 NONAME ; class QList QtMobility::QContactMemoryEngine::saveRelationships(class QList *, enum QtMobility::QContactManager::Error &) - ?schemaDefinitions@QContactManagerEngine@QtMobility@@SA?AV?$QMap@VQString@@V?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@@@XZ @ 691 NONAME ; class QMap > QtMobility::QContactManagerEngine::schemaDefinitions(void) - ?second@QContactRelationship@QtMobility@@QBE?AVQContactId@2@XZ @ 692 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationship::second(void) const - ?second@QContactRelationshipFetchRequest@QtMobility@@QBE?AVQContactId@2@XZ @ 693 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationshipFetchRequest::second(void) const - ?second@QContactRelationshipRemoveRequest@QtMobility@@QBE?AVQContactId@2@XZ @ 694 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationshipRemoveRequest::second(void) const - ?selfContactId@QContactManager@QtMobility@@QBEIXZ @ 695 NONAME ; unsigned int QtMobility::QContactManager::selfContactId(void) const - ?selfContactId@QContactManagerEngine@QtMobility@@UBEIAAW4Error@QContactManager@2@@Z @ 696 NONAME ; unsigned int QtMobility::QContactManagerEngine::selfContactId(enum QtMobility::QContactManager::Error &) const - ?selfContactId@QContactMemoryEngine@QtMobility@@UBEIAAW4Error@QContactManager@2@@Z @ 697 NONAME ; unsigned int QtMobility::QContactMemoryEngine::selfContactId(enum QtMobility::QContactManager::Error &) const - ?selfContactIdChanged@QContactManager@QtMobility@@IAEXABI0@Z @ 698 NONAME ; void QtMobility::QContactManager::selfContactIdChanged(unsigned int const &, unsigned int const &) - ?selfContactIdChanged@QContactManagerEngine@QtMobility@@IAEXABI0@Z @ 699 NONAME ; void QtMobility::QContactManagerEngine::selfContactIdChanged(unsigned int const &, unsigned int const &) - ?serviceProvider@QContactOnlineAccount@QtMobility@@QBE?AVQString@@XZ @ 700 NONAME ; class QString QtMobility::QContactOnlineAccount::serviceProvider(void) const - ?setAccessConstraint@QContactDetailDefinition@QtMobility@@QAEXABW4AccessConstraint@12@@Z @ 701 NONAME ; void QtMobility::QContactDetailDefinition::setAccessConstraint(enum QtMobility::QContactDetailDefinition::AccessConstraint const &) - ?setAccessConstraint@QContactDetailFieldDefinition@QtMobility@@QAEXW4AccessConstraint@12@@Z @ 702 NONAME ; void QtMobility::QContactDetailFieldDefinition::setAccessConstraint(enum QtMobility::QContactDetailFieldDefinition::AccessConstraint) - ?setAccountUri@QContactOnlineAccount@QtMobility@@QAEXABVQString@@@Z @ 703 NONAME ; void QtMobility::QContactOnlineAccount::setAccountUri(class QString const &) - ?setAccuracy@QContactGeoLocation@QtMobility@@QAEXN@Z @ 704 NONAME ; void QtMobility::QContactGeoLocation::setAccuracy(double) - ?setAccuracy@QContactGeolocation@QtMobility@@QAEXN@Z @ 705 NONAME ; void QtMobility::QContactGeolocation::setAccuracy(double) - ?setActionName@QContactActionDescriptor@QtMobility@@QAEXABVQString@@@Z @ 706 NONAME ; void QtMobility::QContactActionDescriptor::setActionName(class QString const &) - ?setActionName@QContactActionFilter@QtMobility@@QAEXABVQString@@@Z @ 707 NONAME ; void QtMobility::QContactActionFilter::setActionName(class QString const &) - ?setAllowableValues@QContactDetailFieldDefinition@QtMobility@@QAEXV?$QList@VQVariant@@@@@Z @ 708 NONAME ; void QtMobility::QContactDetailFieldDefinition::setAllowableValues(class QList) - ?setAltitude@QContactGeoLocation@QtMobility@@QAEXN@Z @ 709 NONAME ; void QtMobility::QContactGeoLocation::setAltitude(double) - ?setAltitude@QContactGeolocation@QtMobility@@QAEXN@Z @ 710 NONAME ; void QtMobility::QContactGeolocation::setAltitude(double) - ?setAltitudeAccuracy@QContactGeoLocation@QtMobility@@QAEXN@Z @ 711 NONAME ; void QtMobility::QContactGeoLocation::setAltitudeAccuracy(double) - ?setAltitudeAccuracy@QContactGeolocation@QtMobility@@QAEXN@Z @ 712 NONAME ; void QtMobility::QContactGeolocation::setAltitudeAccuracy(double) - ?setAssistantName@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 713 NONAME ; void QtMobility::QContactOrganization::setAssistantName(class QString const &) - ?setAvatar@QContactAvatar@QtMobility@@QAEXABVQString@@@Z @ 714 NONAME ; void QtMobility::QContactAvatar::setAvatar(class QString const &) - ?setBlankPolicy@QContactSortOrder@QtMobility@@QAEXW4BlankPolicy@12@@Z @ 715 NONAME ; void QtMobility::QContactSortOrder::setBlankPolicy(enum QtMobility::QContactSortOrder::BlankPolicy) - ?setCalendarId@QContactAnniversary@QtMobility@@QAEXABVQString@@@Z @ 716 NONAME ; void QtMobility::QContactAnniversary::setCalendarId(class QString const &) - ?setCapabilities@QContactOnlineAccount@QtMobility@@QAEXABVQStringList@@@Z @ 717 NONAME ; void QtMobility::QContactOnlineAccount::setCapabilities(class QStringList const &) - ?setCaseSensitivity@QContactSortOrder@QtMobility@@QAEXW4CaseSensitivity@Qt@@@Z @ 718 NONAME ; void QtMobility::QContactSortOrder::setCaseSensitivity(enum Qt::CaseSensitivity) - ?setChildren@QContactFamily@QtMobility@@QAEXABVQStringList@@@Z @ 719 NONAME ; void QtMobility::QContactFamily::setChildren(class QStringList const &) - ?setContactDisplayLabel@QContactManagerEngine@QtMobility@@QBE?AVQContact@2@ABVQString@@ABV32@@Z @ 720 NONAME ; class QtMobility::QContact QtMobility::QContactManagerEngine::setContactDisplayLabel(class QString const &, class QtMobility::QContact const &) const - ?setContactIds@QContactRemoveRequest@QtMobility@@QAEXABV?$QList@I@@@Z @ 721 NONAME ; void QtMobility::QContactRemoveRequest::setContactIds(class QList const &) - ?setContactRelationships@QContactManagerEngine@QtMobility@@SAXPAVQContact@2@ABV?$QList@VQContactRelationship@QtMobility@@@@@Z @ 722 NONAME ; void QtMobility::QContactManagerEngine::setContactRelationships(class QtMobility::QContact *, class QList const &) - ?setContactType@QContactDetailDefinitionFetchRequest@QtMobility@@QAEXABVQString@@@Z @ 723 NONAME ; void QtMobility::QContactDetailDefinitionFetchRequest::setContactType(class QString const &) - ?setContactType@QContactDetailDefinitionSaveRequest@QtMobility@@QAEXABVQString@@@Z @ 724 NONAME ; void QtMobility::QContactDetailDefinitionSaveRequest::setContactType(class QString const &) - ?setContacts@QContactSaveRequest@QtMobility@@QAEXABV?$QList@VQContact@QtMobility@@@@@Z @ 725 NONAME ; void QtMobility::QContactSaveRequest::setContacts(class QList const &) - ?setContexts@QContactDetail@QtMobility@@QAEXABVQString@@@Z @ 726 NONAME ; void QtMobility::QContactDetail::setContexts(class QString const &) - ?setContexts@QContactDetail@QtMobility@@QAEXABVQStringList@@@Z @ 727 NONAME ; void QtMobility::QContactDetail::setContexts(class QStringList const &) - ?setCountry@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 728 NONAME ; void QtMobility::QContactAddress::setCountry(class QString const &) - ?setCreated@QContactTimestamp@QtMobility@@QAEXABVQDateTime@@@Z @ 729 NONAME ; void QtMobility::QContactTimestamp::setCreated(class QDateTime const &) - ?setCustomLabel@QContactName@QtMobility@@QAEXABVQString@@@Z @ 730 NONAME ; void QtMobility::QContactName::setCustomLabel(class QString const &) - ?setDataChanged@QContactChangeSet@QtMobility@@QAEX_N@Z @ 731 NONAME ; void QtMobility::QContactChangeSet::setDataChanged(bool) - ?setDataType@QContactDetailFieldDefinition@QtMobility@@QAEXW4Type@QVariant@@@Z @ 732 NONAME ; void QtMobility::QContactDetailFieldDefinition::setDataType(enum QVariant::Type) - ?setDate@QContactBirthday@QtMobility@@QAEXABVQDate@@@Z @ 733 NONAME ; void QtMobility::QContactBirthday::setDate(class QDate const &) - ?setDefinitionNames@QContactDetailDefinitionFetchRequest@QtMobility@@QAEXABVQStringList@@@Z @ 734 NONAME ; void QtMobility::QContactDetailDefinitionFetchRequest::setDefinitionNames(class QStringList const &) - ?setDefinitionNames@QContactDetailDefinitionRemoveRequest@QtMobility@@QAEXABVQString@@ABVQStringList@@@Z @ 735 NONAME ; void QtMobility::QContactDetailDefinitionRemoveRequest::setDefinitionNames(class QString const &, class QStringList const &) - ?setDefinitionRestrictions@QContactFetchRequest@QtMobility@@QAEXABVQStringList@@@Z @ 736 NONAME ; void QtMobility::QContactFetchRequest::setDefinitionRestrictions(class QStringList const &) - ?setDefinitions@QContactDetailDefinitionSaveRequest@QtMobility@@QAEXABV?$QList@VQContactDetailDefinition@QtMobility@@@@@Z @ 737 NONAME ; void QtMobility::QContactDetailDefinitionSaveRequest::setDefinitions(class QList const &) - ?setDepartment@QContactOrganization@QtMobility@@QAEXABVQStringList@@@Z @ 738 NONAME ; void QtMobility::QContactOrganization::setDepartment(class QStringList const &) - ?setDetailAccessConstraints@QContactManagerEngine@QtMobility@@IBEXPAVQContactDetail@2@V?$QFlags@W4AccessConstraint@QContactDetail@QtMobility@@@@@Z @ 739 NONAME ; void QtMobility::QContactManagerEngine::setDetailAccessConstraints(class QtMobility::QContactDetail *, class QFlags) const - ?setDetailDefinitionName@QContactDetailFilter@QtMobility@@QAEXABVQString@@0@Z @ 740 NONAME ; void QtMobility::QContactDetailFilter::setDetailDefinitionName(class QString const &, class QString const &) - ?setDetailDefinitionName@QContactDetailRangeFilter@QtMobility@@QAEXABVQString@@0@Z @ 741 NONAME ; void QtMobility::QContactDetailRangeFilter::setDetailDefinitionName(class QString const &, class QString const &) - ?setDetailDefinitionName@QContactSortOrder@QtMobility@@QAEXABVQString@@0@Z @ 742 NONAME ; void QtMobility::QContactSortOrder::setDetailDefinitionName(class QString const &, class QString const &) - ?setDetailUri@QContactDetail@QtMobility@@QAEXABVQString@@@Z @ 743 NONAME ; void QtMobility::QContactDetail::setDetailUri(class QString const &) - ?setDirection@QContactSortOrder@QtMobility@@QAEXW4SortOrder@Qt@@@Z @ 744 NONAME ; void QtMobility::QContactSortOrder::setDirection(enum Qt::SortOrder) - ?setEmailAddress@QContactEmailAddress@QtMobility@@QAEXABVQString@@@Z @ 745 NONAME ; void QtMobility::QContactEmailAddress::setEmailAddress(class QString const &) - ?setEvent@QContactAnniversary@QtMobility@@QAEXABVQString@@@Z @ 746 NONAME ; void QtMobility::QContactAnniversary::setEvent(class QString const &) - ?setEventType@QContactChangeLogFilter@QtMobility@@QAEXW4EventType@12@@Z @ 747 NONAME ; void QtMobility::QContactChangeLogFilter::setEventType(enum QtMobility::QContactChangeLogFilter::EventType) - ?setFields@QContactDetailDefinition@QtMobility@@QAEXABV?$QMap@VQString@@VQContactDetailFieldDefinition@QtMobility@@@@@Z @ 748 NONAME ; void QtMobility::QContactDetailDefinition::setFields(class QMap const &) - ?setFilter@QContactFetchRequest@QtMobility@@QAEXABVQContactFilter@2@@Z @ 749 NONAME ; void QtMobility::QContactFetchRequest::setFilter(class QtMobility::QContactFilter const &) - ?setFilter@QContactLocalIdFetchRequest@QtMobility@@QAEXABVQContactFilter@2@@Z @ 750 NONAME ; void QtMobility::QContactLocalIdFetchRequest::setFilter(class QtMobility::QContactFilter const &) - ?setFilter@QContactRemoveRequest@QtMobility@@QAEXABVQContactFilter@2@@Z @ 751 NONAME ; void QtMobility::QContactRemoveRequest::setFilter(class QtMobility::QContactFilter const &) - ?setFilters@QContactIntersectionFilter@QtMobility@@QAEXABV?$QList@VQContactFilter@QtMobility@@@@@Z @ 752 NONAME ; void QtMobility::QContactIntersectionFilter::setFilters(class QList const &) - ?setFilters@QContactUnionFilter@QtMobility@@QAEXABV?$QList@VQContactFilter@QtMobility@@@@@Z @ 753 NONAME ; void QtMobility::QContactUnionFilter::setFilters(class QList const &) - ?setFirst@QContactName@QtMobility@@QAEXABVQString@@@Z @ 754 NONAME ; void QtMobility::QContactName::setFirst(class QString const &) - ?setFirst@QContactRelationship@QtMobility@@QAEXABVQContactId@2@@Z @ 755 NONAME ; void QtMobility::QContactRelationship::setFirst(class QtMobility::QContactId const &) - ?setFirst@QContactRelationshipFetchRequest@QtMobility@@QAEXABVQContactId@2@@Z @ 756 NONAME ; void QtMobility::QContactRelationshipFetchRequest::setFirst(class QtMobility::QContactId const &) - ?setFirst@QContactRelationshipRemoveRequest@QtMobility@@QAEXABVQContactId@2@@Z @ 757 NONAME ; void QtMobility::QContactRelationshipRemoveRequest::setFirst(class QtMobility::QContactId const &) - ?setFirstName@QContactName@QtMobility@@QAEXABVQString@@@Z @ 758 NONAME ; void QtMobility::QContactName::setFirstName(class QString const &) - ?setGender@QContactGender@QtMobility@@QAEXABVQString@@@Z @ 759 NONAME ; void QtMobility::QContactGender::setGender(class QString const &) - ?setGuid@QContactGuid@QtMobility@@QAEXABVQString@@@Z @ 760 NONAME ; void QtMobility::QContactGuid::setGuid(class QString const &) - ?setHeading@QContactGeoLocation@QtMobility@@QAEXN@Z @ 761 NONAME ; void QtMobility::QContactGeoLocation::setHeading(double) - ?setHeading@QContactGeolocation@QtMobility@@QAEXN@Z @ 762 NONAME ; void QtMobility::QContactGeolocation::setHeading(double) - ?setId@QContact@QtMobility@@QAEXABVQContactId@2@@Z @ 763 NONAME ; void QtMobility::QContact::setId(class QtMobility::QContactId const &) - ?setIds@QContactLocalIdFilter@QtMobility@@QAEXABV?$QList@I@@@Z @ 764 NONAME ; void QtMobility::QContactLocalIdFilter::setIds(class QList const &) - ?setImplementationVersion@QContactActionDescriptor@QtMobility@@QAEXH@Z @ 765 NONAME ; void QtMobility::QContactActionDescriptor::setImplementationVersion(int) - ?setLabel@QContactGeoLocation@QtMobility@@QAEXABVQString@@@Z @ 766 NONAME ; void QtMobility::QContactGeoLocation::setLabel(class QString const &) - ?setLabel@QContactGeolocation@QtMobility@@QAEXABVQString@@@Z @ 767 NONAME ; void QtMobility::QContactGeolocation::setLabel(class QString const &) - ?setLast@QContactName@QtMobility@@QAEXABVQString@@@Z @ 768 NONAME ; void QtMobility::QContactName::setLast(class QString const &) - ?setLastModified@QContactTimestamp@QtMobility@@QAEXABVQDateTime@@@Z @ 769 NONAME ; void QtMobility::QContactTimestamp::setLastModified(class QDateTime const &) - ?setLastName@QContactName@QtMobility@@QAEXABVQString@@@Z @ 770 NONAME ; void QtMobility::QContactName::setLastName(class QString const &) - ?setLatitude@QContactGeoLocation@QtMobility@@QAEXN@Z @ 771 NONAME ; void QtMobility::QContactGeoLocation::setLatitude(double) - ?setLatitude@QContactGeolocation@QtMobility@@QAEXN@Z @ 772 NONAME ; void QtMobility::QContactGeolocation::setLatitude(double) - ?setLinkedDetailUris@QContactDetail@QtMobility@@QAEXABVQString@@@Z @ 773 NONAME ; void QtMobility::QContactDetail::setLinkedDetailUris(class QString const &) - ?setLinkedDetailUris@QContactDetail@QtMobility@@QAEXABVQStringList@@@Z @ 774 NONAME ; void QtMobility::QContactDetail::setLinkedDetailUris(class QStringList const &) - ?setLocalId@QContactId@QtMobility@@QAEXABI@Z @ 775 NONAME ; void QtMobility::QContactId::setLocalId(unsigned int const &) - ?setLocality@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 776 NONAME ; void QtMobility::QContactAddress::setLocality(class QString const &) - ?setLocation@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 777 NONAME ; void QtMobility::QContactOrganization::setLocation(class QString const &) - ?setLogo@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 778 NONAME ; void QtMobility::QContactOrganization::setLogo(class QString const &) - ?setLongitude@QContactGeoLocation@QtMobility@@QAEXN@Z @ 779 NONAME ; void QtMobility::QContactGeoLocation::setLongitude(double) - ?setLongitude@QContactGeolocation@QtMobility@@QAEXN@Z @ 780 NONAME ; void QtMobility::QContactGeolocation::setLongitude(double) - ?setManager@QContactAbstractRequest@QtMobility@@QAEXPAVQContactManager@2@@Z @ 781 NONAME ; void QtMobility::QContactAbstractRequest::setManager(class QtMobility::QContactManager *) - ?setManagerUri@QContactId@QtMobility@@QAEXABVQString@@@Z @ 782 NONAME ; void QtMobility::QContactId::setManagerUri(class QString const &) - ?setMatchFlags@QContactDetailFilter@QtMobility@@QAEXV?$QFlags@W4MatchFlag@QContactFilter@QtMobility@@@@@Z @ 783 NONAME ; void QtMobility::QContactDetailFilter::setMatchFlags(class QFlags) - ?setMatchFlags@QContactDetailRangeFilter@QtMobility@@QAEXV?$QFlags@W4MatchFlag@QContactFilter@QtMobility@@@@@Z @ 784 NONAME ; void QtMobility::QContactDetailRangeFilter::setMatchFlags(class QFlags) - ?setMiddle@QContactName@QtMobility@@QAEXABVQString@@@Z @ 785 NONAME ; void QtMobility::QContactName::setMiddle(class QString const &) - ?setMiddleName@QContactName@QtMobility@@QAEXABVQString@@@Z @ 786 NONAME ; void QtMobility::QContactName::setMiddleName(class QString const &) - ?setName@QContactDetailDefinition@QtMobility@@QAEXABVQString@@@Z @ 787 NONAME ; void QtMobility::QContactDetailDefinition::setName(class QString const &) - ?setName@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 788 NONAME ; void QtMobility::QContactOrganization::setName(class QString const &) - ?setNames@QContactDetailDefinitionFetchRequest@QtMobility@@QAEXABVQStringList@@@Z @ 789 NONAME ; void QtMobility::QContactDetailDefinitionFetchRequest::setNames(class QStringList const &) - ?setNames@QContactDetailDefinitionRemoveRequest@QtMobility@@QAEXABVQStringList@@@Z @ 790 NONAME ; void QtMobility::QContactDetailDefinitionRemoveRequest::setNames(class QStringList const &) - ?setNickname@QContactNickname@QtMobility@@QAEXABVQString@@@Z @ 791 NONAME ; void QtMobility::QContactNickname::setNickname(class QString const &) - ?setNickname@QContactOnlineAccount@QtMobility@@QAEXABVQString@@@Z @ 792 NONAME ; void QtMobility::QContactOnlineAccount::setNickname(class QString const &) - ?setNote@QContactNote@QtMobility@@QAEXABVQString@@@Z @ 793 NONAME ; void QtMobility::QContactNote::setNote(class QString const &) - ?setNumber@QContactPhoneNumber@QtMobility@@QAEXABVQString@@@Z @ 794 NONAME ; void QtMobility::QContactPhoneNumber::setNumber(class QString const &) - ?setOriginalDate@QContactAnniversary@QtMobility@@QAEXABVQDate@@@Z @ 795 NONAME ; void QtMobility::QContactAnniversary::setOriginalDate(class QDate const &) - ?setOtherParticipantId@QContactRelationshipFilter@QtMobility@@QAEXABVQContactId@2@@Z @ 796 NONAME ; void QtMobility::QContactRelationshipFilter::setOtherParticipantId(class QtMobility::QContactId const &) - ?setParticipant@QContactRelationshipFetchRequest@QtMobility@@QAEXABVQContactId@2@W4Role@QContactRelationshipFilter@2@@Z @ 797 NONAME ; void QtMobility::QContactRelationshipFetchRequest::setParticipant(class QtMobility::QContactId const &, enum QtMobility::QContactRelationshipFilter::Role) - ?setPixmap@QContactAvatar@QtMobility@@QAE_NABVQPixmap@@@Z @ 798 NONAME ; bool QtMobility::QContactAvatar::setPixmap(class QPixmap const &) - ?setPostOfficeBox@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 799 NONAME ; void QtMobility::QContactAddress::setPostOfficeBox(class QString const &) - ?setPostcode@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 800 NONAME ; void QtMobility::QContactAddress::setPostcode(class QString const &) - ?setPreferredActions@QContactDetail@QtMobility@@QAEXABV?$QList@VQContactActionDescriptor@QtMobility@@@@@Z @ 801 NONAME ; void QtMobility::QContactDetail::setPreferredActions(class QList const &) - ?setPreferredDetail@QContact@QtMobility@@QAE_NABVQString@@ABVQContactDetail@2@@Z @ 802 NONAME ; bool QtMobility::QContact::setPreferredDetail(class QString const &, class QtMobility::QContactDetail const &) - ?setPrefix@QContactName@QtMobility@@QAEXABVQString@@@Z @ 803 NONAME ; void QtMobility::QContactName::setPrefix(class QString const &) - ?setPresence@QContactOnlineAccount@QtMobility@@QAEXABVQString@@@Z @ 804 NONAME ; void QtMobility::QContactOnlineAccount::setPresence(class QString const &) - ?setRange@QContactDetailRangeFilter@QtMobility@@QAEXABVQVariant@@0V?$QFlags@W4RangeFlag@QContactDetailRangeFilter@QtMobility@@@@@Z @ 805 NONAME ; void QtMobility::QContactDetailRangeFilter::setRange(class QVariant const &, class QVariant const &, class QFlags) - ?setRegion@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 806 NONAME ; void QtMobility::QContactAddress::setRegion(class QString const &) - ?setRelatedContactId@QContactRelationshipFilter@QtMobility@@QAEXABVQContactId@2@@Z @ 807 NONAME ; void QtMobility::QContactRelationshipFilter::setRelatedContactId(class QtMobility::QContactId const &) - ?setRelatedContactRole@QContactRelationshipFilter@QtMobility@@QAEXW4Role@12@@Z @ 808 NONAME ; void QtMobility::QContactRelationshipFilter::setRelatedContactRole(enum QtMobility::QContactRelationshipFilter::Role) - ?setRelationshipOrder@QContact@QtMobility@@QAEXABV?$QList@VQContactRelationship@QtMobility@@@@@Z @ 809 NONAME ; void QtMobility::QContact::setRelationshipOrder(class QList const &) - ?setRelationshipType@QContactRelationship@QtMobility@@QAEXABVQString@@@Z @ 810 NONAME ; void QtMobility::QContactRelationship::setRelationshipType(class QString const &) - ?setRelationshipType@QContactRelationshipFetchRequest@QtMobility@@QAEXABVQString@@@Z @ 811 NONAME ; void QtMobility::QContactRelationshipFetchRequest::setRelationshipType(class QString const &) - ?setRelationshipType@QContactRelationshipFilter@QtMobility@@QAEXABVQString@@@Z @ 812 NONAME ; void QtMobility::QContactRelationshipFilter::setRelationshipType(class QString const &) - ?setRelationshipType@QContactRelationshipRemoveRequest@QtMobility@@QAEXABVQString@@@Z @ 813 NONAME ; void QtMobility::QContactRelationshipRemoveRequest::setRelationshipType(class QString const &) - ?setRelationships@QContactRelationshipRemoveRequest@QtMobility@@QAEXABV?$QList@VQContactRelationship@QtMobility@@@@@Z @ 814 NONAME ; void QtMobility::QContactRelationshipRemoveRequest::setRelationships(class QList const &) - ?setRelationships@QContactRelationshipSaveRequest@QtMobility@@QAEXABV?$QList@VQContactRelationship@QtMobility@@@@@Z @ 815 NONAME ; void QtMobility::QContactRelationshipSaveRequest::setRelationships(class QList const &) - ?setRole@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 816 NONAME ; void QtMobility::QContactOrganization::setRole(class QString const &) - ?setRole@QContactRelationshipFilter@QtMobility@@QAEXW4Role@12@@Z @ 817 NONAME ; void QtMobility::QContactRelationshipFilter::setRole(enum QtMobility::QContactRelationshipFilter::Role) - ?setSecond@QContactRelationship@QtMobility@@QAEXABVQContactId@2@@Z @ 818 NONAME ; void QtMobility::QContactRelationship::setSecond(class QtMobility::QContactId const &) - ?setSecond@QContactRelationshipFetchRequest@QtMobility@@QAEXABVQContactId@2@@Z @ 819 NONAME ; void QtMobility::QContactRelationshipFetchRequest::setSecond(class QtMobility::QContactId const &) - ?setSecond@QContactRelationshipRemoveRequest@QtMobility@@QAEXABVQContactId@2@@Z @ 820 NONAME ; void QtMobility::QContactRelationshipRemoveRequest::setSecond(class QtMobility::QContactId const &) - ?setSelfContactId@QContactManager@QtMobility@@QAE_NABI@Z @ 821 NONAME ; bool QtMobility::QContactManager::setSelfContactId(unsigned int const &) - ?setSelfContactId@QContactManagerEngine@QtMobility@@UAE_NABIAAW4Error@QContactManager@2@@Z @ 822 NONAME ; bool QtMobility::QContactManagerEngine::setSelfContactId(unsigned int const &, enum QtMobility::QContactManager::Error &) - ?setSelfContactId@QContactMemoryEngine@QtMobility@@UAE_NABIAAW4Error@QContactManager@2@@Z @ 823 NONAME ; bool QtMobility::QContactMemoryEngine::setSelfContactId(unsigned int const &, enum QtMobility::QContactManager::Error &) - ?setServiceProvider@QContactOnlineAccount@QtMobility@@QAEXABVQString@@@Z @ 824 NONAME ; void QtMobility::QContactOnlineAccount::setServiceProvider(class QString const &) - ?setSince@QContactChangeLogFilter@QtMobility@@QAEXABVQDateTime@@@Z @ 825 NONAME ; void QtMobility::QContactChangeLogFilter::setSince(class QDateTime const &) - ?setSorting@QContactFetchRequest@QtMobility@@QAEXABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 826 NONAME ; void QtMobility::QContactFetchRequest::setSorting(class QList const &) - ?setSorting@QContactLocalIdFetchRequest@QtMobility@@QAEXABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 827 NONAME ; void QtMobility::QContactLocalIdFetchRequest::setSorting(class QList const &) - ?setSpeed@QContactGeoLocation@QtMobility@@QAEXN@Z @ 828 NONAME ; void QtMobility::QContactGeoLocation::setSpeed(double) - ?setSpeed@QContactGeolocation@QtMobility@@QAEXN@Z @ 829 NONAME ; void QtMobility::QContactGeolocation::setSpeed(double) - ?setSpouse@QContactFamily@QtMobility@@QAEXABVQString@@@Z @ 830 NONAME ; void QtMobility::QContactFamily::setSpouse(class QString const &) - ?setStatusMessage@QContactOnlineAccount@QtMobility@@QAEXABVQString@@@Z @ 831 NONAME ; void QtMobility::QContactOnlineAccount::setStatusMessage(class QString const &) - ?setStreet@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 832 NONAME ; void QtMobility::QContactAddress::setStreet(class QString const &) - ?setSubType@QContactAnniversary@QtMobility@@QAEXABVQString@@@Z @ 833 NONAME ; void QtMobility::QContactAnniversary::setSubType(class QString const &) - ?setSubType@QContactAvatar@QtMobility@@QAEXABVQString@@@Z @ 834 NONAME ; void QtMobility::QContactAvatar::setSubType(class QString const &) - ?setSubType@QContactUrl@QtMobility@@QAEXABVQString@@@Z @ 835 NONAME ; void QtMobility::QContactUrl::setSubType(class QString const &) - ?setSubTypes@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 836 NONAME ; void QtMobility::QContactAddress::setSubTypes(class QString const &) - ?setSubTypes@QContactAddress@QtMobility@@QAEXABVQStringList@@@Z @ 837 NONAME ; void QtMobility::QContactAddress::setSubTypes(class QStringList const &) - ?setSubTypes@QContactOnlineAccount@QtMobility@@QAEXABVQString@@@Z @ 838 NONAME ; void QtMobility::QContactOnlineAccount::setSubTypes(class QString const &) - ?setSubTypes@QContactOnlineAccount@QtMobility@@QAEXABVQStringList@@@Z @ 839 NONAME ; void QtMobility::QContactOnlineAccount::setSubTypes(class QStringList const &) - ?setSubTypes@QContactPhoneNumber@QtMobility@@QAEXABVQString@@@Z @ 840 NONAME ; void QtMobility::QContactPhoneNumber::setSubTypes(class QString const &) - ?setSubTypes@QContactPhoneNumber@QtMobility@@QAEXABVQStringList@@@Z @ 841 NONAME ; void QtMobility::QContactPhoneNumber::setSubTypes(class QStringList const &) - ?setSuffix@QContactName@QtMobility@@QAEXABVQString@@@Z @ 842 NONAME ; void QtMobility::QContactName::setSuffix(class QString const &) - ?setSyncTarget@QContactSyncTarget@QtMobility@@QAEXABVQString@@@Z @ 843 NONAME ; void QtMobility::QContactSyncTarget::setSyncTarget(class QString const &) - ?setTimestamp@QContactGeoLocation@QtMobility@@QAEXABVQDateTime@@@Z @ 844 NONAME ; void QtMobility::QContactGeoLocation::setTimestamp(class QDateTime const &) - ?setTimestamp@QContactGeolocation@QtMobility@@QAEXABVQDateTime@@@Z @ 845 NONAME ; void QtMobility::QContactGeolocation::setTimestamp(class QDateTime const &) - ?setTitle@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 846 NONAME ; void QtMobility::QContactOrganization::setTitle(class QString const &) - ?setType@QContact@QtMobility@@QAEXABVQContactType@2@@Z @ 847 NONAME ; void QtMobility::QContact::setType(class QtMobility::QContactType const &) - ?setType@QContact@QtMobility@@QAEXABVQString@@@Z @ 848 NONAME ; void QtMobility::QContact::setType(class QString const &) - ?setType@QContactType@QtMobility@@QAEXABVQString@@@Z @ 849 NONAME ; void QtMobility::QContactType::setType(class QString const &) - ?setUnique@QContactDetailDefinition@QtMobility@@QAEX_N@Z @ 850 NONAME ; void QtMobility::QContactDetailDefinition::setUnique(bool) - ?setUrl@QContactUrl@QtMobility@@QAEXABVQString@@@Z @ 851 NONAME ; void QtMobility::QContactUrl::setUrl(class QString const &) - ?setValue@QContactActionFilter@QtMobility@@QAEXABVQVariant@@@Z @ 852 NONAME ; void QtMobility::QContactActionFilter::setValue(class QVariant const &) - ?setValue@QContactDetail@QtMobility@@QAE_NABVQString@@ABVQVariant@@@Z @ 853 NONAME ; bool QtMobility::QContactDetail::setValue(class QString const &, class QVariant const &) - ?setValue@QContactDetailFilter@QtMobility@@QAEXABVQVariant@@@Z @ 854 NONAME ; void QtMobility::QContactDetailFilter::setValue(class QVariant const &) - ?setVendor@QContactActionFilter@QtMobility@@QAEXABVQString@@H@Z @ 855 NONAME ; void QtMobility::QContactActionFilter::setVendor(class QString const &, int) - ?setVendorName@QContactActionDescriptor@QtMobility@@QAEXABVQString@@@Z @ 856 NONAME ; void QtMobility::QContactActionDescriptor::setVendorName(class QString const &) - ?since@QContactChangeLogFilter@QtMobility@@QBE?AVQDateTime@@XZ @ 857 NONAME ; class QDateTime QtMobility::QContactChangeLogFilter::since(void) const - ?sortContacts@QContactManagerEngine@QtMobility@@SA?AV?$QList@I@@ABV?$QList@VQContact@QtMobility@@@@ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 858 NONAME ; class QList QtMobility::QContactManagerEngine::sortContacts(class QList const &, class QList const &) - ?sorting@QContactFetchRequest@QtMobility@@QBE?AV?$QList@VQContactSortOrder@QtMobility@@@@XZ @ 859 NONAME ; class QList QtMobility::QContactFetchRequest::sorting(void) const - ?sorting@QContactLocalIdFetchRequest@QtMobility@@QBE?AV?$QList@VQContactSortOrder@QtMobility@@@@XZ @ 860 NONAME ; class QList QtMobility::QContactLocalIdFetchRequest::sorting(void) const - ?speed@QContactGeoLocation@QtMobility@@QBENXZ @ 861 NONAME ; double QtMobility::QContactGeoLocation::speed(void) const - ?speed@QContactGeolocation@QtMobility@@QBENXZ @ 862 NONAME ; double QtMobility::QContactGeolocation::speed(void) const - ?splitUri@QContactManager@QtMobility@@SA_NABVQString@@PAV3@PAV?$QMap@VQString@@V1@@@@Z @ 863 NONAME ; bool QtMobility::QContactManager::splitUri(class QString const &, class QString *, class QMap *) - ?spouse@QContactFamily@QtMobility@@QBE?AVQString@@XZ @ 864 NONAME ; class QString QtMobility::QContactFamily::spouse(void) const - ?start@QContactAbstractRequest@QtMobility@@QAE_NXZ @ 865 NONAME ; bool QtMobility::QContactAbstractRequest::start(void) - ?startRequest@QContactManagerEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@@Z @ 866 NONAME ; bool QtMobility::QContactManagerEngine::startRequest(class QtMobility::QContactAbstractRequest *) - ?startRequest@QContactMemoryEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@@Z @ 867 NONAME ; bool QtMobility::QContactMemoryEngine::startRequest(class QtMobility::QContactAbstractRequest *) - ?state@QContactAbstractRequest@QtMobility@@QBE?AW4State@12@XZ @ 868 NONAME ; enum QtMobility::QContactAbstractRequest::State QtMobility::QContactAbstractRequest::state(void) const - ?stateChanged@QContactAbstractRequest@QtMobility@@IAEXW4State@12@@Z @ 869 NONAME ; void QtMobility::QContactAbstractRequest::stateChanged(enum QtMobility::QContactAbstractRequest::State) - ?status@QContactAbstractRequest@QtMobility@@QBE?AW4Status@12@XZ @ 870 NONAME ; enum QtMobility::QContactAbstractRequest::Status QtMobility::QContactAbstractRequest::status(void) const - ?statusMessage@QContactOnlineAccount@QtMobility@@QBE?AVQString@@XZ @ 871 NONAME ; class QString QtMobility::QContactOnlineAccount::statusMessage(void) const - ?street@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 872 NONAME ; class QString QtMobility::QContactAddress::street(void) const - ?subType@QContactAnniversary@QtMobility@@QBE?AVQString@@XZ @ 873 NONAME ; class QString QtMobility::QContactAnniversary::subType(void) const - ?subType@QContactAvatar@QtMobility@@QBE?AVQString@@XZ @ 874 NONAME ; class QString QtMobility::QContactAvatar::subType(void) const - ?subType@QContactUrl@QtMobility@@QBE?AVQString@@XZ @ 875 NONAME ; class QString QtMobility::QContactUrl::subType(void) const - ?subTypes@QContactAddress@QtMobility@@QBE?AVQStringList@@XZ @ 876 NONAME ; class QStringList QtMobility::QContactAddress::subTypes(void) const - ?subTypes@QContactOnlineAccount@QtMobility@@QBE?AVQStringList@@XZ @ 877 NONAME ; class QStringList QtMobility::QContactOnlineAccount::subTypes(void) const - ?subTypes@QContactPhoneNumber@QtMobility@@QBE?AVQStringList@@XZ @ 878 NONAME ; class QStringList QtMobility::QContactPhoneNumber::subTypes(void) const - ?suffix@QContactName@QtMobility@@QBE?AVQString@@XZ @ 879 NONAME ; class QString QtMobility::QContactName::suffix(void) const - ?supportedContactTypes@QContactManager@QtMobility@@QBE?AVQStringList@@XZ @ 880 NONAME ; class QStringList QtMobility::QContactManager::supportedContactTypes(void) const - ?supportedContactTypes@QContactManagerEngine@QtMobility@@UBE?AVQStringList@@XZ @ 881 NONAME ; class QStringList QtMobility::QContactManagerEngine::supportedContactTypes(void) const - ?supportedDataTypes@QContactManager@QtMobility@@QBE?AV?$QList@W4Type@QVariant@@@@XZ @ 882 NONAME ; class QList QtMobility::QContactManager::supportedDataTypes(void) const - ?supportedDataTypes@QContactManagerEngine@QtMobility@@UBE?AV?$QList@W4Type@QVariant@@@@XZ @ 883 NONAME ; class QList QtMobility::QContactManagerEngine::supportedDataTypes(void) const - ?supportedDataTypes@QContactMemoryEngine@QtMobility@@UBE?AV?$QList@W4Type@QVariant@@@@XZ @ 884 NONAME ; class QList QtMobility::QContactMemoryEngine::supportedDataTypes(void) const - ?supportedDetails@QContactAction@QtMobility@@UBE?AV?$QList@VQContactDetail@QtMobility@@@@ABVQContact@2@@Z @ 885 NONAME ; class QList QtMobility::QContactAction::supportedDetails(class QtMobility::QContact const &) const - ?supportedImplementationVersions@QContactManagerEngineFactory@QtMobility@@UBE?AV?$QList@H@@XZ @ 886 NONAME ; class QList QtMobility::QContactManagerEngineFactory::supportedImplementationVersions(void) const - ?supportedRelationshipTypes@QContactManager@QtMobility@@QBE?AVQStringList@@ABVQString@@@Z @ 887 NONAME ; class QStringList QtMobility::QContactManager::supportedRelationshipTypes(class QString const &) const - ?supportedRelationshipTypes@QContactManagerEngine@QtMobility@@UBE?AVQStringList@@ABVQString@@@Z @ 888 NONAME ; class QStringList QtMobility::QContactManagerEngine::supportedRelationshipTypes(class QString const &) const - ?supportedRelationshipTypes@QContactMemoryEngine@QtMobility@@UBE?AVQStringList@@ABVQString@@@Z @ 889 NONAME ; class QStringList QtMobility::QContactMemoryEngine::supportedRelationshipTypes(class QString const &) const - ?syncTarget@QContactSyncTarget@QtMobility@@QBE?AVQString@@XZ @ 890 NONAME ; class QString QtMobility::QContactSyncTarget::syncTarget(void) const - ?synthesizeDisplayLabel@QContactManager@QtMobility@@QBE?AVQString@@ABVQContact@2@@Z @ 891 NONAME ; class QString QtMobility::QContactManager::synthesizeDisplayLabel(class QtMobility::QContact const &) const - ?synthesizeDisplayLabel@QContactManagerEngine@QtMobility@@UBE?AVQString@@ABVQContact@2@AAW4Error@QContactManager@2@@Z @ 892 NONAME ; class QString QtMobility::QContactManagerEngine::synthesizeDisplayLabel(class QtMobility::QContact const &, enum QtMobility::QContactManager::Error &) const - ?synthesizedDisplayLabel@QContactManager@QtMobility@@QBE?AVQString@@ABVQContact@2@@Z @ 893 NONAME ; class QString QtMobility::QContactManager::synthesizedDisplayLabel(class QtMobility::QContact const &) const - ?synthesizedDisplayLabel@QContactManagerEngine@QtMobility@@UBE?AVQString@@ABVQContact@2@AAW4Error@QContactManager@2@@Z @ 894 NONAME ; class QString QtMobility::QContactManagerEngine::synthesizedDisplayLabel(class QtMobility::QContact const &, enum QtMobility::QContactManager::Error &) const - ?testFilter@QContactManagerEngine@QtMobility@@SA_NABVQContactFilter@2@ABVQContact@2@@Z @ 895 NONAME ; bool QtMobility::QContactManagerEngine::testFilter(class QtMobility::QContactFilter const &, class QtMobility::QContact const &) - ?timestamp@QContactGeoLocation@QtMobility@@QBE?AVQDateTime@@XZ @ 896 NONAME ; class QDateTime QtMobility::QContactGeoLocation::timestamp(void) const - ?timestamp@QContactGeolocation@QtMobility@@QBE?AVQDateTime@@XZ @ 897 NONAME ; class QDateTime QtMobility::QContactGeolocation::timestamp(void) const - ?title@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 898 NONAME ; class QString QtMobility::QContactOrganization::title(void) const - ?tr@QContactAbstractRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 899 NONAME ; class QString QtMobility::QContactAbstractRequest::tr(char const *, char const *) - ?tr@QContactAbstractRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 900 NONAME ; class QString QtMobility::QContactAbstractRequest::tr(char const *, char const *, int) - ?tr@QContactAction@QtMobility@@SA?AVQString@@PBD0@Z @ 901 NONAME ; class QString QtMobility::QContactAction::tr(char const *, char const *) - ?tr@QContactAction@QtMobility@@SA?AVQString@@PBD0H@Z @ 902 NONAME ; class QString QtMobility::QContactAction::tr(char const *, char const *, int) - ?tr@QContactActionFactory@QtMobility@@SA?AVQString@@PBD0@Z @ 903 NONAME ; class QString QtMobility::QContactActionFactory::tr(char const *, char const *) - ?tr@QContactActionFactory@QtMobility@@SA?AVQString@@PBD0H@Z @ 904 NONAME ; class QString QtMobility::QContactActionFactory::tr(char const *, char const *, int) - ?tr@QContactDetailDefinitionFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 905 NONAME ; class QString QtMobility::QContactDetailDefinitionFetchRequest::tr(char const *, char const *) - ?tr@QContactDetailDefinitionFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 906 NONAME ; class QString QtMobility::QContactDetailDefinitionFetchRequest::tr(char const *, char const *, int) - ?tr@QContactDetailDefinitionRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 907 NONAME ; class QString QtMobility::QContactDetailDefinitionRemoveRequest::tr(char const *, char const *) - ?tr@QContactDetailDefinitionRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 908 NONAME ; class QString QtMobility::QContactDetailDefinitionRemoveRequest::tr(char const *, char const *, int) - ?tr@QContactDetailDefinitionSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 909 NONAME ; class QString QtMobility::QContactDetailDefinitionSaveRequest::tr(char const *, char const *) - ?tr@QContactDetailDefinitionSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 910 NONAME ; class QString QtMobility::QContactDetailDefinitionSaveRequest::tr(char const *, char const *, int) - ?tr@QContactFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 911 NONAME ; class QString QtMobility::QContactFetchRequest::tr(char const *, char const *) - ?tr@QContactFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 912 NONAME ; class QString QtMobility::QContactFetchRequest::tr(char const *, char const *, int) - ?tr@QContactLocalIdFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 913 NONAME ; class QString QtMobility::QContactLocalIdFetchRequest::tr(char const *, char const *) - ?tr@QContactLocalIdFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 914 NONAME ; class QString QtMobility::QContactLocalIdFetchRequest::tr(char const *, char const *, int) - ?tr@QContactManager@QtMobility@@SA?AVQString@@PBD0@Z @ 915 NONAME ; class QString QtMobility::QContactManager::tr(char const *, char const *) - ?tr@QContactManager@QtMobility@@SA?AVQString@@PBD0H@Z @ 916 NONAME ; class QString QtMobility::QContactManager::tr(char const *, char const *, int) - ?tr@QContactManagerEngine@QtMobility@@SA?AVQString@@PBD0@Z @ 917 NONAME ; class QString QtMobility::QContactManagerEngine::tr(char const *, char const *) - ?tr@QContactManagerEngine@QtMobility@@SA?AVQString@@PBD0H@Z @ 918 NONAME ; class QString QtMobility::QContactManagerEngine::tr(char const *, char const *, int) - ?tr@QContactMemoryEngine@QtMobility@@SA?AVQString@@PBD0@Z @ 919 NONAME ; class QString QtMobility::QContactMemoryEngine::tr(char const *, char const *) - ?tr@QContactMemoryEngine@QtMobility@@SA?AVQString@@PBD0H@Z @ 920 NONAME ; class QString QtMobility::QContactMemoryEngine::tr(char const *, char const *, int) - ?tr@QContactRelationshipFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 921 NONAME ; class QString QtMobility::QContactRelationshipFetchRequest::tr(char const *, char const *) - ?tr@QContactRelationshipFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 922 NONAME ; class QString QtMobility::QContactRelationshipFetchRequest::tr(char const *, char const *, int) - ?tr@QContactRelationshipRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 923 NONAME ; class QString QtMobility::QContactRelationshipRemoveRequest::tr(char const *, char const *) - ?tr@QContactRelationshipRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 924 NONAME ; class QString QtMobility::QContactRelationshipRemoveRequest::tr(char const *, char const *, int) - ?tr@QContactRelationshipSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 925 NONAME ; class QString QtMobility::QContactRelationshipSaveRequest::tr(char const *, char const *) - ?tr@QContactRelationshipSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 926 NONAME ; class QString QtMobility::QContactRelationshipSaveRequest::tr(char const *, char const *, int) - ?tr@QContactRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 927 NONAME ; class QString QtMobility::QContactRemoveRequest::tr(char const *, char const *) - ?tr@QContactRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 928 NONAME ; class QString QtMobility::QContactRemoveRequest::tr(char const *, char const *, int) - ?tr@QContactSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 929 NONAME ; class QString QtMobility::QContactSaveRequest::tr(char const *, char const *) - ?tr@QContactSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 930 NONAME ; class QString QtMobility::QContactSaveRequest::tr(char const *, char const *, int) - ?trUtf8@QContactAbstractRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 931 NONAME ; class QString QtMobility::QContactAbstractRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactAbstractRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 932 NONAME ; class QString QtMobility::QContactAbstractRequest::trUtf8(char const *, char const *, int) - ?trUtf8@QContactAction@QtMobility@@SA?AVQString@@PBD0@Z @ 933 NONAME ; class QString QtMobility::QContactAction::trUtf8(char const *, char const *) - ?trUtf8@QContactAction@QtMobility@@SA?AVQString@@PBD0H@Z @ 934 NONAME ; class QString QtMobility::QContactAction::trUtf8(char const *, char const *, int) - ?trUtf8@QContactActionFactory@QtMobility@@SA?AVQString@@PBD0@Z @ 935 NONAME ; class QString QtMobility::QContactActionFactory::trUtf8(char const *, char const *) - ?trUtf8@QContactActionFactory@QtMobility@@SA?AVQString@@PBD0H@Z @ 936 NONAME ; class QString QtMobility::QContactActionFactory::trUtf8(char const *, char const *, int) - ?trUtf8@QContactDetailDefinitionFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 937 NONAME ; class QString QtMobility::QContactDetailDefinitionFetchRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactDetailDefinitionFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 938 NONAME ; class QString QtMobility::QContactDetailDefinitionFetchRequest::trUtf8(char const *, char const *, int) - ?trUtf8@QContactDetailDefinitionRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 939 NONAME ; class QString QtMobility::QContactDetailDefinitionRemoveRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactDetailDefinitionRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 940 NONAME ; class QString QtMobility::QContactDetailDefinitionRemoveRequest::trUtf8(char const *, char const *, int) - ?trUtf8@QContactDetailDefinitionSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 941 NONAME ; class QString QtMobility::QContactDetailDefinitionSaveRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactDetailDefinitionSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 942 NONAME ; class QString QtMobility::QContactDetailDefinitionSaveRequest::trUtf8(char const *, char const *, int) - ?trUtf8@QContactFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 943 NONAME ; class QString QtMobility::QContactFetchRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 944 NONAME ; class QString QtMobility::QContactFetchRequest::trUtf8(char const *, char const *, int) - ?trUtf8@QContactLocalIdFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 945 NONAME ; class QString QtMobility::QContactLocalIdFetchRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactLocalIdFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 946 NONAME ; class QString QtMobility::QContactLocalIdFetchRequest::trUtf8(char const *, char const *, int) - ?trUtf8@QContactManager@QtMobility@@SA?AVQString@@PBD0@Z @ 947 NONAME ; class QString QtMobility::QContactManager::trUtf8(char const *, char const *) - ?trUtf8@QContactManager@QtMobility@@SA?AVQString@@PBD0H@Z @ 948 NONAME ; class QString QtMobility::QContactManager::trUtf8(char const *, char const *, int) - ?trUtf8@QContactManagerEngine@QtMobility@@SA?AVQString@@PBD0@Z @ 949 NONAME ; class QString QtMobility::QContactManagerEngine::trUtf8(char const *, char const *) - ?trUtf8@QContactManagerEngine@QtMobility@@SA?AVQString@@PBD0H@Z @ 950 NONAME ; class QString QtMobility::QContactManagerEngine::trUtf8(char const *, char const *, int) - ?trUtf8@QContactMemoryEngine@QtMobility@@SA?AVQString@@PBD0@Z @ 951 NONAME ; class QString QtMobility::QContactMemoryEngine::trUtf8(char const *, char const *) - ?trUtf8@QContactMemoryEngine@QtMobility@@SA?AVQString@@PBD0H@Z @ 952 NONAME ; class QString QtMobility::QContactMemoryEngine::trUtf8(char const *, char const *, int) - ?trUtf8@QContactRelationshipFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 953 NONAME ; class QString QtMobility::QContactRelationshipFetchRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactRelationshipFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 954 NONAME ; class QString QtMobility::QContactRelationshipFetchRequest::trUtf8(char const *, char const *, int) - ?trUtf8@QContactRelationshipRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 955 NONAME ; class QString QtMobility::QContactRelationshipRemoveRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactRelationshipRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 956 NONAME ; class QString QtMobility::QContactRelationshipRemoveRequest::trUtf8(char const *, char const *, int) - ?trUtf8@QContactRelationshipSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 957 NONAME ; class QString QtMobility::QContactRelationshipSaveRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactRelationshipSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 958 NONAME ; class QString QtMobility::QContactRelationshipSaveRequest::trUtf8(char const *, char const *, int) - ?trUtf8@QContactRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 959 NONAME ; class QString QtMobility::QContactRemoveRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 960 NONAME ; class QString QtMobility::QContactRemoveRequest::trUtf8(char const *, char const *, int) - ?trUtf8@QContactSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 961 NONAME ; class QString QtMobility::QContactSaveRequest::trUtf8(char const *, char const *) - ?trUtf8@QContactSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 962 NONAME ; class QString QtMobility::QContactSaveRequest::trUtf8(char const *, char const *, int) - ?type@QContact@QtMobility@@QBE?AVQString@@XZ @ 963 NONAME ; class QString QtMobility::QContact::type(void) const - ?type@QContactAbstractRequest@QtMobility@@QBE?AW4RequestType@12@XZ @ 964 NONAME ; enum QtMobility::QContactAbstractRequest::RequestType QtMobility::QContactAbstractRequest::type(void) const - ?type@QContactFilter@QtMobility@@QBE?AW4FilterType@12@XZ @ 965 NONAME ; enum QtMobility::QContactFilter::FilterType QtMobility::QContactFilter::type(void) const - ?type@QContactType@QtMobility@@QBE?AVQString@@XZ @ 966 NONAME ; class QString QtMobility::QContactType::type(void) const - ?updateContactFetchRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactFetchRequest@2@ABV?$QList@VQContact@QtMobility@@@@W4Error@QContactManager@2@@Z @ 967 NONAME ; void QtMobility::QContactManagerEngine::updateContactFetchRequest(class QtMobility::QContactFetchRequest *, class QList const &, enum QtMobility::QContactManager::Error) - ?updateContactLocalIdFetchRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactLocalIdFetchRequest@2@ABV?$QList@I@@W4Error@QContactManager@2@@Z @ 968 NONAME ; void QtMobility::QContactManagerEngine::updateContactLocalIdFetchRequest(class QtMobility::QContactLocalIdFetchRequest *, class QList const &, enum QtMobility::QContactManager::Error) - ?updateContactRemoveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactRemoveRequest@2@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 969 NONAME ; void QtMobility::QContactManagerEngine::updateContactRemoveRequest(class QtMobility::QContactRemoveRequest *, enum QtMobility::QContactManager::Error, class QMap const &) - ?updateContactSaveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactSaveRequest@2@ABV?$QList@VQContact@QtMobility@@@@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 970 NONAME ; void QtMobility::QContactManagerEngine::updateContactSaveRequest(class QtMobility::QContactSaveRequest *, class QList const &, enum QtMobility::QContactManager::Error, class QMap const &) - ?updateDefinitionFetchRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactDetailDefinitionFetchRequest@2@ABV?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 971 NONAME ; void QtMobility::QContactManagerEngine::updateDefinitionFetchRequest(class QtMobility::QContactDetailDefinitionFetchRequest *, class QMap const &, enum QtMobility::QContactManager::Error, class QMap const &) - ?updateDefinitionRemoveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactDetailDefinitionRemoveRequest@2@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 972 NONAME ; void QtMobility::QContactManagerEngine::updateDefinitionRemoveRequest(class QtMobility::QContactDetailDefinitionRemoveRequest *, enum QtMobility::QContactManager::Error, class QMap const &) - ?updateDefinitionSaveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactDetailDefinitionSaveRequest@2@ABV?$QList@VQContactDetailDefinition@QtMobility@@@@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 973 NONAME ; void QtMobility::QContactManagerEngine::updateDefinitionSaveRequest(class QtMobility::QContactDetailDefinitionSaveRequest *, class QList const &, enum QtMobility::QContactManager::Error, class QMap const &) - ?updateRelationshipFetchRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactRelationshipFetchRequest@2@ABV?$QList@VQContactRelationship@QtMobility@@@@W4Error@QContactManager@2@@Z @ 974 NONAME ; void QtMobility::QContactManagerEngine::updateRelationshipFetchRequest(class QtMobility::QContactRelationshipFetchRequest *, class QList const &, enum QtMobility::QContactManager::Error) - ?updateRelationshipRemoveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactRelationshipRemoveRequest@2@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 975 NONAME ; void QtMobility::QContactManagerEngine::updateRelationshipRemoveRequest(class QtMobility::QContactRelationshipRemoveRequest *, enum QtMobility::QContactManager::Error, class QMap const &) - ?updateRelationshipSaveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactRelationshipSaveRequest@2@ABV?$QList@VQContactRelationship@QtMobility@@@@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 976 NONAME ; void QtMobility::QContactManagerEngine::updateRelationshipSaveRequest(class QtMobility::QContactRelationshipSaveRequest *, class QList const &, enum QtMobility::QContactManager::Error, class QMap const &) - ?updateRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactAbstractRequest@2@ABV?$QList@I@@W4Error@QContactManager@2@ABV?$QList@W4Error@QContactManager@QtMobility@@@@W4Status@32@_N@Z @ 977 NONAME ; void QtMobility::QContactManagerEngine::updateRequest(class QtMobility::QContactAbstractRequest *, class QList const &, enum QtMobility::QContactManager::Error, class QList const &, enum QtMobility::QContactAbstractRequest::Status, bool) - ?updateRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactAbstractRequest@2@ABV?$QList@VQContact@QtMobility@@@@W4Error@QContactManager@2@ABV?$QList@W4Error@QContactManager@QtMobility@@@@W4Status@32@_N@Z @ 978 NONAME ; void QtMobility::QContactManagerEngine::updateRequest(class QtMobility::QContactAbstractRequest *, class QList const &, enum QtMobility::QContactManager::Error, class QList const &, enum QtMobility::QContactAbstractRequest::Status, bool) - ?updateRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactAbstractRequest@2@ABV?$QList@VQContactDetailDefinition@QtMobility@@@@W4Error@QContactManager@2@ABV?$QList@W4Error@QContactManager@QtMobility@@@@W4Status@32@@Z @ 979 NONAME ; void QtMobility::QContactManagerEngine::updateRequest(class QtMobility::QContactAbstractRequest *, class QList const &, enum QtMobility::QContactManager::Error, class QList const &, enum QtMobility::QContactAbstractRequest::Status) - ?updateRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactAbstractRequest@2@ABV?$QList@VQContactRelationship@QtMobility@@@@W4Error@QContactManager@2@ABV?$QList@W4Error@QContactManager@QtMobility@@@@W4Status@32@_N@Z @ 980 NONAME ; void QtMobility::QContactManagerEngine::updateRequest(class QtMobility::QContactAbstractRequest *, class QList const &, enum QtMobility::QContactManager::Error, class QList const &, enum QtMobility::QContactAbstractRequest::Status, bool) - ?updateRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactAbstractRequest@2@ABV?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@W4Error@QContactManager@2@ABV?$QList@W4Error@QContactManager@QtMobility@@@@W4Status@32@_N@Z @ 981 NONAME ; void QtMobility::QContactManagerEngine::updateRequest(class QtMobility::QContactAbstractRequest *, class QMap const &, enum QtMobility::QContactManager::Error, class QList const &, enum QtMobility::QContactAbstractRequest::Status, bool) - ?updateRequestState@QContactManagerEngine@QtMobility@@SAXPAVQContactAbstractRequest@2@W4State@32@@Z @ 982 NONAME ; void QtMobility::QContactManagerEngine::updateRequestState(class QtMobility::QContactAbstractRequest *, enum QtMobility::QContactAbstractRequest::State) - ?updateRequestStatus@QContactManagerEngine@QtMobility@@SAXPAVQContactAbstractRequest@2@W4Error@QContactManager@2@AAV?$QList@W4Error@QContactManager@QtMobility@@@@W4Status@32@_N@Z @ 983 NONAME ; void QtMobility::QContactManagerEngine::updateRequestStatus(class QtMobility::QContactAbstractRequest *, enum QtMobility::QContactManager::Error, class QList &, enum QtMobility::QContactAbstractRequest::Status, bool) - ?url@QContactUrl@QtMobility@@QBE?AVQString@@XZ @ 984 NONAME ; class QString QtMobility::QContactUrl::url(void) const - ?validateActionFilter@QContactManagerEngine@QtMobility@@SA_NABVQContactFilter@2@@Z @ 985 NONAME ; bool QtMobility::QContactManagerEngine::validateActionFilter(class QtMobility::QContactFilter const &) - ?validateContact@QContactManagerEngine@QtMobility@@UBE_NABVQContact@2@AAW4Error@QContactManager@2@@Z @ 986 NONAME ; bool QtMobility::QContactManagerEngine::validateContact(class QtMobility::QContact const &, enum QtMobility::QContactManager::Error &) const - ?validateDefinition@QContactManagerEngine@QtMobility@@UBE_NABVQContactDetailDefinition@2@AAW4Error@QContactManager@2@@Z @ 987 NONAME ; bool QtMobility::QContactManagerEngine::validateDefinition(class QtMobility::QContactDetailDefinition const &, enum QtMobility::QContactManager::Error &) const - ?value@QContactActionFilter@QtMobility@@QBE?AVQVariant@@XZ @ 988 NONAME ; class QVariant QtMobility::QContactActionFilter::value(void) const - ?value@QContactDetail@QtMobility@@QBE?AVQString@@ABV3@@Z @ 989 NONAME ; class QString QtMobility::QContactDetail::value(class QString const &) const - ?value@QContactDetailFilter@QtMobility@@QBE?AVQVariant@@XZ @ 990 NONAME ; class QVariant QtMobility::QContactDetailFilter::value(void) const - ?values@QContactDetail@QtMobility@@QBE?AV?$QMap@VQString@@VQVariant@@@@XZ @ 991 NONAME ; class QMap QtMobility::QContactDetail::values(void) const - ?variantValue@QContactDetail@QtMobility@@QBE?AVQVariant@@ABVQString@@@Z @ 992 NONAME ; class QVariant QtMobility::QContactDetail::variantValue(class QString const &) const - ?variantValues@QContactDetail@QtMobility@@QBE?AV?$QMap@VQString@@VQVariant@@@@XZ @ 993 NONAME ; class QMap QtMobility::QContactDetail::variantValues(void) const - ?vendorName@QContactActionDescriptor@QtMobility@@QBE?AVQString@@XZ @ 994 NONAME ; class QString QtMobility::QContactActionDescriptor::vendorName(void) const - ?vendorName@QContactActionFilter@QtMobility@@QBE?AVQString@@XZ @ 995 NONAME ; class QString QtMobility::QContactActionFilter::vendorName(void) const - ?version@QContactManager@QtMobility@@SAHXZ @ 996 NONAME ; int QtMobility::QContactManager::version(void) - ?version@QContactManagerEngine@QtMobility@@SAHXZ @ 997 NONAME ; int QtMobility::QContactManagerEngine::version(void) - ?version@QContactManagerEngineFactory@QtMobility@@QBEHXZ @ 998 NONAME ; int QtMobility::QContactManagerEngineFactory::version(void) const - ?waitForFinished@QContactAbstractRequest@QtMobility@@QAE_NH@Z @ 999 NONAME ; bool QtMobility::QContactAbstractRequest::waitForFinished(int) - ?waitForProgress@QContactAbstractRequest@QtMobility@@QAE_NH@Z @ 1000 NONAME ; bool QtMobility::QContactAbstractRequest::waitForProgress(int) - ?waitForRequestFinished@QContactManagerEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@H@Z @ 1001 NONAME ; bool QtMobility::QContactManagerEngine::waitForRequestFinished(class QtMobility::QContactAbstractRequest *, int) - ?waitForRequestFinished@QContactMemoryEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@H@Z @ 1002 NONAME ; bool QtMobility::QContactMemoryEngine::waitForRequestFinished(class QtMobility::QContactAbstractRequest *, int) - ?waitForRequestProgress@QContactManagerEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@H@Z @ 1003 NONAME ; bool QtMobility::QContactManagerEngine::waitForRequestProgress(class QtMobility::QContactAbstractRequest *, int) - ?waitForRequestProgress@QContactMemoryEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@H@Z @ 1004 NONAME ; bool QtMobility::QContactMemoryEngine::waitForRequestProgress(class QtMobility::QContactAbstractRequest *, int) - ?DefinitionName@QContactTimestamp@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1005 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactTimestamp::DefinitionName - ?SubTypeParcel@QContactAddress@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1006 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactAddress::SubTypeParcel - ?SubTypeImpp@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1007 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactOnlineAccount::SubTypeImpp - ?PresenceUnknown@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1008 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactOnlineAccount::PresenceUnknown - ?staticMetaObject@QContactFetchRequest@QtMobility@@2UQMetaObject@@B @ 1009 NONAME ; struct QMetaObject const QtMobility::QContactFetchRequest::staticMetaObject - ?PresenceHidden@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1010 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactOnlineAccount::PresenceHidden - ?SubTypeMessagingCapable@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$0BB@@2@B @ 1011 NONAME ; struct QtMobility::Latin1Literal<17> const QtMobility::QContactPhoneNumber::SubTypeMessagingCapable - ?SubTypeSipVoip@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1012 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactOnlineAccount::SubTypeSipVoip - ?DefinitionName@QContactGuid@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1013 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactGuid::DefinitionName - ?Aggregates@QContactRelationship@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1014 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactRelationship::Aggregates - ?FieldLocation@QContactOrganization@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1015 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactOrganization::FieldLocation - ?DefinitionName@QContactAvatar@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1016 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactAvatar::DefinitionName - ?FieldLocality@QContactAddress@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1017 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactAddress::FieldLocality - ?PresenceBusy@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1018 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactOnlineAccount::PresenceBusy - ?DefinitionName@QContactType@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1019 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactType::DefinitionName - ?FieldLogo@QContactOrganization@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1020 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactOrganization::FieldLogo - ?FieldLatitude@QContactGeoLocation@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1021 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactGeoLocation::FieldLatitude - ?DefinitionName@QContactOrganization@QtMobility@@2U?$Latin1Literal@$0N@@2@B @ 1022 NONAME ; struct QtMobility::Latin1Literal<13> const QtMobility::QContactOrganization::DefinitionName - ?FieldBirthday@QContactBirthday@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1023 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactBirthday::FieldBirthday - ?GenderFemale@QContactGender@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1024 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactGender::GenderFemale - ?FieldChildren@QContactFamily@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1025 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactFamily::FieldChildren - ?ContextWork@QContactDetail@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1026 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactDetail::ContextWork - ?FieldAltitude@QContactGeolocation@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1027 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactGeolocation::FieldAltitude - ?DefinitionName@QContactGeoLocation@QtMobility@@2U?$Latin1Literal@$0M@@2@B @ 1028 NONAME ; struct QtMobility::Latin1Literal<12> const QtMobility::QContactGeoLocation::DefinitionName - ?FieldSpouse@QContactFamily@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1029 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactFamily::FieldSpouse - ?FieldAvatarPixmap@QContactAvatar@QtMobility@@2U?$Latin1Literal@$0N@@2@B @ 1030 NONAME ; struct QtMobility::Latin1Literal<13> const QtMobility::QContactAvatar::FieldAvatarPixmap - ?FieldSubType@QContactAvatar@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1031 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactAvatar::FieldSubType - ?FieldMiddle@QContactName@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1032 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactName::FieldMiddle - ?FieldLongitude@QContactGeolocation@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1033 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactGeolocation::FieldLongitude - ?HasManager@QContactRelationship@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1034 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactRelationship::HasManager - ?DefinitionName@QContactUrl@QtMobility@@2U?$Latin1Literal@$03@2@B @ 1035 NONAME ; struct QtMobility::Latin1Literal<4> const QtMobility::QContactUrl::DefinitionName - ?SubTypeInternational@QContactAddress@QtMobility@@2U?$Latin1Literal@$0O@@2@B @ 1036 NONAME ; struct QtMobility::Latin1Literal<14> const QtMobility::QContactAddress::SubTypeInternational - ?SubTypeCar@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$03@2@B @ 1037 NONAME ; struct QtMobility::Latin1Literal<4> const QtMobility::QContactPhoneNumber::SubTypeCar - ?FieldNumber@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$0M@@2@B @ 1038 NONAME ; struct QtMobility::Latin1Literal<12> const QtMobility::QContactPhoneNumber::FieldNumber - ?SubTypeModem@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1039 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactPhoneNumber::SubTypeModem - ?FieldLinkedDetailUris@QContactDetail@QtMobility@@2U?$Latin1Literal@$0BB@@2@B @ 1040 NONAME ; struct QtMobility::Latin1Literal<17> const QtMobility::QContactDetail::FieldLinkedDetailUris - ?ContextOther@QContactDetail@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1041 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactDetail::ContextOther - ?FieldLabel@QContactGeolocation@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1042 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactGeolocation::FieldLabel - ?FieldLast@QContactName@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1043 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactName::FieldLast - ?FieldLabel@QContactDisplayLabel@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1044 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactDisplayLabel::FieldLabel - ?PresenceAway@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1045 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactOnlineAccount::PresenceAway - ?SubTypeVoice@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1046 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactPhoneNumber::SubTypeVoice - ?staticMetaObject@QContactSaveRequest@QtMobility@@2UQMetaObject@@B @ 1047 NONAME ; struct QMetaObject const QtMobility::QContactSaveRequest::staticMetaObject - ?engines@QContactMemoryEngine@QtMobility@@0V?$QMap@VQString@@PAVQContactMemoryEngine@QtMobility@@@@A @ 1048 NONAME ; class QMap QtMobility::QContactMemoryEngine::engines - ?FieldFirstName@QContactName@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1049 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactName::FieldFirstName - ?DefinitionName@QContactNickname@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1050 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactNickname::DefinitionName - ?PresenceExtendedAway@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$0N@@2@B @ 1051 NONAME ; struct QtMobility::Latin1Literal<13> const QtMobility::QContactOnlineAccount::PresenceExtendedAway - ?FieldType@QContactType@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1052 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactType::FieldType - ?FieldLatitude@QContactGeolocation@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1053 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactGeolocation::FieldLatitude - ?FieldCustomLabel@QContactName@QtMobility@@2U?$Latin1Literal@$0M@@2@B @ 1054 NONAME ; struct QtMobility::Latin1Literal<12> const QtMobility::QContactName::FieldCustomLabel - ?DefinitionName@QContactFamily@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1055 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactFamily::DefinitionName - ?FieldSubTypes@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1056 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactPhoneNumber::FieldSubTypes - ?FieldSuffix@QContactName@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1057 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactName::FieldSuffix - ?staticMetaObject@QContactRelationshipSaveRequest@QtMobility@@2UQMetaObject@@B @ 1058 NONAME ; struct QMetaObject const QtMobility::QContactRelationshipSaveRequest::staticMetaObject - ?FieldSubType@QContactUrl@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1059 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactUrl::FieldSubType - ?TypeGroup@QContactType@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1060 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactType::TypeGroup - ?SubTypeVideoRingtone@QContactAvatar@QtMobility@@2U?$Latin1Literal@$0O@@2@B @ 1061 NONAME ; struct QtMobility::Latin1Literal<14> const QtMobility::QContactAvatar::SubTypeVideoRingtone - ?FieldServiceProvider@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$0BA@@2@B @ 1062 NONAME ; struct QtMobility::Latin1Literal<16> const QtMobility::QContactOnlineAccount::FieldServiceProvider - ?PresenceAvailable@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1063 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactOnlineAccount::PresenceAvailable - ?staticMetaObject@QContactRemoveRequest@QtMobility@@2UQMetaObject@@B @ 1064 NONAME ; struct QMetaObject const QtMobility::QContactRemoveRequest::staticMetaObject - ?FieldOriginalDate@QContactAnniversary@QtMobility@@2U?$Latin1Literal@$0N@@2@B @ 1065 NONAME ; struct QtMobility::Latin1Literal<13> const QtMobility::QContactAnniversary::FieldOriginalDate - ?SubTypeVideoShare@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1066 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactOnlineAccount::SubTypeVideoShare - ?FieldSubType@QContactAnniversary@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1067 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactAnniversary::FieldSubType - ?FieldPresence@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1068 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactOnlineAccount::FieldPresence - ?FieldFirst@QContactName@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1069 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactName::FieldFirst - ?PresenceOffline@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1070 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactOnlineAccount::PresenceOffline - ?FieldDetailUri@QContactDetail@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1071 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactDetail::FieldDetailUri - ?DefinitionName@QContactGeolocation@QtMobility@@2U?$Latin1Literal@$0M@@2@B @ 1072 NONAME ; struct QtMobility::Latin1Literal<12> const QtMobility::QContactGeolocation::DefinitionName - ?SubTypeFavourite@QContactUrl@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1073 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactUrl::SubTypeFavourite - ?SubTypeAudioRingtone@QContactAvatar@QtMobility@@2U?$Latin1Literal@$0O@@2@B @ 1074 NONAME ; struct QtMobility::Latin1Literal<14> const QtMobility::QContactAvatar::SubTypeAudioRingtone - ?SubTypeBulletinBoardSystem@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$0BE@@2@B @ 1075 NONAME ; struct QtMobility::Latin1Literal<20> const QtMobility::QContactPhoneNumber::SubTypeBulletinBoardSystem - ?FieldGender@QContactGender@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1076 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactGender::FieldGender - ?FieldHeading@QContactGeoLocation@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1077 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactGeoLocation::FieldHeading - ?FieldPostcode@QContactAddress@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1078 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactAddress::FieldPostcode - ?staticMetaObject@QContactAction@QtMobility@@2UQMetaObject@@B @ 1079 NONAME ; struct QMetaObject const QtMobility::QContactAction::staticMetaObject - ?FieldAltitudeAccuracy@QContactGeolocation@QtMobility@@2U?$Latin1Literal@$0BB@@2@B @ 1080 NONAME ; struct QtMobility::Latin1Literal<17> const QtMobility::QContactGeolocation::FieldAltitudeAccuracy - ?staticMetaObject@QContactActionFactory@QtMobility@@2UQMetaObject@@B @ 1081 NONAME ; struct QMetaObject const QtMobility::QContactActionFactory::staticMetaObject - ?DefinitionName@QContactAnniversary@QtMobility@@2U?$Latin1Literal@$0M@@2@B @ 1082 NONAME ; struct QtMobility::Latin1Literal<12> const QtMobility::QContactAnniversary::DefinitionName - ?FieldPrefix@QContactName@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1083 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactName::FieldPrefix - ?SubTypeFacsimile@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1084 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactPhoneNumber::SubTypeFacsimile - ?SubTypeWedding@QContactAnniversary@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1085 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactAnniversary::SubTypeWedding - ?FieldNickname@QContactNickname@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1086 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactNickname::FieldNickname - ?DefinitionName@QContactDisplayLabel@QtMobility@@2U?$Latin1Literal@$0N@@2@B @ 1087 NONAME ; struct QtMobility::Latin1Literal<13> const QtMobility::QContactDisplayLabel::DefinitionName - ?SubTypeMobile@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1088 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactPhoneNumber::SubTypeMobile - ?SubTypePager@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1089 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactPhoneNumber::SubTypePager - ?DefinitionName@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$0M@@2@B @ 1090 NONAME ; struct QtMobility::Latin1Literal<12> const QtMobility::QContactPhoneNumber::DefinitionName - ?FieldCalendarId@QContactAnniversary@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1091 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactAnniversary::FieldCalendarId - ?FieldCapabilities@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$0N@@2@B @ 1092 NONAME ; struct QtMobility::Latin1Literal<13> const QtMobility::QContactOnlineAccount::FieldCapabilities - ?HasAssistant@QContactRelationship@QtMobility@@2U?$Latin1Literal@$0N@@2@B @ 1093 NONAME ; struct QtMobility::Latin1Literal<13> const QtMobility::QContactRelationship::HasAssistant - ?staticMetaObject@QContactDetailDefinitionRemoveRequest@QtMobility@@2UQMetaObject@@B @ 1094 NONAME ; struct QMetaObject const QtMobility::QContactDetailDefinitionRemoveRequest::staticMetaObject - ?staticMetaObject@QContactDetailDefinitionSaveRequest@QtMobility@@2UQMetaObject@@B @ 1095 NONAME ; struct QMetaObject const QtMobility::QContactDetailDefinitionSaveRequest::staticMetaObject - ?GenderMale@QContactGender@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1096 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactGender::GenderMale - ?FieldCountry@QContactAddress@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1097 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactAddress::FieldCountry - ?FieldMiddleName@QContactName@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1098 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactName::FieldMiddleName - ?FieldSyncTarget@QContactSyncTarget@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1099 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactSyncTarget::FieldSyncTarget - ?SubTypeSip@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$03@2@B @ 1100 NONAME ; struct QtMobility::Latin1Literal<4> const QtMobility::QContactOnlineAccount::SubTypeSip - ?FieldContext@QContactDetail@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1101 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactDetail::FieldContext - ?FieldStreet@QContactAddress@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1102 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactAddress::FieldStreet - ?FieldAvatar@QContactAvatar@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1103 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactAvatar::FieldAvatar - ?FieldModificationTimestamp@QContactTimestamp@QtMobility@@2U?$Latin1Literal@$0BG@@2@B @ 1104 NONAME ; struct QtMobility::Latin1Literal<22> const QtMobility::QContactTimestamp::FieldModificationTimestamp - ?SubTypeHomePage@QContactUrl@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1105 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactUrl::SubTypeHomePage - ?FieldCreationTimestamp@QContactTimestamp@QtMobility@@2U?$Latin1Literal@$0BC@@2@B @ 1106 NONAME ; struct QtMobility::Latin1Literal<18> const QtMobility::QContactTimestamp::FieldCreationTimestamp - ?FieldGuid@QContactGuid@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1107 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactGuid::FieldGuid - ?DefinitionName@QContactAddress@QtMobility@@2U?$Latin1Literal@$0O@@2@B @ 1108 NONAME ; struct QtMobility::Latin1Literal<14> const QtMobility::QContactAddress::DefinitionName - ?SubTypeMemorial@QContactAnniversary@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1109 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactAnniversary::SubTypeMemorial - ?FieldAccuracy@QContactGeoLocation@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1110 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactGeoLocation::FieldAccuracy - ?SubTypePostal@QContactAddress@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1111 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactAddress::SubTypePostal - ?FieldHeading@QContactGeolocation@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1112 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactGeolocation::FieldHeading - ?FieldRole@QContactOrganization@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1113 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactOrganization::FieldRole - ?IsSameAs@QContactRelationship@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1114 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactRelationship::IsSameAs - ?DefinitionName@QContactName@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1115 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactName::DefinitionName - ?Is@QContactRelationship@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1116 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactRelationship::Is - ?staticMetaObject@QContactRelationshipFetchRequest@QtMobility@@2UQMetaObject@@B @ 1117 NONAME ; struct QMetaObject const QtMobility::QContactRelationshipFetchRequest::staticMetaObject - ?FieldAltitudeAccuracy@QContactGeoLocation@QtMobility@@2U?$Latin1Literal@$0BB@@2@B @ 1118 NONAME ; struct QtMobility::Latin1Literal<17> const QtMobility::QContactGeoLocation::FieldAltitudeAccuracy - ?ContextHome@QContactDetail@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1119 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactDetail::ContextHome - ?HasSpouse@QContactRelationship@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1120 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactRelationship::HasSpouse - ?SubTypeVideo@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1121 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactPhoneNumber::SubTypeVideo - ?FieldTitle@QContactOrganization@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1122 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactOrganization::FieldTitle - ?DefinitionName@QContactSyncTarget@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1123 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactSyncTarget::DefinitionName - ?FieldAccountUri@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1124 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactOnlineAccount::FieldAccountUri - ?SubTypeLandline@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1125 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactPhoneNumber::SubTypeLandline - ?DefinitionName@QContactNote@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1126 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactNote::DefinitionName - ?SubTypeTexturedMesh@QContactAvatar@QtMobility@@2U?$Latin1Literal@$0N@@2@B @ 1127 NONAME ; struct QtMobility::Latin1Literal<13> const QtMobility::QContactAvatar::SubTypeTexturedMesh - ?FieldSpeed@QContactGeoLocation@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1128 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactGeoLocation::FieldSpeed - ?FieldEmailAddress@QContactEmailAddress@QtMobility@@2U?$Latin1Literal@$0N@@2@B @ 1129 NONAME ; struct QtMobility::Latin1Literal<13> const QtMobility::QContactEmailAddress::FieldEmailAddress - ?staticMetaObject@QContactManager@QtMobility@@2UQMetaObject@@B @ 1130 NONAME ; struct QMetaObject const QtMobility::QContactManager::staticMetaObject - ?FieldTimestamp@QContactGeoLocation@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1131 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactGeoLocation::FieldTimestamp - ?HasMember@QContactRelationship@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1132 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactRelationship::HasMember - ?GenderUnspecified@QContactGender@QtMobility@@2U?$Latin1Literal@$0M@@2@B @ 1133 NONAME ; struct QtMobility::Latin1Literal<12> const QtMobility::QContactGender::GenderUnspecified - ?TypeContact@QContactType@QtMobility@@2U?$Latin1Literal@$07@2@B @ 1134 NONAME ; struct QtMobility::Latin1Literal<8> const QtMobility::QContactType::TypeContact - ?DefinitionName@QContactBirthday@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1135 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactBirthday::DefinitionName - ?FieldLastName@QContactName@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1136 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactName::FieldLastName - ?FieldDepartment@QContactOrganization@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1137 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactOrganization::FieldDepartment - ?DefinitionName@QContactEmailAddress@QtMobility@@2U?$Latin1Literal@$0N@@2@B @ 1138 NONAME ; struct QtMobility::Latin1Literal<13> const QtMobility::QContactEmailAddress::DefinitionName - ?DefinitionName@QContactGender@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1139 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactGender::DefinitionName - ?FieldAccuracy@QContactGeolocation@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1140 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactGeolocation::FieldAccuracy - ?staticMetaObject@QContactRelationshipRemoveRequest@QtMobility@@2UQMetaObject@@B @ 1141 NONAME ; struct QMetaObject const QtMobility::QContactRelationshipRemoveRequest::staticMetaObject - ?staticMetaObject@QContactLocalIdFetchRequest@QtMobility@@2UQMetaObject@@B @ 1142 NONAME ; struct QMetaObject const QtMobility::QContactLocalIdFetchRequest::staticMetaObject - ?FieldStatusMessage@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$0O@@2@B @ 1143 NONAME ; struct QtMobility::Latin1Literal<14> const QtMobility::QContactOnlineAccount::FieldStatusMessage - ?SubTypeEmployment@QContactAnniversary@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1144 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactAnniversary::SubTypeEmployment - ?SubTypeVideo@QContactAvatar@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1145 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactAvatar::SubTypeVideo - ?SubTypeDtmfMenu@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1146 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactPhoneNumber::SubTypeDtmfMenu - ?SubTypeEngagement@QContactAnniversary@QtMobility@@2U?$Latin1Literal@$0L@@2@B @ 1147 NONAME ; struct QtMobility::Latin1Literal<11> const QtMobility::QContactAnniversary::SubTypeEngagement - ?FieldPostOfficeBox@QContactAddress@QtMobility@@2U?$Latin1Literal@$0O@@2@B @ 1148 NONAME ; struct QtMobility::Latin1Literal<14> const QtMobility::QContactAddress::FieldPostOfficeBox - ?staticMetaObject@QContactManagerEngine@QtMobility@@2UQMetaObject@@B @ 1149 NONAME ; struct QMetaObject const QtMobility::QContactManagerEngine::staticMetaObject - ?SubTypeHouse@QContactAnniversary@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1150 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactAnniversary::SubTypeHouse - ?FieldRegion@QContactAddress@QtMobility@@2U?$Latin1Literal@$06@2@B @ 1151 NONAME ; struct QtMobility::Latin1Literal<7> const QtMobility::QContactAddress::FieldRegion - ?SubTypeImage@QContactAvatar@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1152 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactAvatar::SubTypeImage - ?FieldAltitude@QContactGeoLocation@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1153 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactGeoLocation::FieldAltitude - ?FieldSubTypes@QContactAddress@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1154 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactAddress::FieldSubTypes - ?staticMetaObject@QContactMemoryEngine@QtMobility@@2UQMetaObject@@B @ 1155 NONAME ; struct QMetaObject const QtMobility::QContactMemoryEngine::staticMetaObject - ?FieldAssistantName@QContactOrganization@QtMobility@@2U?$Latin1Literal@$0O@@2@B @ 1156 NONAME ; struct QtMobility::Latin1Literal<14> const QtMobility::QContactOrganization::FieldAssistantName - ?SubTypeAssistant@QContactPhoneNumber@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1157 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactPhoneNumber::SubTypeAssistant - ?FieldEvent@QContactAnniversary@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1158 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactAnniversary::FieldEvent - ?staticMetaObject@QContactAbstractRequest@QtMobility@@2UQMetaObject@@B @ 1159 NONAME ; struct QMetaObject const QtMobility::QContactAbstractRequest::staticMetaObject - ?FieldUrl@QContactUrl@QtMobility@@2U?$Latin1Literal@$03@2@B @ 1160 NONAME ; struct QtMobility::Latin1Literal<4> const QtMobility::QContactUrl::FieldUrl - ?FieldLongitude@QContactGeoLocation@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1161 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactGeoLocation::FieldLongitude - ?FieldSubTypes@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1162 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactOnlineAccount::FieldSubTypes - ?FieldNote@QContactNote@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1163 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactNote::FieldNote - ?FieldSpeed@QContactGeolocation@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1164 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactGeolocation::FieldSpeed - ?FieldTimestamp@QContactGeolocation@QtMobility@@2U?$Latin1Literal@$09@2@B @ 1165 NONAME ; struct QtMobility::Latin1Literal<10> const QtMobility::QContactGeolocation::FieldTimestamp - ?FieldName@QContactOrganization@QtMobility@@2U?$Latin1Literal@$04@2@B @ 1166 NONAME ; struct QtMobility::Latin1Literal<5> const QtMobility::QContactOrganization::FieldName - ?DefinitionName@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$0O@@2@B @ 1167 NONAME ; struct QtMobility::Latin1Literal<14> const QtMobility::QContactOnlineAccount::DefinitionName - ?FieldNickname@QContactOnlineAccount@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1168 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactOnlineAccount::FieldNickname - ?staticMetaObject@QContactDetailDefinitionFetchRequest@QtMobility@@2UQMetaObject@@B @ 1169 NONAME ; struct QMetaObject const QtMobility::QContactDetailDefinitionFetchRequest::staticMetaObject - ?SubTypeDomestic@QContactAddress@QtMobility@@2U?$Latin1Literal@$08@2@B @ 1170 NONAME ; struct QtMobility::Latin1Literal<9> const QtMobility::QContactAddress::SubTypeDomestic - ?FieldLabel@QContactGeoLocation@QtMobility@@2U?$Latin1Literal@$05@2@B @ 1171 NONAME ; struct QtMobility::Latin1Literal<6> const QtMobility::QContactGeoLocation::FieldLabel + ?qt_metacall@QContactRelationshipFetchRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 591 NONAME ; int QtMobility::QContactRelationshipFetchRequest::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QContactRelationshipRemoveRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 592 NONAME ; int QtMobility::QContactRelationshipRemoveRequest::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QContactRelationshipSaveRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 593 NONAME ; int QtMobility::QContactRelationshipSaveRequest::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QContactRemoveRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 594 NONAME ; int QtMobility::QContactRemoveRequest::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QContactSaveRequest@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 595 NONAME ; int QtMobility::QContactSaveRequest::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacast@QContactAbstractRequest@QtMobility@@UAEPAXPBD@Z @ 596 NONAME ; void * QtMobility::QContactAbstractRequest::qt_metacast(char const *) + ?qt_metacast@QContactAction@QtMobility@@UAEPAXPBD@Z @ 597 NONAME ; void * QtMobility::QContactAction::qt_metacast(char const *) + ?qt_metacast@QContactActionFactory@QtMobility@@UAEPAXPBD@Z @ 598 NONAME ; void * QtMobility::QContactActionFactory::qt_metacast(char const *) + ?qt_metacast@QContactDetailDefinitionFetchRequest@QtMobility@@UAEPAXPBD@Z @ 599 NONAME ; void * QtMobility::QContactDetailDefinitionFetchRequest::qt_metacast(char const *) + ?qt_metacast@QContactDetailDefinitionRemoveRequest@QtMobility@@UAEPAXPBD@Z @ 600 NONAME ; void * QtMobility::QContactDetailDefinitionRemoveRequest::qt_metacast(char const *) + ?qt_metacast@QContactDetailDefinitionSaveRequest@QtMobility@@UAEPAXPBD@Z @ 601 NONAME ; void * QtMobility::QContactDetailDefinitionSaveRequest::qt_metacast(char const *) + ?qt_metacast@QContactFetchRequest@QtMobility@@UAEPAXPBD@Z @ 602 NONAME ; void * QtMobility::QContactFetchRequest::qt_metacast(char const *) + ?qt_metacast@QContactLocalIdFetchRequest@QtMobility@@UAEPAXPBD@Z @ 603 NONAME ; void * QtMobility::QContactLocalIdFetchRequest::qt_metacast(char const *) + ?qt_metacast@QContactManager@QtMobility@@UAEPAXPBD@Z @ 604 NONAME ; void * QtMobility::QContactManager::qt_metacast(char const *) + ?qt_metacast@QContactManagerEngine@QtMobility@@UAEPAXPBD@Z @ 605 NONAME ; void * QtMobility::QContactManagerEngine::qt_metacast(char const *) + ?qt_metacast@QContactRelationshipFetchRequest@QtMobility@@UAEPAXPBD@Z @ 606 NONAME ; void * QtMobility::QContactRelationshipFetchRequest::qt_metacast(char const *) + ?qt_metacast@QContactRelationshipRemoveRequest@QtMobility@@UAEPAXPBD@Z @ 607 NONAME ; void * QtMobility::QContactRelationshipRemoveRequest::qt_metacast(char const *) + ?qt_metacast@QContactRelationshipSaveRequest@QtMobility@@UAEPAXPBD@Z @ 608 NONAME ; void * QtMobility::QContactRelationshipSaveRequest::qt_metacast(char const *) + ?qt_metacast@QContactRemoveRequest@QtMobility@@UAEPAXPBD@Z @ 609 NONAME ; void * QtMobility::QContactRemoveRequest::qt_metacast(char const *) + ?qt_metacast@QContactSaveRequest@QtMobility@@UAEPAXPBD@Z @ 610 NONAME ; void * QtMobility::QContactSaveRequest::qt_metacast(char const *) + ?rangeFlags@QContactDetailRangeFilter@QtMobility@@QBE?AV?$QFlags@W4RangeFlag@QContactDetailRangeFilter@QtMobility@@@@XZ @ 611 NONAME ; class QFlags QtMobility::QContactDetailRangeFilter::rangeFlags(void) const + ?region@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 612 NONAME ; class QString QtMobility::QContactAddress::region(void) const + ?relatedContactId@QContactRelationshipFilter@QtMobility@@QBE?AVQContactId@2@XZ @ 613 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationshipFilter::relatedContactId(void) const + ?relatedContactRole@QContactRelationshipFilter@QtMobility@@QBE?AW4Role@QContactRelationship@2@XZ @ 614 NONAME ; enum QtMobility::QContactRelationship::Role QtMobility::QContactRelationshipFilter::relatedContactRole(void) const + ?relatedContacts@QContact@QtMobility@@QBE?AV?$QList@VQContactId@QtMobility@@@@ABVQString@@W4Role@QContactRelationship@2@@Z @ 615 NONAME ; class QList QtMobility::QContact::relatedContacts(class QString const &, enum QtMobility::QContactRelationship::Role) const + ?relationshipType@QContactRelationship@QtMobility@@QBE?AVQString@@XZ @ 616 NONAME ; class QString QtMobility::QContactRelationship::relationshipType(void) const + ?relationshipType@QContactRelationshipFetchRequest@QtMobility@@QBE?AVQString@@XZ @ 617 NONAME ; class QString QtMobility::QContactRelationshipFetchRequest::relationshipType(void) const + ?relationshipType@QContactRelationshipFilter@QtMobility@@QBE?AVQString@@XZ @ 618 NONAME ; class QString QtMobility::QContactRelationshipFilter::relationshipType(void) const + ?relationshipTypesHint@QContactFetchHint@QtMobility@@QBE?AVQStringList@@XZ @ 619 NONAME ; class QStringList QtMobility::QContactFetchHint::relationshipTypesHint(void) const + ?relationships@QContact@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@ABVQString@@@Z @ 620 NONAME ; class QList QtMobility::QContact::relationships(class QString const &) const + ?relationships@QContactManager@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@ABVQContactId@2@W4Role@QContactRelationship@2@@Z @ 621 NONAME ; class QList QtMobility::QContactManager::relationships(class QtMobility::QContactId const &, enum QtMobility::QContactRelationship::Role) const + ?relationships@QContactManager@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@ABVQString@@ABVQContactId@2@W4Role@QContactRelationship@2@@Z @ 622 NONAME ; class QList QtMobility::QContactManager::relationships(class QString const &, class QtMobility::QContactId const &, enum QtMobility::QContactRelationship::Role) const + ?relationships@QContactManagerEngine@QtMobility@@UBE?AV?$QList@VQContactRelationship@QtMobility@@@@ABVQString@@ABVQContactId@2@W4Role@QContactRelationship@2@PAW4Error@QContactManager@2@@Z @ 623 NONAME ; class QList QtMobility::QContactManagerEngine::relationships(class QString const &, class QtMobility::QContactId const &, enum QtMobility::QContactRelationship::Role, enum QtMobility::QContactManager::Error *) const + ?relationships@QContactRelationshipFetchRequest@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@XZ @ 624 NONAME ; class QList QtMobility::QContactRelationshipFetchRequest::relationships(void) const + ?relationships@QContactRelationshipRemoveRequest@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@XZ @ 625 NONAME ; class QList QtMobility::QContactRelationshipRemoveRequest::relationships(void) const + ?relationships@QContactRelationshipSaveRequest@QtMobility@@QBE?AV?$QList@VQContactRelationship@QtMobility@@@@XZ @ 626 NONAME ; class QList QtMobility::QContactRelationshipSaveRequest::relationships(void) const + ?relationshipsAdded@QContactManager@QtMobility@@IAEXABV?$QList@I@@@Z @ 627 NONAME ; void QtMobility::QContactManager::relationshipsAdded(class QList const &) + ?relationshipsAdded@QContactManagerEngine@QtMobility@@IAEXABV?$QList@I@@@Z @ 628 NONAME ; void QtMobility::QContactManagerEngine::relationshipsAdded(class QList const &) + ?relationshipsRemoved@QContactManager@QtMobility@@IAEXABV?$QList@I@@@Z @ 629 NONAME ; void QtMobility::QContactManager::relationshipsRemoved(class QList const &) + ?relationshipsRemoved@QContactManagerEngine@QtMobility@@IAEXABV?$QList@I@@@Z @ 630 NONAME ; void QtMobility::QContactManagerEngine::relationshipsRemoved(class QList const &) + ?remove@QContactIntersectionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 631 NONAME ; void QtMobility::QContactIntersectionFilter::remove(class QtMobility::QContactFilter const &) + ?remove@QContactUnionFilter@QtMobility@@QAEXABVQContactFilter@2@@Z @ 632 NONAME ; void QtMobility::QContactUnionFilter::remove(class QtMobility::QContactFilter const &) + ?removeContact@QContactManager@QtMobility@@QAE_NABI@Z @ 633 NONAME ; bool QtMobility::QContactManager::removeContact(unsigned int const &) + ?removeContact@QContactManagerEngine@QtMobility@@UAE_NABIPAW4Error@QContactManager@2@@Z @ 634 NONAME ; bool QtMobility::QContactManagerEngine::removeContact(unsigned int const &, enum QtMobility::QContactManager::Error *) + ?removeContacts@QContactManager@QtMobility@@QAE_NABV?$QList@I@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 635 NONAME ; bool QtMobility::QContactManager::removeContacts(class QList const &, class QMap *) + ?removeContacts@QContactManagerEngine@QtMobility@@UAE_NABV?$QList@I@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@PAW4Error@QContactManager@2@@Z @ 636 NONAME ; bool QtMobility::QContactManagerEngine::removeContacts(class QList const &, class QMap *, enum QtMobility::QContactManager::Error *) + ?removeDetail@QContact@QtMobility@@QAE_NPAVQContactDetail@2@@Z @ 637 NONAME ; bool QtMobility::QContact::removeDetail(class QtMobility::QContactDetail *) + ?removeDetailDefinition@QContactManager@QtMobility@@QAE_NABVQString@@0@Z @ 638 NONAME ; bool QtMobility::QContactManager::removeDetailDefinition(class QString const &, class QString const &) + ?removeDetailDefinition@QContactManagerEngine@QtMobility@@UAE_NABVQString@@0PAW4Error@QContactManager@2@@Z @ 639 NONAME ; bool QtMobility::QContactManagerEngine::removeDetailDefinition(class QString const &, class QString const &, enum QtMobility::QContactManager::Error *) + ?removeField@QContactDetailDefinition@QtMobility@@QAEXABVQString@@@Z @ 640 NONAME ; void QtMobility::QContactDetailDefinition::removeField(class QString const &) + ?removeRelationship@QContactManager@QtMobility@@QAE_NABVQContactRelationship@2@@Z @ 641 NONAME ; bool QtMobility::QContactManager::removeRelationship(class QtMobility::QContactRelationship const &) + ?removeRelationship@QContactManagerEngine@QtMobility@@UAE_NABVQContactRelationship@2@PAW4Error@QContactManager@2@@Z @ 642 NONAME ; bool QtMobility::QContactManagerEngine::removeRelationship(class QtMobility::QContactRelationship const &, enum QtMobility::QContactManager::Error *) + ?removeRelationships@QContactManager@QtMobility@@QAE_NABV?$QList@VQContactRelationship@QtMobility@@@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 643 NONAME ; bool QtMobility::QContactManager::removeRelationships(class QList const &, class QMap *) + ?removeRelationships@QContactManagerEngine@QtMobility@@UAE_NABV?$QList@VQContactRelationship@QtMobility@@@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@PAW4Error@QContactManager@2@@Z @ 644 NONAME ; bool QtMobility::QContactManagerEngine::removeRelationships(class QList const &, class QMap *, enum QtMobility::QContactManager::Error *) + ?removeValue@QContactDetail@QtMobility@@QAE_NABVQString@@@Z @ 645 NONAME ; bool QtMobility::QContactDetail::removeValue(class QString const &) + ?removedContacts@QContactChangeSet@QtMobility@@QBE?AV?$QSet@I@@XZ @ 646 NONAME ; class QSet QtMobility::QContactChangeSet::removedContacts(void) const + ?removedRelationshipsContacts@QContactChangeSet@QtMobility@@QBE?AV?$QSet@I@@XZ @ 647 NONAME ; class QSet QtMobility::QContactChangeSet::removedRelationshipsContacts(void) const + ?requestDestroyed@QContactManagerEngine@QtMobility@@UAEXPAVQContactAbstractRequest@2@@Z @ 648 NONAME ; void QtMobility::QContactManagerEngine::requestDestroyed(class QtMobility::QContactAbstractRequest *) + ?resetKey@QContactDetail@QtMobility@@QAEXXZ @ 649 NONAME ; void QtMobility::QContactDetail::resetKey(void) + ?resultsAvailable@QContactAbstractRequest@QtMobility@@IAEXXZ @ 650 NONAME ; void QtMobility::QContactAbstractRequest::resultsAvailable(void) + ?resultsAvailable@QContactAction@QtMobility@@IAEXXZ @ 651 NONAME ; void QtMobility::QContactAction::resultsAvailable(void) + ?role@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 652 NONAME ; class QString QtMobility::QContactOrganization::role(void) const + ?saveContact@QContactManager@QtMobility@@QAE_NPAVQContact@2@@Z @ 653 NONAME ; bool QtMobility::QContactManager::saveContact(class QtMobility::QContact *) + ?saveContact@QContactManagerEngine@QtMobility@@UAE_NPAVQContact@2@PAW4Error@QContactManager@2@@Z @ 654 NONAME ; bool QtMobility::QContactManagerEngine::saveContact(class QtMobility::QContact *, enum QtMobility::QContactManager::Error *) + ?saveContacts@QContactManager@QtMobility@@QAE_NPAV?$QList@VQContact@QtMobility@@@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 655 NONAME ; bool QtMobility::QContactManager::saveContacts(class QList *, class QMap *) + ?saveContacts@QContactManagerEngine@QtMobility@@UAE_NPAV?$QList@VQContact@QtMobility@@@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@PAW4Error@QContactManager@2@@Z @ 656 NONAME ; bool QtMobility::QContactManagerEngine::saveContacts(class QList *, class QMap *, enum QtMobility::QContactManager::Error *) + ?saveDetail@QContact@QtMobility@@QAE_NPAVQContactDetail@2@@Z @ 657 NONAME ; bool QtMobility::QContact::saveDetail(class QtMobility::QContactDetail *) + ?saveDetailDefinition@QContactManager@QtMobility@@QAE_NABVQContactDetailDefinition@2@ABVQString@@@Z @ 658 NONAME ; bool QtMobility::QContactManager::saveDetailDefinition(class QtMobility::QContactDetailDefinition const &, class QString const &) + ?saveDetailDefinition@QContactManagerEngine@QtMobility@@UAE_NABVQContactDetailDefinition@2@ABVQString@@PAW4Error@QContactManager@2@@Z @ 659 NONAME ; bool QtMobility::QContactManagerEngine::saveDetailDefinition(class QtMobility::QContactDetailDefinition const &, class QString const &, enum QtMobility::QContactManager::Error *) + ?saveRelationship@QContactManager@QtMobility@@QAE_NPAVQContactRelationship@2@@Z @ 660 NONAME ; bool QtMobility::QContactManager::saveRelationship(class QtMobility::QContactRelationship *) + ?saveRelationship@QContactManagerEngine@QtMobility@@UAE_NPAVQContactRelationship@2@PAW4Error@QContactManager@2@@Z @ 661 NONAME ; bool QtMobility::QContactManagerEngine::saveRelationship(class QtMobility::QContactRelationship *, enum QtMobility::QContactManager::Error *) + ?saveRelationships@QContactManager@QtMobility@@QAE_NPAV?$QList@VQContactRelationship@QtMobility@@@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@@Z @ 662 NONAME ; bool QtMobility::QContactManager::saveRelationships(class QList *, class QMap *) + ?saveRelationships@QContactManagerEngine@QtMobility@@UAE_NPAV?$QList@VQContactRelationship@QtMobility@@@@PAV?$QMap@HW4Error@QContactManager@QtMobility@@@@PAW4Error@QContactManager@2@@Z @ 663 NONAME ; bool QtMobility::QContactManagerEngine::saveRelationships(class QList *, class QMap *, enum QtMobility::QContactManager::Error *) + ?schemaDefinitions@QContactManagerEngine@QtMobility@@SA?AV?$QMap@VQString@@V?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@@@XZ @ 664 NONAME ; class QMap > QtMobility::QContactManagerEngine::schemaDefinitions(void) + ?second@QContactRelationship@QtMobility@@QBE?AVQContactId@2@XZ @ 665 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationship::second(void) const + ?second@QContactRelationshipFetchRequest@QtMobility@@QBE?AVQContactId@2@XZ @ 666 NONAME ; class QtMobility::QContactId QtMobility::QContactRelationshipFetchRequest::second(void) const + ?selfContactId@QContactManager@QtMobility@@QBEIXZ @ 667 NONAME ; unsigned int QtMobility::QContactManager::selfContactId(void) const + ?selfContactId@QContactManagerEngine@QtMobility@@UBEIPAW4Error@QContactManager@2@@Z @ 668 NONAME ; unsigned int QtMobility::QContactManagerEngine::selfContactId(enum QtMobility::QContactManager::Error *) const + ?selfContactIdChanged@QContactManager@QtMobility@@IAEXABI0@Z @ 669 NONAME ; void QtMobility::QContactManager::selfContactIdChanged(unsigned int const &, unsigned int const &) + ?selfContactIdChanged@QContactManagerEngine@QtMobility@@IAEXABI0@Z @ 670 NONAME ; void QtMobility::QContactManagerEngine::selfContactIdChanged(unsigned int const &, unsigned int const &) + ?serviceProvider@QContactOnlineAccount@QtMobility@@QBE?AVQString@@XZ @ 671 NONAME ; class QString QtMobility::QContactOnlineAccount::serviceProvider(void) const + ?setAccountUri@QContactOnlineAccount@QtMobility@@QAEXABVQString@@@Z @ 672 NONAME ; void QtMobility::QContactOnlineAccount::setAccountUri(class QString const &) + ?setAccuracy@QContactGeoLocation@QtMobility@@QAEXN@Z @ 673 NONAME ; void QtMobility::QContactGeoLocation::setAccuracy(double) + ?setActionName@QContactActionDescriptor@QtMobility@@QAEXABVQString@@@Z @ 674 NONAME ; void QtMobility::QContactActionDescriptor::setActionName(class QString const &) + ?setActionName@QContactActionFilter@QtMobility@@QAEXABVQString@@@Z @ 675 NONAME ; void QtMobility::QContactActionFilter::setActionName(class QString const &) + ?setAllowableValues@QContactDetailFieldDefinition@QtMobility@@QAEXV?$QList@VQVariant@@@@@Z @ 676 NONAME ; void QtMobility::QContactDetailFieldDefinition::setAllowableValues(class QList) + ?setAltitude@QContactGeoLocation@QtMobility@@QAEXN@Z @ 677 NONAME ; void QtMobility::QContactGeoLocation::setAltitude(double) + ?setAltitudeAccuracy@QContactGeoLocation@QtMobility@@QAEXN@Z @ 678 NONAME ; void QtMobility::QContactGeoLocation::setAltitudeAccuracy(double) + ?setAssistantName@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 679 NONAME ; void QtMobility::QContactOrganization::setAssistantName(class QString const &) + ?setAudioRingtoneUrl@QContactRingtone@QtMobility@@QAEXABVQUrl@@@Z @ 680 NONAME ; void QtMobility::QContactRingtone::setAudioRingtoneUrl(class QUrl const &) + ?setBlankPolicy@QContactSortOrder@QtMobility@@QAEXW4BlankPolicy@12@@Z @ 681 NONAME ; void QtMobility::QContactSortOrder::setBlankPolicy(enum QtMobility::QContactSortOrder::BlankPolicy) + ?setCalendarId@QContactAnniversary@QtMobility@@QAEXABVQString@@@Z @ 682 NONAME ; void QtMobility::QContactAnniversary::setCalendarId(class QString const &) + ?setCapabilities@QContactOnlineAccount@QtMobility@@QAEXABVQStringList@@@Z @ 683 NONAME ; void QtMobility::QContactOnlineAccount::setCapabilities(class QStringList const &) + ?setCaseSensitivity@QContactSortOrder@QtMobility@@QAEXW4CaseSensitivity@Qt@@@Z @ 684 NONAME ; void QtMobility::QContactSortOrder::setCaseSensitivity(enum Qt::CaseSensitivity) + ?setChildren@QContactFamily@QtMobility@@QAEXABVQStringList@@@Z @ 685 NONAME ; void QtMobility::QContactFamily::setChildren(class QStringList const &) + ?setContactDisplayLabel@QContactManagerEngine@QtMobility@@SAXPAVQContact@2@ABVQString@@@Z @ 686 NONAME ; void QtMobility::QContactManagerEngine::setContactDisplayLabel(class QtMobility::QContact *, class QString const &) + ?setContactIds@QContactRemoveRequest@QtMobility@@QAEXABV?$QList@I@@@Z @ 687 NONAME ; void QtMobility::QContactRemoveRequest::setContactIds(class QList const &) + ?setContactRelationships@QContactManagerEngine@QtMobility@@SAXPAVQContact@2@ABV?$QList@VQContactRelationship@QtMobility@@@@@Z @ 688 NONAME ; void QtMobility::QContactManagerEngine::setContactRelationships(class QtMobility::QContact *, class QList const &) + ?setContactType@QContactDetailDefinitionFetchRequest@QtMobility@@QAEXABVQString@@@Z @ 689 NONAME ; void QtMobility::QContactDetailDefinitionFetchRequest::setContactType(class QString const &) + ?setContactType@QContactDetailDefinitionSaveRequest@QtMobility@@QAEXABVQString@@@Z @ 690 NONAME ; void QtMobility::QContactDetailDefinitionSaveRequest::setContactType(class QString const &) + ?setContacts@QContactSaveRequest@QtMobility@@QAEXABV?$QList@VQContact@QtMobility@@@@@Z @ 691 NONAME ; void QtMobility::QContactSaveRequest::setContacts(class QList const &) + ?setContexts@QContactDetail@QtMobility@@QAEXABVQString@@@Z @ 692 NONAME ; void QtMobility::QContactDetail::setContexts(class QString const &) + ?setContexts@QContactDetail@QtMobility@@QAEXABVQStringList@@@Z @ 693 NONAME ; void QtMobility::QContactDetail::setContexts(class QStringList const &) + ?setCountry@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 694 NONAME ; void QtMobility::QContactAddress::setCountry(class QString const &) + ?setCreated@QContactTimestamp@QtMobility@@QAEXABVQDateTime@@@Z @ 695 NONAME ; void QtMobility::QContactTimestamp::setCreated(class QDateTime const &) + ?setCustomLabel@QContactName@QtMobility@@QAEXABVQString@@@Z @ 696 NONAME ; void QtMobility::QContactName::setCustomLabel(class QString const &) + ?setCustomMessage@QContactGlobalPresence@QtMobility@@QAEXABVQString@@@Z @ 697 NONAME ; void QtMobility::QContactGlobalPresence::setCustomMessage(class QString const &) + ?setCustomMessage@QContactPresence@QtMobility@@QAEXABVQString@@@Z @ 698 NONAME ; void QtMobility::QContactPresence::setCustomMessage(class QString const &) + ?setDataChanged@QContactChangeSet@QtMobility@@QAEX_N@Z @ 699 NONAME ; void QtMobility::QContactChangeSet::setDataChanged(bool) + ?setDataType@QContactDetailFieldDefinition@QtMobility@@QAEXW4Type@QVariant@@@Z @ 700 NONAME ; void QtMobility::QContactDetailFieldDefinition::setDataType(enum QVariant::Type) + ?setDate@QContactBirthday@QtMobility@@QAEXABVQDate@@@Z @ 701 NONAME ; void QtMobility::QContactBirthday::setDate(class QDate const &) + ?setDefinitionNames@QContactDetailDefinitionFetchRequest@QtMobility@@QAEXABVQStringList@@@Z @ 702 NONAME ; void QtMobility::QContactDetailDefinitionFetchRequest::setDefinitionNames(class QStringList const &) + ?setDefinitionNames@QContactDetailDefinitionRemoveRequest@QtMobility@@QAEXABVQString@@ABVQStringList@@@Z @ 703 NONAME ; void QtMobility::QContactDetailDefinitionRemoveRequest::setDefinitionNames(class QString const &, class QStringList const &) + ?setDefinitions@QContactDetailDefinitionSaveRequest@QtMobility@@QAEXABV?$QList@VQContactDetailDefinition@QtMobility@@@@@Z @ 704 NONAME ; void QtMobility::QContactDetailDefinitionSaveRequest::setDefinitions(class QList const &) + ?setDepartment@QContactOrganization@QtMobility@@QAEXABVQStringList@@@Z @ 705 NONAME ; void QtMobility::QContactOrganization::setDepartment(class QStringList const &) + ?setDetailAccessConstraints@QContactManagerEngine@QtMobility@@SAXPAVQContactDetail@2@V?$QFlags@W4AccessConstraint@QContactDetail@QtMobility@@@@@Z @ 706 NONAME ; void QtMobility::QContactManagerEngine::setDetailAccessConstraints(class QtMobility::QContactDetail *, class QFlags) + ?setDetailDefinitionName@QContactDetailFilter@QtMobility@@QAEXABVQString@@0@Z @ 707 NONAME ; void QtMobility::QContactDetailFilter::setDetailDefinitionName(class QString const &, class QString const &) + ?setDetailDefinitionName@QContactDetailRangeFilter@QtMobility@@QAEXABVQString@@0@Z @ 708 NONAME ; void QtMobility::QContactDetailRangeFilter::setDetailDefinitionName(class QString const &, class QString const &) + ?setDetailDefinitionName@QContactSortOrder@QtMobility@@QAEXABVQString@@0@Z @ 709 NONAME ; void QtMobility::QContactSortOrder::setDetailDefinitionName(class QString const &, class QString const &) + ?setDetailDefinitionsHint@QContactFetchHint@QtMobility@@QAEXABVQStringList@@@Z @ 710 NONAME ; void QtMobility::QContactFetchHint::setDetailDefinitionsHint(class QStringList const &) + ?setDetailUri@QContactDetail@QtMobility@@QAEXABVQString@@@Z @ 711 NONAME ; void QtMobility::QContactDetail::setDetailUri(class QString const &) + ?setDirection@QContactSortOrder@QtMobility@@QAEXW4SortOrder@Qt@@@Z @ 712 NONAME ; void QtMobility::QContactSortOrder::setDirection(enum Qt::SortOrder) + ?setEmailAddress@QContactEmailAddress@QtMobility@@QAEXABVQString@@@Z @ 713 NONAME ; void QtMobility::QContactEmailAddress::setEmailAddress(class QString const &) + ?setEvent@QContactAnniversary@QtMobility@@QAEXABVQString@@@Z @ 714 NONAME ; void QtMobility::QContactAnniversary::setEvent(class QString const &) + ?setEventType@QContactChangeLogFilter@QtMobility@@QAEXW4EventType@12@@Z @ 715 NONAME ; void QtMobility::QContactChangeLogFilter::setEventType(enum QtMobility::QContactChangeLogFilter::EventType) + ?setFetchHint@QContactFetchRequest@QtMobility@@QAEXABVQContactFetchHint@2@@Z @ 716 NONAME ; void QtMobility::QContactFetchRequest::setFetchHint(class QtMobility::QContactFetchHint const &) + ?setFields@QContactDetailDefinition@QtMobility@@QAEXABV?$QMap@VQString@@VQContactDetailFieldDefinition@QtMobility@@@@@Z @ 717 NONAME ; void QtMobility::QContactDetailDefinition::setFields(class QMap const &) + ?setFilter@QContactFetchRequest@QtMobility@@QAEXABVQContactFilter@2@@Z @ 718 NONAME ; void QtMobility::QContactFetchRequest::setFilter(class QtMobility::QContactFilter const &) + ?setFilter@QContactLocalIdFetchRequest@QtMobility@@QAEXABVQContactFilter@2@@Z @ 719 NONAME ; void QtMobility::QContactLocalIdFetchRequest::setFilter(class QtMobility::QContactFilter const &) + ?setFilters@QContactIntersectionFilter@QtMobility@@QAEXABV?$QList@VQContactFilter@QtMobility@@@@@Z @ 720 NONAME ; void QtMobility::QContactIntersectionFilter::setFilters(class QList const &) + ?setFilters@QContactUnionFilter@QtMobility@@QAEXABV?$QList@VQContactFilter@QtMobility@@@@@Z @ 721 NONAME ; void QtMobility::QContactUnionFilter::setFilters(class QList const &) + ?setFirst@QContactRelationship@QtMobility@@QAEXABVQContactId@2@@Z @ 722 NONAME ; void QtMobility::QContactRelationship::setFirst(class QtMobility::QContactId const &) + ?setFirst@QContactRelationshipFetchRequest@QtMobility@@QAEXABVQContactId@2@@Z @ 723 NONAME ; void QtMobility::QContactRelationshipFetchRequest::setFirst(class QtMobility::QContactId const &) + ?setFirstName@QContactName@QtMobility@@QAEXABVQString@@@Z @ 724 NONAME ; void QtMobility::QContactName::setFirstName(class QString const &) + ?setGender@QContactGender@QtMobility@@QAEXABVQString@@@Z @ 725 NONAME ; void QtMobility::QContactGender::setGender(class QString const &) + ?setGuid@QContactGuid@QtMobility@@QAEXABVQString@@@Z @ 726 NONAME ; void QtMobility::QContactGuid::setGuid(class QString const &) + ?setHeading@QContactGeoLocation@QtMobility@@QAEXN@Z @ 727 NONAME ; void QtMobility::QContactGeoLocation::setHeading(double) + ?setId@QContact@QtMobility@@QAEXABVQContactId@2@@Z @ 728 NONAME ; void QtMobility::QContact::setId(class QtMobility::QContactId const &) + ?setIds@QContactLocalIdFilter@QtMobility@@QAEXABV?$QList@I@@@Z @ 729 NONAME ; void QtMobility::QContactLocalIdFilter::setIds(class QList const &) + ?setImageUrl@QContactAvatar@QtMobility@@QAEXABVQUrl@@@Z @ 730 NONAME ; void QtMobility::QContactAvatar::setImageUrl(class QUrl const &) + ?setImplementationVersion@QContactActionDescriptor@QtMobility@@QAEXH@Z @ 731 NONAME ; void QtMobility::QContactActionDescriptor::setImplementationVersion(int) + ?setLabel@QContactGeoLocation@QtMobility@@QAEXABVQString@@@Z @ 732 NONAME ; void QtMobility::QContactGeoLocation::setLabel(class QString const &) + ?setLastModified@QContactTimestamp@QtMobility@@QAEXABVQDateTime@@@Z @ 733 NONAME ; void QtMobility::QContactTimestamp::setLastModified(class QDateTime const &) + ?setLastName@QContactName@QtMobility@@QAEXABVQString@@@Z @ 734 NONAME ; void QtMobility::QContactName::setLastName(class QString const &) + ?setLatitude@QContactGeoLocation@QtMobility@@QAEXN@Z @ 735 NONAME ; void QtMobility::QContactGeoLocation::setLatitude(double) + ?setLinkedDetailUris@QContactDetail@QtMobility@@QAEXABVQString@@@Z @ 736 NONAME ; void QtMobility::QContactDetail::setLinkedDetailUris(class QString const &) + ?setLinkedDetailUris@QContactDetail@QtMobility@@QAEXABVQStringList@@@Z @ 737 NONAME ; void QtMobility::QContactDetail::setLinkedDetailUris(class QStringList const &) + ?setLocalId@QContactId@QtMobility@@QAEXABI@Z @ 738 NONAME ; void QtMobility::QContactId::setLocalId(unsigned int const &) + ?setLocality@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 739 NONAME ; void QtMobility::QContactAddress::setLocality(class QString const &) + ?setLocation@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 740 NONAME ; void QtMobility::QContactOrganization::setLocation(class QString const &) + ?setLogoUrl@QContactOrganization@QtMobility@@QAEXABVQUrl@@@Z @ 741 NONAME ; void QtMobility::QContactOrganization::setLogoUrl(class QUrl const &) + ?setLongitude@QContactGeoLocation@QtMobility@@QAEXN@Z @ 742 NONAME ; void QtMobility::QContactGeoLocation::setLongitude(double) + ?setManager@QContactAbstractRequest@QtMobility@@QAEXPAVQContactManager@2@@Z @ 743 NONAME ; void QtMobility::QContactAbstractRequest::setManager(class QtMobility::QContactManager *) + ?setManagerUri@QContactId@QtMobility@@QAEXABVQString@@@Z @ 744 NONAME ; void QtMobility::QContactId::setManagerUri(class QString const &) + ?setMatchFlags@QContactDetailFilter@QtMobility@@QAEXV?$QFlags@W4MatchFlag@QContactFilter@QtMobility@@@@@Z @ 745 NONAME ; void QtMobility::QContactDetailFilter::setMatchFlags(class QFlags) + ?setMatchFlags@QContactDetailRangeFilter@QtMobility@@QAEXV?$QFlags@W4MatchFlag@QContactFilter@QtMobility@@@@@Z @ 746 NONAME ; void QtMobility::QContactDetailRangeFilter::setMatchFlags(class QFlags) + ?setMiddleName@QContactName@QtMobility@@QAEXABVQString@@@Z @ 747 NONAME ; void QtMobility::QContactName::setMiddleName(class QString const &) + ?setName@QContactDetailDefinition@QtMobility@@QAEXABVQString@@@Z @ 748 NONAME ; void QtMobility::QContactDetailDefinition::setName(class QString const &) + ?setName@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 749 NONAME ; void QtMobility::QContactOrganization::setName(class QString const &) + ?setNickname@QContactGlobalPresence@QtMobility@@QAEXABVQString@@@Z @ 750 NONAME ; void QtMobility::QContactGlobalPresence::setNickname(class QString const &) + ?setNickname@QContactNickname@QtMobility@@QAEXABVQString@@@Z @ 751 NONAME ; void QtMobility::QContactNickname::setNickname(class QString const &) + ?setNickname@QContactPresence@QtMobility@@QAEXABVQString@@@Z @ 752 NONAME ; void QtMobility::QContactPresence::setNickname(class QString const &) + ?setNote@QContactNote@QtMobility@@QAEXABVQString@@@Z @ 753 NONAME ; void QtMobility::QContactNote::setNote(class QString const &) + ?setNumber@QContactPhoneNumber@QtMobility@@QAEXABVQString@@@Z @ 754 NONAME ; void QtMobility::QContactPhoneNumber::setNumber(class QString const &) + ?setOldAndNewSelfContactId@QContactChangeSet@QtMobility@@QAEXABU?$QPair@II@@@Z @ 755 NONAME ; void QtMobility::QContactChangeSet::setOldAndNewSelfContactId(struct QPair const &) + ?setOptimizationHints@QContactFetchHint@QtMobility@@QAEXV?$QFlags@W4OptimizationHint@QContactFetchHint@QtMobility@@@@@Z @ 756 NONAME ; void QtMobility::QContactFetchHint::setOptimizationHints(class QFlags) + ?setOriginalDate@QContactAnniversary@QtMobility@@QAEXABVQDate@@@Z @ 757 NONAME ; void QtMobility::QContactAnniversary::setOriginalDate(class QDate const &) + ?setPostOfficeBox@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 758 NONAME ; void QtMobility::QContactAddress::setPostOfficeBox(class QString const &) + ?setPostcode@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 759 NONAME ; void QtMobility::QContactAddress::setPostcode(class QString const &) + ?setPreferredDetail@QContact@QtMobility@@QAE_NABVQString@@ABVQContactDetail@2@@Z @ 760 NONAME ; bool QtMobility::QContact::setPreferredDetail(class QString const &, class QtMobility::QContactDetail const &) + ?setPrefix@QContactName@QtMobility@@QAEXABVQString@@@Z @ 761 NONAME ; void QtMobility::QContactName::setPrefix(class QString const &) + ?setPresenceState@QContactGlobalPresence@QtMobility@@QAEXW4PresenceState@QContactPresence@2@@Z @ 762 NONAME ; void QtMobility::QContactGlobalPresence::setPresenceState(enum QtMobility::QContactPresence::PresenceState) + ?setPresenceState@QContactPresence@QtMobility@@QAEXW4PresenceState@12@@Z @ 763 NONAME ; void QtMobility::QContactPresence::setPresenceState(enum QtMobility::QContactPresence::PresenceState) + ?setPresenceStateImageUrl@QContactGlobalPresence@QtMobility@@QAEXABVQUrl@@@Z @ 764 NONAME ; void QtMobility::QContactGlobalPresence::setPresenceStateImageUrl(class QUrl const &) + ?setPresenceStateImageUrl@QContactPresence@QtMobility@@QAEXABVQUrl@@@Z @ 765 NONAME ; void QtMobility::QContactPresence::setPresenceStateImageUrl(class QUrl const &) + ?setPresenceStateText@QContactGlobalPresence@QtMobility@@QAEXABVQString@@@Z @ 766 NONAME ; void QtMobility::QContactGlobalPresence::setPresenceStateText(class QString const &) + ?setPresenceStateText@QContactPresence@QtMobility@@QAEXABVQString@@@Z @ 767 NONAME ; void QtMobility::QContactPresence::setPresenceStateText(class QString const &) + ?setRange@QContactDetailRangeFilter@QtMobility@@QAEXABVQVariant@@0V?$QFlags@W4RangeFlag@QContactDetailRangeFilter@QtMobility@@@@@Z @ 768 NONAME ; void QtMobility::QContactDetailRangeFilter::setRange(class QVariant const &, class QVariant const &, class QFlags) + ?setRegion@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 769 NONAME ; void QtMobility::QContactAddress::setRegion(class QString const &) + ?setRelatedContactId@QContactRelationshipFilter@QtMobility@@QAEXABVQContactId@2@@Z @ 770 NONAME ; void QtMobility::QContactRelationshipFilter::setRelatedContactId(class QtMobility::QContactId const &) + ?setRelatedContactRole@QContactRelationshipFilter@QtMobility@@QAEXW4Role@QContactRelationship@2@@Z @ 771 NONAME ; void QtMobility::QContactRelationshipFilter::setRelatedContactRole(enum QtMobility::QContactRelationship::Role) + ?setRelationshipType@QContactRelationship@QtMobility@@QAEXABVQString@@@Z @ 772 NONAME ; void QtMobility::QContactRelationship::setRelationshipType(class QString const &) + ?setRelationshipType@QContactRelationshipFetchRequest@QtMobility@@QAEXABVQString@@@Z @ 773 NONAME ; void QtMobility::QContactRelationshipFetchRequest::setRelationshipType(class QString const &) + ?setRelationshipType@QContactRelationshipFilter@QtMobility@@QAEXABVQString@@@Z @ 774 NONAME ; void QtMobility::QContactRelationshipFilter::setRelationshipType(class QString const &) + ?setRelationshipTypesHint@QContactFetchHint@QtMobility@@QAEXABVQStringList@@@Z @ 775 NONAME ; void QtMobility::QContactFetchHint::setRelationshipTypesHint(class QStringList const &) + ?setRelationships@QContactRelationshipRemoveRequest@QtMobility@@QAEXABV?$QList@VQContactRelationship@QtMobility@@@@@Z @ 776 NONAME ; void QtMobility::QContactRelationshipRemoveRequest::setRelationships(class QList const &) + ?setRelationships@QContactRelationshipSaveRequest@QtMobility@@QAEXABV?$QList@VQContactRelationship@QtMobility@@@@@Z @ 777 NONAME ; void QtMobility::QContactRelationshipSaveRequest::setRelationships(class QList const &) + ?setRole@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 778 NONAME ; void QtMobility::QContactOrganization::setRole(class QString const &) + ?setSecond@QContactRelationship@QtMobility@@QAEXABVQContactId@2@@Z @ 779 NONAME ; void QtMobility::QContactRelationship::setSecond(class QtMobility::QContactId const &) + ?setSecond@QContactRelationshipFetchRequest@QtMobility@@QAEXABVQContactId@2@@Z @ 780 NONAME ; void QtMobility::QContactRelationshipFetchRequest::setSecond(class QtMobility::QContactId const &) + ?setSelfContactId@QContactManager@QtMobility@@QAE_NABI@Z @ 781 NONAME ; bool QtMobility::QContactManager::setSelfContactId(unsigned int const &) + ?setSelfContactId@QContactManagerEngine@QtMobility@@UAE_NABIPAW4Error@QContactManager@2@@Z @ 782 NONAME ; bool QtMobility::QContactManagerEngine::setSelfContactId(unsigned int const &, enum QtMobility::QContactManager::Error *) + ?setServiceProvider@QContactOnlineAccount@QtMobility@@QAEXABVQString@@@Z @ 783 NONAME ; void QtMobility::QContactOnlineAccount::setServiceProvider(class QString const &) + ?setSince@QContactChangeLogFilter@QtMobility@@QAEXABVQDateTime@@@Z @ 784 NONAME ; void QtMobility::QContactChangeLogFilter::setSince(class QDateTime const &) + ?setSorting@QContactFetchRequest@QtMobility@@QAEXABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 785 NONAME ; void QtMobility::QContactFetchRequest::setSorting(class QList const &) + ?setSorting@QContactLocalIdFetchRequest@QtMobility@@QAEXABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 786 NONAME ; void QtMobility::QContactLocalIdFetchRequest::setSorting(class QList const &) + ?setSpeed@QContactGeoLocation@QtMobility@@QAEXN@Z @ 787 NONAME ; void QtMobility::QContactGeoLocation::setSpeed(double) + ?setSpouse@QContactFamily@QtMobility@@QAEXABVQString@@@Z @ 788 NONAME ; void QtMobility::QContactFamily::setSpouse(class QString const &) + ?setStreet@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 789 NONAME ; void QtMobility::QContactAddress::setStreet(class QString const &) + ?setSubType@QContactAnniversary@QtMobility@@QAEXABVQString@@@Z @ 790 NONAME ; void QtMobility::QContactAnniversary::setSubType(class QString const &) + ?setSubType@QContactUrl@QtMobility@@QAEXABVQString@@@Z @ 791 NONAME ; void QtMobility::QContactUrl::setSubType(class QString const &) + ?setSubTypes@QContactAddress@QtMobility@@QAEXABVQString@@@Z @ 792 NONAME ; void QtMobility::QContactAddress::setSubTypes(class QString const &) + ?setSubTypes@QContactAddress@QtMobility@@QAEXABVQStringList@@@Z @ 793 NONAME ; void QtMobility::QContactAddress::setSubTypes(class QStringList const &) + ?setSubTypes@QContactOnlineAccount@QtMobility@@QAEXABVQString@@@Z @ 794 NONAME ; void QtMobility::QContactOnlineAccount::setSubTypes(class QString const &) + ?setSubTypes@QContactOnlineAccount@QtMobility@@QAEXABVQStringList@@@Z @ 795 NONAME ; void QtMobility::QContactOnlineAccount::setSubTypes(class QStringList const &) + ?setSubTypes@QContactPhoneNumber@QtMobility@@QAEXABVQString@@@Z @ 796 NONAME ; void QtMobility::QContactPhoneNumber::setSubTypes(class QString const &) + ?setSubTypes@QContactPhoneNumber@QtMobility@@QAEXABVQStringList@@@Z @ 797 NONAME ; void QtMobility::QContactPhoneNumber::setSubTypes(class QStringList const &) + ?setSuffix@QContactName@QtMobility@@QAEXABVQString@@@Z @ 798 NONAME ; void QtMobility::QContactName::setSuffix(class QString const &) + ?setSyncTarget@QContactSyncTarget@QtMobility@@QAEXABVQString@@@Z @ 799 NONAME ; void QtMobility::QContactSyncTarget::setSyncTarget(class QString const &) + ?setTag@QContactTag@QtMobility@@QAEXABVQString@@@Z @ 800 NONAME ; void QtMobility::QContactTag::setTag(class QString const &) + ?setThumbnail@QContactThumbnail@QtMobility@@QAEXABVQImage@@@Z @ 801 NONAME ; void QtMobility::QContactThumbnail::setThumbnail(class QImage const &) + ?setTimestamp@QContactGeoLocation@QtMobility@@QAEXABVQDateTime@@@Z @ 802 NONAME ; void QtMobility::QContactGeoLocation::setTimestamp(class QDateTime const &) + ?setTimestamp@QContactGlobalPresence@QtMobility@@QAEXABVQDateTime@@@Z @ 803 NONAME ; void QtMobility::QContactGlobalPresence::setTimestamp(class QDateTime const &) + ?setTimestamp@QContactPresence@QtMobility@@QAEXABVQDateTime@@@Z @ 804 NONAME ; void QtMobility::QContactPresence::setTimestamp(class QDateTime const &) + ?setTitle@QContactOrganization@QtMobility@@QAEXABVQString@@@Z @ 805 NONAME ; void QtMobility::QContactOrganization::setTitle(class QString const &) + ?setType@QContact@QtMobility@@QAEXABVQContactType@2@@Z @ 806 NONAME ; void QtMobility::QContact::setType(class QtMobility::QContactType const &) + ?setType@QContact@QtMobility@@QAEXABVQString@@@Z @ 807 NONAME ; void QtMobility::QContact::setType(class QString const &) + ?setType@QContactType@QtMobility@@QAEXABVQString@@@Z @ 808 NONAME ; void QtMobility::QContactType::setType(class QString const &) + ?setUnique@QContactDetailDefinition@QtMobility@@QAEX_N@Z @ 809 NONAME ; void QtMobility::QContactDetailDefinition::setUnique(bool) + ?setUrl@QContactUrl@QtMobility@@QAEXABVQString@@@Z @ 810 NONAME ; void QtMobility::QContactUrl::setUrl(class QString const &) + ?setValue@QContactActionFilter@QtMobility@@QAEXABVQVariant@@@Z @ 811 NONAME ; void QtMobility::QContactActionFilter::setValue(class QVariant const &) + ?setValue@QContactDetail@QtMobility@@QAE_NABVQString@@ABVQVariant@@@Z @ 812 NONAME ; bool QtMobility::QContactDetail::setValue(class QString const &, class QVariant const &) + ?setValue@QContactDetailFilter@QtMobility@@QAEXABVQVariant@@@Z @ 813 NONAME ; void QtMobility::QContactDetailFilter::setValue(class QVariant const &) + ?setVendor@QContactActionFilter@QtMobility@@QAEXABVQString@@H@Z @ 814 NONAME ; void QtMobility::QContactActionFilter::setVendor(class QString const &, int) + ?setVendorName@QContactActionDescriptor@QtMobility@@QAEXABVQString@@@Z @ 815 NONAME ; void QtMobility::QContactActionDescriptor::setVendorName(class QString const &) + ?setVibrationRingtoneUrl@QContactRingtone@QtMobility@@QAEXABVQUrl@@@Z @ 816 NONAME ; void QtMobility::QContactRingtone::setVibrationRingtoneUrl(class QUrl const &) + ?setVideoRingtoneUrl@QContactRingtone@QtMobility@@QAEXABVQUrl@@@Z @ 817 NONAME ; void QtMobility::QContactRingtone::setVideoRingtoneUrl(class QUrl const &) + ?setVideoUrl@QContactAvatar@QtMobility@@QAEXABVQUrl@@@Z @ 818 NONAME ; void QtMobility::QContactAvatar::setVideoUrl(class QUrl const &) + ?since@QContactChangeLogFilter@QtMobility@@QBE?AVQDateTime@@XZ @ 819 NONAME ; class QDateTime QtMobility::QContactChangeLogFilter::since(void) const + ?sortContacts@QContactManagerEngine@QtMobility@@SA?AV?$QList@I@@ABV?$QList@VQContact@QtMobility@@@@ABV?$QList@VQContactSortOrder@QtMobility@@@@@Z @ 820 NONAME ; class QList QtMobility::QContactManagerEngine::sortContacts(class QList const &, class QList const &) + ?sorting@QContactFetchRequest@QtMobility@@QBE?AV?$QList@VQContactSortOrder@QtMobility@@@@XZ @ 821 NONAME ; class QList QtMobility::QContactFetchRequest::sorting(void) const + ?sorting@QContactLocalIdFetchRequest@QtMobility@@QBE?AV?$QList@VQContactSortOrder@QtMobility@@@@XZ @ 822 NONAME ; class QList QtMobility::QContactLocalIdFetchRequest::sorting(void) const + ?speed@QContactGeoLocation@QtMobility@@QBENXZ @ 823 NONAME ; double QtMobility::QContactGeoLocation::speed(void) const + ?spouse@QContactFamily@QtMobility@@QBE?AVQString@@XZ @ 824 NONAME ; class QString QtMobility::QContactFamily::spouse(void) const + ?start@QContactAbstractRequest@QtMobility@@QAE_NXZ @ 825 NONAME ; bool QtMobility::QContactAbstractRequest::start(void) + ?startRequest@QContactManagerEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@@Z @ 826 NONAME ; bool QtMobility::QContactManagerEngine::startRequest(class QtMobility::QContactAbstractRequest *) + ?state@QContactAbstractRequest@QtMobility@@QBE?AW4State@12@XZ @ 827 NONAME ; enum QtMobility::QContactAbstractRequest::State QtMobility::QContactAbstractRequest::state(void) const + ?stateChanged@QContactAbstractRequest@QtMobility@@IAEXW4State@12@@Z @ 828 NONAME ; void QtMobility::QContactAbstractRequest::stateChanged(enum QtMobility::QContactAbstractRequest::State) + ?stateChanged@QContactAction@QtMobility@@IAEXW4State@12@@Z @ 829 NONAME ; void QtMobility::QContactAction::stateChanged(enum QtMobility::QContactAction::State) + ?street@QContactAddress@QtMobility@@QBE?AVQString@@XZ @ 830 NONAME ; class QString QtMobility::QContactAddress::street(void) const + ?subType@QContactAnniversary@QtMobility@@QBE?AVQString@@XZ @ 831 NONAME ; class QString QtMobility::QContactAnniversary::subType(void) const + ?subType@QContactUrl@QtMobility@@QBE?AVQString@@XZ @ 832 NONAME ; class QString QtMobility::QContactUrl::subType(void) const + ?subTypes@QContactAddress@QtMobility@@QBE?AVQStringList@@XZ @ 833 NONAME ; class QStringList QtMobility::QContactAddress::subTypes(void) const + ?subTypes@QContactOnlineAccount@QtMobility@@QBE?AVQStringList@@XZ @ 834 NONAME ; class QStringList QtMobility::QContactOnlineAccount::subTypes(void) const + ?subTypes@QContactPhoneNumber@QtMobility@@QBE?AVQStringList@@XZ @ 835 NONAME ; class QStringList QtMobility::QContactPhoneNumber::subTypes(void) const + ?suffix@QContactName@QtMobility@@QBE?AVQString@@XZ @ 836 NONAME ; class QString QtMobility::QContactName::suffix(void) const + ?supportedContactTypes@QContactManager@QtMobility@@QBE?AVQStringList@@XZ @ 837 NONAME ; class QStringList QtMobility::QContactManager::supportedContactTypes(void) const + ?supportedContactTypes@QContactManagerEngine@QtMobility@@UBE?AVQStringList@@XZ @ 838 NONAME ; class QStringList QtMobility::QContactManagerEngine::supportedContactTypes(void) const + ?supportedDataTypes@QContactManager@QtMobility@@QBE?AV?$QList@W4Type@QVariant@@@@XZ @ 839 NONAME ; class QList QtMobility::QContactManager::supportedDataTypes(void) const + ?supportedDataTypes@QContactManagerEngine@QtMobility@@UBE?AV?$QList@W4Type@QVariant@@@@XZ @ 840 NONAME ; class QList QtMobility::QContactManagerEngine::supportedDataTypes(void) const + ?supportedDetails@QContactAction@QtMobility@@UBE?AV?$QList@VQContactDetail@QtMobility@@@@ABVQContact@2@@Z @ 841 NONAME ; class QList QtMobility::QContactAction::supportedDetails(class QtMobility::QContact const &) const + ?supportedImplementationVersions@QContactManagerEngineFactory@QtMobility@@UBE?AV?$QList@H@@XZ @ 842 NONAME ; class QList QtMobility::QContactManagerEngineFactory::supportedImplementationVersions(void) const + ?syncTarget@QContactSyncTarget@QtMobility@@QBE?AVQString@@XZ @ 843 NONAME ; class QString QtMobility::QContactSyncTarget::syncTarget(void) const + ?synthesizedDisplayLabel@QContactManager@QtMobility@@QBE?AVQString@@ABVQContact@2@@Z @ 844 NONAME ; class QString QtMobility::QContactManager::synthesizedDisplayLabel(class QtMobility::QContact const &) const + ?synthesizedDisplayLabel@QContactManagerEngine@QtMobility@@UBE?AVQString@@ABVQContact@2@PAW4Error@QContactManager@2@@Z @ 845 NONAME ; class QString QtMobility::QContactManagerEngine::synthesizedDisplayLabel(class QtMobility::QContact const &, enum QtMobility::QContactManager::Error *) const + ?tag@QContactTag@QtMobility@@QBE?AVQString@@XZ @ 846 NONAME ; class QString QtMobility::QContactTag::tag(void) const + ?testFilter@QContactManagerEngine@QtMobility@@SA_NABVQContactFilter@2@ABVQContact@2@@Z @ 847 NONAME ; bool QtMobility::QContactManagerEngine::testFilter(class QtMobility::QContactFilter const &, class QtMobility::QContact const &) + ?thumbnail@QContactThumbnail@QtMobility@@QBE?AVQImage@@XZ @ 848 NONAME ; class QImage QtMobility::QContactThumbnail::thumbnail(void) const + ?timestamp@QContactGeoLocation@QtMobility@@QBE?AVQDateTime@@XZ @ 849 NONAME ; class QDateTime QtMobility::QContactGeoLocation::timestamp(void) const + ?timestamp@QContactGlobalPresence@QtMobility@@QBE?AVQDateTime@@XZ @ 850 NONAME ; class QDateTime QtMobility::QContactGlobalPresence::timestamp(void) const + ?timestamp@QContactPresence@QtMobility@@QBE?AVQDateTime@@XZ @ 851 NONAME ; class QDateTime QtMobility::QContactPresence::timestamp(void) const + ?title@QContactOrganization@QtMobility@@QBE?AVQString@@XZ @ 852 NONAME ; class QString QtMobility::QContactOrganization::title(void) const + ?tr@QContactAbstractRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 853 NONAME ; class QString QtMobility::QContactAbstractRequest::tr(char const *, char const *) + ?tr@QContactAbstractRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 854 NONAME ; class QString QtMobility::QContactAbstractRequest::tr(char const *, char const *, int) + ?tr@QContactAction@QtMobility@@SA?AVQString@@PBD0@Z @ 855 NONAME ; class QString QtMobility::QContactAction::tr(char const *, char const *) + ?tr@QContactAction@QtMobility@@SA?AVQString@@PBD0H@Z @ 856 NONAME ; class QString QtMobility::QContactAction::tr(char const *, char const *, int) + ?tr@QContactActionFactory@QtMobility@@SA?AVQString@@PBD0@Z @ 857 NONAME ; class QString QtMobility::QContactActionFactory::tr(char const *, char const *) + ?tr@QContactActionFactory@QtMobility@@SA?AVQString@@PBD0H@Z @ 858 NONAME ; class QString QtMobility::QContactActionFactory::tr(char const *, char const *, int) + ?tr@QContactDetailDefinitionFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 859 NONAME ; class QString QtMobility::QContactDetailDefinitionFetchRequest::tr(char const *, char const *) + ?tr@QContactDetailDefinitionFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 860 NONAME ; class QString QtMobility::QContactDetailDefinitionFetchRequest::tr(char const *, char const *, int) + ?tr@QContactDetailDefinitionRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 861 NONAME ; class QString QtMobility::QContactDetailDefinitionRemoveRequest::tr(char const *, char const *) + ?tr@QContactDetailDefinitionRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 862 NONAME ; class QString QtMobility::QContactDetailDefinitionRemoveRequest::tr(char const *, char const *, int) + ?tr@QContactDetailDefinitionSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 863 NONAME ; class QString QtMobility::QContactDetailDefinitionSaveRequest::tr(char const *, char const *) + ?tr@QContactDetailDefinitionSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 864 NONAME ; class QString QtMobility::QContactDetailDefinitionSaveRequest::tr(char const *, char const *, int) + ?tr@QContactFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 865 NONAME ; class QString QtMobility::QContactFetchRequest::tr(char const *, char const *) + ?tr@QContactFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 866 NONAME ; class QString QtMobility::QContactFetchRequest::tr(char const *, char const *, int) + ?tr@QContactLocalIdFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 867 NONAME ; class QString QtMobility::QContactLocalIdFetchRequest::tr(char const *, char const *) + ?tr@QContactLocalIdFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 868 NONAME ; class QString QtMobility::QContactLocalIdFetchRequest::tr(char const *, char const *, int) + ?tr@QContactManager@QtMobility@@SA?AVQString@@PBD0@Z @ 869 NONAME ; class QString QtMobility::QContactManager::tr(char const *, char const *) + ?tr@QContactManager@QtMobility@@SA?AVQString@@PBD0H@Z @ 870 NONAME ; class QString QtMobility::QContactManager::tr(char const *, char const *, int) + ?tr@QContactManagerEngine@QtMobility@@SA?AVQString@@PBD0@Z @ 871 NONAME ; class QString QtMobility::QContactManagerEngine::tr(char const *, char const *) + ?tr@QContactManagerEngine@QtMobility@@SA?AVQString@@PBD0H@Z @ 872 NONAME ; class QString QtMobility::QContactManagerEngine::tr(char const *, char const *, int) + ?tr@QContactRelationshipFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 873 NONAME ; class QString QtMobility::QContactRelationshipFetchRequest::tr(char const *, char const *) + ?tr@QContactRelationshipFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 874 NONAME ; class QString QtMobility::QContactRelationshipFetchRequest::tr(char const *, char const *, int) + ?tr@QContactRelationshipRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 875 NONAME ; class QString QtMobility::QContactRelationshipRemoveRequest::tr(char const *, char const *) + ?tr@QContactRelationshipRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 876 NONAME ; class QString QtMobility::QContactRelationshipRemoveRequest::tr(char const *, char const *, int) + ?tr@QContactRelationshipSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 877 NONAME ; class QString QtMobility::QContactRelationshipSaveRequest::tr(char const *, char const *) + ?tr@QContactRelationshipSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 878 NONAME ; class QString QtMobility::QContactRelationshipSaveRequest::tr(char const *, char const *, int) + ?tr@QContactRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 879 NONAME ; class QString QtMobility::QContactRemoveRequest::tr(char const *, char const *) + ?tr@QContactRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 880 NONAME ; class QString QtMobility::QContactRemoveRequest::tr(char const *, char const *, int) + ?tr@QContactSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 881 NONAME ; class QString QtMobility::QContactSaveRequest::tr(char const *, char const *) + ?tr@QContactSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 882 NONAME ; class QString QtMobility::QContactSaveRequest::tr(char const *, char const *, int) + ?trUtf8@QContactAbstractRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 883 NONAME ; class QString QtMobility::QContactAbstractRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactAbstractRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 884 NONAME ; class QString QtMobility::QContactAbstractRequest::trUtf8(char const *, char const *, int) + ?trUtf8@QContactAction@QtMobility@@SA?AVQString@@PBD0@Z @ 885 NONAME ; class QString QtMobility::QContactAction::trUtf8(char const *, char const *) + ?trUtf8@QContactAction@QtMobility@@SA?AVQString@@PBD0H@Z @ 886 NONAME ; class QString QtMobility::QContactAction::trUtf8(char const *, char const *, int) + ?trUtf8@QContactActionFactory@QtMobility@@SA?AVQString@@PBD0@Z @ 887 NONAME ; class QString QtMobility::QContactActionFactory::trUtf8(char const *, char const *) + ?trUtf8@QContactActionFactory@QtMobility@@SA?AVQString@@PBD0H@Z @ 888 NONAME ; class QString QtMobility::QContactActionFactory::trUtf8(char const *, char const *, int) + ?trUtf8@QContactDetailDefinitionFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 889 NONAME ; class QString QtMobility::QContactDetailDefinitionFetchRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactDetailDefinitionFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 890 NONAME ; class QString QtMobility::QContactDetailDefinitionFetchRequest::trUtf8(char const *, char const *, int) + ?trUtf8@QContactDetailDefinitionRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 891 NONAME ; class QString QtMobility::QContactDetailDefinitionRemoveRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactDetailDefinitionRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 892 NONAME ; class QString QtMobility::QContactDetailDefinitionRemoveRequest::trUtf8(char const *, char const *, int) + ?trUtf8@QContactDetailDefinitionSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 893 NONAME ; class QString QtMobility::QContactDetailDefinitionSaveRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactDetailDefinitionSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 894 NONAME ; class QString QtMobility::QContactDetailDefinitionSaveRequest::trUtf8(char const *, char const *, int) + ?trUtf8@QContactFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 895 NONAME ; class QString QtMobility::QContactFetchRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 896 NONAME ; class QString QtMobility::QContactFetchRequest::trUtf8(char const *, char const *, int) + ?trUtf8@QContactLocalIdFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 897 NONAME ; class QString QtMobility::QContactLocalIdFetchRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactLocalIdFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 898 NONAME ; class QString QtMobility::QContactLocalIdFetchRequest::trUtf8(char const *, char const *, int) + ?trUtf8@QContactManager@QtMobility@@SA?AVQString@@PBD0@Z @ 899 NONAME ; class QString QtMobility::QContactManager::trUtf8(char const *, char const *) + ?trUtf8@QContactManager@QtMobility@@SA?AVQString@@PBD0H@Z @ 900 NONAME ; class QString QtMobility::QContactManager::trUtf8(char const *, char const *, int) + ?trUtf8@QContactManagerEngine@QtMobility@@SA?AVQString@@PBD0@Z @ 901 NONAME ; class QString QtMobility::QContactManagerEngine::trUtf8(char const *, char const *) + ?trUtf8@QContactManagerEngine@QtMobility@@SA?AVQString@@PBD0H@Z @ 902 NONAME ; class QString QtMobility::QContactManagerEngine::trUtf8(char const *, char const *, int) + ?trUtf8@QContactRelationshipFetchRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 903 NONAME ; class QString QtMobility::QContactRelationshipFetchRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactRelationshipFetchRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 904 NONAME ; class QString QtMobility::QContactRelationshipFetchRequest::trUtf8(char const *, char const *, int) + ?trUtf8@QContactRelationshipRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 905 NONAME ; class QString QtMobility::QContactRelationshipRemoveRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactRelationshipRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 906 NONAME ; class QString QtMobility::QContactRelationshipRemoveRequest::trUtf8(char const *, char const *, int) + ?trUtf8@QContactRelationshipSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 907 NONAME ; class QString QtMobility::QContactRelationshipSaveRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactRelationshipSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 908 NONAME ; class QString QtMobility::QContactRelationshipSaveRequest::trUtf8(char const *, char const *, int) + ?trUtf8@QContactRemoveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 909 NONAME ; class QString QtMobility::QContactRemoveRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactRemoveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 910 NONAME ; class QString QtMobility::QContactRemoveRequest::trUtf8(char const *, char const *, int) + ?trUtf8@QContactSaveRequest@QtMobility@@SA?AVQString@@PBD0@Z @ 911 NONAME ; class QString QtMobility::QContactSaveRequest::trUtf8(char const *, char const *) + ?trUtf8@QContactSaveRequest@QtMobility@@SA?AVQString@@PBD0H@Z @ 912 NONAME ; class QString QtMobility::QContactSaveRequest::trUtf8(char const *, char const *, int) + ?type@QContact@QtMobility@@QBE?AVQString@@XZ @ 913 NONAME ; class QString QtMobility::QContact::type(void) const + ?type@QContactAbstractRequest@QtMobility@@QBE?AW4RequestType@12@XZ @ 914 NONAME ; enum QtMobility::QContactAbstractRequest::RequestType QtMobility::QContactAbstractRequest::type(void) const + ?type@QContactFilter@QtMobility@@QBE?AW4FilterType@12@XZ @ 915 NONAME ; enum QtMobility::QContactFilter::FilterType QtMobility::QContactFilter::type(void) const + ?type@QContactType@QtMobility@@QBE?AVQString@@XZ @ 916 NONAME ; class QString QtMobility::QContactType::type(void) const + ?updateContactFetchRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactFetchRequest@2@ABV?$QList@VQContact@QtMobility@@@@W4Error@QContactManager@2@W4State@QContactAbstractRequest@2@@Z @ 917 NONAME ; void QtMobility::QContactManagerEngine::updateContactFetchRequest(class QtMobility::QContactFetchRequest *, class QList const &, enum QtMobility::QContactManager::Error, enum QtMobility::QContactAbstractRequest::State) + ?updateContactLocalIdFetchRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactLocalIdFetchRequest@2@ABV?$QList@I@@W4Error@QContactManager@2@W4State@QContactAbstractRequest@2@@Z @ 918 NONAME ; void QtMobility::QContactManagerEngine::updateContactLocalIdFetchRequest(class QtMobility::QContactLocalIdFetchRequest *, class QList const &, enum QtMobility::QContactManager::Error, enum QtMobility::QContactAbstractRequest::State) + ?updateContactRemoveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactRemoveRequest@2@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@W4State@QContactAbstractRequest@2@@Z @ 919 NONAME ; void QtMobility::QContactManagerEngine::updateContactRemoveRequest(class QtMobility::QContactRemoveRequest *, enum QtMobility::QContactManager::Error, class QMap const &, enum QtMobility::QContactAbstractRequest::State) + ?updateContactSaveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactSaveRequest@2@ABV?$QList@VQContact@QtMobility@@@@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@W4State@QContactAbstractRequest@2@@Z @ 920 NONAME ; void QtMobility::QContactManagerEngine::updateContactSaveRequest(class QtMobility::QContactSaveRequest *, class QList const &, enum QtMobility::QContactManager::Error, class QMap const &, enum QtMobility::QContactAbstractRequest::State) + ?updateDefinitionFetchRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactDetailDefinitionFetchRequest@2@ABV?$QMap@VQString@@VQContactDetailDefinition@QtMobility@@@@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@W4State@QContactAbstractRequest@2@@Z @ 921 NONAME ; void QtMobility::QContactManagerEngine::updateDefinitionFetchRequest(class QtMobility::QContactDetailDefinitionFetchRequest *, class QMap const &, enum QtMobility::QContactManager::Error, class QMap const &, enum QtMobility::QContactAbstractRequest::State) + ?updateDefinitionRemoveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactDetailDefinitionRemoveRequest@2@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@W4State@QContactAbstractRequest@2@@Z @ 922 NONAME ; void QtMobility::QContactManagerEngine::updateDefinitionRemoveRequest(class QtMobility::QContactDetailDefinitionRemoveRequest *, enum QtMobility::QContactManager::Error, class QMap const &, enum QtMobility::QContactAbstractRequest::State) + ?updateDefinitionSaveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactDetailDefinitionSaveRequest@2@ABV?$QList@VQContactDetailDefinition@QtMobility@@@@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@W4State@QContactAbstractRequest@2@@Z @ 923 NONAME ; void QtMobility::QContactManagerEngine::updateDefinitionSaveRequest(class QtMobility::QContactDetailDefinitionSaveRequest *, class QList const &, enum QtMobility::QContactManager::Error, class QMap const &, enum QtMobility::QContactAbstractRequest::State) + ?updateRelationshipFetchRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactRelationshipFetchRequest@2@ABV?$QList@VQContactRelationship@QtMobility@@@@W4Error@QContactManager@2@W4State@QContactAbstractRequest@2@@Z @ 924 NONAME ; void QtMobility::QContactManagerEngine::updateRelationshipFetchRequest(class QtMobility::QContactRelationshipFetchRequest *, class QList const &, enum QtMobility::QContactManager::Error, enum QtMobility::QContactAbstractRequest::State) + ?updateRelationshipRemoveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactRelationshipRemoveRequest@2@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@W4State@QContactAbstractRequest@2@@Z @ 925 NONAME ; void QtMobility::QContactManagerEngine::updateRelationshipRemoveRequest(class QtMobility::QContactRelationshipRemoveRequest *, enum QtMobility::QContactManager::Error, class QMap const &, enum QtMobility::QContactAbstractRequest::State) + ?updateRelationshipSaveRequest@QContactManagerEngine@QtMobility@@SAXPAVQContactRelationshipSaveRequest@2@ABV?$QList@VQContactRelationship@QtMobility@@@@W4Error@QContactManager@2@ABV?$QMap@HW4Error@QContactManager@QtMobility@@@@W4State@QContactAbstractRequest@2@@Z @ 926 NONAME ; void QtMobility::QContactManagerEngine::updateRelationshipSaveRequest(class QtMobility::QContactRelationshipSaveRequest *, class QList const &, enum QtMobility::QContactManager::Error, class QMap const &, enum QtMobility::QContactAbstractRequest::State) + ?updateRequestState@QContactManagerEngine@QtMobility@@SAXPAVQContactAbstractRequest@2@W4State@32@@Z @ 927 NONAME ; void QtMobility::QContactManagerEngine::updateRequestState(class QtMobility::QContactAbstractRequest *, enum QtMobility::QContactAbstractRequest::State) + ?url@QContactUrl@QtMobility@@QBE?AVQString@@XZ @ 928 NONAME ; class QString QtMobility::QContactUrl::url(void) const + ?validateActionFilter@QContactManagerEngine@QtMobility@@SA_NABVQContactFilter@2@@Z @ 929 NONAME ; bool QtMobility::QContactManagerEngine::validateActionFilter(class QtMobility::QContactFilter const &) + ?validateContact@QContactManagerEngine@QtMobility@@UBE_NABVQContact@2@PAW4Error@QContactManager@2@@Z @ 930 NONAME ; bool QtMobility::QContactManagerEngine::validateContact(class QtMobility::QContact const &, enum QtMobility::QContactManager::Error *) const + ?validateDefinition@QContactManagerEngine@QtMobility@@UBE_NABVQContactDetailDefinition@2@PAW4Error@QContactManager@2@@Z @ 931 NONAME ; bool QtMobility::QContactManagerEngine::validateDefinition(class QtMobility::QContactDetailDefinition const &, enum QtMobility::QContactManager::Error *) const + ?value@QContactActionFilter@QtMobility@@QBE?AVQVariant@@XZ @ 932 NONAME ; class QVariant QtMobility::QContactActionFilter::value(void) const + ?value@QContactDetail@QtMobility@@QBE?AVQString@@ABV3@@Z @ 933 NONAME ; class QString QtMobility::QContactDetail::value(class QString const &) const + ?value@QContactDetailFilter@QtMobility@@QBE?AVQVariant@@XZ @ 934 NONAME ; class QVariant QtMobility::QContactDetailFilter::value(void) const + ?variantValue@QContactDetail@QtMobility@@QBE?AVQVariant@@ABVQString@@@Z @ 935 NONAME ; class QVariant QtMobility::QContactDetail::variantValue(class QString const &) const + ?variantValues@QContactDetail@QtMobility@@QBE?AV?$QMap@VQString@@VQVariant@@@@XZ @ 936 NONAME ; class QMap QtMobility::QContactDetail::variantValues(void) const + ?vendorName@QContactActionDescriptor@QtMobility@@QBE?AVQString@@XZ @ 937 NONAME ; class QString QtMobility::QContactActionDescriptor::vendorName(void) const + ?vendorName@QContactActionFilter@QtMobility@@QBE?AVQString@@XZ @ 938 NONAME ; class QString QtMobility::QContactActionFilter::vendorName(void) const + ?vibrationRingtoneUrl@QContactRingtone@QtMobility@@QBE?AVQUrl@@XZ @ 939 NONAME ; class QUrl QtMobility::QContactRingtone::vibrationRingtoneUrl(void) const + ?videoRingtoneUrl@QContactRingtone@QtMobility@@QBE?AVQUrl@@XZ @ 940 NONAME ; class QUrl QtMobility::QContactRingtone::videoRingtoneUrl(void) const + ?videoUrl@QContactAvatar@QtMobility@@QBE?AVQUrl@@XZ @ 941 NONAME ; class QUrl QtMobility::QContactAvatar::videoUrl(void) const + ?waitForFinished@QContactAbstractRequest@QtMobility@@QAE_NH@Z @ 942 NONAME ; bool QtMobility::QContactAbstractRequest::waitForFinished(int) + ?waitForRequestFinished@QContactManagerEngine@QtMobility@@UAE_NPAVQContactAbstractRequest@2@H@Z @ 943 NONAME ; bool QtMobility::QContactManagerEngine::waitForRequestFinished(class QtMobility::QContactAbstractRequest *, int) + ?SubTypeImpp@QContactOnlineAccount@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 944 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactOnlineAccount::SubTypeImpp + ?DefinitionName@QContactSyncTarget@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 945 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactSyncTarget::DefinitionName + ?GenderFemale@QContactGender@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 946 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactGender::GenderFemale + ?SubTypeVideoShare@QContactOnlineAccount@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 947 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactOnlineAccount::SubTypeVideoShare + ?SubTypeMemorial@QContactAnniversary@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 948 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactAnniversary::SubTypeMemorial + ?DefinitionName@QContactGeoLocation@QtMobility@@2U?$QLatin1Constant@$0M@@2@B @ 949 NONAME ; struct QtMobility::QLatin1Constant<12> const QtMobility::QContactGeoLocation::DefinitionName + ?DefinitionName@QContactAddress@QtMobility@@2U?$QLatin1Constant@$07@2@B @ 950 NONAME ; struct QtMobility::QLatin1Constant<8> const QtMobility::QContactAddress::DefinitionName + ?FieldDepartment@QContactOrganization@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 951 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactOrganization::FieldDepartment + ?FieldNote@QContactNote@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 952 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactNote::FieldNote + ?FieldNickname@QContactGlobalPresence@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 953 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactGlobalPresence::FieldNickname + ?DefinitionName@QContactUrl@QtMobility@@2U?$QLatin1Constant@$03@2@B @ 954 NONAME ; struct QtMobility::QLatin1Constant<4> const QtMobility::QContactUrl::DefinitionName + ?SubTypeEmployment@QContactAnniversary@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 955 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactAnniversary::SubTypeEmployment + ?SubTypeLandline@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 956 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactPhoneNumber::SubTypeLandline + ?HasManager@QContactRelationship@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 957 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactRelationship::HasManager + ?FieldDetailUri@QContactDetail@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 958 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactDetail::FieldDetailUri + ?ContextOther@QContactDetail@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 959 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactDetail::ContextOther + ?FieldOriginalDate@QContactAnniversary@QtMobility@@2U?$QLatin1Constant@$0N@@2@B @ 960 NONAME ; struct QtMobility::QLatin1Constant<13> const QtMobility::QContactAnniversary::FieldOriginalDate + ?DefinitionName@QContactType@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 961 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactType::DefinitionName + ?FieldNumber@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$0M@@2@B @ 962 NONAME ; struct QtMobility::QLatin1Constant<12> const QtMobility::QContactPhoneNumber::FieldNumber + ?FieldPresenceStateText@QContactPresence@QtMobility@@2U?$QLatin1Constant@$0BC@@2@B @ 963 NONAME ; struct QtMobility::QLatin1Constant<18> const QtMobility::QContactPresence::FieldPresenceStateText + ?SubTypeHouse@QContactAnniversary@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 964 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactAnniversary::SubTypeHouse + ?SubTypeHomePage@QContactUrl@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 965 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactUrl::SubTypeHomePage + ?FieldGuid@QContactGuid@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 966 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactGuid::FieldGuid + ?staticMetaObject@QContactRelationshipSaveRequest@QtMobility@@2UQMetaObject@@B @ 967 NONAME ; struct QMetaObject const QtMobility::QContactRelationshipSaveRequest::staticMetaObject + ?TypeGroup@QContactType@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 968 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactType::TypeGroup + ?DefinitionName@QContactGlobalPresence@QtMobility@@2U?$QLatin1Constant@$0P@@2@B @ 969 NONAME ; struct QtMobility::QLatin1Constant<15> const QtMobility::QContactGlobalPresence::DefinitionName + ?SubTypeDtmfMenu@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 970 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactPhoneNumber::SubTypeDtmfMenu + ?FieldThumbnail@QContactThumbnail@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 971 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactThumbnail::FieldThumbnail + ?staticMetaObject@QContactDetailDefinitionFetchRequest@QtMobility@@2UQMetaObject@@B @ 972 NONAME ; struct QMetaObject const QtMobility::QContactDetailDefinitionFetchRequest::staticMetaObject + ?FieldLocation@QContactOrganization@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 973 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactOrganization::FieldLocation + ?FieldPrefix@QContactName@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 974 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactName::FieldPrefix + ?HasSpouse@QContactRelationship@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 975 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactRelationship::HasSpouse + ?DefinitionName@QContactOrganization@QtMobility@@2U?$QLatin1Constant@$0N@@2@B @ 976 NONAME ; struct QtMobility::QLatin1Constant<13> const QtMobility::QContactOrganization::DefinitionName + ?FieldAccountUri@QContactOnlineAccount@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 977 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactOnlineAccount::FieldAccountUri + ?FieldPresenceStateImageUrl@QContactPresence@QtMobility@@2U?$QLatin1Constant@$0BG@@2@B @ 978 NONAME ; struct QtMobility::QLatin1Constant<22> const QtMobility::QContactPresence::FieldPresenceStateImageUrl + ?FieldPresenceState@QContactPresence@QtMobility@@2U?$QLatin1Constant@$0O@@2@B @ 979 NONAME ; struct QtMobility::QLatin1Constant<14> const QtMobility::QContactPresence::FieldPresenceState + ?SubTypeMessagingCapable@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$0BB@@2@B @ 980 NONAME ; struct QtMobility::QLatin1Constant<17> const QtMobility::QContactPhoneNumber::SubTypeMessagingCapable + ?FieldSubTypes@QContactAddress@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 981 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactAddress::FieldSubTypes + ?DefinitionName@QContactFamily@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 982 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactFamily::DefinitionName + ?SubTypeCar@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$03@2@B @ 983 NONAME ; struct QtMobility::QLatin1Constant<4> const QtMobility::QContactPhoneNumber::SubTypeCar + ?ContextWork@QContactDetail@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 984 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactDetail::ContextWork + ?SubTypePager@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 985 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactPhoneNumber::SubTypePager + ?FieldCountry@QContactAddress@QtMobility@@2U?$QLatin1Constant@$07@2@B @ 986 NONAME ; struct QtMobility::QLatin1Constant<8> const QtMobility::QContactAddress::FieldCountry + ?FieldSuffix@QContactName@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 987 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactName::FieldSuffix + ?FieldChildren@QContactFamily@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 988 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactFamily::FieldChildren + ?DefinitionName@QContactNote@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 989 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactNote::DefinitionName + ?staticMetaObject@QContactDetailDefinitionSaveRequest@QtMobility@@2UQMetaObject@@B @ 990 NONAME ; struct QMetaObject const QtMobility::QContactDetailDefinitionSaveRequest::staticMetaObject + ?GenderUnspecified@QContactGender@QtMobility@@2U?$QLatin1Constant@$0M@@2@B @ 991 NONAME ; struct QtMobility::QLatin1Constant<12> const QtMobility::QContactGender::GenderUnspecified + ?FieldSpouse@QContactFamily@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 992 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactFamily::FieldSpouse + ?FieldSubTypes@QContactOnlineAccount@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 993 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactOnlineAccount::FieldSubTypes + ?FieldAccuracy@QContactGeoLocation@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 994 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactGeoLocation::FieldAccuracy + ?HasAssistant@QContactRelationship@QtMobility@@2U?$QLatin1Constant@$0N@@2@B @ 995 NONAME ; struct QtMobility::QLatin1Constant<13> const QtMobility::QContactRelationship::HasAssistant + ?FieldLabel@QContactDisplayLabel@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 996 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactDisplayLabel::FieldLabel + ?SubTypeWedding@QContactAnniversary@QtMobility@@2U?$QLatin1Constant@$07@2@B @ 997 NONAME ; struct QtMobility::QLatin1Constant<8> const QtMobility::QContactAnniversary::SubTypeWedding + ?FieldVideoUrl@QContactAvatar@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 998 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactAvatar::FieldVideoUrl + ?SubTypeParcel@QContactAddress@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 999 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactAddress::SubTypeParcel + ?TypeContact@QContactType@QtMobility@@2U?$QLatin1Constant@$07@2@B @ 1000 NONAME ; struct QtMobility::QLatin1Constant<8> const QtMobility::QContactType::TypeContact + ?staticMetaObject@QContactRelationshipRemoveRequest@QtMobility@@2UQMetaObject@@B @ 1001 NONAME ; struct QMetaObject const QtMobility::QContactRelationshipRemoveRequest::staticMetaObject + ?FieldSpeed@QContactGeoLocation@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 1002 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactGeoLocation::FieldSpeed + ?SubTypeModem@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 1003 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactPhoneNumber::SubTypeModem + ?DefinitionName@QContactEmailAddress@QtMobility@@2U?$QLatin1Constant@$0N@@2@B @ 1004 NONAME ; struct QtMobility::QLatin1Constant<13> const QtMobility::QContactEmailAddress::DefinitionName + ?DefinitionName@QContactRingtone@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1005 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactRingtone::DefinitionName + ?DefinitionName@QContactPresence@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1006 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactPresence::DefinitionName + ?FieldEmailAddress@QContactEmailAddress@QtMobility@@2U?$QLatin1Constant@$0N@@2@B @ 1007 NONAME ; struct QtMobility::QLatin1Constant<13> const QtMobility::QContactEmailAddress::FieldEmailAddress + ?SubTypeMobile@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 1008 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactPhoneNumber::SubTypeMobile + ?IsSameAs@QContactRelationship@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1009 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactRelationship::IsSameAs + ?FieldUrl@QContactUrl@QtMobility@@2U?$QLatin1Constant@$03@2@B @ 1010 NONAME ; struct QtMobility::QLatin1Constant<4> const QtMobility::QContactUrl::FieldUrl + ?SubTypeAssistant@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 1011 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactPhoneNumber::SubTypeAssistant + ?FieldFirstName@QContactName@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 1012 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactName::FieldFirstName + ?staticMetaObject@QContactRemoveRequest@QtMobility@@2UQMetaObject@@B @ 1013 NONAME ; struct QMetaObject const QtMobility::QContactRemoveRequest::staticMetaObject + ?Aggregates@QContactRelationship@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 1014 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactRelationship::Aggregates + ?FieldAltitude@QContactGeoLocation@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1015 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactGeoLocation::FieldAltitude + ?FieldServiceProvider@QContactOnlineAccount@QtMobility@@2U?$QLatin1Constant@$0BA@@2@B @ 1016 NONAME ; struct QtMobility::QLatin1Constant<16> const QtMobility::QContactOnlineAccount::FieldServiceProvider + ?GenderMale@QContactGender@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 1017 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactGender::GenderMale + ?FieldPresenceState@QContactGlobalPresence@QtMobility@@2U?$QLatin1Constant@$0O@@2@B @ 1018 NONAME ; struct QtMobility::QLatin1Constant<14> const QtMobility::QContactGlobalPresence::FieldPresenceState + ?DefinitionName@QContactNickname@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1019 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactNickname::DefinitionName + ?FieldHeading@QContactGeoLocation@QtMobility@@2U?$QLatin1Constant@$07@2@B @ 1020 NONAME ; struct QtMobility::QLatin1Constant<8> const QtMobility::QContactGeoLocation::FieldHeading + ?SubTypeSipVoip@QContactOnlineAccount@QtMobility@@2U?$QLatin1Constant@$07@2@B @ 1021 NONAME ; struct QtMobility::QLatin1Constant<8> const QtMobility::QContactOnlineAccount::SubTypeSipVoip + ?FieldCustomMessage@QContactGlobalPresence@QtMobility@@2U?$QLatin1Constant@$0O@@2@B @ 1022 NONAME ; struct QtMobility::QLatin1Constant<14> const QtMobility::QContactGlobalPresence::FieldCustomMessage + ?FieldCalendarId@QContactAnniversary@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 1023 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactAnniversary::FieldCalendarId + ?FieldAltitudeAccuracy@QContactGeoLocation@QtMobility@@2U?$QLatin1Constant@$0BB@@2@B @ 1024 NONAME ; struct QtMobility::QLatin1Constant<17> const QtMobility::QContactGeoLocation::FieldAltitudeAccuracy + ?HasMember@QContactRelationship@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 1025 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactRelationship::HasMember + ?FieldName@QContactOrganization@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 1026 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactOrganization::FieldName + ?FieldStreet@QContactAddress@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 1027 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactAddress::FieldStreet + ?SubTypeFax@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$03@2@B @ 1028 NONAME ; struct QtMobility::QLatin1Constant<4> const QtMobility::QContactPhoneNumber::SubTypeFax + ?FieldTimestamp@QContactGlobalPresence@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 1029 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactGlobalPresence::FieldTimestamp + ?FieldLatitude@QContactGeoLocation@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1030 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactGeoLocation::FieldLatitude + ?FieldLogoUrl@QContactOrganization@QtMobility@@2U?$QLatin1Constant@$07@2@B @ 1031 NONAME ; struct QtMobility::QLatin1Constant<8> const QtMobility::QContactOrganization::FieldLogoUrl + ?DefinitionName@QContactDisplayLabel@QtMobility@@2U?$QLatin1Constant@$0N@@2@B @ 1032 NONAME ; struct QtMobility::QLatin1Constant<13> const QtMobility::QContactDisplayLabel::DefinitionName + ?staticMetaObject@QContactFetchRequest@QtMobility@@2UQMetaObject@@B @ 1033 NONAME ; struct QMetaObject const QtMobility::QContactFetchRequest::staticMetaObject + ?FieldRole@QContactOrganization@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 1034 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactOrganization::FieldRole + ?FieldNickname@QContactPresence@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1035 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactPresence::FieldNickname + ?FieldTimestamp@QContactGeoLocation@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 1036 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactGeoLocation::FieldTimestamp + ?DefinitionName@QContactThumbnail@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 1037 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactThumbnail::DefinitionName + ?SubTypeVideo@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 1038 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactPhoneNumber::SubTypeVideo + ?FieldCustomMessage@QContactPresence@QtMobility@@2U?$QLatin1Constant@$0O@@2@B @ 1039 NONAME ; struct QtMobility::QLatin1Constant<14> const QtMobility::QContactPresence::FieldCustomMessage + ?SubTypeVoice@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 1040 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactPhoneNumber::SubTypeVoice + ?DefinitionName@QContactAnniversary@QtMobility@@2U?$QLatin1Constant@$0M@@2@B @ 1041 NONAME ; struct QtMobility::QLatin1Constant<12> const QtMobility::QContactAnniversary::DefinitionName + ?FieldAudioRingtoneUrl@QContactRingtone@QtMobility@@2U?$QLatin1Constant@$0BB@@2@B @ 1042 NONAME ; struct QtMobility::QLatin1Constant<17> const QtMobility::QContactRingtone::FieldAudioRingtoneUrl + ?FieldTimestamp@QContactPresence@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 1043 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactPresence::FieldTimestamp + ?FieldAssistantName@QContactOrganization@QtMobility@@2U?$QLatin1Constant@$0O@@2@B @ 1044 NONAME ; struct QtMobility::QLatin1Constant<14> const QtMobility::QContactOrganization::FieldAssistantName + ?FieldCustomLabel@QContactName@QtMobility@@2U?$QLatin1Constant@$0M@@2@B @ 1045 NONAME ; struct QtMobility::QLatin1Constant<12> const QtMobility::QContactName::FieldCustomLabel + ?SubTypeInternational@QContactAddress@QtMobility@@2U?$QLatin1Constant@$0O@@2@B @ 1046 NONAME ; struct QtMobility::QLatin1Constant<14> const QtMobility::QContactAddress::SubTypeInternational + ?SubTypeEngagement@QContactAnniversary@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 1047 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactAnniversary::SubTypeEngagement + ?FieldCreationTimestamp@QContactTimestamp@QtMobility@@2U?$QLatin1Constant@$0BC@@2@B @ 1048 NONAME ; struct QtMobility::QLatin1Constant<18> const QtMobility::QContactTimestamp::FieldCreationTimestamp + ?DefinitionName@QContactGuid@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 1049 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactGuid::DefinitionName + ?FieldSyncTarget@QContactSyncTarget@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 1050 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactSyncTarget::FieldSyncTarget + ?FieldLastName@QContactName@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1051 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactName::FieldLastName + ?FieldNickname@QContactNickname@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1052 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactNickname::FieldNickname + ?DefinitionName@QContactTag@QtMobility@@2U?$QLatin1Constant@$03@2@B @ 1053 NONAME ; struct QtMobility::QLatin1Constant<4> const QtMobility::QContactTag::DefinitionName + ?FieldMiddleName@QContactName@QtMobility@@2U?$QLatin1Constant@$0L@@2@B @ 1054 NONAME ; struct QtMobility::QLatin1Constant<11> const QtMobility::QContactName::FieldMiddleName + ?FieldType@QContactType@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 1055 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactType::FieldType + ?DefinitionName@QContactOnlineAccount@QtMobility@@2U?$QLatin1Constant@$0O@@2@B @ 1056 NONAME ; struct QtMobility::QLatin1Constant<14> const QtMobility::QContactOnlineAccount::DefinitionName + ?DefinitionName@QContactTimestamp@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 1057 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactTimestamp::DefinitionName + ?FieldTag@QContactTag@QtMobility@@2U?$QLatin1Constant@$03@2@B @ 1058 NONAME ; struct QtMobility::QLatin1Constant<4> const QtMobility::QContactTag::FieldTag + ?FieldContext@QContactDetail@QtMobility@@2U?$QLatin1Constant@$07@2@B @ 1059 NONAME ; struct QtMobility::QLatin1Constant<8> const QtMobility::QContactDetail::FieldContext + ?SubTypeFavourite@QContactUrl@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 1060 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactUrl::SubTypeFavourite + ?FieldSubType@QContactAnniversary@QtMobility@@2U?$QLatin1Constant@$07@2@B @ 1061 NONAME ; struct QtMobility::QLatin1Constant<8> const QtMobility::QContactAnniversary::FieldSubType + ?FieldModificationTimestamp@QContactTimestamp@QtMobility@@2U?$QLatin1Constant@$0BG@@2@B @ 1062 NONAME ; struct QtMobility::QLatin1Constant<22> const QtMobility::QContactTimestamp::FieldModificationTimestamp + ?FieldGender@QContactGender@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 1063 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactGender::FieldGender + ?staticMetaObject@QContactLocalIdFetchRequest@QtMobility@@2UQMetaObject@@B @ 1064 NONAME ; struct QMetaObject const QtMobility::QContactLocalIdFetchRequest::staticMetaObject + ?FieldSubType@QContactUrl@QtMobility@@2U?$QLatin1Constant@$07@2@B @ 1065 NONAME ; struct QtMobility::QLatin1Constant<8> const QtMobility::QContactUrl::FieldSubType + ?SubTypeBulletinBoardSystem@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$0BE@@2@B @ 1066 NONAME ; struct QtMobility::QLatin1Constant<20> const QtMobility::QContactPhoneNumber::SubTypeBulletinBoardSystem + ?FieldEvent@QContactAnniversary@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 1067 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactAnniversary::FieldEvent + ?staticMetaObject@QContactSaveRequest@QtMobility@@2UQMetaObject@@B @ 1068 NONAME ; struct QMetaObject const QtMobility::QContactSaveRequest::staticMetaObject + ?FieldSubTypes@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1069 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactPhoneNumber::FieldSubTypes + ?SubTypeDomestic@QContactAddress@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1070 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactAddress::SubTypeDomestic + ?FieldLinkedDetailUris@QContactDetail@QtMobility@@2U?$QLatin1Constant@$0BB@@2@B @ 1071 NONAME ; struct QtMobility::QLatin1Constant<17> const QtMobility::QContactDetail::FieldLinkedDetailUris + ?DefinitionName@QContactGender@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 1072 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactGender::DefinitionName + ?FieldCapabilities@QContactOnlineAccount@QtMobility@@2U?$QLatin1Constant@$0N@@2@B @ 1073 NONAME ; struct QtMobility::QLatin1Constant<13> const QtMobility::QContactOnlineAccount::FieldCapabilities + ?FieldPresenceStateImageUrl@QContactGlobalPresence@QtMobility@@2U?$QLatin1Constant@$0BG@@2@B @ 1074 NONAME ; struct QtMobility::QLatin1Constant<22> const QtMobility::QContactGlobalPresence::FieldPresenceStateImageUrl + ?FieldLocality@QContactAddress@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1075 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactAddress::FieldLocality + ?staticMetaObject@QContactManager@QtMobility@@2UQMetaObject@@B @ 1076 NONAME ; struct QMetaObject const QtMobility::QContactManager::staticMetaObject + ?SubTypeSip@QContactOnlineAccount@QtMobility@@2U?$QLatin1Constant@$03@2@B @ 1077 NONAME ; struct QtMobility::QLatin1Constant<4> const QtMobility::QContactOnlineAccount::SubTypeSip + ?staticMetaObject@QContactRelationshipFetchRequest@QtMobility@@2UQMetaObject@@B @ 1078 NONAME ; struct QMetaObject const QtMobility::QContactRelationshipFetchRequest::staticMetaObject + ?DefinitionName@QContactBirthday@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1079 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactBirthday::DefinitionName + ?FieldBirthday@QContactBirthday@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1080 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactBirthday::FieldBirthday + ?FieldLabel@QContactGeoLocation@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 1081 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactGeoLocation::FieldLabel + ?FieldImageUrl@QContactAvatar@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1082 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactAvatar::FieldImageUrl + ?staticMetaObject@QContactManagerEngine@QtMobility@@2UQMetaObject@@B @ 1083 NONAME ; struct QMetaObject const QtMobility::QContactManagerEngine::staticMetaObject + ?staticMetaObject@QContactAbstractRequest@QtMobility@@2UQMetaObject@@B @ 1084 NONAME ; struct QMetaObject const QtMobility::QContactAbstractRequest::staticMetaObject + ?FieldTitle@QContactOrganization@QtMobility@@2U?$QLatin1Constant@$05@2@B @ 1085 NONAME ; struct QtMobility::QLatin1Constant<6> const QtMobility::QContactOrganization::FieldTitle + ?staticMetaObject@QContactActionFactory@QtMobility@@2UQMetaObject@@B @ 1086 NONAME ; struct QMetaObject const QtMobility::QContactActionFactory::staticMetaObject + ?FieldLongitude@QContactGeoLocation@QtMobility@@2U?$QLatin1Constant@$09@2@B @ 1087 NONAME ; struct QtMobility::QLatin1Constant<10> const QtMobility::QContactGeoLocation::FieldLongitude + ?FieldPresenceStateText@QContactGlobalPresence@QtMobility@@2U?$QLatin1Constant@$0BC@@2@B @ 1088 NONAME ; struct QtMobility::QLatin1Constant<18> const QtMobility::QContactGlobalPresence::FieldPresenceStateText + ?FieldRegion@QContactAddress@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 1089 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactAddress::FieldRegion + ?SubTypePostal@QContactAddress@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 1090 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactAddress::SubTypePostal + ?DefinitionName@QContactAvatar@QtMobility@@2U?$QLatin1Constant@$06@2@B @ 1091 NONAME ; struct QtMobility::QLatin1Constant<7> const QtMobility::QContactAvatar::DefinitionName + ?FieldVibrationRingtoneUrl@QContactRingtone@QtMobility@@2U?$QLatin1Constant@$0BF@@2@B @ 1092 NONAME ; struct QtMobility::QLatin1Constant<21> const QtMobility::QContactRingtone::FieldVibrationRingtoneUrl + ?staticMetaObject@QContactAction@QtMobility@@2UQMetaObject@@B @ 1093 NONAME ; struct QMetaObject const QtMobility::QContactAction::staticMetaObject + ?ContextHome@QContactDetail@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 1094 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactDetail::ContextHome + ?FieldPostcode@QContactAddress@QtMobility@@2U?$QLatin1Constant@$08@2@B @ 1095 NONAME ; struct QtMobility::QLatin1Constant<9> const QtMobility::QContactAddress::FieldPostcode + ?staticMetaObject@QContactDetailDefinitionRemoveRequest@QtMobility@@2UQMetaObject@@B @ 1096 NONAME ; struct QMetaObject const QtMobility::QContactDetailDefinitionRemoveRequest::staticMetaObject + ?FieldVideoRingtoneUrl@QContactRingtone@QtMobility@@2U?$QLatin1Constant@$0BB@@2@B @ 1097 NONAME ; struct QtMobility::QLatin1Constant<17> const QtMobility::QContactRingtone::FieldVideoRingtoneUrl + ?DefinitionName@QContactName@QtMobility@@2U?$QLatin1Constant@$04@2@B @ 1098 NONAME ; struct QtMobility::QLatin1Constant<5> const QtMobility::QContactName::DefinitionName + ?FieldPostOfficeBox@QContactAddress@QtMobility@@2U?$QLatin1Constant@$0O@@2@B @ 1099 NONAME ; struct QtMobility::QLatin1Constant<14> const QtMobility::QContactAddress::FieldPostOfficeBox + ?DefinitionName@QContactPhoneNumber@QtMobility@@2U?$QLatin1Constant@$0M@@2@B @ 1100 NONAME ; struct QtMobility::QLatin1Constant<12> const QtMobility::QContactPhoneNumber::DefinitionName diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/bwins/QtLocationu.def --- a/qtmobility/src/s60installs/bwins/QtLocationu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/bwins/QtLocationu.def Mon May 03 13:18:40 2010 +0300 @@ -25,111 +25,113 @@ ?hasAttribute@QGeoSatelliteInfo@QtMobility@@QBE_NW4Attribute@12@@Z @ 24 NONAME ; bool QtMobility::QGeoSatelliteInfo::hasAttribute(enum QtMobility::QGeoSatelliteInfo::Attribute) const ?signalStrength@QGeoSatelliteInfo@QtMobility@@QBEHXZ @ 25 NONAME ; int QtMobility::QGeoSatelliteInfo::signalStrength(void) const ??0QGeoCoordinate@QtMobility@@QAE@NNN@Z @ 26 NONAME ; QtMobility::QGeoCoordinate::QGeoCoordinate(double, double, double) - ?dateTime@QGeoPositionInfo@QtMobility@@QBE?AVQDateTime@@XZ @ 27 NONAME ; class QDateTime QtMobility::QGeoPositionInfo::dateTime(void) const - ?updateMode@QNmeaPositionInfoSource@QtMobility@@QBE?AW4UpdateMode@12@XZ @ 28 NONAME ; enum QtMobility::QNmeaPositionInfoSource::UpdateMode QtMobility::QNmeaPositionInfoSource::updateMode(void) const - ?setSignalStrength@QGeoSatelliteInfo@QtMobility@@QAEXH@Z @ 29 NONAME ; void QtMobility::QGeoSatelliteInfo::setSignalStrength(int) - ??1QGeoCoordinate@QtMobility@@QAE@XZ @ 30 NONAME ; QtMobility::QGeoCoordinate::~QGeoCoordinate(void) - ?setLatitude@QGeoCoordinate@QtMobility@@QAEXN@Z @ 31 NONAME ; void QtMobility::QGeoCoordinate::setLatitude(double) - ?setAttribute@QGeoSatelliteInfo@QtMobility@@QAEXW4Attribute@12@M@Z @ 32 NONAME ; void QtMobility::QGeoSatelliteInfo::setAttribute(enum QtMobility::QGeoSatelliteInfo::Attribute, float) - ?metaObject@QGeoSatelliteInfoSource@QtMobility@@UBEPBUQMetaObject@@XZ @ 33 NONAME ; struct QMetaObject const * QtMobility::QGeoSatelliteInfoSource::metaObject(void) const - ?tr@QGeoSatelliteInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 34 NONAME ; class QString QtMobility::QGeoSatelliteInfoSource::tr(char const *, char const *, int) - ??1QGeoPositionInfo@QtMobility@@QAE@XZ @ 35 NONAME ; QtMobility::QGeoPositionInfo::~QGeoPositionInfo(void) - ??6QtMobility@@YAAAVQDataStream@@AAV1@ABVQGeoPositionInfo@0@@Z @ 36 NONAME ; class QDataStream & QtMobility::operator<<(class QDataStream &, class QtMobility::QGeoPositionInfo const &) - ?tr@QNmeaPositionInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 37 NONAME ; class QString QtMobility::QNmeaPositionInfoSource::tr(char const *, char const *) - ?trUtf8@QNmeaPositionInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 38 NONAME ; class QString QtMobility::QNmeaPositionInfoSource::trUtf8(char const *, char const *) - ?setDateTime@QGeoPositionInfo@QtMobility@@QAEXABVQDateTime@@@Z @ 39 NONAME ; void QtMobility::QGeoPositionInfo::setDateTime(class QDateTime const &) - ??0QGeoPositionInfo@QtMobility@@QAE@ABV01@@Z @ 40 NONAME ; QtMobility::QGeoPositionInfo::QGeoPositionInfo(class QtMobility::QGeoPositionInfo const &) - ?getStaticMetaObject@QGeoSatelliteInfoSource@QtMobility@@SAABUQMetaObject@@XZ @ 41 NONAME ; struct QMetaObject const & QtMobility::QGeoSatelliteInfoSource::getStaticMetaObject(void) - ??5QtMobility@@YAAAVQDataStream@@AAV1@AAVQGeoCoordinate@0@@Z @ 42 NONAME ; class QDataStream & QtMobility::operator>>(class QDataStream &, class QtMobility::QGeoCoordinate &) - ?attribute@QGeoPositionInfo@QtMobility@@QBEMW4Attribute@12@@Z @ 43 NONAME ; float QtMobility::QGeoPositionInfo::attribute(enum QtMobility::QGeoPositionInfo::Attribute) const - ?attribute@QGeoSatelliteInfo@QtMobility@@QBEMW4Attribute@12@@Z @ 44 NONAME ; float QtMobility::QGeoSatelliteInfo::attribute(enum QtMobility::QGeoSatelliteInfo::Attribute) const - ?trUtf8@QGeoAreaMonitor@QtMobility@@SA?AVQString@@PBD0H@Z @ 45 NONAME ; class QString QtMobility::QGeoAreaMonitor::trUtf8(char const *, char const *, int) - ?hasAttribute@QGeoPositionInfo@QtMobility@@QBE_NW4Attribute@12@@Z @ 46 NONAME ; bool QtMobility::QGeoPositionInfo::hasAttribute(enum QtMobility::QGeoPositionInfo::Attribute) const - ?trUtf8@QGeoAreaMonitor@QtMobility@@SA?AVQString@@PBD0@Z @ 47 NONAME ; class QString QtMobility::QGeoAreaMonitor::trUtf8(char const *, char const *) - ?satellitesInViewUpdated@QGeoSatelliteInfoSource@QtMobility@@IAEXABV?$QList@VQGeoSatelliteInfo@QtMobility@@@@@Z @ 48 NONAME ; void QtMobility::QGeoSatelliteInfoSource::satellitesInViewUpdated(class QList const &) - ??8QGeoSatelliteInfo@QtMobility@@QBE_NABV01@@Z @ 49 NONAME ; bool QtMobility::QGeoSatelliteInfo::operator==(class QtMobility::QGeoSatelliteInfo const &) const + ?updateMode@QNmeaPositionInfoSource@QtMobility@@QBE?AW4UpdateMode@12@XZ @ 27 NONAME ; enum QtMobility::QNmeaPositionInfoSource::UpdateMode QtMobility::QNmeaPositionInfoSource::updateMode(void) const + ?setSignalStrength@QGeoSatelliteInfo@QtMobility@@QAEXH@Z @ 28 NONAME ; void QtMobility::QGeoSatelliteInfo::setSignalStrength(int) + ??1QGeoCoordinate@QtMobility@@QAE@XZ @ 29 NONAME ; QtMobility::QGeoCoordinate::~QGeoCoordinate(void) + ?setLatitude@QGeoCoordinate@QtMobility@@QAEXN@Z @ 30 NONAME ; void QtMobility::QGeoCoordinate::setLatitude(double) + ?setAttribute@QGeoSatelliteInfo@QtMobility@@QAEXW4Attribute@12@M@Z @ 31 NONAME ; void QtMobility::QGeoSatelliteInfo::setAttribute(enum QtMobility::QGeoSatelliteInfo::Attribute, float) + ?metaObject@QGeoSatelliteInfoSource@QtMobility@@UBEPBUQMetaObject@@XZ @ 32 NONAME ; struct QMetaObject const * QtMobility::QGeoSatelliteInfoSource::metaObject(void) const + ?tr@QGeoSatelliteInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 33 NONAME ; class QString QtMobility::QGeoSatelliteInfoSource::tr(char const *, char const *, int) + ??1QGeoPositionInfo@QtMobility@@QAE@XZ @ 34 NONAME ; QtMobility::QGeoPositionInfo::~QGeoPositionInfo(void) + ??6QtMobility@@YAAAVQDataStream@@AAV1@ABVQGeoPositionInfo@0@@Z @ 35 NONAME ; class QDataStream & QtMobility::operator<<(class QDataStream &, class QtMobility::QGeoPositionInfo const &) + ?tr@QNmeaPositionInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 36 NONAME ; class QString QtMobility::QNmeaPositionInfoSource::tr(char const *, char const *) + ?trUtf8@QNmeaPositionInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 37 NONAME ; class QString QtMobility::QNmeaPositionInfoSource::trUtf8(char const *, char const *) + ??0QGeoPositionInfo@QtMobility@@QAE@ABV01@@Z @ 38 NONAME ; QtMobility::QGeoPositionInfo::QGeoPositionInfo(class QtMobility::QGeoPositionInfo const &) + ?getStaticMetaObject@QGeoSatelliteInfoSource@QtMobility@@SAABUQMetaObject@@XZ @ 39 NONAME ; struct QMetaObject const & QtMobility::QGeoSatelliteInfoSource::getStaticMetaObject(void) + ??5QtMobility@@YAAAVQDataStream@@AAV1@AAVQGeoCoordinate@0@@Z @ 40 NONAME ; class QDataStream & QtMobility::operator>>(class QDataStream &, class QtMobility::QGeoCoordinate &) + ?attribute@QGeoPositionInfo@QtMobility@@QBEMW4Attribute@12@@Z @ 41 NONAME ; float QtMobility::QGeoPositionInfo::attribute(enum QtMobility::QGeoPositionInfo::Attribute) const + ?attribute@QGeoSatelliteInfo@QtMobility@@QBEMW4Attribute@12@@Z @ 42 NONAME ; float QtMobility::QGeoSatelliteInfo::attribute(enum QtMobility::QGeoSatelliteInfo::Attribute) const + ?trUtf8@QGeoAreaMonitor@QtMobility@@SA?AVQString@@PBD0H@Z @ 43 NONAME ; class QString QtMobility::QGeoAreaMonitor::trUtf8(char const *, char const *, int) + ?hasAttribute@QGeoPositionInfo@QtMobility@@QBE_NW4Attribute@12@@Z @ 44 NONAME ; bool QtMobility::QGeoPositionInfo::hasAttribute(enum QtMobility::QGeoPositionInfo::Attribute) const + ?trUtf8@QGeoAreaMonitor@QtMobility@@SA?AVQString@@PBD0@Z @ 45 NONAME ; class QString QtMobility::QGeoAreaMonitor::trUtf8(char const *, char const *) + ?satellitesInViewUpdated@QGeoSatelliteInfoSource@QtMobility@@IAEXABV?$QList@VQGeoSatelliteInfo@QtMobility@@@@@Z @ 46 NONAME ; void QtMobility::QGeoSatelliteInfoSource::satellitesInViewUpdated(class QList const &) + ??6QtMobility@@YAAAVQDataStream@@AAV1@ABVQGeoSatelliteInfo@0@@Z @ 47 NONAME ; class QDataStream & QtMobility::operator<<(class QDataStream &, class QtMobility::QGeoSatelliteInfo const &) + ??8QGeoSatelliteInfo@QtMobility@@QBE_NABV01@@Z @ 48 NONAME ; bool QtMobility::QGeoSatelliteInfo::operator==(class QtMobility::QGeoSatelliteInfo const &) const + ?timestamp@QGeoPositionInfo@QtMobility@@QBE?AVQDateTime@@XZ @ 49 NONAME ; class QDateTime QtMobility::QGeoPositionInfo::timestamp(void) const ?setUpdateInterval@QGeoPositionInfoSource@QtMobility@@UAEXH@Z @ 50 NONAME ; void QtMobility::QGeoPositionInfoSource::setUpdateInterval(int) ?tr@QGeoPositionInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 51 NONAME ; class QString QtMobility::QGeoPositionInfoSource::tr(char const *, char const *) ??0QGeoPositionInfo@QtMobility@@QAE@XZ @ 52 NONAME ; QtMobility::QGeoPositionInfo::QGeoPositionInfo(void) ?setPrnNumber@QGeoSatelliteInfo@QtMobility@@QAEXH@Z @ 53 NONAME ; void QtMobility::QGeoSatelliteInfo::setPrnNumber(int) ?coordinate@QGeoPositionInfo@QtMobility@@QBE?AVQGeoCoordinate@2@XZ @ 54 NONAME ; class QtMobility::QGeoCoordinate QtMobility::QGeoPositionInfo::coordinate(void) const - ?metaObject@QGeoPositionInfoSource@QtMobility@@UBEPBUQMetaObject@@XZ @ 55 NONAME ; struct QMetaObject const * QtMobility::QGeoPositionInfoSource::metaObject(void) const - ?removeAttribute@QGeoPositionInfo@QtMobility@@QAEXW4Attribute@12@@Z @ 56 NONAME ; void QtMobility::QGeoPositionInfo::removeAttribute(enum QtMobility::QGeoPositionInfo::Attribute) - ?metaObject@QNmeaPositionInfoSource@QtMobility@@UBEPBUQMetaObject@@XZ @ 57 NONAME ; struct QMetaObject const * QtMobility::QNmeaPositionInfoSource::metaObject(void) const - ?tr@QNmeaPositionInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 58 NONAME ; class QString QtMobility::QNmeaPositionInfoSource::tr(char const *, char const *, int) - ?qt_metacast@QGeoPositionInfoSource@QtMobility@@UAEPAXPBD@Z @ 59 NONAME ; void * QtMobility::QGeoPositionInfoSource::qt_metacast(char const *) - ?altitude@QGeoCoordinate@QtMobility@@QBENXZ @ 60 NONAME ; double QtMobility::QGeoCoordinate::altitude(void) const - ?setAltitude@QGeoCoordinate@QtMobility@@QAEXN@Z @ 61 NONAME ; void QtMobility::QGeoCoordinate::setAltitude(double) - ?stopUpdates@QNmeaPositionInfoSource@QtMobility@@UAEXXZ @ 62 NONAME ; void QtMobility::QNmeaPositionInfoSource::stopUpdates(void) - ??0QGeoAreaMonitor@QtMobility@@QAE@PAVQObject@@@Z @ 63 NONAME ; QtMobility::QGeoAreaMonitor::QGeoAreaMonitor(class QObject *) - ?staticMetaObject@QGeoAreaMonitor@QtMobility@@2UQMetaObject@@B @ 64 NONAME ; struct QMetaObject const QtMobility::QGeoAreaMonitor::staticMetaObject - ?lastKnownPosition@QNmeaPositionInfoSource@QtMobility@@UBE?AVQGeoPositionInfo@2@_N@Z @ 65 NONAME ; class QtMobility::QGeoPositionInfo QtMobility::QNmeaPositionInfoSource::lastKnownPosition(bool) const - ?qt_metacall@QGeoPositionInfoSource@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 66 NONAME ; int QtMobility::QGeoPositionInfoSource::qt_metacall(enum QMetaObject::Call, int, void * *) - ??6QtMobility@@YAAAVQDataStream@@AAV1@ABVQGeoCoordinate@0@@Z @ 67 NONAME ; class QDataStream & QtMobility::operator<<(class QDataStream &, class QtMobility::QGeoCoordinate const &) - ?setRadius@QGeoAreaMonitor@QtMobility@@UAEXM@Z @ 68 NONAME ; void QtMobility::QGeoAreaMonitor::setRadius(float) - ??_EQGeoPositionInfoSource@QtMobility@@UAE@I@Z @ 69 NONAME ; QtMobility::QGeoPositionInfoSource::~QGeoPositionInfoSource(unsigned int) - ?staticMetaObject@QGeoPositionInfoSource@QtMobility@@2UQMetaObject@@B @ 70 NONAME ; struct QMetaObject const QtMobility::QGeoPositionInfoSource::staticMetaObject + ?setTimestamp@QGeoPositionInfo@QtMobility@@QAEXABVQDateTime@@@Z @ 55 NONAME ; void QtMobility::QGeoPositionInfo::setTimestamp(class QDateTime const &) + ?metaObject@QGeoPositionInfoSource@QtMobility@@UBEPBUQMetaObject@@XZ @ 56 NONAME ; struct QMetaObject const * QtMobility::QGeoPositionInfoSource::metaObject(void) const + ?removeAttribute@QGeoPositionInfo@QtMobility@@QAEXW4Attribute@12@@Z @ 57 NONAME ; void QtMobility::QGeoPositionInfo::removeAttribute(enum QtMobility::QGeoPositionInfo::Attribute) + ?metaObject@QNmeaPositionInfoSource@QtMobility@@UBEPBUQMetaObject@@XZ @ 58 NONAME ; struct QMetaObject const * QtMobility::QNmeaPositionInfoSource::metaObject(void) const + ?tr@QNmeaPositionInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 59 NONAME ; class QString QtMobility::QNmeaPositionInfoSource::tr(char const *, char const *, int) + ?qt_metacast@QGeoPositionInfoSource@QtMobility@@UAEPAXPBD@Z @ 60 NONAME ; void * QtMobility::QGeoPositionInfoSource::qt_metacast(char const *) + ?altitude@QGeoCoordinate@QtMobility@@QBENXZ @ 61 NONAME ; double QtMobility::QGeoCoordinate::altitude(void) const + ?setAltitude@QGeoCoordinate@QtMobility@@QAEXN@Z @ 62 NONAME ; void QtMobility::QGeoCoordinate::setAltitude(double) + ?stopUpdates@QNmeaPositionInfoSource@QtMobility@@UAEXXZ @ 63 NONAME ; void QtMobility::QNmeaPositionInfoSource::stopUpdates(void) + ??0QGeoAreaMonitor@QtMobility@@QAE@PAVQObject@@@Z @ 64 NONAME ; QtMobility::QGeoAreaMonitor::QGeoAreaMonitor(class QObject *) + ?staticMetaObject@QGeoAreaMonitor@QtMobility@@2UQMetaObject@@B @ 65 NONAME ; struct QMetaObject const QtMobility::QGeoAreaMonitor::staticMetaObject + ?lastKnownPosition@QNmeaPositionInfoSource@QtMobility@@UBE?AVQGeoPositionInfo@2@_N@Z @ 66 NONAME ; class QtMobility::QGeoPositionInfo QtMobility::QNmeaPositionInfoSource::lastKnownPosition(bool) const + ?qt_metacall@QGeoPositionInfoSource@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 67 NONAME ; int QtMobility::QGeoPositionInfoSource::qt_metacall(enum QMetaObject::Call, int, void * *) + ??6QtMobility@@YAAAVQDataStream@@AAV1@ABVQGeoCoordinate@0@@Z @ 68 NONAME ; class QDataStream & QtMobility::operator<<(class QDataStream &, class QtMobility::QGeoCoordinate const &) + ?setRadius@QGeoAreaMonitor@QtMobility@@UAEXM@Z @ 69 NONAME ; void QtMobility::QGeoAreaMonitor::setRadius(float) + ??_EQGeoPositionInfoSource@QtMobility@@UAE@I@Z @ 70 NONAME ; QtMobility::QGeoPositionInfoSource::~QGeoPositionInfoSource(unsigned int) ?trUtf8@QGeoSatelliteInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 71 NONAME ; class QString QtMobility::QGeoSatelliteInfoSource::trUtf8(char const *, char const *, int) - ?qt_metacast@QGeoSatelliteInfoSource@QtMobility@@UAEPAXPBD@Z @ 72 NONAME ; void * QtMobility::QGeoSatelliteInfoSource::qt_metacast(char const *) - ?setLongitude@QGeoCoordinate@QtMobility@@QAEXN@Z @ 73 NONAME ; void QtMobility::QGeoCoordinate::setLongitude(double) - ?tr@QGeoSatelliteInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 74 NONAME ; class QString QtMobility::QGeoSatelliteInfoSource::tr(char const *, char const *) - ?trUtf8@QGeoSatelliteInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 75 NONAME ; class QString QtMobility::QGeoSatelliteInfoSource::trUtf8(char const *, char const *) - ?createDefaultSource@QGeoPositionInfoSource@QtMobility@@SAPAV12@PAVQObject@@@Z @ 76 NONAME ; class QtMobility::QGeoPositionInfoSource * QtMobility::QGeoPositionInfoSource::createDefaultSource(class QObject *) - ??0QGeoPositionInfo@QtMobility@@QAE@ABVQGeoCoordinate@1@ABVQDateTime@@@Z @ 77 NONAME ; QtMobility::QGeoPositionInfo::QGeoPositionInfo(class QtMobility::QGeoCoordinate const &, class QDateTime const &) - ?requestTimeout@QGeoSatelliteInfoSource@QtMobility@@IAEXXZ @ 78 NONAME ; void QtMobility::QGeoSatelliteInfoSource::requestTimeout(void) - ?staticMetaObject@QNmeaPositionInfoSource@QtMobility@@2UQMetaObject@@B @ 79 NONAME ; struct QMetaObject const QtMobility::QNmeaPositionInfoSource::staticMetaObject - ??_EQGeoSatelliteInfoSource@QtMobility@@UAE@I@Z @ 80 NONAME ; QtMobility::QGeoSatelliteInfoSource::~QGeoSatelliteInfoSource(unsigned int) - ?tr@QGeoPositionInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 81 NONAME ; class QString QtMobility::QGeoPositionInfoSource::tr(char const *, char const *, int) - ?createDefaultSource@QGeoSatelliteInfoSource@QtMobility@@SAPAV12@PAVQObject@@@Z @ 82 NONAME ; class QtMobility::QGeoSatelliteInfoSource * QtMobility::QGeoSatelliteInfoSource::createDefaultSource(class QObject *) - ?radius@QGeoAreaMonitor@QtMobility@@QBEMXZ @ 83 NONAME ; float QtMobility::QGeoAreaMonitor::radius(void) const - ?trUtf8@QGeoPositionInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 84 NONAME ; class QString QtMobility::QGeoPositionInfoSource::trUtf8(char const *, char const *, int) - ?areaEntered@QGeoAreaMonitor@QtMobility@@IAEXABVQGeoPositionInfo@2@@Z @ 85 NONAME ; void QtMobility::QGeoAreaMonitor::areaEntered(class QtMobility::QGeoPositionInfo const &) - ?prnNumber@QGeoSatelliteInfo@QtMobility@@QBEHXZ @ 86 NONAME ; int QtMobility::QGeoSatelliteInfo::prnNumber(void) const - ??4QGeoCoordinate@QtMobility@@QAEAAV01@ABV01@@Z @ 87 NONAME ; class QtMobility::QGeoCoordinate & QtMobility::QGeoCoordinate::operator=(class QtMobility::QGeoCoordinate const &) - ?azimuthTo@QGeoCoordinate@QtMobility@@QBEMABV12@@Z @ 88 NONAME ; float QtMobility::QGeoCoordinate::azimuthTo(class QtMobility::QGeoCoordinate const &) const - ??0QGeoCoordinate@QtMobility@@QAE@ABV01@@Z @ 89 NONAME ; QtMobility::QGeoCoordinate::QGeoCoordinate(class QtMobility::QGeoCoordinate const &) - ??1QNmeaPositionInfoSource@QtMobility@@UAE@XZ @ 90 NONAME ; QtMobility::QNmeaPositionInfoSource::~QNmeaPositionInfoSource(void) - ?staticMetaObject@QGeoSatelliteInfoSource@QtMobility@@2UQMetaObject@@B @ 91 NONAME ; struct QMetaObject const QtMobility::QGeoSatelliteInfoSource::staticMetaObject - ??0QGeoSatelliteInfo@QtMobility@@QAE@XZ @ 92 NONAME ; QtMobility::QGeoSatelliteInfo::QGeoSatelliteInfo(void) - ?minimumUpdateInterval@QNmeaPositionInfoSource@QtMobility@@UBEHXZ @ 93 NONAME ; int QtMobility::QNmeaPositionInfoSource::minimumUpdateInterval(void) const - ?isValid@QGeoCoordinate@QtMobility@@QBE_NXZ @ 94 NONAME ; bool QtMobility::QGeoCoordinate::isValid(void) const - ?qt_metacast@QNmeaPositionInfoSource@QtMobility@@UAEPAXPBD@Z @ 95 NONAME ; void * QtMobility::QNmeaPositionInfoSource::qt_metacast(char const *) - ?areaExited@QGeoAreaMonitor@QtMobility@@IAEXABVQGeoPositionInfo@2@@Z @ 96 NONAME ; void QtMobility::QGeoAreaMonitor::areaExited(class QtMobility::QGeoPositionInfo const &) - ?trUtf8@QNmeaPositionInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 97 NONAME ; class QString QtMobility::QNmeaPositionInfoSource::trUtf8(char const *, char const *, int) - ?tr@QGeoAreaMonitor@QtMobility@@SA?AVQString@@PBD0H@Z @ 98 NONAME ; class QString QtMobility::QGeoAreaMonitor::tr(char const *, char const *, int) - ??_EQGeoAreaMonitor@QtMobility@@UAE@I@Z @ 99 NONAME ; QtMobility::QGeoAreaMonitor::~QGeoAreaMonitor(unsigned int) - ?getStaticMetaObject@QGeoPositionInfoSource@QtMobility@@SAABUQMetaObject@@XZ @ 100 NONAME ; struct QMetaObject const & QtMobility::QGeoPositionInfoSource::getStaticMetaObject(void) - ??1QGeoAreaMonitor@QtMobility@@UAE@XZ @ 101 NONAME ; QtMobility::QGeoAreaMonitor::~QGeoAreaMonitor(void) - ??0QGeoSatelliteInfo@QtMobility@@QAE@ABV01@@Z @ 102 NONAME ; QtMobility::QGeoSatelliteInfo::QGeoSatelliteInfo(class QtMobility::QGeoSatelliteInfo const &) - ??9QGeoSatelliteInfo@QtMobility@@QBE_NABV01@@Z @ 103 NONAME ; bool QtMobility::QGeoSatelliteInfo::operator!=(class QtMobility::QGeoSatelliteInfo const &) const - ??4QGeoSatelliteInfo@QtMobility@@QAEAAV01@ABV01@@Z @ 104 NONAME ; class QtMobility::QGeoSatelliteInfo & QtMobility::QGeoSatelliteInfo::operator=(class QtMobility::QGeoSatelliteInfo const &) - ??9QGeoCoordinate@QtMobility@@QBE_NABV01@@Z @ 105 NONAME ; bool QtMobility::QGeoCoordinate::operator!=(class QtMobility::QGeoCoordinate const &) const - ??8QGeoPositionInfo@QtMobility@@QBE_NABV01@@Z @ 106 NONAME ; bool QtMobility::QGeoPositionInfo::operator==(class QtMobility::QGeoPositionInfo const &) const - ?qt_metacast@QGeoAreaMonitor@QtMobility@@UAEPAXPBD@Z @ 107 NONAME ; void * QtMobility::QGeoAreaMonitor::qt_metacast(char const *) - ??1QGeoSatelliteInfoSource@QtMobility@@UAE@XZ @ 108 NONAME ; QtMobility::QGeoSatelliteInfoSource::~QGeoSatelliteInfoSource(void) - ?createDefaultMonitor@QGeoAreaMonitor@QtMobility@@SAPAV12@PAVQObject@@@Z @ 109 NONAME ; class QtMobility::QGeoAreaMonitor * QtMobility::QGeoAreaMonitor::createDefaultMonitor(class QObject *) - ?getStaticMetaObject@QGeoAreaMonitor@QtMobility@@SAABUQMetaObject@@XZ @ 110 NONAME ; struct QMetaObject const & QtMobility::QGeoAreaMonitor::getStaticMetaObject(void) - ?longitude@QGeoCoordinate@QtMobility@@QBENXZ @ 111 NONAME ; double QtMobility::QGeoCoordinate::longitude(void) const - ?preferredPositioningMethods@QGeoPositionInfoSource@QtMobility@@QBE?AV?$QFlags@W4PositioningMethod@QGeoPositionInfoSource@QtMobility@@@@XZ @ 112 NONAME ; class QFlags QtMobility::QGeoPositionInfoSource::preferredPositioningMethods(void) const - ??9QGeoPositionInfo@QtMobility@@QBE_NABV01@@Z @ 113 NONAME ; bool QtMobility::QGeoPositionInfo::operator!=(class QtMobility::QGeoPositionInfo const &) const - ?requestUpdate@QNmeaPositionInfoSource@QtMobility@@UAEXH@Z @ 114 NONAME ; void QtMobility::QNmeaPositionInfoSource::requestUpdate(int) - ??0QGeoSatelliteInfoSource@QtMobility@@QAE@PAVQObject@@@Z @ 115 NONAME ; QtMobility::QGeoSatelliteInfoSource::QGeoSatelliteInfoSource(class QObject *) - ?latitude@QGeoCoordinate@QtMobility@@QBENXZ @ 116 NONAME ; double QtMobility::QGeoCoordinate::latitude(void) const - ?distanceTo@QGeoCoordinate@QtMobility@@QBEMABV12@@Z @ 117 NONAME ; float QtMobility::QGeoCoordinate::distanceTo(class QtMobility::QGeoCoordinate const &) const - ?setDevice@QNmeaPositionInfoSource@QtMobility@@QAEXPAVQIODevice@@@Z @ 118 NONAME ; void QtMobility::QNmeaPositionInfoSource::setDevice(class QIODevice *) - ?center@QGeoAreaMonitor@QtMobility@@QBE?AVQGeoCoordinate@2@XZ @ 119 NONAME ; class QtMobility::QGeoCoordinate QtMobility::QGeoAreaMonitor::center(void) const - ?qt_metacall@QGeoSatelliteInfoSource@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 120 NONAME ; int QtMobility::QGeoSatelliteInfoSource::qt_metacall(enum QMetaObject::Call, int, void * *) - ??6QtMobility@@YA?AVQDebug@@V1@ABVQGeoPositionInfo@0@@Z @ 121 NONAME ; class QDebug QtMobility::operator<<(class QDebug, class QtMobility::QGeoPositionInfo const &) - ??4QGeoPositionInfo@QtMobility@@QAEAAV01@ABV01@@Z @ 122 NONAME ; class QtMobility::QGeoPositionInfo & QtMobility::QGeoPositionInfo::operator=(class QtMobility::QGeoPositionInfo const &) - ?isValid@QGeoPositionInfo@QtMobility@@QBE_NXZ @ 123 NONAME ; bool QtMobility::QGeoPositionInfo::isValid(void) const - ??6QtMobility@@YA?AVQDebug@@V1@ABVQGeoSatelliteInfo@0@@Z @ 124 NONAME ; class QDebug QtMobility::operator<<(class QDebug, class QtMobility::QGeoSatelliteInfo const &) - ?qt_metacall@QGeoAreaMonitor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 125 NONAME ; int QtMobility::QGeoAreaMonitor::qt_metacall(enum QMetaObject::Call, int, void * *) - ?satellitesInUseUpdated@QGeoSatelliteInfoSource@QtMobility@@IAEXABV?$QList@VQGeoSatelliteInfo@QtMobility@@@@@Z @ 126 NONAME ; void QtMobility::QGeoSatelliteInfoSource::satellitesInUseUpdated(class QList const &) - ??0QGeoCoordinate@QtMobility@@QAE@XZ @ 127 NONAME ; QtMobility::QGeoCoordinate::QGeoCoordinate(void) - ??_EQNmeaPositionInfoSource@QtMobility@@UAE@I@Z @ 128 NONAME ; QtMobility::QNmeaPositionInfoSource::~QNmeaPositionInfoSource(unsigned int) - ?removeAttribute@QGeoSatelliteInfo@QtMobility@@QAEXW4Attribute@12@@Z @ 129 NONAME ; void QtMobility::QGeoSatelliteInfo::removeAttribute(enum QtMobility::QGeoSatelliteInfo::Attribute) - ?trUtf8@QGeoPositionInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 130 NONAME ; class QString QtMobility::QGeoPositionInfoSource::trUtf8(char const *, char const *) - ?metaObject@QGeoAreaMonitor@QtMobility@@UBEPBUQMetaObject@@XZ @ 131 NONAME ; struct QMetaObject const * QtMobility::QGeoAreaMonitor::metaObject(void) const - ?startUpdates@QNmeaPositionInfoSource@QtMobility@@UAEXXZ @ 132 NONAME ; void QtMobility::QNmeaPositionInfoSource::startUpdates(void) - ?toString@QGeoCoordinate@QtMobility@@QBE?AVQString@@W4CoordinateFormat@12@@Z @ 133 NONAME ; class QString QtMobility::QGeoCoordinate::toString(enum QtMobility::QGeoCoordinate::CoordinateFormat) const + ?staticMetaObject@QGeoPositionInfoSource@QtMobility@@2UQMetaObject@@B @ 72 NONAME ; struct QMetaObject const QtMobility::QGeoPositionInfoSource::staticMetaObject + ?qt_metacast@QGeoSatelliteInfoSource@QtMobility@@UAEPAXPBD@Z @ 73 NONAME ; void * QtMobility::QGeoSatelliteInfoSource::qt_metacast(char const *) + ?setLongitude@QGeoCoordinate@QtMobility@@QAEXN@Z @ 74 NONAME ; void QtMobility::QGeoCoordinate::setLongitude(double) + ?tr@QGeoSatelliteInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 75 NONAME ; class QString QtMobility::QGeoSatelliteInfoSource::tr(char const *, char const *) + ?trUtf8@QGeoSatelliteInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 76 NONAME ; class QString QtMobility::QGeoSatelliteInfoSource::trUtf8(char const *, char const *) + ?createDefaultSource@QGeoPositionInfoSource@QtMobility@@SAPAV12@PAVQObject@@@Z @ 77 NONAME ; class QtMobility::QGeoPositionInfoSource * QtMobility::QGeoPositionInfoSource::createDefaultSource(class QObject *) + ??0QGeoPositionInfo@QtMobility@@QAE@ABVQGeoCoordinate@1@ABVQDateTime@@@Z @ 78 NONAME ; QtMobility::QGeoPositionInfo::QGeoPositionInfo(class QtMobility::QGeoCoordinate const &, class QDateTime const &) + ?requestTimeout@QGeoSatelliteInfoSource@QtMobility@@IAEXXZ @ 79 NONAME ; void QtMobility::QGeoSatelliteInfoSource::requestTimeout(void) + ?staticMetaObject@QNmeaPositionInfoSource@QtMobility@@2UQMetaObject@@B @ 80 NONAME ; struct QMetaObject const QtMobility::QNmeaPositionInfoSource::staticMetaObject + ??_EQGeoSatelliteInfoSource@QtMobility@@UAE@I@Z @ 81 NONAME ; QtMobility::QGeoSatelliteInfoSource::~QGeoSatelliteInfoSource(unsigned int) + ?tr@QGeoPositionInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 82 NONAME ; class QString QtMobility::QGeoPositionInfoSource::tr(char const *, char const *, int) + ?createDefaultSource@QGeoSatelliteInfoSource@QtMobility@@SAPAV12@PAVQObject@@@Z @ 83 NONAME ; class QtMobility::QGeoSatelliteInfoSource * QtMobility::QGeoSatelliteInfoSource::createDefaultSource(class QObject *) + ?radius@QGeoAreaMonitor@QtMobility@@QBEMXZ @ 84 NONAME ; float QtMobility::QGeoAreaMonitor::radius(void) const + ?trUtf8@QGeoPositionInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 85 NONAME ; class QString QtMobility::QGeoPositionInfoSource::trUtf8(char const *, char const *, int) + ?areaEntered@QGeoAreaMonitor@QtMobility@@IAEXABVQGeoPositionInfo@2@@Z @ 86 NONAME ; void QtMobility::QGeoAreaMonitor::areaEntered(class QtMobility::QGeoPositionInfo const &) + ?prnNumber@QGeoSatelliteInfo@QtMobility@@QBEHXZ @ 87 NONAME ; int QtMobility::QGeoSatelliteInfo::prnNumber(void) const + ??4QGeoCoordinate@QtMobility@@QAEAAV01@ABV01@@Z @ 88 NONAME ; class QtMobility::QGeoCoordinate & QtMobility::QGeoCoordinate::operator=(class QtMobility::QGeoCoordinate const &) + ?azimuthTo@QGeoCoordinate@QtMobility@@QBEMABV12@@Z @ 89 NONAME ; float QtMobility::QGeoCoordinate::azimuthTo(class QtMobility::QGeoCoordinate const &) const + ??0QGeoCoordinate@QtMobility@@QAE@ABV01@@Z @ 90 NONAME ; QtMobility::QGeoCoordinate::QGeoCoordinate(class QtMobility::QGeoCoordinate const &) + ??1QNmeaPositionInfoSource@QtMobility@@UAE@XZ @ 91 NONAME ; QtMobility::QNmeaPositionInfoSource::~QNmeaPositionInfoSource(void) + ?staticMetaObject@QGeoSatelliteInfoSource@QtMobility@@2UQMetaObject@@B @ 92 NONAME ; struct QMetaObject const QtMobility::QGeoSatelliteInfoSource::staticMetaObject + ??0QGeoSatelliteInfo@QtMobility@@QAE@XZ @ 93 NONAME ; QtMobility::QGeoSatelliteInfo::QGeoSatelliteInfo(void) + ?minimumUpdateInterval@QNmeaPositionInfoSource@QtMobility@@UBEHXZ @ 94 NONAME ; int QtMobility::QNmeaPositionInfoSource::minimumUpdateInterval(void) const + ?isValid@QGeoCoordinate@QtMobility@@QBE_NXZ @ 95 NONAME ; bool QtMobility::QGeoCoordinate::isValid(void) const + ?qt_metacast@QNmeaPositionInfoSource@QtMobility@@UAEPAXPBD@Z @ 96 NONAME ; void * QtMobility::QNmeaPositionInfoSource::qt_metacast(char const *) + ?areaExited@QGeoAreaMonitor@QtMobility@@IAEXABVQGeoPositionInfo@2@@Z @ 97 NONAME ; void QtMobility::QGeoAreaMonitor::areaExited(class QtMobility::QGeoPositionInfo const &) + ?trUtf8@QNmeaPositionInfoSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 98 NONAME ; class QString QtMobility::QNmeaPositionInfoSource::trUtf8(char const *, char const *, int) + ?tr@QGeoAreaMonitor@QtMobility@@SA?AVQString@@PBD0H@Z @ 99 NONAME ; class QString QtMobility::QGeoAreaMonitor::tr(char const *, char const *, int) + ??_EQGeoAreaMonitor@QtMobility@@UAE@I@Z @ 100 NONAME ; QtMobility::QGeoAreaMonitor::~QGeoAreaMonitor(unsigned int) + ?getStaticMetaObject@QGeoPositionInfoSource@QtMobility@@SAABUQMetaObject@@XZ @ 101 NONAME ; struct QMetaObject const & QtMobility::QGeoPositionInfoSource::getStaticMetaObject(void) + ??5QtMobility@@YAAAVQDataStream@@AAV1@AAVQGeoSatelliteInfo@0@@Z @ 102 NONAME ; class QDataStream & QtMobility::operator>>(class QDataStream &, class QtMobility::QGeoSatelliteInfo &) + ??1QGeoAreaMonitor@QtMobility@@UAE@XZ @ 103 NONAME ; QtMobility::QGeoAreaMonitor::~QGeoAreaMonitor(void) + ??0QGeoSatelliteInfo@QtMobility@@QAE@ABV01@@Z @ 104 NONAME ; QtMobility::QGeoSatelliteInfo::QGeoSatelliteInfo(class QtMobility::QGeoSatelliteInfo const &) + ??9QGeoSatelliteInfo@QtMobility@@QBE_NABV01@@Z @ 105 NONAME ; bool QtMobility::QGeoSatelliteInfo::operator!=(class QtMobility::QGeoSatelliteInfo const &) const + ??4QGeoSatelliteInfo@QtMobility@@QAEAAV01@ABV01@@Z @ 106 NONAME ; class QtMobility::QGeoSatelliteInfo & QtMobility::QGeoSatelliteInfo::operator=(class QtMobility::QGeoSatelliteInfo const &) + ??9QGeoCoordinate@QtMobility@@QBE_NABV01@@Z @ 107 NONAME ; bool QtMobility::QGeoCoordinate::operator!=(class QtMobility::QGeoCoordinate const &) const + ??8QGeoPositionInfo@QtMobility@@QBE_NABV01@@Z @ 108 NONAME ; bool QtMobility::QGeoPositionInfo::operator==(class QtMobility::QGeoPositionInfo const &) const + ?qt_metacast@QGeoAreaMonitor@QtMobility@@UAEPAXPBD@Z @ 109 NONAME ; void * QtMobility::QGeoAreaMonitor::qt_metacast(char const *) + ??1QGeoSatelliteInfoSource@QtMobility@@UAE@XZ @ 110 NONAME ; QtMobility::QGeoSatelliteInfoSource::~QGeoSatelliteInfoSource(void) + ?createDefaultMonitor@QGeoAreaMonitor@QtMobility@@SAPAV12@PAVQObject@@@Z @ 111 NONAME ; class QtMobility::QGeoAreaMonitor * QtMobility::QGeoAreaMonitor::createDefaultMonitor(class QObject *) + ?getStaticMetaObject@QGeoAreaMonitor@QtMobility@@SAABUQMetaObject@@XZ @ 112 NONAME ; struct QMetaObject const & QtMobility::QGeoAreaMonitor::getStaticMetaObject(void) + ?longitude@QGeoCoordinate@QtMobility@@QBENXZ @ 113 NONAME ; double QtMobility::QGeoCoordinate::longitude(void) const + ?preferredPositioningMethods@QGeoPositionInfoSource@QtMobility@@QBE?AV?$QFlags@W4PositioningMethod@QGeoPositionInfoSource@QtMobility@@@@XZ @ 114 NONAME ; class QFlags QtMobility::QGeoPositionInfoSource::preferredPositioningMethods(void) const + ??9QGeoPositionInfo@QtMobility@@QBE_NABV01@@Z @ 115 NONAME ; bool QtMobility::QGeoPositionInfo::operator!=(class QtMobility::QGeoPositionInfo const &) const + ?requestUpdate@QNmeaPositionInfoSource@QtMobility@@UAEXH@Z @ 116 NONAME ; void QtMobility::QNmeaPositionInfoSource::requestUpdate(int) + ??0QGeoSatelliteInfoSource@QtMobility@@QAE@PAVQObject@@@Z @ 117 NONAME ; QtMobility::QGeoSatelliteInfoSource::QGeoSatelliteInfoSource(class QObject *) + ?latitude@QGeoCoordinate@QtMobility@@QBENXZ @ 118 NONAME ; double QtMobility::QGeoCoordinate::latitude(void) const + ?distanceTo@QGeoCoordinate@QtMobility@@QBEMABV12@@Z @ 119 NONAME ; float QtMobility::QGeoCoordinate::distanceTo(class QtMobility::QGeoCoordinate const &) const + ?setDevice@QNmeaPositionInfoSource@QtMobility@@QAEXPAVQIODevice@@@Z @ 120 NONAME ; void QtMobility::QNmeaPositionInfoSource::setDevice(class QIODevice *) + ?center@QGeoAreaMonitor@QtMobility@@QBE?AVQGeoCoordinate@2@XZ @ 121 NONAME ; class QtMobility::QGeoCoordinate QtMobility::QGeoAreaMonitor::center(void) const + ?qt_metacall@QGeoSatelliteInfoSource@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 122 NONAME ; int QtMobility::QGeoSatelliteInfoSource::qt_metacall(enum QMetaObject::Call, int, void * *) + ??6QtMobility@@YA?AVQDebug@@V1@ABVQGeoPositionInfo@0@@Z @ 123 NONAME ; class QDebug QtMobility::operator<<(class QDebug, class QtMobility::QGeoPositionInfo const &) + ??4QGeoPositionInfo@QtMobility@@QAEAAV01@ABV01@@Z @ 124 NONAME ; class QtMobility::QGeoPositionInfo & QtMobility::QGeoPositionInfo::operator=(class QtMobility::QGeoPositionInfo const &) + ?isValid@QGeoPositionInfo@QtMobility@@QBE_NXZ @ 125 NONAME ; bool QtMobility::QGeoPositionInfo::isValid(void) const + ??6QtMobility@@YA?AVQDebug@@V1@ABVQGeoSatelliteInfo@0@@Z @ 126 NONAME ; class QDebug QtMobility::operator<<(class QDebug, class QtMobility::QGeoSatelliteInfo const &) + ?qt_metacall@QGeoAreaMonitor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 127 NONAME ; int QtMobility::QGeoAreaMonitor::qt_metacall(enum QMetaObject::Call, int, void * *) + ?satellitesInUseUpdated@QGeoSatelliteInfoSource@QtMobility@@IAEXABV?$QList@VQGeoSatelliteInfo@QtMobility@@@@@Z @ 128 NONAME ; void QtMobility::QGeoSatelliteInfoSource::satellitesInUseUpdated(class QList const &) + ??0QGeoCoordinate@QtMobility@@QAE@XZ @ 129 NONAME ; QtMobility::QGeoCoordinate::QGeoCoordinate(void) + ??_EQNmeaPositionInfoSource@QtMobility@@UAE@I@Z @ 130 NONAME ; QtMobility::QNmeaPositionInfoSource::~QNmeaPositionInfoSource(unsigned int) + ?removeAttribute@QGeoSatelliteInfo@QtMobility@@QAEXW4Attribute@12@@Z @ 131 NONAME ; void QtMobility::QGeoSatelliteInfo::removeAttribute(enum QtMobility::QGeoSatelliteInfo::Attribute) + ?trUtf8@QGeoPositionInfoSource@QtMobility@@SA?AVQString@@PBD0@Z @ 132 NONAME ; class QString QtMobility::QGeoPositionInfoSource::trUtf8(char const *, char const *) + ?metaObject@QGeoAreaMonitor@QtMobility@@UBEPBUQMetaObject@@XZ @ 133 NONAME ; struct QMetaObject const * QtMobility::QGeoAreaMonitor::metaObject(void) const + ?startUpdates@QNmeaPositionInfoSource@QtMobility@@UAEXXZ @ 134 NONAME ; void QtMobility::QNmeaPositionInfoSource::startUpdates(void) + ?toString@QGeoCoordinate@QtMobility@@QBE?AVQString@@W4CoordinateFormat@12@@Z @ 135 NONAME ; class QString QtMobility::QGeoCoordinate::toString(enum QtMobility::QGeoCoordinate::CoordinateFormat) const diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/bwins/QtMediau.def --- a/qtmobility/src/s60installs/bwins/QtMediau.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/bwins/QtMediau.def Mon May 03 13:18:40 2010 +0300 @@ -1,1119 +1,928 @@ EXPORTS - ??0QAudioCaptureSource@QtMobility@@QAE@PAVQMediaObject@1@PAVQObject@@@Z @ 1 NONAME ; QtMobility::QAudioCaptureSource::QAudioCaptureSource(class QtMobility::QMediaObject *, class QObject *) - ??0QAudioCaptureSource@QtMobility@@QAE@PAVQObject@@PAVQMediaServiceProvider@1@@Z @ 2 NONAME ; QtMobility::QAudioCaptureSource::QAudioCaptureSource(class QObject *, class QtMobility::QMediaServiceProvider *) - ??0QAudioEncoderControl@QtMobility@@IAE@PAVQObject@@@Z @ 3 NONAME ; QtMobility::QAudioEncoderControl::QAudioEncoderControl(class QObject *) - ??0QAudioEncoderSettings@QtMobility@@QAE@ABV01@@Z @ 4 NONAME ; QtMobility::QAudioEncoderSettings::QAudioEncoderSettings(class QtMobility::QAudioEncoderSettings const &) - ??0QAudioEncoderSettings@QtMobility@@QAE@XZ @ 5 NONAME ; QtMobility::QAudioEncoderSettings::QAudioEncoderSettings(void) - ??0QAudioEndpointSelector@QtMobility@@IAE@PAVQObject@@@Z @ 6 NONAME ; QtMobility::QAudioEndpointSelector::QAudioEndpointSelector(class QObject *) - ??0QCamera@QtMobility@@QAE@ABVQByteArray@@PAVQObject@@@Z @ 7 NONAME ; QtMobility::QCamera::QCamera(class QByteArray const &, class QObject *) - ??0QCamera@QtMobility@@QAE@PAVQObject@@PAVQMediaServiceProvider@1@@Z @ 8 NONAME ; QtMobility::QCamera::QCamera(class QObject *, class QtMobility::QMediaServiceProvider *) - ??0QCameraControl@QtMobility@@IAE@PAVQObject@@@Z @ 9 NONAME ; QtMobility::QCameraControl::QCameraControl(class QObject *) - ??0QCameraExposureControl@QtMobility@@IAE@PAVQObject@@@Z @ 10 NONAME ; QtMobility::QCameraExposureControl::QCameraExposureControl(class QObject *) - ??0QCameraFocusControl@QtMobility@@IAE@PAVQObject@@@Z @ 11 NONAME ; QtMobility::QCameraFocusControl::QCameraFocusControl(class QObject *) - ??0QGraphicsVideoItem@QtMobility@@QAE@PAVQGraphicsItem@@@Z @ 12 NONAME ; QtMobility::QGraphicsVideoItem::QGraphicsVideoItem(class QGraphicsItem *) - ??0QImageCaptureControl@QtMobility@@IAE@PAVQObject@@@Z @ 13 NONAME ; QtMobility::QImageCaptureControl::QImageCaptureControl(class QObject *) - ??0QImageEncoderControl@QtMobility@@IAE@PAVQObject@@@Z @ 14 NONAME ; QtMobility::QImageEncoderControl::QImageEncoderControl(class QObject *) - ??0QImageEncoderSettings@QtMobility@@QAE@ABV01@@Z @ 15 NONAME ; QtMobility::QImageEncoderSettings::QImageEncoderSettings(class QtMobility::QImageEncoderSettings const &) - ??0QImageEncoderSettings@QtMobility@@QAE@XZ @ 16 NONAME ; QtMobility::QImageEncoderSettings::QImageEncoderSettings(void) - ??0QImageProcessingControl@QtMobility@@IAE@PAVQObject@@@Z @ 17 NONAME ; QtMobility::QImageProcessingControl::QImageProcessingControl(class QObject *) - ??0QLocalMediaPlaylistProvider@QtMobility@@QAE@PAVQObject@@@Z @ 18 NONAME ; QtMobility::QLocalMediaPlaylistProvider::QLocalMediaPlaylistProvider(class QObject *) - ??0QMediaContainerControl@QtMobility@@IAE@PAVQObject@@@Z @ 19 NONAME ; QtMobility::QMediaContainerControl::QMediaContainerControl(class QObject *) - ??0QMediaContent@QtMobility@@QAE@ABV01@@Z @ 20 NONAME ; QtMobility::QMediaContent::QMediaContent(class QtMobility::QMediaContent const &) - ??0QMediaContent@QtMobility@@QAE@ABV?$QList@VQMediaResource@QtMobility@@@@@Z @ 21 NONAME ; QtMobility::QMediaContent::QMediaContent(class QList const &) - ??0QMediaContent@QtMobility@@QAE@ABVQMediaResource@1@@Z @ 22 NONAME ; QtMobility::QMediaContent::QMediaContent(class QtMobility::QMediaResource const &) - ??0QMediaContent@QtMobility@@QAE@ABVQUrl@@@Z @ 23 NONAME ; QtMobility::QMediaContent::QMediaContent(class QUrl const &) - ??0QMediaContent@QtMobility@@QAE@XZ @ 24 NONAME ; QtMobility::QMediaContent::QMediaContent(void) - ??0QMediaControl@QtMobility@@IAE@AAVQMediaControlPrivate@1@PAVQObject@@@Z @ 25 NONAME ; QtMobility::QMediaControl::QMediaControl(class QtMobility::QMediaControlPrivate &, class QObject *) - ??0QMediaControl@QtMobility@@IAE@PAVQObject@@@Z @ 26 NONAME ; QtMobility::QMediaControl::QMediaControl(class QObject *) - ??0QMediaImageViewer@QtMobility@@QAE@PAVQObject@@@Z @ 27 NONAME ; QtMobility::QMediaImageViewer::QMediaImageViewer(class QObject *) - ??0QMediaObject@QtMobility@@IAE@AAVQMediaObjectPrivate@1@PAVQObject@@PAVQMediaService@1@@Z @ 28 NONAME ; QtMobility::QMediaObject::QMediaObject(class QtMobility::QMediaObjectPrivate &, class QObject *, class QtMobility::QMediaService *) - ??0QMediaObject@QtMobility@@IAE@PAVQObject@@PAVQMediaService@1@@Z @ 29 NONAME ; QtMobility::QMediaObject::QMediaObject(class QObject *, class QtMobility::QMediaService *) - ??0QMediaPlayer@QtMobility@@QAE@PAVQObject@@V?$QFlags@W4Flag@QMediaPlayer@QtMobility@@@@PAVQMediaServiceProvider@1@@Z @ 30 NONAME ; QtMobility::QMediaPlayer::QMediaPlayer(class QObject *, class QFlags, class QtMobility::QMediaServiceProvider *) - ??0QMediaPlayerControl@QtMobility@@IAE@PAVQObject@@@Z @ 31 NONAME ; QtMobility::QMediaPlayerControl::QMediaPlayerControl(class QObject *) - ??0QMediaPlaylist@QtMobility@@QAE@PAVQObject@@@Z @ 32 NONAME ; QtMobility::QMediaPlaylist::QMediaPlaylist(class QObject *) - ??0QMediaPlaylistControl@QtMobility@@IAE@PAVQObject@@@Z @ 33 NONAME ; QtMobility::QMediaPlaylistControl::QMediaPlaylistControl(class QObject *) - ??0QMediaPlaylistIOInterface@QtMobility@@QAE@XZ @ 34 NONAME ; QtMobility::QMediaPlaylistIOInterface::QMediaPlaylistIOInterface(void) - ??0QMediaPlaylistIOPlugin@QtMobility@@QAE@PAVQObject@@@Z @ 35 NONAME ; QtMobility::QMediaPlaylistIOPlugin::QMediaPlaylistIOPlugin(class QObject *) - ??0QMediaPlaylistNavigator@QtMobility@@QAE@PAVQMediaPlaylistProvider@1@PAVQObject@@@Z @ 36 NONAME ; QtMobility::QMediaPlaylistNavigator::QMediaPlaylistNavigator(class QtMobility::QMediaPlaylistProvider *, class QObject *) - ??0QMediaPlaylistProvider@QtMobility@@IAE@AAVQMediaPlaylistProviderPrivate@1@PAVQObject@@@Z @ 37 NONAME ; QtMobility::QMediaPlaylistProvider::QMediaPlaylistProvider(class QtMobility::QMediaPlaylistProviderPrivate &, class QObject *) - ??0QMediaPlaylistProvider@QtMobility@@QAE@PAVQObject@@@Z @ 38 NONAME ; QtMobility::QMediaPlaylistProvider::QMediaPlaylistProvider(class QObject *) - ??0QMediaRecorder@QtMobility@@QAE@PAVQMediaObject@1@PAVQObject@@@Z @ 39 NONAME ; QtMobility::QMediaRecorder::QMediaRecorder(class QtMobility::QMediaObject *, class QObject *) - ??0QMediaRecorderControl@QtMobility@@IAE@PAVQObject@@@Z @ 40 NONAME ; QtMobility::QMediaRecorderControl::QMediaRecorderControl(class QObject *) - ??0QMediaResource@QtMobility@@QAE@ABV01@@Z @ 41 NONAME ; QtMobility::QMediaResource::QMediaResource(class QtMobility::QMediaResource const &) - ??0QMediaResource@QtMobility@@QAE@ABVQUrl@@ABVQString@@@Z @ 42 NONAME ; QtMobility::QMediaResource::QMediaResource(class QUrl const &, class QString const &) - ??0QMediaResource@QtMobility@@QAE@XZ @ 43 NONAME ; QtMobility::QMediaResource::QMediaResource(void) - ??0QMediaService@QtMobility@@IAE@AAVQMediaServicePrivate@1@PAVQObject@@@Z @ 44 NONAME ; QtMobility::QMediaService::QMediaService(class QtMobility::QMediaServicePrivate &, class QObject *) - ??0QMediaService@QtMobility@@IAE@PAVQObject@@@Z @ 45 NONAME ; QtMobility::QMediaService::QMediaService(class QObject *) - ??0QMediaServiceProvider@QtMobility@@QAE@XZ @ 46 NONAME ; QtMobility::QMediaServiceProvider::QMediaServiceProvider(void) - ??0QMediaServiceProviderHint@QtMobility@@QAE@ABV01@@Z @ 47 NONAME ; QtMobility::QMediaServiceProviderHint::QMediaServiceProviderHint(class QtMobility::QMediaServiceProviderHint const &) - ??0QMediaServiceProviderHint@QtMobility@@QAE@ABVQByteArray@@@Z @ 48 NONAME ; QtMobility::QMediaServiceProviderHint::QMediaServiceProviderHint(class QByteArray const &) - ??0QMediaServiceProviderHint@QtMobility@@QAE@ABVQString@@ABVQStringList@@@Z @ 49 NONAME ; QtMobility::QMediaServiceProviderHint::QMediaServiceProviderHint(class QString const &, class QStringList const &) - ??0QMediaServiceProviderHint@QtMobility@@QAE@V?$QFlags@W4Feature@QMediaServiceProviderHint@QtMobility@@@@@Z @ 50 NONAME ; QtMobility::QMediaServiceProviderHint::QMediaServiceProviderHint(class QFlags) - ??0QMediaServiceProviderHint@QtMobility@@QAE@XZ @ 51 NONAME ; QtMobility::QMediaServiceProviderHint::QMediaServiceProviderHint(void) - ??0QMediaStreamsControl@QtMobility@@IAE@PAVQObject@@@Z @ 52 NONAME ; QtMobility::QMediaStreamsControl::QMediaStreamsControl(class QObject *) - ??0QMediaTimeInterval@QtMobility@@QAE@ABV01@@Z @ 53 NONAME ; QtMobility::QMediaTimeInterval::QMediaTimeInterval(class QtMobility::QMediaTimeInterval const &) - ??0QMediaTimeInterval@QtMobility@@QAE@XZ @ 54 NONAME ; QtMobility::QMediaTimeInterval::QMediaTimeInterval(void) - ??0QMediaTimeInterval@QtMobility@@QAE@_J0@Z @ 55 NONAME ; QtMobility::QMediaTimeInterval::QMediaTimeInterval(long long, long long) - ??0QMediaTimeRange@QtMobility@@QAE@ABV01@@Z @ 56 NONAME ; QtMobility::QMediaTimeRange::QMediaTimeRange(class QtMobility::QMediaTimeRange const &) - ??0QMediaTimeRange@QtMobility@@QAE@ABVQMediaTimeInterval@1@@Z @ 57 NONAME ; QtMobility::QMediaTimeRange::QMediaTimeRange(class QtMobility::QMediaTimeInterval const &) - ??0QMediaTimeRange@QtMobility@@QAE@XZ @ 58 NONAME ; QtMobility::QMediaTimeRange::QMediaTimeRange(void) - ??0QMediaTimeRange@QtMobility@@QAE@_J0@Z @ 59 NONAME ; QtMobility::QMediaTimeRange::QMediaTimeRange(long long, long long) - ??0QMetaDataControl@QtMobility@@IAE@PAVQObject@@@Z @ 60 NONAME ; QtMobility::QMetaDataControl::QMetaDataControl(class QObject *) - ??0QRadioTuner@QtMobility@@QAE@PAVQObject@@PAVQMediaServiceProvider@1@@Z @ 61 NONAME ; QtMobility::QRadioTuner::QRadioTuner(class QObject *, class QtMobility::QMediaServiceProvider *) - ??0QRadioTunerControl@QtMobility@@IAE@PAVQObject@@@Z @ 62 NONAME ; QtMobility::QRadioTunerControl::QRadioTunerControl(class QObject *) - ??0QStillImageCapture@QtMobility@@QAE@PAVQMediaObject@1@PAVQObject@@@Z @ 63 NONAME ; QtMobility::QStillImageCapture::QStillImageCapture(class QtMobility::QMediaObject *, class QObject *) - ??0QVideoDeviceControl@QtMobility@@IAE@PAVQObject@@@Z @ 64 NONAME ; QtMobility::QVideoDeviceControl::QVideoDeviceControl(class QObject *) - ??0QVideoEncoderControl@QtMobility@@IAE@PAVQObject@@@Z @ 65 NONAME ; QtMobility::QVideoEncoderControl::QVideoEncoderControl(class QObject *) - ??0QVideoEncoderSettings@QtMobility@@QAE@ABV01@@Z @ 66 NONAME ; QtMobility::QVideoEncoderSettings::QVideoEncoderSettings(class QtMobility::QVideoEncoderSettings const &) - ??0QVideoEncoderSettings@QtMobility@@QAE@XZ @ 67 NONAME ; QtMobility::QVideoEncoderSettings::QVideoEncoderSettings(void) - ??0QVideoOutputControl@QtMobility@@IAE@PAVQObject@@@Z @ 68 NONAME ; QtMobility::QVideoOutputControl::QVideoOutputControl(class QObject *) - ??0QVideoRendererControl@QtMobility@@IAE@PAVQObject@@@Z @ 69 NONAME ; QtMobility::QVideoRendererControl::QVideoRendererControl(class QObject *) - ??0QVideoWidget@QtMobility@@QAE@PAVQWidget@@@Z @ 70 NONAME ; QtMobility::QVideoWidget::QVideoWidget(class QWidget *) - ??0QVideoWidgetControl@QtMobility@@IAE@PAVQObject@@@Z @ 71 NONAME ; QtMobility::QVideoWidgetControl::QVideoWidgetControl(class QObject *) - ??0QVideoWindowControl@QtMobility@@IAE@PAVQObject@@@Z @ 72 NONAME ; QtMobility::QVideoWindowControl::QVideoWindowControl(class QObject *) - ??1QAudioCaptureSource@QtMobility@@UAE@XZ @ 73 NONAME ; QtMobility::QAudioCaptureSource::~QAudioCaptureSource(void) - ??1QAudioEncoderControl@QtMobility@@UAE@XZ @ 74 NONAME ; QtMobility::QAudioEncoderControl::~QAudioEncoderControl(void) - ??1QAudioEncoderSettings@QtMobility@@QAE@XZ @ 75 NONAME ; QtMobility::QAudioEncoderSettings::~QAudioEncoderSettings(void) - ??1QAudioEndpointSelector@QtMobility@@UAE@XZ @ 76 NONAME ; QtMobility::QAudioEndpointSelector::~QAudioEndpointSelector(void) - ??1QCamera@QtMobility@@UAE@XZ @ 77 NONAME ; QtMobility::QCamera::~QCamera(void) - ??1QCameraControl@QtMobility@@UAE@XZ @ 78 NONAME ; QtMobility::QCameraControl::~QCameraControl(void) - ??1QCameraExposureControl@QtMobility@@UAE@XZ @ 79 NONAME ; QtMobility::QCameraExposureControl::~QCameraExposureControl(void) - ??1QCameraFocusControl@QtMobility@@UAE@XZ @ 80 NONAME ; QtMobility::QCameraFocusControl::~QCameraFocusControl(void) - ??1QGraphicsVideoItem@QtMobility@@UAE@XZ @ 81 NONAME ; QtMobility::QGraphicsVideoItem::~QGraphicsVideoItem(void) - ??1QImageCaptureControl@QtMobility@@UAE@XZ @ 82 NONAME ; QtMobility::QImageCaptureControl::~QImageCaptureControl(void) - ??1QImageEncoderControl@QtMobility@@UAE@XZ @ 83 NONAME ; QtMobility::QImageEncoderControl::~QImageEncoderControl(void) - ??1QImageEncoderSettings@QtMobility@@QAE@XZ @ 84 NONAME ; QtMobility::QImageEncoderSettings::~QImageEncoderSettings(void) - ??1QImageProcessingControl@QtMobility@@UAE@XZ @ 85 NONAME ; QtMobility::QImageProcessingControl::~QImageProcessingControl(void) - ??1QLocalMediaPlaylistProvider@QtMobility@@UAE@XZ @ 86 NONAME ; QtMobility::QLocalMediaPlaylistProvider::~QLocalMediaPlaylistProvider(void) - ??1QMediaContainerControl@QtMobility@@UAE@XZ @ 87 NONAME ; QtMobility::QMediaContainerControl::~QMediaContainerControl(void) - ??1QMediaContent@QtMobility@@QAE@XZ @ 88 NONAME ; QtMobility::QMediaContent::~QMediaContent(void) - ??1QMediaControl@QtMobility@@UAE@XZ @ 89 NONAME ; QtMobility::QMediaControl::~QMediaControl(void) - ??1QMediaImageViewer@QtMobility@@UAE@XZ @ 90 NONAME ; QtMobility::QMediaImageViewer::~QMediaImageViewer(void) - ??1QMediaObject@QtMobility@@UAE@XZ @ 91 NONAME ; QtMobility::QMediaObject::~QMediaObject(void) - ??1QMediaPlayer@QtMobility@@UAE@XZ @ 92 NONAME ; QtMobility::QMediaPlayer::~QMediaPlayer(void) - ??1QMediaPlayerControl@QtMobility@@UAE@XZ @ 93 NONAME ; QtMobility::QMediaPlayerControl::~QMediaPlayerControl(void) - ??1QMediaPlaylist@QtMobility@@UAE@XZ @ 94 NONAME ; QtMobility::QMediaPlaylist::~QMediaPlaylist(void) - ??1QMediaPlaylistControl@QtMobility@@UAE@XZ @ 95 NONAME ; QtMobility::QMediaPlaylistControl::~QMediaPlaylistControl(void) - ??1QMediaPlaylistIOInterface@QtMobility@@UAE@XZ @ 96 NONAME ; QtMobility::QMediaPlaylistIOInterface::~QMediaPlaylistIOInterface(void) - ??1QMediaPlaylistIOPlugin@QtMobility@@UAE@XZ @ 97 NONAME ; QtMobility::QMediaPlaylistIOPlugin::~QMediaPlaylistIOPlugin(void) - ??1QMediaPlaylistNavigator@QtMobility@@UAE@XZ @ 98 NONAME ; QtMobility::QMediaPlaylistNavigator::~QMediaPlaylistNavigator(void) - ??1QMediaPlaylistProvider@QtMobility@@UAE@XZ @ 99 NONAME ; QtMobility::QMediaPlaylistProvider::~QMediaPlaylistProvider(void) - ??1QMediaPlaylistReader@QtMobility@@UAE@XZ @ 100 NONAME ; QtMobility::QMediaPlaylistReader::~QMediaPlaylistReader(void) - ??1QMediaPlaylistWriter@QtMobility@@UAE@XZ @ 101 NONAME ; QtMobility::QMediaPlaylistWriter::~QMediaPlaylistWriter(void) - ??1QMediaRecorder@QtMobility@@UAE@XZ @ 102 NONAME ; QtMobility::QMediaRecorder::~QMediaRecorder(void) - ??1QMediaRecorderControl@QtMobility@@UAE@XZ @ 103 NONAME ; QtMobility::QMediaRecorderControl::~QMediaRecorderControl(void) - ??1QMediaResource@QtMobility@@QAE@XZ @ 104 NONAME ; QtMobility::QMediaResource::~QMediaResource(void) - ??1QMediaService@QtMobility@@UAE@XZ @ 105 NONAME ; QtMobility::QMediaService::~QMediaService(void) - ??1QMediaServiceFeaturesInterface@QtMobility@@UAE@XZ @ 106 NONAME ; QtMobility::QMediaServiceFeaturesInterface::~QMediaServiceFeaturesInterface(void) - ??1QMediaServiceProvider@QtMobility@@UAE@XZ @ 107 NONAME ; QtMobility::QMediaServiceProvider::~QMediaServiceProvider(void) - ??1QMediaServiceProviderHint@QtMobility@@QAE@XZ @ 108 NONAME ; QtMobility::QMediaServiceProviderHint::~QMediaServiceProviderHint(void) - ??1QMediaServiceSupportedDevicesInterface@QtMobility@@UAE@XZ @ 109 NONAME ; QtMobility::QMediaServiceSupportedDevicesInterface::~QMediaServiceSupportedDevicesInterface(void) - ??1QMediaServiceSupportedFormatsInterface@QtMobility@@UAE@XZ @ 110 NONAME ; QtMobility::QMediaServiceSupportedFormatsInterface::~QMediaServiceSupportedFormatsInterface(void) - ??1QMediaStreamsControl@QtMobility@@UAE@XZ @ 111 NONAME ; QtMobility::QMediaStreamsControl::~QMediaStreamsControl(void) - ??1QMediaTimeRange@QtMobility@@QAE@XZ @ 112 NONAME ; QtMobility::QMediaTimeRange::~QMediaTimeRange(void) - ??1QMetaDataControl@QtMobility@@UAE@XZ @ 113 NONAME ; QtMobility::QMetaDataControl::~QMetaDataControl(void) - ??1QRadioTuner@QtMobility@@UAE@XZ @ 114 NONAME ; QtMobility::QRadioTuner::~QRadioTuner(void) - ??1QRadioTunerControl@QtMobility@@UAE@XZ @ 115 NONAME ; QtMobility::QRadioTunerControl::~QRadioTunerControl(void) - ??1QStillImageCapture@QtMobility@@UAE@XZ @ 116 NONAME ; QtMobility::QStillImageCapture::~QStillImageCapture(void) - ??1QVideoDeviceControl@QtMobility@@UAE@XZ @ 117 NONAME ; QtMobility::QVideoDeviceControl::~QVideoDeviceControl(void) - ??1QVideoEncoderControl@QtMobility@@UAE@XZ @ 118 NONAME ; QtMobility::QVideoEncoderControl::~QVideoEncoderControl(void) - ??1QVideoEncoderSettings@QtMobility@@QAE@XZ @ 119 NONAME ; QtMobility::QVideoEncoderSettings::~QVideoEncoderSettings(void) - ??1QVideoOutputControl@QtMobility@@UAE@XZ @ 120 NONAME ; QtMobility::QVideoOutputControl::~QVideoOutputControl(void) - ??1QVideoRendererControl@QtMobility@@UAE@XZ @ 121 NONAME ; QtMobility::QVideoRendererControl::~QVideoRendererControl(void) - ??1QVideoWidget@QtMobility@@UAE@XZ @ 122 NONAME ; QtMobility::QVideoWidget::~QVideoWidget(void) - ??1QVideoWidgetControl@QtMobility@@UAE@XZ @ 123 NONAME ; QtMobility::QVideoWidgetControl::~QVideoWidgetControl(void) - ??1QVideoWindowControl@QtMobility@@UAE@XZ @ 124 NONAME ; QtMobility::QVideoWindowControl::~QVideoWindowControl(void) - ??4QAudioEncoderSettings@QtMobility@@QAEAAV01@ABV01@@Z @ 125 NONAME ; class QtMobility::QAudioEncoderSettings & QtMobility::QAudioEncoderSettings::operator=(class QtMobility::QAudioEncoderSettings const &) - ??4QImageEncoderSettings@QtMobility@@QAEAAV01@ABV01@@Z @ 126 NONAME ; class QtMobility::QImageEncoderSettings & QtMobility::QImageEncoderSettings::operator=(class QtMobility::QImageEncoderSettings const &) - ??4QMediaContent@QtMobility@@QAEAAV01@ABV01@@Z @ 127 NONAME ; class QtMobility::QMediaContent & QtMobility::QMediaContent::operator=(class QtMobility::QMediaContent const &) - ??4QMediaResource@QtMobility@@QAEAAV01@ABV01@@Z @ 128 NONAME ; class QtMobility::QMediaResource & QtMobility::QMediaResource::operator=(class QtMobility::QMediaResource const &) - ??4QMediaServiceProviderHint@QtMobility@@QAEAAV01@ABV01@@Z @ 129 NONAME ; class QtMobility::QMediaServiceProviderHint & QtMobility::QMediaServiceProviderHint::operator=(class QtMobility::QMediaServiceProviderHint const &) - ??4QMediaTimeRange@QtMobility@@QAEAAV01@ABV01@@Z @ 130 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator=(class QtMobility::QMediaTimeRange const &) - ??4QMediaTimeRange@QtMobility@@QAEAAV01@ABVQMediaTimeInterval@1@@Z @ 131 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator=(class QtMobility::QMediaTimeInterval const &) - ??4QVideoEncoderSettings@QtMobility@@QAEAAV01@ABV01@@Z @ 132 NONAME ; class QtMobility::QVideoEncoderSettings & QtMobility::QVideoEncoderSettings::operator=(class QtMobility::QVideoEncoderSettings const &) - ??8QAudioEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 133 NONAME ; bool QtMobility::QAudioEncoderSettings::operator==(class QtMobility::QAudioEncoderSettings const &) const - ??8QImageEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 134 NONAME ; bool QtMobility::QImageEncoderSettings::operator==(class QtMobility::QImageEncoderSettings const &) const - ??8QMediaContent@QtMobility@@QBE_NABV01@@Z @ 135 NONAME ; bool QtMobility::QMediaContent::operator==(class QtMobility::QMediaContent const &) const - ??8QMediaResource@QtMobility@@QBE_NABV01@@Z @ 136 NONAME ; bool QtMobility::QMediaResource::operator==(class QtMobility::QMediaResource const &) const - ??8QMediaServiceProviderHint@QtMobility@@QBE_NABV01@@Z @ 137 NONAME ; bool QtMobility::QMediaServiceProviderHint::operator==(class QtMobility::QMediaServiceProviderHint const &) const - ??8QVideoEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 138 NONAME ; bool QtMobility::QVideoEncoderSettings::operator==(class QtMobility::QVideoEncoderSettings const &) const - ??8QtMobility@@YA_NABVQMediaTimeInterval@0@0@Z @ 139 NONAME ; bool QtMobility::operator==(class QtMobility::QMediaTimeInterval const &, class QtMobility::QMediaTimeInterval const &) - ??8QtMobility@@YA_NABVQMediaTimeRange@0@0@Z @ 140 NONAME ; bool QtMobility::operator==(class QtMobility::QMediaTimeRange const &, class QtMobility::QMediaTimeRange const &) - ??9QAudioEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 141 NONAME ; bool QtMobility::QAudioEncoderSettings::operator!=(class QtMobility::QAudioEncoderSettings const &) const - ??9QImageEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 142 NONAME ; bool QtMobility::QImageEncoderSettings::operator!=(class QtMobility::QImageEncoderSettings const &) const - ??9QMediaContent@QtMobility@@QBE_NABV01@@Z @ 143 NONAME ; bool QtMobility::QMediaContent::operator!=(class QtMobility::QMediaContent const &) const - ??9QMediaResource@QtMobility@@QBE_NABV01@@Z @ 144 NONAME ; bool QtMobility::QMediaResource::operator!=(class QtMobility::QMediaResource const &) const - ??9QMediaServiceProviderHint@QtMobility@@QBE_NABV01@@Z @ 145 NONAME ; bool QtMobility::QMediaServiceProviderHint::operator!=(class QtMobility::QMediaServiceProviderHint const &) const - ??9QVideoEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 146 NONAME ; bool QtMobility::QVideoEncoderSettings::operator!=(class QtMobility::QVideoEncoderSettings const &) const - ??9QtMobility@@YA_NABVQMediaTimeInterval@0@0@Z @ 147 NONAME ; bool QtMobility::operator!=(class QtMobility::QMediaTimeInterval const &, class QtMobility::QMediaTimeInterval const &) - ??9QtMobility@@YA_NABVQMediaTimeRange@0@0@Z @ 148 NONAME ; bool QtMobility::operator!=(class QtMobility::QMediaTimeRange const &, class QtMobility::QMediaTimeRange const &) - ??GQtMobility@@YA?AVQMediaTimeRange@0@ABV10@0@Z @ 149 NONAME ; class QtMobility::QMediaTimeRange QtMobility::operator-(class QtMobility::QMediaTimeRange const &, class QtMobility::QMediaTimeRange const &) - ??HQtMobility@@YA?AVQMediaTimeRange@0@ABV10@0@Z @ 150 NONAME ; class QtMobility::QMediaTimeRange QtMobility::operator+(class QtMobility::QMediaTimeRange const &, class QtMobility::QMediaTimeRange const &) - ??YQMediaTimeRange@QtMobility@@QAEAAV01@ABV01@@Z @ 151 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator+=(class QtMobility::QMediaTimeRange const &) - ??YQMediaTimeRange@QtMobility@@QAEAAV01@ABVQMediaTimeInterval@1@@Z @ 152 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator+=(class QtMobility::QMediaTimeInterval const &) - ??ZQMediaTimeRange@QtMobility@@QAEAAV01@ABV01@@Z @ 153 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator-=(class QtMobility::QMediaTimeRange const &) - ??ZQMediaTimeRange@QtMobility@@QAEAAV01@ABVQMediaTimeInterval@1@@Z @ 154 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator-=(class QtMobility::QMediaTimeInterval const &) - ??_EQAudioCaptureSource@QtMobility@@UAE@I@Z @ 155 NONAME ; QtMobility::QAudioCaptureSource::~QAudioCaptureSource(unsigned int) - ??_EQAudioEncoderControl@QtMobility@@UAE@I@Z @ 156 NONAME ; QtMobility::QAudioEncoderControl::~QAudioEncoderControl(unsigned int) - ??_EQAudioEndpointSelector@QtMobility@@UAE@I@Z @ 157 NONAME ; QtMobility::QAudioEndpointSelector::~QAudioEndpointSelector(unsigned int) - ??_EQCamera@QtMobility@@UAE@I@Z @ 158 NONAME ; QtMobility::QCamera::~QCamera(unsigned int) - ??_EQCameraControl@QtMobility@@UAE@I@Z @ 159 NONAME ; QtMobility::QCameraControl::~QCameraControl(unsigned int) - ??_EQCameraExposureControl@QtMobility@@UAE@I@Z @ 160 NONAME ; QtMobility::QCameraExposureControl::~QCameraExposureControl(unsigned int) - ??_EQCameraFocusControl@QtMobility@@UAE@I@Z @ 161 NONAME ; QtMobility::QCameraFocusControl::~QCameraFocusControl(unsigned int) - ??_EQGraphicsVideoItem@QtMobility@@UAE@I@Z @ 162 NONAME ; QtMobility::QGraphicsVideoItem::~QGraphicsVideoItem(unsigned int) - ??_EQImageCaptureControl@QtMobility@@UAE@I@Z @ 163 NONAME ; QtMobility::QImageCaptureControl::~QImageCaptureControl(unsigned int) - ??_EQImageEncoderControl@QtMobility@@UAE@I@Z @ 164 NONAME ; QtMobility::QImageEncoderControl::~QImageEncoderControl(unsigned int) - ??_EQImageProcessingControl@QtMobility@@UAE@I@Z @ 165 NONAME ; QtMobility::QImageProcessingControl::~QImageProcessingControl(unsigned int) - ??_EQLocalMediaPlaylistProvider@QtMobility@@UAE@I@Z @ 166 NONAME ; QtMobility::QLocalMediaPlaylistProvider::~QLocalMediaPlaylistProvider(unsigned int) - ??_EQMediaContainerControl@QtMobility@@UAE@I@Z @ 167 NONAME ; QtMobility::QMediaContainerControl::~QMediaContainerControl(unsigned int) - ??_EQMediaContent@QtMobility@@QAE@I@Z @ 168 NONAME ; QtMobility::QMediaContent::~QMediaContent(unsigned int) - ??_EQMediaControl@QtMobility@@UAE@I@Z @ 169 NONAME ; QtMobility::QMediaControl::~QMediaControl(unsigned int) - ??_EQMediaImageViewer@QtMobility@@UAE@I@Z @ 170 NONAME ; QtMobility::QMediaImageViewer::~QMediaImageViewer(unsigned int) - ??_EQMediaObject@QtMobility@@UAE@I@Z @ 171 NONAME ; QtMobility::QMediaObject::~QMediaObject(unsigned int) - ??_EQMediaPlayer@QtMobility@@UAE@I@Z @ 172 NONAME ; QtMobility::QMediaPlayer::~QMediaPlayer(unsigned int) - ??_EQMediaPlayerControl@QtMobility@@UAE@I@Z @ 173 NONAME ; QtMobility::QMediaPlayerControl::~QMediaPlayerControl(unsigned int) - ??_EQMediaPlaylist@QtMobility@@UAE@I@Z @ 174 NONAME ; QtMobility::QMediaPlaylist::~QMediaPlaylist(unsigned int) - ??_EQMediaPlaylistControl@QtMobility@@UAE@I@Z @ 175 NONAME ; QtMobility::QMediaPlaylistControl::~QMediaPlaylistControl(unsigned int) - ??_EQMediaPlaylistIOInterface@QtMobility@@UAE@I@Z @ 176 NONAME ; QtMobility::QMediaPlaylistIOInterface::~QMediaPlaylistIOInterface(unsigned int) - ??_EQMediaPlaylistIOPlugin@QtMobility@@UAE@I@Z @ 177 NONAME ; QtMobility::QMediaPlaylistIOPlugin::~QMediaPlaylistIOPlugin(unsigned int) - ??_EQMediaPlaylistNavigator@QtMobility@@UAE@I@Z @ 178 NONAME ; QtMobility::QMediaPlaylistNavigator::~QMediaPlaylistNavigator(unsigned int) - ??_EQMediaPlaylistProvider@QtMobility@@UAE@I@Z @ 179 NONAME ; QtMobility::QMediaPlaylistProvider::~QMediaPlaylistProvider(unsigned int) - ??_EQMediaPlaylistReader@QtMobility@@UAE@I@Z @ 180 NONAME ; QtMobility::QMediaPlaylistReader::~QMediaPlaylistReader(unsigned int) - ??_EQMediaPlaylistWriter@QtMobility@@UAE@I@Z @ 181 NONAME ; QtMobility::QMediaPlaylistWriter::~QMediaPlaylistWriter(unsigned int) - ??_EQMediaRecorder@QtMobility@@UAE@I@Z @ 182 NONAME ; QtMobility::QMediaRecorder::~QMediaRecorder(unsigned int) - ??_EQMediaRecorderControl@QtMobility@@UAE@I@Z @ 183 NONAME ; QtMobility::QMediaRecorderControl::~QMediaRecorderControl(unsigned int) - ??_EQMediaResource@QtMobility@@QAE@I@Z @ 184 NONAME ; QtMobility::QMediaResource::~QMediaResource(unsigned int) - ??_EQMediaService@QtMobility@@UAE@I@Z @ 185 NONAME ; QtMobility::QMediaService::~QMediaService(unsigned int) - ??_EQMediaServiceFeaturesInterface@QtMobility@@UAE@I@Z @ 186 NONAME ; QtMobility::QMediaServiceFeaturesInterface::~QMediaServiceFeaturesInterface(unsigned int) - ??_EQMediaServiceProvider@QtMobility@@UAE@I@Z @ 187 NONAME ; QtMobility::QMediaServiceProvider::~QMediaServiceProvider(unsigned int) - ??_EQMediaServiceSupportedDevicesInterface@QtMobility@@UAE@I@Z @ 188 NONAME ; QtMobility::QMediaServiceSupportedDevicesInterface::~QMediaServiceSupportedDevicesInterface(unsigned int) - ??_EQMediaServiceSupportedFormatsInterface@QtMobility@@UAE@I@Z @ 189 NONAME ; QtMobility::QMediaServiceSupportedFormatsInterface::~QMediaServiceSupportedFormatsInterface(unsigned int) - ??_EQMediaStreamsControl@QtMobility@@UAE@I@Z @ 190 NONAME ; QtMobility::QMediaStreamsControl::~QMediaStreamsControl(unsigned int) - ??_EQMetaDataControl@QtMobility@@UAE@I@Z @ 191 NONAME ; QtMobility::QMetaDataControl::~QMetaDataControl(unsigned int) - ??_EQRadioTuner@QtMobility@@UAE@I@Z @ 192 NONAME ; QtMobility::QRadioTuner::~QRadioTuner(unsigned int) - ??_EQRadioTunerControl@QtMobility@@UAE@I@Z @ 193 NONAME ; QtMobility::QRadioTunerControl::~QRadioTunerControl(unsigned int) - ??_EQStillImageCapture@QtMobility@@UAE@I@Z @ 194 NONAME ; QtMobility::QStillImageCapture::~QStillImageCapture(unsigned int) - ??_EQVideoDeviceControl@QtMobility@@UAE@I@Z @ 195 NONAME ; QtMobility::QVideoDeviceControl::~QVideoDeviceControl(unsigned int) - ??_EQVideoEncoderControl@QtMobility@@UAE@I@Z @ 196 NONAME ; QtMobility::QVideoEncoderControl::~QVideoEncoderControl(unsigned int) - ??_EQVideoOutputControl@QtMobility@@UAE@I@Z @ 197 NONAME ; QtMobility::QVideoOutputControl::~QVideoOutputControl(unsigned int) - ??_EQVideoRendererControl@QtMobility@@UAE@I@Z @ 198 NONAME ; QtMobility::QVideoRendererControl::~QVideoRendererControl(unsigned int) - ??_EQVideoWidget@QtMobility@@UAE@I@Z @ 199 NONAME ; QtMobility::QVideoWidget::~QVideoWidget(unsigned int) - ??_EQVideoWidgetControl@QtMobility@@UAE@I@Z @ 200 NONAME ; QtMobility::QVideoWidgetControl::~QVideoWidgetControl(unsigned int) - ??_EQVideoWindowControl@QtMobility@@UAE@I@Z @ 201 NONAME ; QtMobility::QVideoWindowControl::~QVideoWindowControl(unsigned int) - ?activated@QMediaPlaylistNavigator@QtMobility@@IAEXABVQMediaContent@2@@Z @ 202 NONAME ; void QtMobility::QMediaPlaylistNavigator::activated(class QtMobility::QMediaContent const &) - ?activeAudioInput@QAudioCaptureSource@QtMobility@@QBE?AVQString@@XZ @ 203 NONAME ; class QString QtMobility::QAudioCaptureSource::activeAudioInput(void) const + ?qt_metacast@QMediaPlaylistIOPlugin@QtMobility@@UAEPAXPBD@Z @ 1 NONAME ; void * QtMobility::QMediaPlaylistIOPlugin::qt_metacast(char const *) + ?hueChanged@QVideoWidgetControl@QtMobility@@IAEXH@Z @ 2 NONAME ; void QtMobility::QVideoWidgetControl::hueChanged(int) + ??YQMediaTimeRange@QtMobility@@QAEAAV01@ABV01@@Z @ 3 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator+=(class QtMobility::QMediaTimeRange const &) + ?qt_metacall@QAudioCaptureSource@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 4 NONAME ; int QtMobility::QAudioCaptureSource::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QVideoWidgetControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 5 NONAME ; int QtMobility::QVideoWidgetControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ??8QMediaServiceProviderHint@QtMobility@@QBE_NABV01@@Z @ 6 NONAME ; bool QtMobility::QMediaServiceProviderHint::operator==(class QtMobility::QMediaServiceProviderHint const &) const + ?tr@QImageEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 7 NONAME ; class QString QtMobility::QImageEncoderControl::tr(char const *, char const *, int) + ?staticMetaObject@QMediaPlaylistNavigator@QtMobility@@2UQMetaObject@@B @ 8 NONAME ; struct QMetaObject const QtMobility::QMediaPlaylistNavigator::staticMetaObject + ?load@QMediaPlaylistProvider@QtMobility@@UAE_NPAVQIODevice@@PBD@Z @ 9 NONAME ; bool QtMobility::QMediaPlaylistProvider::load(class QIODevice *, char const *) + ?stateChanged@QMediaRecorderControl@QtMobility@@IAEXW4State@QMediaRecorder@2@@Z @ 10 NONAME ; void QtMobility::QMediaRecorderControl::stateChanged(enum QtMobility::QMediaRecorder::State) + ?tr@QMediaRecorder@QtMobility@@SA?AVQString@@PBD0@Z @ 11 NONAME ; class QString QtMobility::QMediaRecorder::tr(char const *, char const *) + ?getStaticMetaObject@QMediaServiceProviderPlugin@QtMobility@@SAABUQMetaObject@@XZ @ 12 NONAME ; struct QMetaObject const & QtMobility::QMediaServiceProviderPlugin::getStaticMetaObject(void) + ?trUtf8@QMediaPlaylistControl@QtMobility@@SA?AVQString@@PBD0@Z @ 13 NONAME ; class QString QtMobility::QMediaPlaylistControl::trUtf8(char const *, char const *) + ?setOffset@QGraphicsVideoItem@QtMobility@@QAEXABVQPointF@@@Z @ 14 NONAME ; void QtMobility::QGraphicsVideoItem::setOffset(class QPointF const &) + ?previousItem@QMediaPlaylistNavigator@QtMobility@@QBE?AVQMediaContent@2@H@Z @ 15 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylistNavigator::previousItem(int) const + ?setBand@QRadioTuner@QtMobility@@QAEXW4Band@12@@Z @ 16 NONAME ; void QtMobility::QRadioTuner::setBand(enum QtMobility::QRadioTuner::Band) + ?error@QMediaPlayer@QtMobility@@QBE?AW4Error@12@XZ @ 17 NONAME ; enum QtMobility::QMediaPlayer::Error QtMobility::QMediaPlayer::error(void) const + ?staticMetaObject@QAudioCaptureSource@QtMobility@@2UQMetaObject@@B @ 18 NONAME ; struct QMetaObject const QtMobility::QAudioCaptureSource::staticMetaObject + ?paintEvent@QVideoWidget@QtMobility@@MAEXPAVQPaintEvent@@@Z @ 19 NONAME ; void QtMobility::QVideoWidget::paintEvent(class QPaintEvent *) + ?devices@QMediaServiceProvider@QtMobility@@UBE?AV?$QList@VQByteArray@@@@ABVQByteArray@@@Z @ 20 NONAME ; class QList QtMobility::QMediaServiceProvider::devices(class QByteArray const &) const + ?trUtf8@QLocalMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 21 NONAME ; class QString QtMobility::QLocalMediaPlaylistProvider::trUtf8(char const *, char const *) + ?tr@QLocalMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 22 NONAME ; class QString QtMobility::QLocalMediaPlaylistProvider::tr(char const *, char const *, int) + ?qt_metacall@QMediaPlaylistNavigator@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 23 NONAME ; int QtMobility::QMediaPlaylistNavigator::qt_metacall(enum QMetaObject::Call, int, void * *) + ?mimeType@QMediaResource@QtMobility@@QBE?AVQString@@XZ @ 24 NONAME ; class QString QtMobility::QMediaResource::mimeType(void) const + ?playlistProviderChanged@QMediaPlaylistControl@QtMobility@@IAEXXZ @ 25 NONAME ; void QtMobility::QMediaPlaylistControl::playlistProviderChanged(void) + ??0QRadioTuner@QtMobility@@QAE@PAVQObject@@PAVQMediaServiceProvider@1@@Z @ 26 NONAME ; QtMobility::QRadioTuner::QRadioTuner(class QObject *, class QtMobility::QMediaServiceProvider *) + ??0QMediaTimeInterval@QtMobility@@QAE@ABV01@@Z @ 27 NONAME ; QtMobility::QMediaTimeInterval::QMediaTimeInterval(class QtMobility::QMediaTimeInterval const &) + ??1QImageEncoderSettings@QtMobility@@QAE@XZ @ 28 NONAME ; QtMobility::QImageEncoderSettings::~QImageEncoderSettings(void) + ?tr@QMetaDataControl@QtMobility@@SA?AVQString@@PBD0@Z @ 29 NONAME ; class QString QtMobility::QMetaDataControl::tr(char const *, char const *) + ?getStaticMetaObject@QMediaPlaylist@QtMobility@@SAABUQMetaObject@@XZ @ 30 NONAME ; struct QMetaObject const & QtMobility::QMediaPlaylist::getStaticMetaObject(void) + ?removeMedia@QMediaPlaylistProvider@QtMobility@@UAE_NH@Z @ 31 NONAME ; bool QtMobility::QMediaPlaylistProvider::removeMedia(int) + ?playbackModeChanged@QMediaPlaylistNavigator@QtMobility@@IAEXW4PlaybackMode@QMediaPlaylist@2@@Z @ 32 NONAME ; void QtMobility::QMediaPlaylistNavigator::playbackModeChanged(enum QtMobility::QMediaPlaylist::PlaybackMode) + ??_EQMediaPlayerControl@QtMobility@@UAE@I@Z @ 33 NONAME ; QtMobility::QMediaPlayerControl::~QMediaPlayerControl(unsigned int) + ?stateChanged@QRadioTuner@QtMobility@@IAEXW4State@12@@Z @ 34 NONAME ; void QtMobility::QRadioTuner::stateChanged(enum QtMobility::QRadioTuner::State) + ?metaObject@QMediaServiceProviderPlugin@QtMobility@@UBEPBUQMetaObject@@XZ @ 35 NONAME ; struct QMetaObject const * QtMobility::QMediaServiceProviderPlugin::metaObject(void) const + ?videoCodec@QMediaResource@QtMobility@@QBE?AVQString@@XZ @ 36 NONAME ; class QString QtMobility::QMediaResource::videoCodec(void) const + ?seekableChanged@QMediaPlayer@QtMobility@@IAEX_N@Z @ 37 NONAME ; void QtMobility::QMediaPlayer::seekableChanged(bool) + ?tr@QMediaPlayerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 38 NONAME ; class QString QtMobility::QMediaPlayerControl::tr(char const *, char const *, int) + ?staticMetaObject@QRadioTunerControl@QtMobility@@2UQMetaObject@@B @ 39 NONAME ; struct QMetaObject const QtMobility::QRadioTunerControl::staticMetaObject + ?qt_metacast@QImageEncoderControl@QtMobility@@UAEPAXPBD@Z @ 40 NONAME ; void * QtMobility::QImageEncoderControl::qt_metacast(char const *) + ?isEmpty@QMediaTimeRange@QtMobility@@QBE_NXZ @ 41 NONAME ; bool QtMobility::QMediaTimeRange::isEmpty(void) const + ??4QMediaResource@QtMobility@@QAEAAV01@ABV01@@Z @ 42 NONAME ; class QtMobility::QMediaResource & QtMobility::QMediaResource::operator=(class QtMobility::QMediaResource const &) + ??1QMediaPlaylistNavigator@QtMobility@@UAE@XZ @ 43 NONAME ; QtMobility::QMediaPlaylistNavigator::~QMediaPlaylistNavigator(void) + ?trUtf8@QAudioEndpointSelector@QtMobility@@SA?AVQString@@PBD0@Z @ 44 NONAME ; class QString QtMobility::QAudioEndpointSelector::trUtf8(char const *, char const *) + ?qt_metacall@QMediaPlaylistProvider@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 45 NONAME ; int QtMobility::QMediaPlaylistProvider::qt_metacall(enum QMetaObject::Call, int, void * *) + ?position@QMediaPlayer@QtMobility@@QBE_JXZ @ 46 NONAME ; long long QtMobility::QMediaPlayer::position(void) const + ?trUtf8@QVideoRendererControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 47 NONAME ; class QString QtMobility::QVideoRendererControl::trUtf8(char const *, char const *, int) + ?tr@QMediaStreamsControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 48 NONAME ; class QString QtMobility::QMediaStreamsControl::tr(char const *, char const *, int) + ?searchingChanged@QRadioTuner@QtMobility@@IAEX_N@Z @ 49 NONAME ; void QtMobility::QRadioTuner::searchingChanged(bool) + ?qt_metacall@QVideoWidget@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 50 NONAME ; int QtMobility::QVideoWidget::qt_metacall(enum QMetaObject::Call, int, void * *) + ?features@QMediaServiceProviderHint@QtMobility@@QBE?AV?$QFlags@W4Feature@QMediaServiceProviderHint@QtMobility@@@@XZ @ 51 NONAME ; class QFlags QtMobility::QMediaServiceProviderHint::features(void) const + ?tr@QMediaPlaylistControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 52 NONAME ; class QString QtMobility::QMediaPlaylistControl::tr(char const *, char const *, int) + ?trUtf8@QMediaObject@QtMobility@@SA?AVQString@@PBD0@Z @ 53 NONAME ; class QString QtMobility::QMediaObject::trUtf8(char const *, char const *) + ?frequencyStep@QRadioTuner@QtMobility@@QBEHW4Band@12@@Z @ 54 NONAME ; int QtMobility::QRadioTuner::frequencyStep(enum QtMobility::QRadioTuner::Band) const + ?trUtf8@QMediaRecorderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 55 NONAME ; class QString QtMobility::QMediaRecorderControl::trUtf8(char const *, char const *, int) + ?metaObject@QRadioTunerControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 56 NONAME ; struct QMetaObject const * QtMobility::QRadioTunerControl::metaObject(void) const + ?trUtf8@QVideoEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 57 NONAME ; class QString QtMobility::QVideoEncoderControl::trUtf8(char const *, char const *) + ?previousIndex@QMediaPlaylistNavigator@QtMobility@@QBEHH@Z @ 58 NONAME ; int QtMobility::QMediaPlaylistNavigator::previousIndex(int) const + ??1QAudioEndpointSelector@QtMobility@@UAE@XZ @ 59 NONAME ; QtMobility::QAudioEndpointSelector::~QAudioEndpointSelector(void) + ?playbackRateChanged@QMediaPlayerControl@QtMobility@@IAEXM@Z @ 60 NONAME ; void QtMobility::QMediaPlayerControl::playbackRateChanged(float) + ?getStaticMetaObject@QMediaService@QtMobility@@SAABUQMetaObject@@XZ @ 61 NONAME ; struct QMetaObject const & QtMobility::QMediaService::getStaticMetaObject(void) + ??1QMediaServiceProvider@QtMobility@@UAE@XZ @ 62 NONAME ; QtMobility::QMediaServiceProvider::~QMediaServiceProvider(void) + ?setPlaybackMode@QMediaPlaylist@QtMobility@@QAEXW4PlaybackMode@12@@Z @ 63 NONAME ; void QtMobility::QMediaPlaylist::setPlaybackMode(enum QtMobility::QMediaPlaylist::PlaybackMode) + ?staticMetaObject@QMediaPlaylistControl@QtMobility@@2UQMetaObject@@B @ 64 NONAME ; struct QMetaObject const QtMobility::QMediaPlaylistControl::staticMetaObject + ?moveEvent@QVideoWidget@QtMobility@@MAEXPAVQMoveEvent@@@Z @ 65 NONAME ; void QtMobility::QVideoWidget::moveEvent(class QMoveEvent *) + ?metaObject@QVideoWidget@QtMobility@@UBEPBUQMetaObject@@XZ @ 66 NONAME ; struct QMetaObject const * QtMobility::QVideoWidget::metaObject(void) const + ?normalized@QMediaTimeInterval@QtMobility@@QBE?AV12@XZ @ 67 NONAME ; class QtMobility::QMediaTimeInterval QtMobility::QMediaTimeInterval::normalized(void) const + ?shuffle@QLocalMediaPlaylistProvider@QtMobility@@UAEXXZ @ 68 NONAME ; void QtMobility::QLocalMediaPlaylistProvider::shuffle(void) + ?extendedMetaData@QMediaObject@QtMobility@@QBE?AVQVariant@@ABVQString@@@Z @ 69 NONAME ; class QVariant QtMobility::QMediaObject::extendedMetaData(class QString const &) const + ?addMedia@QMediaPlaylistProvider@QtMobility@@UAE_NABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 70 NONAME ; bool QtMobility::QMediaPlaylistProvider::addMedia(class QList const &) + ??1QVideoWindowControl@QtMobility@@UAE@XZ @ 71 NONAME ; QtMobility::QVideoWindowControl::~QVideoWindowControl(void) + ?mediaChanged@QMediaPlayerControl@QtMobility@@IAEXABVQMediaContent@2@@Z @ 72 NONAME ; void QtMobility::QMediaPlayerControl::mediaChanged(class QtMobility::QMediaContent const &) + ?qt_metacall@QImageEncoderControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 73 NONAME ; int QtMobility::QImageEncoderControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ?trUtf8@QAudioEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 74 NONAME ; class QString QtMobility::QAudioEncoderControl::trUtf8(char const *, char const *, int) + ?tr@QMediaPlayer@QtMobility@@SA?AVQString@@PBD0H@Z @ 75 NONAME ; class QString QtMobility::QMediaPlayer::tr(char const *, char const *, int) + ?mediaInserted@QMediaPlaylistProvider@QtMobility@@IAEXHH@Z @ 76 NONAME ; void QtMobility::QMediaPlaylistProvider::mediaInserted(int, int) + ?isAudioAvailable@QMediaPlayer@QtMobility@@QBE_NXZ @ 77 NONAME ; bool QtMobility::QMediaPlayer::isAudioAvailable(void) const + ?tr@QRadioTunerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 78 NONAME ; class QString QtMobility::QRadioTunerControl::tr(char const *, char const *, int) + ?setOutputLocation@QMediaRecorder@QtMobility@@QAE_NABVQUrl@@@Z @ 79 NONAME ; bool QtMobility::QMediaRecorder::setOutputLocation(class QUrl const &) + ?setMetaData@QMediaObject@QtMobility@@QAEXW4MetaData@QtMedia@2@ABVQVariant@@@Z @ 80 NONAME ; void QtMobility::QMediaObject::setMetaData(enum QtMobility::QtMedia::MetaData, class QVariant const &) + ?d_func@QMediaPlaylist@QtMobility@@ABEPBVQMediaPlaylistPrivate@2@XZ @ 81 NONAME ; class QtMobility::QMediaPlaylistPrivate const * QtMobility::QMediaPlaylist::d_func(void) const + ??1QMediaControl@QtMobility@@UAE@XZ @ 82 NONAME ; QtMobility::QMediaControl::~QMediaControl(void) + ?isReadOnly@QLocalMediaPlaylistProvider@QtMobility@@UBE_NXZ @ 83 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::isReadOnly(void) const + ?isMuted@QRadioTuner@QtMobility@@QBE_NXZ @ 84 NONAME ; bool QtMobility::QRadioTuner::isMuted(void) const + ?addPropertyWatch@QMediaObject@QtMobility@@IAEXABVQByteArray@@@Z @ 85 NONAME ; void QtMobility::QMediaObject::addPropertyWatch(class QByteArray const &) + ?mediaStatusChanged@QMediaPlayerControl@QtMobility@@IAEXW4MediaStatus@QMediaPlayer@2@@Z @ 86 NONAME ; void QtMobility::QMediaPlayerControl::mediaStatusChanged(enum QtMobility::QMediaPlayer::MediaStatus) + ?qt_metacall@QMediaControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 87 NONAME ; int QtMobility::QMediaControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ??0QMediaPlaylistProvider@QtMobility@@QAE@PAVQObject@@@Z @ 88 NONAME ; QtMobility::QMediaPlaylistProvider::QMediaPlaylistProvider(class QObject *) + ?isNull@QMediaServiceProviderHint@QtMobility@@QBE_NXZ @ 89 NONAME ; bool QtMobility::QMediaServiceProviderHint::isNull(void) const + ?setMediaObject@QVideoWidget@QtMobility@@QAEXPAVQMediaObject@2@@Z @ 90 NONAME ; void QtMobility::QVideoWidget::setMediaObject(class QtMobility::QMediaObject *) + ?setFullScreen@QVideoWidget@QtMobility@@QAEX_N@Z @ 91 NONAME ; void QtMobility::QVideoWidget::setFullScreen(bool) + ?tr@QMediaService@QtMobility@@SA?AVQString@@PBD0H@Z @ 92 NONAME ; class QString QtMobility::QMediaService::tr(char const *, char const *, int) + ??_EQVideoEncoderControl@QtMobility@@UAE@I@Z @ 93 NONAME ; QtMobility::QVideoEncoderControl::~QVideoEncoderControl(unsigned int) + ?qt_metacall@QMediaServiceProviderPlugin@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 94 NONAME ; int QtMobility::QMediaServiceProviderPlugin::qt_metacall(enum QMetaObject::Call, int, void * *) + ?metaObject@QMediaPlaylist@QtMobility@@UBEPBUQMetaObject@@XZ @ 95 NONAME ; struct QMetaObject const * QtMobility::QMediaPlaylist::metaObject(void) const + ?clear@QMediaTimeRange@QtMobility@@QAEXXZ @ 96 NONAME ; void QtMobility::QMediaTimeRange::clear(void) + ?trUtf8@QVideoDeviceControl@QtMobility@@SA?AVQString@@PBD0@Z @ 97 NONAME ; class QString QtMobility::QVideoDeviceControl::trUtf8(char const *, char const *) + ?trUtf8@QMediaPlaylistIOPlugin@QtMobility@@SA?AVQString@@PBD0@Z @ 98 NONAME ; class QString QtMobility::QMediaPlaylistIOPlugin::trUtf8(char const *, char const *) + ?brightnessChanged@QVideoWidget@QtMobility@@IAEXH@Z @ 99 NONAME ; void QtMobility::QVideoWidget::brightnessChanged(int) + ?setCodec@QAudioEncoderSettings@QtMobility@@QAEXABVQString@@@Z @ 100 NONAME ; void QtMobility::QAudioEncoderSettings::setCodec(class QString const &) + ?trUtf8@QAudioCaptureSource@QtMobility@@SA?AVQString@@PBD0@Z @ 101 NONAME ; class QString QtMobility::QAudioCaptureSource::trUtf8(char const *, char const *) + ?devicesChanged@QVideoDeviceControl@QtMobility@@IAEXXZ @ 102 NONAME ; void QtMobility::QVideoDeviceControl::devicesChanged(void) + ?setLanguage@QMediaResource@QtMobility@@QAEXABVQString@@@Z @ 103 NONAME ; void QtMobility::QMediaResource::setLanguage(class QString const &) + ?qt_metacast@QMediaPlayerControl@QtMobility@@UAEPAXPBD@Z @ 104 NONAME ; void * QtMobility::QMediaPlayerControl::qt_metacast(char const *) + ?loadFailed@QMediaPlaylistProvider@QtMobility@@IAEXW4Error@QMediaPlaylist@2@ABVQString@@@Z @ 105 NONAME ; void QtMobility::QMediaPlaylistProvider::loadFailed(enum QtMobility::QMediaPlaylist::Error, class QString const &) + ?mediaChanged@QMediaPlayer@QtMobility@@IAEXABVQMediaContent@2@@Z @ 106 NONAME ; void QtMobility::QMediaPlayer::mediaChanged(class QtMobility::QMediaContent const &) + ?channelCount@QMediaResource@QtMobility@@QBEHXZ @ 107 NONAME ; int QtMobility::QMediaResource::channelCount(void) const + ??0QVideoRendererControl@QtMobility@@IAE@PAVQObject@@@Z @ 108 NONAME ; QtMobility::QVideoRendererControl::QVideoRendererControl(class QObject *) + ?getStaticMetaObject@QVideoWidget@QtMobility@@SAABUQMetaObject@@XZ @ 109 NONAME ; struct QMetaObject const & QtMobility::QVideoWidget::getStaticMetaObject(void) + ??4QMediaContent@QtMobility@@QAEAAV01@ABV01@@Z @ 110 NONAME ; class QtMobility::QMediaContent & QtMobility::QMediaContent::operator=(class QtMobility::QMediaContent const &) + ?qt_metacall@QMediaPlayer@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 111 NONAME ; int QtMobility::QMediaPlayer::qt_metacall(enum QMetaObject::Call, int, void * *) + ??0QAudioEncoderSettings@QtMobility@@QAE@XZ @ 112 NONAME ; QtMobility::QAudioEncoderSettings::QAudioEncoderSettings(void) + ??1QMediaRecorder@QtMobility@@UAE@XZ @ 113 NONAME ; QtMobility::QMediaRecorder::~QMediaRecorder(void) + ?staticMetaObject@QVideoDeviceControl@QtMobility@@2UQMetaObject@@B @ 114 NONAME ; struct QMetaObject const QtMobility::QVideoDeviceControl::staticMetaObject + ?setExtendedMetaData@QMediaObject@QtMobility@@QAEXABVQString@@ABVQVariant@@@Z @ 115 NONAME ; void QtMobility::QMediaObject::setExtendedMetaData(class QString const &, class QVariant const &) + ?sizeHint@QVideoWidget@QtMobility@@UBE?AVQSize@@XZ @ 116 NONAME ; class QSize QtMobility::QVideoWidget::sizeHint(void) const + ??_EQMediaImageViewer@QtMobility@@UAE@I@Z @ 117 NONAME ; QtMobility::QMediaImageViewer::~QMediaImageViewer(unsigned int) + ?tr@QMediaObject@QtMobility@@SA?AVQString@@PBD0@Z @ 118 NONAME ; class QString QtMobility::QMediaObject::tr(char const *, char const *) + ?metaDataChanged@QMetaDataControl@QtMobility@@IAEXXZ @ 119 NONAME ; void QtMobility::QMetaDataControl::metaDataChanged(void) + ??_EQVideoWidget@QtMobility@@UAE@I@Z @ 120 NONAME ; QtMobility::QVideoWidget::~QVideoWidget(unsigned int) + ?setFrequency@QRadioTuner@QtMobility@@QAEXH@Z @ 121 NONAME ; void QtMobility::QRadioTuner::setFrequency(int) + ?currentItem@QMediaPlaylistNavigator@QtMobility@@QBE?AVQMediaContent@2@XZ @ 122 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylistNavigator::currentItem(void) const + ?setPlaybackRate@QMediaPlayer@QtMobility@@QAEXM@Z @ 123 NONAME ; void QtMobility::QMediaPlayer::setPlaybackRate(float) + ??0QMediaObject@QtMobility@@IAE@PAVQObject@@PAVQMediaService@1@@Z @ 124 NONAME ; QtMobility::QMediaObject::QMediaObject(class QObject *, class QtMobility::QMediaService *) + ??1QMediaContent@QtMobility@@QAE@XZ @ 125 NONAME ; QtMobility::QMediaContent::~QMediaContent(void) + ?mediaObject@QVideoWidget@QtMobility@@QBEPAVQMediaObject@2@XZ @ 126 NONAME ; class QtMobility::QMediaObject * QtMobility::QVideoWidget::mediaObject(void) const + ?itemAt@QMediaPlaylistNavigator@QtMobility@@QBE?AVQMediaContent@2@H@Z @ 127 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylistNavigator::itemAt(int) const + ??0QAudioEncoderControl@QtMobility@@IAE@PAVQObject@@@Z @ 128 NONAME ; QtMobility::QAudioEncoderControl::QAudioEncoderControl(class QObject *) + ?play@QMediaPlayer@QtMobility@@QAEXXZ @ 129 NONAME ; void QtMobility::QMediaPlayer::play(void) + ?timeout@QMediaImageViewer@QtMobility@@QBEHXZ @ 130 NONAME ; int QtMobility::QMediaImageViewer::timeout(void) const + ?showEvent@QVideoWidget@QtMobility@@MAEXPAVQShowEvent@@@Z @ 131 NONAME ; void QtMobility::QVideoWidget::showEvent(class QShowEvent *) + ?videoAvailableChanged@QMediaPlayer@QtMobility@@IAEX_N@Z @ 132 NONAME ; void QtMobility::QMediaPlayer::videoAvailableChanged(bool) + ?load@QMediaPlaylist@QtMobility@@QAEXABVQUrl@@PBD@Z @ 133 NONAME ; void QtMobility::QMediaPlaylist::load(class QUrl const &, char const *) + ??8QtMobility@@YA_NABVQMediaTimeInterval@0@0@Z @ 134 NONAME ; bool QtMobility::operator==(class QtMobility::QMediaTimeInterval const &, class QtMobility::QMediaTimeInterval const &) + ?getStaticMetaObject@QMediaPlaylistNavigator@QtMobility@@SAABUQMetaObject@@XZ @ 135 NONAME ; struct QMetaObject const & QtMobility::QMediaPlaylistNavigator::getStaticMetaObject(void) + ?save@QMediaPlaylistProvider@QtMobility@@UAE_NABVQUrl@@PBD@Z @ 136 NONAME ; bool QtMobility::QMediaPlaylistProvider::save(class QUrl const &, char const *) + ?metaData@QMediaObject@QtMobility@@QBE?AVQVariant@@W4MetaData@QtMedia@2@@Z @ 137 NONAME ; class QVariant QtMobility::QMediaObject::metaData(enum QtMobility::QtMedia::MetaData) const + ?media@QMediaImageViewer@QtMobility@@QBE?AVQMediaContent@2@XZ @ 138 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaImageViewer::media(void) const + ?frequencyChanged@QRadioTuner@QtMobility@@IAEXH@Z @ 139 NONAME ; void QtMobility::QRadioTuner::frequencyChanged(int) + ??_EQVideoWidgetControl@QtMobility@@UAE@I@Z @ 140 NONAME ; QtMobility::QVideoWidgetControl::~QVideoWidgetControl(unsigned int) + ?qt_metacast@QMediaService@QtMobility@@UAEPAXPBD@Z @ 141 NONAME ; void * QtMobility::QMediaService::qt_metacast(char const *) + ?qt_metacall@QMediaServiceProvider@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 142 NONAME ; int QtMobility::QMediaServiceProvider::qt_metacall(enum QMetaObject::Call, int, void * *) + ?volumeChanged@QMediaPlayer@QtMobility@@IAEXH@Z @ 143 NONAME ; void QtMobility::QMediaPlayer::volumeChanged(int) + ?trUtf8@QMediaPlaylist@QtMobility@@SA?AVQString@@PBD0@Z @ 144 NONAME ; class QString QtMobility::QMediaPlaylist::trUtf8(char const *, char const *) + ??0QMediaService@QtMobility@@IAE@PAVQObject@@@Z @ 145 NONAME ; QtMobility::QMediaService::QMediaService(class QObject *) + ?timerEvent@QMediaImageViewer@QtMobility@@MAEXPAVQTimerEvent@@@Z @ 146 NONAME ; void QtMobility::QMediaImageViewer::timerEvent(class QTimerEvent *) + ??1QMediaPlaylistProvider@QtMobility@@UAE@XZ @ 147 NONAME ; QtMobility::QMediaPlaylistProvider::~QMediaPlaylistProvider(void) + ?media@QMediaPlaylist@QtMobility@@QBE?AVQMediaContent@2@H@Z @ 148 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylist::media(int) const + ?bind@QMediaPlayer@QtMobility@@UAEXPAVQObject@@@Z @ 149 NONAME ; void QtMobility::QMediaPlayer::bind(class QObject *) + ??_EQMediaPlaylistNavigator@QtMobility@@UAE@I@Z @ 150 NONAME ; QtMobility::QMediaPlaylistNavigator::~QMediaPlaylistNavigator(unsigned int) + ?trUtf8@QMediaImageViewer@QtMobility@@SA?AVQString@@PBD0H@Z @ 151 NONAME ; class QString QtMobility::QMediaImageViewer::trUtf8(char const *, char const *, int) + ??1QMediaResource@QtMobility@@QAE@XZ @ 152 NONAME ; QtMobility::QMediaResource::~QMediaResource(void) + ?trUtf8@QMediaStreamsControl@QtMobility@@SA?AVQString@@PBD0@Z @ 153 NONAME ; class QString QtMobility::QMediaStreamsControl::trUtf8(char const *, char const *) + ?qt_metacast@QVideoWidgetControl@QtMobility@@UAEPAXPBD@Z @ 154 NONAME ; void * QtMobility::QVideoWidgetControl::qt_metacast(char const *) + ?tr@QVideoWidget@QtMobility@@SA?AVQString@@PBD0H@Z @ 155 NONAME ; class QString QtMobility::QVideoWidget::tr(char const *, char const *, int) + ??1QMediaTimeRange@QtMobility@@QAE@XZ @ 156 NONAME ; QtMobility::QMediaTimeRange::~QMediaTimeRange(void) + ?tr@QLocalMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 157 NONAME ; class QString QtMobility::QLocalMediaPlaylistProvider::tr(char const *, char const *) + ?mediaAboutToBeInserted@QMediaPlaylistProvider@QtMobility@@IAEXHH@Z @ 158 NONAME ; void QtMobility::QMediaPlaylistProvider::mediaAboutToBeInserted(int, int) + ?deviceDescription@QMediaServiceProvider@QtMobility@@UAE?AVQString@@ABVQByteArray@@0@Z @ 159 NONAME ; class QString QtMobility::QMediaServiceProvider::deviceDescription(class QByteArray const &, class QByteArray const &) + ?setMuted@QMediaPlayer@QtMobility@@QAEX_N@Z @ 160 NONAME ; void QtMobility::QMediaPlayer::setMuted(bool) + ?setEncodingMode@QAudioEncoderSettings@QtMobility@@QAEXW4EncodingMode@QtMedia@2@@Z @ 161 NONAME ; void QtMobility::QAudioEncoderSettings::setEncodingMode(enum QtMobility::QtMedia::EncodingMode) + ?setVideoBitRate@QMediaResource@QtMobility@@QAEXH@Z @ 162 NONAME ; void QtMobility::QMediaResource::setVideoBitRate(int) + ?pause@QMediaRecorder@QtMobility@@QAEXXZ @ 163 NONAME ; void QtMobility::QMediaRecorder::pause(void) + ??_EQAudioEndpointSelector@QtMobility@@UAE@I@Z @ 164 NONAME ; QtMobility::QAudioEndpointSelector::~QAudioEndpointSelector(unsigned int) + ?playbackRateChanged@QMediaPlayer@QtMobility@@IAEXM@Z @ 165 NONAME ; void QtMobility::QMediaPlayer::playbackRateChanged(float) + ?d_func@QGraphicsVideoItem@QtMobility@@AAEPAVQGraphicsVideoItemPrivate@2@XZ @ 166 NONAME ; class QtMobility::QGraphicsVideoItemPrivate * QtMobility::QGraphicsVideoItem::d_func(void) + ??0QAudioEndpointSelector@QtMobility@@IAE@PAVQObject@@@Z @ 167 NONAME ; QtMobility::QAudioEndpointSelector::QAudioEndpointSelector(class QObject *) + ?mediaInserted@QMediaPlaylist@QtMobility@@IAEXHH@Z @ 168 NONAME ; void QtMobility::QMediaPlaylist::mediaInserted(int, int) + ?staticMetaObject@QMediaContainerControl@QtMobility@@2UQMetaObject@@B @ 169 NONAME ; struct QMetaObject const QtMobility::QMediaContainerControl::staticMetaObject + ?qt_metacast@QMediaPlayer@QtMobility@@UAEPAXPBD@Z @ 170 NONAME ; void * QtMobility::QMediaPlayer::qt_metacast(char const *) + ?defaultServiceProvider@QMediaServiceProvider@QtMobility@@SAPAV12@XZ @ 171 NONAME ; class QtMobility::QMediaServiceProvider * QtMobility::QMediaServiceProvider::defaultServiceProvider(void) + ?d_func@QAudioCaptureSource@QtMobility@@ABEPBVQAudioCaptureSourcePrivate@2@XZ @ 172 NONAME ; class QtMobility::QAudioCaptureSourcePrivate const * QtMobility::QAudioCaptureSource::d_func(void) const + ??_EQMetaDataControl@QtMobility@@UAE@I@Z @ 173 NONAME ; QtMobility::QMetaDataControl::~QMetaDataControl(unsigned int) + ??0QVideoEncoderControl@QtMobility@@IAE@PAVQObject@@@Z @ 174 NONAME ; QtMobility::QVideoEncoderControl::QVideoEncoderControl(class QObject *) + ?setCurrentIndex@QMediaPlaylist@QtMobility@@QAEXH@Z @ 175 NONAME ; void QtMobility::QMediaPlaylist::setCurrentIndex(int) + ?qt_metacall@QVideoRendererControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 176 NONAME ; int QtMobility::QVideoRendererControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ?metaObject@QVideoDeviceControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 177 NONAME ; struct QMetaObject const * QtMobility::QVideoDeviceControl::metaObject(void) const + ?durationChanged@QMediaPlayerControl@QtMobility@@IAEX_J@Z @ 178 NONAME ; void QtMobility::QMediaPlayerControl::durationChanged(long long) + ?addMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 179 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::addMedia(class QList const &) + ??_EQLocalMediaPlaylistProvider@QtMobility@@UAE@I@Z @ 180 NONAME ; QtMobility::QLocalMediaPlaylistProvider::~QLocalMediaPlaylistProvider(unsigned int) + ?supportedAudioCodecs@QMediaRecorder@QtMobility@@QBE?AVQStringList@@XZ @ 181 NONAME ; class QStringList QtMobility::QMediaRecorder::supportedAudioCodecs(void) const + ?canonicalResource@QMediaContent@QtMobility@@QBE?AVQMediaResource@2@XZ @ 182 NONAME ; class QtMobility::QMediaResource QtMobility::QMediaContent::canonicalResource(void) const + ?bitRate@QAudioEncoderSettings@QtMobility@@QBEHXZ @ 183 NONAME ; int QtMobility::QAudioEncoderSettings::bitRate(void) const + ?setChannelCount@QAudioEncoderSettings@QtMobility@@QAEXH@Z @ 184 NONAME ; void QtMobility::QAudioEncoderSettings::setChannelCount(int) + ??0QMediaPlayer@QtMobility@@QAE@PAVQObject@@V?$QFlags@W4Flag@QMediaPlayer@QtMobility@@@@PAVQMediaServiceProvider@1@@Z @ 185 NONAME ; QtMobility::QMediaPlayer::QMediaPlayer(class QObject *, class QFlags, class QtMobility::QMediaServiceProvider *) + ?trUtf8@QMediaContainerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 186 NONAME ; class QString QtMobility::QMediaContainerControl::trUtf8(char const *, char const *) + ?contains@QMediaTimeInterval@QtMobility@@QBE_N_J@Z @ 187 NONAME ; bool QtMobility::QMediaTimeInterval::contains(long long) const + ?qt_metacall@QVideoEncoderControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 188 NONAME ; int QtMobility::QVideoEncoderControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ?trUtf8@QMediaObject@QtMobility@@SA?AVQString@@PBD0H@Z @ 189 NONAME ; class QString QtMobility::QMediaObject::trUtf8(char const *, char const *, int) + ?state@QRadioTuner@QtMobility@@QBE?AW4State@12@XZ @ 190 NONAME ; enum QtMobility::QRadioTuner::State QtMobility::QRadioTuner::state(void) const + ??0QVideoWidgetControl@QtMobility@@IAE@PAVQObject@@@Z @ 191 NONAME ; QtMobility::QVideoWidgetControl::QVideoWidgetControl(class QObject *) + ?setQuality@QVideoEncoderSettings@QtMobility@@QAEXW4EncodingQuality@QtMedia@2@@Z @ 192 NONAME ; void QtMobility::QVideoEncoderSettings::setQuality(enum QtMobility::QtMedia::EncodingQuality) + ?shuffle@QMediaPlaylist@QtMobility@@QAEXXZ @ 193 NONAME ; void QtMobility::QMediaPlaylist::shuffle(void) + ?notifyInterval@QMediaObject@QtMobility@@QBEHXZ @ 194 NONAME ; int QtMobility::QMediaObject::notifyInterval(void) const + ?trUtf8@QMediaPlaylistNavigator@QtMobility@@SA?AVQString@@PBD0@Z @ 195 NONAME ; class QString QtMobility::QMediaPlaylistNavigator::trUtf8(char const *, char const *) + ??_EQMediaPlaylistIOPlugin@QtMobility@@UAE@I@Z @ 196 NONAME ; QtMobility::QMediaPlaylistIOPlugin::~QMediaPlaylistIOPlugin(unsigned int) + ?removeInterval@QMediaTimeRange@QtMobility@@QAEX_J0@Z @ 197 NONAME ; void QtMobility::QMediaTimeRange::removeInterval(long long, long long) + ?paint@QGraphicsVideoItem@QtMobility@@UAEXPAVQPainter@@PBVQStyleOptionGraphicsItem@@PAVQWidget@@@Z @ 198 NONAME ; void QtMobility::QGraphicsVideoItem::paint(class QPainter *, class QStyleOptionGraphicsItem const *, class QWidget *) + ?qt_metacast@QMediaRecorderControl@QtMobility@@UAEPAXPBD@Z @ 199 NONAME ; void * QtMobility::QMediaRecorderControl::qt_metacast(char const *) + ?mutedChanged@QMediaPlayerControl@QtMobility@@IAEX_N@Z @ 200 NONAME ; void QtMobility::QMediaPlayerControl::mutedChanged(bool) + ??8QAudioEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 201 NONAME ; bool QtMobility::QAudioEncoderSettings::operator==(class QtMobility::QAudioEncoderSettings const &) const + ??0QMediaStreamsControl@QtMobility@@IAE@PAVQObject@@@Z @ 202 NONAME ; QtMobility::QMediaStreamsControl::QMediaStreamsControl(class QObject *) + ?isReadOnly@QMediaPlaylist@QtMobility@@QBE_NXZ @ 203 NONAME ; bool QtMobility::QMediaPlaylist::isReadOnly(void) const ?activeAudioInputChanged@QAudioCaptureSource@QtMobility@@IAEXABVQString@@@Z @ 204 NONAME ; void QtMobility::QAudioCaptureSource::activeAudioInputChanged(class QString const &) - ?activeEndpointChanged@QAudioEndpointSelector@QtMobility@@IAEXABVQString@@@Z @ 205 NONAME ; void QtMobility::QAudioEndpointSelector::activeEndpointChanged(class QString const &) - ?activeStreamsChanged@QMediaStreamsControl@QtMobility@@IAEXXZ @ 206 NONAME ; void QtMobility::QMediaStreamsControl::activeStreamsChanged(void) - ?addInterval@QMediaTimeRange@QtMobility@@QAEXABVQMediaTimeInterval@2@@Z @ 207 NONAME ; void QtMobility::QMediaTimeRange::addInterval(class QtMobility::QMediaTimeInterval const &) - ?addInterval@QMediaTimeRange@QtMobility@@QAEX_J0@Z @ 208 NONAME ; void QtMobility::QMediaTimeRange::addInterval(long long, long long) - ?addMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 209 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::addMedia(class QList const &) - ?addMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NABVQMediaContent@2@@Z @ 210 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::addMedia(class QtMobility::QMediaContent const &) - ?addMedia@QMediaPlaylist@QtMobility@@QAE_NABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 211 NONAME ; bool QtMobility::QMediaPlaylist::addMedia(class QList const &) - ?addMedia@QMediaPlaylist@QtMobility@@QAE_NABVQMediaContent@2@@Z @ 212 NONAME ; bool QtMobility::QMediaPlaylist::addMedia(class QtMobility::QMediaContent const &) - ?addMedia@QMediaPlaylistProvider@QtMobility@@UAE_NABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 213 NONAME ; bool QtMobility::QMediaPlaylistProvider::addMedia(class QList const &) - ?addMedia@QMediaPlaylistProvider@QtMobility@@UAE_NABVQMediaContent@2@@Z @ 214 NONAME ; bool QtMobility::QMediaPlaylistProvider::addMedia(class QtMobility::QMediaContent const &) - ?addPropertyWatch@QMediaObject@QtMobility@@IAEXABVQByteArray@@@Z @ 215 NONAME ; void QtMobility::QMediaObject::addPropertyWatch(class QByteArray const &) - ?addTimeRange@QMediaTimeRange@QtMobility@@QAEXABV12@@Z @ 216 NONAME ; void QtMobility::QMediaTimeRange::addTimeRange(class QtMobility::QMediaTimeRange const &) - ?aperture@QCamera@QtMobility@@QBEMXZ @ 217 NONAME ; float QtMobility::QCamera::aperture(void) const - ?apertureChanged@QCamera@QtMobility@@IAEXM@Z @ 218 NONAME ; void QtMobility::QCamera::apertureChanged(float) - ?apertureChanged@QCameraExposureControl@QtMobility@@IAEXM@Z @ 219 NONAME ; void QtMobility::QCameraExposureControl::apertureChanged(float) - ?apertureRangeChanged@QCamera@QtMobility@@IAEXXZ @ 220 NONAME ; void QtMobility::QCamera::apertureRangeChanged(void) - ?apertureRangeChanged@QCameraExposureControl@QtMobility@@IAEXXZ @ 221 NONAME ; void QtMobility::QCameraExposureControl::apertureRangeChanged(void) - ?aspectRatioMode@QGraphicsVideoItem@QtMobility@@QBE?AW4AspectRatioMode@Qt@@XZ @ 222 NONAME ; enum Qt::AspectRatioMode QtMobility::QGraphicsVideoItem::aspectRatioMode(void) const - ?aspectRatioMode@QVideoWidget@QtMobility@@QBE?AW4AspectRatioMode@12@XZ @ 223 NONAME ; enum QtMobility::QVideoWidget::AspectRatioMode QtMobility::QVideoWidget::aspectRatioMode(void) const - ?audioAvailableChanged@QMediaPlayer@QtMobility@@IAEX_N@Z @ 224 NONAME ; void QtMobility::QMediaPlayer::audioAvailableChanged(bool) - ?audioAvailableChanged@QMediaPlayerControl@QtMobility@@IAEX_N@Z @ 225 NONAME ; void QtMobility::QMediaPlayerControl::audioAvailableChanged(bool) - ?audioBitRate@QMediaResource@QtMobility@@QBEHXZ @ 226 NONAME ; int QtMobility::QMediaResource::audioBitRate(void) const - ?audioCodec@QMediaResource@QtMobility@@QBE?AVQString@@XZ @ 227 NONAME ; class QString QtMobility::QMediaResource::audioCodec(void) const - ?audioCodecDescription@QMediaRecorder@QtMobility@@QBE?AVQString@@ABV3@@Z @ 228 NONAME ; class QString QtMobility::QMediaRecorder::audioCodecDescription(class QString const &) const - ?audioDescription@QAudioCaptureSource@QtMobility@@QBE?AVQString@@ABV3@@Z @ 229 NONAME ; class QString QtMobility::QAudioCaptureSource::audioDescription(class QString const &) const - ?audioInputs@QAudioCaptureSource@QtMobility@@QBE?AV?$QList@VQString@@@@XZ @ 230 NONAME ; class QList QtMobility::QAudioCaptureSource::audioInputs(void) const - ?audioSettings@QMediaRecorder@QtMobility@@QBE?AVQAudioEncoderSettings@2@XZ @ 231 NONAME ; class QtMobility::QAudioEncoderSettings QtMobility::QMediaRecorder::audioSettings(void) const - ?availabilityChanged@QMediaObject@QtMobility@@IAEX_N@Z @ 232 NONAME ; void QtMobility::QMediaObject::availabilityChanged(bool) - ?availabilityError@QAudioCaptureSource@QtMobility@@UBE?AW4AvailabilityError@QtMedia@2@XZ @ 233 NONAME ; enum QtMobility::QtMedia::AvailabilityError QtMobility::QAudioCaptureSource::availabilityError(void) const - ?availabilityError@QCamera@QtMobility@@UBE?AW4AvailabilityError@QtMedia@2@XZ @ 234 NONAME ; enum QtMobility::QtMedia::AvailabilityError QtMobility::QCamera::availabilityError(void) const - ?availabilityError@QMediaObject@QtMobility@@UBE?AW4AvailabilityError@QtMedia@2@XZ @ 235 NONAME ; enum QtMobility::QtMedia::AvailabilityError QtMobility::QMediaObject::availabilityError(void) const - ?availabilityError@QMediaRecorder@QtMobility@@UBE?AW4AvailabilityError@QtMedia@2@XZ @ 236 NONAME ; enum QtMobility::QtMedia::AvailabilityError QtMobility::QMediaRecorder::availabilityError(void) const - ?availabilityError@QRadioTuner@QtMobility@@UBE?AW4AvailabilityError@QtMedia@2@XZ @ 237 NONAME ; enum QtMobility::QtMedia::AvailabilityError QtMobility::QRadioTuner::availabilityError(void) const - ?availabilityError@QStillImageCapture@QtMobility@@UBE?AW4AvailabilityError@QtMedia@2@XZ @ 238 NONAME ; enum QtMobility::QtMedia::AvailabilityError QtMobility::QStillImageCapture::availabilityError(void) const - ?availableAudioInputsChanged@QAudioCaptureSource@QtMobility@@IAEXXZ @ 239 NONAME ; void QtMobility::QAudioCaptureSource::availableAudioInputsChanged(void) - ?availableDevices@QCamera@QtMobility@@SA?AV?$QList@VQByteArray@@@@XZ @ 240 NONAME ; class QList QtMobility::QCamera::availableDevices(void) - ?availableEndpointsChanged@QAudioEndpointSelector@QtMobility@@IAEXXZ @ 241 NONAME ; void QtMobility::QAudioEndpointSelector::availableEndpointsChanged(void) - ?availableExtendedMetaData@QMediaObject@QtMobility@@QBE?AVQStringList@@XZ @ 242 NONAME ; class QStringList QtMobility::QMediaObject::availableExtendedMetaData(void) const - ?availableMetaData@QMediaObject@QtMobility@@QBE?AV?$QList@W4MetaData@QtMedia@QtMobility@@@@XZ @ 243 NONAME ; class QList QtMobility::QMediaObject::availableMetaData(void) const - ?availableOutputsChanged@QVideoOutputControl@QtMobility@@IAEXABV?$QList@W4Output@QVideoOutputControl@QtMobility@@@@@Z @ 244 NONAME ; void QtMobility::QVideoOutputControl::availableOutputsChanged(class QList const &) - ?availablePlaybackRangesChanged@QMediaPlayerControl@QtMobility@@IAEXABVQMediaTimeRange@2@@Z @ 245 NONAME ; void QtMobility::QMediaPlayerControl::availablePlaybackRangesChanged(class QtMobility::QMediaTimeRange const &) - ?band@QRadioTuner@QtMobility@@QBE?AW4Band@12@XZ @ 246 NONAME ; enum QtMobility::QRadioTuner::Band QtMobility::QRadioTuner::band(void) const - ?bandChanged@QRadioTuner@QtMobility@@IAEXW4Band@12@@Z @ 247 NONAME ; void QtMobility::QRadioTuner::bandChanged(enum QtMobility::QRadioTuner::Band) - ?bandChanged@QRadioTunerControl@QtMobility@@IAEXW4Band@QRadioTuner@2@@Z @ 248 NONAME ; void QtMobility::QRadioTunerControl::bandChanged(enum QtMobility::QRadioTuner::Band) - ?bind@QMediaImageViewer@QtMobility@@UAEXPAVQObject@@@Z @ 249 NONAME ; void QtMobility::QMediaImageViewer::bind(class QObject *) - ?bind@QMediaObject@QtMobility@@UAEXPAVQObject@@@Z @ 250 NONAME ; void QtMobility::QMediaObject::bind(class QObject *) - ?bind@QMediaPlayer@QtMobility@@UAEXPAVQObject@@@Z @ 251 NONAME ; void QtMobility::QMediaPlayer::bind(class QObject *) - ?bitRate@QAudioEncoderSettings@QtMobility@@QBEHXZ @ 252 NONAME ; int QtMobility::QAudioEncoderSettings::bitRate(void) const - ?bitRate@QVideoEncoderSettings@QtMobility@@QBEHXZ @ 253 NONAME ; int QtMobility::QVideoEncoderSettings::bitRate(void) const - ?boundingRect@QGraphicsVideoItem@QtMobility@@UBE?AVQRectF@@XZ @ 254 NONAME ; class QRectF QtMobility::QGraphicsVideoItem::boundingRect(void) const - ?brightness@QVideoWidget@QtMobility@@QBEHXZ @ 255 NONAME ; int QtMobility::QVideoWidget::brightness(void) const - ?brightnessChanged@QVideoWidget@QtMobility@@IAEXH@Z @ 256 NONAME ; void QtMobility::QVideoWidget::brightnessChanged(int) - ?brightnessChanged@QVideoWidgetControl@QtMobility@@IAEXH@Z @ 257 NONAME ; void QtMobility::QVideoWidgetControl::brightnessChanged(int) - ?brightnessChanged@QVideoWindowControl@QtMobility@@IAEXH@Z @ 258 NONAME ; void QtMobility::QVideoWindowControl::brightnessChanged(int) - ?bufferStatus@QMediaPlayer@QtMobility@@QBEHXZ @ 259 NONAME ; int QtMobility::QMediaPlayer::bufferStatus(void) const - ?bufferStatusChanged@QMediaPlayer@QtMobility@@IAEXH@Z @ 260 NONAME ; void QtMobility::QMediaPlayer::bufferStatusChanged(int) - ?bufferStatusChanged@QMediaPlayerControl@QtMobility@@IAEXH@Z @ 261 NONAME ; void QtMobility::QMediaPlayerControl::bufferStatusChanged(int) - ?cancelFocusing@QCamera@QtMobility@@QAEXXZ @ 262 NONAME ; void QtMobility::QCamera::cancelFocusing(void) - ?cancelSearch@QRadioTuner@QtMobility@@QAEXXZ @ 263 NONAME ; void QtMobility::QRadioTuner::cancelSearch(void) - ?canonicalResource@QMediaContent@QtMobility@@QBE?AVQMediaResource@2@XZ @ 264 NONAME ; class QtMobility::QMediaResource QtMobility::QMediaContent::canonicalResource(void) const - ?canonicalUrl@QMediaContent@QtMobility@@QBE?AVQUrl@@XZ @ 265 NONAME ; class QUrl QtMobility::QMediaContent::canonicalUrl(void) const - ?capture@QStillImageCapture@QtMobility@@QAEXABVQString@@@Z @ 266 NONAME ; void QtMobility::QStillImageCapture::capture(class QString const &) - ?captureMode@QCamera@QtMobility@@QBE?AW4CaptureMode@12@XZ @ 267 NONAME ; enum QtMobility::QCamera::CaptureMode QtMobility::QCamera::captureMode(void) const - ?captureModeChanged@QCamera@QtMobility@@IAEXW4CaptureMode@12@@Z @ 268 NONAME ; void QtMobility::QCamera::captureModeChanged(enum QtMobility::QCamera::CaptureMode) - ?captureModeChanged@QCameraControl@QtMobility@@IAEXW4CaptureMode@QCamera@2@@Z @ 269 NONAME ; void QtMobility::QCameraControl::captureModeChanged(enum QtMobility::QCamera::CaptureMode) - ?channelCount@QAudioEncoderSettings@QtMobility@@QBEHXZ @ 270 NONAME ; int QtMobility::QAudioEncoderSettings::channelCount(void) const - ?channelCount@QMediaResource@QtMobility@@QBEHXZ @ 271 NONAME ; int QtMobility::QMediaResource::channelCount(void) const - ?clear@QLocalMediaPlaylistProvider@QtMobility@@UAE_NXZ @ 272 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::clear(void) - ?clear@QMediaPlaylist@QtMobility@@QAE_NXZ @ 273 NONAME ; bool QtMobility::QMediaPlaylist::clear(void) - ?clear@QMediaPlaylistProvider@QtMobility@@UAE_NXZ @ 274 NONAME ; bool QtMobility::QMediaPlaylistProvider::clear(void) - ?clear@QMediaTimeRange@QtMobility@@QAEXXZ @ 275 NONAME ; void QtMobility::QMediaTimeRange::clear(void) - ?codec@QAudioEncoderSettings@QtMobility@@QBE?AVQString@@XZ @ 276 NONAME ; class QString QtMobility::QAudioEncoderSettings::codec(void) const - ?codec@QImageEncoderSettings@QtMobility@@QBE?AVQString@@XZ @ 277 NONAME ; class QString QtMobility::QImageEncoderSettings::codec(void) const - ?codec@QVideoEncoderSettings@QtMobility@@QBE?AVQString@@XZ @ 278 NONAME ; class QString QtMobility::QVideoEncoderSettings::codec(void) const - ?codecs@QMediaServiceProviderHint@QtMobility@@QBE?AVQStringList@@XZ @ 279 NONAME ; class QStringList QtMobility::QMediaServiceProviderHint::codecs(void) const - ?containerDescription@QMediaRecorder@QtMobility@@QBE?AVQString@@ABV3@@Z @ 280 NONAME ; class QString QtMobility::QMediaRecorder::containerDescription(class QString const &) const - ?containerMimeType@QMediaRecorder@QtMobility@@QBE?AVQString@@XZ @ 281 NONAME ; class QString QtMobility::QMediaRecorder::containerMimeType(void) const - ?contains@QMediaTimeInterval@QtMobility@@QBE_N_J@Z @ 282 NONAME ; bool QtMobility::QMediaTimeInterval::contains(long long) const - ?contains@QMediaTimeRange@QtMobility@@QBE_N_J@Z @ 283 NONAME ; bool QtMobility::QMediaTimeRange::contains(long long) const - ?contrast@QVideoWidget@QtMobility@@QBEHXZ @ 284 NONAME ; int QtMobility::QVideoWidget::contrast(void) const - ?contrastChanged@QVideoWidget@QtMobility@@IAEXH@Z @ 285 NONAME ; void QtMobility::QVideoWidget::contrastChanged(int) - ?contrastChanged@QVideoWidgetControl@QtMobility@@IAEXH@Z @ 286 NONAME ; void QtMobility::QVideoWidgetControl::contrastChanged(int) - ?contrastChanged@QVideoWindowControl@QtMobility@@IAEXH@Z @ 287 NONAME ; void QtMobility::QVideoWindowControl::contrastChanged(int) - ?currentIndex@QMediaPlaylist@QtMobility@@QBEHXZ @ 288 NONAME ; int QtMobility::QMediaPlaylist::currentIndex(void) const - ?currentIndex@QMediaPlaylistNavigator@QtMobility@@QBEHXZ @ 289 NONAME ; int QtMobility::QMediaPlaylistNavigator::currentIndex(void) const - ?currentIndexChanged@QMediaPlaylist@QtMobility@@IAEXH@Z @ 290 NONAME ; void QtMobility::QMediaPlaylist::currentIndexChanged(int) - ?currentIndexChanged@QMediaPlaylistControl@QtMobility@@IAEXH@Z @ 291 NONAME ; void QtMobility::QMediaPlaylistControl::currentIndexChanged(int) - ?currentIndexChanged@QMediaPlaylistNavigator@QtMobility@@IAEXH@Z @ 292 NONAME ; void QtMobility::QMediaPlaylistNavigator::currentIndexChanged(int) - ?currentItem@QMediaPlaylistNavigator@QtMobility@@QBE?AVQMediaContent@2@XZ @ 293 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylistNavigator::currentItem(void) const - ?currentMedia@QMediaPlaylist@QtMobility@@QBE?AVQMediaContent@2@XZ @ 294 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylist::currentMedia(void) const - ?currentMediaChanged@QMediaPlaylist@QtMobility@@IAEXABVQMediaContent@2@@Z @ 295 NONAME ; void QtMobility::QMediaPlaylist::currentMediaChanged(class QtMobility::QMediaContent const &) - ?currentMediaChanged@QMediaPlaylistControl@QtMobility@@IAEXABVQMediaContent@2@@Z @ 296 NONAME ; void QtMobility::QMediaPlaylistControl::currentMediaChanged(class QtMobility::QMediaContent const &) - ?d_func@QAudioCaptureSource@QtMobility@@AAEPAVQAudioCaptureSourcePrivate@2@XZ @ 297 NONAME ; class QtMobility::QAudioCaptureSourcePrivate * QtMobility::QAudioCaptureSource::d_func(void) - ?d_func@QAudioCaptureSource@QtMobility@@ABEPBVQAudioCaptureSourcePrivate@2@XZ @ 298 NONAME ; class QtMobility::QAudioCaptureSourcePrivate const * QtMobility::QAudioCaptureSource::d_func(void) const - ?d_func@QCamera@QtMobility@@AAEPAVQCameraPrivate@2@XZ @ 299 NONAME ; class QtMobility::QCameraPrivate * QtMobility::QCamera::d_func(void) - ?d_func@QCamera@QtMobility@@ABEPBVQCameraPrivate@2@XZ @ 300 NONAME ; class QtMobility::QCameraPrivate const * QtMobility::QCamera::d_func(void) const - ?d_func@QGraphicsVideoItem@QtMobility@@AAEPAVQGraphicsVideoItemPrivate@2@XZ @ 301 NONAME ; class QtMobility::QGraphicsVideoItemPrivate * QtMobility::QGraphicsVideoItem::d_func(void) - ?d_func@QGraphicsVideoItem@QtMobility@@ABEPBVQGraphicsVideoItemPrivate@2@XZ @ 302 NONAME ; class QtMobility::QGraphicsVideoItemPrivate const * QtMobility::QGraphicsVideoItem::d_func(void) const - ?d_func@QLocalMediaPlaylistProvider@QtMobility@@AAEPAVQLocalMediaPlaylistProviderPrivate@2@XZ @ 303 NONAME ; class QtMobility::QLocalMediaPlaylistProviderPrivate * QtMobility::QLocalMediaPlaylistProvider::d_func(void) - ?d_func@QLocalMediaPlaylistProvider@QtMobility@@ABEPBVQLocalMediaPlaylistProviderPrivate@2@XZ @ 304 NONAME ; class QtMobility::QLocalMediaPlaylistProviderPrivate const * QtMobility::QLocalMediaPlaylistProvider::d_func(void) const - ?d_func@QMediaControl@QtMobility@@AAEPAVQMediaControlPrivate@2@XZ @ 305 NONAME ; class QtMobility::QMediaControlPrivate * QtMobility::QMediaControl::d_func(void) - ?d_func@QMediaControl@QtMobility@@ABEPBVQMediaControlPrivate@2@XZ @ 306 NONAME ; class QtMobility::QMediaControlPrivate const * QtMobility::QMediaControl::d_func(void) const - ?d_func@QMediaImageViewer@QtMobility@@AAEPAVQMediaImageViewerPrivate@2@XZ @ 307 NONAME ; class QtMobility::QMediaImageViewerPrivate * QtMobility::QMediaImageViewer::d_func(void) - ?d_func@QMediaImageViewer@QtMobility@@ABEPBVQMediaImageViewerPrivate@2@XZ @ 308 NONAME ; class QtMobility::QMediaImageViewerPrivate const * QtMobility::QMediaImageViewer::d_func(void) const - ?d_func@QMediaObject@QtMobility@@AAEPAVQMediaObjectPrivate@2@XZ @ 309 NONAME ; class QtMobility::QMediaObjectPrivate * QtMobility::QMediaObject::d_func(void) - ?d_func@QMediaObject@QtMobility@@ABEPBVQMediaObjectPrivate@2@XZ @ 310 NONAME ; class QtMobility::QMediaObjectPrivate const * QtMobility::QMediaObject::d_func(void) const - ?d_func@QMediaPlayer@QtMobility@@AAEPAVQMediaPlayerPrivate@2@XZ @ 311 NONAME ; class QtMobility::QMediaPlayerPrivate * QtMobility::QMediaPlayer::d_func(void) - ?d_func@QMediaPlayer@QtMobility@@ABEPBVQMediaPlayerPrivate@2@XZ @ 312 NONAME ; class QtMobility::QMediaPlayerPrivate const * QtMobility::QMediaPlayer::d_func(void) const - ?d_func@QMediaPlaylist@QtMobility@@AAEPAVQMediaPlaylistPrivate@2@XZ @ 313 NONAME ; class QtMobility::QMediaPlaylistPrivate * QtMobility::QMediaPlaylist::d_func(void) - ?d_func@QMediaPlaylist@QtMobility@@ABEPBVQMediaPlaylistPrivate@2@XZ @ 314 NONAME ; class QtMobility::QMediaPlaylistPrivate const * QtMobility::QMediaPlaylist::d_func(void) const - ?d_func@QMediaPlaylistNavigator@QtMobility@@AAEPAVQMediaPlaylistNavigatorPrivate@2@XZ @ 315 NONAME ; class QtMobility::QMediaPlaylistNavigatorPrivate * QtMobility::QMediaPlaylistNavigator::d_func(void) - ?d_func@QMediaPlaylistNavigator@QtMobility@@ABEPBVQMediaPlaylistNavigatorPrivate@2@XZ @ 316 NONAME ; class QtMobility::QMediaPlaylistNavigatorPrivate const * QtMobility::QMediaPlaylistNavigator::d_func(void) const - ?d_func@QMediaPlaylistProvider@QtMobility@@AAEPAVQMediaPlaylistProviderPrivate@2@XZ @ 317 NONAME ; class QtMobility::QMediaPlaylistProviderPrivate * QtMobility::QMediaPlaylistProvider::d_func(void) - ?d_func@QMediaPlaylistProvider@QtMobility@@ABEPBVQMediaPlaylistProviderPrivate@2@XZ @ 318 NONAME ; class QtMobility::QMediaPlaylistProviderPrivate const * QtMobility::QMediaPlaylistProvider::d_func(void) const - ?d_func@QMediaRecorder@QtMobility@@AAEPAVQMediaRecorderPrivate@2@XZ @ 319 NONAME ; class QtMobility::QMediaRecorderPrivate * QtMobility::QMediaRecorder::d_func(void) - ?d_func@QMediaRecorder@QtMobility@@ABEPBVQMediaRecorderPrivate@2@XZ @ 320 NONAME ; class QtMobility::QMediaRecorderPrivate const * QtMobility::QMediaRecorder::d_func(void) const - ?d_func@QMediaService@QtMobility@@AAEPAVQMediaServicePrivate@2@XZ @ 321 NONAME ; class QtMobility::QMediaServicePrivate * QtMobility::QMediaService::d_func(void) - ?d_func@QMediaService@QtMobility@@ABEPBVQMediaServicePrivate@2@XZ @ 322 NONAME ; class QtMobility::QMediaServicePrivate const * QtMobility::QMediaService::d_func(void) const - ?d_func@QRadioTuner@QtMobility@@AAEPAVQRadioTunerPrivate@2@XZ @ 323 NONAME ; class QtMobility::QRadioTunerPrivate * QtMobility::QRadioTuner::d_func(void) - ?d_func@QRadioTuner@QtMobility@@ABEPBVQRadioTunerPrivate@2@XZ @ 324 NONAME ; class QtMobility::QRadioTunerPrivate const * QtMobility::QRadioTuner::d_func(void) const - ?d_func@QStillImageCapture@QtMobility@@AAEPAVQStillImageCapturePrivate@2@XZ @ 325 NONAME ; class QtMobility::QStillImageCapturePrivate * QtMobility::QStillImageCapture::d_func(void) - ?d_func@QStillImageCapture@QtMobility@@ABEPBVQStillImageCapturePrivate@2@XZ @ 326 NONAME ; class QtMobility::QStillImageCapturePrivate const * QtMobility::QStillImageCapture::d_func(void) const - ?d_func@QVideoWidget@QtMobility@@AAEPAVQVideoWidgetPrivate@2@XZ @ 327 NONAME ; class QtMobility::QVideoWidgetPrivate * QtMobility::QVideoWidget::d_func(void) - ?d_func@QVideoWidget@QtMobility@@ABEPBVQVideoWidgetPrivate@2@XZ @ 328 NONAME ; class QtMobility::QVideoWidgetPrivate const * QtMobility::QVideoWidget::d_func(void) const - ?dataSize@QMediaResource@QtMobility@@QBE_JXZ @ 329 NONAME ; long long QtMobility::QMediaResource::dataSize(void) const - ?defaultAudioInput@QAudioCaptureSource@QtMobility@@QBE?AVQString@@XZ @ 330 NONAME ; class QString QtMobility::QAudioCaptureSource::defaultAudioInput(void) const - ?defaultServiceProvider@QMediaServiceProvider@QtMobility@@SAPAV12@XZ @ 331 NONAME ; class QtMobility::QMediaServiceProvider * QtMobility::QMediaServiceProvider::defaultServiceProvider(void) - ?device@QMediaServiceProviderHint@QtMobility@@QBE?AVQByteArray@@XZ @ 332 NONAME ; class QByteArray QtMobility::QMediaServiceProviderHint::device(void) const - ?deviceDescription@QCamera@QtMobility@@SA?AVQString@@ABVQByteArray@@@Z @ 333 NONAME ; class QString QtMobility::QCamera::deviceDescription(class QByteArray const &) - ?deviceDescription@QMediaServiceProvider@QtMobility@@UAE?AVQString@@ABVQByteArray@@0@Z @ 334 NONAME ; class QString QtMobility::QMediaServiceProvider::deviceDescription(class QByteArray const &, class QByteArray const &) - ?devices@QMediaServiceProvider@QtMobility@@UBE?AV?$QList@VQByteArray@@@@ABVQByteArray@@@Z @ 335 NONAME ; class QList QtMobility::QMediaServiceProvider::devices(class QByteArray const &) const - ?devicesChanged@QVideoDeviceControl@QtMobility@@IAEXXZ @ 336 NONAME ; void QtMobility::QVideoDeviceControl::devicesChanged(void) - ?digitalZoom@QCamera@QtMobility@@QBEMXZ @ 337 NONAME ; float QtMobility::QCamera::digitalZoom(void) const - ?digitalZoomChanged@QCamera@QtMobility@@IAEXM@Z @ 338 NONAME ; void QtMobility::QCamera::digitalZoomChanged(float) - ?digitalZoomChanged@QCameraFocusControl@QtMobility@@IAEXM@Z @ 339 NONAME ; void QtMobility::QCameraFocusControl::digitalZoomChanged(float) - ?duration@QMediaPlayer@QtMobility@@QBE_JXZ @ 340 NONAME ; long long QtMobility::QMediaPlayer::duration(void) const - ?duration@QMediaRecorder@QtMobility@@QBE_JXZ @ 341 NONAME ; long long QtMobility::QMediaRecorder::duration(void) const - ?durationChanged@QMediaPlayer@QtMobility@@IAEX_J@Z @ 342 NONAME ; void QtMobility::QMediaPlayer::durationChanged(long long) - ?durationChanged@QMediaPlayerControl@QtMobility@@IAEX_J@Z @ 343 NONAME ; void QtMobility::QMediaPlayerControl::durationChanged(long long) - ?durationChanged@QMediaRecorder@QtMobility@@IAEX_J@Z @ 344 NONAME ; void QtMobility::QMediaRecorder::durationChanged(long long) - ?durationChanged@QMediaRecorderControl@QtMobility@@IAEX_J@Z @ 345 NONAME ; void QtMobility::QMediaRecorderControl::durationChanged(long long) - ?earliestTime@QMediaTimeRange@QtMobility@@QBE_JXZ @ 346 NONAME ; long long QtMobility::QMediaTimeRange::earliestTime(void) const - ?elapsedTime@QMediaImageViewer@QtMobility@@QBEHXZ @ 347 NONAME ; int QtMobility::QMediaImageViewer::elapsedTime(void) const - ?elapsedTimeChanged@QMediaImageViewer@QtMobility@@IAEXH@Z @ 348 NONAME ; void QtMobility::QMediaImageViewer::elapsedTimeChanged(int) - ?encodingMode@QAudioEncoderSettings@QtMobility@@QBE?AW4EncodingMode@QtMedia@2@XZ @ 349 NONAME ; enum QtMobility::QtMedia::EncodingMode QtMobility::QAudioEncoderSettings::encodingMode(void) const - ?encodingMode@QVideoEncoderSettings@QtMobility@@QBE?AW4EncodingMode@QtMedia@2@XZ @ 350 NONAME ; enum QtMobility::QtMedia::EncodingMode QtMobility::QVideoEncoderSettings::encodingMode(void) const - ?encodingSettings@QStillImageCapture@QtMobility@@QBE?AVQImageEncoderSettings@2@XZ @ 351 NONAME ; class QtMobility::QImageEncoderSettings QtMobility::QStillImageCapture::encodingSettings(void) const - ?end@QMediaTimeInterval@QtMobility@@QBE_JXZ @ 352 NONAME ; long long QtMobility::QMediaTimeInterval::end(void) const - ?error@QCamera@QtMobility@@IAEXW4Error@12@@Z @ 353 NONAME ; void QtMobility::QCamera::error(enum QtMobility::QCamera::Error) - ?error@QCamera@QtMobility@@QBE?AW4Error@12@XZ @ 354 NONAME ; enum QtMobility::QCamera::Error QtMobility::QCamera::error(void) const - ?error@QCameraControl@QtMobility@@IAEXHABVQString@@@Z @ 355 NONAME ; void QtMobility::QCameraControl::error(int, class QString const &) - ?error@QImageCaptureControl@QtMobility@@IAEXHABVQString@@@Z @ 356 NONAME ; void QtMobility::QImageCaptureControl::error(int, class QString const &) - ?error@QMediaPlayer@QtMobility@@IAEXW4Error@12@@Z @ 357 NONAME ; void QtMobility::QMediaPlayer::error(enum QtMobility::QMediaPlayer::Error) - ?error@QMediaPlayer@QtMobility@@QBE?AW4Error@12@XZ @ 358 NONAME ; enum QtMobility::QMediaPlayer::Error QtMobility::QMediaPlayer::error(void) const - ?error@QMediaPlayerControl@QtMobility@@IAEXHABVQString@@@Z @ 359 NONAME ; void QtMobility::QMediaPlayerControl::error(int, class QString const &) - ?error@QMediaPlaylist@QtMobility@@QBE?AW4Error@12@XZ @ 360 NONAME ; enum QtMobility::QMediaPlaylist::Error QtMobility::QMediaPlaylist::error(void) const - ?error@QMediaRecorder@QtMobility@@IAEXW4Error@12@@Z @ 361 NONAME ; void QtMobility::QMediaRecorder::error(enum QtMobility::QMediaRecorder::Error) - ?error@QMediaRecorder@QtMobility@@QBE?AW4Error@12@XZ @ 362 NONAME ; enum QtMobility::QMediaRecorder::Error QtMobility::QMediaRecorder::error(void) const - ?error@QMediaRecorderControl@QtMobility@@IAEXHABVQString@@@Z @ 363 NONAME ; void QtMobility::QMediaRecorderControl::error(int, class QString const &) - ?error@QRadioTuner@QtMobility@@IAEXW4Error@12@@Z @ 364 NONAME ; void QtMobility::QRadioTuner::error(enum QtMobility::QRadioTuner::Error) - ?error@QRadioTuner@QtMobility@@QBE?AW4Error@12@XZ @ 365 NONAME ; enum QtMobility::QRadioTuner::Error QtMobility::QRadioTuner::error(void) const - ?error@QRadioTunerControl@QtMobility@@IAEXW4Error@QRadioTuner@2@@Z @ 366 NONAME ; void QtMobility::QRadioTunerControl::error(enum QtMobility::QRadioTuner::Error) - ?error@QStillImageCapture@QtMobility@@IAEXW4Error@12@@Z @ 367 NONAME ; void QtMobility::QStillImageCapture::error(enum QtMobility::QStillImageCapture::Error) - ?error@QStillImageCapture@QtMobility@@QBE?AW4Error@12@XZ @ 368 NONAME ; enum QtMobility::QStillImageCapture::Error QtMobility::QStillImageCapture::error(void) const - ?errorString@QCamera@QtMobility@@QBE?AVQString@@XZ @ 369 NONAME ; class QString QtMobility::QCamera::errorString(void) const - ?errorString@QMediaPlayer@QtMobility@@QBE?AVQString@@XZ @ 370 NONAME ; class QString QtMobility::QMediaPlayer::errorString(void) const - ?errorString@QMediaPlaylist@QtMobility@@QBE?AVQString@@XZ @ 371 NONAME ; class QString QtMobility::QMediaPlaylist::errorString(void) const - ?errorString@QMediaRecorder@QtMobility@@QBE?AVQString@@XZ @ 372 NONAME ; class QString QtMobility::QMediaRecorder::errorString(void) const - ?errorString@QRadioTuner@QtMobility@@QBE?AVQString@@XZ @ 373 NONAME ; class QString QtMobility::QRadioTuner::errorString(void) const - ?errorString@QStillImageCapture@QtMobility@@QBE?AVQString@@XZ @ 374 NONAME ; class QString QtMobility::QStillImageCapture::errorString(void) const - ?event@QVideoWidget@QtMobility@@MAE_NPAVQEvent@@@Z @ 375 NONAME ; bool QtMobility::QVideoWidget::event(class QEvent *) - ?exposureCompensation@QCamera@QtMobility@@QBEMXZ @ 376 NONAME ; float QtMobility::QCamera::exposureCompensation(void) const - ?exposureLocked@QCamera@QtMobility@@IAEXXZ @ 377 NONAME ; void QtMobility::QCamera::exposureLocked(void) - ?exposureLocked@QCameraExposureControl@QtMobility@@IAEXXZ @ 378 NONAME ; void QtMobility::QCameraExposureControl::exposureLocked(void) - ?exposureMode@QCamera@QtMobility@@QBE?AW4ExposureMode@12@XZ @ 379 NONAME ; enum QtMobility::QCamera::ExposureMode QtMobility::QCamera::exposureMode(void) const - ?extendedMetaData@QMediaObject@QtMobility@@QBE?AVQVariant@@ABVQString@@@Z @ 380 NONAME ; class QVariant QtMobility::QMediaObject::extendedMetaData(class QString const &) const - ?features@QMediaServiceProviderHint@QtMobility@@QBE?AV?$QFlags@W4Feature@QMediaServiceProviderHint@QtMobility@@@@XZ @ 381 NONAME ; class QFlags QtMobility::QMediaServiceProviderHint::features(void) const - ?flashMode@QCamera@QtMobility@@QBE?AW4FlashMode@12@XZ @ 382 NONAME ; enum QtMobility::QCamera::FlashMode QtMobility::QCamera::flashMode(void) const - ?flashReady@QCamera@QtMobility@@IAEX_N@Z @ 383 NONAME ; void QtMobility::QCamera::flashReady(bool) - ?flashReady@QCameraExposureControl@QtMobility@@IAEX_N@Z @ 384 NONAME ; void QtMobility::QCameraExposureControl::flashReady(bool) - ?focusMode@QCamera@QtMobility@@QBE?AW4FocusMode@12@XZ @ 385 NONAME ; enum QtMobility::QCamera::FocusMode QtMobility::QCamera::focusMode(void) const - ?focusReached@QCamera@QtMobility@@IAEXXZ @ 386 NONAME ; void QtMobility::QCamera::focusReached(void) - ?focusStatus@QCamera@QtMobility@@QBE?AW4FocusStatus@12@XZ @ 387 NONAME ; enum QtMobility::QCamera::FocusStatus QtMobility::QCamera::focusStatus(void) const - ?focusStatusChanged@QCamera@QtMobility@@IAEXW4FocusStatus@12@@Z @ 388 NONAME ; void QtMobility::QCamera::focusStatusChanged(enum QtMobility::QCamera::FocusStatus) - ?focusStatusChanged@QCameraFocusControl@QtMobility@@IAEXW4FocusStatus@QCamera@2@@Z @ 389 NONAME ; void QtMobility::QCameraFocusControl::focusStatusChanged(enum QtMobility::QCamera::FocusStatus) - ?focusUnableToReach@QCamera@QtMobility@@IAEXXZ @ 390 NONAME ; void QtMobility::QCamera::focusUnableToReach(void) - ?frameRate@QVideoEncoderSettings@QtMobility@@QBEMXZ @ 391 NONAME ; float QtMobility::QVideoEncoderSettings::frameRate(void) const - ?frequency@QRadioTuner@QtMobility@@QBEHXZ @ 392 NONAME ; int QtMobility::QRadioTuner::frequency(void) const - ?frequencyChanged@QRadioTuner@QtMobility@@IAEXH@Z @ 393 NONAME ; void QtMobility::QRadioTuner::frequencyChanged(int) - ?frequencyChanged@QRadioTunerControl@QtMobility@@IAEXH@Z @ 394 NONAME ; void QtMobility::QRadioTunerControl::frequencyChanged(int) - ?frequencyRange@QRadioTuner@QtMobility@@QBE?AU?$QPair@HH@@W4Band@12@@Z @ 395 NONAME ; struct QPair QtMobility::QRadioTuner::frequencyRange(enum QtMobility::QRadioTuner::Band) const - ?frequencyStep@QRadioTuner@QtMobility@@QBEHW4Band@12@@Z @ 396 NONAME ; int QtMobility::QRadioTuner::frequencyStep(enum QtMobility::QRadioTuner::Band) const - ?fullScreenChanged@QVideoWidget@QtMobility@@IAEX_N@Z @ 397 NONAME ; void QtMobility::QVideoWidget::fullScreenChanged(bool) - ?fullScreenChanged@QVideoWidgetControl@QtMobility@@IAEX_N@Z @ 398 NONAME ; void QtMobility::QVideoWidgetControl::fullScreenChanged(bool) - ?fullScreenChanged@QVideoWindowControl@QtMobility@@IAEX_N@Z @ 399 NONAME ; void QtMobility::QVideoWindowControl::fullScreenChanged(bool) - ?getStaticMetaObject@QAudioCaptureSource@QtMobility@@SAABUQMetaObject@@XZ @ 400 NONAME ; struct QMetaObject const & QtMobility::QAudioCaptureSource::getStaticMetaObject(void) - ?getStaticMetaObject@QAudioEncoderControl@QtMobility@@SAABUQMetaObject@@XZ @ 401 NONAME ; struct QMetaObject const & QtMobility::QAudioEncoderControl::getStaticMetaObject(void) - ?getStaticMetaObject@QAudioEndpointSelector@QtMobility@@SAABUQMetaObject@@XZ @ 402 NONAME ; struct QMetaObject const & QtMobility::QAudioEndpointSelector::getStaticMetaObject(void) - ?getStaticMetaObject@QCamera@QtMobility@@SAABUQMetaObject@@XZ @ 403 NONAME ; struct QMetaObject const & QtMobility::QCamera::getStaticMetaObject(void) - ?getStaticMetaObject@QCameraControl@QtMobility@@SAABUQMetaObject@@XZ @ 404 NONAME ; struct QMetaObject const & QtMobility::QCameraControl::getStaticMetaObject(void) - ?getStaticMetaObject@QCameraExposureControl@QtMobility@@SAABUQMetaObject@@XZ @ 405 NONAME ; struct QMetaObject const & QtMobility::QCameraExposureControl::getStaticMetaObject(void) - ?getStaticMetaObject@QCameraFocusControl@QtMobility@@SAABUQMetaObject@@XZ @ 406 NONAME ; struct QMetaObject const & QtMobility::QCameraFocusControl::getStaticMetaObject(void) - ?getStaticMetaObject@QGraphicsVideoItem@QtMobility@@SAABUQMetaObject@@XZ @ 407 NONAME ; struct QMetaObject const & QtMobility::QGraphicsVideoItem::getStaticMetaObject(void) - ?getStaticMetaObject@QImageCaptureControl@QtMobility@@SAABUQMetaObject@@XZ @ 408 NONAME ; struct QMetaObject const & QtMobility::QImageCaptureControl::getStaticMetaObject(void) - ?getStaticMetaObject@QImageEncoderControl@QtMobility@@SAABUQMetaObject@@XZ @ 409 NONAME ; struct QMetaObject const & QtMobility::QImageEncoderControl::getStaticMetaObject(void) - ?getStaticMetaObject@QImageProcessingControl@QtMobility@@SAABUQMetaObject@@XZ @ 410 NONAME ; struct QMetaObject const & QtMobility::QImageProcessingControl::getStaticMetaObject(void) - ?getStaticMetaObject@QLocalMediaPlaylistProvider@QtMobility@@SAABUQMetaObject@@XZ @ 411 NONAME ; struct QMetaObject const & QtMobility::QLocalMediaPlaylistProvider::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaContainerControl@QtMobility@@SAABUQMetaObject@@XZ @ 412 NONAME ; struct QMetaObject const & QtMobility::QMediaContainerControl::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaControl@QtMobility@@SAABUQMetaObject@@XZ @ 413 NONAME ; struct QMetaObject const & QtMobility::QMediaControl::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaImageViewer@QtMobility@@SAABUQMetaObject@@XZ @ 414 NONAME ; struct QMetaObject const & QtMobility::QMediaImageViewer::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaObject@QtMobility@@SAABUQMetaObject@@XZ @ 415 NONAME ; struct QMetaObject const & QtMobility::QMediaObject::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaPlayer@QtMobility@@SAABUQMetaObject@@XZ @ 416 NONAME ; struct QMetaObject const & QtMobility::QMediaPlayer::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaPlayerControl@QtMobility@@SAABUQMetaObject@@XZ @ 417 NONAME ; struct QMetaObject const & QtMobility::QMediaPlayerControl::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaPlaylist@QtMobility@@SAABUQMetaObject@@XZ @ 418 NONAME ; struct QMetaObject const & QtMobility::QMediaPlaylist::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaPlaylistControl@QtMobility@@SAABUQMetaObject@@XZ @ 419 NONAME ; struct QMetaObject const & QtMobility::QMediaPlaylistControl::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaPlaylistIOPlugin@QtMobility@@SAABUQMetaObject@@XZ @ 420 NONAME ; struct QMetaObject const & QtMobility::QMediaPlaylistIOPlugin::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaPlaylistNavigator@QtMobility@@SAABUQMetaObject@@XZ @ 421 NONAME ; struct QMetaObject const & QtMobility::QMediaPlaylistNavigator::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaPlaylistProvider@QtMobility@@SAABUQMetaObject@@XZ @ 422 NONAME ; struct QMetaObject const & QtMobility::QMediaPlaylistProvider::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaRecorder@QtMobility@@SAABUQMetaObject@@XZ @ 423 NONAME ; struct QMetaObject const & QtMobility::QMediaRecorder::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaRecorderControl@QtMobility@@SAABUQMetaObject@@XZ @ 424 NONAME ; struct QMetaObject const & QtMobility::QMediaRecorderControl::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaService@QtMobility@@SAABUQMetaObject@@XZ @ 425 NONAME ; struct QMetaObject const & QtMobility::QMediaService::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaServiceProvider@QtMobility@@SAABUQMetaObject@@XZ @ 426 NONAME ; struct QMetaObject const & QtMobility::QMediaServiceProvider::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaServiceProviderPlugin@QtMobility@@SAABUQMetaObject@@XZ @ 427 NONAME ; struct QMetaObject const & QtMobility::QMediaServiceProviderPlugin::getStaticMetaObject(void) - ?getStaticMetaObject@QMediaStreamsControl@QtMobility@@SAABUQMetaObject@@XZ @ 428 NONAME ; struct QMetaObject const & QtMobility::QMediaStreamsControl::getStaticMetaObject(void) - ?getStaticMetaObject@QMetaDataControl@QtMobility@@SAABUQMetaObject@@XZ @ 429 NONAME ; struct QMetaObject const & QtMobility::QMetaDataControl::getStaticMetaObject(void) - ?getStaticMetaObject@QRadioTuner@QtMobility@@SAABUQMetaObject@@XZ @ 430 NONAME ; struct QMetaObject const & QtMobility::QRadioTuner::getStaticMetaObject(void) - ?getStaticMetaObject@QRadioTunerControl@QtMobility@@SAABUQMetaObject@@XZ @ 431 NONAME ; struct QMetaObject const & QtMobility::QRadioTunerControl::getStaticMetaObject(void) - ?getStaticMetaObject@QStillImageCapture@QtMobility@@SAABUQMetaObject@@XZ @ 432 NONAME ; struct QMetaObject const & QtMobility::QStillImageCapture::getStaticMetaObject(void) - ?getStaticMetaObject@QVideoDeviceControl@QtMobility@@SAABUQMetaObject@@XZ @ 433 NONAME ; struct QMetaObject const & QtMobility::QVideoDeviceControl::getStaticMetaObject(void) - ?getStaticMetaObject@QVideoEncoderControl@QtMobility@@SAABUQMetaObject@@XZ @ 434 NONAME ; struct QMetaObject const & QtMobility::QVideoEncoderControl::getStaticMetaObject(void) - ?getStaticMetaObject@QVideoOutputControl@QtMobility@@SAABUQMetaObject@@XZ @ 435 NONAME ; struct QMetaObject const & QtMobility::QVideoOutputControl::getStaticMetaObject(void) - ?getStaticMetaObject@QVideoRendererControl@QtMobility@@SAABUQMetaObject@@XZ @ 436 NONAME ; struct QMetaObject const & QtMobility::QVideoRendererControl::getStaticMetaObject(void) - ?getStaticMetaObject@QVideoWidget@QtMobility@@SAABUQMetaObject@@XZ @ 437 NONAME ; struct QMetaObject const & QtMobility::QVideoWidget::getStaticMetaObject(void) - ?getStaticMetaObject@QVideoWidgetControl@QtMobility@@SAABUQMetaObject@@XZ @ 438 NONAME ; struct QMetaObject const & QtMobility::QVideoWidgetControl::getStaticMetaObject(void) - ?getStaticMetaObject@QVideoWindowControl@QtMobility@@SAABUQMetaObject@@XZ @ 439 NONAME ; struct QMetaObject const & QtMobility::QVideoWindowControl::getStaticMetaObject(void) - ?hasSupport@QMediaPlayer@QtMobility@@SA?AW4SupportEstimate@QtMedia@2@ABVQString@@ABVQStringList@@V?$QFlags@W4Flag@QMediaPlayer@QtMobility@@@@@Z @ 440 NONAME ; enum QtMobility::QtMedia::SupportEstimate QtMobility::QMediaPlayer::hasSupport(class QString const &, class QStringList const &, class QFlags) - ?hasSupport@QMediaServiceProvider@QtMobility@@UBE?AW4SupportEstimate@QtMedia@2@ABVQByteArray@@ABVQString@@ABVQStringList@@H@Z @ 441 NONAME ; enum QtMobility::QtMedia::SupportEstimate QtMobility::QMediaServiceProvider::hasSupport(class QByteArray const &, class QString const &, class QStringList const &, int) const - ?hideEvent@QVideoWidget@QtMobility@@MAEXPAVQHideEvent@@@Z @ 442 NONAME ; void QtMobility::QVideoWidget::hideEvent(class QHideEvent *) - ?hue@QVideoWidget@QtMobility@@QBEHXZ @ 443 NONAME ; int QtMobility::QVideoWidget::hue(void) const - ?hueChanged@QVideoWidget@QtMobility@@IAEXH@Z @ 444 NONAME ; void QtMobility::QVideoWidget::hueChanged(int) - ?hueChanged@QVideoWidgetControl@QtMobility@@IAEXH@Z @ 445 NONAME ; void QtMobility::QVideoWidgetControl::hueChanged(int) - ?hueChanged@QVideoWindowControl@QtMobility@@IAEXH@Z @ 446 NONAME ; void QtMobility::QVideoWindowControl::hueChanged(int) - ?imageCaptured@QImageCaptureControl@QtMobility@@IAEXABVQString@@ABVQImage@@@Z @ 447 NONAME ; void QtMobility::QImageCaptureControl::imageCaptured(class QString const &, class QImage const &) - ?imageCaptured@QStillImageCapture@QtMobility@@IAEXABVQString@@ABVQImage@@@Z @ 448 NONAME ; void QtMobility::QStillImageCapture::imageCaptured(class QString const &, class QImage const &) - ?imageCodecDescription@QStillImageCapture@QtMobility@@QBE?AVQString@@ABV3@@Z @ 449 NONAME ; class QString QtMobility::QStillImageCapture::imageCodecDescription(class QString const &) const - ?imageSaved@QImageCaptureControl@QtMobility@@IAEXABVQString@@@Z @ 450 NONAME ; void QtMobility::QImageCaptureControl::imageSaved(class QString const &) - ?imageSaved@QStillImageCapture@QtMobility@@IAEXABVQString@@@Z @ 451 NONAME ; void QtMobility::QStillImageCapture::imageSaved(class QString const &) - ?insertMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NHABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 452 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::insertMedia(int, class QList const &) - ?insertMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NHABVQMediaContent@2@@Z @ 453 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::insertMedia(int, class QtMobility::QMediaContent const &) - ?insertMedia@QMediaPlaylist@QtMobility@@QAE_NHABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 454 NONAME ; bool QtMobility::QMediaPlaylist::insertMedia(int, class QList const &) - ?insertMedia@QMediaPlaylist@QtMobility@@QAE_NHABVQMediaContent@2@@Z @ 455 NONAME ; bool QtMobility::QMediaPlaylist::insertMedia(int, class QtMobility::QMediaContent const &) - ?insertMedia@QMediaPlaylistProvider@QtMobility@@UAE_NHABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 456 NONAME ; bool QtMobility::QMediaPlaylistProvider::insertMedia(int, class QList const &) - ?insertMedia@QMediaPlaylistProvider@QtMobility@@UAE_NHABVQMediaContent@2@@Z @ 457 NONAME ; bool QtMobility::QMediaPlaylistProvider::insertMedia(int, class QtMobility::QMediaContent const &) - ?intervals@QMediaTimeRange@QtMobility@@QBE?AV?$QList@VQMediaTimeInterval@QtMobility@@@@XZ @ 458 NONAME ; class QList QtMobility::QMediaTimeRange::intervals(void) const - ?isAudioAvailable@QMediaPlayer@QtMobility@@QBE_NXZ @ 459 NONAME ; bool QtMobility::QMediaPlayer::isAudioAvailable(void) const - ?isAvailable@QAudioCaptureSource@QtMobility@@UBE_NXZ @ 460 NONAME ; bool QtMobility::QAudioCaptureSource::isAvailable(void) const - ?isAvailable@QCamera@QtMobility@@UBE_NXZ @ 461 NONAME ; bool QtMobility::QCamera::isAvailable(void) const - ?isAvailable@QMediaObject@QtMobility@@UBE_NXZ @ 462 NONAME ; bool QtMobility::QMediaObject::isAvailable(void) const - ?isAvailable@QMediaRecorder@QtMobility@@UBE_NXZ @ 463 NONAME ; bool QtMobility::QMediaRecorder::isAvailable(void) const - ?isAvailable@QRadioTuner@QtMobility@@UBE_NXZ @ 464 NONAME ; bool QtMobility::QRadioTuner::isAvailable(void) const - ?isAvailable@QStillImageCapture@QtMobility@@UBE_NXZ @ 465 NONAME ; bool QtMobility::QStillImageCapture::isAvailable(void) const - ?isBandSupported@QRadioTuner@QtMobility@@QBE_NW4Band@12@@Z @ 466 NONAME ; bool QtMobility::QRadioTuner::isBandSupported(enum QtMobility::QRadioTuner::Band) const - ?isContinuous@QMediaTimeRange@QtMobility@@QBE_NXZ @ 467 NONAME ; bool QtMobility::QMediaTimeRange::isContinuous(void) const - ?isEmpty@QMediaPlaylist@QtMobility@@QBE_NXZ @ 468 NONAME ; bool QtMobility::QMediaPlaylist::isEmpty(void) const - ?isEmpty@QMediaTimeRange@QtMobility@@QBE_NXZ @ 469 NONAME ; bool QtMobility::QMediaTimeRange::isEmpty(void) const - ?isExposureLocked@QCamera@QtMobility@@QBE_NXZ @ 470 NONAME ; bool QtMobility::QCamera::isExposureLocked(void) const - ?isFlashReady@QCamera@QtMobility@@QBE_NXZ @ 471 NONAME ; bool QtMobility::QCamera::isFlashReady(void) const - ?isMacroFocusingSupported@QCamera@QtMobility@@QBE_NXZ @ 472 NONAME ; bool QtMobility::QCamera::isMacroFocusingSupported(void) const - ?isMetaDataAvailable@QMediaObject@QtMobility@@QBE_NXZ @ 473 NONAME ; bool QtMobility::QMediaObject::isMetaDataAvailable(void) const - ?isMetaDataWritable@QMediaObject@QtMobility@@QBE_NXZ @ 474 NONAME ; bool QtMobility::QMediaObject::isMetaDataWritable(void) const - ?isMuted@QMediaPlayer@QtMobility@@QBE_NXZ @ 475 NONAME ; bool QtMobility::QMediaPlayer::isMuted(void) const - ?isMuted@QRadioTuner@QtMobility@@QBE_NXZ @ 476 NONAME ; bool QtMobility::QRadioTuner::isMuted(void) const - ?isNormal@QMediaTimeInterval@QtMobility@@QBE_NXZ @ 477 NONAME ; bool QtMobility::QMediaTimeInterval::isNormal(void) const - ?isNull@QAudioEncoderSettings@QtMobility@@QBE_NXZ @ 478 NONAME ; bool QtMobility::QAudioEncoderSettings::isNull(void) const - ?isNull@QImageEncoderSettings@QtMobility@@QBE_NXZ @ 479 NONAME ; bool QtMobility::QImageEncoderSettings::isNull(void) const - ?isNull@QMediaContent@QtMobility@@QBE_NXZ @ 480 NONAME ; bool QtMobility::QMediaContent::isNull(void) const - ?isNull@QMediaResource@QtMobility@@QBE_NXZ @ 481 NONAME ; bool QtMobility::QMediaResource::isNull(void) const - ?isNull@QMediaServiceProviderHint@QtMobility@@QBE_NXZ @ 482 NONAME ; bool QtMobility::QMediaServiceProviderHint::isNull(void) const - ?isNull@QVideoEncoderSettings@QtMobility@@QBE_NXZ @ 483 NONAME ; bool QtMobility::QVideoEncoderSettings::isNull(void) const - ?isReadOnly@QLocalMediaPlaylistProvider@QtMobility@@UBE_NXZ @ 484 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::isReadOnly(void) const - ?isReadOnly@QMediaPlaylist@QtMobility@@QBE_NXZ @ 485 NONAME ; bool QtMobility::QMediaPlaylist::isReadOnly(void) const - ?isReadOnly@QMediaPlaylistProvider@QtMobility@@UBE_NXZ @ 486 NONAME ; bool QtMobility::QMediaPlaylistProvider::isReadOnly(void) const - ?isReadyForCapture@QStillImageCapture@QtMobility@@QBE_NXZ @ 487 NONAME ; bool QtMobility::QStillImageCapture::isReadyForCapture(void) const - ?isSearching@QRadioTuner@QtMobility@@QBE_NXZ @ 488 NONAME ; bool QtMobility::QRadioTuner::isSearching(void) const - ?isSeekable@QMediaPlayer@QtMobility@@QBE_NXZ @ 489 NONAME ; bool QtMobility::QMediaPlayer::isSeekable(void) const - ?isStereo@QRadioTuner@QtMobility@@QBE_NXZ @ 490 NONAME ; bool QtMobility::QRadioTuner::isStereo(void) const - ?isVideoAvailable@QMediaPlayer@QtMobility@@QBE_NXZ @ 491 NONAME ; bool QtMobility::QMediaPlayer::isVideoAvailable(void) const - ?isoSensitivity@QCamera@QtMobility@@QBEHXZ @ 492 NONAME ; int QtMobility::QCamera::isoSensitivity(void) const - ?isoSensitivityChanged@QCamera@QtMobility@@IAEXH@Z @ 493 NONAME ; void QtMobility::QCamera::isoSensitivityChanged(int) - ?isoSensitivityChanged@QCameraExposureControl@QtMobility@@IAEXH@Z @ 494 NONAME ; void QtMobility::QCameraExposureControl::isoSensitivityChanged(int) - ?itemAt@QMediaPlaylistNavigator@QtMobility@@QBE?AVQMediaContent@2@H@Z @ 495 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylistNavigator::itemAt(int) const - ?itemChange@QGraphicsVideoItem@QtMobility@@MAE?AVQVariant@@W4GraphicsItemChange@QGraphicsItem@@ABV3@@Z @ 496 NONAME ; class QVariant QtMobility::QGraphicsVideoItem::itemChange(enum QGraphicsItem::GraphicsItemChange, class QVariant const &) - ?jump@QMediaPlaylistNavigator@QtMobility@@QAEXH@Z @ 497 NONAME ; void QtMobility::QMediaPlaylistNavigator::jump(int) - ?language@QMediaResource@QtMobility@@QBE?AVQString@@XZ @ 498 NONAME ; class QString QtMobility::QMediaResource::language(void) const - ?latestTime@QMediaTimeRange@QtMobility@@QBE_JXZ @ 499 NONAME ; long long QtMobility::QMediaTimeRange::latestTime(void) const - ?load@QMediaPlaylist@QtMobility@@QAEXABVQUrl@@PBD@Z @ 500 NONAME ; void QtMobility::QMediaPlaylist::load(class QUrl const &, char const *) - ?load@QMediaPlaylist@QtMobility@@QAEXPAVQIODevice@@PBD@Z @ 501 NONAME ; void QtMobility::QMediaPlaylist::load(class QIODevice *, char const *) - ?load@QMediaPlaylistProvider@QtMobility@@UAE_NABVQUrl@@PBD@Z @ 502 NONAME ; bool QtMobility::QMediaPlaylistProvider::load(class QUrl const &, char const *) - ?load@QMediaPlaylistProvider@QtMobility@@UAE_NPAVQIODevice@@PBD@Z @ 503 NONAME ; bool QtMobility::QMediaPlaylistProvider::load(class QIODevice *, char const *) - ?loadFailed@QMediaPlaylist@QtMobility@@IAEXXZ @ 504 NONAME ; void QtMobility::QMediaPlaylist::loadFailed(void) - ?loadFailed@QMediaPlaylistProvider@QtMobility@@IAEXW4Error@QMediaPlaylist@2@ABVQString@@@Z @ 505 NONAME ; void QtMobility::QMediaPlaylistProvider::loadFailed(enum QtMobility::QMediaPlaylist::Error, class QString const &) - ?loaded@QMediaPlaylist@QtMobility@@IAEXXZ @ 506 NONAME ; void QtMobility::QMediaPlaylist::loaded(void) - ?loaded@QMediaPlaylistProvider@QtMobility@@IAEXXZ @ 507 NONAME ; void QtMobility::QMediaPlaylistProvider::loaded(void) - ?lockExposure@QCamera@QtMobility@@QAEXXZ @ 508 NONAME ; void QtMobility::QCamera::lockExposure(void) - ?macroFocusingEnabled@QCamera@QtMobility@@QBE_NXZ @ 509 NONAME ; bool QtMobility::QCamera::macroFocusingEnabled(void) const - ?manualWhiteBalance@QCamera@QtMobility@@QBEHXZ @ 510 NONAME ; int QtMobility::QCamera::manualWhiteBalance(void) const - ?maximumDigitalZoom@QCamera@QtMobility@@QBEMXZ @ 511 NONAME ; float QtMobility::QCamera::maximumDigitalZoom(void) const - ?maximumOpticalZoom@QCamera@QtMobility@@QBEMXZ @ 512 NONAME ; float QtMobility::QCamera::maximumOpticalZoom(void) const - ?media@QLocalMediaPlaylistProvider@QtMobility@@UBE?AVQMediaContent@2@H@Z @ 513 NONAME ; class QtMobility::QMediaContent QtMobility::QLocalMediaPlaylistProvider::media(int) const - ?media@QMediaImageViewer@QtMobility@@QBE?AVQMediaContent@2@XZ @ 514 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaImageViewer::media(void) const - ?media@QMediaPlayer@QtMobility@@QBE?AVQMediaContent@2@XZ @ 515 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlayer::media(void) const - ?media@QMediaPlaylist@QtMobility@@QBE?AVQMediaContent@2@H@Z @ 516 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylist::media(int) const - ?mediaAboutToBeInserted@QMediaPlaylist@QtMobility@@IAEXHH@Z @ 517 NONAME ; void QtMobility::QMediaPlaylist::mediaAboutToBeInserted(int, int) - ?mediaAboutToBeInserted@QMediaPlaylistProvider@QtMobility@@IAEXHH@Z @ 518 NONAME ; void QtMobility::QMediaPlaylistProvider::mediaAboutToBeInserted(int, int) - ?mediaAboutToBeRemoved@QMediaPlaylist@QtMobility@@IAEXHH@Z @ 519 NONAME ; void QtMobility::QMediaPlaylist::mediaAboutToBeRemoved(int, int) - ?mediaAboutToBeRemoved@QMediaPlaylistProvider@QtMobility@@IAEXHH@Z @ 520 NONAME ; void QtMobility::QMediaPlaylistProvider::mediaAboutToBeRemoved(int, int) - ?mediaChanged@QMediaImageViewer@QtMobility@@IAEXABVQMediaContent@2@@Z @ 521 NONAME ; void QtMobility::QMediaImageViewer::mediaChanged(class QtMobility::QMediaContent const &) - ?mediaChanged@QMediaPlayer@QtMobility@@IAEXABVQMediaContent@2@@Z @ 522 NONAME ; void QtMobility::QMediaPlayer::mediaChanged(class QtMobility::QMediaContent const &) - ?mediaChanged@QMediaPlayerControl@QtMobility@@IAEXABVQMediaContent@2@@Z @ 523 NONAME ; void QtMobility::QMediaPlayerControl::mediaChanged(class QtMobility::QMediaContent const &) - ?mediaChanged@QMediaPlaylist@QtMobility@@IAEXHH@Z @ 524 NONAME ; void QtMobility::QMediaPlaylist::mediaChanged(int, int) - ?mediaChanged@QMediaPlaylistProvider@QtMobility@@IAEXHH@Z @ 525 NONAME ; void QtMobility::QMediaPlaylistProvider::mediaChanged(int, int) - ?mediaCount@QLocalMediaPlaylistProvider@QtMobility@@UBEHXZ @ 526 NONAME ; int QtMobility::QLocalMediaPlaylistProvider::mediaCount(void) const - ?mediaCount@QMediaPlaylist@QtMobility@@QBEHXZ @ 527 NONAME ; int QtMobility::QMediaPlaylist::mediaCount(void) const - ?mediaInserted@QMediaPlaylist@QtMobility@@IAEXHH@Z @ 528 NONAME ; void QtMobility::QMediaPlaylist::mediaInserted(int, int) - ?mediaInserted@QMediaPlaylistProvider@QtMobility@@IAEXHH@Z @ 529 NONAME ; void QtMobility::QMediaPlaylistProvider::mediaInserted(int, int) - ?mediaObject@QGraphicsVideoItem@QtMobility@@QBEPAVQMediaObject@2@XZ @ 530 NONAME ; class QtMobility::QMediaObject * QtMobility::QGraphicsVideoItem::mediaObject(void) const - ?mediaObject@QMediaPlaylist@QtMobility@@QBEPAVQMediaObject@2@XZ @ 531 NONAME ; class QtMobility::QMediaObject * QtMobility::QMediaPlaylist::mediaObject(void) const - ?mediaObject@QVideoWidget@QtMobility@@QBEPAVQMediaObject@2@XZ @ 532 NONAME ; class QtMobility::QMediaObject * QtMobility::QVideoWidget::mediaObject(void) const - ?mediaRemoved@QMediaPlaylist@QtMobility@@IAEXHH@Z @ 533 NONAME ; void QtMobility::QMediaPlaylist::mediaRemoved(int, int) - ?mediaRemoved@QMediaPlaylistProvider@QtMobility@@IAEXHH@Z @ 534 NONAME ; void QtMobility::QMediaPlaylistProvider::mediaRemoved(int, int) - ?mediaStatus@QMediaImageViewer@QtMobility@@QBE?AW4MediaStatus@12@XZ @ 535 NONAME ; enum QtMobility::QMediaImageViewer::MediaStatus QtMobility::QMediaImageViewer::mediaStatus(void) const - ?mediaStatus@QMediaPlayer@QtMobility@@QBE?AW4MediaStatus@12@XZ @ 536 NONAME ; enum QtMobility::QMediaPlayer::MediaStatus QtMobility::QMediaPlayer::mediaStatus(void) const - ?mediaStatusChanged@QMediaImageViewer@QtMobility@@IAEXW4MediaStatus@12@@Z @ 537 NONAME ; void QtMobility::QMediaImageViewer::mediaStatusChanged(enum QtMobility::QMediaImageViewer::MediaStatus) - ?mediaStatusChanged@QMediaPlayer@QtMobility@@IAEXW4MediaStatus@12@@Z @ 538 NONAME ; void QtMobility::QMediaPlayer::mediaStatusChanged(enum QtMobility::QMediaPlayer::MediaStatus) - ?mediaStatusChanged@QMediaPlayerControl@QtMobility@@IAEXW4MediaStatus@QMediaPlayer@2@@Z @ 539 NONAME ; void QtMobility::QMediaPlayerControl::mediaStatusChanged(enum QtMobility::QMediaPlayer::MediaStatus) - ?mediaStream@QMediaPlayer@QtMobility@@QBEPBVQIODevice@@XZ @ 540 NONAME ; class QIODevice const * QtMobility::QMediaPlayer::mediaStream(void) const - ?metaData@QMediaObject@QtMobility@@QBE?AVQVariant@@W4MetaData@QtMedia@2@@Z @ 541 NONAME ; class QVariant QtMobility::QMediaObject::metaData(enum QtMobility::QtMedia::MetaData) const - ?metaDataAvailableChanged@QMediaObject@QtMobility@@IAEX_N@Z @ 542 NONAME ; void QtMobility::QMediaObject::metaDataAvailableChanged(bool) - ?metaDataAvailableChanged@QMetaDataControl@QtMobility@@IAEX_N@Z @ 543 NONAME ; void QtMobility::QMetaDataControl::metaDataAvailableChanged(bool) - ?metaDataChanged@QMediaObject@QtMobility@@IAEXXZ @ 544 NONAME ; void QtMobility::QMediaObject::metaDataChanged(void) - ?metaDataChanged@QMetaDataControl@QtMobility@@IAEXXZ @ 545 NONAME ; void QtMobility::QMetaDataControl::metaDataChanged(void) - ?metaDataWritableChanged@QMediaObject@QtMobility@@IAEX_N@Z @ 546 NONAME ; void QtMobility::QMediaObject::metaDataWritableChanged(bool) - ?metaObject@QAudioCaptureSource@QtMobility@@UBEPBUQMetaObject@@XZ @ 547 NONAME ; struct QMetaObject const * QtMobility::QAudioCaptureSource::metaObject(void) const - ?metaObject@QAudioEncoderControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 548 NONAME ; struct QMetaObject const * QtMobility::QAudioEncoderControl::metaObject(void) const - ?metaObject@QAudioEndpointSelector@QtMobility@@UBEPBUQMetaObject@@XZ @ 549 NONAME ; struct QMetaObject const * QtMobility::QAudioEndpointSelector::metaObject(void) const - ?metaObject@QCamera@QtMobility@@UBEPBUQMetaObject@@XZ @ 550 NONAME ; struct QMetaObject const * QtMobility::QCamera::metaObject(void) const - ?metaObject@QCameraControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 551 NONAME ; struct QMetaObject const * QtMobility::QCameraControl::metaObject(void) const - ?metaObject@QCameraExposureControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 552 NONAME ; struct QMetaObject const * QtMobility::QCameraExposureControl::metaObject(void) const - ?metaObject@QCameraFocusControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 553 NONAME ; struct QMetaObject const * QtMobility::QCameraFocusControl::metaObject(void) const - ?metaObject@QGraphicsVideoItem@QtMobility@@UBEPBUQMetaObject@@XZ @ 554 NONAME ; struct QMetaObject const * QtMobility::QGraphicsVideoItem::metaObject(void) const - ?metaObject@QImageCaptureControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 555 NONAME ; struct QMetaObject const * QtMobility::QImageCaptureControl::metaObject(void) const - ?metaObject@QImageEncoderControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 556 NONAME ; struct QMetaObject const * QtMobility::QImageEncoderControl::metaObject(void) const - ?metaObject@QImageProcessingControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 557 NONAME ; struct QMetaObject const * QtMobility::QImageProcessingControl::metaObject(void) const - ?metaObject@QLocalMediaPlaylistProvider@QtMobility@@UBEPBUQMetaObject@@XZ @ 558 NONAME ; struct QMetaObject const * QtMobility::QLocalMediaPlaylistProvider::metaObject(void) const - ?metaObject@QMediaContainerControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 559 NONAME ; struct QMetaObject const * QtMobility::QMediaContainerControl::metaObject(void) const - ?metaObject@QMediaControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 560 NONAME ; struct QMetaObject const * QtMobility::QMediaControl::metaObject(void) const - ?metaObject@QMediaImageViewer@QtMobility@@UBEPBUQMetaObject@@XZ @ 561 NONAME ; struct QMetaObject const * QtMobility::QMediaImageViewer::metaObject(void) const - ?metaObject@QMediaObject@QtMobility@@UBEPBUQMetaObject@@XZ @ 562 NONAME ; struct QMetaObject const * QtMobility::QMediaObject::metaObject(void) const - ?metaObject@QMediaPlayer@QtMobility@@UBEPBUQMetaObject@@XZ @ 563 NONAME ; struct QMetaObject const * QtMobility::QMediaPlayer::metaObject(void) const - ?metaObject@QMediaPlayerControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 564 NONAME ; struct QMetaObject const * QtMobility::QMediaPlayerControl::metaObject(void) const - ?metaObject@QMediaPlaylist@QtMobility@@UBEPBUQMetaObject@@XZ @ 565 NONAME ; struct QMetaObject const * QtMobility::QMediaPlaylist::metaObject(void) const - ?metaObject@QMediaPlaylistControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 566 NONAME ; struct QMetaObject const * QtMobility::QMediaPlaylistControl::metaObject(void) const - ?metaObject@QMediaPlaylistIOPlugin@QtMobility@@UBEPBUQMetaObject@@XZ @ 567 NONAME ; struct QMetaObject const * QtMobility::QMediaPlaylistIOPlugin::metaObject(void) const - ?metaObject@QMediaPlaylistNavigator@QtMobility@@UBEPBUQMetaObject@@XZ @ 568 NONAME ; struct QMetaObject const * QtMobility::QMediaPlaylistNavigator::metaObject(void) const - ?metaObject@QMediaPlaylistProvider@QtMobility@@UBEPBUQMetaObject@@XZ @ 569 NONAME ; struct QMetaObject const * QtMobility::QMediaPlaylistProvider::metaObject(void) const - ?metaObject@QMediaRecorder@QtMobility@@UBEPBUQMetaObject@@XZ @ 570 NONAME ; struct QMetaObject const * QtMobility::QMediaRecorder::metaObject(void) const - ?metaObject@QMediaRecorderControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 571 NONAME ; struct QMetaObject const * QtMobility::QMediaRecorderControl::metaObject(void) const - ?metaObject@QMediaService@QtMobility@@UBEPBUQMetaObject@@XZ @ 572 NONAME ; struct QMetaObject const * QtMobility::QMediaService::metaObject(void) const - ?metaObject@QMediaServiceProvider@QtMobility@@UBEPBUQMetaObject@@XZ @ 573 NONAME ; struct QMetaObject const * QtMobility::QMediaServiceProvider::metaObject(void) const - ?metaObject@QMediaServiceProviderPlugin@QtMobility@@UBEPBUQMetaObject@@XZ @ 574 NONAME ; struct QMetaObject const * QtMobility::QMediaServiceProviderPlugin::metaObject(void) const - ?metaObject@QMediaStreamsControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 575 NONAME ; struct QMetaObject const * QtMobility::QMediaStreamsControl::metaObject(void) const - ?metaObject@QMetaDataControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 576 NONAME ; struct QMetaObject const * QtMobility::QMetaDataControl::metaObject(void) const - ?metaObject@QRadioTuner@QtMobility@@UBEPBUQMetaObject@@XZ @ 577 NONAME ; struct QMetaObject const * QtMobility::QRadioTuner::metaObject(void) const - ?metaObject@QRadioTunerControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 578 NONAME ; struct QMetaObject const * QtMobility::QRadioTunerControl::metaObject(void) const - ?metaObject@QStillImageCapture@QtMobility@@UBEPBUQMetaObject@@XZ @ 579 NONAME ; struct QMetaObject const * QtMobility::QStillImageCapture::metaObject(void) const - ?metaObject@QVideoDeviceControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 580 NONAME ; struct QMetaObject const * QtMobility::QVideoDeviceControl::metaObject(void) const - ?metaObject@QVideoEncoderControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 581 NONAME ; struct QMetaObject const * QtMobility::QVideoEncoderControl::metaObject(void) const - ?metaObject@QVideoOutputControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 582 NONAME ; struct QMetaObject const * QtMobility::QVideoOutputControl::metaObject(void) const - ?metaObject@QVideoRendererControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 583 NONAME ; struct QMetaObject const * QtMobility::QVideoRendererControl::metaObject(void) const - ?metaObject@QVideoWidget@QtMobility@@UBEPBUQMetaObject@@XZ @ 584 NONAME ; struct QMetaObject const * QtMobility::QVideoWidget::metaObject(void) const - ?metaObject@QVideoWidgetControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 585 NONAME ; struct QMetaObject const * QtMobility::QVideoWidgetControl::metaObject(void) const - ?metaObject@QVideoWindowControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 586 NONAME ; struct QMetaObject const * QtMobility::QVideoWindowControl::metaObject(void) const - ?meteringMode@QCamera@QtMobility@@QBE?AW4MeteringMode@12@XZ @ 587 NONAME ; enum QtMobility::QCamera::MeteringMode QtMobility::QCamera::meteringMode(void) const - ?mimeType@QMediaResource@QtMobility@@QBE?AVQString@@XZ @ 588 NONAME ; class QString QtMobility::QMediaResource::mimeType(void) const - ?mimeType@QMediaServiceProviderHint@QtMobility@@QBE?AVQString@@XZ @ 589 NONAME ; class QString QtMobility::QMediaServiceProviderHint::mimeType(void) const - ?moveEvent@QVideoWidget@QtMobility@@MAEXPAVQMoveEvent@@@Z @ 590 NONAME ; void QtMobility::QVideoWidget::moveEvent(class QMoveEvent *) - ?mutedChanged@QMediaPlayer@QtMobility@@IAEX_N@Z @ 591 NONAME ; void QtMobility::QMediaPlayer::mutedChanged(bool) - ?mutedChanged@QMediaPlayerControl@QtMobility@@IAEX_N@Z @ 592 NONAME ; void QtMobility::QMediaPlayerControl::mutedChanged(bool) - ?mutedChanged@QRadioTuner@QtMobility@@IAEX_N@Z @ 593 NONAME ; void QtMobility::QRadioTuner::mutedChanged(bool) - ?mutedChanged@QRadioTunerControl@QtMobility@@IAEX_N@Z @ 594 NONAME ; void QtMobility::QRadioTunerControl::mutedChanged(bool) - ?nativeSize@QGraphicsVideoItem@QtMobility@@QBE?AVQSizeF@@XZ @ 595 NONAME ; class QSizeF QtMobility::QGraphicsVideoItem::nativeSize(void) const - ?nativeSizeChanged@QGraphicsVideoItem@QtMobility@@IBEXABVQSizeF@@@Z @ 596 NONAME ; void QtMobility::QGraphicsVideoItem::nativeSizeChanged(class QSizeF const &) const - ?nativeSizeChanged@QVideoWindowControl@QtMobility@@IAEXXZ @ 597 NONAME ; void QtMobility::QVideoWindowControl::nativeSizeChanged(void) - ?next@QMediaPlaylist@QtMobility@@QAEXXZ @ 598 NONAME ; void QtMobility::QMediaPlaylist::next(void) - ?next@QMediaPlaylistNavigator@QtMobility@@QAEXXZ @ 599 NONAME ; void QtMobility::QMediaPlaylistNavigator::next(void) - ?nextIndex@QMediaPlaylist@QtMobility@@QBEHH@Z @ 600 NONAME ; int QtMobility::QMediaPlaylist::nextIndex(int) const - ?nextIndex@QMediaPlaylistNavigator@QtMobility@@QBEHH@Z @ 601 NONAME ; int QtMobility::QMediaPlaylistNavigator::nextIndex(int) const - ?nextItem@QMediaPlaylistNavigator@QtMobility@@QBE?AVQMediaContent@2@H@Z @ 602 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylistNavigator::nextItem(int) const - ?normalized@QMediaTimeInterval@QtMobility@@QBE?AV12@XZ @ 603 NONAME ; class QtMobility::QMediaTimeInterval QtMobility::QMediaTimeInterval::normalized(void) const - ?notifyInterval@QMediaObject@QtMobility@@QBEHXZ @ 604 NONAME ; int QtMobility::QMediaObject::notifyInterval(void) const - ?notifyIntervalChanged@QMediaObject@QtMobility@@IAEXH@Z @ 605 NONAME ; void QtMobility::QMediaObject::notifyIntervalChanged(int) - ?offset@QGraphicsVideoItem@QtMobility@@QBE?AVQPointF@@XZ @ 606 NONAME ; class QPointF QtMobility::QGraphicsVideoItem::offset(void) const - ?opticalZoom@QCamera@QtMobility@@QBEMXZ @ 607 NONAME ; float QtMobility::QCamera::opticalZoom(void) const - ?opticalZoomChanged@QCamera@QtMobility@@IAEXM@Z @ 608 NONAME ; void QtMobility::QCamera::opticalZoomChanged(float) - ?opticalZoomChanged@QCameraFocusControl@QtMobility@@IAEXM@Z @ 609 NONAME ; void QtMobility::QCameraFocusControl::opticalZoomChanged(float) - ?outputLocation@QMediaRecorder@QtMobility@@QBE?AVQUrl@@XZ @ 610 NONAME ; class QUrl QtMobility::QMediaRecorder::outputLocation(void) const - ?paint@QGraphicsVideoItem@QtMobility@@UAEXPAVQPainter@@PBVQStyleOptionGraphicsItem@@PAVQWidget@@@Z @ 611 NONAME ; void QtMobility::QGraphicsVideoItem::paint(class QPainter *, class QStyleOptionGraphicsItem const *, class QWidget *) - ?paintEvent@QVideoWidget@QtMobility@@MAEXPAVQPaintEvent@@@Z @ 612 NONAME ; void QtMobility::QVideoWidget::paintEvent(class QPaintEvent *) - ?pause@QMediaImageViewer@QtMobility@@QAEXXZ @ 613 NONAME ; void QtMobility::QMediaImageViewer::pause(void) - ?pause@QMediaPlayer@QtMobility@@QAEXXZ @ 614 NONAME ; void QtMobility::QMediaPlayer::pause(void) - ?pause@QMediaRecorder@QtMobility@@QAEXXZ @ 615 NONAME ; void QtMobility::QMediaRecorder::pause(void) - ?play@QMediaImageViewer@QtMobility@@QAEXXZ @ 616 NONAME ; void QtMobility::QMediaImageViewer::play(void) - ?play@QMediaPlayer@QtMobility@@QAEXXZ @ 617 NONAME ; void QtMobility::QMediaPlayer::play(void) - ?playbackMode@QMediaPlaylist@QtMobility@@QBE?AW4PlaybackMode@12@XZ @ 618 NONAME ; enum QtMobility::QMediaPlaylist::PlaybackMode QtMobility::QMediaPlaylist::playbackMode(void) const - ?playbackMode@QMediaPlaylistNavigator@QtMobility@@QBE?AW4PlaybackMode@QMediaPlaylist@2@XZ @ 619 NONAME ; enum QtMobility::QMediaPlaylist::PlaybackMode QtMobility::QMediaPlaylistNavigator::playbackMode(void) const - ?playbackModeChanged@QMediaPlaylist@QtMobility@@IAEXW4PlaybackMode@12@@Z @ 620 NONAME ; void QtMobility::QMediaPlaylist::playbackModeChanged(enum QtMobility::QMediaPlaylist::PlaybackMode) - ?playbackModeChanged@QMediaPlaylistControl@QtMobility@@IAEXW4PlaybackMode@QMediaPlaylist@2@@Z @ 621 NONAME ; void QtMobility::QMediaPlaylistControl::playbackModeChanged(enum QtMobility::QMediaPlaylist::PlaybackMode) - ?playbackModeChanged@QMediaPlaylistNavigator@QtMobility@@IAEXW4PlaybackMode@QMediaPlaylist@2@@Z @ 622 NONAME ; void QtMobility::QMediaPlaylistNavigator::playbackModeChanged(enum QtMobility::QMediaPlaylist::PlaybackMode) - ?playbackRate@QMediaPlayer@QtMobility@@QBEMXZ @ 623 NONAME ; float QtMobility::QMediaPlayer::playbackRate(void) const - ?playbackRateChanged@QMediaPlayer@QtMobility@@IAEXM@Z @ 624 NONAME ; void QtMobility::QMediaPlayer::playbackRateChanged(float) - ?playbackRateChanged@QMediaPlayerControl@QtMobility@@IAEXM@Z @ 625 NONAME ; void QtMobility::QMediaPlayerControl::playbackRateChanged(float) - ?playlist@QMediaPlaylistNavigator@QtMobility@@QBEPAVQMediaPlaylistProvider@2@XZ @ 626 NONAME ; class QtMobility::QMediaPlaylistProvider * QtMobility::QMediaPlaylistNavigator::playlist(void) const - ?playlistProviderChanged@QMediaPlaylistControl@QtMobility@@IAEXXZ @ 627 NONAME ; void QtMobility::QMediaPlaylistControl::playlistProviderChanged(void) - ?position@QMediaPlayer@QtMobility@@QBE_JXZ @ 628 NONAME ; long long QtMobility::QMediaPlayer::position(void) const - ?positionChanged@QMediaPlayer@QtMobility@@IAEX_J@Z @ 629 NONAME ; void QtMobility::QMediaPlayer::positionChanged(long long) - ?positionChanged@QMediaPlayerControl@QtMobility@@IAEX_J@Z @ 630 NONAME ; void QtMobility::QMediaPlayerControl::positionChanged(long long) - ?previous@QMediaPlaylist@QtMobility@@QAEXXZ @ 631 NONAME ; void QtMobility::QMediaPlaylist::previous(void) - ?previous@QMediaPlaylistNavigator@QtMobility@@QAEXXZ @ 632 NONAME ; void QtMobility::QMediaPlaylistNavigator::previous(void) - ?previousIndex@QMediaPlaylist@QtMobility@@QBEHH@Z @ 633 NONAME ; int QtMobility::QMediaPlaylist::previousIndex(int) const - ?previousIndex@QMediaPlaylistNavigator@QtMobility@@QBEHH@Z @ 634 NONAME ; int QtMobility::QMediaPlaylistNavigator::previousIndex(int) const - ?previousItem@QMediaPlaylistNavigator@QtMobility@@QBE?AVQMediaContent@2@H@Z @ 635 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylistNavigator::previousItem(int) const - ?qt_metacall@QAudioCaptureSource@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 636 NONAME ; int QtMobility::QAudioCaptureSource::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QAudioEncoderControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 637 NONAME ; int QtMobility::QAudioEncoderControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QAudioEndpointSelector@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 638 NONAME ; int QtMobility::QAudioEndpointSelector::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QCamera@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 639 NONAME ; int QtMobility::QCamera::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QCameraControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 640 NONAME ; int QtMobility::QCameraControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QCameraExposureControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 641 NONAME ; int QtMobility::QCameraExposureControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QCameraFocusControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 642 NONAME ; int QtMobility::QCameraFocusControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QGraphicsVideoItem@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 643 NONAME ; int QtMobility::QGraphicsVideoItem::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QImageCaptureControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 644 NONAME ; int QtMobility::QImageCaptureControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QImageEncoderControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 645 NONAME ; int QtMobility::QImageEncoderControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QImageProcessingControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 646 NONAME ; int QtMobility::QImageProcessingControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QLocalMediaPlaylistProvider@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 647 NONAME ; int QtMobility::QLocalMediaPlaylistProvider::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaContainerControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 648 NONAME ; int QtMobility::QMediaContainerControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 649 NONAME ; int QtMobility::QMediaControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaImageViewer@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 650 NONAME ; int QtMobility::QMediaImageViewer::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaObject@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 651 NONAME ; int QtMobility::QMediaObject::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaPlayer@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 652 NONAME ; int QtMobility::QMediaPlayer::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaPlayerControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 653 NONAME ; int QtMobility::QMediaPlayerControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaPlaylist@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 654 NONAME ; int QtMobility::QMediaPlaylist::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaPlaylistControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 655 NONAME ; int QtMobility::QMediaPlaylistControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaPlaylistIOPlugin@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 656 NONAME ; int QtMobility::QMediaPlaylistIOPlugin::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaPlaylistNavigator@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 657 NONAME ; int QtMobility::QMediaPlaylistNavigator::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaPlaylistProvider@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 658 NONAME ; int QtMobility::QMediaPlaylistProvider::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaRecorder@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 659 NONAME ; int QtMobility::QMediaRecorder::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaRecorderControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 660 NONAME ; int QtMobility::QMediaRecorderControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaService@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 661 NONAME ; int QtMobility::QMediaService::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaServiceProvider@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 662 NONAME ; int QtMobility::QMediaServiceProvider::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaServiceProviderPlugin@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 663 NONAME ; int QtMobility::QMediaServiceProviderPlugin::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMediaStreamsControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 664 NONAME ; int QtMobility::QMediaStreamsControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMetaDataControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 665 NONAME ; int QtMobility::QMetaDataControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QRadioTuner@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 666 NONAME ; int QtMobility::QRadioTuner::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QRadioTunerControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 667 NONAME ; int QtMobility::QRadioTunerControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QStillImageCapture@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 668 NONAME ; int QtMobility::QStillImageCapture::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QVideoDeviceControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 669 NONAME ; int QtMobility::QVideoDeviceControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QVideoEncoderControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 670 NONAME ; int QtMobility::QVideoEncoderControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QVideoOutputControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 671 NONAME ; int QtMobility::QVideoOutputControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QVideoRendererControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 672 NONAME ; int QtMobility::QVideoRendererControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QVideoWidget@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 673 NONAME ; int QtMobility::QVideoWidget::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QVideoWidgetControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 674 NONAME ; int QtMobility::QVideoWidgetControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QVideoWindowControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 675 NONAME ; int QtMobility::QVideoWindowControl::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacast@QAudioCaptureSource@QtMobility@@UAEPAXPBD@Z @ 676 NONAME ; void * QtMobility::QAudioCaptureSource::qt_metacast(char const *) - ?qt_metacast@QAudioEncoderControl@QtMobility@@UAEPAXPBD@Z @ 677 NONAME ; void * QtMobility::QAudioEncoderControl::qt_metacast(char const *) - ?qt_metacast@QAudioEndpointSelector@QtMobility@@UAEPAXPBD@Z @ 678 NONAME ; void * QtMobility::QAudioEndpointSelector::qt_metacast(char const *) - ?qt_metacast@QCamera@QtMobility@@UAEPAXPBD@Z @ 679 NONAME ; void * QtMobility::QCamera::qt_metacast(char const *) - ?qt_metacast@QCameraControl@QtMobility@@UAEPAXPBD@Z @ 680 NONAME ; void * QtMobility::QCameraControl::qt_metacast(char const *) - ?qt_metacast@QCameraExposureControl@QtMobility@@UAEPAXPBD@Z @ 681 NONAME ; void * QtMobility::QCameraExposureControl::qt_metacast(char const *) - ?qt_metacast@QCameraFocusControl@QtMobility@@UAEPAXPBD@Z @ 682 NONAME ; void * QtMobility::QCameraFocusControl::qt_metacast(char const *) - ?qt_metacast@QGraphicsVideoItem@QtMobility@@UAEPAXPBD@Z @ 683 NONAME ; void * QtMobility::QGraphicsVideoItem::qt_metacast(char const *) - ?qt_metacast@QImageCaptureControl@QtMobility@@UAEPAXPBD@Z @ 684 NONAME ; void * QtMobility::QImageCaptureControl::qt_metacast(char const *) - ?qt_metacast@QImageEncoderControl@QtMobility@@UAEPAXPBD@Z @ 685 NONAME ; void * QtMobility::QImageEncoderControl::qt_metacast(char const *) - ?qt_metacast@QImageProcessingControl@QtMobility@@UAEPAXPBD@Z @ 686 NONAME ; void * QtMobility::QImageProcessingControl::qt_metacast(char const *) - ?qt_metacast@QLocalMediaPlaylistProvider@QtMobility@@UAEPAXPBD@Z @ 687 NONAME ; void * QtMobility::QLocalMediaPlaylistProvider::qt_metacast(char const *) - ?qt_metacast@QMediaContainerControl@QtMobility@@UAEPAXPBD@Z @ 688 NONAME ; void * QtMobility::QMediaContainerControl::qt_metacast(char const *) - ?qt_metacast@QMediaControl@QtMobility@@UAEPAXPBD@Z @ 689 NONAME ; void * QtMobility::QMediaControl::qt_metacast(char const *) - ?qt_metacast@QMediaImageViewer@QtMobility@@UAEPAXPBD@Z @ 690 NONAME ; void * QtMobility::QMediaImageViewer::qt_metacast(char const *) - ?qt_metacast@QMediaObject@QtMobility@@UAEPAXPBD@Z @ 691 NONAME ; void * QtMobility::QMediaObject::qt_metacast(char const *) - ?qt_metacast@QMediaPlayer@QtMobility@@UAEPAXPBD@Z @ 692 NONAME ; void * QtMobility::QMediaPlayer::qt_metacast(char const *) - ?qt_metacast@QMediaPlayerControl@QtMobility@@UAEPAXPBD@Z @ 693 NONAME ; void * QtMobility::QMediaPlayerControl::qt_metacast(char const *) - ?qt_metacast@QMediaPlaylist@QtMobility@@UAEPAXPBD@Z @ 694 NONAME ; void * QtMobility::QMediaPlaylist::qt_metacast(char const *) - ?qt_metacast@QMediaPlaylistControl@QtMobility@@UAEPAXPBD@Z @ 695 NONAME ; void * QtMobility::QMediaPlaylistControl::qt_metacast(char const *) - ?qt_metacast@QMediaPlaylistIOPlugin@QtMobility@@UAEPAXPBD@Z @ 696 NONAME ; void * QtMobility::QMediaPlaylistIOPlugin::qt_metacast(char const *) - ?qt_metacast@QMediaPlaylistNavigator@QtMobility@@UAEPAXPBD@Z @ 697 NONAME ; void * QtMobility::QMediaPlaylistNavigator::qt_metacast(char const *) - ?qt_metacast@QMediaPlaylistProvider@QtMobility@@UAEPAXPBD@Z @ 698 NONAME ; void * QtMobility::QMediaPlaylistProvider::qt_metacast(char const *) - ?qt_metacast@QMediaRecorder@QtMobility@@UAEPAXPBD@Z @ 699 NONAME ; void * QtMobility::QMediaRecorder::qt_metacast(char const *) - ?qt_metacast@QMediaRecorderControl@QtMobility@@UAEPAXPBD@Z @ 700 NONAME ; void * QtMobility::QMediaRecorderControl::qt_metacast(char const *) - ?qt_metacast@QMediaService@QtMobility@@UAEPAXPBD@Z @ 701 NONAME ; void * QtMobility::QMediaService::qt_metacast(char const *) - ?qt_metacast@QMediaServiceProvider@QtMobility@@UAEPAXPBD@Z @ 702 NONAME ; void * QtMobility::QMediaServiceProvider::qt_metacast(char const *) - ?qt_metacast@QMediaServiceProviderPlugin@QtMobility@@UAEPAXPBD@Z @ 703 NONAME ; void * QtMobility::QMediaServiceProviderPlugin::qt_metacast(char const *) - ?qt_metacast@QMediaStreamsControl@QtMobility@@UAEPAXPBD@Z @ 704 NONAME ; void * QtMobility::QMediaStreamsControl::qt_metacast(char const *) - ?qt_metacast@QMetaDataControl@QtMobility@@UAEPAXPBD@Z @ 705 NONAME ; void * QtMobility::QMetaDataControl::qt_metacast(char const *) - ?qt_metacast@QRadioTuner@QtMobility@@UAEPAXPBD@Z @ 706 NONAME ; void * QtMobility::QRadioTuner::qt_metacast(char const *) - ?qt_metacast@QRadioTunerControl@QtMobility@@UAEPAXPBD@Z @ 707 NONAME ; void * QtMobility::QRadioTunerControl::qt_metacast(char const *) - ?qt_metacast@QStillImageCapture@QtMobility@@UAEPAXPBD@Z @ 708 NONAME ; void * QtMobility::QStillImageCapture::qt_metacast(char const *) - ?qt_metacast@QVideoDeviceControl@QtMobility@@UAEPAXPBD@Z @ 709 NONAME ; void * QtMobility::QVideoDeviceControl::qt_metacast(char const *) - ?qt_metacast@QVideoEncoderControl@QtMobility@@UAEPAXPBD@Z @ 710 NONAME ; void * QtMobility::QVideoEncoderControl::qt_metacast(char const *) - ?qt_metacast@QVideoOutputControl@QtMobility@@UAEPAXPBD@Z @ 711 NONAME ; void * QtMobility::QVideoOutputControl::qt_metacast(char const *) - ?qt_metacast@QVideoRendererControl@QtMobility@@UAEPAXPBD@Z @ 712 NONAME ; void * QtMobility::QVideoRendererControl::qt_metacast(char const *) - ?qt_metacast@QVideoWidget@QtMobility@@UAEPAXPBD@Z @ 713 NONAME ; void * QtMobility::QVideoWidget::qt_metacast(char const *) - ?qt_metacast@QVideoWidgetControl@QtMobility@@UAEPAXPBD@Z @ 714 NONAME ; void * QtMobility::QVideoWidgetControl::qt_metacast(char const *) - ?qt_metacast@QVideoWindowControl@QtMobility@@UAEPAXPBD@Z @ 715 NONAME ; void * QtMobility::QVideoWindowControl::qt_metacast(char const *) - ?quality@QAudioEncoderSettings@QtMobility@@QBE?AW4EncodingQuality@QtMedia@2@XZ @ 716 NONAME ; enum QtMobility::QtMedia::EncodingQuality QtMobility::QAudioEncoderSettings::quality(void) const - ?quality@QImageEncoderSettings@QtMobility@@QBE?AW4EncodingQuality@QtMedia@2@XZ @ 717 NONAME ; enum QtMobility::QtMedia::EncodingQuality QtMobility::QImageEncoderSettings::quality(void) const - ?quality@QVideoEncoderSettings@QtMobility@@QBE?AW4EncodingQuality@QtMedia@2@XZ @ 718 NONAME ; enum QtMobility::QtMedia::EncodingQuality QtMobility::QVideoEncoderSettings::quality(void) const - ?readyForCaptureChanged@QImageCaptureControl@QtMobility@@IAEX_N@Z @ 719 NONAME ; void QtMobility::QImageCaptureControl::readyForCaptureChanged(bool) - ?readyForCaptureChanged@QStillImageCapture@QtMobility@@IAEX_N@Z @ 720 NONAME ; void QtMobility::QStillImageCapture::readyForCaptureChanged(bool) - ?record@QMediaRecorder@QtMobility@@QAEXXZ @ 721 NONAME ; void QtMobility::QMediaRecorder::record(void) - ?removeInterval@QMediaTimeRange@QtMobility@@QAEXABVQMediaTimeInterval@2@@Z @ 722 NONAME ; void QtMobility::QMediaTimeRange::removeInterval(class QtMobility::QMediaTimeInterval const &) - ?removeInterval@QMediaTimeRange@QtMobility@@QAEX_J0@Z @ 723 NONAME ; void QtMobility::QMediaTimeRange::removeInterval(long long, long long) - ?removeMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NH@Z @ 724 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::removeMedia(int) - ?removeMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NHH@Z @ 725 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::removeMedia(int, int) - ?removeMedia@QMediaPlaylist@QtMobility@@QAE_NH@Z @ 726 NONAME ; bool QtMobility::QMediaPlaylist::removeMedia(int) - ?removeMedia@QMediaPlaylist@QtMobility@@QAE_NHH@Z @ 727 NONAME ; bool QtMobility::QMediaPlaylist::removeMedia(int, int) - ?removeMedia@QMediaPlaylistProvider@QtMobility@@UAE_NH@Z @ 728 NONAME ; bool QtMobility::QMediaPlaylistProvider::removeMedia(int) - ?removeMedia@QMediaPlaylistProvider@QtMobility@@UAE_NHH@Z @ 729 NONAME ; bool QtMobility::QMediaPlaylistProvider::removeMedia(int, int) - ?removePropertyWatch@QMediaObject@QtMobility@@IAEXABVQByteArray@@@Z @ 730 NONAME ; void QtMobility::QMediaObject::removePropertyWatch(class QByteArray const &) - ?removeTimeRange@QMediaTimeRange@QtMobility@@QAEXABV12@@Z @ 731 NONAME ; void QtMobility::QMediaTimeRange::removeTimeRange(class QtMobility::QMediaTimeRange const &) - ?resizeEvent@QVideoWidget@QtMobility@@MAEXPAVQResizeEvent@@@Z @ 732 NONAME ; void QtMobility::QVideoWidget::resizeEvent(class QResizeEvent *) - ?resolution@QImageEncoderSettings@QtMobility@@QBE?AVQSize@@XZ @ 733 NONAME ; class QSize QtMobility::QImageEncoderSettings::resolution(void) const - ?resolution@QMediaResource@QtMobility@@QBE?AVQSize@@XZ @ 734 NONAME ; class QSize QtMobility::QMediaResource::resolution(void) const - ?resolution@QVideoEncoderSettings@QtMobility@@QBE?AVQSize@@XZ @ 735 NONAME ; class QSize QtMobility::QVideoEncoderSettings::resolution(void) const - ?resources@QMediaContent@QtMobility@@QBE?AV?$QList@VQMediaResource@QtMobility@@@@XZ @ 736 NONAME ; class QList QtMobility::QMediaContent::resources(void) const - ?sampleRate@QAudioEncoderSettings@QtMobility@@QBEHXZ @ 737 NONAME ; int QtMobility::QAudioEncoderSettings::sampleRate(void) const - ?sampleRate@QMediaResource@QtMobility@@QBEHXZ @ 738 NONAME ; int QtMobility::QMediaResource::sampleRate(void) const - ?saturation@QVideoWidget@QtMobility@@QBEHXZ @ 739 NONAME ; int QtMobility::QVideoWidget::saturation(void) const - ?saturationChanged@QVideoWidget@QtMobility@@IAEXH@Z @ 740 NONAME ; void QtMobility::QVideoWidget::saturationChanged(int) - ?saturationChanged@QVideoWidgetControl@QtMobility@@IAEXH@Z @ 741 NONAME ; void QtMobility::QVideoWidgetControl::saturationChanged(int) - ?saturationChanged@QVideoWindowControl@QtMobility@@IAEXH@Z @ 742 NONAME ; void QtMobility::QVideoWindowControl::saturationChanged(int) - ?save@QMediaPlaylist@QtMobility@@QAE_NABVQUrl@@PBD@Z @ 743 NONAME ; bool QtMobility::QMediaPlaylist::save(class QUrl const &, char const *) - ?save@QMediaPlaylist@QtMobility@@QAE_NPAVQIODevice@@PBD@Z @ 744 NONAME ; bool QtMobility::QMediaPlaylist::save(class QIODevice *, char const *) - ?save@QMediaPlaylistProvider@QtMobility@@UAE_NABVQUrl@@PBD@Z @ 745 NONAME ; bool QtMobility::QMediaPlaylistProvider::save(class QUrl const &, char const *) - ?save@QMediaPlaylistProvider@QtMobility@@UAE_NPAVQIODevice@@PBD@Z @ 746 NONAME ; bool QtMobility::QMediaPlaylistProvider::save(class QIODevice *, char const *) - ?searchBackward@QRadioTuner@QtMobility@@QAEXXZ @ 747 NONAME ; void QtMobility::QRadioTuner::searchBackward(void) - ?searchForward@QRadioTuner@QtMobility@@QAEXXZ @ 748 NONAME ; void QtMobility::QRadioTuner::searchForward(void) - ?searchingChanged@QRadioTuner@QtMobility@@IAEX_N@Z @ 749 NONAME ; void QtMobility::QRadioTuner::searchingChanged(bool) - ?searchingChanged@QRadioTunerControl@QtMobility@@IAEX_N@Z @ 750 NONAME ; void QtMobility::QRadioTunerControl::searchingChanged(bool) - ?seekableChanged@QMediaPlayer@QtMobility@@IAEX_N@Z @ 751 NONAME ; void QtMobility::QMediaPlayer::seekableChanged(bool) - ?seekableChanged@QMediaPlayerControl@QtMobility@@IAEX_N@Z @ 752 NONAME ; void QtMobility::QMediaPlayerControl::seekableChanged(bool) - ?selectedDeviceChanged@QVideoDeviceControl@QtMobility@@IAEXABVQString@@@Z @ 753 NONAME ; void QtMobility::QVideoDeviceControl::selectedDeviceChanged(class QString const &) - ?selectedDeviceChanged@QVideoDeviceControl@QtMobility@@IAEXH@Z @ 754 NONAME ; void QtMobility::QVideoDeviceControl::selectedDeviceChanged(int) - ?service@QMediaObject@QtMobility@@UBEPAVQMediaService@2@XZ @ 755 NONAME ; class QtMobility::QMediaService * QtMobility::QMediaObject::service(void) const - ?setAspectRatioMode@QGraphicsVideoItem@QtMobility@@QAEXW4AspectRatioMode@Qt@@@Z @ 756 NONAME ; void QtMobility::QGraphicsVideoItem::setAspectRatioMode(enum Qt::AspectRatioMode) - ?setAspectRatioMode@QVideoWidget@QtMobility@@QAEXW4AspectRatioMode@12@@Z @ 757 NONAME ; void QtMobility::QVideoWidget::setAspectRatioMode(enum QtMobility::QVideoWidget::AspectRatioMode) - ?setAudioBitRate@QMediaResource@QtMobility@@QAEXH@Z @ 758 NONAME ; void QtMobility::QMediaResource::setAudioBitRate(int) - ?setAudioCodec@QMediaResource@QtMobility@@QAEXABVQString@@@Z @ 759 NONAME ; void QtMobility::QMediaResource::setAudioCodec(class QString const &) - ?setAudioInput@QAudioCaptureSource@QtMobility@@QAEXABVQString@@@Z @ 760 NONAME ; void QtMobility::QAudioCaptureSource::setAudioInput(class QString const &) - ?setAutoAperture@QCamera@QtMobility@@QAEXXZ @ 761 NONAME ; void QtMobility::QCamera::setAutoAperture(void) - ?setAutoIsoSensitivity@QCamera@QtMobility@@QAEXXZ @ 762 NONAME ; void QtMobility::QCamera::setAutoIsoSensitivity(void) - ?setAutoShutterSpeed@QCamera@QtMobility@@QAEXXZ @ 763 NONAME ; void QtMobility::QCamera::setAutoShutterSpeed(void) - ?setBand@QRadioTuner@QtMobility@@QAEXW4Band@12@@Z @ 764 NONAME ; void QtMobility::QRadioTuner::setBand(enum QtMobility::QRadioTuner::Band) - ?setBitRate@QAudioEncoderSettings@QtMobility@@QAEXH@Z @ 765 NONAME ; void QtMobility::QAudioEncoderSettings::setBitRate(int) - ?setBitRate@QVideoEncoderSettings@QtMobility@@QAEXH@Z @ 766 NONAME ; void QtMobility::QVideoEncoderSettings::setBitRate(int) - ?setBrightness@QVideoWidget@QtMobility@@QAEXH@Z @ 767 NONAME ; void QtMobility::QVideoWidget::setBrightness(int) - ?setCaptureMode@QCamera@QtMobility@@QAEXW4CaptureMode@12@@Z @ 768 NONAME ; void QtMobility::QCamera::setCaptureMode(enum QtMobility::QCamera::CaptureMode) - ?setChannelCount@QAudioEncoderSettings@QtMobility@@QAEXH@Z @ 769 NONAME ; void QtMobility::QAudioEncoderSettings::setChannelCount(int) - ?setChannelCount@QMediaResource@QtMobility@@QAEXH@Z @ 770 NONAME ; void QtMobility::QMediaResource::setChannelCount(int) - ?setCodec@QAudioEncoderSettings@QtMobility@@QAEXABVQString@@@Z @ 771 NONAME ; void QtMobility::QAudioEncoderSettings::setCodec(class QString const &) - ?setCodec@QImageEncoderSettings@QtMobility@@QAEXABVQString@@@Z @ 772 NONAME ; void QtMobility::QImageEncoderSettings::setCodec(class QString const &) - ?setCodec@QVideoEncoderSettings@QtMobility@@QAEXABVQString@@@Z @ 773 NONAME ; void QtMobility::QVideoEncoderSettings::setCodec(class QString const &) - ?setContrast@QVideoWidget@QtMobility@@QAEXH@Z @ 774 NONAME ; void QtMobility::QVideoWidget::setContrast(int) - ?setCurrentIndex@QMediaPlaylist@QtMobility@@QAEXH@Z @ 775 NONAME ; void QtMobility::QMediaPlaylist::setCurrentIndex(int) - ?setDataSize@QMediaResource@QtMobility@@QAEX_J@Z @ 776 NONAME ; void QtMobility::QMediaResource::setDataSize(long long) - ?setEncodingMode@QAudioEncoderSettings@QtMobility@@QAEXW4EncodingMode@QtMedia@2@@Z @ 777 NONAME ; void QtMobility::QAudioEncoderSettings::setEncodingMode(enum QtMobility::QtMedia::EncodingMode) - ?setEncodingMode@QVideoEncoderSettings@QtMobility@@QAEXW4EncodingMode@QtMedia@2@@Z @ 778 NONAME ; void QtMobility::QVideoEncoderSettings::setEncodingMode(enum QtMobility::QtMedia::EncodingMode) - ?setEncodingSettings@QMediaRecorder@QtMobility@@QAEXABVQAudioEncoderSettings@2@ABVQVideoEncoderSettings@2@ABVQString@@@Z @ 779 NONAME ; void QtMobility::QMediaRecorder::setEncodingSettings(class QtMobility::QAudioEncoderSettings const &, class QtMobility::QVideoEncoderSettings const &, class QString const &) - ?setEncodingSettings@QStillImageCapture@QtMobility@@QAEXABVQImageEncoderSettings@2@@Z @ 780 NONAME ; void QtMobility::QStillImageCapture::setEncodingSettings(class QtMobility::QImageEncoderSettings const &) - ?setExposureCompensation@QCamera@QtMobility@@QAEXM@Z @ 781 NONAME ; void QtMobility::QCamera::setExposureCompensation(float) - ?setExposureMode@QCamera@QtMobility@@QAEXW4ExposureMode@12@@Z @ 782 NONAME ; void QtMobility::QCamera::setExposureMode(enum QtMobility::QCamera::ExposureMode) - ?setExtendedMetaData@QMediaObject@QtMobility@@QAEXABVQString@@ABVQVariant@@@Z @ 783 NONAME ; void QtMobility::QMediaObject::setExtendedMetaData(class QString const &, class QVariant const &) - ?setFlashMode@QCamera@QtMobility@@QAEXW4FlashMode@12@@Z @ 784 NONAME ; void QtMobility::QCamera::setFlashMode(enum QtMobility::QCamera::FlashMode) - ?setFocusMode@QCamera@QtMobility@@QAEXW4FocusMode@12@@Z @ 785 NONAME ; void QtMobility::QCamera::setFocusMode(enum QtMobility::QCamera::FocusMode) - ?setFrameRate@QVideoEncoderSettings@QtMobility@@QAEXM@Z @ 786 NONAME ; void QtMobility::QVideoEncoderSettings::setFrameRate(float) - ?setFrequency@QRadioTuner@QtMobility@@QAEXH@Z @ 787 NONAME ; void QtMobility::QRadioTuner::setFrequency(int) - ?setFullScreen@QVideoWidget@QtMobility@@QAEX_N@Z @ 788 NONAME ; void QtMobility::QVideoWidget::setFullScreen(bool) - ?setHue@QVideoWidget@QtMobility@@QAEXH@Z @ 789 NONAME ; void QtMobility::QVideoWidget::setHue(int) - ?setLanguage@QMediaResource@QtMobility@@QAEXABVQString@@@Z @ 790 NONAME ; void QtMobility::QMediaResource::setLanguage(class QString const &) - ?setMacroFocusingEnabled@QCamera@QtMobility@@QAEX_N@Z @ 791 NONAME ; void QtMobility::QCamera::setMacroFocusingEnabled(bool) - ?setManualAperture@QCamera@QtMobility@@QAEXM@Z @ 792 NONAME ; void QtMobility::QCamera::setManualAperture(float) - ?setManualIsoSensitivity@QCamera@QtMobility@@QAEXH@Z @ 793 NONAME ; void QtMobility::QCamera::setManualIsoSensitivity(int) - ?setManualShutterSpeed@QCamera@QtMobility@@QAEXM@Z @ 794 NONAME ; void QtMobility::QCamera::setManualShutterSpeed(float) - ?setManualWhiteBalance@QCamera@QtMobility@@QAEXH@Z @ 795 NONAME ; void QtMobility::QCamera::setManualWhiteBalance(int) - ?setMedia@QMediaImageViewer@QtMobility@@QAEXABVQMediaContent@2@@Z @ 796 NONAME ; void QtMobility::QMediaImageViewer::setMedia(class QtMobility::QMediaContent const &) - ?setMedia@QMediaPlayer@QtMobility@@QAEXABVQMediaContent@2@PAVQIODevice@@@Z @ 797 NONAME ; void QtMobility::QMediaPlayer::setMedia(class QtMobility::QMediaContent const &, class QIODevice *) - ?setMediaObject@QGraphicsVideoItem@QtMobility@@QAEXPAVQMediaObject@2@@Z @ 798 NONAME ; void QtMobility::QGraphicsVideoItem::setMediaObject(class QtMobility::QMediaObject *) - ?setMediaObject@QMediaPlaylist@QtMobility@@QAEXPAVQMediaObject@2@@Z @ 799 NONAME ; void QtMobility::QMediaPlaylist::setMediaObject(class QtMobility::QMediaObject *) - ?setMediaObject@QVideoWidget@QtMobility@@QAEXPAVQMediaObject@2@@Z @ 800 NONAME ; void QtMobility::QVideoWidget::setMediaObject(class QtMobility::QMediaObject *) - ?setMetaData@QMediaObject@QtMobility@@QAEXW4MetaData@QtMedia@2@ABVQVariant@@@Z @ 801 NONAME ; void QtMobility::QMediaObject::setMetaData(enum QtMobility::QtMedia::MetaData, class QVariant const &) - ?setMeteringMode@QCamera@QtMobility@@QAEXW4MeteringMode@12@@Z @ 802 NONAME ; void QtMobility::QCamera::setMeteringMode(enum QtMobility::QCamera::MeteringMode) - ?setMuted@QMediaPlayer@QtMobility@@QAEX_N@Z @ 803 NONAME ; void QtMobility::QMediaPlayer::setMuted(bool) - ?setMuted@QRadioTuner@QtMobility@@QAEX_N@Z @ 804 NONAME ; void QtMobility::QRadioTuner::setMuted(bool) - ?setNotifyInterval@QMediaObject@QtMobility@@QAEXH@Z @ 805 NONAME ; void QtMobility::QMediaObject::setNotifyInterval(int) - ?setOffset@QGraphicsVideoItem@QtMobility@@QAEXABVQPointF@@@Z @ 806 NONAME ; void QtMobility::QGraphicsVideoItem::setOffset(class QPointF const &) - ?setOutputLocation@QMediaRecorder@QtMobility@@QAE_NABVQUrl@@@Z @ 807 NONAME ; bool QtMobility::QMediaRecorder::setOutputLocation(class QUrl const &) - ?setPlaybackMode@QMediaPlaylist@QtMobility@@QAEXW4PlaybackMode@12@@Z @ 808 NONAME ; void QtMobility::QMediaPlaylist::setPlaybackMode(enum QtMobility::QMediaPlaylist::PlaybackMode) - ?setPlaybackMode@QMediaPlaylistNavigator@QtMobility@@QAEXW4PlaybackMode@QMediaPlaylist@2@@Z @ 809 NONAME ; void QtMobility::QMediaPlaylistNavigator::setPlaybackMode(enum QtMobility::QMediaPlaylist::PlaybackMode) - ?setPlaybackRate@QMediaPlayer@QtMobility@@QAEXM@Z @ 810 NONAME ; void QtMobility::QMediaPlayer::setPlaybackRate(float) - ?setPlaylist@QMediaPlaylistNavigator@QtMobility@@QAEXPAVQMediaPlaylistProvider@2@@Z @ 811 NONAME ; void QtMobility::QMediaPlaylistNavigator::setPlaylist(class QtMobility::QMediaPlaylistProvider *) - ?setPosition@QMediaPlayer@QtMobility@@QAEX_J@Z @ 812 NONAME ; void QtMobility::QMediaPlayer::setPosition(long long) - ?setQuality@QAudioEncoderSettings@QtMobility@@QAEXW4EncodingQuality@QtMedia@2@@Z @ 813 NONAME ; void QtMobility::QAudioEncoderSettings::setQuality(enum QtMobility::QtMedia::EncodingQuality) - ?setQuality@QImageEncoderSettings@QtMobility@@QAEXW4EncodingQuality@QtMedia@2@@Z @ 814 NONAME ; void QtMobility::QImageEncoderSettings::setQuality(enum QtMobility::QtMedia::EncodingQuality) - ?setQuality@QVideoEncoderSettings@QtMobility@@QAEXW4EncodingQuality@QtMedia@2@@Z @ 815 NONAME ; void QtMobility::QVideoEncoderSettings::setQuality(enum QtMobility::QtMedia::EncodingQuality) - ?setResolution@QImageEncoderSettings@QtMobility@@QAEXABVQSize@@@Z @ 816 NONAME ; void QtMobility::QImageEncoderSettings::setResolution(class QSize const &) - ?setResolution@QImageEncoderSettings@QtMobility@@QAEXHH@Z @ 817 NONAME ; void QtMobility::QImageEncoderSettings::setResolution(int, int) - ?setResolution@QMediaResource@QtMobility@@QAEXABVQSize@@@Z @ 818 NONAME ; void QtMobility::QMediaResource::setResolution(class QSize const &) - ?setResolution@QMediaResource@QtMobility@@QAEXHH@Z @ 819 NONAME ; void QtMobility::QMediaResource::setResolution(int, int) - ?setResolution@QVideoEncoderSettings@QtMobility@@QAEXABVQSize@@@Z @ 820 NONAME ; void QtMobility::QVideoEncoderSettings::setResolution(class QSize const &) - ?setResolution@QVideoEncoderSettings@QtMobility@@QAEXHH@Z @ 821 NONAME ; void QtMobility::QVideoEncoderSettings::setResolution(int, int) - ?setSampleRate@QAudioEncoderSettings@QtMobility@@QAEXH@Z @ 822 NONAME ; void QtMobility::QAudioEncoderSettings::setSampleRate(int) - ?setSampleRate@QMediaResource@QtMobility@@QAEXH@Z @ 823 NONAME ; void QtMobility::QMediaResource::setSampleRate(int) - ?setSaturation@QVideoWidget@QtMobility@@QAEXH@Z @ 824 NONAME ; void QtMobility::QVideoWidget::setSaturation(int) - ?setSize@QGraphicsVideoItem@QtMobility@@QAEXABVQSizeF@@@Z @ 825 NONAME ; void QtMobility::QGraphicsVideoItem::setSize(class QSizeF const &) - ?setStereoMode@QRadioTuner@QtMobility@@QAEXW4StereoMode@12@@Z @ 826 NONAME ; void QtMobility::QRadioTuner::setStereoMode(enum QtMobility::QRadioTuner::StereoMode) - ?setTimeout@QMediaImageViewer@QtMobility@@QAEXH@Z @ 827 NONAME ; void QtMobility::QMediaImageViewer::setTimeout(int) - ?setVideoBitRate@QMediaResource@QtMobility@@QAEXH@Z @ 828 NONAME ; void QtMobility::QMediaResource::setVideoBitRate(int) - ?setVideoCodec@QMediaResource@QtMobility@@QAEXABVQString@@@Z @ 829 NONAME ; void QtMobility::QMediaResource::setVideoCodec(class QString const &) - ?setVolume@QMediaPlayer@QtMobility@@QAEXH@Z @ 830 NONAME ; void QtMobility::QMediaPlayer::setVolume(int) - ?setVolume@QRadioTuner@QtMobility@@QAEXH@Z @ 831 NONAME ; void QtMobility::QRadioTuner::setVolume(int) - ?setWhiteBalanceMode@QCamera@QtMobility@@QAEXW4WhiteBalanceMode@12@@Z @ 832 NONAME ; void QtMobility::QCamera::setWhiteBalanceMode(enum QtMobility::QCamera::WhiteBalanceMode) - ?setupMetaData@QMediaObject@QtMobility@@AAEXXZ @ 833 NONAME ; void QtMobility::QMediaObject::setupMetaData(void) - ?showEvent@QVideoWidget@QtMobility@@MAEXPAVQShowEvent@@@Z @ 834 NONAME ; void QtMobility::QVideoWidget::showEvent(class QShowEvent *) - ?shuffle@QLocalMediaPlaylistProvider@QtMobility@@UAEXXZ @ 835 NONAME ; void QtMobility::QLocalMediaPlaylistProvider::shuffle(void) - ?shuffle@QMediaPlaylist@QtMobility@@QAEXXZ @ 836 NONAME ; void QtMobility::QMediaPlaylist::shuffle(void) - ?shuffle@QMediaPlaylistProvider@QtMobility@@UAEXXZ @ 837 NONAME ; void QtMobility::QMediaPlaylistProvider::shuffle(void) - ?shutterSpeed@QCamera@QtMobility@@QBEMXZ @ 838 NONAME ; float QtMobility::QCamera::shutterSpeed(void) const - ?shutterSpeedChanged@QCamera@QtMobility@@IAEXM@Z @ 839 NONAME ; void QtMobility::QCamera::shutterSpeedChanged(float) - ?shutterSpeedChanged@QCameraExposureControl@QtMobility@@IAEXM@Z @ 840 NONAME ; void QtMobility::QCameraExposureControl::shutterSpeedChanged(float) - ?signalStrength@QRadioTuner@QtMobility@@QBEHXZ @ 841 NONAME ; int QtMobility::QRadioTuner::signalStrength(void) const - ?signalStrengthChanged@QRadioTuner@QtMobility@@IAEXH@Z @ 842 NONAME ; void QtMobility::QRadioTuner::signalStrengthChanged(int) - ?signalStrengthChanged@QRadioTunerControl@QtMobility@@IAEXH@Z @ 843 NONAME ; void QtMobility::QRadioTunerControl::signalStrengthChanged(int) - ?size@QGraphicsVideoItem@QtMobility@@QBE?AVQSizeF@@XZ @ 844 NONAME ; class QSizeF QtMobility::QGraphicsVideoItem::size(void) const - ?sizeHint@QVideoWidget@QtMobility@@UBE?AVQSize@@XZ @ 845 NONAME ; class QSize QtMobility::QVideoWidget::sizeHint(void) const - ?start@QCamera@QtMobility@@QAEXXZ @ 846 NONAME ; void QtMobility::QCamera::start(void) - ?start@QMediaTimeInterval@QtMobility@@QBE_JXZ @ 847 NONAME ; long long QtMobility::QMediaTimeInterval::start(void) const - ?start@QRadioTuner@QtMobility@@QAEXXZ @ 848 NONAME ; void QtMobility::QRadioTuner::start(void) - ?startFocusing@QCamera@QtMobility@@QAEXXZ @ 849 NONAME ; void QtMobility::QCamera::startFocusing(void) - ?state@QCamera@QtMobility@@QBE?AW4State@12@XZ @ 850 NONAME ; enum QtMobility::QCamera::State QtMobility::QCamera::state(void) const - ?state@QMediaImageViewer@QtMobility@@QBE?AW4State@12@XZ @ 851 NONAME ; enum QtMobility::QMediaImageViewer::State QtMobility::QMediaImageViewer::state(void) const - ?state@QMediaPlayer@QtMobility@@QBE?AW4State@12@XZ @ 852 NONAME ; enum QtMobility::QMediaPlayer::State QtMobility::QMediaPlayer::state(void) const - ?state@QMediaRecorder@QtMobility@@QBE?AW4State@12@XZ @ 853 NONAME ; enum QtMobility::QMediaRecorder::State QtMobility::QMediaRecorder::state(void) const - ?state@QRadioTuner@QtMobility@@QBE?AW4State@12@XZ @ 854 NONAME ; enum QtMobility::QRadioTuner::State QtMobility::QRadioTuner::state(void) const - ?stateChanged@QCamera@QtMobility@@IAEXW4State@12@@Z @ 855 NONAME ; void QtMobility::QCamera::stateChanged(enum QtMobility::QCamera::State) - ?stateChanged@QCameraControl@QtMobility@@IAEXW4State@QCamera@2@@Z @ 856 NONAME ; void QtMobility::QCameraControl::stateChanged(enum QtMobility::QCamera::State) - ?stateChanged@QMediaImageViewer@QtMobility@@IAEXW4State@12@@Z @ 857 NONAME ; void QtMobility::QMediaImageViewer::stateChanged(enum QtMobility::QMediaImageViewer::State) - ?stateChanged@QMediaPlayer@QtMobility@@IAEXW4State@12@@Z @ 858 NONAME ; void QtMobility::QMediaPlayer::stateChanged(enum QtMobility::QMediaPlayer::State) - ?stateChanged@QMediaPlayerControl@QtMobility@@IAEXW4State@QMediaPlayer@2@@Z @ 859 NONAME ; void QtMobility::QMediaPlayerControl::stateChanged(enum QtMobility::QMediaPlayer::State) - ?stateChanged@QMediaRecorder@QtMobility@@IAEXW4State@12@@Z @ 860 NONAME ; void QtMobility::QMediaRecorder::stateChanged(enum QtMobility::QMediaRecorder::State) - ?stateChanged@QMediaRecorderControl@QtMobility@@IAEXW4State@QMediaRecorder@2@@Z @ 861 NONAME ; void QtMobility::QMediaRecorderControl::stateChanged(enum QtMobility::QMediaRecorder::State) - ?stateChanged@QRadioTuner@QtMobility@@IAEXW4State@12@@Z @ 862 NONAME ; void QtMobility::QRadioTuner::stateChanged(enum QtMobility::QRadioTuner::State) - ?stateChanged@QRadioTunerControl@QtMobility@@IAEXW4State@QRadioTuner@2@@Z @ 863 NONAME ; void QtMobility::QRadioTunerControl::stateChanged(enum QtMobility::QRadioTuner::State) - ?statusChanged@QAudioCaptureSource@QtMobility@@AAEXXZ @ 864 NONAME ; void QtMobility::QAudioCaptureSource::statusChanged(void) - ?stereoMode@QRadioTuner@QtMobility@@QBE?AW4StereoMode@12@XZ @ 865 NONAME ; enum QtMobility::QRadioTuner::StereoMode QtMobility::QRadioTuner::stereoMode(void) const - ?stereoStatusChanged@QRadioTuner@QtMobility@@IAEX_N@Z @ 866 NONAME ; void QtMobility::QRadioTuner::stereoStatusChanged(bool) - ?stereoStatusChanged@QRadioTunerControl@QtMobility@@IAEX_N@Z @ 867 NONAME ; void QtMobility::QRadioTunerControl::stereoStatusChanged(bool) - ?stop@QCamera@QtMobility@@QAEXXZ @ 868 NONAME ; void QtMobility::QCamera::stop(void) - ?stop@QMediaImageViewer@QtMobility@@QAEXXZ @ 869 NONAME ; void QtMobility::QMediaImageViewer::stop(void) - ?stop@QMediaPlayer@QtMobility@@QAEXXZ @ 870 NONAME ; void QtMobility::QMediaPlayer::stop(void) - ?stop@QMediaRecorder@QtMobility@@QAEXXZ @ 871 NONAME ; void QtMobility::QMediaRecorder::stop(void) - ?stop@QRadioTuner@QtMobility@@QAEXXZ @ 872 NONAME ; void QtMobility::QRadioTuner::stop(void) - ?streamsChanged@QMediaStreamsControl@QtMobility@@IAEXXZ @ 873 NONAME ; void QtMobility::QMediaStreamsControl::streamsChanged(void) - ?supportedApertures@QCamera@QtMobility@@QBE?AV?$QList@M@@PA_N@Z @ 874 NONAME ; class QList QtMobility::QCamera::supportedApertures(bool *) const - ?supportedAudioCodecs@QMediaRecorder@QtMobility@@QBE?AVQStringList@@XZ @ 875 NONAME ; class QStringList QtMobility::QMediaRecorder::supportedAudioCodecs(void) const - ?supportedAudioSampleRates@QMediaRecorder@QtMobility@@QBE?AV?$QList@H@@ABVQAudioEncoderSettings@2@PA_N@Z @ 876 NONAME ; class QList QtMobility::QMediaRecorder::supportedAudioSampleRates(class QtMobility::QAudioEncoderSettings const &, bool *) const - ?supportedCaptureModes@QCamera@QtMobility@@QBE?AV?$QFlags@W4CaptureMode@QCamera@QtMobility@@@@XZ @ 877 NONAME ; class QFlags QtMobility::QCamera::supportedCaptureModes(void) const - ?supportedContainers@QMediaRecorder@QtMobility@@QBE?AVQStringList@@XZ @ 878 NONAME ; class QStringList QtMobility::QMediaRecorder::supportedContainers(void) const - ?supportedExposureModes@QCamera@QtMobility@@QBE?AV?$QFlags@W4ExposureMode@QCamera@QtMobility@@@@XZ @ 879 NONAME ; class QFlags QtMobility::QCamera::supportedExposureModes(void) const - ?supportedFlashModes@QCamera@QtMobility@@QBE?AV?$QFlags@W4FlashMode@QCamera@QtMobility@@@@XZ @ 880 NONAME ; class QFlags QtMobility::QCamera::supportedFlashModes(void) const - ?supportedFocusModes@QCamera@QtMobility@@QBE?AV?$QFlags@W4FocusMode@QCamera@QtMobility@@@@XZ @ 881 NONAME ; class QFlags QtMobility::QCamera::supportedFocusModes(void) const - ?supportedFrameRates@QMediaRecorder@QtMobility@@QBE?AV?$QList@M@@ABVQVideoEncoderSettings@2@PA_N@Z @ 882 NONAME ; class QList QtMobility::QMediaRecorder::supportedFrameRates(class QtMobility::QVideoEncoderSettings const &, bool *) const - ?supportedImageCodecs@QStillImageCapture@QtMobility@@QBE?AVQStringList@@XZ @ 883 NONAME ; class QStringList QtMobility::QStillImageCapture::supportedImageCodecs(void) const - ?supportedIsoSensitivities@QCamera@QtMobility@@QBE?AV?$QList@H@@PA_N@Z @ 884 NONAME ; class QList QtMobility::QCamera::supportedIsoSensitivities(bool *) const - ?supportedMeteringModes@QCamera@QtMobility@@QBE?AV?$QFlags@W4MeteringMode@QCamera@QtMobility@@@@XZ @ 885 NONAME ; class QFlags QtMobility::QCamera::supportedMeteringModes(void) const - ?supportedMimeTypes@QMediaPlayer@QtMobility@@SA?AVQStringList@@V?$QFlags@W4Flag@QMediaPlayer@QtMobility@@@@@Z @ 886 NONAME ; class QStringList QtMobility::QMediaPlayer::supportedMimeTypes(class QFlags) - ?supportedMimeTypes@QMediaServiceProvider@QtMobility@@UBE?AVQStringList@@ABVQByteArray@@H@Z @ 887 NONAME ; class QStringList QtMobility::QMediaServiceProvider::supportedMimeTypes(class QByteArray const &, int) const - ?supportedResolutions@QMediaRecorder@QtMobility@@QBE?AV?$QList@VQSize@@@@ABVQVideoEncoderSettings@2@PA_N@Z @ 888 NONAME ; class QList QtMobility::QMediaRecorder::supportedResolutions(class QtMobility::QVideoEncoderSettings const &, bool *) const - ?supportedResolutions@QStillImageCapture@QtMobility@@QBE?AV?$QList@VQSize@@@@ABVQImageEncoderSettings@2@PA_N@Z @ 889 NONAME ; class QList QtMobility::QStillImageCapture::supportedResolutions(class QtMobility::QImageEncoderSettings const &, bool *) const - ?supportedShutterSpeeds@QCamera@QtMobility@@QBE?AV?$QList@M@@PA_N@Z @ 890 NONAME ; class QList QtMobility::QCamera::supportedShutterSpeeds(bool *) const - ?supportedVideoCodecs@QMediaRecorder@QtMobility@@QBE?AVQStringList@@XZ @ 891 NONAME ; class QStringList QtMobility::QMediaRecorder::supportedVideoCodecs(void) const - ?supportedWhiteBalanceModes@QCamera@QtMobility@@QBE?AV?$QFlags@W4WhiteBalanceMode@QCamera@QtMobility@@@@XZ @ 892 NONAME ; class QFlags QtMobility::QCamera::supportedWhiteBalanceModes(void) const - ?surroundingItemsChanged@QMediaPlaylistNavigator@QtMobility@@IAEXXZ @ 893 NONAME ; void QtMobility::QMediaPlaylistNavigator::surroundingItemsChanged(void) - ?timeout@QMediaImageViewer@QtMobility@@QBEHXZ @ 894 NONAME ; int QtMobility::QMediaImageViewer::timeout(void) const - ?timerEvent@QMediaImageViewer@QtMobility@@MAEXPAVQTimerEvent@@@Z @ 895 NONAME ; void QtMobility::QMediaImageViewer::timerEvent(class QTimerEvent *) - ?tr@QAudioCaptureSource@QtMobility@@SA?AVQString@@PBD0@Z @ 896 NONAME ; class QString QtMobility::QAudioCaptureSource::tr(char const *, char const *) - ?tr@QAudioCaptureSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 897 NONAME ; class QString QtMobility::QAudioCaptureSource::tr(char const *, char const *, int) - ?tr@QAudioEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 898 NONAME ; class QString QtMobility::QAudioEncoderControl::tr(char const *, char const *) - ?tr@QAudioEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 899 NONAME ; class QString QtMobility::QAudioEncoderControl::tr(char const *, char const *, int) - ?tr@QAudioEndpointSelector@QtMobility@@SA?AVQString@@PBD0@Z @ 900 NONAME ; class QString QtMobility::QAudioEndpointSelector::tr(char const *, char const *) - ?tr@QAudioEndpointSelector@QtMobility@@SA?AVQString@@PBD0H@Z @ 901 NONAME ; class QString QtMobility::QAudioEndpointSelector::tr(char const *, char const *, int) - ?tr@QCamera@QtMobility@@SA?AVQString@@PBD0@Z @ 902 NONAME ; class QString QtMobility::QCamera::tr(char const *, char const *) - ?tr@QCamera@QtMobility@@SA?AVQString@@PBD0H@Z @ 903 NONAME ; class QString QtMobility::QCamera::tr(char const *, char const *, int) - ?tr@QCameraControl@QtMobility@@SA?AVQString@@PBD0@Z @ 904 NONAME ; class QString QtMobility::QCameraControl::tr(char const *, char const *) - ?tr@QCameraControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 905 NONAME ; class QString QtMobility::QCameraControl::tr(char const *, char const *, int) - ?tr@QCameraExposureControl@QtMobility@@SA?AVQString@@PBD0@Z @ 906 NONAME ; class QString QtMobility::QCameraExposureControl::tr(char const *, char const *) - ?tr@QCameraExposureControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 907 NONAME ; class QString QtMobility::QCameraExposureControl::tr(char const *, char const *, int) - ?tr@QCameraFocusControl@QtMobility@@SA?AVQString@@PBD0@Z @ 908 NONAME ; class QString QtMobility::QCameraFocusControl::tr(char const *, char const *) - ?tr@QCameraFocusControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 909 NONAME ; class QString QtMobility::QCameraFocusControl::tr(char const *, char const *, int) - ?tr@QGraphicsVideoItem@QtMobility@@SA?AVQString@@PBD0@Z @ 910 NONAME ; class QString QtMobility::QGraphicsVideoItem::tr(char const *, char const *) - ?tr@QGraphicsVideoItem@QtMobility@@SA?AVQString@@PBD0H@Z @ 911 NONAME ; class QString QtMobility::QGraphicsVideoItem::tr(char const *, char const *, int) - ?tr@QImageCaptureControl@QtMobility@@SA?AVQString@@PBD0@Z @ 912 NONAME ; class QString QtMobility::QImageCaptureControl::tr(char const *, char const *) - ?tr@QImageCaptureControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 913 NONAME ; class QString QtMobility::QImageCaptureControl::tr(char const *, char const *, int) - ?tr@QImageEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 914 NONAME ; class QString QtMobility::QImageEncoderControl::tr(char const *, char const *) - ?tr@QImageEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 915 NONAME ; class QString QtMobility::QImageEncoderControl::tr(char const *, char const *, int) - ?tr@QImageProcessingControl@QtMobility@@SA?AVQString@@PBD0@Z @ 916 NONAME ; class QString QtMobility::QImageProcessingControl::tr(char const *, char const *) - ?tr@QImageProcessingControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 917 NONAME ; class QString QtMobility::QImageProcessingControl::tr(char const *, char const *, int) - ?tr@QLocalMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 918 NONAME ; class QString QtMobility::QLocalMediaPlaylistProvider::tr(char const *, char const *) - ?tr@QLocalMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 919 NONAME ; class QString QtMobility::QLocalMediaPlaylistProvider::tr(char const *, char const *, int) - ?tr@QMediaContainerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 920 NONAME ; class QString QtMobility::QMediaContainerControl::tr(char const *, char const *) - ?tr@QMediaContainerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 921 NONAME ; class QString QtMobility::QMediaContainerControl::tr(char const *, char const *, int) - ?tr@QMediaControl@QtMobility@@SA?AVQString@@PBD0@Z @ 922 NONAME ; class QString QtMobility::QMediaControl::tr(char const *, char const *) - ?tr@QMediaControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 923 NONAME ; class QString QtMobility::QMediaControl::tr(char const *, char const *, int) - ?tr@QMediaImageViewer@QtMobility@@SA?AVQString@@PBD0@Z @ 924 NONAME ; class QString QtMobility::QMediaImageViewer::tr(char const *, char const *) - ?tr@QMediaImageViewer@QtMobility@@SA?AVQString@@PBD0H@Z @ 925 NONAME ; class QString QtMobility::QMediaImageViewer::tr(char const *, char const *, int) - ?tr@QMediaObject@QtMobility@@SA?AVQString@@PBD0@Z @ 926 NONAME ; class QString QtMobility::QMediaObject::tr(char const *, char const *) - ?tr@QMediaObject@QtMobility@@SA?AVQString@@PBD0H@Z @ 927 NONAME ; class QString QtMobility::QMediaObject::tr(char const *, char const *, int) - ?tr@QMediaPlayer@QtMobility@@SA?AVQString@@PBD0@Z @ 928 NONAME ; class QString QtMobility::QMediaPlayer::tr(char const *, char const *) - ?tr@QMediaPlayer@QtMobility@@SA?AVQString@@PBD0H@Z @ 929 NONAME ; class QString QtMobility::QMediaPlayer::tr(char const *, char const *, int) - ?tr@QMediaPlayerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 930 NONAME ; class QString QtMobility::QMediaPlayerControl::tr(char const *, char const *) - ?tr@QMediaPlayerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 931 NONAME ; class QString QtMobility::QMediaPlayerControl::tr(char const *, char const *, int) - ?tr@QMediaPlaylist@QtMobility@@SA?AVQString@@PBD0@Z @ 932 NONAME ; class QString QtMobility::QMediaPlaylist::tr(char const *, char const *) - ?tr@QMediaPlaylist@QtMobility@@SA?AVQString@@PBD0H@Z @ 933 NONAME ; class QString QtMobility::QMediaPlaylist::tr(char const *, char const *, int) - ?tr@QMediaPlaylistControl@QtMobility@@SA?AVQString@@PBD0@Z @ 934 NONAME ; class QString QtMobility::QMediaPlaylistControl::tr(char const *, char const *) - ?tr@QMediaPlaylistControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 935 NONAME ; class QString QtMobility::QMediaPlaylistControl::tr(char const *, char const *, int) - ?tr@QMediaPlaylistIOPlugin@QtMobility@@SA?AVQString@@PBD0@Z @ 936 NONAME ; class QString QtMobility::QMediaPlaylistIOPlugin::tr(char const *, char const *) - ?tr@QMediaPlaylistIOPlugin@QtMobility@@SA?AVQString@@PBD0H@Z @ 937 NONAME ; class QString QtMobility::QMediaPlaylistIOPlugin::tr(char const *, char const *, int) - ?tr@QMediaPlaylistNavigator@QtMobility@@SA?AVQString@@PBD0@Z @ 938 NONAME ; class QString QtMobility::QMediaPlaylistNavigator::tr(char const *, char const *) - ?tr@QMediaPlaylistNavigator@QtMobility@@SA?AVQString@@PBD0H@Z @ 939 NONAME ; class QString QtMobility::QMediaPlaylistNavigator::tr(char const *, char const *, int) - ?tr@QMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 940 NONAME ; class QString QtMobility::QMediaPlaylistProvider::tr(char const *, char const *) - ?tr@QMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 941 NONAME ; class QString QtMobility::QMediaPlaylistProvider::tr(char const *, char const *, int) - ?tr@QMediaRecorder@QtMobility@@SA?AVQString@@PBD0@Z @ 942 NONAME ; class QString QtMobility::QMediaRecorder::tr(char const *, char const *) - ?tr@QMediaRecorder@QtMobility@@SA?AVQString@@PBD0H@Z @ 943 NONAME ; class QString QtMobility::QMediaRecorder::tr(char const *, char const *, int) - ?tr@QMediaRecorderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 944 NONAME ; class QString QtMobility::QMediaRecorderControl::tr(char const *, char const *) - ?tr@QMediaRecorderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 945 NONAME ; class QString QtMobility::QMediaRecorderControl::tr(char const *, char const *, int) - ?tr@QMediaService@QtMobility@@SA?AVQString@@PBD0@Z @ 946 NONAME ; class QString QtMobility::QMediaService::tr(char const *, char const *) - ?tr@QMediaService@QtMobility@@SA?AVQString@@PBD0H@Z @ 947 NONAME ; class QString QtMobility::QMediaService::tr(char const *, char const *, int) - ?tr@QMediaServiceProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 948 NONAME ; class QString QtMobility::QMediaServiceProvider::tr(char const *, char const *) - ?tr@QMediaServiceProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 949 NONAME ; class QString QtMobility::QMediaServiceProvider::tr(char const *, char const *, int) - ?tr@QMediaServiceProviderPlugin@QtMobility@@SA?AVQString@@PBD0@Z @ 950 NONAME ; class QString QtMobility::QMediaServiceProviderPlugin::tr(char const *, char const *) - ?tr@QMediaServiceProviderPlugin@QtMobility@@SA?AVQString@@PBD0H@Z @ 951 NONAME ; class QString QtMobility::QMediaServiceProviderPlugin::tr(char const *, char const *, int) - ?tr@QMediaStreamsControl@QtMobility@@SA?AVQString@@PBD0@Z @ 952 NONAME ; class QString QtMobility::QMediaStreamsControl::tr(char const *, char const *) - ?tr@QMediaStreamsControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 953 NONAME ; class QString QtMobility::QMediaStreamsControl::tr(char const *, char const *, int) - ?tr@QMetaDataControl@QtMobility@@SA?AVQString@@PBD0@Z @ 954 NONAME ; class QString QtMobility::QMetaDataControl::tr(char const *, char const *) - ?tr@QMetaDataControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 955 NONAME ; class QString QtMobility::QMetaDataControl::tr(char const *, char const *, int) - ?tr@QRadioTuner@QtMobility@@SA?AVQString@@PBD0@Z @ 956 NONAME ; class QString QtMobility::QRadioTuner::tr(char const *, char const *) - ?tr@QRadioTuner@QtMobility@@SA?AVQString@@PBD0H@Z @ 957 NONAME ; class QString QtMobility::QRadioTuner::tr(char const *, char const *, int) - ?tr@QRadioTunerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 958 NONAME ; class QString QtMobility::QRadioTunerControl::tr(char const *, char const *) - ?tr@QRadioTunerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 959 NONAME ; class QString QtMobility::QRadioTunerControl::tr(char const *, char const *, int) - ?tr@QStillImageCapture@QtMobility@@SA?AVQString@@PBD0@Z @ 960 NONAME ; class QString QtMobility::QStillImageCapture::tr(char const *, char const *) - ?tr@QStillImageCapture@QtMobility@@SA?AVQString@@PBD0H@Z @ 961 NONAME ; class QString QtMobility::QStillImageCapture::tr(char const *, char const *, int) - ?tr@QVideoDeviceControl@QtMobility@@SA?AVQString@@PBD0@Z @ 962 NONAME ; class QString QtMobility::QVideoDeviceControl::tr(char const *, char const *) - ?tr@QVideoDeviceControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 963 NONAME ; class QString QtMobility::QVideoDeviceControl::tr(char const *, char const *, int) - ?tr@QVideoEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 964 NONAME ; class QString QtMobility::QVideoEncoderControl::tr(char const *, char const *) - ?tr@QVideoEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 965 NONAME ; class QString QtMobility::QVideoEncoderControl::tr(char const *, char const *, int) - ?tr@QVideoOutputControl@QtMobility@@SA?AVQString@@PBD0@Z @ 966 NONAME ; class QString QtMobility::QVideoOutputControl::tr(char const *, char const *) - ?tr@QVideoOutputControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 967 NONAME ; class QString QtMobility::QVideoOutputControl::tr(char const *, char const *, int) - ?tr@QVideoRendererControl@QtMobility@@SA?AVQString@@PBD0@Z @ 968 NONAME ; class QString QtMobility::QVideoRendererControl::tr(char const *, char const *) - ?tr@QVideoRendererControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 969 NONAME ; class QString QtMobility::QVideoRendererControl::tr(char const *, char const *, int) - ?tr@QVideoWidget@QtMobility@@SA?AVQString@@PBD0@Z @ 970 NONAME ; class QString QtMobility::QVideoWidget::tr(char const *, char const *) - ?tr@QVideoWidget@QtMobility@@SA?AVQString@@PBD0H@Z @ 971 NONAME ; class QString QtMobility::QVideoWidget::tr(char const *, char const *, int) - ?tr@QVideoWidgetControl@QtMobility@@SA?AVQString@@PBD0@Z @ 972 NONAME ; class QString QtMobility::QVideoWidgetControl::tr(char const *, char const *) - ?tr@QVideoWidgetControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 973 NONAME ; class QString QtMobility::QVideoWidgetControl::tr(char const *, char const *, int) - ?tr@QVideoWindowControl@QtMobility@@SA?AVQString@@PBD0@Z @ 974 NONAME ; class QString QtMobility::QVideoWindowControl::tr(char const *, char const *) - ?tr@QVideoWindowControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 975 NONAME ; class QString QtMobility::QVideoWindowControl::tr(char const *, char const *, int) - ?trUtf8@QAudioCaptureSource@QtMobility@@SA?AVQString@@PBD0@Z @ 976 NONAME ; class QString QtMobility::QAudioCaptureSource::trUtf8(char const *, char const *) - ?trUtf8@QAudioCaptureSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 977 NONAME ; class QString QtMobility::QAudioCaptureSource::trUtf8(char const *, char const *, int) - ?trUtf8@QAudioEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 978 NONAME ; class QString QtMobility::QAudioEncoderControl::trUtf8(char const *, char const *) - ?trUtf8@QAudioEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 979 NONAME ; class QString QtMobility::QAudioEncoderControl::trUtf8(char const *, char const *, int) - ?trUtf8@QAudioEndpointSelector@QtMobility@@SA?AVQString@@PBD0@Z @ 980 NONAME ; class QString QtMobility::QAudioEndpointSelector::trUtf8(char const *, char const *) - ?trUtf8@QAudioEndpointSelector@QtMobility@@SA?AVQString@@PBD0H@Z @ 981 NONAME ; class QString QtMobility::QAudioEndpointSelector::trUtf8(char const *, char const *, int) - ?trUtf8@QCamera@QtMobility@@SA?AVQString@@PBD0@Z @ 982 NONAME ; class QString QtMobility::QCamera::trUtf8(char const *, char const *) - ?trUtf8@QCamera@QtMobility@@SA?AVQString@@PBD0H@Z @ 983 NONAME ; class QString QtMobility::QCamera::trUtf8(char const *, char const *, int) - ?trUtf8@QCameraControl@QtMobility@@SA?AVQString@@PBD0@Z @ 984 NONAME ; class QString QtMobility::QCameraControl::trUtf8(char const *, char const *) - ?trUtf8@QCameraControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 985 NONAME ; class QString QtMobility::QCameraControl::trUtf8(char const *, char const *, int) - ?trUtf8@QCameraExposureControl@QtMobility@@SA?AVQString@@PBD0@Z @ 986 NONAME ; class QString QtMobility::QCameraExposureControl::trUtf8(char const *, char const *) - ?trUtf8@QCameraExposureControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 987 NONAME ; class QString QtMobility::QCameraExposureControl::trUtf8(char const *, char const *, int) - ?trUtf8@QCameraFocusControl@QtMobility@@SA?AVQString@@PBD0@Z @ 988 NONAME ; class QString QtMobility::QCameraFocusControl::trUtf8(char const *, char const *) - ?trUtf8@QCameraFocusControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 989 NONAME ; class QString QtMobility::QCameraFocusControl::trUtf8(char const *, char const *, int) - ?trUtf8@QGraphicsVideoItem@QtMobility@@SA?AVQString@@PBD0@Z @ 990 NONAME ; class QString QtMobility::QGraphicsVideoItem::trUtf8(char const *, char const *) - ?trUtf8@QGraphicsVideoItem@QtMobility@@SA?AVQString@@PBD0H@Z @ 991 NONAME ; class QString QtMobility::QGraphicsVideoItem::trUtf8(char const *, char const *, int) - ?trUtf8@QImageCaptureControl@QtMobility@@SA?AVQString@@PBD0@Z @ 992 NONAME ; class QString QtMobility::QImageCaptureControl::trUtf8(char const *, char const *) - ?trUtf8@QImageCaptureControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 993 NONAME ; class QString QtMobility::QImageCaptureControl::trUtf8(char const *, char const *, int) - ?trUtf8@QImageEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 994 NONAME ; class QString QtMobility::QImageEncoderControl::trUtf8(char const *, char const *) - ?trUtf8@QImageEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 995 NONAME ; class QString QtMobility::QImageEncoderControl::trUtf8(char const *, char const *, int) - ?trUtf8@QImageProcessingControl@QtMobility@@SA?AVQString@@PBD0@Z @ 996 NONAME ; class QString QtMobility::QImageProcessingControl::trUtf8(char const *, char const *) - ?trUtf8@QImageProcessingControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 997 NONAME ; class QString QtMobility::QImageProcessingControl::trUtf8(char const *, char const *, int) - ?trUtf8@QLocalMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 998 NONAME ; class QString QtMobility::QLocalMediaPlaylistProvider::trUtf8(char const *, char const *) - ?trUtf8@QLocalMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 999 NONAME ; class QString QtMobility::QLocalMediaPlaylistProvider::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaContainerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1000 NONAME ; class QString QtMobility::QMediaContainerControl::trUtf8(char const *, char const *) - ?trUtf8@QMediaContainerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1001 NONAME ; class QString QtMobility::QMediaContainerControl::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1002 NONAME ; class QString QtMobility::QMediaControl::trUtf8(char const *, char const *) - ?trUtf8@QMediaControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1003 NONAME ; class QString QtMobility::QMediaControl::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaImageViewer@QtMobility@@SA?AVQString@@PBD0@Z @ 1004 NONAME ; class QString QtMobility::QMediaImageViewer::trUtf8(char const *, char const *) - ?trUtf8@QMediaImageViewer@QtMobility@@SA?AVQString@@PBD0H@Z @ 1005 NONAME ; class QString QtMobility::QMediaImageViewer::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaObject@QtMobility@@SA?AVQString@@PBD0@Z @ 1006 NONAME ; class QString QtMobility::QMediaObject::trUtf8(char const *, char const *) - ?trUtf8@QMediaObject@QtMobility@@SA?AVQString@@PBD0H@Z @ 1007 NONAME ; class QString QtMobility::QMediaObject::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaPlayer@QtMobility@@SA?AVQString@@PBD0@Z @ 1008 NONAME ; class QString QtMobility::QMediaPlayer::trUtf8(char const *, char const *) - ?trUtf8@QMediaPlayer@QtMobility@@SA?AVQString@@PBD0H@Z @ 1009 NONAME ; class QString QtMobility::QMediaPlayer::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaPlayerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1010 NONAME ; class QString QtMobility::QMediaPlayerControl::trUtf8(char const *, char const *) - ?trUtf8@QMediaPlayerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1011 NONAME ; class QString QtMobility::QMediaPlayerControl::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaPlaylist@QtMobility@@SA?AVQString@@PBD0@Z @ 1012 NONAME ; class QString QtMobility::QMediaPlaylist::trUtf8(char const *, char const *) - ?trUtf8@QMediaPlaylist@QtMobility@@SA?AVQString@@PBD0H@Z @ 1013 NONAME ; class QString QtMobility::QMediaPlaylist::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaPlaylistControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1014 NONAME ; class QString QtMobility::QMediaPlaylistControl::trUtf8(char const *, char const *) - ?trUtf8@QMediaPlaylistControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1015 NONAME ; class QString QtMobility::QMediaPlaylistControl::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaPlaylistIOPlugin@QtMobility@@SA?AVQString@@PBD0@Z @ 1016 NONAME ; class QString QtMobility::QMediaPlaylistIOPlugin::trUtf8(char const *, char const *) - ?trUtf8@QMediaPlaylistIOPlugin@QtMobility@@SA?AVQString@@PBD0H@Z @ 1017 NONAME ; class QString QtMobility::QMediaPlaylistIOPlugin::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaPlaylistNavigator@QtMobility@@SA?AVQString@@PBD0@Z @ 1018 NONAME ; class QString QtMobility::QMediaPlaylistNavigator::trUtf8(char const *, char const *) - ?trUtf8@QMediaPlaylistNavigator@QtMobility@@SA?AVQString@@PBD0H@Z @ 1019 NONAME ; class QString QtMobility::QMediaPlaylistNavigator::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 1020 NONAME ; class QString QtMobility::QMediaPlaylistProvider::trUtf8(char const *, char const *) - ?trUtf8@QMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 1021 NONAME ; class QString QtMobility::QMediaPlaylistProvider::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaRecorder@QtMobility@@SA?AVQString@@PBD0@Z @ 1022 NONAME ; class QString QtMobility::QMediaRecorder::trUtf8(char const *, char const *) - ?trUtf8@QMediaRecorder@QtMobility@@SA?AVQString@@PBD0H@Z @ 1023 NONAME ; class QString QtMobility::QMediaRecorder::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaRecorderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1024 NONAME ; class QString QtMobility::QMediaRecorderControl::trUtf8(char const *, char const *) - ?trUtf8@QMediaRecorderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1025 NONAME ; class QString QtMobility::QMediaRecorderControl::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaService@QtMobility@@SA?AVQString@@PBD0@Z @ 1026 NONAME ; class QString QtMobility::QMediaService::trUtf8(char const *, char const *) - ?trUtf8@QMediaService@QtMobility@@SA?AVQString@@PBD0H@Z @ 1027 NONAME ; class QString QtMobility::QMediaService::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaServiceProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 1028 NONAME ; class QString QtMobility::QMediaServiceProvider::trUtf8(char const *, char const *) - ?trUtf8@QMediaServiceProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 1029 NONAME ; class QString QtMobility::QMediaServiceProvider::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaServiceProviderPlugin@QtMobility@@SA?AVQString@@PBD0@Z @ 1030 NONAME ; class QString QtMobility::QMediaServiceProviderPlugin::trUtf8(char const *, char const *) - ?trUtf8@QMediaServiceProviderPlugin@QtMobility@@SA?AVQString@@PBD0H@Z @ 1031 NONAME ; class QString QtMobility::QMediaServiceProviderPlugin::trUtf8(char const *, char const *, int) - ?trUtf8@QMediaStreamsControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1032 NONAME ; class QString QtMobility::QMediaStreamsControl::trUtf8(char const *, char const *) - ?trUtf8@QMediaStreamsControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1033 NONAME ; class QString QtMobility::QMediaStreamsControl::trUtf8(char const *, char const *, int) - ?trUtf8@QMetaDataControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1034 NONAME ; class QString QtMobility::QMetaDataControl::trUtf8(char const *, char const *) - ?trUtf8@QMetaDataControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1035 NONAME ; class QString QtMobility::QMetaDataControl::trUtf8(char const *, char const *, int) - ?trUtf8@QRadioTuner@QtMobility@@SA?AVQString@@PBD0@Z @ 1036 NONAME ; class QString QtMobility::QRadioTuner::trUtf8(char const *, char const *) - ?trUtf8@QRadioTuner@QtMobility@@SA?AVQString@@PBD0H@Z @ 1037 NONAME ; class QString QtMobility::QRadioTuner::trUtf8(char const *, char const *, int) - ?trUtf8@QRadioTunerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1038 NONAME ; class QString QtMobility::QRadioTunerControl::trUtf8(char const *, char const *) - ?trUtf8@QRadioTunerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1039 NONAME ; class QString QtMobility::QRadioTunerControl::trUtf8(char const *, char const *, int) - ?trUtf8@QStillImageCapture@QtMobility@@SA?AVQString@@PBD0@Z @ 1040 NONAME ; class QString QtMobility::QStillImageCapture::trUtf8(char const *, char const *) - ?trUtf8@QStillImageCapture@QtMobility@@SA?AVQString@@PBD0H@Z @ 1041 NONAME ; class QString QtMobility::QStillImageCapture::trUtf8(char const *, char const *, int) - ?trUtf8@QVideoDeviceControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1042 NONAME ; class QString QtMobility::QVideoDeviceControl::trUtf8(char const *, char const *) - ?trUtf8@QVideoDeviceControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1043 NONAME ; class QString QtMobility::QVideoDeviceControl::trUtf8(char const *, char const *, int) - ?trUtf8@QVideoEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1044 NONAME ; class QString QtMobility::QVideoEncoderControl::trUtf8(char const *, char const *) - ?trUtf8@QVideoEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1045 NONAME ; class QString QtMobility::QVideoEncoderControl::trUtf8(char const *, char const *, int) - ?trUtf8@QVideoOutputControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1046 NONAME ; class QString QtMobility::QVideoOutputControl::trUtf8(char const *, char const *) - ?trUtf8@QVideoOutputControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1047 NONAME ; class QString QtMobility::QVideoOutputControl::trUtf8(char const *, char const *, int) - ?trUtf8@QVideoRendererControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1048 NONAME ; class QString QtMobility::QVideoRendererControl::trUtf8(char const *, char const *) - ?trUtf8@QVideoRendererControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1049 NONAME ; class QString QtMobility::QVideoRendererControl::trUtf8(char const *, char const *, int) - ?trUtf8@QVideoWidget@QtMobility@@SA?AVQString@@PBD0@Z @ 1050 NONAME ; class QString QtMobility::QVideoWidget::trUtf8(char const *, char const *) - ?trUtf8@QVideoWidget@QtMobility@@SA?AVQString@@PBD0H@Z @ 1051 NONAME ; class QString QtMobility::QVideoWidget::trUtf8(char const *, char const *, int) - ?trUtf8@QVideoWidgetControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1052 NONAME ; class QString QtMobility::QVideoWidgetControl::trUtf8(char const *, char const *) - ?trUtf8@QVideoWidgetControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1053 NONAME ; class QString QtMobility::QVideoWidgetControl::trUtf8(char const *, char const *, int) - ?trUtf8@QVideoWindowControl@QtMobility@@SA?AVQString@@PBD0@Z @ 1054 NONAME ; class QString QtMobility::QVideoWindowControl::trUtf8(char const *, char const *) - ?trUtf8@QVideoWindowControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 1055 NONAME ; class QString QtMobility::QVideoWindowControl::trUtf8(char const *, char const *, int) - ?translated@QMediaTimeInterval@QtMobility@@QBE?AV12@_J@Z @ 1056 NONAME ; class QtMobility::QMediaTimeInterval QtMobility::QMediaTimeInterval::translated(long long) const - ?type@QMediaServiceProviderHint@QtMobility@@QBE?AW4Type@12@XZ @ 1057 NONAME ; enum QtMobility::QMediaServiceProviderHint::Type QtMobility::QMediaServiceProviderHint::type(void) const - ?unbind@QMediaImageViewer@QtMobility@@UAEXPAVQObject@@@Z @ 1058 NONAME ; void QtMobility::QMediaImageViewer::unbind(class QObject *) - ?unbind@QMediaObject@QtMobility@@UAEXPAVQObject@@@Z @ 1059 NONAME ; void QtMobility::QMediaObject::unbind(class QObject *) - ?unbind@QMediaPlayer@QtMobility@@UAEXPAVQObject@@@Z @ 1060 NONAME ; void QtMobility::QMediaPlayer::unbind(class QObject *) - ?unlockExposure@QCamera@QtMobility@@QAEXXZ @ 1061 NONAME ; void QtMobility::QCamera::unlockExposure(void) - ?url@QMediaResource@QtMobility@@QBE?AVQUrl@@XZ @ 1062 NONAME ; class QUrl QtMobility::QMediaResource::url(void) const - ?videoAvailableChanged@QMediaPlayer@QtMobility@@IAEX_N@Z @ 1063 NONAME ; void QtMobility::QMediaPlayer::videoAvailableChanged(bool) - ?videoAvailableChanged@QMediaPlayerControl@QtMobility@@IAEX_N@Z @ 1064 NONAME ; void QtMobility::QMediaPlayerControl::videoAvailableChanged(bool) - ?videoBitRate@QMediaResource@QtMobility@@QBEHXZ @ 1065 NONAME ; int QtMobility::QMediaResource::videoBitRate(void) const - ?videoCodec@QMediaResource@QtMobility@@QBE?AVQString@@XZ @ 1066 NONAME ; class QString QtMobility::QMediaResource::videoCodec(void) const - ?videoCodecDescription@QMediaRecorder@QtMobility@@QBE?AVQString@@ABV3@@Z @ 1067 NONAME ; class QString QtMobility::QMediaRecorder::videoCodecDescription(class QString const &) const - ?videoSettings@QMediaRecorder@QtMobility@@QBE?AVQVideoEncoderSettings@2@XZ @ 1068 NONAME ; class QtMobility::QVideoEncoderSettings QtMobility::QMediaRecorder::videoSettings(void) const - ?volume@QMediaPlayer@QtMobility@@QBEHXZ @ 1069 NONAME ; int QtMobility::QMediaPlayer::volume(void) const - ?volume@QRadioTuner@QtMobility@@QBEHXZ @ 1070 NONAME ; int QtMobility::QRadioTuner::volume(void) const - ?volumeChanged@QMediaPlayer@QtMobility@@IAEXH@Z @ 1071 NONAME ; void QtMobility::QMediaPlayer::volumeChanged(int) - ?volumeChanged@QMediaPlayerControl@QtMobility@@IAEXH@Z @ 1072 NONAME ; void QtMobility::QMediaPlayerControl::volumeChanged(int) - ?volumeChanged@QRadioTuner@QtMobility@@IAEXH@Z @ 1073 NONAME ; void QtMobility::QRadioTuner::volumeChanged(int) - ?volumeChanged@QRadioTunerControl@QtMobility@@IAEXH@Z @ 1074 NONAME ; void QtMobility::QRadioTunerControl::volumeChanged(int) - ?whiteBalanceMode@QCamera@QtMobility@@QBE?AW4WhiteBalanceMode@12@XZ @ 1075 NONAME ; enum QtMobility::QCamera::WhiteBalanceMode QtMobility::QCamera::whiteBalanceMode(void) const - ?writableChanged@QMetaDataControl@QtMobility@@IAEX_N@Z @ 1076 NONAME ; void QtMobility::QMetaDataControl::writableChanged(bool) - ?zoomTo@QCamera@QtMobility@@QAEXMM@Z @ 1077 NONAME ; void QtMobility::QCamera::zoomTo(float, float) - ?staticMetaObject@QStillImageCapture@QtMobility@@2UQMetaObject@@B @ 1078 NONAME ; struct QMetaObject const QtMobility::QStillImageCapture::staticMetaObject - ?staticMetaObject@QImageCaptureControl@QtMobility@@2UQMetaObject@@B @ 1079 NONAME ; struct QMetaObject const QtMobility::QImageCaptureControl::staticMetaObject - ?staticMetaObject@QMediaPlaylistProvider@QtMobility@@2UQMetaObject@@B @ 1080 NONAME ; struct QMetaObject const QtMobility::QMediaPlaylistProvider::staticMetaObject - ?staticMetaObject@QImageProcessingControl@QtMobility@@2UQMetaObject@@B @ 1081 NONAME ; struct QMetaObject const QtMobility::QImageProcessingControl::staticMetaObject - ?staticMetaObject@QCameraExposureControl@QtMobility@@2UQMetaObject@@B @ 1082 NONAME ; struct QMetaObject const QtMobility::QCameraExposureControl::staticMetaObject - ?staticMetaObject@QLocalMediaPlaylistProvider@QtMobility@@2UQMetaObject@@B @ 1083 NONAME ; struct QMetaObject const QtMobility::QLocalMediaPlaylistProvider::staticMetaObject - ?staticMetaObject@QAudioEncoderControl@QtMobility@@2UQMetaObject@@B @ 1084 NONAME ; struct QMetaObject const QtMobility::QAudioEncoderControl::staticMetaObject - ?staticMetaObject@QVideoRendererControl@QtMobility@@2UQMetaObject@@B @ 1085 NONAME ; struct QMetaObject const QtMobility::QVideoRendererControl::staticMetaObject - ?staticMetaObject@QMetaDataControl@QtMobility@@2UQMetaObject@@B @ 1086 NONAME ; struct QMetaObject const QtMobility::QMetaDataControl::staticMetaObject - ?staticMetaObject@QMediaRecorderControl@QtMobility@@2UQMetaObject@@B @ 1087 NONAME ; struct QMetaObject const QtMobility::QMediaRecorderControl::staticMetaObject - ?staticMetaObject@QMediaImageViewer@QtMobility@@2UQMetaObject@@B @ 1088 NONAME ; struct QMetaObject const QtMobility::QMediaImageViewer::staticMetaObject - ?staticMetaObject@QVideoWidgetControl@QtMobility@@2UQMetaObject@@B @ 1089 NONAME ; struct QMetaObject const QtMobility::QVideoWidgetControl::staticMetaObject - ?staticMetaObject@QCameraFocusControl@QtMobility@@2UQMetaObject@@B @ 1090 NONAME ; struct QMetaObject const QtMobility::QCameraFocusControl::staticMetaObject - ?staticMetaObject@QMediaPlaylistIOPlugin@QtMobility@@2UQMetaObject@@B @ 1091 NONAME ; struct QMetaObject const QtMobility::QMediaPlaylistIOPlugin::staticMetaObject - ?staticMetaObject@QMediaStreamsControl@QtMobility@@2UQMetaObject@@B @ 1092 NONAME ; struct QMetaObject const QtMobility::QMediaStreamsControl::staticMetaObject - ?staticMetaObject@QMediaPlayer@QtMobility@@2UQMetaObject@@B @ 1093 NONAME ; struct QMetaObject const QtMobility::QMediaPlayer::staticMetaObject - ?staticMetaObject@QCameraControl@QtMobility@@2UQMetaObject@@B @ 1094 NONAME ; struct QMetaObject const QtMobility::QCameraControl::staticMetaObject - ?staticMetaObject@QCamera@QtMobility@@2UQMetaObject@@B @ 1095 NONAME ; struct QMetaObject const QtMobility::QCamera::staticMetaObject - ?staticMetaObject@QVideoWindowControl@QtMobility@@2UQMetaObject@@B @ 1096 NONAME ; struct QMetaObject const QtMobility::QVideoWindowControl::staticMetaObject - ?staticMetaObject@QMediaControl@QtMobility@@2UQMetaObject@@B @ 1097 NONAME ; struct QMetaObject const QtMobility::QMediaControl::staticMetaObject - ?staticMetaObject@QImageEncoderControl@QtMobility@@2UQMetaObject@@B @ 1098 NONAME ; struct QMetaObject const QtMobility::QImageEncoderControl::staticMetaObject - ?staticMetaObject@QMediaPlaylistNavigator@QtMobility@@2UQMetaObject@@B @ 1099 NONAME ; struct QMetaObject const QtMobility::QMediaPlaylistNavigator::staticMetaObject - ?staticMetaObject@QAudioCaptureSource@QtMobility@@2UQMetaObject@@B @ 1100 NONAME ; struct QMetaObject const QtMobility::QAudioCaptureSource::staticMetaObject - ?staticMetaObject@QRadioTunerControl@QtMobility@@2UQMetaObject@@B @ 1101 NONAME ; struct QMetaObject const QtMobility::QRadioTunerControl::staticMetaObject - ?staticMetaObject@QMediaPlaylistControl@QtMobility@@2UQMetaObject@@B @ 1102 NONAME ; struct QMetaObject const QtMobility::QMediaPlaylistControl::staticMetaObject - ?staticMetaObject@QVideoDeviceControl@QtMobility@@2UQMetaObject@@B @ 1103 NONAME ; struct QMetaObject const QtMobility::QVideoDeviceControl::staticMetaObject - ?staticMetaObject@QMediaContainerControl@QtMobility@@2UQMetaObject@@B @ 1104 NONAME ; struct QMetaObject const QtMobility::QMediaContainerControl::staticMetaObject - ?staticMetaObject@QRadioTuner@QtMobility@@2UQMetaObject@@B @ 1105 NONAME ; struct QMetaObject const QtMobility::QRadioTuner::staticMetaObject - ?staticMetaObject@QMediaRecorder@QtMobility@@2UQMetaObject@@B @ 1106 NONAME ; struct QMetaObject const QtMobility::QMediaRecorder::staticMetaObject - ?staticMetaObject@QMediaPlayerControl@QtMobility@@2UQMetaObject@@B @ 1107 NONAME ; struct QMetaObject const QtMobility::QMediaPlayerControl::staticMetaObject - ?staticMetaObject@QMediaServiceProviderPlugin@QtMobility@@2UQMetaObject@@B @ 1108 NONAME ; struct QMetaObject const QtMobility::QMediaServiceProviderPlugin::staticMetaObject - ?staticMetaObject@QMediaServiceProvider@QtMobility@@2UQMetaObject@@B @ 1109 NONAME ; struct QMetaObject const QtMobility::QMediaServiceProvider::staticMetaObject - ?staticMetaObject@QVideoOutputControl@QtMobility@@2UQMetaObject@@B @ 1110 NONAME ; struct QMetaObject const QtMobility::QVideoOutputControl::staticMetaObject - ?staticMetaObject@QMediaPlaylist@QtMobility@@2UQMetaObject@@B @ 1111 NONAME ; struct QMetaObject const QtMobility::QMediaPlaylist::staticMetaObject - ?staticMetaObject@QMediaService@QtMobility@@2UQMetaObject@@B @ 1112 NONAME ; struct QMetaObject const QtMobility::QMediaService::staticMetaObject - ?staticMetaObject@QMediaObject@QtMobility@@2UQMetaObject@@B @ 1113 NONAME ; struct QMetaObject const QtMobility::QMediaObject::staticMetaObject - ?staticMetaObject@QVideoEncoderControl@QtMobility@@2UQMetaObject@@B @ 1114 NONAME ; struct QMetaObject const QtMobility::QVideoEncoderControl::staticMetaObject - ?staticMetaObject@QAudioEndpointSelector@QtMobility@@2UQMetaObject@@B @ 1115 NONAME ; struct QMetaObject const QtMobility::QAudioEndpointSelector::staticMetaObject - ?staticMetaObject@QGraphicsVideoItem@QtMobility@@2UQMetaObject@@B @ 1116 NONAME ; struct QMetaObject const QtMobility::QGraphicsVideoItem::staticMetaObject - ?staticMetaObject@QVideoWidget@QtMobility@@2UQMetaObject@@B @ 1117 NONAME ; struct QMetaObject const QtMobility::QVideoWidget::staticMetaObject + ??_EQImageEncoderControl@QtMobility@@UAE@I@Z @ 205 NONAME ; QtMobility::QImageEncoderControl::~QImageEncoderControl(unsigned int) + ??0QMediaPlaylistIOPlugin@QtMobility@@QAE@PAVQObject@@@Z @ 206 NONAME ; QtMobility::QMediaPlaylistIOPlugin::QMediaPlaylistIOPlugin(class QObject *) + ?positionChanged@QMediaPlayer@QtMobility@@IAEX_J@Z @ 207 NONAME ; void QtMobility::QMediaPlayer::positionChanged(long long) + ?metaObject@QAudioEndpointSelector@QtMobility@@UBEPBUQMetaObject@@XZ @ 208 NONAME ; struct QMetaObject const * QtMobility::QAudioEndpointSelector::metaObject(void) const + ?loaded@QMediaPlaylist@QtMobility@@IAEXXZ @ 209 NONAME ; void QtMobility::QMediaPlaylist::loaded(void) + ?tr@QMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 210 NONAME ; class QString QtMobility::QMediaPlaylistProvider::tr(char const *, char const *, int) + ?d_func@QMediaPlaylistNavigator@QtMobility@@AAEPAVQMediaPlaylistNavigatorPrivate@2@XZ @ 211 NONAME ; class QtMobility::QMediaPlaylistNavigatorPrivate * QtMobility::QMediaPlaylistNavigator::d_func(void) + ?metaObject@QMediaPlaylistIOPlugin@QtMobility@@UBEPBUQMetaObject@@XZ @ 212 NONAME ; struct QMetaObject const * QtMobility::QMediaPlaylistIOPlugin::metaObject(void) const + ??0QMediaResource@QtMobility@@QAE@ABVQNetworkRequest@@ABVQString@@@Z @ 213 NONAME ; QtMobility::QMediaResource::QMediaResource(class QNetworkRequest const &, class QString const &) + ?videoCodecDescription@QMediaRecorder@QtMobility@@QBE?AVQString@@ABV3@@Z @ 214 NONAME ; class QString QtMobility::QMediaRecorder::videoCodecDescription(class QString const &) const + ?nextIndex@QMediaPlaylistNavigator@QtMobility@@QBEHH@Z @ 215 NONAME ; int QtMobility::QMediaPlaylistNavigator::nextIndex(int) const + ?d_func@QRadioTuner@QtMobility@@AAEPAVQRadioTunerPrivate@2@XZ @ 216 NONAME ; class QtMobility::QRadioTunerPrivate * QtMobility::QRadioTuner::d_func(void) + ?containerDescription@QMediaRecorder@QtMobility@@QBE?AVQString@@ABV3@@Z @ 217 NONAME ; class QString QtMobility::QMediaRecorder::containerDescription(class QString const &) const + ?removeMedia@QMediaPlaylist@QtMobility@@QAE_NH@Z @ 218 NONAME ; bool QtMobility::QMediaPlaylist::removeMedia(int) + ?event@QVideoWidget@QtMobility@@MAE_NPAVQEvent@@@Z @ 219 NONAME ; bool QtMobility::QVideoWidget::event(class QEvent *) + ?mediaRemoved@QMediaPlaylist@QtMobility@@IAEXHH@Z @ 220 NONAME ; void QtMobility::QMediaPlaylist::mediaRemoved(int, int) + ?metaObject@QLocalMediaPlaylistProvider@QtMobility@@UBEPBUQMetaObject@@XZ @ 221 NONAME ; struct QMetaObject const * QtMobility::QLocalMediaPlaylistProvider::metaObject(void) const + ?tr@QMediaPlaylistControl@QtMobility@@SA?AVQString@@PBD0@Z @ 222 NONAME ; class QString QtMobility::QMediaPlaylistControl::tr(char const *, char const *) + ?trUtf8@QMediaPlaylistNavigator@QtMobility@@SA?AVQString@@PBD0H@Z @ 223 NONAME ; class QString QtMobility::QMediaPlaylistNavigator::trUtf8(char const *, char const *, int) + ?getStaticMetaObject@QMediaPlaylistControl@QtMobility@@SAABUQMetaObject@@XZ @ 224 NONAME ; struct QMetaObject const & QtMobility::QMediaPlaylistControl::getStaticMetaObject(void) + ?canonicalRequest@QMediaContent@QtMobility@@QBE?AVQNetworkRequest@@XZ @ 225 NONAME ; class QNetworkRequest QtMobility::QMediaContent::canonicalRequest(void) const + ??_EQVideoDeviceControl@QtMobility@@UAE@I@Z @ 226 NONAME ; QtMobility::QVideoDeviceControl::~QVideoDeviceControl(unsigned int) + ??_EQRadioTuner@QtMobility@@UAE@I@Z @ 227 NONAME ; QtMobility::QRadioTuner::~QRadioTuner(unsigned int) + ?surroundingItemsChanged@QMediaPlaylistNavigator@QtMobility@@IAEXXZ @ 228 NONAME ; void QtMobility::QMediaPlaylistNavigator::surroundingItemsChanged(void) + ?trUtf8@QMediaImageViewer@QtMobility@@SA?AVQString@@PBD0@Z @ 229 NONAME ; class QString QtMobility::QMediaImageViewer::trUtf8(char const *, char const *) + ?setResolution@QVideoEncoderSettings@QtMobility@@QAEXABVQSize@@@Z @ 230 NONAME ; void QtMobility::QVideoEncoderSettings::setResolution(class QSize const &) + ?tr@QMetaDataControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 231 NONAME ; class QString QtMobility::QMetaDataControl::tr(char const *, char const *, int) + ?qt_metacall@QLocalMediaPlaylistProvider@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 232 NONAME ; int QtMobility::QLocalMediaPlaylistProvider::qt_metacall(enum QMetaObject::Call, int, void * *) + ?isNull@QMediaResource@QtMobility@@QBE_NXZ @ 233 NONAME ; bool QtMobility::QMediaResource::isNull(void) const + ?save@QMediaPlaylist@QtMobility@@QAE_NABVQUrl@@PBD@Z @ 234 NONAME ; bool QtMobility::QMediaPlaylist::save(class QUrl const &, char const *) + ?setResolution@QImageEncoderSettings@QtMobility@@QAEXHH@Z @ 235 NONAME ; void QtMobility::QImageEncoderSettings::setResolution(int, int) + ?metaDataAvailableChanged@QMediaObject@QtMobility@@IAEX_N@Z @ 236 NONAME ; void QtMobility::QMediaObject::metaDataAvailableChanged(bool) + ??0QVideoEncoderSettings@QtMobility@@QAE@XZ @ 237 NONAME ; QtMobility::QVideoEncoderSettings::QVideoEncoderSettings(void) + ?volumeChanged@QRadioTunerControl@QtMobility@@IAEXH@Z @ 238 NONAME ; void QtMobility::QRadioTunerControl::volumeChanged(int) + ?trUtf8@QRadioTunerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 239 NONAME ; class QString QtMobility::QRadioTunerControl::trUtf8(char const *, char const *, int) + ?tr@QRadioTuner@QtMobility@@SA?AVQString@@PBD0@Z @ 240 NONAME ; class QString QtMobility::QRadioTuner::tr(char const *, char const *) + ??9QtMobility@@YA_NABVQMediaTimeRange@0@0@Z @ 241 NONAME ; bool QtMobility::operator!=(class QtMobility::QMediaTimeRange const &, class QtMobility::QMediaTimeRange const &) + ?trUtf8@QMediaPlayer@QtMobility@@SA?AVQString@@PBD0@Z @ 242 NONAME ; class QString QtMobility::QMediaPlayer::trUtf8(char const *, char const *) + ?sampleRate@QAudioEncoderSettings@QtMobility@@QBEHXZ @ 243 NONAME ; int QtMobility::QAudioEncoderSettings::sampleRate(void) const + ?contrastChanged@QVideoWindowControl@QtMobility@@IAEXH@Z @ 244 NONAME ; void QtMobility::QVideoWindowControl::contrastChanged(int) + ?setResolution@QMediaResource@QtMobility@@QAEXABVQSize@@@Z @ 245 NONAME ; void QtMobility::QMediaResource::setResolution(class QSize const &) + ?insertMedia@QMediaPlaylist@QtMobility@@QAE_NHABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 246 NONAME ; bool QtMobility::QMediaPlaylist::insertMedia(int, class QList const &) + ?setEncodingSettings@QMediaRecorder@QtMobility@@QAEXABVQAudioEncoderSettings@2@ABVQVideoEncoderSettings@2@ABVQString@@@Z @ 247 NONAME ; void QtMobility::QMediaRecorder::setEncodingSettings(class QtMobility::QAudioEncoderSettings const &, class QtMobility::QVideoEncoderSettings const &, class QString const &) + ??0QVideoOutputControl@QtMobility@@IAE@PAVQObject@@@Z @ 248 NONAME ; QtMobility::QVideoOutputControl::QVideoOutputControl(class QObject *) + ?bufferStatusChanged@QMediaPlayer@QtMobility@@IAEXH@Z @ 249 NONAME ; void QtMobility::QMediaPlayer::bufferStatusChanged(int) + ?getStaticMetaObject@QVideoWindowControl@QtMobility@@SAABUQMetaObject@@XZ @ 250 NONAME ; struct QMetaObject const & QtMobility::QVideoWindowControl::getStaticMetaObject(void) + ?setQuality@QAudioEncoderSettings@QtMobility@@QAEXW4EncodingQuality@QtMedia@2@@Z @ 251 NONAME ; void QtMobility::QAudioEncoderSettings::setQuality(enum QtMobility::QtMedia::EncodingQuality) + ?availabilityError@QMediaObject@QtMobility@@UBE?AW4AvailabilityError@QtMedia@2@XZ @ 252 NONAME ; enum QtMobility::QtMedia::AvailabilityError QtMobility::QMediaObject::availabilityError(void) const + ??1QMediaPlaylistReader@QtMobility@@UAE@XZ @ 253 NONAME ; QtMobility::QMediaPlaylistReader::~QMediaPlaylistReader(void) + ?trUtf8@QVideoOutputControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 254 NONAME ; class QString QtMobility::QVideoOutputControl::trUtf8(char const *, char const *, int) + ?unbind@QMediaImageViewer@QtMobility@@UAEXPAVQObject@@@Z @ 255 NONAME ; void QtMobility::QMediaImageViewer::unbind(class QObject *) + ?setSize@QGraphicsVideoItem@QtMobility@@QAEXABVQSizeF@@@Z @ 256 NONAME ; void QtMobility::QGraphicsVideoItem::setSize(class QSizeF const &) + ?streamsChanged@QMediaStreamsControl@QtMobility@@IAEXXZ @ 257 NONAME ; void QtMobility::QMediaStreamsControl::streamsChanged(void) + ?stereoStatusChanged@QRadioTuner@QtMobility@@IAEX_N@Z @ 258 NONAME ; void QtMobility::QRadioTuner::stereoStatusChanged(bool) + ?isStereo@QRadioTuner@QtMobility@@QBE_NXZ @ 259 NONAME ; bool QtMobility::QRadioTuner::isStereo(void) const + ??1QGraphicsVideoItem@QtMobility@@UAE@XZ @ 260 NONAME ; QtMobility::QGraphicsVideoItem::~QGraphicsVideoItem(void) + ?playlist@QMediaPlaylistNavigator@QtMobility@@QBEPAVQMediaPlaylistProvider@2@XZ @ 261 NONAME ; class QtMobility::QMediaPlaylistProvider * QtMobility::QMediaPlaylistNavigator::playlist(void) const + ?isAvailable@QMediaObject@QtMobility@@UBE_NXZ @ 262 NONAME ; bool QtMobility::QMediaObject::isAvailable(void) const + ?stateChanged@QMediaImageViewer@QtMobility@@IAEXW4State@12@@Z @ 263 NONAME ; void QtMobility::QMediaImageViewer::stateChanged(enum QtMobility::QMediaImageViewer::State) + ??0QMediaTimeRange@QtMobility@@QAE@ABVQMediaTimeInterval@1@@Z @ 264 NONAME ; QtMobility::QMediaTimeRange::QMediaTimeRange(class QtMobility::QMediaTimeInterval const &) + ??0QMediaTimeRange@QtMobility@@QAE@_J0@Z @ 265 NONAME ; QtMobility::QMediaTimeRange::QMediaTimeRange(long long, long long) + ??_EQAudioCaptureSource@QtMobility@@UAE@I@Z @ 266 NONAME ; QtMobility::QAudioCaptureSource::~QAudioCaptureSource(unsigned int) + ?loadFailed@QMediaPlaylist@QtMobility@@IAEXXZ @ 267 NONAME ; void QtMobility::QMediaPlaylist::loadFailed(void) + ?getStaticMetaObject@QAudioEncoderControl@QtMobility@@SAABUQMetaObject@@XZ @ 268 NONAME ; struct QMetaObject const & QtMobility::QAudioEncoderControl::getStaticMetaObject(void) + ??0QMediaRecorder@QtMobility@@QAE@PAVQMediaObject@1@PAVQObject@@@Z @ 269 NONAME ; QtMobility::QMediaRecorder::QMediaRecorder(class QtMobility::QMediaObject *, class QObject *) + ??_EQMediaRecorderControl@QtMobility@@UAE@I@Z @ 270 NONAME ; QtMobility::QMediaRecorderControl::~QMediaRecorderControl(unsigned int) + ?positionChanged@QMediaPlayerControl@QtMobility@@IAEX_J@Z @ 271 NONAME ; void QtMobility::QMediaPlayerControl::positionChanged(long long) + ?duration@QMediaRecorder@QtMobility@@QBE_JXZ @ 272 NONAME ; long long QtMobility::QMediaRecorder::duration(void) const + ??4QMediaTimeRange@QtMobility@@QAEAAV01@ABVQMediaTimeInterval@1@@Z @ 273 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator=(class QtMobility::QMediaTimeInterval const &) + ?load@QMediaPlaylist@QtMobility@@QAEXPAVQIODevice@@PBD@Z @ 274 NONAME ; void QtMobility::QMediaPlaylist::load(class QIODevice *, char const *) + ?qt_metacall@QMediaContainerControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 275 NONAME ; int QtMobility::QMediaContainerControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ?trUtf8@QMediaServiceProviderPlugin@QtMobility@@SA?AVQString@@PBD0@Z @ 276 NONAME ; class QString QtMobility::QMediaServiceProviderPlugin::trUtf8(char const *, char const *) + ?notifyIntervalChanged@QMediaObject@QtMobility@@IAEXH@Z @ 277 NONAME ; void QtMobility::QMediaObject::notifyIntervalChanged(int) + ?metaObject@QVideoRendererControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 278 NONAME ; struct QMetaObject const * QtMobility::QVideoRendererControl::metaObject(void) const + ?mediaChanged@QMediaImageViewer@QtMobility@@IAEXABVQMediaContent@2@@Z @ 279 NONAME ; void QtMobility::QMediaImageViewer::mediaChanged(class QtMobility::QMediaContent const &) + ?volumeChanged@QMediaPlayerControl@QtMobility@@IAEXH@Z @ 280 NONAME ; void QtMobility::QMediaPlayerControl::volumeChanged(int) + ?getStaticMetaObject@QMediaObject@QtMobility@@SAABUQMetaObject@@XZ @ 281 NONAME ; struct QMetaObject const & QtMobility::QMediaObject::getStaticMetaObject(void) + ?media@QMediaPlayer@QtMobility@@QBE?AVQMediaContent@2@XZ @ 282 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlayer::media(void) const + ?staticMetaObject@QRadioTuner@QtMobility@@2UQMetaObject@@B @ 283 NONAME ; struct QMetaObject const QtMobility::QRadioTuner::staticMetaObject + ?start@QRadioTuner@QtMobility@@QAEXXZ @ 284 NONAME ; void QtMobility::QRadioTuner::start(void) + ?setResolution@QVideoEncoderSettings@QtMobility@@QAEXHH@Z @ 285 NONAME ; void QtMobility::QVideoEncoderSettings::setResolution(int, int) + ?setMedia@QMediaPlayer@QtMobility@@QAEXABVQMediaContent@2@PAVQIODevice@@@Z @ 286 NONAME ; void QtMobility::QMediaPlayer::setMedia(class QtMobility::QMediaContent const &, class QIODevice *) + ?previous@QMediaPlaylist@QtMobility@@QAEXXZ @ 287 NONAME ; void QtMobility::QMediaPlaylist::previous(void) + ??0QVideoDeviceControl@QtMobility@@IAE@PAVQObject@@@Z @ 288 NONAME ; QtMobility::QVideoDeviceControl::QVideoDeviceControl(class QObject *) + ??1QMediaStreamsControl@QtMobility@@UAE@XZ @ 289 NONAME ; QtMobility::QMediaStreamsControl::~QMediaStreamsControl(void) + ?qt_metacall@QMediaObject@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 290 NONAME ; int QtMobility::QMediaObject::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacast@QAudioEncoderControl@QtMobility@@UAEPAXPBD@Z @ 291 NONAME ; void * QtMobility::QAudioEncoderControl::qt_metacast(char const *) + ?metaObject@QMediaRecorderControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 292 NONAME ; struct QMetaObject const * QtMobility::QMediaRecorderControl::metaObject(void) const + ??_EQMediaServiceProvider@QtMobility@@UAE@I@Z @ 293 NONAME ; QtMobility::QMediaServiceProvider::~QMediaServiceProvider(unsigned int) + ?removeMedia@QMediaPlaylistProvider@QtMobility@@UAE_NHH@Z @ 294 NONAME ; bool QtMobility::QMediaPlaylistProvider::removeMedia(int, int) + ?trUtf8@QVideoEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 295 NONAME ; class QString QtMobility::QVideoEncoderControl::trUtf8(char const *, char const *, int) + ??0QAudioEncoderSettings@QtMobility@@QAE@ABV01@@Z @ 296 NONAME ; QtMobility::QAudioEncoderSettings::QAudioEncoderSettings(class QtMobility::QAudioEncoderSettings const &) + ?isMetaDataAvailable@QMediaObject@QtMobility@@QBE_NXZ @ 297 NONAME ; bool QtMobility::QMediaObject::isMetaDataAvailable(void) const + ?metaObject@QMediaService@QtMobility@@UBEPBUQMetaObject@@XZ @ 298 NONAME ; struct QMetaObject const * QtMobility::QMediaService::metaObject(void) const + ??1QRadioTunerControl@QtMobility@@UAE@XZ @ 299 NONAME ; QtMobility::QRadioTunerControl::~QRadioTunerControl(void) + ?contrast@QVideoWidget@QtMobility@@QBEHXZ @ 300 NONAME ; int QtMobility::QVideoWidget::contrast(void) const + ?duration@QMediaPlayer@QtMobility@@QBE_JXZ @ 301 NONAME ; long long QtMobility::QMediaPlayer::duration(void) const + ??1QAudioEncoderControl@QtMobility@@UAE@XZ @ 302 NONAME ; QtMobility::QAudioEncoderControl::~QAudioEncoderControl(void) + ??1QVideoDeviceControl@QtMobility@@UAE@XZ @ 303 NONAME ; QtMobility::QVideoDeviceControl::~QVideoDeviceControl(void) + ?staticMetaObject@QMediaPlaylistProvider@QtMobility@@2UQMetaObject@@B @ 304 NONAME ; struct QMetaObject const QtMobility::QMediaPlaylistProvider::staticMetaObject + ?stateChanged@QMediaPlayerControl@QtMobility@@IAEXW4State@QMediaPlayer@2@@Z @ 305 NONAME ; void QtMobility::QMediaPlayerControl::stateChanged(enum QtMobility::QMediaPlayer::State) + ?language@QMediaResource@QtMobility@@QBE?AVQString@@XZ @ 306 NONAME ; class QString QtMobility::QMediaResource::language(void) const + ?tr@QAudioEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 307 NONAME ; class QString QtMobility::QAudioEncoderControl::tr(char const *, char const *, int) + ?getStaticMetaObject@QRadioTuner@QtMobility@@SAABUQMetaObject@@XZ @ 308 NONAME ; struct QMetaObject const & QtMobility::QRadioTuner::getStaticMetaObject(void) + ?mediaAboutToBeRemoved@QMediaPlaylist@QtMobility@@IAEXHH@Z @ 309 NONAME ; void QtMobility::QMediaPlaylist::mediaAboutToBeRemoved(int, int) + ??_EQVideoOutputControl@QtMobility@@UAE@I@Z @ 310 NONAME ; QtMobility::QVideoOutputControl::~QVideoOutputControl(unsigned int) + ?metaObject@QVideoWidgetControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 311 NONAME ; struct QMetaObject const * QtMobility::QVideoWidgetControl::metaObject(void) const + ??_EQMediaObject@QtMobility@@UAE@I@Z @ 312 NONAME ; QtMobility::QMediaObject::~QMediaObject(unsigned int) + ?bitRate@QVideoEncoderSettings@QtMobility@@QBEHXZ @ 313 NONAME ; int QtMobility::QVideoEncoderSettings::bitRate(void) const + ?elapsedTimeChanged@QMediaImageViewer@QtMobility@@IAEXH@Z @ 314 NONAME ; void QtMobility::QMediaImageViewer::elapsedTimeChanged(int) + ?defaultAudioInput@QAudioCaptureSource@QtMobility@@QBE?AVQString@@XZ @ 315 NONAME ; class QString QtMobility::QAudioCaptureSource::defaultAudioInput(void) const + ?staticMetaObject@QMediaRecorder@QtMobility@@2UQMetaObject@@B @ 316 NONAME ; struct QMetaObject const QtMobility::QMediaRecorder::staticMetaObject + ?seekableChanged@QMediaPlayerControl@QtMobility@@IAEX_N@Z @ 317 NONAME ; void QtMobility::QMediaPlayerControl::seekableChanged(bool) + ?qt_metacall@QMediaPlaylist@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 318 NONAME ; int QtMobility::QMediaPlaylist::qt_metacall(enum QMetaObject::Call, int, void * *) + ?mediaStatus@QMediaPlayer@QtMobility@@QBE?AW4MediaStatus@12@XZ @ 319 NONAME ; enum QtMobility::QMediaPlayer::MediaStatus QtMobility::QMediaPlayer::mediaStatus(void) const + ?tr@QMediaPlayer@QtMobility@@SA?AVQString@@PBD0@Z @ 320 NONAME ; class QString QtMobility::QMediaPlayer::tr(char const *, char const *) + ?insertMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NHABVQMediaContent@2@@Z @ 321 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::insertMedia(int, class QtMobility::QMediaContent const &) + ?audioAvailableChanged@QMediaPlayerControl@QtMobility@@IAEX_N@Z @ 322 NONAME ; void QtMobility::QMediaPlayerControl::audioAvailableChanged(bool) + ?tr@QMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 323 NONAME ; class QString QtMobility::QMediaPlaylistProvider::tr(char const *, char const *) + ?metaObject@QMediaContainerControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 324 NONAME ; struct QMetaObject const * QtMobility::QMediaContainerControl::metaObject(void) const + ?audioInputs@QAudioCaptureSource@QtMobility@@QBE?AV?$QList@VQString@@@@XZ @ 325 NONAME ; class QList QtMobility::QAudioCaptureSource::audioInputs(void) const + ?metaObject@QImageEncoderControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 326 NONAME ; struct QMetaObject const * QtMobility::QImageEncoderControl::metaObject(void) const + ??1QMediaPlaylistIOPlugin@QtMobility@@UAE@XZ @ 327 NONAME ; QtMobility::QMediaPlaylistIOPlugin::~QMediaPlaylistIOPlugin(void) + ?d_func@QLocalMediaPlaylistProvider@QtMobility@@AAEPAVQLocalMediaPlaylistProviderPrivate@2@XZ @ 328 NONAME ; class QtMobility::QLocalMediaPlaylistProviderPrivate * QtMobility::QLocalMediaPlaylistProvider::d_func(void) + ?trUtf8@QVideoWindowControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 329 NONAME ; class QString QtMobility::QVideoWindowControl::trUtf8(char const *, char const *, int) + ?audioBitRate@QMediaResource@QtMobility@@QBEHXZ @ 330 NONAME ; int QtMobility::QMediaResource::audioBitRate(void) const + ??0QAudioCaptureSource@QtMobility@@QAE@PAVQMediaObject@1@PAVQObject@@@Z @ 331 NONAME ; QtMobility::QAudioCaptureSource::QAudioCaptureSource(class QtMobility::QMediaObject *, class QObject *) + ?d_func@QGraphicsVideoItem@QtMobility@@ABEPBVQGraphicsVideoItemPrivate@2@XZ @ 332 NONAME ; class QtMobility::QGraphicsVideoItemPrivate const * QtMobility::QGraphicsVideoItem::d_func(void) const + ?tr@QMediaServiceProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 333 NONAME ; class QString QtMobility::QMediaServiceProvider::tr(char const *, char const *, int) + ?trUtf8@QMediaServiceProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 334 NONAME ; class QString QtMobility::QMediaServiceProvider::trUtf8(char const *, char const *) + ?getStaticMetaObject@QMediaRecorder@QtMobility@@SAABUQMetaObject@@XZ @ 335 NONAME ; struct QMetaObject const & QtMobility::QMediaRecorder::getStaticMetaObject(void) + ??_EQMediaPlaylistProvider@QtMobility@@UAE@I@Z @ 336 NONAME ; QtMobility::QMediaPlaylistProvider::~QMediaPlaylistProvider(unsigned int) + ?setupMetaData@QMediaObject@QtMobility@@AAEXXZ @ 337 NONAME ; void QtMobility::QMediaObject::setupMetaData(void) + ?metaDataAvailableChanged@QMetaDataControl@QtMobility@@IAEX_N@Z @ 338 NONAME ; void QtMobility::QMetaDataControl::metaDataAvailableChanged(bool) + ??_EQMediaRecorder@QtMobility@@UAE@I@Z @ 339 NONAME ; QtMobility::QMediaRecorder::~QMediaRecorder(unsigned int) + ?audioSettings@QMediaRecorder@QtMobility@@QBE?AVQAudioEncoderSettings@2@XZ @ 340 NONAME ; class QtMobility::QAudioEncoderSettings QtMobility::QMediaRecorder::audioSettings(void) const + ?addMedia@QMediaPlaylist@QtMobility@@QAE_NABVQMediaContent@2@@Z @ 341 NONAME ; bool QtMobility::QMediaPlaylist::addMedia(class QtMobility::QMediaContent const &) + ?availabilityError@QRadioTuner@QtMobility@@UBE?AW4AvailabilityError@QtMedia@2@XZ @ 342 NONAME ; enum QtMobility::QtMedia::AvailabilityError QtMobility::QRadioTuner::availabilityError(void) const + ?isMetaDataWritable@QMediaObject@QtMobility@@QBE_NXZ @ 343 NONAME ; bool QtMobility::QMediaObject::isMetaDataWritable(void) const + ?setCodec@QImageEncoderSettings@QtMobility@@QAEXABVQString@@@Z @ 344 NONAME ; void QtMobility::QImageEncoderSettings::setCodec(class QString const &) + ?staticMetaObject@QLocalMediaPlaylistProvider@QtMobility@@2UQMetaObject@@B @ 345 NONAME ; struct QMetaObject const QtMobility::QLocalMediaPlaylistProvider::staticMetaObject + ?selectedDeviceChanged@QVideoDeviceControl@QtMobility@@IAEXH@Z @ 346 NONAME ; void QtMobility::QVideoDeviceControl::selectedDeviceChanged(int) + ??0QImageEncoderSettings@QtMobility@@QAE@XZ @ 347 NONAME ; QtMobility::QImageEncoderSettings::QImageEncoderSettings(void) + ?availabilityChanged@QMediaObject@QtMobility@@IAEX_N@Z @ 348 NONAME ; void QtMobility::QMediaObject::availabilityChanged(bool) + ??0QRadioTunerControl@QtMobility@@IAE@PAVQObject@@@Z @ 349 NONAME ; QtMobility::QRadioTunerControl::QRadioTunerControl(class QObject *) + ?tr@QAudioEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 350 NONAME ; class QString QtMobility::QAudioEncoderControl::tr(char const *, char const *) + ?isVideoAvailable@QMediaPlayer@QtMobility@@QBE_NXZ @ 351 NONAME ; bool QtMobility::QMediaPlayer::isVideoAvailable(void) const + ?activeStreamsChanged@QMediaStreamsControl@QtMobility@@IAEXXZ @ 352 NONAME ; void QtMobility::QMediaStreamsControl::activeStreamsChanged(void) + ?next@QMediaPlaylistNavigator@QtMobility@@QAEXXZ @ 353 NONAME ; void QtMobility::QMediaPlaylistNavigator::next(void) + ?getStaticMetaObject@QGraphicsVideoItem@QtMobility@@SAABUQMetaObject@@XZ @ 354 NONAME ; struct QMetaObject const & QtMobility::QGraphicsVideoItem::getStaticMetaObject(void) + ??0QMediaServiceProviderHint@QtMobility@@QAE@ABVQByteArray@@@Z @ 355 NONAME ; QtMobility::QMediaServiceProviderHint::QMediaServiceProviderHint(class QByteArray const &) + ?d_func@QMediaImageViewer@QtMobility@@AAEPAVQMediaImageViewerPrivate@2@XZ @ 356 NONAME ; class QtMobility::QMediaImageViewerPrivate * QtMobility::QMediaImageViewer::d_func(void) + ?qt_metacall@QMediaPlaylistIOPlugin@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 357 NONAME ; int QtMobility::QMediaPlaylistIOPlugin::qt_metacall(enum QMetaObject::Call, int, void * *) + ??1QMediaContainerControl@QtMobility@@UAE@XZ @ 358 NONAME ; QtMobility::QMediaContainerControl::~QMediaContainerControl(void) + ?earliestTime@QMediaTimeRange@QtMobility@@QBE_JXZ @ 359 NONAME ; long long QtMobility::QMediaTimeRange::earliestTime(void) const + ?getStaticMetaObject@QVideoOutputControl@QtMobility@@SAABUQMetaObject@@XZ @ 360 NONAME ; struct QMetaObject const & QtMobility::QVideoOutputControl::getStaticMetaObject(void) + ?availableExtendedMetaData@QMediaObject@QtMobility@@QBE?AVQStringList@@XZ @ 361 NONAME ; class QStringList QtMobility::QMediaObject::availableExtendedMetaData(void) const + ?qt_metacast@QMediaStreamsControl@QtMobility@@UAEPAXPBD@Z @ 362 NONAME ; void * QtMobility::QMediaStreamsControl::qt_metacast(char const *) + ?qt_metacast@QAudioEndpointSelector@QtMobility@@UAEPAXPBD@Z @ 363 NONAME ; void * QtMobility::QAudioEndpointSelector::qt_metacast(char const *) + ?staticMetaObject@QMediaPlayerControl@QtMobility@@2UQMetaObject@@B @ 364 NONAME ; struct QMetaObject const QtMobility::QMediaPlayerControl::staticMetaObject + ?staticMetaObject@QAudioEncoderControl@QtMobility@@2UQMetaObject@@B @ 365 NONAME ; struct QMetaObject const QtMobility::QAudioEncoderControl::staticMetaObject + ?qt_metacast@QMediaPlaylistNavigator@QtMobility@@UAEPAXPBD@Z @ 366 NONAME ; void * QtMobility::QMediaPlaylistNavigator::qt_metacast(char const *) + ?frequencyChanged@QRadioTunerControl@QtMobility@@IAEXH@Z @ 367 NONAME ; void QtMobility::QRadioTunerControl::frequencyChanged(int) + ?error@QMediaPlayer@QtMobility@@IAEXW4Error@12@@Z @ 368 NONAME ; void QtMobility::QMediaPlayer::error(enum QtMobility::QMediaPlayer::Error) + ??ZQMediaTimeRange@QtMobility@@QAEAAV01@ABV01@@Z @ 369 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator-=(class QtMobility::QMediaTimeRange const &) + ??_EQMediaService@QtMobility@@UAE@I@Z @ 370 NONAME ; QtMobility::QMediaService::~QMediaService(unsigned int) + ?setEncodingMode@QVideoEncoderSettings@QtMobility@@QAEXW4EncodingMode@QtMedia@2@@Z @ 371 NONAME ; void QtMobility::QVideoEncoderSettings::setEncodingMode(enum QtMobility::QtMedia::EncodingMode) + ?metaObject@QMediaStreamsControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 372 NONAME ; struct QMetaObject const * QtMobility::QMediaStreamsControl::metaObject(void) const + ?isMuted@QMediaPlayer@QtMobility@@QBE_NXZ @ 373 NONAME ; bool QtMobility::QMediaPlayer::isMuted(void) const + ?tr@QMediaRecorder@QtMobility@@SA?AVQString@@PBD0H@Z @ 374 NONAME ; class QString QtMobility::QMediaRecorder::tr(char const *, char const *, int) + ?saturationChanged@QVideoWindowControl@QtMobility@@IAEXH@Z @ 375 NONAME ; void QtMobility::QVideoWindowControl::saturationChanged(int) + ?trUtf8@QMediaPlayerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 376 NONAME ; class QString QtMobility::QMediaPlayerControl::trUtf8(char const *, char const *, int) + ?playbackModeChanged@QMediaPlaylist@QtMobility@@IAEXW4PlaybackMode@12@@Z @ 377 NONAME ; void QtMobility::QMediaPlaylist::playbackModeChanged(enum QtMobility::QMediaPlaylist::PlaybackMode) + ?metaDataChanged@QMediaObject@QtMobility@@IAEXXZ @ 378 NONAME ; void QtMobility::QMediaObject::metaDataChanged(void) + ??0QMediaPlaylistNavigator@QtMobility@@QAE@PAVQMediaPlaylistProvider@1@PAVQObject@@@Z @ 379 NONAME ; QtMobility::QMediaPlaylistNavigator::QMediaPlaylistNavigator(class QtMobility::QMediaPlaylistProvider *, class QObject *) + ?metaObject@QAudioCaptureSource@QtMobility@@UBEPBUQMetaObject@@XZ @ 380 NONAME ; struct QMetaObject const * QtMobility::QAudioCaptureSource::metaObject(void) const + ?error@QMediaPlaylist@QtMobility@@QBE?AW4Error@12@XZ @ 381 NONAME ; enum QtMobility::QMediaPlaylist::Error QtMobility::QMediaPlaylist::error(void) const + ?tr@QMediaControl@QtMobility@@SA?AVQString@@PBD0@Z @ 382 NONAME ; class QString QtMobility::QMediaControl::tr(char const *, char const *) + ?setMediaObject@QGraphicsVideoItem@QtMobility@@QAEXPAVQMediaObject@2@@Z @ 383 NONAME ; void QtMobility::QGraphicsVideoItem::setMediaObject(class QtMobility::QMediaObject *) + ?error@QRadioTuner@QtMobility@@QBE?AW4Error@12@XZ @ 384 NONAME ; enum QtMobility::QRadioTuner::Error QtMobility::QRadioTuner::error(void) const + ??4QImageEncoderSettings@QtMobility@@QAEAAV01@ABV01@@Z @ 385 NONAME ; class QtMobility::QImageEncoderSettings & QtMobility::QImageEncoderSettings::operator=(class QtMobility::QImageEncoderSettings const &) + ?trUtf8@QMediaService@QtMobility@@SA?AVQString@@PBD0@Z @ 386 NONAME ; class QString QtMobility::QMediaService::trUtf8(char const *, char const *) + ??0QVideoWindowControl@QtMobility@@IAE@PAVQObject@@@Z @ 387 NONAME ; QtMobility::QVideoWindowControl::QVideoWindowControl(class QObject *) + ?removeMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NH@Z @ 388 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::removeMedia(int) + ?mediaObject@QGraphicsVideoItem@QtMobility@@QBEPAVQMediaObject@2@XZ @ 389 NONAME ; class QtMobility::QMediaObject * QtMobility::QGraphicsVideoItem::mediaObject(void) const + ?saturation@QVideoWidget@QtMobility@@QBEHXZ @ 390 NONAME ; int QtMobility::QVideoWidget::saturation(void) const + ?tr@QVideoDeviceControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 391 NONAME ; class QString QtMobility::QVideoDeviceControl::tr(char const *, char const *, int) + ?errorString@QMediaPlayer@QtMobility@@QBE?AVQString@@XZ @ 392 NONAME ; class QString QtMobility::QMediaPlayer::errorString(void) const + ?supportedMimeTypes@QMediaPlayer@QtMobility@@SA?AVQStringList@@V?$QFlags@W4Flag@QMediaPlayer@QtMobility@@@@@Z @ 393 NONAME ; class QStringList QtMobility::QMediaPlayer::supportedMimeTypes(class QFlags) + ?stateChanged@QMediaPlayer@QtMobility@@IAEXW4State@12@@Z @ 394 NONAME ; void QtMobility::QMediaPlayer::stateChanged(enum QtMobility::QMediaPlayer::State) + ?nextIndex@QMediaPlaylist@QtMobility@@QBEHH@Z @ 395 NONAME ; int QtMobility::QMediaPlaylist::nextIndex(int) const + ?metaObject@QMediaPlaylistNavigator@QtMobility@@UBEPBUQMetaObject@@XZ @ 396 NONAME ; struct QMetaObject const * QtMobility::QMediaPlaylistNavigator::metaObject(void) const + ?addTimeRange@QMediaTimeRange@QtMobility@@QAEXABV12@@Z @ 397 NONAME ; void QtMobility::QMediaTimeRange::addTimeRange(class QtMobility::QMediaTimeRange const &) + ?hueChanged@QVideoWindowControl@QtMobility@@IAEXH@Z @ 398 NONAME ; void QtMobility::QVideoWindowControl::hueChanged(int) + ?frequency@QRadioTuner@QtMobility@@QBEHXZ @ 399 NONAME ; int QtMobility::QRadioTuner::frequency(void) const + ?trUtf8@QMediaPlaylist@QtMobility@@SA?AVQString@@PBD0H@Z @ 400 NONAME ; class QString QtMobility::QMediaPlaylist::trUtf8(char const *, char const *, int) + ?fullScreenChanged@QVideoWidgetControl@QtMobility@@IAEX_N@Z @ 401 NONAME ; void QtMobility::QVideoWidgetControl::fullScreenChanged(bool) + ?setContrast@QVideoWidget@QtMobility@@QAEXH@Z @ 402 NONAME ; void QtMobility::QVideoWidget::setContrast(int) + ?playbackRate@QMediaPlayer@QtMobility@@QBEMXZ @ 403 NONAME ; float QtMobility::QMediaPlayer::playbackRate(void) const + ?mimeType@QMediaServiceProviderHint@QtMobility@@QBE?AVQString@@XZ @ 404 NONAME ; class QString QtMobility::QMediaServiceProviderHint::mimeType(void) const + ??0QMediaPlaylist@QtMobility@@QAE@PAVQObject@@@Z @ 405 NONAME ; QtMobility::QMediaPlaylist::QMediaPlaylist(class QObject *) + ?staticMetaObject@QVideoRendererControl@QtMobility@@2UQMetaObject@@B @ 406 NONAME ; struct QMetaObject const QtMobility::QVideoRendererControl::staticMetaObject + ?staticMetaObject@QMetaDataControl@QtMobility@@2UQMetaObject@@B @ 407 NONAME ; struct QMetaObject const QtMobility::QMetaDataControl::staticMetaObject + ?pause@QMediaPlayer@QtMobility@@QAEXXZ @ 408 NONAME ; void QtMobility::QMediaPlayer::pause(void) + ?getStaticMetaObject@QMediaPlaylistProvider@QtMobility@@SAABUQMetaObject@@XZ @ 409 NONAME ; struct QMetaObject const & QtMobility::QMediaPlaylistProvider::getStaticMetaObject(void) + ?fullScreenChanged@QVideoWindowControl@QtMobility@@IAEX_N@Z @ 410 NONAME ; void QtMobility::QVideoWindowControl::fullScreenChanged(bool) + ?staticMetaObject@QMediaServiceProviderPlugin@QtMobility@@2UQMetaObject@@B @ 411 NONAME ; struct QMetaObject const QtMobility::QMediaServiceProviderPlugin::staticMetaObject + ?staticMetaObject@QMediaRecorderControl@QtMobility@@2UQMetaObject@@B @ 412 NONAME ; struct QMetaObject const QtMobility::QMediaRecorderControl::staticMetaObject + ?hue@QVideoWidget@QtMobility@@QBEHXZ @ 413 NONAME ; int QtMobility::QVideoWidget::hue(void) const + ?insertMedia@QMediaPlaylistProvider@QtMobility@@UAE_NHABVQMediaContent@2@@Z @ 414 NONAME ; bool QtMobility::QMediaPlaylistProvider::insertMedia(int, class QtMobility::QMediaContent const &) + ?staticMetaObject@QMediaServiceProvider@QtMobility@@2UQMetaObject@@B @ 415 NONAME ; struct QMetaObject const QtMobility::QMediaServiceProvider::staticMetaObject + ?getStaticMetaObject@QMediaImageViewer@QtMobility@@SAABUQMetaObject@@XZ @ 416 NONAME ; struct QMetaObject const & QtMobility::QMediaImageViewer::getStaticMetaObject(void) + ?currentIndex@QMediaPlaylistNavigator@QtMobility@@QBEHXZ @ 417 NONAME ; int QtMobility::QMediaPlaylistNavigator::currentIndex(void) const + ??1QMediaPlaylistControl@QtMobility@@UAE@XZ @ 418 NONAME ; QtMobility::QMediaPlaylistControl::~QMediaPlaylistControl(void) + ?tr@QMediaServiceProviderPlugin@QtMobility@@SA?AVQString@@PBD0@Z @ 419 NONAME ; class QString QtMobility::QMediaServiceProviderPlugin::tr(char const *, char const *) + ?d_func@QMediaRecorder@QtMobility@@AAEPAVQMediaRecorderPrivate@2@XZ @ 420 NONAME ; class QtMobility::QMediaRecorderPrivate * QtMobility::QMediaRecorder::d_func(void) + ??_EQMediaPlaylistIOInterface@QtMobility@@UAE@I@Z @ 421 NONAME ; QtMobility::QMediaPlaylistIOInterface::~QMediaPlaylistIOInterface(unsigned int) + ?bind@QMediaObject@QtMobility@@UAEXPAVQObject@@@Z @ 422 NONAME ; void QtMobility::QMediaObject::bind(class QObject *) + ?trUtf8@QRadioTuner@QtMobility@@SA?AVQString@@PBD0H@Z @ 423 NONAME ; class QString QtMobility::QRadioTuner::trUtf8(char const *, char const *, int) + ?tr@QVideoWindowControl@QtMobility@@SA?AVQString@@PBD0@Z @ 424 NONAME ; class QString QtMobility::QVideoWindowControl::tr(char const *, char const *) + ??1QMediaServiceFeaturesInterface@QtMobility@@UAE@XZ @ 425 NONAME ; QtMobility::QMediaServiceFeaturesInterface::~QMediaServiceFeaturesInterface(void) + ??_EQMediaContainerControl@QtMobility@@UAE@I@Z @ 426 NONAME ; QtMobility::QMediaContainerControl::~QMediaContainerControl(unsigned int) + ?stop@QMediaPlayer@QtMobility@@QAEXXZ @ 427 NONAME ; void QtMobility::QMediaPlayer::stop(void) + ?qt_metacast@QMediaServiceProvider@QtMobility@@UAEPAXPBD@Z @ 428 NONAME ; void * QtMobility::QMediaServiceProvider::qt_metacast(char const *) + ?mediaStatusChanged@QMediaImageViewer@QtMobility@@IAEXW4MediaStatus@12@@Z @ 429 NONAME ; void QtMobility::QMediaImageViewer::mediaStatusChanged(enum QtMobility::QMediaImageViewer::MediaStatus) + ?audioCodecDescription@QMediaRecorder@QtMobility@@QBE?AVQString@@ABV3@@Z @ 430 NONAME ; class QString QtMobility::QMediaRecorder::audioCodecDescription(class QString const &) const + ??0QMediaPlaylistProvider@QtMobility@@IAE@AAVQMediaPlaylistProviderPrivate@1@PAVQObject@@@Z @ 431 NONAME ; QtMobility::QMediaPlaylistProvider::QMediaPlaylistProvider(class QtMobility::QMediaPlaylistProviderPrivate &, class QObject *) + ?qt_metacast@QVideoWidget@QtMobility@@UAEPAXPBD@Z @ 432 NONAME ; void * QtMobility::QVideoWidget::qt_metacast(char const *) + ?type@QMediaServiceProviderHint@QtMobility@@QBE?AW4Type@12@XZ @ 433 NONAME ; enum QtMobility::QMediaServiceProviderHint::Type QtMobility::QMediaServiceProviderHint::type(void) const + ?qt_metacast@QMediaContainerControl@QtMobility@@UAEPAXPBD@Z @ 434 NONAME ; void * QtMobility::QMediaContainerControl::qt_metacast(char const *) + ?trUtf8@QMediaPlaylistControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 435 NONAME ; class QString QtMobility::QMediaPlaylistControl::trUtf8(char const *, char const *, int) + ?qt_metacast@QMediaServiceProviderPlugin@QtMobility@@UAEPAXPBD@Z @ 436 NONAME ; void * QtMobility::QMediaServiceProviderPlugin::qt_metacast(char const *) + ??1QMediaPlayer@QtMobility@@UAE@XZ @ 437 NONAME ; QtMobility::QMediaPlayer::~QMediaPlayer(void) + ?state@QMediaPlayer@QtMobility@@QBE?AW4State@12@XZ @ 438 NONAME ; enum QtMobility::QMediaPlayer::State QtMobility::QMediaPlayer::state(void) const + ?d_func@QRadioTuner@QtMobility@@ABEPBVQRadioTunerPrivate@2@XZ @ 439 NONAME ; class QtMobility::QRadioTunerPrivate const * QtMobility::QRadioTuner::d_func(void) const + ?brightnessChanged@QVideoWidgetControl@QtMobility@@IAEXH@Z @ 440 NONAME ; void QtMobility::QVideoWidgetControl::brightnessChanged(int) + ?currentIndex@QMediaPlaylist@QtMobility@@QBEHXZ @ 441 NONAME ; int QtMobility::QMediaPlaylist::currentIndex(void) const + ?getStaticMetaObject@QRadioTunerControl@QtMobility@@SAABUQMetaObject@@XZ @ 442 NONAME ; struct QMetaObject const & QtMobility::QRadioTunerControl::getStaticMetaObject(void) + ?qt_metacall@QVideoWindowControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 443 NONAME ; int QtMobility::QVideoWindowControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ?brightness@QVideoWidget@QtMobility@@QBEHXZ @ 444 NONAME ; int QtMobility::QVideoWidget::brightness(void) const + ?getStaticMetaObject@QImageEncoderControl@QtMobility@@SAABUQMetaObject@@XZ @ 445 NONAME ; struct QMetaObject const & QtMobility::QImageEncoderControl::getStaticMetaObject(void) + ?trUtf8@QMediaRecorder@QtMobility@@SA?AVQString@@PBD0@Z @ 446 NONAME ; class QString QtMobility::QMediaRecorder::trUtf8(char const *, char const *) + ?availableAudioInputsChanged@QAudioCaptureSource@QtMobility@@IAEXXZ @ 447 NONAME ; void QtMobility::QAudioCaptureSource::availableAudioInputsChanged(void) + ?trUtf8@QMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 448 NONAME ; class QString QtMobility::QMediaPlaylistProvider::trUtf8(char const *, char const *, int) + ?quality@QImageEncoderSettings@QtMobility@@QBE?AW4EncodingQuality@QtMedia@2@XZ @ 449 NONAME ; enum QtMobility::QtMedia::EncodingQuality QtMobility::QImageEncoderSettings::quality(void) const + ?d_func@QMediaControl@QtMobility@@ABEPBVQMediaControlPrivate@2@XZ @ 450 NONAME ; class QtMobility::QMediaControlPrivate const * QtMobility::QMediaControl::d_func(void) const + ?volume@QMediaPlayer@QtMobility@@QBEHXZ @ 451 NONAME ; int QtMobility::QMediaPlayer::volume(void) const + ?setTimeout@QMediaImageViewer@QtMobility@@QAEXH@Z @ 452 NONAME ; void QtMobility::QMediaImageViewer::setTimeout(int) + ?setPlaybackMode@QMediaPlaylistNavigator@QtMobility@@QAEXW4PlaybackMode@QMediaPlaylist@2@@Z @ 453 NONAME ; void QtMobility::QMediaPlaylistNavigator::setPlaybackMode(enum QtMobility::QMediaPlaylist::PlaybackMode) + ?currentMedia@QMediaPlaylist@QtMobility@@QBE?AVQMediaContent@2@XZ @ 454 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylist::currentMedia(void) const + ??0QMediaServiceProviderHint@QtMobility@@QAE@ABVQString@@ABVQStringList@@@Z @ 455 NONAME ; QtMobility::QMediaServiceProviderHint::QMediaServiceProviderHint(class QString const &, class QStringList const &) + ?qt_metacast@QGraphicsVideoItem@QtMobility@@UAEPAXPBD@Z @ 456 NONAME ; void * QtMobility::QGraphicsVideoItem::qt_metacast(char const *) + ?mutedChanged@QRadioTuner@QtMobility@@IAEX_N@Z @ 457 NONAME ; void QtMobility::QRadioTuner::mutedChanged(bool) + ?getStaticMetaObject@QMediaPlayer@QtMobility@@SAABUQMetaObject@@XZ @ 458 NONAME ; struct QMetaObject const & QtMobility::QMediaPlayer::getStaticMetaObject(void) + ?mediaCount@QLocalMediaPlaylistProvider@QtMobility@@UBEHXZ @ 459 NONAME ; int QtMobility::QLocalMediaPlaylistProvider::mediaCount(void) const + ??9QMediaServiceProviderHint@QtMobility@@QBE_NABV01@@Z @ 460 NONAME ; bool QtMobility::QMediaServiceProviderHint::operator!=(class QtMobility::QMediaServiceProviderHint const &) const + ?outputLocation@QMediaRecorder@QtMobility@@QBE?AVQUrl@@XZ @ 461 NONAME ; class QUrl QtMobility::QMediaRecorder::outputLocation(void) const + ?d_func@QMediaPlaylistNavigator@QtMobility@@ABEPBVQMediaPlaylistNavigatorPrivate@2@XZ @ 462 NONAME ; class QtMobility::QMediaPlaylistNavigatorPrivate const * QtMobility::QMediaPlaylistNavigator::d_func(void) const + ??_EQMediaPlaylistReader@QtMobility@@UAE@I@Z @ 463 NONAME ; QtMobility::QMediaPlaylistReader::~QMediaPlaylistReader(unsigned int) + ??9QMediaResource@QtMobility@@QBE_NABV01@@Z @ 464 NONAME ; bool QtMobility::QMediaResource::operator!=(class QtMobility::QMediaResource const &) const + ?bandChanged@QRadioTunerControl@QtMobility@@IAEXW4Band@QRadioTuner@2@@Z @ 465 NONAME ; void QtMobility::QRadioTunerControl::bandChanged(enum QtMobility::QRadioTuner::Band) + ?durationChanged@QMediaPlayer@QtMobility@@IAEX_J@Z @ 466 NONAME ; void QtMobility::QMediaPlayer::durationChanged(long long) + ?errorString@QMediaPlaylist@QtMobility@@QBE?AVQString@@XZ @ 467 NONAME ; class QString QtMobility::QMediaPlaylist::errorString(void) const + ?audioDescription@QAudioCaptureSource@QtMobility@@QBE?AVQString@@ABV3@@Z @ 468 NONAME ; class QString QtMobility::QAudioCaptureSource::audioDescription(class QString const &) const + ?canonicalUrl@QMediaContent@QtMobility@@QBE?AVQUrl@@XZ @ 469 NONAME ; class QUrl QtMobility::QMediaContent::canonicalUrl(void) const + ??1QImageEncoderControl@QtMobility@@UAE@XZ @ 470 NONAME ; QtMobility::QImageEncoderControl::~QImageEncoderControl(void) + ?d_func@QMediaImageViewer@QtMobility@@ABEPBVQMediaImageViewerPrivate@2@XZ @ 471 NONAME ; class QtMobility::QMediaImageViewerPrivate const * QtMobility::QMediaImageViewer::d_func(void) const + ?qt_metacast@QMediaObject@QtMobility@@UAEPAXPBD@Z @ 472 NONAME ; void * QtMobility::QMediaObject::qt_metacast(char const *) + ?setAudioInput@QAudioCaptureSource@QtMobility@@QAEXABVQString@@@Z @ 473 NONAME ; void QtMobility::QAudioCaptureSource::setAudioInput(class QString const &) + ?videoAvailableChanged@QMediaPlayerControl@QtMobility@@IAEX_N@Z @ 474 NONAME ; void QtMobility::QMediaPlayerControl::videoAvailableChanged(bool) + ?supportedAudioSampleRates@QMediaRecorder@QtMobility@@QBE?AV?$QList@H@@ABVQAudioEncoderSettings@2@PA_N@Z @ 475 NONAME ; class QList QtMobility::QMediaRecorder::supportedAudioSampleRates(class QtMobility::QAudioEncoderSettings const &, bool *) const + ?setSampleRate@QAudioEncoderSettings@QtMobility@@QAEXH@Z @ 476 NONAME ; void QtMobility::QAudioEncoderSettings::setSampleRate(int) + ?mediaStream@QMediaPlayer@QtMobility@@QBEPBVQIODevice@@XZ @ 477 NONAME ; class QIODevice const * QtMobility::QMediaPlayer::mediaStream(void) const + ?trUtf8@QMediaRecorderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 478 NONAME ; class QString QtMobility::QMediaRecorderControl::trUtf8(char const *, char const *) + ??0QMediaImageViewer@QtMobility@@QAE@PAVQObject@@@Z @ 479 NONAME ; QtMobility::QMediaImageViewer::QMediaImageViewer(class QObject *) + ?metaObject@QMediaObject@QtMobility@@UBEPBUQMetaObject@@XZ @ 480 NONAME ; struct QMetaObject const * QtMobility::QMediaObject::metaObject(void) const + ?setStereoMode@QRadioTuner@QtMobility@@QAEXW4StereoMode@12@@Z @ 481 NONAME ; void QtMobility::QRadioTuner::setStereoMode(enum QtMobility::QRadioTuner::StereoMode) + ??9QAudioEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 482 NONAME ; bool QtMobility::QAudioEncoderSettings::operator!=(class QtMobility::QAudioEncoderSettings const &) const + ??8QMediaContent@QtMobility@@QBE_NABV01@@Z @ 483 NONAME ; bool QtMobility::QMediaContent::operator==(class QtMobility::QMediaContent const &) const + ?tr@QMediaControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 484 NONAME ; class QString QtMobility::QMediaControl::tr(char const *, char const *, int) + ?tr@QRadioTuner@QtMobility@@SA?AVQString@@PBD0H@Z @ 485 NONAME ; class QString QtMobility::QRadioTuner::tr(char const *, char const *, int) + ?getStaticMetaObject@QVideoWidgetControl@QtMobility@@SAABUQMetaObject@@XZ @ 486 NONAME ; struct QMetaObject const & QtMobility::QVideoWidgetControl::getStaticMetaObject(void) + ?addMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NABVQMediaContent@2@@Z @ 487 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::addMedia(class QtMobility::QMediaContent const &) + ?metaDataWritableChanged@QMediaObject@QtMobility@@IAEX_N@Z @ 488 NONAME ; void QtMobility::QMediaObject::metaDataWritableChanged(bool) + ?setQuality@QImageEncoderSettings@QtMobility@@QAEXW4EncodingQuality@QtMedia@2@@Z @ 489 NONAME ; void QtMobility::QImageEncoderSettings::setQuality(enum QtMobility::QtMedia::EncodingQuality) + ?tr@QAudioEndpointSelector@QtMobility@@SA?AVQString@@PBD0H@Z @ 490 NONAME ; class QString QtMobility::QAudioEndpointSelector::tr(char const *, char const *, int) + ?setNotifyInterval@QMediaObject@QtMobility@@QAEXH@Z @ 491 NONAME ; void QtMobility::QMediaObject::setNotifyInterval(int) + ?tr@QVideoEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 492 NONAME ; class QString QtMobility::QVideoEncoderControl::tr(char const *, char const *, int) + ?latestTime@QMediaTimeRange@QtMobility@@QBE_JXZ @ 493 NONAME ; long long QtMobility::QMediaTimeRange::latestTime(void) const + ?tr@QMediaPlaylistIOPlugin@QtMobility@@SA?AVQString@@PBD0H@Z @ 494 NONAME ; class QString QtMobility::QMediaPlaylistIOPlugin::tr(char const *, char const *, int) + ?getStaticMetaObject@QMediaPlayerControl@QtMobility@@SAABUQMetaObject@@XZ @ 495 NONAME ; struct QMetaObject const & QtMobility::QMediaPlayerControl::getStaticMetaObject(void) + ?mediaRemoved@QMediaPlaylistProvider@QtMobility@@IAEXHH@Z @ 496 NONAME ; void QtMobility::QMediaPlaylistProvider::mediaRemoved(int, int) + ?tr@QVideoWidgetControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 497 NONAME ; class QString QtMobility::QVideoWidgetControl::tr(char const *, char const *, int) + ?setResolution@QImageEncoderSettings@QtMobility@@QAEXABVQSize@@@Z @ 498 NONAME ; void QtMobility::QImageEncoderSettings::setResolution(class QSize const &) + ?stop@QMediaImageViewer@QtMobility@@QAEXXZ @ 499 NONAME ; void QtMobility::QMediaImageViewer::stop(void) + ?pause@QMediaImageViewer@QtMobility@@QAEXXZ @ 500 NONAME ; void QtMobility::QMediaImageViewer::pause(void) + ?stereoMode@QRadioTuner@QtMobility@@QBE?AW4StereoMode@12@XZ @ 501 NONAME ; enum QtMobility::QRadioTuner::StereoMode QtMobility::QRadioTuner::stereoMode(void) const + ??1QMediaPlaylistIOInterface@QtMobility@@UAE@XZ @ 502 NONAME ; QtMobility::QMediaPlaylistIOInterface::~QMediaPlaylistIOInterface(void) + ?activated@QMediaPlaylistNavigator@QtMobility@@IAEXABVQMediaContent@2@@Z @ 503 NONAME ; void QtMobility::QMediaPlaylistNavigator::activated(class QtMobility::QMediaContent const &) + ?errorString@QRadioTuner@QtMobility@@QBE?AVQString@@XZ @ 504 NONAME ; class QString QtMobility::QRadioTuner::errorString(void) const + ??0QMediaTimeRange@QtMobility@@QAE@XZ @ 505 NONAME ; QtMobility::QMediaTimeRange::QMediaTimeRange(void) + ?previousIndex@QMediaPlaylist@QtMobility@@QBEHH@Z @ 506 NONAME ; int QtMobility::QMediaPlaylist::previousIndex(int) const + ?nativeSizeChanged@QGraphicsVideoItem@QtMobility@@IAEXABVQSizeF@@@Z @ 507 NONAME ; void QtMobility::QGraphicsVideoItem::nativeSizeChanged(class QSizeF const &) + ?sampleRate@QMediaResource@QtMobility@@QBEHXZ @ 508 NONAME ; int QtMobility::QMediaResource::sampleRate(void) const + ??_EQMediaPlayer@QtMobility@@UAE@I@Z @ 509 NONAME ; QtMobility::QMediaPlayer::~QMediaPlayer(unsigned int) + ?resolution@QMediaResource@QtMobility@@QBE?AVQSize@@XZ @ 510 NONAME ; class QSize QtMobility::QMediaResource::resolution(void) const + ?nextItem@QMediaPlaylistNavigator@QtMobility@@QBE?AVQMediaContent@2@H@Z @ 511 NONAME ; class QtMobility::QMediaContent QtMobility::QMediaPlaylistNavigator::nextItem(int) const + ?state@QMediaRecorder@QtMobility@@QBE?AW4State@12@XZ @ 512 NONAME ; enum QtMobility::QMediaRecorder::State QtMobility::QMediaRecorder::state(void) const + ?searchBackward@QRadioTuner@QtMobility@@QAEXXZ @ 513 NONAME ; void QtMobility::QRadioTuner::searchBackward(void) + ?qt_metacast@QVideoDeviceControl@QtMobility@@UAEPAXPBD@Z @ 514 NONAME ; void * QtMobility::QVideoDeviceControl::qt_metacast(char const *) + ?qt_metacast@QMediaImageViewer@QtMobility@@UAEPAXPBD@Z @ 515 NONAME ; void * QtMobility::QMediaImageViewer::qt_metacast(char const *) + ??_EQMediaPlaylist@QtMobility@@UAE@I@Z @ 516 NONAME ; QtMobility::QMediaPlaylist::~QMediaPlaylist(unsigned int) + ?mutedChanged@QRadioTunerControl@QtMobility@@IAEX_N@Z @ 517 NONAME ; void QtMobility::QRadioTunerControl::mutedChanged(bool) + ?bufferStatusChanged@QMediaPlayerControl@QtMobility@@IAEXH@Z @ 518 NONAME ; void QtMobility::QMediaPlayerControl::bufferStatusChanged(int) + ?staticMetaObject@QVideoOutputControl@QtMobility@@2UQMetaObject@@B @ 519 NONAME ; struct QMetaObject const QtMobility::QVideoOutputControl::staticMetaObject + ?resources@QMediaContent@QtMobility@@QBE?AV?$QList@VQMediaResource@QtMobility@@@@XZ @ 520 NONAME ; class QList QtMobility::QMediaContent::resources(void) const + ??8QVideoEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 521 NONAME ; bool QtMobility::QVideoEncoderSettings::operator==(class QtMobility::QVideoEncoderSettings const &) const + ?getStaticMetaObject@QMetaDataControl@QtMobility@@SAABUQMetaObject@@XZ @ 522 NONAME ; struct QMetaObject const & QtMobility::QMetaDataControl::getStaticMetaObject(void) + ?codec@QImageEncoderSettings@QtMobility@@QBE?AVQString@@XZ @ 523 NONAME ; class QString QtMobility::QImageEncoderSettings::codec(void) const + ?play@QMediaImageViewer@QtMobility@@QAEXXZ @ 524 NONAME ; void QtMobility::QMediaImageViewer::play(void) + ?tr@QVideoOutputControl@QtMobility@@SA?AVQString@@PBD0@Z @ 525 NONAME ; class QString QtMobility::QVideoOutputControl::tr(char const *, char const *) + ?qt_metacall@QMediaService@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 526 NONAME ; int QtMobility::QMediaService::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QMediaRecorder@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 527 NONAME ; int QtMobility::QMediaRecorder::qt_metacall(enum QMetaObject::Call, int, void * *) + ?addInterval@QMediaTimeRange@QtMobility@@QAEX_J0@Z @ 528 NONAME ; void QtMobility::QMediaTimeRange::addInterval(long long, long long) + ?tr@QImageEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 529 NONAME ; class QString QtMobility::QImageEncoderControl::tr(char const *, char const *) + ?hasSupport@QMediaPlayer@QtMobility@@SA?AW4SupportEstimate@QtMedia@2@ABVQString@@ABVQStringList@@V?$QFlags@W4Flag@QMediaPlayer@QtMobility@@@@@Z @ 530 NONAME ; enum QtMobility::QtMedia::SupportEstimate QtMobility::QMediaPlayer::hasSupport(class QString const &, class QStringList const &, class QFlags) + ?nativeSize@QGraphicsVideoItem@QtMobility@@QBE?AVQSizeF@@XZ @ 531 NONAME ; class QSizeF QtMobility::QGraphicsVideoItem::nativeSize(void) const + ??1QMediaImageViewer@QtMobility@@UAE@XZ @ 532 NONAME ; QtMobility::QMediaImageViewer::~QMediaImageViewer(void) + ??1QMetaDataControl@QtMobility@@UAE@XZ @ 533 NONAME ; QtMobility::QMetaDataControl::~QMetaDataControl(void) + ?isNull@QImageEncoderSettings@QtMobility@@QBE_NXZ @ 534 NONAME ; bool QtMobility::QImageEncoderSettings::isNull(void) const + ?trUtf8@QMediaService@QtMobility@@SA?AVQString@@PBD0H@Z @ 535 NONAME ; class QString QtMobility::QMediaService::trUtf8(char const *, char const *, int) + ??_EQVideoWindowControl@QtMobility@@UAE@I@Z @ 536 NONAME ; QtMobility::QVideoWindowControl::~QVideoWindowControl(unsigned int) + ??4QAudioEncoderSettings@QtMobility@@QAEAAV01@ABV01@@Z @ 537 NONAME ; class QtMobility::QAudioEncoderSettings & QtMobility::QAudioEncoderSettings::operator=(class QtMobility::QAudioEncoderSettings const &) + ?tr@QMediaServiceProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 538 NONAME ; class QString QtMobility::QMediaServiceProvider::tr(char const *, char const *) + ??0QMediaResource@QtMobility@@QAE@ABVQUrl@@ABVQString@@@Z @ 539 NONAME ; QtMobility::QMediaResource::QMediaResource(class QUrl const &, class QString const &) + ??0QMediaRecorderControl@QtMobility@@IAE@PAVQObject@@@Z @ 540 NONAME ; QtMobility::QMediaRecorderControl::QMediaRecorderControl(class QObject *) + ??_EQMediaStreamsControl@QtMobility@@UAE@I@Z @ 541 NONAME ; QtMobility::QMediaStreamsControl::~QMediaStreamsControl(unsigned int) + ?unbind@QMediaPlayer@QtMobility@@UAEXPAVQObject@@@Z @ 542 NONAME ; void QtMobility::QMediaPlayer::unbind(class QObject *) + ?getStaticMetaObject@QMediaServiceProvider@QtMobility@@SAABUQMetaObject@@XZ @ 543 NONAME ; struct QMetaObject const & QtMobility::QMediaServiceProvider::getStaticMetaObject(void) + ?mediaCount@QMediaPlaylist@QtMobility@@QBEHXZ @ 544 NONAME ; int QtMobility::QMediaPlaylist::mediaCount(void) const + ?signalStrength@QRadioTuner@QtMobility@@QBEHXZ @ 545 NONAME ; int QtMobility::QRadioTuner::signalStrength(void) const + ?mediaObject@QMediaPlaylist@QtMobility@@QBEPAVQMediaObject@2@XZ @ 546 NONAME ; class QtMobility::QMediaObject * QtMobility::QMediaPlaylist::mediaObject(void) const + ?d_func@QMediaService@QtMobility@@ABEPBVQMediaServicePrivate@2@XZ @ 547 NONAME ; class QtMobility::QMediaServicePrivate const * QtMobility::QMediaService::d_func(void) const + ?supportedResolutions@QMediaRecorder@QtMobility@@QBE?AV?$QList@VQSize@@@@ABVQVideoEncoderSettings@2@PA_N@Z @ 548 NONAME ; class QList QtMobility::QMediaRecorder::supportedResolutions(class QtMobility::QVideoEncoderSettings const &, bool *) const + ??HQtMobility@@YA?AVQMediaTimeRange@0@ABV10@0@Z @ 549 NONAME ; class QtMobility::QMediaTimeRange QtMobility::operator+(class QtMobility::QMediaTimeRange const &, class QtMobility::QMediaTimeRange const &) + ??8QtMobility@@YA_NABVQMediaTimeRange@0@0@Z @ 550 NONAME ; bool QtMobility::operator==(class QtMobility::QMediaTimeRange const &, class QtMobility::QMediaTimeRange const &) + ?audioCodec@QMediaResource@QtMobility@@QBE?AVQString@@XZ @ 551 NONAME ; class QString QtMobility::QMediaResource::audioCodec(void) const + ??0QMediaControl@QtMobility@@IAE@PAVQObject@@@Z @ 552 NONAME ; QtMobility::QMediaControl::QMediaControl(class QObject *) + ??1QMediaService@QtMobility@@UAE@XZ @ 553 NONAME ; QtMobility::QMediaService::~QMediaService(void) + ?timerEvent@QGraphicsVideoItem@QtMobility@@MAEXPAVQTimerEvent@@@Z @ 554 NONAME ; void QtMobility::QGraphicsVideoItem::timerEvent(class QTimerEvent *) + ?availablePlaybackRangesChanged@QMediaPlayerControl@QtMobility@@IAEXABVQMediaTimeRange@2@@Z @ 555 NONAME ; void QtMobility::QMediaPlayerControl::availablePlaybackRangesChanged(class QtMobility::QMediaTimeRange const &) + ?setMuted@QRadioTuner@QtMobility@@QAEX_N@Z @ 556 NONAME ; void QtMobility::QRadioTuner::setMuted(bool) + ??YQMediaTimeRange@QtMobility@@QAEAAV01@ABVQMediaTimeInterval@1@@Z @ 557 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator+=(class QtMobility::QMediaTimeInterval const &) + ?mutedChanged@QMediaPlayer@QtMobility@@IAEX_N@Z @ 558 NONAME ; void QtMobility::QMediaPlayer::mutedChanged(bool) + ?setHue@QVideoWidget@QtMobility@@QAEXH@Z @ 559 NONAME ; void QtMobility::QVideoWidget::setHue(int) + ?setBitRate@QVideoEncoderSettings@QtMobility@@QAEXH@Z @ 560 NONAME ; void QtMobility::QVideoEncoderSettings::setBitRate(int) + ?statusChanged@QAudioCaptureSource@QtMobility@@AAEXXZ @ 561 NONAME ; void QtMobility::QAudioCaptureSource::statusChanged(void) + ??0QMediaResource@QtMobility@@QAE@XZ @ 562 NONAME ; QtMobility::QMediaResource::QMediaResource(void) + ?trUtf8@QVideoRendererControl@QtMobility@@SA?AVQString@@PBD0@Z @ 563 NONAME ; class QString QtMobility::QVideoRendererControl::trUtf8(char const *, char const *) + ?playbackModeChanged@QMediaPlaylistControl@QtMobility@@IAEXW4PlaybackMode@QMediaPlaylist@2@@Z @ 564 NONAME ; void QtMobility::QMediaPlaylistControl::playbackModeChanged(enum QtMobility::QMediaPlaylist::PlaybackMode) + ??GQtMobility@@YA?AVQMediaTimeRange@0@ABV10@0@Z @ 565 NONAME ; class QtMobility::QMediaTimeRange QtMobility::operator-(class QtMobility::QMediaTimeRange const &, class QtMobility::QMediaTimeRange const &) + ?trUtf8@QMediaServiceProviderPlugin@QtMobility@@SA?AVQString@@PBD0H@Z @ 566 NONAME ; class QString QtMobility::QMediaServiceProviderPlugin::trUtf8(char const *, char const *, int) + ??0QMediaContent@QtMobility@@QAE@XZ @ 567 NONAME ; QtMobility::QMediaContent::QMediaContent(void) + ?d_func@QMediaObject@QtMobility@@ABEPBVQMediaObjectPrivate@2@XZ @ 568 NONAME ; class QtMobility::QMediaObjectPrivate const * QtMobility::QMediaObject::d_func(void) const + ?trUtf8@QVideoWindowControl@QtMobility@@SA?AVQString@@PBD0@Z @ 569 NONAME ; class QString QtMobility::QVideoWindowControl::trUtf8(char const *, char const *) + ??1QVideoWidgetControl@QtMobility@@UAE@XZ @ 570 NONAME ; QtMobility::QVideoWidgetControl::~QVideoWidgetControl(void) + ?d_func@QLocalMediaPlaylistProvider@QtMobility@@ABEPBVQLocalMediaPlaylistProviderPrivate@2@XZ @ 571 NONAME ; class QtMobility::QLocalMediaPlaylistProviderPrivate const * QtMobility::QLocalMediaPlaylistProvider::d_func(void) const + ?getStaticMetaObject@QVideoEncoderControl@QtMobility@@SAABUQMetaObject@@XZ @ 572 NONAME ; struct QMetaObject const & QtMobility::QVideoEncoderControl::getStaticMetaObject(void) + ?tr@QMediaObject@QtMobility@@SA?AVQString@@PBD0H@Z @ 573 NONAME ; class QString QtMobility::QMediaObject::tr(char const *, char const *, int) + ??4QMediaTimeRange@QtMobility@@QAEAAV01@ABV01@@Z @ 574 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator=(class QtMobility::QMediaTimeRange const &) + ?aspectRatioMode@QVideoWidget@QtMobility@@QBE?AW4AspectRatioMode@Qt@@XZ @ 575 NONAME ; enum Qt::AspectRatioMode QtMobility::QVideoWidget::aspectRatioMode(void) const + ??1QLocalMediaPlaylistProvider@QtMobility@@UAE@XZ @ 576 NONAME ; QtMobility::QLocalMediaPlaylistProvider::~QLocalMediaPlaylistProvider(void) + ?tr@QAudioCaptureSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 577 NONAME ; class QString QtMobility::QAudioCaptureSource::tr(char const *, char const *, int) + ?addMedia@QMediaPlaylist@QtMobility@@QAE_NABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 578 NONAME ; bool QtMobility::QMediaPlaylist::addMedia(class QList const &) + ?stop@QRadioTuner@QtMobility@@QAEXXZ @ 579 NONAME ; void QtMobility::QRadioTuner::stop(void) + ?boundingRect@QGraphicsVideoItem@QtMobility@@UBE?AVQRectF@@XZ @ 580 NONAME ; class QRectF QtMobility::QGraphicsVideoItem::boundingRect(void) const + ?currentMediaChanged@QMediaPlaylistControl@QtMobility@@IAEXABVQMediaContent@2@@Z @ 581 NONAME ; void QtMobility::QMediaPlaylistControl::currentMediaChanged(class QtMobility::QMediaContent const &) + ?media@QLocalMediaPlaylistProvider@QtMobility@@UBE?AVQMediaContent@2@H@Z @ 582 NONAME ; class QtMobility::QMediaContent QtMobility::QLocalMediaPlaylistProvider::media(int) const + ??0QMediaContent@QtMobility@@QAE@ABVQMediaResource@1@@Z @ 583 NONAME ; QtMobility::QMediaContent::QMediaContent(class QtMobility::QMediaResource const &) + ??4QVideoEncoderSettings@QtMobility@@QAEAAV01@ABV01@@Z @ 584 NONAME ; class QtMobility::QVideoEncoderSettings & QtMobility::QVideoEncoderSettings::operator=(class QtMobility::QVideoEncoderSettings const &) + ?durationChanged@QMediaRecorderControl@QtMobility@@IAEX_J@Z @ 585 NONAME ; void QtMobility::QMediaRecorderControl::durationChanged(long long) + ?save@QMediaPlaylistProvider@QtMobility@@UAE_NPAVQIODevice@@PBD@Z @ 586 NONAME ; bool QtMobility::QMediaPlaylistProvider::save(class QIODevice *, char const *) + ?qt_metacall@QVideoDeviceControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 587 NONAME ; int QtMobility::QVideoDeviceControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ?volumeChanged@QRadioTuner@QtMobility@@IAEXH@Z @ 588 NONAME ; void QtMobility::QRadioTuner::volumeChanged(int) + ?setVolume@QMediaPlayer@QtMobility@@QAEXH@Z @ 589 NONAME ; void QtMobility::QMediaPlayer::setVolume(int) + ?setBitRate@QAudioEncoderSettings@QtMobility@@QAEXH@Z @ 590 NONAME ; void QtMobility::QAudioEncoderSettings::setBitRate(int) + ?videoSettings@QMediaRecorder@QtMobility@@QBE?AVQVideoEncoderSettings@2@XZ @ 591 NONAME ; class QtMobility::QVideoEncoderSettings QtMobility::QMediaRecorder::videoSettings(void) const + ?staticMetaObject@QMediaImageViewer@QtMobility@@2UQMetaObject@@B @ 592 NONAME ; struct QMetaObject const QtMobility::QMediaImageViewer::staticMetaObject + ?record@QMediaRecorder@QtMobility@@QAEXXZ @ 593 NONAME ; void QtMobility::QMediaRecorder::record(void) + ?isAvailable@QRadioTuner@QtMobility@@UBE_NXZ @ 594 NONAME ; bool QtMobility::QRadioTuner::isAvailable(void) const + ??_EQMediaPlaylistWriter@QtMobility@@UAE@I@Z @ 595 NONAME ; QtMobility::QMediaPlaylistWriter::~QMediaPlaylistWriter(unsigned int) + ?tr@QMediaContainerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 596 NONAME ; class QString QtMobility::QMediaContainerControl::tr(char const *, char const *, int) + ?codecs@QMediaServiceProviderHint@QtMobility@@QBE?AVQStringList@@XZ @ 597 NONAME ; class QStringList QtMobility::QMediaServiceProviderHint::codecs(void) const + ?frameRate@QVideoEncoderSettings@QtMobility@@QBEMXZ @ 598 NONAME ; float QtMobility::QVideoEncoderSettings::frameRate(void) const + ?d_func@QMediaPlaylistProvider@QtMobility@@ABEPBVQMediaPlaylistProviderPrivate@2@XZ @ 599 NONAME ; class QtMobility::QMediaPlaylistProviderPrivate const * QtMobility::QMediaPlaylistProvider::d_func(void) const + ?staticMetaObject@QMediaPlaylist@QtMobility@@2UQMetaObject@@B @ 600 NONAME ; struct QMetaObject const QtMobility::QMediaPlaylist::staticMetaObject + ?tr@QAudioEndpointSelector@QtMobility@@SA?AVQString@@PBD0@Z @ 601 NONAME ; class QString QtMobility::QAudioEndpointSelector::tr(char const *, char const *) + ?isEmpty@QMediaPlaylist@QtMobility@@QBE_NXZ @ 602 NONAME ; bool QtMobility::QMediaPlaylist::isEmpty(void) const + ?removePropertyWatch@QMediaObject@QtMobility@@IAEXABVQByteArray@@@Z @ 603 NONAME ; void QtMobility::QMediaObject::removePropertyWatch(class QByteArray const &) + ?qt_metacast@QMediaPlaylistProvider@QtMobility@@UAEPAXPBD@Z @ 604 NONAME ; void * QtMobility::QMediaPlaylistProvider::qt_metacast(char const *) + ??0QMediaTimeRange@QtMobility@@QAE@ABV01@@Z @ 605 NONAME ; QtMobility::QMediaTimeRange::QMediaTimeRange(class QtMobility::QMediaTimeRange const &) + ?metaObject@QAudioEncoderControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 606 NONAME ; struct QMetaObject const * QtMobility::QAudioEncoderControl::metaObject(void) const + ?tr@QVideoRendererControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 607 NONAME ; class QString QtMobility::QVideoRendererControl::tr(char const *, char const *, int) + ?isBandSupported@QRadioTuner@QtMobility@@QBE_NW4Band@12@@Z @ 608 NONAME ; bool QtMobility::QRadioTuner::isBandSupported(enum QtMobility::QRadioTuner::Band) const + ?metaObject@QMediaRecorder@QtMobility@@UBEPBUQMetaObject@@XZ @ 609 NONAME ; struct QMetaObject const * QtMobility::QMediaRecorder::metaObject(void) const + ?tr@QGraphicsVideoItem@QtMobility@@SA?AVQString@@PBD0@Z @ 610 NONAME ; class QString QtMobility::QGraphicsVideoItem::tr(char const *, char const *) + ?error@QMediaRecorder@QtMobility@@QBE?AW4Error@12@XZ @ 611 NONAME ; enum QtMobility::QMediaRecorder::Error QtMobility::QMediaRecorder::error(void) const + ?staticMetaObject@QMediaService@QtMobility@@2UQMetaObject@@B @ 612 NONAME ; struct QMetaObject const QtMobility::QMediaService::staticMetaObject + ?loaded@QMediaPlaylistProvider@QtMobility@@IAEXXZ @ 613 NONAME ; void QtMobility::QMediaPlaylistProvider::loaded(void) + ?getStaticMetaObject@QMediaControl@QtMobility@@SAABUQMetaObject@@XZ @ 614 NONAME ; struct QMetaObject const & QtMobility::QMediaControl::getStaticMetaObject(void) + ?nativeSizeChanged@QVideoWindowControl@QtMobility@@IAEXXZ @ 615 NONAME ; void QtMobility::QVideoWindowControl::nativeSizeChanged(void) + ?supportedFrameRates@QMediaRecorder@QtMobility@@QBE?AV?$QList@M@@ABVQVideoEncoderSettings@2@PA_N@Z @ 616 NONAME ; class QList QtMobility::QMediaRecorder::supportedFrameRates(class QtMobility::QVideoEncoderSettings const &, bool *) const + ??ZQMediaTimeRange@QtMobility@@QAEAAV01@ABVQMediaTimeInterval@1@@Z @ 617 NONAME ; class QtMobility::QMediaTimeRange & QtMobility::QMediaTimeRange::operator-=(class QtMobility::QMediaTimeInterval const &) + ?tr@QMediaRecorderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 618 NONAME ; class QString QtMobility::QMediaRecorderControl::tr(char const *, char const *, int) + ?qt_metacast@QMediaRecorder@QtMobility@@UAEPAXPBD@Z @ 619 NONAME ; void * QtMobility::QMediaRecorder::qt_metacast(char const *) + ?stateChanged@QRadioTunerControl@QtMobility@@IAEXW4State@QRadioTuner@2@@Z @ 620 NONAME ; void QtMobility::QRadioTunerControl::stateChanged(enum QtMobility::QRadioTuner::State) + ?addMedia@QMediaPlaylistProvider@QtMobility@@UAE_NABVQMediaContent@2@@Z @ 621 NONAME ; bool QtMobility::QMediaPlaylistProvider::addMedia(class QtMobility::QMediaContent const &) + ??8QImageEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 622 NONAME ; bool QtMobility::QImageEncoderSettings::operator==(class QtMobility::QImageEncoderSettings const &) const + ??_EQMediaPlaylistControl@QtMobility@@UAE@I@Z @ 623 NONAME ; QtMobility::QMediaPlaylistControl::~QMediaPlaylistControl(unsigned int) + ??0QVideoWidget@QtMobility@@QAE@PAVQWidget@@@Z @ 624 NONAME ; QtMobility::QVideoWidget::QVideoWidget(class QWidget *) + ?resolution@QVideoEncoderSettings@QtMobility@@QBE?AVQSize@@XZ @ 625 NONAME ; class QSize QtMobility::QVideoEncoderSettings::resolution(void) const + ?metaObject@QGraphicsVideoItem@QtMobility@@UBEPBUQMetaObject@@XZ @ 626 NONAME ; struct QMetaObject const * QtMobility::QGraphicsVideoItem::metaObject(void) const + ?trUtf8@QMetaDataControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 627 NONAME ; class QString QtMobility::QMetaDataControl::trUtf8(char const *, char const *, int) + ?trUtf8@QMediaPlayer@QtMobility@@SA?AVQString@@PBD0H@Z @ 628 NONAME ; class QString QtMobility::QMediaPlayer::trUtf8(char const *, char const *, int) + ?qt_metacast@QVideoWindowControl@QtMobility@@UAEPAXPBD@Z @ 629 NONAME ; void * QtMobility::QVideoWindowControl::qt_metacast(char const *) + ?clear@QMediaPlaylist@QtMobility@@QAE_NXZ @ 630 NONAME ; bool QtMobility::QMediaPlaylist::clear(void) + ?setMediaObject@QMediaPlaylist@QtMobility@@QAEXPAVQMediaObject@2@@Z @ 631 NONAME ; void QtMobility::QMediaPlaylist::setMediaObject(class QtMobility::QMediaObject *) + ??0QMediaService@QtMobility@@IAE@AAVQMediaServicePrivate@1@PAVQObject@@@Z @ 632 NONAME ; QtMobility::QMediaService::QMediaService(class QtMobility::QMediaServicePrivate &, class QObject *) + ?videoBitRate@QMediaResource@QtMobility@@QBEHXZ @ 633 NONAME ; int QtMobility::QMediaResource::videoBitRate(void) const + ?setChannelCount@QMediaResource@QtMobility@@QAEXH@Z @ 634 NONAME ; void QtMobility::QMediaResource::setChannelCount(int) + ?d_func@QMediaPlaylist@QtMobility@@AAEPAVQMediaPlaylistPrivate@2@XZ @ 635 NONAME ; class QtMobility::QMediaPlaylistPrivate * QtMobility::QMediaPlaylist::d_func(void) + ?tr@QMediaPlaylist@QtMobility@@SA?AVQString@@PBD0@Z @ 636 NONAME ; class QString QtMobility::QMediaPlaylist::tr(char const *, char const *) + ?staticMetaObject@QVideoWidgetControl@QtMobility@@2UQMetaObject@@B @ 637 NONAME ; struct QMetaObject const QtMobility::QVideoWidgetControl::staticMetaObject + ?mediaStatusChanged@QMediaPlayer@QtMobility@@IAEXW4MediaStatus@12@@Z @ 638 NONAME ; void QtMobility::QMediaPlayer::mediaStatusChanged(enum QtMobility::QMediaPlayer::MediaStatus) + ?metaObject@QVideoOutputControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 639 NONAME ; struct QMetaObject const * QtMobility::QVideoOutputControl::metaObject(void) const + ?activeEndpointChanged@QAudioEndpointSelector@QtMobility@@IAEXABVQString@@@Z @ 640 NONAME ; void QtMobility::QAudioEndpointSelector::activeEndpointChanged(class QString const &) + ?qt_metacall@QAudioEndpointSelector@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 641 NONAME ; int QtMobility::QAudioEndpointSelector::qt_metacall(enum QMetaObject::Call, int, void * *) + ?tr@QGraphicsVideoItem@QtMobility@@SA?AVQString@@PBD0H@Z @ 642 NONAME ; class QString QtMobility::QGraphicsVideoItem::tr(char const *, char const *, int) + ?hideEvent@QVideoWidget@QtMobility@@MAEXPAVQHideEvent@@@Z @ 643 NONAME ; void QtMobility::QVideoWidget::hideEvent(class QHideEvent *) + ?insertMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NHABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 644 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::insertMedia(int, class QList const &) + ?qt_metacast@QVideoOutputControl@QtMobility@@UAEPAXPBD@Z @ 645 NONAME ; void * QtMobility::QVideoOutputControl::qt_metacast(char const *) + ?removeInterval@QMediaTimeRange@QtMobility@@QAEXABVQMediaTimeInterval@2@@Z @ 646 NONAME ; void QtMobility::QMediaTimeRange::removeInterval(class QtMobility::QMediaTimeInterval const &) + ?playbackMode@QMediaPlaylist@QtMobility@@QBE?AW4PlaybackMode@12@XZ @ 647 NONAME ; enum QtMobility::QMediaPlaylist::PlaybackMode QtMobility::QMediaPlaylist::playbackMode(void) const + ?addInterval@QMediaTimeRange@QtMobility@@QAEXABVQMediaTimeInterval@2@@Z @ 648 NONAME ; void QtMobility::QMediaTimeRange::addInterval(class QtMobility::QMediaTimeInterval const &) + ?metaObject@QMediaPlaylistControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 649 NONAME ; struct QMetaObject const * QtMobility::QMediaPlaylistControl::metaObject(void) const + ?audioAvailableChanged@QMediaPlayer@QtMobility@@IAEX_N@Z @ 650 NONAME ; void QtMobility::QMediaPlayer::audioAvailableChanged(bool) + ?staticMetaObject@QMediaPlaylistIOPlugin@QtMobility@@2UQMetaObject@@B @ 651 NONAME ; struct QMetaObject const QtMobility::QMediaPlaylistIOPlugin::staticMetaObject + ??1QMediaRecorderControl@QtMobility@@UAE@XZ @ 652 NONAME ; QtMobility::QMediaRecorderControl::~QMediaRecorderControl(void) + ?selectedDeviceChanged@QVideoDeviceControl@QtMobility@@IAEXABVQString@@@Z @ 653 NONAME ; void QtMobility::QVideoDeviceControl::selectedDeviceChanged(class QString const &) + ??1QAudioCaptureSource@QtMobility@@UAE@XZ @ 654 NONAME ; QtMobility::QAudioCaptureSource::~QAudioCaptureSource(void) + ?tr@QVideoWidgetControl@QtMobility@@SA?AVQString@@PBD0@Z @ 655 NONAME ; class QString QtMobility::QVideoWidgetControl::tr(char const *, char const *) + ?tr@QVideoEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 656 NONAME ; class QString QtMobility::QVideoEncoderControl::tr(char const *, char const *) + ?tr@QMediaPlaylistIOPlugin@QtMobility@@SA?AVQString@@PBD0@Z @ 657 NONAME ; class QString QtMobility::QMediaPlaylistIOPlugin::tr(char const *, char const *) + ??0QMediaTimeInterval@QtMobility@@QAE@_J0@Z @ 658 NONAME ; QtMobility::QMediaTimeInterval::QMediaTimeInterval(long long, long long) + ??_EQMediaControl@QtMobility@@UAE@I@Z @ 659 NONAME ; QtMobility::QMediaControl::~QMediaControl(unsigned int) + ?d_func@QMediaObject@QtMobility@@AAEPAVQMediaObjectPrivate@2@XZ @ 660 NONAME ; class QtMobility::QMediaObjectPrivate * QtMobility::QMediaObject::d_func(void) + ?staticMetaObject@QMediaStreamsControl@QtMobility@@2UQMetaObject@@B @ 661 NONAME ; struct QMetaObject const QtMobility::QMediaStreamsControl::staticMetaObject + ?hasSupport@QMediaServiceProvider@QtMobility@@UBE?AW4SupportEstimate@QtMedia@2@ABVQByteArray@@ABVQString@@ABVQStringList@@H@Z @ 662 NONAME ; enum QtMobility::QtMedia::SupportEstimate QtMobility::QMediaServiceProvider::hasSupport(class QByteArray const &, class QString const &, class QStringList const &, int) const + ?getStaticMetaObject@QMediaStreamsControl@QtMobility@@SAABUQMetaObject@@XZ @ 663 NONAME ; struct QMetaObject const & QtMobility::QMediaStreamsControl::getStaticMetaObject(void) + ?setSampleRate@QMediaResource@QtMobility@@QAEXH@Z @ 664 NONAME ; void QtMobility::QMediaResource::setSampleRate(int) + ?qt_metacast@QMediaPlaylist@QtMobility@@UAEPAXPBD@Z @ 665 NONAME ; void * QtMobility::QMediaPlaylist::qt_metacast(char const *) + ?aspectRatioMode@QGraphicsVideoItem@QtMobility@@QBE?AW4AspectRatioMode@Qt@@XZ @ 666 NONAME ; enum Qt::AspectRatioMode QtMobility::QGraphicsVideoItem::aspectRatioMode(void) const + ?tr@QMediaPlayerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 667 NONAME ; class QString QtMobility::QMediaPlayerControl::tr(char const *, char const *) + ?band@QRadioTuner@QtMobility@@QBE?AW4Band@12@XZ @ 668 NONAME ; enum QtMobility::QRadioTuner::Band QtMobility::QRadioTuner::band(void) const + ?load@QMediaPlaylistProvider@QtMobility@@UAE_NABVQUrl@@PBD@Z @ 669 NONAME ; bool QtMobility::QMediaPlaylistProvider::load(class QUrl const &, char const *) + ?metaObject@QMediaControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 670 NONAME ; struct QMetaObject const * QtMobility::QMediaControl::metaObject(void) const + ?trUtf8@QAudioEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 671 NONAME ; class QString QtMobility::QAudioEncoderControl::trUtf8(char const *, char const *) + ??1QVideoWidget@QtMobility@@UAE@XZ @ 672 NONAME ; QtMobility::QVideoWidget::~QVideoWidget(void) + ?cancelSearch@QRadioTuner@QtMobility@@QAEXXZ @ 673 NONAME ; void QtMobility::QRadioTuner::cancelSearch(void) + ?qt_metacall@QRadioTunerControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 674 NONAME ; int QtMobility::QRadioTunerControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ??_EQGraphicsVideoItem@QtMobility@@UAE@I@Z @ 675 NONAME ; QtMobility::QGraphicsVideoItem::~QGraphicsVideoItem(unsigned int) + ?isReadOnly@QMediaPlaylistProvider@QtMobility@@UBE_NXZ @ 676 NONAME ; bool QtMobility::QMediaPlaylistProvider::isReadOnly(void) const + ?isNull@QVideoEncoderSettings@QtMobility@@QBE_NXZ @ 677 NONAME ; bool QtMobility::QVideoEncoderSettings::isNull(void) const + ?d_func@QMediaPlaylistProvider@QtMobility@@AAEPAVQMediaPlaylistProviderPrivate@2@XZ @ 678 NONAME ; class QtMobility::QMediaPlaylistProviderPrivate * QtMobility::QMediaPlaylistProvider::d_func(void) + ?frequencyRange@QRadioTuner@QtMobility@@QBE?AU?$QPair@HH@@W4Band@12@@Z @ 679 NONAME ; struct QPair QtMobility::QRadioTuner::frequencyRange(enum QtMobility::QRadioTuner::Band) const + ?setCodec@QVideoEncoderSettings@QtMobility@@QAEXABVQString@@@Z @ 680 NONAME ; void QtMobility::QVideoEncoderSettings::setCodec(class QString const &) + ?qt_metacall@QGraphicsVideoItem@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 681 NONAME ; int QtMobility::QGraphicsVideoItem::qt_metacall(enum QMetaObject::Call, int, void * *) + ?trUtf8@QVideoOutputControl@QtMobility@@SA?AVQString@@PBD0@Z @ 682 NONAME ; class QString QtMobility::QVideoOutputControl::trUtf8(char const *, char const *) + ?availabilityError@QAudioCaptureSource@QtMobility@@UBE?AW4AvailabilityError@QtMedia@2@XZ @ 683 NONAME ; enum QtMobility::QtMedia::AvailabilityError QtMobility::QAudioCaptureSource::availabilityError(void) const + ?trUtf8@QRadioTuner@QtMobility@@SA?AVQString@@PBD0@Z @ 684 NONAME ; class QString QtMobility::QRadioTuner::trUtf8(char const *, char const *) + ?trUtf8@QMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0@Z @ 685 NONAME ; class QString QtMobility::QMediaPlaylistProvider::trUtf8(char const *, char const *) + ?service@QMediaObject@QtMobility@@UBEPAVQMediaService@2@XZ @ 686 NONAME ; class QtMobility::QMediaService * QtMobility::QMediaObject::service(void) const + ??1QVideoEncoderControl@QtMobility@@UAE@XZ @ 687 NONAME ; QtMobility::QVideoEncoderControl::~QVideoEncoderControl(void) + ?codec@QAudioEncoderSettings@QtMobility@@QBE?AVQString@@XZ @ 688 NONAME ; class QString QtMobility::QAudioEncoderSettings::codec(void) const + ?getStaticMetaObject@QLocalMediaPlaylistProvider@QtMobility@@SAABUQMetaObject@@XZ @ 689 NONAME ; struct QMetaObject const & QtMobility::QLocalMediaPlaylistProvider::getStaticMetaObject(void) + ?availableMetaData@QMediaObject@QtMobility@@QBE?AV?$QList@W4MetaData@QtMedia@QtMobility@@@@XZ @ 690 NONAME ; class QList QtMobility::QMediaObject::availableMetaData(void) const + ?insertMedia@QMediaPlaylist@QtMobility@@QAE_NHABVQMediaContent@2@@Z @ 691 NONAME ; bool QtMobility::QMediaPlaylist::insertMedia(int, class QtMobility::QMediaContent const &) + ?tr@QMediaRecorderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 692 NONAME ; class QString QtMobility::QMediaRecorderControl::tr(char const *, char const *) + ?getStaticMetaObject@QAudioEndpointSelector@QtMobility@@SAABUQMetaObject@@XZ @ 693 NONAME ; struct QMetaObject const & QtMobility::QAudioEndpointSelector::getStaticMetaObject(void) + ?getStaticMetaObject@QMediaRecorderControl@QtMobility@@SAABUQMetaObject@@XZ @ 694 NONAME ; struct QMetaObject const & QtMobility::QMediaRecorderControl::getStaticMetaObject(void) + ?staticMetaObject@QMediaPlayer@QtMobility@@2UQMetaObject@@B @ 695 NONAME ; struct QMetaObject const QtMobility::QMediaPlayer::staticMetaObject + ?trUtf8@QMediaServiceProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 696 NONAME ; class QString QtMobility::QMediaServiceProvider::trUtf8(char const *, char const *, int) + ?removeMedia@QLocalMediaPlaylistProvider@QtMobility@@UAE_NHH@Z @ 697 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::removeMedia(int, int) + ?qt_metacast@QVideoEncoderControl@QtMobility@@UAEPAXPBD@Z @ 698 NONAME ; void * QtMobility::QVideoEncoderControl::qt_metacast(char const *) + ?tr@QRadioTunerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 699 NONAME ; class QString QtMobility::QRadioTunerControl::tr(char const *, char const *) + ??9QtMobility@@YA_NABVQMediaTimeInterval@0@0@Z @ 700 NONAME ; bool QtMobility::operator!=(class QtMobility::QMediaTimeInterval const &, class QtMobility::QMediaTimeInterval const &) + ?isContinuous@QMediaTimeRange@QtMobility@@QBE_NXZ @ 701 NONAME ; bool QtMobility::QMediaTimeRange::isContinuous(void) const + ?resizeEvent@QVideoWidget@QtMobility@@MAEXPAVQResizeEvent@@@Z @ 702 NONAME ; void QtMobility::QVideoWidget::resizeEvent(class QResizeEvent *) + ?isNull@QAudioEncoderSettings@QtMobility@@QBE_NXZ @ 703 NONAME ; bool QtMobility::QAudioEncoderSettings::isNull(void) const + ?setVideoCodec@QMediaResource@QtMobility@@QAEXABVQString@@@Z @ 704 NONAME ; void QtMobility::QMediaResource::setVideoCodec(class QString const &) + ?getStaticMetaObject@QVideoDeviceControl@QtMobility@@SAABUQMetaObject@@XZ @ 705 NONAME ; struct QMetaObject const & QtMobility::QVideoDeviceControl::getStaticMetaObject(void) + ?staticMetaObject@QMediaObject@QtMobility@@2UQMetaObject@@B @ 706 NONAME ; struct QMetaObject const QtMobility::QMediaObject::staticMetaObject + ?hueChanged@QVideoWidget@QtMobility@@IAEXH@Z @ 707 NONAME ; void QtMobility::QVideoWidget::hueChanged(int) + ?quality@QAudioEncoderSettings@QtMobility@@QBE?AW4EncodingQuality@QtMedia@2@XZ @ 708 NONAME ; enum QtMobility::QtMedia::EncodingQuality QtMobility::QAudioEncoderSettings::quality(void) const + ?trUtf8@QVideoWidget@QtMobility@@SA?AVQString@@PBD0H@Z @ 709 NONAME ; class QString QtMobility::QVideoWidget::trUtf8(char const *, char const *, int) + ?start@QMediaTimeInterval@QtMobility@@QBE_JXZ @ 710 NONAME ; long long QtMobility::QMediaTimeInterval::start(void) const + ?setSaturation@QVideoWidget@QtMobility@@QAEXH@Z @ 711 NONAME ; void QtMobility::QVideoWidget::setSaturation(int) + ?d_func@QMediaPlayer@QtMobility@@ABEPBVQMediaPlayerPrivate@2@XZ @ 712 NONAME ; class QtMobility::QMediaPlayerPrivate const * QtMobility::QMediaPlayer::d_func(void) const + ?url@QMediaResource@QtMobility@@QBE?AVQUrl@@XZ @ 713 NONAME ; class QUrl QtMobility::QMediaResource::url(void) const + ?getStaticMetaObject@QAudioCaptureSource@QtMobility@@SAABUQMetaObject@@XZ @ 714 NONAME ; struct QMetaObject const & QtMobility::QAudioCaptureSource::getStaticMetaObject(void) + ?metaObject@QVideoWindowControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 715 NONAME ; struct QMetaObject const * QtMobility::QVideoWindowControl::metaObject(void) const + ?staticMetaObject@QVideoEncoderControl@QtMobility@@2UQMetaObject@@B @ 716 NONAME ; struct QMetaObject const QtMobility::QVideoEncoderControl::staticMetaObject + ?trUtf8@QVideoDeviceControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 717 NONAME ; class QString QtMobility::QVideoDeviceControl::trUtf8(char const *, char const *, int) + ?removeTimeRange@QMediaTimeRange@QtMobility@@QAEXABV12@@Z @ 718 NONAME ; void QtMobility::QMediaTimeRange::removeTimeRange(class QtMobility::QMediaTimeRange const &) + ?bandChanged@QRadioTuner@QtMobility@@IAEXW4Band@12@@Z @ 719 NONAME ; void QtMobility::QRadioTuner::bandChanged(enum QtMobility::QRadioTuner::Band) + ?activeAudioInput@QAudioCaptureSource@QtMobility@@QBE?AVQString@@XZ @ 720 NONAME ; class QString QtMobility::QAudioCaptureSource::activeAudioInput(void) const + ?currentMediaChanged@QMediaPlaylist@QtMobility@@IAEXABVQMediaContent@2@@Z @ 721 NONAME ; void QtMobility::QMediaPlaylist::currentMediaChanged(class QtMobility::QMediaContent const &) + ?setFrameRate@QVideoEncoderSettings@QtMobility@@QAEXM@Z @ 722 NONAME ; void QtMobility::QVideoEncoderSettings::setFrameRate(float) + ?trUtf8@QImageEncoderControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 723 NONAME ; class QString QtMobility::QImageEncoderControl::trUtf8(char const *, char const *, int) + ?error@QMediaPlayerControl@QtMobility@@IAEXHABVQString@@@Z @ 724 NONAME ; void QtMobility::QMediaPlayerControl::error(int, class QString const &) + ?next@QMediaPlaylist@QtMobility@@QAEXXZ @ 725 NONAME ; void QtMobility::QMediaPlaylist::next(void) + ??1QMediaServiceProviderHint@QtMobility@@QAE@XZ @ 726 NONAME ; QtMobility::QMediaServiceProviderHint::~QMediaServiceProviderHint(void) + ?qt_metacall@QMediaStreamsControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 727 NONAME ; int QtMobility::QMediaStreamsControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ??0QMediaControl@QtMobility@@IAE@AAVQMediaControlPrivate@1@PAVQObject@@@Z @ 728 NONAME ; QtMobility::QMediaControl::QMediaControl(class QtMobility::QMediaControlPrivate &, class QObject *) + ?mediaAboutToBeRemoved@QMediaPlaylistProvider@QtMobility@@IAEXHH@Z @ 729 NONAME ; void QtMobility::QMediaPlaylistProvider::mediaAboutToBeRemoved(int, int) + ?trUtf8@QAudioEndpointSelector@QtMobility@@SA?AVQString@@PBD0H@Z @ 730 NONAME ; class QString QtMobility::QAudioEndpointSelector::trUtf8(char const *, char const *, int) + ?state@QMediaImageViewer@QtMobility@@QBE?AW4State@12@XZ @ 731 NONAME ; enum QtMobility::QMediaImageViewer::State QtMobility::QMediaImageViewer::state(void) const + ?setDataSize@QMediaResource@QtMobility@@QAEX_J@Z @ 732 NONAME ; void QtMobility::QMediaResource::setDataSize(long long) + ?qt_metacast@QLocalMediaPlaylistProvider@QtMobility@@UAEPAXPBD@Z @ 733 NONAME ; void * QtMobility::QLocalMediaPlaylistProvider::qt_metacast(char const *) + ?contains@QMediaTimeRange@QtMobility@@QBE_N_J@Z @ 734 NONAME ; bool QtMobility::QMediaTimeRange::contains(long long) const + ??0QMediaTimeInterval@QtMobility@@QAE@XZ @ 735 NONAME ; QtMobility::QMediaTimeInterval::QMediaTimeInterval(void) + ?offset@QGraphicsVideoItem@QtMobility@@QBE?AVQPointF@@XZ @ 736 NONAME ; class QPointF QtMobility::QGraphicsVideoItem::offset(void) const + ?trUtf8@QMediaPlaylistIOPlugin@QtMobility@@SA?AVQString@@PBD0H@Z @ 737 NONAME ; class QString QtMobility::QMediaPlaylistIOPlugin::trUtf8(char const *, char const *, int) + ?codec@QVideoEncoderSettings@QtMobility@@QBE?AVQString@@XZ @ 738 NONAME ; class QString QtMobility::QVideoEncoderSettings::codec(void) const + ?bufferStatus@QMediaPlayer@QtMobility@@QBEHXZ @ 739 NONAME ; int QtMobility::QMediaPlayer::bufferStatus(void) const + ?setVolume@QRadioTuner@QtMobility@@QAEXH@Z @ 740 NONAME ; void QtMobility::QRadioTuner::setVolume(int) + ?currentIndexChanged@QMediaPlaylist@QtMobility@@IAEXH@Z @ 741 NONAME ; void QtMobility::QMediaPlaylist::currentIndexChanged(int) + ?qt_metacast@QMediaControl@QtMobility@@UAEPAXPBD@Z @ 742 NONAME ; void * QtMobility::QMediaControl::qt_metacast(char const *) + ??1QAudioEncoderSettings@QtMobility@@QAE@XZ @ 743 NONAME ; QtMobility::QAudioEncoderSettings::~QAudioEncoderSettings(void) + ??0QMediaServiceProviderHint@QtMobility@@QAE@XZ @ 744 NONAME ; QtMobility::QMediaServiceProviderHint::QMediaServiceProviderHint(void) + ?tr@QMediaContainerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 745 NONAME ; class QString QtMobility::QMediaContainerControl::tr(char const *, char const *) + ?qt_metacast@QRadioTuner@QtMobility@@UAEPAXPBD@Z @ 746 NONAME ; void * QtMobility::QRadioTuner::qt_metacast(char const *) + ?request@QMediaResource@QtMobility@@QBE?AVQNetworkRequest@@XZ @ 747 NONAME ; class QNetworkRequest QtMobility::QMediaResource::request(void) const + ?qt_metacall@QMediaImageViewer@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 748 NONAME ; int QtMobility::QMediaImageViewer::qt_metacall(enum QMetaObject::Call, int, void * *) + ?getStaticMetaObject@QMediaPlaylistIOPlugin@QtMobility@@SAABUQMetaObject@@XZ @ 749 NONAME ; struct QMetaObject const & QtMobility::QMediaPlaylistIOPlugin::getStaticMetaObject(void) + ??1QMediaPlaylist@QtMobility@@UAE@XZ @ 750 NONAME ; QtMobility::QMediaPlaylist::~QMediaPlaylist(void) + ?trUtf8@QLocalMediaPlaylistProvider@QtMobility@@SA?AVQString@@PBD0H@Z @ 751 NONAME ; class QString QtMobility::QLocalMediaPlaylistProvider::trUtf8(char const *, char const *, int) + ?saturationChanged@QVideoWidget@QtMobility@@IAEXH@Z @ 752 NONAME ; void QtMobility::QVideoWidget::saturationChanged(int) + ?size@QGraphicsVideoItem@QtMobility@@QBE?AVQSizeF@@XZ @ 753 NONAME ; class QSizeF QtMobility::QGraphicsVideoItem::size(void) const + ??0QGraphicsVideoItem@QtMobility@@QAE@PAVQGraphicsItem@@@Z @ 754 NONAME ; QtMobility::QGraphicsVideoItem::QGraphicsVideoItem(class QGraphicsItem *) + ?tr@QMediaImageViewer@QtMobility@@SA?AVQString@@PBD0@Z @ 755 NONAME ; class QString QtMobility::QMediaImageViewer::tr(char const *, char const *) + ??1QMediaServiceSupportedDevicesInterface@QtMobility@@UAE@XZ @ 756 NONAME ; QtMobility::QMediaServiceSupportedDevicesInterface::~QMediaServiceSupportedDevicesInterface(void) + ?stereoStatusChanged@QRadioTunerControl@QtMobility@@IAEX_N@Z @ 757 NONAME ; void QtMobility::QRadioTunerControl::stereoStatusChanged(bool) + ?setResolution@QMediaResource@QtMobility@@QAEXHH@Z @ 758 NONAME ; void QtMobility::QMediaResource::setResolution(int, int) + ?tr@QMediaStreamsControl@QtMobility@@SA?AVQString@@PBD0@Z @ 759 NONAME ; class QString QtMobility::QMediaStreamsControl::tr(char const *, char const *) + ?supportedMimeTypes@QMediaServiceProvider@QtMobility@@UBE?AVQStringList@@ABVQByteArray@@H@Z @ 760 NONAME ; class QStringList QtMobility::QMediaServiceProvider::supportedMimeTypes(class QByteArray const &, int) const + ?setPosition@QMediaPlayer@QtMobility@@QAEX_J@Z @ 761 NONAME ; void QtMobility::QMediaPlayer::setPosition(long long) + ?encodingMode@QVideoEncoderSettings@QtMobility@@QBE?AW4EncodingMode@QtMedia@2@XZ @ 762 NONAME ; enum QtMobility::QtMedia::EncodingMode QtMobility::QVideoEncoderSettings::encodingMode(void) const + ?tr@QMediaService@QtMobility@@SA?AVQString@@PBD0@Z @ 763 NONAME ; class QString QtMobility::QMediaService::tr(char const *, char const *) + ?shuffle@QMediaPlaylistProvider@QtMobility@@UAEXXZ @ 764 NONAME ; void QtMobility::QMediaPlaylistProvider::shuffle(void) + ?setPlaylist@QMediaPlaylistNavigator@QtMobility@@QAEXPAVQMediaPlaylistProvider@2@@Z @ 765 NONAME ; void QtMobility::QMediaPlaylistNavigator::setPlaylist(class QtMobility::QMediaPlaylistProvider *) + ?tr@QMediaServiceProviderPlugin@QtMobility@@SA?AVQString@@PBD0H@Z @ 766 NONAME ; class QString QtMobility::QMediaServiceProviderPlugin::tr(char const *, char const *, int) + ?metaObject@QMediaPlayerControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 767 NONAME ; struct QMetaObject const * QtMobility::QMediaPlayerControl::metaObject(void) const + ?searchForward@QRadioTuner@QtMobility@@QAEXXZ @ 768 NONAME ; void QtMobility::QRadioTuner::searchForward(void) + ?fullScreenChanged@QVideoWidget@QtMobility@@IAEX_N@Z @ 769 NONAME ; void QtMobility::QVideoWidget::fullScreenChanged(bool) + ?qt_metacall@QMediaRecorderControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 770 NONAME ; int QtMobility::QMediaRecorderControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ?playbackMode@QMediaPlaylistNavigator@QtMobility@@QBE?AW4PlaybackMode@QMediaPlaylist@2@XZ @ 771 NONAME ; enum QtMobility::QMediaPlaylist::PlaybackMode QtMobility::QMediaPlaylistNavigator::playbackMode(void) const + ?trUtf8@QMediaStreamsControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 772 NONAME ; class QString QtMobility::QMediaStreamsControl::trUtf8(char const *, char const *, int) + ?qt_metacall@QVideoOutputControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 773 NONAME ; int QtMobility::QVideoOutputControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ??8QMediaResource@QtMobility@@QBE_NABV01@@Z @ 774 NONAME ; bool QtMobility::QMediaResource::operator==(class QtMobility::QMediaResource const &) const + ?d_func@QVideoWidget@QtMobility@@ABEPBVQVideoWidgetPrivate@2@XZ @ 775 NONAME ; class QtMobility::QVideoWidgetPrivate const * QtMobility::QVideoWidget::d_func(void) const + ?tr@QVideoRendererControl@QtMobility@@SA?AVQString@@PBD0@Z @ 776 NONAME ; class QString QtMobility::QVideoRendererControl::tr(char const *, char const *) + ?contrastChanged@QVideoWidgetControl@QtMobility@@IAEXH@Z @ 777 NONAME ; void QtMobility::QVideoWidgetControl::contrastChanged(int) + ??_EQMediaServiceSupportedFormatsInterface@QtMobility@@UAE@I@Z @ 778 NONAME ; QtMobility::QMediaServiceSupportedFormatsInterface::~QMediaServiceSupportedFormatsInterface(unsigned int) + ?getStaticMetaObject@QVideoRendererControl@QtMobility@@SAABUQMetaObject@@XZ @ 779 NONAME ; struct QMetaObject const & QtMobility::QVideoRendererControl::getStaticMetaObject(void) + ?qt_metacast@QAudioCaptureSource@QtMobility@@UAEPAXPBD@Z @ 780 NONAME ; void * QtMobility::QAudioCaptureSource::qt_metacast(char const *) + ?durationChanged@QMediaRecorder@QtMobility@@IAEX_J@Z @ 781 NONAME ; void QtMobility::QMediaRecorder::durationChanged(long long) + ?trUtf8@QGraphicsVideoItem@QtMobility@@SA?AVQString@@PBD0@Z @ 782 NONAME ; class QString QtMobility::QGraphicsVideoItem::trUtf8(char const *, char const *) + ?error@QRadioTunerControl@QtMobility@@IAEXW4Error@QRadioTuner@2@@Z @ 783 NONAME ; void QtMobility::QRadioTunerControl::error(enum QtMobility::QRadioTuner::Error) + ?qt_metacast@QRadioTunerControl@QtMobility@@UAEPAXPBD@Z @ 784 NONAME ; void * QtMobility::QRadioTunerControl::qt_metacast(char const *) + ?availableOutputsChanged@QVideoOutputControl@QtMobility@@IAEXABV?$QList@W4Output@QVideoOutputControl@QtMobility@@@@@Z @ 785 NONAME ; void QtMobility::QVideoOutputControl::availableOutputsChanged(class QList const &) + ?setBrightness@QVideoWidget@QtMobility@@QAEXH@Z @ 786 NONAME ; void QtMobility::QVideoWidget::setBrightness(int) + ??0QMediaContent@QtMobility@@QAE@ABV?$QList@VQMediaResource@QtMobility@@@@@Z @ 787 NONAME ; QtMobility::QMediaContent::QMediaContent(class QList const &) + ?mediaChanged@QMediaPlaylistProvider@QtMobility@@IAEXHH@Z @ 788 NONAME ; void QtMobility::QMediaPlaylistProvider::mediaChanged(int, int) + ?d_func@QMediaRecorder@QtMobility@@ABEPBVQMediaRecorderPrivate@2@XZ @ 789 NONAME ; class QtMobility::QMediaRecorderPrivate const * QtMobility::QMediaRecorder::d_func(void) const + ?stop@QMediaRecorder@QtMobility@@QAEXXZ @ 790 NONAME ; void QtMobility::QMediaRecorder::stop(void) + ?staticMetaObject@QAudioEndpointSelector@QtMobility@@2UQMetaObject@@B @ 791 NONAME ; struct QMetaObject const QtMobility::QAudioEndpointSelector::staticMetaObject + ?encodingMode@QAudioEncoderSettings@QtMobility@@QBE?AW4EncodingMode@QtMedia@2@XZ @ 792 NONAME ; enum QtMobility::QtMedia::EncodingMode QtMobility::QAudioEncoderSettings::encodingMode(void) const + ?tr@QMediaPlaylist@QtMobility@@SA?AVQString@@PBD0H@Z @ 793 NONAME ; class QString QtMobility::QMediaPlaylist::tr(char const *, char const *, int) + ?staticMetaObject@QVideoWindowControl@QtMobility@@2UQMetaObject@@B @ 794 NONAME ; struct QMetaObject const QtMobility::QVideoWindowControl::staticMetaObject + ?error@QMediaRecorderControl@QtMobility@@IAEXHABVQString@@@Z @ 795 NONAME ; void QtMobility::QMediaRecorderControl::error(int, class QString const &) + ?volume@QRadioTuner@QtMobility@@QBEHXZ @ 796 NONAME ; int QtMobility::QRadioTuner::volume(void) const + ?stateChanged@QMediaRecorder@QtMobility@@IAEXW4State@12@@Z @ 797 NONAME ; void QtMobility::QMediaRecorder::stateChanged(enum QtMobility::QMediaRecorder::State) + ?mediaChanged@QMediaPlaylist@QtMobility@@IAEXHH@Z @ 798 NONAME ; void QtMobility::QMediaPlaylist::mediaChanged(int, int) + ?trUtf8@QGraphicsVideoItem@QtMobility@@SA?AVQString@@PBD0H@Z @ 799 NONAME ; class QString QtMobility::QGraphicsVideoItem::trUtf8(char const *, char const *, int) + ?isAvailable@QMediaRecorder@QtMobility@@UBE_NXZ @ 800 NONAME ; bool QtMobility::QMediaRecorder::isAvailable(void) const + ??9QVideoEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 801 NONAME ; bool QtMobility::QVideoEncoderSettings::operator!=(class QtMobility::QVideoEncoderSettings const &) const + ??0QMediaContent@QtMobility@@QAE@ABV01@@Z @ 802 NONAME ; QtMobility::QMediaContent::QMediaContent(class QtMobility::QMediaContent const &) + ??0QVideoEncoderSettings@QtMobility@@QAE@ABV01@@Z @ 803 NONAME ; QtMobility::QVideoEncoderSettings::QVideoEncoderSettings(class QtMobility::QVideoEncoderSettings const &) + ?metaObject@QMetaDataControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 804 NONAME ; struct QMetaObject const * QtMobility::QMetaDataControl::metaObject(void) const + ?resolution@QImageEncoderSettings@QtMobility@@QBE?AVQSize@@XZ @ 805 NONAME ; class QSize QtMobility::QImageEncoderSettings::resolution(void) const + ?d_func@QMediaControl@QtMobility@@AAEPAVQMediaControlPrivate@2@XZ @ 806 NONAME ; class QtMobility::QMediaControlPrivate * QtMobility::QMediaControl::d_func(void) + ?mediaStatus@QMediaImageViewer@QtMobility@@QBE?AW4MediaStatus@12@XZ @ 807 NONAME ; enum QtMobility::QMediaImageViewer::MediaStatus QtMobility::QMediaImageViewer::mediaStatus(void) const + ??0QLocalMediaPlaylistProvider@QtMobility@@QAE@PAVQObject@@@Z @ 808 NONAME ; QtMobility::QLocalMediaPlaylistProvider::QLocalMediaPlaylistProvider(class QObject *) + ?metaObject@QRadioTuner@QtMobility@@UBEPBUQMetaObject@@XZ @ 809 NONAME ; struct QMetaObject const * QtMobility::QRadioTuner::metaObject(void) const + ?unbind@QMediaObject@QtMobility@@UAEXPAVQObject@@@Z @ 810 NONAME ; void QtMobility::QMediaObject::unbind(class QObject *) + ?bind@QMediaImageViewer@QtMobility@@UAEXPAVQObject@@@Z @ 811 NONAME ; void QtMobility::QMediaImageViewer::bind(class QObject *) + ?d_func@QMediaPlayer@QtMobility@@AAEPAVQMediaPlayerPrivate@2@XZ @ 812 NONAME ; class QtMobility::QMediaPlayerPrivate * QtMobility::QMediaPlayer::d_func(void) + ?metaObject@QVideoEncoderControl@QtMobility@@UBEPBUQMetaObject@@XZ @ 813 NONAME ; struct QMetaObject const * QtMobility::QVideoEncoderControl::metaObject(void) const + ?trUtf8@QVideoWidgetControl@QtMobility@@SA?AVQString@@PBD0@Z @ 814 NONAME ; class QString QtMobility::QVideoWidgetControl::trUtf8(char const *, char const *) + ?mediaAboutToBeInserted@QMediaPlaylist@QtMobility@@IAEXHH@Z @ 815 NONAME ; void QtMobility::QMediaPlaylist::mediaAboutToBeInserted(int, int) + ?isAvailable@QAudioCaptureSource@QtMobility@@UBE_NXZ @ 816 NONAME ; bool QtMobility::QAudioCaptureSource::isAvailable(void) const + ?dataSize@QMediaResource@QtMobility@@QBE_JXZ @ 817 NONAME ; long long QtMobility::QMediaResource::dataSize(void) const + ??_EQMediaServiceSupportedDevicesInterface@QtMobility@@UAE@I@Z @ 818 NONAME ; QtMobility::QMediaServiceSupportedDevicesInterface::~QMediaServiceSupportedDevicesInterface(unsigned int) + ?setMedia@QMediaImageViewer@QtMobility@@QAEXABVQMediaContent@2@@Z @ 819 NONAME ; void QtMobility::QMediaImageViewer::setMedia(class QtMobility::QMediaContent const &) + ??1QMediaPlayerControl@QtMobility@@UAE@XZ @ 820 NONAME ; QtMobility::QMediaPlayerControl::~QMediaPlayerControl(void) + ?error@QRadioTuner@QtMobility@@IAEXW4Error@12@@Z @ 821 NONAME ; void QtMobility::QRadioTuner::error(enum QtMobility::QRadioTuner::Error) + ??1QMediaObject@QtMobility@@UAE@XZ @ 822 NONAME ; QtMobility::QMediaObject::~QMediaObject(void) + ?trUtf8@QMediaPlayerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 823 NONAME ; class QString QtMobility::QMediaPlayerControl::trUtf8(char const *, char const *) + ?trUtf8@QMediaContainerControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 824 NONAME ; class QString QtMobility::QMediaContainerControl::trUtf8(char const *, char const *, int) + ??0QMediaObject@QtMobility@@IAE@AAVQMediaObjectPrivate@1@PAVQObject@@PAVQMediaService@1@@Z @ 825 NONAME ; QtMobility::QMediaObject::QMediaObject(class QtMobility::QMediaObjectPrivate &, class QObject *, class QtMobility::QMediaService *) + ??4QMediaServiceProviderHint@QtMobility@@QAEAAV01@ABV01@@Z @ 826 NONAME ; class QtMobility::QMediaServiceProviderHint & QtMobility::QMediaServiceProviderHint::operator=(class QtMobility::QMediaServiceProviderHint const &) + ??0QMediaContent@QtMobility@@QAE@ABVQUrl@@@Z @ 827 NONAME ; QtMobility::QMediaContent::QMediaContent(class QUrl const &) + ?removeMedia@QMediaPlaylist@QtMobility@@QAE_NHH@Z @ 828 NONAME ; bool QtMobility::QMediaPlaylist::removeMedia(int, int) + ?trUtf8@QVideoWidgetControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 829 NONAME ; class QString QtMobility::QVideoWidgetControl::trUtf8(char const *, char const *, int) + ?trUtf8@QVideoWidget@QtMobility@@SA?AVQString@@PBD0@Z @ 830 NONAME ; class QString QtMobility::QVideoWidget::trUtf8(char const *, char const *) + ?brightnessChanged@QVideoWindowControl@QtMobility@@IAEXH@Z @ 831 NONAME ; void QtMobility::QVideoWindowControl::brightnessChanged(int) + ?getStaticMetaObject@QMediaContainerControl@QtMobility@@SAABUQMetaObject@@XZ @ 832 NONAME ; struct QMetaObject const & QtMobility::QMediaContainerControl::getStaticMetaObject(void) + ?signalStrengthChanged@QRadioTuner@QtMobility@@IAEXH@Z @ 833 NONAME ; void QtMobility::QRadioTuner::signalStrengthChanged(int) + ?qt_metacall@QMediaPlaylistControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 834 NONAME ; int QtMobility::QMediaPlaylistControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ?errorString@QMediaRecorder@QtMobility@@QBE?AVQString@@XZ @ 835 NONAME ; class QString QtMobility::QMediaRecorder::errorString(void) const + ??0QMediaPlaylistControl@QtMobility@@IAE@PAVQObject@@@Z @ 836 NONAME ; QtMobility::QMediaPlaylistControl::QMediaPlaylistControl(class QObject *) + ?setAudioBitRate@QMediaResource@QtMobility@@QAEXH@Z @ 837 NONAME ; void QtMobility::QMediaResource::setAudioBitRate(int) + ??0QMediaResource@QtMobility@@QAE@ABV01@@Z @ 838 NONAME ; QtMobility::QMediaResource::QMediaResource(class QtMobility::QMediaResource const &) + ?metaObject@QMediaImageViewer@QtMobility@@UBEPBUQMetaObject@@XZ @ 839 NONAME ; struct QMetaObject const * QtMobility::QMediaImageViewer::metaObject(void) const + ??0QMediaContent@QtMobility@@QAE@ABVQNetworkRequest@@@Z @ 840 NONAME ; QtMobility::QMediaContent::QMediaContent(class QNetworkRequest const &) + ?staticMetaObject@QGraphicsVideoItem@QtMobility@@2UQMetaObject@@B @ 841 NONAME ; struct QMetaObject const QtMobility::QGraphicsVideoItem::staticMetaObject + ?clear@QMediaPlaylistProvider@QtMobility@@UAE_NXZ @ 842 NONAME ; bool QtMobility::QMediaPlaylistProvider::clear(void) + ?writableChanged@QMetaDataControl@QtMobility@@IAEX_N@Z @ 843 NONAME ; void QtMobility::QMetaDataControl::writableChanged(bool) + ?containerMimeType@QMediaRecorder@QtMobility@@QBE?AVQString@@XZ @ 844 NONAME ; class QString QtMobility::QMediaRecorder::containerMimeType(void) const + ?tr@QVideoOutputControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 845 NONAME ; class QString QtMobility::QVideoOutputControl::tr(char const *, char const *, int) + ??1QVideoEncoderSettings@QtMobility@@QAE@XZ @ 846 NONAME ; QtMobility::QVideoEncoderSettings::~QVideoEncoderSettings(void) + ?setAspectRatioMode@QVideoWidget@QtMobility@@QAEXW4AspectRatioMode@Qt@@@Z @ 847 NONAME ; void QtMobility::QVideoWidget::setAspectRatioMode(enum Qt::AspectRatioMode) + ?tr@QMediaPlaylistNavigator@QtMobility@@SA?AVQString@@PBD0H@Z @ 848 NONAME ; class QString QtMobility::QMediaPlaylistNavigator::tr(char const *, char const *, int) + ?currentIndexChanged@QMediaPlaylistNavigator@QtMobility@@IAEXH@Z @ 849 NONAME ; void QtMobility::QMediaPlaylistNavigator::currentIndexChanged(int) + ??0QMediaServiceProviderHint@QtMobility@@QAE@ABV01@@Z @ 850 NONAME ; QtMobility::QMediaServiceProviderHint::QMediaServiceProviderHint(class QtMobility::QMediaServiceProviderHint const &) + ??_EQMediaServiceFeaturesInterface@QtMobility@@UAE@I@Z @ 851 NONAME ; QtMobility::QMediaServiceFeaturesInterface::~QMediaServiceFeaturesInterface(unsigned int) + ?metaObject@QMediaPlaylistProvider@QtMobility@@UBEPBUQMetaObject@@XZ @ 852 NONAME ; struct QMetaObject const * QtMobility::QMediaPlaylistProvider::metaObject(void) const + ?trUtf8@QMetaDataControl@QtMobility@@SA?AVQString@@PBD0@Z @ 853 NONAME ; class QString QtMobility::QMetaDataControl::trUtf8(char const *, char const *) + ?supportedContainers@QMediaRecorder@QtMobility@@QBE?AVQStringList@@XZ @ 854 NONAME ; class QStringList QtMobility::QMediaRecorder::supportedContainers(void) const + ?device@QMediaServiceProviderHint@QtMobility@@QBE?AVQByteArray@@XZ @ 855 NONAME ; class QByteArray QtMobility::QMediaServiceProviderHint::device(void) const + ?clear@QLocalMediaPlaylistProvider@QtMobility@@UAE_NXZ @ 856 NONAME ; bool QtMobility::QLocalMediaPlaylistProvider::clear(void) + ?elapsedTime@QMediaImageViewer@QtMobility@@QBEHXZ @ 857 NONAME ; int QtMobility::QMediaImageViewer::elapsedTime(void) const + ?trUtf8@QImageEncoderControl@QtMobility@@SA?AVQString@@PBD0@Z @ 858 NONAME ; class QString QtMobility::QImageEncoderControl::trUtf8(char const *, char const *) + ?searchingChanged@QRadioTunerControl@QtMobility@@IAEX_N@Z @ 859 NONAME ; void QtMobility::QRadioTunerControl::searchingChanged(bool) + ?staticMetaObject@QMediaControl@QtMobility@@2UQMetaObject@@B @ 860 NONAME ; struct QMetaObject const QtMobility::QMediaControl::staticMetaObject + ?availableEndpointsChanged@QAudioEndpointSelector@QtMobility@@IAEXXZ @ 861 NONAME ; void QtMobility::QAudioEndpointSelector::availableEndpointsChanged(void) + ??0QAudioCaptureSource@QtMobility@@QAE@PAVQObject@@PAVQMediaServiceProvider@1@@Z @ 862 NONAME ; QtMobility::QAudioCaptureSource::QAudioCaptureSource(class QObject *, class QtMobility::QMediaServiceProvider *) + ?quality@QVideoEncoderSettings@QtMobility@@QBE?AW4EncodingQuality@QtMedia@2@XZ @ 863 NONAME ; enum QtMobility::QtMedia::EncodingQuality QtMobility::QVideoEncoderSettings::quality(void) const + ??1QMediaServiceSupportedFormatsInterface@QtMobility@@UAE@XZ @ 864 NONAME ; QtMobility::QMediaServiceSupportedFormatsInterface::~QMediaServiceSupportedFormatsInterface(void) + ??9QMediaContent@QtMobility@@QBE_NABV01@@Z @ 865 NONAME ; bool QtMobility::QMediaContent::operator!=(class QtMobility::QMediaContent const &) const + ?d_func@QVideoWidget@QtMobility@@AAEPAVQVideoWidgetPrivate@2@XZ @ 866 NONAME ; class QtMobility::QVideoWidgetPrivate * QtMobility::QVideoWidget::d_func(void) + ?d_func@QAudioCaptureSource@QtMobility@@AAEPAVQAudioCaptureSourcePrivate@2@XZ @ 867 NONAME ; class QtMobility::QAudioCaptureSourcePrivate * QtMobility::QAudioCaptureSource::d_func(void) + ??_EQVideoRendererControl@QtMobility@@UAE@I@Z @ 868 NONAME ; QtMobility::QVideoRendererControl::~QVideoRendererControl(unsigned int) + ??0QMediaPlayerControl@QtMobility@@IAE@PAVQObject@@@Z @ 869 NONAME ; QtMobility::QMediaPlayerControl::QMediaPlayerControl(class QObject *) + ??0QMediaContainerControl@QtMobility@@IAE@PAVQObject@@@Z @ 870 NONAME ; QtMobility::QMediaContainerControl::QMediaContainerControl(class QObject *) + ?isSeekable@QMediaPlayer@QtMobility@@QBE_NXZ @ 871 NONAME ; bool QtMobility::QMediaPlayer::isSeekable(void) const + ?setAspectRatioMode@QGraphicsVideoItem@QtMobility@@QAEXW4AspectRatioMode@Qt@@@Z @ 872 NONAME ; void QtMobility::QGraphicsVideoItem::setAspectRatioMode(enum Qt::AspectRatioMode) + ?channelCount@QAudioEncoderSettings@QtMobility@@QBEHXZ @ 873 NONAME ; int QtMobility::QAudioEncoderSettings::channelCount(void) const + ?isNormal@QMediaTimeInterval@QtMobility@@QBE_NXZ @ 874 NONAME ; bool QtMobility::QMediaTimeInterval::isNormal(void) const + ?signalStrengthChanged@QRadioTunerControl@QtMobility@@IAEXH@Z @ 875 NONAME ; void QtMobility::QRadioTunerControl::signalStrengthChanged(int) + ?trUtf8@QRadioTunerControl@QtMobility@@SA?AVQString@@PBD0@Z @ 876 NONAME ; class QString QtMobility::QRadioTunerControl::trUtf8(char const *, char const *) + ?tr@QVideoDeviceControl@QtMobility@@SA?AVQString@@PBD0@Z @ 877 NONAME ; class QString QtMobility::QVideoDeviceControl::tr(char const *, char const *) + ?insertMedia@QMediaPlaylistProvider@QtMobility@@UAE_NHABV?$QList@VQMediaContent@QtMobility@@@@@Z @ 878 NONAME ; bool QtMobility::QMediaPlaylistProvider::insertMedia(int, class QList const &) + ??1QVideoOutputControl@QtMobility@@UAE@XZ @ 879 NONAME ; QtMobility::QVideoOutputControl::~QVideoOutputControl(void) + ?supportedVideoCodecs@QMediaRecorder@QtMobility@@QBE?AVQStringList@@XZ @ 880 NONAME ; class QStringList QtMobility::QMediaRecorder::supportedVideoCodecs(void) const + ?tr@QAudioCaptureSource@QtMobility@@SA?AVQString@@PBD0@Z @ 881 NONAME ; class QString QtMobility::QAudioCaptureSource::tr(char const *, char const *) + ?jump@QMediaPlaylistNavigator@QtMobility@@QAEXH@Z @ 882 NONAME ; void QtMobility::QMediaPlaylistNavigator::jump(int) + ?translated@QMediaTimeInterval@QtMobility@@QBE?AV12@_J@Z @ 883 NONAME ; class QtMobility::QMediaTimeInterval QtMobility::QMediaTimeInterval::translated(long long) const + ?qt_metacall@QMetaDataControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 884 NONAME ; int QtMobility::QMetaDataControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ?staticMetaObject@QVideoWidget@QtMobility@@2UQMetaObject@@B @ 885 NONAME ; struct QMetaObject const QtMobility::QVideoWidget::staticMetaObject + ?staticMetaObject@QImageEncoderControl@QtMobility@@2UQMetaObject@@B @ 886 NONAME ; struct QMetaObject const QtMobility::QImageEncoderControl::staticMetaObject + ?tr@QMediaPlaylistNavigator@QtMobility@@SA?AVQString@@PBD0@Z @ 887 NONAME ; class QString QtMobility::QMediaPlaylistNavigator::tr(char const *, char const *) + ?save@QMediaPlaylist@QtMobility@@QAE_NPAVQIODevice@@PBD@Z @ 888 NONAME ; bool QtMobility::QMediaPlaylist::save(class QIODevice *, char const *) + ?setAudioCodec@QMediaResource@QtMobility@@QAEXABVQString@@@Z @ 889 NONAME ; void QtMobility::QMediaResource::setAudioCodec(class QString const &) + ??0QMetaDataControl@QtMobility@@IAE@PAVQObject@@@Z @ 890 NONAME ; QtMobility::QMetaDataControl::QMetaDataControl(class QObject *) + ?itemChange@QGraphicsVideoItem@QtMobility@@MAE?AVQVariant@@W4GraphicsItemChange@QGraphicsItem@@ABV3@@Z @ 891 NONAME ; class QVariant QtMobility::QGraphicsVideoItem::itemChange(enum QGraphicsItem::GraphicsItemChange, class QVariant const &) + ??9QImageEncoderSettings@QtMobility@@QBE_NABV01@@Z @ 892 NONAME ; bool QtMobility::QImageEncoderSettings::operator!=(class QtMobility::QImageEncoderSettings const &) const + ?trUtf8@QMediaRecorder@QtMobility@@SA?AVQString@@PBD0H@Z @ 893 NONAME ; class QString QtMobility::QMediaRecorder::trUtf8(char const *, char const *, int) + ?previous@QMediaPlaylistNavigator@QtMobility@@QAEXXZ @ 894 NONAME ; void QtMobility::QMediaPlaylistNavigator::previous(void) + ??1QVideoRendererControl@QtMobility@@UAE@XZ @ 895 NONAME ; QtMobility::QVideoRendererControl::~QVideoRendererControl(void) + ??0QMediaServiceProviderHint@QtMobility@@QAE@V?$QFlags@W4Feature@QMediaServiceProviderHint@QtMobility@@@@@Z @ 896 NONAME ; QtMobility::QMediaServiceProviderHint::QMediaServiceProviderHint(class QFlags) + ??1QMediaPlaylistWriter@QtMobility@@UAE@XZ @ 897 NONAME ; QtMobility::QMediaPlaylistWriter::~QMediaPlaylistWriter(void) + ?d_func@QMediaService@QtMobility@@AAEPAVQMediaServicePrivate@2@XZ @ 898 NONAME ; class QtMobility::QMediaServicePrivate * QtMobility::QMediaService::d_func(void) + ?qt_metacast@QMediaPlaylistControl@QtMobility@@UAEPAXPBD@Z @ 899 NONAME ; void * QtMobility::QMediaPlaylistControl::qt_metacast(char const *) + ?tr@QVideoWidget@QtMobility@@SA?AVQString@@PBD0@Z @ 900 NONAME ; class QString QtMobility::QVideoWidget::tr(char const *, char const *) + ??0QImageEncoderControl@QtMobility@@IAE@PAVQObject@@@Z @ 901 NONAME ; QtMobility::QImageEncoderControl::QImageEncoderControl(class QObject *) + ?saturationChanged@QVideoWidgetControl@QtMobility@@IAEXH@Z @ 902 NONAME ; void QtMobility::QVideoWidgetControl::saturationChanged(int) + ??1QRadioTuner@QtMobility@@UAE@XZ @ 903 NONAME ; QtMobility::QRadioTuner::~QRadioTuner(void) + ?qt_metacast@QVideoRendererControl@QtMobility@@UAEPAXPBD@Z @ 904 NONAME ; void * QtMobility::QVideoRendererControl::qt_metacast(char const *) + ?qt_metacall@QMediaPlayerControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 905 NONAME ; int QtMobility::QMediaPlayerControl::qt_metacall(enum QMetaObject::Call, int, void * *) + ?trUtf8@QAudioCaptureSource@QtMobility@@SA?AVQString@@PBD0H@Z @ 906 NONAME ; class QString QtMobility::QAudioCaptureSource::trUtf8(char const *, char const *, int) + ?isSearching@QRadioTuner@QtMobility@@QBE_NXZ @ 907 NONAME ; bool QtMobility::QRadioTuner::isSearching(void) const + ?tr@QMediaImageViewer@QtMobility@@SA?AVQString@@PBD0H@Z @ 908 NONAME ; class QString QtMobility::QMediaImageViewer::tr(char const *, char const *, int) + ?currentIndexChanged@QMediaPlaylistControl@QtMobility@@IAEXH@Z @ 909 NONAME ; void QtMobility::QMediaPlaylistControl::currentIndexChanged(int) + ?isNull@QMediaContent@QtMobility@@QBE_NXZ @ 910 NONAME ; bool QtMobility::QMediaContent::isNull(void) const + ?error@QMediaRecorder@QtMobility@@IAEXW4Error@12@@Z @ 911 NONAME ; void QtMobility::QMediaRecorder::error(enum QtMobility::QMediaRecorder::Error) + ?metaObject@QMediaPlayer@QtMobility@@UBEPBUQMetaObject@@XZ @ 912 NONAME ; struct QMetaObject const * QtMobility::QMediaPlayer::metaObject(void) const + ?end@QMediaTimeInterval@QtMobility@@QBE_JXZ @ 913 NONAME ; long long QtMobility::QMediaTimeInterval::end(void) const + ?contrastChanged@QVideoWidget@QtMobility@@IAEXH@Z @ 914 NONAME ; void QtMobility::QVideoWidget::contrastChanged(int) + ??0QImageEncoderSettings@QtMobility@@QAE@ABV01@@Z @ 915 NONAME ; QtMobility::QImageEncoderSettings::QImageEncoderSettings(class QtMobility::QImageEncoderSettings const &) + ?intervals@QMediaTimeRange@QtMobility@@QBE?AV?$QList@VQMediaTimeInterval@QtMobility@@@@XZ @ 916 NONAME ; class QList QtMobility::QMediaTimeRange::intervals(void) const + ?tr@QVideoWindowControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 917 NONAME ; class QString QtMobility::QVideoWindowControl::tr(char const *, char const *, int) + ?qt_metacall@QRadioTuner@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 918 NONAME ; int QtMobility::QRadioTuner::qt_metacall(enum QMetaObject::Call, int, void * *) + ??_EQAudioEncoderControl@QtMobility@@UAE@I@Z @ 919 NONAME ; QtMobility::QAudioEncoderControl::~QAudioEncoderControl(unsigned int) + ?metaObject@QMediaServiceProvider@QtMobility@@UBEPBUQMetaObject@@XZ @ 920 NONAME ; struct QMetaObject const * QtMobility::QMediaServiceProvider::metaObject(void) const + ?qt_metacast@QMetaDataControl@QtMobility@@UAEPAXPBD@Z @ 921 NONAME ; void * QtMobility::QMetaDataControl::qt_metacast(char const *) + ??_EQRadioTunerControl@QtMobility@@UAE@I@Z @ 922 NONAME ; QtMobility::QRadioTunerControl::~QRadioTunerControl(unsigned int) + ?trUtf8@QMediaControl@QtMobility@@SA?AVQString@@PBD0H@Z @ 923 NONAME ; class QString QtMobility::QMediaControl::trUtf8(char const *, char const *, int) + ?availabilityError@QMediaRecorder@QtMobility@@UBE?AW4AvailabilityError@QtMedia@2@XZ @ 924 NONAME ; enum QtMobility::QtMedia::AvailabilityError QtMobility::QMediaRecorder::availabilityError(void) const + ?trUtf8@QMediaControl@QtMobility@@SA?AVQString@@PBD0@Z @ 925 NONAME ; class QString QtMobility::QMediaControl::trUtf8(char const *, char const *) + ?qt_metacall@QAudioEncoderControl@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 926 NONAME ; int QtMobility::QAudioEncoderControl::qt_metacall(enum QMetaObject::Call, int, void * *) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/bwins/QtMessagingu.def --- a/qtmobility/src/s60installs/bwins/QtMessagingu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/bwins/QtMessagingu.def Mon May 03 13:18:40 2010 +0300 @@ -102,99 +102,99 @@ ?byName@QMessageAccountFilter@QtMobility@@SA?AV12@ABVQString@@W4EqualityComparator@QMessageDataComparator@2@@Z @ 101 NONAME ; class QtMobility::QMessageAccountFilter QtMobility::QMessageAccountFilter::byName(class QString const &, enum QtMobility::QMessageDataComparator::EqualityComparator) ?messageTypes@QMessageAccount@QtMobility@@QBE?AV?$QFlags@W4Type@QMessage@QtMobility@@@@XZ @ 102 NONAME ; class QFlags QtMobility::QMessageAccount::messageTypes(void) const ?queryFolders@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageFolderId@QtMobility@@@@ABVQMessageFolderFilter@2@ABV?$QList@VQMessageFolderSortOrder@QtMobility@@@@II@Z @ 103 NONAME ; class QList QtMobility::QMessageManager::queryFolders(class QtMobility::QMessageFolderFilter const &, class QList const &, unsigned int, unsigned int) const - ?from@QMessage@QtMobility@@QBE?AVQMessageAddress@2@XZ @ 104 NONAME ; class QtMobility::QMessageAddress QtMobility::QMessage::from(void) const - ??8QMessageFolderId@QtMobility@@QBE_NABV01@@Z @ 105 NONAME ; bool QtMobility::QMessageFolderId::operator==(class QtMobility::QMessageFolderId const &) const - ??HQMessageFolderSortOrder@QtMobility@@QBE?AV01@ABV01@@Z @ 106 NONAME ; class QtMobility::QMessageFolderSortOrder QtMobility::QMessageFolderSortOrder::operator+(class QtMobility::QMessageFolderSortOrder const &) const - ?queryAccounts@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageAccountId@QtMobility@@@@ABVQMessageAccountFilter@2@ABV?$QList@VQMessageAccountSortOrder@QtMobility@@@@II@Z @ 107 NONAME ; class QList QtMobility::QMessageManager::queryAccounts(class QtMobility::QMessageAccountFilter const &, class QList const &, unsigned int, unsigned int) const - ?parentAccountId@QMessage@QtMobility@@QBE?AVQMessageAccountId@2@XZ @ 108 NONAME ; class QtMobility::QMessageAccountId QtMobility::QMessage::parentAccountId(void) const - ??UQMessageFolderFilter@QtMobility@@QBE?AV01@ABV01@@Z @ 109 NONAME ; class QtMobility::QMessageFolderFilter QtMobility::QMessageFolderFilter::operator|(class QtMobility::QMessageFolderFilter const &) const - ?byStandardFolder@QMessageFilter@QtMobility@@SA?AV12@W4StandardFolder@QMessage@2@W4EqualityComparator@QMessageDataComparator@2@@Z @ 110 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byStandardFolder(enum QtMobility::QMessage::StandardFolder, enum QtMobility::QMessageDataComparator::EqualityComparator) - ?bcc@QMessage@QtMobility@@QBE?AV?$QList@VQMessageAddress@QtMobility@@@@XZ @ 111 NONAME ; class QList QtMobility::QMessage::bcc(void) const - ?message@QMessageManager@QtMobility@@QBE?AVQMessage@2@ABVQMessageId@2@@Z @ 112 NONAME ; class QtMobility::QMessage QtMobility::QMessageManager::message(class QtMobility::QMessageId const &) const - ?isEmpty@QMessageAccountSortOrder@QtMobility@@QBE_NXZ @ 113 NONAME ; bool QtMobility::QMessageAccountSortOrder::isEmpty(void) const - ?byId@QMessageFilter@QtMobility@@SA?AV12@ABVQMessageId@2@W4EqualityComparator@QMessageDataComparator@2@@Z @ 114 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byId(class QtMobility::QMessageId const &, enum QtMobility::QMessageDataComparator::EqualityComparator) - ?trUtf8@QMessageService@QtMobility@@SA?AVQString@@PBD0@Z @ 115 NONAME ; class QString QtMobility::QMessageService::trUtf8(char const *, char const *) - ?queryMessages@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageId@QtMobility@@@@ABVQMessageFilter@2@ABVQString@@V?$QFlags@W4MatchFlag@QMessageDataComparator@QtMobility@@@@ABV?$QList@VQMessageSortOrder@QtMobility@@@@II@Z @ 116 NONAME ; class QList QtMobility::QMessageManager::queryMessages(class QtMobility::QMessageFilter const &, class QString const &, class QFlags, class QList const &, unsigned int, unsigned int) const - ??4QMessageFolderSortOrder@QtMobility@@QAEAAV01@ABV01@@Z @ 117 NONAME ; class QtMobility::QMessageFolderSortOrder & QtMobility::QMessageFolderSortOrder::operator=(class QtMobility::QMessageFolderSortOrder const &) - ??0QMessageManager@QtMobility@@QAE@PAVQObject@@@Z @ 118 NONAME ; QtMobility::QMessageManager::QMessageManager(class QObject *) - ?byStatus@QMessageFilter@QtMobility@@SA?AV12@V?$QFlags@W4Status@QMessage@QtMobility@@@@W4InclusionComparator@QMessageDataComparator@2@@Z @ 119 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byStatus(class QFlags, enum QtMobility::QMessageDataComparator::InclusionComparator) - ?trUtf8@QMessageManager@QtMobility@@SA?AVQString@@PBD0H@Z @ 120 NONAME ; class QString QtMobility::QMessageManager::trUtf8(char const *, char const *, int) - ?updateMessage@QMessageManager@QtMobility@@QAE_NPAVQMessage@2@@Z @ 121 NONAME ; bool QtMobility::QMessageManager::updateMessage(class QtMobility::QMessage *) - ?byRecipients@QMessageSortOrder@QtMobility@@SA?AV12@W4SortOrder@Qt@@@Z @ 122 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::byRecipients(enum Qt::SortOrder) - ?parentFolderId@QMessageFolder@QtMobility@@QBE?AVQMessageFolderId@2@XZ @ 123 NONAME ; class QtMobility::QMessageFolderId QtMobility::QMessageFolder::parentFolderId(void) const - ?receivedDate@QMessage@QtMobility@@QBE?AVQDateTime@@XZ @ 124 NONAME ; class QDateTime QtMobility::QMessage::receivedDate(void) const - ?setType@QMessageAddress@QtMobility@@QAEXW4Type@12@@Z @ 125 NONAME ; void QtMobility::QMessageAddress::setType(enum QtMobility::QMessageAddress::Type) - ?queryMessages@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageId@QtMobility@@@@ABVQMessageFilter@2@ABVQMessageSortOrder@2@II@Z @ 126 NONAME ; class QList QtMobility::QMessageManager::queryMessages(class QtMobility::QMessageFilter const &, class QtMobility::QMessageSortOrder const &, unsigned int, unsigned int) const - ?qt_metacast@QMessageManager@QtMobility@@UAEPAXPBD@Z @ 127 NONAME ; void * QtMobility::QMessageManager::qt_metacast(char const *) - ?headerFieldValues@QMessageContentContainer@QtMobility@@QBE?AVQStringList@@ABVQByteArray@@@Z @ 128 NONAME ; class QStringList QtMobility::QMessageContentContainer::headerFieldValues(class QByteArray const &) const - ?byPath@QMessageFolderFilter@QtMobility@@SA?AV12@ABVQString@@W4InclusionComparator@QMessageDataComparator@2@@Z @ 129 NONAME ; class QtMobility::QMessageFolderFilter QtMobility::QMessageFolderFilter::byPath(class QString const &, enum QtMobility::QMessageDataComparator::InclusionComparator) - ?setType@QMessage@QtMobility@@QAEXW4Type@12@@Z @ 130 NONAME ; void QtMobility::QMessage::setType(enum QtMobility::QMessage::Type) - ??_5QMessageFolderFilter@QtMobility@@QAEABV01@ABV01@@Z @ 131 NONAME ; class QtMobility::QMessageFolderFilter const & QtMobility::QMessageFolderFilter::operator|=(class QtMobility::QMessageFolderFilter const &) - ?queryAccounts@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageAccountId@QtMobility@@@@ABVQMessageAccountFilter@2@ABVQMessageAccountSortOrder@2@II@Z @ 132 NONAME ; class QList QtMobility::QMessageManager::queryAccounts(class QtMobility::QMessageAccountFilter const &, class QtMobility::QMessageAccountSortOrder const &, unsigned int, unsigned int) const - ?byStatus@QMessageFilter@QtMobility@@SA?AV12@W4Status@QMessage@2@W4EqualityComparator@QMessageDataComparator@2@@Z @ 133 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byStatus(enum QtMobility::QMessage::Status, enum QtMobility::QMessageDataComparator::EqualityComparator) - ?queryMessages@QMessageService@QtMobility@@QAE_NABVQMessageFilter@2@ABVQMessageSortOrder@2@II@Z @ 134 NONAME ; bool QtMobility::QMessageService::queryMessages(class QtMobility::QMessageFilter const &, class QtMobility::QMessageSortOrder const &, unsigned int, unsigned int) - ??8QMessageAccountSortOrder@QtMobility@@QBE_NABV01@@Z @ 135 NONAME ; bool QtMobility::QMessageAccountSortOrder::operator==(class QtMobility::QMessageAccountSortOrder const &) const - ??_EQMessageAccountFilter@QtMobility@@UAE@I@Z @ 136 NONAME ; QtMobility::QMessageAccountFilter::~QMessageAccountFilter(unsigned int) - ?removeMessages@QMessageManager@QtMobility@@QAE_NABVQMessageFilter@2@W4RemovalOption@12@@Z @ 137 NONAME ; bool QtMobility::QMessageManager::removeMessages(class QtMobility::QMessageFilter const &, enum QtMobility::QMessageManager::RemovalOption) - ??MQMessageAccountId@QtMobility@@QBE_NABV01@@Z @ 138 NONAME ; bool QtMobility::QMessageAccountId::operator<(class QtMobility::QMessageAccountId const &) const - ??8QMessageAccountFilter@QtMobility@@QBE_NABV01@@Z @ 139 NONAME ; bool QtMobility::QMessageAccountFilter::operator==(class QtMobility::QMessageAccountFilter const &) const - ?contains@QMessageContentContainer@QtMobility@@QBE_NABVQMessageContentContainerId@2@@Z @ 140 NONAME ; bool QtMobility::QMessageContentContainer::contains(class QtMobility::QMessageContentContainerId const &) const - ?cc@QMessage@QtMobility@@QBE?AV?$QList@VQMessageAddress@QtMobility@@@@XZ @ 141 NONAME ; class QList QtMobility::QMessage::cc(void) const - ?countMessages@QMessageService@QtMobility@@QAE_NABVQMessageFilter@2@@Z @ 142 NONAME ; bool QtMobility::QMessageService::countMessages(class QtMobility::QMessageFilter const &) - ??1QMessage@QtMobility@@UAE@XZ @ 143 NONAME ; QtMobility::QMessage::~QMessage(void) - ?trUtf8@QMessageManager@QtMobility@@SA?AVQString@@PBD0@Z @ 144 NONAME ; class QString QtMobility::QMessageManager::trUtf8(char const *, char const *) - ?byType@QMessageSortOrder@QtMobility@@SA?AV12@W4SortOrder@Qt@@@Z @ 145 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::byType(enum Qt::SortOrder) - ?contentType@QMessageContentContainer@QtMobility@@QBE?AVQByteArray@@XZ @ 146 NONAME ; class QByteArray QtMobility::QMessageContentContainer::contentType(void) const - ?byStatus@QMessageSortOrder@QtMobility@@SA?AV12@W4Status@QMessage@2@W4SortOrder@Qt@@@Z @ 147 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::byStatus(enum QtMobility::QMessage::Status, enum Qt::SortOrder) - ??YQMessageFolderSortOrder@QtMobility@@QAEAAV01@ABV01@@Z @ 148 NONAME ; class QtMobility::QMessageFolderSortOrder & QtMobility::QMessageFolderSortOrder::operator+=(class QtMobility::QMessageFolderSortOrder const &) - ?id@QMessageAccount@QtMobility@@QBE?AVQMessageAccountId@2@XZ @ 149 NONAME ; class QtMobility::QMessageAccountId QtMobility::QMessageAccount::id(void) const - ?send@QMessageService@QtMobility@@QAE_NAAVQMessage@2@@Z @ 150 NONAME ; bool QtMobility::QMessageService::send(class QtMobility::QMessage &) - ?bySender@QMessageSortOrder@QtMobility@@SA?AV12@W4SortOrder@Qt@@@Z @ 151 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::bySender(enum Qt::SortOrder) - ?isSupported@QMessageFolderFilter@QtMobility@@QBE_NXZ @ 152 NONAME ; bool QtMobility::QMessageFolderFilter::isSupported(void) const - ?byName@QMessageAccountSortOrder@QtMobility@@SA?AV12@W4SortOrder@Qt@@@Z @ 153 NONAME ; class QtMobility::QMessageAccountSortOrder QtMobility::QMessageAccountSortOrder::byName(enum Qt::SortOrder) - ??4QMessageContentContainerId@QtMobility@@QAEAAV01@ABV01@@Z @ 154 NONAME ; class QtMobility::QMessageContentContainerId & QtMobility::QMessageContentContainerId::operator=(class QtMobility::QMessageContentContainerId const &) - ??8QMessageId@QtMobility@@QBE_NABV01@@Z @ 155 NONAME ; bool QtMobility::QMessageId::operator==(class QtMobility::QMessageId const &) const - ??1QMessageService@QtMobility@@UAE@XZ @ 156 NONAME ; QtMobility::QMessageService::~QMessageService(void) - ??_EQMessageAccount@QtMobility@@UAE@I@Z @ 157 NONAME ; QtMobility::QMessageAccount::~QMessageAccount(unsigned int) - ??0QMessageFolderId@QtMobility@@QAE@ABV01@@Z @ 158 NONAME ; QtMobility::QMessageFolderId::QMessageFolderId(class QtMobility::QMessageFolderId const &) - ??SQMessageFolderFilter@QtMobility@@QBE?AV01@XZ @ 159 NONAME ; class QtMobility::QMessageFolderFilter QtMobility::QMessageFolderFilter::operator~(void) const - ??0QMessageFolderFilter@QtMobility@@QAE@ABV01@@Z @ 160 NONAME ; QtMobility::QMessageFolderFilter::QMessageFolderFilter(class QtMobility::QMessageFolderFilter const &) - ?bySender@QMessageFilter@QtMobility@@SA?AV12@ABVQString@@W4EqualityComparator@QMessageDataComparator@2@@Z @ 161 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::bySender(class QString const &, enum QtMobility::QMessageDataComparator::EqualityComparator) - ?byReceptionTimeStamp@QMessageFilter@QtMobility@@SA?AV12@ABVQDateTime@@W4EqualityComparator@QMessageDataComparator@2@@Z @ 162 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byReceptionTimeStamp(class QDateTime const &, enum QtMobility::QMessageDataComparator::EqualityComparator) - ??0QMessageFolder@QtMobility@@QAE@ABVQMessageFolderId@1@@Z @ 163 NONAME ; QtMobility::QMessageFolder::QMessageFolder(class QtMobility::QMessageFolderId const &) - ??8QMessageFolderFilter@QtMobility@@QBE_NABV01@@Z @ 164 NONAME ; bool QtMobility::QMessageFolderFilter::operator==(class QtMobility::QMessageFolderFilter const &) const - ??0QMessageContentContainerId@QtMobility@@QAE@ABVQString@@@Z @ 165 NONAME ; QtMobility::QMessageContentContainerId::QMessageContentContainerId(class QString const &) - ??1QMessageFolderId@QtMobility@@QAE@XZ @ 166 NONAME ; QtMobility::QMessageFolderId::~QMessageFolderId(void) - ?byParentAccountId@QMessageFilter@QtMobility@@SA?AV12@ABVQMessageAccountFilter@2@W4InclusionComparator@QMessageDataComparator@2@@Z @ 167 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byParentAccountId(class QtMobility::QMessageAccountFilter const &, enum QtMobility::QMessageDataComparator::InclusionComparator) - ?subject@QMessage@QtMobility@@QBE?AVQString@@XZ @ 168 NONAME ; class QString QtMobility::QMessage::subject(void) const - ?queryMessages@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageId@QtMobility@@@@ABVQMessageFilter@2@ABVQString@@V?$QFlags@W4MatchFlag@QMessageDataComparator@QtMobility@@@@ABVQMessageSortOrder@2@II@Z @ 169 NONAME ; class QList QtMobility::QMessageManager::queryMessages(class QtMobility::QMessageFilter const &, class QString const &, class QFlags, class QtMobility::QMessageSortOrder const &, unsigned int, unsigned int) const - ?qt_metacall@QMessageService@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 170 NONAME ; int QtMobility::QMessageService::qt_metacall(enum QMetaObject::Call, int, void * *) - ?attachmentIds@QMessage@QtMobility@@QBE?AV?$QList@VQMessageContentContainerId@QtMobility@@@@XZ @ 171 NONAME ; class QList QtMobility::QMessage::attachmentIds(void) const - ?standardFolder@QMessage@QtMobility@@QBE?AW4StandardFolder@12@XZ @ 172 NONAME ; enum QtMobility::QMessage::StandardFolder QtMobility::QMessage::standardFolder(void) const - ?byTimeStamp@QMessageFilter@QtMobility@@SA?AV12@ABVQDateTime@@W4RelationComparator@QMessageDataComparator@2@@Z @ 173 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byTimeStamp(class QDateTime const &, enum QtMobility::QMessageDataComparator::RelationComparator) - ??4QMessageFolderId@QtMobility@@QAEAAV01@ABV01@@Z @ 174 NONAME ; class QtMobility::QMessageFolderId & QtMobility::QMessageFolderId::operator=(class QtMobility::QMessageFolderId const &) - ?setBcc@QMessage@QtMobility@@QAEXABV?$QList@VQMessageAddress@QtMobility@@@@@Z @ 175 NONAME ; void QtMobility::QMessage::setBcc(class QList const &) - ?setStatus@QMessage@QtMobility@@QAEXW4Status@12@_N@Z @ 176 NONAME ; void QtMobility::QMessage::setStatus(enum QtMobility::QMessage::Status, bool) - ?matchFlags@QMessageAccountFilter@QtMobility@@QBE?AV?$QFlags@W4MatchFlag@QMessageDataComparator@QtMobility@@@@XZ @ 177 NONAME ; class QFlags QtMobility::QMessageAccountFilter::matchFlags(void) const - ?byParentFolderId@QMessageFilter@QtMobility@@SA?AV12@ABVQMessageFolderFilter@2@W4InclusionComparator@QMessageDataComparator@2@@Z @ 178 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byParentFolderId(class QtMobility::QMessageFolderFilter const &, enum QtMobility::QMessageDataComparator::InclusionComparator) - ?countAccounts@QMessageManager@QtMobility@@QBEHABVQMessageAccountFilter@2@@Z @ 179 NONAME ; int QtMobility::QMessageManager::countAccounts(class QtMobility::QMessageAccountFilter const &) const - ?tr@QMessageManager@QtMobility@@SA?AVQString@@PBD0H@Z @ 180 NONAME ; class QString QtMobility::QMessageManager::tr(char const *, char const *, int) - ?qt_metacall@QMessageManager@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 181 NONAME ; int QtMobility::QMessageManager::qt_metacall(enum QMetaObject::Call, int, void * *) - ?error@QMessageService@QtMobility@@QBE?AW4Error@QMessageManager@2@XZ @ 182 NONAME ; enum QtMobility::QMessageManager::Error QtMobility::QMessageService::error(void) const - ??0QMessageId@QtMobility@@QAE@ABV01@@Z @ 183 NONAME ; QtMobility::QMessageId::QMessageId(class QtMobility::QMessageId const &) - ?bySize@QMessageSortOrder@QtMobility@@SA?AV12@W4SortOrder@Qt@@@Z @ 184 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::bySize(enum Qt::SortOrder) - ??0QMessageAccount@QtMobility@@QAE@ABVQMessageAccountId@1@@Z @ 185 NONAME ; QtMobility::QMessageAccount::QMessageAccount(class QtMobility::QMessageAccountId const &) - ??_EQMessageManager@QtMobility@@UAE@I@Z @ 186 NONAME ; QtMobility::QMessageManager::~QMessageManager(unsigned int) - ?isSupported@QMessageSortOrder@QtMobility@@QBE_NXZ @ 187 NONAME ; bool QtMobility::QMessageSortOrder::isSupported(void) const - ??_EQMessageSortOrder@QtMobility@@UAE@I@Z @ 188 NONAME ; QtMobility::QMessageSortOrder::~QMessageSortOrder(unsigned int) - ??_4QMessageFolderFilter@QtMobility@@QAEABV01@ABV01@@Z @ 189 NONAME ; class QtMobility::QMessageFolderFilter const & QtMobility::QMessageFolderFilter::operator&=(class QtMobility::QMessageFolderFilter const &) - ??0QMessageContentContainer@QtMobility@@QAE@ABV01@@Z @ 190 NONAME ; QtMobility::QMessageContentContainer::QMessageContentContainer(class QtMobility::QMessageContentContainer const &) - ?byId@QMessageFilter@QtMobility@@SA?AV12@ABV?$QList@VQMessageId@QtMobility@@@@W4InclusionComparator@QMessageDataComparator@2@@Z @ 191 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byId(class QList const &, enum QtMobility::QMessageDataComparator::InclusionComparator) - ?setMatchFlags@QMessageAccountFilter@QtMobility@@QAEXV?$QFlags@W4MatchFlag@QMessageDataComparator@QtMobility@@@@@Z @ 192 NONAME ; void QtMobility::QMessageAccountFilter::setMatchFlags(class QFlags) - ??0QMessageFilter@QtMobility@@QAE@ABV01@@Z @ 193 NONAME ; QtMobility::QMessageFilter::QMessageFilter(class QtMobility::QMessageFilter const &) - ??0QMessageId@QtMobility@@QAE@XZ @ 194 NONAME ; QtMobility::QMessageId::QMessageId(void) - ?trUtf8@QMessageService@QtMobility@@SA?AVQString@@PBD0H@Z @ 195 NONAME ; class QString QtMobility::QMessageService::trUtf8(char const *, char const *, int) - ?setRecipient@QMessageAddress@QtMobility@@QAEXABVQString@@@Z @ 196 NONAME ; void QtMobility::QMessageAddress::setRecipient(class QString const &) + ?setAddressee@QMessageAddress@QtMobility@@QAEXABVQString@@@Z @ 104 NONAME ; void QtMobility::QMessageAddress::setAddressee(class QString const &) + ?from@QMessage@QtMobility@@QBE?AVQMessageAddress@2@XZ @ 105 NONAME ; class QtMobility::QMessageAddress QtMobility::QMessage::from(void) const + ??8QMessageFolderId@QtMobility@@QBE_NABV01@@Z @ 106 NONAME ; bool QtMobility::QMessageFolderId::operator==(class QtMobility::QMessageFolderId const &) const + ??HQMessageFolderSortOrder@QtMobility@@QBE?AV01@ABV01@@Z @ 107 NONAME ; class QtMobility::QMessageFolderSortOrder QtMobility::QMessageFolderSortOrder::operator+(class QtMobility::QMessageFolderSortOrder const &) const + ?queryAccounts@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageAccountId@QtMobility@@@@ABVQMessageAccountFilter@2@ABV?$QList@VQMessageAccountSortOrder@QtMobility@@@@II@Z @ 108 NONAME ; class QList QtMobility::QMessageManager::queryAccounts(class QtMobility::QMessageAccountFilter const &, class QList const &, unsigned int, unsigned int) const + ?parentAccountId@QMessage@QtMobility@@QBE?AVQMessageAccountId@2@XZ @ 109 NONAME ; class QtMobility::QMessageAccountId QtMobility::QMessage::parentAccountId(void) const + ??UQMessageFolderFilter@QtMobility@@QBE?AV01@ABV01@@Z @ 110 NONAME ; class QtMobility::QMessageFolderFilter QtMobility::QMessageFolderFilter::operator|(class QtMobility::QMessageFolderFilter const &) const + ?byStandardFolder@QMessageFilter@QtMobility@@SA?AV12@W4StandardFolder@QMessage@2@W4EqualityComparator@QMessageDataComparator@2@@Z @ 111 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byStandardFolder(enum QtMobility::QMessage::StandardFolder, enum QtMobility::QMessageDataComparator::EqualityComparator) + ?bcc@QMessage@QtMobility@@QBE?AV?$QList@VQMessageAddress@QtMobility@@@@XZ @ 112 NONAME ; class QList QtMobility::QMessage::bcc(void) const + ?message@QMessageManager@QtMobility@@QBE?AVQMessage@2@ABVQMessageId@2@@Z @ 113 NONAME ; class QtMobility::QMessage QtMobility::QMessageManager::message(class QtMobility::QMessageId const &) const + ?isEmpty@QMessageAccountSortOrder@QtMobility@@QBE_NXZ @ 114 NONAME ; bool QtMobility::QMessageAccountSortOrder::isEmpty(void) const + ?byId@QMessageFilter@QtMobility@@SA?AV12@ABVQMessageId@2@W4EqualityComparator@QMessageDataComparator@2@@Z @ 115 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byId(class QtMobility::QMessageId const &, enum QtMobility::QMessageDataComparator::EqualityComparator) + ?trUtf8@QMessageService@QtMobility@@SA?AVQString@@PBD0@Z @ 116 NONAME ; class QString QtMobility::QMessageService::trUtf8(char const *, char const *) + ?queryMessages@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageId@QtMobility@@@@ABVQMessageFilter@2@ABVQString@@V?$QFlags@W4MatchFlag@QMessageDataComparator@QtMobility@@@@ABV?$QList@VQMessageSortOrder@QtMobility@@@@II@Z @ 117 NONAME ; class QList QtMobility::QMessageManager::queryMessages(class QtMobility::QMessageFilter const &, class QString const &, class QFlags, class QList const &, unsigned int, unsigned int) const + ??4QMessageFolderSortOrder@QtMobility@@QAEAAV01@ABV01@@Z @ 118 NONAME ; class QtMobility::QMessageFolderSortOrder & QtMobility::QMessageFolderSortOrder::operator=(class QtMobility::QMessageFolderSortOrder const &) + ??0QMessageManager@QtMobility@@QAE@PAVQObject@@@Z @ 119 NONAME ; QtMobility::QMessageManager::QMessageManager(class QObject *) + ?byStatus@QMessageFilter@QtMobility@@SA?AV12@V?$QFlags@W4Status@QMessage@QtMobility@@@@W4InclusionComparator@QMessageDataComparator@2@@Z @ 120 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byStatus(class QFlags, enum QtMobility::QMessageDataComparator::InclusionComparator) + ?trUtf8@QMessageManager@QtMobility@@SA?AVQString@@PBD0H@Z @ 121 NONAME ; class QString QtMobility::QMessageManager::trUtf8(char const *, char const *, int) + ?updateMessage@QMessageManager@QtMobility@@QAE_NPAVQMessage@2@@Z @ 122 NONAME ; bool QtMobility::QMessageManager::updateMessage(class QtMobility::QMessage *) + ?byRecipients@QMessageSortOrder@QtMobility@@SA?AV12@W4SortOrder@Qt@@@Z @ 123 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::byRecipients(enum Qt::SortOrder) + ?parentFolderId@QMessageFolder@QtMobility@@QBE?AVQMessageFolderId@2@XZ @ 124 NONAME ; class QtMobility::QMessageFolderId QtMobility::QMessageFolder::parentFolderId(void) const + ?receivedDate@QMessage@QtMobility@@QBE?AVQDateTime@@XZ @ 125 NONAME ; class QDateTime QtMobility::QMessage::receivedDate(void) const + ?setType@QMessageAddress@QtMobility@@QAEXW4Type@12@@Z @ 126 NONAME ; void QtMobility::QMessageAddress::setType(enum QtMobility::QMessageAddress::Type) + ?queryMessages@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageId@QtMobility@@@@ABVQMessageFilter@2@ABVQMessageSortOrder@2@II@Z @ 127 NONAME ; class QList QtMobility::QMessageManager::queryMessages(class QtMobility::QMessageFilter const &, class QtMobility::QMessageSortOrder const &, unsigned int, unsigned int) const + ?qt_metacast@QMessageManager@QtMobility@@UAEPAXPBD@Z @ 128 NONAME ; void * QtMobility::QMessageManager::qt_metacast(char const *) + ?headerFieldValues@QMessageContentContainer@QtMobility@@QBE?AVQStringList@@ABVQByteArray@@@Z @ 129 NONAME ; class QStringList QtMobility::QMessageContentContainer::headerFieldValues(class QByteArray const &) const + ?byPath@QMessageFolderFilter@QtMobility@@SA?AV12@ABVQString@@W4InclusionComparator@QMessageDataComparator@2@@Z @ 130 NONAME ; class QtMobility::QMessageFolderFilter QtMobility::QMessageFolderFilter::byPath(class QString const &, enum QtMobility::QMessageDataComparator::InclusionComparator) + ?setType@QMessage@QtMobility@@QAEXW4Type@12@@Z @ 131 NONAME ; void QtMobility::QMessage::setType(enum QtMobility::QMessage::Type) + ??_5QMessageFolderFilter@QtMobility@@QAEABV01@ABV01@@Z @ 132 NONAME ; class QtMobility::QMessageFolderFilter const & QtMobility::QMessageFolderFilter::operator|=(class QtMobility::QMessageFolderFilter const &) + ?queryAccounts@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageAccountId@QtMobility@@@@ABVQMessageAccountFilter@2@ABVQMessageAccountSortOrder@2@II@Z @ 133 NONAME ; class QList QtMobility::QMessageManager::queryAccounts(class QtMobility::QMessageAccountFilter const &, class QtMobility::QMessageAccountSortOrder const &, unsigned int, unsigned int) const + ?byStatus@QMessageFilter@QtMobility@@SA?AV12@W4Status@QMessage@2@W4EqualityComparator@QMessageDataComparator@2@@Z @ 134 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byStatus(enum QtMobility::QMessage::Status, enum QtMobility::QMessageDataComparator::EqualityComparator) + ?queryMessages@QMessageService@QtMobility@@QAE_NABVQMessageFilter@2@ABVQMessageSortOrder@2@II@Z @ 135 NONAME ; bool QtMobility::QMessageService::queryMessages(class QtMobility::QMessageFilter const &, class QtMobility::QMessageSortOrder const &, unsigned int, unsigned int) + ??8QMessageAccountSortOrder@QtMobility@@QBE_NABV01@@Z @ 136 NONAME ; bool QtMobility::QMessageAccountSortOrder::operator==(class QtMobility::QMessageAccountSortOrder const &) const + ??_EQMessageAccountFilter@QtMobility@@UAE@I@Z @ 137 NONAME ; QtMobility::QMessageAccountFilter::~QMessageAccountFilter(unsigned int) + ?removeMessages@QMessageManager@QtMobility@@QAE_NABVQMessageFilter@2@W4RemovalOption@12@@Z @ 138 NONAME ; bool QtMobility::QMessageManager::removeMessages(class QtMobility::QMessageFilter const &, enum QtMobility::QMessageManager::RemovalOption) + ??MQMessageAccountId@QtMobility@@QBE_NABV01@@Z @ 139 NONAME ; bool QtMobility::QMessageAccountId::operator<(class QtMobility::QMessageAccountId const &) const + ??8QMessageAccountFilter@QtMobility@@QBE_NABV01@@Z @ 140 NONAME ; bool QtMobility::QMessageAccountFilter::operator==(class QtMobility::QMessageAccountFilter const &) const + ?contains@QMessageContentContainer@QtMobility@@QBE_NABVQMessageContentContainerId@2@@Z @ 141 NONAME ; bool QtMobility::QMessageContentContainer::contains(class QtMobility::QMessageContentContainerId const &) const + ?cc@QMessage@QtMobility@@QBE?AV?$QList@VQMessageAddress@QtMobility@@@@XZ @ 142 NONAME ; class QList QtMobility::QMessage::cc(void) const + ?countMessages@QMessageService@QtMobility@@QAE_NABVQMessageFilter@2@@Z @ 143 NONAME ; bool QtMobility::QMessageService::countMessages(class QtMobility::QMessageFilter const &) + ??1QMessage@QtMobility@@UAE@XZ @ 144 NONAME ; QtMobility::QMessage::~QMessage(void) + ?trUtf8@QMessageManager@QtMobility@@SA?AVQString@@PBD0@Z @ 145 NONAME ; class QString QtMobility::QMessageManager::trUtf8(char const *, char const *) + ?byType@QMessageSortOrder@QtMobility@@SA?AV12@W4SortOrder@Qt@@@Z @ 146 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::byType(enum Qt::SortOrder) + ?contentType@QMessageContentContainer@QtMobility@@QBE?AVQByteArray@@XZ @ 147 NONAME ; class QByteArray QtMobility::QMessageContentContainer::contentType(void) const + ?byStatus@QMessageSortOrder@QtMobility@@SA?AV12@W4Status@QMessage@2@W4SortOrder@Qt@@@Z @ 148 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::byStatus(enum QtMobility::QMessage::Status, enum Qt::SortOrder) + ??YQMessageFolderSortOrder@QtMobility@@QAEAAV01@ABV01@@Z @ 149 NONAME ; class QtMobility::QMessageFolderSortOrder & QtMobility::QMessageFolderSortOrder::operator+=(class QtMobility::QMessageFolderSortOrder const &) + ?id@QMessageAccount@QtMobility@@QBE?AVQMessageAccountId@2@XZ @ 150 NONAME ; class QtMobility::QMessageAccountId QtMobility::QMessageAccount::id(void) const + ?send@QMessageService@QtMobility@@QAE_NAAVQMessage@2@@Z @ 151 NONAME ; bool QtMobility::QMessageService::send(class QtMobility::QMessage &) + ?bySender@QMessageSortOrder@QtMobility@@SA?AV12@W4SortOrder@Qt@@@Z @ 152 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::bySender(enum Qt::SortOrder) + ?isSupported@QMessageFolderFilter@QtMobility@@QBE_NXZ @ 153 NONAME ; bool QtMobility::QMessageFolderFilter::isSupported(void) const + ?byName@QMessageAccountSortOrder@QtMobility@@SA?AV12@W4SortOrder@Qt@@@Z @ 154 NONAME ; class QtMobility::QMessageAccountSortOrder QtMobility::QMessageAccountSortOrder::byName(enum Qt::SortOrder) + ??4QMessageContentContainerId@QtMobility@@QAEAAV01@ABV01@@Z @ 155 NONAME ; class QtMobility::QMessageContentContainerId & QtMobility::QMessageContentContainerId::operator=(class QtMobility::QMessageContentContainerId const &) + ??8QMessageId@QtMobility@@QBE_NABV01@@Z @ 156 NONAME ; bool QtMobility::QMessageId::operator==(class QtMobility::QMessageId const &) const + ??1QMessageService@QtMobility@@UAE@XZ @ 157 NONAME ; QtMobility::QMessageService::~QMessageService(void) + ??_EQMessageAccount@QtMobility@@UAE@I@Z @ 158 NONAME ; QtMobility::QMessageAccount::~QMessageAccount(unsigned int) + ??0QMessageFolderId@QtMobility@@QAE@ABV01@@Z @ 159 NONAME ; QtMobility::QMessageFolderId::QMessageFolderId(class QtMobility::QMessageFolderId const &) + ??SQMessageFolderFilter@QtMobility@@QBE?AV01@XZ @ 160 NONAME ; class QtMobility::QMessageFolderFilter QtMobility::QMessageFolderFilter::operator~(void) const + ??0QMessageFolderFilter@QtMobility@@QAE@ABV01@@Z @ 161 NONAME ; QtMobility::QMessageFolderFilter::QMessageFolderFilter(class QtMobility::QMessageFolderFilter const &) + ?bySender@QMessageFilter@QtMobility@@SA?AV12@ABVQString@@W4EqualityComparator@QMessageDataComparator@2@@Z @ 162 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::bySender(class QString const &, enum QtMobility::QMessageDataComparator::EqualityComparator) + ?byReceptionTimeStamp@QMessageFilter@QtMobility@@SA?AV12@ABVQDateTime@@W4EqualityComparator@QMessageDataComparator@2@@Z @ 163 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byReceptionTimeStamp(class QDateTime const &, enum QtMobility::QMessageDataComparator::EqualityComparator) + ??0QMessageFolder@QtMobility@@QAE@ABVQMessageFolderId@1@@Z @ 164 NONAME ; QtMobility::QMessageFolder::QMessageFolder(class QtMobility::QMessageFolderId const &) + ??8QMessageFolderFilter@QtMobility@@QBE_NABV01@@Z @ 165 NONAME ; bool QtMobility::QMessageFolderFilter::operator==(class QtMobility::QMessageFolderFilter const &) const + ??0QMessageContentContainerId@QtMobility@@QAE@ABVQString@@@Z @ 166 NONAME ; QtMobility::QMessageContentContainerId::QMessageContentContainerId(class QString const &) + ??1QMessageFolderId@QtMobility@@QAE@XZ @ 167 NONAME ; QtMobility::QMessageFolderId::~QMessageFolderId(void) + ?byParentAccountId@QMessageFilter@QtMobility@@SA?AV12@ABVQMessageAccountFilter@2@W4InclusionComparator@QMessageDataComparator@2@@Z @ 168 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byParentAccountId(class QtMobility::QMessageAccountFilter const &, enum QtMobility::QMessageDataComparator::InclusionComparator) + ?subject@QMessage@QtMobility@@QBE?AVQString@@XZ @ 169 NONAME ; class QString QtMobility::QMessage::subject(void) const + ?queryMessages@QMessageManager@QtMobility@@QBE?AV?$QList@VQMessageId@QtMobility@@@@ABVQMessageFilter@2@ABVQString@@V?$QFlags@W4MatchFlag@QMessageDataComparator@QtMobility@@@@ABVQMessageSortOrder@2@II@Z @ 170 NONAME ; class QList QtMobility::QMessageManager::queryMessages(class QtMobility::QMessageFilter const &, class QString const &, class QFlags, class QtMobility::QMessageSortOrder const &, unsigned int, unsigned int) const + ?qt_metacall@QMessageService@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 171 NONAME ; int QtMobility::QMessageService::qt_metacall(enum QMetaObject::Call, int, void * *) + ?attachmentIds@QMessage@QtMobility@@QBE?AV?$QList@VQMessageContentContainerId@QtMobility@@@@XZ @ 172 NONAME ; class QList QtMobility::QMessage::attachmentIds(void) const + ?standardFolder@QMessage@QtMobility@@QBE?AW4StandardFolder@12@XZ @ 173 NONAME ; enum QtMobility::QMessage::StandardFolder QtMobility::QMessage::standardFolder(void) const + ?byTimeStamp@QMessageFilter@QtMobility@@SA?AV12@ABVQDateTime@@W4RelationComparator@QMessageDataComparator@2@@Z @ 174 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byTimeStamp(class QDateTime const &, enum QtMobility::QMessageDataComparator::RelationComparator) + ??4QMessageFolderId@QtMobility@@QAEAAV01@ABV01@@Z @ 175 NONAME ; class QtMobility::QMessageFolderId & QtMobility::QMessageFolderId::operator=(class QtMobility::QMessageFolderId const &) + ?setBcc@QMessage@QtMobility@@QAEXABV?$QList@VQMessageAddress@QtMobility@@@@@Z @ 176 NONAME ; void QtMobility::QMessage::setBcc(class QList const &) + ?setStatus@QMessage@QtMobility@@QAEXW4Status@12@_N@Z @ 177 NONAME ; void QtMobility::QMessage::setStatus(enum QtMobility::QMessage::Status, bool) + ?matchFlags@QMessageAccountFilter@QtMobility@@QBE?AV?$QFlags@W4MatchFlag@QMessageDataComparator@QtMobility@@@@XZ @ 178 NONAME ; class QFlags QtMobility::QMessageAccountFilter::matchFlags(void) const + ?byParentFolderId@QMessageFilter@QtMobility@@SA?AV12@ABVQMessageFolderFilter@2@W4InclusionComparator@QMessageDataComparator@2@@Z @ 179 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byParentFolderId(class QtMobility::QMessageFolderFilter const &, enum QtMobility::QMessageDataComparator::InclusionComparator) + ?countAccounts@QMessageManager@QtMobility@@QBEHABVQMessageAccountFilter@2@@Z @ 180 NONAME ; int QtMobility::QMessageManager::countAccounts(class QtMobility::QMessageAccountFilter const &) const + ?tr@QMessageManager@QtMobility@@SA?AVQString@@PBD0H@Z @ 181 NONAME ; class QString QtMobility::QMessageManager::tr(char const *, char const *, int) + ?qt_metacall@QMessageManager@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 182 NONAME ; int QtMobility::QMessageManager::qt_metacall(enum QMetaObject::Call, int, void * *) + ?error@QMessageService@QtMobility@@QBE?AW4Error@QMessageManager@2@XZ @ 183 NONAME ; enum QtMobility::QMessageManager::Error QtMobility::QMessageService::error(void) const + ??0QMessageId@QtMobility@@QAE@ABV01@@Z @ 184 NONAME ; QtMobility::QMessageId::QMessageId(class QtMobility::QMessageId const &) + ?bySize@QMessageSortOrder@QtMobility@@SA?AV12@W4SortOrder@Qt@@@Z @ 185 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::bySize(enum Qt::SortOrder) + ??0QMessageAccount@QtMobility@@QAE@ABVQMessageAccountId@1@@Z @ 186 NONAME ; QtMobility::QMessageAccount::QMessageAccount(class QtMobility::QMessageAccountId const &) + ??_EQMessageManager@QtMobility@@UAE@I@Z @ 187 NONAME ; QtMobility::QMessageManager::~QMessageManager(unsigned int) + ?isSupported@QMessageSortOrder@QtMobility@@QBE_NXZ @ 188 NONAME ; bool QtMobility::QMessageSortOrder::isSupported(void) const + ??_EQMessageSortOrder@QtMobility@@UAE@I@Z @ 189 NONAME ; QtMobility::QMessageSortOrder::~QMessageSortOrder(unsigned int) + ??_4QMessageFolderFilter@QtMobility@@QAEABV01@ABV01@@Z @ 190 NONAME ; class QtMobility::QMessageFolderFilter const & QtMobility::QMessageFolderFilter::operator&=(class QtMobility::QMessageFolderFilter const &) + ??0QMessageContentContainer@QtMobility@@QAE@ABV01@@Z @ 191 NONAME ; QtMobility::QMessageContentContainer::QMessageContentContainer(class QtMobility::QMessageContentContainer const &) + ?byId@QMessageFilter@QtMobility@@SA?AV12@ABV?$QList@VQMessageId@QtMobility@@@@W4InclusionComparator@QMessageDataComparator@2@@Z @ 192 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::byId(class QList const &, enum QtMobility::QMessageDataComparator::InclusionComparator) + ?setMatchFlags@QMessageAccountFilter@QtMobility@@QAEXV?$QFlags@W4MatchFlag@QMessageDataComparator@QtMobility@@@@@Z @ 193 NONAME ; void QtMobility::QMessageAccountFilter::setMatchFlags(class QFlags) + ??0QMessageFilter@QtMobility@@QAE@ABV01@@Z @ 194 NONAME ; QtMobility::QMessageFilter::QMessageFilter(class QtMobility::QMessageFilter const &) + ??0QMessageId@QtMobility@@QAE@XZ @ 195 NONAME ; QtMobility::QMessageId::QMessageId(void) + ?trUtf8@QMessageService@QtMobility@@SA?AVQString@@PBD0H@Z @ 196 NONAME ; class QString QtMobility::QMessageService::trUtf8(char const *, char const *, int) ?bySize@QMessageFilter@QtMobility@@SA?AV12@HW4EqualityComparator@QMessageDataComparator@2@@Z @ 197 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::bySize(int, enum QtMobility::QMessageDataComparator::EqualityComparator) ??0QMessageSortOrder@QtMobility@@QAE@XZ @ 198 NONAME ; QtMobility::QMessageSortOrder::QMessageSortOrder(void) ?byId@QMessageFolderFilter@QtMobility@@SA?AV12@ABVQMessageFolderId@2@W4EqualityComparator@QMessageDataComparator@2@@Z @ 199 NONAME ; class QtMobility::QMessageFolderFilter QtMobility::QMessageFolderFilter::byId(class QtMobility::QMessageFolderId const &, enum QtMobility::QMessageDataComparator::EqualityComparator) @@ -237,12 +237,12 @@ ??HQMessageSortOrder@QtMobility@@QBE?AV01@ABV01@@Z @ 236 NONAME ; class QtMobility::QMessageSortOrder QtMobility::QMessageSortOrder::operator+(class QtMobility::QMessageSortOrder const &) const ??0QMessageId@QtMobility@@QAE@ABVQString@@@Z @ 237 NONAME ; QtMobility::QMessageId::QMessageId(class QString const &) ??9QMessageAddress@QtMobility@@QBE_NABV01@@Z @ 238 NONAME ; bool QtMobility::QMessageAddress::operator!=(class QtMobility::QMessageAddress const &) const - ?find@QMessageContentContainer@QtMobility@@QBE?AV12@ABVQMessageContentContainerId@2@@Z @ 239 NONAME ; class QtMobility::QMessageContentContainer QtMobility::QMessageContentContainer::find(class QtMobility::QMessageContentContainerId const &) const - ?setStatus@QMessage@QtMobility@@QAEXV?$QFlags@W4Status@QMessage@QtMobility@@@@@Z @ 240 NONAME ; void QtMobility::QMessage::setStatus(class QFlags) - ??4QMessageFilter@QtMobility@@QAEAAV01@ABV01@@Z @ 241 NONAME ; class QtMobility::QMessageFilter & QtMobility::QMessageFilter::operator=(class QtMobility::QMessageFilter const &) - ??4QMessageSortOrder@QtMobility@@QAEAAV01@ABV01@@Z @ 242 NONAME ; class QtMobility::QMessageSortOrder & QtMobility::QMessageSortOrder::operator=(class QtMobility::QMessageSortOrder const &) - ?bySubject@QMessageFilter@QtMobility@@SA?AV12@ABVQString@@W4InclusionComparator@QMessageDataComparator@2@@Z @ 243 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::bySubject(class QString const &, enum QtMobility::QMessageDataComparator::InclusionComparator) - ?recipient@QMessageAddress@QtMobility@@QBE?AVQString@@XZ @ 244 NONAME ; class QString QtMobility::QMessageAddress::recipient(void) const + ?addressee@QMessageAddress@QtMobility@@QBE?AVQString@@XZ @ 239 NONAME ; class QString QtMobility::QMessageAddress::addressee(void) const + ?find@QMessageContentContainer@QtMobility@@QBE?AV12@ABVQMessageContentContainerId@2@@Z @ 240 NONAME ; class QtMobility::QMessageContentContainer QtMobility::QMessageContentContainer::find(class QtMobility::QMessageContentContainerId const &) const + ?setStatus@QMessage@QtMobility@@QAEXV?$QFlags@W4Status@QMessage@QtMobility@@@@@Z @ 241 NONAME ; void QtMobility::QMessage::setStatus(class QFlags) + ??4QMessageFilter@QtMobility@@QAEAAV01@ABV01@@Z @ 242 NONAME ; class QtMobility::QMessageFilter & QtMobility::QMessageFilter::operator=(class QtMobility::QMessageFilter const &) + ??4QMessageSortOrder@QtMobility@@QAEAAV01@ABV01@@Z @ 243 NONAME ; class QtMobility::QMessageSortOrder & QtMobility::QMessageSortOrder::operator=(class QtMobility::QMessageSortOrder const &) + ?bySubject@QMessageFilter@QtMobility@@SA?AV12@ABVQString@@W4InclusionComparator@QMessageDataComparator@2@@Z @ 244 NONAME ; class QtMobility::QMessageFilter QtMobility::QMessageFilter::bySubject(class QString const &, enum QtMobility::QMessageDataComparator::InclusionComparator) ?folder@QMessageManager@QtMobility@@QBE?AVQMessageFolder@2@ABVQMessageFolderId@2@@Z @ 245 NONAME ; class QtMobility::QMessageFolder QtMobility::QMessageManager::folder(class QtMobility::QMessageFolderId const &) const ?byId@QMessageAccountFilter@QtMobility@@SA?AV12@ABV?$QList@VQMessageAccountId@QtMobility@@@@W4InclusionComparator@QMessageDataComparator@2@@Z @ 246 NONAME ; class QtMobility::QMessageAccountFilter QtMobility::QMessageAccountFilter::byId(class QList const &, enum QtMobility::QMessageDataComparator::InclusionComparator) ?byName@QMessageAccountFilter@QtMobility@@SA?AV12@ABVQString@@W4InclusionComparator@QMessageDataComparator@2@@Z @ 247 NONAME ; class QtMobility::QMessageAccountFilter QtMobility::QMessageAccountFilter::byName(class QString const &, enum QtMobility::QMessageDataComparator::InclusionComparator) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/bwins/QtSensorsu.def --- a/qtmobility/src/s60installs/bwins/QtSensorsu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/bwins/QtSensorsu.def Mon May 03 13:18:40 2010 +0300 @@ -13,331 +13,339 @@ ??0QProximitySensor@QtMobility@@QAE@PAVQObject@@@Z @ 12 NONAME ; QtMobility::QProximitySensor::QProximitySensor(class QObject *) ??0QRotationReading@QtMobility@@QAE@PAVQObject@@@Z @ 13 NONAME ; QtMobility::QRotationReading::QRotationReading(class QObject *) ??0QRotationSensor@QtMobility@@QAE@PAVQObject@@@Z @ 14 NONAME ; QtMobility::QRotationSensor::QRotationSensor(class QObject *) - ??0QSensor@QtMobility@@QAE@PAVQObject@@@Z @ 15 NONAME ; QtMobility::QSensor::QSensor(class QObject *) + ??0QSensor@QtMobility@@QAE@ABVQByteArray@@PAVQObject@@@Z @ 15 NONAME ; QtMobility::QSensor::QSensor(class QByteArray const &, class QObject *) ??0QSensorBackend@QtMobility@@QAE@PAVQSensor@1@@Z @ 16 NONAME ; QtMobility::QSensorBackend::QSensorBackend(class QtMobility::QSensor *) ??0QSensorFilter@QtMobility@@IAE@XZ @ 17 NONAME ; QtMobility::QSensorFilter::QSensorFilter(void) - ??0QSensorReading@QtMobility@@IAE@PAVQObject@@PAVQSensorReadingPrivate@1@@Z @ 18 NONAME ; QtMobility::QSensorReading::QSensorReading(class QObject *, class QtMobility::QSensorReadingPrivate *) - ??0QTapReading@QtMobility@@QAE@PAVQObject@@@Z @ 19 NONAME ; QtMobility::QTapReading::QTapReading(class QObject *) - ??0QTapSensor@QtMobility@@QAE@PAVQObject@@@Z @ 20 NONAME ; QtMobility::QTapSensor::QTapSensor(class QObject *) - ??1QAccelerometer@QtMobility@@UAE@XZ @ 21 NONAME ; QtMobility::QAccelerometer::~QAccelerometer(void) - ??1QAccelerometerReading@QtMobility@@UAE@XZ @ 22 NONAME ; QtMobility::QAccelerometerReading::~QAccelerometerReading(void) - ??1QAmbientLightReading@QtMobility@@UAE@XZ @ 23 NONAME ; QtMobility::QAmbientLightReading::~QAmbientLightReading(void) - ??1QAmbientLightSensor@QtMobility@@UAE@XZ @ 24 NONAME ; QtMobility::QAmbientLightSensor::~QAmbientLightSensor(void) - ??1QCompass@QtMobility@@UAE@XZ @ 25 NONAME ; QtMobility::QCompass::~QCompass(void) - ??1QCompassReading@QtMobility@@UAE@XZ @ 26 NONAME ; QtMobility::QCompassReading::~QCompassReading(void) - ??1QMagnetometer@QtMobility@@UAE@XZ @ 27 NONAME ; QtMobility::QMagnetometer::~QMagnetometer(void) - ??1QMagnetometerReading@QtMobility@@UAE@XZ @ 28 NONAME ; QtMobility::QMagnetometerReading::~QMagnetometerReading(void) - ??1QOrientationReading@QtMobility@@UAE@XZ @ 29 NONAME ; QtMobility::QOrientationReading::~QOrientationReading(void) - ??1QOrientationSensor@QtMobility@@UAE@XZ @ 30 NONAME ; QtMobility::QOrientationSensor::~QOrientationSensor(void) - ??1QProximityReading@QtMobility@@UAE@XZ @ 31 NONAME ; QtMobility::QProximityReading::~QProximityReading(void) - ??1QProximitySensor@QtMobility@@UAE@XZ @ 32 NONAME ; QtMobility::QProximitySensor::~QProximitySensor(void) - ??1QRotationReading@QtMobility@@UAE@XZ @ 33 NONAME ; QtMobility::QRotationReading::~QRotationReading(void) - ??1QRotationSensor@QtMobility@@UAE@XZ @ 34 NONAME ; QtMobility::QRotationSensor::~QRotationSensor(void) - ??1QSensor@QtMobility@@UAE@XZ @ 35 NONAME ; QtMobility::QSensor::~QSensor(void) - ??1QSensorBackend@QtMobility@@UAE@XZ @ 36 NONAME ; QtMobility::QSensorBackend::~QSensorBackend(void) - ??1QSensorBackendFactory@QtMobility@@IAE@XZ @ 37 NONAME ; QtMobility::QSensorBackendFactory::~QSensorBackendFactory(void) - ??1QSensorFilter@QtMobility@@IAE@XZ @ 38 NONAME ; QtMobility::QSensorFilter::~QSensorFilter(void) - ??1QSensorPluginInterface@QtMobility@@IAE@XZ @ 39 NONAME ; QtMobility::QSensorPluginInterface::~QSensorPluginInterface(void) - ??1QSensorReading@QtMobility@@UAE@XZ @ 40 NONAME ; QtMobility::QSensorReading::~QSensorReading(void) - ??1QTapReading@QtMobility@@UAE@XZ @ 41 NONAME ; QtMobility::QTapReading::~QTapReading(void) - ??1QTapSensor@QtMobility@@UAE@XZ @ 42 NONAME ; QtMobility::QTapSensor::~QTapSensor(void) - ??_EQAccelerometer@QtMobility@@UAE@I@Z @ 43 NONAME ; QtMobility::QAccelerometer::~QAccelerometer(unsigned int) - ??_EQAccelerometerReading@QtMobility@@UAE@I@Z @ 44 NONAME ; QtMobility::QAccelerometerReading::~QAccelerometerReading(unsigned int) - ??_EQAmbientLightReading@QtMobility@@UAE@I@Z @ 45 NONAME ; QtMobility::QAmbientLightReading::~QAmbientLightReading(unsigned int) - ??_EQAmbientLightSensor@QtMobility@@UAE@I@Z @ 46 NONAME ; QtMobility::QAmbientLightSensor::~QAmbientLightSensor(unsigned int) - ??_EQCompass@QtMobility@@UAE@I@Z @ 47 NONAME ; QtMobility::QCompass::~QCompass(unsigned int) - ??_EQCompassReading@QtMobility@@UAE@I@Z @ 48 NONAME ; QtMobility::QCompassReading::~QCompassReading(unsigned int) - ??_EQMagnetometer@QtMobility@@UAE@I@Z @ 49 NONAME ; QtMobility::QMagnetometer::~QMagnetometer(unsigned int) - ??_EQMagnetometerReading@QtMobility@@UAE@I@Z @ 50 NONAME ; QtMobility::QMagnetometerReading::~QMagnetometerReading(unsigned int) - ??_EQOrientationReading@QtMobility@@UAE@I@Z @ 51 NONAME ; QtMobility::QOrientationReading::~QOrientationReading(unsigned int) - ??_EQOrientationSensor@QtMobility@@UAE@I@Z @ 52 NONAME ; QtMobility::QOrientationSensor::~QOrientationSensor(unsigned int) - ??_EQProximityReading@QtMobility@@UAE@I@Z @ 53 NONAME ; QtMobility::QProximityReading::~QProximityReading(unsigned int) - ??_EQProximitySensor@QtMobility@@UAE@I@Z @ 54 NONAME ; QtMobility::QProximitySensor::~QProximitySensor(unsigned int) - ??_EQRotationReading@QtMobility@@UAE@I@Z @ 55 NONAME ; QtMobility::QRotationReading::~QRotationReading(unsigned int) - ??_EQRotationSensor@QtMobility@@UAE@I@Z @ 56 NONAME ; QtMobility::QRotationSensor::~QRotationSensor(unsigned int) - ??_EQSensor@QtMobility@@UAE@I@Z @ 57 NONAME ; QtMobility::QSensor::~QSensor(unsigned int) - ??_EQSensorBackend@QtMobility@@UAE@I@Z @ 58 NONAME ; QtMobility::QSensorBackend::~QSensorBackend(unsigned int) - ??_EQSensorReading@QtMobility@@UAE@I@Z @ 59 NONAME ; QtMobility::QSensorReading::~QSensorReading(unsigned int) - ??_EQTapReading@QtMobility@@UAE@I@Z @ 60 NONAME ; QtMobility::QTapReading::~QTapReading(unsigned int) - ??_EQTapSensor@QtMobility@@UAE@I@Z @ 61 NONAME ; QtMobility::QTapSensor::~QTapSensor(unsigned int) - ?addFilter@QSensor@QtMobility@@QAEXPAVQSensorFilter@2@@Z @ 62 NONAME ; void QtMobility::QSensor::addFilter(class QtMobility::QSensorFilter *) - ?azimuth@QCompassReading@QtMobility@@QBEMXZ @ 63 NONAME ; float QtMobility::QCompassReading::azimuth(void) const - ?calibrated_x@QMagnetometerReading@QtMobility@@QBEMXZ @ 64 NONAME ; float QtMobility::QMagnetometerReading::calibrated_x(void) const - ?calibrated_y@QMagnetometerReading@QtMobility@@QBEMXZ @ 65 NONAME ; float QtMobility::QMagnetometerReading::calibrated_y(void) const - ?calibrated_z@QMagnetometerReading@QtMobility@@QBEMXZ @ 66 NONAME ; float QtMobility::QMagnetometerReading::calibrated_z(void) const - ?calibrationLevel@QCompassReading@QtMobility@@QBE?AW4CalibrationLevel@12@XZ @ 67 NONAME ; enum QtMobility::QCompassReading::CalibrationLevel QtMobility::QCompassReading::calibrationLevel(void) const - ?calibrationLevel@QMagnetometerReading@QtMobility@@QBE?AW4CalibrationLevel@12@XZ @ 68 NONAME ; enum QtMobility::QMagnetometerReading::CalibrationLevel QtMobility::QMagnetometerReading::calibrationLevel(void) const - ?connect@QSensor@QtMobility@@QAEXXZ @ 69 NONAME ; void QtMobility::QSensor::connect(void) - ?copyValuesFrom@QAccelerometerReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 70 NONAME ; void QtMobility::QAccelerometerReading::copyValuesFrom(class QtMobility::QSensorReading *) - ?copyValuesFrom@QAmbientLightReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 71 NONAME ; void QtMobility::QAmbientLightReading::copyValuesFrom(class QtMobility::QSensorReading *) - ?copyValuesFrom@QCompassReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 72 NONAME ; void QtMobility::QCompassReading::copyValuesFrom(class QtMobility::QSensorReading *) - ?copyValuesFrom@QMagnetometerReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 73 NONAME ; void QtMobility::QMagnetometerReading::copyValuesFrom(class QtMobility::QSensorReading *) - ?copyValuesFrom@QOrientationReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 74 NONAME ; void QtMobility::QOrientationReading::copyValuesFrom(class QtMobility::QSensorReading *) - ?copyValuesFrom@QProximityReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 75 NONAME ; void QtMobility::QProximityReading::copyValuesFrom(class QtMobility::QSensorReading *) - ?copyValuesFrom@QRotationReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 76 NONAME ; void QtMobility::QRotationReading::copyValuesFrom(class QtMobility::QSensorReading *) - ?copyValuesFrom@QTapReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 77 NONAME ; void QtMobility::QTapReading::copyValuesFrom(class QtMobility::QSensorReading *) - ?createBackend@QSensorManager@QtMobility@@SAPAVQSensorBackend@2@PAVQSensor@2@@Z @ 78 NONAME ; class QtMobility::QSensorBackend * QtMobility::QSensorManager::createBackend(class QtMobility::QSensor *) - ?d_func@QSensor@QtMobility@@IBEPAVQSensorPrivate@2@XZ @ 79 NONAME ; class QtMobility::QSensorPrivate * QtMobility::QSensor::d_func(void) const - ?d_ptr@QSensorReading@QtMobility@@IAEPAV?$QScopedPointer@VQSensorReadingPrivate@QtMobility@@U?$QScopedPointerDeleter@VQSensorReadingPrivate@QtMobility@@@@@@XZ @ 80 NONAME ; class QScopedPointer > * QtMobility::QSensorReading::d_ptr(void) - ?defaultSensorForType@QSensor@QtMobility@@SA?AVQByteArray@@ABV3@@Z @ 81 NONAME ; class QByteArray QtMobility::QSensor::defaultSensorForType(class QByteArray const &) - ?filter@QAccelerometerFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 82 NONAME ; bool QtMobility::QAccelerometerFilter::filter(class QtMobility::QSensorReading *) - ?filter@QAmbientLightFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 83 NONAME ; bool QtMobility::QAmbientLightFilter::filter(class QtMobility::QSensorReading *) - ?filter@QCompassFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 84 NONAME ; bool QtMobility::QCompassFilter::filter(class QtMobility::QSensorReading *) - ?filter@QMagnetometerFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 85 NONAME ; bool QtMobility::QMagnetometerFilter::filter(class QtMobility::QSensorReading *) - ?filter@QOrientationFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 86 NONAME ; bool QtMobility::QOrientationFilter::filter(class QtMobility::QSensorReading *) - ?filter@QProximityFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 87 NONAME ; bool QtMobility::QProximityFilter::filter(class QtMobility::QSensorReading *) - ?filter@QRotationFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 88 NONAME ; bool QtMobility::QRotationFilter::filter(class QtMobility::QSensorReading *) - ?filter@QTapFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 89 NONAME ; bool QtMobility::QTapFilter::filter(class QtMobility::QSensorReading *) - ?getStaticMetaObject@QAccelerometer@QtMobility@@SAABUQMetaObject@@XZ @ 90 NONAME ; struct QMetaObject const & QtMobility::QAccelerometer::getStaticMetaObject(void) - ?getStaticMetaObject@QAccelerometerReading@QtMobility@@SAABUQMetaObject@@XZ @ 91 NONAME ; struct QMetaObject const & QtMobility::QAccelerometerReading::getStaticMetaObject(void) - ?getStaticMetaObject@QAmbientLightReading@QtMobility@@SAABUQMetaObject@@XZ @ 92 NONAME ; struct QMetaObject const & QtMobility::QAmbientLightReading::getStaticMetaObject(void) - ?getStaticMetaObject@QAmbientLightSensor@QtMobility@@SAABUQMetaObject@@XZ @ 93 NONAME ; struct QMetaObject const & QtMobility::QAmbientLightSensor::getStaticMetaObject(void) - ?getStaticMetaObject@QCompass@QtMobility@@SAABUQMetaObject@@XZ @ 94 NONAME ; struct QMetaObject const & QtMobility::QCompass::getStaticMetaObject(void) - ?getStaticMetaObject@QCompassReading@QtMobility@@SAABUQMetaObject@@XZ @ 95 NONAME ; struct QMetaObject const & QtMobility::QCompassReading::getStaticMetaObject(void) - ?getStaticMetaObject@QMagnetometer@QtMobility@@SAABUQMetaObject@@XZ @ 96 NONAME ; struct QMetaObject const & QtMobility::QMagnetometer::getStaticMetaObject(void) - ?getStaticMetaObject@QMagnetometerReading@QtMobility@@SAABUQMetaObject@@XZ @ 97 NONAME ; struct QMetaObject const & QtMobility::QMagnetometerReading::getStaticMetaObject(void) - ?getStaticMetaObject@QOrientationReading@QtMobility@@SAABUQMetaObject@@XZ @ 98 NONAME ; struct QMetaObject const & QtMobility::QOrientationReading::getStaticMetaObject(void) - ?getStaticMetaObject@QOrientationSensor@QtMobility@@SAABUQMetaObject@@XZ @ 99 NONAME ; struct QMetaObject const & QtMobility::QOrientationSensor::getStaticMetaObject(void) - ?getStaticMetaObject@QProximityReading@QtMobility@@SAABUQMetaObject@@XZ @ 100 NONAME ; struct QMetaObject const & QtMobility::QProximityReading::getStaticMetaObject(void) - ?getStaticMetaObject@QProximitySensor@QtMobility@@SAABUQMetaObject@@XZ @ 101 NONAME ; struct QMetaObject const & QtMobility::QProximitySensor::getStaticMetaObject(void) - ?getStaticMetaObject@QRotationReading@QtMobility@@SAABUQMetaObject@@XZ @ 102 NONAME ; struct QMetaObject const & QtMobility::QRotationReading::getStaticMetaObject(void) - ?getStaticMetaObject@QRotationSensor@QtMobility@@SAABUQMetaObject@@XZ @ 103 NONAME ; struct QMetaObject const & QtMobility::QRotationSensor::getStaticMetaObject(void) - ?getStaticMetaObject@QSensor@QtMobility@@SAABUQMetaObject@@XZ @ 104 NONAME ; struct QMetaObject const & QtMobility::QSensor::getStaticMetaObject(void) - ?getStaticMetaObject@QSensorBackend@QtMobility@@SAABUQMetaObject@@XZ @ 105 NONAME ; struct QMetaObject const & QtMobility::QSensorBackend::getStaticMetaObject(void) - ?getStaticMetaObject@QSensorReading@QtMobility@@SAABUQMetaObject@@XZ @ 106 NONAME ; struct QMetaObject const & QtMobility::QSensorReading::getStaticMetaObject(void) - ?getStaticMetaObject@QTapReading@QtMobility@@SAABUQMetaObject@@XZ @ 107 NONAME ; struct QMetaObject const & QtMobility::QTapReading::getStaticMetaObject(void) - ?getStaticMetaObject@QTapSensor@QtMobility@@SAABUQMetaObject@@XZ @ 108 NONAME ; struct QMetaObject const & QtMobility::QTapSensor::getStaticMetaObject(void) - ?identifier@QSensor@QtMobility@@QBE?AVQByteArray@@XZ @ 109 NONAME ; class QByteArray QtMobility::QSensor::identifier(void) const - ?isActive@QSensor@QtMobility@@QBE_NXZ @ 110 NONAME ; bool QtMobility::QSensor::isActive(void) const - ?isAvailable@QSensor@QtMobility@@QBE_NXZ @ 111 NONAME ; bool QtMobility::QSensor::isAvailable(void) const - ?isDoubleTap@QTapReading@QtMobility@@QBE_NXZ @ 112 NONAME ; bool QtMobility::QTapReading::isDoubleTap(void) const - ?isSignalEnabled@QSensor@QtMobility@@QBE_NXZ @ 113 NONAME ; bool QtMobility::QSensor::isSignalEnabled(void) const - ?lightLevel@QAmbientLightReading@QtMobility@@QBE?AW4LightLevel@12@XZ @ 114 NONAME ; enum QtMobility::QAmbientLightReading::LightLevel QtMobility::QAmbientLightReading::lightLevel(void) const - ?metaObject@QAccelerometer@QtMobility@@UBEPBUQMetaObject@@XZ @ 115 NONAME ; struct QMetaObject const * QtMobility::QAccelerometer::metaObject(void) const - ?metaObject@QAccelerometerReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 116 NONAME ; struct QMetaObject const * QtMobility::QAccelerometerReading::metaObject(void) const - ?metaObject@QAmbientLightReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 117 NONAME ; struct QMetaObject const * QtMobility::QAmbientLightReading::metaObject(void) const - ?metaObject@QAmbientLightSensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 118 NONAME ; struct QMetaObject const * QtMobility::QAmbientLightSensor::metaObject(void) const - ?metaObject@QCompass@QtMobility@@UBEPBUQMetaObject@@XZ @ 119 NONAME ; struct QMetaObject const * QtMobility::QCompass::metaObject(void) const - ?metaObject@QCompassReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 120 NONAME ; struct QMetaObject const * QtMobility::QCompassReading::metaObject(void) const - ?metaObject@QMagnetometer@QtMobility@@UBEPBUQMetaObject@@XZ @ 121 NONAME ; struct QMetaObject const * QtMobility::QMagnetometer::metaObject(void) const - ?metaObject@QMagnetometerReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 122 NONAME ; struct QMetaObject const * QtMobility::QMagnetometerReading::metaObject(void) const - ?metaObject@QOrientationReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 123 NONAME ; struct QMetaObject const * QtMobility::QOrientationReading::metaObject(void) const - ?metaObject@QOrientationSensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 124 NONAME ; struct QMetaObject const * QtMobility::QOrientationSensor::metaObject(void) const - ?metaObject@QProximityReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 125 NONAME ; struct QMetaObject const * QtMobility::QProximityReading::metaObject(void) const - ?metaObject@QProximitySensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 126 NONAME ; struct QMetaObject const * QtMobility::QProximitySensor::metaObject(void) const - ?metaObject@QRotationReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 127 NONAME ; struct QMetaObject const * QtMobility::QRotationReading::metaObject(void) const - ?metaObject@QRotationSensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 128 NONAME ; struct QMetaObject const * QtMobility::QRotationSensor::metaObject(void) const - ?metaObject@QSensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 129 NONAME ; struct QMetaObject const * QtMobility::QSensor::metaObject(void) const - ?metaObject@QSensorBackend@QtMobility@@UBEPBUQMetaObject@@XZ @ 130 NONAME ; struct QMetaObject const * QtMobility::QSensorBackend::metaObject(void) const - ?metaObject@QSensorReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 131 NONAME ; struct QMetaObject const * QtMobility::QSensorReading::metaObject(void) const - ?metaObject@QTapReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 132 NONAME ; struct QMetaObject const * QtMobility::QTapReading::metaObject(void) const - ?metaObject@QTapSensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 133 NONAME ; struct QMetaObject const * QtMobility::QTapSensor::metaObject(void) const - ?newReadingAvailable@QSensorBackend@QtMobility@@QAEXXZ @ 134 NONAME ; void QtMobility::QSensorBackend::newReadingAvailable(void) - ?orientation@QOrientationReading@QtMobility@@QBE?AW4Orientation@12@XZ @ 135 NONAME ; enum QtMobility::QOrientationReading::Orientation QtMobility::QOrientationReading::orientation(void) const - ?poll@QSensor@QtMobility@@QAEXXZ @ 136 NONAME ; void QtMobility::QSensor::poll(void) - ?proximity@QProximityReading@QtMobility@@QBE?AW4Proximity@12@XZ @ 137 NONAME ; enum QtMobility::QProximityReading::Proximity QtMobility::QProximityReading::proximity(void) const - ?qt_metacall@QAccelerometer@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 138 NONAME ; int QtMobility::QAccelerometer::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QAccelerometerReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 139 NONAME ; int QtMobility::QAccelerometerReading::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QAmbientLightReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 140 NONAME ; int QtMobility::QAmbientLightReading::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QAmbientLightSensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 141 NONAME ; int QtMobility::QAmbientLightSensor::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QCompass@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 142 NONAME ; int QtMobility::QCompass::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QCompassReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 143 NONAME ; int QtMobility::QCompassReading::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMagnetometer@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 144 NONAME ; int QtMobility::QMagnetometer::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QMagnetometerReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 145 NONAME ; int QtMobility::QMagnetometerReading::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QOrientationReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 146 NONAME ; int QtMobility::QOrientationReading::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QOrientationSensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 147 NONAME ; int QtMobility::QOrientationSensor::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QProximityReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 148 NONAME ; int QtMobility::QProximityReading::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QProximitySensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 149 NONAME ; int QtMobility::QProximitySensor::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QRotationReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 150 NONAME ; int QtMobility::QRotationReading::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QRotationSensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 151 NONAME ; int QtMobility::QRotationSensor::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QSensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 152 NONAME ; int QtMobility::QSensor::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QSensorBackend@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 153 NONAME ; int QtMobility::QSensorBackend::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QSensorReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 154 NONAME ; int QtMobility::QSensorReading::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QTapReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 155 NONAME ; int QtMobility::QTapReading::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QTapSensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 156 NONAME ; int QtMobility::QTapSensor::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacast@QAccelerometer@QtMobility@@UAEPAXPBD@Z @ 157 NONAME ; void * QtMobility::QAccelerometer::qt_metacast(char const *) - ?qt_metacast@QAccelerometerReading@QtMobility@@UAEPAXPBD@Z @ 158 NONAME ; void * QtMobility::QAccelerometerReading::qt_metacast(char const *) - ?qt_metacast@QAmbientLightReading@QtMobility@@UAEPAXPBD@Z @ 159 NONAME ; void * QtMobility::QAmbientLightReading::qt_metacast(char const *) - ?qt_metacast@QAmbientLightSensor@QtMobility@@UAEPAXPBD@Z @ 160 NONAME ; void * QtMobility::QAmbientLightSensor::qt_metacast(char const *) - ?qt_metacast@QCompass@QtMobility@@UAEPAXPBD@Z @ 161 NONAME ; void * QtMobility::QCompass::qt_metacast(char const *) - ?qt_metacast@QCompassReading@QtMobility@@UAEPAXPBD@Z @ 162 NONAME ; void * QtMobility::QCompassReading::qt_metacast(char const *) - ?qt_metacast@QMagnetometer@QtMobility@@UAEPAXPBD@Z @ 163 NONAME ; void * QtMobility::QMagnetometer::qt_metacast(char const *) - ?qt_metacast@QMagnetometerReading@QtMobility@@UAEPAXPBD@Z @ 164 NONAME ; void * QtMobility::QMagnetometerReading::qt_metacast(char const *) - ?qt_metacast@QOrientationReading@QtMobility@@UAEPAXPBD@Z @ 165 NONAME ; void * QtMobility::QOrientationReading::qt_metacast(char const *) - ?qt_metacast@QOrientationSensor@QtMobility@@UAEPAXPBD@Z @ 166 NONAME ; void * QtMobility::QOrientationSensor::qt_metacast(char const *) - ?qt_metacast@QProximityReading@QtMobility@@UAEPAXPBD@Z @ 167 NONAME ; void * QtMobility::QProximityReading::qt_metacast(char const *) - ?qt_metacast@QProximitySensor@QtMobility@@UAEPAXPBD@Z @ 168 NONAME ; void * QtMobility::QProximitySensor::qt_metacast(char const *) - ?qt_metacast@QRotationReading@QtMobility@@UAEPAXPBD@Z @ 169 NONAME ; void * QtMobility::QRotationReading::qt_metacast(char const *) - ?qt_metacast@QRotationSensor@QtMobility@@UAEPAXPBD@Z @ 170 NONAME ; void * QtMobility::QRotationSensor::qt_metacast(char const *) - ?qt_metacast@QSensor@QtMobility@@UAEPAXPBD@Z @ 171 NONAME ; void * QtMobility::QSensor::qt_metacast(char const *) - ?qt_metacast@QSensorBackend@QtMobility@@UAEPAXPBD@Z @ 172 NONAME ; void * QtMobility::QSensorBackend::qt_metacast(char const *) - ?qt_metacast@QSensorReading@QtMobility@@UAEPAXPBD@Z @ 173 NONAME ; void * QtMobility::QSensorReading::qt_metacast(char const *) - ?qt_metacast@QTapReading@QtMobility@@UAEPAXPBD@Z @ 174 NONAME ; void * QtMobility::QTapReading::qt_metacast(char const *) - ?qt_metacast@QTapSensor@QtMobility@@UAEPAXPBD@Z @ 175 NONAME ; void * QtMobility::QTapSensor::qt_metacast(char const *) - ?reading@QAccelerometer@QtMobility@@QBEPAVQAccelerometerReading@2@XZ @ 176 NONAME ; class QtMobility::QAccelerometerReading * QtMobility::QAccelerometer::reading(void) const - ?reading@QAmbientLightSensor@QtMobility@@QBEPAVQAmbientLightReading@2@XZ @ 177 NONAME ; class QtMobility::QAmbientLightReading * QtMobility::QAmbientLightSensor::reading(void) const - ?reading@QCompass@QtMobility@@QBEPAVQCompassReading@2@XZ @ 178 NONAME ; class QtMobility::QCompassReading * QtMobility::QCompass::reading(void) const - ?reading@QMagnetometer@QtMobility@@QBEPAVQMagnetometerReading@2@XZ @ 179 NONAME ; class QtMobility::QMagnetometerReading * QtMobility::QMagnetometer::reading(void) const - ?reading@QOrientationSensor@QtMobility@@QBEPAVQOrientationReading@2@XZ @ 180 NONAME ; class QtMobility::QOrientationReading * QtMobility::QOrientationSensor::reading(void) const - ?reading@QProximitySensor@QtMobility@@QBEPAVQProximityReading@2@XZ @ 181 NONAME ; class QtMobility::QProximityReading * QtMobility::QProximitySensor::reading(void) const - ?reading@QRotationSensor@QtMobility@@QBEPAVQRotationReading@2@XZ @ 182 NONAME ; class QtMobility::QRotationReading * QtMobility::QRotationSensor::reading(void) const - ?reading@QSensor@QtMobility@@QBEPAVQSensorReading@2@XZ @ 183 NONAME ; class QtMobility::QSensorReading * QtMobility::QSensor::reading(void) const - ?reading@QSensorBackend@QtMobility@@QBEPAVQSensorReading@2@XZ @ 184 NONAME ; class QtMobility::QSensorReading * QtMobility::QSensorBackend::reading(void) const - ?reading@QTapSensor@QtMobility@@QBEPAVQTapReading@2@XZ @ 185 NONAME ; class QtMobility::QTapReading * QtMobility::QTapSensor::reading(void) const - ?readingChanged@QSensor@QtMobility@@IAEXXZ @ 186 NONAME ; void QtMobility::QSensor::readingChanged(void) - ?registerBackend@QSensorManager@QtMobility@@SAXABVQByteArray@@0PAVQSensorBackendFactory@2@@Z @ 187 NONAME ; void QtMobility::QSensorManager::registerBackend(class QByteArray const &, class QByteArray const &, class QtMobility::QSensorBackendFactory *) - ?registerStaticPlugin@QSensorManager@QtMobility@@SAXP6APAVQSensorPluginInterface@2@XZ@Z @ 188 NONAME ; void QtMobility::QSensorManager::registerStaticPlugin(class QtMobility::QSensorPluginInterface * (*)(void)) - ?removeFilter@QSensor@QtMobility@@QAEXPAVQSensorFilter@2@@Z @ 189 NONAME ; void QtMobility::QSensor::removeFilter(class QtMobility::QSensorFilter *) - ?sensorTypes@QSensor@QtMobility@@SA?AV?$QList@VQByteArray@@@@XZ @ 190 NONAME ; class QList QtMobility::QSensor::sensorTypes(void) - ?sensorsForType@QSensor@QtMobility@@SA?AV?$QList@VQByteArray@@@@ABVQByteArray@@@Z @ 191 NONAME ; class QList QtMobility::QSensor::sensorsForType(class QByteArray const &) - ?setActive@QSensor@QtMobility@@QAEX_N@Z @ 192 NONAME ; void QtMobility::QSensor::setActive(bool) - ?setAzimuth@QCompassReading@QtMobility@@QAEXM@Z @ 193 NONAME ; void QtMobility::QCompassReading::setAzimuth(float) - ?setCalibrated_x@QMagnetometerReading@QtMobility@@QAEXM@Z @ 194 NONAME ; void QtMobility::QMagnetometerReading::setCalibrated_x(float) - ?setCalibrated_y@QMagnetometerReading@QtMobility@@QAEXM@Z @ 195 NONAME ; void QtMobility::QMagnetometerReading::setCalibrated_y(float) - ?setCalibrated_z@QMagnetometerReading@QtMobility@@QAEXM@Z @ 196 NONAME ; void QtMobility::QMagnetometerReading::setCalibrated_z(float) - ?setCalibrationLevel@QCompassReading@QtMobility@@QAEXW4CalibrationLevel@12@@Z @ 197 NONAME ; void QtMobility::QCompassReading::setCalibrationLevel(enum QtMobility::QCompassReading::CalibrationLevel) - ?setCalibrationLevel@QMagnetometerReading@QtMobility@@QAEXW4CalibrationLevel@12@@Z @ 198 NONAME ; void QtMobility::QMagnetometerReading::setCalibrationLevel(enum QtMobility::QMagnetometerReading::CalibrationLevel) - ?setDoubleTap@QTapReading@QtMobility@@QAEX_N@Z @ 199 NONAME ; void QtMobility::QTapReading::setDoubleTap(bool) - ?setIdentifier@QSensor@QtMobility@@QAEXABVQByteArray@@@Z @ 200 NONAME ; void QtMobility::QSensor::setIdentifier(class QByteArray const &) - ?setLightLevel@QAmbientLightReading@QtMobility@@QAEXW4LightLevel@12@@Z @ 201 NONAME ; void QtMobility::QAmbientLightReading::setLightLevel(enum QtMobility::QAmbientLightReading::LightLevel) - ?setOrientation@QOrientationReading@QtMobility@@QAEXW4Orientation@12@@Z @ 202 NONAME ; void QtMobility::QOrientationReading::setOrientation(enum QtMobility::QOrientationReading::Orientation) - ?setProximity@QProximityReading@QtMobility@@QAEXW4Proximity@12@@Z @ 203 NONAME ; void QtMobility::QProximityReading::setProximity(enum QtMobility::QProximityReading::Proximity) - ?setReadings@QSensorBackend@QtMobility@@AAEXPAVQSensorReading@2@00@Z @ 204 NONAME ; void QtMobility::QSensorBackend::setReadings(class QtMobility::QSensorReading *, class QtMobility::QSensorReading *, class QtMobility::QSensorReading *) - ?setSensor@QSensorFilter@QtMobility@@MAEXPAVQSensor@2@@Z @ 205 NONAME ; void QtMobility::QSensorFilter::setSensor(class QtMobility::QSensor *) - ?setSignalEnabled@QSensor@QtMobility@@QAEX_N@Z @ 206 NONAME ; void QtMobility::QSensor::setSignalEnabled(bool) - ?setSupportedUpdatePolicies@QSensorBackend@QtMobility@@QAEXV?$QFlags@W4UpdatePolicy@QSensor@QtMobility@@@@@Z @ 207 NONAME ; void QtMobility::QSensorBackend::setSupportedUpdatePolicies(class QFlags) - ?setTapDirection@QTapReading@QtMobility@@QAEXW4TapDirection@12@@Z @ 208 NONAME ; void QtMobility::QTapReading::setTapDirection(enum QtMobility::QTapReading::TapDirection) - ?setTimestamp@QSensorReading@QtMobility@@QAEX_K@Z @ 209 NONAME ; void QtMobility::QSensorReading::setTimestamp(unsigned long long) - ?setType@QSensor@QtMobility@@QAEXABVQByteArray@@@Z @ 210 NONAME ; void QtMobility::QSensor::setType(class QByteArray const &) - ?setUpdateInterval@QSensor@QtMobility@@QAEXH@Z @ 211 NONAME ; void QtMobility::QSensor::setUpdateInterval(int) - ?setUpdatePolicy@QSensor@QtMobility@@QAEXW4UpdatePolicy@12@@Z @ 212 NONAME ; void QtMobility::QSensor::setUpdatePolicy(enum QtMobility::QSensor::UpdatePolicy) - ?setX@QAccelerometerReading@QtMobility@@QAEXM@Z @ 213 NONAME ; void QtMobility::QAccelerometerReading::setX(float) - ?setX@QMagnetometerReading@QtMobility@@QAEXM@Z @ 214 NONAME ; void QtMobility::QMagnetometerReading::setX(float) - ?setX@QRotationReading@QtMobility@@QAEXM@Z @ 215 NONAME ; void QtMobility::QRotationReading::setX(float) - ?setY@QAccelerometerReading@QtMobility@@QAEXM@Z @ 216 NONAME ; void QtMobility::QAccelerometerReading::setY(float) - ?setY@QMagnetometerReading@QtMobility@@QAEXM@Z @ 217 NONAME ; void QtMobility::QMagnetometerReading::setY(float) - ?setY@QRotationReading@QtMobility@@QAEXM@Z @ 218 NONAME ; void QtMobility::QRotationReading::setY(float) - ?setZ@QAccelerometerReading@QtMobility@@QAEXM@Z @ 219 NONAME ; void QtMobility::QAccelerometerReading::setZ(float) - ?setZ@QMagnetometerReading@QtMobility@@QAEXM@Z @ 220 NONAME ; void QtMobility::QMagnetometerReading::setZ(float) - ?setZ@QRotationReading@QtMobility@@QAEXM@Z @ 221 NONAME ; void QtMobility::QRotationReading::setZ(float) - ?start@QSensor@QtMobility@@QAEXXZ @ 222 NONAME ; void QtMobility::QSensor::start(void) - ?stop@QSensor@QtMobility@@QAEXXZ @ 223 NONAME ; void QtMobility::QSensor::stop(void) - ?supportedUpdatePolicies@QSensor@QtMobility@@QBE?AV?$QFlags@W4UpdatePolicy@QSensor@QtMobility@@@@XZ @ 224 NONAME ; class QFlags QtMobility::QSensor::supportedUpdatePolicies(void) const - ?tapDirection@QTapReading@QtMobility@@QBE?AW4TapDirection@12@XZ @ 225 NONAME ; enum QtMobility::QTapReading::TapDirection QtMobility::QTapReading::tapDirection(void) const - ?timestamp@QSensorReading@QtMobility@@QBE_KXZ @ 226 NONAME ; unsigned long long QtMobility::QSensorReading::timestamp(void) const - ?tr@QAccelerometer@QtMobility@@SA?AVQString@@PBD0@Z @ 227 NONAME ; class QString QtMobility::QAccelerometer::tr(char const *, char const *) - ?tr@QAccelerometer@QtMobility@@SA?AVQString@@PBD0H@Z @ 228 NONAME ; class QString QtMobility::QAccelerometer::tr(char const *, char const *, int) - ?tr@QAccelerometerReading@QtMobility@@SA?AVQString@@PBD0@Z @ 229 NONAME ; class QString QtMobility::QAccelerometerReading::tr(char const *, char const *) - ?tr@QAccelerometerReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 230 NONAME ; class QString QtMobility::QAccelerometerReading::tr(char const *, char const *, int) - ?tr@QAmbientLightReading@QtMobility@@SA?AVQString@@PBD0@Z @ 231 NONAME ; class QString QtMobility::QAmbientLightReading::tr(char const *, char const *) - ?tr@QAmbientLightReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 232 NONAME ; class QString QtMobility::QAmbientLightReading::tr(char const *, char const *, int) - ?tr@QAmbientLightSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 233 NONAME ; class QString QtMobility::QAmbientLightSensor::tr(char const *, char const *) - ?tr@QAmbientLightSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 234 NONAME ; class QString QtMobility::QAmbientLightSensor::tr(char const *, char const *, int) - ?tr@QCompass@QtMobility@@SA?AVQString@@PBD0@Z @ 235 NONAME ; class QString QtMobility::QCompass::tr(char const *, char const *) - ?tr@QCompass@QtMobility@@SA?AVQString@@PBD0H@Z @ 236 NONAME ; class QString QtMobility::QCompass::tr(char const *, char const *, int) - ?tr@QCompassReading@QtMobility@@SA?AVQString@@PBD0@Z @ 237 NONAME ; class QString QtMobility::QCompassReading::tr(char const *, char const *) - ?tr@QCompassReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 238 NONAME ; class QString QtMobility::QCompassReading::tr(char const *, char const *, int) - ?tr@QMagnetometer@QtMobility@@SA?AVQString@@PBD0@Z @ 239 NONAME ; class QString QtMobility::QMagnetometer::tr(char const *, char const *) - ?tr@QMagnetometer@QtMobility@@SA?AVQString@@PBD0H@Z @ 240 NONAME ; class QString QtMobility::QMagnetometer::tr(char const *, char const *, int) - ?tr@QMagnetometerReading@QtMobility@@SA?AVQString@@PBD0@Z @ 241 NONAME ; class QString QtMobility::QMagnetometerReading::tr(char const *, char const *) - ?tr@QMagnetometerReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 242 NONAME ; class QString QtMobility::QMagnetometerReading::tr(char const *, char const *, int) - ?tr@QOrientationReading@QtMobility@@SA?AVQString@@PBD0@Z @ 243 NONAME ; class QString QtMobility::QOrientationReading::tr(char const *, char const *) - ?tr@QOrientationReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 244 NONAME ; class QString QtMobility::QOrientationReading::tr(char const *, char const *, int) - ?tr@QOrientationSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 245 NONAME ; class QString QtMobility::QOrientationSensor::tr(char const *, char const *) - ?tr@QOrientationSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 246 NONAME ; class QString QtMobility::QOrientationSensor::tr(char const *, char const *, int) - ?tr@QProximityReading@QtMobility@@SA?AVQString@@PBD0@Z @ 247 NONAME ; class QString QtMobility::QProximityReading::tr(char const *, char const *) - ?tr@QProximityReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 248 NONAME ; class QString QtMobility::QProximityReading::tr(char const *, char const *, int) - ?tr@QProximitySensor@QtMobility@@SA?AVQString@@PBD0@Z @ 249 NONAME ; class QString QtMobility::QProximitySensor::tr(char const *, char const *) - ?tr@QProximitySensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 250 NONAME ; class QString QtMobility::QProximitySensor::tr(char const *, char const *, int) - ?tr@QRotationReading@QtMobility@@SA?AVQString@@PBD0@Z @ 251 NONAME ; class QString QtMobility::QRotationReading::tr(char const *, char const *) - ?tr@QRotationReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 252 NONAME ; class QString QtMobility::QRotationReading::tr(char const *, char const *, int) - ?tr@QRotationSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 253 NONAME ; class QString QtMobility::QRotationSensor::tr(char const *, char const *) - ?tr@QRotationSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 254 NONAME ; class QString QtMobility::QRotationSensor::tr(char const *, char const *, int) - ?tr@QSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 255 NONAME ; class QString QtMobility::QSensor::tr(char const *, char const *) - ?tr@QSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 256 NONAME ; class QString QtMobility::QSensor::tr(char const *, char const *, int) - ?tr@QSensorBackend@QtMobility@@SA?AVQString@@PBD0@Z @ 257 NONAME ; class QString QtMobility::QSensorBackend::tr(char const *, char const *) - ?tr@QSensorBackend@QtMobility@@SA?AVQString@@PBD0H@Z @ 258 NONAME ; class QString QtMobility::QSensorBackend::tr(char const *, char const *, int) - ?tr@QSensorReading@QtMobility@@SA?AVQString@@PBD0@Z @ 259 NONAME ; class QString QtMobility::QSensorReading::tr(char const *, char const *) - ?tr@QSensorReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 260 NONAME ; class QString QtMobility::QSensorReading::tr(char const *, char const *, int) - ?tr@QTapReading@QtMobility@@SA?AVQString@@PBD0@Z @ 261 NONAME ; class QString QtMobility::QTapReading::tr(char const *, char const *) - ?tr@QTapReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 262 NONAME ; class QString QtMobility::QTapReading::tr(char const *, char const *, int) - ?tr@QTapSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 263 NONAME ; class QString QtMobility::QTapSensor::tr(char const *, char const *) - ?tr@QTapSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 264 NONAME ; class QString QtMobility::QTapSensor::tr(char const *, char const *, int) - ?trUtf8@QAccelerometer@QtMobility@@SA?AVQString@@PBD0@Z @ 265 NONAME ; class QString QtMobility::QAccelerometer::trUtf8(char const *, char const *) - ?trUtf8@QAccelerometer@QtMobility@@SA?AVQString@@PBD0H@Z @ 266 NONAME ; class QString QtMobility::QAccelerometer::trUtf8(char const *, char const *, int) - ?trUtf8@QAccelerometerReading@QtMobility@@SA?AVQString@@PBD0@Z @ 267 NONAME ; class QString QtMobility::QAccelerometerReading::trUtf8(char const *, char const *) - ?trUtf8@QAccelerometerReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 268 NONAME ; class QString QtMobility::QAccelerometerReading::trUtf8(char const *, char const *, int) - ?trUtf8@QAmbientLightReading@QtMobility@@SA?AVQString@@PBD0@Z @ 269 NONAME ; class QString QtMobility::QAmbientLightReading::trUtf8(char const *, char const *) - ?trUtf8@QAmbientLightReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 270 NONAME ; class QString QtMobility::QAmbientLightReading::trUtf8(char const *, char const *, int) - ?trUtf8@QAmbientLightSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 271 NONAME ; class QString QtMobility::QAmbientLightSensor::trUtf8(char const *, char const *) - ?trUtf8@QAmbientLightSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 272 NONAME ; class QString QtMobility::QAmbientLightSensor::trUtf8(char const *, char const *, int) - ?trUtf8@QCompass@QtMobility@@SA?AVQString@@PBD0@Z @ 273 NONAME ; class QString QtMobility::QCompass::trUtf8(char const *, char const *) - ?trUtf8@QCompass@QtMobility@@SA?AVQString@@PBD0H@Z @ 274 NONAME ; class QString QtMobility::QCompass::trUtf8(char const *, char const *, int) - ?trUtf8@QCompassReading@QtMobility@@SA?AVQString@@PBD0@Z @ 275 NONAME ; class QString QtMobility::QCompassReading::trUtf8(char const *, char const *) - ?trUtf8@QCompassReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 276 NONAME ; class QString QtMobility::QCompassReading::trUtf8(char const *, char const *, int) - ?trUtf8@QMagnetometer@QtMobility@@SA?AVQString@@PBD0@Z @ 277 NONAME ; class QString QtMobility::QMagnetometer::trUtf8(char const *, char const *) - ?trUtf8@QMagnetometer@QtMobility@@SA?AVQString@@PBD0H@Z @ 278 NONAME ; class QString QtMobility::QMagnetometer::trUtf8(char const *, char const *, int) - ?trUtf8@QMagnetometerReading@QtMobility@@SA?AVQString@@PBD0@Z @ 279 NONAME ; class QString QtMobility::QMagnetometerReading::trUtf8(char const *, char const *) - ?trUtf8@QMagnetometerReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 280 NONAME ; class QString QtMobility::QMagnetometerReading::trUtf8(char const *, char const *, int) - ?trUtf8@QOrientationReading@QtMobility@@SA?AVQString@@PBD0@Z @ 281 NONAME ; class QString QtMobility::QOrientationReading::trUtf8(char const *, char const *) - ?trUtf8@QOrientationReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 282 NONAME ; class QString QtMobility::QOrientationReading::trUtf8(char const *, char const *, int) - ?trUtf8@QOrientationSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 283 NONAME ; class QString QtMobility::QOrientationSensor::trUtf8(char const *, char const *) - ?trUtf8@QOrientationSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 284 NONAME ; class QString QtMobility::QOrientationSensor::trUtf8(char const *, char const *, int) - ?trUtf8@QProximityReading@QtMobility@@SA?AVQString@@PBD0@Z @ 285 NONAME ; class QString QtMobility::QProximityReading::trUtf8(char const *, char const *) - ?trUtf8@QProximityReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 286 NONAME ; class QString QtMobility::QProximityReading::trUtf8(char const *, char const *, int) - ?trUtf8@QProximitySensor@QtMobility@@SA?AVQString@@PBD0@Z @ 287 NONAME ; class QString QtMobility::QProximitySensor::trUtf8(char const *, char const *) - ?trUtf8@QProximitySensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 288 NONAME ; class QString QtMobility::QProximitySensor::trUtf8(char const *, char const *, int) - ?trUtf8@QRotationReading@QtMobility@@SA?AVQString@@PBD0@Z @ 289 NONAME ; class QString QtMobility::QRotationReading::trUtf8(char const *, char const *) - ?trUtf8@QRotationReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 290 NONAME ; class QString QtMobility::QRotationReading::trUtf8(char const *, char const *, int) - ?trUtf8@QRotationSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 291 NONAME ; class QString QtMobility::QRotationSensor::trUtf8(char const *, char const *) - ?trUtf8@QRotationSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 292 NONAME ; class QString QtMobility::QRotationSensor::trUtf8(char const *, char const *, int) - ?trUtf8@QSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 293 NONAME ; class QString QtMobility::QSensor::trUtf8(char const *, char const *) - ?trUtf8@QSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 294 NONAME ; class QString QtMobility::QSensor::trUtf8(char const *, char const *, int) - ?trUtf8@QSensorBackend@QtMobility@@SA?AVQString@@PBD0@Z @ 295 NONAME ; class QString QtMobility::QSensorBackend::trUtf8(char const *, char const *) - ?trUtf8@QSensorBackend@QtMobility@@SA?AVQString@@PBD0H@Z @ 296 NONAME ; class QString QtMobility::QSensorBackend::trUtf8(char const *, char const *, int) - ?trUtf8@QSensorReading@QtMobility@@SA?AVQString@@PBD0@Z @ 297 NONAME ; class QString QtMobility::QSensorReading::trUtf8(char const *, char const *) - ?trUtf8@QSensorReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 298 NONAME ; class QString QtMobility::QSensorReading::trUtf8(char const *, char const *, int) - ?trUtf8@QTapReading@QtMobility@@SA?AVQString@@PBD0@Z @ 299 NONAME ; class QString QtMobility::QTapReading::trUtf8(char const *, char const *) - ?trUtf8@QTapReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 300 NONAME ; class QString QtMobility::QTapReading::trUtf8(char const *, char const *, int) - ?trUtf8@QTapSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 301 NONAME ; class QString QtMobility::QTapSensor::trUtf8(char const *, char const *) - ?trUtf8@QTapSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 302 NONAME ; class QString QtMobility::QTapSensor::trUtf8(char const *, char const *, int) - ?type@QSensor@QtMobility@@QBE?AVQByteArray@@XZ @ 303 NONAME ; class QByteArray QtMobility::QSensor::type(void) const - ?updateInterval@QSensor@QtMobility@@QBEHXZ @ 304 NONAME ; int QtMobility::QSensor::updateInterval(void) const - ?updatePolicy@QSensor@QtMobility@@QBE?AW4UpdatePolicy@12@XZ @ 305 NONAME ; enum QtMobility::QSensor::UpdatePolicy QtMobility::QSensor::updatePolicy(void) const - ?x@QAccelerometerReading@QtMobility@@QBEMXZ @ 306 NONAME ; float QtMobility::QAccelerometerReading::x(void) const - ?x@QMagnetometerReading@QtMobility@@QBEMXZ @ 307 NONAME ; float QtMobility::QMagnetometerReading::x(void) const - ?x@QRotationReading@QtMobility@@QBEMXZ @ 308 NONAME ; float QtMobility::QRotationReading::x(void) const - ?y@QAccelerometerReading@QtMobility@@QBEMXZ @ 309 NONAME ; float QtMobility::QAccelerometerReading::y(void) const - ?y@QMagnetometerReading@QtMobility@@QBEMXZ @ 310 NONAME ; float QtMobility::QMagnetometerReading::y(void) const - ?y@QRotationReading@QtMobility@@QBEMXZ @ 311 NONAME ; float QtMobility::QRotationReading::y(void) const - ?z@QAccelerometerReading@QtMobility@@QBEMXZ @ 312 NONAME ; float QtMobility::QAccelerometerReading::z(void) const - ?z@QMagnetometerReading@QtMobility@@QBEMXZ @ 313 NONAME ; float QtMobility::QMagnetometerReading::z(void) const - ?z@QRotationReading@QtMobility@@QBEMXZ @ 314 NONAME ; float QtMobility::QRotationReading::z(void) const - ?staticMetaObject@QAccelerometer@QtMobility@@2UQMetaObject@@B @ 315 NONAME ; struct QMetaObject const QtMobility::QAccelerometer::staticMetaObject - ?staticMetaObject@QSensor@QtMobility@@2UQMetaObject@@B @ 316 NONAME ; struct QMetaObject const QtMobility::QSensor::staticMetaObject - ?type@QCompass@QtMobility@@2PBDB @ 317 NONAME ; char const * const QtMobility::QCompass::type - ?staticMetaObject@QCompassReading@QtMobility@@2UQMetaObject@@B @ 318 NONAME ; struct QMetaObject const QtMobility::QCompassReading::staticMetaObject - ?staticMetaObject@QAmbientLightReading@QtMobility@@2UQMetaObject@@B @ 319 NONAME ; struct QMetaObject const QtMobility::QAmbientLightReading::staticMetaObject - ?staticMetaObject@QAccelerometerReading@QtMobility@@2UQMetaObject@@B @ 320 NONAME ; struct QMetaObject const QtMobility::QAccelerometerReading::staticMetaObject - ?staticMetaObject@QSensorBackend@QtMobility@@2UQMetaObject@@B @ 321 NONAME ; struct QMetaObject const QtMobility::QSensorBackend::staticMetaObject - ?type@QAmbientLightSensor@QtMobility@@2PBDB @ 322 NONAME ; char const * const QtMobility::QAmbientLightSensor::type - ?staticMetaObject@QOrientationSensor@QtMobility@@2UQMetaObject@@B @ 323 NONAME ; struct QMetaObject const QtMobility::QOrientationSensor::staticMetaObject - ?staticMetaObject@QRotationReading@QtMobility@@2UQMetaObject@@B @ 324 NONAME ; struct QMetaObject const QtMobility::QRotationReading::staticMetaObject - ?type@QProximitySensor@QtMobility@@2PBDB @ 325 NONAME ; char const * const QtMobility::QProximitySensor::type - ?type@QOrientationSensor@QtMobility@@2PBDB @ 326 NONAME ; char const * const QtMobility::QOrientationSensor::type - ?staticMetaObject@QCompass@QtMobility@@2UQMetaObject@@B @ 327 NONAME ; struct QMetaObject const QtMobility::QCompass::staticMetaObject - ?staticMetaObject@QProximityReading@QtMobility@@2UQMetaObject@@B @ 328 NONAME ; struct QMetaObject const QtMobility::QProximityReading::staticMetaObject - ?staticMetaObject@QTapReading@QtMobility@@2UQMetaObject@@B @ 329 NONAME ; struct QMetaObject const QtMobility::QTapReading::staticMetaObject - ?type@QTapSensor@QtMobility@@2PBDB @ 330 NONAME ; char const * const QtMobility::QTapSensor::type - ?staticMetaObject@QMagnetometer@QtMobility@@2UQMetaObject@@B @ 331 NONAME ; struct QMetaObject const QtMobility::QMagnetometer::staticMetaObject - ?staticMetaObject@QProximitySensor@QtMobility@@2UQMetaObject@@B @ 332 NONAME ; struct QMetaObject const QtMobility::QProximitySensor::staticMetaObject - ?type@QMagnetometer@QtMobility@@2PBDB @ 333 NONAME ; char const * const QtMobility::QMagnetometer::type - ?staticMetaObject@QSensorReading@QtMobility@@2UQMetaObject@@B @ 334 NONAME ; struct QMetaObject const QtMobility::QSensorReading::staticMetaObject - ?staticMetaObject@QRotationSensor@QtMobility@@2UQMetaObject@@B @ 335 NONAME ; struct QMetaObject const QtMobility::QRotationSensor::staticMetaObject - ?staticMetaObject@QTapSensor@QtMobility@@2UQMetaObject@@B @ 336 NONAME ; struct QMetaObject const QtMobility::QTapSensor::staticMetaObject - ?staticMetaObject@QOrientationReading@QtMobility@@2UQMetaObject@@B @ 337 NONAME ; struct QMetaObject const QtMobility::QOrientationReading::staticMetaObject - ?staticMetaObject@QAmbientLightSensor@QtMobility@@2UQMetaObject@@B @ 338 NONAME ; struct QMetaObject const QtMobility::QAmbientLightSensor::staticMetaObject - ?type@QRotationSensor@QtMobility@@2PBDB @ 339 NONAME ; char const * const QtMobility::QRotationSensor::type - ?type@QAccelerometer@QtMobility@@2PBDB @ 340 NONAME ; char const * const QtMobility::QAccelerometer::type - ?staticMetaObject@QMagnetometerReading@QtMobility@@2UQMetaObject@@B @ 341 NONAME ; struct QMetaObject const QtMobility::QMagnetometerReading::staticMetaObject + ??0QSensorPluginLoader@QtMobility@@QAE@PBDABVQString@@@Z @ 18 NONAME ; QtMobility::QSensorPluginLoader::QSensorPluginLoader(char const *, class QString const &) + ??0QSensorReading@QtMobility@@IAE@PAVQObject@@PAVQSensorReadingPrivate@1@@Z @ 19 NONAME ; QtMobility::QSensorReading::QSensorReading(class QObject *, class QtMobility::QSensorReadingPrivate *) + ??0QTapReading@QtMobility@@QAE@PAVQObject@@@Z @ 20 NONAME ; QtMobility::QTapReading::QTapReading(class QObject *) + ??0QTapSensor@QtMobility@@QAE@PAVQObject@@@Z @ 21 NONAME ; QtMobility::QTapSensor::QTapSensor(class QObject *) + ??1QAccelerometer@QtMobility@@UAE@XZ @ 22 NONAME ; QtMobility::QAccelerometer::~QAccelerometer(void) + ??1QAccelerometerReading@QtMobility@@UAE@XZ @ 23 NONAME ; QtMobility::QAccelerometerReading::~QAccelerometerReading(void) + ??1QAmbientLightReading@QtMobility@@UAE@XZ @ 24 NONAME ; QtMobility::QAmbientLightReading::~QAmbientLightReading(void) + ??1QAmbientLightSensor@QtMobility@@UAE@XZ @ 25 NONAME ; QtMobility::QAmbientLightSensor::~QAmbientLightSensor(void) + ??1QCompass@QtMobility@@UAE@XZ @ 26 NONAME ; QtMobility::QCompass::~QCompass(void) + ??1QCompassReading@QtMobility@@UAE@XZ @ 27 NONAME ; QtMobility::QCompassReading::~QCompassReading(void) + ??1QMagnetometer@QtMobility@@UAE@XZ @ 28 NONAME ; QtMobility::QMagnetometer::~QMagnetometer(void) + ??1QMagnetometerReading@QtMobility@@UAE@XZ @ 29 NONAME ; QtMobility::QMagnetometerReading::~QMagnetometerReading(void) + ??1QOrientationReading@QtMobility@@UAE@XZ @ 30 NONAME ; QtMobility::QOrientationReading::~QOrientationReading(void) + ??1QOrientationSensor@QtMobility@@UAE@XZ @ 31 NONAME ; QtMobility::QOrientationSensor::~QOrientationSensor(void) + ??1QProximityReading@QtMobility@@UAE@XZ @ 32 NONAME ; QtMobility::QProximityReading::~QProximityReading(void) + ??1QProximitySensor@QtMobility@@UAE@XZ @ 33 NONAME ; QtMobility::QProximitySensor::~QProximitySensor(void) + ??1QRotationReading@QtMobility@@UAE@XZ @ 34 NONAME ; QtMobility::QRotationReading::~QRotationReading(void) + ??1QRotationSensor@QtMobility@@UAE@XZ @ 35 NONAME ; QtMobility::QRotationSensor::~QRotationSensor(void) + ??1QSensor@QtMobility@@UAE@XZ @ 36 NONAME ; QtMobility::QSensor::~QSensor(void) + ??1QSensorBackend@QtMobility@@UAE@XZ @ 37 NONAME ; QtMobility::QSensorBackend::~QSensorBackend(void) + ??1QSensorBackendFactory@QtMobility@@IAE@XZ @ 38 NONAME ; QtMobility::QSensorBackendFactory::~QSensorBackendFactory(void) + ??1QSensorFilter@QtMobility@@IAE@XZ @ 39 NONAME ; QtMobility::QSensorFilter::~QSensorFilter(void) + ??1QSensorPluginInterface@QtMobility@@IAE@XZ @ 40 NONAME ; QtMobility::QSensorPluginInterface::~QSensorPluginInterface(void) + ??1QSensorPluginLoader@QtMobility@@QAE@XZ @ 41 NONAME ; QtMobility::QSensorPluginLoader::~QSensorPluginLoader(void) + ??1QSensorReading@QtMobility@@UAE@XZ @ 42 NONAME ; QtMobility::QSensorReading::~QSensorReading(void) + ??1QTapReading@QtMobility@@UAE@XZ @ 43 NONAME ; QtMobility::QTapReading::~QTapReading(void) + ??1QTapSensor@QtMobility@@UAE@XZ @ 44 NONAME ; QtMobility::QTapSensor::~QTapSensor(void) + ??_EQAccelerometer@QtMobility@@UAE@I@Z @ 45 NONAME ; QtMobility::QAccelerometer::~QAccelerometer(unsigned int) + ??_EQAccelerometerReading@QtMobility@@UAE@I@Z @ 46 NONAME ; QtMobility::QAccelerometerReading::~QAccelerometerReading(unsigned int) + ??_EQAmbientLightReading@QtMobility@@UAE@I@Z @ 47 NONAME ; QtMobility::QAmbientLightReading::~QAmbientLightReading(unsigned int) + ??_EQAmbientLightSensor@QtMobility@@UAE@I@Z @ 48 NONAME ; QtMobility::QAmbientLightSensor::~QAmbientLightSensor(unsigned int) + ??_EQCompass@QtMobility@@UAE@I@Z @ 49 NONAME ; QtMobility::QCompass::~QCompass(unsigned int) + ??_EQCompassReading@QtMobility@@UAE@I@Z @ 50 NONAME ; QtMobility::QCompassReading::~QCompassReading(unsigned int) + ??_EQMagnetometer@QtMobility@@UAE@I@Z @ 51 NONAME ; QtMobility::QMagnetometer::~QMagnetometer(unsigned int) + ??_EQMagnetometerReading@QtMobility@@UAE@I@Z @ 52 NONAME ; QtMobility::QMagnetometerReading::~QMagnetometerReading(unsigned int) + ??_EQOrientationReading@QtMobility@@UAE@I@Z @ 53 NONAME ; QtMobility::QOrientationReading::~QOrientationReading(unsigned int) + ??_EQOrientationSensor@QtMobility@@UAE@I@Z @ 54 NONAME ; QtMobility::QOrientationSensor::~QOrientationSensor(unsigned int) + ??_EQProximityReading@QtMobility@@UAE@I@Z @ 55 NONAME ; QtMobility::QProximityReading::~QProximityReading(unsigned int) + ??_EQProximitySensor@QtMobility@@UAE@I@Z @ 56 NONAME ; QtMobility::QProximitySensor::~QProximitySensor(unsigned int) + ??_EQRotationReading@QtMobility@@UAE@I@Z @ 57 NONAME ; QtMobility::QRotationReading::~QRotationReading(unsigned int) + ??_EQRotationSensor@QtMobility@@UAE@I@Z @ 58 NONAME ; QtMobility::QRotationSensor::~QRotationSensor(unsigned int) + ??_EQSensor@QtMobility@@UAE@I@Z @ 59 NONAME ; QtMobility::QSensor::~QSensor(unsigned int) + ??_EQSensorBackend@QtMobility@@UAE@I@Z @ 60 NONAME ; QtMobility::QSensorBackend::~QSensorBackend(unsigned int) + ??_EQSensorReading@QtMobility@@UAE@I@Z @ 61 NONAME ; QtMobility::QSensorReading::~QSensorReading(unsigned int) + ??_EQTapReading@QtMobility@@UAE@I@Z @ 62 NONAME ; QtMobility::QTapReading::~QTapReading(unsigned int) + ??_EQTapSensor@QtMobility@@UAE@I@Z @ 63 NONAME ; QtMobility::QTapSensor::~QTapSensor(unsigned int) + ?addDataRate@QSensorBackend@QtMobility@@QAEXMM@Z @ 64 NONAME ; void QtMobility::QSensorBackend::addDataRate(float, float) + ?addFilter@QSensor@QtMobility@@QAEXPAVQSensorFilter@2@@Z @ 65 NONAME ; void QtMobility::QSensor::addFilter(class QtMobility::QSensorFilter *) + ?addOutputRange@QSensorBackend@QtMobility@@QAEXMMM@Z @ 66 NONAME ; void QtMobility::QSensorBackend::addOutputRange(float, float, float) + ?availableDataRates@QSensor@QtMobility@@QBE?AV?$QList@U?$QPair@HH@@@@XZ @ 67 NONAME ; class QList > QtMobility::QSensor::availableDataRates(void) const + ?azimuth@QCompassReading@QtMobility@@QBEMXZ @ 68 NONAME ; float QtMobility::QCompassReading::azimuth(void) const + ?busyChanged@QSensor@QtMobility@@IAEXXZ @ 69 NONAME ; void QtMobility::QSensor::busyChanged(void) + ?calibrationLevel@QCompassReading@QtMobility@@QBEMXZ @ 70 NONAME ; float QtMobility::QCompassReading::calibrationLevel(void) const + ?calibrationLevel@QMagnetometerReading@QtMobility@@QBEMXZ @ 71 NONAME ; float QtMobility::QMagnetometerReading::calibrationLevel(void) const + ?close@QProximityReading@QtMobility@@QBE_NXZ @ 72 NONAME ; bool QtMobility::QProximityReading::close(void) const + ?connectToBackend@QSensor@QtMobility@@QAE_NXZ @ 73 NONAME ; bool QtMobility::QSensor::connectToBackend(void) + ?copyValuesFrom@QAccelerometerReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 74 NONAME ; void QtMobility::QAccelerometerReading::copyValuesFrom(class QtMobility::QSensorReading *) + ?copyValuesFrom@QAmbientLightReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 75 NONAME ; void QtMobility::QAmbientLightReading::copyValuesFrom(class QtMobility::QSensorReading *) + ?copyValuesFrom@QCompassReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 76 NONAME ; void QtMobility::QCompassReading::copyValuesFrom(class QtMobility::QSensorReading *) + ?copyValuesFrom@QMagnetometerReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 77 NONAME ; void QtMobility::QMagnetometerReading::copyValuesFrom(class QtMobility::QSensorReading *) + ?copyValuesFrom@QOrientationReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 78 NONAME ; void QtMobility::QOrientationReading::copyValuesFrom(class QtMobility::QSensorReading *) + ?copyValuesFrom@QProximityReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 79 NONAME ; void QtMobility::QProximityReading::copyValuesFrom(class QtMobility::QSensorReading *) + ?copyValuesFrom@QRotationReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 80 NONAME ; void QtMobility::QRotationReading::copyValuesFrom(class QtMobility::QSensorReading *) + ?copyValuesFrom@QTapReading@QtMobility@@UAEXPAVQSensorReading@2@@Z @ 81 NONAME ; void QtMobility::QTapReading::copyValuesFrom(class QtMobility::QSensorReading *) + ?createBackend@QSensorManager@QtMobility@@SAPAVQSensorBackend@2@PAVQSensor@2@@Z @ 82 NONAME ; class QtMobility::QSensorBackend * QtMobility::QSensorManager::createBackend(class QtMobility::QSensor *) + ?d_func@QSensor@QtMobility@@IBEPAVQSensorPrivate@2@XZ @ 83 NONAME ; class QtMobility::QSensorPrivate * QtMobility::QSensor::d_func(void) const + ?d_ptr@QSensorReading@QtMobility@@IAEPAV?$QScopedPointer@VQSensorReadingPrivate@QtMobility@@U?$QScopedPointerDeleter@VQSensorReadingPrivate@QtMobility@@@@@@XZ @ 84 NONAME ; class QScopedPointer > * QtMobility::QSensorReading::d_ptr(void) + ?dataRate@QSensor@QtMobility@@QBEHXZ @ 85 NONAME ; int QtMobility::QSensor::dataRate(void) const + ?defaultSensorForType@QSensor@QtMobility@@SA?AVQByteArray@@ABV3@@Z @ 86 NONAME ; class QByteArray QtMobility::QSensor::defaultSensorForType(class QByteArray const &) + ?description@QSensor@QtMobility@@QBE?AVQString@@XZ @ 87 NONAME ; class QString QtMobility::QSensor::description(void) const + ?error@QSensor@QtMobility@@QBEHXZ @ 88 NONAME ; int QtMobility::QSensor::error(void) const + ?filter@QAccelerometerFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 89 NONAME ; bool QtMobility::QAccelerometerFilter::filter(class QtMobility::QSensorReading *) + ?filter@QAmbientLightFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 90 NONAME ; bool QtMobility::QAmbientLightFilter::filter(class QtMobility::QSensorReading *) + ?filter@QCompassFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 91 NONAME ; bool QtMobility::QCompassFilter::filter(class QtMobility::QSensorReading *) + ?filter@QMagnetometerFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 92 NONAME ; bool QtMobility::QMagnetometerFilter::filter(class QtMobility::QSensorReading *) + ?filter@QOrientationFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 93 NONAME ; bool QtMobility::QOrientationFilter::filter(class QtMobility::QSensorReading *) + ?filter@QProximityFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 94 NONAME ; bool QtMobility::QProximityFilter::filter(class QtMobility::QSensorReading *) + ?filter@QRotationFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 95 NONAME ; bool QtMobility::QRotationFilter::filter(class QtMobility::QSensorReading *) + ?filter@QTapFilter@QtMobility@@EAE_NPAVQSensorReading@2@@Z @ 96 NONAME ; bool QtMobility::QTapFilter::filter(class QtMobility::QSensorReading *) + ?getStaticMetaObject@QAccelerometer@QtMobility@@SAABUQMetaObject@@XZ @ 97 NONAME ; struct QMetaObject const & QtMobility::QAccelerometer::getStaticMetaObject(void) + ?getStaticMetaObject@QAccelerometerReading@QtMobility@@SAABUQMetaObject@@XZ @ 98 NONAME ; struct QMetaObject const & QtMobility::QAccelerometerReading::getStaticMetaObject(void) + ?getStaticMetaObject@QAmbientLightReading@QtMobility@@SAABUQMetaObject@@XZ @ 99 NONAME ; struct QMetaObject const & QtMobility::QAmbientLightReading::getStaticMetaObject(void) + ?getStaticMetaObject@QAmbientLightSensor@QtMobility@@SAABUQMetaObject@@XZ @ 100 NONAME ; struct QMetaObject const & QtMobility::QAmbientLightSensor::getStaticMetaObject(void) + ?getStaticMetaObject@QCompass@QtMobility@@SAABUQMetaObject@@XZ @ 101 NONAME ; struct QMetaObject const & QtMobility::QCompass::getStaticMetaObject(void) + ?getStaticMetaObject@QCompassReading@QtMobility@@SAABUQMetaObject@@XZ @ 102 NONAME ; struct QMetaObject const & QtMobility::QCompassReading::getStaticMetaObject(void) + ?getStaticMetaObject@QMagnetometer@QtMobility@@SAABUQMetaObject@@XZ @ 103 NONAME ; struct QMetaObject const & QtMobility::QMagnetometer::getStaticMetaObject(void) + ?getStaticMetaObject@QMagnetometerReading@QtMobility@@SAABUQMetaObject@@XZ @ 104 NONAME ; struct QMetaObject const & QtMobility::QMagnetometerReading::getStaticMetaObject(void) + ?getStaticMetaObject@QOrientationReading@QtMobility@@SAABUQMetaObject@@XZ @ 105 NONAME ; struct QMetaObject const & QtMobility::QOrientationReading::getStaticMetaObject(void) + ?getStaticMetaObject@QOrientationSensor@QtMobility@@SAABUQMetaObject@@XZ @ 106 NONAME ; struct QMetaObject const & QtMobility::QOrientationSensor::getStaticMetaObject(void) + ?getStaticMetaObject@QProximityReading@QtMobility@@SAABUQMetaObject@@XZ @ 107 NONAME ; struct QMetaObject const & QtMobility::QProximityReading::getStaticMetaObject(void) + ?getStaticMetaObject@QProximitySensor@QtMobility@@SAABUQMetaObject@@XZ @ 108 NONAME ; struct QMetaObject const & QtMobility::QProximitySensor::getStaticMetaObject(void) + ?getStaticMetaObject@QRotationReading@QtMobility@@SAABUQMetaObject@@XZ @ 109 NONAME ; struct QMetaObject const & QtMobility::QRotationReading::getStaticMetaObject(void) + ?getStaticMetaObject@QRotationSensor@QtMobility@@SAABUQMetaObject@@XZ @ 110 NONAME ; struct QMetaObject const & QtMobility::QRotationSensor::getStaticMetaObject(void) + ?getStaticMetaObject@QSensor@QtMobility@@SAABUQMetaObject@@XZ @ 111 NONAME ; struct QMetaObject const & QtMobility::QSensor::getStaticMetaObject(void) + ?getStaticMetaObject@QSensorBackend@QtMobility@@SAABUQMetaObject@@XZ @ 112 NONAME ; struct QMetaObject const & QtMobility::QSensorBackend::getStaticMetaObject(void) + ?getStaticMetaObject@QSensorReading@QtMobility@@SAABUQMetaObject@@XZ @ 113 NONAME ; struct QMetaObject const & QtMobility::QSensorReading::getStaticMetaObject(void) + ?getStaticMetaObject@QTapReading@QtMobility@@SAABUQMetaObject@@XZ @ 114 NONAME ; struct QMetaObject const & QtMobility::QTapReading::getStaticMetaObject(void) + ?getStaticMetaObject@QTapSensor@QtMobility@@SAABUQMetaObject@@XZ @ 115 NONAME ; struct QMetaObject const & QtMobility::QTapSensor::getStaticMetaObject(void) + ?identifier@QSensor@QtMobility@@QBE?AVQByteArray@@XZ @ 116 NONAME ; class QByteArray QtMobility::QSensor::identifier(void) const + ?isActive@QSensor@QtMobility@@QBE_NXZ @ 117 NONAME ; bool QtMobility::QSensor::isActive(void) const + ?isBusy@QSensor@QtMobility@@QBE_NXZ @ 118 NONAME ; bool QtMobility::QSensor::isBusy(void) const + ?isConnectedToBackend@QSensor@QtMobility@@QBE_NXZ @ 119 NONAME ; bool QtMobility::QSensor::isConnectedToBackend(void) const + ?isDoubleTap@QTapReading@QtMobility@@QBE_NXZ @ 120 NONAME ; bool QtMobility::QTapReading::isDoubleTap(void) const + ?lightLevel@QAmbientLightReading@QtMobility@@QBE?AW4LightLevel@12@XZ @ 121 NONAME ; enum QtMobility::QAmbientLightReading::LightLevel QtMobility::QAmbientLightReading::lightLevel(void) const + ?load@QSensorPluginLoader@QtMobility@@AAEXXZ @ 122 NONAME ; void QtMobility::QSensorPluginLoader::load(void) + ?metaObject@QAccelerometer@QtMobility@@UBEPBUQMetaObject@@XZ @ 123 NONAME ; struct QMetaObject const * QtMobility::QAccelerometer::metaObject(void) const + ?metaObject@QAccelerometerReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 124 NONAME ; struct QMetaObject const * QtMobility::QAccelerometerReading::metaObject(void) const + ?metaObject@QAmbientLightReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 125 NONAME ; struct QMetaObject const * QtMobility::QAmbientLightReading::metaObject(void) const + ?metaObject@QAmbientLightSensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 126 NONAME ; struct QMetaObject const * QtMobility::QAmbientLightSensor::metaObject(void) const + ?metaObject@QCompass@QtMobility@@UBEPBUQMetaObject@@XZ @ 127 NONAME ; struct QMetaObject const * QtMobility::QCompass::metaObject(void) const + ?metaObject@QCompassReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 128 NONAME ; struct QMetaObject const * QtMobility::QCompassReading::metaObject(void) const + ?metaObject@QMagnetometer@QtMobility@@UBEPBUQMetaObject@@XZ @ 129 NONAME ; struct QMetaObject const * QtMobility::QMagnetometer::metaObject(void) const + ?metaObject@QMagnetometerReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 130 NONAME ; struct QMetaObject const * QtMobility::QMagnetometerReading::metaObject(void) const + ?metaObject@QOrientationReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 131 NONAME ; struct QMetaObject const * QtMobility::QOrientationReading::metaObject(void) const + ?metaObject@QOrientationSensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 132 NONAME ; struct QMetaObject const * QtMobility::QOrientationSensor::metaObject(void) const + ?metaObject@QProximityReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 133 NONAME ; struct QMetaObject const * QtMobility::QProximityReading::metaObject(void) const + ?metaObject@QProximitySensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 134 NONAME ; struct QMetaObject const * QtMobility::QProximitySensor::metaObject(void) const + ?metaObject@QRotationReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 135 NONAME ; struct QMetaObject const * QtMobility::QRotationReading::metaObject(void) const + ?metaObject@QRotationSensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 136 NONAME ; struct QMetaObject const * QtMobility::QRotationSensor::metaObject(void) const + ?metaObject@QSensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 137 NONAME ; struct QMetaObject const * QtMobility::QSensor::metaObject(void) const + ?metaObject@QSensorBackend@QtMobility@@UBEPBUQMetaObject@@XZ @ 138 NONAME ; struct QMetaObject const * QtMobility::QSensorBackend::metaObject(void) const + ?metaObject@QSensorReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 139 NONAME ; struct QMetaObject const * QtMobility::QSensorReading::metaObject(void) const + ?metaObject@QTapReading@QtMobility@@UBEPBUQMetaObject@@XZ @ 140 NONAME ; struct QMetaObject const * QtMobility::QTapReading::metaObject(void) const + ?metaObject@QTapSensor@QtMobility@@UBEPBUQMetaObject@@XZ @ 141 NONAME ; struct QMetaObject const * QtMobility::QTapSensor::metaObject(void) const + ?newReadingAvailable@QSensorBackend@QtMobility@@QAEXXZ @ 142 NONAME ; void QtMobility::QSensorBackend::newReadingAvailable(void) + ?orientation@QOrientationReading@QtMobility@@QBE?AW4Orientation@12@XZ @ 143 NONAME ; enum QtMobility::QOrientationReading::Orientation QtMobility::QOrientationReading::orientation(void) const + ?outputRange@QSensor@QtMobility@@QBEHXZ @ 144 NONAME ; int QtMobility::QSensor::outputRange(void) const + ?outputRanges@QSensor@QtMobility@@QBE?AV?$QList@Uqoutputrange@QtMobility@@@@XZ @ 145 NONAME ; class QList QtMobility::QSensor::outputRanges(void) const + ?plugins@QSensorPluginLoader@QtMobility@@QBE?AV?$QList@PAVQSensorPluginInterface@QtMobility@@@@XZ @ 146 NONAME ; class QList QtMobility::QSensorPluginLoader::plugins(void) const + ?qt_metacall@QAccelerometer@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 147 NONAME ; int QtMobility::QAccelerometer::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QAccelerometerReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 148 NONAME ; int QtMobility::QAccelerometerReading::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QAmbientLightReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 149 NONAME ; int QtMobility::QAmbientLightReading::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QAmbientLightSensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 150 NONAME ; int QtMobility::QAmbientLightSensor::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QCompass@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 151 NONAME ; int QtMobility::QCompass::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QCompassReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 152 NONAME ; int QtMobility::QCompassReading::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QMagnetometer@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 153 NONAME ; int QtMobility::QMagnetometer::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QMagnetometerReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 154 NONAME ; int QtMobility::QMagnetometerReading::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QOrientationReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 155 NONAME ; int QtMobility::QOrientationReading::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QOrientationSensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 156 NONAME ; int QtMobility::QOrientationSensor::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QProximityReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 157 NONAME ; int QtMobility::QProximityReading::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QProximitySensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 158 NONAME ; int QtMobility::QProximitySensor::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QRotationReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 159 NONAME ; int QtMobility::QRotationReading::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QRotationSensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 160 NONAME ; int QtMobility::QRotationSensor::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QSensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 161 NONAME ; int QtMobility::QSensor::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QSensorBackend@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 162 NONAME ; int QtMobility::QSensorBackend::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QSensorReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 163 NONAME ; int QtMobility::QSensorReading::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QTapReading@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 164 NONAME ; int QtMobility::QTapReading::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@QTapSensor@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 165 NONAME ; int QtMobility::QTapSensor::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacast@QAccelerometer@QtMobility@@UAEPAXPBD@Z @ 166 NONAME ; void * QtMobility::QAccelerometer::qt_metacast(char const *) + ?qt_metacast@QAccelerometerReading@QtMobility@@UAEPAXPBD@Z @ 167 NONAME ; void * QtMobility::QAccelerometerReading::qt_metacast(char const *) + ?qt_metacast@QAmbientLightReading@QtMobility@@UAEPAXPBD@Z @ 168 NONAME ; void * QtMobility::QAmbientLightReading::qt_metacast(char const *) + ?qt_metacast@QAmbientLightSensor@QtMobility@@UAEPAXPBD@Z @ 169 NONAME ; void * QtMobility::QAmbientLightSensor::qt_metacast(char const *) + ?qt_metacast@QCompass@QtMobility@@UAEPAXPBD@Z @ 170 NONAME ; void * QtMobility::QCompass::qt_metacast(char const *) + ?qt_metacast@QCompassReading@QtMobility@@UAEPAXPBD@Z @ 171 NONAME ; void * QtMobility::QCompassReading::qt_metacast(char const *) + ?qt_metacast@QMagnetometer@QtMobility@@UAEPAXPBD@Z @ 172 NONAME ; void * QtMobility::QMagnetometer::qt_metacast(char const *) + ?qt_metacast@QMagnetometerReading@QtMobility@@UAEPAXPBD@Z @ 173 NONAME ; void * QtMobility::QMagnetometerReading::qt_metacast(char const *) + ?qt_metacast@QOrientationReading@QtMobility@@UAEPAXPBD@Z @ 174 NONAME ; void * QtMobility::QOrientationReading::qt_metacast(char const *) + ?qt_metacast@QOrientationSensor@QtMobility@@UAEPAXPBD@Z @ 175 NONAME ; void * QtMobility::QOrientationSensor::qt_metacast(char const *) + ?qt_metacast@QProximityReading@QtMobility@@UAEPAXPBD@Z @ 176 NONAME ; void * QtMobility::QProximityReading::qt_metacast(char const *) + ?qt_metacast@QProximitySensor@QtMobility@@UAEPAXPBD@Z @ 177 NONAME ; void * QtMobility::QProximitySensor::qt_metacast(char const *) + ?qt_metacast@QRotationReading@QtMobility@@UAEPAXPBD@Z @ 178 NONAME ; void * QtMobility::QRotationReading::qt_metacast(char const *) + ?qt_metacast@QRotationSensor@QtMobility@@UAEPAXPBD@Z @ 179 NONAME ; void * QtMobility::QRotationSensor::qt_metacast(char const *) + ?qt_metacast@QSensor@QtMobility@@UAEPAXPBD@Z @ 180 NONAME ; void * QtMobility::QSensor::qt_metacast(char const *) + ?qt_metacast@QSensorBackend@QtMobility@@UAEPAXPBD@Z @ 181 NONAME ; void * QtMobility::QSensorBackend::qt_metacast(char const *) + ?qt_metacast@QSensorReading@QtMobility@@UAEPAXPBD@Z @ 182 NONAME ; void * QtMobility::QSensorReading::qt_metacast(char const *) + ?qt_metacast@QTapReading@QtMobility@@UAEPAXPBD@Z @ 183 NONAME ; void * QtMobility::QTapReading::qt_metacast(char const *) + ?qt_metacast@QTapSensor@QtMobility@@UAEPAXPBD@Z @ 184 NONAME ; void * QtMobility::QTapSensor::qt_metacast(char const *) + ?reading@QAccelerometer@QtMobility@@QBEPAVQAccelerometerReading@2@XZ @ 185 NONAME ; class QtMobility::QAccelerometerReading * QtMobility::QAccelerometer::reading(void) const + ?reading@QAmbientLightSensor@QtMobility@@QBEPAVQAmbientLightReading@2@XZ @ 186 NONAME ; class QtMobility::QAmbientLightReading * QtMobility::QAmbientLightSensor::reading(void) const + ?reading@QCompass@QtMobility@@QBEPAVQCompassReading@2@XZ @ 187 NONAME ; class QtMobility::QCompassReading * QtMobility::QCompass::reading(void) const + ?reading@QMagnetometer@QtMobility@@QBEPAVQMagnetometerReading@2@XZ @ 188 NONAME ; class QtMobility::QMagnetometerReading * QtMobility::QMagnetometer::reading(void) const + ?reading@QOrientationSensor@QtMobility@@QBEPAVQOrientationReading@2@XZ @ 189 NONAME ; class QtMobility::QOrientationReading * QtMobility::QOrientationSensor::reading(void) const + ?reading@QProximitySensor@QtMobility@@QBEPAVQProximityReading@2@XZ @ 190 NONAME ; class QtMobility::QProximityReading * QtMobility::QProximitySensor::reading(void) const + ?reading@QRotationSensor@QtMobility@@QBEPAVQRotationReading@2@XZ @ 191 NONAME ; class QtMobility::QRotationReading * QtMobility::QRotationSensor::reading(void) const + ?reading@QSensor@QtMobility@@QBEPAVQSensorReading@2@XZ @ 192 NONAME ; class QtMobility::QSensorReading * QtMobility::QSensor::reading(void) const + ?reading@QSensorBackend@QtMobility@@QBEPAVQSensorReading@2@XZ @ 193 NONAME ; class QtMobility::QSensorReading * QtMobility::QSensorBackend::reading(void) const + ?reading@QTapSensor@QtMobility@@QBEPAVQTapReading@2@XZ @ 194 NONAME ; class QtMobility::QTapReading * QtMobility::QTapSensor::reading(void) const + ?readingChanged@QSensor@QtMobility@@IAEXXZ @ 195 NONAME ; void QtMobility::QSensor::readingChanged(void) + ?registerBackend@QSensorManager@QtMobility@@SAXABVQByteArray@@0PAVQSensorBackendFactory@2@@Z @ 196 NONAME ; void QtMobility::QSensorManager::registerBackend(class QByteArray const &, class QByteArray const &, class QtMobility::QSensorBackendFactory *) + ?registerStaticPlugin@QSensorManager@QtMobility@@SAXP6APAVQSensorPluginInterface@2@XZ@Z @ 197 NONAME ; void QtMobility::QSensorManager::registerStaticPlugin(class QtMobility::QSensorPluginInterface * (*)(void)) + ?removeFilter@QSensor@QtMobility@@QAEXPAVQSensorFilter@2@@Z @ 198 NONAME ; void QtMobility::QSensor::removeFilter(class QtMobility::QSensorFilter *) + ?sensor@QSensorBackend@QtMobility@@QBEPAVQSensor@2@XZ @ 199 NONAME ; class QtMobility::QSensor * QtMobility::QSensorBackend::sensor(void) const + ?sensorBusy@QSensorBackend@QtMobility@@QAEXXZ @ 200 NONAME ; void QtMobility::QSensorBackend::sensorBusy(void) + ?sensorError@QSensor@QtMobility@@IAEXH@Z @ 201 NONAME ; void QtMobility::QSensor::sensorError(int) + ?sensorError@QSensorBackend@QtMobility@@QAEXH@Z @ 202 NONAME ; void QtMobility::QSensorBackend::sensorError(int) + ?sensorStopped@QSensorBackend@QtMobility@@QAEXXZ @ 203 NONAME ; void QtMobility::QSensorBackend::sensorStopped(void) + ?sensorTypes@QSensor@QtMobility@@SA?AV?$QList@VQByteArray@@@@XZ @ 204 NONAME ; class QList QtMobility::QSensor::sensorTypes(void) + ?sensorsForType@QSensor@QtMobility@@SA?AV?$QList@VQByteArray@@@@ABVQByteArray@@@Z @ 205 NONAME ; class QList QtMobility::QSensor::sensorsForType(class QByteArray const &) + ?setAzimuth@QCompassReading@QtMobility@@QAEXM@Z @ 206 NONAME ; void QtMobility::QCompassReading::setAzimuth(float) + ?setCalibrationLevel@QCompassReading@QtMobility@@QAEXM@Z @ 207 NONAME ; void QtMobility::QCompassReading::setCalibrationLevel(float) + ?setCalibrationLevel@QMagnetometerReading@QtMobility@@QAEXM@Z @ 208 NONAME ; void QtMobility::QMagnetometerReading::setCalibrationLevel(float) + ?setClose@QProximityReading@QtMobility@@QAEX_N@Z @ 209 NONAME ; void QtMobility::QProximityReading::setClose(bool) + ?setDataRate@QSensor@QtMobility@@QAEXH@Z @ 210 NONAME ; void QtMobility::QSensor::setDataRate(int) + ?setDataRates@QSensorBackend@QtMobility@@QAEXPBVQSensor@2@@Z @ 211 NONAME ; void QtMobility::QSensorBackend::setDataRates(class QtMobility::QSensor const *) + ?setDescription@QSensorBackend@QtMobility@@QAEXABVQString@@@Z @ 212 NONAME ; void QtMobility::QSensorBackend::setDescription(class QString const &) + ?setDoubleTap@QTapReading@QtMobility@@QAEX_N@Z @ 213 NONAME ; void QtMobility::QTapReading::setDoubleTap(bool) + ?setIdentifier@QSensor@QtMobility@@QAEXABVQByteArray@@@Z @ 214 NONAME ; void QtMobility::QSensor::setIdentifier(class QByteArray const &) + ?setLightLevel@QAmbientLightReading@QtMobility@@QAEXW4LightLevel@12@@Z @ 215 NONAME ; void QtMobility::QAmbientLightReading::setLightLevel(enum QtMobility::QAmbientLightReading::LightLevel) + ?setOrientation@QOrientationReading@QtMobility@@QAEXW4Orientation@12@@Z @ 216 NONAME ; void QtMobility::QOrientationReading::setOrientation(enum QtMobility::QOrientationReading::Orientation) + ?setOutputRange@QSensor@QtMobility@@QAEXH@Z @ 217 NONAME ; void QtMobility::QSensor::setOutputRange(int) + ?setReadings@QSensorBackend@QtMobility@@AAEXPAVQSensorReading@2@00@Z @ 218 NONAME ; void QtMobility::QSensorBackend::setReadings(class QtMobility::QSensorReading *, class QtMobility::QSensorReading *, class QtMobility::QSensorReading *) + ?setSensor@QSensorFilter@QtMobility@@MAEXPAVQSensor@2@@Z @ 219 NONAME ; void QtMobility::QSensorFilter::setSensor(class QtMobility::QSensor *) + ?setTapDirection@QTapReading@QtMobility@@QAEXW4TapDirection@12@@Z @ 220 NONAME ; void QtMobility::QTapReading::setTapDirection(enum QtMobility::QTapReading::TapDirection) + ?setTimestamp@QSensorReading@QtMobility@@QAEXVqtimestamp@2@@Z @ 221 NONAME ; void QtMobility::QSensorReading::setTimestamp(class QtMobility::qtimestamp) + ?setX@QAccelerometerReading@QtMobility@@QAEXM@Z @ 222 NONAME ; void QtMobility::QAccelerometerReading::setX(float) + ?setX@QMagnetometerReading@QtMobility@@QAEXM@Z @ 223 NONAME ; void QtMobility::QMagnetometerReading::setX(float) + ?setX@QRotationReading@QtMobility@@QAEXM@Z @ 224 NONAME ; void QtMobility::QRotationReading::setX(float) + ?setY@QAccelerometerReading@QtMobility@@QAEXM@Z @ 225 NONAME ; void QtMobility::QAccelerometerReading::setY(float) + ?setY@QMagnetometerReading@QtMobility@@QAEXM@Z @ 226 NONAME ; void QtMobility::QMagnetometerReading::setY(float) + ?setY@QRotationReading@QtMobility@@QAEXM@Z @ 227 NONAME ; void QtMobility::QRotationReading::setY(float) + ?setZ@QAccelerometerReading@QtMobility@@QAEXM@Z @ 228 NONAME ; void QtMobility::QAccelerometerReading::setZ(float) + ?setZ@QMagnetometerReading@QtMobility@@QAEXM@Z @ 229 NONAME ; void QtMobility::QMagnetometerReading::setZ(float) + ?setZ@QRotationReading@QtMobility@@QAEXM@Z @ 230 NONAME ; void QtMobility::QRotationReading::setZ(float) + ?start@QSensor@QtMobility@@QAE_NXZ @ 231 NONAME ; bool QtMobility::QSensor::start(void) + ?stop@QSensor@QtMobility@@QAEXXZ @ 232 NONAME ; void QtMobility::QSensor::stop(void) + ?tapDirection@QTapReading@QtMobility@@QBE?AW4TapDirection@12@XZ @ 233 NONAME ; enum QtMobility::QTapReading::TapDirection QtMobility::QTapReading::tapDirection(void) const + ?timestamp@QSensorReading@QtMobility@@QBE?AVqtimestamp@2@XZ @ 234 NONAME ; class QtMobility::qtimestamp QtMobility::QSensorReading::timestamp(void) const + ?tr@QAccelerometer@QtMobility@@SA?AVQString@@PBD0@Z @ 235 NONAME ; class QString QtMobility::QAccelerometer::tr(char const *, char const *) + ?tr@QAccelerometer@QtMobility@@SA?AVQString@@PBD0H@Z @ 236 NONAME ; class QString QtMobility::QAccelerometer::tr(char const *, char const *, int) + ?tr@QAccelerometerReading@QtMobility@@SA?AVQString@@PBD0@Z @ 237 NONAME ; class QString QtMobility::QAccelerometerReading::tr(char const *, char const *) + ?tr@QAccelerometerReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 238 NONAME ; class QString QtMobility::QAccelerometerReading::tr(char const *, char const *, int) + ?tr@QAmbientLightReading@QtMobility@@SA?AVQString@@PBD0@Z @ 239 NONAME ; class QString QtMobility::QAmbientLightReading::tr(char const *, char const *) + ?tr@QAmbientLightReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 240 NONAME ; class QString QtMobility::QAmbientLightReading::tr(char const *, char const *, int) + ?tr@QAmbientLightSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 241 NONAME ; class QString QtMobility::QAmbientLightSensor::tr(char const *, char const *) + ?tr@QAmbientLightSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 242 NONAME ; class QString QtMobility::QAmbientLightSensor::tr(char const *, char const *, int) + ?tr@QCompass@QtMobility@@SA?AVQString@@PBD0@Z @ 243 NONAME ; class QString QtMobility::QCompass::tr(char const *, char const *) + ?tr@QCompass@QtMobility@@SA?AVQString@@PBD0H@Z @ 244 NONAME ; class QString QtMobility::QCompass::tr(char const *, char const *, int) + ?tr@QCompassReading@QtMobility@@SA?AVQString@@PBD0@Z @ 245 NONAME ; class QString QtMobility::QCompassReading::tr(char const *, char const *) + ?tr@QCompassReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 246 NONAME ; class QString QtMobility::QCompassReading::tr(char const *, char const *, int) + ?tr@QMagnetometer@QtMobility@@SA?AVQString@@PBD0@Z @ 247 NONAME ; class QString QtMobility::QMagnetometer::tr(char const *, char const *) + ?tr@QMagnetometer@QtMobility@@SA?AVQString@@PBD0H@Z @ 248 NONAME ; class QString QtMobility::QMagnetometer::tr(char const *, char const *, int) + ?tr@QMagnetometerReading@QtMobility@@SA?AVQString@@PBD0@Z @ 249 NONAME ; class QString QtMobility::QMagnetometerReading::tr(char const *, char const *) + ?tr@QMagnetometerReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 250 NONAME ; class QString QtMobility::QMagnetometerReading::tr(char const *, char const *, int) + ?tr@QOrientationReading@QtMobility@@SA?AVQString@@PBD0@Z @ 251 NONAME ; class QString QtMobility::QOrientationReading::tr(char const *, char const *) + ?tr@QOrientationReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 252 NONAME ; class QString QtMobility::QOrientationReading::tr(char const *, char const *, int) + ?tr@QOrientationSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 253 NONAME ; class QString QtMobility::QOrientationSensor::tr(char const *, char const *) + ?tr@QOrientationSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 254 NONAME ; class QString QtMobility::QOrientationSensor::tr(char const *, char const *, int) + ?tr@QProximityReading@QtMobility@@SA?AVQString@@PBD0@Z @ 255 NONAME ; class QString QtMobility::QProximityReading::tr(char const *, char const *) + ?tr@QProximityReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 256 NONAME ; class QString QtMobility::QProximityReading::tr(char const *, char const *, int) + ?tr@QProximitySensor@QtMobility@@SA?AVQString@@PBD0@Z @ 257 NONAME ; class QString QtMobility::QProximitySensor::tr(char const *, char const *) + ?tr@QProximitySensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 258 NONAME ; class QString QtMobility::QProximitySensor::tr(char const *, char const *, int) + ?tr@QRotationReading@QtMobility@@SA?AVQString@@PBD0@Z @ 259 NONAME ; class QString QtMobility::QRotationReading::tr(char const *, char const *) + ?tr@QRotationReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 260 NONAME ; class QString QtMobility::QRotationReading::tr(char const *, char const *, int) + ?tr@QRotationSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 261 NONAME ; class QString QtMobility::QRotationSensor::tr(char const *, char const *) + ?tr@QRotationSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 262 NONAME ; class QString QtMobility::QRotationSensor::tr(char const *, char const *, int) + ?tr@QSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 263 NONAME ; class QString QtMobility::QSensor::tr(char const *, char const *) + ?tr@QSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 264 NONAME ; class QString QtMobility::QSensor::tr(char const *, char const *, int) + ?tr@QSensorBackend@QtMobility@@SA?AVQString@@PBD0@Z @ 265 NONAME ; class QString QtMobility::QSensorBackend::tr(char const *, char const *) + ?tr@QSensorBackend@QtMobility@@SA?AVQString@@PBD0H@Z @ 266 NONAME ; class QString QtMobility::QSensorBackend::tr(char const *, char const *, int) + ?tr@QSensorReading@QtMobility@@SA?AVQString@@PBD0@Z @ 267 NONAME ; class QString QtMobility::QSensorReading::tr(char const *, char const *) + ?tr@QSensorReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 268 NONAME ; class QString QtMobility::QSensorReading::tr(char const *, char const *, int) + ?tr@QTapReading@QtMobility@@SA?AVQString@@PBD0@Z @ 269 NONAME ; class QString QtMobility::QTapReading::tr(char const *, char const *) + ?tr@QTapReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 270 NONAME ; class QString QtMobility::QTapReading::tr(char const *, char const *, int) + ?tr@QTapSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 271 NONAME ; class QString QtMobility::QTapSensor::tr(char const *, char const *) + ?tr@QTapSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 272 NONAME ; class QString QtMobility::QTapSensor::tr(char const *, char const *, int) + ?trUtf8@QAccelerometer@QtMobility@@SA?AVQString@@PBD0@Z @ 273 NONAME ; class QString QtMobility::QAccelerometer::trUtf8(char const *, char const *) + ?trUtf8@QAccelerometer@QtMobility@@SA?AVQString@@PBD0H@Z @ 274 NONAME ; class QString QtMobility::QAccelerometer::trUtf8(char const *, char const *, int) + ?trUtf8@QAccelerometerReading@QtMobility@@SA?AVQString@@PBD0@Z @ 275 NONAME ; class QString QtMobility::QAccelerometerReading::trUtf8(char const *, char const *) + ?trUtf8@QAccelerometerReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 276 NONAME ; class QString QtMobility::QAccelerometerReading::trUtf8(char const *, char const *, int) + ?trUtf8@QAmbientLightReading@QtMobility@@SA?AVQString@@PBD0@Z @ 277 NONAME ; class QString QtMobility::QAmbientLightReading::trUtf8(char const *, char const *) + ?trUtf8@QAmbientLightReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 278 NONAME ; class QString QtMobility::QAmbientLightReading::trUtf8(char const *, char const *, int) + ?trUtf8@QAmbientLightSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 279 NONAME ; class QString QtMobility::QAmbientLightSensor::trUtf8(char const *, char const *) + ?trUtf8@QAmbientLightSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 280 NONAME ; class QString QtMobility::QAmbientLightSensor::trUtf8(char const *, char const *, int) + ?trUtf8@QCompass@QtMobility@@SA?AVQString@@PBD0@Z @ 281 NONAME ; class QString QtMobility::QCompass::trUtf8(char const *, char const *) + ?trUtf8@QCompass@QtMobility@@SA?AVQString@@PBD0H@Z @ 282 NONAME ; class QString QtMobility::QCompass::trUtf8(char const *, char const *, int) + ?trUtf8@QCompassReading@QtMobility@@SA?AVQString@@PBD0@Z @ 283 NONAME ; class QString QtMobility::QCompassReading::trUtf8(char const *, char const *) + ?trUtf8@QCompassReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 284 NONAME ; class QString QtMobility::QCompassReading::trUtf8(char const *, char const *, int) + ?trUtf8@QMagnetometer@QtMobility@@SA?AVQString@@PBD0@Z @ 285 NONAME ; class QString QtMobility::QMagnetometer::trUtf8(char const *, char const *) + ?trUtf8@QMagnetometer@QtMobility@@SA?AVQString@@PBD0H@Z @ 286 NONAME ; class QString QtMobility::QMagnetometer::trUtf8(char const *, char const *, int) + ?trUtf8@QMagnetometerReading@QtMobility@@SA?AVQString@@PBD0@Z @ 287 NONAME ; class QString QtMobility::QMagnetometerReading::trUtf8(char const *, char const *) + ?trUtf8@QMagnetometerReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 288 NONAME ; class QString QtMobility::QMagnetometerReading::trUtf8(char const *, char const *, int) + ?trUtf8@QOrientationReading@QtMobility@@SA?AVQString@@PBD0@Z @ 289 NONAME ; class QString QtMobility::QOrientationReading::trUtf8(char const *, char const *) + ?trUtf8@QOrientationReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 290 NONAME ; class QString QtMobility::QOrientationReading::trUtf8(char const *, char const *, int) + ?trUtf8@QOrientationSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 291 NONAME ; class QString QtMobility::QOrientationSensor::trUtf8(char const *, char const *) + ?trUtf8@QOrientationSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 292 NONAME ; class QString QtMobility::QOrientationSensor::trUtf8(char const *, char const *, int) + ?trUtf8@QProximityReading@QtMobility@@SA?AVQString@@PBD0@Z @ 293 NONAME ; class QString QtMobility::QProximityReading::trUtf8(char const *, char const *) + ?trUtf8@QProximityReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 294 NONAME ; class QString QtMobility::QProximityReading::trUtf8(char const *, char const *, int) + ?trUtf8@QProximitySensor@QtMobility@@SA?AVQString@@PBD0@Z @ 295 NONAME ; class QString QtMobility::QProximitySensor::trUtf8(char const *, char const *) + ?trUtf8@QProximitySensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 296 NONAME ; class QString QtMobility::QProximitySensor::trUtf8(char const *, char const *, int) + ?trUtf8@QRotationReading@QtMobility@@SA?AVQString@@PBD0@Z @ 297 NONAME ; class QString QtMobility::QRotationReading::trUtf8(char const *, char const *) + ?trUtf8@QRotationReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 298 NONAME ; class QString QtMobility::QRotationReading::trUtf8(char const *, char const *, int) + ?trUtf8@QRotationSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 299 NONAME ; class QString QtMobility::QRotationSensor::trUtf8(char const *, char const *) + ?trUtf8@QRotationSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 300 NONAME ; class QString QtMobility::QRotationSensor::trUtf8(char const *, char const *, int) + ?trUtf8@QSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 301 NONAME ; class QString QtMobility::QSensor::trUtf8(char const *, char const *) + ?trUtf8@QSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 302 NONAME ; class QString QtMobility::QSensor::trUtf8(char const *, char const *, int) + ?trUtf8@QSensorBackend@QtMobility@@SA?AVQString@@PBD0@Z @ 303 NONAME ; class QString QtMobility::QSensorBackend::trUtf8(char const *, char const *) + ?trUtf8@QSensorBackend@QtMobility@@SA?AVQString@@PBD0H@Z @ 304 NONAME ; class QString QtMobility::QSensorBackend::trUtf8(char const *, char const *, int) + ?trUtf8@QSensorReading@QtMobility@@SA?AVQString@@PBD0@Z @ 305 NONAME ; class QString QtMobility::QSensorReading::trUtf8(char const *, char const *) + ?trUtf8@QSensorReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 306 NONAME ; class QString QtMobility::QSensorReading::trUtf8(char const *, char const *, int) + ?trUtf8@QTapReading@QtMobility@@SA?AVQString@@PBD0@Z @ 307 NONAME ; class QString QtMobility::QTapReading::trUtf8(char const *, char const *) + ?trUtf8@QTapReading@QtMobility@@SA?AVQString@@PBD0H@Z @ 308 NONAME ; class QString QtMobility::QTapReading::trUtf8(char const *, char const *, int) + ?trUtf8@QTapSensor@QtMobility@@SA?AVQString@@PBD0@Z @ 309 NONAME ; class QString QtMobility::QTapSensor::trUtf8(char const *, char const *) + ?trUtf8@QTapSensor@QtMobility@@SA?AVQString@@PBD0H@Z @ 310 NONAME ; class QString QtMobility::QTapSensor::trUtf8(char const *, char const *, int) + ?type@QSensor@QtMobility@@QBE?AVQByteArray@@XZ @ 311 NONAME ; class QByteArray QtMobility::QSensor::type(void) const + ?value@QSensorReading@QtMobility@@QBE?AVQVariant@@H@Z @ 312 NONAME ; class QVariant QtMobility::QSensorReading::value(int) const + ?valueCount@QSensorReading@QtMobility@@QBEHXZ @ 313 NONAME ; int QtMobility::QSensorReading::valueCount(void) const + ?x@QAccelerometerReading@QtMobility@@QBEMXZ @ 314 NONAME ; float QtMobility::QAccelerometerReading::x(void) const + ?x@QMagnetometerReading@QtMobility@@QBEMXZ @ 315 NONAME ; float QtMobility::QMagnetometerReading::x(void) const + ?x@QRotationReading@QtMobility@@QBEMXZ @ 316 NONAME ; float QtMobility::QRotationReading::x(void) const + ?y@QAccelerometerReading@QtMobility@@QBEMXZ @ 317 NONAME ; float QtMobility::QAccelerometerReading::y(void) const + ?y@QMagnetometerReading@QtMobility@@QBEMXZ @ 318 NONAME ; float QtMobility::QMagnetometerReading::y(void) const + ?y@QRotationReading@QtMobility@@QBEMXZ @ 319 NONAME ; float QtMobility::QRotationReading::y(void) const + ?z@QAccelerometerReading@QtMobility@@QBEMXZ @ 320 NONAME ; float QtMobility::QAccelerometerReading::z(void) const + ?z@QMagnetometerReading@QtMobility@@QBEMXZ @ 321 NONAME ; float QtMobility::QMagnetometerReading::z(void) const + ?z@QRotationReading@QtMobility@@QBEMXZ @ 322 NONAME ; float QtMobility::QRotationReading::z(void) const + ?staticMetaObject@QAccelerometer@QtMobility@@2UQMetaObject@@B @ 323 NONAME ; struct QMetaObject const QtMobility::QAccelerometer::staticMetaObject + ?staticMetaObject@QSensor@QtMobility@@2UQMetaObject@@B @ 324 NONAME ; struct QMetaObject const QtMobility::QSensor::staticMetaObject + ?type@QCompass@QtMobility@@2PBDB @ 325 NONAME ; char const * const QtMobility::QCompass::type + ?staticMetaObject@QCompassReading@QtMobility@@2UQMetaObject@@B @ 326 NONAME ; struct QMetaObject const QtMobility::QCompassReading::staticMetaObject + ?staticMetaObject@QAmbientLightReading@QtMobility@@2UQMetaObject@@B @ 327 NONAME ; struct QMetaObject const QtMobility::QAmbientLightReading::staticMetaObject + ?staticMetaObject@QAccelerometerReading@QtMobility@@2UQMetaObject@@B @ 328 NONAME ; struct QMetaObject const QtMobility::QAccelerometerReading::staticMetaObject + ?staticMetaObject@QSensorBackend@QtMobility@@2UQMetaObject@@B @ 329 NONAME ; struct QMetaObject const QtMobility::QSensorBackend::staticMetaObject + ?type@QAmbientLightSensor@QtMobility@@2PBDB @ 330 NONAME ; char const * const QtMobility::QAmbientLightSensor::type + ?staticMetaObject@QOrientationSensor@QtMobility@@2UQMetaObject@@B @ 331 NONAME ; struct QMetaObject const QtMobility::QOrientationSensor::staticMetaObject + ?staticMetaObject@QRotationReading@QtMobility@@2UQMetaObject@@B @ 332 NONAME ; struct QMetaObject const QtMobility::QRotationReading::staticMetaObject + ?type@QProximitySensor@QtMobility@@2PBDB @ 333 NONAME ; char const * const QtMobility::QProximitySensor::type + ?type@QOrientationSensor@QtMobility@@2PBDB @ 334 NONAME ; char const * const QtMobility::QOrientationSensor::type + ?staticMetaObject@QCompass@QtMobility@@2UQMetaObject@@B @ 335 NONAME ; struct QMetaObject const QtMobility::QCompass::staticMetaObject + ?staticMetaObject@QProximityReading@QtMobility@@2UQMetaObject@@B @ 336 NONAME ; struct QMetaObject const QtMobility::QProximityReading::staticMetaObject + ?staticMetaObject@QTapReading@QtMobility@@2UQMetaObject@@B @ 337 NONAME ; struct QMetaObject const QtMobility::QTapReading::staticMetaObject + ?type@QTapSensor@QtMobility@@2PBDB @ 338 NONAME ; char const * const QtMobility::QTapSensor::type + ?staticMetaObject@QMagnetometer@QtMobility@@2UQMetaObject@@B @ 339 NONAME ; struct QMetaObject const QtMobility::QMagnetometer::staticMetaObject + ?staticMetaObject@QProximitySensor@QtMobility@@2UQMetaObject@@B @ 340 NONAME ; struct QMetaObject const QtMobility::QProximitySensor::staticMetaObject + ?type@QMagnetometer@QtMobility@@2PBDB @ 341 NONAME ; char const * const QtMobility::QMagnetometer::type + ?staticMetaObject@QSensorReading@QtMobility@@2UQMetaObject@@B @ 342 NONAME ; struct QMetaObject const QtMobility::QSensorReading::staticMetaObject + ?staticMetaObject@QRotationSensor@QtMobility@@2UQMetaObject@@B @ 343 NONAME ; struct QMetaObject const QtMobility::QRotationSensor::staticMetaObject + ?staticMetaObject@QTapSensor@QtMobility@@2UQMetaObject@@B @ 344 NONAME ; struct QMetaObject const QtMobility::QTapSensor::staticMetaObject + ?staticMetaObject@QOrientationReading@QtMobility@@2UQMetaObject@@B @ 345 NONAME ; struct QMetaObject const QtMobility::QOrientationReading::staticMetaObject + ?staticMetaObject@QAmbientLightSensor@QtMobility@@2UQMetaObject@@B @ 346 NONAME ; struct QMetaObject const QtMobility::QAmbientLightSensor::staticMetaObject + ?type@QRotationSensor@QtMobility@@2PBDB @ 347 NONAME ; char const * const QtMobility::QRotationSensor::type + ?type@QAccelerometer@QtMobility@@2PBDB @ 348 NONAME ; char const * const QtMobility::QAccelerometer::type + ?staticMetaObject@QMagnetometerReading@QtMobility@@2UQMetaObject@@B @ 349 NONAME ; struct QMetaObject const QtMobility::QMagnetometerReading::staticMetaObject diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/bwins/QtSystemInfou.def --- a/qtmobility/src/s60installs/bwins/QtSystemInfou.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/bwins/QtSystemInfou.def Mon May 03 13:18:40 2010 +0300 @@ -51,72 +51,75 @@ ?networkStatusChanged@QSystemNetworkInfo@QtMobility@@IAEXW4NetworkMode@12@W4NetworkStatus@12@@Z @ 50 NONAME ; void QtMobility::QSystemNetworkInfo::networkStatusChanged(enum QtMobility::QSystemNetworkInfo::NetworkMode, enum QtMobility::QSystemNetworkInfo::NetworkStatus) ?metaObject@QSystemStorageInfo@QtMobility@@UBEPBUQMetaObject@@XZ @ 51 NONAME ; struct QMetaObject const * QtMobility::QSystemStorageInfo::metaObject(void) const ?metaObject@QSystemInfo@QtMobility@@UBEPBUQMetaObject@@XZ @ 52 NONAME ; struct QMetaObject const * QtMobility::QSystemInfo::metaObject(void) const - ??1QSystemStorageInfo@QtMobility@@UAE@XZ @ 53 NONAME ; QtMobility::QSystemStorageInfo::~QSystemStorageInfo(void) - ??0QSystemNetworkInfo@QtMobility@@QAE@PAVQObject@@@Z @ 54 NONAME ; QtMobility::QSystemNetworkInfo::QSystemNetworkInfo(class QObject *) - ?trUtf8@QSystemInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 55 NONAME ; class QString QtMobility::QSystemInfo::trUtf8(char const *, char const *) - ?currentProfileChanged@QSystemDeviceInfo@QtMobility@@IAEXW4Profile@12@@Z @ 56 NONAME ; void QtMobility::QSystemDeviceInfo::currentProfileChanged(enum QtMobility::QSystemDeviceInfo::Profile) - ?tr@QSystemDisplayInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 57 NONAME ; class QString QtMobility::QSystemDisplayInfo::tr(char const *, char const *, int) - ?networkSignalStrengthChanged@QSystemNetworkInfo@QtMobility@@IAEXW4NetworkMode@12@H@Z @ 58 NONAME ; void QtMobility::QSystemNetworkInfo::networkSignalStrengthChanged(enum QtMobility::QSystemNetworkInfo::NetworkMode, int) - ?trUtf8@QSystemScreenSaver@QtMobility@@SA?AVQString@@PBD0@Z @ 59 NONAME ; class QString QtMobility::QSystemScreenSaver::trUtf8(char const *, char const *) - ?trUtf8@QSystemDisplayInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 60 NONAME ; class QString QtMobility::QSystemDisplayInfo::trUtf8(char const *, char const *) - ?trUtf8@QSystemScreenSaver@QtMobility@@SA?AVQString@@PBD0H@Z @ 61 NONAME ; class QString QtMobility::QSystemScreenSaver::trUtf8(char const *, char const *, int) - ?staticMetaObject@QSystemNetworkInfo@QtMobility@@2UQMetaObject@@B @ 62 NONAME ; struct QMetaObject const QtMobility::QSystemNetworkInfo::staticMetaObject - ?staticMetaObject@QSystemDisplayInfo@QtMobility@@2UQMetaObject@@B @ 63 NONAME ; struct QMetaObject const QtMobility::QSystemDisplayInfo::staticMetaObject - ?qt_metacall@QSystemScreenSaver@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 64 NONAME ; int QtMobility::QSystemScreenSaver::qt_metacall(enum QMetaObject::Call, int, void * *) - ??1QSystemDeviceInfo@QtMobility@@UAE@XZ @ 65 NONAME ; QtMobility::QSystemDeviceInfo::~QSystemDeviceInfo(void) - ?qt_metacast@QSystemDisplayInfo@QtMobility@@UAEPAXPBD@Z @ 66 NONAME ; void * QtMobility::QSystemDisplayInfo::qt_metacast(char const *) - ??1QSystemScreenSaver@QtMobility@@UAE@XZ @ 67 NONAME ; QtMobility::QSystemScreenSaver::~QSystemScreenSaver(void) - ?trUtf8@QSystemNetworkInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 68 NONAME ; class QString QtMobility::QSystemNetworkInfo::trUtf8(char const *, char const *, int) - ??_EQSystemNetworkInfo@QtMobility@@UAE@I@Z @ 69 NONAME ; QtMobility::QSystemNetworkInfo::~QSystemNetworkInfo(unsigned int) - ??_EQSystemScreenSaver@QtMobility@@UAE@I@Z @ 70 NONAME ; QtMobility::QSystemScreenSaver::~QSystemScreenSaver(unsigned int) - ?homeMobileNetworkCode@QSystemNetworkInfo@QtMobility@@QAE?AVQString@@XZ @ 71 NONAME ; class QString QtMobility::QSystemNetworkInfo::homeMobileNetworkCode(void) - ?totalDiskSpace@QSystemStorageInfo@QtMobility@@QAE_JABVQString@@@Z @ 72 NONAME ; long long QtMobility::QSystemStorageInfo::totalDiskSpace(class QString const &) - ?currentMobileCountryCode@QSystemNetworkInfo@QtMobility@@QAE?AVQString@@XZ @ 73 NONAME ; class QString QtMobility::QSystemNetworkInfo::currentMobileCountryCode(void) - ?inputMethodType@QSystemDeviceInfo@QtMobility@@QAE?AV?$QFlags@W4InputMethod@QSystemDeviceInfo@QtMobility@@@@XZ @ 74 NONAME ; class QFlags QtMobility::QSystemDeviceInfo::inputMethodType(void) - ?tr@QSystemStorageInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 75 NONAME ; class QString QtMobility::QSystemStorageInfo::tr(char const *, char const *, int) - ?networkName@QSystemNetworkInfo@QtMobility@@SA?AVQString@@W4NetworkMode@12@@Z @ 76 NONAME ; class QString QtMobility::QSystemNetworkInfo::networkName(enum QtMobility::QSystemNetworkInfo::NetworkMode) - ?batteryStatusChanged@QSystemDeviceInfo@QtMobility@@IAEXW4BatteryStatus@12@@Z @ 77 NONAME ; void QtMobility::QSystemDeviceInfo::batteryStatusChanged(enum QtMobility::QSystemDeviceInfo::BatteryStatus) - ?currentPowerState@QSystemDeviceInfo@QtMobility@@QAE?AW4PowerState@12@XZ @ 78 NONAME ; enum QtMobility::QSystemDeviceInfo::PowerState QtMobility::QSystemDeviceInfo::currentPowerState(void) - ?tr@QSystemInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 79 NONAME ; class QString QtMobility::QSystemInfo::tr(char const *, char const *) - ?qt_metacast@QSystemScreenSaver@QtMobility@@UAEPAXPBD@Z @ 80 NONAME ; void * QtMobility::QSystemScreenSaver::qt_metacast(char const *) - ?qt_metacall@QSystemNetworkInfo@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 81 NONAME ; int QtMobility::QSystemNetworkInfo::qt_metacall(enum QMetaObject::Call, int, void * *) - ??_EQSystemDeviceInfo@QtMobility@@UAE@I@Z @ 82 NONAME ; QtMobility::QSystemDeviceInfo::~QSystemDeviceInfo(unsigned int) - ?batteryStatus@QSystemDeviceInfo@QtMobility@@QAE?AW4BatteryStatus@12@XZ @ 83 NONAME ; enum QtMobility::QSystemDeviceInfo::BatteryStatus QtMobility::QSystemDeviceInfo::batteryStatus(void) - ?tr@QSystemNetworkInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 84 NONAME ; class QString QtMobility::QSystemNetworkInfo::tr(char const *, char const *) - ?getStaticMetaObject@QSystemStorageInfo@QtMobility@@SAABUQMetaObject@@XZ @ 85 NONAME ; struct QMetaObject const & QtMobility::QSystemStorageInfo::getStaticMetaObject(void) - ??1QSystemNetworkInfo@QtMobility@@UAE@XZ @ 86 NONAME ; QtMobility::QSystemNetworkInfo::~QSystemNetworkInfo(void) - ?colorDepth@QSystemDisplayInfo@QtMobility@@SAHH@Z @ 87 NONAME ; int QtMobility::QSystemDisplayInfo::colorDepth(int) - ?powerStateChanged@QSystemDeviceInfo@QtMobility@@IAEXW4PowerState@12@@Z @ 88 NONAME ; void QtMobility::QSystemDeviceInfo::powerStateChanged(enum QtMobility::QSystemDeviceInfo::PowerState) - ?tr@QSystemInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 89 NONAME ; class QString QtMobility::QSystemInfo::tr(char const *, char const *, int) - ??1QSystemInfo@QtMobility@@UAE@XZ @ 90 NONAME ; QtMobility::QSystemInfo::~QSystemInfo(void) - ?currentMobileNetworkCodeChanged@QSystemNetworkInfo@QtMobility@@IAEXABVQString@@@Z @ 91 NONAME ; void QtMobility::QSystemNetworkInfo::currentMobileNetworkCodeChanged(class QString const &) - ?tr@QSystemDeviceInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 92 NONAME ; class QString QtMobility::QSystemDeviceInfo::tr(char const *, char const *, int) - ?batteryLevel@QSystemDeviceInfo@QtMobility@@QBEHXZ @ 93 NONAME ; int QtMobility::QSystemDeviceInfo::batteryLevel(void) const - ??_EQSystemInfo@QtMobility@@UAE@I@Z @ 94 NONAME ; QtMobility::QSystemInfo::~QSystemInfo(unsigned int) - ?getStaticMetaObject@QSystemScreenSaver@QtMobility@@SAABUQMetaObject@@XZ @ 95 NONAME ; struct QMetaObject const & QtMobility::QSystemScreenSaver::getStaticMetaObject(void) - ?getStaticMetaObject@QSystemDisplayInfo@QtMobility@@SAABUQMetaObject@@XZ @ 96 NONAME ; struct QMetaObject const & QtMobility::QSystemDisplayInfo::getStaticMetaObject(void) - ?hasFeatureSupported@QSystemInfo@QtMobility@@QAE_NW4Feature@12@@Z @ 97 NONAME ; bool QtMobility::QSystemInfo::hasFeatureSupported(enum QtMobility::QSystemInfo::Feature) - ?tr@QSystemDeviceInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 98 NONAME ; class QString QtMobility::QSystemDeviceInfo::tr(char const *, char const *) - ?isDeviceLocked@QSystemDeviceInfo@QtMobility@@QAE_NXZ @ 99 NONAME ; bool QtMobility::QSystemDeviceInfo::isDeviceLocked(void) - ?simStatus@QSystemDeviceInfo@QtMobility@@QAE?AW4SimStatus@12@XZ @ 100 NONAME ; enum QtMobility::QSystemDeviceInfo::SimStatus QtMobility::QSystemDeviceInfo::simStatus(void) - ?getStaticMetaObject@QSystemDeviceInfo@QtMobility@@SAABUQMetaObject@@XZ @ 101 NONAME ; struct QMetaObject const & QtMobility::QSystemDeviceInfo::getStaticMetaObject(void) - ?trUtf8@QSystemDisplayInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 102 NONAME ; class QString QtMobility::QSystemDisplayInfo::trUtf8(char const *, char const *, int) - ??0QSystemStorageInfo@QtMobility@@QAE@PAVQObject@@@Z @ 103 NONAME ; QtMobility::QSystemStorageInfo::QSystemStorageInfo(class QObject *) - ?qt_metacast@QSystemNetworkInfo@QtMobility@@UAEPAXPBD@Z @ 104 NONAME ; void * QtMobility::QSystemNetworkInfo::qt_metacast(char const *) - ?bluetoothStateChanged@QSystemDeviceInfo@QtMobility@@IAEX_N@Z @ 105 NONAME ; void QtMobility::QSystemDeviceInfo::bluetoothStateChanged(bool) - ?qt_metacall@QSystemDeviceInfo@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 106 NONAME ; int QtMobility::QSystemDeviceInfo::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacast@QSystemInfo@QtMobility@@UAEPAXPBD@Z @ 107 NONAME ; void * QtMobility::QSystemInfo::qt_metacast(char const *) - ?batteryLevelChanged@QSystemDeviceInfo@QtMobility@@IAEXH@Z @ 108 NONAME ; void QtMobility::QSystemDeviceInfo::batteryLevelChanged(int) - ?currentMobileNetworkCode@QSystemNetworkInfo@QtMobility@@QAE?AVQString@@XZ @ 109 NONAME ; class QString QtMobility::QSystemNetworkInfo::currentMobileNetworkCode(void) - ?imsi@QSystemDeviceInfo@QtMobility@@QAE?AVQString@@XZ @ 110 NONAME ; class QString QtMobility::QSystemDeviceInfo::imsi(void) - ?availableDiskSpace@QSystemStorageInfo@QtMobility@@QAE_JABVQString@@@Z @ 111 NONAME ; long long QtMobility::QSystemStorageInfo::availableDiskSpace(class QString const &) - ?networkNameChanged@QSystemNetworkInfo@QtMobility@@IAEXW4NetworkMode@12@ABVQString@@@Z @ 112 NONAME ; void QtMobility::QSystemNetworkInfo::networkNameChanged(enum QtMobility::QSystemNetworkInfo::NetworkMode, class QString const &) - ?tr@QSystemStorageInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 113 NONAME ; class QString QtMobility::QSystemStorageInfo::tr(char const *, char const *) - ?imei@QSystemDeviceInfo@QtMobility@@QAE?AVQString@@XZ @ 114 NONAME ; class QString QtMobility::QSystemDeviceInfo::imei(void) - ??0QSystemScreenSaver@QtMobility@@QAE@PAVQObject@@@Z @ 115 NONAME ; QtMobility::QSystemScreenSaver::QSystemScreenSaver(class QObject *) - ?displayBrightness@QSystemDisplayInfo@QtMobility@@SAHH@Z @ 116 NONAME ; int QtMobility::QSystemDisplayInfo::displayBrightness(int) - ?trUtf8@QSystemStorageInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 117 NONAME ; class QString QtMobility::QSystemStorageInfo::trUtf8(char const *, char const *, int) - ?networkStatus@QSystemNetworkInfo@QtMobility@@QAE?AW4NetworkStatus@12@W4NetworkMode@12@@Z @ 118 NONAME ; enum QtMobility::QSystemNetworkInfo::NetworkStatus QtMobility::QSystemNetworkInfo::networkStatus(enum QtMobility::QSystemNetworkInfo::NetworkMode) - ?staticMetaObject@QSystemStorageInfo@QtMobility@@2UQMetaObject@@B @ 119 NONAME ; struct QMetaObject const QtMobility::QSystemStorageInfo::staticMetaObject - ?screenSaverInhibited@QSystemScreenSaver@QtMobility@@QAE_NXZ @ 120 NONAME ; bool QtMobility::QSystemScreenSaver::screenSaverInhibited(void) + ?currentMode@QSystemNetworkInfo@QtMobility@@QAE?AW4NetworkMode@12@XZ @ 53 NONAME ; enum QtMobility::QSystemNetworkInfo::NetworkMode QtMobility::QSystemNetworkInfo::currentMode(void) + ??1QSystemStorageInfo@QtMobility@@UAE@XZ @ 54 NONAME ; QtMobility::QSystemStorageInfo::~QSystemStorageInfo(void) + ??0QSystemNetworkInfo@QtMobility@@QAE@PAVQObject@@@Z @ 55 NONAME ; QtMobility::QSystemNetworkInfo::QSystemNetworkInfo(class QObject *) + ?trUtf8@QSystemInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 56 NONAME ; class QString QtMobility::QSystemInfo::trUtf8(char const *, char const *) + ?currentProfileChanged@QSystemDeviceInfo@QtMobility@@IAEXW4Profile@12@@Z @ 57 NONAME ; void QtMobility::QSystemDeviceInfo::currentProfileChanged(enum QtMobility::QSystemDeviceInfo::Profile) + ?tr@QSystemDisplayInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 58 NONAME ; class QString QtMobility::QSystemDisplayInfo::tr(char const *, char const *, int) + ?networkSignalStrengthChanged@QSystemNetworkInfo@QtMobility@@IAEXW4NetworkMode@12@H@Z @ 59 NONAME ; void QtMobility::QSystemNetworkInfo::networkSignalStrengthChanged(enum QtMobility::QSystemNetworkInfo::NetworkMode, int) + ?trUtf8@QSystemScreenSaver@QtMobility@@SA?AVQString@@PBD0@Z @ 60 NONAME ; class QString QtMobility::QSystemScreenSaver::trUtf8(char const *, char const *) + ?trUtf8@QSystemDisplayInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 61 NONAME ; class QString QtMobility::QSystemDisplayInfo::trUtf8(char const *, char const *) + ?trUtf8@QSystemScreenSaver@QtMobility@@SA?AVQString@@PBD0H@Z @ 62 NONAME ; class QString QtMobility::QSystemScreenSaver::trUtf8(char const *, char const *, int) + ?staticMetaObject@QSystemNetworkInfo@QtMobility@@2UQMetaObject@@B @ 63 NONAME ; struct QMetaObject const QtMobility::QSystemNetworkInfo::staticMetaObject + ?staticMetaObject@QSystemDisplayInfo@QtMobility@@2UQMetaObject@@B @ 64 NONAME ; struct QMetaObject const QtMobility::QSystemDisplayInfo::staticMetaObject + ?qt_metacall@QSystemScreenSaver@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 65 NONAME ; int QtMobility::QSystemScreenSaver::qt_metacall(enum QMetaObject::Call, int, void * *) + ??1QSystemDeviceInfo@QtMobility@@UAE@XZ @ 66 NONAME ; QtMobility::QSystemDeviceInfo::~QSystemDeviceInfo(void) + ?qt_metacast@QSystemDisplayInfo@QtMobility@@UAEPAXPBD@Z @ 67 NONAME ; void * QtMobility::QSystemDisplayInfo::qt_metacast(char const *) + ??1QSystemScreenSaver@QtMobility@@UAE@XZ @ 68 NONAME ; QtMobility::QSystemScreenSaver::~QSystemScreenSaver(void) + ?trUtf8@QSystemNetworkInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 69 NONAME ; class QString QtMobility::QSystemNetworkInfo::trUtf8(char const *, char const *, int) + ??_EQSystemNetworkInfo@QtMobility@@UAE@I@Z @ 70 NONAME ; QtMobility::QSystemNetworkInfo::~QSystemNetworkInfo(unsigned int) + ??_EQSystemScreenSaver@QtMobility@@UAE@I@Z @ 71 NONAME ; QtMobility::QSystemScreenSaver::~QSystemScreenSaver(unsigned int) + ?homeMobileNetworkCode@QSystemNetworkInfo@QtMobility@@QAE?AVQString@@XZ @ 72 NONAME ; class QString QtMobility::QSystemNetworkInfo::homeMobileNetworkCode(void) + ?totalDiskSpace@QSystemStorageInfo@QtMobility@@QAE_JABVQString@@@Z @ 73 NONAME ; long long QtMobility::QSystemStorageInfo::totalDiskSpace(class QString const &) + ?currentMobileCountryCode@QSystemNetworkInfo@QtMobility@@QAE?AVQString@@XZ @ 74 NONAME ; class QString QtMobility::QSystemNetworkInfo::currentMobileCountryCode(void) + ?inputMethodType@QSystemDeviceInfo@QtMobility@@QAE?AV?$QFlags@W4InputMethod@QSystemDeviceInfo@QtMobility@@@@XZ @ 75 NONAME ; class QFlags QtMobility::QSystemDeviceInfo::inputMethodType(void) + ?tr@QSystemStorageInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 76 NONAME ; class QString QtMobility::QSystemStorageInfo::tr(char const *, char const *, int) + ?networkName@QSystemNetworkInfo@QtMobility@@SA?AVQString@@W4NetworkMode@12@@Z @ 77 NONAME ; class QString QtMobility::QSystemNetworkInfo::networkName(enum QtMobility::QSystemNetworkInfo::NetworkMode) + ?batteryStatusChanged@QSystemDeviceInfo@QtMobility@@IAEXW4BatteryStatus@12@@Z @ 78 NONAME ; void QtMobility::QSystemDeviceInfo::batteryStatusChanged(enum QtMobility::QSystemDeviceInfo::BatteryStatus) + ?currentPowerState@QSystemDeviceInfo@QtMobility@@QAE?AW4PowerState@12@XZ @ 79 NONAME ; enum QtMobility::QSystemDeviceInfo::PowerState QtMobility::QSystemDeviceInfo::currentPowerState(void) + ?tr@QSystemInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 80 NONAME ; class QString QtMobility::QSystemInfo::tr(char const *, char const *) + ?qt_metacast@QSystemScreenSaver@QtMobility@@UAEPAXPBD@Z @ 81 NONAME ; void * QtMobility::QSystemScreenSaver::qt_metacast(char const *) + ?qt_metacall@QSystemNetworkInfo@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 82 NONAME ; int QtMobility::QSystemNetworkInfo::qt_metacall(enum QMetaObject::Call, int, void * *) + ??_EQSystemDeviceInfo@QtMobility@@UAE@I@Z @ 83 NONAME ; QtMobility::QSystemDeviceInfo::~QSystemDeviceInfo(unsigned int) + ?batteryStatus@QSystemDeviceInfo@QtMobility@@QAE?AW4BatteryStatus@12@XZ @ 84 NONAME ; enum QtMobility::QSystemDeviceInfo::BatteryStatus QtMobility::QSystemDeviceInfo::batteryStatus(void) + ?tr@QSystemNetworkInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 85 NONAME ; class QString QtMobility::QSystemNetworkInfo::tr(char const *, char const *) + ?getStaticMetaObject@QSystemStorageInfo@QtMobility@@SAABUQMetaObject@@XZ @ 86 NONAME ; struct QMetaObject const & QtMobility::QSystemStorageInfo::getStaticMetaObject(void) + ??1QSystemNetworkInfo@QtMobility@@UAE@XZ @ 87 NONAME ; QtMobility::QSystemNetworkInfo::~QSystemNetworkInfo(void) + ?colorDepth@QSystemDisplayInfo@QtMobility@@SAHH@Z @ 88 NONAME ; int QtMobility::QSystemDisplayInfo::colorDepth(int) + ?powerStateChanged@QSystemDeviceInfo@QtMobility@@IAEXW4PowerState@12@@Z @ 89 NONAME ; void QtMobility::QSystemDeviceInfo::powerStateChanged(enum QtMobility::QSystemDeviceInfo::PowerState) + ?tr@QSystemInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 90 NONAME ; class QString QtMobility::QSystemInfo::tr(char const *, char const *, int) + ??1QSystemInfo@QtMobility@@UAE@XZ @ 91 NONAME ; QtMobility::QSystemInfo::~QSystemInfo(void) + ?currentMobileNetworkCodeChanged@QSystemNetworkInfo@QtMobility@@IAEXABVQString@@@Z @ 92 NONAME ; void QtMobility::QSystemNetworkInfo::currentMobileNetworkCodeChanged(class QString const &) + ?tr@QSystemDeviceInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 93 NONAME ; class QString QtMobility::QSystemDeviceInfo::tr(char const *, char const *, int) + ?batteryLevel@QSystemDeviceInfo@QtMobility@@QBEHXZ @ 94 NONAME ; int QtMobility::QSystemDeviceInfo::batteryLevel(void) const + ??_EQSystemInfo@QtMobility@@UAE@I@Z @ 95 NONAME ; QtMobility::QSystemInfo::~QSystemInfo(unsigned int) + ?getStaticMetaObject@QSystemScreenSaver@QtMobility@@SAABUQMetaObject@@XZ @ 96 NONAME ; struct QMetaObject const & QtMobility::QSystemScreenSaver::getStaticMetaObject(void) + ?getStaticMetaObject@QSystemDisplayInfo@QtMobility@@SAABUQMetaObject@@XZ @ 97 NONAME ; struct QMetaObject const & QtMobility::QSystemDisplayInfo::getStaticMetaObject(void) + ?hasFeatureSupported@QSystemInfo@QtMobility@@QAE_NW4Feature@12@@Z @ 98 NONAME ; bool QtMobility::QSystemInfo::hasFeatureSupported(enum QtMobility::QSystemInfo::Feature) + ?tr@QSystemDeviceInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 99 NONAME ; class QString QtMobility::QSystemDeviceInfo::tr(char const *, char const *) + ?isDeviceLocked@QSystemDeviceInfo@QtMobility@@QAE_NXZ @ 100 NONAME ; bool QtMobility::QSystemDeviceInfo::isDeviceLocked(void) + ?simStatus@QSystemDeviceInfo@QtMobility@@QAE?AW4SimStatus@12@XZ @ 101 NONAME ; enum QtMobility::QSystemDeviceInfo::SimStatus QtMobility::QSystemDeviceInfo::simStatus(void) + ?getStaticMetaObject@QSystemDeviceInfo@QtMobility@@SAABUQMetaObject@@XZ @ 102 NONAME ; struct QMetaObject const & QtMobility::QSystemDeviceInfo::getStaticMetaObject(void) + ?trUtf8@QSystemDisplayInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 103 NONAME ; class QString QtMobility::QSystemDisplayInfo::trUtf8(char const *, char const *, int) + ??0QSystemStorageInfo@QtMobility@@QAE@PAVQObject@@@Z @ 104 NONAME ; QtMobility::QSystemStorageInfo::QSystemStorageInfo(class QObject *) + ?qt_metacast@QSystemNetworkInfo@QtMobility@@UAEPAXPBD@Z @ 105 NONAME ; void * QtMobility::QSystemNetworkInfo::qt_metacast(char const *) + ?bluetoothStateChanged@QSystemDeviceInfo@QtMobility@@IAEX_N@Z @ 106 NONAME ; void QtMobility::QSystemDeviceInfo::bluetoothStateChanged(bool) + ?qt_metacall@QSystemDeviceInfo@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 107 NONAME ; int QtMobility::QSystemDeviceInfo::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacast@QSystemInfo@QtMobility@@UAEPAXPBD@Z @ 108 NONAME ; void * QtMobility::QSystemInfo::qt_metacast(char const *) + ?batteryLevelChanged@QSystemDeviceInfo@QtMobility@@IAEXH@Z @ 109 NONAME ; void QtMobility::QSystemDeviceInfo::batteryLevelChanged(int) + ?currentMobileNetworkCode@QSystemNetworkInfo@QtMobility@@QAE?AVQString@@XZ @ 110 NONAME ; class QString QtMobility::QSystemNetworkInfo::currentMobileNetworkCode(void) + ?imsi@QSystemDeviceInfo@QtMobility@@QAE?AVQString@@XZ @ 111 NONAME ; class QString QtMobility::QSystemDeviceInfo::imsi(void) + ?availableDiskSpace@QSystemStorageInfo@QtMobility@@QAE_JABVQString@@@Z @ 112 NONAME ; long long QtMobility::QSystemStorageInfo::availableDiskSpace(class QString const &) + ?networkNameChanged@QSystemNetworkInfo@QtMobility@@IAEXW4NetworkMode@12@ABVQString@@@Z @ 113 NONAME ; void QtMobility::QSystemNetworkInfo::networkNameChanged(enum QtMobility::QSystemNetworkInfo::NetworkMode, class QString const &) + ?tr@QSystemStorageInfo@QtMobility@@SA?AVQString@@PBD0@Z @ 114 NONAME ; class QString QtMobility::QSystemStorageInfo::tr(char const *, char const *) + ?imei@QSystemDeviceInfo@QtMobility@@QAE?AVQString@@XZ @ 115 NONAME ; class QString QtMobility::QSystemDeviceInfo::imei(void) + ??0QSystemScreenSaver@QtMobility@@QAE@PAVQObject@@@Z @ 116 NONAME ; QtMobility::QSystemScreenSaver::QSystemScreenSaver(class QObject *) + ?displayBrightness@QSystemDisplayInfo@QtMobility@@SAHH@Z @ 117 NONAME ; int QtMobility::QSystemDisplayInfo::displayBrightness(int) + ?trUtf8@QSystemStorageInfo@QtMobility@@SA?AVQString@@PBD0H@Z @ 118 NONAME ; class QString QtMobility::QSystemStorageInfo::trUtf8(char const *, char const *, int) + ?networkStatus@QSystemNetworkInfo@QtMobility@@QAE?AW4NetworkStatus@12@W4NetworkMode@12@@Z @ 119 NONAME ; enum QtMobility::QSystemNetworkInfo::NetworkStatus QtMobility::QSystemNetworkInfo::networkStatus(enum QtMobility::QSystemNetworkInfo::NetworkMode) + ?staticMetaObject@QSystemStorageInfo@QtMobility@@2UQMetaObject@@B @ 120 NONAME ; struct QMetaObject const QtMobility::QSystemStorageInfo::staticMetaObject + ?screenSaverInhibited@QSystemScreenSaver@QtMobility@@QAE_NXZ @ 121 NONAME ; bool QtMobility::QSystemScreenSaver::screenSaverInhibited(void) + ?connectNotify@QSystemNetworkInfo@QtMobility@@MAEXPBD@Z @ 122 NONAME ; void QtMobility::QSystemNetworkInfo::connectNotify(char const *) + ?disconnectNotify@QSystemNetworkInfo@QtMobility@@MAEXPBD@Z @ 123 NONAME ; void QtMobility::QSystemNetworkInfo::disconnectNotify(char const *) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/bwins/QtVersitu.def --- a/qtmobility/src/s60installs/bwins/QtVersitu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/bwins/QtVersitu.def Mon May 03 13:18:40 2010 +0300 @@ -1,134 +1,123 @@ EXPORTS - ??0QVersitContactExporter@QtMobility@@QAE@XZ @ 1 NONAME ; QtMobility::QVersitContactExporter::QVersitContactExporter(void) - ??0QVersitContactImporter@QtMobility@@QAE@XZ @ 2 NONAME ; QtMobility::QVersitContactImporter::QVersitContactImporter(void) - ??0QVersitDefaultResourceHandler@QtMobility@@QAE@XZ @ 3 NONAME ; QtMobility::QVersitDefaultResourceHandler::QVersitDefaultResourceHandler(void) - ??0QVersitDocument@QtMobility@@QAE@ABV01@@Z @ 4 NONAME ; QtMobility::QVersitDocument::QVersitDocument(class QtMobility::QVersitDocument const &) - ??0QVersitDocument@QtMobility@@QAE@XZ @ 5 NONAME ; QtMobility::QVersitDocument::QVersitDocument(void) - ??0QVersitDocumentWriter@QtMobility@@QAE@ABVQByteArray@@0@Z @ 6 NONAME ; QtMobility::QVersitDocumentWriter::QVersitDocumentWriter(class QByteArray const &, class QByteArray const &) - ??0QVersitProperty@QtMobility@@QAE@ABV01@@Z @ 7 NONAME ; QtMobility::QVersitProperty::QVersitProperty(class QtMobility::QVersitProperty const &) - ??0QVersitProperty@QtMobility@@QAE@XZ @ 8 NONAME ; QtMobility::QVersitProperty::QVersitProperty(void) - ??0QVersitReader@QtMobility@@QAE@XZ @ 9 NONAME ; QtMobility::QVersitReader::QVersitReader(void) - ??0QVersitResourceHandler@QtMobility@@QAE@XZ @ 10 NONAME ; QtMobility::QVersitResourceHandler::QVersitResourceHandler(void) - ??0QVersitWriter@QtMobility@@QAE@XZ @ 11 NONAME ; QtMobility::QVersitWriter::QVersitWriter(void) - ??1QVersitContactExporter@QtMobility@@QAE@XZ @ 12 NONAME ; QtMobility::QVersitContactExporter::~QVersitContactExporter(void) - ??1QVersitContactExporterDetailHandler@QtMobility@@UAE@XZ @ 13 NONAME ; QtMobility::QVersitContactExporterDetailHandler::~QVersitContactExporterDetailHandler(void) - ??1QVersitContactImporter@QtMobility@@QAE@XZ @ 14 NONAME ; QtMobility::QVersitContactImporter::~QVersitContactImporter(void) - ??1QVersitContactImporterPropertyHandler@QtMobility@@UAE@XZ @ 15 NONAME ; QtMobility::QVersitContactImporterPropertyHandler::~QVersitContactImporterPropertyHandler(void) - ??1QVersitDefaultResourceHandler@QtMobility@@UAE@XZ @ 16 NONAME ; QtMobility::QVersitDefaultResourceHandler::~QVersitDefaultResourceHandler(void) + ?error@QVersitWriter@QtMobility@@QBE?AW4Error@12@XZ @ 1 NONAME ; enum QtMobility::QVersitWriter::Error QtMobility::QVersitWriter::error(void) const + ??0QVersitDocument@QtMobility@@QAE@ABV01@@Z @ 2 NONAME ; QtMobility::QVersitDocument::QVersitDocument(class QtMobility::QVersitDocument const &) + ?insertParameter@QVersitProperty@QtMobility@@QAEXABVQString@@0@Z @ 3 NONAME ; void QtMobility::QVersitProperty::insertParameter(class QString const &, class QString const &) + ?setResourceHandler@QVersitContactExporter@QtMobility@@QAEXPAVQVersitResourceHandler@2@@Z @ 4 NONAME ; void QtMobility::QVersitContactExporter::setResourceHandler(class QtMobility::QVersitResourceHandler *) + ??1QVersitDefaultResourceHandler@QtMobility@@UAE@XZ @ 5 NONAME ; QtMobility::QVersitDefaultResourceHandler::~QVersitDefaultResourceHandler(void) + ?waitForFinished@QVersitWriter@QtMobility@@QAE_NH@Z @ 6 NONAME ; bool QtMobility::QVersitWriter::waitForFinished(int) + ?results@QVersitReader@QtMobility@@QBE?AV?$QList@VQVersitDocument@QtMobility@@@@XZ @ 7 NONAME ; class QList QtMobility::QVersitReader::results(void) const + ?cancel@QVersitReader@QtMobility@@QAEXXZ @ 8 NONAME ; void QtMobility::QVersitReader::cancel(void) + ?trUtf8@QVersitWriter@QtMobility@@SA?AVQString@@PBD0H@Z @ 9 NONAME ; class QString QtMobility::QVersitWriter::trUtf8(char const *, char const *, int) + ??8QVersitProperty@QtMobility@@QBE_NABV01@@Z @ 10 NONAME ; bool QtMobility::QVersitProperty::operator==(class QtMobility::QVersitProperty const &) const + ??1QVersitContactExporterDetailHandler@QtMobility@@UAE@XZ @ 11 NONAME ; QtMobility::QVersitContactExporterDetailHandler::~QVersitContactExporterDetailHandler(void) + ?metaObject@QVersitReader@QtMobility@@UBEPBUQMetaObject@@XZ @ 12 NONAME ; struct QMetaObject const * QtMobility::QVersitReader::metaObject(void) const + ?trUtf8@QVersitWriter@QtMobility@@SA?AVQString@@PBD0@Z @ 13 NONAME ; class QString QtMobility::QVersitWriter::trUtf8(char const *, char const *) + ??_EQVersitReader@QtMobility@@UAE@I@Z @ 14 NONAME ; QtMobility::QVersitReader::~QVersitReader(unsigned int) + ??0QVersitDocument@QtMobility@@QAE@XZ @ 15 NONAME ; QtMobility::QVersitDocument::QVersitDocument(void) + ?setDevice@QVersitReader@QtMobility@@QAEXPAVQIODevice@@@Z @ 16 NONAME ; void QtMobility::QVersitReader::setDevice(class QIODevice *) ??1QVersitDocument@QtMobility@@QAE@XZ @ 17 NONAME ; QtMobility::QVersitDocument::~QVersitDocument(void) - ??1QVersitDocumentWriter@QtMobility@@QAE@XZ @ 18 NONAME ; QtMobility::QVersitDocumentWriter::~QVersitDocumentWriter(void) - ??1QVersitProperty@QtMobility@@QAE@XZ @ 19 NONAME ; QtMobility::QVersitProperty::~QVersitProperty(void) - ??1QVersitReader@QtMobility@@UAE@XZ @ 20 NONAME ; QtMobility::QVersitReader::~QVersitReader(void) - ??1QVersitResourceHandler@QtMobility@@UAE@XZ @ 21 NONAME ; QtMobility::QVersitResourceHandler::~QVersitResourceHandler(void) - ??1QVersitWriter@QtMobility@@UAE@XZ @ 22 NONAME ; QtMobility::QVersitWriter::~QVersitWriter(void) - ??4QVersitDocument@QtMobility@@QAEAAV01@ABV01@@Z @ 23 NONAME ; class QtMobility::QVersitDocument & QtMobility::QVersitDocument::operator=(class QtMobility::QVersitDocument const &) - ??4QVersitProperty@QtMobility@@QAEAAV01@ABV01@@Z @ 24 NONAME ; class QtMobility::QVersitProperty & QtMobility::QVersitProperty::operator=(class QtMobility::QVersitProperty const &) - ??8QVersitDocument@QtMobility@@QBE_NABV01@@Z @ 25 NONAME ; bool QtMobility::QVersitDocument::operator==(class QtMobility::QVersitDocument const &) const - ??8QVersitProperty@QtMobility@@QBE_NABV01@@Z @ 26 NONAME ; bool QtMobility::QVersitProperty::operator==(class QtMobility::QVersitProperty const &) const - ??9QVersitDocument@QtMobility@@QBE_NABV01@@Z @ 27 NONAME ; bool QtMobility::QVersitDocument::operator!=(class QtMobility::QVersitDocument const &) const - ??9QVersitProperty@QtMobility@@QBE_NABV01@@Z @ 28 NONAME ; bool QtMobility::QVersitProperty::operator!=(class QtMobility::QVersitProperty const &) const - ??_EQVersitContactExporterDetailHandler@QtMobility@@UAE@I@Z @ 29 NONAME ; QtMobility::QVersitContactExporterDetailHandler::~QVersitContactExporterDetailHandler(unsigned int) - ??_EQVersitContactImporterPropertyHandler@QtMobility@@UAE@I@Z @ 30 NONAME ; QtMobility::QVersitContactImporterPropertyHandler::~QVersitContactImporterPropertyHandler(unsigned int) - ??_EQVersitDefaultResourceHandler@QtMobility@@UAE@I@Z @ 31 NONAME ; QtMobility::QVersitDefaultResourceHandler::~QVersitDefaultResourceHandler(unsigned int) - ??_EQVersitDocument@QtMobility@@QAE@I@Z @ 32 NONAME ; QtMobility::QVersitDocument::~QVersitDocument(unsigned int) - ??_EQVersitDocumentWriter@QtMobility@@QAE@I@Z @ 33 NONAME ; QtMobility::QVersitDocumentWriter::~QVersitDocumentWriter(unsigned int) - ??_EQVersitProperty@QtMobility@@QAE@I@Z @ 34 NONAME ; QtMobility::QVersitProperty::~QVersitProperty(unsigned int) - ??_EQVersitReader@QtMobility@@UAE@I@Z @ 35 NONAME ; QtMobility::QVersitReader::~QVersitReader(unsigned int) - ??_EQVersitResourceHandler@QtMobility@@UAE@I@Z @ 36 NONAME ; QtMobility::QVersitResourceHandler::~QVersitResourceHandler(unsigned int) - ??_EQVersitWriter@QtMobility@@UAE@I@Z @ 37 NONAME ; QtMobility::QVersitWriter::~QVersitWriter(unsigned int) - ?addParameter@QVersitProperty@QtMobility@@QAEXABVQString@@0@Z @ 38 NONAME ; void QtMobility::QVersitProperty::addParameter(class QString const &, class QString const &) - ?addProperty@QVersitDocument@QtMobility@@QAEXABVQVersitProperty@2@@Z @ 39 NONAME ; void QtMobility::QVersitDocument::addProperty(class QtMobility::QVersitProperty const &) - ?audioClipPath@QVersitContactImporter@QtMobility@@QBE?AVQString@@XZ @ 40 NONAME ; class QString QtMobility::QVersitContactImporter::audioClipPath(void) const - ?cancel@QVersitReader@QtMobility@@QAEXXZ @ 41 NONAME ; void QtMobility::QVersitReader::cancel(void) - ?cancel@QVersitWriter@QtMobility@@QAEXXZ @ 42 NONAME ; void QtMobility::QVersitWriter::cancel(void) - ?clear@QVersitDocument@QtMobility@@QAEXXZ @ 43 NONAME ; void QtMobility::QVersitDocument::clear(void) - ?clear@QVersitProperty@QtMobility@@QAEXXZ @ 44 NONAME ; void QtMobility::QVersitProperty::clear(void) - ?defaultCodec@QVersitReader@QtMobility@@QBEPAVQTextCodec@@XZ @ 45 NONAME ; class QTextCodec * QtMobility::QVersitReader::defaultCodec(void) const - ?defaultCodec@QVersitWriter@QtMobility@@QBEPAVQTextCodec@@XZ @ 46 NONAME ; class QTextCodec * QtMobility::QVersitWriter::defaultCodec(void) const - ?detailHandler@QVersitContactExporter@QtMobility@@QBEPAVQVersitContactExporterDetailHandler@2@XZ @ 47 NONAME ; class QtMobility::QVersitContactExporterDetailHandler * QtMobility::QVersitContactExporter::detailHandler(void) const - ?device@QVersitReader@QtMobility@@QBEPAVQIODevice@@XZ @ 48 NONAME ; class QIODevice * QtMobility::QVersitReader::device(void) const - ?device@QVersitWriter@QtMobility@@QBEPAVQIODevice@@XZ @ 49 NONAME ; class QIODevice * QtMobility::QVersitWriter::device(void) const - ?embeddedDocument@QVersitProperty@QtMobility@@QBE?AVQVersitDocument@2@XZ @ 50 NONAME ; class QtMobility::QVersitDocument QtMobility::QVersitProperty::embeddedDocument(void) const - ?encodeGroupsAndName@QVersitDocumentWriter@QtMobility@@QBE?AVQByteArray@@ABVQVersitProperty@2@PAVQTextCodec@@@Z @ 51 NONAME ; class QByteArray QtMobility::QVersitDocumentWriter::encodeGroupsAndName(class QtMobility::QVersitProperty const &, class QTextCodec *) const - ?encodeVersitDocument@QVersitDocumentWriter@QtMobility@@QAE?AVQByteArray@@ABVQVersitDocument@2@PAVQTextCodec@@@Z @ 52 NONAME ; class QByteArray QtMobility::QVersitDocumentWriter::encodeVersitDocument(class QtMobility::QVersitDocument const &, class QTextCodec *) - ?error@QVersitReader@QtMobility@@QBE?AW4Error@12@XZ @ 53 NONAME ; enum QtMobility::QVersitReader::Error QtMobility::QVersitReader::error(void) const - ?error@QVersitWriter@QtMobility@@QBE?AW4Error@12@XZ @ 54 NONAME ; enum QtMobility::QVersitWriter::Error QtMobility::QVersitWriter::error(void) const - ?exportContact@QVersitContactExporter@QtMobility@@QAE?AVQVersitDocument@2@ABVQContact@2@W4VersitType@32@@Z @ 55 NONAME ; class QtMobility::QVersitDocument QtMobility::QVersitContactExporter::exportContact(class QtMobility::QContact const &, enum QtMobility::QVersitDocument::VersitType) - ?exportContacts@QVersitContactExporter@QtMobility@@QAE?AV?$QList@VQVersitDocument@QtMobility@@@@ABV?$QList@VQContact@QtMobility@@@@W4VersitType@QVersitDocument@2@@Z @ 56 NONAME ; class QList QtMobility::QVersitContactExporter::exportContacts(class QList const &, enum QtMobility::QVersitDocument::VersitType) - ?getStaticMetaObject@QVersitReader@QtMobility@@SAABUQMetaObject@@XZ @ 57 NONAME ; struct QMetaObject const & QtMobility::QVersitReader::getStaticMetaObject(void) - ?getStaticMetaObject@QVersitWriter@QtMobility@@SAABUQMetaObject@@XZ @ 58 NONAME ; struct QMetaObject const & QtMobility::QVersitWriter::getStaticMetaObject(void) - ?groups@QVersitProperty@QtMobility@@QBE?AVQStringList@@XZ @ 59 NONAME ; class QStringList QtMobility::QVersitProperty::groups(void) const - ?imagePath@QVersitContactImporter@QtMobility@@QBE?AVQString@@XZ @ 60 NONAME ; class QString QtMobility::QVersitContactImporter::imagePath(void) const - ?importContact@QVersitContactImporter@QtMobility@@QAE?AVQContact@2@ABVQVersitDocument@2@@Z @ 61 NONAME ; class QtMobility::QContact QtMobility::QVersitContactImporter::importContact(class QtMobility::QVersitDocument const &) - ?importContacts@QVersitContactImporter@QtMobility@@QAE?AV?$QList@VQContact@QtMobility@@@@ABV?$QList@VQVersitDocument@QtMobility@@@@@Z @ 62 NONAME ; class QList QtMobility::QVersitContactImporter::importContacts(class QList const &) - ?insertParameter@QVersitProperty@QtMobility@@QAEXABVQString@@0@Z @ 63 NONAME ; void QtMobility::QVersitProperty::insertParameter(class QString const &, class QString const &) - ?isEmpty@QVersitDocument@QtMobility@@QBE_NXZ @ 64 NONAME ; bool QtMobility::QVersitDocument::isEmpty(void) const - ?isEmpty@QVersitProperty@QtMobility@@QBE_NXZ @ 65 NONAME ; bool QtMobility::QVersitProperty::isEmpty(void) const - ?loadResource@QVersitDefaultResourceHandler@QtMobility@@UAE_NABVQString@@PAVQByteArray@@PAV3@@Z @ 66 NONAME ; bool QtMobility::QVersitDefaultResourceHandler::loadResource(class QString const &, class QByteArray *, class QString *) - ?metaObject@QVersitReader@QtMobility@@UBEPBUQMetaObject@@XZ @ 67 NONAME ; struct QMetaObject const * QtMobility::QVersitReader::metaObject(void) const - ?metaObject@QVersitWriter@QtMobility@@UBEPBUQMetaObject@@XZ @ 68 NONAME ; struct QMetaObject const * QtMobility::QVersitWriter::metaObject(void) const - ?name@QVersitProperty@QtMobility@@QBE?AVQString@@XZ @ 69 NONAME ; class QString QtMobility::QVersitProperty::name(void) const - ?parameters@QVersitProperty@QtMobility@@QBE?AV?$QMultiHash@VQString@@V1@@@XZ @ 70 NONAME ; class QMultiHash QtMobility::QVersitProperty::parameters(void) const - ?properties@QVersitDocument@QtMobility@@QBE?AV?$QList@VQVersitProperty@QtMobility@@@@XZ @ 71 NONAME ; class QList QtMobility::QVersitDocument::properties(void) const - ?propertyHandler@QVersitContactImporter@QtMobility@@QBEPAVQVersitContactImporterPropertyHandler@2@XZ @ 72 NONAME ; class QtMobility::QVersitContactImporterPropertyHandler * QtMobility::QVersitContactImporter::propertyHandler(void) const - ?qt_metacall@QVersitReader@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 73 NONAME ; int QtMobility::QVersitReader::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@QVersitWriter@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 74 NONAME ; int QtMobility::QVersitWriter::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacast@QVersitReader@QtMobility@@UAEPAXPBD@Z @ 75 NONAME ; void * QtMobility::QVersitReader::qt_metacast(char const *) - ?qt_metacast@QVersitWriter@QtMobility@@UAEPAXPBD@Z @ 76 NONAME ; void * QtMobility::QVersitWriter::qt_metacast(char const *) - ?readAll@QVersitReader@QtMobility@@QAE_NXZ @ 77 NONAME ; bool QtMobility::QVersitReader::readAll(void) - ?removeParameter@QVersitProperty@QtMobility@@QAEXABVQString@@0@Z @ 78 NONAME ; void QtMobility::QVersitProperty::removeParameter(class QString const &, class QString const &) - ?removeParameters@QVersitProperty@QtMobility@@QAEXABVQString@@@Z @ 79 NONAME ; void QtMobility::QVersitProperty::removeParameters(class QString const &) - ?removeProperties@QVersitDocument@QtMobility@@QAEXABVQString@@@Z @ 80 NONAME ; void QtMobility::QVersitDocument::removeProperties(class QString const &) - ?removeProperty@QVersitDocument@QtMobility@@QAEXABVQVersitProperty@2@@Z @ 81 NONAME ; void QtMobility::QVersitDocument::removeProperty(class QtMobility::QVersitProperty const &) - ?resourceHandler@QVersitContactExporter@QtMobility@@QBEPAVQVersitResourceHandler@2@XZ @ 82 NONAME ; class QtMobility::QVersitResourceHandler * QtMobility::QVersitContactExporter::resourceHandler(void) const - ?resourceHandler@QVersitContactImporter@QtMobility@@QBEPAVQVersitResourceHandler@2@XZ @ 83 NONAME ; class QtMobility::QVersitResourceHandler * QtMobility::QVersitContactImporter::resourceHandler(void) const - ?result@QVersitReader@QtMobility@@QBE?AV?$QList@VQVersitDocument@QtMobility@@@@XZ @ 84 NONAME ; class QList QtMobility::QVersitReader::result(void) const - ?results@QVersitReader@QtMobility@@QBE?AV?$QList@VQVersitDocument@QtMobility@@@@XZ @ 85 NONAME ; class QList QtMobility::QVersitReader::results(void) const - ?resultsAvailable@QVersitReader@QtMobility@@IAEXAAV?$QList@VQVersitDocument@QtMobility@@@@@Z @ 86 NONAME ; void QtMobility::QVersitReader::resultsAvailable(class QList &) - ?saveResource@QVersitDefaultResourceHandler@QtMobility@@UAE_NABVQByteArray@@ABVQVersitProperty@2@PAVQString@@@Z @ 87 NONAME ; bool QtMobility::QVersitDefaultResourceHandler::saveResource(class QByteArray const &, class QtMobility::QVersitProperty const &, class QString *) - ?setAudioClipPath@QVersitContactImporter@QtMobility@@QAEXABVQString@@@Z @ 88 NONAME ; void QtMobility::QVersitContactImporter::setAudioClipPath(class QString const &) - ?setDefaultCodec@QVersitReader@QtMobility@@QAEXPAVQTextCodec@@@Z @ 89 NONAME ; void QtMobility::QVersitReader::setDefaultCodec(class QTextCodec *) - ?setDefaultCodec@QVersitWriter@QtMobility@@QAEXPAVQTextCodec@@@Z @ 90 NONAME ; void QtMobility::QVersitWriter::setDefaultCodec(class QTextCodec *) - ?setDetailHandler@QVersitContactExporter@QtMobility@@QAEXPAVQVersitContactExporterDetailHandler@2@@Z @ 91 NONAME ; void QtMobility::QVersitContactExporter::setDetailHandler(class QtMobility::QVersitContactExporterDetailHandler *) - ?setDevice@QVersitReader@QtMobility@@QAEXPAVQIODevice@@@Z @ 92 NONAME ; void QtMobility::QVersitReader::setDevice(class QIODevice *) - ?setDevice@QVersitWriter@QtMobility@@QAEXPAVQIODevice@@@Z @ 93 NONAME ; void QtMobility::QVersitWriter::setDevice(class QIODevice *) - ?setEmbeddedDocument@QVersitProperty@QtMobility@@QAEXABVQVersitDocument@2@@Z @ 94 NONAME ; void QtMobility::QVersitProperty::setEmbeddedDocument(class QtMobility::QVersitDocument const &) - ?setGroups@QVersitProperty@QtMobility@@QAEXABVQStringList@@@Z @ 95 NONAME ; void QtMobility::QVersitProperty::setGroups(class QStringList const &) - ?setImagePath@QVersitContactImporter@QtMobility@@QAEXABVQString@@@Z @ 96 NONAME ; void QtMobility::QVersitContactImporter::setImagePath(class QString const &) - ?setName@QVersitProperty@QtMobility@@QAEXABVQString@@@Z @ 97 NONAME ; void QtMobility::QVersitProperty::setName(class QString const &) - ?setParameters@QVersitProperty@QtMobility@@QAEXABV?$QMultiHash@VQString@@V1@@@@Z @ 98 NONAME ; void QtMobility::QVersitProperty::setParameters(class QMultiHash const &) - ?setPropertyHandler@QVersitContactImporter@QtMobility@@QAEXPAVQVersitContactImporterPropertyHandler@2@@Z @ 99 NONAME ; void QtMobility::QVersitContactImporter::setPropertyHandler(class QtMobility::QVersitContactImporterPropertyHandler *) - ?setResourceHandler@QVersitContactExporter@QtMobility@@QAEXPAVQVersitResourceHandler@2@@Z @ 100 NONAME ; void QtMobility::QVersitContactExporter::setResourceHandler(class QtMobility::QVersitResourceHandler *) - ?setResourceHandler@QVersitContactImporter@QtMobility@@QAEXPAVQVersitResourceHandler@2@@Z @ 101 NONAME ; void QtMobility::QVersitContactImporter::setResourceHandler(class QtMobility::QVersitResourceHandler *) - ?setType@QVersitDocument@QtMobility@@QAEXW4VersitType@12@@Z @ 102 NONAME ; void QtMobility::QVersitDocument::setType(enum QtMobility::QVersitDocument::VersitType) - ?setValue@QVersitProperty@QtMobility@@QAEXABVQVariant@@@Z @ 103 NONAME ; void QtMobility::QVersitProperty::setValue(class QVariant const &) - ?setVersitDocument@QVersitWriter@QtMobility@@QAEXABVQVersitDocument@2@@Z @ 104 NONAME ; void QtMobility::QVersitWriter::setVersitDocument(class QtMobility::QVersitDocument const &) - ?setVersitType@QVersitDocument@QtMobility@@QAEXW4VersitType@12@@Z @ 105 NONAME ; void QtMobility::QVersitDocument::setVersitType(enum QtMobility::QVersitDocument::VersitType) - ?startReading@QVersitReader@QtMobility@@QAE_NXZ @ 106 NONAME ; bool QtMobility::QVersitReader::startReading(void) - ?startWriting@QVersitWriter@QtMobility@@QAE_NABV?$QList@VQVersitDocument@QtMobility@@@@@Z @ 107 NONAME ; bool QtMobility::QVersitWriter::startWriting(class QList const &) - ?startWriting@QVersitWriter@QtMobility@@QAE_NXZ @ 108 NONAME ; bool QtMobility::QVersitWriter::startWriting(void) - ?state@QVersitReader@QtMobility@@QBE?AW4State@12@XZ @ 109 NONAME ; enum QtMobility::QVersitReader::State QtMobility::QVersitReader::state(void) const - ?state@QVersitWriter@QtMobility@@QBE?AW4State@12@XZ @ 110 NONAME ; enum QtMobility::QVersitWriter::State QtMobility::QVersitWriter::state(void) const - ?stateChanged@QVersitReader@QtMobility@@IAEXW4State@12@@Z @ 111 NONAME ; void QtMobility::QVersitReader::stateChanged(enum QtMobility::QVersitReader::State) - ?stateChanged@QVersitWriter@QtMobility@@IAEXW4State@12@@Z @ 112 NONAME ; void QtMobility::QVersitWriter::stateChanged(enum QtMobility::QVersitWriter::State) - ?tr@QVersitReader@QtMobility@@SA?AVQString@@PBD0@Z @ 113 NONAME ; class QString QtMobility::QVersitReader::tr(char const *, char const *) - ?tr@QVersitReader@QtMobility@@SA?AVQString@@PBD0H@Z @ 114 NONAME ; class QString QtMobility::QVersitReader::tr(char const *, char const *, int) - ?tr@QVersitWriter@QtMobility@@SA?AVQString@@PBD0@Z @ 115 NONAME ; class QString QtMobility::QVersitWriter::tr(char const *, char const *) - ?tr@QVersitWriter@QtMobility@@SA?AVQString@@PBD0H@Z @ 116 NONAME ; class QString QtMobility::QVersitWriter::tr(char const *, char const *, int) - ?trUtf8@QVersitReader@QtMobility@@SA?AVQString@@PBD0@Z @ 117 NONAME ; class QString QtMobility::QVersitReader::trUtf8(char const *, char const *) - ?trUtf8@QVersitReader@QtMobility@@SA?AVQString@@PBD0H@Z @ 118 NONAME ; class QString QtMobility::QVersitReader::trUtf8(char const *, char const *, int) - ?trUtf8@QVersitWriter@QtMobility@@SA?AVQString@@PBD0@Z @ 119 NONAME ; class QString QtMobility::QVersitWriter::trUtf8(char const *, char const *) - ?trUtf8@QVersitWriter@QtMobility@@SA?AVQString@@PBD0H@Z @ 120 NONAME ; class QString QtMobility::QVersitWriter::trUtf8(char const *, char const *, int) - ?type@QVersitDocument@QtMobility@@QBE?AW4VersitType@12@XZ @ 121 NONAME ; enum QtMobility::QVersitDocument::VersitType QtMobility::QVersitDocument::type(void) const - ?unknownContactDetails@QVersitContactExporter@QtMobility@@QAE?AV?$QList@VQContactDetail@QtMobility@@@@XZ @ 122 NONAME ; class QList QtMobility::QVersitContactExporter::unknownContactDetails(void) - ?unknownVersitProperties@QVersitContactImporter@QtMobility@@QAE?AV?$QList@VQVersitProperty@QtMobility@@@@XZ @ 123 NONAME ; class QList QtMobility::QVersitContactImporter::unknownVersitProperties(void) - ?value@QVersitProperty@QtMobility@@QBE?AVQString@@XZ @ 124 NONAME ; class QString QtMobility::QVersitProperty::value(void) const - ?variantValue@QVersitProperty@QtMobility@@QBE?AVQVariant@@XZ @ 125 NONAME ; class QVariant QtMobility::QVersitProperty::variantValue(void) const - ?versitDocument@QVersitWriter@QtMobility@@QBE?AVQVersitDocument@2@XZ @ 126 NONAME ; class QtMobility::QVersitDocument QtMobility::QVersitWriter::versitDocument(void) const - ?versitType@QVersitDocument@QtMobility@@QBE?AW4VersitType@12@XZ @ 127 NONAME ; enum QtMobility::QVersitDocument::VersitType QtMobility::QVersitDocument::versitType(void) const - ?waitForFinished@QVersitReader@QtMobility@@QAE_NH@Z @ 128 NONAME ; bool QtMobility::QVersitReader::waitForFinished(int) - ?waitForFinished@QVersitWriter@QtMobility@@QAE_NH@Z @ 129 NONAME ; bool QtMobility::QVersitWriter::waitForFinished(int) - ?writeAll@QVersitWriter@QtMobility@@QAE_NXZ @ 130 NONAME ; bool QtMobility::QVersitWriter::writeAll(void) - ?staticMetaObject@QVersitWriter@QtMobility@@2UQMetaObject@@B @ 131 NONAME ; struct QMetaObject const QtMobility::QVersitWriter::staticMetaObject - ?staticMetaObject@QVersitReader@QtMobility@@2UQMetaObject@@B @ 132 NONAME ; struct QMetaObject const QtMobility::QVersitReader::staticMetaObject + ?tr@QVersitReader@QtMobility@@SA?AVQString@@PBD0@Z @ 18 NONAME ; class QString QtMobility::QVersitReader::tr(char const *, char const *) + ?getStaticMetaObject@QVersitReader@QtMobility@@SAABUQMetaObject@@XZ @ 19 NONAME ; struct QMetaObject const & QtMobility::QVersitReader::getStaticMetaObject(void) + ??4QVersitDocument@QtMobility@@QAEAAV01@ABV01@@Z @ 20 NONAME ; class QtMobility::QVersitDocument & QtMobility::QVersitDocument::operator=(class QtMobility::QVersitDocument const &) + ??6QtMobility@@YA?AVQDebug@@V1@ABVQVersitDocument@0@@Z @ 21 NONAME ; class QDebug QtMobility::operator<<(class QDebug, class QtMobility::QVersitDocument const &) + ?setParameters@QVersitProperty@QtMobility@@QAEXABV?$QMultiHash@VQString@@V1@@@@Z @ 22 NONAME ; void QtMobility::QVersitProperty::setParameters(class QMultiHash const &) + ??1QVersitContactImporter@QtMobility@@QAE@XZ @ 23 NONAME ; QtMobility::QVersitContactImporter::~QVersitContactImporter(void) + ?errors@QVersitContactImporter@QtMobility@@QBE?AV?$QMap@HW4Error@QVersitContactImporter@QtMobility@@@@XZ @ 24 NONAME ; class QMap QtMobility::QVersitContactImporter::errors(void) const + ?qt_metacast@QVersitWriter@QtMobility@@UAEPAXPBD@Z @ 25 NONAME ; void * QtMobility::QVersitWriter::qt_metacast(char const *) + ??_EQVersitContactImporterPropertyHandler@QtMobility@@UAE@I@Z @ 26 NONAME ; QtMobility::QVersitContactImporterPropertyHandler::~QVersitContactImporterPropertyHandler(unsigned int) + ?trUtf8@QVersitReader@QtMobility@@SA?AVQString@@PBD0H@Z @ 27 NONAME ; class QString QtMobility::QVersitReader::trUtf8(char const *, char const *, int) + ??0QVersitProperty@QtMobility@@QAE@XZ @ 28 NONAME ; QtMobility::QVersitProperty::QVersitProperty(void) + ?tr@QVersitWriter@QtMobility@@SA?AVQString@@PBD0H@Z @ 29 NONAME ; class QString QtMobility::QVersitWriter::tr(char const *, char const *, int) + ?addProperty@QVersitDocument@QtMobility@@QAEXABVQVersitProperty@2@@Z @ 30 NONAME ; void QtMobility::QVersitDocument::addProperty(class QtMobility::QVersitProperty const &) + ??1QVersitReader@QtMobility@@UAE@XZ @ 31 NONAME ; QtMobility::QVersitReader::~QVersitReader(void) + ??1QVersitProperty@QtMobility@@QAE@XZ @ 32 NONAME ; QtMobility::QVersitProperty::~QVersitProperty(void) + ??_EQVersitWriter@QtMobility@@UAE@I@Z @ 33 NONAME ; QtMobility::QVersitWriter::~QVersitWriter(unsigned int) + ?stateChanged@QVersitWriter@QtMobility@@IAEXW4State@12@@Z @ 34 NONAME ; void QtMobility::QVersitWriter::stateChanged(enum QtMobility::QVersitWriter::State) + ?staticMetaObject@QVersitWriter@QtMobility@@2UQMetaObject@@B @ 35 NONAME ; struct QMetaObject const QtMobility::QVersitWriter::staticMetaObject + ?setValue@QVersitProperty@QtMobility@@QAEXABVQVariant@@@Z @ 36 NONAME ; void QtMobility::QVersitProperty::setValue(class QVariant const &) + ?removeParameters@QVersitProperty@QtMobility@@QAEXABVQString@@@Z @ 37 NONAME ; void QtMobility::QVersitProperty::removeParameters(class QString const &) + ?properties@QVersitDocument@QtMobility@@QBE?AV?$QList@VQVersitProperty@QtMobility@@@@XZ @ 38 NONAME ; class QList QtMobility::QVersitDocument::properties(void) const + ?qHash@QtMobility@@YAIABVQVersitProperty@1@@Z @ 39 NONAME ; unsigned int QtMobility::qHash(class QtMobility::QVersitProperty const &) + ?setDevice@QVersitWriter@QtMobility@@QAEXPAVQIODevice@@@Z @ 40 NONAME ; void QtMobility::QVersitWriter::setDevice(class QIODevice *) + ?device@QVersitReader@QtMobility@@QBEPAVQIODevice@@XZ @ 41 NONAME ; class QIODevice * QtMobility::QVersitReader::device(void) const + ??1QVersitResourceHandler@QtMobility@@UAE@XZ @ 42 NONAME ; QtMobility::QVersitResourceHandler::~QVersitResourceHandler(void) + ??0QVersitProperty@QtMobility@@QAE@ABV01@@Z @ 43 NONAME ; QtMobility::QVersitProperty::QVersitProperty(class QtMobility::QVersitProperty const &) + ??1QVersitContactExporter@QtMobility@@QAE@XZ @ 44 NONAME ; QtMobility::QVersitContactExporter::~QVersitContactExporter(void) + ?variantValue@QVersitProperty@QtMobility@@QBE?AVQVariant@@XZ @ 45 NONAME ; class QVariant QtMobility::QVersitProperty::variantValue(void) const + ?tr@QVersitWriter@QtMobility@@SA?AVQString@@PBD0@Z @ 46 NONAME ; class QString QtMobility::QVersitWriter::tr(char const *, char const *) + ?removeProperty@QVersitDocument@QtMobility@@QAEXABVQVersitProperty@2@@Z @ 47 NONAME ; void QtMobility::QVersitDocument::removeProperty(class QtMobility::QVersitProperty const &) + ?getStaticMetaObject@QVersitWriter@QtMobility@@SAABUQMetaObject@@XZ @ 48 NONAME ; struct QMetaObject const & QtMobility::QVersitWriter::getStaticMetaObject(void) + ?saveResource@QVersitDefaultResourceHandler@QtMobility@@UAE_NABVQByteArray@@ABVQVersitProperty@2@PAVQString@@@Z @ 49 NONAME ; bool QtMobility::QVersitDefaultResourceHandler::saveResource(class QByteArray const &, class QtMobility::QVersitProperty const &, class QString *) + ?error@QVersitReader@QtMobility@@QBE?AW4Error@12@XZ @ 50 NONAME ; enum QtMobility::QVersitReader::Error QtMobility::QVersitReader::error(void) const + ?propertyHandler@QVersitContactImporter@QtMobility@@QBEPAVQVersitContactImporterPropertyHandler@2@XZ @ 51 NONAME ; class QtMobility::QVersitContactImporterPropertyHandler * QtMobility::QVersitContactImporter::propertyHandler(void) const + ??0QVersitReader@QtMobility@@QAE@PAVQIODevice@@@Z @ 52 NONAME ; QtMobility::QVersitReader::QVersitReader(class QIODevice *) + ?staticMetaObject@QVersitReader@QtMobility@@2UQMetaObject@@B @ 53 NONAME ; struct QMetaObject const QtMobility::QVersitReader::staticMetaObject + ??0QVersitDefaultResourceHandler@QtMobility@@QAE@XZ @ 54 NONAME ; QtMobility::QVersitDefaultResourceHandler::QVersitDefaultResourceHandler(void) + ??0QVersitWriter@QtMobility@@QAE@XZ @ 55 NONAME ; QtMobility::QVersitWriter::QVersitWriter(void) + ?setData@QVersitReader@QtMobility@@QAEXABVQByteArray@@@Z @ 56 NONAME ; void QtMobility::QVersitReader::setData(class QByteArray const &) + ??0QVersitWriter@QtMobility@@QAE@PAVQByteArray@@@Z @ 57 NONAME ; QtMobility::QVersitWriter::QVersitWriter(class QByteArray *) + ??9QVersitDocument@QtMobility@@QBE_NABV01@@Z @ 58 NONAME ; bool QtMobility::QVersitDocument::operator!=(class QtMobility::QVersitDocument const &) const + ?documents@QVersitContactExporter@QtMobility@@QBE?AV?$QList@VQVersitDocument@QtMobility@@@@XZ @ 59 NONAME ; class QList QtMobility::QVersitContactExporter::documents(void) const + ?type@QVersitDocument@QtMobility@@QBE?AW4VersitType@12@XZ @ 60 NONAME ; enum QtMobility::QVersitDocument::VersitType QtMobility::QVersitDocument::type(void) const + ?device@QVersitWriter@QtMobility@@QBEPAVQIODevice@@XZ @ 61 NONAME ; class QIODevice * QtMobility::QVersitWriter::device(void) const + ?tr@QVersitReader@QtMobility@@SA?AVQString@@PBD0H@Z @ 62 NONAME ; class QString QtMobility::QVersitReader::tr(char const *, char const *, int) + ?state@QVersitWriter@QtMobility@@QBE?AW4State@12@XZ @ 63 NONAME ; enum QtMobility::QVersitWriter::State QtMobility::QVersitWriter::state(void) const + ?resourceHandler@QVersitContactImporter@QtMobility@@QBEPAVQVersitResourceHandler@2@XZ @ 64 NONAME ; class QtMobility::QVersitResourceHandler * QtMobility::QVersitContactImporter::resourceHandler(void) const + ?contacts@QVersitContactImporter@QtMobility@@QBE?AV?$QList@VQContact@QtMobility@@@@XZ @ 65 NONAME ; class QList QtMobility::QVersitContactImporter::contacts(void) const + ??0QVersitDocument@QtMobility@@QAE@W4VersitType@01@@Z @ 66 NONAME ; QtMobility::QVersitDocument::QVersitDocument(enum QtMobility::QVersitDocument::VersitType) + ?isEmpty@QVersitProperty@QtMobility@@QBE_NXZ @ 67 NONAME ; bool QtMobility::QVersitProperty::isEmpty(void) const + ?defaultCodec@QVersitReader@QtMobility@@QBEPAVQTextCodec@@XZ @ 68 NONAME ; class QTextCodec * QtMobility::QVersitReader::defaultCodec(void) const + ??4QVersitProperty@QtMobility@@QAEAAV01@ABV01@@Z @ 69 NONAME ; class QtMobility::QVersitProperty & QtMobility::QVersitProperty::operator=(class QtMobility::QVersitProperty const &) + ?name@QVersitProperty@QtMobility@@QBE?AVQString@@XZ @ 70 NONAME ; class QString QtMobility::QVersitProperty::name(void) const + ?qt_metacall@QVersitReader@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 71 NONAME ; int QtMobility::QVersitReader::qt_metacall(enum QMetaObject::Call, int, void * *) + ?startReading@QVersitReader@QtMobility@@QAE_NXZ @ 72 NONAME ; bool QtMobility::QVersitReader::startReading(void) + ??0QVersitWriter@QtMobility@@QAE@PAVQIODevice@@@Z @ 73 NONAME ; QtMobility::QVersitWriter::QVersitWriter(class QIODevice *) + ?clear@QVersitDocument@QtMobility@@QAEXXZ @ 74 NONAME ; void QtMobility::QVersitDocument::clear(void) + ?detailHandler@QVersitContactExporter@QtMobility@@QBEPAVQVersitContactExporterDetailHandler@2@XZ @ 75 NONAME ; class QtMobility::QVersitContactExporterDetailHandler * QtMobility::QVersitContactExporter::detailHandler(void) const + ?isEmpty@QVersitDocument@QtMobility@@QBE_NXZ @ 76 NONAME ; bool QtMobility::QVersitDocument::isEmpty(void) const + ??9QVersitProperty@QtMobility@@QBE_NABV01@@Z @ 77 NONAME ; bool QtMobility::QVersitProperty::operator!=(class QtMobility::QVersitProperty const &) const + ?cancel@QVersitWriter@QtMobility@@QAEXXZ @ 78 NONAME ; void QtMobility::QVersitWriter::cancel(void) + ?setDefaultCodec@QVersitWriter@QtMobility@@QAEXPAVQTextCodec@@@Z @ 79 NONAME ; void QtMobility::QVersitWriter::setDefaultCodec(class QTextCodec *) + ?resultsAvailable@QVersitReader@QtMobility@@IAEXXZ @ 80 NONAME ; void QtMobility::QVersitReader::resultsAvailable(void) + ??0QVersitContactImporter@QtMobility@@QAE@XZ @ 81 NONAME ; QtMobility::QVersitContactImporter::QVersitContactImporter(void) + ?importDocuments@QVersitContactImporter@QtMobility@@QAE_NABV?$QList@VQVersitDocument@QtMobility@@@@@Z @ 82 NONAME ; bool QtMobility::QVersitContactImporter::importDocuments(class QList const &) + ??_EQVersitDefaultResourceHandler@QtMobility@@UAE@I@Z @ 83 NONAME ; QtMobility::QVersitDefaultResourceHandler::~QVersitDefaultResourceHandler(unsigned int) + ?removeProperties@QVersitDocument@QtMobility@@QAEXABVQString@@@Z @ 84 NONAME ; void QtMobility::QVersitDocument::removeProperties(class QString const &) + ??6QtMobility@@YA?AVQDebug@@V1@ABVQVersitProperty@0@@Z @ 85 NONAME ; class QDebug QtMobility::operator<<(class QDebug, class QtMobility::QVersitProperty const &) + ?removeParameter@QVersitProperty@QtMobility@@QAEXABVQString@@0@Z @ 86 NONAME ; void QtMobility::QVersitProperty::removeParameter(class QString const &, class QString const &) + ?loadResource@QVersitDefaultResourceHandler@QtMobility@@UAE_NABVQString@@PAVQByteArray@@PAV3@@Z @ 87 NONAME ; bool QtMobility::QVersitDefaultResourceHandler::loadResource(class QString const &, class QByteArray *, class QString *) + ?setName@QVersitProperty@QtMobility@@QAEXABVQString@@@Z @ 88 NONAME ; void QtMobility::QVersitProperty::setName(class QString const &) + ?setType@QVersitDocument@QtMobility@@QAEXW4VersitType@12@@Z @ 89 NONAME ; void QtMobility::QVersitDocument::setType(enum QtMobility::QVersitDocument::VersitType) + ?setDetailHandler@QVersitContactExporter@QtMobility@@QAEXPAVQVersitContactExporterDetailHandler@2@@Z @ 90 NONAME ; void QtMobility::QVersitContactExporter::setDetailHandler(class QtMobility::QVersitContactExporterDetailHandler *) + ?qt_metacast@QVersitReader@QtMobility@@UAEPAXPBD@Z @ 91 NONAME ; void * QtMobility::QVersitReader::qt_metacast(char const *) + ??1QVersitContactImporterPropertyHandler@QtMobility@@UAE@XZ @ 92 NONAME ; QtMobility::QVersitContactImporterPropertyHandler::~QVersitContactImporterPropertyHandler(void) + ?waitForFinished@QVersitReader@QtMobility@@QAE_NH@Z @ 93 NONAME ; bool QtMobility::QVersitReader::waitForFinished(int) + ?qt_metacall@QVersitWriter@QtMobility@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 94 NONAME ; int QtMobility::QVersitWriter::qt_metacall(enum QMetaObject::Call, int, void * *) + ?clear@QVersitProperty@QtMobility@@QAEXXZ @ 95 NONAME ; void QtMobility::QVersitProperty::clear(void) + ?exportContacts@QVersitContactExporter@QtMobility@@QAE_NABV?$QList@VQContact@QtMobility@@@@W4VersitType@QVersitDocument@2@@Z @ 96 NONAME ; bool QtMobility::QVersitContactExporter::exportContacts(class QList const &, enum QtMobility::QVersitDocument::VersitType) + ?value@QVersitProperty@QtMobility@@QBE?AVQString@@XZ @ 97 NONAME ; class QString QtMobility::QVersitProperty::value(void) const + ?parameters@QVersitProperty@QtMobility@@QBE?AV?$QMultiHash@VQString@@V1@@@XZ @ 98 NONAME ; class QMultiHash QtMobility::QVersitProperty::parameters(void) const + ??0QVersitReader@QtMobility@@QAE@ABVQByteArray@@@Z @ 99 NONAME ; QtMobility::QVersitReader::QVersitReader(class QByteArray const &) + ??0QVersitContactExporter@QtMobility@@QAE@XZ @ 100 NONAME ; QtMobility::QVersitContactExporter::QVersitContactExporter(void) + ?defaultCodec@QVersitWriter@QtMobility@@QBEPAVQTextCodec@@XZ @ 101 NONAME ; class QTextCodec * QtMobility::QVersitWriter::defaultCodec(void) const + ?setPropertyHandler@QVersitContactImporter@QtMobility@@QAEXPAVQVersitContactImporterPropertyHandler@2@@Z @ 102 NONAME ; void QtMobility::QVersitContactImporter::setPropertyHandler(class QtMobility::QVersitContactImporterPropertyHandler *) + ?setResourceHandler@QVersitContactImporter@QtMobility@@QAEXPAVQVersitResourceHandler@2@@Z @ 103 NONAME ; void QtMobility::QVersitContactImporter::setResourceHandler(class QtMobility::QVersitResourceHandler *) + ??0QVersitReader@QtMobility@@QAE@XZ @ 104 NONAME ; QtMobility::QVersitReader::QVersitReader(void) + ?stateChanged@QVersitReader@QtMobility@@IAEXW4State@12@@Z @ 105 NONAME ; void QtMobility::QVersitReader::stateChanged(enum QtMobility::QVersitReader::State) + ?setValueType@QVersitProperty@QtMobility@@QAEXW4ValueType@12@@Z @ 106 NONAME ; void QtMobility::QVersitProperty::setValueType(enum QtMobility::QVersitProperty::ValueType) + ?resourceHandler@QVersitContactExporter@QtMobility@@QBEPAVQVersitResourceHandler@2@XZ @ 107 NONAME ; class QtMobility::QVersitResourceHandler * QtMobility::QVersitContactExporter::resourceHandler(void) const + ?setDefaultCodec@QVersitReader@QtMobility@@QAEXPAVQTextCodec@@@Z @ 108 NONAME ; void QtMobility::QVersitReader::setDefaultCodec(class QTextCodec *) + ??8QVersitDocument@QtMobility@@QBE_NABV01@@Z @ 109 NONAME ; bool QtMobility::QVersitDocument::operator==(class QtMobility::QVersitDocument const &) const + ?startWriting@QVersitWriter@QtMobility@@QAE_NABV?$QList@VQVersitDocument@QtMobility@@@@@Z @ 110 NONAME ; bool QtMobility::QVersitWriter::startWriting(class QList const &) + ?qHash@QtMobility@@YAIABVQVersitDocument@1@@Z @ 111 NONAME ; unsigned int QtMobility::qHash(class QtMobility::QVersitDocument const &) + ??1QVersitWriter@QtMobility@@UAE@XZ @ 112 NONAME ; QtMobility::QVersitWriter::~QVersitWriter(void) + ?setGroups@QVersitProperty@QtMobility@@QAEXABVQStringList@@@Z @ 113 NONAME ; void QtMobility::QVersitProperty::setGroups(class QStringList const &) + ?metaObject@QVersitWriter@QtMobility@@UBEPBUQMetaObject@@XZ @ 114 NONAME ; struct QMetaObject const * QtMobility::QVersitWriter::metaObject(void) const + ?trUtf8@QVersitReader@QtMobility@@SA?AVQString@@PBD0@Z @ 115 NONAME ; class QString QtMobility::QVersitReader::trUtf8(char const *, char const *) + ?valueType@QVersitProperty@QtMobility@@QBE?AW4ValueType@12@XZ @ 116 NONAME ; enum QtMobility::QVersitProperty::ValueType QtMobility::QVersitProperty::valueType(void) const + ?errors@QVersitContactExporter@QtMobility@@QBE?AV?$QMap@HW4Error@QVersitContactExporter@QtMobility@@@@XZ @ 117 NONAME ; class QMap QtMobility::QVersitContactExporter::errors(void) const + ?groups@QVersitProperty@QtMobility@@QBE?AVQStringList@@XZ @ 118 NONAME ; class QStringList QtMobility::QVersitProperty::groups(void) const + ??_EQVersitResourceHandler@QtMobility@@UAE@I@Z @ 119 NONAME ; QtMobility::QVersitResourceHandler::~QVersitResourceHandler(unsigned int) + ?state@QVersitReader@QtMobility@@QBE?AW4State@12@XZ @ 120 NONAME ; enum QtMobility::QVersitReader::State QtMobility::QVersitReader::state(void) const + ??_EQVersitContactExporterDetailHandler@QtMobility@@UAE@I@Z @ 121 NONAME ; QtMobility::QVersitContactExporterDetailHandler::~QVersitContactExporterDetailHandler(unsigned int) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/eabi/QtContactsu.def --- a/qtmobility/src/s60installs/eabi/QtContactsu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/eabi/QtContactsu.def Mon May 03 13:18:40 2010 +0300 @@ -8,15 +8,15 @@ _ZN10QtMobility10QContactIdD1Ev @ 7 NONAME _ZN10QtMobility10QContactIdD2Ev @ 8 NONAME _ZN10QtMobility10QContactIdaSERKS0_ @ 9 NONAME - _ZN10QtMobility11QContactUrl12FieldSubTypeE @ 10 NONAME DATA 8 - _ZN10QtMobility11QContactUrl14DefinitionNameE @ 11 NONAME DATA 4 - _ZN10QtMobility11QContactUrl15SubTypeHomePageE @ 12 NONAME DATA 9 - _ZN10QtMobility11QContactUrl16SubTypeFavouriteE @ 13 NONAME DATA 10 - _ZN10QtMobility11QContactUrl8FieldUrlE @ 14 NONAME DATA 4 - _ZN10QtMobility12QContactGuid14DefinitionNameE @ 15 NONAME DATA 5 - _ZN10QtMobility12QContactGuid9FieldGuidE @ 16 NONAME DATA 5 - _ZN10QtMobility12QContactName10FieldFirstE @ 17 NONAME DATA 10 - _ZN10QtMobility12QContactName11FieldMiddleE @ 18 NONAME DATA 11 + _ZN10QtMobility11QContactTag14DefinitionNameE @ 10 NONAME DATA 4 + _ZN10QtMobility11QContactTag8FieldTagE @ 11 NONAME DATA 4 + _ZN10QtMobility11QContactUrl12FieldSubTypeE @ 12 NONAME DATA 8 + _ZN10QtMobility11QContactUrl14DefinitionNameE @ 13 NONAME DATA 4 + _ZN10QtMobility11QContactUrl15SubTypeHomePageE @ 14 NONAME DATA 9 + _ZN10QtMobility11QContactUrl16SubTypeFavouriteE @ 15 NONAME DATA 10 + _ZN10QtMobility11QContactUrl8FieldUrlE @ 16 NONAME DATA 4 + _ZN10QtMobility12QContactGuid14DefinitionNameE @ 17 NONAME DATA 5 + _ZN10QtMobility12QContactGuid9FieldGuidE @ 18 NONAME DATA 5 _ZN10QtMobility12QContactName11FieldPrefixE @ 19 NONAME DATA 7 _ZN10QtMobility12QContactName11FieldSuffixE @ 20 NONAME DATA 7 _ZN10QtMobility12QContactName13FieldLastNameE @ 21 NONAME DATA 9 @@ -26,892 +26,812 @@ _ZN10QtMobility12QContactName16FieldCustomLabelE @ 25 NONAME DATA 12 _ZN10QtMobility12QContactName5matchERK7QString @ 26 NONAME _ZN10QtMobility12QContactName5matchERK7QStringS3_ @ 27 NONAME - _ZN10QtMobility12QContactName9FieldLastE @ 28 NONAME DATA 9 - _ZN10QtMobility12QContactNote14DefinitionNameE @ 29 NONAME DATA 5 - _ZN10QtMobility12QContactNote9FieldNoteE @ 30 NONAME DATA 5 - _ZN10QtMobility12QContactType11TypeContactE @ 31 NONAME DATA 8 - _ZN10QtMobility12QContactType14DefinitionNameE @ 32 NONAME DATA 5 - _ZN10QtMobility12QContactType9FieldTypeE @ 33 NONAME DATA 5 - _ZN10QtMobility12QContactType9TypeGroupE @ 34 NONAME DATA 6 - _ZN10QtMobility14QContactAction11qt_metacallEN11QMetaObject4CallEiPPv @ 35 NONAME - _ZN10QtMobility14QContactAction11qt_metacastEPKc @ 36 NONAME + _ZN10QtMobility12QContactNote14DefinitionNameE @ 28 NONAME DATA 5 + _ZN10QtMobility12QContactNote9FieldNoteE @ 29 NONAME DATA 5 + _ZN10QtMobility12QContactType11TypeContactE @ 30 NONAME DATA 8 + _ZN10QtMobility12QContactType14DefinitionNameE @ 31 NONAME DATA 5 + _ZN10QtMobility12QContactType9FieldTypeE @ 32 NONAME DATA 5 + _ZN10QtMobility12QContactType9TypeGroupE @ 33 NONAME DATA 6 + _ZN10QtMobility14QContactAction11qt_metacallEN11QMetaObject4CallEiPPv @ 34 NONAME + _ZN10QtMobility14QContactAction11qt_metacastEPKc @ 35 NONAME + _ZN10QtMobility14QContactAction12stateChangedENS0_5StateE @ 36 NONAME _ZN10QtMobility14QContactAction16availableActionsERK7QStringi @ 37 NONAME - _ZN10QtMobility14QContactAction16staticMetaObjectE @ 38 NONAME DATA 16 - _ZN10QtMobility14QContactAction17actionDescriptorsERK7QStringS3_i @ 39 NONAME - _ZN10QtMobility14QContactAction19getStaticMetaObjectEv @ 40 NONAME - _ZN10QtMobility14QContactAction6actionERKNS_24QContactActionDescriptorE @ 41 NONAME - _ZN10QtMobility14QContactAction8progressENS0_5StateERK4QMapI7QString8QVariantE @ 42 NONAME - _ZN10QtMobility14QContactAction8progressENS0_6StatusERK4QMapI7QString8QVariantE @ 43 NONAME - _ZN10QtMobility14QContactActionD0Ev @ 44 NONAME - _ZN10QtMobility14QContactActionD1Ev @ 45 NONAME - _ZN10QtMobility14QContactActionD2Ev @ 46 NONAME - _ZN10QtMobility14QContactAvatar11FieldAvatarE @ 47 NONAME DATA 7 - _ZN10QtMobility14QContactAvatar12FieldSubTypeE @ 48 NONAME DATA 8 - _ZN10QtMobility14QContactAvatar12SubTypeImageE @ 49 NONAME DATA 6 - _ZN10QtMobility14QContactAvatar12SubTypeVideoE @ 50 NONAME DATA 6 - _ZN10QtMobility14QContactAvatar14DefinitionNameE @ 51 NONAME DATA 7 - _ZN10QtMobility14QContactAvatar17FieldAvatarPixmapE @ 52 NONAME DATA 13 - _ZN10QtMobility14QContactAvatar19SubTypeTexturedMeshE @ 53 NONAME DATA 13 - _ZN10QtMobility14QContactAvatar20SubTypeAudioRingtoneE @ 54 NONAME DATA 14 - _ZN10QtMobility14QContactAvatar20SubTypeVideoRingtoneE @ 55 NONAME DATA 14 - _ZN10QtMobility14QContactDetail11ContextHomeE @ 56 NONAME DATA 5 - _ZN10QtMobility14QContactDetail11ContextWorkE @ 57 NONAME DATA 5 - _ZN10QtMobility14QContactDetail11removeValueERK7QString @ 58 NONAME - _ZN10QtMobility14QContactDetail12ContextOtherE @ 59 NONAME DATA 6 - _ZN10QtMobility14QContactDetail12FieldContextE @ 60 NONAME DATA 8 - _ZN10QtMobility14QContactDetail14FieldDetailUriE @ 61 NONAME DATA 10 - _ZN10QtMobility14QContactDetail19setPreferredActionsERK5QListINS_24QContactActionDescriptorEE @ 62 NONAME - _ZN10QtMobility14QContactDetail21FieldLinkedDetailUrisE @ 63 NONAME DATA 17 - _ZN10QtMobility14QContactDetail6assignERKS0_RK7QString @ 64 NONAME - _ZN10QtMobility14QContactDetail8resetKeyEv @ 65 NONAME - _ZN10QtMobility14QContactDetail8setValueERK7QStringRK8QVariant @ 66 NONAME - _ZN10QtMobility14QContactDetailC1ERK7QString @ 67 NONAME - _ZN10QtMobility14QContactDetailC1ERKS0_ @ 68 NONAME - _ZN10QtMobility14QContactDetailC1ERKS0_RK7QString @ 69 NONAME - _ZN10QtMobility14QContactDetailC1Ev @ 70 NONAME - _ZN10QtMobility14QContactDetailC2ERK7QString @ 71 NONAME - _ZN10QtMobility14QContactDetailC2ERKS0_ @ 72 NONAME - _ZN10QtMobility14QContactDetailC2ERKS0_RK7QString @ 73 NONAME - _ZN10QtMobility14QContactDetailC2Ev @ 74 NONAME - _ZN10QtMobility14QContactDetailD0Ev @ 75 NONAME - _ZN10QtMobility14QContactDetailD1Ev @ 76 NONAME - _ZN10QtMobility14QContactDetailD2Ev @ 77 NONAME - _ZN10QtMobility14QContactDetailaSERKS0_ @ 78 NONAME - _ZN10QtMobility14QContactFamily11FieldSpouseE @ 79 NONAME DATA 7 - _ZN10QtMobility14QContactFamily13FieldChildrenE @ 80 NONAME DATA 9 - _ZN10QtMobility14QContactFamily14DefinitionNameE @ 81 NONAME DATA 7 - _ZN10QtMobility14QContactFilterC1EPNS_21QContactFilterPrivateE @ 82 NONAME - _ZN10QtMobility14QContactFilterC1ERKS0_ @ 83 NONAME - _ZN10QtMobility14QContactFilterC1Ev @ 84 NONAME - _ZN10QtMobility14QContactFilterC2EPNS_21QContactFilterPrivateE @ 85 NONAME - _ZN10QtMobility14QContactFilterC2ERKS0_ @ 86 NONAME - _ZN10QtMobility14QContactFilterC2Ev @ 87 NONAME - _ZN10QtMobility14QContactFilterD0Ev @ 88 NONAME - _ZN10QtMobility14QContactFilterD1Ev @ 89 NONAME - _ZN10QtMobility14QContactFilterD2Ev @ 90 NONAME - _ZN10QtMobility14QContactFilteraSERKS0_ @ 91 NONAME - _ZN10QtMobility14QContactGender10GenderMaleE @ 92 NONAME DATA 5 - _ZN10QtMobility14QContactGender11FieldGenderE @ 93 NONAME DATA 7 - _ZN10QtMobility14QContactGender12GenderFemaleE @ 94 NONAME DATA 7 - _ZN10QtMobility14QContactGender14DefinitionNameE @ 95 NONAME DATA 7 - _ZN10QtMobility14QContactGender17GenderUnspecifiedE @ 96 NONAME DATA 12 - _ZN10QtMobility15QContactAddress11FieldRegionE @ 97 NONAME DATA 7 - _ZN10QtMobility15QContactAddress11FieldStreetE @ 98 NONAME DATA 7 - _ZN10QtMobility15QContactAddress12FieldCountryE @ 99 NONAME DATA 8 - _ZN10QtMobility15QContactAddress13FieldLocalityE @ 100 NONAME DATA 9 - _ZN10QtMobility15QContactAddress13FieldPostcodeE @ 101 NONAME DATA 9 - _ZN10QtMobility15QContactAddress13FieldSubTypesE @ 102 NONAME DATA 9 - _ZN10QtMobility15QContactAddress13SubTypeParcelE @ 103 NONAME DATA 7 - _ZN10QtMobility15QContactAddress13SubTypePostalE @ 104 NONAME DATA 7 - _ZN10QtMobility15QContactAddress14DefinitionNameE @ 105 NONAME DATA 14 - _ZN10QtMobility15QContactAddress15SubTypeDomesticE @ 106 NONAME DATA 9 - _ZN10QtMobility15QContactAddress18FieldPostOfficeBoxE @ 107 NONAME DATA 14 - _ZN10QtMobility15QContactAddress20SubTypeInternationalE @ 108 NONAME DATA 14 - _ZN10QtMobility15QContactManager11dataChangedEv @ 109 NONAME - _ZN10QtMobility15QContactManager11qt_metacallEN11QMetaObject4CallEiPPv @ 110 NONAME - _ZN10QtMobility15QContactManager11qt_metacastEPKc @ 111 NONAME - _ZN10QtMobility15QContactManager11saveContactEPNS_8QContactE @ 112 NONAME - _ZN10QtMobility15QContactManager12createEngineERK7QStringRK4QMapIS1_S1_E @ 113 NONAME - _ZN10QtMobility15QContactManager12saveContactsEP5QListINS_8QContactEE @ 114 NONAME - _ZN10QtMobility15QContactManager12saveContactsEP5QListINS_8QContactEEP4QMapIiNS0_5ErrorEE @ 115 NONAME - _ZN10QtMobility15QContactManager13contactsAddedERK5QListIjE @ 116 NONAME - _ZN10QtMobility15QContactManager13removeContactERKj @ 117 NONAME - _ZN10QtMobility15QContactManager14removeContactsEP5QListIjE @ 118 NONAME - _ZN10QtMobility15QContactManager14removeContactsEP5QListIjEP4QMapIiNS0_5ErrorEE @ 119 NONAME - _ZN10QtMobility15QContactManager15contactsChangedERK5QListIjE @ 120 NONAME - _ZN10QtMobility15QContactManager15contactsRemovedERK5QListIjE @ 121 NONAME - _ZN10QtMobility15QContactManager16saveRelationshipEPNS_20QContactRelationshipE @ 122 NONAME - _ZN10QtMobility15QContactManager16setSelfContactIdERKj @ 123 NONAME - _ZN10QtMobility15QContactManager16staticMetaObjectE @ 124 NONAME DATA 16 - _ZN10QtMobility15QContactManager17availableManagersEv @ 125 NONAME - _ZN10QtMobility15QContactManager17saveRelationshipsEP5QListINS_20QContactRelationshipEE @ 126 NONAME - _ZN10QtMobility15QContactManager18relationshipsAddedERK5QListIjE @ 127 NONAME - _ZN10QtMobility15QContactManager18removeRelationshipERKNS_20QContactRelationshipE @ 128 NONAME - _ZN10QtMobility15QContactManager19getStaticMetaObjectEv @ 129 NONAME - _ZN10QtMobility15QContactManager19removeRelationshipsERK5QListINS_20QContactRelationshipEE @ 130 NONAME - _ZN10QtMobility15QContactManager20relationshipsRemovedERK5QListIjE @ 131 NONAME - _ZN10QtMobility15QContactManager20saveDetailDefinitionERKNS_24QContactDetailDefinitionERK7QString @ 132 NONAME - _ZN10QtMobility15QContactManager20selfContactIdChangedERKjS2_ @ 133 NONAME - _ZN10QtMobility15QContactManager22removeDetailDefinitionERK7QStringS3_ @ 134 NONAME - _ZN10QtMobility15QContactManager7fromUriERK7QStringP7QObject @ 135 NONAME - _ZN10QtMobility15QContactManager7versionEv @ 136 NONAME - _ZN10QtMobility15QContactManager8buildUriERK7QStringRK4QMapIS1_S1_Ei @ 137 NONAME - _ZN10QtMobility15QContactManager8parseUriERK7QStringPS1_P4QMapIS1_S1_E @ 138 NONAME - _ZN10QtMobility15QContactManager8splitUriERK7QStringPS1_P4QMapIS1_S1_E @ 139 NONAME - _ZN10QtMobility15QContactManagerC1EP7QObject @ 140 NONAME - _ZN10QtMobility15QContactManagerC1ERK7QStringRK4QMapIS1_S1_EP7QObject @ 141 NONAME - _ZN10QtMobility15QContactManagerC1ERK7QStringiRK4QMapIS1_S1_EP7QObject @ 142 NONAME - _ZN10QtMobility15QContactManagerC2EP7QObject @ 143 NONAME - _ZN10QtMobility15QContactManagerC2ERK7QStringRK4QMapIS1_S1_EP7QObject @ 144 NONAME - _ZN10QtMobility15QContactManagerC2ERK7QStringiRK4QMapIS1_S1_EP7QObject @ 145 NONAME - _ZN10QtMobility15QContactManagerD0Ev @ 146 NONAME - _ZN10QtMobility15QContactManagerD1Ev @ 147 NONAME - _ZN10QtMobility15QContactManagerD2Ev @ 148 NONAME - _ZN10QtMobility16QContactBirthday13FieldBirthdayE @ 149 NONAME DATA 9 - _ZN10QtMobility16QContactBirthday14DefinitionNameE @ 150 NONAME DATA 9 - _ZN10QtMobility16QContactNickname13FieldNicknameE @ 151 NONAME DATA 9 - _ZN10QtMobility16QContactNickname14DefinitionNameE @ 152 NONAME DATA 9 + _ZN10QtMobility14QContactAction16resultsAvailableEv @ 38 NONAME + _ZN10QtMobility14QContactAction16staticMetaObjectE @ 39 NONAME DATA 16 + _ZN10QtMobility14QContactAction17actionDescriptorsERK7QStringS3_i @ 40 NONAME + _ZN10QtMobility14QContactAction19getStaticMetaObjectEv @ 41 NONAME + _ZN10QtMobility14QContactAction6actionERKNS_24QContactActionDescriptorE @ 42 NONAME + _ZN10QtMobility14QContactActionD0Ev @ 43 NONAME + _ZN10QtMobility14QContactActionD1Ev @ 44 NONAME + _ZN10QtMobility14QContactActionD2Ev @ 45 NONAME + _ZN10QtMobility14QContactAvatar13FieldImageUrlE @ 46 NONAME DATA 9 + _ZN10QtMobility14QContactAvatar13FieldVideoUrlE @ 47 NONAME DATA 9 + _ZN10QtMobility14QContactAvatar14DefinitionNameE @ 48 NONAME DATA 7 + _ZN10QtMobility14QContactDetail11ContextHomeE @ 49 NONAME DATA 5 + _ZN10QtMobility14QContactDetail11ContextWorkE @ 50 NONAME DATA 5 + _ZN10QtMobility14QContactDetail11removeValueERK7QString @ 51 NONAME + _ZN10QtMobility14QContactDetail12ContextOtherE @ 52 NONAME DATA 6 + _ZN10QtMobility14QContactDetail12FieldContextE @ 53 NONAME DATA 8 + _ZN10QtMobility14QContactDetail14FieldDetailUriE @ 54 NONAME DATA 10 + _ZN10QtMobility14QContactDetail21FieldLinkedDetailUrisE @ 55 NONAME DATA 17 + _ZN10QtMobility14QContactDetail6assignERKS0_RK7QString @ 56 NONAME + _ZN10QtMobility14QContactDetail8resetKeyEv @ 57 NONAME + _ZN10QtMobility14QContactDetail8setValueERK7QStringRK8QVariant @ 58 NONAME + _ZN10QtMobility14QContactDetailC1ERK7QString @ 59 NONAME + _ZN10QtMobility14QContactDetailC1ERKS0_ @ 60 NONAME + _ZN10QtMobility14QContactDetailC1ERKS0_RK7QString @ 61 NONAME + _ZN10QtMobility14QContactDetailC1Ev @ 62 NONAME + _ZN10QtMobility14QContactDetailC2ERK7QString @ 63 NONAME + _ZN10QtMobility14QContactDetailC2ERKS0_ @ 64 NONAME + _ZN10QtMobility14QContactDetailC2ERKS0_RK7QString @ 65 NONAME + _ZN10QtMobility14QContactDetailC2Ev @ 66 NONAME + _ZN10QtMobility14QContactDetailD0Ev @ 67 NONAME + _ZN10QtMobility14QContactDetailD1Ev @ 68 NONAME + _ZN10QtMobility14QContactDetailD2Ev @ 69 NONAME + _ZN10QtMobility14QContactDetailaSERKS0_ @ 70 NONAME + _ZN10QtMobility14QContactFamily11FieldSpouseE @ 71 NONAME DATA 7 + _ZN10QtMobility14QContactFamily13FieldChildrenE @ 72 NONAME DATA 9 + _ZN10QtMobility14QContactFamily14DefinitionNameE @ 73 NONAME DATA 7 + _ZN10QtMobility14QContactFilterC1EPNS_21QContactFilterPrivateE @ 74 NONAME + _ZN10QtMobility14QContactFilterC1ERKS0_ @ 75 NONAME + _ZN10QtMobility14QContactFilterC1Ev @ 76 NONAME + _ZN10QtMobility14QContactFilterC2EPNS_21QContactFilterPrivateE @ 77 NONAME + _ZN10QtMobility14QContactFilterC2ERKS0_ @ 78 NONAME + _ZN10QtMobility14QContactFilterC2Ev @ 79 NONAME + _ZN10QtMobility14QContactFilterD0Ev @ 80 NONAME + _ZN10QtMobility14QContactFilterD1Ev @ 81 NONAME + _ZN10QtMobility14QContactFilterD2Ev @ 82 NONAME + _ZN10QtMobility14QContactFilteraSERKS0_ @ 83 NONAME + _ZN10QtMobility14QContactGender10GenderMaleE @ 84 NONAME DATA 5 + _ZN10QtMobility14QContactGender11FieldGenderE @ 85 NONAME DATA 7 + _ZN10QtMobility14QContactGender12GenderFemaleE @ 86 NONAME DATA 7 + _ZN10QtMobility14QContactGender14DefinitionNameE @ 87 NONAME DATA 7 + _ZN10QtMobility14QContactGender17GenderUnspecifiedE @ 88 NONAME DATA 12 + _ZN10QtMobility15QContactAddress11FieldRegionE @ 89 NONAME DATA 7 + _ZN10QtMobility15QContactAddress11FieldStreetE @ 90 NONAME DATA 7 + _ZN10QtMobility15QContactAddress12FieldCountryE @ 91 NONAME DATA 8 + _ZN10QtMobility15QContactAddress13FieldLocalityE @ 92 NONAME DATA 9 + _ZN10QtMobility15QContactAddress13FieldPostcodeE @ 93 NONAME DATA 9 + _ZN10QtMobility15QContactAddress13FieldSubTypesE @ 94 NONAME DATA 9 + _ZN10QtMobility15QContactAddress13SubTypeParcelE @ 95 NONAME DATA 7 + _ZN10QtMobility15QContactAddress13SubTypePostalE @ 96 NONAME DATA 7 + _ZN10QtMobility15QContactAddress14DefinitionNameE @ 97 NONAME DATA 8 + _ZN10QtMobility15QContactAddress15SubTypeDomesticE @ 98 NONAME DATA 9 + _ZN10QtMobility15QContactAddress18FieldPostOfficeBoxE @ 99 NONAME DATA 14 + _ZN10QtMobility15QContactAddress20SubTypeInternationalE @ 100 NONAME DATA 14 + _ZN10QtMobility15QContactManager11dataChangedEv @ 101 NONAME + _ZN10QtMobility15QContactManager11qt_metacallEN11QMetaObject4CallEiPPv @ 102 NONAME + _ZN10QtMobility15QContactManager11qt_metacastEPKc @ 103 NONAME + _ZN10QtMobility15QContactManager11saveContactEPNS_8QContactE @ 104 NONAME + _ZN10QtMobility15QContactManager12createEngineERK7QStringRK4QMapIS1_S1_E @ 105 NONAME + _ZN10QtMobility15QContactManager12saveContactsEP5QListINS_8QContactEEP4QMapIiNS0_5ErrorEE @ 106 NONAME + _ZN10QtMobility15QContactManager13contactsAddedERK5QListIjE @ 107 NONAME + _ZN10QtMobility15QContactManager13removeContactERKj @ 108 NONAME + _ZN10QtMobility15QContactManager14removeContactsERK5QListIjEP4QMapIiNS0_5ErrorEE @ 109 NONAME + _ZN10QtMobility15QContactManager15contactsChangedERK5QListIjE @ 110 NONAME + _ZN10QtMobility15QContactManager15contactsRemovedERK5QListIjE @ 111 NONAME + _ZN10QtMobility15QContactManager16saveRelationshipEPNS_20QContactRelationshipE @ 112 NONAME + _ZN10QtMobility15QContactManager16setSelfContactIdERKj @ 113 NONAME + _ZN10QtMobility15QContactManager16staticMetaObjectE @ 114 NONAME DATA 16 + _ZN10QtMobility15QContactManager17availableManagersEv @ 115 NONAME + _ZN10QtMobility15QContactManager17compatibleContactERKNS_8QContactE @ 116 NONAME + _ZN10QtMobility15QContactManager17saveRelationshipsEP5QListINS_20QContactRelationshipEEP4QMapIiNS0_5ErrorEE @ 117 NONAME + _ZN10QtMobility15QContactManager18relationshipsAddedERK5QListIjE @ 118 NONAME + _ZN10QtMobility15QContactManager18removeRelationshipERKNS_20QContactRelationshipE @ 119 NONAME + _ZN10QtMobility15QContactManager19getStaticMetaObjectEv @ 120 NONAME + _ZN10QtMobility15QContactManager19removeRelationshipsERK5QListINS_20QContactRelationshipEEP4QMapIiNS0_5ErrorEE @ 121 NONAME + _ZN10QtMobility15QContactManager20relationshipsRemovedERK5QListIjE @ 122 NONAME + _ZN10QtMobility15QContactManager20saveDetailDefinitionERKNS_24QContactDetailDefinitionERK7QString @ 123 NONAME + _ZN10QtMobility15QContactManager20selfContactIdChangedERKjS2_ @ 124 NONAME + _ZN10QtMobility15QContactManager22removeDetailDefinitionERK7QStringS3_ @ 125 NONAME + _ZN10QtMobility15QContactManager7fromUriERK7QStringP7QObject @ 126 NONAME + _ZN10QtMobility15QContactManager8buildUriERK7QStringRK4QMapIS1_S1_Ei @ 127 NONAME + _ZN10QtMobility15QContactManager8parseUriERK7QStringPS1_P4QMapIS1_S1_E @ 128 NONAME + _ZN10QtMobility15QContactManagerC1EP7QObject @ 129 NONAME + _ZN10QtMobility15QContactManagerC1ERK7QStringRK4QMapIS1_S1_EP7QObject @ 130 NONAME + _ZN10QtMobility15QContactManagerC1ERK7QStringiRK4QMapIS1_S1_EP7QObject @ 131 NONAME + _ZN10QtMobility15QContactManagerC2EP7QObject @ 132 NONAME + _ZN10QtMobility15QContactManagerC2ERK7QStringRK4QMapIS1_S1_EP7QObject @ 133 NONAME + _ZN10QtMobility15QContactManagerC2ERK7QStringiRK4QMapIS1_S1_EP7QObject @ 134 NONAME + _ZN10QtMobility15QContactManagerD0Ev @ 135 NONAME + _ZN10QtMobility15QContactManagerD1Ev @ 136 NONAME + _ZN10QtMobility15QContactManagerD2Ev @ 137 NONAME + _ZN10QtMobility16QContactBirthday13FieldBirthdayE @ 138 NONAME DATA 9 + _ZN10QtMobility16QContactBirthday14DefinitionNameE @ 139 NONAME DATA 9 + _ZN10QtMobility16QContactNickname13FieldNicknameE @ 140 NONAME DATA 9 + _ZN10QtMobility16QContactNickname14DefinitionNameE @ 141 NONAME DATA 9 + _ZN10QtMobility16QContactPresence13FieldNicknameE @ 142 NONAME DATA 9 + _ZN10QtMobility16QContactPresence14DefinitionNameE @ 143 NONAME DATA 9 + _ZN10QtMobility16QContactPresence14FieldTimestampE @ 144 NONAME DATA 10 + _ZN10QtMobility16QContactPresence18FieldCustomMessageE @ 145 NONAME DATA 14 + _ZN10QtMobility16QContactPresence18FieldPresenceStateE @ 146 NONAME DATA 14 + _ZN10QtMobility16QContactPresence22FieldPresenceStateTextE @ 147 NONAME DATA 18 + _ZN10QtMobility16QContactPresence26FieldPresenceStateImageUrlE @ 148 NONAME DATA 22 + _ZN10QtMobility16QContactRingtone14DefinitionNameE @ 149 NONAME DATA 9 + _ZN10QtMobility16QContactRingtone21FieldAudioRingtoneUrlE @ 150 NONAME DATA 17 + _ZN10QtMobility16QContactRingtone21FieldVideoRingtoneUrlE @ 151 NONAME DATA 17 + _ZN10QtMobility16QContactRingtone25FieldVibrationRingtoneUrlE @ 152 NONAME DATA 21 _ZN10QtMobility17QContactChangeSet11dataChangedEv @ 153 NONAME _ZN10QtMobility17QContactChangeSet11emitSignalsEPNS_21QContactManagerEngineE @ 154 NONAME - _ZN10QtMobility17QContactChangeSet13addedContactsEv @ 155 NONAME - _ZN10QtMobility17QContactChangeSet14setDataChangedEb @ 156 NONAME - _ZN10QtMobility17QContactChangeSet15changedContactsEv @ 157 NONAME - _ZN10QtMobility17QContactChangeSet15removedContactsEv @ 158 NONAME - _ZN10QtMobility17QContactChangeSet22oldAndNewSelfContactIdEv @ 159 NONAME - _ZN10QtMobility17QContactChangeSet26addedRelationshipsContactsEv @ 160 NONAME - _ZN10QtMobility17QContactChangeSet28removedRelationshipsContactsEv @ 161 NONAME - _ZN10QtMobility17QContactChangeSet5clearEv @ 162 NONAME - _ZN10QtMobility17QContactChangeSetC1ERKS0_ @ 163 NONAME - _ZN10QtMobility17QContactChangeSetC1Ev @ 164 NONAME - _ZN10QtMobility17QContactChangeSetC2ERKS0_ @ 165 NONAME - _ZN10QtMobility17QContactChangeSetC2Ev @ 166 NONAME - _ZN10QtMobility17QContactChangeSetD1Ev @ 167 NONAME - _ZN10QtMobility17QContactChangeSetD2Ev @ 168 NONAME - _ZN10QtMobility17QContactChangeSetaSERKS0_ @ 169 NONAME - _ZN10QtMobility17QContactSortOrder12setDirectionEN2Qt9SortOrderE @ 170 NONAME - _ZN10QtMobility17QContactSortOrder14setBlankPolicyENS0_11BlankPolicyE @ 171 NONAME - _ZN10QtMobility17QContactSortOrder18setCaseSensitivityEN2Qt15CaseSensitivityE @ 172 NONAME - _ZN10QtMobility17QContactSortOrder23setDetailDefinitionNameERK7QStringS3_ @ 173 NONAME - _ZN10QtMobility17QContactSortOrderC1ERKS0_ @ 174 NONAME - _ZN10QtMobility17QContactSortOrderC1Ev @ 175 NONAME - _ZN10QtMobility17QContactSortOrderC2ERKS0_ @ 176 NONAME - _ZN10QtMobility17QContactSortOrderC2Ev @ 177 NONAME - _ZN10QtMobility17QContactSortOrderD1Ev @ 178 NONAME - _ZN10QtMobility17QContactSortOrderD2Ev @ 179 NONAME - _ZN10QtMobility17QContactSortOrderaSERKS0_ @ 180 NONAME - _ZN10QtMobility17QContactTimestamp14DefinitionNameE @ 181 NONAME DATA 10 - _ZN10QtMobility17QContactTimestamp22FieldCreationTimestampE @ 182 NONAME DATA 18 - _ZN10QtMobility17QContactTimestamp26FieldModificationTimestampE @ 183 NONAME DATA 22 - _ZN10QtMobility18QContactSyncTarget14DefinitionNameE @ 184 NONAME DATA 11 - _ZN10QtMobility18QContactSyncTarget15FieldSyncTargetE @ 185 NONAME DATA 11 - _ZN10QtMobility19QContactAnniversary10FieldEventE @ 186 NONAME DATA 6 - _ZN10QtMobility19QContactAnniversary12FieldSubTypeE @ 187 NONAME DATA 8 - _ZN10QtMobility19QContactAnniversary12SubTypeHouseE @ 188 NONAME DATA 6 - _ZN10QtMobility19QContactAnniversary14DefinitionNameE @ 189 NONAME DATA 12 - _ZN10QtMobility19QContactAnniversary14SubTypeWeddingE @ 190 NONAME DATA 8 - _ZN10QtMobility19QContactAnniversary15FieldCalendarIdE @ 191 NONAME DATA 11 - _ZN10QtMobility19QContactAnniversary15SubTypeMemorialE @ 192 NONAME DATA 9 - _ZN10QtMobility19QContactAnniversary17FieldOriginalDateE @ 193 NONAME DATA 13 - _ZN10QtMobility19QContactAnniversary17SubTypeEmploymentE @ 194 NONAME DATA 11 - _ZN10QtMobility19QContactAnniversary17SubTypeEngagementE @ 195 NONAME DATA 11 - _ZN10QtMobility19QContactGeoLocation10FieldLabelE @ 196 NONAME DATA 6 - _ZN10QtMobility19QContactGeoLocation10FieldSpeedE @ 197 NONAME DATA 6 - _ZN10QtMobility19QContactGeoLocation12FieldHeadingE @ 198 NONAME DATA 8 - _ZN10QtMobility19QContactGeoLocation13FieldAccuracyE @ 199 NONAME DATA 9 - _ZN10QtMobility19QContactGeoLocation13FieldAltitudeE @ 200 NONAME DATA 9 - _ZN10QtMobility19QContactGeoLocation13FieldLatitudeE @ 201 NONAME DATA 9 - _ZN10QtMobility19QContactGeoLocation14DefinitionNameE @ 202 NONAME DATA 12 - _ZN10QtMobility19QContactGeoLocation14FieldLongitudeE @ 203 NONAME DATA 10 - _ZN10QtMobility19QContactGeoLocation14FieldTimestampE @ 204 NONAME DATA 10 - _ZN10QtMobility19QContactGeoLocation21FieldAltitudeAccuracyE @ 205 NONAME DATA 17 - _ZN10QtMobility19QContactGeolocation10FieldLabelE @ 206 NONAME DATA 6 - _ZN10QtMobility19QContactGeolocation10FieldSpeedE @ 207 NONAME DATA 6 - _ZN10QtMobility19QContactGeolocation12FieldHeadingE @ 208 NONAME DATA 8 - _ZN10QtMobility19QContactGeolocation13FieldAccuracyE @ 209 NONAME DATA 9 - _ZN10QtMobility19QContactGeolocation13FieldAltitudeE @ 210 NONAME DATA 9 - _ZN10QtMobility19QContactGeolocation13FieldLatitudeE @ 211 NONAME DATA 9 - _ZN10QtMobility19QContactGeolocation14DefinitionNameE @ 212 NONAME DATA 12 - _ZN10QtMobility19QContactGeolocation14FieldLongitudeE @ 213 NONAME DATA 10 - _ZN10QtMobility19QContactGeolocation14FieldTimestampE @ 214 NONAME DATA 10 - _ZN10QtMobility19QContactGeolocation21FieldAltitudeAccuracyE @ 215 NONAME DATA 17 - _ZN10QtMobility19QContactPhoneNumber10SubTypeCarE @ 216 NONAME DATA 4 - _ZN10QtMobility19QContactPhoneNumber11FieldNumberE @ 217 NONAME DATA 12 - _ZN10QtMobility19QContactPhoneNumber12SubTypeModemE @ 218 NONAME DATA 6 - _ZN10QtMobility19QContactPhoneNumber12SubTypePagerE @ 219 NONAME DATA 6 - _ZN10QtMobility19QContactPhoneNumber12SubTypeVideoE @ 220 NONAME DATA 6 - _ZN10QtMobility19QContactPhoneNumber12SubTypeVoiceE @ 221 NONAME DATA 6 - _ZN10QtMobility19QContactPhoneNumber13FieldSubTypesE @ 222 NONAME DATA 9 - _ZN10QtMobility19QContactPhoneNumber13SubTypeMobileE @ 223 NONAME DATA 7 - _ZN10QtMobility19QContactPhoneNumber14DefinitionNameE @ 224 NONAME DATA 12 - _ZN10QtMobility19QContactPhoneNumber15SubTypeDtmfMenuE @ 225 NONAME DATA 9 - _ZN10QtMobility19QContactPhoneNumber15SubTypeLandlineE @ 226 NONAME DATA 9 - _ZN10QtMobility19QContactPhoneNumber16SubTypeAssistantE @ 227 NONAME DATA 10 - _ZN10QtMobility19QContactPhoneNumber16SubTypeFacsimileE @ 228 NONAME DATA 10 - _ZN10QtMobility19QContactPhoneNumber23SubTypeMessagingCapableE @ 229 NONAME DATA 17 - _ZN10QtMobility19QContactPhoneNumber26SubTypeBulletinBoardSystemE @ 230 NONAME DATA 20 - _ZN10QtMobility19QContactPhoneNumber5matchERK7QString @ 231 NONAME - _ZN10QtMobility19QContactSaveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 232 NONAME - _ZN10QtMobility19QContactSaveRequest11qt_metacastEPKc @ 233 NONAME - _ZN10QtMobility19QContactSaveRequest11setContactsERK5QListINS_8QContactEE @ 234 NONAME - _ZN10QtMobility19QContactSaveRequest16staticMetaObjectE @ 235 NONAME DATA 16 - _ZN10QtMobility19QContactSaveRequest19getStaticMetaObjectEv @ 236 NONAME - _ZN10QtMobility19QContactSaveRequest8progressEPS0_ @ 237 NONAME - _ZN10QtMobility19QContactSaveRequestC1Ev @ 238 NONAME - _ZN10QtMobility19QContactSaveRequestC2Ev @ 239 NONAME - _ZN10QtMobility19QContactSaveRequestD0Ev @ 240 NONAME - _ZN10QtMobility19QContactSaveRequestD1Ev @ 241 NONAME - _ZN10QtMobility19QContactSaveRequestD2Ev @ 242 NONAME - _ZN10QtMobility19QContactUnionFilter10setFiltersERK5QListINS_14QContactFilterEE @ 243 NONAME - _ZN10QtMobility19QContactUnionFilter6appendERKNS_14QContactFilterE @ 244 NONAME - _ZN10QtMobility19QContactUnionFilter6removeERKNS_14QContactFilterE @ 245 NONAME - _ZN10QtMobility19QContactUnionFilter7prependERKNS_14QContactFilterE @ 246 NONAME - _ZN10QtMobility19QContactUnionFilterC1ERKNS_14QContactFilterE @ 247 NONAME - _ZN10QtMobility19QContactUnionFilterC1Ev @ 248 NONAME - _ZN10QtMobility19QContactUnionFilterC2ERKNS_14QContactFilterE @ 249 NONAME - _ZN10QtMobility19QContactUnionFilterC2Ev @ 250 NONAME - _ZN10QtMobility19QContactUnionFilterlsERKNS_14QContactFilterE @ 251 NONAME - _ZN10QtMobility20QContactActionFilter13setActionNameERK7QString @ 252 NONAME - _ZN10QtMobility20QContactActionFilter8setValueERK8QVariant @ 253 NONAME - _ZN10QtMobility20QContactActionFilter9setVendorERK7QStringi @ 254 NONAME - _ZN10QtMobility20QContactActionFilterC1ERKNS_14QContactFilterE @ 255 NONAME - _ZN10QtMobility20QContactActionFilterC1Ev @ 256 NONAME - _ZN10QtMobility20QContactActionFilterC2ERKNS_14QContactFilterE @ 257 NONAME - _ZN10QtMobility20QContactActionFilterC2Ev @ 258 NONAME - _ZN10QtMobility20QContactDetailFilter13setMatchFlagsE6QFlagsINS_14QContactFilter9MatchFlagEE @ 259 NONAME - _ZN10QtMobility20QContactDetailFilter23setDetailDefinitionNameERK7QStringS3_ @ 260 NONAME - _ZN10QtMobility20QContactDetailFilter8setValueERK8QVariant @ 261 NONAME - _ZN10QtMobility20QContactDetailFilterC1ERKNS_14QContactFilterE @ 262 NONAME - _ZN10QtMobility20QContactDetailFilterC1Ev @ 263 NONAME - _ZN10QtMobility20QContactDetailFilterC2ERKNS_14QContactFilterE @ 264 NONAME - _ZN10QtMobility20QContactDetailFilterC2Ev @ 265 NONAME - _ZN10QtMobility20QContactDisplayLabel10FieldLabelE @ 266 NONAME DATA 6 - _ZN10QtMobility20QContactDisplayLabel14DefinitionNameE @ 267 NONAME DATA 13 - _ZN10QtMobility20QContactDisplayLabel5matchERK7QString @ 268 NONAME - _ZN10QtMobility20QContactEmailAddress14DefinitionNameE @ 269 NONAME DATA 13 - _ZN10QtMobility20QContactEmailAddress17FieldEmailAddressE @ 270 NONAME DATA 13 - _ZN10QtMobility20QContactEmailAddress5matchERK7QString @ 271 NONAME - _ZN10QtMobility20QContactFetchRequest10setSortingERK5QListINS_17QContactSortOrderEE @ 272 NONAME - _ZN10QtMobility20QContactFetchRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 273 NONAME - _ZN10QtMobility20QContactFetchRequest11qt_metacastEPKc @ 274 NONAME - _ZN10QtMobility20QContactFetchRequest16staticMetaObjectE @ 275 NONAME DATA 16 - _ZN10QtMobility20QContactFetchRequest19getStaticMetaObjectEv @ 276 NONAME - _ZN10QtMobility20QContactFetchRequest25setDefinitionRestrictionsERK11QStringList @ 277 NONAME - _ZN10QtMobility20QContactFetchRequest8progressEPS0_b @ 278 NONAME - _ZN10QtMobility20QContactFetchRequest9setFilterERKNS_14QContactFilterE @ 279 NONAME - _ZN10QtMobility20QContactFetchRequestC1Ev @ 280 NONAME - _ZN10QtMobility20QContactFetchRequestC2Ev @ 281 NONAME - _ZN10QtMobility20QContactFetchRequestD0Ev @ 282 NONAME - _ZN10QtMobility20QContactFetchRequestD1Ev @ 283 NONAME - _ZN10QtMobility20QContactFetchRequestD2Ev @ 284 NONAME - _ZN10QtMobility20QContactMemoryEngine11qt_metacallEN11QMetaObject4CallEiPPv @ 285 NONAME - _ZN10QtMobility20QContactMemoryEngine11qt_metacastEPKc @ 286 NONAME - _ZN10QtMobility20QContactMemoryEngine11saveContactEPNS_8QContactERNS_15QContactManager5ErrorE @ 287 NONAME - _ZN10QtMobility20QContactMemoryEngine11saveContactEPNS_8QContactERNS_17QContactChangeSetERNS_15QContactManager5ErrorE @ 288 NONAME - _ZN10QtMobility20QContactMemoryEngine12saveContactsEP5QListINS_8QContactEEP4QMapIiNS_15QContactManager5ErrorEERS7_ @ 289 NONAME - _ZN10QtMobility20QContactMemoryEngine12saveContactsEP5QListINS_8QContactEERNS_15QContactManager5ErrorE @ 290 NONAME - _ZN10QtMobility20QContactMemoryEngine12startRequestEPNS_23QContactAbstractRequestE @ 291 NONAME - _ZN10QtMobility20QContactMemoryEngine13cancelRequestEPNS_23QContactAbstractRequestE @ 292 NONAME - _ZN10QtMobility20QContactMemoryEngine13removeContactERKjRNS_15QContactManager5ErrorE @ 293 NONAME - _ZN10QtMobility20QContactMemoryEngine13removeContactERKjRNS_17QContactChangeSetERNS_15QContactManager5ErrorE @ 294 NONAME - _ZN10QtMobility20QContactMemoryEngine14removeContactsEP5QListIjEP4QMapIiNS_15QContactManager5ErrorEERS6_ @ 295 NONAME - _ZN10QtMobility20QContactMemoryEngine14removeContactsEP5QListIjERNS_15QContactManager5ErrorE @ 296 NONAME - _ZN10QtMobility20QContactMemoryEngine16requestDestroyedEPNS_23QContactAbstractRequestE @ 297 NONAME - _ZN10QtMobility20QContactMemoryEngine16saveRelationshipEPNS_20QContactRelationshipERNS_15QContactManager5ErrorE @ 298 NONAME - _ZN10QtMobility20QContactMemoryEngine16saveRelationshipEPNS_20QContactRelationshipERNS_17QContactChangeSetERNS_15QContactManager5ErrorE @ 299 NONAME - _ZN10QtMobility20QContactMemoryEngine16setSelfContactIdERKjRNS_15QContactManager5ErrorE @ 300 NONAME - _ZN10QtMobility20QContactMemoryEngine16staticMetaObjectE @ 301 NONAME DATA 16 - _ZN10QtMobility20QContactMemoryEngine17saveRelationshipsEP5QListINS_20QContactRelationshipEERNS_15QContactManager5ErrorE @ 302 NONAME - _ZN10QtMobility20QContactMemoryEngine18createMemoryEngineERK4QMapI7QStringS2_E @ 303 NONAME - _ZN10QtMobility20QContactMemoryEngine18removeRelationshipERKNS_20QContactRelationshipERNS_15QContactManager5ErrorE @ 304 NONAME - _ZN10QtMobility20QContactMemoryEngine18removeRelationshipERKNS_20QContactRelationshipERNS_17QContactChangeSetERNS_15QContactManager5ErrorE @ 305 NONAME - _ZN10QtMobility20QContactMemoryEngine19getStaticMetaObjectEv @ 306 NONAME - _ZN10QtMobility20QContactMemoryEngine19removeRelationshipsERK5QListINS_20QContactRelationshipEERNS_15QContactManager5ErrorE @ 307 NONAME - _ZN10QtMobility20QContactMemoryEngine20saveDetailDefinitionERKNS_24QContactDetailDefinitionERK7QStringRNS_15QContactManager5ErrorE @ 308 NONAME - _ZN10QtMobility20QContactMemoryEngine20saveDetailDefinitionERKNS_24QContactDetailDefinitionERK7QStringRNS_17QContactChangeSetERNS_15QContactManager5ErrorE @ 309 NONAME - _ZN10QtMobility20QContactMemoryEngine22removeDetailDefinitionERK7QStringS3_RNS_15QContactManager5ErrorE @ 310 NONAME - _ZN10QtMobility20QContactMemoryEngine22removeDetailDefinitionERK7QStringS3_RNS_17QContactChangeSetERNS_15QContactManager5ErrorE @ 311 NONAME - _ZN10QtMobility20QContactMemoryEngine22waitForRequestFinishedEPNS_23QContactAbstractRequestEi @ 312 NONAME - _ZN10QtMobility20QContactMemoryEngine22waitForRequestProgressEPNS_23QContactAbstractRequestEi @ 313 NONAME - _ZN10QtMobility20QContactMemoryEngine28performAsynchronousOperationEv @ 314 NONAME - _ZN10QtMobility20QContactMemoryEngine5derefEv @ 315 NONAME - _ZN10QtMobility20QContactMemoryEngine7enginesE @ 316 NONAME DATA 4 - _ZN10QtMobility20QContactMemoryEngineC1ERK4QMapI7QStringS2_E @ 317 NONAME - _ZN10QtMobility20QContactMemoryEngineC2ERK4QMapI7QStringS2_E @ 318 NONAME - _ZN10QtMobility20QContactOrganization10FieldTitleE @ 319 NONAME DATA 6 - _ZN10QtMobility20QContactOrganization13FieldLocationE @ 320 NONAME DATA 9 - _ZN10QtMobility20QContactOrganization14DefinitionNameE @ 321 NONAME DATA 13 - _ZN10QtMobility20QContactOrganization15FieldDepartmentE @ 322 NONAME DATA 11 - _ZN10QtMobility20QContactOrganization18FieldAssistantNameE @ 323 NONAME DATA 14 - _ZN10QtMobility20QContactOrganization9FieldLogoE @ 324 NONAME DATA 5 - _ZN10QtMobility20QContactOrganization9FieldNameE @ 325 NONAME DATA 5 - _ZN10QtMobility20QContactOrganization9FieldRoleE @ 326 NONAME DATA 5 - _ZN10QtMobility20QContactRelationship10AggregatesE @ 327 NONAME DATA 11 - _ZN10QtMobility20QContactRelationship10HasManagerE @ 328 NONAME DATA 11 - _ZN10QtMobility20QContactRelationship12HasAssistantE @ 329 NONAME DATA 13 - _ZN10QtMobility20QContactRelationship19setRelationshipTypeERK7QString @ 330 NONAME - _ZN10QtMobility20QContactRelationship2IsE @ 331 NONAME DATA 9 - _ZN10QtMobility20QContactRelationship8IsSameAsE @ 332 NONAME DATA 9 - _ZN10QtMobility20QContactRelationship8setFirstERKNS_10QContactIdE @ 333 NONAME - _ZN10QtMobility20QContactRelationship9HasMemberE @ 334 NONAME DATA 10 - _ZN10QtMobility20QContactRelationship9HasSpouseE @ 335 NONAME DATA 10 - _ZN10QtMobility20QContactRelationship9setSecondERKNS_10QContactIdE @ 336 NONAME - _ZN10QtMobility20QContactRelationshipC1ERKS0_ @ 337 NONAME - _ZN10QtMobility20QContactRelationshipC1Ev @ 338 NONAME - _ZN10QtMobility20QContactRelationshipC2ERKS0_ @ 339 NONAME - _ZN10QtMobility20QContactRelationshipC2Ev @ 340 NONAME - _ZN10QtMobility20QContactRelationshipD1Ev @ 341 NONAME - _ZN10QtMobility20QContactRelationshipD2Ev @ 342 NONAME - _ZN10QtMobility20QContactRelationshipaSERKS0_ @ 343 NONAME - _ZN10QtMobility21QContactActionFactory11qt_metacallEN11QMetaObject4CallEiPPv @ 344 NONAME - _ZN10QtMobility21QContactActionFactory11qt_metacastEPKc @ 345 NONAME - _ZN10QtMobility21QContactActionFactory16staticMetaObjectE @ 346 NONAME DATA 16 - _ZN10QtMobility21QContactActionFactory19getStaticMetaObjectEv @ 347 NONAME - _ZN10QtMobility21QContactActionFactoryD0Ev @ 348 NONAME - _ZN10QtMobility21QContactActionFactoryD1Ev @ 349 NONAME - _ZN10QtMobility21QContactActionFactoryD2Ev @ 350 NONAME - _ZN10QtMobility21QContactInvalidFilterC1ERKNS_14QContactFilterE @ 351 NONAME - _ZN10QtMobility21QContactInvalidFilterC1Ev @ 352 NONAME - _ZN10QtMobility21QContactInvalidFilterC2ERKNS_14QContactFilterE @ 353 NONAME - _ZN10QtMobility21QContactInvalidFilterC2Ev @ 354 NONAME - _ZN10QtMobility21QContactLocalIdFilter6setIdsERK5QListIjE @ 355 NONAME - _ZN10QtMobility21QContactLocalIdFilterC1ERKNS_14QContactFilterE @ 356 NONAME - _ZN10QtMobility21QContactLocalIdFilterC1Ev @ 357 NONAME - _ZN10QtMobility21QContactLocalIdFilterC2ERKNS_14QContactFilterE @ 358 NONAME - _ZN10QtMobility21QContactLocalIdFilterC2Ev @ 359 NONAME - _ZN10QtMobility21QContactManagerEngine10testFilterERKNS_14QContactFilterERKNS_8QContactE @ 360 NONAME - _ZN10QtMobility21QContactManagerEngine11dataChangedEv @ 361 NONAME - _ZN10QtMobility21QContactManagerEngine11qt_metacallEN11QMetaObject4CallEiPPv @ 362 NONAME - _ZN10QtMobility21QContactManagerEngine11qt_metacastEPKc @ 363 NONAME - _ZN10QtMobility21QContactManagerEngine11saveContactEPNS_8QContactERNS_15QContactManager5ErrorE @ 364 NONAME - _ZN10QtMobility21QContactManagerEngine12saveContactsEP5QListINS_8QContactEEP4QMapIiNS_15QContactManager5ErrorEERS7_ @ 365 NONAME - _ZN10QtMobility21QContactManagerEngine12saveContactsEP5QListINS_8QContactEERNS_15QContactManager5ErrorE @ 366 NONAME - _ZN10QtMobility21QContactManagerEngine12sortContactsERK5QListINS_8QContactEERKS1_INS_17QContactSortOrderEE @ 367 NONAME - _ZN10QtMobility21QContactManagerEngine12startRequestEPNS_23QContactAbstractRequestE @ 368 NONAME - _ZN10QtMobility21QContactManagerEngine13cancelRequestEPNS_23QContactAbstractRequestE @ 369 NONAME - _ZN10QtMobility21QContactManagerEngine13contactsAddedERK5QListIjE @ 370 NONAME - _ZN10QtMobility21QContactManagerEngine13removeContactERKjRNS_15QContactManager5ErrorE @ 371 NONAME - _ZN10QtMobility21QContactManagerEngine13updateRequestEPNS_23QContactAbstractRequestERK4QMapI7QStringNS_24QContactDetailDefinitionEENS_15QContactManager5ErrorERK5QListISA_ENS1_6StatusEb @ 372 NONAME - _ZN10QtMobility21QContactManagerEngine13updateRequestEPNS_23QContactAbstractRequestERK5QListINS_20QContactRelationshipEENS_15QContactManager5ErrorERKS3_IS9_ENS1_6StatusEb @ 373 NONAME - _ZN10QtMobility21QContactManagerEngine13updateRequestEPNS_23QContactAbstractRequestERK5QListINS_24QContactDetailDefinitionEENS_15QContactManager5ErrorERKS3_IS9_ENS1_6StatusE @ 374 NONAME - _ZN10QtMobility21QContactManagerEngine13updateRequestEPNS_23QContactAbstractRequestERK5QListINS_8QContactEENS_15QContactManager5ErrorERKS3_IS9_ENS1_6StatusEb @ 375 NONAME - _ZN10QtMobility21QContactManagerEngine13updateRequestEPNS_23QContactAbstractRequestERK5QListIjENS_15QContactManager5ErrorERKS3_IS8_ENS1_6StatusEb @ 376 NONAME - _ZN10QtMobility21QContactManagerEngine14compareContactERKNS_8QContactES3_RK5QListINS_17QContactSortOrderEE @ 377 NONAME - _ZN10QtMobility21QContactManagerEngine14compareVariantERK8QVariantS3_N2Qt15CaseSensitivityE @ 378 NONAME - _ZN10QtMobility21QContactManagerEngine14removeContactsEP5QListIjEP4QMapIiNS_15QContactManager5ErrorEERS6_ @ 379 NONAME - _ZN10QtMobility21QContactManagerEngine14removeContactsEP5QListIjERNS_15QContactManager5ErrorE @ 380 NONAME - _ZN10QtMobility21QContactManagerEngine15contactsChangedERK5QListIjE @ 381 NONAME - _ZN10QtMobility21QContactManagerEngine15contactsRemovedERK5QListIjE @ 382 NONAME - _ZN10QtMobility21QContactManagerEngine16requestDestroyedEPNS_23QContactAbstractRequestE @ 383 NONAME - _ZN10QtMobility21QContactManagerEngine16saveRelationshipEPNS_20QContactRelationshipERNS_15QContactManager5ErrorE @ 384 NONAME - _ZN10QtMobility21QContactManagerEngine16setSelfContactIdERKjRNS_15QContactManager5ErrorE @ 385 NONAME - _ZN10QtMobility21QContactManagerEngine16staticMetaObjectE @ 386 NONAME DATA 16 - _ZN10QtMobility21QContactManagerEngine17saveRelationshipsEP5QListINS_20QContactRelationshipEERNS_15QContactManager5ErrorE @ 387 NONAME - _ZN10QtMobility21QContactManagerEngine17schemaDefinitionsEv @ 388 NONAME - _ZN10QtMobility21QContactManagerEngine18relationshipsAddedERK5QListIjE @ 389 NONAME - _ZN10QtMobility21QContactManagerEngine18removeRelationshipERKNS_20QContactRelationshipERNS_15QContactManager5ErrorE @ 390 NONAME - _ZN10QtMobility21QContactManagerEngine18updateRequestStateEPNS_23QContactAbstractRequestENS1_5StateE @ 391 NONAME - _ZN10QtMobility21QContactManagerEngine19getStaticMetaObjectEv @ 392 NONAME - _ZN10QtMobility21QContactManagerEngine19removeRelationshipsERK5QListINS_20QContactRelationshipEERNS_15QContactManager5ErrorE @ 393 NONAME - _ZN10QtMobility21QContactManagerEngine19updateRequestStatusEPNS_23QContactAbstractRequestENS_15QContactManager5ErrorER5QListIS4_ENS1_6StatusEb @ 394 NONAME - _ZN10QtMobility21QContactManagerEngine20relationshipsRemovedERK5QListIjE @ 395 NONAME - _ZN10QtMobility21QContactManagerEngine20saveDetailDefinitionERKNS_24QContactDetailDefinitionERK7QStringRNS_15QContactManager5ErrorE @ 396 NONAME - _ZN10QtMobility21QContactManagerEngine20selfContactIdChangedERKjS2_ @ 397 NONAME - _ZN10QtMobility21QContactManagerEngine20validateActionFilterERKNS_14QContactFilterE @ 398 NONAME - _ZN10QtMobility21QContactManagerEngine22removeDetailDefinitionERK7QStringS3_RNS_15QContactManager5ErrorE @ 399 NONAME - _ZN10QtMobility21QContactManagerEngine22waitForRequestFinishedEPNS_23QContactAbstractRequestEi @ 400 NONAME - _ZN10QtMobility21QContactManagerEngine22waitForRequestProgressEPNS_23QContactAbstractRequestEi @ 401 NONAME - _ZN10QtMobility21QContactManagerEngine23setContactRelationshipsEPNS_8QContactERK5QListINS_20QContactRelationshipEE @ 402 NONAME - _ZN10QtMobility21QContactManagerEngine24updateContactSaveRequestEPNS_19QContactSaveRequestERK5QListINS_8QContactEENS_15QContactManager5ErrorERK4QMapIiS9_E @ 403 NONAME - _ZN10QtMobility21QContactManagerEngine25updateContactFetchRequestEPNS_20QContactFetchRequestERK5QListINS_8QContactEENS_15QContactManager5ErrorE @ 404 NONAME - _ZN10QtMobility21QContactManagerEngine26updateContactRemoveRequestEPNS_21QContactRemoveRequestENS_15QContactManager5ErrorERK4QMapIiS4_E @ 405 NONAME - _ZN10QtMobility21QContactManagerEngine27updateDefinitionSaveRequestEPNS_35QContactDetailDefinitionSaveRequestERK5QListINS_24QContactDetailDefinitionEENS_15QContactManager5ErrorERK4QMapIiS9_E @ 406 NONAME - _ZN10QtMobility21QContactManagerEngine28updateDefinitionFetchRequestEPNS_36QContactDetailDefinitionFetchRequestERK4QMapI7QStringNS_24QContactDetailDefinitionEENS_15QContactManager5ErrorERKS3_IiSA_E @ 407 NONAME - _ZN10QtMobility21QContactManagerEngine29updateDefinitionRemoveRequestEPNS_37QContactDetailDefinitionRemoveRequestENS_15QContactManager5ErrorERK4QMapIiS4_E @ 408 NONAME - _ZN10QtMobility21QContactManagerEngine29updateRelationshipSaveRequestEPNS_31QContactRelationshipSaveRequestERK5QListINS_20QContactRelationshipEENS_15QContactManager5ErrorERK4QMapIiS9_E @ 409 NONAME - _ZN10QtMobility21QContactManagerEngine30updateRelationshipFetchRequestEPNS_32QContactRelationshipFetchRequestERK5QListINS_20QContactRelationshipEENS_15QContactManager5ErrorE @ 410 NONAME - _ZN10QtMobility21QContactManagerEngine31updateRelationshipRemoveRequestEPNS_33QContactRelationshipRemoveRequestENS_15QContactManager5ErrorERK4QMapIiS4_E @ 411 NONAME - _ZN10QtMobility21QContactManagerEngine32updateContactLocalIdFetchRequestEPNS_27QContactLocalIdFetchRequestERK5QListIjENS_15QContactManager5ErrorE @ 412 NONAME - _ZN10QtMobility21QContactManagerEngine7versionEv @ 413 NONAME - _ZN10QtMobility21QContactManagerEngine9addSortedEP5QListINS_8QContactEERKS2_RKS1_INS_17QContactSortOrderEE @ 414 NONAME - _ZN10QtMobility21QContactOnlineAccount10SubTypeSipE @ 415 NONAME DATA 4 - _ZN10QtMobility21QContactOnlineAccount11SubTypeImppE @ 416 NONAME DATA 5 - _ZN10QtMobility21QContactOnlineAccount12PresenceAwayE @ 417 NONAME DATA 5 - _ZN10QtMobility21QContactOnlineAccount12PresenceBusyE @ 418 NONAME DATA 5 - _ZN10QtMobility21QContactOnlineAccount13FieldNicknameE @ 419 NONAME DATA 9 - _ZN10QtMobility21QContactOnlineAccount13FieldPresenceE @ 420 NONAME DATA 9 - _ZN10QtMobility21QContactOnlineAccount13FieldSubTypesE @ 421 NONAME DATA 9 - _ZN10QtMobility21QContactOnlineAccount14DefinitionNameE @ 422 NONAME DATA 14 - _ZN10QtMobility21QContactOnlineAccount14PresenceHiddenE @ 423 NONAME DATA 7 - _ZN10QtMobility21QContactOnlineAccount14SubTypeSipVoipE @ 424 NONAME DATA 8 - _ZN10QtMobility21QContactOnlineAccount15FieldAccountUriE @ 425 NONAME DATA 11 - _ZN10QtMobility21QContactOnlineAccount15PresenceOfflineE @ 426 NONAME DATA 8 - _ZN10QtMobility21QContactOnlineAccount15PresenceUnknownE @ 427 NONAME DATA 8 - _ZN10QtMobility21QContactOnlineAccount17FieldCapabilitiesE @ 428 NONAME DATA 13 - _ZN10QtMobility21QContactOnlineAccount17PresenceAvailableE @ 429 NONAME DATA 10 - _ZN10QtMobility21QContactOnlineAccount17SubTypeVideoShareE @ 430 NONAME DATA 11 - _ZN10QtMobility21QContactOnlineAccount18FieldStatusMessageE @ 431 NONAME DATA 14 - _ZN10QtMobility21QContactOnlineAccount20FieldServiceProviderE @ 432 NONAME DATA 16 - _ZN10QtMobility21QContactOnlineAccount20PresenceExtendedAwayE @ 433 NONAME DATA 13 - _ZN10QtMobility21QContactRemoveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 434 NONAME - _ZN10QtMobility21QContactRemoveRequest11qt_metacastEPKc @ 435 NONAME - _ZN10QtMobility21QContactRemoveRequest13setContactIdsERK5QListIjE @ 436 NONAME - _ZN10QtMobility21QContactRemoveRequest16staticMetaObjectE @ 437 NONAME DATA 16 - _ZN10QtMobility21QContactRemoveRequest19getStaticMetaObjectEv @ 438 NONAME - _ZN10QtMobility21QContactRemoveRequest8progressEPS0_ @ 439 NONAME - _ZN10QtMobility21QContactRemoveRequest9setFilterERKNS_14QContactFilterE @ 440 NONAME - _ZN10QtMobility21QContactRemoveRequestC1Ev @ 441 NONAME - _ZN10QtMobility21QContactRemoveRequestC2Ev @ 442 NONAME - _ZN10QtMobility21QContactRemoveRequestD0Ev @ 443 NONAME - _ZN10QtMobility21QContactRemoveRequestD1Ev @ 444 NONAME - _ZN10QtMobility21QContactRemoveRequestD2Ev @ 445 NONAME - _ZN10QtMobility23QContactAbstractRequest10setManagerEPNS_15QContactManagerE @ 446 NONAME - _ZN10QtMobility23QContactAbstractRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 447 NONAME - _ZN10QtMobility23QContactAbstractRequest11qt_metacastEPKc @ 448 NONAME - _ZN10QtMobility23QContactAbstractRequest12stateChangedENS0_5StateE @ 449 NONAME - _ZN10QtMobility23QContactAbstractRequest15waitForFinishedEi @ 450 NONAME - _ZN10QtMobility23QContactAbstractRequest15waitForProgressEi @ 451 NONAME - _ZN10QtMobility23QContactAbstractRequest16resultsAvailableEv @ 452 NONAME - _ZN10QtMobility23QContactAbstractRequest16staticMetaObjectE @ 453 NONAME DATA 16 - _ZN10QtMobility23QContactAbstractRequest19getStaticMetaObjectEv @ 454 NONAME - _ZN10QtMobility23QContactAbstractRequest5startEv @ 455 NONAME - _ZN10QtMobility23QContactAbstractRequest6cancelEv @ 456 NONAME - _ZN10QtMobility23QContactAbstractRequestC1EPNS_30QContactAbstractRequestPrivateE @ 457 NONAME - _ZN10QtMobility23QContactAbstractRequestC2EPNS_30QContactAbstractRequestPrivateE @ 458 NONAME - _ZN10QtMobility23QContactAbstractRequestD0Ev @ 459 NONAME - _ZN10QtMobility23QContactAbstractRequestD1Ev @ 460 NONAME - _ZN10QtMobility23QContactAbstractRequestD2Ev @ 461 NONAME - _ZN10QtMobility23QContactChangeLogFilter12setEventTypeENS0_9EventTypeE @ 462 NONAME - _ZN10QtMobility23QContactChangeLogFilter8setSinceERK9QDateTime @ 463 NONAME - _ZN10QtMobility23QContactChangeLogFilterC1ENS0_9EventTypeE @ 464 NONAME - _ZN10QtMobility23QContactChangeLogFilterC1ERKNS_14QContactFilterE @ 465 NONAME - _ZN10QtMobility23QContactChangeLogFilterC2ENS0_9EventTypeE @ 466 NONAME - _ZN10QtMobility23QContactChangeLogFilterC2ERKNS_14QContactFilterE @ 467 NONAME - _ZN10QtMobility24QContactActionDescriptor13setActionNameERK7QString @ 468 NONAME - _ZN10QtMobility24QContactActionDescriptor13setVendorNameERK7QString @ 469 NONAME - _ZN10QtMobility24QContactActionDescriptor24setImplementationVersionEi @ 470 NONAME - _ZN10QtMobility24QContactActionDescriptorC1ERK7QStringS3_i @ 471 NONAME - _ZN10QtMobility24QContactActionDescriptorC1ERKS0_ @ 472 NONAME - _ZN10QtMobility24QContactActionDescriptorC2ERK7QStringS3_i @ 473 NONAME - _ZN10QtMobility24QContactActionDescriptorC2ERKS0_ @ 474 NONAME - _ZN10QtMobility24QContactActionDescriptorD1Ev @ 475 NONAME - _ZN10QtMobility24QContactActionDescriptorD2Ev @ 476 NONAME - _ZN10QtMobility24QContactActionDescriptoraSERKS0_ @ 477 NONAME - _ZN10QtMobility24QContactDetailDefinition11insertFieldERK7QStringRKNS_29QContactDetailFieldDefinitionE @ 478 NONAME - _ZN10QtMobility24QContactDetailDefinition11removeFieldERK7QString @ 479 NONAME - _ZN10QtMobility24QContactDetailDefinition19setAccessConstraintERKNS0_16AccessConstraintE @ 480 NONAME - _ZN10QtMobility24QContactDetailDefinition6fieldsEv @ 481 NONAME - _ZN10QtMobility24QContactDetailDefinition7setNameERK7QString @ 482 NONAME - _ZN10QtMobility24QContactDetailDefinition9setFieldsERK4QMapI7QStringNS_29QContactDetailFieldDefinitionEE @ 483 NONAME - _ZN10QtMobility24QContactDetailDefinition9setUniqueEb @ 484 NONAME - _ZN10QtMobility24QContactDetailDefinitionC1ERKS0_ @ 485 NONAME - _ZN10QtMobility24QContactDetailDefinitionC1Ev @ 486 NONAME - _ZN10QtMobility24QContactDetailDefinitionC2ERKS0_ @ 487 NONAME - _ZN10QtMobility24QContactDetailDefinitionC2Ev @ 488 NONAME - _ZN10QtMobility24QContactDetailDefinitionD1Ev @ 489 NONAME - _ZN10QtMobility24QContactDetailDefinitionD2Ev @ 490 NONAME - _ZN10QtMobility24QContactDetailDefinitionaSERKS0_ @ 491 NONAME - _ZN10QtMobility25QContactDetailRangeFilter13setMatchFlagsE6QFlagsINS_14QContactFilter9MatchFlagEE @ 492 NONAME - _ZN10QtMobility25QContactDetailRangeFilter23setDetailDefinitionNameERK7QStringS3_ @ 493 NONAME - _ZN10QtMobility25QContactDetailRangeFilter8setRangeERK8QVariantS3_6QFlagsINS0_9RangeFlagEE @ 494 NONAME - _ZN10QtMobility25QContactDetailRangeFilterC1ERKNS_14QContactFilterE @ 495 NONAME - _ZN10QtMobility25QContactDetailRangeFilterC1Ev @ 496 NONAME - _ZN10QtMobility25QContactDetailRangeFilterC2ERKNS_14QContactFilterE @ 497 NONAME - _ZN10QtMobility25QContactDetailRangeFilterC2Ev @ 498 NONAME - _ZN10QtMobility26QContactIntersectionFilter10setFiltersERK5QListINS_14QContactFilterEE @ 499 NONAME - _ZN10QtMobility26QContactIntersectionFilter6appendERKNS_14QContactFilterE @ 500 NONAME - _ZN10QtMobility26QContactIntersectionFilter6removeERKNS_14QContactFilterE @ 501 NONAME - _ZN10QtMobility26QContactIntersectionFilter7prependERKNS_14QContactFilterE @ 502 NONAME - _ZN10QtMobility26QContactIntersectionFilterC1ERKNS_14QContactFilterE @ 503 NONAME - _ZN10QtMobility26QContactIntersectionFilterC1Ev @ 504 NONAME - _ZN10QtMobility26QContactIntersectionFilterC2ERKNS_14QContactFilterE @ 505 NONAME - _ZN10QtMobility26QContactIntersectionFilterC2Ev @ 506 NONAME - _ZN10QtMobility26QContactIntersectionFilterlsERKNS_14QContactFilterE @ 507 NONAME - _ZN10QtMobility26QContactRelationshipFilter19setRelatedContactIdERKNS_10QContactIdE @ 508 NONAME - _ZN10QtMobility26QContactRelationshipFilter19setRelationshipTypeERK7QString @ 509 NONAME - _ZN10QtMobility26QContactRelationshipFilter21setOtherParticipantIdERKNS_10QContactIdE @ 510 NONAME - _ZN10QtMobility26QContactRelationshipFilter21setRelatedContactRoleENS0_4RoleE @ 511 NONAME - _ZN10QtMobility26QContactRelationshipFilter7setRoleENS0_4RoleE @ 512 NONAME - _ZN10QtMobility26QContactRelationshipFilterC1ERKNS_14QContactFilterE @ 513 NONAME - _ZN10QtMobility26QContactRelationshipFilterC1Ev @ 514 NONAME - _ZN10QtMobility26QContactRelationshipFilterC2ERKNS_14QContactFilterE @ 515 NONAME - _ZN10QtMobility26QContactRelationshipFilterC2Ev @ 516 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequest10setSortingERK5QListINS_17QContactSortOrderEE @ 517 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 518 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequest11qt_metacastEPKc @ 519 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequest16staticMetaObjectE @ 520 NONAME DATA 16 - _ZN10QtMobility27QContactLocalIdFetchRequest19getStaticMetaObjectEv @ 521 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequest8progressEPS0_b @ 522 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequest9setFilterERKNS_14QContactFilterE @ 523 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequestC1Ev @ 524 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequestC2Ev @ 525 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequestD0Ev @ 526 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequestD1Ev @ 527 NONAME - _ZN10QtMobility27QContactLocalIdFetchRequestD2Ev @ 528 NONAME - _ZN10QtMobility29QContactDetailFieldDefinition11setDataTypeEN8QVariant4TypeE @ 529 NONAME - _ZN10QtMobility29QContactDetailFieldDefinition18setAllowableValuesE5QListI8QVariantE @ 530 NONAME - _ZN10QtMobility29QContactDetailFieldDefinition19setAccessConstraintENS0_16AccessConstraintE @ 531 NONAME - _ZN10QtMobility29QContactDetailFieldDefinitionC1ERKS0_ @ 532 NONAME - _ZN10QtMobility29QContactDetailFieldDefinitionC1Ev @ 533 NONAME - _ZN10QtMobility29QContactDetailFieldDefinitionC2ERKS0_ @ 534 NONAME - _ZN10QtMobility29QContactDetailFieldDefinitionC2Ev @ 535 NONAME - _ZN10QtMobility29QContactDetailFieldDefinitionD1Ev @ 536 NONAME - _ZN10QtMobility29QContactDetailFieldDefinitionD2Ev @ 537 NONAME - _ZN10QtMobility29QContactDetailFieldDefinitionaSERKS0_ @ 538 NONAME - _ZN10QtMobility31QContactRelationshipSaveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 539 NONAME - _ZN10QtMobility31QContactRelationshipSaveRequest11qt_metacastEPKc @ 540 NONAME - _ZN10QtMobility31QContactRelationshipSaveRequest16setRelationshipsERK5QListINS_20QContactRelationshipEE @ 541 NONAME - _ZN10QtMobility31QContactRelationshipSaveRequest16staticMetaObjectE @ 542 NONAME DATA 16 - _ZN10QtMobility31QContactRelationshipSaveRequest19getStaticMetaObjectEv @ 543 NONAME - _ZN10QtMobility31QContactRelationshipSaveRequest8progressEPS0_ @ 544 NONAME - _ZN10QtMobility31QContactRelationshipSaveRequestC1Ev @ 545 NONAME - _ZN10QtMobility31QContactRelationshipSaveRequestC2Ev @ 546 NONAME - _ZN10QtMobility31QContactRelationshipSaveRequestD0Ev @ 547 NONAME - _ZN10QtMobility31QContactRelationshipSaveRequestD1Ev @ 548 NONAME - _ZN10QtMobility31QContactRelationshipSaveRequestD2Ev @ 549 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 550 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequest11qt_metacastEPKc @ 551 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequest14setParticipantERKNS_10QContactIdENS_26QContactRelationshipFilter4RoleE @ 552 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequest16staticMetaObjectE @ 553 NONAME DATA 16 - _ZN10QtMobility32QContactRelationshipFetchRequest19getStaticMetaObjectEv @ 554 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequest19setRelationshipTypeERK7QString @ 555 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequest8progressEPS0_b @ 556 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequest8setFirstERKNS_10QContactIdE @ 557 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequest9setSecondERKNS_10QContactIdE @ 558 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequestC1Ev @ 559 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequestC2Ev @ 560 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequestD0Ev @ 561 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequestD1Ev @ 562 NONAME - _ZN10QtMobility32QContactRelationshipFetchRequestD2Ev @ 563 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 564 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequest11qt_metacastEPKc @ 565 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequest16setRelationshipsERK5QListINS_20QContactRelationshipEE @ 566 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequest16staticMetaObjectE @ 567 NONAME DATA 16 - _ZN10QtMobility33QContactRelationshipRemoveRequest19getStaticMetaObjectEv @ 568 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequest19setRelationshipTypeERK7QString @ 569 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequest8progressEPS0_ @ 570 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequest8setFirstERKNS_10QContactIdE @ 571 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequest9setSecondERKNS_10QContactIdE @ 572 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequestC1Ev @ 573 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequestC2Ev @ 574 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequestD0Ev @ 575 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequestD1Ev @ 576 NONAME - _ZN10QtMobility33QContactRelationshipRemoveRequestD2Ev @ 577 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 578 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequest11qt_metacastEPKc @ 579 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequest14setContactTypeERK7QString @ 580 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequest14setDefinitionsERK5QListINS_24QContactDetailDefinitionEE @ 581 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequest16staticMetaObjectE @ 582 NONAME DATA 16 - _ZN10QtMobility35QContactDetailDefinitionSaveRequest19getStaticMetaObjectEv @ 583 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequest8progressEPS0_ @ 584 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequestC1Ev @ 585 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequestC2Ev @ 586 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequestD0Ev @ 587 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequestD1Ev @ 588 NONAME - _ZN10QtMobility35QContactDetailDefinitionSaveRequestD2Ev @ 589 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 590 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequest11qt_metacastEPKc @ 591 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequest14setContactTypeERK7QString @ 592 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequest16staticMetaObjectE @ 593 NONAME DATA 16 - _ZN10QtMobility36QContactDetailDefinitionFetchRequest18setDefinitionNamesERK11QStringList @ 594 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequest19getStaticMetaObjectEv @ 595 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequest8progressEPS0_b @ 596 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequest8setNamesERK11QStringList @ 597 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequestC1Ev @ 598 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequestC2Ev @ 599 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequestD0Ev @ 600 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequestD1Ev @ 601 NONAME - _ZN10QtMobility36QContactDetailDefinitionFetchRequestD2Ev @ 602 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 603 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequest11qt_metacastEPKc @ 604 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequest16staticMetaObjectE @ 605 NONAME DATA 16 - _ZN10QtMobility37QContactDetailDefinitionRemoveRequest18setDefinitionNamesERK7QStringRK11QStringList @ 606 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequest19getStaticMetaObjectEv @ 607 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequest8progressEPS0_ @ 608 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequest8setNamesERK11QStringList @ 609 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequestC1Ev @ 610 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequestC2Ev @ 611 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequestD0Ev @ 612 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequestD1Ev @ 613 NONAME - _ZN10QtMobility37QContactDetailDefinitionRemoveRequestD2Ev @ 614 NONAME - _ZN10QtMobility8QContact10saveDetailEPNS_14QContactDetailE @ 615 NONAME - _ZN10QtMobility8QContact12clearDetailsEv @ 616 NONAME - _ZN10QtMobility8QContact12removeDetailEPNS_14QContactDetailE @ 617 NONAME - _ZN10QtMobility8QContact18setPreferredDetailERK7QStringRKNS_14QContactDetailE @ 618 NONAME - _ZN10QtMobility8QContact20setRelationshipOrderERK5QListINS_20QContactRelationshipEE @ 619 NONAME - _ZN10QtMobility8QContact5setIdERKNS_10QContactIdE @ 620 NONAME - _ZN10QtMobility8QContact7setTypeERK7QString @ 621 NONAME - _ZN10QtMobility8QContact7setTypeERKNS_12QContactTypeE @ 622 NONAME - _ZN10QtMobility8QContactC1ERKS0_ @ 623 NONAME - _ZN10QtMobility8QContactC1Ev @ 624 NONAME - _ZN10QtMobility8QContactC2ERKS0_ @ 625 NONAME - _ZN10QtMobility8QContactC2Ev @ 626 NONAME - _ZN10QtMobility8QContactD1Ev @ 627 NONAME - _ZN10QtMobility8QContactD2Ev @ 628 NONAME - _ZN10QtMobility8QContactaSERKS0_ @ 629 NONAME - _ZN10QtMobilityanERKNS_14QContactFilterES2_ @ 630 NONAME - _ZN10QtMobilityorERKNS_14QContactFilterES2_ @ 631 NONAME - _ZNK10QtMobility10QContactId10managerUriEv @ 632 NONAME - _ZNK10QtMobility10QContactId7localIdEv @ 633 NONAME - _ZNK10QtMobility10QContactIdeqERKS0_ @ 634 NONAME - _ZNK10QtMobility10QContactIdneERKS0_ @ 635 NONAME - _ZNK10QtMobility14QContactAction10metaObjectEv @ 636 NONAME - _ZNK10QtMobility14QContactAction16supportedDetailsERKNS_8QContactE @ 637 NONAME - _ZNK10QtMobility14QContactDetail12variantValueERK7QString @ 638 NONAME - _ZNK10QtMobility14QContactDetail13variantValuesEv @ 639 NONAME - _ZNK10QtMobility14QContactDetail14definitionNameEv @ 640 NONAME - _ZNK10QtMobility14QContactDetail16preferredActionsEv @ 641 NONAME - _ZNK10QtMobility14QContactDetail17accessConstraintsEv @ 642 NONAME - _ZNK10QtMobility14QContactDetail3keyEv @ 643 NONAME - _ZNK10QtMobility14QContactDetail5valueERK7QString @ 644 NONAME - _ZNK10QtMobility14QContactDetail6valuesEv @ 645 NONAME - _ZNK10QtMobility14QContactDetail7isEmptyEv @ 646 NONAME - _ZNK10QtMobility14QContactDetail8hasValueERK7QString @ 647 NONAME - _ZNK10QtMobility14QContactDetaileqERKS0_ @ 648 NONAME - _ZNK10QtMobility14QContactFilter4typeEv @ 649 NONAME - _ZNK10QtMobility14QContactFiltereqERKS0_ @ 650 NONAME - _ZNK10QtMobility15QContactManager10contactIdsERK5QListINS_17QContactSortOrderEE @ 651 NONAME - _ZNK10QtMobility15QContactManager10contactIdsERKNS_14QContactFilterERK5QListINS_17QContactSortOrderEE @ 652 NONAME - _ZNK10QtMobility15QContactManager10hasFeatureENS0_14ManagerFeatureERK7QString @ 653 NONAME - _ZNK10QtMobility15QContactManager10managerUriEv @ 654 NONAME - _ZNK10QtMobility15QContactManager10metaObjectEv @ 655 NONAME - _ZNK10QtMobility15QContactManager11managerNameEv @ 656 NONAME - _ZNK10QtMobility15QContactManager13relationshipsERK7QStringRKNS_10QContactIdENS_26QContactRelationshipFilter4RoleE @ 657 NONAME - _ZNK10QtMobility15QContactManager13relationshipsERKNS_10QContactIdENS_26QContactRelationshipFilter4RoleE @ 658 NONAME - _ZNK10QtMobility15QContactManager13selfContactIdEv @ 659 NONAME - _ZNK10QtMobility15QContactManager14managerVersionEv @ 660 NONAME - _ZNK10QtMobility15QContactManager15filterSupportedERKNS_14QContactFilterE @ 661 NONAME - _ZNK10QtMobility15QContactManager16detailDefinitionERK7QStringS3_ @ 662 NONAME - _ZNK10QtMobility15QContactManager17detailDefinitionsERK7QString @ 663 NONAME - _ZNK10QtMobility15QContactManager17isFilterSupportedERKNS_14QContactFilterE @ 664 NONAME - _ZNK10QtMobility15QContactManager17managerParametersEv @ 665 NONAME - _ZNK10QtMobility15QContactManager18supportedDataTypesEv @ 666 NONAME - _ZNK10QtMobility15QContactManager21implementationVersionEv @ 667 NONAME - _ZNK10QtMobility15QContactManager21supportedContactTypesEv @ 668 NONAME - _ZNK10QtMobility15QContactManager22synthesizeDisplayLabelERKNS_8QContactE @ 669 NONAME - _ZNK10QtMobility15QContactManager23synthesizedDisplayLabelERKNS_8QContactE @ 670 NONAME - _ZNK10QtMobility15QContactManager26supportedRelationshipTypesERK7QString @ 671 NONAME - _ZNK10QtMobility15QContactManager5errorEv @ 672 NONAME - _ZNK10QtMobility15QContactManager7contactERKjRK11QStringList @ 673 NONAME - _ZNK10QtMobility15QContactManager8contactsERK5QListINS_17QContactSortOrderEE @ 674 NONAME - _ZNK10QtMobility15QContactManager8contactsERK5QListINS_17QContactSortOrderEERK11QStringList @ 675 NONAME - _ZNK10QtMobility15QContactManager8contactsERKNS_14QContactFilterERK5QListINS_17QContactSortOrderEE @ 676 NONAME - _ZNK10QtMobility15QContactManager8contactsERKNS_14QContactFilterERK5QListINS_17QContactSortOrderEERK11QStringList @ 677 NONAME - _ZNK10QtMobility17QContactSortOrder11blankPolicyEv @ 678 NONAME - _ZNK10QtMobility17QContactSortOrder15caseSensitivityEv @ 679 NONAME - _ZNK10QtMobility17QContactSortOrder15detailFieldNameEv @ 680 NONAME - _ZNK10QtMobility17QContactSortOrder20detailDefinitionNameEv @ 681 NONAME - _ZNK10QtMobility17QContactSortOrder7isValidEv @ 682 NONAME - _ZNK10QtMobility17QContactSortOrder9directionEv @ 683 NONAME - _ZNK10QtMobility17QContactSortOrdereqERKS0_ @ 684 NONAME - _ZNK10QtMobility19QContactSaveRequest10metaObjectEv @ 685 NONAME - _ZNK10QtMobility19QContactSaveRequest8contactsEv @ 686 NONAME - _ZNK10QtMobility19QContactSaveRequest8errorMapEv @ 687 NONAME - _ZNK10QtMobility19QContactUnionFilter7filtersEv @ 688 NONAME - _ZNK10QtMobility20QContactActionFilter10actionNameEv @ 689 NONAME - _ZNK10QtMobility20QContactActionFilter10vendorNameEv @ 690 NONAME - _ZNK10QtMobility20QContactActionFilter21implementationVersionEv @ 691 NONAME - _ZNK10QtMobility20QContactActionFilter5valueEv @ 692 NONAME - _ZNK10QtMobility20QContactDetailFilter10matchFlagsEv @ 693 NONAME - _ZNK10QtMobility20QContactDetailFilter15detailFieldNameEv @ 694 NONAME - _ZNK10QtMobility20QContactDetailFilter20detailDefinitionNameEv @ 695 NONAME - _ZNK10QtMobility20QContactDetailFilter5valueEv @ 696 NONAME - _ZNK10QtMobility20QContactFetchRequest10metaObjectEv @ 697 NONAME - _ZNK10QtMobility20QContactFetchRequest22definitionRestrictionsEv @ 698 NONAME - _ZNK10QtMobility20QContactFetchRequest6filterEv @ 699 NONAME - _ZNK10QtMobility20QContactFetchRequest7sortingEv @ 700 NONAME - _ZNK10QtMobility20QContactFetchRequest8contactsEv @ 701 NONAME - _ZNK10QtMobility20QContactMemoryEngine10contactIdsERK5QListINS_17QContactSortOrderEERNS_15QContactManager5ErrorE @ 702 NONAME - _ZNK10QtMobility20QContactMemoryEngine10hasFeatureENS_15QContactManager14ManagerFeatureERK7QString @ 703 NONAME - _ZNK10QtMobility20QContactMemoryEngine10metaObjectEv @ 704 NONAME - _ZNK10QtMobility20QContactMemoryEngine11managerNameEv @ 705 NONAME - _ZNK10QtMobility20QContactMemoryEngine13relationshipsERK7QStringRKNS_10QContactIdENS_26QContactRelationshipFilter4RoleERNS_15QContactManager5ErrorE @ 706 NONAME - _ZNK10QtMobility20QContactMemoryEngine13selfContactIdERNS_15QContactManager5ErrorE @ 707 NONAME - _ZNK10QtMobility20QContactMemoryEngine15filterSupportedERKNS_14QContactFilterE @ 708 NONAME - _ZNK10QtMobility20QContactMemoryEngine17detailDefinitionsERK7QStringRNS_15QContactManager5ErrorE @ 709 NONAME - _ZNK10QtMobility20QContactMemoryEngine17managerParametersEv @ 710 NONAME - _ZNK10QtMobility20QContactMemoryEngine18supportedDataTypesEv @ 711 NONAME - _ZNK10QtMobility20QContactMemoryEngine21implementationVersionEv @ 712 NONAME - _ZNK10QtMobility20QContactMemoryEngine26supportedRelationshipTypesERK7QString @ 713 NONAME - _ZNK10QtMobility20QContactMemoryEngine7contactERKjRK11QStringListRNS_15QContactManager5ErrorE @ 714 NONAME - _ZNK10QtMobility20QContactMemoryEngine7contactERKjRNS_15QContactManager5ErrorE @ 715 NONAME - _ZNK10QtMobility20QContactMemoryEngine8contactsERK5QListINS_17QContactSortOrderEERK11QStringListRNS_15QContactManager5ErrorE @ 716 NONAME - _ZNK10QtMobility20QContactMemoryEngine8contactsERK5QListINS_17QContactSortOrderEERNS_15QContactManager5ErrorE @ 717 NONAME - _ZNK10QtMobility20QContactRelationship16relationshipTypeEv @ 718 NONAME - _ZNK10QtMobility20QContactRelationship5firstEv @ 719 NONAME - _ZNK10QtMobility20QContactRelationship6secondEv @ 720 NONAME - _ZNK10QtMobility20QContactRelationshipeqERKS0_ @ 721 NONAME - _ZNK10QtMobility21QContactActionFactory10metaObjectEv @ 722 NONAME - _ZNK10QtMobility21QContactLocalIdFilter3idsEv @ 723 NONAME - _ZNK10QtMobility21QContactManagerEngine10contactIdsERK5QListINS_17QContactSortOrderEERNS_15QContactManager5ErrorE @ 724 NONAME - _ZNK10QtMobility21QContactManagerEngine10contactIdsERKNS_14QContactFilterERK5QListINS_17QContactSortOrderEERNS_15QContactManager5ErrorE @ 725 NONAME - _ZNK10QtMobility21QContactManagerEngine10hasFeatureENS_15QContactManager14ManagerFeatureERK7QString @ 726 NONAME - _ZNK10QtMobility21QContactManagerEngine10managerUriEv @ 727 NONAME - _ZNK10QtMobility21QContactManagerEngine10metaObjectEv @ 728 NONAME - _ZNK10QtMobility21QContactManagerEngine11managerNameEv @ 729 NONAME - _ZNK10QtMobility21QContactManagerEngine13relationshipsERK7QStringRKNS_10QContactIdENS_26QContactRelationshipFilter4RoleERNS_15QContactManager5ErrorE @ 730 NONAME - _ZNK10QtMobility21QContactManagerEngine13selfContactIdERNS_15QContactManager5ErrorE @ 731 NONAME - _ZNK10QtMobility21QContactManagerEngine14managerVersionEv @ 732 NONAME - _ZNK10QtMobility21QContactManagerEngine15filterSupportedERKNS_14QContactFilterE @ 733 NONAME - _ZNK10QtMobility21QContactManagerEngine15validateContactERKNS_8QContactERNS_15QContactManager5ErrorE @ 734 NONAME - _ZNK10QtMobility21QContactManagerEngine16detailDefinitionERK7QStringS3_RNS_15QContactManager5ErrorE @ 735 NONAME - _ZNK10QtMobility21QContactManagerEngine17detailDefinitionsERK7QStringRNS_15QContactManager5ErrorE @ 736 NONAME - _ZNK10QtMobility21QContactManagerEngine17isFilterSupportedERKNS_14QContactFilterE @ 737 NONAME - _ZNK10QtMobility21QContactManagerEngine17managerParametersEv @ 738 NONAME - _ZNK10QtMobility21QContactManagerEngine18supportedDataTypesEv @ 739 NONAME - _ZNK10QtMobility21QContactManagerEngine18validateDefinitionERKNS_24QContactDetailDefinitionERNS_15QContactManager5ErrorE @ 740 NONAME - _ZNK10QtMobility21QContactManagerEngine21implementationVersionEv @ 741 NONAME - _ZNK10QtMobility21QContactManagerEngine21supportedContactTypesEv @ 742 NONAME - _ZNK10QtMobility21QContactManagerEngine22setContactDisplayLabelERK7QStringRKNS_8QContactE @ 743 NONAME - _ZNK10QtMobility21QContactManagerEngine22synthesizeDisplayLabelERKNS_8QContactERNS_15QContactManager5ErrorE @ 744 NONAME - _ZNK10QtMobility21QContactManagerEngine23synthesizedDisplayLabelERKNS_8QContactERNS_15QContactManager5ErrorE @ 745 NONAME - _ZNK10QtMobility21QContactManagerEngine26setDetailAccessConstraintsEPNS_14QContactDetailE6QFlagsINS1_16AccessConstraintEE @ 746 NONAME - _ZNK10QtMobility21QContactManagerEngine26supportedRelationshipTypesERK7QString @ 747 NONAME - _ZNK10QtMobility21QContactManagerEngine7contactERKjRK11QStringListRNS_15QContactManager5ErrorE @ 748 NONAME - _ZNK10QtMobility21QContactManagerEngine7contactERKjRNS_15QContactManager5ErrorE @ 749 NONAME - _ZNK10QtMobility21QContactManagerEngine8contactsERK5QListINS_17QContactSortOrderEERK11QStringListRNS_15QContactManager5ErrorE @ 750 NONAME - _ZNK10QtMobility21QContactManagerEngine8contactsERK5QListINS_17QContactSortOrderEERNS_15QContactManager5ErrorE @ 751 NONAME - _ZNK10QtMobility21QContactManagerEngine8contactsERKNS_14QContactFilterERK5QListINS_17QContactSortOrderEERK11QStringListRNS_15QContactManager5ErrorE @ 752 NONAME - _ZNK10QtMobility21QContactManagerEngine8contactsERKNS_14QContactFilterERK5QListINS_17QContactSortOrderEERNS_15QContactManager5ErrorE @ 753 NONAME - _ZNK10QtMobility21QContactRemoveRequest10contactIdsEv @ 754 NONAME - _ZNK10QtMobility21QContactRemoveRequest10metaObjectEv @ 755 NONAME - _ZNK10QtMobility21QContactRemoveRequest6filterEv @ 756 NONAME - _ZNK10QtMobility21QContactRemoveRequest8errorMapEv @ 757 NONAME - _ZNK10QtMobility23QContactAbstractRequest10isCanceledEv @ 758 NONAME - _ZNK10QtMobility23QContactAbstractRequest10isFinishedEv @ 759 NONAME - _ZNK10QtMobility23QContactAbstractRequest10isInactiveEv @ 760 NONAME - _ZNK10QtMobility23QContactAbstractRequest10metaObjectEv @ 761 NONAME - _ZNK10QtMobility23QContactAbstractRequest4typeEv @ 762 NONAME - _ZNK10QtMobility23QContactAbstractRequest5errorEv @ 763 NONAME - _ZNK10QtMobility23QContactAbstractRequest5stateEv @ 764 NONAME - _ZNK10QtMobility23QContactAbstractRequest6errorsEv @ 765 NONAME - _ZNK10QtMobility23QContactAbstractRequest6statusEv @ 766 NONAME - _ZNK10QtMobility23QContactAbstractRequest7managerEv @ 767 NONAME - _ZNK10QtMobility23QContactAbstractRequest8isActiveEv @ 768 NONAME - _ZNK10QtMobility23QContactChangeLogFilter5sinceEv @ 769 NONAME - _ZNK10QtMobility23QContactChangeLogFilter9eventTypeEv @ 770 NONAME - _ZNK10QtMobility24QContactActionDescriptor10actionNameEv @ 771 NONAME - _ZNK10QtMobility24QContactActionDescriptor10vendorNameEv @ 772 NONAME - _ZNK10QtMobility24QContactActionDescriptor21implementationVersionEv @ 773 NONAME - _ZNK10QtMobility24QContactActionDescriptor7isEmptyEv @ 774 NONAME - _ZNK10QtMobility24QContactActionDescriptoreqERKS0_ @ 775 NONAME - _ZNK10QtMobility24QContactActionDescriptorneERKS0_ @ 776 NONAME - _ZNK10QtMobility24QContactDetailDefinition16accessConstraintEv @ 777 NONAME - _ZNK10QtMobility24QContactDetailDefinition4nameEv @ 778 NONAME - _ZNK10QtMobility24QContactDetailDefinition6fieldsEv @ 779 NONAME - _ZNK10QtMobility24QContactDetailDefinition7isEmptyEv @ 780 NONAME - _ZNK10QtMobility24QContactDetailDefinition8isUniqueEv @ 781 NONAME - _ZNK10QtMobility24QContactDetailDefinitioneqERKS0_ @ 782 NONAME - _ZNK10QtMobility25QContactDetailRangeFilter10matchFlagsEv @ 783 NONAME - _ZNK10QtMobility25QContactDetailRangeFilter10rangeFlagsEv @ 784 NONAME - _ZNK10QtMobility25QContactDetailRangeFilter15detailFieldNameEv @ 785 NONAME - _ZNK10QtMobility25QContactDetailRangeFilter20detailDefinitionNameEv @ 786 NONAME - _ZNK10QtMobility25QContactDetailRangeFilter8maxValueEv @ 787 NONAME - _ZNK10QtMobility25QContactDetailRangeFilter8minValueEv @ 788 NONAME - _ZNK10QtMobility26QContactIntersectionFilter7filtersEv @ 789 NONAME - _ZNK10QtMobility26QContactRelationshipFilter16relatedContactIdEv @ 790 NONAME - _ZNK10QtMobility26QContactRelationshipFilter16relationshipTypeEv @ 791 NONAME - _ZNK10QtMobility26QContactRelationshipFilter18otherParticipantIdEv @ 792 NONAME - _ZNK10QtMobility26QContactRelationshipFilter18relatedContactRoleEv @ 793 NONAME - _ZNK10QtMobility26QContactRelationshipFilter4roleEv @ 794 NONAME - _ZNK10QtMobility27QContactLocalIdFetchRequest10metaObjectEv @ 795 NONAME - _ZNK10QtMobility27QContactLocalIdFetchRequest3idsEv @ 796 NONAME - _ZNK10QtMobility27QContactLocalIdFetchRequest6filterEv @ 797 NONAME - _ZNK10QtMobility27QContactLocalIdFetchRequest7sortingEv @ 798 NONAME - _ZNK10QtMobility29QContactDetailFieldDefinition15allowableValuesEv @ 799 NONAME - _ZNK10QtMobility29QContactDetailFieldDefinition16accessConstraintEv @ 800 NONAME - _ZNK10QtMobility29QContactDetailFieldDefinition8dataTypeEv @ 801 NONAME - _ZNK10QtMobility29QContactDetailFieldDefinitioneqERKS0_ @ 802 NONAME - _ZNK10QtMobility29QContactDetailFieldDefinitionneERKS0_ @ 803 NONAME - _ZNK10QtMobility31QContactRelationshipSaveRequest10metaObjectEv @ 804 NONAME - _ZNK10QtMobility31QContactRelationshipSaveRequest13relationshipsEv @ 805 NONAME - _ZNK10QtMobility31QContactRelationshipSaveRequest8errorMapEv @ 806 NONAME - _ZNK10QtMobility32QContactRelationshipFetchRequest10metaObjectEv @ 807 NONAME - _ZNK10QtMobility32QContactRelationshipFetchRequest11participantEv @ 808 NONAME - _ZNK10QtMobility32QContactRelationshipFetchRequest13relationshipsEv @ 809 NONAME - _ZNK10QtMobility32QContactRelationshipFetchRequest15participantRoleEv @ 810 NONAME - _ZNK10QtMobility32QContactRelationshipFetchRequest16relationshipTypeEv @ 811 NONAME - _ZNK10QtMobility32QContactRelationshipFetchRequest5firstEv @ 812 NONAME - _ZNK10QtMobility32QContactRelationshipFetchRequest6secondEv @ 813 NONAME - _ZNK10QtMobility33QContactRelationshipRemoveRequest10metaObjectEv @ 814 NONAME - _ZNK10QtMobility33QContactRelationshipRemoveRequest13relationshipsEv @ 815 NONAME - _ZNK10QtMobility33QContactRelationshipRemoveRequest16relationshipTypeEv @ 816 NONAME - _ZNK10QtMobility33QContactRelationshipRemoveRequest5firstEv @ 817 NONAME - _ZNK10QtMobility33QContactRelationshipRemoveRequest6secondEv @ 818 NONAME - _ZNK10QtMobility33QContactRelationshipRemoveRequest8errorMapEv @ 819 NONAME - _ZNK10QtMobility35QContactDetailDefinitionSaveRequest10metaObjectEv @ 820 NONAME - _ZNK10QtMobility35QContactDetailDefinitionSaveRequest11contactTypeEv @ 821 NONAME - _ZNK10QtMobility35QContactDetailDefinitionSaveRequest11definitionsEv @ 822 NONAME - _ZNK10QtMobility35QContactDetailDefinitionSaveRequest8errorMapEv @ 823 NONAME - _ZNK10QtMobility36QContactDetailDefinitionFetchRequest10metaObjectEv @ 824 NONAME - _ZNK10QtMobility36QContactDetailDefinitionFetchRequest11contactTypeEv @ 825 NONAME - _ZNK10QtMobility36QContactDetailDefinitionFetchRequest11definitionsEv @ 826 NONAME - _ZNK10QtMobility36QContactDetailDefinitionFetchRequest15definitionNamesEv @ 827 NONAME - _ZNK10QtMobility36QContactDetailDefinitionFetchRequest5namesEv @ 828 NONAME - _ZNK10QtMobility36QContactDetailDefinitionFetchRequest8errorMapEv @ 829 NONAME - _ZNK10QtMobility37QContactDetailDefinitionRemoveRequest10metaObjectEv @ 830 NONAME - _ZNK10QtMobility37QContactDetailDefinitionRemoveRequest11contactTypeEv @ 831 NONAME - _ZNK10QtMobility37QContactDetailDefinitionRemoveRequest15definitionNamesEv @ 832 NONAME - _ZNK10QtMobility37QContactDetailDefinitionRemoveRequest5namesEv @ 833 NONAME - _ZNK10QtMobility37QContactDetailDefinitionRemoveRequest8errorMapEv @ 834 NONAME - _ZNK10QtMobility8QContact12displayLabelEv @ 835 NONAME - _ZNK10QtMobility8QContact13relationshipsERK7QString @ 836 NONAME - _ZNK10QtMobility8QContact15preferredDetailERK7QString @ 837 NONAME - _ZNK10QtMobility8QContact15relatedContactsERK7QStringNS_26QContactRelationshipFilter4RoleE @ 838 NONAME - _ZNK10QtMobility8QContact16availableActionsERK7QStringi @ 839 NONAME - _ZNK10QtMobility8QContact16detailWithActionERK7QString @ 840 NONAME - _ZNK10QtMobility8QContact17detailsWithActionERK7QString @ 841 NONAME - _ZNK10QtMobility8QContact17isPreferredDetailERK7QStringRKNS_14QContactDetailE @ 842 NONAME - _ZNK10QtMobility8QContact17relationshipOrderEv @ 843 NONAME - _ZNK10QtMobility8QContact2idEv @ 844 NONAME - _ZNK10QtMobility8QContact4typeEv @ 845 NONAME - _ZNK10QtMobility8QContact6detailERK7QString @ 846 NONAME - _ZNK10QtMobility8QContact7detailsERK7QString @ 847 NONAME - _ZNK10QtMobility8QContact7detailsERK7QStringS3_S3_ @ 848 NONAME - _ZNK10QtMobility8QContact7isEmptyEv @ 849 NONAME - _ZNK10QtMobility8QContact7localIdEv @ 850 NONAME - _ZNK10QtMobility8QContacteqERKS0_ @ 851 NONAME - _ZTIN10QtMobility12QContactNameE @ 852 NONAME ; ## - _ZTIN10QtMobility12QContactTypeE @ 853 NONAME ; ## - _ZTIN10QtMobility14QContactActionE @ 854 NONAME ; ## - _ZTIN10QtMobility14QContactDetailE @ 855 NONAME ; ## - _ZTIN10QtMobility14QContactFilterE @ 856 NONAME ; ## - _ZTIN10QtMobility15QContactManagerE @ 857 NONAME ; ## - _ZTIN10QtMobility17QContactTimestampE @ 858 NONAME ; ## - _ZTIN10QtMobility19QContactSaveRequestE @ 859 NONAME ; ## - _ZTIN10QtMobility19QContactUnionFilterE @ 860 NONAME ; ## - _ZTIN10QtMobility20QContactActionFilterE @ 861 NONAME ; ## - _ZTIN10QtMobility20QContactDetailFilterE @ 862 NONAME ; ## - _ZTIN10QtMobility20QContactDisplayLabelE @ 863 NONAME ; ## - _ZTIN10QtMobility20QContactFetchRequestE @ 864 NONAME ; ## - _ZTIN10QtMobility20QContactMemoryEngineE @ 865 NONAME ; ## - _ZTIN10QtMobility20QContactOrganizationE @ 866 NONAME ; ## - _ZTIN10QtMobility21QContactActionFactoryE @ 867 NONAME ; ## - _ZTIN10QtMobility21QContactInvalidFilterE @ 868 NONAME ; ## - _ZTIN10QtMobility21QContactLocalIdFilterE @ 869 NONAME ; ## - _ZTIN10QtMobility21QContactManagerEngineE @ 870 NONAME ; ## - _ZTIN10QtMobility21QContactRemoveRequestE @ 871 NONAME ; ## - _ZTIN10QtMobility23QContactAbstractRequestE @ 872 NONAME ; ## - _ZTIN10QtMobility23QContactChangeLogFilterE @ 873 NONAME ; ## - _ZTIN10QtMobility25QContactDetailRangeFilterE @ 874 NONAME ; ## - _ZTIN10QtMobility26QContactIntersectionFilterE @ 875 NONAME ; ## - _ZTIN10QtMobility26QContactRelationshipFilterE @ 876 NONAME ; ## - _ZTIN10QtMobility27QContactLocalIdFetchRequestE @ 877 NONAME ; ## - _ZTIN10QtMobility31QContactRelationshipSaveRequestE @ 878 NONAME ; ## - _ZTIN10QtMobility32QContactRelationshipFetchRequestE @ 879 NONAME ; ## - _ZTIN10QtMobility33QContactRelationshipRemoveRequestE @ 880 NONAME ; ## - _ZTIN10QtMobility35QContactDetailDefinitionSaveRequestE @ 881 NONAME ; ## - _ZTIN10QtMobility36QContactDetailDefinitionFetchRequestE @ 882 NONAME ; ## - _ZTIN10QtMobility37QContactDetailDefinitionRemoveRequestE @ 883 NONAME ; ## - _ZTVN10QtMobility12QContactNameE @ 884 NONAME ; ## - _ZTVN10QtMobility12QContactTypeE @ 885 NONAME ; ## - _ZTVN10QtMobility14QContactActionE @ 886 NONAME ; ## - _ZTVN10QtMobility14QContactDetailE @ 887 NONAME ; ## - _ZTVN10QtMobility14QContactFilterE @ 888 NONAME ; ## - _ZTVN10QtMobility15QContactManagerE @ 889 NONAME ; ## - _ZTVN10QtMobility17QContactTimestampE @ 890 NONAME ; ## - _ZTVN10QtMobility19QContactSaveRequestE @ 891 NONAME ; ## - _ZTVN10QtMobility19QContactUnionFilterE @ 892 NONAME ; ## - _ZTVN10QtMobility20QContactActionFilterE @ 893 NONAME ; ## - _ZTVN10QtMobility20QContactDetailFilterE @ 894 NONAME ; ## - _ZTVN10QtMobility20QContactDisplayLabelE @ 895 NONAME ; ## - _ZTVN10QtMobility20QContactFetchRequestE @ 896 NONAME ; ## - _ZTVN10QtMobility20QContactMemoryEngineE @ 897 NONAME ; ## - _ZTVN10QtMobility20QContactOrganizationE @ 898 NONAME ; ## - _ZTVN10QtMobility21QContactActionFactoryE @ 899 NONAME ; ## - _ZTVN10QtMobility21QContactInvalidFilterE @ 900 NONAME ; ## - _ZTVN10QtMobility21QContactLocalIdFilterE @ 901 NONAME ; ## - _ZTVN10QtMobility21QContactManagerEngineE @ 902 NONAME ; ## - _ZTVN10QtMobility21QContactRemoveRequestE @ 903 NONAME ; ## - _ZTVN10QtMobility23QContactAbstractRequestE @ 904 NONAME ; ## - _ZTVN10QtMobility23QContactChangeLogFilterE @ 905 NONAME ; ## - _ZTVN10QtMobility25QContactDetailRangeFilterE @ 906 NONAME ; ## - _ZTVN10QtMobility26QContactIntersectionFilterE @ 907 NONAME ; ## - _ZTVN10QtMobility26QContactRelationshipFilterE @ 908 NONAME ; ## - _ZTVN10QtMobility27QContactLocalIdFetchRequestE @ 909 NONAME ; ## - _ZTVN10QtMobility31QContactRelationshipSaveRequestE @ 910 NONAME ; ## - _ZTVN10QtMobility32QContactRelationshipFetchRequestE @ 911 NONAME ; ## - _ZTVN10QtMobility33QContactRelationshipRemoveRequestE @ 912 NONAME ; ## - _ZTVN10QtMobility35QContactDetailDefinitionSaveRequestE @ 913 NONAME ; ## - _ZTVN10QtMobility36QContactDetailDefinitionFetchRequestE @ 914 NONAME ; ## - _ZTVN10QtMobility37QContactDetailDefinitionRemoveRequestE @ 915 NONAME ; ## + _ZN10QtMobility17QContactChangeSet14setDataChangedEb @ 155 NONAME + _ZN10QtMobility17QContactChangeSet18clearAddedContactsEv @ 156 NONAME + _ZN10QtMobility17QContactChangeSet18insertAddedContactEj @ 157 NONAME + _ZN10QtMobility17QContactChangeSet19insertAddedContactsERK5QListIjE @ 158 NONAME + _ZN10QtMobility17QContactChangeSet20clearChangedContactsEv @ 159 NONAME + _ZN10QtMobility17QContactChangeSet20clearRemovedContactsEv @ 160 NONAME + _ZN10QtMobility17QContactChangeSet20insertChangedContactEj @ 161 NONAME + _ZN10QtMobility17QContactChangeSet20insertRemovedContactEj @ 162 NONAME + _ZN10QtMobility17QContactChangeSet21insertChangedContactsERK5QListIjE @ 163 NONAME + _ZN10QtMobility17QContactChangeSet21insertRemovedContactsERK5QListIjE @ 164 NONAME + _ZN10QtMobility17QContactChangeSet25setOldAndNewSelfContactIdERK5QPairIjjE @ 165 NONAME + _ZN10QtMobility17QContactChangeSet31clearAddedRelationshipsContactsEv @ 166 NONAME + _ZN10QtMobility17QContactChangeSet31insertAddedRelationshipsContactEj @ 167 NONAME + _ZN10QtMobility17QContactChangeSet32insertAddedRelationshipsContactsERK5QListIjE @ 168 NONAME + _ZN10QtMobility17QContactChangeSet33clearRemovedRelationshipsContactsEv @ 169 NONAME + _ZN10QtMobility17QContactChangeSet33insertRemovedRelationshipsContactEj @ 170 NONAME + _ZN10QtMobility17QContactChangeSet34insertRemovedRelationshipsContactsERK5QListIjE @ 171 NONAME + _ZN10QtMobility17QContactChangeSet8clearAllEv @ 172 NONAME + _ZN10QtMobility17QContactChangeSetC1ERKS0_ @ 173 NONAME + _ZN10QtMobility17QContactChangeSetC1Ev @ 174 NONAME + _ZN10QtMobility17QContactChangeSetC2ERKS0_ @ 175 NONAME + _ZN10QtMobility17QContactChangeSetC2Ev @ 176 NONAME + _ZN10QtMobility17QContactChangeSetD1Ev @ 177 NONAME + _ZN10QtMobility17QContactChangeSetD2Ev @ 178 NONAME + _ZN10QtMobility17QContactChangeSetaSERKS0_ @ 179 NONAME + _ZN10QtMobility17QContactFetchHint20setOptimizationHintsE6QFlagsINS0_16OptimizationHintEE @ 180 NONAME + _ZN10QtMobility17QContactFetchHint24setDetailDefinitionsHintERK11QStringList @ 181 NONAME + _ZN10QtMobility17QContactFetchHint24setRelationshipTypesHintERK11QStringList @ 182 NONAME + _ZN10QtMobility17QContactFetchHintC1ERKS0_ @ 183 NONAME + _ZN10QtMobility17QContactFetchHintC1Ev @ 184 NONAME + _ZN10QtMobility17QContactFetchHintC2ERKS0_ @ 185 NONAME + _ZN10QtMobility17QContactFetchHintC2Ev @ 186 NONAME + _ZN10QtMobility17QContactFetchHintD1Ev @ 187 NONAME + _ZN10QtMobility17QContactFetchHintD2Ev @ 188 NONAME + _ZN10QtMobility17QContactFetchHintaSERKS0_ @ 189 NONAME + _ZN10QtMobility17QContactSortOrder12setDirectionEN2Qt9SortOrderE @ 190 NONAME + _ZN10QtMobility17QContactSortOrder14setBlankPolicyENS0_11BlankPolicyE @ 191 NONAME + _ZN10QtMobility17QContactSortOrder18setCaseSensitivityEN2Qt15CaseSensitivityE @ 192 NONAME + _ZN10QtMobility17QContactSortOrder23setDetailDefinitionNameERK7QStringS3_ @ 193 NONAME + _ZN10QtMobility17QContactSortOrderC1ERKS0_ @ 194 NONAME + _ZN10QtMobility17QContactSortOrderC1Ev @ 195 NONAME + _ZN10QtMobility17QContactSortOrderC2ERKS0_ @ 196 NONAME + _ZN10QtMobility17QContactSortOrderC2Ev @ 197 NONAME + _ZN10QtMobility17QContactSortOrderD1Ev @ 198 NONAME + _ZN10QtMobility17QContactSortOrderD2Ev @ 199 NONAME + _ZN10QtMobility17QContactSortOrderaSERKS0_ @ 200 NONAME + _ZN10QtMobility17QContactThumbnail14DefinitionNameE @ 201 NONAME DATA 10 + _ZN10QtMobility17QContactThumbnail14FieldThumbnailE @ 202 NONAME DATA 10 + _ZN10QtMobility17QContactTimestamp14DefinitionNameE @ 203 NONAME DATA 10 + _ZN10QtMobility17QContactTimestamp22FieldCreationTimestampE @ 204 NONAME DATA 18 + _ZN10QtMobility17QContactTimestamp26FieldModificationTimestampE @ 205 NONAME DATA 22 + _ZN10QtMobility18QContactSyncTarget14DefinitionNameE @ 206 NONAME DATA 11 + _ZN10QtMobility18QContactSyncTarget15FieldSyncTargetE @ 207 NONAME DATA 11 + _ZN10QtMobility19QContactAnniversary10FieldEventE @ 208 NONAME DATA 6 + _ZN10QtMobility19QContactAnniversary12FieldSubTypeE @ 209 NONAME DATA 8 + _ZN10QtMobility19QContactAnniversary12SubTypeHouseE @ 210 NONAME DATA 6 + _ZN10QtMobility19QContactAnniversary14DefinitionNameE @ 211 NONAME DATA 12 + _ZN10QtMobility19QContactAnniversary14SubTypeWeddingE @ 212 NONAME DATA 8 + _ZN10QtMobility19QContactAnniversary15FieldCalendarIdE @ 213 NONAME DATA 11 + _ZN10QtMobility19QContactAnniversary15SubTypeMemorialE @ 214 NONAME DATA 9 + _ZN10QtMobility19QContactAnniversary17FieldOriginalDateE @ 215 NONAME DATA 13 + _ZN10QtMobility19QContactAnniversary17SubTypeEmploymentE @ 216 NONAME DATA 11 + _ZN10QtMobility19QContactAnniversary17SubTypeEngagementE @ 217 NONAME DATA 11 + _ZN10QtMobility19QContactGeoLocation10FieldLabelE @ 218 NONAME DATA 6 + _ZN10QtMobility19QContactGeoLocation10FieldSpeedE @ 219 NONAME DATA 6 + _ZN10QtMobility19QContactGeoLocation12FieldHeadingE @ 220 NONAME DATA 8 + _ZN10QtMobility19QContactGeoLocation13FieldAccuracyE @ 221 NONAME DATA 9 + _ZN10QtMobility19QContactGeoLocation13FieldAltitudeE @ 222 NONAME DATA 9 + _ZN10QtMobility19QContactGeoLocation13FieldLatitudeE @ 223 NONAME DATA 9 + _ZN10QtMobility19QContactGeoLocation14DefinitionNameE @ 224 NONAME DATA 12 + _ZN10QtMobility19QContactGeoLocation14FieldLongitudeE @ 225 NONAME DATA 10 + _ZN10QtMobility19QContactGeoLocation14FieldTimestampE @ 226 NONAME DATA 10 + _ZN10QtMobility19QContactGeoLocation21FieldAltitudeAccuracyE @ 227 NONAME DATA 17 + _ZN10QtMobility19QContactPhoneNumber10SubTypeCarE @ 228 NONAME DATA 4 + _ZN10QtMobility19QContactPhoneNumber10SubTypeFaxE @ 229 NONAME DATA 4 + _ZN10QtMobility19QContactPhoneNumber11FieldNumberE @ 230 NONAME DATA 12 + _ZN10QtMobility19QContactPhoneNumber12SubTypeModemE @ 231 NONAME DATA 6 + _ZN10QtMobility19QContactPhoneNumber12SubTypePagerE @ 232 NONAME DATA 6 + _ZN10QtMobility19QContactPhoneNumber12SubTypeVideoE @ 233 NONAME DATA 6 + _ZN10QtMobility19QContactPhoneNumber12SubTypeVoiceE @ 234 NONAME DATA 6 + _ZN10QtMobility19QContactPhoneNumber13FieldSubTypesE @ 235 NONAME DATA 9 + _ZN10QtMobility19QContactPhoneNumber13SubTypeMobileE @ 236 NONAME DATA 7 + _ZN10QtMobility19QContactPhoneNumber14DefinitionNameE @ 237 NONAME DATA 12 + _ZN10QtMobility19QContactPhoneNumber15SubTypeDtmfMenuE @ 238 NONAME DATA 9 + _ZN10QtMobility19QContactPhoneNumber15SubTypeLandlineE @ 239 NONAME DATA 9 + _ZN10QtMobility19QContactPhoneNumber16SubTypeAssistantE @ 240 NONAME DATA 10 + _ZN10QtMobility19QContactPhoneNumber23SubTypeMessagingCapableE @ 241 NONAME DATA 17 + _ZN10QtMobility19QContactPhoneNumber26SubTypeBulletinBoardSystemE @ 242 NONAME DATA 20 + _ZN10QtMobility19QContactPhoneNumber5matchERK7QString @ 243 NONAME + _ZN10QtMobility19QContactSaveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 244 NONAME + _ZN10QtMobility19QContactSaveRequest11qt_metacastEPKc @ 245 NONAME + _ZN10QtMobility19QContactSaveRequest11setContactsERK5QListINS_8QContactEE @ 246 NONAME + _ZN10QtMobility19QContactSaveRequest16staticMetaObjectE @ 247 NONAME DATA 16 + _ZN10QtMobility19QContactSaveRequest19getStaticMetaObjectEv @ 248 NONAME + _ZN10QtMobility19QContactSaveRequestC1Ev @ 249 NONAME + _ZN10QtMobility19QContactSaveRequestC2Ev @ 250 NONAME + _ZN10QtMobility19QContactSaveRequestD0Ev @ 251 NONAME + _ZN10QtMobility19QContactSaveRequestD1Ev @ 252 NONAME + _ZN10QtMobility19QContactSaveRequestD2Ev @ 253 NONAME + _ZN10QtMobility19QContactUnionFilter10setFiltersERK5QListINS_14QContactFilterEE @ 254 NONAME + _ZN10QtMobility19QContactUnionFilter6appendERKNS_14QContactFilterE @ 255 NONAME + _ZN10QtMobility19QContactUnionFilter6removeERKNS_14QContactFilterE @ 256 NONAME + _ZN10QtMobility19QContactUnionFilter7prependERKNS_14QContactFilterE @ 257 NONAME + _ZN10QtMobility19QContactUnionFilterC1ERKNS_14QContactFilterE @ 258 NONAME + _ZN10QtMobility19QContactUnionFilterC1Ev @ 259 NONAME + _ZN10QtMobility19QContactUnionFilterC2ERKNS_14QContactFilterE @ 260 NONAME + _ZN10QtMobility19QContactUnionFilterC2Ev @ 261 NONAME + _ZN10QtMobility19QContactUnionFilterlsERKNS_14QContactFilterE @ 262 NONAME + _ZN10QtMobility20QContactActionFilter13setActionNameERK7QString @ 263 NONAME + _ZN10QtMobility20QContactActionFilter8setValueERK8QVariant @ 264 NONAME + _ZN10QtMobility20QContactActionFilter9setVendorERK7QStringi @ 265 NONAME + _ZN10QtMobility20QContactActionFilterC1ERKNS_14QContactFilterE @ 266 NONAME + _ZN10QtMobility20QContactActionFilterC1Ev @ 267 NONAME + _ZN10QtMobility20QContactActionFilterC2ERKNS_14QContactFilterE @ 268 NONAME + _ZN10QtMobility20QContactActionFilterC2Ev @ 269 NONAME + _ZN10QtMobility20QContactDetailFilter13setMatchFlagsE6QFlagsINS_14QContactFilter9MatchFlagEE @ 270 NONAME + _ZN10QtMobility20QContactDetailFilter23setDetailDefinitionNameERK7QStringS3_ @ 271 NONAME + _ZN10QtMobility20QContactDetailFilter8setValueERK8QVariant @ 272 NONAME + _ZN10QtMobility20QContactDetailFilterC1ERKNS_14QContactFilterE @ 273 NONAME + _ZN10QtMobility20QContactDetailFilterC1Ev @ 274 NONAME + _ZN10QtMobility20QContactDetailFilterC2ERKNS_14QContactFilterE @ 275 NONAME + _ZN10QtMobility20QContactDetailFilterC2Ev @ 276 NONAME + _ZN10QtMobility20QContactDisplayLabel10FieldLabelE @ 277 NONAME DATA 6 + _ZN10QtMobility20QContactDisplayLabel14DefinitionNameE @ 278 NONAME DATA 13 + _ZN10QtMobility20QContactDisplayLabel5matchERK7QString @ 279 NONAME + _ZN10QtMobility20QContactEmailAddress14DefinitionNameE @ 280 NONAME DATA 13 + _ZN10QtMobility20QContactEmailAddress17FieldEmailAddressE @ 281 NONAME DATA 13 + _ZN10QtMobility20QContactEmailAddress5matchERK7QString @ 282 NONAME + _ZN10QtMobility20QContactFetchRequest10setSortingERK5QListINS_17QContactSortOrderEE @ 283 NONAME + _ZN10QtMobility20QContactFetchRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 284 NONAME + _ZN10QtMobility20QContactFetchRequest11qt_metacastEPKc @ 285 NONAME + _ZN10QtMobility20QContactFetchRequest12setFetchHintERKNS_17QContactFetchHintE @ 286 NONAME + _ZN10QtMobility20QContactFetchRequest16staticMetaObjectE @ 287 NONAME DATA 16 + _ZN10QtMobility20QContactFetchRequest19getStaticMetaObjectEv @ 288 NONAME + _ZN10QtMobility20QContactFetchRequest9setFilterERKNS_14QContactFilterE @ 289 NONAME + _ZN10QtMobility20QContactFetchRequestC1Ev @ 290 NONAME + _ZN10QtMobility20QContactFetchRequestC2Ev @ 291 NONAME + _ZN10QtMobility20QContactFetchRequestD0Ev @ 292 NONAME + _ZN10QtMobility20QContactFetchRequestD1Ev @ 293 NONAME + _ZN10QtMobility20QContactFetchRequestD2Ev @ 294 NONAME + _ZN10QtMobility20QContactOrganization10FieldTitleE @ 295 NONAME DATA 6 + _ZN10QtMobility20QContactOrganization12FieldLogoUrlE @ 296 NONAME DATA 8 + _ZN10QtMobility20QContactOrganization13FieldLocationE @ 297 NONAME DATA 9 + _ZN10QtMobility20QContactOrganization14DefinitionNameE @ 298 NONAME DATA 13 + _ZN10QtMobility20QContactOrganization15FieldDepartmentE @ 299 NONAME DATA 11 + _ZN10QtMobility20QContactOrganization18FieldAssistantNameE @ 300 NONAME DATA 14 + _ZN10QtMobility20QContactOrganization9FieldNameE @ 301 NONAME DATA 5 + _ZN10QtMobility20QContactOrganization9FieldRoleE @ 302 NONAME DATA 5 + _ZN10QtMobility20QContactRelationship10AggregatesE @ 303 NONAME DATA 11 + _ZN10QtMobility20QContactRelationship10HasManagerE @ 304 NONAME DATA 11 + _ZN10QtMobility20QContactRelationship12HasAssistantE @ 305 NONAME DATA 13 + _ZN10QtMobility20QContactRelationship19setRelationshipTypeERK7QString @ 306 NONAME + _ZN10QtMobility20QContactRelationship8IsSameAsE @ 307 NONAME DATA 9 + _ZN10QtMobility20QContactRelationship8setFirstERKNS_10QContactIdE @ 308 NONAME + _ZN10QtMobility20QContactRelationship9HasMemberE @ 309 NONAME DATA 10 + _ZN10QtMobility20QContactRelationship9HasSpouseE @ 310 NONAME DATA 10 + _ZN10QtMobility20QContactRelationship9setSecondERKNS_10QContactIdE @ 311 NONAME + _ZN10QtMobility20QContactRelationshipC1ERKS0_ @ 312 NONAME + _ZN10QtMobility20QContactRelationshipC1Ev @ 313 NONAME + _ZN10QtMobility20QContactRelationshipC2ERKS0_ @ 314 NONAME + _ZN10QtMobility20QContactRelationshipC2Ev @ 315 NONAME + _ZN10QtMobility20QContactRelationshipD1Ev @ 316 NONAME + _ZN10QtMobility20QContactRelationshipD2Ev @ 317 NONAME + _ZN10QtMobility20QContactRelationshipaSERKS0_ @ 318 NONAME + _ZN10QtMobility21QContactActionFactory11qt_metacallEN11QMetaObject4CallEiPPv @ 319 NONAME + _ZN10QtMobility21QContactActionFactory11qt_metacastEPKc @ 320 NONAME + _ZN10QtMobility21QContactActionFactory16staticMetaObjectE @ 321 NONAME DATA 16 + _ZN10QtMobility21QContactActionFactory19getStaticMetaObjectEv @ 322 NONAME + _ZN10QtMobility21QContactActionFactoryD0Ev @ 323 NONAME + _ZN10QtMobility21QContactActionFactoryD1Ev @ 324 NONAME + _ZN10QtMobility21QContactActionFactoryD2Ev @ 325 NONAME + _ZN10QtMobility21QContactInvalidFilterC1ERKNS_14QContactFilterE @ 326 NONAME + _ZN10QtMobility21QContactInvalidFilterC1Ev @ 327 NONAME + _ZN10QtMobility21QContactInvalidFilterC2ERKNS_14QContactFilterE @ 328 NONAME + _ZN10QtMobility21QContactInvalidFilterC2Ev @ 329 NONAME + _ZN10QtMobility21QContactLocalIdFilter6setIdsERK5QListIjE @ 330 NONAME + _ZN10QtMobility21QContactLocalIdFilterC1ERKNS_14QContactFilterE @ 331 NONAME + _ZN10QtMobility21QContactLocalIdFilterC1Ev @ 332 NONAME + _ZN10QtMobility21QContactLocalIdFilterC2ERKNS_14QContactFilterE @ 333 NONAME + _ZN10QtMobility21QContactLocalIdFilterC2Ev @ 334 NONAME + _ZN10QtMobility21QContactManagerEngine10testFilterERKNS_14QContactFilterERKNS_8QContactE @ 335 NONAME + _ZN10QtMobility21QContactManagerEngine11dataChangedEv @ 336 NONAME + _ZN10QtMobility21QContactManagerEngine11qt_metacallEN11QMetaObject4CallEiPPv @ 337 NONAME + _ZN10QtMobility21QContactManagerEngine11qt_metacastEPKc @ 338 NONAME + _ZN10QtMobility21QContactManagerEngine11saveContactEPNS_8QContactEPNS_15QContactManager5ErrorE @ 339 NONAME + _ZN10QtMobility21QContactManagerEngine12saveContactsEP5QListINS_8QContactEEP4QMapIiNS_15QContactManager5ErrorEEPS7_ @ 340 NONAME + _ZN10QtMobility21QContactManagerEngine12sortContactsERK5QListINS_8QContactEERKS1_INS_17QContactSortOrderEE @ 341 NONAME + _ZN10QtMobility21QContactManagerEngine12startRequestEPNS_23QContactAbstractRequestE @ 342 NONAME + _ZN10QtMobility21QContactManagerEngine13cancelRequestEPNS_23QContactAbstractRequestE @ 343 NONAME + _ZN10QtMobility21QContactManagerEngine13contactsAddedERK5QListIjE @ 344 NONAME + _ZN10QtMobility21QContactManagerEngine13removeContactERKjPNS_15QContactManager5ErrorE @ 345 NONAME + _ZN10QtMobility21QContactManagerEngine14compareContactERKNS_8QContactES3_RK5QListINS_17QContactSortOrderEE @ 346 NONAME + _ZN10QtMobility21QContactManagerEngine14compareVariantERK8QVariantS3_N2Qt15CaseSensitivityE @ 347 NONAME + _ZN10QtMobility21QContactManagerEngine14removeContactsERK5QListIjEP4QMapIiNS_15QContactManager5ErrorEEPS7_ @ 348 NONAME + _ZN10QtMobility21QContactManagerEngine15contactsChangedERK5QListIjE @ 349 NONAME + _ZN10QtMobility21QContactManagerEngine15contactsRemovedERK5QListIjE @ 350 NONAME + _ZN10QtMobility21QContactManagerEngine16requestDestroyedEPNS_23QContactAbstractRequestE @ 351 NONAME + _ZN10QtMobility21QContactManagerEngine16saveRelationshipEPNS_20QContactRelationshipEPNS_15QContactManager5ErrorE @ 352 NONAME + _ZN10QtMobility21QContactManagerEngine16setSelfContactIdERKjPNS_15QContactManager5ErrorE @ 353 NONAME + _ZN10QtMobility21QContactManagerEngine16staticMetaObjectE @ 354 NONAME DATA 16 + _ZN10QtMobility21QContactManagerEngine17saveRelationshipsEP5QListINS_20QContactRelationshipEEP4QMapIiNS_15QContactManager5ErrorEEPS7_ @ 355 NONAME + _ZN10QtMobility21QContactManagerEngine17schemaDefinitionsEv @ 356 NONAME + _ZN10QtMobility21QContactManagerEngine18relationshipsAddedERK5QListIjE @ 357 NONAME + _ZN10QtMobility21QContactManagerEngine18removeRelationshipERKNS_20QContactRelationshipEPNS_15QContactManager5ErrorE @ 358 NONAME + _ZN10QtMobility21QContactManagerEngine18updateRequestStateEPNS_23QContactAbstractRequestENS1_5StateE @ 359 NONAME + _ZN10QtMobility21QContactManagerEngine19canonicalizedFilterERKNS_14QContactFilterE @ 360 NONAME + _ZN10QtMobility21QContactManagerEngine19getStaticMetaObjectEv @ 361 NONAME + _ZN10QtMobility21QContactManagerEngine19removeRelationshipsERK5QListINS_20QContactRelationshipEEP4QMapIiNS_15QContactManager5ErrorEEPS8_ @ 362 NONAME + _ZN10QtMobility21QContactManagerEngine20relationshipsRemovedERK5QListIjE @ 363 NONAME + _ZN10QtMobility21QContactManagerEngine20saveDetailDefinitionERKNS_24QContactDetailDefinitionERK7QStringPNS_15QContactManager5ErrorE @ 364 NONAME + _ZN10QtMobility21QContactManagerEngine20selfContactIdChangedERKjS2_ @ 365 NONAME + _ZN10QtMobility21QContactManagerEngine20validateActionFilterERKNS_14QContactFilterE @ 366 NONAME + _ZN10QtMobility21QContactManagerEngine22removeDetailDefinitionERK7QStringS3_PNS_15QContactManager5ErrorE @ 367 NONAME + _ZN10QtMobility21QContactManagerEngine22setContactDisplayLabelEPNS_8QContactERK7QString @ 368 NONAME + _ZN10QtMobility21QContactManagerEngine22waitForRequestFinishedEPNS_23QContactAbstractRequestEi @ 369 NONAME + _ZN10QtMobility21QContactManagerEngine23setContactRelationshipsEPNS_8QContactERK5QListINS_20QContactRelationshipEE @ 370 NONAME + _ZN10QtMobility21QContactManagerEngine24updateContactSaveRequestEPNS_19QContactSaveRequestERK5QListINS_8QContactEENS_15QContactManager5ErrorERK4QMapIiS9_ENS_23QContactAbstractRequest5StateE @ 371 NONAME + _ZN10QtMobility21QContactManagerEngine25updateContactFetchRequestEPNS_20QContactFetchRequestERK5QListINS_8QContactEENS_15QContactManager5ErrorENS_23QContactAbstractRequest5StateE @ 372 NONAME + _ZN10QtMobility21QContactManagerEngine26setDetailAccessConstraintsEPNS_14QContactDetailE6QFlagsINS1_16AccessConstraintEE @ 373 NONAME + _ZN10QtMobility21QContactManagerEngine26updateContactRemoveRequestEPNS_21QContactRemoveRequestENS_15QContactManager5ErrorERK4QMapIiS4_ENS_23QContactAbstractRequest5StateE @ 374 NONAME + _ZN10QtMobility21QContactManagerEngine27updateDefinitionSaveRequestEPNS_35QContactDetailDefinitionSaveRequestERK5QListINS_24QContactDetailDefinitionEENS_15QContactManager5ErrorERK4QMapIiS9_ENS_23QContactAbstractRequest5StateE @ 375 NONAME + _ZN10QtMobility21QContactManagerEngine28updateDefinitionFetchRequestEPNS_36QContactDetailDefinitionFetchRequestERK4QMapI7QStringNS_24QContactDetailDefinitionEENS_15QContactManager5ErrorERKS3_IiSA_ENS_23QContactAbstractRequest5StateE @ 376 NONAME + _ZN10QtMobility21QContactManagerEngine29updateDefinitionRemoveRequestEPNS_37QContactDetailDefinitionRemoveRequestENS_15QContactManager5ErrorERK4QMapIiS4_ENS_23QContactAbstractRequest5StateE @ 377 NONAME + _ZN10QtMobility21QContactManagerEngine29updateRelationshipSaveRequestEPNS_31QContactRelationshipSaveRequestERK5QListINS_20QContactRelationshipEENS_15QContactManager5ErrorERK4QMapIiS9_ENS_23QContactAbstractRequest5StateE @ 378 NONAME + _ZN10QtMobility21QContactManagerEngine30updateRelationshipFetchRequestEPNS_32QContactRelationshipFetchRequestERK5QListINS_20QContactRelationshipEENS_15QContactManager5ErrorENS_23QContactAbstractRequest5StateE @ 379 NONAME + _ZN10QtMobility21QContactManagerEngine31updateRelationshipRemoveRequestEPNS_33QContactRelationshipRemoveRequestENS_15QContactManager5ErrorERK4QMapIiS4_ENS_23QContactAbstractRequest5StateE @ 380 NONAME + _ZN10QtMobility21QContactManagerEngine32updateContactLocalIdFetchRequestEPNS_27QContactLocalIdFetchRequestERK5QListIjENS_15QContactManager5ErrorENS_23QContactAbstractRequest5StateE @ 381 NONAME + _ZN10QtMobility21QContactManagerEngine9addSortedEP5QListINS_8QContactEERKS2_RKS1_INS_17QContactSortOrderEE @ 382 NONAME + _ZN10QtMobility21QContactOnlineAccount10SubTypeSipE @ 383 NONAME DATA 4 + _ZN10QtMobility21QContactOnlineAccount11SubTypeImppE @ 384 NONAME DATA 5 + _ZN10QtMobility21QContactOnlineAccount13FieldSubTypesE @ 385 NONAME DATA 9 + _ZN10QtMobility21QContactOnlineAccount14DefinitionNameE @ 386 NONAME DATA 14 + _ZN10QtMobility21QContactOnlineAccount14SubTypeSipVoipE @ 387 NONAME DATA 8 + _ZN10QtMobility21QContactOnlineAccount15FieldAccountUriE @ 388 NONAME DATA 11 + _ZN10QtMobility21QContactOnlineAccount17FieldCapabilitiesE @ 389 NONAME DATA 13 + _ZN10QtMobility21QContactOnlineAccount17SubTypeVideoShareE @ 390 NONAME DATA 11 + _ZN10QtMobility21QContactOnlineAccount20FieldServiceProviderE @ 391 NONAME DATA 16 + _ZN10QtMobility21QContactRemoveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 392 NONAME + _ZN10QtMobility21QContactRemoveRequest11qt_metacastEPKc @ 393 NONAME + _ZN10QtMobility21QContactRemoveRequest13setContactIdsERK5QListIjE @ 394 NONAME + _ZN10QtMobility21QContactRemoveRequest16staticMetaObjectE @ 395 NONAME DATA 16 + _ZN10QtMobility21QContactRemoveRequest19getStaticMetaObjectEv @ 396 NONAME + _ZN10QtMobility21QContactRemoveRequestC1Ev @ 397 NONAME + _ZN10QtMobility21QContactRemoveRequestC2Ev @ 398 NONAME + _ZN10QtMobility21QContactRemoveRequestD0Ev @ 399 NONAME + _ZN10QtMobility21QContactRemoveRequestD1Ev @ 400 NONAME + _ZN10QtMobility21QContactRemoveRequestD2Ev @ 401 NONAME + _ZN10QtMobility22QContactGlobalPresence13FieldNicknameE @ 402 NONAME DATA 9 + _ZN10QtMobility22QContactGlobalPresence14DefinitionNameE @ 403 NONAME DATA 15 + _ZN10QtMobility22QContactGlobalPresence14FieldTimestampE @ 404 NONAME DATA 10 + _ZN10QtMobility22QContactGlobalPresence18FieldCustomMessageE @ 405 NONAME DATA 14 + _ZN10QtMobility22QContactGlobalPresence18FieldPresenceStateE @ 406 NONAME DATA 14 + _ZN10QtMobility22QContactGlobalPresence22FieldPresenceStateTextE @ 407 NONAME DATA 18 + _ZN10QtMobility22QContactGlobalPresence26FieldPresenceStateImageUrlE @ 408 NONAME DATA 22 + _ZN10QtMobility23QContactAbstractRequest10setManagerEPNS_15QContactManagerE @ 409 NONAME + _ZN10QtMobility23QContactAbstractRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 410 NONAME + _ZN10QtMobility23QContactAbstractRequest11qt_metacastEPKc @ 411 NONAME + _ZN10QtMobility23QContactAbstractRequest12stateChangedENS0_5StateE @ 412 NONAME + _ZN10QtMobility23QContactAbstractRequest15waitForFinishedEi @ 413 NONAME + _ZN10QtMobility23QContactAbstractRequest16resultsAvailableEv @ 414 NONAME + _ZN10QtMobility23QContactAbstractRequest16staticMetaObjectE @ 415 NONAME DATA 16 + _ZN10QtMobility23QContactAbstractRequest19getStaticMetaObjectEv @ 416 NONAME + _ZN10QtMobility23QContactAbstractRequest5startEv @ 417 NONAME + _ZN10QtMobility23QContactAbstractRequest6cancelEv @ 418 NONAME + _ZN10QtMobility23QContactAbstractRequestC1EPNS_30QContactAbstractRequestPrivateE @ 419 NONAME + _ZN10QtMobility23QContactAbstractRequestC2EPNS_30QContactAbstractRequestPrivateE @ 420 NONAME + _ZN10QtMobility23QContactAbstractRequestD0Ev @ 421 NONAME + _ZN10QtMobility23QContactAbstractRequestD1Ev @ 422 NONAME + _ZN10QtMobility23QContactAbstractRequestD2Ev @ 423 NONAME + _ZN10QtMobility23QContactChangeLogFilter12setEventTypeENS0_9EventTypeE @ 424 NONAME + _ZN10QtMobility23QContactChangeLogFilter8setSinceERK9QDateTime @ 425 NONAME + _ZN10QtMobility23QContactChangeLogFilterC1ENS0_9EventTypeE @ 426 NONAME + _ZN10QtMobility23QContactChangeLogFilterC1ERKNS_14QContactFilterE @ 427 NONAME + _ZN10QtMobility23QContactChangeLogFilterC2ENS0_9EventTypeE @ 428 NONAME + _ZN10QtMobility23QContactChangeLogFilterC2ERKNS_14QContactFilterE @ 429 NONAME + _ZN10QtMobility24QContactActionDescriptor13setActionNameERK7QString @ 430 NONAME + _ZN10QtMobility24QContactActionDescriptor13setVendorNameERK7QString @ 431 NONAME + _ZN10QtMobility24QContactActionDescriptor24setImplementationVersionEi @ 432 NONAME + _ZN10QtMobility24QContactActionDescriptorC1ERK7QStringS3_i @ 433 NONAME + _ZN10QtMobility24QContactActionDescriptorC1ERKS0_ @ 434 NONAME + _ZN10QtMobility24QContactActionDescriptorC2ERK7QStringS3_i @ 435 NONAME + _ZN10QtMobility24QContactActionDescriptorC2ERKS0_ @ 436 NONAME + _ZN10QtMobility24QContactActionDescriptorD1Ev @ 437 NONAME + _ZN10QtMobility24QContactActionDescriptorD2Ev @ 438 NONAME + _ZN10QtMobility24QContactActionDescriptoraSERKS0_ @ 439 NONAME + _ZN10QtMobility24QContactDetailDefinition11insertFieldERK7QStringRKNS_29QContactDetailFieldDefinitionE @ 440 NONAME + _ZN10QtMobility24QContactDetailDefinition11removeFieldERK7QString @ 441 NONAME + _ZN10QtMobility24QContactDetailDefinition7setNameERK7QString @ 442 NONAME + _ZN10QtMobility24QContactDetailDefinition9setFieldsERK4QMapI7QStringNS_29QContactDetailFieldDefinitionEE @ 443 NONAME + _ZN10QtMobility24QContactDetailDefinition9setUniqueEb @ 444 NONAME + _ZN10QtMobility24QContactDetailDefinitionC1ERKS0_ @ 445 NONAME + _ZN10QtMobility24QContactDetailDefinitionC1Ev @ 446 NONAME + _ZN10QtMobility24QContactDetailDefinitionC2ERKS0_ @ 447 NONAME + _ZN10QtMobility24QContactDetailDefinitionC2Ev @ 448 NONAME + _ZN10QtMobility24QContactDetailDefinitionD1Ev @ 449 NONAME + _ZN10QtMobility24QContactDetailDefinitionD2Ev @ 450 NONAME + _ZN10QtMobility24QContactDetailDefinitionaSERKS0_ @ 451 NONAME + _ZN10QtMobility25QContactDetailRangeFilter13setMatchFlagsE6QFlagsINS_14QContactFilter9MatchFlagEE @ 452 NONAME + _ZN10QtMobility25QContactDetailRangeFilter23setDetailDefinitionNameERK7QStringS3_ @ 453 NONAME + _ZN10QtMobility25QContactDetailRangeFilter8setRangeERK8QVariantS3_6QFlagsINS0_9RangeFlagEE @ 454 NONAME + _ZN10QtMobility25QContactDetailRangeFilterC1ERKNS_14QContactFilterE @ 455 NONAME + _ZN10QtMobility25QContactDetailRangeFilterC1Ev @ 456 NONAME + _ZN10QtMobility25QContactDetailRangeFilterC2ERKNS_14QContactFilterE @ 457 NONAME + _ZN10QtMobility25QContactDetailRangeFilterC2Ev @ 458 NONAME + _ZN10QtMobility26QContactIntersectionFilter10setFiltersERK5QListINS_14QContactFilterEE @ 459 NONAME + _ZN10QtMobility26QContactIntersectionFilter6appendERKNS_14QContactFilterE @ 460 NONAME + _ZN10QtMobility26QContactIntersectionFilter6removeERKNS_14QContactFilterE @ 461 NONAME + _ZN10QtMobility26QContactIntersectionFilter7prependERKNS_14QContactFilterE @ 462 NONAME + _ZN10QtMobility26QContactIntersectionFilterC1ERKNS_14QContactFilterE @ 463 NONAME + _ZN10QtMobility26QContactIntersectionFilterC1Ev @ 464 NONAME + _ZN10QtMobility26QContactIntersectionFilterC2ERKNS_14QContactFilterE @ 465 NONAME + _ZN10QtMobility26QContactIntersectionFilterC2Ev @ 466 NONAME + _ZN10QtMobility26QContactIntersectionFilterlsERKNS_14QContactFilterE @ 467 NONAME + _ZN10QtMobility26QContactRelationshipFilter19setRelatedContactIdERKNS_10QContactIdE @ 468 NONAME + _ZN10QtMobility26QContactRelationshipFilter19setRelationshipTypeERK7QString @ 469 NONAME + _ZN10QtMobility26QContactRelationshipFilter21setRelatedContactRoleENS_20QContactRelationship4RoleE @ 470 NONAME + _ZN10QtMobility26QContactRelationshipFilterC1ERKNS_14QContactFilterE @ 471 NONAME + _ZN10QtMobility26QContactRelationshipFilterC1Ev @ 472 NONAME + _ZN10QtMobility26QContactRelationshipFilterC2ERKNS_14QContactFilterE @ 473 NONAME + _ZN10QtMobility26QContactRelationshipFilterC2Ev @ 474 NONAME + _ZN10QtMobility27QContactLocalIdFetchRequest10setSortingERK5QListINS_17QContactSortOrderEE @ 475 NONAME + _ZN10QtMobility27QContactLocalIdFetchRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 476 NONAME + _ZN10QtMobility27QContactLocalIdFetchRequest11qt_metacastEPKc @ 477 NONAME + _ZN10QtMobility27QContactLocalIdFetchRequest16staticMetaObjectE @ 478 NONAME DATA 16 + _ZN10QtMobility27QContactLocalIdFetchRequest19getStaticMetaObjectEv @ 479 NONAME + _ZN10QtMobility27QContactLocalIdFetchRequest9setFilterERKNS_14QContactFilterE @ 480 NONAME + _ZN10QtMobility27QContactLocalIdFetchRequestC1Ev @ 481 NONAME + _ZN10QtMobility27QContactLocalIdFetchRequestC2Ev @ 482 NONAME + _ZN10QtMobility27QContactLocalIdFetchRequestD0Ev @ 483 NONAME + _ZN10QtMobility27QContactLocalIdFetchRequestD1Ev @ 484 NONAME + _ZN10QtMobility27QContactLocalIdFetchRequestD2Ev @ 485 NONAME + _ZN10QtMobility28QContactManagerEngineFactoryD0Ev @ 486 NONAME + _ZN10QtMobility28QContactManagerEngineFactoryD1Ev @ 487 NONAME + _ZN10QtMobility28QContactManagerEngineFactoryD2Ev @ 488 NONAME + _ZN10QtMobility29QContactDetailFieldDefinition11setDataTypeEN8QVariant4TypeE @ 489 NONAME + _ZN10QtMobility29QContactDetailFieldDefinition18setAllowableValuesE5QListI8QVariantE @ 490 NONAME + _ZN10QtMobility29QContactDetailFieldDefinitionC1ERKS0_ @ 491 NONAME + _ZN10QtMobility29QContactDetailFieldDefinitionC1Ev @ 492 NONAME + _ZN10QtMobility29QContactDetailFieldDefinitionC2ERKS0_ @ 493 NONAME + _ZN10QtMobility29QContactDetailFieldDefinitionC2Ev @ 494 NONAME + _ZN10QtMobility29QContactDetailFieldDefinitionD1Ev @ 495 NONAME + _ZN10QtMobility29QContactDetailFieldDefinitionD2Ev @ 496 NONAME + _ZN10QtMobility29QContactDetailFieldDefinitionaSERKS0_ @ 497 NONAME + _ZN10QtMobility31QContactRelationshipSaveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 498 NONAME + _ZN10QtMobility31QContactRelationshipSaveRequest11qt_metacastEPKc @ 499 NONAME + _ZN10QtMobility31QContactRelationshipSaveRequest16setRelationshipsERK5QListINS_20QContactRelationshipEE @ 500 NONAME + _ZN10QtMobility31QContactRelationshipSaveRequest16staticMetaObjectE @ 501 NONAME DATA 16 + _ZN10QtMobility31QContactRelationshipSaveRequest19getStaticMetaObjectEv @ 502 NONAME + _ZN10QtMobility31QContactRelationshipSaveRequestC1Ev @ 503 NONAME + _ZN10QtMobility31QContactRelationshipSaveRequestC2Ev @ 504 NONAME + _ZN10QtMobility31QContactRelationshipSaveRequestD0Ev @ 505 NONAME + _ZN10QtMobility31QContactRelationshipSaveRequestD1Ev @ 506 NONAME + _ZN10QtMobility31QContactRelationshipSaveRequestD2Ev @ 507 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 508 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequest11qt_metacastEPKc @ 509 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequest16staticMetaObjectE @ 510 NONAME DATA 16 + _ZN10QtMobility32QContactRelationshipFetchRequest19getStaticMetaObjectEv @ 511 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequest19setRelationshipTypeERK7QString @ 512 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequest8setFirstERKNS_10QContactIdE @ 513 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequest9setSecondERKNS_10QContactIdE @ 514 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequestC1Ev @ 515 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequestC2Ev @ 516 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequestD0Ev @ 517 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequestD1Ev @ 518 NONAME + _ZN10QtMobility32QContactRelationshipFetchRequestD2Ev @ 519 NONAME + _ZN10QtMobility33QContactRelationshipRemoveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 520 NONAME + _ZN10QtMobility33QContactRelationshipRemoveRequest11qt_metacastEPKc @ 521 NONAME + _ZN10QtMobility33QContactRelationshipRemoveRequest16setRelationshipsERK5QListINS_20QContactRelationshipEE @ 522 NONAME + _ZN10QtMobility33QContactRelationshipRemoveRequest16staticMetaObjectE @ 523 NONAME DATA 16 + _ZN10QtMobility33QContactRelationshipRemoveRequest19getStaticMetaObjectEv @ 524 NONAME + _ZN10QtMobility33QContactRelationshipRemoveRequestC1Ev @ 525 NONAME + _ZN10QtMobility33QContactRelationshipRemoveRequestC2Ev @ 526 NONAME + _ZN10QtMobility33QContactRelationshipRemoveRequestD0Ev @ 527 NONAME + _ZN10QtMobility33QContactRelationshipRemoveRequestD1Ev @ 528 NONAME + _ZN10QtMobility33QContactRelationshipRemoveRequestD2Ev @ 529 NONAME + _ZN10QtMobility35QContactDetailDefinitionSaveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 530 NONAME + _ZN10QtMobility35QContactDetailDefinitionSaveRequest11qt_metacastEPKc @ 531 NONAME + _ZN10QtMobility35QContactDetailDefinitionSaveRequest14setContactTypeERK7QString @ 532 NONAME + _ZN10QtMobility35QContactDetailDefinitionSaveRequest14setDefinitionsERK5QListINS_24QContactDetailDefinitionEE @ 533 NONAME + _ZN10QtMobility35QContactDetailDefinitionSaveRequest16staticMetaObjectE @ 534 NONAME DATA 16 + _ZN10QtMobility35QContactDetailDefinitionSaveRequest19getStaticMetaObjectEv @ 535 NONAME + _ZN10QtMobility35QContactDetailDefinitionSaveRequestC1Ev @ 536 NONAME + _ZN10QtMobility35QContactDetailDefinitionSaveRequestC2Ev @ 537 NONAME + _ZN10QtMobility35QContactDetailDefinitionSaveRequestD0Ev @ 538 NONAME + _ZN10QtMobility35QContactDetailDefinitionSaveRequestD1Ev @ 539 NONAME + _ZN10QtMobility35QContactDetailDefinitionSaveRequestD2Ev @ 540 NONAME + _ZN10QtMobility36QContactDetailDefinitionFetchRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 541 NONAME + _ZN10QtMobility36QContactDetailDefinitionFetchRequest11qt_metacastEPKc @ 542 NONAME + _ZN10QtMobility36QContactDetailDefinitionFetchRequest14setContactTypeERK7QString @ 543 NONAME + _ZN10QtMobility36QContactDetailDefinitionFetchRequest16staticMetaObjectE @ 544 NONAME DATA 16 + _ZN10QtMobility36QContactDetailDefinitionFetchRequest18setDefinitionNamesERK11QStringList @ 545 NONAME + _ZN10QtMobility36QContactDetailDefinitionFetchRequest19getStaticMetaObjectEv @ 546 NONAME + _ZN10QtMobility36QContactDetailDefinitionFetchRequestC1Ev @ 547 NONAME + _ZN10QtMobility36QContactDetailDefinitionFetchRequestC2Ev @ 548 NONAME + _ZN10QtMobility36QContactDetailDefinitionFetchRequestD0Ev @ 549 NONAME + _ZN10QtMobility36QContactDetailDefinitionFetchRequestD1Ev @ 550 NONAME + _ZN10QtMobility36QContactDetailDefinitionFetchRequestD2Ev @ 551 NONAME + _ZN10QtMobility37QContactDetailDefinitionRemoveRequest11qt_metacallEN11QMetaObject4CallEiPPv @ 552 NONAME + _ZN10QtMobility37QContactDetailDefinitionRemoveRequest11qt_metacastEPKc @ 553 NONAME + _ZN10QtMobility37QContactDetailDefinitionRemoveRequest16staticMetaObjectE @ 554 NONAME DATA 16 + _ZN10QtMobility37QContactDetailDefinitionRemoveRequest18setDefinitionNamesERK7QStringRK11QStringList @ 555 NONAME + _ZN10QtMobility37QContactDetailDefinitionRemoveRequest19getStaticMetaObjectEv @ 556 NONAME + _ZN10QtMobility37QContactDetailDefinitionRemoveRequestC1Ev @ 557 NONAME + _ZN10QtMobility37QContactDetailDefinitionRemoveRequestC2Ev @ 558 NONAME + _ZN10QtMobility37QContactDetailDefinitionRemoveRequestD0Ev @ 559 NONAME + _ZN10QtMobility37QContactDetailDefinitionRemoveRequestD1Ev @ 560 NONAME + _ZN10QtMobility37QContactDetailDefinitionRemoveRequestD2Ev @ 561 NONAME + _ZN10QtMobility5qHashERKNS_10QContactIdE @ 562 NONAME + _ZN10QtMobility5qHashERKNS_14QContactDetailE @ 563 NONAME + _ZN10QtMobility5qHashERKNS_20QContactRelationshipE @ 564 NONAME + _ZN10QtMobility5qHashERKNS_24QContactActionDescriptorE @ 565 NONAME + _ZN10QtMobility5qHashERKNS_8QContactE @ 566 NONAME + _ZN10QtMobility8QContact10saveDetailEPNS_14QContactDetailE @ 567 NONAME + _ZN10QtMobility8QContact12clearDetailsEv @ 568 NONAME + _ZN10QtMobility8QContact12removeDetailEPNS_14QContactDetailE @ 569 NONAME + _ZN10QtMobility8QContact18setPreferredDetailERK7QStringRKNS_14QContactDetailE @ 570 NONAME + _ZN10QtMobility8QContact5setIdERKNS_10QContactIdE @ 571 NONAME + _ZN10QtMobility8QContact7setTypeERK7QString @ 572 NONAME + _ZN10QtMobility8QContact7setTypeERKNS_12QContactTypeE @ 573 NONAME + _ZN10QtMobility8QContactC1ERKS0_ @ 574 NONAME + _ZN10QtMobility8QContactC1Ev @ 575 NONAME + _ZN10QtMobility8QContactC2ERKS0_ @ 576 NONAME + _ZN10QtMobility8QContactC2Ev @ 577 NONAME + _ZN10QtMobility8QContactD1Ev @ 578 NONAME + _ZN10QtMobility8QContactD2Ev @ 579 NONAME + _ZN10QtMobility8QContactaSERKS0_ @ 580 NONAME + _ZN10QtMobilityanERKNS_14QContactFilterES2_ @ 581 NONAME + _ZN10QtMobilitylsE6QDebugRKNS_10QContactIdE @ 582 NONAME + _ZN10QtMobilitylsE6QDebugRKNS_14QContactDetailE @ 583 NONAME + _ZN10QtMobilitylsE6QDebugRKNS_20QContactRelationshipE @ 584 NONAME + _ZN10QtMobilitylsE6QDebugRKNS_8QContactE @ 585 NONAME + _ZN10QtMobilityorERKNS_14QContactFilterES2_ @ 586 NONAME + _ZNK10QtMobility10QContactId10managerUriEv @ 587 NONAME + _ZNK10QtMobility10QContactId7localIdEv @ 588 NONAME + _ZNK10QtMobility10QContactIdeqERKS0_ @ 589 NONAME + _ZNK10QtMobility10QContactIdltERKS0_ @ 590 NONAME + _ZNK10QtMobility10QContactIdneERKS0_ @ 591 NONAME + _ZNK10QtMobility14QContactAction10metaObjectEv @ 592 NONAME + _ZNK10QtMobility14QContactAction16supportedDetailsERKNS_8QContactE @ 593 NONAME + _ZNK10QtMobility14QContactDetail12variantValueERK7QString @ 594 NONAME + _ZNK10QtMobility14QContactDetail13variantValuesEv @ 595 NONAME + _ZNK10QtMobility14QContactDetail14definitionNameEv @ 596 NONAME + _ZNK10QtMobility14QContactDetail17accessConstraintsEv @ 597 NONAME + _ZNK10QtMobility14QContactDetail3keyEv @ 598 NONAME + _ZNK10QtMobility14QContactDetail5valueERK7QString @ 599 NONAME + _ZNK10QtMobility14QContactDetail7isEmptyEv @ 600 NONAME + _ZNK10QtMobility14QContactDetail8hasValueERK7QString @ 601 NONAME + _ZNK10QtMobility14QContactDetaileqERKS0_ @ 602 NONAME + _ZNK10QtMobility14QContactFilter4typeEv @ 603 NONAME + _ZNK10QtMobility14QContactFiltereqERKS0_ @ 604 NONAME + _ZNK10QtMobility15QContactManager10contactIdsERK5QListINS_17QContactSortOrderEE @ 605 NONAME + _ZNK10QtMobility15QContactManager10contactIdsERKNS_14QContactFilterERK5QListINS_17QContactSortOrderEE @ 606 NONAME + _ZNK10QtMobility15QContactManager10hasFeatureENS0_14ManagerFeatureERK7QString @ 607 NONAME + _ZNK10QtMobility15QContactManager10managerUriEv @ 608 NONAME + _ZNK10QtMobility15QContactManager10metaObjectEv @ 609 NONAME + _ZNK10QtMobility15QContactManager11managerNameEv @ 610 NONAME + _ZNK10QtMobility15QContactManager13relationshipsERK7QStringRKNS_10QContactIdENS_20QContactRelationship4RoleE @ 611 NONAME + _ZNK10QtMobility15QContactManager13relationshipsERKNS_10QContactIdENS_20QContactRelationship4RoleE @ 612 NONAME + _ZNK10QtMobility15QContactManager13selfContactIdEv @ 613 NONAME + _ZNK10QtMobility15QContactManager14managerVersionEv @ 614 NONAME + _ZNK10QtMobility15QContactManager16detailDefinitionERK7QStringS3_ @ 615 NONAME + _ZNK10QtMobility15QContactManager17detailDefinitionsERK7QString @ 616 NONAME + _ZNK10QtMobility15QContactManager17isFilterSupportedERKNS_14QContactFilterE @ 617 NONAME + _ZNK10QtMobility15QContactManager17managerParametersEv @ 618 NONAME + _ZNK10QtMobility15QContactManager18supportedDataTypesEv @ 619 NONAME + _ZNK10QtMobility15QContactManager21supportedContactTypesEv @ 620 NONAME + _ZNK10QtMobility15QContactManager23synthesizedDisplayLabelERKNS_8QContactE @ 621 NONAME + _ZNK10QtMobility15QContactManager27isRelationshipTypeSupportedERK7QStringS3_ @ 622 NONAME + _ZNK10QtMobility15QContactManager5errorEv @ 623 NONAME + _ZNK10QtMobility15QContactManager7contactERKjRKNS_17QContactFetchHintE @ 624 NONAME + _ZNK10QtMobility15QContactManager8contactsERK5QListINS_17QContactSortOrderEERKNS_17QContactFetchHintE @ 625 NONAME + _ZNK10QtMobility15QContactManager8contactsERKNS_14QContactFilterERK5QListINS_17QContactSortOrderEERKNS_17QContactFetchHintE @ 626 NONAME + _ZNK10QtMobility17QContactChangeSet13addedContactsEv @ 627 NONAME + _ZNK10QtMobility17QContactChangeSet15changedContactsEv @ 628 NONAME + _ZNK10QtMobility17QContactChangeSet15removedContactsEv @ 629 NONAME + _ZNK10QtMobility17QContactChangeSet22oldAndNewSelfContactIdEv @ 630 NONAME + _ZNK10QtMobility17QContactChangeSet26addedRelationshipsContactsEv @ 631 NONAME + _ZNK10QtMobility17QContactChangeSet28removedRelationshipsContactsEv @ 632 NONAME + _ZNK10QtMobility17QContactFetchHint17optimizationHintsEv @ 633 NONAME + _ZNK10QtMobility17QContactFetchHint21detailDefinitionsHintEv @ 634 NONAME + _ZNK10QtMobility17QContactFetchHint21relationshipTypesHintEv @ 635 NONAME + _ZNK10QtMobility17QContactSortOrder11blankPolicyEv @ 636 NONAME + _ZNK10QtMobility17QContactSortOrder15caseSensitivityEv @ 637 NONAME + _ZNK10QtMobility17QContactSortOrder15detailFieldNameEv @ 638 NONAME + _ZNK10QtMobility17QContactSortOrder20detailDefinitionNameEv @ 639 NONAME + _ZNK10QtMobility17QContactSortOrder7isValidEv @ 640 NONAME + _ZNK10QtMobility17QContactSortOrder9directionEv @ 641 NONAME + _ZNK10QtMobility17QContactSortOrdereqERKS0_ @ 642 NONAME + _ZNK10QtMobility19QContactSaveRequest10metaObjectEv @ 643 NONAME + _ZNK10QtMobility19QContactSaveRequest8contactsEv @ 644 NONAME + _ZNK10QtMobility19QContactSaveRequest8errorMapEv @ 645 NONAME + _ZNK10QtMobility19QContactUnionFilter7filtersEv @ 646 NONAME + _ZNK10QtMobility20QContactActionFilter10actionNameEv @ 647 NONAME + _ZNK10QtMobility20QContactActionFilter10vendorNameEv @ 648 NONAME + _ZNK10QtMobility20QContactActionFilter21implementationVersionEv @ 649 NONAME + _ZNK10QtMobility20QContactActionFilter5valueEv @ 650 NONAME + _ZNK10QtMobility20QContactDetailFilter10matchFlagsEv @ 651 NONAME + _ZNK10QtMobility20QContactDetailFilter15detailFieldNameEv @ 652 NONAME + _ZNK10QtMobility20QContactDetailFilter20detailDefinitionNameEv @ 653 NONAME + _ZNK10QtMobility20QContactDetailFilter5valueEv @ 654 NONAME + _ZNK10QtMobility20QContactFetchRequest10metaObjectEv @ 655 NONAME + _ZNK10QtMobility20QContactFetchRequest6filterEv @ 656 NONAME + _ZNK10QtMobility20QContactFetchRequest7sortingEv @ 657 NONAME + _ZNK10QtMobility20QContactFetchRequest8contactsEv @ 658 NONAME + _ZNK10QtMobility20QContactFetchRequest9fetchHintEv @ 659 NONAME + _ZNK10QtMobility20QContactRelationship16relationshipTypeEv @ 660 NONAME + _ZNK10QtMobility20QContactRelationship5firstEv @ 661 NONAME + _ZNK10QtMobility20QContactRelationship6secondEv @ 662 NONAME + _ZNK10QtMobility20QContactRelationshipeqERKS0_ @ 663 NONAME + _ZNK10QtMobility21QContactActionFactory10metaObjectEv @ 664 NONAME + _ZNK10QtMobility21QContactLocalIdFilter3idsEv @ 665 NONAME + _ZNK10QtMobility21QContactManagerEngine10contactIdsERKNS_14QContactFilterERK5QListINS_17QContactSortOrderEEPNS_15QContactManager5ErrorE @ 666 NONAME + _ZNK10QtMobility21QContactManagerEngine10hasFeatureENS_15QContactManager14ManagerFeatureERK7QString @ 667 NONAME + _ZNK10QtMobility21QContactManagerEngine10managerUriEv @ 668 NONAME + _ZNK10QtMobility21QContactManagerEngine10metaObjectEv @ 669 NONAME + _ZNK10QtMobility21QContactManagerEngine11managerNameEv @ 670 NONAME + _ZNK10QtMobility21QContactManagerEngine13relationshipsERK7QStringRKNS_10QContactIdENS_20QContactRelationship4RoleEPNS_15QContactManager5ErrorE @ 671 NONAME + _ZNK10QtMobility21QContactManagerEngine13selfContactIdEPNS_15QContactManager5ErrorE @ 672 NONAME + _ZNK10QtMobility21QContactManagerEngine15validateContactERKNS_8QContactEPNS_15QContactManager5ErrorE @ 673 NONAME + _ZNK10QtMobility21QContactManagerEngine16detailDefinitionERK7QStringS3_PNS_15QContactManager5ErrorE @ 674 NONAME + _ZNK10QtMobility21QContactManagerEngine17compatibleContactERKNS_8QContactEPNS_15QContactManager5ErrorE @ 675 NONAME + _ZNK10QtMobility21QContactManagerEngine17detailDefinitionsERK7QStringPNS_15QContactManager5ErrorE @ 676 NONAME + _ZNK10QtMobility21QContactManagerEngine17isFilterSupportedERKNS_14QContactFilterE @ 677 NONAME + _ZNK10QtMobility21QContactManagerEngine17managerParametersEv @ 678 NONAME + _ZNK10QtMobility21QContactManagerEngine18supportedDataTypesEv @ 679 NONAME + _ZNK10QtMobility21QContactManagerEngine18validateDefinitionERKNS_24QContactDetailDefinitionEPNS_15QContactManager5ErrorE @ 680 NONAME + _ZNK10QtMobility21QContactManagerEngine21supportedContactTypesEv @ 681 NONAME + _ZNK10QtMobility21QContactManagerEngine23synthesizedDisplayLabelERKNS_8QContactEPNS_15QContactManager5ErrorE @ 682 NONAME + _ZNK10QtMobility21QContactManagerEngine27isRelationshipTypeSupportedERK7QStringS3_ @ 683 NONAME + _ZNK10QtMobility21QContactManagerEngine7contactERKjRKNS_17QContactFetchHintEPNS_15QContactManager5ErrorE @ 684 NONAME + _ZNK10QtMobility21QContactManagerEngine8contactsERKNS_14QContactFilterERK5QListINS_17QContactSortOrderEERKNS_17QContactFetchHintEPNS_15QContactManager5ErrorE @ 685 NONAME + _ZNK10QtMobility21QContactRemoveRequest10contactIdsEv @ 686 NONAME + _ZNK10QtMobility21QContactRemoveRequest10metaObjectEv @ 687 NONAME + _ZNK10QtMobility21QContactRemoveRequest8errorMapEv @ 688 NONAME + _ZNK10QtMobility23QContactAbstractRequest10isCanceledEv @ 689 NONAME + _ZNK10QtMobility23QContactAbstractRequest10isFinishedEv @ 690 NONAME + _ZNK10QtMobility23QContactAbstractRequest10isInactiveEv @ 691 NONAME + _ZNK10QtMobility23QContactAbstractRequest10metaObjectEv @ 692 NONAME + _ZNK10QtMobility23QContactAbstractRequest4typeEv @ 693 NONAME + _ZNK10QtMobility23QContactAbstractRequest5errorEv @ 694 NONAME + _ZNK10QtMobility23QContactAbstractRequest5stateEv @ 695 NONAME + _ZNK10QtMobility23QContactAbstractRequest7managerEv @ 696 NONAME + _ZNK10QtMobility23QContactAbstractRequest8isActiveEv @ 697 NONAME + _ZNK10QtMobility23QContactChangeLogFilter5sinceEv @ 698 NONAME + _ZNK10QtMobility23QContactChangeLogFilter9eventTypeEv @ 699 NONAME + _ZNK10QtMobility24QContactActionDescriptor10actionNameEv @ 700 NONAME + _ZNK10QtMobility24QContactActionDescriptor10vendorNameEv @ 701 NONAME + _ZNK10QtMobility24QContactActionDescriptor21implementationVersionEv @ 702 NONAME + _ZNK10QtMobility24QContactActionDescriptor7isEmptyEv @ 703 NONAME + _ZNK10QtMobility24QContactActionDescriptoreqERKS0_ @ 704 NONAME + _ZNK10QtMobility24QContactActionDescriptorltERKS0_ @ 705 NONAME + _ZNK10QtMobility24QContactActionDescriptorneERKS0_ @ 706 NONAME + _ZNK10QtMobility24QContactDetailDefinition4nameEv @ 707 NONAME + _ZNK10QtMobility24QContactDetailDefinition6fieldsEv @ 708 NONAME + _ZNK10QtMobility24QContactDetailDefinition7isEmptyEv @ 709 NONAME + _ZNK10QtMobility24QContactDetailDefinition8isUniqueEv @ 710 NONAME + _ZNK10QtMobility24QContactDetailDefinitioneqERKS0_ @ 711 NONAME + _ZNK10QtMobility25QContactDetailRangeFilter10matchFlagsEv @ 712 NONAME + _ZNK10QtMobility25QContactDetailRangeFilter10rangeFlagsEv @ 713 NONAME + _ZNK10QtMobility25QContactDetailRangeFilter15detailFieldNameEv @ 714 NONAME + _ZNK10QtMobility25QContactDetailRangeFilter20detailDefinitionNameEv @ 715 NONAME + _ZNK10QtMobility25QContactDetailRangeFilter8maxValueEv @ 716 NONAME + _ZNK10QtMobility25QContactDetailRangeFilter8minValueEv @ 717 NONAME + _ZNK10QtMobility26QContactIntersectionFilter7filtersEv @ 718 NONAME + _ZNK10QtMobility26QContactRelationshipFilter16relatedContactIdEv @ 719 NONAME + _ZNK10QtMobility26QContactRelationshipFilter16relationshipTypeEv @ 720 NONAME + _ZNK10QtMobility26QContactRelationshipFilter18relatedContactRoleEv @ 721 NONAME + _ZNK10QtMobility27QContactLocalIdFetchRequest10metaObjectEv @ 722 NONAME + _ZNK10QtMobility27QContactLocalIdFetchRequest3idsEv @ 723 NONAME + _ZNK10QtMobility27QContactLocalIdFetchRequest6filterEv @ 724 NONAME + _ZNK10QtMobility27QContactLocalIdFetchRequest7sortingEv @ 725 NONAME + _ZNK10QtMobility28QContactManagerEngineFactory31supportedImplementationVersionsEv @ 726 NONAME + _ZNK10QtMobility29QContactDetailFieldDefinition15allowableValuesEv @ 727 NONAME + _ZNK10QtMobility29QContactDetailFieldDefinition8dataTypeEv @ 728 NONAME + _ZNK10QtMobility29QContactDetailFieldDefinitioneqERKS0_ @ 729 NONAME + _ZNK10QtMobility29QContactDetailFieldDefinitionneERKS0_ @ 730 NONAME + _ZNK10QtMobility31QContactRelationshipSaveRequest10metaObjectEv @ 731 NONAME + _ZNK10QtMobility31QContactRelationshipSaveRequest13relationshipsEv @ 732 NONAME + _ZNK10QtMobility31QContactRelationshipSaveRequest8errorMapEv @ 733 NONAME + _ZNK10QtMobility32QContactRelationshipFetchRequest10metaObjectEv @ 734 NONAME + _ZNK10QtMobility32QContactRelationshipFetchRequest13relationshipsEv @ 735 NONAME + _ZNK10QtMobility32QContactRelationshipFetchRequest16relationshipTypeEv @ 736 NONAME + _ZNK10QtMobility32QContactRelationshipFetchRequest5firstEv @ 737 NONAME + _ZNK10QtMobility32QContactRelationshipFetchRequest6secondEv @ 738 NONAME + _ZNK10QtMobility33QContactRelationshipRemoveRequest10metaObjectEv @ 739 NONAME + _ZNK10QtMobility33QContactRelationshipRemoveRequest13relationshipsEv @ 740 NONAME + _ZNK10QtMobility33QContactRelationshipRemoveRequest8errorMapEv @ 741 NONAME + _ZNK10QtMobility35QContactDetailDefinitionSaveRequest10metaObjectEv @ 742 NONAME + _ZNK10QtMobility35QContactDetailDefinitionSaveRequest11contactTypeEv @ 743 NONAME + _ZNK10QtMobility35QContactDetailDefinitionSaveRequest11definitionsEv @ 744 NONAME + _ZNK10QtMobility35QContactDetailDefinitionSaveRequest8errorMapEv @ 745 NONAME + _ZNK10QtMobility36QContactDetailDefinitionFetchRequest10metaObjectEv @ 746 NONAME + _ZNK10QtMobility36QContactDetailDefinitionFetchRequest11contactTypeEv @ 747 NONAME + _ZNK10QtMobility36QContactDetailDefinitionFetchRequest11definitionsEv @ 748 NONAME + _ZNK10QtMobility36QContactDetailDefinitionFetchRequest15definitionNamesEv @ 749 NONAME + _ZNK10QtMobility36QContactDetailDefinitionFetchRequest8errorMapEv @ 750 NONAME + _ZNK10QtMobility37QContactDetailDefinitionRemoveRequest10metaObjectEv @ 751 NONAME + _ZNK10QtMobility37QContactDetailDefinitionRemoveRequest11contactTypeEv @ 752 NONAME + _ZNK10QtMobility37QContactDetailDefinitionRemoveRequest15definitionNamesEv @ 753 NONAME + _ZNK10QtMobility37QContactDetailDefinitionRemoveRequest8errorMapEv @ 754 NONAME + _ZNK10QtMobility8QContact12displayLabelEv @ 755 NONAME + _ZNK10QtMobility8QContact13relationshipsERK7QString @ 756 NONAME + _ZNK10QtMobility8QContact15preferredDetailERK7QString @ 757 NONAME + _ZNK10QtMobility8QContact15relatedContactsERK7QStringNS_20QContactRelationship4RoleE @ 758 NONAME + _ZNK10QtMobility8QContact16availableActionsERK7QStringi @ 759 NONAME + _ZNK10QtMobility8QContact16detailWithActionERK7QString @ 760 NONAME + _ZNK10QtMobility8QContact16preferredDetailsEv @ 761 NONAME + _ZNK10QtMobility8QContact17detailsWithActionERK7QString @ 762 NONAME + _ZNK10QtMobility8QContact17isPreferredDetailERK7QStringRKNS_14QContactDetailE @ 763 NONAME + _ZNK10QtMobility8QContact2idEv @ 764 NONAME + _ZNK10QtMobility8QContact4typeEv @ 765 NONAME + _ZNK10QtMobility8QContact6detailERK7QString @ 766 NONAME + _ZNK10QtMobility8QContact7detailsERK7QString @ 767 NONAME + _ZNK10QtMobility8QContact7detailsERK7QStringS3_S3_ @ 768 NONAME + _ZNK10QtMobility8QContact7isEmptyEv @ 769 NONAME + _ZNK10QtMobility8QContact7localIdEv @ 770 NONAME + _ZNK10QtMobility8QContacteqERKS0_ @ 771 NONAME + _ZTIN10QtMobility12QContactNameE @ 772 NONAME ; ## + _ZTIN10QtMobility12QContactTypeE @ 773 NONAME ; ## + _ZTIN10QtMobility14QContactActionE @ 774 NONAME ; ## + _ZTIN10QtMobility14QContactDetailE @ 775 NONAME ; ## + _ZTIN10QtMobility14QContactFilterE @ 776 NONAME ; ## + _ZTIN10QtMobility15QContactManagerE @ 777 NONAME ; ## + _ZTIN10QtMobility17QContactTimestampE @ 778 NONAME ; ## + _ZTIN10QtMobility19QContactSaveRequestE @ 779 NONAME ; ## + _ZTIN10QtMobility19QContactUnionFilterE @ 780 NONAME ; ## + _ZTIN10QtMobility20QContactActionFilterE @ 781 NONAME ; ## + _ZTIN10QtMobility20QContactDetailFilterE @ 782 NONAME ; ## + _ZTIN10QtMobility20QContactDisplayLabelE @ 783 NONAME ; ## + _ZTIN10QtMobility20QContactFetchRequestE @ 784 NONAME ; ## + _ZTIN10QtMobility20QContactOrganizationE @ 785 NONAME ; ## + _ZTIN10QtMobility21QContactActionFactoryE @ 786 NONAME ; ## + _ZTIN10QtMobility21QContactInvalidFilterE @ 787 NONAME ; ## + _ZTIN10QtMobility21QContactLocalIdFilterE @ 788 NONAME ; ## + _ZTIN10QtMobility21QContactManagerEngineE @ 789 NONAME ; ## + _ZTIN10QtMobility21QContactRemoveRequestE @ 790 NONAME ; ## + _ZTIN10QtMobility23QContactAbstractRequestE @ 791 NONAME ; ## + _ZTIN10QtMobility23QContactChangeLogFilterE @ 792 NONAME ; ## + _ZTIN10QtMobility25QContactDetailRangeFilterE @ 793 NONAME ; ## + _ZTIN10QtMobility26QContactIntersectionFilterE @ 794 NONAME ; ## + _ZTIN10QtMobility26QContactRelationshipFilterE @ 795 NONAME ; ## + _ZTIN10QtMobility27QContactLocalIdFetchRequestE @ 796 NONAME ; ## + _ZTIN10QtMobility28QContactManagerEngineFactoryE @ 797 NONAME ; ## + _ZTIN10QtMobility31QContactRelationshipSaveRequestE @ 798 NONAME ; ## + _ZTIN10QtMobility32QContactRelationshipFetchRequestE @ 799 NONAME ; ## + _ZTIN10QtMobility33QContactRelationshipRemoveRequestE @ 800 NONAME ; ## + _ZTIN10QtMobility35QContactDetailDefinitionSaveRequestE @ 801 NONAME ; ## + _ZTIN10QtMobility36QContactDetailDefinitionFetchRequestE @ 802 NONAME ; ## + _ZTIN10QtMobility37QContactDetailDefinitionRemoveRequestE @ 803 NONAME ; ## + _ZTVN10QtMobility12QContactNameE @ 804 NONAME ; ## + _ZTVN10QtMobility12QContactTypeE @ 805 NONAME ; ## + _ZTVN10QtMobility14QContactActionE @ 806 NONAME ; ## + _ZTVN10QtMobility14QContactDetailE @ 807 NONAME ; ## + _ZTVN10QtMobility14QContactFilterE @ 808 NONAME ; ## + _ZTVN10QtMobility15QContactManagerE @ 809 NONAME ; ## + _ZTVN10QtMobility17QContactTimestampE @ 810 NONAME ; ## + _ZTVN10QtMobility19QContactSaveRequestE @ 811 NONAME ; ## + _ZTVN10QtMobility19QContactUnionFilterE @ 812 NONAME ; ## + _ZTVN10QtMobility20QContactActionFilterE @ 813 NONAME ; ## + _ZTVN10QtMobility20QContactDetailFilterE @ 814 NONAME ; ## + _ZTVN10QtMobility20QContactDisplayLabelE @ 815 NONAME ; ## + _ZTVN10QtMobility20QContactFetchRequestE @ 816 NONAME ; ## + _ZTVN10QtMobility20QContactOrganizationE @ 817 NONAME ; ## + _ZTVN10QtMobility21QContactActionFactoryE @ 818 NONAME ; ## + _ZTVN10QtMobility21QContactInvalidFilterE @ 819 NONAME ; ## + _ZTVN10QtMobility21QContactLocalIdFilterE @ 820 NONAME ; ## + _ZTVN10QtMobility21QContactManagerEngineE @ 821 NONAME ; ## + _ZTVN10QtMobility21QContactRemoveRequestE @ 822 NONAME ; ## + _ZTVN10QtMobility23QContactAbstractRequestE @ 823 NONAME ; ## + _ZTVN10QtMobility23QContactChangeLogFilterE @ 824 NONAME ; ## + _ZTVN10QtMobility25QContactDetailRangeFilterE @ 825 NONAME ; ## + _ZTVN10QtMobility26QContactIntersectionFilterE @ 826 NONAME ; ## + _ZTVN10QtMobility26QContactRelationshipFilterE @ 827 NONAME ; ## + _ZTVN10QtMobility27QContactLocalIdFetchRequestE @ 828 NONAME ; ## + _ZTVN10QtMobility28QContactManagerEngineFactoryE @ 829 NONAME ; ## + _ZTVN10QtMobility31QContactRelationshipSaveRequestE @ 830 NONAME ; ## + _ZTVN10QtMobility32QContactRelationshipFetchRequestE @ 831 NONAME ; ## + _ZTVN10QtMobility33QContactRelationshipRemoveRequestE @ 832 NONAME ; ## + _ZTVN10QtMobility35QContactDetailDefinitionSaveRequestE @ 833 NONAME ; ## + _ZTVN10QtMobility36QContactDetailDefinitionFetchRequestE @ 834 NONAME ; ## + _ZTVN10QtMobility37QContactDetailDefinitionRemoveRequestE @ 835 NONAME ; ## diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/eabi/QtLocationu.def --- a/qtmobility/src/s60installs/eabi/QtLocationu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/eabi/QtLocationu.def Mon May 03 13:18:40 2010 +0300 @@ -26,8 +26,8 @@ _ZN10QtMobility15QGeoAreaMonitorD0Ev @ 25 NONAME _ZN10QtMobility15QGeoAreaMonitorD1Ev @ 26 NONAME _ZN10QtMobility15QGeoAreaMonitorD2Ev @ 27 NONAME - _ZN10QtMobility16QGeoPositionInfo11setDateTimeERK9QDateTime @ 28 NONAME - _ZN10QtMobility16QGeoPositionInfo12setAttributeENS0_9AttributeEf @ 29 NONAME + _ZN10QtMobility16QGeoPositionInfo12setAttributeENS0_9AttributeEf @ 28 NONAME + _ZN10QtMobility16QGeoPositionInfo12setTimestampERK9QDateTime @ 29 NONAME _ZN10QtMobility16QGeoPositionInfo13setCoordinateERKNS_14QGeoCoordinateE @ 30 NONAME _ZN10QtMobility16QGeoPositionInfo15removeAttributeENS0_9AttributeE @ 31 NONAME _ZN10QtMobility16QGeoPositionInfoC1ERKNS_14QGeoCoordinateERK9QDateTime @ 32 NONAME @@ -92,47 +92,49 @@ _ZN10QtMobilitylsE6QDebugRKNS_17QGeoSatelliteInfoE @ 91 NONAME _ZN10QtMobilitylsER11QDataStreamRKNS_14QGeoCoordinateE @ 92 NONAME _ZN10QtMobilitylsER11QDataStreamRKNS_16QGeoPositionInfoE @ 93 NONAME - _ZN10QtMobilityrsER11QDataStreamRNS_14QGeoCoordinateE @ 94 NONAME - _ZN10QtMobilityrsER11QDataStreamRNS_16QGeoPositionInfoE @ 95 NONAME - _ZNK10QtMobility14QGeoCoordinate10distanceToERKS0_ @ 96 NONAME - _ZNK10QtMobility14QGeoCoordinate4typeEv @ 97 NONAME - _ZNK10QtMobility14QGeoCoordinate7isValidEv @ 98 NONAME - _ZNK10QtMobility14QGeoCoordinate8altitudeEv @ 99 NONAME - _ZNK10QtMobility14QGeoCoordinate8latitudeEv @ 100 NONAME - _ZNK10QtMobility14QGeoCoordinate8toStringENS0_16CoordinateFormatE @ 101 NONAME - _ZNK10QtMobility14QGeoCoordinate9azimuthToERKS0_ @ 102 NONAME - _ZNK10QtMobility14QGeoCoordinate9longitudeEv @ 103 NONAME - _ZNK10QtMobility14QGeoCoordinateeqERKS0_ @ 104 NONAME - _ZNK10QtMobility15QGeoAreaMonitor10metaObjectEv @ 105 NONAME - _ZNK10QtMobility15QGeoAreaMonitor6centerEv @ 106 NONAME - _ZNK10QtMobility15QGeoAreaMonitor6radiusEv @ 107 NONAME - _ZNK10QtMobility16QGeoPositionInfo10coordinateEv @ 108 NONAME - _ZNK10QtMobility16QGeoPositionInfo12hasAttributeENS0_9AttributeE @ 109 NONAME - _ZNK10QtMobility16QGeoPositionInfo7isValidEv @ 110 NONAME - _ZNK10QtMobility16QGeoPositionInfo8dateTimeEv @ 111 NONAME - _ZNK10QtMobility16QGeoPositionInfo9attributeENS0_9AttributeE @ 112 NONAME - _ZNK10QtMobility16QGeoPositionInfoeqERKS0_ @ 113 NONAME - _ZNK10QtMobility17QGeoSatelliteInfo12hasAttributeENS0_9AttributeE @ 114 NONAME - _ZNK10QtMobility17QGeoSatelliteInfo14signalStrengthEv @ 115 NONAME - _ZNK10QtMobility17QGeoSatelliteInfo9attributeENS0_9AttributeE @ 116 NONAME - _ZNK10QtMobility17QGeoSatelliteInfo9prnNumberEv @ 117 NONAME - _ZNK10QtMobility17QGeoSatelliteInfoeqERKS0_ @ 118 NONAME - _ZNK10QtMobility22QGeoPositionInfoSource10metaObjectEv @ 119 NONAME - _ZNK10QtMobility22QGeoPositionInfoSource14updateIntervalEv @ 120 NONAME - _ZNK10QtMobility22QGeoPositionInfoSource27preferredPositioningMethodsEv @ 121 NONAME - _ZNK10QtMobility23QGeoSatelliteInfoSource10metaObjectEv @ 122 NONAME - _ZNK10QtMobility23QNmeaPositionInfoSource10metaObjectEv @ 123 NONAME - _ZNK10QtMobility23QNmeaPositionInfoSource10updateModeEv @ 124 NONAME - _ZNK10QtMobility23QNmeaPositionInfoSource17lastKnownPositionEb @ 125 NONAME - _ZNK10QtMobility23QNmeaPositionInfoSource21minimumUpdateIntervalEv @ 126 NONAME - _ZNK10QtMobility23QNmeaPositionInfoSource27supportedPositioningMethodsEv @ 127 NONAME - _ZNK10QtMobility23QNmeaPositionInfoSource6deviceEv @ 128 NONAME - _ZTIN10QtMobility15QGeoAreaMonitorE @ 129 NONAME - _ZTIN10QtMobility22QGeoPositionInfoSourceE @ 130 NONAME - _ZTIN10QtMobility23QGeoSatelliteInfoSourceE @ 131 NONAME - _ZTIN10QtMobility23QNmeaPositionInfoSourceE @ 132 NONAME - _ZTVN10QtMobility15QGeoAreaMonitorE @ 133 NONAME - _ZTVN10QtMobility22QGeoPositionInfoSourceE @ 134 NONAME - _ZTVN10QtMobility23QGeoSatelliteInfoSourceE @ 135 NONAME - _ZTVN10QtMobility23QNmeaPositionInfoSourceE @ 136 NONAME + _ZN10QtMobilitylsER11QDataStreamRKNS_17QGeoSatelliteInfoE @ 94 NONAME + _ZN10QtMobilityrsER11QDataStreamRNS_14QGeoCoordinateE @ 95 NONAME + _ZN10QtMobilityrsER11QDataStreamRNS_16QGeoPositionInfoE @ 96 NONAME + _ZN10QtMobilityrsER11QDataStreamRNS_17QGeoSatelliteInfoE @ 97 NONAME + _ZNK10QtMobility14QGeoCoordinate10distanceToERKS0_ @ 98 NONAME + _ZNK10QtMobility14QGeoCoordinate4typeEv @ 99 NONAME + _ZNK10QtMobility14QGeoCoordinate7isValidEv @ 100 NONAME + _ZNK10QtMobility14QGeoCoordinate8altitudeEv @ 101 NONAME + _ZNK10QtMobility14QGeoCoordinate8latitudeEv @ 102 NONAME + _ZNK10QtMobility14QGeoCoordinate8toStringENS0_16CoordinateFormatE @ 103 NONAME + _ZNK10QtMobility14QGeoCoordinate9azimuthToERKS0_ @ 104 NONAME + _ZNK10QtMobility14QGeoCoordinate9longitudeEv @ 105 NONAME + _ZNK10QtMobility14QGeoCoordinateeqERKS0_ @ 106 NONAME + _ZNK10QtMobility15QGeoAreaMonitor10metaObjectEv @ 107 NONAME + _ZNK10QtMobility15QGeoAreaMonitor6centerEv @ 108 NONAME + _ZNK10QtMobility15QGeoAreaMonitor6radiusEv @ 109 NONAME + _ZNK10QtMobility16QGeoPositionInfo10coordinateEv @ 110 NONAME + _ZNK10QtMobility16QGeoPositionInfo12hasAttributeENS0_9AttributeE @ 111 NONAME + _ZNK10QtMobility16QGeoPositionInfo7isValidEv @ 112 NONAME + _ZNK10QtMobility16QGeoPositionInfo9attributeENS0_9AttributeE @ 113 NONAME + _ZNK10QtMobility16QGeoPositionInfo9timestampEv @ 114 NONAME + _ZNK10QtMobility16QGeoPositionInfoeqERKS0_ @ 115 NONAME + _ZNK10QtMobility17QGeoSatelliteInfo12hasAttributeENS0_9AttributeE @ 116 NONAME + _ZNK10QtMobility17QGeoSatelliteInfo14signalStrengthEv @ 117 NONAME + _ZNK10QtMobility17QGeoSatelliteInfo9attributeENS0_9AttributeE @ 118 NONAME + _ZNK10QtMobility17QGeoSatelliteInfo9prnNumberEv @ 119 NONAME + _ZNK10QtMobility17QGeoSatelliteInfoeqERKS0_ @ 120 NONAME + _ZNK10QtMobility22QGeoPositionInfoSource10metaObjectEv @ 121 NONAME + _ZNK10QtMobility22QGeoPositionInfoSource14updateIntervalEv @ 122 NONAME + _ZNK10QtMobility22QGeoPositionInfoSource27preferredPositioningMethodsEv @ 123 NONAME + _ZNK10QtMobility23QGeoSatelliteInfoSource10metaObjectEv @ 124 NONAME + _ZNK10QtMobility23QNmeaPositionInfoSource10metaObjectEv @ 125 NONAME + _ZNK10QtMobility23QNmeaPositionInfoSource10updateModeEv @ 126 NONAME + _ZNK10QtMobility23QNmeaPositionInfoSource17lastKnownPositionEb @ 127 NONAME + _ZNK10QtMobility23QNmeaPositionInfoSource21minimumUpdateIntervalEv @ 128 NONAME + _ZNK10QtMobility23QNmeaPositionInfoSource27supportedPositioningMethodsEv @ 129 NONAME + _ZNK10QtMobility23QNmeaPositionInfoSource6deviceEv @ 130 NONAME + _ZTIN10QtMobility15QGeoAreaMonitorE @ 131 NONAME + _ZTIN10QtMobility22QGeoPositionInfoSourceE @ 132 NONAME + _ZTIN10QtMobility23QGeoSatelliteInfoSourceE @ 133 NONAME + _ZTIN10QtMobility23QNmeaPositionInfoSourceE @ 134 NONAME + _ZTVN10QtMobility15QGeoAreaMonitorE @ 135 NONAME + _ZTVN10QtMobility22QGeoPositionInfoSourceE @ 136 NONAME + _ZTVN10QtMobility23QGeoSatelliteInfoSourceE @ 137 NONAME + _ZTVN10QtMobility23QNmeaPositionInfoSourceE @ 138 NONAME diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/eabi/QtMediau.def --- a/qtmobility/src/s60installs/eabi/QtMediau.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/eabi/QtMediau.def Mon May 03 13:18:40 2010 +0300 @@ -100,7 +100,7 @@ _ZN10QtMobility12QVideoWidget17brightnessChangedEi @ 99 NONAME _ZN10QtMobility12QVideoWidget17fullScreenChangedEb @ 100 NONAME _ZN10QtMobility12QVideoWidget17saturationChangedEi @ 101 NONAME - _ZN10QtMobility12QVideoWidget18setAspectRatioModeENS0_15AspectRatioModeE @ 102 NONAME + _ZN10QtMobility12QVideoWidget18setAspectRatioModeEN2Qt15AspectRatioModeE @ 102 NONAME _ZN10QtMobility12QVideoWidget19getStaticMetaObjectEv @ 103 NONAME _ZN10QtMobility12QVideoWidget5eventEP6QEvent @ 104 NONAME _ZN10QtMobility12QVideoWidget6setHueEi @ 105 NONAME @@ -112,988 +112,811 @@ _ZN10QtMobility12QVideoWidgetD0Ev @ 111 NONAME _ZN10QtMobility12QVideoWidgetD1Ev @ 112 NONAME _ZN10QtMobility12QVideoWidgetD2Ev @ 113 NONAME - _ZN10QtMobility13QMediaContentC1ERK4QUrl @ 114 NONAME - _ZN10QtMobility13QMediaContentC1ERK5QListINS_14QMediaResourceEE @ 115 NONAME - _ZN10QtMobility13QMediaContentC1ERKNS_14QMediaResourceE @ 116 NONAME - _ZN10QtMobility13QMediaContentC1ERKS0_ @ 117 NONAME - _ZN10QtMobility13QMediaContentC1Ev @ 118 NONAME - _ZN10QtMobility13QMediaContentC2ERK4QUrl @ 119 NONAME - _ZN10QtMobility13QMediaContentC2ERK5QListINS_14QMediaResourceEE @ 120 NONAME - _ZN10QtMobility13QMediaContentC2ERKNS_14QMediaResourceE @ 121 NONAME - _ZN10QtMobility13QMediaContentC2ERKS0_ @ 122 NONAME - _ZN10QtMobility13QMediaContentC2Ev @ 123 NONAME - _ZN10QtMobility13QMediaContentD1Ev @ 124 NONAME - _ZN10QtMobility13QMediaContentD2Ev @ 125 NONAME - _ZN10QtMobility13QMediaContentaSERKS0_ @ 126 NONAME - _ZN10QtMobility13QMediaControl11qt_metacallEN11QMetaObject4CallEiPPv @ 127 NONAME - _ZN10QtMobility13QMediaControl11qt_metacastEPKc @ 128 NONAME - _ZN10QtMobility13QMediaControl16staticMetaObjectE @ 129 NONAME DATA 16 - _ZN10QtMobility13QMediaControl19getStaticMetaObjectEv @ 130 NONAME - _ZN10QtMobility13QMediaControlC1EP7QObject @ 131 NONAME - _ZN10QtMobility13QMediaControlC1ERNS_20QMediaControlPrivateEP7QObject @ 132 NONAME - _ZN10QtMobility13QMediaControlC2EP7QObject @ 133 NONAME - _ZN10QtMobility13QMediaControlC2ERNS_20QMediaControlPrivateEP7QObject @ 134 NONAME - _ZN10QtMobility13QMediaControlD0Ev @ 135 NONAME - _ZN10QtMobility13QMediaControlD1Ev @ 136 NONAME - _ZN10QtMobility13QMediaControlD2Ev @ 137 NONAME - _ZN10QtMobility13QMediaService11qt_metacallEN11QMetaObject4CallEiPPv @ 138 NONAME - _ZN10QtMobility13QMediaService11qt_metacastEPKc @ 139 NONAME - _ZN10QtMobility13QMediaService16staticMetaObjectE @ 140 NONAME DATA 16 - _ZN10QtMobility13QMediaService19getStaticMetaObjectEv @ 141 NONAME - _ZN10QtMobility13QMediaServiceC2EP7QObject @ 142 NONAME - _ZN10QtMobility13QMediaServiceC2ERNS_20QMediaServicePrivateEP7QObject @ 143 NONAME - _ZN10QtMobility13QMediaServiceD0Ev @ 144 NONAME - _ZN10QtMobility13QMediaServiceD1Ev @ 145 NONAME - _ZN10QtMobility13QMediaServiceD2Ev @ 146 NONAME - _ZN10QtMobility14QCameraControl11qt_metacallEN11QMetaObject4CallEiPPv @ 147 NONAME - _ZN10QtMobility14QCameraControl11qt_metacastEPKc @ 148 NONAME - _ZN10QtMobility14QCameraControl12stateChangedENS_7QCamera5StateE @ 149 NONAME - _ZN10QtMobility14QCameraControl16staticMetaObjectE @ 150 NONAME DATA 16 - _ZN10QtMobility14QCameraControl18captureModeChangedENS_7QCamera11CaptureModeE @ 151 NONAME - _ZN10QtMobility14QCameraControl19getStaticMetaObjectEv @ 152 NONAME - _ZN10QtMobility14QCameraControl5errorEiRK7QString @ 153 NONAME - _ZN10QtMobility14QCameraControlC2EP7QObject @ 154 NONAME - _ZN10QtMobility14QCameraControlD0Ev @ 155 NONAME - _ZN10QtMobility14QCameraControlD1Ev @ 156 NONAME - _ZN10QtMobility14QCameraControlD2Ev @ 157 NONAME - _ZN10QtMobility14QMediaPlaylist10loadFailedEv @ 158 NONAME - _ZN10QtMobility14QMediaPlaylist11insertMediaEiRK5QListINS_13QMediaContentEE @ 159 NONAME - _ZN10QtMobility14QMediaPlaylist11insertMediaEiRKNS_13QMediaContentE @ 160 NONAME - _ZN10QtMobility14QMediaPlaylist11qt_metacallEN11QMetaObject4CallEiPPv @ 161 NONAME - _ZN10QtMobility14QMediaPlaylist11qt_metacastEPKc @ 162 NONAME - _ZN10QtMobility14QMediaPlaylist11removeMediaEi @ 163 NONAME - _ZN10QtMobility14QMediaPlaylist11removeMediaEii @ 164 NONAME - _ZN10QtMobility14QMediaPlaylist12mediaChangedEii @ 165 NONAME - _ZN10QtMobility14QMediaPlaylist12mediaRemovedEii @ 166 NONAME - _ZN10QtMobility14QMediaPlaylist13mediaInsertedEii @ 167 NONAME - _ZN10QtMobility14QMediaPlaylist14setMediaObjectEPNS_12QMediaObjectE @ 168 NONAME - _ZN10QtMobility14QMediaPlaylist15setCurrentIndexEi @ 169 NONAME - _ZN10QtMobility14QMediaPlaylist15setPlaybackModeENS0_12PlaybackModeE @ 170 NONAME - _ZN10QtMobility14QMediaPlaylist16staticMetaObjectE @ 171 NONAME DATA 16 - _ZN10QtMobility14QMediaPlaylist19currentIndexChangedEi @ 172 NONAME - _ZN10QtMobility14QMediaPlaylist19currentMediaChangedERKNS_13QMediaContentE @ 173 NONAME - _ZN10QtMobility14QMediaPlaylist19getStaticMetaObjectEv @ 174 NONAME - _ZN10QtMobility14QMediaPlaylist19playbackModeChangedENS0_12PlaybackModeE @ 175 NONAME - _ZN10QtMobility14QMediaPlaylist21mediaAboutToBeRemovedEii @ 176 NONAME - _ZN10QtMobility14QMediaPlaylist22mediaAboutToBeInsertedEii @ 177 NONAME - _ZN10QtMobility14QMediaPlaylist4loadEP9QIODevicePKc @ 178 NONAME - _ZN10QtMobility14QMediaPlaylist4loadERK4QUrlPKc @ 179 NONAME - _ZN10QtMobility14QMediaPlaylist4nextEv @ 180 NONAME - _ZN10QtMobility14QMediaPlaylist4saveEP9QIODevicePKc @ 181 NONAME - _ZN10QtMobility14QMediaPlaylist4saveERK4QUrlPKc @ 182 NONAME - _ZN10QtMobility14QMediaPlaylist5clearEv @ 183 NONAME - _ZN10QtMobility14QMediaPlaylist6loadedEv @ 184 NONAME - _ZN10QtMobility14QMediaPlaylist7shuffleEv @ 185 NONAME - _ZN10QtMobility14QMediaPlaylist8addMediaERK5QListINS_13QMediaContentEE @ 186 NONAME - _ZN10QtMobility14QMediaPlaylist8addMediaERKNS_13QMediaContentE @ 187 NONAME - _ZN10QtMobility14QMediaPlaylist8previousEv @ 188 NONAME - _ZN10QtMobility14QMediaPlaylistC1EP7QObject @ 189 NONAME - _ZN10QtMobility14QMediaPlaylistC2EP7QObject @ 190 NONAME - _ZN10QtMobility14QMediaPlaylistD0Ev @ 191 NONAME - _ZN10QtMobility14QMediaPlaylistD1Ev @ 192 NONAME - _ZN10QtMobility14QMediaPlaylistD2Ev @ 193 NONAME - _ZN10QtMobility14QMediaRecorder11qt_metacallEN11QMetaObject4CallEiPPv @ 194 NONAME - _ZN10QtMobility14QMediaRecorder11qt_metacastEPKc @ 195 NONAME - _ZN10QtMobility14QMediaRecorder12stateChangedENS0_5StateE @ 196 NONAME - _ZN10QtMobility14QMediaRecorder15durationChangedEx @ 197 NONAME - _ZN10QtMobility14QMediaRecorder16staticMetaObjectE @ 198 NONAME DATA 16 - _ZN10QtMobility14QMediaRecorder17setOutputLocationERK4QUrl @ 199 NONAME - _ZN10QtMobility14QMediaRecorder19getStaticMetaObjectEv @ 200 NONAME - _ZN10QtMobility14QMediaRecorder19setEncodingSettingsERKNS_21QAudioEncoderSettingsERKNS_21QVideoEncoderSettingsERK7QString @ 201 NONAME - _ZN10QtMobility14QMediaRecorder4stopEv @ 202 NONAME - _ZN10QtMobility14QMediaRecorder5errorENS0_5ErrorE @ 203 NONAME - _ZN10QtMobility14QMediaRecorder5pauseEv @ 204 NONAME - _ZN10QtMobility14QMediaRecorder6recordEv @ 205 NONAME - _ZN10QtMobility14QMediaRecorderC1EPNS_12QMediaObjectEP7QObject @ 206 NONAME - _ZN10QtMobility14QMediaRecorderC2EPNS_12QMediaObjectEP7QObject @ 207 NONAME - _ZN10QtMobility14QMediaRecorderD0Ev @ 208 NONAME - _ZN10QtMobility14QMediaRecorderD1Ev @ 209 NONAME - _ZN10QtMobility14QMediaRecorderD2Ev @ 210 NONAME - _ZN10QtMobility14QMediaResource11setDataSizeEx @ 211 NONAME - _ZN10QtMobility14QMediaResource11setLanguageERK7QString @ 212 NONAME - _ZN10QtMobility14QMediaResource13setAudioCodecERK7QString @ 213 NONAME - _ZN10QtMobility14QMediaResource13setResolutionERK5QSize @ 214 NONAME - _ZN10QtMobility14QMediaResource13setResolutionEii @ 215 NONAME - _ZN10QtMobility14QMediaResource13setSampleRateEi @ 216 NONAME - _ZN10QtMobility14QMediaResource13setVideoCodecERK7QString @ 217 NONAME - _ZN10QtMobility14QMediaResource15setAudioBitRateEi @ 218 NONAME - _ZN10QtMobility14QMediaResource15setChannelCountEi @ 219 NONAME - _ZN10QtMobility14QMediaResource15setVideoBitRateEi @ 220 NONAME - _ZN10QtMobility14QMediaResourceC1ERK4QUrlRK7QString @ 221 NONAME - _ZN10QtMobility14QMediaResourceC1ERKS0_ @ 222 NONAME - _ZN10QtMobility14QMediaResourceC1Ev @ 223 NONAME - _ZN10QtMobility14QMediaResourceC2ERK4QUrlRK7QString @ 224 NONAME - _ZN10QtMobility14QMediaResourceC2ERKS0_ @ 225 NONAME - _ZN10QtMobility14QMediaResourceC2Ev @ 226 NONAME - _ZN10QtMobility14QMediaResourceD1Ev @ 227 NONAME - _ZN10QtMobility14QMediaResourceD2Ev @ 228 NONAME - _ZN10QtMobility14QMediaResourceaSERKS0_ @ 229 NONAME - _ZN10QtMobility15QMediaTimeRange11addIntervalERKNS_18QMediaTimeIntervalE @ 230 NONAME - _ZN10QtMobility15QMediaTimeRange11addIntervalExx @ 231 NONAME - _ZN10QtMobility15QMediaTimeRange12addTimeRangeERKS0_ @ 232 NONAME - _ZN10QtMobility15QMediaTimeRange14removeIntervalERKNS_18QMediaTimeIntervalE @ 233 NONAME - _ZN10QtMobility15QMediaTimeRange14removeIntervalExx @ 234 NONAME - _ZN10QtMobility15QMediaTimeRange15removeTimeRangeERKS0_ @ 235 NONAME - _ZN10QtMobility15QMediaTimeRange5clearEv @ 236 NONAME - _ZN10QtMobility15QMediaTimeRangeC1ERKNS_18QMediaTimeIntervalE @ 237 NONAME - _ZN10QtMobility15QMediaTimeRangeC1ERKS0_ @ 238 NONAME - _ZN10QtMobility15QMediaTimeRangeC1Ev @ 239 NONAME - _ZN10QtMobility15QMediaTimeRangeC1Exx @ 240 NONAME - _ZN10QtMobility15QMediaTimeRangeC2ERKNS_18QMediaTimeIntervalE @ 241 NONAME - _ZN10QtMobility15QMediaTimeRangeC2ERKS0_ @ 242 NONAME - _ZN10QtMobility15QMediaTimeRangeC2Ev @ 243 NONAME - _ZN10QtMobility15QMediaTimeRangeC2Exx @ 244 NONAME - _ZN10QtMobility15QMediaTimeRangeD1Ev @ 245 NONAME - _ZN10QtMobility15QMediaTimeRangeD2Ev @ 246 NONAME - _ZN10QtMobility15QMediaTimeRangeaSERKNS_18QMediaTimeIntervalE @ 247 NONAME - _ZN10QtMobility15QMediaTimeRangeaSERKS0_ @ 248 NONAME - _ZN10QtMobility15QMediaTimeRangemIERKNS_18QMediaTimeIntervalE @ 249 NONAME - _ZN10QtMobility15QMediaTimeRangemIERKS0_ @ 250 NONAME - _ZN10QtMobility15QMediaTimeRangepLERKNS_18QMediaTimeIntervalE @ 251 NONAME - _ZN10QtMobility15QMediaTimeRangepLERKS0_ @ 252 NONAME - _ZN10QtMobility16QMetaDataControl11qt_metacallEN11QMetaObject4CallEiPPv @ 253 NONAME - _ZN10QtMobility16QMetaDataControl11qt_metacastEPKc @ 254 NONAME - _ZN10QtMobility16QMetaDataControl15metaDataChangedEv @ 255 NONAME - _ZN10QtMobility16QMetaDataControl15writableChangedEb @ 256 NONAME - _ZN10QtMobility16QMetaDataControl16staticMetaObjectE @ 257 NONAME DATA 16 - _ZN10QtMobility16QMetaDataControl19getStaticMetaObjectEv @ 258 NONAME - _ZN10QtMobility16QMetaDataControl24metaDataAvailableChangedEb @ 259 NONAME - _ZN10QtMobility16QMetaDataControlC2EP7QObject @ 260 NONAME - _ZN10QtMobility16QMetaDataControlD0Ev @ 261 NONAME - _ZN10QtMobility16QMetaDataControlD1Ev @ 262 NONAME - _ZN10QtMobility16QMetaDataControlD2Ev @ 263 NONAME - _ZN10QtMobility17QMediaImageViewer10setTimeoutEi @ 264 NONAME - _ZN10QtMobility17QMediaImageViewer10timerEventEP11QTimerEvent @ 265 NONAME - _ZN10QtMobility17QMediaImageViewer11qt_metacallEN11QMetaObject4CallEiPPv @ 266 NONAME - _ZN10QtMobility17QMediaImageViewer11qt_metacastEPKc @ 267 NONAME - _ZN10QtMobility17QMediaImageViewer12mediaChangedERKNS_13QMediaContentE @ 268 NONAME - _ZN10QtMobility17QMediaImageViewer12stateChangedENS0_5StateE @ 269 NONAME - _ZN10QtMobility17QMediaImageViewer16staticMetaObjectE @ 270 NONAME DATA 16 - _ZN10QtMobility17QMediaImageViewer18elapsedTimeChangedEi @ 271 NONAME - _ZN10QtMobility17QMediaImageViewer18mediaStatusChangedENS0_11MediaStatusE @ 272 NONAME - _ZN10QtMobility17QMediaImageViewer19getStaticMetaObjectEv @ 273 NONAME - _ZN10QtMobility17QMediaImageViewer4bindEP7QObject @ 274 NONAME - _ZN10QtMobility17QMediaImageViewer4playEv @ 275 NONAME - _ZN10QtMobility17QMediaImageViewer4stopEv @ 276 NONAME - _ZN10QtMobility17QMediaImageViewer5pauseEv @ 277 NONAME - _ZN10QtMobility17QMediaImageViewer6unbindEP7QObject @ 278 NONAME - _ZN10QtMobility17QMediaImageViewer8setMediaERKNS_13QMediaContentE @ 279 NONAME - _ZN10QtMobility17QMediaImageViewerC1EP7QObject @ 280 NONAME - _ZN10QtMobility17QMediaImageViewerC2EP7QObject @ 281 NONAME - _ZN10QtMobility17QMediaImageViewerD0Ev @ 282 NONAME - _ZN10QtMobility17QMediaImageViewerD1Ev @ 283 NONAME - _ZN10QtMobility17QMediaImageViewerD2Ev @ 284 NONAME - _ZN10QtMobility18QGraphicsVideoItem10itemChangeEN13QGraphicsItem18GraphicsItemChangeERK8QVariant @ 285 NONAME - _ZN10QtMobility18QGraphicsVideoItem11qt_metacallEN11QMetaObject4CallEiPPv @ 286 NONAME - _ZN10QtMobility18QGraphicsVideoItem11qt_metacastEPKc @ 287 NONAME - _ZN10QtMobility18QGraphicsVideoItem14setMediaObjectEPNS_12QMediaObjectE @ 288 NONAME - _ZN10QtMobility18QGraphicsVideoItem16staticMetaObjectE @ 289 NONAME DATA 16 - _ZN10QtMobility18QGraphicsVideoItem18setAspectRatioModeEN2Qt15AspectRatioModeE @ 290 NONAME - _ZN10QtMobility18QGraphicsVideoItem19getStaticMetaObjectEv @ 291 NONAME - _ZN10QtMobility18QGraphicsVideoItem5paintEP8QPainterPK24QStyleOptionGraphicsItemP7QWidget @ 292 NONAME - _ZN10QtMobility18QGraphicsVideoItem7setSizeERK6QSizeF @ 293 NONAME - _ZN10QtMobility18QGraphicsVideoItem9setOffsetERK7QPointF @ 294 NONAME - _ZN10QtMobility18QGraphicsVideoItemC1EP13QGraphicsItem @ 295 NONAME - _ZN10QtMobility18QGraphicsVideoItemC2EP13QGraphicsItem @ 296 NONAME - _ZN10QtMobility18QGraphicsVideoItemD0Ev @ 297 NONAME - _ZN10QtMobility18QGraphicsVideoItemD1Ev @ 298 NONAME - _ZN10QtMobility18QGraphicsVideoItemD2Ev @ 299 NONAME - _ZN10QtMobility18QMediaTimeIntervalC1ERKS0_ @ 300 NONAME - _ZN10QtMobility18QMediaTimeIntervalC1Ev @ 301 NONAME - _ZN10QtMobility18QMediaTimeIntervalC1Exx @ 302 NONAME - _ZN10QtMobility18QMediaTimeIntervalC2ERKS0_ @ 303 NONAME - _ZN10QtMobility18QMediaTimeIntervalC2Ev @ 304 NONAME - _ZN10QtMobility18QMediaTimeIntervalC2Exx @ 305 NONAME - _ZN10QtMobility18QRadioTunerControl11bandChangedENS_11QRadioTuner4BandE @ 306 NONAME - _ZN10QtMobility18QRadioTunerControl11qt_metacallEN11QMetaObject4CallEiPPv @ 307 NONAME - _ZN10QtMobility18QRadioTunerControl11qt_metacastEPKc @ 308 NONAME - _ZN10QtMobility18QRadioTunerControl12mutedChangedEb @ 309 NONAME - _ZN10QtMobility18QRadioTunerControl12stateChangedENS_11QRadioTuner5StateE @ 310 NONAME - _ZN10QtMobility18QRadioTunerControl13volumeChangedEi @ 311 NONAME - _ZN10QtMobility18QRadioTunerControl16frequencyChangedEi @ 312 NONAME - _ZN10QtMobility18QRadioTunerControl16searchingChangedEb @ 313 NONAME - _ZN10QtMobility18QRadioTunerControl16staticMetaObjectE @ 314 NONAME DATA 16 - _ZN10QtMobility18QRadioTunerControl19getStaticMetaObjectEv @ 315 NONAME - _ZN10QtMobility18QRadioTunerControl19stereoStatusChangedEb @ 316 NONAME - _ZN10QtMobility18QRadioTunerControl21signalStrengthChangedEi @ 317 NONAME - _ZN10QtMobility18QRadioTunerControl5errorENS_11QRadioTuner5ErrorE @ 318 NONAME - _ZN10QtMobility18QRadioTunerControlC2EP7QObject @ 319 NONAME - _ZN10QtMobility18QRadioTunerControlD0Ev @ 320 NONAME - _ZN10QtMobility18QRadioTunerControlD1Ev @ 321 NONAME - _ZN10QtMobility18QRadioTunerControlD2Ev @ 322 NONAME - _ZN10QtMobility18QStillImageCapture10imageSavedERK7QString @ 323 NONAME - _ZN10QtMobility18QStillImageCapture11qt_metacallEN11QMetaObject4CallEiPPv @ 324 NONAME - _ZN10QtMobility18QStillImageCapture11qt_metacastEPKc @ 325 NONAME - _ZN10QtMobility18QStillImageCapture13imageCapturedERK7QStringRK6QImage @ 326 NONAME - _ZN10QtMobility18QStillImageCapture16staticMetaObjectE @ 327 NONAME DATA 16 - _ZN10QtMobility18QStillImageCapture19getStaticMetaObjectEv @ 328 NONAME - _ZN10QtMobility18QStillImageCapture19setEncodingSettingsERKNS_21QImageEncoderSettingsE @ 329 NONAME - _ZN10QtMobility18QStillImageCapture22readyForCaptureChangedEb @ 330 NONAME - _ZN10QtMobility18QStillImageCapture5errorENS0_5ErrorE @ 331 NONAME - _ZN10QtMobility18QStillImageCapture7captureERK7QString @ 332 NONAME - _ZN10QtMobility18QStillImageCaptureC1EPNS_12QMediaObjectEP7QObject @ 333 NONAME - _ZN10QtMobility18QStillImageCaptureC2EPNS_12QMediaObjectEP7QObject @ 334 NONAME - _ZN10QtMobility18QStillImageCaptureD0Ev @ 335 NONAME - _ZN10QtMobility18QStillImageCaptureD1Ev @ 336 NONAME - _ZN10QtMobility18QStillImageCaptureD2Ev @ 337 NONAME - _ZN10QtMobility19QAudioCaptureSource11qt_metacallEN11QMetaObject4CallEiPPv @ 338 NONAME - _ZN10QtMobility19QAudioCaptureSource11qt_metacastEPKc @ 339 NONAME - _ZN10QtMobility19QAudioCaptureSource13setAudioInputERK7QString @ 340 NONAME - _ZN10QtMobility19QAudioCaptureSource13statusChangedEv @ 341 NONAME - _ZN10QtMobility19QAudioCaptureSource16staticMetaObjectE @ 342 NONAME DATA 16 - _ZN10QtMobility19QAudioCaptureSource19getStaticMetaObjectEv @ 343 NONAME - _ZN10QtMobility19QAudioCaptureSource23activeAudioInputChangedERK7QString @ 344 NONAME - _ZN10QtMobility19QAudioCaptureSource27availableAudioInputsChangedEv @ 345 NONAME - _ZN10QtMobility19QAudioCaptureSourceC1EP7QObjectPNS_21QMediaServiceProviderE @ 346 NONAME - _ZN10QtMobility19QAudioCaptureSourceC1EPNS_12QMediaObjectEP7QObject @ 347 NONAME - _ZN10QtMobility19QAudioCaptureSourceC2EP7QObjectPNS_21QMediaServiceProviderE @ 348 NONAME - _ZN10QtMobility19QAudioCaptureSourceC2EPNS_12QMediaObjectEP7QObject @ 349 NONAME - _ZN10QtMobility19QAudioCaptureSourceD0Ev @ 350 NONAME - _ZN10QtMobility19QAudioCaptureSourceD1Ev @ 351 NONAME - _ZN10QtMobility19QAudioCaptureSourceD2Ev @ 352 NONAME - _ZN10QtMobility19QCameraFocusControl11qt_metacallEN11QMetaObject4CallEiPPv @ 353 NONAME - _ZN10QtMobility19QCameraFocusControl11qt_metacastEPKc @ 354 NONAME - _ZN10QtMobility19QCameraFocusControl16staticMetaObjectE @ 355 NONAME DATA 16 - _ZN10QtMobility19QCameraFocusControl18digitalZoomChangedEf @ 356 NONAME - _ZN10QtMobility19QCameraFocusControl18focusStatusChangedENS_7QCamera11FocusStatusE @ 357 NONAME - _ZN10QtMobility19QCameraFocusControl18opticalZoomChangedEf @ 358 NONAME - _ZN10QtMobility19QCameraFocusControl19getStaticMetaObjectEv @ 359 NONAME - _ZN10QtMobility19QCameraFocusControlC2EP7QObject @ 360 NONAME - _ZN10QtMobility19QCameraFocusControlD0Ev @ 361 NONAME - _ZN10QtMobility19QCameraFocusControlD1Ev @ 362 NONAME - _ZN10QtMobility19QCameraFocusControlD2Ev @ 363 NONAME - _ZN10QtMobility19QMediaPlayerControl11qt_metacallEN11QMetaObject4CallEiPPv @ 364 NONAME - _ZN10QtMobility19QMediaPlayerControl11qt_metacastEPKc @ 365 NONAME - _ZN10QtMobility19QMediaPlayerControl12mediaChangedERKNS_13QMediaContentE @ 366 NONAME - _ZN10QtMobility19QMediaPlayerControl12mutedChangedEb @ 367 NONAME - _ZN10QtMobility19QMediaPlayerControl12stateChangedENS_12QMediaPlayer5StateE @ 368 NONAME - _ZN10QtMobility19QMediaPlayerControl13volumeChangedEi @ 369 NONAME - _ZN10QtMobility19QMediaPlayerControl15durationChangedEx @ 370 NONAME - _ZN10QtMobility19QMediaPlayerControl15positionChangedEx @ 371 NONAME - _ZN10QtMobility19QMediaPlayerControl15seekableChangedEb @ 372 NONAME - _ZN10QtMobility19QMediaPlayerControl16staticMetaObjectE @ 373 NONAME DATA 16 - _ZN10QtMobility19QMediaPlayerControl18mediaStatusChangedENS_12QMediaPlayer11MediaStatusE @ 374 NONAME - _ZN10QtMobility19QMediaPlayerControl19bufferStatusChangedEi @ 375 NONAME - _ZN10QtMobility19QMediaPlayerControl19getStaticMetaObjectEv @ 376 NONAME - _ZN10QtMobility19QMediaPlayerControl19playbackRateChangedEf @ 377 NONAME - _ZN10QtMobility19QMediaPlayerControl21audioAvailableChangedEb @ 378 NONAME - _ZN10QtMobility19QMediaPlayerControl21videoAvailableChangedEb @ 379 NONAME - _ZN10QtMobility19QMediaPlayerControl30availablePlaybackRangesChangedERKNS_15QMediaTimeRangeE @ 380 NONAME - _ZN10QtMobility19QMediaPlayerControl5errorEiRK7QString @ 381 NONAME - _ZN10QtMobility19QMediaPlayerControlC2EP7QObject @ 382 NONAME - _ZN10QtMobility19QMediaPlayerControlD0Ev @ 383 NONAME - _ZN10QtMobility19QMediaPlayerControlD1Ev @ 384 NONAME - _ZN10QtMobility19QMediaPlayerControlD2Ev @ 385 NONAME - _ZN10QtMobility19QVideoDeviceControl11qt_metacallEN11QMetaObject4CallEiPPv @ 386 NONAME - _ZN10QtMobility19QVideoDeviceControl11qt_metacastEPKc @ 387 NONAME - _ZN10QtMobility19QVideoDeviceControl14devicesChangedEv @ 388 NONAME - _ZN10QtMobility19QVideoDeviceControl16staticMetaObjectE @ 389 NONAME DATA 16 - _ZN10QtMobility19QVideoDeviceControl19getStaticMetaObjectEv @ 390 NONAME - _ZN10QtMobility19QVideoDeviceControl21selectedDeviceChangedERK7QString @ 391 NONAME - _ZN10QtMobility19QVideoDeviceControl21selectedDeviceChangedEi @ 392 NONAME - _ZN10QtMobility19QVideoDeviceControlC2EP7QObject @ 393 NONAME - _ZN10QtMobility19QVideoDeviceControlD0Ev @ 394 NONAME - _ZN10QtMobility19QVideoDeviceControlD1Ev @ 395 NONAME - _ZN10QtMobility19QVideoDeviceControlD2Ev @ 396 NONAME - _ZN10QtMobility19QVideoOutputControl11qt_metacallEN11QMetaObject4CallEiPPv @ 397 NONAME - _ZN10QtMobility19QVideoOutputControl11qt_metacastEPKc @ 398 NONAME - _ZN10QtMobility19QVideoOutputControl16staticMetaObjectE @ 399 NONAME DATA 16 - _ZN10QtMobility19QVideoOutputControl19getStaticMetaObjectEv @ 400 NONAME - _ZN10QtMobility19QVideoOutputControl23availableOutputsChangedERK5QListINS0_6OutputEE @ 401 NONAME - _ZN10QtMobility19QVideoOutputControlC2EP7QObject @ 402 NONAME - _ZN10QtMobility19QVideoOutputControlD0Ev @ 403 NONAME - _ZN10QtMobility19QVideoOutputControlD1Ev @ 404 NONAME - _ZN10QtMobility19QVideoOutputControlD2Ev @ 405 NONAME - _ZN10QtMobility19QVideoWidgetControl10hueChangedEi @ 406 NONAME - _ZN10QtMobility19QVideoWidgetControl11qt_metacallEN11QMetaObject4CallEiPPv @ 407 NONAME - _ZN10QtMobility19QVideoWidgetControl11qt_metacastEPKc @ 408 NONAME - _ZN10QtMobility19QVideoWidgetControl15contrastChangedEi @ 409 NONAME - _ZN10QtMobility19QVideoWidgetControl16staticMetaObjectE @ 410 NONAME DATA 16 - _ZN10QtMobility19QVideoWidgetControl17brightnessChangedEi @ 411 NONAME - _ZN10QtMobility19QVideoWidgetControl17fullScreenChangedEb @ 412 NONAME - _ZN10QtMobility19QVideoWidgetControl17saturationChangedEi @ 413 NONAME - _ZN10QtMobility19QVideoWidgetControl19getStaticMetaObjectEv @ 414 NONAME - _ZN10QtMobility19QVideoWidgetControlC2EP7QObject @ 415 NONAME - _ZN10QtMobility19QVideoWidgetControlD0Ev @ 416 NONAME - _ZN10QtMobility19QVideoWidgetControlD1Ev @ 417 NONAME - _ZN10QtMobility19QVideoWidgetControlD2Ev @ 418 NONAME - _ZN10QtMobility19QVideoWindowControl10hueChangedEi @ 419 NONAME - _ZN10QtMobility19QVideoWindowControl11qt_metacallEN11QMetaObject4CallEiPPv @ 420 NONAME - _ZN10QtMobility19QVideoWindowControl11qt_metacastEPKc @ 421 NONAME - _ZN10QtMobility19QVideoWindowControl15contrastChangedEi @ 422 NONAME - _ZN10QtMobility19QVideoWindowControl16staticMetaObjectE @ 423 NONAME DATA 16 - _ZN10QtMobility19QVideoWindowControl17brightnessChangedEi @ 424 NONAME - _ZN10QtMobility19QVideoWindowControl17fullScreenChangedEb @ 425 NONAME - _ZN10QtMobility19QVideoWindowControl17nativeSizeChangedEv @ 426 NONAME - _ZN10QtMobility19QVideoWindowControl17saturationChangedEi @ 427 NONAME - _ZN10QtMobility19QVideoWindowControl19getStaticMetaObjectEv @ 428 NONAME - _ZN10QtMobility19QVideoWindowControlC2EP7QObject @ 429 NONAME - _ZN10QtMobility19QVideoWindowControlD0Ev @ 430 NONAME - _ZN10QtMobility19QVideoWindowControlD1Ev @ 431 NONAME - _ZN10QtMobility19QVideoWindowControlD2Ev @ 432 NONAME - _ZN10QtMobility20QAudioEncoderControl11qt_metacallEN11QMetaObject4CallEiPPv @ 433 NONAME - _ZN10QtMobility20QAudioEncoderControl11qt_metacastEPKc @ 434 NONAME - _ZN10QtMobility20QAudioEncoderControl16staticMetaObjectE @ 435 NONAME DATA 16 - _ZN10QtMobility20QAudioEncoderControl19getStaticMetaObjectEv @ 436 NONAME - _ZN10QtMobility20QAudioEncoderControlC2EP7QObject @ 437 NONAME - _ZN10QtMobility20QAudioEncoderControlD0Ev @ 438 NONAME - _ZN10QtMobility20QAudioEncoderControlD1Ev @ 439 NONAME - _ZN10QtMobility20QAudioEncoderControlD2Ev @ 440 NONAME - _ZN10QtMobility20QImageCaptureControl10imageSavedERK7QString @ 441 NONAME - _ZN10QtMobility20QImageCaptureControl11qt_metacallEN11QMetaObject4CallEiPPv @ 442 NONAME - _ZN10QtMobility20QImageCaptureControl11qt_metacastEPKc @ 443 NONAME - _ZN10QtMobility20QImageCaptureControl13imageCapturedERK7QStringRK6QImage @ 444 NONAME - _ZN10QtMobility20QImageCaptureControl16staticMetaObjectE @ 445 NONAME DATA 16 - _ZN10QtMobility20QImageCaptureControl19getStaticMetaObjectEv @ 446 NONAME - _ZN10QtMobility20QImageCaptureControl22readyForCaptureChangedEb @ 447 NONAME - _ZN10QtMobility20QImageCaptureControl5errorEiRK7QString @ 448 NONAME - _ZN10QtMobility20QImageCaptureControlC2EP7QObject @ 449 NONAME - _ZN10QtMobility20QImageCaptureControlD0Ev @ 450 NONAME - _ZN10QtMobility20QImageCaptureControlD1Ev @ 451 NONAME - _ZN10QtMobility20QImageCaptureControlD2Ev @ 452 NONAME - _ZN10QtMobility20QImageEncoderControl11qt_metacallEN11QMetaObject4CallEiPPv @ 453 NONAME - _ZN10QtMobility20QImageEncoderControl11qt_metacastEPKc @ 454 NONAME - _ZN10QtMobility20QImageEncoderControl16staticMetaObjectE @ 455 NONAME DATA 16 - _ZN10QtMobility20QImageEncoderControl19getStaticMetaObjectEv @ 456 NONAME - _ZN10QtMobility20QImageEncoderControlC2EP7QObject @ 457 NONAME - _ZN10QtMobility20QImageEncoderControlD0Ev @ 458 NONAME - _ZN10QtMobility20QImageEncoderControlD1Ev @ 459 NONAME - _ZN10QtMobility20QImageEncoderControlD2Ev @ 460 NONAME - _ZN10QtMobility20QMediaPlaylistReaderD0Ev @ 461 NONAME - _ZN10QtMobility20QMediaPlaylistReaderD1Ev @ 462 NONAME - _ZN10QtMobility20QMediaPlaylistReaderD2Ev @ 463 NONAME - _ZN10QtMobility20QMediaPlaylistWriterD0Ev @ 464 NONAME - _ZN10QtMobility20QMediaPlaylistWriterD1Ev @ 465 NONAME - _ZN10QtMobility20QMediaPlaylistWriterD2Ev @ 466 NONAME - _ZN10QtMobility20QMediaStreamsControl11qt_metacallEN11QMetaObject4CallEiPPv @ 467 NONAME - _ZN10QtMobility20QMediaStreamsControl11qt_metacastEPKc @ 468 NONAME - _ZN10QtMobility20QMediaStreamsControl14streamsChangedEv @ 469 NONAME - _ZN10QtMobility20QMediaStreamsControl16staticMetaObjectE @ 470 NONAME DATA 16 - _ZN10QtMobility20QMediaStreamsControl19getStaticMetaObjectEv @ 471 NONAME - _ZN10QtMobility20QMediaStreamsControl20activeStreamsChangedEv @ 472 NONAME - _ZN10QtMobility20QMediaStreamsControlC2EP7QObject @ 473 NONAME - _ZN10QtMobility20QMediaStreamsControlD0Ev @ 474 NONAME - _ZN10QtMobility20QMediaStreamsControlD1Ev @ 475 NONAME - _ZN10QtMobility20QMediaStreamsControlD2Ev @ 476 NONAME - _ZN10QtMobility20QVideoEncoderControl11qt_metacallEN11QMetaObject4CallEiPPv @ 477 NONAME - _ZN10QtMobility20QVideoEncoderControl11qt_metacastEPKc @ 478 NONAME - _ZN10QtMobility20QVideoEncoderControl16staticMetaObjectE @ 479 NONAME DATA 16 - _ZN10QtMobility20QVideoEncoderControl19getStaticMetaObjectEv @ 480 NONAME - _ZN10QtMobility20QVideoEncoderControlC2EP7QObject @ 481 NONAME - _ZN10QtMobility20QVideoEncoderControlD0Ev @ 482 NONAME - _ZN10QtMobility20QVideoEncoderControlD1Ev @ 483 NONAME - _ZN10QtMobility20QVideoEncoderControlD2Ev @ 484 NONAME - _ZN10QtMobility21QAudioEncoderSettings10setBitRateEi @ 485 NONAME - _ZN10QtMobility21QAudioEncoderSettings10setQualityENS_7QtMedia15EncodingQualityE @ 486 NONAME - _ZN10QtMobility21QAudioEncoderSettings13setSampleRateEi @ 487 NONAME - _ZN10QtMobility21QAudioEncoderSettings15setChannelCountEi @ 488 NONAME - _ZN10QtMobility21QAudioEncoderSettings15setEncodingModeENS_7QtMedia12EncodingModeE @ 489 NONAME - _ZN10QtMobility21QAudioEncoderSettings8setCodecERK7QString @ 490 NONAME - _ZN10QtMobility21QAudioEncoderSettingsC1ERKS0_ @ 491 NONAME - _ZN10QtMobility21QAudioEncoderSettingsC1Ev @ 492 NONAME - _ZN10QtMobility21QAudioEncoderSettingsC2ERKS0_ @ 493 NONAME - _ZN10QtMobility21QAudioEncoderSettingsC2Ev @ 494 NONAME - _ZN10QtMobility21QAudioEncoderSettingsD1Ev @ 495 NONAME - _ZN10QtMobility21QAudioEncoderSettingsD2Ev @ 496 NONAME - _ZN10QtMobility21QAudioEncoderSettingsaSERKS0_ @ 497 NONAME - _ZN10QtMobility21QImageEncoderSettings10setQualityENS_7QtMedia15EncodingQualityE @ 498 NONAME - _ZN10QtMobility21QImageEncoderSettings13setResolutionERK5QSize @ 499 NONAME - _ZN10QtMobility21QImageEncoderSettings13setResolutionEii @ 500 NONAME - _ZN10QtMobility21QImageEncoderSettings8setCodecERK7QString @ 501 NONAME - _ZN10QtMobility21QImageEncoderSettingsC1ERKS0_ @ 502 NONAME - _ZN10QtMobility21QImageEncoderSettingsC1Ev @ 503 NONAME - _ZN10QtMobility21QImageEncoderSettingsC2ERKS0_ @ 504 NONAME - _ZN10QtMobility21QImageEncoderSettingsC2Ev @ 505 NONAME - _ZN10QtMobility21QImageEncoderSettingsD1Ev @ 506 NONAME - _ZN10QtMobility21QImageEncoderSettingsD2Ev @ 507 NONAME - _ZN10QtMobility21QImageEncoderSettingsaSERKS0_ @ 508 NONAME - _ZN10QtMobility21QMediaPlaylistControl11qt_metacallEN11QMetaObject4CallEiPPv @ 509 NONAME - _ZN10QtMobility21QMediaPlaylistControl11qt_metacastEPKc @ 510 NONAME - _ZN10QtMobility21QMediaPlaylistControl16staticMetaObjectE @ 511 NONAME DATA 16 - _ZN10QtMobility21QMediaPlaylistControl19currentIndexChangedEi @ 512 NONAME - _ZN10QtMobility21QMediaPlaylistControl19currentMediaChangedERKNS_13QMediaContentE @ 513 NONAME - _ZN10QtMobility21QMediaPlaylistControl19getStaticMetaObjectEv @ 514 NONAME - _ZN10QtMobility21QMediaPlaylistControl19playbackModeChangedENS_14QMediaPlaylist12PlaybackModeE @ 515 NONAME - _ZN10QtMobility21QMediaPlaylistControl23playlistProviderChangedEv @ 516 NONAME - _ZN10QtMobility21QMediaPlaylistControlC2EP7QObject @ 517 NONAME - _ZN10QtMobility21QMediaPlaylistControlD0Ev @ 518 NONAME - _ZN10QtMobility21QMediaPlaylistControlD1Ev @ 519 NONAME - _ZN10QtMobility21QMediaPlaylistControlD2Ev @ 520 NONAME - _ZN10QtMobility21QMediaRecorderControl11qt_metacallEN11QMetaObject4CallEiPPv @ 521 NONAME - _ZN10QtMobility21QMediaRecorderControl11qt_metacastEPKc @ 522 NONAME - _ZN10QtMobility21QMediaRecorderControl12stateChangedENS_14QMediaRecorder5StateE @ 523 NONAME - _ZN10QtMobility21QMediaRecorderControl15durationChangedEx @ 524 NONAME - _ZN10QtMobility21QMediaRecorderControl16staticMetaObjectE @ 525 NONAME DATA 16 - _ZN10QtMobility21QMediaRecorderControl19getStaticMetaObjectEv @ 526 NONAME - _ZN10QtMobility21QMediaRecorderControl5errorEiRK7QString @ 527 NONAME - _ZN10QtMobility21QMediaRecorderControlC2EP7QObject @ 528 NONAME - _ZN10QtMobility21QMediaRecorderControlD0Ev @ 529 NONAME - _ZN10QtMobility21QMediaRecorderControlD1Ev @ 530 NONAME - _ZN10QtMobility21QMediaRecorderControlD2Ev @ 531 NONAME - _ZN10QtMobility21QMediaServiceProvider11qt_metacallEN11QMetaObject4CallEiPPv @ 532 NONAME - _ZN10QtMobility21QMediaServiceProvider11qt_metacastEPKc @ 533 NONAME - _ZN10QtMobility21QMediaServiceProvider16staticMetaObjectE @ 534 NONAME DATA 16 - _ZN10QtMobility21QMediaServiceProvider17deviceDescriptionERK10QByteArrayS3_ @ 535 NONAME - _ZN10QtMobility21QMediaServiceProvider19getStaticMetaObjectEv @ 536 NONAME - _ZN10QtMobility21QMediaServiceProvider22defaultServiceProviderEv @ 537 NONAME - _ZN10QtMobility21QVideoEncoderSettings10setBitRateEi @ 538 NONAME - _ZN10QtMobility21QVideoEncoderSettings10setQualityENS_7QtMedia15EncodingQualityE @ 539 NONAME - _ZN10QtMobility21QVideoEncoderSettings12setFrameRateEf @ 540 NONAME - _ZN10QtMobility21QVideoEncoderSettings13setResolutionERK5QSize @ 541 NONAME - _ZN10QtMobility21QVideoEncoderSettings13setResolutionEii @ 542 NONAME - _ZN10QtMobility21QVideoEncoderSettings15setEncodingModeENS_7QtMedia12EncodingModeE @ 543 NONAME - _ZN10QtMobility21QVideoEncoderSettings8setCodecERK7QString @ 544 NONAME - _ZN10QtMobility21QVideoEncoderSettingsC1ERKS0_ @ 545 NONAME - _ZN10QtMobility21QVideoEncoderSettingsC1Ev @ 546 NONAME - _ZN10QtMobility21QVideoEncoderSettingsC2ERKS0_ @ 547 NONAME - _ZN10QtMobility21QVideoEncoderSettingsC2Ev @ 548 NONAME - _ZN10QtMobility21QVideoEncoderSettingsD1Ev @ 549 NONAME - _ZN10QtMobility21QVideoEncoderSettingsD2Ev @ 550 NONAME - _ZN10QtMobility21QVideoEncoderSettingsaSERKS0_ @ 551 NONAME - _ZN10QtMobility21QVideoRendererControl11qt_metacallEN11QMetaObject4CallEiPPv @ 552 NONAME - _ZN10QtMobility21QVideoRendererControl11qt_metacastEPKc @ 553 NONAME - _ZN10QtMobility21QVideoRendererControl16staticMetaObjectE @ 554 NONAME DATA 16 - _ZN10QtMobility21QVideoRendererControl19getStaticMetaObjectEv @ 555 NONAME - _ZN10QtMobility21QVideoRendererControlC2EP7QObject @ 556 NONAME - _ZN10QtMobility21QVideoRendererControlD0Ev @ 557 NONAME - _ZN10QtMobility21QVideoRendererControlD1Ev @ 558 NONAME - _ZN10QtMobility21QVideoRendererControlD2Ev @ 559 NONAME - _ZN10QtMobility22QAudioEndpointSelector11qt_metacallEN11QMetaObject4CallEiPPv @ 560 NONAME - _ZN10QtMobility22QAudioEndpointSelector11qt_metacastEPKc @ 561 NONAME - _ZN10QtMobility22QAudioEndpointSelector16staticMetaObjectE @ 562 NONAME DATA 16 - _ZN10QtMobility22QAudioEndpointSelector19getStaticMetaObjectEv @ 563 NONAME - _ZN10QtMobility22QAudioEndpointSelector21activeEndpointChangedERK7QString @ 564 NONAME - _ZN10QtMobility22QAudioEndpointSelector25availableEndpointsChangedEv @ 565 NONAME - _ZN10QtMobility22QAudioEndpointSelectorC2EP7QObject @ 566 NONAME - _ZN10QtMobility22QAudioEndpointSelectorD0Ev @ 567 NONAME - _ZN10QtMobility22QAudioEndpointSelectorD1Ev @ 568 NONAME - _ZN10QtMobility22QAudioEndpointSelectorD2Ev @ 569 NONAME - _ZN10QtMobility22QCameraExposureControl10flashReadyEb @ 570 NONAME - _ZN10QtMobility22QCameraExposureControl11qt_metacallEN11QMetaObject4CallEiPPv @ 571 NONAME - _ZN10QtMobility22QCameraExposureControl11qt_metacastEPKc @ 572 NONAME - _ZN10QtMobility22QCameraExposureControl14exposureLockedEv @ 573 NONAME - _ZN10QtMobility22QCameraExposureControl15apertureChangedEf @ 574 NONAME - _ZN10QtMobility22QCameraExposureControl16staticMetaObjectE @ 575 NONAME DATA 16 - _ZN10QtMobility22QCameraExposureControl19getStaticMetaObjectEv @ 576 NONAME - _ZN10QtMobility22QCameraExposureControl19shutterSpeedChangedEf @ 577 NONAME - _ZN10QtMobility22QCameraExposureControl20apertureRangeChangedEv @ 578 NONAME - _ZN10QtMobility22QCameraExposureControl21isoSensitivityChangedEi @ 579 NONAME - _ZN10QtMobility22QCameraExposureControlC2EP7QObject @ 580 NONAME - _ZN10QtMobility22QCameraExposureControlD0Ev @ 581 NONAME - _ZN10QtMobility22QCameraExposureControlD1Ev @ 582 NONAME - _ZN10QtMobility22QCameraExposureControlD2Ev @ 583 NONAME - _ZN10QtMobility22QMediaContainerControl11qt_metacallEN11QMetaObject4CallEiPPv @ 584 NONAME - _ZN10QtMobility22QMediaContainerControl11qt_metacastEPKc @ 585 NONAME - _ZN10QtMobility22QMediaContainerControl16staticMetaObjectE @ 586 NONAME DATA 16 - _ZN10QtMobility22QMediaContainerControl19getStaticMetaObjectEv @ 587 NONAME - _ZN10QtMobility22QMediaContainerControlC2EP7QObject @ 588 NONAME - _ZN10QtMobility22QMediaContainerControlD0Ev @ 589 NONAME - _ZN10QtMobility22QMediaContainerControlD1Ev @ 590 NONAME - _ZN10QtMobility22QMediaContainerControlD2Ev @ 591 NONAME - _ZN10QtMobility22QMediaPlaylistIOPlugin11qt_metacallEN11QMetaObject4CallEiPPv @ 592 NONAME - _ZN10QtMobility22QMediaPlaylistIOPlugin11qt_metacastEPKc @ 593 NONAME - _ZN10QtMobility22QMediaPlaylistIOPlugin16staticMetaObjectE @ 594 NONAME DATA 16 - _ZN10QtMobility22QMediaPlaylistIOPlugin19getStaticMetaObjectEv @ 595 NONAME - _ZN10QtMobility22QMediaPlaylistIOPluginC2EP7QObject @ 596 NONAME - _ZN10QtMobility22QMediaPlaylistIOPluginD0Ev @ 597 NONAME - _ZN10QtMobility22QMediaPlaylistIOPluginD1Ev @ 598 NONAME - _ZN10QtMobility22QMediaPlaylistIOPluginD2Ev @ 599 NONAME - _ZN10QtMobility22QMediaPlaylistProvider10loadFailedENS_14QMediaPlaylist5ErrorERK7QString @ 600 NONAME - _ZN10QtMobility22QMediaPlaylistProvider11insertMediaEiRK5QListINS_13QMediaContentEE @ 601 NONAME - _ZN10QtMobility22QMediaPlaylistProvider11insertMediaEiRKNS_13QMediaContentE @ 602 NONAME - _ZN10QtMobility22QMediaPlaylistProvider11qt_metacallEN11QMetaObject4CallEiPPv @ 603 NONAME - _ZN10QtMobility22QMediaPlaylistProvider11qt_metacastEPKc @ 604 NONAME - _ZN10QtMobility22QMediaPlaylistProvider11removeMediaEi @ 605 NONAME - _ZN10QtMobility22QMediaPlaylistProvider11removeMediaEii @ 606 NONAME - _ZN10QtMobility22QMediaPlaylistProvider12mediaChangedEii @ 607 NONAME - _ZN10QtMobility22QMediaPlaylistProvider12mediaRemovedEii @ 608 NONAME - _ZN10QtMobility22QMediaPlaylistProvider13mediaInsertedEii @ 609 NONAME - _ZN10QtMobility22QMediaPlaylistProvider16staticMetaObjectE @ 610 NONAME DATA 16 - _ZN10QtMobility22QMediaPlaylistProvider19getStaticMetaObjectEv @ 611 NONAME - _ZN10QtMobility22QMediaPlaylistProvider21mediaAboutToBeRemovedEii @ 612 NONAME - _ZN10QtMobility22QMediaPlaylistProvider22mediaAboutToBeInsertedEii @ 613 NONAME - _ZN10QtMobility22QMediaPlaylistProvider4loadEP9QIODevicePKc @ 614 NONAME - _ZN10QtMobility22QMediaPlaylistProvider4loadERK4QUrlPKc @ 615 NONAME - _ZN10QtMobility22QMediaPlaylistProvider4saveEP9QIODevicePKc @ 616 NONAME - _ZN10QtMobility22QMediaPlaylistProvider4saveERK4QUrlPKc @ 617 NONAME - _ZN10QtMobility22QMediaPlaylistProvider5clearEv @ 618 NONAME - _ZN10QtMobility22QMediaPlaylistProvider6loadedEv @ 619 NONAME - _ZN10QtMobility22QMediaPlaylistProvider7shuffleEv @ 620 NONAME - _ZN10QtMobility22QMediaPlaylistProvider8addMediaERK5QListINS_13QMediaContentEE @ 621 NONAME - _ZN10QtMobility22QMediaPlaylistProvider8addMediaERKNS_13QMediaContentE @ 622 NONAME - _ZN10QtMobility22QMediaPlaylistProviderC2EP7QObject @ 623 NONAME - _ZN10QtMobility22QMediaPlaylistProviderC2ERNS_29QMediaPlaylistProviderPrivateEP7QObject @ 624 NONAME - _ZN10QtMobility22QMediaPlaylistProviderD0Ev @ 625 NONAME - _ZN10QtMobility22QMediaPlaylistProviderD1Ev @ 626 NONAME - _ZN10QtMobility22QMediaPlaylistProviderD2Ev @ 627 NONAME - _ZN10QtMobility23QImageProcessingControl11qt_metacallEN11QMetaObject4CallEiPPv @ 628 NONAME - _ZN10QtMobility23QImageProcessingControl11qt_metacastEPKc @ 629 NONAME - _ZN10QtMobility23QImageProcessingControl16staticMetaObjectE @ 630 NONAME DATA 16 - _ZN10QtMobility23QImageProcessingControl19getStaticMetaObjectEv @ 631 NONAME - _ZN10QtMobility23QImageProcessingControlC2EP7QObject @ 632 NONAME - _ZN10QtMobility23QImageProcessingControlD0Ev @ 633 NONAME - _ZN10QtMobility23QImageProcessingControlD1Ev @ 634 NONAME - _ZN10QtMobility23QImageProcessingControlD2Ev @ 635 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator11qt_metacallEN11QMetaObject4CallEiPPv @ 636 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator11qt_metacastEPKc @ 637 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator11setPlaylistEPNS_22QMediaPlaylistProviderE @ 638 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator15setPlaybackModeENS_14QMediaPlaylist12PlaybackModeE @ 639 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator16staticMetaObjectE @ 640 NONAME DATA 16 - _ZN10QtMobility23QMediaPlaylistNavigator19currentIndexChangedEi @ 641 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator19getStaticMetaObjectEv @ 642 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator19playbackModeChangedENS_14QMediaPlaylist12PlaybackModeE @ 643 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator23surroundingItemsChangedEv @ 644 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator4jumpEi @ 645 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator4nextEv @ 646 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator8previousEv @ 647 NONAME - _ZN10QtMobility23QMediaPlaylistNavigator9activatedERKNS_13QMediaContentE @ 648 NONAME - _ZN10QtMobility23QMediaPlaylistNavigatorC1EPNS_22QMediaPlaylistProviderEP7QObject @ 649 NONAME - _ZN10QtMobility23QMediaPlaylistNavigatorC2EPNS_22QMediaPlaylistProviderEP7QObject @ 650 NONAME - _ZN10QtMobility23QMediaPlaylistNavigatorD0Ev @ 651 NONAME - _ZN10QtMobility23QMediaPlaylistNavigatorD1Ev @ 652 NONAME - _ZN10QtMobility23QMediaPlaylistNavigatorD2Ev @ 653 NONAME - _ZN10QtMobility25QMediaServiceProviderHintC1E6QFlagsINS0_7FeatureEE @ 654 NONAME - _ZN10QtMobility25QMediaServiceProviderHintC1ERK10QByteArray @ 655 NONAME - _ZN10QtMobility25QMediaServiceProviderHintC1ERK7QStringRK11QStringList @ 656 NONAME - _ZN10QtMobility25QMediaServiceProviderHintC1ERKS0_ @ 657 NONAME - _ZN10QtMobility25QMediaServiceProviderHintC1Ev @ 658 NONAME - _ZN10QtMobility25QMediaServiceProviderHintC2E6QFlagsINS0_7FeatureEE @ 659 NONAME - _ZN10QtMobility25QMediaServiceProviderHintC2ERK10QByteArray @ 660 NONAME - _ZN10QtMobility25QMediaServiceProviderHintC2ERK7QStringRK11QStringList @ 661 NONAME - _ZN10QtMobility25QMediaServiceProviderHintC2ERKS0_ @ 662 NONAME - _ZN10QtMobility25QMediaServiceProviderHintC2Ev @ 663 NONAME - _ZN10QtMobility25QMediaServiceProviderHintD1Ev @ 664 NONAME - _ZN10QtMobility25QMediaServiceProviderHintD2Ev @ 665 NONAME - _ZN10QtMobility25QMediaServiceProviderHintaSERKS0_ @ 666 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider11insertMediaEiRK5QListINS_13QMediaContentEE @ 667 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider11insertMediaEiRKNS_13QMediaContentE @ 668 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider11qt_metacallEN11QMetaObject4CallEiPPv @ 669 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider11qt_metacastEPKc @ 670 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider11removeMediaEi @ 671 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider11removeMediaEii @ 672 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider16staticMetaObjectE @ 673 NONAME DATA 16 - _ZN10QtMobility27QLocalMediaPlaylistProvider19getStaticMetaObjectEv @ 674 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider5clearEv @ 675 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider7shuffleEv @ 676 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider8addMediaERK5QListINS_13QMediaContentEE @ 677 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProvider8addMediaERKNS_13QMediaContentE @ 678 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProviderC1EP7QObject @ 679 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProviderC2EP7QObject @ 680 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProviderD0Ev @ 681 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProviderD1Ev @ 682 NONAME - _ZN10QtMobility27QLocalMediaPlaylistProviderD2Ev @ 683 NONAME - _ZN10QtMobility27QMediaServiceProviderPlugin11qt_metacallEN11QMetaObject4CallEiPPv @ 684 NONAME - _ZN10QtMobility27QMediaServiceProviderPlugin11qt_metacastEPKc @ 685 NONAME - _ZN10QtMobility27QMediaServiceProviderPlugin16staticMetaObjectE @ 686 NONAME DATA 16 - _ZN10QtMobility27QMediaServiceProviderPlugin19getStaticMetaObjectEv @ 687 NONAME - _ZN10QtMobility7QCamera10flashReadyEb @ 688 NONAME - _ZN10QtMobility7QCamera11qt_metacallEN11QMetaObject4CallEiPPv @ 689 NONAME - _ZN10QtMobility7QCamera11qt_metacastEPKc @ 690 NONAME - _ZN10QtMobility7QCamera12focusReachedEv @ 691 NONAME - _ZN10QtMobility7QCamera12lockExposureEv @ 692 NONAME - _ZN10QtMobility7QCamera12setFlashModeENS0_9FlashModeE @ 693 NONAME - _ZN10QtMobility7QCamera12setFocusModeENS0_9FocusModeE @ 694 NONAME - _ZN10QtMobility7QCamera12stateChangedENS0_5StateE @ 695 NONAME - _ZN10QtMobility7QCamera13startFocusingEv @ 696 NONAME - _ZN10QtMobility7QCamera14cancelFocusingEv @ 697 NONAME - _ZN10QtMobility7QCamera14exposureLockedEv @ 698 NONAME - _ZN10QtMobility7QCamera14setCaptureModeENS0_11CaptureModeE @ 699 NONAME - _ZN10QtMobility7QCamera14unlockExposureEv @ 700 NONAME - _ZN10QtMobility7QCamera15apertureChangedEf @ 701 NONAME - _ZN10QtMobility7QCamera15setAutoApertureEv @ 702 NONAME - _ZN10QtMobility7QCamera15setExposureModeENS0_12ExposureModeE @ 703 NONAME - _ZN10QtMobility7QCamera15setMeteringModeENS0_12MeteringModeE @ 704 NONAME - _ZN10QtMobility7QCamera16availableDevicesEv @ 705 NONAME - _ZN10QtMobility7QCamera16staticMetaObjectE @ 706 NONAME DATA 16 - _ZN10QtMobility7QCamera17deviceDescriptionERK10QByteArray @ 707 NONAME - _ZN10QtMobility7QCamera17setManualApertureEf @ 708 NONAME - _ZN10QtMobility7QCamera18captureModeChangedENS0_11CaptureModeE @ 709 NONAME - _ZN10QtMobility7QCamera18digitalZoomChangedEf @ 710 NONAME - _ZN10QtMobility7QCamera18focusStatusChangedENS0_11FocusStatusE @ 711 NONAME - _ZN10QtMobility7QCamera18focusUnableToReachEv @ 712 NONAME - _ZN10QtMobility7QCamera18opticalZoomChangedEf @ 713 NONAME - _ZN10QtMobility7QCamera19getStaticMetaObjectEv @ 714 NONAME - _ZN10QtMobility7QCamera19setAutoShutterSpeedEv @ 715 NONAME - _ZN10QtMobility7QCamera19setWhiteBalanceModeENS0_16WhiteBalanceModeE @ 716 NONAME - _ZN10QtMobility7QCamera19shutterSpeedChangedEf @ 717 NONAME - _ZN10QtMobility7QCamera20apertureRangeChangedEv @ 718 NONAME - _ZN10QtMobility7QCamera21isoSensitivityChangedEi @ 719 NONAME - _ZN10QtMobility7QCamera21setAutoIsoSensitivityEv @ 720 NONAME - _ZN10QtMobility7QCamera21setManualShutterSpeedEf @ 721 NONAME - _ZN10QtMobility7QCamera21setManualWhiteBalanceEi @ 722 NONAME - _ZN10QtMobility7QCamera23setExposureCompensationEf @ 723 NONAME - _ZN10QtMobility7QCamera23setMacroFocusingEnabledEb @ 724 NONAME - _ZN10QtMobility7QCamera23setManualIsoSensitivityEi @ 725 NONAME - _ZN10QtMobility7QCamera4stopEv @ 726 NONAME - _ZN10QtMobility7QCamera5errorENS0_5ErrorE @ 727 NONAME - _ZN10QtMobility7QCamera5startEv @ 728 NONAME - _ZN10QtMobility7QCamera6zoomToEff @ 729 NONAME - _ZN10QtMobility7QCameraC1EP7QObjectPNS_21QMediaServiceProviderE @ 730 NONAME - _ZN10QtMobility7QCameraC1ERK10QByteArrayP7QObject @ 731 NONAME - _ZN10QtMobility7QCameraC2EP7QObjectPNS_21QMediaServiceProviderE @ 732 NONAME - _ZN10QtMobility7QCameraC2ERK10QByteArrayP7QObject @ 733 NONAME - _ZN10QtMobility7QCameraD0Ev @ 734 NONAME - _ZN10QtMobility7QCameraD1Ev @ 735 NONAME - _ZN10QtMobility7QCameraD2Ev @ 736 NONAME - _ZN10QtMobilityeqERKNS_15QMediaTimeRangeES2_ @ 737 NONAME - _ZN10QtMobilityeqERKNS_18QMediaTimeIntervalES2_ @ 738 NONAME - _ZN10QtMobilitymiERKNS_15QMediaTimeRangeES2_ @ 739 NONAME - _ZN10QtMobilityneERKNS_15QMediaTimeRangeES2_ @ 740 NONAME - _ZN10QtMobilityneERKNS_18QMediaTimeIntervalES2_ @ 741 NONAME - _ZN10QtMobilityplERKNS_15QMediaTimeRangeES2_ @ 742 NONAME - _ZNK10QtMobility11QRadioTuner10metaObjectEv @ 743 NONAME - _ZNK10QtMobility11QRadioTuner10stereoModeEv @ 744 NONAME - _ZNK10QtMobility11QRadioTuner11errorStringEv @ 745 NONAME - _ZNK10QtMobility11QRadioTuner11isAvailableEv @ 746 NONAME - _ZNK10QtMobility11QRadioTuner11isSearchingEv @ 747 NONAME - _ZNK10QtMobility11QRadioTuner13frequencyStepENS0_4BandE @ 748 NONAME - _ZNK10QtMobility11QRadioTuner14frequencyRangeENS0_4BandE @ 749 NONAME - _ZNK10QtMobility11QRadioTuner14signalStrengthEv @ 750 NONAME - _ZNK10QtMobility11QRadioTuner15isBandSupportedENS0_4BandE @ 751 NONAME - _ZNK10QtMobility11QRadioTuner17availabilityErrorEv @ 752 NONAME - _ZNK10QtMobility11QRadioTuner4bandEv @ 753 NONAME - _ZNK10QtMobility11QRadioTuner5errorEv @ 754 NONAME - _ZNK10QtMobility11QRadioTuner5stateEv @ 755 NONAME - _ZNK10QtMobility11QRadioTuner6volumeEv @ 756 NONAME - _ZNK10QtMobility11QRadioTuner7isMutedEv @ 757 NONAME - _ZNK10QtMobility11QRadioTuner8isStereoEv @ 758 NONAME - _ZNK10QtMobility11QRadioTuner9frequencyEv @ 759 NONAME - _ZNK10QtMobility12QMediaObject10metaObjectEv @ 760 NONAME - _ZNK10QtMobility12QMediaObject11isAvailableEv @ 761 NONAME - _ZNK10QtMobility12QMediaObject14notifyIntervalEv @ 762 NONAME - _ZNK10QtMobility12QMediaObject16extendedMetaDataERK7QString @ 763 NONAME - _ZNK10QtMobility12QMediaObject17availabilityErrorEv @ 764 NONAME - _ZNK10QtMobility12QMediaObject17availableMetaDataEv @ 765 NONAME - _ZNK10QtMobility12QMediaObject18isMetaDataWritableEv @ 766 NONAME - _ZNK10QtMobility12QMediaObject19isMetaDataAvailableEv @ 767 NONAME - _ZNK10QtMobility12QMediaObject25availableExtendedMetaDataEv @ 768 NONAME - _ZNK10QtMobility12QMediaObject7serviceEv @ 769 NONAME - _ZNK10QtMobility12QMediaObject8metaDataENS_7QtMedia8MetaDataE @ 770 NONAME - _ZNK10QtMobility12QMediaPlayer10isSeekableEv @ 771 NONAME - _ZNK10QtMobility12QMediaPlayer10metaObjectEv @ 772 NONAME - _ZNK10QtMobility12QMediaPlayer11errorStringEv @ 773 NONAME - _ZNK10QtMobility12QMediaPlayer11mediaStatusEv @ 774 NONAME - _ZNK10QtMobility12QMediaPlayer11mediaStreamEv @ 775 NONAME - _ZNK10QtMobility12QMediaPlayer12bufferStatusEv @ 776 NONAME - _ZNK10QtMobility12QMediaPlayer12playbackRateEv @ 777 NONAME - _ZNK10QtMobility12QMediaPlayer16isAudioAvailableEv @ 778 NONAME - _ZNK10QtMobility12QMediaPlayer16isVideoAvailableEv @ 779 NONAME - _ZNK10QtMobility12QMediaPlayer5errorEv @ 780 NONAME - _ZNK10QtMobility12QMediaPlayer5mediaEv @ 781 NONAME - _ZNK10QtMobility12QMediaPlayer5stateEv @ 782 NONAME - _ZNK10QtMobility12QMediaPlayer6volumeEv @ 783 NONAME - _ZNK10QtMobility12QMediaPlayer7isMutedEv @ 784 NONAME - _ZNK10QtMobility12QMediaPlayer8durationEv @ 785 NONAME - _ZNK10QtMobility12QMediaPlayer8positionEv @ 786 NONAME - _ZNK10QtMobility12QVideoWidget10brightnessEv @ 787 NONAME - _ZNK10QtMobility12QVideoWidget10metaObjectEv @ 788 NONAME - _ZNK10QtMobility12QVideoWidget10saturationEv @ 789 NONAME - _ZNK10QtMobility12QVideoWidget11mediaObjectEv @ 790 NONAME - _ZNK10QtMobility12QVideoWidget15aspectRatioModeEv @ 791 NONAME - _ZNK10QtMobility12QVideoWidget3hueEv @ 792 NONAME - _ZNK10QtMobility12QVideoWidget8contrastEv @ 793 NONAME - _ZNK10QtMobility12QVideoWidget8sizeHintEv @ 794 NONAME - _ZNK10QtMobility13QMediaContent12canonicalUrlEv @ 795 NONAME - _ZNK10QtMobility13QMediaContent17canonicalResourceEv @ 796 NONAME - _ZNK10QtMobility13QMediaContent6isNullEv @ 797 NONAME - _ZNK10QtMobility13QMediaContent9resourcesEv @ 798 NONAME - _ZNK10QtMobility13QMediaContenteqERKS0_ @ 799 NONAME - _ZNK10QtMobility13QMediaContentneERKS0_ @ 800 NONAME - _ZNK10QtMobility13QMediaControl10metaObjectEv @ 801 NONAME - _ZNK10QtMobility13QMediaService10metaObjectEv @ 802 NONAME - _ZNK10QtMobility14QCameraControl10metaObjectEv @ 803 NONAME - _ZNK10QtMobility14QMediaPlaylist10isReadOnlyEv @ 804 NONAME - _ZNK10QtMobility14QMediaPlaylist10mediaCountEv @ 805 NONAME - _ZNK10QtMobility14QMediaPlaylist10metaObjectEv @ 806 NONAME - _ZNK10QtMobility14QMediaPlaylist11errorStringEv @ 807 NONAME - _ZNK10QtMobility14QMediaPlaylist11mediaObjectEv @ 808 NONAME - _ZNK10QtMobility14QMediaPlaylist12currentIndexEv @ 809 NONAME - _ZNK10QtMobility14QMediaPlaylist12currentMediaEv @ 810 NONAME - _ZNK10QtMobility14QMediaPlaylist12playbackModeEv @ 811 NONAME - _ZNK10QtMobility14QMediaPlaylist13previousIndexEi @ 812 NONAME - _ZNK10QtMobility14QMediaPlaylist5errorEv @ 813 NONAME - _ZNK10QtMobility14QMediaPlaylist5mediaEi @ 814 NONAME - _ZNK10QtMobility14QMediaPlaylist7isEmptyEv @ 815 NONAME - _ZNK10QtMobility14QMediaPlaylist9nextIndexEi @ 816 NONAME - _ZNK10QtMobility14QMediaRecorder10metaObjectEv @ 817 NONAME - _ZNK10QtMobility14QMediaRecorder11errorStringEv @ 818 NONAME - _ZNK10QtMobility14QMediaRecorder11isAvailableEv @ 819 NONAME - _ZNK10QtMobility14QMediaRecorder13audioSettingsEv @ 820 NONAME - _ZNK10QtMobility14QMediaRecorder13videoSettingsEv @ 821 NONAME - _ZNK10QtMobility14QMediaRecorder14outputLocationEv @ 822 NONAME - _ZNK10QtMobility14QMediaRecorder17availabilityErrorEv @ 823 NONAME - _ZNK10QtMobility14QMediaRecorder17containerMimeTypeEv @ 824 NONAME - _ZNK10QtMobility14QMediaRecorder19supportedContainersEv @ 825 NONAME - _ZNK10QtMobility14QMediaRecorder19supportedFrameRatesERKNS_21QVideoEncoderSettingsEPb @ 826 NONAME - _ZNK10QtMobility14QMediaRecorder20containerDescriptionERK7QString @ 827 NONAME - _ZNK10QtMobility14QMediaRecorder20supportedAudioCodecsEv @ 828 NONAME - _ZNK10QtMobility14QMediaRecorder20supportedResolutionsERKNS_21QVideoEncoderSettingsEPb @ 829 NONAME - _ZNK10QtMobility14QMediaRecorder20supportedVideoCodecsEv @ 830 NONAME - _ZNK10QtMobility14QMediaRecorder21audioCodecDescriptionERK7QString @ 831 NONAME - _ZNK10QtMobility14QMediaRecorder21videoCodecDescriptionERK7QString @ 832 NONAME - _ZNK10QtMobility14QMediaRecorder25supportedAudioSampleRatesERKNS_21QAudioEncoderSettingsEPb @ 833 NONAME - _ZNK10QtMobility14QMediaRecorder5errorEv @ 834 NONAME - _ZNK10QtMobility14QMediaRecorder5stateEv @ 835 NONAME - _ZNK10QtMobility14QMediaRecorder8durationEv @ 836 NONAME - _ZNK10QtMobility14QMediaResource10audioCodecEv @ 837 NONAME - _ZNK10QtMobility14QMediaResource10resolutionEv @ 838 NONAME - _ZNK10QtMobility14QMediaResource10sampleRateEv @ 839 NONAME - _ZNK10QtMobility14QMediaResource10videoCodecEv @ 840 NONAME - _ZNK10QtMobility14QMediaResource12audioBitRateEv @ 841 NONAME - _ZNK10QtMobility14QMediaResource12channelCountEv @ 842 NONAME - _ZNK10QtMobility14QMediaResource12videoBitRateEv @ 843 NONAME - _ZNK10QtMobility14QMediaResource3urlEv @ 844 NONAME - _ZNK10QtMobility14QMediaResource6isNullEv @ 845 NONAME - _ZNK10QtMobility14QMediaResource8dataSizeEv @ 846 NONAME - _ZNK10QtMobility14QMediaResource8languageEv @ 847 NONAME - _ZNK10QtMobility14QMediaResource8mimeTypeEv @ 848 NONAME - _ZNK10QtMobility14QMediaResourceeqERKS0_ @ 849 NONAME - _ZNK10QtMobility14QMediaResourceneERKS0_ @ 850 NONAME - _ZNK10QtMobility15QMediaTimeRange10latestTimeEv @ 851 NONAME - _ZNK10QtMobility15QMediaTimeRange12earliestTimeEv @ 852 NONAME - _ZNK10QtMobility15QMediaTimeRange12isContinuousEv @ 853 NONAME - _ZNK10QtMobility15QMediaTimeRange7isEmptyEv @ 854 NONAME - _ZNK10QtMobility15QMediaTimeRange8containsEx @ 855 NONAME - _ZNK10QtMobility15QMediaTimeRange9intervalsEv @ 856 NONAME - _ZNK10QtMobility16QMetaDataControl10metaObjectEv @ 857 NONAME - _ZNK10QtMobility17QMediaImageViewer10metaObjectEv @ 858 NONAME - _ZNK10QtMobility17QMediaImageViewer11elapsedTimeEv @ 859 NONAME - _ZNK10QtMobility17QMediaImageViewer11mediaStatusEv @ 860 NONAME - _ZNK10QtMobility17QMediaImageViewer5mediaEv @ 861 NONAME - _ZNK10QtMobility17QMediaImageViewer5stateEv @ 862 NONAME - _ZNK10QtMobility17QMediaImageViewer7timeoutEv @ 863 NONAME - _ZNK10QtMobility18QGraphicsVideoItem10metaObjectEv @ 864 NONAME - _ZNK10QtMobility18QGraphicsVideoItem10nativeSizeEv @ 865 NONAME - _ZNK10QtMobility18QGraphicsVideoItem11mediaObjectEv @ 866 NONAME - _ZNK10QtMobility18QGraphicsVideoItem12boundingRectEv @ 867 NONAME - _ZNK10QtMobility18QGraphicsVideoItem15aspectRatioModeEv @ 868 NONAME - _ZNK10QtMobility18QGraphicsVideoItem17nativeSizeChangedERK6QSizeF @ 869 NONAME - _ZNK10QtMobility18QGraphicsVideoItem4sizeEv @ 870 NONAME - _ZNK10QtMobility18QGraphicsVideoItem6offsetEv @ 871 NONAME - _ZNK10QtMobility18QMediaTimeInterval10normalizedEv @ 872 NONAME - _ZNK10QtMobility18QMediaTimeInterval10translatedEx @ 873 NONAME - _ZNK10QtMobility18QMediaTimeInterval3endEv @ 874 NONAME - _ZNK10QtMobility18QMediaTimeInterval5startEv @ 875 NONAME - _ZNK10QtMobility18QMediaTimeInterval8containsEx @ 876 NONAME - _ZNK10QtMobility18QMediaTimeInterval8isNormalEv @ 877 NONAME - _ZNK10QtMobility18QRadioTunerControl10metaObjectEv @ 878 NONAME - _ZNK10QtMobility18QStillImageCapture10metaObjectEv @ 879 NONAME - _ZNK10QtMobility18QStillImageCapture11errorStringEv @ 880 NONAME - _ZNK10QtMobility18QStillImageCapture11isAvailableEv @ 881 NONAME - _ZNK10QtMobility18QStillImageCapture16encodingSettingsEv @ 882 NONAME - _ZNK10QtMobility18QStillImageCapture17availabilityErrorEv @ 883 NONAME - _ZNK10QtMobility18QStillImageCapture17isReadyForCaptureEv @ 884 NONAME - _ZNK10QtMobility18QStillImageCapture20supportedImageCodecsEv @ 885 NONAME - _ZNK10QtMobility18QStillImageCapture20supportedResolutionsERKNS_21QImageEncoderSettingsEPb @ 886 NONAME - _ZNK10QtMobility18QStillImageCapture21imageCodecDescriptionERK7QString @ 887 NONAME - _ZNK10QtMobility18QStillImageCapture5errorEv @ 888 NONAME - _ZNK10QtMobility19QAudioCaptureSource10metaObjectEv @ 889 NONAME - _ZNK10QtMobility19QAudioCaptureSource11audioInputsEv @ 890 NONAME - _ZNK10QtMobility19QAudioCaptureSource11isAvailableEv @ 891 NONAME - _ZNK10QtMobility19QAudioCaptureSource16activeAudioInputEv @ 892 NONAME - _ZNK10QtMobility19QAudioCaptureSource16audioDescriptionERK7QString @ 893 NONAME - _ZNK10QtMobility19QAudioCaptureSource17availabilityErrorEv @ 894 NONAME - _ZNK10QtMobility19QAudioCaptureSource17defaultAudioInputEv @ 895 NONAME - _ZNK10QtMobility19QCameraFocusControl10metaObjectEv @ 896 NONAME - _ZNK10QtMobility19QMediaPlayerControl10metaObjectEv @ 897 NONAME - _ZNK10QtMobility19QVideoDeviceControl10metaObjectEv @ 898 NONAME - _ZNK10QtMobility19QVideoOutputControl10metaObjectEv @ 899 NONAME - _ZNK10QtMobility19QVideoWidgetControl10metaObjectEv @ 900 NONAME - _ZNK10QtMobility19QVideoWindowControl10metaObjectEv @ 901 NONAME - _ZNK10QtMobility20QAudioEncoderControl10metaObjectEv @ 902 NONAME - _ZNK10QtMobility20QImageCaptureControl10metaObjectEv @ 903 NONAME - _ZNK10QtMobility20QImageEncoderControl10metaObjectEv @ 904 NONAME - _ZNK10QtMobility20QMediaStreamsControl10metaObjectEv @ 905 NONAME - _ZNK10QtMobility20QVideoEncoderControl10metaObjectEv @ 906 NONAME - _ZNK10QtMobility21QAudioEncoderSettings10sampleRateEv @ 907 NONAME - _ZNK10QtMobility21QAudioEncoderSettings12channelCountEv @ 908 NONAME - _ZNK10QtMobility21QAudioEncoderSettings12encodingModeEv @ 909 NONAME - _ZNK10QtMobility21QAudioEncoderSettings5codecEv @ 910 NONAME - _ZNK10QtMobility21QAudioEncoderSettings6isNullEv @ 911 NONAME - _ZNK10QtMobility21QAudioEncoderSettings7bitRateEv @ 912 NONAME - _ZNK10QtMobility21QAudioEncoderSettings7qualityEv @ 913 NONAME - _ZNK10QtMobility21QAudioEncoderSettingseqERKS0_ @ 914 NONAME - _ZNK10QtMobility21QAudioEncoderSettingsneERKS0_ @ 915 NONAME - _ZNK10QtMobility21QImageEncoderSettings10resolutionEv @ 916 NONAME - _ZNK10QtMobility21QImageEncoderSettings5codecEv @ 917 NONAME - _ZNK10QtMobility21QImageEncoderSettings6isNullEv @ 918 NONAME - _ZNK10QtMobility21QImageEncoderSettings7qualityEv @ 919 NONAME - _ZNK10QtMobility21QImageEncoderSettingseqERKS0_ @ 920 NONAME - _ZNK10QtMobility21QImageEncoderSettingsneERKS0_ @ 921 NONAME - _ZNK10QtMobility21QMediaPlaylistControl10metaObjectEv @ 922 NONAME - _ZNK10QtMobility21QMediaRecorderControl10metaObjectEv @ 923 NONAME - _ZNK10QtMobility21QMediaServiceProvider10hasSupportERK10QByteArrayRK7QStringRK11QStringListi @ 924 NONAME - _ZNK10QtMobility21QMediaServiceProvider10metaObjectEv @ 925 NONAME - _ZNK10QtMobility21QMediaServiceProvider18supportedMimeTypesERK10QByteArrayi @ 926 NONAME - _ZNK10QtMobility21QMediaServiceProvider7devicesERK10QByteArray @ 927 NONAME - _ZNK10QtMobility21QVideoEncoderSettings10resolutionEv @ 928 NONAME - _ZNK10QtMobility21QVideoEncoderSettings12encodingModeEv @ 929 NONAME - _ZNK10QtMobility21QVideoEncoderSettings5codecEv @ 930 NONAME - _ZNK10QtMobility21QVideoEncoderSettings6isNullEv @ 931 NONAME - _ZNK10QtMobility21QVideoEncoderSettings7bitRateEv @ 932 NONAME - _ZNK10QtMobility21QVideoEncoderSettings7qualityEv @ 933 NONAME - _ZNK10QtMobility21QVideoEncoderSettings9frameRateEv @ 934 NONAME - _ZNK10QtMobility21QVideoEncoderSettingseqERKS0_ @ 935 NONAME - _ZNK10QtMobility21QVideoEncoderSettingsneERKS0_ @ 936 NONAME - _ZNK10QtMobility21QVideoRendererControl10metaObjectEv @ 937 NONAME - _ZNK10QtMobility22QAudioEndpointSelector10metaObjectEv @ 938 NONAME - _ZNK10QtMobility22QCameraExposureControl10metaObjectEv @ 939 NONAME - _ZNK10QtMobility22QMediaContainerControl10metaObjectEv @ 940 NONAME - _ZNK10QtMobility22QMediaPlaylistIOPlugin10metaObjectEv @ 941 NONAME - _ZNK10QtMobility22QMediaPlaylistProvider10isReadOnlyEv @ 942 NONAME - _ZNK10QtMobility22QMediaPlaylistProvider10metaObjectEv @ 943 NONAME - _ZNK10QtMobility23QImageProcessingControl10metaObjectEv @ 944 NONAME - _ZNK10QtMobility23QMediaPlaylistNavigator10metaObjectEv @ 945 NONAME - _ZNK10QtMobility23QMediaPlaylistNavigator11currentItemEv @ 946 NONAME - _ZNK10QtMobility23QMediaPlaylistNavigator12currentIndexEv @ 947 NONAME - _ZNK10QtMobility23QMediaPlaylistNavigator12playbackModeEv @ 948 NONAME - _ZNK10QtMobility23QMediaPlaylistNavigator12previousItemEi @ 949 NONAME - _ZNK10QtMobility23QMediaPlaylistNavigator13previousIndexEi @ 950 NONAME - _ZNK10QtMobility23QMediaPlaylistNavigator6itemAtEi @ 951 NONAME - _ZNK10QtMobility23QMediaPlaylistNavigator8nextItemEi @ 952 NONAME - _ZNK10QtMobility23QMediaPlaylistNavigator8playlistEv @ 953 NONAME - _ZNK10QtMobility23QMediaPlaylistNavigator9nextIndexEi @ 954 NONAME - _ZNK10QtMobility25QMediaServiceProviderHint4typeEv @ 955 NONAME - _ZNK10QtMobility25QMediaServiceProviderHint6codecsEv @ 956 NONAME - _ZNK10QtMobility25QMediaServiceProviderHint6deviceEv @ 957 NONAME - _ZNK10QtMobility25QMediaServiceProviderHint6isNullEv @ 958 NONAME - _ZNK10QtMobility25QMediaServiceProviderHint8featuresEv @ 959 NONAME - _ZNK10QtMobility25QMediaServiceProviderHint8mimeTypeEv @ 960 NONAME - _ZNK10QtMobility25QMediaServiceProviderHinteqERKS0_ @ 961 NONAME - _ZNK10QtMobility25QMediaServiceProviderHintneERKS0_ @ 962 NONAME - _ZNK10QtMobility27QLocalMediaPlaylistProvider10isReadOnlyEv @ 963 NONAME - _ZNK10QtMobility27QLocalMediaPlaylistProvider10mediaCountEv @ 964 NONAME - _ZNK10QtMobility27QLocalMediaPlaylistProvider10metaObjectEv @ 965 NONAME - _ZNK10QtMobility27QLocalMediaPlaylistProvider5mediaEi @ 966 NONAME - _ZNK10QtMobility27QMediaServiceProviderPlugin10metaObjectEv @ 967 NONAME - _ZNK10QtMobility7QCamera10metaObjectEv @ 968 NONAME - _ZNK10QtMobility7QCamera11captureModeEv @ 969 NONAME - _ZNK10QtMobility7QCamera11digitalZoomEv @ 970 NONAME - _ZNK10QtMobility7QCamera11errorStringEv @ 971 NONAME - _ZNK10QtMobility7QCamera11focusStatusEv @ 972 NONAME - _ZNK10QtMobility7QCamera11isAvailableEv @ 973 NONAME - _ZNK10QtMobility7QCamera11opticalZoomEv @ 974 NONAME - _ZNK10QtMobility7QCamera12exposureModeEv @ 975 NONAME - _ZNK10QtMobility7QCamera12isFlashReadyEv @ 976 NONAME - _ZNK10QtMobility7QCamera12meteringModeEv @ 977 NONAME - _ZNK10QtMobility7QCamera12shutterSpeedEv @ 978 NONAME - _ZNK10QtMobility7QCamera14isoSensitivityEv @ 979 NONAME - _ZNK10QtMobility7QCamera16isExposureLockedEv @ 980 NONAME - _ZNK10QtMobility7QCamera16whiteBalanceModeEv @ 981 NONAME - _ZNK10QtMobility7QCamera17availabilityErrorEv @ 982 NONAME - _ZNK10QtMobility7QCamera18manualWhiteBalanceEv @ 983 NONAME - _ZNK10QtMobility7QCamera18maximumDigitalZoomEv @ 984 NONAME - _ZNK10QtMobility7QCamera18maximumOpticalZoomEv @ 985 NONAME - _ZNK10QtMobility7QCamera18supportedAperturesEPb @ 986 NONAME - _ZNK10QtMobility7QCamera19supportedFlashModesEv @ 987 NONAME - _ZNK10QtMobility7QCamera19supportedFocusModesEv @ 988 NONAME - _ZNK10QtMobility7QCamera20exposureCompensationEv @ 989 NONAME - _ZNK10QtMobility7QCamera20macroFocusingEnabledEv @ 990 NONAME - _ZNK10QtMobility7QCamera21supportedCaptureModesEv @ 991 NONAME - _ZNK10QtMobility7QCamera22supportedExposureModesEv @ 992 NONAME - _ZNK10QtMobility7QCamera22supportedMeteringModesEv @ 993 NONAME - _ZNK10QtMobility7QCamera22supportedShutterSpeedsEPb @ 994 NONAME - _ZNK10QtMobility7QCamera24isMacroFocusingSupportedEv @ 995 NONAME - _ZNK10QtMobility7QCamera25supportedIsoSensitivitiesEPb @ 996 NONAME - _ZNK10QtMobility7QCamera26supportedWhiteBalanceModesEv @ 997 NONAME - _ZNK10QtMobility7QCamera5errorEv @ 998 NONAME - _ZNK10QtMobility7QCamera5stateEv @ 999 NONAME - _ZNK10QtMobility7QCamera8apertureEv @ 1000 NONAME - _ZNK10QtMobility7QCamera9flashModeEv @ 1001 NONAME - _ZNK10QtMobility7QCamera9focusModeEv @ 1002 NONAME - _ZTIN10QtMobility11QRadioTunerE @ 1003 NONAME ; ## - _ZTIN10QtMobility12QMediaObjectE @ 1004 NONAME ; ## - _ZTIN10QtMobility12QMediaPlayerE @ 1005 NONAME ; ## - _ZTIN10QtMobility12QVideoWidgetE @ 1006 NONAME ; ## - _ZTIN10QtMobility13QMediaControlE @ 1007 NONAME ; ## - _ZTIN10QtMobility13QMediaServiceE @ 1008 NONAME ; ## - _ZTIN10QtMobility14QCameraControlE @ 1009 NONAME ; ## - _ZTIN10QtMobility14QMediaPlaylistE @ 1010 NONAME ; ## - _ZTIN10QtMobility14QMediaRecorderE @ 1011 NONAME ; ## - _ZTIN10QtMobility16QMetaDataControlE @ 1012 NONAME ; ## - _ZTIN10QtMobility17QMediaImageViewerE @ 1013 NONAME ; ## - _ZTIN10QtMobility18QGraphicsVideoItemE @ 1014 NONAME ; ## - _ZTIN10QtMobility18QRadioTunerControlE @ 1015 NONAME ; ## - _ZTIN10QtMobility18QStillImageCaptureE @ 1016 NONAME ; ## - _ZTIN10QtMobility19QAudioCaptureSourceE @ 1017 NONAME ; ## - _ZTIN10QtMobility19QCameraFocusControlE @ 1018 NONAME ; ## - _ZTIN10QtMobility19QMediaPlayerControlE @ 1019 NONAME ; ## - _ZTIN10QtMobility19QVideoDeviceControlE @ 1020 NONAME ; ## - _ZTIN10QtMobility19QVideoOutputControlE @ 1021 NONAME ; ## - _ZTIN10QtMobility19QVideoWidgetControlE @ 1022 NONAME ; ## - _ZTIN10QtMobility19QVideoWindowControlE @ 1023 NONAME ; ## - _ZTIN10QtMobility20QAudioEncoderControlE @ 1024 NONAME ; ## - _ZTIN10QtMobility20QImageCaptureControlE @ 1025 NONAME ; ## - _ZTIN10QtMobility20QImageEncoderControlE @ 1026 NONAME ; ## - _ZTIN10QtMobility20QMediaPlaylistReaderE @ 1027 NONAME ; ## - _ZTIN10QtMobility20QMediaPlaylistWriterE @ 1028 NONAME ; ## - _ZTIN10QtMobility20QMediaStreamsControlE @ 1029 NONAME ; ## - _ZTIN10QtMobility20QVideoEncoderControlE @ 1030 NONAME ; ## - _ZTIN10QtMobility21QMediaPlaylistControlE @ 1031 NONAME ; ## - _ZTIN10QtMobility21QMediaRecorderControlE @ 1032 NONAME ; ## - _ZTIN10QtMobility21QMediaServiceProviderE @ 1033 NONAME ; ## - _ZTIN10QtMobility21QVideoRendererControlE @ 1034 NONAME ; ## - _ZTIN10QtMobility22QAudioEndpointSelectorE @ 1035 NONAME ; ## - _ZTIN10QtMobility22QCameraExposureControlE @ 1036 NONAME ; ## - _ZTIN10QtMobility22QMediaContainerControlE @ 1037 NONAME ; ## - _ZTIN10QtMobility22QMediaPlaylistIOPluginE @ 1038 NONAME ; ## - _ZTIN10QtMobility22QMediaPlaylistProviderE @ 1039 NONAME ; ## - _ZTIN10QtMobility23QImageProcessingControlE @ 1040 NONAME ; ## - _ZTIN10QtMobility23QMediaPlaylistNavigatorE @ 1041 NONAME ; ## - _ZTIN10QtMobility25QMediaPlaylistIOInterfaceE @ 1042 NONAME ; ## - _ZTIN10QtMobility27QLocalMediaPlaylistProviderE @ 1043 NONAME ; ## - _ZTIN10QtMobility27QMediaServiceProviderPluginE @ 1044 NONAME ; ## - _ZTIN10QtMobility37QMediaServiceProviderFactoryInterfaceE @ 1045 NONAME ; ## - _ZTIN10QtMobility7QCameraE @ 1046 NONAME ; ## - _ZTVN10QtMobility11QRadioTunerE @ 1047 NONAME ; ## - _ZTVN10QtMobility12QMediaObjectE @ 1048 NONAME ; ## - _ZTVN10QtMobility12QMediaPlayerE @ 1049 NONAME ; ## - _ZTVN10QtMobility12QVideoWidgetE @ 1050 NONAME ; ## - _ZTVN10QtMobility13QMediaControlE @ 1051 NONAME ; ## - _ZTVN10QtMobility13QMediaServiceE @ 1052 NONAME ; ## - _ZTVN10QtMobility14QCameraControlE @ 1053 NONAME ; ## - _ZTVN10QtMobility14QMediaPlaylistE @ 1054 NONAME ; ## - _ZTVN10QtMobility14QMediaRecorderE @ 1055 NONAME ; ## - _ZTVN10QtMobility16QMetaDataControlE @ 1056 NONAME ; ## - _ZTVN10QtMobility17QMediaImageViewerE @ 1057 NONAME ; ## - _ZTVN10QtMobility18QGraphicsVideoItemE @ 1058 NONAME ; ## - _ZTVN10QtMobility18QRadioTunerControlE @ 1059 NONAME ; ## - _ZTVN10QtMobility18QStillImageCaptureE @ 1060 NONAME ; ## - _ZTVN10QtMobility19QAudioCaptureSourceE @ 1061 NONAME ; ## - _ZTVN10QtMobility19QCameraFocusControlE @ 1062 NONAME ; ## - _ZTVN10QtMobility19QMediaPlayerControlE @ 1063 NONAME ; ## - _ZTVN10QtMobility19QVideoDeviceControlE @ 1064 NONAME ; ## - _ZTVN10QtMobility19QVideoOutputControlE @ 1065 NONAME ; ## - _ZTVN10QtMobility19QVideoWidgetControlE @ 1066 NONAME ; ## - _ZTVN10QtMobility19QVideoWindowControlE @ 1067 NONAME ; ## - _ZTVN10QtMobility20QAudioEncoderControlE @ 1068 NONAME ; ## - _ZTVN10QtMobility20QImageCaptureControlE @ 1069 NONAME ; ## - _ZTVN10QtMobility20QImageEncoderControlE @ 1070 NONAME ; ## - _ZTVN10QtMobility20QMediaPlaylistReaderE @ 1071 NONAME ; ## - _ZTVN10QtMobility20QMediaPlaylistWriterE @ 1072 NONAME ; ## - _ZTVN10QtMobility20QMediaStreamsControlE @ 1073 NONAME ; ## - _ZTVN10QtMobility20QVideoEncoderControlE @ 1074 NONAME ; ## - _ZTVN10QtMobility21QMediaPlaylistControlE @ 1075 NONAME ; ## - _ZTVN10QtMobility21QMediaRecorderControlE @ 1076 NONAME ; ## - _ZTVN10QtMobility21QMediaServiceProviderE @ 1077 NONAME ; ## - _ZTVN10QtMobility21QVideoRendererControlE @ 1078 NONAME ; ## - _ZTVN10QtMobility22QAudioEndpointSelectorE @ 1079 NONAME ; ## - _ZTVN10QtMobility22QCameraExposureControlE @ 1080 NONAME ; ## - _ZTVN10QtMobility22QMediaContainerControlE @ 1081 NONAME ; ## - _ZTVN10QtMobility22QMediaPlaylistIOPluginE @ 1082 NONAME ; ## - _ZTVN10QtMobility22QMediaPlaylistProviderE @ 1083 NONAME ; ## - _ZTVN10QtMobility23QImageProcessingControlE @ 1084 NONAME ; ## - _ZTVN10QtMobility23QMediaPlaylistNavigatorE @ 1085 NONAME ; ## - _ZTVN10QtMobility27QLocalMediaPlaylistProviderE @ 1086 NONAME ; ## - _ZTVN10QtMobility27QMediaServiceProviderPluginE @ 1087 NONAME ; ## - _ZTVN10QtMobility7QCameraE @ 1088 NONAME ; ## - _ZThn8_N10QtMobility12QVideoWidgetD0Ev @ 1089 NONAME ; ## - _ZThn8_N10QtMobility12QVideoWidgetD1Ev @ 1090 NONAME ; ## - _ZThn8_N10QtMobility18QGraphicsVideoItem10itemChangeEN13QGraphicsItem18GraphicsItemChangeERK8QVariant @ 1091 NONAME ; ## - _ZThn8_N10QtMobility18QGraphicsVideoItem5paintEP8QPainterPK24QStyleOptionGraphicsItemP7QWidget @ 1092 NONAME ; ## - _ZThn8_N10QtMobility18QGraphicsVideoItemD0Ev @ 1093 NONAME ; ## - _ZThn8_N10QtMobility18QGraphicsVideoItemD1Ev @ 1094 NONAME ; ## - _ZThn8_N10QtMobility22QMediaPlaylistIOPluginD0Ev @ 1095 NONAME ; ## - _ZThn8_N10QtMobility22QMediaPlaylistIOPluginD1Ev @ 1096 NONAME ; ## - _ZThn8_NK10QtMobility18QGraphicsVideoItem12boundingRectEv @ 1097 NONAME ; ## + _ZN10QtMobility13QMediaContentC1ERK15QNetworkRequest @ 114 NONAME + _ZN10QtMobility13QMediaContentC1ERK4QUrl @ 115 NONAME + _ZN10QtMobility13QMediaContentC1ERK5QListINS_14QMediaResourceEE @ 116 NONAME + _ZN10QtMobility13QMediaContentC1ERKNS_14QMediaResourceE @ 117 NONAME + _ZN10QtMobility13QMediaContentC1ERKS0_ @ 118 NONAME + _ZN10QtMobility13QMediaContentC1Ev @ 119 NONAME + _ZN10QtMobility13QMediaContentC2ERK15QNetworkRequest @ 120 NONAME + _ZN10QtMobility13QMediaContentC2ERK4QUrl @ 121 NONAME + _ZN10QtMobility13QMediaContentC2ERK5QListINS_14QMediaResourceEE @ 122 NONAME + _ZN10QtMobility13QMediaContentC2ERKNS_14QMediaResourceE @ 123 NONAME + _ZN10QtMobility13QMediaContentC2ERKS0_ @ 124 NONAME + _ZN10QtMobility13QMediaContentC2Ev @ 125 NONAME + _ZN10QtMobility13QMediaContentD1Ev @ 126 NONAME + _ZN10QtMobility13QMediaContentD2Ev @ 127 NONAME + _ZN10QtMobility13QMediaContentaSERKS0_ @ 128 NONAME + _ZN10QtMobility13QMediaControl11qt_metacallEN11QMetaObject4CallEiPPv @ 129 NONAME + _ZN10QtMobility13QMediaControl11qt_metacastEPKc @ 130 NONAME + _ZN10QtMobility13QMediaControl16staticMetaObjectE @ 131 NONAME DATA 16 + _ZN10QtMobility13QMediaControl19getStaticMetaObjectEv @ 132 NONAME + _ZN10QtMobility13QMediaControlC1EP7QObject @ 133 NONAME + _ZN10QtMobility13QMediaControlC1ERNS_20QMediaControlPrivateEP7QObject @ 134 NONAME + _ZN10QtMobility13QMediaControlC2EP7QObject @ 135 NONAME + _ZN10QtMobility13QMediaControlC2ERNS_20QMediaControlPrivateEP7QObject @ 136 NONAME + _ZN10QtMobility13QMediaControlD0Ev @ 137 NONAME + _ZN10QtMobility13QMediaControlD1Ev @ 138 NONAME + _ZN10QtMobility13QMediaControlD2Ev @ 139 NONAME + _ZN10QtMobility13QMediaService11qt_metacallEN11QMetaObject4CallEiPPv @ 140 NONAME + _ZN10QtMobility13QMediaService11qt_metacastEPKc @ 141 NONAME + _ZN10QtMobility13QMediaService16staticMetaObjectE @ 142 NONAME DATA 16 + _ZN10QtMobility13QMediaService19getStaticMetaObjectEv @ 143 NONAME + _ZN10QtMobility13QMediaServiceC2EP7QObject @ 144 NONAME + _ZN10QtMobility13QMediaServiceC2ERNS_20QMediaServicePrivateEP7QObject @ 145 NONAME + _ZN10QtMobility13QMediaServiceD0Ev @ 146 NONAME + _ZN10QtMobility13QMediaServiceD1Ev @ 147 NONAME + _ZN10QtMobility13QMediaServiceD2Ev @ 148 NONAME + _ZN10QtMobility14QMediaPlaylist10loadFailedEv @ 149 NONAME + _ZN10QtMobility14QMediaPlaylist11insertMediaEiRK5QListINS_13QMediaContentEE @ 150 NONAME + _ZN10QtMobility14QMediaPlaylist11insertMediaEiRKNS_13QMediaContentE @ 151 NONAME + _ZN10QtMobility14QMediaPlaylist11qt_metacallEN11QMetaObject4CallEiPPv @ 152 NONAME + _ZN10QtMobility14QMediaPlaylist11qt_metacastEPKc @ 153 NONAME + _ZN10QtMobility14QMediaPlaylist11removeMediaEi @ 154 NONAME + _ZN10QtMobility14QMediaPlaylist11removeMediaEii @ 155 NONAME + _ZN10QtMobility14QMediaPlaylist12mediaChangedEii @ 156 NONAME + _ZN10QtMobility14QMediaPlaylist12mediaRemovedEii @ 157 NONAME + _ZN10QtMobility14QMediaPlaylist13mediaInsertedEii @ 158 NONAME + _ZN10QtMobility14QMediaPlaylist14setMediaObjectEPNS_12QMediaObjectE @ 159 NONAME + _ZN10QtMobility14QMediaPlaylist15setCurrentIndexEi @ 160 NONAME + _ZN10QtMobility14QMediaPlaylist15setPlaybackModeENS0_12PlaybackModeE @ 161 NONAME + _ZN10QtMobility14QMediaPlaylist16staticMetaObjectE @ 162 NONAME DATA 16 + _ZN10QtMobility14QMediaPlaylist19currentIndexChangedEi @ 163 NONAME + _ZN10QtMobility14QMediaPlaylist19currentMediaChangedERKNS_13QMediaContentE @ 164 NONAME + _ZN10QtMobility14QMediaPlaylist19getStaticMetaObjectEv @ 165 NONAME + _ZN10QtMobility14QMediaPlaylist19playbackModeChangedENS0_12PlaybackModeE @ 166 NONAME + _ZN10QtMobility14QMediaPlaylist21mediaAboutToBeRemovedEii @ 167 NONAME + _ZN10QtMobility14QMediaPlaylist22mediaAboutToBeInsertedEii @ 168 NONAME + _ZN10QtMobility14QMediaPlaylist4loadEP9QIODevicePKc @ 169 NONAME + _ZN10QtMobility14QMediaPlaylist4loadERK4QUrlPKc @ 170 NONAME + _ZN10QtMobility14QMediaPlaylist4nextEv @ 171 NONAME + _ZN10QtMobility14QMediaPlaylist4saveEP9QIODevicePKc @ 172 NONAME + _ZN10QtMobility14QMediaPlaylist4saveERK4QUrlPKc @ 173 NONAME + _ZN10QtMobility14QMediaPlaylist5clearEv @ 174 NONAME + _ZN10QtMobility14QMediaPlaylist6loadedEv @ 175 NONAME + _ZN10QtMobility14QMediaPlaylist7shuffleEv @ 176 NONAME + _ZN10QtMobility14QMediaPlaylist8addMediaERK5QListINS_13QMediaContentEE @ 177 NONAME + _ZN10QtMobility14QMediaPlaylist8addMediaERKNS_13QMediaContentE @ 178 NONAME + _ZN10QtMobility14QMediaPlaylist8previousEv @ 179 NONAME + _ZN10QtMobility14QMediaPlaylistC1EP7QObject @ 180 NONAME + _ZN10QtMobility14QMediaPlaylistC2EP7QObject @ 181 NONAME + _ZN10QtMobility14QMediaPlaylistD0Ev @ 182 NONAME + _ZN10QtMobility14QMediaPlaylistD1Ev @ 183 NONAME + _ZN10QtMobility14QMediaPlaylistD2Ev @ 184 NONAME + _ZN10QtMobility14QMediaRecorder11qt_metacallEN11QMetaObject4CallEiPPv @ 185 NONAME + _ZN10QtMobility14QMediaRecorder11qt_metacastEPKc @ 186 NONAME + _ZN10QtMobility14QMediaRecorder12stateChangedENS0_5StateE @ 187 NONAME + _ZN10QtMobility14QMediaRecorder15durationChangedEx @ 188 NONAME + _ZN10QtMobility14QMediaRecorder16staticMetaObjectE @ 189 NONAME DATA 16 + _ZN10QtMobility14QMediaRecorder17setOutputLocationERK4QUrl @ 190 NONAME + _ZN10QtMobility14QMediaRecorder19getStaticMetaObjectEv @ 191 NONAME + _ZN10QtMobility14QMediaRecorder19setEncodingSettingsERKNS_21QAudioEncoderSettingsERKNS_21QVideoEncoderSettingsERK7QString @ 192 NONAME + _ZN10QtMobility14QMediaRecorder4stopEv @ 193 NONAME + _ZN10QtMobility14QMediaRecorder5errorENS0_5ErrorE @ 194 NONAME + _ZN10QtMobility14QMediaRecorder5pauseEv @ 195 NONAME + _ZN10QtMobility14QMediaRecorder6recordEv @ 196 NONAME + _ZN10QtMobility14QMediaRecorderC1EPNS_12QMediaObjectEP7QObject @ 197 NONAME + _ZN10QtMobility14QMediaRecorderC2EPNS_12QMediaObjectEP7QObject @ 198 NONAME + _ZN10QtMobility14QMediaRecorderD0Ev @ 199 NONAME + _ZN10QtMobility14QMediaRecorderD1Ev @ 200 NONAME + _ZN10QtMobility14QMediaRecorderD2Ev @ 201 NONAME + _ZN10QtMobility14QMediaResource11setDataSizeEx @ 202 NONAME + _ZN10QtMobility14QMediaResource11setLanguageERK7QString @ 203 NONAME + _ZN10QtMobility14QMediaResource13setAudioCodecERK7QString @ 204 NONAME + _ZN10QtMobility14QMediaResource13setResolutionERK5QSize @ 205 NONAME + _ZN10QtMobility14QMediaResource13setResolutionEii @ 206 NONAME + _ZN10QtMobility14QMediaResource13setSampleRateEi @ 207 NONAME + _ZN10QtMobility14QMediaResource13setVideoCodecERK7QString @ 208 NONAME + _ZN10QtMobility14QMediaResource15setAudioBitRateEi @ 209 NONAME + _ZN10QtMobility14QMediaResource15setChannelCountEi @ 210 NONAME + _ZN10QtMobility14QMediaResource15setVideoBitRateEi @ 211 NONAME + _ZN10QtMobility14QMediaResourceC1ERK15QNetworkRequestRK7QString @ 212 NONAME + _ZN10QtMobility14QMediaResourceC1ERK4QUrlRK7QString @ 213 NONAME + _ZN10QtMobility14QMediaResourceC1ERKS0_ @ 214 NONAME + _ZN10QtMobility14QMediaResourceC1Ev @ 215 NONAME + _ZN10QtMobility14QMediaResourceC2ERK15QNetworkRequestRK7QString @ 216 NONAME + _ZN10QtMobility14QMediaResourceC2ERK4QUrlRK7QString @ 217 NONAME + _ZN10QtMobility14QMediaResourceC2ERKS0_ @ 218 NONAME + _ZN10QtMobility14QMediaResourceC2Ev @ 219 NONAME + _ZN10QtMobility14QMediaResourceD1Ev @ 220 NONAME + _ZN10QtMobility14QMediaResourceD2Ev @ 221 NONAME + _ZN10QtMobility14QMediaResourceaSERKS0_ @ 222 NONAME + _ZN10QtMobility15QMediaTimeRange11addIntervalERKNS_18QMediaTimeIntervalE @ 223 NONAME + _ZN10QtMobility15QMediaTimeRange11addIntervalExx @ 224 NONAME + _ZN10QtMobility15QMediaTimeRange12addTimeRangeERKS0_ @ 225 NONAME + _ZN10QtMobility15QMediaTimeRange14removeIntervalERKNS_18QMediaTimeIntervalE @ 226 NONAME + _ZN10QtMobility15QMediaTimeRange14removeIntervalExx @ 227 NONAME + _ZN10QtMobility15QMediaTimeRange15removeTimeRangeERKS0_ @ 228 NONAME + _ZN10QtMobility15QMediaTimeRange5clearEv @ 229 NONAME + _ZN10QtMobility15QMediaTimeRangeC1ERKNS_18QMediaTimeIntervalE @ 230 NONAME + _ZN10QtMobility15QMediaTimeRangeC1ERKS0_ @ 231 NONAME + _ZN10QtMobility15QMediaTimeRangeC1Ev @ 232 NONAME + _ZN10QtMobility15QMediaTimeRangeC1Exx @ 233 NONAME + _ZN10QtMobility15QMediaTimeRangeC2ERKNS_18QMediaTimeIntervalE @ 234 NONAME + _ZN10QtMobility15QMediaTimeRangeC2ERKS0_ @ 235 NONAME + _ZN10QtMobility15QMediaTimeRangeC2Ev @ 236 NONAME + _ZN10QtMobility15QMediaTimeRangeC2Exx @ 237 NONAME + _ZN10QtMobility15QMediaTimeRangeD1Ev @ 238 NONAME + _ZN10QtMobility15QMediaTimeRangeD2Ev @ 239 NONAME + _ZN10QtMobility15QMediaTimeRangeaSERKNS_18QMediaTimeIntervalE @ 240 NONAME + _ZN10QtMobility15QMediaTimeRangeaSERKS0_ @ 241 NONAME + _ZN10QtMobility15QMediaTimeRangemIERKNS_18QMediaTimeIntervalE @ 242 NONAME + _ZN10QtMobility15QMediaTimeRangemIERKS0_ @ 243 NONAME + _ZN10QtMobility15QMediaTimeRangepLERKNS_18QMediaTimeIntervalE @ 244 NONAME + _ZN10QtMobility15QMediaTimeRangepLERKS0_ @ 245 NONAME + _ZN10QtMobility16QMetaDataControl11qt_metacallEN11QMetaObject4CallEiPPv @ 246 NONAME + _ZN10QtMobility16QMetaDataControl11qt_metacastEPKc @ 247 NONAME + _ZN10QtMobility16QMetaDataControl15metaDataChangedEv @ 248 NONAME + _ZN10QtMobility16QMetaDataControl15writableChangedEb @ 249 NONAME + _ZN10QtMobility16QMetaDataControl16staticMetaObjectE @ 250 NONAME DATA 16 + _ZN10QtMobility16QMetaDataControl19getStaticMetaObjectEv @ 251 NONAME + _ZN10QtMobility16QMetaDataControl24metaDataAvailableChangedEb @ 252 NONAME + _ZN10QtMobility16QMetaDataControlC2EP7QObject @ 253 NONAME + _ZN10QtMobility16QMetaDataControlD0Ev @ 254 NONAME + _ZN10QtMobility16QMetaDataControlD1Ev @ 255 NONAME + _ZN10QtMobility16QMetaDataControlD2Ev @ 256 NONAME + _ZN10QtMobility17QMediaImageViewer10setTimeoutEi @ 257 NONAME + _ZN10QtMobility17QMediaImageViewer10timerEventEP11QTimerEvent @ 258 NONAME + _ZN10QtMobility17QMediaImageViewer11qt_metacallEN11QMetaObject4CallEiPPv @ 259 NONAME + _ZN10QtMobility17QMediaImageViewer11qt_metacastEPKc @ 260 NONAME + _ZN10QtMobility17QMediaImageViewer12mediaChangedERKNS_13QMediaContentE @ 261 NONAME + _ZN10QtMobility17QMediaImageViewer12stateChangedENS0_5StateE @ 262 NONAME + _ZN10QtMobility17QMediaImageViewer16staticMetaObjectE @ 263 NONAME DATA 16 + _ZN10QtMobility17QMediaImageViewer18elapsedTimeChangedEi @ 264 NONAME + _ZN10QtMobility17QMediaImageViewer18mediaStatusChangedENS0_11MediaStatusE @ 265 NONAME + _ZN10QtMobility17QMediaImageViewer19getStaticMetaObjectEv @ 266 NONAME + _ZN10QtMobility17QMediaImageViewer4bindEP7QObject @ 267 NONAME + _ZN10QtMobility17QMediaImageViewer4playEv @ 268 NONAME + _ZN10QtMobility17QMediaImageViewer4stopEv @ 269 NONAME + _ZN10QtMobility17QMediaImageViewer5pauseEv @ 270 NONAME + _ZN10QtMobility17QMediaImageViewer6unbindEP7QObject @ 271 NONAME + _ZN10QtMobility17QMediaImageViewer8setMediaERKNS_13QMediaContentE @ 272 NONAME + _ZN10QtMobility17QMediaImageViewerC1EP7QObject @ 273 NONAME + _ZN10QtMobility17QMediaImageViewerC2EP7QObject @ 274 NONAME + _ZN10QtMobility17QMediaImageViewerD0Ev @ 275 NONAME + _ZN10QtMobility17QMediaImageViewerD1Ev @ 276 NONAME + _ZN10QtMobility17QMediaImageViewerD2Ev @ 277 NONAME + _ZN10QtMobility18QGraphicsVideoItem10itemChangeEN13QGraphicsItem18GraphicsItemChangeERK8QVariant @ 278 NONAME + _ZN10QtMobility18QGraphicsVideoItem10timerEventEP11QTimerEvent @ 279 NONAME + _ZN10QtMobility18QGraphicsVideoItem11qt_metacallEN11QMetaObject4CallEiPPv @ 280 NONAME + _ZN10QtMobility18QGraphicsVideoItem11qt_metacastEPKc @ 281 NONAME + _ZN10QtMobility18QGraphicsVideoItem14setMediaObjectEPNS_12QMediaObjectE @ 282 NONAME + _ZN10QtMobility18QGraphicsVideoItem16staticMetaObjectE @ 283 NONAME DATA 16 + _ZN10QtMobility18QGraphicsVideoItem17nativeSizeChangedERK6QSizeF @ 284 NONAME + _ZN10QtMobility18QGraphicsVideoItem18setAspectRatioModeEN2Qt15AspectRatioModeE @ 285 NONAME + _ZN10QtMobility18QGraphicsVideoItem19getStaticMetaObjectEv @ 286 NONAME + _ZN10QtMobility18QGraphicsVideoItem5paintEP8QPainterPK24QStyleOptionGraphicsItemP7QWidget @ 287 NONAME + _ZN10QtMobility18QGraphicsVideoItem7setSizeERK6QSizeF @ 288 NONAME + _ZN10QtMobility18QGraphicsVideoItem9setOffsetERK7QPointF @ 289 NONAME + _ZN10QtMobility18QGraphicsVideoItemC1EP13QGraphicsItem @ 290 NONAME + _ZN10QtMobility18QGraphicsVideoItemC2EP13QGraphicsItem @ 291 NONAME + _ZN10QtMobility18QGraphicsVideoItemD0Ev @ 292 NONAME + _ZN10QtMobility18QGraphicsVideoItemD1Ev @ 293 NONAME + _ZN10QtMobility18QGraphicsVideoItemD2Ev @ 294 NONAME + _ZN10QtMobility18QMediaTimeIntervalC1ERKS0_ @ 295 NONAME + _ZN10QtMobility18QMediaTimeIntervalC1Ev @ 296 NONAME + _ZN10QtMobility18QMediaTimeIntervalC1Exx @ 297 NONAME + _ZN10QtMobility18QMediaTimeIntervalC2ERKS0_ @ 298 NONAME + _ZN10QtMobility18QMediaTimeIntervalC2Ev @ 299 NONAME + _ZN10QtMobility18QMediaTimeIntervalC2Exx @ 300 NONAME + _ZN10QtMobility18QRadioTunerControl11bandChangedENS_11QRadioTuner4BandE @ 301 NONAME + _ZN10QtMobility18QRadioTunerControl11qt_metacallEN11QMetaObject4CallEiPPv @ 302 NONAME + _ZN10QtMobility18QRadioTunerControl11qt_metacastEPKc @ 303 NONAME + _ZN10QtMobility18QRadioTunerControl12mutedChangedEb @ 304 NONAME + _ZN10QtMobility18QRadioTunerControl12stateChangedENS_11QRadioTuner5StateE @ 305 NONAME + _ZN10QtMobility18QRadioTunerControl13volumeChangedEi @ 306 NONAME + _ZN10QtMobility18QRadioTunerControl16frequencyChangedEi @ 307 NONAME + _ZN10QtMobility18QRadioTunerControl16searchingChangedEb @ 308 NONAME + _ZN10QtMobility18QRadioTunerControl16staticMetaObjectE @ 309 NONAME DATA 16 + _ZN10QtMobility18QRadioTunerControl19getStaticMetaObjectEv @ 310 NONAME + _ZN10QtMobility18QRadioTunerControl19stereoStatusChangedEb @ 311 NONAME + _ZN10QtMobility18QRadioTunerControl21signalStrengthChangedEi @ 312 NONAME + _ZN10QtMobility18QRadioTunerControl5errorENS_11QRadioTuner5ErrorE @ 313 NONAME + _ZN10QtMobility18QRadioTunerControlC2EP7QObject @ 314 NONAME + _ZN10QtMobility18QRadioTunerControlD0Ev @ 315 NONAME + _ZN10QtMobility18QRadioTunerControlD1Ev @ 316 NONAME + _ZN10QtMobility18QRadioTunerControlD2Ev @ 317 NONAME + _ZN10QtMobility19QAudioCaptureSource11qt_metacallEN11QMetaObject4CallEiPPv @ 318 NONAME + _ZN10QtMobility19QAudioCaptureSource11qt_metacastEPKc @ 319 NONAME + _ZN10QtMobility19QAudioCaptureSource13setAudioInputERK7QString @ 320 NONAME + _ZN10QtMobility19QAudioCaptureSource13statusChangedEv @ 321 NONAME + _ZN10QtMobility19QAudioCaptureSource16staticMetaObjectE @ 322 NONAME DATA 16 + _ZN10QtMobility19QAudioCaptureSource19getStaticMetaObjectEv @ 323 NONAME + _ZN10QtMobility19QAudioCaptureSource23activeAudioInputChangedERK7QString @ 324 NONAME + _ZN10QtMobility19QAudioCaptureSource27availableAudioInputsChangedEv @ 325 NONAME + _ZN10QtMobility19QAudioCaptureSourceC1EP7QObjectPNS_21QMediaServiceProviderE @ 326 NONAME + _ZN10QtMobility19QAudioCaptureSourceC1EPNS_12QMediaObjectEP7QObject @ 327 NONAME + _ZN10QtMobility19QAudioCaptureSourceC2EP7QObjectPNS_21QMediaServiceProviderE @ 328 NONAME + _ZN10QtMobility19QAudioCaptureSourceC2EPNS_12QMediaObjectEP7QObject @ 329 NONAME + _ZN10QtMobility19QAudioCaptureSourceD0Ev @ 330 NONAME + _ZN10QtMobility19QAudioCaptureSourceD1Ev @ 331 NONAME + _ZN10QtMobility19QAudioCaptureSourceD2Ev @ 332 NONAME + _ZN10QtMobility19QMediaPlayerControl11qt_metacallEN11QMetaObject4CallEiPPv @ 333 NONAME + _ZN10QtMobility19QMediaPlayerControl11qt_metacastEPKc @ 334 NONAME + _ZN10QtMobility19QMediaPlayerControl12mediaChangedERKNS_13QMediaContentE @ 335 NONAME + _ZN10QtMobility19QMediaPlayerControl12mutedChangedEb @ 336 NONAME + _ZN10QtMobility19QMediaPlayerControl12stateChangedENS_12QMediaPlayer5StateE @ 337 NONAME + _ZN10QtMobility19QMediaPlayerControl13volumeChangedEi @ 338 NONAME + _ZN10QtMobility19QMediaPlayerControl15durationChangedEx @ 339 NONAME + _ZN10QtMobility19QMediaPlayerControl15positionChangedEx @ 340 NONAME + _ZN10QtMobility19QMediaPlayerControl15seekableChangedEb @ 341 NONAME + _ZN10QtMobility19QMediaPlayerControl16staticMetaObjectE @ 342 NONAME DATA 16 + _ZN10QtMobility19QMediaPlayerControl18mediaStatusChangedENS_12QMediaPlayer11MediaStatusE @ 343 NONAME + _ZN10QtMobility19QMediaPlayerControl19bufferStatusChangedEi @ 344 NONAME + _ZN10QtMobility19QMediaPlayerControl19getStaticMetaObjectEv @ 345 NONAME + _ZN10QtMobility19QMediaPlayerControl19playbackRateChangedEf @ 346 NONAME + _ZN10QtMobility19QMediaPlayerControl21audioAvailableChangedEb @ 347 NONAME + _ZN10QtMobility19QMediaPlayerControl21videoAvailableChangedEb @ 348 NONAME + _ZN10QtMobility19QMediaPlayerControl30availablePlaybackRangesChangedERKNS_15QMediaTimeRangeE @ 349 NONAME + _ZN10QtMobility19QMediaPlayerControl5errorEiRK7QString @ 350 NONAME + _ZN10QtMobility19QMediaPlayerControlC2EP7QObject @ 351 NONAME + _ZN10QtMobility19QMediaPlayerControlD0Ev @ 352 NONAME + _ZN10QtMobility19QMediaPlayerControlD1Ev @ 353 NONAME + _ZN10QtMobility19QMediaPlayerControlD2Ev @ 354 NONAME + _ZN10QtMobility19QVideoDeviceControl11qt_metacallEN11QMetaObject4CallEiPPv @ 355 NONAME + _ZN10QtMobility19QVideoDeviceControl11qt_metacastEPKc @ 356 NONAME + _ZN10QtMobility19QVideoDeviceControl14devicesChangedEv @ 357 NONAME + _ZN10QtMobility19QVideoDeviceControl16staticMetaObjectE @ 358 NONAME DATA 16 + _ZN10QtMobility19QVideoDeviceControl19getStaticMetaObjectEv @ 359 NONAME + _ZN10QtMobility19QVideoDeviceControl21selectedDeviceChangedERK7QString @ 360 NONAME + _ZN10QtMobility19QVideoDeviceControl21selectedDeviceChangedEi @ 361 NONAME + _ZN10QtMobility19QVideoDeviceControlC2EP7QObject @ 362 NONAME + _ZN10QtMobility19QVideoDeviceControlD0Ev @ 363 NONAME + _ZN10QtMobility19QVideoDeviceControlD1Ev @ 364 NONAME + _ZN10QtMobility19QVideoDeviceControlD2Ev @ 365 NONAME + _ZN10QtMobility19QVideoOutputControl11qt_metacallEN11QMetaObject4CallEiPPv @ 366 NONAME + _ZN10QtMobility19QVideoOutputControl11qt_metacastEPKc @ 367 NONAME + _ZN10QtMobility19QVideoOutputControl16staticMetaObjectE @ 368 NONAME DATA 16 + _ZN10QtMobility19QVideoOutputControl19getStaticMetaObjectEv @ 369 NONAME + _ZN10QtMobility19QVideoOutputControl23availableOutputsChangedERK5QListINS0_6OutputEE @ 370 NONAME + _ZN10QtMobility19QVideoOutputControlC2EP7QObject @ 371 NONAME + _ZN10QtMobility19QVideoOutputControlD0Ev @ 372 NONAME + _ZN10QtMobility19QVideoOutputControlD1Ev @ 373 NONAME + _ZN10QtMobility19QVideoOutputControlD2Ev @ 374 NONAME + _ZN10QtMobility19QVideoWidgetControl10hueChangedEi @ 375 NONAME + _ZN10QtMobility19QVideoWidgetControl11qt_metacallEN11QMetaObject4CallEiPPv @ 376 NONAME + _ZN10QtMobility19QVideoWidgetControl11qt_metacastEPKc @ 377 NONAME + _ZN10QtMobility19QVideoWidgetControl15contrastChangedEi @ 378 NONAME + _ZN10QtMobility19QVideoWidgetControl16staticMetaObjectE @ 379 NONAME DATA 16 + _ZN10QtMobility19QVideoWidgetControl17brightnessChangedEi @ 380 NONAME + _ZN10QtMobility19QVideoWidgetControl17fullScreenChangedEb @ 381 NONAME + _ZN10QtMobility19QVideoWidgetControl17saturationChangedEi @ 382 NONAME + _ZN10QtMobility19QVideoWidgetControl19getStaticMetaObjectEv @ 383 NONAME + _ZN10QtMobility19QVideoWidgetControlC2EP7QObject @ 384 NONAME + _ZN10QtMobility19QVideoWidgetControlD0Ev @ 385 NONAME + _ZN10QtMobility19QVideoWidgetControlD1Ev @ 386 NONAME + _ZN10QtMobility19QVideoWidgetControlD2Ev @ 387 NONAME + _ZN10QtMobility19QVideoWindowControl10hueChangedEi @ 388 NONAME + _ZN10QtMobility19QVideoWindowControl11qt_metacallEN11QMetaObject4CallEiPPv @ 389 NONAME + _ZN10QtMobility19QVideoWindowControl11qt_metacastEPKc @ 390 NONAME + _ZN10QtMobility19QVideoWindowControl15contrastChangedEi @ 391 NONAME + _ZN10QtMobility19QVideoWindowControl16staticMetaObjectE @ 392 NONAME DATA 16 + _ZN10QtMobility19QVideoWindowControl17brightnessChangedEi @ 393 NONAME + _ZN10QtMobility19QVideoWindowControl17fullScreenChangedEb @ 394 NONAME + _ZN10QtMobility19QVideoWindowControl17nativeSizeChangedEv @ 395 NONAME + _ZN10QtMobility19QVideoWindowControl17saturationChangedEi @ 396 NONAME + _ZN10QtMobility19QVideoWindowControl19getStaticMetaObjectEv @ 397 NONAME + _ZN10QtMobility19QVideoWindowControlC2EP7QObject @ 398 NONAME + _ZN10QtMobility19QVideoWindowControlD0Ev @ 399 NONAME + _ZN10QtMobility19QVideoWindowControlD1Ev @ 400 NONAME + _ZN10QtMobility19QVideoWindowControlD2Ev @ 401 NONAME + _ZN10QtMobility20QAudioEncoderControl11qt_metacallEN11QMetaObject4CallEiPPv @ 402 NONAME + _ZN10QtMobility20QAudioEncoderControl11qt_metacastEPKc @ 403 NONAME + _ZN10QtMobility20QAudioEncoderControl16staticMetaObjectE @ 404 NONAME DATA 16 + _ZN10QtMobility20QAudioEncoderControl19getStaticMetaObjectEv @ 405 NONAME + _ZN10QtMobility20QAudioEncoderControlC2EP7QObject @ 406 NONAME + _ZN10QtMobility20QAudioEncoderControlD0Ev @ 407 NONAME + _ZN10QtMobility20QAudioEncoderControlD1Ev @ 408 NONAME + _ZN10QtMobility20QAudioEncoderControlD2Ev @ 409 NONAME + _ZN10QtMobility20QImageEncoderControl11qt_metacallEN11QMetaObject4CallEiPPv @ 410 NONAME + _ZN10QtMobility20QImageEncoderControl11qt_metacastEPKc @ 411 NONAME + _ZN10QtMobility20QImageEncoderControl16staticMetaObjectE @ 412 NONAME DATA 16 + _ZN10QtMobility20QImageEncoderControl19getStaticMetaObjectEv @ 413 NONAME + _ZN10QtMobility20QImageEncoderControlC2EP7QObject @ 414 NONAME + _ZN10QtMobility20QImageEncoderControlD0Ev @ 415 NONAME + _ZN10QtMobility20QImageEncoderControlD1Ev @ 416 NONAME + _ZN10QtMobility20QImageEncoderControlD2Ev @ 417 NONAME + _ZN10QtMobility20QMediaPlaylistReaderD0Ev @ 418 NONAME + _ZN10QtMobility20QMediaPlaylistReaderD1Ev @ 419 NONAME + _ZN10QtMobility20QMediaPlaylistReaderD2Ev @ 420 NONAME + _ZN10QtMobility20QMediaPlaylistWriterD0Ev @ 421 NONAME + _ZN10QtMobility20QMediaPlaylistWriterD1Ev @ 422 NONAME + _ZN10QtMobility20QMediaPlaylistWriterD2Ev @ 423 NONAME + _ZN10QtMobility20QMediaStreamsControl11qt_metacallEN11QMetaObject4CallEiPPv @ 424 NONAME + _ZN10QtMobility20QMediaStreamsControl11qt_metacastEPKc @ 425 NONAME + _ZN10QtMobility20QMediaStreamsControl14streamsChangedEv @ 426 NONAME + _ZN10QtMobility20QMediaStreamsControl16staticMetaObjectE @ 427 NONAME DATA 16 + _ZN10QtMobility20QMediaStreamsControl19getStaticMetaObjectEv @ 428 NONAME + _ZN10QtMobility20QMediaStreamsControl20activeStreamsChangedEv @ 429 NONAME + _ZN10QtMobility20QMediaStreamsControlC2EP7QObject @ 430 NONAME + _ZN10QtMobility20QMediaStreamsControlD0Ev @ 431 NONAME + _ZN10QtMobility20QMediaStreamsControlD1Ev @ 432 NONAME + _ZN10QtMobility20QMediaStreamsControlD2Ev @ 433 NONAME + _ZN10QtMobility20QVideoEncoderControl11qt_metacallEN11QMetaObject4CallEiPPv @ 434 NONAME + _ZN10QtMobility20QVideoEncoderControl11qt_metacastEPKc @ 435 NONAME + _ZN10QtMobility20QVideoEncoderControl16staticMetaObjectE @ 436 NONAME DATA 16 + _ZN10QtMobility20QVideoEncoderControl19getStaticMetaObjectEv @ 437 NONAME + _ZN10QtMobility20QVideoEncoderControlC2EP7QObject @ 438 NONAME + _ZN10QtMobility20QVideoEncoderControlD0Ev @ 439 NONAME + _ZN10QtMobility20QVideoEncoderControlD1Ev @ 440 NONAME + _ZN10QtMobility20QVideoEncoderControlD2Ev @ 441 NONAME + _ZN10QtMobility21QAudioEncoderSettings10setBitRateEi @ 442 NONAME + _ZN10QtMobility21QAudioEncoderSettings10setQualityENS_7QtMedia15EncodingQualityE @ 443 NONAME + _ZN10QtMobility21QAudioEncoderSettings13setSampleRateEi @ 444 NONAME + _ZN10QtMobility21QAudioEncoderSettings15setChannelCountEi @ 445 NONAME + _ZN10QtMobility21QAudioEncoderSettings15setEncodingModeENS_7QtMedia12EncodingModeE @ 446 NONAME + _ZN10QtMobility21QAudioEncoderSettings8setCodecERK7QString @ 447 NONAME + _ZN10QtMobility21QAudioEncoderSettingsC1ERKS0_ @ 448 NONAME + _ZN10QtMobility21QAudioEncoderSettingsC1Ev @ 449 NONAME + _ZN10QtMobility21QAudioEncoderSettingsC2ERKS0_ @ 450 NONAME + _ZN10QtMobility21QAudioEncoderSettingsC2Ev @ 451 NONAME + _ZN10QtMobility21QAudioEncoderSettingsD1Ev @ 452 NONAME + _ZN10QtMobility21QAudioEncoderSettingsD2Ev @ 453 NONAME + _ZN10QtMobility21QAudioEncoderSettingsaSERKS0_ @ 454 NONAME + _ZN10QtMobility21QImageEncoderSettings10setQualityENS_7QtMedia15EncodingQualityE @ 455 NONAME + _ZN10QtMobility21QImageEncoderSettings13setResolutionERK5QSize @ 456 NONAME + _ZN10QtMobility21QImageEncoderSettings13setResolutionEii @ 457 NONAME + _ZN10QtMobility21QImageEncoderSettings8setCodecERK7QString @ 458 NONAME + _ZN10QtMobility21QImageEncoderSettingsC1ERKS0_ @ 459 NONAME + _ZN10QtMobility21QImageEncoderSettingsC1Ev @ 460 NONAME + _ZN10QtMobility21QImageEncoderSettingsC2ERKS0_ @ 461 NONAME + _ZN10QtMobility21QImageEncoderSettingsC2Ev @ 462 NONAME + _ZN10QtMobility21QImageEncoderSettingsD1Ev @ 463 NONAME + _ZN10QtMobility21QImageEncoderSettingsD2Ev @ 464 NONAME + _ZN10QtMobility21QImageEncoderSettingsaSERKS0_ @ 465 NONAME + _ZN10QtMobility21QMediaPlaylistControl11qt_metacallEN11QMetaObject4CallEiPPv @ 466 NONAME + _ZN10QtMobility21QMediaPlaylistControl11qt_metacastEPKc @ 467 NONAME + _ZN10QtMobility21QMediaPlaylistControl16staticMetaObjectE @ 468 NONAME DATA 16 + _ZN10QtMobility21QMediaPlaylistControl19currentIndexChangedEi @ 469 NONAME + _ZN10QtMobility21QMediaPlaylistControl19currentMediaChangedERKNS_13QMediaContentE @ 470 NONAME + _ZN10QtMobility21QMediaPlaylistControl19getStaticMetaObjectEv @ 471 NONAME + _ZN10QtMobility21QMediaPlaylistControl19playbackModeChangedENS_14QMediaPlaylist12PlaybackModeE @ 472 NONAME + _ZN10QtMobility21QMediaPlaylistControl23playlistProviderChangedEv @ 473 NONAME + _ZN10QtMobility21QMediaPlaylistControlC2EP7QObject @ 474 NONAME + _ZN10QtMobility21QMediaPlaylistControlD0Ev @ 475 NONAME + _ZN10QtMobility21QMediaPlaylistControlD1Ev @ 476 NONAME + _ZN10QtMobility21QMediaPlaylistControlD2Ev @ 477 NONAME + _ZN10QtMobility21QMediaRecorderControl11qt_metacallEN11QMetaObject4CallEiPPv @ 478 NONAME + _ZN10QtMobility21QMediaRecorderControl11qt_metacastEPKc @ 479 NONAME + _ZN10QtMobility21QMediaRecorderControl12stateChangedENS_14QMediaRecorder5StateE @ 480 NONAME + _ZN10QtMobility21QMediaRecorderControl15durationChangedEx @ 481 NONAME + _ZN10QtMobility21QMediaRecorderControl16staticMetaObjectE @ 482 NONAME DATA 16 + _ZN10QtMobility21QMediaRecorderControl19getStaticMetaObjectEv @ 483 NONAME + _ZN10QtMobility21QMediaRecorderControl5errorEiRK7QString @ 484 NONAME + _ZN10QtMobility21QMediaRecorderControlC2EP7QObject @ 485 NONAME + _ZN10QtMobility21QMediaRecorderControlD0Ev @ 486 NONAME + _ZN10QtMobility21QMediaRecorderControlD1Ev @ 487 NONAME + _ZN10QtMobility21QMediaRecorderControlD2Ev @ 488 NONAME + _ZN10QtMobility21QMediaServiceProvider11qt_metacallEN11QMetaObject4CallEiPPv @ 489 NONAME + _ZN10QtMobility21QMediaServiceProvider11qt_metacastEPKc @ 490 NONAME + _ZN10QtMobility21QMediaServiceProvider16staticMetaObjectE @ 491 NONAME DATA 16 + _ZN10QtMobility21QMediaServiceProvider17deviceDescriptionERK10QByteArrayS3_ @ 492 NONAME + _ZN10QtMobility21QMediaServiceProvider19getStaticMetaObjectEv @ 493 NONAME + _ZN10QtMobility21QMediaServiceProvider22defaultServiceProviderEv @ 494 NONAME + _ZN10QtMobility21QVideoEncoderSettings10setBitRateEi @ 495 NONAME + _ZN10QtMobility21QVideoEncoderSettings10setQualityENS_7QtMedia15EncodingQualityE @ 496 NONAME + _ZN10QtMobility21QVideoEncoderSettings12setFrameRateEf @ 497 NONAME + _ZN10QtMobility21QVideoEncoderSettings13setResolutionERK5QSize @ 498 NONAME + _ZN10QtMobility21QVideoEncoderSettings13setResolutionEii @ 499 NONAME + _ZN10QtMobility21QVideoEncoderSettings15setEncodingModeENS_7QtMedia12EncodingModeE @ 500 NONAME + _ZN10QtMobility21QVideoEncoderSettings8setCodecERK7QString @ 501 NONAME + _ZN10QtMobility21QVideoEncoderSettingsC1ERKS0_ @ 502 NONAME + _ZN10QtMobility21QVideoEncoderSettingsC1Ev @ 503 NONAME + _ZN10QtMobility21QVideoEncoderSettingsC2ERKS0_ @ 504 NONAME + _ZN10QtMobility21QVideoEncoderSettingsC2Ev @ 505 NONAME + _ZN10QtMobility21QVideoEncoderSettingsD1Ev @ 506 NONAME + _ZN10QtMobility21QVideoEncoderSettingsD2Ev @ 507 NONAME + _ZN10QtMobility21QVideoEncoderSettingsaSERKS0_ @ 508 NONAME + _ZN10QtMobility21QVideoRendererControl11qt_metacallEN11QMetaObject4CallEiPPv @ 509 NONAME + _ZN10QtMobility21QVideoRendererControl11qt_metacastEPKc @ 510 NONAME + _ZN10QtMobility21QVideoRendererControl16staticMetaObjectE @ 511 NONAME DATA 16 + _ZN10QtMobility21QVideoRendererControl19getStaticMetaObjectEv @ 512 NONAME + _ZN10QtMobility21QVideoRendererControlC2EP7QObject @ 513 NONAME + _ZN10QtMobility21QVideoRendererControlD0Ev @ 514 NONAME + _ZN10QtMobility21QVideoRendererControlD1Ev @ 515 NONAME + _ZN10QtMobility21QVideoRendererControlD2Ev @ 516 NONAME + _ZN10QtMobility22QAudioEndpointSelector11qt_metacallEN11QMetaObject4CallEiPPv @ 517 NONAME + _ZN10QtMobility22QAudioEndpointSelector11qt_metacastEPKc @ 518 NONAME + _ZN10QtMobility22QAudioEndpointSelector16staticMetaObjectE @ 519 NONAME DATA 16 + _ZN10QtMobility22QAudioEndpointSelector19getStaticMetaObjectEv @ 520 NONAME + _ZN10QtMobility22QAudioEndpointSelector21activeEndpointChangedERK7QString @ 521 NONAME + _ZN10QtMobility22QAudioEndpointSelector25availableEndpointsChangedEv @ 522 NONAME + _ZN10QtMobility22QAudioEndpointSelectorC2EP7QObject @ 523 NONAME + _ZN10QtMobility22QAudioEndpointSelectorD0Ev @ 524 NONAME + _ZN10QtMobility22QAudioEndpointSelectorD1Ev @ 525 NONAME + _ZN10QtMobility22QAudioEndpointSelectorD2Ev @ 526 NONAME + _ZN10QtMobility22QMediaContainerControl11qt_metacallEN11QMetaObject4CallEiPPv @ 527 NONAME + _ZN10QtMobility22QMediaContainerControl11qt_metacastEPKc @ 528 NONAME + _ZN10QtMobility22QMediaContainerControl16staticMetaObjectE @ 529 NONAME DATA 16 + _ZN10QtMobility22QMediaContainerControl19getStaticMetaObjectEv @ 530 NONAME + _ZN10QtMobility22QMediaContainerControlC2EP7QObject @ 531 NONAME + _ZN10QtMobility22QMediaContainerControlD0Ev @ 532 NONAME + _ZN10QtMobility22QMediaContainerControlD1Ev @ 533 NONAME + _ZN10QtMobility22QMediaContainerControlD2Ev @ 534 NONAME + _ZN10QtMobility22QMediaPlaylistIOPlugin11qt_metacallEN11QMetaObject4CallEiPPv @ 535 NONAME + _ZN10QtMobility22QMediaPlaylistIOPlugin11qt_metacastEPKc @ 536 NONAME + _ZN10QtMobility22QMediaPlaylistIOPlugin16staticMetaObjectE @ 537 NONAME DATA 16 + _ZN10QtMobility22QMediaPlaylistIOPlugin19getStaticMetaObjectEv @ 538 NONAME + _ZN10QtMobility22QMediaPlaylistIOPluginC2EP7QObject @ 539 NONAME + _ZN10QtMobility22QMediaPlaylistIOPluginD0Ev @ 540 NONAME + _ZN10QtMobility22QMediaPlaylistIOPluginD1Ev @ 541 NONAME + _ZN10QtMobility22QMediaPlaylistIOPluginD2Ev @ 542 NONAME + _ZN10QtMobility22QMediaPlaylistProvider10loadFailedENS_14QMediaPlaylist5ErrorERK7QString @ 543 NONAME + _ZN10QtMobility22QMediaPlaylistProvider11insertMediaEiRK5QListINS_13QMediaContentEE @ 544 NONAME + _ZN10QtMobility22QMediaPlaylistProvider11insertMediaEiRKNS_13QMediaContentE @ 545 NONAME + _ZN10QtMobility22QMediaPlaylistProvider11qt_metacallEN11QMetaObject4CallEiPPv @ 546 NONAME + _ZN10QtMobility22QMediaPlaylistProvider11qt_metacastEPKc @ 547 NONAME + _ZN10QtMobility22QMediaPlaylistProvider11removeMediaEi @ 548 NONAME + _ZN10QtMobility22QMediaPlaylistProvider11removeMediaEii @ 549 NONAME + _ZN10QtMobility22QMediaPlaylistProvider12mediaChangedEii @ 550 NONAME + _ZN10QtMobility22QMediaPlaylistProvider12mediaRemovedEii @ 551 NONAME + _ZN10QtMobility22QMediaPlaylistProvider13mediaInsertedEii @ 552 NONAME + _ZN10QtMobility22QMediaPlaylistProvider16staticMetaObjectE @ 553 NONAME DATA 16 + _ZN10QtMobility22QMediaPlaylistProvider19getStaticMetaObjectEv @ 554 NONAME + _ZN10QtMobility22QMediaPlaylistProvider21mediaAboutToBeRemovedEii @ 555 NONAME + _ZN10QtMobility22QMediaPlaylistProvider22mediaAboutToBeInsertedEii @ 556 NONAME + _ZN10QtMobility22QMediaPlaylistProvider4loadEP9QIODevicePKc @ 557 NONAME + _ZN10QtMobility22QMediaPlaylistProvider4loadERK4QUrlPKc @ 558 NONAME + _ZN10QtMobility22QMediaPlaylistProvider4saveEP9QIODevicePKc @ 559 NONAME + _ZN10QtMobility22QMediaPlaylistProvider4saveERK4QUrlPKc @ 560 NONAME + _ZN10QtMobility22QMediaPlaylistProvider5clearEv @ 561 NONAME + _ZN10QtMobility22QMediaPlaylistProvider6loadedEv @ 562 NONAME + _ZN10QtMobility22QMediaPlaylistProvider7shuffleEv @ 563 NONAME + _ZN10QtMobility22QMediaPlaylistProvider8addMediaERK5QListINS_13QMediaContentEE @ 564 NONAME + _ZN10QtMobility22QMediaPlaylistProvider8addMediaERKNS_13QMediaContentE @ 565 NONAME + _ZN10QtMobility22QMediaPlaylistProviderC2EP7QObject @ 566 NONAME + _ZN10QtMobility22QMediaPlaylistProviderC2ERNS_29QMediaPlaylistProviderPrivateEP7QObject @ 567 NONAME + _ZN10QtMobility22QMediaPlaylistProviderD0Ev @ 568 NONAME + _ZN10QtMobility22QMediaPlaylistProviderD1Ev @ 569 NONAME + _ZN10QtMobility22QMediaPlaylistProviderD2Ev @ 570 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator11qt_metacallEN11QMetaObject4CallEiPPv @ 571 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator11qt_metacastEPKc @ 572 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator11setPlaylistEPNS_22QMediaPlaylistProviderE @ 573 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator15setPlaybackModeENS_14QMediaPlaylist12PlaybackModeE @ 574 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator16staticMetaObjectE @ 575 NONAME DATA 16 + _ZN10QtMobility23QMediaPlaylistNavigator19currentIndexChangedEi @ 576 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator19getStaticMetaObjectEv @ 577 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator19playbackModeChangedENS_14QMediaPlaylist12PlaybackModeE @ 578 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator23surroundingItemsChangedEv @ 579 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator4jumpEi @ 580 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator4nextEv @ 581 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator8previousEv @ 582 NONAME + _ZN10QtMobility23QMediaPlaylistNavigator9activatedERKNS_13QMediaContentE @ 583 NONAME + _ZN10QtMobility23QMediaPlaylistNavigatorC1EPNS_22QMediaPlaylistProviderEP7QObject @ 584 NONAME + _ZN10QtMobility23QMediaPlaylistNavigatorC2EPNS_22QMediaPlaylistProviderEP7QObject @ 585 NONAME + _ZN10QtMobility23QMediaPlaylistNavigatorD0Ev @ 586 NONAME + _ZN10QtMobility23QMediaPlaylistNavigatorD1Ev @ 587 NONAME + _ZN10QtMobility23QMediaPlaylistNavigatorD2Ev @ 588 NONAME + _ZN10QtMobility25QMediaServiceProviderHintC1E6QFlagsINS0_7FeatureEE @ 589 NONAME + _ZN10QtMobility25QMediaServiceProviderHintC1ERK10QByteArray @ 590 NONAME + _ZN10QtMobility25QMediaServiceProviderHintC1ERK7QStringRK11QStringList @ 591 NONAME + _ZN10QtMobility25QMediaServiceProviderHintC1ERKS0_ @ 592 NONAME + _ZN10QtMobility25QMediaServiceProviderHintC1Ev @ 593 NONAME + _ZN10QtMobility25QMediaServiceProviderHintC2E6QFlagsINS0_7FeatureEE @ 594 NONAME + _ZN10QtMobility25QMediaServiceProviderHintC2ERK10QByteArray @ 595 NONAME + _ZN10QtMobility25QMediaServiceProviderHintC2ERK7QStringRK11QStringList @ 596 NONAME + _ZN10QtMobility25QMediaServiceProviderHintC2ERKS0_ @ 597 NONAME + _ZN10QtMobility25QMediaServiceProviderHintC2Ev @ 598 NONAME + _ZN10QtMobility25QMediaServiceProviderHintD1Ev @ 599 NONAME + _ZN10QtMobility25QMediaServiceProviderHintD2Ev @ 600 NONAME + _ZN10QtMobility25QMediaServiceProviderHintaSERKS0_ @ 601 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider11insertMediaEiRK5QListINS_13QMediaContentEE @ 602 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider11insertMediaEiRKNS_13QMediaContentE @ 603 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider11qt_metacallEN11QMetaObject4CallEiPPv @ 604 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider11qt_metacastEPKc @ 605 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider11removeMediaEi @ 606 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider11removeMediaEii @ 607 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider16staticMetaObjectE @ 608 NONAME DATA 16 + _ZN10QtMobility27QLocalMediaPlaylistProvider19getStaticMetaObjectEv @ 609 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider5clearEv @ 610 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider7shuffleEv @ 611 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider8addMediaERK5QListINS_13QMediaContentEE @ 612 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProvider8addMediaERKNS_13QMediaContentE @ 613 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProviderC1EP7QObject @ 614 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProviderC2EP7QObject @ 615 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProviderD0Ev @ 616 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProviderD1Ev @ 617 NONAME + _ZN10QtMobility27QLocalMediaPlaylistProviderD2Ev @ 618 NONAME + _ZN10QtMobility27QMediaServiceProviderPlugin11qt_metacallEN11QMetaObject4CallEiPPv @ 619 NONAME + _ZN10QtMobility27QMediaServiceProviderPlugin11qt_metacastEPKc @ 620 NONAME + _ZN10QtMobility27QMediaServiceProviderPlugin16staticMetaObjectE @ 621 NONAME DATA 16 + _ZN10QtMobility27QMediaServiceProviderPlugin19getStaticMetaObjectEv @ 622 NONAME + _ZN10QtMobilityeqERKNS_15QMediaTimeRangeES2_ @ 623 NONAME + _ZN10QtMobilityeqERKNS_18QMediaTimeIntervalES2_ @ 624 NONAME + _ZN10QtMobilitymiERKNS_15QMediaTimeRangeES2_ @ 625 NONAME + _ZN10QtMobilityneERKNS_15QMediaTimeRangeES2_ @ 626 NONAME + _ZN10QtMobilityneERKNS_18QMediaTimeIntervalES2_ @ 627 NONAME + _ZN10QtMobilityplERKNS_15QMediaTimeRangeES2_ @ 628 NONAME + _ZNK10QtMobility11QRadioTuner10metaObjectEv @ 629 NONAME + _ZNK10QtMobility11QRadioTuner10stereoModeEv @ 630 NONAME + _ZNK10QtMobility11QRadioTuner11errorStringEv @ 631 NONAME + _ZNK10QtMobility11QRadioTuner11isAvailableEv @ 632 NONAME + _ZNK10QtMobility11QRadioTuner11isSearchingEv @ 633 NONAME + _ZNK10QtMobility11QRadioTuner13frequencyStepENS0_4BandE @ 634 NONAME + _ZNK10QtMobility11QRadioTuner14frequencyRangeENS0_4BandE @ 635 NONAME + _ZNK10QtMobility11QRadioTuner14signalStrengthEv @ 636 NONAME + _ZNK10QtMobility11QRadioTuner15isBandSupportedENS0_4BandE @ 637 NONAME + _ZNK10QtMobility11QRadioTuner17availabilityErrorEv @ 638 NONAME + _ZNK10QtMobility11QRadioTuner4bandEv @ 639 NONAME + _ZNK10QtMobility11QRadioTuner5errorEv @ 640 NONAME + _ZNK10QtMobility11QRadioTuner5stateEv @ 641 NONAME + _ZNK10QtMobility11QRadioTuner6volumeEv @ 642 NONAME + _ZNK10QtMobility11QRadioTuner7isMutedEv @ 643 NONAME + _ZNK10QtMobility11QRadioTuner8isStereoEv @ 644 NONAME + _ZNK10QtMobility11QRadioTuner9frequencyEv @ 645 NONAME + _ZNK10QtMobility12QMediaObject10metaObjectEv @ 646 NONAME + _ZNK10QtMobility12QMediaObject11isAvailableEv @ 647 NONAME + _ZNK10QtMobility12QMediaObject14notifyIntervalEv @ 648 NONAME + _ZNK10QtMobility12QMediaObject16extendedMetaDataERK7QString @ 649 NONAME + _ZNK10QtMobility12QMediaObject17availabilityErrorEv @ 650 NONAME + _ZNK10QtMobility12QMediaObject17availableMetaDataEv @ 651 NONAME + _ZNK10QtMobility12QMediaObject18isMetaDataWritableEv @ 652 NONAME + _ZNK10QtMobility12QMediaObject19isMetaDataAvailableEv @ 653 NONAME + _ZNK10QtMobility12QMediaObject25availableExtendedMetaDataEv @ 654 NONAME + _ZNK10QtMobility12QMediaObject7serviceEv @ 655 NONAME + _ZNK10QtMobility12QMediaObject8metaDataENS_7QtMedia8MetaDataE @ 656 NONAME + _ZNK10QtMobility12QMediaPlayer10isSeekableEv @ 657 NONAME + _ZNK10QtMobility12QMediaPlayer10metaObjectEv @ 658 NONAME + _ZNK10QtMobility12QMediaPlayer11errorStringEv @ 659 NONAME + _ZNK10QtMobility12QMediaPlayer11mediaStatusEv @ 660 NONAME + _ZNK10QtMobility12QMediaPlayer11mediaStreamEv @ 661 NONAME + _ZNK10QtMobility12QMediaPlayer12bufferStatusEv @ 662 NONAME + _ZNK10QtMobility12QMediaPlayer12playbackRateEv @ 663 NONAME + _ZNK10QtMobility12QMediaPlayer16isAudioAvailableEv @ 664 NONAME + _ZNK10QtMobility12QMediaPlayer16isVideoAvailableEv @ 665 NONAME + _ZNK10QtMobility12QMediaPlayer5errorEv @ 666 NONAME + _ZNK10QtMobility12QMediaPlayer5mediaEv @ 667 NONAME + _ZNK10QtMobility12QMediaPlayer5stateEv @ 668 NONAME + _ZNK10QtMobility12QMediaPlayer6volumeEv @ 669 NONAME + _ZNK10QtMobility12QMediaPlayer7isMutedEv @ 670 NONAME + _ZNK10QtMobility12QMediaPlayer8durationEv @ 671 NONAME + _ZNK10QtMobility12QMediaPlayer8positionEv @ 672 NONAME + _ZNK10QtMobility12QVideoWidget10brightnessEv @ 673 NONAME + _ZNK10QtMobility12QVideoWidget10metaObjectEv @ 674 NONAME + _ZNK10QtMobility12QVideoWidget10saturationEv @ 675 NONAME + _ZNK10QtMobility12QVideoWidget11mediaObjectEv @ 676 NONAME + _ZNK10QtMobility12QVideoWidget15aspectRatioModeEv @ 677 NONAME + _ZNK10QtMobility12QVideoWidget3hueEv @ 678 NONAME + _ZNK10QtMobility12QVideoWidget8contrastEv @ 679 NONAME + _ZNK10QtMobility12QVideoWidget8sizeHintEv @ 680 NONAME + _ZNK10QtMobility13QMediaContent12canonicalUrlEv @ 681 NONAME + _ZNK10QtMobility13QMediaContent16canonicalRequestEv @ 682 NONAME + _ZNK10QtMobility13QMediaContent17canonicalResourceEv @ 683 NONAME + _ZNK10QtMobility13QMediaContent6isNullEv @ 684 NONAME + _ZNK10QtMobility13QMediaContent9resourcesEv @ 685 NONAME + _ZNK10QtMobility13QMediaContenteqERKS0_ @ 686 NONAME + _ZNK10QtMobility13QMediaContentneERKS0_ @ 687 NONAME + _ZNK10QtMobility13QMediaControl10metaObjectEv @ 688 NONAME + _ZNK10QtMobility13QMediaService10metaObjectEv @ 689 NONAME + _ZNK10QtMobility14QMediaPlaylist10isReadOnlyEv @ 690 NONAME + _ZNK10QtMobility14QMediaPlaylist10mediaCountEv @ 691 NONAME + _ZNK10QtMobility14QMediaPlaylist10metaObjectEv @ 692 NONAME + _ZNK10QtMobility14QMediaPlaylist11errorStringEv @ 693 NONAME + _ZNK10QtMobility14QMediaPlaylist11mediaObjectEv @ 694 NONAME + _ZNK10QtMobility14QMediaPlaylist12currentIndexEv @ 695 NONAME + _ZNK10QtMobility14QMediaPlaylist12currentMediaEv @ 696 NONAME + _ZNK10QtMobility14QMediaPlaylist12playbackModeEv @ 697 NONAME + _ZNK10QtMobility14QMediaPlaylist13previousIndexEi @ 698 NONAME + _ZNK10QtMobility14QMediaPlaylist5errorEv @ 699 NONAME + _ZNK10QtMobility14QMediaPlaylist5mediaEi @ 700 NONAME + _ZNK10QtMobility14QMediaPlaylist7isEmptyEv @ 701 NONAME + _ZNK10QtMobility14QMediaPlaylist9nextIndexEi @ 702 NONAME + _ZNK10QtMobility14QMediaRecorder10metaObjectEv @ 703 NONAME + _ZNK10QtMobility14QMediaRecorder11errorStringEv @ 704 NONAME + _ZNK10QtMobility14QMediaRecorder11isAvailableEv @ 705 NONAME + _ZNK10QtMobility14QMediaRecorder13audioSettingsEv @ 706 NONAME + _ZNK10QtMobility14QMediaRecorder13videoSettingsEv @ 707 NONAME + _ZNK10QtMobility14QMediaRecorder14outputLocationEv @ 708 NONAME + _ZNK10QtMobility14QMediaRecorder17availabilityErrorEv @ 709 NONAME + _ZNK10QtMobility14QMediaRecorder17containerMimeTypeEv @ 710 NONAME + _ZNK10QtMobility14QMediaRecorder19supportedContainersEv @ 711 NONAME + _ZNK10QtMobility14QMediaRecorder19supportedFrameRatesERKNS_21QVideoEncoderSettingsEPb @ 712 NONAME + _ZNK10QtMobility14QMediaRecorder20containerDescriptionERK7QString @ 713 NONAME + _ZNK10QtMobility14QMediaRecorder20supportedAudioCodecsEv @ 714 NONAME + _ZNK10QtMobility14QMediaRecorder20supportedResolutionsERKNS_21QVideoEncoderSettingsEPb @ 715 NONAME + _ZNK10QtMobility14QMediaRecorder20supportedVideoCodecsEv @ 716 NONAME + _ZNK10QtMobility14QMediaRecorder21audioCodecDescriptionERK7QString @ 717 NONAME + _ZNK10QtMobility14QMediaRecorder21videoCodecDescriptionERK7QString @ 718 NONAME + _ZNK10QtMobility14QMediaRecorder25supportedAudioSampleRatesERKNS_21QAudioEncoderSettingsEPb @ 719 NONAME + _ZNK10QtMobility14QMediaRecorder5errorEv @ 720 NONAME + _ZNK10QtMobility14QMediaRecorder5stateEv @ 721 NONAME + _ZNK10QtMobility14QMediaRecorder8durationEv @ 722 NONAME + _ZNK10QtMobility14QMediaResource10audioCodecEv @ 723 NONAME + _ZNK10QtMobility14QMediaResource10resolutionEv @ 724 NONAME + _ZNK10QtMobility14QMediaResource10sampleRateEv @ 725 NONAME + _ZNK10QtMobility14QMediaResource10videoCodecEv @ 726 NONAME + _ZNK10QtMobility14QMediaResource12audioBitRateEv @ 727 NONAME + _ZNK10QtMobility14QMediaResource12channelCountEv @ 728 NONAME + _ZNK10QtMobility14QMediaResource12videoBitRateEv @ 729 NONAME + _ZNK10QtMobility14QMediaResource3urlEv @ 730 NONAME + _ZNK10QtMobility14QMediaResource6isNullEv @ 731 NONAME + _ZNK10QtMobility14QMediaResource7requestEv @ 732 NONAME + _ZNK10QtMobility14QMediaResource8dataSizeEv @ 733 NONAME + _ZNK10QtMobility14QMediaResource8languageEv @ 734 NONAME + _ZNK10QtMobility14QMediaResource8mimeTypeEv @ 735 NONAME + _ZNK10QtMobility14QMediaResourceeqERKS0_ @ 736 NONAME + _ZNK10QtMobility14QMediaResourceneERKS0_ @ 737 NONAME + _ZNK10QtMobility15QMediaTimeRange10latestTimeEv @ 738 NONAME + _ZNK10QtMobility15QMediaTimeRange12earliestTimeEv @ 739 NONAME + _ZNK10QtMobility15QMediaTimeRange12isContinuousEv @ 740 NONAME + _ZNK10QtMobility15QMediaTimeRange7isEmptyEv @ 741 NONAME + _ZNK10QtMobility15QMediaTimeRange8containsEx @ 742 NONAME + _ZNK10QtMobility15QMediaTimeRange9intervalsEv @ 743 NONAME + _ZNK10QtMobility16QMetaDataControl10metaObjectEv @ 744 NONAME + _ZNK10QtMobility17QMediaImageViewer10metaObjectEv @ 745 NONAME + _ZNK10QtMobility17QMediaImageViewer11elapsedTimeEv @ 746 NONAME + _ZNK10QtMobility17QMediaImageViewer11mediaStatusEv @ 747 NONAME + _ZNK10QtMobility17QMediaImageViewer5mediaEv @ 748 NONAME + _ZNK10QtMobility17QMediaImageViewer5stateEv @ 749 NONAME + _ZNK10QtMobility17QMediaImageViewer7timeoutEv @ 750 NONAME + _ZNK10QtMobility18QGraphicsVideoItem10metaObjectEv @ 751 NONAME + _ZNK10QtMobility18QGraphicsVideoItem10nativeSizeEv @ 752 NONAME + _ZNK10QtMobility18QGraphicsVideoItem11mediaObjectEv @ 753 NONAME + _ZNK10QtMobility18QGraphicsVideoItem12boundingRectEv @ 754 NONAME + _ZNK10QtMobility18QGraphicsVideoItem15aspectRatioModeEv @ 755 NONAME + _ZNK10QtMobility18QGraphicsVideoItem4sizeEv @ 756 NONAME + _ZNK10QtMobility18QGraphicsVideoItem6offsetEv @ 757 NONAME + _ZNK10QtMobility18QMediaTimeInterval10normalizedEv @ 758 NONAME + _ZNK10QtMobility18QMediaTimeInterval10translatedEx @ 759 NONAME + _ZNK10QtMobility18QMediaTimeInterval3endEv @ 760 NONAME + _ZNK10QtMobility18QMediaTimeInterval5startEv @ 761 NONAME + _ZNK10QtMobility18QMediaTimeInterval8containsEx @ 762 NONAME + _ZNK10QtMobility18QMediaTimeInterval8isNormalEv @ 763 NONAME + _ZNK10QtMobility18QRadioTunerControl10metaObjectEv @ 764 NONAME + _ZNK10QtMobility19QAudioCaptureSource10metaObjectEv @ 765 NONAME + _ZNK10QtMobility19QAudioCaptureSource11audioInputsEv @ 766 NONAME + _ZNK10QtMobility19QAudioCaptureSource11isAvailableEv @ 767 NONAME + _ZNK10QtMobility19QAudioCaptureSource16activeAudioInputEv @ 768 NONAME + _ZNK10QtMobility19QAudioCaptureSource16audioDescriptionERK7QString @ 769 NONAME + _ZNK10QtMobility19QAudioCaptureSource17availabilityErrorEv @ 770 NONAME + _ZNK10QtMobility19QAudioCaptureSource17defaultAudioInputEv @ 771 NONAME + _ZNK10QtMobility19QMediaPlayerControl10metaObjectEv @ 772 NONAME + _ZNK10QtMobility19QVideoDeviceControl10metaObjectEv @ 773 NONAME + _ZNK10QtMobility19QVideoOutputControl10metaObjectEv @ 774 NONAME + _ZNK10QtMobility19QVideoWidgetControl10metaObjectEv @ 775 NONAME + _ZNK10QtMobility19QVideoWindowControl10metaObjectEv @ 776 NONAME + _ZNK10QtMobility20QAudioEncoderControl10metaObjectEv @ 777 NONAME + _ZNK10QtMobility20QImageEncoderControl10metaObjectEv @ 778 NONAME + _ZNK10QtMobility20QMediaStreamsControl10metaObjectEv @ 779 NONAME + _ZNK10QtMobility20QVideoEncoderControl10metaObjectEv @ 780 NONAME + _ZNK10QtMobility21QAudioEncoderSettings10sampleRateEv @ 781 NONAME + _ZNK10QtMobility21QAudioEncoderSettings12channelCountEv @ 782 NONAME + _ZNK10QtMobility21QAudioEncoderSettings12encodingModeEv @ 783 NONAME + _ZNK10QtMobility21QAudioEncoderSettings5codecEv @ 784 NONAME + _ZNK10QtMobility21QAudioEncoderSettings6isNullEv @ 785 NONAME + _ZNK10QtMobility21QAudioEncoderSettings7bitRateEv @ 786 NONAME + _ZNK10QtMobility21QAudioEncoderSettings7qualityEv @ 787 NONAME + _ZNK10QtMobility21QAudioEncoderSettingseqERKS0_ @ 788 NONAME + _ZNK10QtMobility21QAudioEncoderSettingsneERKS0_ @ 789 NONAME + _ZNK10QtMobility21QImageEncoderSettings10resolutionEv @ 790 NONAME + _ZNK10QtMobility21QImageEncoderSettings5codecEv @ 791 NONAME + _ZNK10QtMobility21QImageEncoderSettings6isNullEv @ 792 NONAME + _ZNK10QtMobility21QImageEncoderSettings7qualityEv @ 793 NONAME + _ZNK10QtMobility21QImageEncoderSettingseqERKS0_ @ 794 NONAME + _ZNK10QtMobility21QImageEncoderSettingsneERKS0_ @ 795 NONAME + _ZNK10QtMobility21QMediaPlaylistControl10metaObjectEv @ 796 NONAME + _ZNK10QtMobility21QMediaRecorderControl10metaObjectEv @ 797 NONAME + _ZNK10QtMobility21QMediaServiceProvider10hasSupportERK10QByteArrayRK7QStringRK11QStringListi @ 798 NONAME + _ZNK10QtMobility21QMediaServiceProvider10metaObjectEv @ 799 NONAME + _ZNK10QtMobility21QMediaServiceProvider18supportedMimeTypesERK10QByteArrayi @ 800 NONAME + _ZNK10QtMobility21QMediaServiceProvider7devicesERK10QByteArray @ 801 NONAME + _ZNK10QtMobility21QVideoEncoderSettings10resolutionEv @ 802 NONAME + _ZNK10QtMobility21QVideoEncoderSettings12encodingModeEv @ 803 NONAME + _ZNK10QtMobility21QVideoEncoderSettings5codecEv @ 804 NONAME + _ZNK10QtMobility21QVideoEncoderSettings6isNullEv @ 805 NONAME + _ZNK10QtMobility21QVideoEncoderSettings7bitRateEv @ 806 NONAME + _ZNK10QtMobility21QVideoEncoderSettings7qualityEv @ 807 NONAME + _ZNK10QtMobility21QVideoEncoderSettings9frameRateEv @ 808 NONAME + _ZNK10QtMobility21QVideoEncoderSettingseqERKS0_ @ 809 NONAME + _ZNK10QtMobility21QVideoEncoderSettingsneERKS0_ @ 810 NONAME + _ZNK10QtMobility21QVideoRendererControl10metaObjectEv @ 811 NONAME + _ZNK10QtMobility22QAudioEndpointSelector10metaObjectEv @ 812 NONAME + _ZNK10QtMobility22QMediaContainerControl10metaObjectEv @ 813 NONAME + _ZNK10QtMobility22QMediaPlaylistIOPlugin10metaObjectEv @ 814 NONAME + _ZNK10QtMobility22QMediaPlaylistProvider10isReadOnlyEv @ 815 NONAME + _ZNK10QtMobility22QMediaPlaylistProvider10metaObjectEv @ 816 NONAME + _ZNK10QtMobility23QMediaPlaylistNavigator10metaObjectEv @ 817 NONAME + _ZNK10QtMobility23QMediaPlaylistNavigator11currentItemEv @ 818 NONAME + _ZNK10QtMobility23QMediaPlaylistNavigator12currentIndexEv @ 819 NONAME + _ZNK10QtMobility23QMediaPlaylistNavigator12playbackModeEv @ 820 NONAME + _ZNK10QtMobility23QMediaPlaylistNavigator12previousItemEi @ 821 NONAME + _ZNK10QtMobility23QMediaPlaylistNavigator13previousIndexEi @ 822 NONAME + _ZNK10QtMobility23QMediaPlaylistNavigator6itemAtEi @ 823 NONAME + _ZNK10QtMobility23QMediaPlaylistNavigator8nextItemEi @ 824 NONAME + _ZNK10QtMobility23QMediaPlaylistNavigator8playlistEv @ 825 NONAME + _ZNK10QtMobility23QMediaPlaylistNavigator9nextIndexEi @ 826 NONAME + _ZNK10QtMobility25QMediaServiceProviderHint4typeEv @ 827 NONAME + _ZNK10QtMobility25QMediaServiceProviderHint6codecsEv @ 828 NONAME + _ZNK10QtMobility25QMediaServiceProviderHint6deviceEv @ 829 NONAME + _ZNK10QtMobility25QMediaServiceProviderHint6isNullEv @ 830 NONAME + _ZNK10QtMobility25QMediaServiceProviderHint8featuresEv @ 831 NONAME + _ZNK10QtMobility25QMediaServiceProviderHint8mimeTypeEv @ 832 NONAME + _ZNK10QtMobility25QMediaServiceProviderHinteqERKS0_ @ 833 NONAME + _ZNK10QtMobility25QMediaServiceProviderHintneERKS0_ @ 834 NONAME + _ZNK10QtMobility27QLocalMediaPlaylistProvider10isReadOnlyEv @ 835 NONAME + _ZNK10QtMobility27QLocalMediaPlaylistProvider10mediaCountEv @ 836 NONAME + _ZNK10QtMobility27QLocalMediaPlaylistProvider10metaObjectEv @ 837 NONAME + _ZNK10QtMobility27QLocalMediaPlaylistProvider5mediaEi @ 838 NONAME + _ZNK10QtMobility27QMediaServiceProviderPlugin10metaObjectEv @ 839 NONAME + _ZTIN10QtMobility11QRadioTunerE @ 840 NONAME + _ZTIN10QtMobility12QMediaObjectE @ 841 NONAME + _ZTIN10QtMobility12QMediaPlayerE @ 842 NONAME + _ZTIN10QtMobility12QVideoWidgetE @ 843 NONAME + _ZTIN10QtMobility13QMediaControlE @ 844 NONAME + _ZTIN10QtMobility13QMediaServiceE @ 845 NONAME + _ZTIN10QtMobility14QMediaPlaylistE @ 846 NONAME + _ZTIN10QtMobility14QMediaRecorderE @ 847 NONAME + _ZTIN10QtMobility16QMetaDataControlE @ 848 NONAME + _ZTIN10QtMobility17QMediaImageViewerE @ 849 NONAME + _ZTIN10QtMobility18QGraphicsVideoItemE @ 850 NONAME + _ZTIN10QtMobility18QRadioTunerControlE @ 851 NONAME + _ZTIN10QtMobility19QAudioCaptureSourceE @ 852 NONAME + _ZTIN10QtMobility19QMediaPlayerControlE @ 853 NONAME + _ZTIN10QtMobility19QVideoDeviceControlE @ 854 NONAME + _ZTIN10QtMobility19QVideoOutputControlE @ 855 NONAME + _ZTIN10QtMobility19QVideoWidgetControlE @ 856 NONAME + _ZTIN10QtMobility19QVideoWindowControlE @ 857 NONAME + _ZTIN10QtMobility20QAudioEncoderControlE @ 858 NONAME + _ZTIN10QtMobility20QImageEncoderControlE @ 859 NONAME + _ZTIN10QtMobility20QMediaPlaylistReaderE @ 860 NONAME + _ZTIN10QtMobility20QMediaPlaylistWriterE @ 861 NONAME + _ZTIN10QtMobility20QMediaStreamsControlE @ 862 NONAME + _ZTIN10QtMobility20QVideoEncoderControlE @ 863 NONAME + _ZTIN10QtMobility21QMediaPlaylistControlE @ 864 NONAME + _ZTIN10QtMobility21QMediaRecorderControlE @ 865 NONAME + _ZTIN10QtMobility21QMediaServiceProviderE @ 866 NONAME + _ZTIN10QtMobility21QVideoRendererControlE @ 867 NONAME + _ZTIN10QtMobility22QAudioEndpointSelectorE @ 868 NONAME + _ZTIN10QtMobility22QMediaContainerControlE @ 869 NONAME + _ZTIN10QtMobility22QMediaPlaylistIOPluginE @ 870 NONAME + _ZTIN10QtMobility22QMediaPlaylistProviderE @ 871 NONAME + _ZTIN10QtMobility23QMediaPlaylistNavigatorE @ 872 NONAME + _ZTIN10QtMobility25QMediaPlaylistIOInterfaceE @ 873 NONAME + _ZTIN10QtMobility27QLocalMediaPlaylistProviderE @ 874 NONAME + _ZTIN10QtMobility27QMediaServiceProviderPluginE @ 875 NONAME + _ZTIN10QtMobility37QMediaServiceProviderFactoryInterfaceE @ 876 NONAME + _ZTVN10QtMobility11QRadioTunerE @ 877 NONAME + _ZTVN10QtMobility12QMediaObjectE @ 878 NONAME + _ZTVN10QtMobility12QMediaPlayerE @ 879 NONAME + _ZTVN10QtMobility12QVideoWidgetE @ 880 NONAME + _ZTVN10QtMobility13QMediaControlE @ 881 NONAME + _ZTVN10QtMobility13QMediaServiceE @ 882 NONAME + _ZTVN10QtMobility14QMediaPlaylistE @ 883 NONAME + _ZTVN10QtMobility14QMediaRecorderE @ 884 NONAME + _ZTVN10QtMobility16QMetaDataControlE @ 885 NONAME + _ZTVN10QtMobility17QMediaImageViewerE @ 886 NONAME + _ZTVN10QtMobility18QGraphicsVideoItemE @ 887 NONAME + _ZTVN10QtMobility18QRadioTunerControlE @ 888 NONAME + _ZTVN10QtMobility19QAudioCaptureSourceE @ 889 NONAME + _ZTVN10QtMobility19QMediaPlayerControlE @ 890 NONAME + _ZTVN10QtMobility19QVideoDeviceControlE @ 891 NONAME + _ZTVN10QtMobility19QVideoOutputControlE @ 892 NONAME + _ZTVN10QtMobility19QVideoWidgetControlE @ 893 NONAME + _ZTVN10QtMobility19QVideoWindowControlE @ 894 NONAME + _ZTVN10QtMobility20QAudioEncoderControlE @ 895 NONAME + _ZTVN10QtMobility20QImageEncoderControlE @ 896 NONAME + _ZTVN10QtMobility20QMediaPlaylistReaderE @ 897 NONAME + _ZTVN10QtMobility20QMediaPlaylistWriterE @ 898 NONAME + _ZTVN10QtMobility20QMediaStreamsControlE @ 899 NONAME + _ZTVN10QtMobility20QVideoEncoderControlE @ 900 NONAME + _ZTVN10QtMobility21QMediaPlaylistControlE @ 901 NONAME + _ZTVN10QtMobility21QMediaRecorderControlE @ 902 NONAME + _ZTVN10QtMobility21QMediaServiceProviderE @ 903 NONAME + _ZTVN10QtMobility21QVideoRendererControlE @ 904 NONAME + _ZTVN10QtMobility22QAudioEndpointSelectorE @ 905 NONAME + _ZTVN10QtMobility22QMediaContainerControlE @ 906 NONAME + _ZTVN10QtMobility22QMediaPlaylistIOPluginE @ 907 NONAME + _ZTVN10QtMobility22QMediaPlaylistProviderE @ 908 NONAME + _ZTVN10QtMobility23QMediaPlaylistNavigatorE @ 909 NONAME + _ZTVN10QtMobility27QLocalMediaPlaylistProviderE @ 910 NONAME + _ZTVN10QtMobility27QMediaServiceProviderPluginE @ 911 NONAME + _ZThn8_N10QtMobility12QVideoWidgetD0Ev @ 912 NONAME + _ZThn8_N10QtMobility12QVideoWidgetD1Ev @ 913 NONAME + _ZThn8_N10QtMobility18QGraphicsVideoItem10itemChangeEN13QGraphicsItem18GraphicsItemChangeERK8QVariant @ 914 NONAME + _ZThn8_N10QtMobility18QGraphicsVideoItem5paintEP8QPainterPK24QStyleOptionGraphicsItemP7QWidget @ 915 NONAME + _ZThn8_N10QtMobility18QGraphicsVideoItemD0Ev @ 916 NONAME + _ZThn8_N10QtMobility18QGraphicsVideoItemD1Ev @ 917 NONAME + _ZThn8_N10QtMobility22QMediaPlaylistIOPluginD0Ev @ 918 NONAME + _ZThn8_N10QtMobility22QMediaPlaylistIOPluginD1Ev @ 919 NONAME + _ZThn8_NK10QtMobility18QGraphicsVideoItem12boundingRectEv @ 920 NONAME diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/eabi/QtMessagingu.def --- a/qtmobility/src/s60installs/eabi/QtMessagingu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/eabi/QtMessagingu.def Mon May 03 13:18:40 2010 +0300 @@ -66,7 +66,7 @@ _ZN10QtMobility15QMessageAccountD1Ev @ 65 NONAME _ZN10QtMobility15QMessageAccountD2Ev @ 66 NONAME _ZN10QtMobility15QMessageAccountaSERKS0_ @ 67 NONAME - _ZN10QtMobility15QMessageAddress12setRecipientERK7QString @ 68 NONAME + _ZN10QtMobility15QMessageAddress12setAddresseeERK7QString @ 68 NONAME _ZN10QtMobility15QMessageAddress17parseEmailAddressERK7QStringPS1_S4_S4_PbS5_ @ 69 NONAME _ZN10QtMobility15QMessageAddress7setTypeENS0_4TypeE @ 70 NONAME _ZN10QtMobility15QMessageAddressC1ENS0_4TypeERK7QString @ 71 NONAME @@ -290,7 +290,7 @@ _ZNK10QtMobility15QMessageAccount2idEv @ 289 NONAME _ZNK10QtMobility15QMessageAccount4nameEv @ 290 NONAME _ZNK10QtMobility15QMessageAddress4typeEv @ 291 NONAME - _ZNK10QtMobility15QMessageAddress9recipientEv @ 292 NONAME + _ZNK10QtMobility15QMessageAddress9addresseeEv @ 292 NONAME _ZNK10QtMobility15QMessageAddresseqERKS0_ @ 293 NONAME _ZNK10QtMobility15QMessageAddressneERKS0_ @ 294 NONAME _ZNK10QtMobility15QMessageManager10metaObjectEv @ 295 NONAME diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/eabi/QtSensorsu.def --- a/qtmobility/src/s60installs/eabi/QtSensorsu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/eabi/QtSensorsu.def Mon May 03 13:18:40 2010 +0300 @@ -30,255 +30,263 @@ _ZN10QtMobility14QAccelerometer16staticMetaObjectE @ 29 NONAME DATA 16 _ZN10QtMobility14QAccelerometer19getStaticMetaObjectEv @ 30 NONAME _ZN10QtMobility14QAccelerometer4typeE @ 31 NONAME DATA 4 - _ZN10QtMobility14QSensorBackend11qt_metacallEN11QMetaObject4CallEiPPv @ 32 NONAME - _ZN10QtMobility14QSensorBackend11qt_metacastEPKc @ 33 NONAME - _ZN10QtMobility14QSensorBackend11setReadingsEPNS_14QSensorReadingES2_S2_ @ 34 NONAME - _ZN10QtMobility14QSensorBackend16staticMetaObjectE @ 35 NONAME DATA 16 - _ZN10QtMobility14QSensorBackend19getStaticMetaObjectEv @ 36 NONAME - _ZN10QtMobility14QSensorBackend19newReadingAvailableEv @ 37 NONAME - _ZN10QtMobility14QSensorBackend26setSupportedUpdatePoliciesE6QFlagsINS_7QSensor12UpdatePolicyEE @ 38 NONAME - _ZN10QtMobility14QSensorBackendC2EPNS_7QSensorE @ 39 NONAME - _ZN10QtMobility14QSensorBackendD0Ev @ 40 NONAME - _ZN10QtMobility14QSensorBackendD1Ev @ 41 NONAME - _ZN10QtMobility14QSensorBackendD2Ev @ 42 NONAME - _ZN10QtMobility14QSensorManager13createBackendEPNS_7QSensorE @ 43 NONAME - _ZN10QtMobility14QSensorManager15registerBackendERK10QByteArrayS3_PNS_21QSensorBackendFactoryE @ 44 NONAME - _ZN10QtMobility14QSensorManager20registerStaticPluginEPFPNS_22QSensorPluginInterfaceEvE @ 45 NONAME - _ZN10QtMobility14QSensorReading11qt_metacallEN11QMetaObject4CallEiPPv @ 46 NONAME - _ZN10QtMobility14QSensorReading11qt_metacastEPKc @ 47 NONAME - _ZN10QtMobility14QSensorReading12setTimestampEy @ 48 NONAME - _ZN10QtMobility14QSensorReading16staticMetaObjectE @ 49 NONAME DATA 16 - _ZN10QtMobility14QSensorReading19getStaticMetaObjectEv @ 50 NONAME - _ZN10QtMobility14QSensorReadingC2EP7QObjectPNS_21QSensorReadingPrivateE @ 51 NONAME - _ZN10QtMobility14QSensorReadingD0Ev @ 52 NONAME - _ZN10QtMobility14QSensorReadingD1Ev @ 53 NONAME - _ZN10QtMobility14QSensorReadingD2Ev @ 54 NONAME - _ZN10QtMobility15QCompassReading10setAzimuthEf @ 55 NONAME - _ZN10QtMobility15QCompassReading11qt_metacallEN11QMetaObject4CallEiPPv @ 56 NONAME - _ZN10QtMobility15QCompassReading11qt_metacastEPKc @ 57 NONAME - _ZN10QtMobility15QCompassReading14copyValuesFromEPNS_14QSensorReadingE @ 58 NONAME - _ZN10QtMobility15QCompassReading16staticMetaObjectE @ 59 NONAME DATA 16 - _ZN10QtMobility15QCompassReading19getStaticMetaObjectEv @ 60 NONAME - _ZN10QtMobility15QCompassReading19setCalibrationLevelENS0_16CalibrationLevelE @ 61 NONAME - _ZN10QtMobility15QCompassReadingC1EP7QObject @ 62 NONAME - _ZN10QtMobility15QCompassReadingC2EP7QObject @ 63 NONAME - _ZN10QtMobility15QCompassReadingD0Ev @ 64 NONAME - _ZN10QtMobility15QCompassReadingD1Ev @ 65 NONAME - _ZN10QtMobility15QCompassReadingD2Ev @ 66 NONAME - _ZN10QtMobility15QRotationSensor11qt_metacallEN11QMetaObject4CallEiPPv @ 67 NONAME - _ZN10QtMobility15QRotationSensor11qt_metacastEPKc @ 68 NONAME - _ZN10QtMobility15QRotationSensor16staticMetaObjectE @ 69 NONAME DATA 16 - _ZN10QtMobility15QRotationSensor19getStaticMetaObjectEv @ 70 NONAME - _ZN10QtMobility15QRotationSensor4typeE @ 71 NONAME DATA 4 - _ZN10QtMobility16QProximitySensor11qt_metacallEN11QMetaObject4CallEiPPv @ 72 NONAME - _ZN10QtMobility16QProximitySensor11qt_metacastEPKc @ 73 NONAME - _ZN10QtMobility16QProximitySensor16staticMetaObjectE @ 74 NONAME DATA 16 - _ZN10QtMobility16QProximitySensor19getStaticMetaObjectEv @ 75 NONAME - _ZN10QtMobility16QProximitySensor4typeE @ 76 NONAME DATA 4 - _ZN10QtMobility16QRotationReading11qt_metacallEN11QMetaObject4CallEiPPv @ 77 NONAME - _ZN10QtMobility16QRotationReading11qt_metacastEPKc @ 78 NONAME - _ZN10QtMobility16QRotationReading14copyValuesFromEPNS_14QSensorReadingE @ 79 NONAME - _ZN10QtMobility16QRotationReading16staticMetaObjectE @ 80 NONAME DATA 16 - _ZN10QtMobility16QRotationReading19getStaticMetaObjectEv @ 81 NONAME - _ZN10QtMobility16QRotationReading4setXEf @ 82 NONAME - _ZN10QtMobility16QRotationReading4setYEf @ 83 NONAME - _ZN10QtMobility16QRotationReading4setZEf @ 84 NONAME - _ZN10QtMobility16QRotationReadingC1EP7QObject @ 85 NONAME - _ZN10QtMobility16QRotationReadingC2EP7QObject @ 86 NONAME - _ZN10QtMobility16QRotationReadingD0Ev @ 87 NONAME - _ZN10QtMobility16QRotationReadingD1Ev @ 88 NONAME - _ZN10QtMobility16QRotationReadingD2Ev @ 89 NONAME - _ZN10QtMobility17QProximityReading11qt_metacallEN11QMetaObject4CallEiPPv @ 90 NONAME - _ZN10QtMobility17QProximityReading11qt_metacastEPKc @ 91 NONAME - _ZN10QtMobility17QProximityReading12setProximityENS0_9ProximityE @ 92 NONAME - _ZN10QtMobility17QProximityReading14copyValuesFromEPNS_14QSensorReadingE @ 93 NONAME - _ZN10QtMobility17QProximityReading16staticMetaObjectE @ 94 NONAME DATA 16 - _ZN10QtMobility17QProximityReading19getStaticMetaObjectEv @ 95 NONAME - _ZN10QtMobility17QProximityReadingC1EP7QObject @ 96 NONAME - _ZN10QtMobility17QProximityReadingC2EP7QObject @ 97 NONAME - _ZN10QtMobility17QProximityReadingD0Ev @ 98 NONAME - _ZN10QtMobility17QProximityReadingD1Ev @ 99 NONAME - _ZN10QtMobility17QProximityReadingD2Ev @ 100 NONAME - _ZN10QtMobility18QOrientationSensor11qt_metacallEN11QMetaObject4CallEiPPv @ 101 NONAME - _ZN10QtMobility18QOrientationSensor11qt_metacastEPKc @ 102 NONAME - _ZN10QtMobility18QOrientationSensor16staticMetaObjectE @ 103 NONAME DATA 16 - _ZN10QtMobility18QOrientationSensor19getStaticMetaObjectEv @ 104 NONAME - _ZN10QtMobility18QOrientationSensor4typeE @ 105 NONAME DATA 4 - _ZN10QtMobility19QAmbientLightSensor11qt_metacallEN11QMetaObject4CallEiPPv @ 106 NONAME - _ZN10QtMobility19QAmbientLightSensor11qt_metacastEPKc @ 107 NONAME - _ZN10QtMobility19QAmbientLightSensor16staticMetaObjectE @ 108 NONAME DATA 16 - _ZN10QtMobility19QAmbientLightSensor19getStaticMetaObjectEv @ 109 NONAME - _ZN10QtMobility19QAmbientLightSensor4typeE @ 110 NONAME DATA 4 - _ZN10QtMobility19QOrientationReading11qt_metacallEN11QMetaObject4CallEiPPv @ 111 NONAME - _ZN10QtMobility19QOrientationReading11qt_metacastEPKc @ 112 NONAME - _ZN10QtMobility19QOrientationReading14copyValuesFromEPNS_14QSensorReadingE @ 113 NONAME - _ZN10QtMobility19QOrientationReading14setOrientationENS0_11OrientationE @ 114 NONAME - _ZN10QtMobility19QOrientationReading16staticMetaObjectE @ 115 NONAME DATA 16 - _ZN10QtMobility19QOrientationReading19getStaticMetaObjectEv @ 116 NONAME - _ZN10QtMobility19QOrientationReadingC1EP7QObject @ 117 NONAME - _ZN10QtMobility19QOrientationReadingC2EP7QObject @ 118 NONAME - _ZN10QtMobility19QOrientationReadingD0Ev @ 119 NONAME - _ZN10QtMobility19QOrientationReadingD1Ev @ 120 NONAME - _ZN10QtMobility19QOrientationReadingD2Ev @ 121 NONAME - _ZN10QtMobility20QAmbientLightReading11qt_metacallEN11QMetaObject4CallEiPPv @ 122 NONAME - _ZN10QtMobility20QAmbientLightReading11qt_metacastEPKc @ 123 NONAME - _ZN10QtMobility20QAmbientLightReading13setLightLevelENS0_10LightLevelE @ 124 NONAME - _ZN10QtMobility20QAmbientLightReading14copyValuesFromEPNS_14QSensorReadingE @ 125 NONAME - _ZN10QtMobility20QAmbientLightReading16staticMetaObjectE @ 126 NONAME DATA 16 - _ZN10QtMobility20QAmbientLightReading19getStaticMetaObjectEv @ 127 NONAME - _ZN10QtMobility20QAmbientLightReadingC1EP7QObject @ 128 NONAME - _ZN10QtMobility20QAmbientLightReadingC2EP7QObject @ 129 NONAME - _ZN10QtMobility20QAmbientLightReadingD0Ev @ 130 NONAME - _ZN10QtMobility20QAmbientLightReadingD1Ev @ 131 NONAME - _ZN10QtMobility20QAmbientLightReadingD2Ev @ 132 NONAME - _ZN10QtMobility20QMagnetometerReading11qt_metacallEN11QMetaObject4CallEiPPv @ 133 NONAME - _ZN10QtMobility20QMagnetometerReading11qt_metacastEPKc @ 134 NONAME - _ZN10QtMobility20QMagnetometerReading14copyValuesFromEPNS_14QSensorReadingE @ 135 NONAME - _ZN10QtMobility20QMagnetometerReading15setCalibrated_xEf @ 136 NONAME - _ZN10QtMobility20QMagnetometerReading15setCalibrated_yEf @ 137 NONAME - _ZN10QtMobility20QMagnetometerReading15setCalibrated_zEf @ 138 NONAME - _ZN10QtMobility20QMagnetometerReading16staticMetaObjectE @ 139 NONAME DATA 16 - _ZN10QtMobility20QMagnetometerReading19getStaticMetaObjectEv @ 140 NONAME - _ZN10QtMobility20QMagnetometerReading19setCalibrationLevelENS0_16CalibrationLevelE @ 141 NONAME - _ZN10QtMobility20QMagnetometerReading4setXEf @ 142 NONAME - _ZN10QtMobility20QMagnetometerReading4setYEf @ 143 NONAME - _ZN10QtMobility20QMagnetometerReading4setZEf @ 144 NONAME - _ZN10QtMobility20QMagnetometerReadingC1EP7QObject @ 145 NONAME - _ZN10QtMobility20QMagnetometerReadingC2EP7QObject @ 146 NONAME - _ZN10QtMobility20QMagnetometerReadingD0Ev @ 147 NONAME - _ZN10QtMobility20QMagnetometerReadingD1Ev @ 148 NONAME - _ZN10QtMobility20QMagnetometerReadingD2Ev @ 149 NONAME - _ZN10QtMobility21QAccelerometerReading11qt_metacallEN11QMetaObject4CallEiPPv @ 150 NONAME - _ZN10QtMobility21QAccelerometerReading11qt_metacastEPKc @ 151 NONAME - _ZN10QtMobility21QAccelerometerReading14copyValuesFromEPNS_14QSensorReadingE @ 152 NONAME - _ZN10QtMobility21QAccelerometerReading16staticMetaObjectE @ 153 NONAME DATA 16 - _ZN10QtMobility21QAccelerometerReading19getStaticMetaObjectEv @ 154 NONAME - _ZN10QtMobility21QAccelerometerReading4setXEf @ 155 NONAME - _ZN10QtMobility21QAccelerometerReading4setYEf @ 156 NONAME - _ZN10QtMobility21QAccelerometerReading4setZEf @ 157 NONAME - _ZN10QtMobility21QAccelerometerReadingC1EP7QObject @ 158 NONAME - _ZN10QtMobility21QAccelerometerReadingC2EP7QObject @ 159 NONAME - _ZN10QtMobility21QAccelerometerReadingD0Ev @ 160 NONAME - _ZN10QtMobility21QAccelerometerReadingD1Ev @ 161 NONAME - _ZN10QtMobility21QAccelerometerReadingD2Ev @ 162 NONAME - _ZN10QtMobility7QSensor11qt_metacallEN11QMetaObject4CallEiPPv @ 163 NONAME - _ZN10QtMobility7QSensor11qt_metacastEPKc @ 164 NONAME - _ZN10QtMobility7QSensor11sensorTypesEv @ 165 NONAME - _ZN10QtMobility7QSensor12removeFilterEPNS_13QSensorFilterE @ 166 NONAME - _ZN10QtMobility7QSensor13setIdentifierERK10QByteArray @ 167 NONAME - _ZN10QtMobility7QSensor14readingChangedEv @ 168 NONAME - _ZN10QtMobility7QSensor14sensorsForTypeERK10QByteArray @ 169 NONAME - _ZN10QtMobility7QSensor15setUpdatePolicyENS0_12UpdatePolicyE @ 170 NONAME - _ZN10QtMobility7QSensor16setSignalEnabledEb @ 171 NONAME - _ZN10QtMobility7QSensor16staticMetaObjectE @ 172 NONAME DATA 16 - _ZN10QtMobility7QSensor17setUpdateIntervalEi @ 173 NONAME - _ZN10QtMobility7QSensor19getStaticMetaObjectEv @ 174 NONAME - _ZN10QtMobility7QSensor20defaultSensorForTypeERK10QByteArray @ 175 NONAME - _ZN10QtMobility7QSensor4pollEv @ 176 NONAME - _ZN10QtMobility7QSensor4stopEv @ 177 NONAME - _ZN10QtMobility7QSensor5startEv @ 178 NONAME - _ZN10QtMobility7QSensor7connectEv @ 179 NONAME - _ZN10QtMobility7QSensor7setTypeERK10QByteArray @ 180 NONAME - _ZN10QtMobility7QSensor9addFilterEPNS_13QSensorFilterE @ 181 NONAME - _ZN10QtMobility7QSensor9setActiveEb @ 182 NONAME - _ZN10QtMobility7QSensorC1EP7QObject @ 183 NONAME - _ZN10QtMobility7QSensorC2EP7QObject @ 184 NONAME - _ZN10QtMobility7QSensorD0Ev @ 185 NONAME - _ZN10QtMobility7QSensorD1Ev @ 186 NONAME - _ZN10QtMobility7QSensorD2Ev @ 187 NONAME - _ZN10QtMobility8QCompass11qt_metacallEN11QMetaObject4CallEiPPv @ 188 NONAME - _ZN10QtMobility8QCompass11qt_metacastEPKc @ 189 NONAME - _ZN10QtMobility8QCompass16staticMetaObjectE @ 190 NONAME DATA 16 - _ZN10QtMobility8QCompass19getStaticMetaObjectEv @ 191 NONAME - _ZN10QtMobility8QCompass4typeE @ 192 NONAME DATA 4 - _ZNK10QtMobility10QTapSensor10metaObjectEv @ 193 NONAME - _ZNK10QtMobility11QTapReading10metaObjectEv @ 194 NONAME - _ZNK10QtMobility11QTapReading11isDoubleTapEv @ 195 NONAME - _ZNK10QtMobility11QTapReading12tapDirectionEv @ 196 NONAME - _ZNK10QtMobility13QMagnetometer10metaObjectEv @ 197 NONAME - _ZNK10QtMobility14QAccelerometer10metaObjectEv @ 198 NONAME - _ZNK10QtMobility14QSensorBackend10metaObjectEv @ 199 NONAME - _ZNK10QtMobility14QSensorBackend7readingEv @ 200 NONAME - _ZNK10QtMobility14QSensorReading10metaObjectEv @ 201 NONAME - _ZNK10QtMobility14QSensorReading9timestampEv @ 202 NONAME - _ZNK10QtMobility15QCompassReading10metaObjectEv @ 203 NONAME - _ZNK10QtMobility15QCompassReading16calibrationLevelEv @ 204 NONAME - _ZNK10QtMobility15QCompassReading7azimuthEv @ 205 NONAME - _ZNK10QtMobility15QRotationSensor10metaObjectEv @ 206 NONAME - _ZNK10QtMobility16QProximitySensor10metaObjectEv @ 207 NONAME - _ZNK10QtMobility16QRotationReading10metaObjectEv @ 208 NONAME - _ZNK10QtMobility16QRotationReading1xEv @ 209 NONAME - _ZNK10QtMobility16QRotationReading1yEv @ 210 NONAME - _ZNK10QtMobility16QRotationReading1zEv @ 211 NONAME - _ZNK10QtMobility17QProximityReading10metaObjectEv @ 212 NONAME - _ZNK10QtMobility17QProximityReading9proximityEv @ 213 NONAME - _ZNK10QtMobility18QOrientationSensor10metaObjectEv @ 214 NONAME - _ZNK10QtMobility19QAmbientLightSensor10metaObjectEv @ 215 NONAME - _ZNK10QtMobility19QOrientationReading10metaObjectEv @ 216 NONAME - _ZNK10QtMobility19QOrientationReading11orientationEv @ 217 NONAME - _ZNK10QtMobility20QAmbientLightReading10lightLevelEv @ 218 NONAME - _ZNK10QtMobility20QAmbientLightReading10metaObjectEv @ 219 NONAME - _ZNK10QtMobility20QMagnetometerReading10metaObjectEv @ 220 NONAME - _ZNK10QtMobility20QMagnetometerReading12calibrated_xEv @ 221 NONAME - _ZNK10QtMobility20QMagnetometerReading12calibrated_yEv @ 222 NONAME - _ZNK10QtMobility20QMagnetometerReading12calibrated_zEv @ 223 NONAME - _ZNK10QtMobility20QMagnetometerReading16calibrationLevelEv @ 224 NONAME - _ZNK10QtMobility20QMagnetometerReading1xEv @ 225 NONAME - _ZNK10QtMobility20QMagnetometerReading1yEv @ 226 NONAME - _ZNK10QtMobility20QMagnetometerReading1zEv @ 227 NONAME - _ZNK10QtMobility21QAccelerometerReading10metaObjectEv @ 228 NONAME - _ZNK10QtMobility21QAccelerometerReading1xEv @ 229 NONAME - _ZNK10QtMobility21QAccelerometerReading1yEv @ 230 NONAME - _ZNK10QtMobility21QAccelerometerReading1zEv @ 231 NONAME - _ZNK10QtMobility7QSensor10identifierEv @ 232 NONAME - _ZNK10QtMobility7QSensor10metaObjectEv @ 233 NONAME - _ZNK10QtMobility7QSensor11isAvailableEv @ 234 NONAME - _ZNK10QtMobility7QSensor12updatePolicyEv @ 235 NONAME - _ZNK10QtMobility7QSensor14updateIntervalEv @ 236 NONAME - _ZNK10QtMobility7QSensor15isSignalEnabledEv @ 237 NONAME - _ZNK10QtMobility7QSensor23supportedUpdatePoliciesEv @ 238 NONAME - _ZNK10QtMobility7QSensor4typeEv @ 239 NONAME - _ZNK10QtMobility7QSensor7readingEv @ 240 NONAME - _ZNK10QtMobility7QSensor8isActiveEv @ 241 NONAME - _ZNK10QtMobility8QCompass10metaObjectEv @ 242 NONAME - _ZTIN10QtMobility10QTapSensorE @ 243 NONAME ; ## - _ZTIN10QtMobility11QTapReadingE @ 244 NONAME ; ## - _ZTIN10QtMobility13QMagnetometerE @ 245 NONAME ; ## - _ZTIN10QtMobility13QSensorFilterE @ 246 NONAME ; ## - _ZTIN10QtMobility14QAccelerometerE @ 247 NONAME ; ## - _ZTIN10QtMobility14QSensorBackendE @ 248 NONAME ; ## - _ZTIN10QtMobility14QSensorReadingE @ 249 NONAME ; ## - _ZTIN10QtMobility15QCompassReadingE @ 250 NONAME ; ## - _ZTIN10QtMobility15QRotationSensorE @ 251 NONAME ; ## - _ZTIN10QtMobility16QProximitySensorE @ 252 NONAME ; ## - _ZTIN10QtMobility16QRotationReadingE @ 253 NONAME ; ## - _ZTIN10QtMobility17QProximityReadingE @ 254 NONAME ; ## - _ZTIN10QtMobility18QOrientationSensorE @ 255 NONAME ; ## - _ZTIN10QtMobility19QAmbientLightSensorE @ 256 NONAME ; ## - _ZTIN10QtMobility19QOrientationReadingE @ 257 NONAME ; ## - _ZTIN10QtMobility20QAmbientLightReadingE @ 258 NONAME ; ## - _ZTIN10QtMobility20QMagnetometerReadingE @ 259 NONAME ; ## - _ZTIN10QtMobility21QAccelerometerReadingE @ 260 NONAME ; ## - _ZTIN10QtMobility7QSensorE @ 261 NONAME ; ## - _ZTIN10QtMobility8QCompassE @ 262 NONAME ; ## - _ZTVN10QtMobility10QTapSensorE @ 263 NONAME ; ## - _ZTVN10QtMobility11QTapReadingE @ 264 NONAME ; ## - _ZTVN10QtMobility13QMagnetometerE @ 265 NONAME ; ## - _ZTVN10QtMobility13QSensorFilterE @ 266 NONAME ; ## - _ZTVN10QtMobility14QAccelerometerE @ 267 NONAME ; ## - _ZTVN10QtMobility14QSensorBackendE @ 268 NONAME ; ## - _ZTVN10QtMobility14QSensorReadingE @ 269 NONAME ; ## - _ZTVN10QtMobility15QCompassReadingE @ 270 NONAME ; ## - _ZTVN10QtMobility15QRotationSensorE @ 271 NONAME ; ## - _ZTVN10QtMobility16QProximitySensorE @ 272 NONAME ; ## - _ZTVN10QtMobility16QRotationReadingE @ 273 NONAME ; ## - _ZTVN10QtMobility17QProximityReadingE @ 274 NONAME ; ## - _ZTVN10QtMobility18QOrientationSensorE @ 275 NONAME ; ## - _ZTVN10QtMobility19QAmbientLightSensorE @ 276 NONAME ; ## - _ZTVN10QtMobility19QOrientationReadingE @ 277 NONAME ; ## - _ZTVN10QtMobility20QAmbientLightReadingE @ 278 NONAME ; ## - _ZTVN10QtMobility20QMagnetometerReadingE @ 279 NONAME ; ## - _ZTVN10QtMobility21QAccelerometerReadingE @ 280 NONAME ; ## - _ZTVN10QtMobility7QSensorE @ 281 NONAME ; ## - _ZTVN10QtMobility8QCompassE @ 282 NONAME ; ## + _ZN10QtMobility14QSensorBackend10sensorBusyEv @ 32 NONAME + _ZN10QtMobility14QSensorBackend11addDataRateEff @ 33 NONAME + _ZN10QtMobility14QSensorBackend11qt_metacallEN11QMetaObject4CallEiPPv @ 34 NONAME + _ZN10QtMobility14QSensorBackend11qt_metacastEPKc @ 35 NONAME + _ZN10QtMobility14QSensorBackend11sensorErrorEi @ 36 NONAME + _ZN10QtMobility14QSensorBackend11setReadingsEPNS_14QSensorReadingES2_S2_ @ 37 NONAME + _ZN10QtMobility14QSensorBackend12setDataRatesEPKNS_7QSensorE @ 38 NONAME + _ZN10QtMobility14QSensorBackend13sensorStoppedEv @ 39 NONAME + _ZN10QtMobility14QSensorBackend14addOutputRangeEfff @ 40 NONAME + _ZN10QtMobility14QSensorBackend14setDescriptionERK7QString @ 41 NONAME + _ZN10QtMobility14QSensorBackend16staticMetaObjectE @ 42 NONAME DATA 16 + _ZN10QtMobility14QSensorBackend19getStaticMetaObjectEv @ 43 NONAME + _ZN10QtMobility14QSensorBackend19newReadingAvailableEv @ 44 NONAME + _ZN10QtMobility14QSensorBackendC2EPNS_7QSensorE @ 45 NONAME + _ZN10QtMobility14QSensorBackendD0Ev @ 46 NONAME + _ZN10QtMobility14QSensorBackendD1Ev @ 47 NONAME + _ZN10QtMobility14QSensorBackendD2Ev @ 48 NONAME + _ZN10QtMobility14QSensorManager13createBackendEPNS_7QSensorE @ 49 NONAME + _ZN10QtMobility14QSensorManager15registerBackendERK10QByteArrayS3_PNS_21QSensorBackendFactoryE @ 50 NONAME + _ZN10QtMobility14QSensorManager20registerStaticPluginEPFPNS_22QSensorPluginInterfaceEvE @ 51 NONAME + _ZN10QtMobility14QSensorReading11qt_metacallEN11QMetaObject4CallEiPPv @ 52 NONAME + _ZN10QtMobility14QSensorReading11qt_metacastEPKc @ 53 NONAME + _ZN10QtMobility14QSensorReading12setTimestampENS_10qtimestampE @ 54 NONAME + _ZN10QtMobility14QSensorReading16staticMetaObjectE @ 55 NONAME DATA 16 + _ZN10QtMobility14QSensorReading19getStaticMetaObjectEv @ 56 NONAME + _ZN10QtMobility14QSensorReadingC2EP7QObjectPNS_21QSensorReadingPrivateE @ 57 NONAME + _ZN10QtMobility14QSensorReadingD0Ev @ 58 NONAME + _ZN10QtMobility14QSensorReadingD1Ev @ 59 NONAME + _ZN10QtMobility14QSensorReadingD2Ev @ 60 NONAME + _ZN10QtMobility15QCompassReading10setAzimuthEf @ 61 NONAME + _ZN10QtMobility15QCompassReading11qt_metacallEN11QMetaObject4CallEiPPv @ 62 NONAME + _ZN10QtMobility15QCompassReading11qt_metacastEPKc @ 63 NONAME + _ZN10QtMobility15QCompassReading14copyValuesFromEPNS_14QSensorReadingE @ 64 NONAME + _ZN10QtMobility15QCompassReading16staticMetaObjectE @ 65 NONAME DATA 16 + _ZN10QtMobility15QCompassReading19getStaticMetaObjectEv @ 66 NONAME + _ZN10QtMobility15QCompassReading19setCalibrationLevelEf @ 67 NONAME + _ZN10QtMobility15QCompassReadingC1EP7QObject @ 68 NONAME + _ZN10QtMobility15QCompassReadingC2EP7QObject @ 69 NONAME + _ZN10QtMobility15QCompassReadingD0Ev @ 70 NONAME + _ZN10QtMobility15QCompassReadingD1Ev @ 71 NONAME + _ZN10QtMobility15QCompassReadingD2Ev @ 72 NONAME + _ZN10QtMobility15QRotationSensor11qt_metacallEN11QMetaObject4CallEiPPv @ 73 NONAME + _ZN10QtMobility15QRotationSensor11qt_metacastEPKc @ 74 NONAME + _ZN10QtMobility15QRotationSensor16staticMetaObjectE @ 75 NONAME DATA 16 + _ZN10QtMobility15QRotationSensor19getStaticMetaObjectEv @ 76 NONAME + _ZN10QtMobility15QRotationSensor4typeE @ 77 NONAME DATA 4 + _ZN10QtMobility16QProximitySensor11qt_metacallEN11QMetaObject4CallEiPPv @ 78 NONAME + _ZN10QtMobility16QProximitySensor11qt_metacastEPKc @ 79 NONAME + _ZN10QtMobility16QProximitySensor16staticMetaObjectE @ 80 NONAME DATA 16 + _ZN10QtMobility16QProximitySensor19getStaticMetaObjectEv @ 81 NONAME + _ZN10QtMobility16QProximitySensor4typeE @ 82 NONAME DATA 4 + _ZN10QtMobility16QRotationReading11qt_metacallEN11QMetaObject4CallEiPPv @ 83 NONAME + _ZN10QtMobility16QRotationReading11qt_metacastEPKc @ 84 NONAME + _ZN10QtMobility16QRotationReading14copyValuesFromEPNS_14QSensorReadingE @ 85 NONAME + _ZN10QtMobility16QRotationReading16staticMetaObjectE @ 86 NONAME DATA 16 + _ZN10QtMobility16QRotationReading19getStaticMetaObjectEv @ 87 NONAME + _ZN10QtMobility16QRotationReading4setXEf @ 88 NONAME + _ZN10QtMobility16QRotationReading4setYEf @ 89 NONAME + _ZN10QtMobility16QRotationReading4setZEf @ 90 NONAME + _ZN10QtMobility16QRotationReadingC1EP7QObject @ 91 NONAME + _ZN10QtMobility16QRotationReadingC2EP7QObject @ 92 NONAME + _ZN10QtMobility16QRotationReadingD0Ev @ 93 NONAME + _ZN10QtMobility16QRotationReadingD1Ev @ 94 NONAME + _ZN10QtMobility16QRotationReadingD2Ev @ 95 NONAME + _ZN10QtMobility17QProximityReading11qt_metacallEN11QMetaObject4CallEiPPv @ 96 NONAME + _ZN10QtMobility17QProximityReading11qt_metacastEPKc @ 97 NONAME + _ZN10QtMobility17QProximityReading14copyValuesFromEPNS_14QSensorReadingE @ 98 NONAME + _ZN10QtMobility17QProximityReading16staticMetaObjectE @ 99 NONAME DATA 16 + _ZN10QtMobility17QProximityReading19getStaticMetaObjectEv @ 100 NONAME + _ZN10QtMobility17QProximityReading8setCloseEb @ 101 NONAME + _ZN10QtMobility17QProximityReadingC1EP7QObject @ 102 NONAME + _ZN10QtMobility17QProximityReadingC2EP7QObject @ 103 NONAME + _ZN10QtMobility17QProximityReadingD0Ev @ 104 NONAME + _ZN10QtMobility17QProximityReadingD1Ev @ 105 NONAME + _ZN10QtMobility17QProximityReadingD2Ev @ 106 NONAME + _ZN10QtMobility18QOrientationSensor11qt_metacallEN11QMetaObject4CallEiPPv @ 107 NONAME + _ZN10QtMobility18QOrientationSensor11qt_metacastEPKc @ 108 NONAME + _ZN10QtMobility18QOrientationSensor16staticMetaObjectE @ 109 NONAME DATA 16 + _ZN10QtMobility18QOrientationSensor19getStaticMetaObjectEv @ 110 NONAME + _ZN10QtMobility18QOrientationSensor4typeE @ 111 NONAME DATA 4 + _ZN10QtMobility19QAmbientLightSensor11qt_metacallEN11QMetaObject4CallEiPPv @ 112 NONAME + _ZN10QtMobility19QAmbientLightSensor11qt_metacastEPKc @ 113 NONAME + _ZN10QtMobility19QAmbientLightSensor16staticMetaObjectE @ 114 NONAME DATA 16 + _ZN10QtMobility19QAmbientLightSensor19getStaticMetaObjectEv @ 115 NONAME + _ZN10QtMobility19QAmbientLightSensor4typeE @ 116 NONAME DATA 4 + _ZN10QtMobility19QOrientationReading11qt_metacallEN11QMetaObject4CallEiPPv @ 117 NONAME + _ZN10QtMobility19QOrientationReading11qt_metacastEPKc @ 118 NONAME + _ZN10QtMobility19QOrientationReading14copyValuesFromEPNS_14QSensorReadingE @ 119 NONAME + _ZN10QtMobility19QOrientationReading14setOrientationENS0_11OrientationE @ 120 NONAME + _ZN10QtMobility19QOrientationReading16staticMetaObjectE @ 121 NONAME DATA 16 + _ZN10QtMobility19QOrientationReading19getStaticMetaObjectEv @ 122 NONAME + _ZN10QtMobility19QOrientationReadingC1EP7QObject @ 123 NONAME + _ZN10QtMobility19QOrientationReadingC2EP7QObject @ 124 NONAME + _ZN10QtMobility19QOrientationReadingD0Ev @ 125 NONAME + _ZN10QtMobility19QOrientationReadingD1Ev @ 126 NONAME + _ZN10QtMobility19QOrientationReadingD2Ev @ 127 NONAME + _ZN10QtMobility19QSensorPluginLoader4loadEv @ 128 NONAME + _ZN10QtMobility19QSensorPluginLoaderC1EPKcRK7QString @ 129 NONAME + _ZN10QtMobility19QSensorPluginLoaderC2EPKcRK7QString @ 130 NONAME + _ZN10QtMobility19QSensorPluginLoaderD1Ev @ 131 NONAME + _ZN10QtMobility19QSensorPluginLoaderD2Ev @ 132 NONAME + _ZN10QtMobility20QAmbientLightReading11qt_metacallEN11QMetaObject4CallEiPPv @ 133 NONAME + _ZN10QtMobility20QAmbientLightReading11qt_metacastEPKc @ 134 NONAME + _ZN10QtMobility20QAmbientLightReading13setLightLevelENS0_10LightLevelE @ 135 NONAME + _ZN10QtMobility20QAmbientLightReading14copyValuesFromEPNS_14QSensorReadingE @ 136 NONAME + _ZN10QtMobility20QAmbientLightReading16staticMetaObjectE @ 137 NONAME DATA 16 + _ZN10QtMobility20QAmbientLightReading19getStaticMetaObjectEv @ 138 NONAME + _ZN10QtMobility20QAmbientLightReadingC1EP7QObject @ 139 NONAME + _ZN10QtMobility20QAmbientLightReadingC2EP7QObject @ 140 NONAME + _ZN10QtMobility20QAmbientLightReadingD0Ev @ 141 NONAME + _ZN10QtMobility20QAmbientLightReadingD1Ev @ 142 NONAME + _ZN10QtMobility20QAmbientLightReadingD2Ev @ 143 NONAME + _ZN10QtMobility20QMagnetometerReading11qt_metacallEN11QMetaObject4CallEiPPv @ 144 NONAME + _ZN10QtMobility20QMagnetometerReading11qt_metacastEPKc @ 145 NONAME + _ZN10QtMobility20QMagnetometerReading14copyValuesFromEPNS_14QSensorReadingE @ 146 NONAME + _ZN10QtMobility20QMagnetometerReading16staticMetaObjectE @ 147 NONAME DATA 16 + _ZN10QtMobility20QMagnetometerReading19getStaticMetaObjectEv @ 148 NONAME + _ZN10QtMobility20QMagnetometerReading19setCalibrationLevelEf @ 149 NONAME + _ZN10QtMobility20QMagnetometerReading4setXEf @ 150 NONAME + _ZN10QtMobility20QMagnetometerReading4setYEf @ 151 NONAME + _ZN10QtMobility20QMagnetometerReading4setZEf @ 152 NONAME + _ZN10QtMobility20QMagnetometerReadingC1EP7QObject @ 153 NONAME + _ZN10QtMobility20QMagnetometerReadingC2EP7QObject @ 154 NONAME + _ZN10QtMobility20QMagnetometerReadingD0Ev @ 155 NONAME + _ZN10QtMobility20QMagnetometerReadingD1Ev @ 156 NONAME + _ZN10QtMobility20QMagnetometerReadingD2Ev @ 157 NONAME + _ZN10QtMobility21QAccelerometerReading11qt_metacallEN11QMetaObject4CallEiPPv @ 158 NONAME + _ZN10QtMobility21QAccelerometerReading11qt_metacastEPKc @ 159 NONAME + _ZN10QtMobility21QAccelerometerReading14copyValuesFromEPNS_14QSensorReadingE @ 160 NONAME + _ZN10QtMobility21QAccelerometerReading16staticMetaObjectE @ 161 NONAME DATA 16 + _ZN10QtMobility21QAccelerometerReading19getStaticMetaObjectEv @ 162 NONAME + _ZN10QtMobility21QAccelerometerReading4setXEf @ 163 NONAME + _ZN10QtMobility21QAccelerometerReading4setYEf @ 164 NONAME + _ZN10QtMobility21QAccelerometerReading4setZEf @ 165 NONAME + _ZN10QtMobility21QAccelerometerReadingC1EP7QObject @ 166 NONAME + _ZN10QtMobility21QAccelerometerReadingC2EP7QObject @ 167 NONAME + _ZN10QtMobility21QAccelerometerReadingD0Ev @ 168 NONAME + _ZN10QtMobility21QAccelerometerReadingD1Ev @ 169 NONAME + _ZN10QtMobility21QAccelerometerReadingD2Ev @ 170 NONAME + _ZN10QtMobility7QSensor11busyChangedEv @ 171 NONAME + _ZN10QtMobility7QSensor11qt_metacallEN11QMetaObject4CallEiPPv @ 172 NONAME + _ZN10QtMobility7QSensor11qt_metacastEPKc @ 173 NONAME + _ZN10QtMobility7QSensor11sensorErrorEi @ 174 NONAME + _ZN10QtMobility7QSensor11sensorTypesEv @ 175 NONAME + _ZN10QtMobility7QSensor11setDataRateEi @ 176 NONAME + _ZN10QtMobility7QSensor12removeFilterEPNS_13QSensorFilterE @ 177 NONAME + _ZN10QtMobility7QSensor13setIdentifierERK10QByteArray @ 178 NONAME + _ZN10QtMobility7QSensor14readingChangedEv @ 179 NONAME + _ZN10QtMobility7QSensor14sensorsForTypeERK10QByteArray @ 180 NONAME + _ZN10QtMobility7QSensor14setOutputRangeEi @ 181 NONAME + _ZN10QtMobility7QSensor16connectToBackendEv @ 182 NONAME + _ZN10QtMobility7QSensor16staticMetaObjectE @ 183 NONAME DATA 16 + _ZN10QtMobility7QSensor19getStaticMetaObjectEv @ 184 NONAME + _ZN10QtMobility7QSensor20defaultSensorForTypeERK10QByteArray @ 185 NONAME + _ZN10QtMobility7QSensor4stopEv @ 186 NONAME + _ZN10QtMobility7QSensor5startEv @ 187 NONAME + _ZN10QtMobility7QSensor9addFilterEPNS_13QSensorFilterE @ 188 NONAME + _ZN10QtMobility7QSensorC1ERK10QByteArrayP7QObject @ 189 NONAME + _ZN10QtMobility7QSensorC2ERK10QByteArrayP7QObject @ 190 NONAME + _ZN10QtMobility7QSensorD0Ev @ 191 NONAME + _ZN10QtMobility7QSensorD1Ev @ 192 NONAME + _ZN10QtMobility7QSensorD2Ev @ 193 NONAME + _ZN10QtMobility8QCompass11qt_metacallEN11QMetaObject4CallEiPPv @ 194 NONAME + _ZN10QtMobility8QCompass11qt_metacastEPKc @ 195 NONAME + _ZN10QtMobility8QCompass16staticMetaObjectE @ 196 NONAME DATA 16 + _ZN10QtMobility8QCompass19getStaticMetaObjectEv @ 197 NONAME + _ZN10QtMobility8QCompass4typeE @ 198 NONAME DATA 4 + _ZNK10QtMobility10QTapSensor10metaObjectEv @ 199 NONAME + _ZNK10QtMobility11QTapReading10metaObjectEv @ 200 NONAME + _ZNK10QtMobility11QTapReading11isDoubleTapEv @ 201 NONAME + _ZNK10QtMobility11QTapReading12tapDirectionEv @ 202 NONAME + _ZNK10QtMobility13QMagnetometer10metaObjectEv @ 203 NONAME + _ZNK10QtMobility14QAccelerometer10metaObjectEv @ 204 NONAME + _ZNK10QtMobility14QSensorBackend10metaObjectEv @ 205 NONAME + _ZNK10QtMobility14QSensorBackend7readingEv @ 206 NONAME + _ZNK10QtMobility14QSensorReading10metaObjectEv @ 207 NONAME + _ZNK10QtMobility14QSensorReading10valueCountEv @ 208 NONAME + _ZNK10QtMobility14QSensorReading5valueEi @ 209 NONAME + _ZNK10QtMobility14QSensorReading9timestampEv @ 210 NONAME + _ZNK10QtMobility15QCompassReading10metaObjectEv @ 211 NONAME + _ZNK10QtMobility15QCompassReading16calibrationLevelEv @ 212 NONAME + _ZNK10QtMobility15QCompassReading7azimuthEv @ 213 NONAME + _ZNK10QtMobility15QRotationSensor10metaObjectEv @ 214 NONAME + _ZNK10QtMobility16QProximitySensor10metaObjectEv @ 215 NONAME + _ZNK10QtMobility16QRotationReading10metaObjectEv @ 216 NONAME + _ZNK10QtMobility16QRotationReading1xEv @ 217 NONAME + _ZNK10QtMobility16QRotationReading1yEv @ 218 NONAME + _ZNK10QtMobility16QRotationReading1zEv @ 219 NONAME + _ZNK10QtMobility17QProximityReading10metaObjectEv @ 220 NONAME + _ZNK10QtMobility17QProximityReading5closeEv @ 221 NONAME + _ZNK10QtMobility18QOrientationSensor10metaObjectEv @ 222 NONAME + _ZNK10QtMobility19QAmbientLightSensor10metaObjectEv @ 223 NONAME + _ZNK10QtMobility19QOrientationReading10metaObjectEv @ 224 NONAME + _ZNK10QtMobility19QOrientationReading11orientationEv @ 225 NONAME + _ZNK10QtMobility20QAmbientLightReading10lightLevelEv @ 226 NONAME + _ZNK10QtMobility20QAmbientLightReading10metaObjectEv @ 227 NONAME + _ZNK10QtMobility20QMagnetometerReading10metaObjectEv @ 228 NONAME + _ZNK10QtMobility20QMagnetometerReading16calibrationLevelEv @ 229 NONAME + _ZNK10QtMobility20QMagnetometerReading1xEv @ 230 NONAME + _ZNK10QtMobility20QMagnetometerReading1yEv @ 231 NONAME + _ZNK10QtMobility20QMagnetometerReading1zEv @ 232 NONAME + _ZNK10QtMobility21QAccelerometerReading10metaObjectEv @ 233 NONAME + _ZNK10QtMobility21QAccelerometerReading1xEv @ 234 NONAME + _ZNK10QtMobility21QAccelerometerReading1yEv @ 235 NONAME + _ZNK10QtMobility21QAccelerometerReading1zEv @ 236 NONAME + _ZNK10QtMobility7QSensor10identifierEv @ 237 NONAME + _ZNK10QtMobility7QSensor10metaObjectEv @ 238 NONAME + _ZNK10QtMobility7QSensor11descriptionEv @ 239 NONAME + _ZNK10QtMobility7QSensor11outputRangeEv @ 240 NONAME + _ZNK10QtMobility7QSensor12outputRangesEv @ 241 NONAME + _ZNK10QtMobility7QSensor18availableDataRatesEv @ 242 NONAME + _ZNK10QtMobility7QSensor20isConnectedToBackendEv @ 243 NONAME + _ZNK10QtMobility7QSensor4typeEv @ 244 NONAME + _ZNK10QtMobility7QSensor5errorEv @ 245 NONAME + _ZNK10QtMobility7QSensor6isBusyEv @ 246 NONAME + _ZNK10QtMobility7QSensor7readingEv @ 247 NONAME + _ZNK10QtMobility7QSensor8dataRateEv @ 248 NONAME + _ZNK10QtMobility7QSensor8isActiveEv @ 249 NONAME + _ZNK10QtMobility8QCompass10metaObjectEv @ 250 NONAME + _ZTIN10QtMobility10QTapSensorE @ 251 NONAME + _ZTIN10QtMobility11QTapReadingE @ 252 NONAME + _ZTIN10QtMobility13QMagnetometerE @ 253 NONAME + _ZTIN10QtMobility13QSensorFilterE @ 254 NONAME + _ZTIN10QtMobility14QAccelerometerE @ 255 NONAME + _ZTIN10QtMobility14QSensorBackendE @ 256 NONAME + _ZTIN10QtMobility14QSensorReadingE @ 257 NONAME + _ZTIN10QtMobility15QCompassReadingE @ 258 NONAME + _ZTIN10QtMobility15QRotationSensorE @ 259 NONAME + _ZTIN10QtMobility16QProximitySensorE @ 260 NONAME + _ZTIN10QtMobility16QRotationReadingE @ 261 NONAME + _ZTIN10QtMobility17QProximityReadingE @ 262 NONAME + _ZTIN10QtMobility18QOrientationSensorE @ 263 NONAME + _ZTIN10QtMobility19QAmbientLightSensorE @ 264 NONAME + _ZTIN10QtMobility19QOrientationReadingE @ 265 NONAME + _ZTIN10QtMobility20QAmbientLightReadingE @ 266 NONAME + _ZTIN10QtMobility20QMagnetometerReadingE @ 267 NONAME + _ZTIN10QtMobility21QAccelerometerReadingE @ 268 NONAME + _ZTIN10QtMobility7QSensorE @ 269 NONAME + _ZTIN10QtMobility8QCompassE @ 270 NONAME + _ZTVN10QtMobility10QTapSensorE @ 271 NONAME + _ZTVN10QtMobility11QTapReadingE @ 272 NONAME + _ZTVN10QtMobility13QMagnetometerE @ 273 NONAME + _ZTVN10QtMobility13QSensorFilterE @ 274 NONAME + _ZTVN10QtMobility14QAccelerometerE @ 275 NONAME + _ZTVN10QtMobility14QSensorBackendE @ 276 NONAME + _ZTVN10QtMobility14QSensorReadingE @ 277 NONAME + _ZTVN10QtMobility15QCompassReadingE @ 278 NONAME + _ZTVN10QtMobility15QRotationSensorE @ 279 NONAME + _ZTVN10QtMobility16QProximitySensorE @ 280 NONAME + _ZTVN10QtMobility16QRotationReadingE @ 281 NONAME + _ZTVN10QtMobility17QProximityReadingE @ 282 NONAME + _ZTVN10QtMobility18QOrientationSensorE @ 283 NONAME + _ZTVN10QtMobility19QAmbientLightSensorE @ 284 NONAME + _ZTVN10QtMobility19QOrientationReadingE @ 285 NONAME + _ZTVN10QtMobility20QAmbientLightReadingE @ 286 NONAME + _ZTVN10QtMobility20QMagnetometerReadingE @ 287 NONAME + _ZTVN10QtMobility21QAccelerometerReadingE @ 288 NONAME + _ZTVN10QtMobility7QSensorE @ 289 NONAME + _ZTVN10QtMobility8QCompassE @ 290 NONAME diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/eabi/QtSystemInfou.def --- a/qtmobility/src/s60installs/eabi/QtSystemInfou.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/eabi/QtSystemInfou.def Mon May 03 13:18:40 2010 +0300 @@ -119,4 +119,7 @@ _ZTVN10QtMobility18QSystemNetworkInfoE @ 118 NONAME _ZTVN10QtMobility18QSystemScreenSaverE @ 119 NONAME _ZTVN10QtMobility18QSystemStorageInfoE @ 120 NONAME + _ZN10QtMobility18QSystemNetworkInfo11currentModeEv @ 121 NONAME + _ZN10QtMobility18QSystemNetworkInfo13connectNotifyEPKc @ 122 NONAME + _ZN10QtMobility18QSystemNetworkInfo16disconnectNotifyEPKc @ 123 NONAME diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/eabi/QtVersitu.def --- a/qtmobility/src/s60installs/eabi/QtVersitu.def Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/eabi/QtVersitu.def Mon May 03 13:18:40 2010 +0300 @@ -5,116 +5,133 @@ _ZN10QtMobility13QVersitReader12stateChangedENS0_5StateE @ 4 NONAME _ZN10QtMobility13QVersitReader15setDefaultCodecEP10QTextCodec @ 5 NONAME _ZN10QtMobility13QVersitReader15waitForFinishedEi @ 6 NONAME - _ZN10QtMobility13QVersitReader16resultsAvailableER5QListINS_15QVersitDocumentEE @ 7 NONAME + _ZN10QtMobility13QVersitReader16resultsAvailableEv @ 7 NONAME _ZN10QtMobility13QVersitReader16staticMetaObjectE @ 8 NONAME DATA 16 _ZN10QtMobility13QVersitReader19getStaticMetaObjectEv @ 9 NONAME _ZN10QtMobility13QVersitReader6cancelEv @ 10 NONAME - _ZN10QtMobility13QVersitReader9setDeviceEP9QIODevice @ 11 NONAME - _ZN10QtMobility13QVersitReaderC1Ev @ 12 NONAME - _ZN10QtMobility13QVersitReaderC2Ev @ 13 NONAME - _ZN10QtMobility13QVersitReaderD0Ev @ 14 NONAME - _ZN10QtMobility13QVersitReaderD1Ev @ 15 NONAME - _ZN10QtMobility13QVersitReaderD2Ev @ 16 NONAME - _ZN10QtMobility13QVersitWriter11qt_metacallEN11QMetaObject4CallEiPPv @ 17 NONAME - _ZN10QtMobility13QVersitWriter11qt_metacastEPKc @ 18 NONAME - _ZN10QtMobility13QVersitWriter12startWritingERK5QListINS_15QVersitDocumentEE @ 19 NONAME - _ZN10QtMobility13QVersitWriter12startWritingEv @ 20 NONAME - _ZN10QtMobility13QVersitWriter12stateChangedENS0_5StateE @ 21 NONAME - _ZN10QtMobility13QVersitWriter15setDefaultCodecEP10QTextCodec @ 22 NONAME - _ZN10QtMobility13QVersitWriter15waitForFinishedEi @ 23 NONAME - _ZN10QtMobility13QVersitWriter16staticMetaObjectE @ 24 NONAME DATA 16 - _ZN10QtMobility13QVersitWriter17setVersitDocumentERKNS_15QVersitDocumentE @ 25 NONAME - _ZN10QtMobility13QVersitWriter19getStaticMetaObjectEv @ 26 NONAME - _ZN10QtMobility13QVersitWriter6cancelEv @ 27 NONAME - _ZN10QtMobility13QVersitWriter8writeAllEv @ 28 NONAME - _ZN10QtMobility13QVersitWriter9setDeviceEP9QIODevice @ 29 NONAME - _ZN10QtMobility13QVersitWriterC1Ev @ 30 NONAME - _ZN10QtMobility13QVersitWriterC2Ev @ 31 NONAME - _ZN10QtMobility13QVersitWriterD0Ev @ 32 NONAME - _ZN10QtMobility13QVersitWriterD1Ev @ 33 NONAME - _ZN10QtMobility13QVersitWriterD2Ev @ 34 NONAME - _ZN10QtMobility15QVersitDocument11addPropertyERKNS_15QVersitPropertyE @ 35 NONAME - _ZN10QtMobility15QVersitDocument14removePropertyERKNS_15QVersitPropertyE @ 36 NONAME - _ZN10QtMobility15QVersitDocument16removePropertiesERK7QString @ 37 NONAME - _ZN10QtMobility15QVersitDocument5clearEv @ 38 NONAME - _ZN10QtMobility15QVersitDocument7setTypeENS0_10VersitTypeE @ 39 NONAME - _ZN10QtMobility15QVersitDocumentC1ERKS0_ @ 40 NONAME - _ZN10QtMobility15QVersitDocumentC1Ev @ 41 NONAME - _ZN10QtMobility15QVersitDocumentC2ERKS0_ @ 42 NONAME - _ZN10QtMobility15QVersitDocumentC2Ev @ 43 NONAME - _ZN10QtMobility15QVersitDocumentD1Ev @ 44 NONAME - _ZN10QtMobility15QVersitDocumentD2Ev @ 45 NONAME - _ZN10QtMobility15QVersitDocumentaSERKS0_ @ 46 NONAME - _ZN10QtMobility15QVersitProperty13setParametersERK10QMultiHashI7QStringS2_E @ 47 NONAME - _ZN10QtMobility15QVersitProperty15insertParameterERK7QStringS3_ @ 48 NONAME - _ZN10QtMobility15QVersitProperty15removeParameterERK7QStringS3_ @ 49 NONAME - _ZN10QtMobility15QVersitProperty16removeParametersERK7QString @ 50 NONAME - _ZN10QtMobility15QVersitProperty5clearEv @ 51 NONAME - _ZN10QtMobility15QVersitProperty7setNameERK7QString @ 52 NONAME - _ZN10QtMobility15QVersitProperty8setValueERK8QVariant @ 53 NONAME - _ZN10QtMobility15QVersitProperty9setGroupsERK11QStringList @ 54 NONAME - _ZN10QtMobility15QVersitPropertyC1ERKS0_ @ 55 NONAME - _ZN10QtMobility15QVersitPropertyC1Ev @ 56 NONAME - _ZN10QtMobility15QVersitPropertyC2ERKS0_ @ 57 NONAME - _ZN10QtMobility15QVersitPropertyC2Ev @ 58 NONAME - _ZN10QtMobility15QVersitPropertyD1Ev @ 59 NONAME - _ZN10QtMobility15QVersitPropertyD2Ev @ 60 NONAME - _ZN10QtMobility15QVersitPropertyaSERKS0_ @ 61 NONAME - _ZN10QtMobility21QVersitDocumentWriter20encodeVersitDocumentERKNS_15QVersitDocumentEP10QTextCodec @ 62 NONAME - _ZN10QtMobility21QVersitDocumentWriterC2ERK10QByteArrayS3_ @ 63 NONAME - _ZN10QtMobility22QVersitContactExporter14exportContactsERK5QListINS_8QContactEENS_15QVersitDocument10VersitTypeE @ 64 NONAME - _ZN10QtMobility22QVersitContactExporter16setDetailHandlerEPNS_35QVersitContactExporterDetailHandlerE @ 65 NONAME - _ZN10QtMobility22QVersitContactExporter18setResourceHandlerEPNS_22QVersitResourceHandlerE @ 66 NONAME - _ZN10QtMobility22QVersitContactExporterC1Ev @ 67 NONAME - _ZN10QtMobility22QVersitContactExporterC2Ev @ 68 NONAME - _ZN10QtMobility22QVersitContactExporterD1Ev @ 69 NONAME - _ZN10QtMobility22QVersitContactExporterD2Ev @ 70 NONAME - _ZN10QtMobility22QVersitContactImporter14importContactsERK5QListINS_15QVersitDocumentEE @ 71 NONAME - _ZN10QtMobility22QVersitContactImporter18setPropertyHandlerEPNS_37QVersitContactImporterPropertyHandlerE @ 72 NONAME - _ZN10QtMobility22QVersitContactImporter18setResourceHandlerEPNS_22QVersitResourceHandlerE @ 73 NONAME - _ZN10QtMobility22QVersitContactImporterC1Ev @ 74 NONAME - _ZN10QtMobility22QVersitContactImporterC2Ev @ 75 NONAME - _ZN10QtMobility22QVersitContactImporterD1Ev @ 76 NONAME - _ZN10QtMobility22QVersitContactImporterD2Ev @ 77 NONAME - _ZN10QtMobility29QVersitDefaultResourceHandler12loadResourceERK7QStringP10QByteArrayPS1_ @ 78 NONAME - _ZN10QtMobility29QVersitDefaultResourceHandler12saveResourceERK10QByteArrayRKNS_15QVersitPropertyEP7QString @ 79 NONAME - _ZNK10QtMobility13QVersitReader10metaObjectEv @ 80 NONAME - _ZNK10QtMobility13QVersitReader12defaultCodecEv @ 81 NONAME - _ZNK10QtMobility13QVersitReader5errorEv @ 82 NONAME - _ZNK10QtMobility13QVersitReader5stateEv @ 83 NONAME - _ZNK10QtMobility13QVersitReader6deviceEv @ 84 NONAME - _ZNK10QtMobility13QVersitReader7resultsEv @ 85 NONAME - _ZNK10QtMobility13QVersitWriter10metaObjectEv @ 86 NONAME - _ZNK10QtMobility13QVersitWriter12defaultCodecEv @ 87 NONAME - _ZNK10QtMobility13QVersitWriter14versitDocumentEv @ 88 NONAME - _ZNK10QtMobility13QVersitWriter5errorEv @ 89 NONAME - _ZNK10QtMobility13QVersitWriter5stateEv @ 90 NONAME - _ZNK10QtMobility13QVersitWriter6deviceEv @ 91 NONAME - _ZNK10QtMobility15QVersitDocument10propertiesEv @ 92 NONAME - _ZNK10QtMobility15QVersitDocument4typeEv @ 93 NONAME - _ZNK10QtMobility15QVersitDocument7isEmptyEv @ 94 NONAME - _ZNK10QtMobility15QVersitDocumenteqERKS0_ @ 95 NONAME - _ZNK10QtMobility15QVersitDocumentneERKS0_ @ 96 NONAME - _ZNK10QtMobility15QVersitProperty10parametersEv @ 97 NONAME - _ZNK10QtMobility15QVersitProperty12variantValueEv @ 98 NONAME - _ZNK10QtMobility15QVersitProperty4nameEv @ 99 NONAME - _ZNK10QtMobility15QVersitProperty5valueEv @ 100 NONAME - _ZNK10QtMobility15QVersitProperty6groupsEv @ 101 NONAME - _ZNK10QtMobility15QVersitProperty7isEmptyEv @ 102 NONAME - _ZNK10QtMobility15QVersitPropertyeqERKS0_ @ 103 NONAME - _ZNK10QtMobility15QVersitPropertyneERKS0_ @ 104 NONAME - _ZNK10QtMobility21QVersitDocumentWriter19encodeGroupsAndNameERKNS_15QVersitPropertyEP10QTextCodec @ 105 NONAME - _ZNK10QtMobility22QVersitContactExporter13detailHandlerEv @ 106 NONAME - _ZNK10QtMobility22QVersitContactExporter15resourceHandlerEv @ 107 NONAME - _ZNK10QtMobility22QVersitContactImporter15propertyHandlerEv @ 108 NONAME - _ZNK10QtMobility22QVersitContactImporter15resourceHandlerEv @ 109 NONAME - _ZTIN10QtMobility13QVersitReaderE @ 110 NONAME ; ## - _ZTIN10QtMobility13QVersitWriterE @ 111 NONAME ; ## - _ZTIN10QtMobility21QVersitDocumentWriterE @ 112 NONAME ; ## - _ZTIN10QtMobility22QVersitResourceHandlerE @ 113 NONAME ; ## - _ZTIN10QtMobility29QVersitDefaultResourceHandlerE @ 114 NONAME ; ## - _ZTVN10QtMobility13QVersitReaderE @ 115 NONAME ; ## - _ZTVN10QtMobility13QVersitWriterE @ 116 NONAME ; ## - _ZTVN10QtMobility21QVersitDocumentWriterE @ 117 NONAME ; ## - _ZTVN10QtMobility29QVersitDefaultResourceHandlerE @ 118 NONAME ; ## + _ZN10QtMobility13QVersitReader7setDataERK10QByteArray @ 11 NONAME + _ZN10QtMobility13QVersitReader9setDeviceEP9QIODevice @ 12 NONAME + _ZN10QtMobility13QVersitReaderC1EP9QIODevice @ 13 NONAME + _ZN10QtMobility13QVersitReaderC1ERK10QByteArray @ 14 NONAME + _ZN10QtMobility13QVersitReaderC1Ev @ 15 NONAME + _ZN10QtMobility13QVersitReaderC2EP9QIODevice @ 16 NONAME + _ZN10QtMobility13QVersitReaderC2ERK10QByteArray @ 17 NONAME + _ZN10QtMobility13QVersitReaderC2Ev @ 18 NONAME + _ZN10QtMobility13QVersitReaderD0Ev @ 19 NONAME + _ZN10QtMobility13QVersitReaderD1Ev @ 20 NONAME + _ZN10QtMobility13QVersitReaderD2Ev @ 21 NONAME + _ZN10QtMobility13QVersitWriter11qt_metacallEN11QMetaObject4CallEiPPv @ 22 NONAME + _ZN10QtMobility13QVersitWriter11qt_metacastEPKc @ 23 NONAME + _ZN10QtMobility13QVersitWriter12startWritingERK5QListINS_15QVersitDocumentEE @ 24 NONAME + _ZN10QtMobility13QVersitWriter12stateChangedENS0_5StateE @ 25 NONAME + _ZN10QtMobility13QVersitWriter15setDefaultCodecEP10QTextCodec @ 26 NONAME + _ZN10QtMobility13QVersitWriter15waitForFinishedEi @ 27 NONAME + _ZN10QtMobility13QVersitWriter16staticMetaObjectE @ 28 NONAME DATA 16 + _ZN10QtMobility13QVersitWriter19getStaticMetaObjectEv @ 29 NONAME + _ZN10QtMobility13QVersitWriter6cancelEv @ 30 NONAME + _ZN10QtMobility13QVersitWriter9setDeviceEP9QIODevice @ 31 NONAME + _ZN10QtMobility13QVersitWriterC1EP10QByteArray @ 32 NONAME + _ZN10QtMobility13QVersitWriterC1EP9QIODevice @ 33 NONAME + _ZN10QtMobility13QVersitWriterC1Ev @ 34 NONAME + _ZN10QtMobility13QVersitWriterC2EP10QByteArray @ 35 NONAME + _ZN10QtMobility13QVersitWriterC2EP9QIODevice @ 36 NONAME + _ZN10QtMobility13QVersitWriterC2Ev @ 37 NONAME + _ZN10QtMobility13QVersitWriterD0Ev @ 38 NONAME + _ZN10QtMobility13QVersitWriterD1Ev @ 39 NONAME + _ZN10QtMobility13QVersitWriterD2Ev @ 40 NONAME + _ZN10QtMobility15QVersitDocument11addPropertyERKNS_15QVersitPropertyE @ 41 NONAME + _ZN10QtMobility15QVersitDocument14removePropertyERKNS_15QVersitPropertyE @ 42 NONAME + _ZN10QtMobility15QVersitDocument16removePropertiesERK7QString @ 43 NONAME + _ZN10QtMobility15QVersitDocument5clearEv @ 44 NONAME + _ZN10QtMobility15QVersitDocument7setTypeENS0_10VersitTypeE @ 45 NONAME + _ZN10QtMobility15QVersitDocumentC1ENS0_10VersitTypeE @ 46 NONAME + _ZN10QtMobility15QVersitDocumentC1ERKS0_ @ 47 NONAME + _ZN10QtMobility15QVersitDocumentC1Ev @ 48 NONAME + _ZN10QtMobility15QVersitDocumentC2ENS0_10VersitTypeE @ 49 NONAME + _ZN10QtMobility15QVersitDocumentC2ERKS0_ @ 50 NONAME + _ZN10QtMobility15QVersitDocumentC2Ev @ 51 NONAME + _ZN10QtMobility15QVersitDocumentD1Ev @ 52 NONAME + _ZN10QtMobility15QVersitDocumentD2Ev @ 53 NONAME + _ZN10QtMobility15QVersitDocumentaSERKS0_ @ 54 NONAME + _ZN10QtMobility15QVersitProperty12setValueTypeENS0_9ValueTypeE @ 55 NONAME + _ZN10QtMobility15QVersitProperty13setParametersERK10QMultiHashI7QStringS2_E @ 56 NONAME + _ZN10QtMobility15QVersitProperty15insertParameterERK7QStringS3_ @ 57 NONAME + _ZN10QtMobility15QVersitProperty15removeParameterERK7QStringS3_ @ 58 NONAME + _ZN10QtMobility15QVersitProperty16removeParametersERK7QString @ 59 NONAME + _ZN10QtMobility15QVersitProperty5clearEv @ 60 NONAME + _ZN10QtMobility15QVersitProperty7setNameERK7QString @ 61 NONAME + _ZN10QtMobility15QVersitProperty8setValueERK8QVariant @ 62 NONAME + _ZN10QtMobility15QVersitProperty9setGroupsERK11QStringList @ 63 NONAME + _ZN10QtMobility15QVersitPropertyC1ERKS0_ @ 64 NONAME + _ZN10QtMobility15QVersitPropertyC1Ev @ 65 NONAME + _ZN10QtMobility15QVersitPropertyC2ERKS0_ @ 66 NONAME + _ZN10QtMobility15QVersitPropertyC2Ev @ 67 NONAME + _ZN10QtMobility15QVersitPropertyD1Ev @ 68 NONAME + _ZN10QtMobility15QVersitPropertyD2Ev @ 69 NONAME + _ZN10QtMobility15QVersitPropertyaSERKS0_ @ 70 NONAME + _ZN10QtMobility22QVersitContactExporter14exportContactsERK5QListINS_8QContactEENS_15QVersitDocument10VersitTypeE @ 71 NONAME + _ZN10QtMobility22QVersitContactExporter16setDetailHandlerEPNS_35QVersitContactExporterDetailHandlerE @ 72 NONAME + _ZN10QtMobility22QVersitContactExporter18setResourceHandlerEPNS_22QVersitResourceHandlerE @ 73 NONAME + _ZN10QtMobility22QVersitContactExporterC1Ev @ 74 NONAME + _ZN10QtMobility22QVersitContactExporterC2Ev @ 75 NONAME + _ZN10QtMobility22QVersitContactExporterD1Ev @ 76 NONAME + _ZN10QtMobility22QVersitContactExporterD2Ev @ 77 NONAME + _ZN10QtMobility22QVersitContactImporter15importDocumentsERK5QListINS_15QVersitDocumentEE @ 78 NONAME + _ZN10QtMobility22QVersitContactImporter18setPropertyHandlerEPNS_37QVersitContactImporterPropertyHandlerE @ 79 NONAME + _ZN10QtMobility22QVersitContactImporter18setResourceHandlerEPNS_22QVersitResourceHandlerE @ 80 NONAME + _ZN10QtMobility22QVersitContactImporterC1Ev @ 81 NONAME + _ZN10QtMobility22QVersitContactImporterC2Ev @ 82 NONAME + _ZN10QtMobility22QVersitContactImporterD1Ev @ 83 NONAME + _ZN10QtMobility22QVersitContactImporterD2Ev @ 84 NONAME + _ZN10QtMobility29QVersitDefaultResourceHandler12loadResourceERK7QStringP10QByteArrayPS1_ @ 85 NONAME + _ZN10QtMobility29QVersitDefaultResourceHandler12saveResourceERK10QByteArrayRKNS_15QVersitPropertyEP7QString @ 86 NONAME + _ZN10QtMobility29QVersitDefaultResourceHandlerC1Ev @ 87 NONAME + _ZN10QtMobility29QVersitDefaultResourceHandlerC2Ev @ 88 NONAME + _ZN10QtMobility29QVersitDefaultResourceHandlerD0Ev @ 89 NONAME + _ZN10QtMobility29QVersitDefaultResourceHandlerD1Ev @ 90 NONAME + _ZN10QtMobility29QVersitDefaultResourceHandlerD2Ev @ 91 NONAME + _ZN10QtMobility5qHashERKNS_15QVersitDocumentE @ 92 NONAME + _ZN10QtMobility5qHashERKNS_15QVersitPropertyE @ 93 NONAME + _ZN10QtMobilitylsE6QDebugRKNS_15QVersitDocumentE @ 94 NONAME + _ZN10QtMobilitylsE6QDebugRKNS_15QVersitPropertyE @ 95 NONAME + _ZNK10QtMobility13QVersitReader10metaObjectEv @ 96 NONAME + _ZNK10QtMobility13QVersitReader12defaultCodecEv @ 97 NONAME + _ZNK10QtMobility13QVersitReader5errorEv @ 98 NONAME + _ZNK10QtMobility13QVersitReader5stateEv @ 99 NONAME + _ZNK10QtMobility13QVersitReader6deviceEv @ 100 NONAME + _ZNK10QtMobility13QVersitReader7resultsEv @ 101 NONAME + _ZNK10QtMobility13QVersitWriter10metaObjectEv @ 102 NONAME + _ZNK10QtMobility13QVersitWriter12defaultCodecEv @ 103 NONAME + _ZNK10QtMobility13QVersitWriter5errorEv @ 104 NONAME + _ZNK10QtMobility13QVersitWriter5stateEv @ 105 NONAME + _ZNK10QtMobility13QVersitWriter6deviceEv @ 106 NONAME + _ZNK10QtMobility15QVersitDocument10propertiesEv @ 107 NONAME + _ZNK10QtMobility15QVersitDocument4typeEv @ 108 NONAME + _ZNK10QtMobility15QVersitDocument7isEmptyEv @ 109 NONAME + _ZNK10QtMobility15QVersitDocumenteqERKS0_ @ 110 NONAME + _ZNK10QtMobility15QVersitDocumentneERKS0_ @ 111 NONAME + _ZNK10QtMobility15QVersitProperty10parametersEv @ 112 NONAME + _ZNK10QtMobility15QVersitProperty12variantValueEv @ 113 NONAME + _ZNK10QtMobility15QVersitProperty4nameEv @ 114 NONAME + _ZNK10QtMobility15QVersitProperty5valueEv @ 115 NONAME + _ZNK10QtMobility15QVersitProperty6groupsEv @ 116 NONAME + _ZNK10QtMobility15QVersitProperty7isEmptyEv @ 117 NONAME + _ZNK10QtMobility15QVersitProperty9valueTypeEv @ 118 NONAME + _ZNK10QtMobility15QVersitPropertyeqERKS0_ @ 119 NONAME + _ZNK10QtMobility15QVersitPropertyneERKS0_ @ 120 NONAME + _ZNK10QtMobility22QVersitContactExporter13detailHandlerEv @ 121 NONAME + _ZNK10QtMobility22QVersitContactExporter15resourceHandlerEv @ 122 NONAME + _ZNK10QtMobility22QVersitContactExporter6errorsEv @ 123 NONAME + _ZNK10QtMobility22QVersitContactExporter9documentsEv @ 124 NONAME + _ZNK10QtMobility22QVersitContactImporter15propertyHandlerEv @ 125 NONAME + _ZNK10QtMobility22QVersitContactImporter15resourceHandlerEv @ 126 NONAME + _ZNK10QtMobility22QVersitContactImporter6errorsEv @ 127 NONAME + _ZNK10QtMobility22QVersitContactImporter8contactsEv @ 128 NONAME + _ZTIN10QtMobility13QVersitReaderE @ 129 NONAME + _ZTIN10QtMobility13QVersitWriterE @ 130 NONAME + _ZTIN10QtMobility22QVersitResourceHandlerE @ 131 NONAME + _ZTIN10QtMobility29QVersitDefaultResourceHandlerE @ 132 NONAME + _ZTVN10QtMobility13QVersitReaderE @ 133 NONAME + _ZTVN10QtMobility13QVersitWriterE @ 134 NONAME + _ZTVN10QtMobility29QVersitDefaultResourceHandlerE @ 135 NONAME diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/qtmobility.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/s60installs/qtmobility.iby Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ + +#ifndef __QT_MOBILITY_IBY__ +#define __QT_MOBILITY_IBY__ + +#include + +//Stub sis +data=ZSYSTEM\install\qtmobility_stub.sis \system\install\qtmobility_stub.sis + +//Core +file=ABI_DIR\BUILD_DIR\qtbearer.dll SHARED_LIB_DIR\qtbearer.dll PAGED +file=ABI_DIR\BUILD_DIR\qtlocation.dll SHARED_LIB_DIR\qtlocation.dll PAGED +file=ABI_DIR\BUILD_DIR\qtpublishsubscribe.dll SHARED_LIB_DIR\qtpublishsubscribe.dll PAGED +file=ABI_DIR\BUILD_DIR\pspathmapperserver.exe PROGRAMS_DIR\pspathmapperserver.exe PAGED +file=ABI_DIR\BUILD_DIR\qtserviceframework.dll SHARED_LIB_DIR\qtserviceframework.dll PAGED +file=ABI_DIR\BUILD_DIR\sfwdatabasemanagerserver.exe PROGRAMS_DIR\sfwdatabasemanagerserver.exe PAGED +file=ABI_DIR\BUILD_DIR\qtsysteminfo.dll SHARED_LIB_DIR\qtsysteminfo.dll PAGED +file=ABI_DIR\BUILD_DIR\qtmessaging.dll SHARED_LIB_DIR\qtmessaging.dll PAGED + +/* +file=ABI_DIR\BUILD_DIR\qtmedia.dll SHARED_LIB_DIR\qtmedia.dll PAGED +file=ABI_DIR\BUILD_DIR\qtsensors.dll SHARED_LIB_DIR\qtsensors.dll PAGED +*/ + +//Plugins +/* +file=ABI_DIR\BUILD_DIR\m3u.dll SHARED_LIB_DIR\m3u.dll PAGED +data=\epoc32\data\z\resource\qt\plugins\playlistformats\m3u.qtplugin resource\qt\plugins\playlistformats\m3u.qtplugin +file=ABI_DIR\BUILD_DIR\qtmobilitymultimediaengine.dll SHARED_LIB_DIR\qtmobilitymultimediaengine.dll PAGED +data=\epoc32\data\z\resource\qt\plugins\mediaservice\qtmobilitymultimediaengine.qtplugin resource\qt\plugins\mediaservice\qtmobilitymultimediaengine.qtplugin +file=ABI_DIR\BUILD_DIR\sensors_sym.dll SHARED_LIB_DIR\sensors_sym.dll PAGED +data=\epoc32\data\z\resource\qt\plugins\sensors\sensors_sym.qtplugin resource\qt\plugins\sensors\sensors_sym.qtplugin +*/ + +#endif // __QT_MOBILITY_IBY__ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/qtmobility_stub.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/s60installs/qtmobility_stub.pkg Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,12 @@ + +; Language +&EN + +; SIS header: name, uid, version +#{"QtMobility"},(0x2002AC89),1,0,0,TYPE=SA + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/qtmobility_stub.sis Binary file qtmobility/src/s60installs/qtmobility_stub.sis has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/s60installs/s60installs.pro --- a/qtmobility/src/s60installs/s60installs.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/s60installs/s60installs.pro Mon May 03 13:18:40 2010 +0300 @@ -24,95 +24,187 @@ qtmobilitydeployment.pkg_prerules += vendorinfo epoc31 = $$(EPOCROOT31) - epoc32 = $$(EPOCROOT32) + epoc32 = $$(EPOCROOT32) epoc50 = $$(EPOCROOT50) - + # default to EPOCROOT if EPOCROOTxy not defined isEmpty(epoc31) { EPOCROOT31 = $${EPOCROOT} } else { - EPOCROOT31 = $$(EPOCROOT31) + EPOCROOT31 = $$(EPOCROOT31) } isEmpty(epoc32) { EPOCROOT32 = $${EPOCROOT} }else { - EPOCROOT32 = $$(EPOCROOT32) + EPOCROOT32 = $$(EPOCROOT32) } isEmpty(epoc50) { EPOCROOT50 = $${EPOCROOT} } else { - EPOCROOT50 = $$(EPOCROOT50) + EPOCROOT50 = $$(EPOCROOT50) + } + + contains(mobility_modules, messaging): qtmobilitydeployment.sources += \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtMessaging.dll + + contains(mobility_modules, serviceframework): qtmobilitydeployment.sources += \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtServiceFramework.dll \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/SFWDatabaseManagerServer.exe + + contains(mobility_modules, location): qtmobilitydeployment.sources += \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtLocation.dll + + contains(mobility_modules, systeminfo): qtmobilitydeployment.sources += \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtSystemInfo.dll + + contains(mobility_modules, publishsubscribe): qtmobilitydeployment.sources += \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtPublishSubscribe.dll \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/PSPathMapperServer.exe + + contains(mobility_modules, versit): qtmobilitydeployment.sources += \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtVersit.dll + + + contains(mobility_modules, bearer) { + bearer = \ + "IF package(0x1028315F)" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtBearer.dll\" - \"!:\\sys\\bin\\QtBearer.dll\"" \ + "ELSEIF package(0x102752AE)" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtBearer.dll\" - \"!:\\sys\\bin\\QtBearer.dll\"" \ + "ELSEIF package(0x102032BE)" \ + " \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/QtBearer.dll\" - \"!:\\sys\\bin\\QtBearer.dll\"" \ + "ELSE" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtBearer.dll\" - \"!:\\sys\\bin\\QtBearer.dll\"" \ + "ENDIF" + + qtmobilitydeployment.pkg_postrules += bearer + } + + contains(mobility_modules, contacts) { + + qtmobilitydeployment.sources += \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtContacts.dll + + contacts = \ + "IF package(0x1028315F)" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/mobapicontactspluginsymbian.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbian.dll\"" \ + "ELSEIF package(0x102752AE)" \ + " \"$${EPOCROOT32}epoc32/release/$(PLATFORM)/$(TARGET)/mobapicontactspluginsymbian.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbian.dll\"" \ + "ELSEIF package(0x102032BE)" \ + " \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/mobapicontactspluginsymbian.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbian.dll\"" \ + "ELSE" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/mobapicontactspluginsymbian.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbian.dll\"" \ + "ENDIF" + + qtmobilitydeployment.pkg_postrules += contacts + + pluginstubs += \ + "\"$$QT_MOBILITY_BUILD_TREE/plugins/contacts/symbian/qmakepluginstubs/mobapicontactspluginsymbian.qtplugin\" - \"!:\\resource\\qt\\plugins\\contacts\\mobapicontactspluginsymbian.qtplugin\"" + + contains(symbiancntsim_enabled, yes) { + pluginstubs += \ + "\"$$QT_MOBILITY_BUILD_TREE/plugins/contacts/symbiansim/qmakepluginstubs/mobapicontactspluginsymbiansim.qtplugin\" - \"!:\\resource\\qt\\plugins\\contacts\\mobapicontactspluginsymbiansim.qtplugin\"" + + symbiancntsim = \ + "IF package(0x1028315F)" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/mobapicontactspluginsymbiansim.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbiansim.dll\"" \ + "ELSEIF package(0x102752AE)" \ + " \"$${EPOCROOT32}epoc32/release/$(PLATFORM)/$(TARGET)/mobapicontactspluginsymbiansim.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbiansim.dll\"" \ + "ELSEIF package(0x102032BE)" \ + " \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/mobapicontactspluginsymbiansim.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbiansim.dll\"" \ + "ELSE" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/mobapicontactspluginsymbiansim.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbiansim.dll\"" \ + "ENDIF" + + qtmobilitydeployment.pkg_postrules += symbiancntsim + } + } - qtmobilitydeployment.sources = \ - $$(EPOCROOT50)epoc32/release/armv5/urel/QtMessaging.dll \ - $$(EPOCROOT50)epoc32/release/armv5/urel/QtServiceFramework.dll \ - $$(EPOCROOT50)epoc32/release/armv5/urel/SFWDatabaseManagerServer.exe \ - $$(EPOCROOT50)epoc32/release/armv5/urel/QtLocation.dll \ - $$(EPOCROOT50)epoc32/release/armv5/urel/QtSystemInfo.dll \ - $$(EPOCROOT50)epoc32/release/armv5/urel/QtPublishSubscribe.dll \ - $$(EPOCROOT50)epoc32/release/armv5/urel/PSPathMapperServer.exe \ -# $$(EPOCROOT50)epoc32/release/armv5/urel/QtContacts.dll \ -# $$(EPOCROOT50)epoc32/release/armv5/urel/QtVersit.dll \ -# $$(EPOCROOT50)epoc32/release/armv5/urel/QtMedia.dll \ -# $$(EPOCROOT50)epoc32/release/armv5/urel/m3u.dll - + contains(mobility_modules, multimedia) { + + qtmobilitydeployment.sources += \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtMedia.dll \ + $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/m3u.dll - bearer = \ - "IF package(0x1028315F)" \ - " \"$$EPOCROOT50\epoc32/release/armv5/urel/QtBearer.dll\" - \"!:\\sys\\bin\\QtBearer.dll\"" \ - "ELSEIF package(0x102752AE)" \ - " \"$$EPOCROOT50\epoc32/release/armv5/urel/QtBearer.dll\" - \"!:\\sys\\bin\\QtBearer.dll\"" \ - "ELSEIF package(0x102032BE)" \ - " \"$$EPOCROOT31\epoc32/release/armv5/urel/QtBearer.dll\" - \"!:\\sys\\bin\\QtBearer.dll\"" \ - "ELSE" \ - " \"$$EPOCROOT50\epoc32/release/armv5/urel/QtBearer.dll\" - \"!:\\sys\\bin\\QtBearer.dll\"" \ - "ENDIF" + multimedia = \ + "IF package(0x1028315F)" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtMobilityMmfEngine.dll\" - \"!:\\sys\\bin\\QtMobilityMmfEngine.dll\"" \ + "ELSEIF package(0x102752AE)" \ + " \"$${EPOCROOT32}epoc32/release/$(PLATFORM)/$(TARGET)/QtMobilityMmfEngine.dll\" - \"!:\\sys\\bin\\QtMobilityMmfEngine.dll\"" \ + "ELSEIF package(0x102032BE)" \ + " \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/QtMobilityMmfEngine.dll\" - \"!:\\sys\\bin\\QtMobilityMmfEngine.dll\"" \ + "ELSE" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtMobilityMmfEngine.dll\" - \"!:\\sys\\bin\\QtMobilityMmfEngine.dll\"" \ + "ENDIF" + + qtmobilitydeployment.pkg_postrules += multimedia + + pluginstubs += \ + "\"$$QT_MOBILITY_BUILD_TREE/plugins/multimedia/symbian/mmf/qmakepluginstubs/QtMobilityMmfEngine.qtplugin\" - \"!:\\resource\\qt\\plugins\\mediaservice\\QtMobilityMmfEngine.qtplugin\"" \ + "\"$$QT_MOBILITY_BUILD_TREE/plugins/multimedia/m3u/qmakepluginstubs/m3u.qtplugin\" - \"!:\\resource\\qt\\plugins\\playlistformats\\m3u.qtplugin\"" + } + + contains(mobility_modules, sensors) { + + qtmobilitydeployment.sources += $${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/QtSensors.dll -# contacts = \ -# "IF package(0x1028315F)" \ -# " \"$$EPOCROOT50\epoc32/release/armv5/urel/mobapicontactspluginsymbian.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbian.dll\"" \ -# "ELSEIF package(0x102752AE)" \ -# " \"$$EPOCROOT32\epoc32/release/armv5/urel/mobapicontactspluginsymbian.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbian.dll\"" \ -# "ELSEIF package(0x102032BE)" \ -# " \"$$EPOCROOT31\epoc32/release/armv5/urel/mobapicontactspluginsymbian.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbian.dll\"" \ -# "ELSE" \ -# " \"$$EPOCROOT50\epoc32/release/armv5/urel/mobapicontactspluginsymbian.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbian.dll\"" \ -# "ENDIF" \ -# "\"$$EPOCROOT50\epoc32/release/armv5/urel/mobapicontactspluginsymbiansim.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbiansim.dll\"" - -# multimedia = \ -# "IF package(0x1028315F)" \ -# " \"$$EPOCROOT50\epoc32/release/armv5/urel/QtMobilityMultimediaEngine.dll\" - \"!:\\sys\\bin\\QtMobilityMultimediaEngine.dll\"" \ -# "ELSEIF package(0x102752AE)" \ -# " \"$$EPOCROOT32\epoc32/release/armv5/urel/QtMobilityMultimediaEngine.dll\" - \"!:\\sys\\bin\\QtMobilityMultimediaEngine.dll\"" \ -# "ELSEIF package(0x102032BE)" \ -# " \"$$EPOCROOT31\epoc32/release/armv5/urel/QtMobilityMultimediaEngine.dll\" - \"!:\\sys\\bin\\QtMobilityMultimediaEngine.dll\"" \ -# "ELSE" \ -# " \"$$EPOCROOT50\epoc32/release/armv5/urel/QtMobilityMultimediaEngine.dll\" - \"!:\\sys\\bin\\QtMobilityMultimediaEngine.dll\"" \ -# "ENDIF" + equals($${EPOCROOT50}, $${EPOCROOT32}):equals($${EPOCROOT32}, $${EPOCROOT31}) { + contains(S60_VERSION, 3.1) { + sensors = \ + "IF package(0x102032BE)" \ + " \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/sensor_s60sensorapi.dll\" - \"!:\\sys\\bin\\sensor_s60sensorapi.dll\"" \ + " \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/sensors_generic.dll\" - \"!:\\sys\\bin\\sensors_generic.dll\"" \ + "ENDIF" + } else { + sensors = \ + "IF package(0x1028315F)" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/sensors_sym.dll\" - \"!:\\sys\\bin\\sensors_sym.dll\"" \ + "ELSEIF package(0x102752AE)" \ + " \"$${EPOCROOT32}epoc32/release/$(PLATFORM)/$(TARGET)/sensors_sym.dll\" - \"!:\\sys\\bin\\sensors_sym.dll\"" \ + "ELSE" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/sensors_sym.dll\" - \"!:\\sys\\bin\\sensors_sym.dll\"" \ + "ENDIF" + } + } else { + sensors = \ + "IF package(0x1028315F)" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/sensors_sym.dll\" - \"!:\\sys\\bin\\sensors_sym.dll\"" \ + "ELSEIF package(0x102752AE)" \ + " \"$${EPOCROOT32}epoc32/release/$(PLATFORM)/$(TARGET)/sensors_sym.dll\" - \"!:\\sys\\bin\\sensors_sym.dll\"" \ + "ELSEIF package(0x102032BE)" \ + " \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/sensor_s60sensorapi.dll\" - \"!:\\sys\\bin\\sensor_s60sensorapi.dll\"" \ + " \"$${EPOCROOT31}epoc32/release/$(PLATFORM)/$(TARGET)/sensors_generic.dll\" - \"!:\\sys\\bin\\sensors_generic.dll\"" \ + "ELSE" \ + " \"$${EPOCROOT50}epoc32/release/$(PLATFORM)/$(TARGET)/sensors_sym.dll\" - \"!:\\sys\\bin\\sensors_sym.dll\"" \ + "ENDIF" + } -# pluginstubs = \ -# "\"$$QT_MOBILITY_BUILD_TREE/plugins/contacts/symbian/qmakepluginstubs/mobapicontactspluginsymbian.qtplugin\" - \"!:\\resource\\qt\\plugins\\contacts\\mobapicontactspluginsymbian.qtplugin\"" \ -# "\"$$QT_MOBILITY_BUILD_TREE/plugins/contacts/symbiansim/qmakepluginstubs/mobapicontactspluginsymbiansim.qtplugin\" - \"!:\\resource\\qt\\plugins\\contacts\\mobapicontactspluginsymbiansim.qtplugin\"" \ -# "\"$$QT_MOBILITY_BUILD_TREE/plugins/multimedia/symbian/qmakepluginstubs/QtMobilityMultimediaEngine.qtplugin\" - \"!:\\resource\\qt\\plugins\\mediaservice\\QtMobilityMultimediaEngine.qtplugin\"" \ -# "\"$$QT_MOBILITY_BUILD_TREE/plugins/multimedia/m3u/qmakepluginstubs/m3u.qtplugin\" - \"!:\\resource\\qt\\plugins\\playlistformats\\m3u.qtplugin\"" - -# symbiancntsim = \ -# "\"$${EPOCROOT50}epoc32/release/armv5/urel/mobapicontactspluginsymbiansim.dll\" - \"!:\\sys\\bin\\mobapicontactspluginsymbiansim.dll\"" \ -# "\"$$QT_MOBILITY_BUILD_TREE/plugins/contacts/symbiansim/qmakepluginstubs/mobapicontactspluginsymbiansim.qtplugin\" - \"!:\\resource\\qt\\plugins\\contacts\\mobapicontactspluginsymbiansim.qtplugin\"" - + qtmobilitydeployment.pkg_postrules += sensors - qtmobilitydeployment.pkg_postrules += bearer -# qtmobilitydeployment.pkg_postrules += contacts -# qtmobilitydeployment.pkg_postrules += multimedia -# qtmobilitydeployment.pkg_postrules += pluginstubs + equals($${EPOCROOT50}, $${EPOCROOT32}):equals($${EPOCROOT32}, $${EPOCROOT31}) { + contains(S60_VERSION, 3.1) { + pluginstubs += \ + "IF package(0x102032BE)" \ + "\"$$QT_MOBILITY_BUILD_TREE/plugins/sensors/s60_sensor_api/qmakepluginstubs/sensor_s60sensorapi.qtplugin\" - \"!:\\resource\\qt\\plugins\\sensors\\sensor_s60sensorapi.qtplugin\"" \ + "\"$$QT_MOBILITY_BUILD_TREE/plugins/sensors/generic/qmakepluginstubs/sensors_generic.qtplugin\" - \"!:\\resource\\qt\\plugins\\sensors\\sensors_generic.qtplugin\"" \ + "ENDIF" + } + } else { + pluginstubs += \ + "IF package(0x102032BE)" \ + "\"$$QT_MOBILITY_BUILD_TREE/plugins/sensors/s60_sensor_api/qmakepluginstubs/sensor_s60sensorapi.qtplugin\" - \"!:\\resource\\qt\\plugins\\sensors\\sensor_s60sensorapi.qtplugin\"" \ + "\"$$QT_MOBILITY_BUILD_TREE/plugins/sensors/generic/qmakepluginstubs/sensors_generic.qtplugin\" - \"!:\\resource\\qt\\plugins\\sensors\\sensors_generic.qtplugin\"" \ + "ENDIF" + } + } -# contains(symbiancntsim_enabled, yes) { -# qtmobilitydeployment.pkg_postrules += symbiancntsim -# } + qtmobilitydeployment.pkg_postrules += pluginstubs + + qtmobilitydeployment.path = /sys/bin + + DEPLOYMENT += qtmobilitydeployment - qtmobilitydeployment.path = /sys/bin - - DEPLOYMENT += qtmobilitydeployment + BLD_INF_RULES.prj_exports += "./qtmobility.iby $$CORE_MW_LAYER_IBY_EXPORT_PATH(qtmobility.iby)" + BLD_INF_RULES.prj_exports += "./qtmobility_stub.sis /epoc32/data/z/system/install/qtmobility_stub.sis" } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/make_sensor.pl --- a/qtmobility/src/sensors/make_sensor.pl Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/make_sensor.pl Mon May 03 13:18:40 2010 +0300 @@ -140,31 +140,6 @@ void setMyprop(qreal myprop); }; -// begin generated code -// end generated code - -QTM_END_NAMESPACE - -#endif -'; - close OUT; -} - -if (-e $header) { - open IN, "$header" or die $!; - my @data = ; - close IN; - my @tags = grep /^\/\/ (begin|end) generated code/, @data; - if (scalar(@tags) == 2 && - $tags[0] eq "// begin generated code\n" && - $tags[1] eq "// end generated code\n") { - print "Updating generated code in $header\n"; - open OUT, ">$header" or die $!; - my $skip = 0; - for (@data) { - if ($_ eq $tags[0]) { - print OUT $_; - print OUT ' class Q_SENSORS_EXPORT '.$filter.' : public QSensorFilter { public: @@ -183,17 +158,12 @@ '.$reading.' *reading() const { return static_cast<'.$reading.'*>(QSensor::reading()); } static const char *type; }; + +QTM_END_NAMESPACE + +#endif '; - $skip = 1; - } - if ($_ eq $tags[1]) { - $skip = 0; - } - if (!$skip) { - print OUT $_; - } - } - } + close OUT; } if (! -e $source) { @@ -244,30 +214,6 @@ // ===================================================================== -// begin generated code -// end generated code - -#include "moc_'.$source.'" -QTM_END_NAMESPACE -'; - close OUT; -} - -if (-e $source) { - open IN, "$source" or die $!; - my @data = ; - close IN; - my @tags = grep /^\/\/ (begin|end) generated code/, @data; - if (scalar(@tags) == 2 && - $tags[0] eq "// begin generated code\n" && - $tags[1] eq "// end generated code\n") { - print "Updating generated code in $source\n"; - open OUT, ">$source" or die $!; - my $skip = 0; - for (@data) { - if ($_ eq $tags[0]) { - print OUT $_; - print OUT ' /*! \class '.$filter.' \ingroup sensors_filter @@ -324,20 +270,13 @@ \sa QSensor::reading() */ + +#include "moc_'.$source.'" +QTM_END_NAMESPACE '; - $skip = 1; - } - if ($_ eq $tags[1]) { - $skip = 0; - } - if (!$skip) { - print OUT $_; - } - } - } + close OUT; } - exit 0; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qaccelerometer.cpp --- a/qtmobility/src/sensors/qaccelerometer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qaccelerometer.cpp Mon May 03 13:18:40 2010 +0300 @@ -147,28 +147,8 @@ d->z = z; } -/*! - \reimp - - Reimplemented to bypass the meta-object system for better performance. -*/ -QVariant QAccelerometerReading::value(int index) const -{ - switch (index) { - case 0: - return x(); - case 1: - return y(); - case 2: - return z(); - } - return QVariant(); -} - // ===================================================================== -// begin generated code - /*! \class QAccelerometerFilter \ingroup sensors_filter @@ -225,7 +205,6 @@ \sa QSensor::reading() */ -// end generated code #include "moc_qaccelerometer.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qaccelerometer.h --- a/qtmobility/src/sensors/qaccelerometer.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qaccelerometer.h Mon May 03 13:18:40 2010 +0300 @@ -64,12 +64,8 @@ qreal z() const; void setZ(qreal z); - - QVariant value(int index) const; }; -// begin generated code - class Q_SENSORS_EXPORT QAccelerometerFilter : public QSensorFilter { public: @@ -82,13 +78,11 @@ { Q_OBJECT public: - explicit QAccelerometer(QObject *parent = 0) : QSensor(parent) - { setType(QAccelerometer::type); } + explicit QAccelerometer(QObject *parent = 0) : QSensor(QAccelerometer::type, parent) {} virtual ~QAccelerometer() {} QAccelerometerReading *reading() const { return static_cast(QSensor::reading()); } static const char *type; }; -// end generated code QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qambientlightsensor.cpp --- a/qtmobility/src/sensors/qambientlightsensor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qambientlightsensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -96,8 +96,6 @@ // ===================================================================== -// begin generated code - /*! \class QAmbientLightFilter \ingroup sensors_filter @@ -154,7 +152,6 @@ \sa QSensor::reading() */ -// end generated code #include "moc_qambientlightsensor.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qambientlightsensor.h --- a/qtmobility/src/sensors/qambientlightsensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qambientlightsensor.h Mon May 03 13:18:40 2010 +0300 @@ -68,8 +68,6 @@ void setLightLevel(LightLevel lightLevel); }; -// begin generated code - class Q_SENSORS_EXPORT QAmbientLightFilter : public QSensorFilter { public: @@ -82,13 +80,11 @@ { Q_OBJECT public: - explicit QAmbientLightSensor(QObject *parent = 0) : QSensor(parent) - { setType(QAmbientLightSensor::type); } + explicit QAmbientLightSensor(QObject *parent = 0) : QSensor(QAmbientLightSensor::type, parent) {} virtual ~QAmbientLightSensor() {} QAmbientLightReading *reading() const { return static_cast(QSensor::reading()); } static const char *type; }; -// end generated code QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qcompass.cpp --- a/qtmobility/src/sensors/qcompass.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qcompass.cpp Mon May 03 13:18:40 2010 +0300 @@ -63,15 +63,10 @@ Digital compasses are susceptible to magnetic interference and may need calibration after being placed near anything that emits a magnetic force. Accuracy of the compass can be affected by any ferrous materials that are nearby. -*/ -/*! - \enum QCompassReading::CalibrationLevel - - \value Undefined The calibration level is not defined or is too low. - \value Low The reported azimuth may be off by up to 15.4 degrees. - \value Middle The reported azimuth may be off by up to 11.8 degrees. - \value High The reported azimuth may be off by up to 7.4 degrees. + The calibration status of the device is measured as a number from 0 to 1. + A value of 1 is the highest level that the device can support and 0 is + the worst. */ /*! @@ -100,27 +95,25 @@ \property QCompassReading::calibrationLevel \brief the calibration level of the reading. - The higher the calibration, the more accurate the measurement is. + Measured as a value from 0 to 1 with higher values being better. \sa {QCompassReading Units} */ -QCompassReading::CalibrationLevel QCompassReading::calibrationLevel() const +qreal QCompassReading::calibrationLevel() const { - return static_cast(d->calibrationLevel); + return d->calibrationLevel; } /*! Sets the calibration level of the reading to \a calibrationLevel. */ -void QCompassReading::setCalibrationLevel(QCompassReading::CalibrationLevel calibrationLevel) +void QCompassReading::setCalibrationLevel(qreal calibrationLevel) { d->calibrationLevel = calibrationLevel; } // ===================================================================== -// begin generated code - /*! \class QCompassFilter \ingroup sensors_filter @@ -177,7 +170,6 @@ \sa QSensor::reading() */ -// end generated code #include "moc_qcompass.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qcompass.h --- a/qtmobility/src/sensors/qcompass.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qcompass.h Mon May 03 13:18:40 2010 +0300 @@ -51,27 +51,17 @@ class Q_SENSORS_EXPORT QCompassReading : public QSensorReading { Q_OBJECT - Q_ENUMS(CalibrationLevel) Q_PROPERTY(qreal azimuth READ azimuth) - Q_PROPERTY(CalibrationLevel calibrationLevel READ calibrationLevel) + Q_PROPERTY(qreal calibrationLevel READ calibrationLevel) DECLARE_READING(QCompassReading) public: - enum CalibrationLevel { - Undefined = 0, - Low = 1, - Middle = 2, - High = 3 - }; - qreal azimuth() const; void setAzimuth(qreal azimuth); - CalibrationLevel calibrationLevel() const; - void setCalibrationLevel(CalibrationLevel calibrationLevel); + qreal calibrationLevel() const; + void setCalibrationLevel(qreal calibrationLevel); }; -// begin generated code - class Q_SENSORS_EXPORT QCompassFilter : public QSensorFilter { public: @@ -84,13 +74,11 @@ { Q_OBJECT public: - explicit QCompass(QObject *parent = 0) : QSensor(parent) - { setType(QCompass::type); } + explicit QCompass(QObject *parent = 0) : QSensor(QCompass::type, parent) {} virtual ~QCompass() {} QCompassReading *reading() const { return static_cast(QSensor::reading()); } static const char *type; }; -// end generated code QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qcompass_p.h --- a/qtmobility/src/sensors/qcompass_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qcompass_p.h Mon May 03 13:18:40 2010 +0300 @@ -67,7 +67,7 @@ } qreal azimuth; - int calibrationLevel; + qreal calibrationLevel; }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qmagnetometer.cpp --- a/qtmobility/src/sensors/qmagnetometer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qmagnetometer.cpp Mon May 03 13:18:40 2010 +0300 @@ -77,20 +77,24 @@ ---------- / |_________!/ \endcode -*/ -/*! - \enum QMagnetometerReading::CalibrationLevel + The magnetometer can report on either raw magnetic flux values or geomagnetic flux values. + By default it returns raw magnetic flux values. The QMagnetometer::returnGeoValues property + must be set to return geomagnetic flux values. - \value Undefined The calibration level is not defined or is too low. - \value Low The calibrated values may be inaccurate by up to 3 micro Teslas. - \value Middle The calibrated values may be inaccurate by up to 2 micro Teslas. - \value High The calibrated values may be inaccurate by up to 1 micro Tesla. + The primary difference between raw and geomagnetic values is that extra processing + is done to eliminate local magnetic interference from the geomagnetic values so they + represent only the effect of the Earth's magnetic field. This process is not perfect + and the accuracy of each reading may change. + + The accuracy of each reading is measured as a number from 0 to 1. + A value of 1 is the highest level that the device can support and 0 is + the worst. */ /*! \property QMagnetometerReading::x - \brief the raw flux density on the X axis. + \brief the raw magnetic flux density on the X axis. Measured as telsas. \sa {QMagnetometerReading Units} @@ -102,7 +106,7 @@ } /*! - Sets the raw flux density on the X axis to \a x. + Sets the raw magnetic flux density on the X axis to \a x. */ void QMagnetometerReading::setX(qreal x) { @@ -111,7 +115,7 @@ /*! \property QMagnetometerReading::y - \brief the raw flux density on the Y axis. + \brief the raw magnetic flux density on the Y axis. Measured as telsas. \sa {QMagnetometerReading Units} @@ -123,7 +127,7 @@ } /*! - Sets the raw flux density on the Y axis to \a y. + Sets the raw magnetic flux density on the Y axis to \a y. */ void QMagnetometerReading::setY(qreal y) { @@ -132,7 +136,7 @@ /*! \property QMagnetometerReading::z - \brief the raw flux density on the Z axis. + \brief the raw magnetic flux density on the Z axis. Measured as telsas. \sa {QMagnetometerReading Units} @@ -144,7 +148,7 @@ } /*! - Sets the raw flux density on the Z axis to \a z. + Sets the raw magnetic flux density on the Z axis to \a z. */ void QMagnetometerReading::setZ(qreal z) { @@ -152,93 +156,31 @@ } /*! - \property QMagnetometerReading::calibrated_x - \brief the calibrated flux density on the X axis. + \property QMagnetometerReading::calibrationLevel + \brief the accuracy of the reading. - Measured as telsas. + Measured as a value from 0 to 1 with higher values being better. + + Note that this only changes when measuring geomagnetic flux density. + Raw magnetic flux readings will always have a value of 1. \sa {QMagnetometerReading Units} */ -qreal QMagnetometerReading::calibrated_x() const -{ - return d->calibrated_x; -} - -/*! - Sets the calibrated flux density on the X axis to \a calibrated_x. -*/ -void QMagnetometerReading::setCalibrated_x(qreal calibrated_x) +qreal QMagnetometerReading::calibrationLevel() const { - d->calibrated_x = calibrated_x; -} - -/*! - \property QMagnetometerReading::calibrated_y - \brief the calibrated flux density on the Y axis. - - Measured as telsas. - \sa {QMagnetometerReading Units} -*/ - -qreal QMagnetometerReading::calibrated_y() const -{ - return d->calibrated_y; + return d->calibrationLevel; } /*! - Sets the calibrated flux density on the Y axis to \a calibrated_y. -*/ -void QMagnetometerReading::setCalibrated_y(qreal calibrated_y) -{ - d->calibrated_y = calibrated_y; -} - -/*! - \property QMagnetometerReading::calibrated_z - \brief the calibrated flux density on the Z axis. - - Measured as telsas. - \sa {QMagnetometerReading Units} -*/ - -qreal QMagnetometerReading::calibrated_z() const -{ - return d->calibrated_z; -} - -/*! - Sets the calibrated flux density on the Z axis to \a calibrated_z. + Sets the accuracy of the reading to \a calibrationLevel. */ -void QMagnetometerReading::setCalibrated_z(qreal calibrated_z) -{ - d->calibrated_z = calibrated_z; -} - -/*! - \property QMagnetometerReading::calibrationLevel - \brief the calibration level of the reading. - - The higher the calibration, the more accurate the measurement is. - \sa {QMagnetometerReading Units} -*/ - -QMagnetometerReading::CalibrationLevel QMagnetometerReading::calibrationLevel() const -{ - return static_cast(d->calibrationLevel); -} - -/*! - Sets the calibration level of the reading to \a calibrationLevel. -*/ -void QMagnetometerReading::setCalibrationLevel(QMagnetometerReading::CalibrationLevel calibrationLevel) +void QMagnetometerReading::setCalibrationLevel(qreal calibrationLevel) { d->calibrationLevel = calibrationLevel; } // ===================================================================== -// begin generated code - /*! \class QMagnetometerFilter \ingroup sensors_filter @@ -295,7 +237,17 @@ \sa QSensor::reading() */ -// end generated code + +/*! + \property QMagnetometer::returnGeoValues + \brief a value indicating if geomagnetic values should be returned. + + Set to true to return geomagnetic flux density. + Set to false (the default) to return raw magnetic flux density. + + Note that you must access this property via QObject::property() and QObject::setProperty(). + The property must be set before calling start(). +*/ #include "moc_qmagnetometer.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qmagnetometer.h --- a/qtmobility/src/sensors/qmagnetometer.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qmagnetometer.h Mon May 03 13:18:40 2010 +0300 @@ -54,23 +54,12 @@ class Q_SENSORS_EXPORT QMagnetometerReading : public QSensorReading { Q_OBJECT - Q_ENUMS(CalibrationLevel) Q_PROPERTY(qreal x READ x) Q_PROPERTY(qreal y READ y) Q_PROPERTY(qreal z READ z) - Q_PROPERTY(qreal calibrated_x READ calibrated_x) - Q_PROPERTY(qreal calibrated_y READ calibrated_y) - Q_PROPERTY(qreal calibrated_z READ calibrated_z) - Q_PROPERTY(CalibrationLevel calibrationLevel READ calibrationLevel) + Q_PROPERTY(qreal calibrationLevel READ calibrationLevel) DECLARE_READING(QMagnetometerReading) public: - enum CalibrationLevel { - Undefined = 0, - Low = 1, - Middle = 2, - High = 3 - }; - qreal x() const; void setX(qreal x); @@ -80,21 +69,10 @@ qreal z() const; void setZ(qreal z); - qreal calibrated_x() const; - void setCalibrated_x(qreal calibrated_x); - - qreal calibrated_y() const; - void setCalibrated_y(qreal calibrated_y); - - qreal calibrated_z() const; - void setCalibrated_z(qreal calibrated_z); - - CalibrationLevel calibrationLevel() const; - void setCalibrationLevel(CalibrationLevel calibrationLevel); + qreal calibrationLevel() const; + void setCalibrationLevel(qreal calibrationLevel); }; -// begin generated code - class Q_SENSORS_EXPORT QMagnetometerFilter : public QSensorFilter { public: @@ -106,14 +84,15 @@ class Q_SENSORS_EXPORT QMagnetometer : public QSensor { Q_OBJECT +#ifdef Q_QDOC + Q_PROPERTY(bool returnGeoValues) +#endif public: - explicit QMagnetometer(QObject *parent = 0) : QSensor(parent) - { setType(QMagnetometer::type); } + explicit QMagnetometer(QObject *parent = 0) : QSensor(QMagnetometer::type, parent) {} virtual ~QMagnetometer() {} QMagnetometerReading *reading() const { return static_cast(QSensor::reading()); } static const char *type; }; -// end generated code QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qmagnetometer_p.h --- a/qtmobility/src/sensors/qmagnetometer_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qmagnetometer_p.h Mon May 03 13:18:40 2010 +0300 @@ -64,9 +64,6 @@ : x(0) , y(0) , z(0) - , calibrated_x(0) - , calibrated_y(0) - , calibrated_z(0) , calibrationLevel(0) { } @@ -74,10 +71,7 @@ qreal x; qreal y; qreal z; - qreal calibrated_x; - qreal calibrated_y; - qreal calibrated_z; - int calibrationLevel; + qreal calibrationLevel; }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qorientationsensor.cpp --- a/qtmobility/src/sensors/qorientationsensor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qorientationsensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -65,7 +65,7 @@ This enum represents the orientation of the device. - The parts of the phone are defined as follows. + To explain the meaning of each value it is helpful to refer to the following diagram. \code Top @@ -89,13 +89,13 @@ Bottom \endcode - \value Undefined The orientation is unknown. - \value BottomUp The device is upside down. - \value BottomDown The device is the right way up. - \value LeftUp The device has been rotated clockwise. - \value RightUp The device has been rotated counter-clockwise. - \value FaceDown The screen is facing down. - \value FaceUp The screen is facing up. + \value Undefined The orientation is unknown. + \value TopUp The Top edge of the device is pointing up. + \value TopDown The Bottom edge of the device is pointing up. + \value LeftUp The Left edge of the device is pointing up. + \value RightUp The Right edge of the device is pointing up. + \value FaceUp The Face of the device is pointing up. + \value FaceDown The Face of the device is pointing down. */ /*! @@ -121,8 +121,6 @@ // ===================================================================== -// begin generated code - /*! \class QOrientationFilter \ingroup sensors_filter @@ -179,7 +177,6 @@ \sa QSensor::reading() */ -// end generated code #include "moc_qorientationsensor.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qorientationsensor.h --- a/qtmobility/src/sensors/qorientationsensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qorientationsensor.h Mon May 03 13:18:40 2010 +0300 @@ -57,20 +57,18 @@ public: enum Orientation { Undefined = 0, - BottomUp, - BottomDown, + TopUp, + TopDown, LeftUp, RightUp, + FaceUp, FaceDown, - FaceUp }; Orientation orientation() const; void setOrientation(Orientation orientation); }; -// begin generated code - class Q_SENSORS_EXPORT QOrientationFilter : public QSensorFilter { public: @@ -83,13 +81,11 @@ { Q_OBJECT public: - explicit QOrientationSensor(QObject *parent = 0) : QSensor(parent) - { setType(QOrientationSensor::type); } + explicit QOrientationSensor(QObject *parent = 0) : QSensor(QOrientationSensor::type, parent) {} virtual ~QOrientationSensor() {} QOrientationReading *reading() const { return static_cast(QSensor::reading()); } static const char *type; }; -// end generated code QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qproximitysensor.cpp --- a/qtmobility/src/sensors/qproximitysensor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qproximitysensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -55,46 +55,37 @@ proximity sensor. \target QProximityReading_Units - The proximity sensor returns an indication of how far the user is - away from the device using the pre-defined values found in the - QProximityReading::Proximity enum. -*/ + The proximity sensor can only indicate if an object is close or not. -/*! - \enum QProximityReading::Proximity - - This enum represents the proximity of the user. - - \value Undefined The proximity is unknown. - \value Close The user is close to the device. - \value NotClose The user is not close to the device. + The distance at which an object is considered close is device-specific. This + distance may be available in the QSensor::outputRanges property. */ /*! - \property QProximityReading::proximity - \brief the proximity of the user. + \property QProximityReading::close + \brief a value indicating if something is close. - The value is an indication of if the user is close or not. + Set to true if something is close. + Set to false is nothing is close. + \sa QProximityReading_Units */ -QProximityReading::Proximity QProximityReading::proximity() const +bool QProximityReading::close() const { - return static_cast(d->proximity); + return d->close; } /*! - Sets the \a proximity of the user. + Sets the close value to \a close. */ -void QProximityReading::setProximity(QProximityReading::Proximity proximity) +void QProximityReading::setClose(bool close) { - d->proximity = proximity; + d->close = close; } // ===================================================================== -// begin generated code - /*! \class QProximityFilter \ingroup sensors_filter @@ -151,7 +142,6 @@ \sa QSensor::reading() */ -// end generated code #include "moc_qproximitysensor.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qproximitysensor.h --- a/qtmobility/src/sensors/qproximitysensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qproximitysensor.h Mon May 03 13:18:40 2010 +0300 @@ -51,22 +51,13 @@ class Q_SENSORS_EXPORT QProximityReading : public QSensorReading { Q_OBJECT - Q_ENUMS(Proximity) - Q_PROPERTY(Proximity proximity READ proximity) + Q_PROPERTY(bool close READ close) DECLARE_READING(QProximityReading) public: - enum Proximity { - Undefined = 0, - Close, - NotClose - }; - - Proximity proximity() const; - void setProximity(Proximity proximity); + bool close() const; + void setClose(bool close); }; -// begin generated code - class Q_SENSORS_EXPORT QProximityFilter : public QSensorFilter { public: @@ -79,13 +70,11 @@ { Q_OBJECT public: - explicit QProximitySensor(QObject *parent = 0) : QSensor(parent) - { setType(QProximitySensor::type); } + explicit QProximitySensor(QObject *parent = 0) : QSensor(QProximitySensor::type, parent) {} virtual ~QProximitySensor() {} QProximityReading *reading() const { return static_cast(QSensor::reading()); } static const char *type; }; -// end generated code QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qproximitysensor_p.h --- a/qtmobility/src/sensors/qproximitysensor_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qproximitysensor_p.h Mon May 03 13:18:40 2010 +0300 @@ -61,11 +61,11 @@ { public: QProximityReadingPrivate() - : proximity(0) + : close(false) { } - int proximity; + bool close; }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qrotationsensor.cpp --- a/qtmobility/src/sensors/qrotationsensor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qrotationsensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -55,39 +55,37 @@ rotation sensor. \section2 QRotationReading Units - The rotation sensor returns the rotation of the device along the X, Y and Z - axes. The scale of the values is radians. The axes are arranged as follows. + + The rotation reading contains 3 angles, measured in degrees that define the orientation + of the device in three-dimensional space. The three angles are applied to the device in the + following order. -\code - +z - | - | +y - | / - |----/---- - /| NOKIA /| - //|--/--- / | - // | / // / - // |/ // / - // '--------------- +x - // // / - // // / - /---------/ / - / O / / - / / / - ---------- / - |_________!/ -\endcode + \list + \o Right-handed rotation z (-180, 180]. Starting from the x axis and incrementing towards the + y axis. + \o Right-handed rotation x (-90, 90]. Starting from the new (once-rotated) y axis and + incrementing towards the z axis. + \o Right-handed rotation y (-180, 180]. Starting from the new (twice-rotated) z axis and + incrementing towards the x axis. + \endlist - Note that the values for the rotation sensor come from an accelerometer - so a device resting on its back will not be able to detect rotation around the - Z axis. Rotation can only be detected when it happens relative to gravity. + \image Rotation_angles.png Visual representation of the rotation angles. + + The 0 point for the z angle is defined as a fixed, external entity and is device-specific. While magnetic + north is typically used as this reference point it may not be. Do not attempt to compare values + for the z angle between devices or even on the same device if it has moved a significant distance. + If the device cannot detect a fixed, external entity the z angle will always be 0 and the + QRotationSensor::hasZ property will be set to false. + + The 0 point for the x and y angles are defined as when the x and y axes of the device are oriented + towards the horizon. */ /*! \property QRotationReading::x - \brief the rotation on the X axis. + \brief the rotation around the x axis. - Measured as radians. + Measured as degrees. \sa {QRotationReading Units} */ @@ -97,7 +95,7 @@ } /*! - Sets the rotation on the X axis to \a x. + Sets the rotation around the x axis to \a x. */ void QRotationReading::setX(qreal x) { @@ -106,9 +104,9 @@ /*! \property QRotationReading::y - \brief the rotation on the Y axis. + \brief the rotation around the y axis. - Measured as radians. + Measured as degrees. \sa {QRotationReading Units} */ @@ -118,7 +116,7 @@ } /*! - Sets the rotation on the Y axis to \a y. + Sets the rotation around the y axis to \a y. */ void QRotationReading::setY(qreal y) { @@ -127,9 +125,9 @@ /*! \property QRotationReading::z - \brief the rotation on the Z axis. + \brief the rotation around the z axis. - Measured as radians. + Measured as degrees. \sa {QRotationReading Units} */ @@ -139,7 +137,7 @@ } /*! - Sets the rotation on the Z axis to \a z. + Sets the rotation around the z axis to \a z. */ void QRotationReading::setZ(qreal z) { @@ -148,8 +146,6 @@ // ===================================================================== -// begin generated code - /*! \class QRotationFilter \ingroup sensors_filter @@ -206,7 +202,14 @@ \sa QSensor::reading() */ -// end generated code + +/*! + \property QRotationSensor::hasZ + \brief a value indicating if the z angle is available. + + Returns true if z is available. + Returns false if z is not available. +*/ #include "moc_qrotationsensor.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qrotationsensor.h --- a/qtmobility/src/sensors/qrotationsensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qrotationsensor.h Mon May 03 13:18:40 2010 +0300 @@ -66,8 +66,6 @@ void setZ(qreal z); }; -// begin generated code - class Q_SENSORS_EXPORT QRotationFilter : public QSensorFilter { public: @@ -79,14 +77,15 @@ class Q_SENSORS_EXPORT QRotationSensor : public QSensor { Q_OBJECT +#ifdef Q_QDOC + Q_PROPERTY(bool hasZ) +#endif public: - explicit QRotationSensor(QObject *parent = 0) : QSensor(parent) - { setType(QRotationSensor::type); } + explicit QRotationSensor(QObject *parent = 0) : QSensor(QRotationSensor::type, parent) {} virtual ~QRotationSensor() {} QRotationReading *reading() const { return static_cast(QSensor::reading()); } static const char *type; }; -// end generated code QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qsensor.cpp --- a/qtmobility/src/sensors/qsensor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qsensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -63,6 +63,9 @@ // A bit of a hack to call qRegisterMetaType when the library is loaded. static int qtimestamp_id = qRegisterMetaType("QtMobility::qtimestamp"); +static int qrange_id = qRegisterMetaType("QtMobility::qrange"); +static int qrangelist_id = qRegisterMetaType("QtMobility::qrangelist"); +static int qoutputrangelist_id = qRegisterMetaType("QtMobility::qoutputrangelist"); // ===================================================================== @@ -87,12 +90,13 @@ */ /*! - Construct the sensor as a child of \a parent. + Construct the \a type sensor as a child of \a parent. */ -QSensor::QSensor(QObject *parent) +QSensor::QSensor(const QByteArray &type, QObject *parent) : QObject(parent) , d(new QSensorPrivate) { + d->type = type; } /*! @@ -112,15 +116,18 @@ } /*! - \property QSensor::connected + \property QSensor::connectedToBackend \brief a value indicating if the sensor has connected to a backend. A sensor that has not been connected to a backend cannot do anything useful. - Call the connect() method to force the sensor to connect to a backend immediately. + Call the connectToBackend() method to force the sensor to connect to a backend + immediately. This is automatically called if you call start() so you only need + to do this if you need access to sensor properties (ie. to poll the sensor's + meta-data before you use it). */ -bool QSensor::isConnected() const +bool QSensor::isConnectedToBackend() const { return (d->backend != 0); } @@ -132,7 +139,7 @@ Note that the identifier is filled out automatically when the sensor is connected to a backend. If you want to connect a specific backend, you should call - setIdentifier() before connect(). + setIdentifier() before connectToBackend(). */ QByteArray QSensor::identifier() const @@ -142,16 +149,16 @@ void QSensor::setIdentifier(const QByteArray &identifier) { - Q_ASSERT(!d->backend); + if (d->backend) { + qWarning() << "ERROR: Cannot call QSensor::setIdentifier while connected to a backend!"; + return; + } d->identifier = identifier; } /*! \property QSensor::type \brief the type of the sensor. - - Note that setType() can only be used if you are using QSensor directly. - Sub-classes of QSensor call this automatically for you. */ QByteArray QSensor::type() const @@ -159,13 +166,6 @@ return d->type; } -void QSensor::setType(const QByteArray &type) -{ - Q_ASSERT(!d->backend); - Q_ASSERT(QLatin1String(metaObject()->className()) == QLatin1String("QSensor") || QLatin1String(metaObject()->className()) == QLatin1String(type)); - d->type = type; -} - /*! Try to connect to a sensor backend. @@ -173,28 +173,52 @@ The type must be set before calling this method if you are using QSensor directly. - \sa isConnected() + \sa isConnectedToBackend() */ -bool QSensor::connect() +bool QSensor::connectToBackend() { if (d->backend) return true; - if (d->type.isEmpty()) { - qWarning() << "QSensor::connect - Cannot call this method unless the type is set."; - return false; - } - + int rate = d->dataRate; d->backend = QSensorManager::createBackend(this); + if (rate != 0) + setDataRate(rate); return (d->backend != 0); } /*! - \property QSensor::running - \brief controls the running state of the sensor. + \property QSensor::busy + \brief a value to indicate if the sensor is busy. + + Some sensors may be on the system but unavailable for use. + This function will return true if the sensor is busy. You + will not be able to start() the sensor. + + Note that this function does not return true if you + are using the sensor, only if another process is using + the sensor. + + \sa busyChanged() +*/ - This is provided for QML, set running: true to cause the sensor - to start on. +bool QSensor::isBusy() const +{ + return d->busy; +} + +/*! + \fn QSensor::busyChanged() + + This signal is emitted when the busy state changes. This can + be used to grab a sensor when it becomes available. +*/ + +/*! + \property QSensor::active + \brief a value to indicate if the sensor is active. + + This is true if the sensor is active (returning values). This is false otherwise. */ bool QSensor::isActive() const @@ -202,158 +226,88 @@ return d->active; } -void QSensor::setActive(bool running) +/*! + \property QSensor::availableDataRates + \brief the data rates that the sensor supports. + + This is a list of the data rates that the sensor supports. + Entries in the list can represent discrete rates or a + continuous range of rates. + A discrete rate is noted by having both values the same. + + See the sensor_explorer example for an example of how to interpret and use + this information. + + \sa QSensor::dataRate +*/ + +qrangelist QSensor::availableDataRates() const { - if (d->complete) { - if (running) - start(); - else - stop(); + return d->availableDataRates; +} + +/*! + \property QSensor::dataRate + \brief the data rate that the sensor should be run at. + + The default value is determined by the backend. + + This should be set before calling start() because the sensor may not + notice changes to this value while it is running. + + \sa QSensor::availableDataRates +*/ + +int QSensor::dataRate() const +{ + return d->dataRate; +} + +void QSensor::setDataRate(int rate) +{ + bool warn = true; + Q_FOREACH (const qrange &range, d->availableDataRates) { + if (rate >= range.first && rate <= range.second) { + warn = false; + d->dataRate = rate; + break; + } + } + if (warn) { + qWarning() << "setDataRate: rate" << rate << "is not supported by the sensor."; } } /*! - Returns true if the readingChanged() signal will be emitted. -*/ -bool QSensor::isSignalEnabled() const -{ - return d->signalEnabled; -} - -/*! - Call with \a enabled as false to turn off the readingChanged() signal. - - You might want to do this for performance reasons. If you are polling - the sensor or using a filter in a performance-critical application - then the overhead of emitting the signal may be too high even if nothing - is connected to it. -*/ -void QSensor::setSignalEnabled(bool enabled) -{ - d->signalEnabled = enabled; -} - -/*! - \enum QSensor::UpdatePolicy - - This enum is used to indicate to the sensor how often data will be collected. - Note that most sensors will only support one sensitivity. Setting an update - policy that the sensor does not support will result in undefined behaviour. - You can determine the policies the sensor supports with the - QSensor::supportedUpdatePolicies() method. - - \value Undefined The sensor has no specific update policy. Updates may - arrive frequently or infrequently. Updates based on - user interaction are likely to fit into this category. - \value OnChangeUpdates Updates are delivered as they happen, usually based on - user activity. - \value OccasionalUpdates Updates are delivered occasionally, about one every - 5 seconds. - \value InfrequentUpdates Updates are delivered infrequently, no more than once - per second. - \value FrequentUpdates Updates are delivered frequently, several per second. - \value TimedUpdates Updates are delivered at a specific time interval. - Note that not all sensors may be able to run with the - exact timings requested and may operate slightly faster - or slower. - \value PolledUpdates Updates are retrieved when the currentReading() - method is called. -*/ - -/*! - Change the update \a policy of the sensor. Note that not all - sensors support changing the update policy. If you set a - policy that the sensor does not support the behaviour is - undefined. - - If you wish to use the TimedUpdates policy, please call - setUpdateInterval() with the desired interval. - - \sa supportedUpdatePolicies() -*/ -void QSensor::setUpdatePolicy(UpdatePolicy policy) -{ - if (policy == TimedUpdates) - return; + Start retrieving values from the sensor. + Returns true if the sensor was started, false otherwise. - d->updatePolicy = policy; - d->updateInterval = 0; -} - -void QSensor::setUpdateInterval(int interval) -{ - d->updatePolicy = TimedUpdates; - d->updateInterval = interval; -} - -/*! - \property QSensor::updatePolicy - \brief the update policy of the sensor. -*/ - -/*! - Returns the update policy the sensor is using. -*/ -QSensor::UpdatePolicy QSensor::updatePolicy() const -{ - return d->updatePolicy; -} - -/*! - \property QSensor::updateInterval - \brief the update interval of the sensor. - - This value is only useful if the QSensor::updatePolicy property is set to TimedUpdates. -*/ + Note that the sensor may fail to start for several reasons. -int QSensor::updateInterval() const -{ - return d->updateInterval; -} - -/*! - \property QSensor::supportedUpdatePolicies - \brief the supported policies of the sensor. -*/ - -/*! - Returns the update policies that the sensor supports. - - Note that this will return QSensor::Undefined until a sensor backend is connected. - - \sa isConnected() + \sa QSensor::busy */ -QSensor::UpdatePolicies QSensor::supportedUpdatePolicies() const -{ - return d->supportedUpdatePolicies; -} - -/*! - Poll the sensor. -*/ -void QSensor::poll() -{ - if (!connect()) - return; - if (d->updatePolicy == PolledUpdates) - d->backend->poll(); -} - -/*! - Start retrieving values from the sensor. -*/ -void QSensor::start() +bool QSensor::start() { if (d->active) - return; - if (!connect()) - return; + return true; + if (!connectToBackend()) + return false; + if (d->availableDataRates.count() == 0) + return false; + // Set these flags to their defaults d->active = true; + d->busy = false; + // Backend will update the flags appropriately d->backend->start(); + return d->active; } /*! Stop retrieving values from the sensor. + + This releases the sensor so that other processes can use it. + + \sa QSensor::busy */ void QSensor::stop() { @@ -369,9 +323,9 @@ The reading class provides access to sensor readings. - Note that this will return 0 until a sensor backend is connected. + Note that this will return 0 until a sensor backend is connected to a backend. - \sa isConnected() + \sa isConnectedToBackend() */ QSensorReading *QSensor::reading() const @@ -389,6 +343,10 @@ */ void QSensor::addFilter(QSensorFilter *filter) { + if (!filter) { + qWarning() << "addFilter: passed a null filter!"; + return; + } d->filters << filter; } @@ -399,6 +357,10 @@ */ void QSensor::removeFilter(QSensorFilter *filter) { + if (!filter) { + qWarning() << "removeFilter: passed a null filter!"; + return; + } d->filters.removeOne(filter); filter->setSensor(0); } @@ -414,6 +376,75 @@ This signal is emitted when the reading has changed. */ +/*! + \property QSensor::outputRanges + \brief a list of output ranges the sensor supports. + + A sensor may have more than one output range. Typically this is done + to give a greater measurement range at the cost of lowering accuracy. + + \sa QSensor::outputRange +*/ + +qoutputrangelist QSensor::outputRanges() const +{ + return d->outputRanges; +} + +/*! + \property QSensor::outputRange + \brief the output range in use by the sensor. + + A sensor may have more than one output range. Typically this is done + to give a greater measurement range at the cost of lowering accuracy. + + \sa QSensor::outputRanges +*/ + +int QSensor::outputRange() const +{ + return d->outputRange; +} + +void QSensor::setOutputRange(int index) +{ + if (index < 0 || index >= d->outputRanges.count()) { + qWarning() << "ERROR: Output range" << index << "is not valid"; + return; + } + d->outputRange = index; +} + +/*! + \property QSensor::description + \brief a descriptive string for the sensor. +*/ + +QString QSensor::description() const +{ + return d->description; +} + +/*! + \property QSensor::error + \brief the last error code set on the sensor. + + Note that error codes are sensor-specific. +*/ + +int QSensor::error() const +{ + return d->error; +} + +/*! + \fn QSensor::sensorError(int error) + + This signal is emitted when an \a error code is set on the sensor. + Note that some errors will cause the sensor to stop working. + You should call isActive() to determine if the sensor is still running. +*/ + // ===================================================================== /*! @@ -554,41 +585,31 @@ Returns the value of the property at \a index. Note that this function is slower than calling the data function directly. - Consider the following statement that provides the best performance. + + Here is an example of getting a property via the different mechanisms available. + + Accessing directly provides the best performance but requires compile-time knowledge + of the data you are accessing. \code QAccelerometerReading *reading = ...; qreal x = reading->x(); \endcode - The slowest way to access a property is via name. To do this you must call - QObject::property(). + You can also access a property by name. To do this you must call QObject::property(). \code qreal x = reading->property("x").value(); \endcode - This is about 20 times slower than simply calling x(). There are 3 costs here. - - \list - \o The cost of the string comparison. - \o The cost of using the meta-object system. - \o The cost of converting to/from QVariant. - \endlist - - By looking up the property via numeric index, the string comparison cost is - removed. + Finally, you can access values via numeric index. \code qreal x = reading->value(0).value(); \endcode - While faster than name-based lookup this is still about 20 times slower than - simply calling x(). - - Reading classes can opt to re-implement this function and bypass the - meta-object system. If this is done this function will be about 3 times slower - than simply calling x(). + Note that value() can only access properties declared with Q_PROPERTY() in sub-classes + of QSensorReading. \sa valueCount(), QObject::property() */ @@ -607,12 +628,6 @@ return property.read(this); } -/* - \fn QSensorReading::value(int index) const - - Returns the value of the property at \a index. -*/ - /*! \fn QSensorReading::copyValuesFrom(QSensorReading *other) \internal diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qsensor.h --- a/qtmobility/src/sensors/qsensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qsensor.h Mon May 03 13:18:40 2010 +0300 @@ -47,6 +47,7 @@ #include #include #include +#include QTM_BEGIN_NAMESPACE @@ -56,96 +57,97 @@ class QSensorReadingPrivate; class QSensorFilter; +#ifdef Q_QDOC typedef quint64 qtimestamp; +#else +class qtimestamp +{ +public: + qtimestamp() : value() {} + qtimestamp(quint64 timestamp) : value(timestamp) {} + operator quint64() const { return value; } +private: + quint64 value; +}; +#endif + +typedef QPair qrange; +typedef QList qrangelist; +struct qoutputrange +{ + qreal minimum; + qreal maximum; + qreal accuracy; +}; +typedef QList qoutputrangelist; class Q_SENSORS_EXPORT QSensor : public QObject { friend class QSensorBackend; Q_OBJECT - Q_ENUMS(UpdatePolicy) - Q_FLAGS(UpdatePolicies) Q_PROPERTY(QByteArray sensorid READ identifier WRITE setIdentifier) - Q_PROPERTY(QByteArray type READ type WRITE setType) - Q_PROPERTY(bool connected READ isConnected) - Q_PROPERTY(UpdatePolicies supportedUpdatePolicies READ supportedUpdatePolicies) - Q_PROPERTY(UpdatePolicy updatePolicy READ updatePolicy WRITE setUpdatePolicy) - Q_PROPERTY(int updateInterval READ updateInterval WRITE setUpdateInterval) + Q_PROPERTY(QByteArray type READ type) + Q_PROPERTY(bool connectedToBackend READ isConnectedToBackend) + Q_PROPERTY(QtMobility::qrangelist availableDataRates READ availableDataRates) + Q_PROPERTY(int dataRate READ dataRate WRITE setDataRate) Q_PROPERTY(QSensorReading* reading READ reading NOTIFY readingChanged) - Q_PROPERTY(bool running READ isActive WRITE setActive) + Q_PROPERTY(bool busy READ isBusy) + Q_PROPERTY(bool active READ isActive) + Q_PROPERTY(QtMobility::qoutputrangelist outputRanges READ outputRanges) + Q_PROPERTY(int outputRange READ outputRange WRITE setOutputRange) + Q_PROPERTY(QString description READ description) + Q_PROPERTY(int error READ error NOTIFY sensorError) public: - explicit QSensor(QObject *parent = 0); + explicit QSensor(const QByteArray &type, QObject *parent = 0); virtual ~QSensor(); QByteArray identifier() const; void setIdentifier(const QByteArray &identifier); QByteArray type() const; - void setType(const QByteArray &type); - - Q_INVOKABLE bool connect(); - bool isConnected() const; - - bool isActive() const; - void setActive(bool running); - bool isSignalEnabled() const; - void setSignalEnabled(bool enabled); + Q_INVOKABLE bool connectToBackend(); + bool isConnectedToBackend() const; - enum UpdatePolicy { - Undefined = 0x00, // If the sensor has no specific policy - - // Used by irregularly updating sensors - OnChangeUpdates = 0x01, + bool isBusy() const; + bool isActive() const; - // Used by continuously updating sensors - OccasionalUpdates = 0x02, - InfrequentUpdates = 0x04, - FrequentUpdates = 0x08, - - // For more control - TimedUpdates = 0x10, // Every x milliseconds (may not be supported by all sensors) - PolledUpdates = 0x20 // As often as polled (may not be supported by all sensors) - }; - Q_DECLARE_FLAGS(UpdatePolicies, UpdatePolicy) + qrangelist availableDataRates() const; + int dataRate() const; + void setDataRate(int rate); - // What policies does the sensor support - UpdatePolicies supportedUpdatePolicies() const; + qoutputrangelist outputRanges() const; + int outputRange() const; + void setOutputRange(int index); - // Set the desired update policy (default is defined by the sensor) - // Use documentation to determine the policies that the sensor - // supports. - void setUpdatePolicy(UpdatePolicy policy); - void setUpdateInterval(int interval); - - // Retrieve the policy - UpdatePolicy updatePolicy() const; - int updateInterval() const; + QString description() const; + int error() const; // Filters modify the reading void addFilter(QSensorFilter *filter); void removeFilter(QSensorFilter *filter); - // Poll for sensor change (only if using PolledUpdates) - void poll(); - // The readings are exposed via this object QSensorReading *reading() const; // Information about available sensors + // These functions are implemented in qsensormanager.cpp static QList sensorTypes(); static QList sensorsForType(const QByteArray &type); static QByteArray defaultSensorForType(const QByteArray &type); public Q_SLOTS: // Start receiving values from the sensor - void start(); + bool start(); // Stop receiving values from the sensor void stop(); Q_SIGNALS: + void busyChanged(); void readingChanged(); + void sensorError(int error); protected: // called by the back end @@ -156,8 +158,6 @@ Q_DISABLE_COPY(QSensor) }; -Q_DECLARE_OPERATORS_FOR_FLAGS(QSensor::UpdatePolicies) - class Q_SENSORS_EXPORT QSensorFilter { friend class QSensor; @@ -185,8 +185,7 @@ // Access properties of sub-classes by numeric index // For name-based access use QObject::property() int valueCount() const; - // default impl is slow but sub-classes can make faster implementations - virtual QVariant value(int index) const; + QVariant value(int index) const; protected: explicit QSensorReading(QObject *parent, QSensorReadingPrivate *d); @@ -249,6 +248,9 @@ QTM_END_NAMESPACE Q_DECLARE_METATYPE(QtMobility::qtimestamp) +Q_DECLARE_METATYPE(QtMobility::qrange) +Q_DECLARE_METATYPE(QtMobility::qrangelist) +Q_DECLARE_METATYPE(QtMobility::qoutputrangelist) #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qsensor_p.h --- a/qtmobility/src/sensors/qsensor_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qsensor_p.h Mon May 03 13:18:40 2010 +0300 @@ -63,16 +63,17 @@ { public: QSensorPrivate() - : supportedUpdatePolicies(QSensor::Undefined) - , updatePolicy(QSensor::Undefined) - , updateInterval(0) + : identifier() + , type() + , outputRange(-1) + , dataRate(0) , backend(0) - , signalEnabled(true) , active(false) + , busy(false) , device_reading(0) , filter_reading(0) , cache_reading(0) - , complete(true) + , error(0) { } @@ -80,20 +81,24 @@ QByteArray identifier; QByteArray type; + QString description; + + qoutputrangelist outputRanges; + int outputRange; + // policy - QSensor::UpdatePolicies supportedUpdatePolicies; - QSensor::UpdatePolicy updatePolicy; - int updateInterval; + qrangelist availableDataRates; + int dataRate; QSensorBackend *backend; QFilterList filters; - bool signalEnabled; bool active; + bool busy; QSensorReading *device_reading; QSensorReading *filter_reading; QSensorReading *cache_reading; - bool complete; + int error; }; class QSensorReadingPrivate diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qsensorbackend.cpp --- a/qtmobility/src/sensors/qsensorbackend.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qsensorbackend.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,6 +41,7 @@ #include "qsensorbackend.h" #include "qsensor_p.h" +#include QTM_BEGIN_NAMESPACE @@ -71,17 +72,6 @@ } /*! - Set the supported \a policies for this sensor. - If this isn't called the sensor will not report - any supported policies to the user. -*/ -void QSensorBackend::setSupportedUpdatePolicies(QSensor::UpdatePolicies policies) -{ - QSensorPrivate *d = m_sensor->d_func(); - d->supportedUpdatePolicies = policies; -} - -/*! Notify the QSensor class that a new reading is available. */ void QSensorBackend::newReadingAvailable() @@ -100,11 +90,7 @@ // Copy the values from the filter reading to the cached reading d->cache_reading->copyValuesFrom(d->filter_reading); - if (d->updatePolicy == QSensor::PolledUpdates) - return; // We don't emit the signal if we're polling - - if (d->signalEnabled) - Q_EMIT m_sensor->readingChanged(); + Q_EMIT m_sensor->readingChanged(); } /*! @@ -120,12 +106,6 @@ */ /*! - \fn QSensorBackend::poll() - - Poll the sensor for a reading. -*/ - -/*! If the backend has lost its reference to the reading it can call this method to get the address. @@ -141,6 +121,12 @@ } /*! + \fn QSensorBackend::sensor() const + + Returns the sensor front end associated with this backend. +*/ + +/*! \fn QSensorBackend::setReading(T *reading) This function is called to initialize the \a reading @@ -215,6 +201,133 @@ d->cache_reading = cache; } +/*! + Add a data rate (consisting of \a min and \a max values) for the sensor. + + Note that this function should be called from the constructor so that the information + is available immediately. + + \sa QSensor::availableDataRates +*/ +void QSensorBackend::addDataRate(qreal min, qreal max) +{ + QSensorPrivate *d = m_sensor->d_func(); + d->availableDataRates << qrange(min, max); +} + +/*! + Set the data rates for the sensor based on \a otherSensor. + + This is designed for sensors that are based on other sensors. + + \code + setDataRates(otherSensor); + \endcode + + Note that this function should be called from the constructor so that the information + is available immediately. + + \sa QSensor::availableDataRates, addDataRate() +*/ +void QSensorBackend::setDataRates(const QSensor *otherSensor) +{ + if (!otherSensor) { + qWarning() << "ERROR: Cannot call QSensorBackend::setDataRates with 0"; + return; + } + if (otherSensor->identifier().count() == 0) { + qWarning() << "ERROR: Cannot call QSensorBackend::setDataRates with an invalid sensor"; + return; + } + QSensorPrivate *d = m_sensor->d_func(); + d->availableDataRates = otherSensor->availableDataRates(); + d->dataRate = otherSensor->dataRate(); + if (d->availableDataRates.count() == 0) { + qWarning() << otherSensor->identifier() << "backend does not support any data rates."; + } +} + +/*! + Add an output range (consisting of \a min, \a max values and \a accuracy) for the sensor. + + Note that this function should be called from the constructor so that the information + is available immediately. + + \sa QSensor::outputRange, QSensor::outputRanges +*/ +void QSensorBackend::addOutputRange(qreal min, qreal max, qreal accuracy) +{ + QSensorPrivate *d = m_sensor->d_func(); + + qoutputrange details = {min, max, accuracy}; + + d->outputRanges << details; + + // When adding the first range, set outputRage to it + if (d->outputRange == -1) { + d->outputRange = 0; + } +} + +/*! + Set the \a description for the sensor. + + Note that this function should be called from the constructor so that the information + is available immediately. +*/ +void QSensorBackend::setDescription(const QString &description) +{ + QSensorPrivate *d = m_sensor->d_func(); + d->description = description; +} + +/*! + Inform the front end that the sensor has stopped. + This can be due to start() failing or for some + unexpected reason (eg. hardware failure). + + Note that the front end must call QSensor::isActive() to see if + the sensor has stopped. If the sensor has stopped due to an error + the sensorError() function should be called to notify the class + of the error condition. +*/ +void QSensorBackend::sensorStopped() +{ + QSensorPrivate *d = m_sensor->d_func(); + d->active = false; +} + +/*! + Inform the front end that the sensor is busy. + This implicitly calls sensorStopped() and + is typically called from start(). + + Note that the front end must call QSensor::isBusy() to see if + the sensor is busy. If the sensor has stopped due to an error + the sensorError() function should be called to notify the class + of the error condition. +*/ +void QSensorBackend::sensorBusy() +{ + QSensorPrivate *d = m_sensor->d_func(); + d->active = false; + d->busy = true; +} + +/*! + Inform the front end that a sensor error occurred. + Note that this only reports an \a error code. It does + not stop the sensor. + + \sa sensorStopped() +*/ +void QSensorBackend::sensorError(int error) +{ + QSensorPrivate *d = m_sensor->d_func(); + d->error = error; + Q_EMIT m_sensor->sensorError(error); +} + #include "moc_qsensorbackend.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qsensorbackend.h --- a/qtmobility/src/sensors/qsensorbackend.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qsensorbackend.h Mon May 03 13:18:40 2010 +0300 @@ -56,9 +56,12 @@ virtual void start() = 0; virtual void stop() = 0; - virtual void poll() = 0; - void setSupportedUpdatePolicies(QSensor::UpdatePolicies policies); + // used by the backend to set metadata properties + void addDataRate(qreal min, qreal max); + void setDataRates(const QSensor *otherSensor); + void addOutputRange(qreal min, qreal max, qreal accuracy); + void setDescription(const QString &description); template T *setReading(T *reading) @@ -68,14 +71,19 @@ setReadings(reading, new T(this), new T(this)); return reading; } - void newReadingAvailable(); QSensorReading *reading() const; + QSensor *sensor() const { return m_sensor; } + + // used by the backend to inform us of events + void newReadingAvailable(); + void sensorStopped(); + void sensorBusy(); + void sensorError(int error); private: void setReadings(QSensorReading *device, QSensorReading *filter, QSensorReading *cache); -protected: QSensor *m_sensor; Q_DISABLE_COPY(QSensorBackend) }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qsensormanager.cpp --- a/qtmobility/src/sensors/qsensormanager.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qsensormanager.cpp Mon May 03 13:18:40 2010 +0300 @@ -44,8 +44,7 @@ #include "qsensorpluginloader_p.h" #include "qsensorplugin.h" #include - -//#define LOG() if (1); else qDebug() +#include "sensorlog_p.h" QTM_BEGIN_NAMESPACE @@ -80,13 +79,13 @@ QSensorManagerPrivate *d = sensorManagerPrivate(); d->pluginsLoaded = true; - qDebug() << "initializing static plugins"; + SENSORLOG() << "initializing static plugins"; Q_FOREACH (CreatePluginFunc func, d->staticRegistrations) { QSensorPluginInterface *plugin = func(); plugin->registerSensors(); } - qDebug() << "initializing plugins"; + SENSORLOG() << "initializing plugins"; Q_FOREACH (QSensorPluginInterface *plugin, pluginLoader()->plugins()) { plugin->registerSensors(); } @@ -99,10 +98,11 @@ \ingroup sensors_backend \preliminary - \brief The QSensorManager class returns the sensors on a device. + \brief The QSensorManager class handles registration and creation of sensor backends. - A given device will have a variety of sensors. The sensors are - categorized by type. + Sensor plugins register backends using the registerBackend() function. + + When QSensor::connectToBackend() is called, the createBackend() function will be called. */ /*! @@ -117,7 +117,7 @@ (void)d->backendsByType[type]; d->firstIdentifierForType[type] = identifier; } - qDebug() << "registering backend for type" << type << "identifier" << identifier;// << "factory" << QString().sprintf("0x%08x", (unsigned int)factory); + SENSORLOG() << "registering backend for type" << type << "identifier" << identifier;// << "factory" << QString().sprintf("0x%08x", (unsigned int)factory); FactoryForIdentifierMap &factoryByIdentifier = d->backendsByType[type]; factoryByIdentifier[identifier] = factory; } @@ -142,10 +142,10 @@ if (!d->pluginsLoaded) loadPlugins(); - //LOG() << "QSensorManager::createBackend" << "type" << sensor->type() << "identifier" << sensor->identifier(); + SENSORLOG() << "QSensorManager::createBackend" << "type" << sensor->type() << "identifier" << sensor->identifier(); if (!d->backendsByType.contains(sensor->type())) { - qDebug() << "no backends of type" << sensor->type() << "have been registered."; + SENSORLOG() << "no backends of type" << sensor->type() << "have been registered."; return 0; } @@ -155,41 +155,50 @@ if (sensor->identifier().isEmpty()) { QByteArray defaultIdentifier = QSensor::defaultSensorForType(sensor->type()); - //LOG() << "Trying the default" << defaultIdentifier; + SENSORLOG() << "Trying the default" << defaultIdentifier; // No identifier set, try the default factory = factoryByIdentifier[defaultIdentifier]; - //LOG() << "factory" << QString().sprintf("0x%08x", (unsigned int)factory); + //SENSORLOG() << "factory" << QString().sprintf("0x%08x", (unsigned int)factory); sensor->setIdentifier(defaultIdentifier); // the factory requires this backend = factory->createBackend(sensor); - if (backend) return backend; // Got it! + if (backend) goto gotbackend; // Got it! // The default failed to instantiate so try any other registered sensors for this type Q_FOREACH (const QByteArray &identifier, factoryByIdentifier.keys()) { - //LOG() << "Trying" << identifier; + SENSORLOG() << "Trying" << identifier; if (identifier == defaultIdentifier) continue; // Don't do the default one again factory = factoryByIdentifier[identifier]; - //LOG() << "factory" << QString().sprintf("0x%08x", (unsigned int)factory); + //SENSORLOG() << "factory" << QString().sprintf("0x%08x", (unsigned int)factory); sensor->setIdentifier(identifier); // the factory requires this backend = factory->createBackend(sensor); - if (backend) return backend; // Got it! + if (backend) goto gotbackend; // Got it! } - //LOG() << "FAILED"; + SENSORLOG() << "FAILED"; sensor->setIdentifier(QByteArray()); // clear the identifier } else { if (!factoryByIdentifier.contains(sensor->identifier())) { - qDebug() << "no backend with identifier" << sensor->identifier() << "for type" << sensor->type(); + SENSORLOG() << "no backend with identifier" << sensor->identifier() << "for type" << sensor->type(); return 0; } // We were given an explicit identifier so don't substitute other backends if it fails to instantiate factory = factoryByIdentifier[sensor->identifier()]; - //LOG() << "factory" << QString().sprintf("0x%08x", (unsigned int)factory); + //SENSORLOG() << "factory" << QString().sprintf("0x%08x", (unsigned int)factory); backend = factory->createBackend(sensor); - if (backend) return backend; // Got it! + if (backend) goto gotbackend; // Got it! } - qDebug() << "no suitable backend found for requested identifier" << sensor->identifier() << "and type" << sensor->type(); + SENSORLOG() << "no suitable backend found for requested identifier" << sensor->identifier() << "and type" << sensor->type(); return 0; + +gotbackend: + if (sensor->availableDataRates().count() == 0) { + qWarning() << sensor->identifier() << "backend does not support any data rates. It cannot be used."; + } + if (sensor->dataRate() == 0) { + qWarning() << sensor->identifier() << "backend did not supply default data rate."; + } + return backend; } // ===================================================================== @@ -216,6 +225,10 @@ if (!d->pluginsLoaded) loadPlugins(); + // no sensors of that type exist + if (!d->backendsByType.contains(type)) + return QList(); + return d->backendsByType[type].keys(); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qsensormanager.h --- a/qtmobility/src/sensors/qsensormanager.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qsensormanager.h Mon May 03 13:18:40 2010 +0300 @@ -75,7 +75,7 @@ }; #define REGISTER_STATIC_PLUGIN(pluginname)\ - static QSensorPlugin *create_static_plugin_ ## pluginname()\ + static QSensorPluginInterface *create_static_plugin_ ## pluginname()\ {\ return new pluginname;\ }\ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qsensorpluginloader.cpp --- a/qtmobility/src/sensors/qsensorpluginloader.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qsensorpluginloader.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,7 +41,6 @@ #include "qsensorpluginloader_p.h" #include -#include #include #include @@ -56,6 +55,15 @@ load(); } +QSensorPluginLoader::~QSensorPluginLoader() +{ + Q_FOREACH (QPluginLoader *loader, m_loaders) { + bool ok = loader->unload(); + if (!ok) qWarning() << "Cannot unload" << loader->fileName(); + delete loader; + } +} + void QSensorPluginLoader::load() { if (!m_plugins.isEmpty()) @@ -64,28 +72,33 @@ QStringList paths = QCoreApplication::libraryPaths(); Q_FOREACH (QString const &path, paths) { - QString pluginPathName(path + m_location); - QDir pluginDir(pluginPathName); + QString pluginPathName(path + m_location); + QDir pluginDir(pluginPathName); if (!pluginDir.exists()) continue; Q_FOREACH (QString pluginLib, pluginDir.entryList(QDir::Files)) { - QPluginLoader loader(pluginPathName + pluginLib); + QPluginLoader *loader = new QPluginLoader(pluginPathName + pluginLib); - QObject *o = loader.instance(); + QObject *o = loader->instance(); if (o != 0 && o->qt_metacast(m_iid) != 0) { QSensorPluginInterface *p = qobject_cast(o); if (p != 0) { m_plugins << p; + m_loaders << loader; + } else { + loader->unload(); + delete loader; } continue; } else { - qWarning() << "QSensorPluginLoader: Failed to load plugin: " << pluginLib << loader.errorString(); + qWarning() << "QSensorPluginLoader: Failed to load plugin: " << pluginLib << loader->errorString(); } delete o; - loader.unload(); + loader->unload(); + delete loader; } } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qsensorpluginloader_p.h --- a/qtmobility/src/sensors/qsensorpluginloader_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qsensorpluginloader_p.h Mon May 03 13:18:40 2010 +0300 @@ -57,6 +57,7 @@ #include #include #include +#include QTM_BEGIN_NAMESPACE @@ -66,6 +67,7 @@ { public: QSensorPluginLoader(const char *iid, const QString &suffix = QString()); + ~QSensorPluginLoader(); QList plugins() const { return m_plugins; } @@ -75,6 +77,7 @@ QByteArray m_iid; QString m_location; QList m_plugins; + QList m_loaders; }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qtapsensor.cpp --- a/qtmobility/src/sensors/qtapsensor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qtapsensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -55,7 +55,7 @@ tap sensor. \section2 QTapReading Units - The tap sensor registers tap and double tap events in one of the six directions. + The tap sensor registers tap events in one of the six directions. There are 3 axes that originate from the phone. They are arranged as follows. \code +z @@ -76,6 +76,9 @@ ---------- / |_________!/ \endcode + + By default it returns double tap events. The QTapSensor::returnDoubleTapEvents property + must be set to false to return individual tap events. */ /*! @@ -142,8 +145,6 @@ // ===================================================================== -// begin generated code - /*! \class QTapFilter \ingroup sensors_filter @@ -200,7 +201,17 @@ \sa QSensor::reading() */ -// end generated code + +/*! + \property QTapSensor::returnDoubleTapEvents + \brief a value indicating if double tap events should be reported. + + Set to true (the default) to have the sensor report on double tap events. + Set to false to have the sensor report on individual tap events. + + Note that you must access this property via QObject::property() and QObject::setProperty(). + The property must be set before calling start(). +*/ #include "moc_qtapsensor.cpp" QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/qtapsensor.h --- a/qtmobility/src/sensors/qtapsensor.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/qtapsensor.h Mon May 03 13:18:40 2010 +0300 @@ -76,8 +76,6 @@ void setDoubleTap(bool doubleTap); }; -// begin generated code - class Q_SENSORS_EXPORT QTapFilter : public QSensorFilter { public: @@ -89,14 +87,15 @@ class Q_SENSORS_EXPORT QTapSensor : public QSensor { Q_OBJECT +#ifdef Q_QDOC + Q_PROPERTY(bool returnDoubleTapEvents) +#endif public: - explicit QTapSensor(QObject *parent = 0) : QSensor(parent) - { setType(QTapSensor::type); } + explicit QTapSensor(QObject *parent = 0) : QSensor(QTapSensor::type, parent) {} virtual ~QTapSensor() {} QTapReading *reading() const { return static_cast(QSensor::reading()); } static const char *type; }; -// end generated code QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/refresh_sensors.sh --- a/qtmobility/src/sensors/refresh_sensors.sh Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -#!/bin/sh - -./make_sensor.pl QAccelerometer -./make_sensor.pl QAmbientLightSensor -./make_sensor.pl QCompass -./make_sensor.pl QMagnetometer -./make_sensor.pl QOrientationSensor -./make_sensor.pl QProximitySensor -./make_sensor.pl QRotationSensor -./make_sensor.pl QTapSensor - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/sensorlog_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/src/sensors/sensorlog_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,83 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 QSENSORLOG_P_H +#define QSENSORLOG_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. +// + +#ifdef ENABLE_RUNTIME_SENSORLOG + +static bool logEnabled() +{ + static int state = -1; + + if (state == -1) { + QByteArray sensorlog = qgetenv("SENSORLOG"); + if (sensorlog == "1") + state = 1; + else + state = 0; + } + + return state; +} + +#define SENSORLOG() if (!logEnabled()); else qDebug() + +#else + +// Do nothing (compiles to almost nothing) +#define SENSORLOG() if (1); else qDebug() + +#endif + +#endif + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/sensors/sensors.pro --- a/qtmobility/src/sensors/sensors.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/sensors/sensors.pro Mon May 03 13:18:40 2010 +0300 @@ -16,7 +16,8 @@ DEPLOYMENT += CONTACTS_DEPLOYMENT } -CONFIG+=strict_flags +CONFIG += strict_flags +CONFIG(debug,debug|release):DEFINES += ENABLE_RUNTIME_SENSORLOG INCLUDEPATH += . DEPENDPATH += . @@ -28,6 +29,7 @@ PRIVATE_HEADERS += \ qsensorpluginloader_p.h\ + sensorlog_p.h\ SOURCES += qsensorbackend.cpp\ qsensormanager.cpp\ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/serviceframework/databasemanager.cpp --- a/qtmobility/src/serviceframework/databasemanager.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/serviceframework/databasemanager.cpp Mon May 03 13:18:40 2010 +0300 @@ -511,7 +511,7 @@ m_userDb->removeExternalDefaultServiceInterface(interfaceID); QList descriptors; - descriptors = getInterfaces(interfaceName, UserScope); + descriptors = getInterfaces(QServiceFilter(interfaceName), UserScope); //make the latest interface implementation the new //default if there is one @@ -751,7 +751,7 @@ if (m_userDb->lastError().code() == DBError::NotFound) { m_userDb->removeExternalDefaultServiceInterface(defaultInfo.second); QList descriptors; - descriptors = getInterfaces(defaultInfo.first, UserScope); + descriptors = getInterfaces(QServiceFilter(defaultInfo.first), UserScope); if (descriptors.count() > 0 ) { descriptor = latestDescriptor(descriptors); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/serviceframework/qservicefilter.h --- a/qtmobility/src/serviceframework/qservicefilter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/serviceframework/qservicefilter.h Mon May 03 13:18:40 2010 +0300 @@ -71,7 +71,7 @@ QServiceFilter(); ~QServiceFilter(); QServiceFilter(const QServiceFilter& other); - QServiceFilter(const QString& interfaceName, + explicit QServiceFilter(const QString& interfaceName, const QString& version = QString(), QServiceFilter::VersionMatchRule rule = QServiceFilter::MinimumVersionMatch); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/serviceframework/servicedatabase.cpp --- a/qtmobility/src/serviceframework/servicedatabase.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/serviceframework/servicedatabase.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ -//#define QT_SFW_SERVICEDATABASE_DEBUG +// #define QT_SFW_SERVICEDATABASE_DEBUG #include "servicedatabase_p.h" #include @@ -166,8 +166,8 @@ m_lastError.setError(DBError::SqlError, database.lastError().text()); #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::open():-" - << "Problem:" << "Could not open database" - << "\nReason:" << m_lastError.text(); + << "Problem:" << "Could not open database. " + << "Reason:" << m_lastError.text(); #endif close(); return false; @@ -220,6 +220,17 @@ { #ifndef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN Q_UNUSED(securityToken); +#else + if (securityToken.isEmpty()) { + QString errorText("Access denied, no security token provided (for registering service: \"%1\")"); + m_lastError.setError(DBError::NoWritePermissions, errorText.arg(service.name)); +#ifdef QT_SFW_SERVICEDATABASE_DEBUG + qWarning() << "ServiceDatabase::registerService():-" + << "Problem: Unable to register service," + << "reason:" << qPrintable(m_lastError.text()); +#endif + return false; + } #endif if(!checkConnection()) { @@ -236,8 +247,8 @@ if (!beginTransaction(&query, Write)) { #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::registerService():-" - << "Unable to begin transaction" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Unable to begin transaction," + << "reason:" << qPrintable(m_lastError.text()); #endif return false; } @@ -274,38 +285,44 @@ } #ifdef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN - statement = "SELECT Value FROM ServiceProperty WHERE ServiceID = ? AND Key = ?"; + // If service(s) have already been registered with same name, they must all come from + // same application. Fetch a service with given name and if such exists, check that its + // security ID equals to the security ID of the current registrar. + // One application may register multiple services with same name (different location), + // hence the keyword DISTINCT. + statement = "SELECT DISTINCT ServiceProperty.Value FROM Service, ServiceProperty " + "WHERE Service.ID = ServiceProperty.ServiceID " + "AND ServiceProperty.Key = ? " + "AND Service.Name = ?"; bindValues.clear(); + bindValues.append(SECURITY_TOKEN_KEY); bindValues.append(service.name); - bindValues.append(SECURITY_TOKEN_KEY); - - if(!executeQuery(&query, statement, bindValues)) { + if (!executeQuery(&query, statement, bindValues)) { rollbackTransaction(&query); #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::registerService():-" - << qPrintable(m_lastError.text()); + << qPrintable(m_lastError.text()); #endif return false; } - - QStringList securityTokens; - while(query.next()) { - securityTokens << query.value(EBindIndex).toString(); + QString existingSecurityToken; + if (query.next()) { + existingSecurityToken = query.value(EBindIndex).toString(); } - - if (!securityTokens.isEmpty() && securityTokens.first() != securityToken) { + if (!existingSecurityToken.isEmpty() && (existingSecurityToken != securityToken)) { QString errorText("Access denied: \"%1\""); - m_lastError.setError(DBError::NoWritePermissions, errorText.arg(service.name)); - rollbackTransaction(&query); - #ifdef QT_SFW_SERVICEDATABASE_DEBUG - qWarning() << "ServiceDatabase::registerService():-" - << "Problem: Unable to register service" - << "\nReason:" << qPrintable(m_lastError.text()); - #endif - return false; + m_lastError.setError(DBError::NoWritePermissions, errorText.arg(service.name)); + rollbackTransaction(&query); +#ifdef QT_SFW_SERVICEDATABASE_DEBUG + qWarning() << "ServiceDatabase::registerService():-" + << "Problem: Unable to register service," + << "reason:" << qPrintable(m_lastError.text()); +#endif + return false; } -#endif +#endif // QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN + // Checks done, create new rows into tables. statement = "INSERT INTO Service(ID,Name,Location) VALUES(?,?,?)"; QString serviceID = QUuid::createUuid().toString(); @@ -342,23 +359,22 @@ } #ifdef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN - if (securityTokens.isEmpty()) { - statement = "INSERT INTO ServiceProperty(ServiceID,Key,Value) VALUES(?,?,?)"; - bindValues.clear(); - bindValues.append(service.name); - bindValues.append(SECURITY_TOKEN_KEY); - bindValues.append(securityToken); + // Insert a security token for the particular service + statement = "INSERT INTO ServiceProperty(ServiceID,Key,Value) VALUES(?,?,?)"; + bindValues.clear(); + bindValues.append(serviceID); + bindValues.append(SECURITY_TOKEN_KEY); + bindValues.append(securityToken); - if (!executeQuery(&query, statement, bindValues)) { - rollbackTransaction(&query); + if (!executeQuery(&query, statement, bindValues)) { + rollbackTransaction(&query); #ifdef QT_SFW_SERVICEDATABASE_DEBUG - qWarning() << "ServiceDatabase::registerService():-" - << qPrintable(m_lastError.text()); + qWarning() << "ServiceDatabase::registerService():-" + << qPrintable(m_lastError.text()); #endif - return false; - } + return false; } -#endif +#endif // QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN QList interfaces = service.interfaces; QString interfaceID;; @@ -569,9 +585,9 @@ if (!query->next()) { QString errorText("No Interface Descriptor found with " - "\nService name: %1 " - "\nInterface name: %2 " - "\nVersion: %3.%4"); + "Service name: %1 " + "Interface name: %2 " + "Version: %3.%4"); m_lastError.setError(DBError::NotFound, errorText.arg(interface.serviceName()) .arg(interface.interfaceName()) .arg(interface.majorVersion()) @@ -716,8 +732,8 @@ if (!success) { QString errorText; errorText = "Problem: Could not %1 statement: %2" - "\nReason: %3" - "\nParameters: %4\n"; + "Reason: %3" + "Parameters: %4\n"; QString parameters; if (bindValues.count() > 0) { for(int i = 0; i < bindValues.count(); ++i) { @@ -791,8 +807,8 @@ if (!beginTransaction(&query, Read)) { #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::getInterfaces():-" - << "Unable to begin transaction:" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Unable to begin transaction. " + << "Reason:" << qPrintable(m_lastError.text()); #endif return interfaces; } @@ -945,8 +961,8 @@ if (!beginTransaction(&query, Read)) { #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::getInterface():-" - << "Unable to begin transaction" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Unable to begin transaction. " + << "Reason:" << qPrintable(m_lastError.text()); #endif return interface; } @@ -1106,8 +1122,8 @@ if (!inTransaction && !beginTransaction(&query, Read)) { #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::interfaceDefault(QString, QString):-" - << "Unable to begin transaction" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Unable to begin transaction. " + << "Reason:" << qPrintable(m_lastError.text()); #endif return interface; } @@ -1234,8 +1250,8 @@ if(!beginTransaction(&query, Write)) { #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::setInterfaceDefault(QServiceInterfaceDescriptor):-" - << "Problem: Unable to begin transaction" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Problem: Unable to begin transaction." + << "Reason:" << qPrintable(m_lastError.text()); #endif return false; } @@ -1276,8 +1292,8 @@ rollbackTransaction(&query); #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatbase::setInterfaceDefault(QServiceInterfaceDescriptor):-" - << "Problem: Unable to set default service" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Problem: Unable to set default service. " + << "Reason:" << qPrintable(m_lastError.text()); #endif return false; } @@ -1357,10 +1373,22 @@ DBError::InvalidDatabaseFile */ bool ServiceDatabase::unregisterService(const QString &serviceName, const QString &securityToken) -{ +{ #ifndef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN Q_UNUSED(securityToken); +#else + if (securityToken.isEmpty()) { + QString errorText("Access denied, no security token provided (for unregistering service: \"%1\")"); + m_lastError.setError(DBError::NoWritePermissions, errorText.arg(serviceName)); +#ifdef QT_SFW_SERVICEDATABASE_DEBUG + qWarning() << "ServiceDatabase::unregisterService():-" + << "Problem: Unable to unregister service. " + << "Reason:" << qPrintable(m_lastError.text()); #endif + return false; + } +#endif + if (!checkConnection()) { #ifdef QT_SFW_SERVICEDATABASE_DEBUG @@ -1376,8 +1404,8 @@ if(!beginTransaction(&query, Write)) { #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::unregisterService():-" - << "Problem: Unable to begin transaction" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Problem: Unable to begin transaction. " + << "Reason:" << qPrintable(m_lastError.text()); #endif return false; } @@ -1399,39 +1427,43 @@ serviceIDs << query.value(EBindIndex).toString(); } +#ifdef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN + // Only the application that registered the service is allowed to unregister that + // service. Fetch a security ID of a service (with given name) and verify that it matches + // with current apps security id. Only one application is allowed to register services with + // same name, hence a distinct (just any of the) security token will do because they are identical. + if (!serviceIDs.isEmpty()) { + statement = "SELECT DISTINCT Value FROM ServiceProperty WHERE ServiceID = ? AND Key = ?"; + bindValues.clear(); + bindValues.append(serviceIDs.first()); + bindValues.append(SECURITY_TOKEN_KEY); -#ifdef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN - statement = "SELECT Value FROM ServiceProperty WHERE ServiceID = ? AND Key = ?"; - bindValues.clear(); - bindValues.append(serviceName); - bindValues.append(SECURITY_TOKEN_KEY); - if(!executeQuery(&query, statement, bindValues)) { - rollbackTransaction(&query); + if (!executeQuery(&query, statement, bindValues)) { + rollbackTransaction(&query); #ifdef QT_SFW_SERVICEDATABASE_DEBUG - qWarning() << "ServiceDatabase::unregisterService():-" + qWarning() << "ServiceDatabase::unregisterService():-" << qPrintable(m_lastError.text()); #endif - return false; - } - - QStringList securityTokens; - while(query.next()) { - securityTokens << query.value(EBindIndex).toString(); + return false; + } + QString existingSecurityToken; + if (query.next()) { + existingSecurityToken = query.value(EBindIndex).toString(); + } + if (existingSecurityToken != securityToken) { + QString errorText("Access denied: \"%1\""); + m_lastError.setError(DBError::NoWritePermissions, errorText.arg(serviceName)); + rollbackTransaction(&query); +#ifdef QT_SFW_SERVICEDATABASE_DEBUG + qWarning() << "ServiceDatabase::unregisterService():-" + << "Problem: Unable to unregister service" + << "Reason:" << qPrintable(m_lastError.text()); +#endif + return false; + } } - - if (!securityTokens.isEmpty() && (securityTokens.first() != securityToken)) { - QString errorText("Access denied: \"%1\""); - m_lastError.setError(DBError::NoWritePermissions, errorText.arg(serviceName)); - rollbackTransaction(&query); - #ifdef QT_SFW_SERVICEDATABASE_DEBUG - qWarning() << "ServiceDatabase::unregisterService():-" - << "Problem: Unable to unregister service" - << "\nReason:" << qPrintable(m_lastError.text()); - #endif - } - -#endif - +#endif // QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN + statement = "SELECT Interface.ID from Interface, Service " "WHERE Interface.ServiceID = Service.ID " "AND Service.Name =? COLLATE NOCASE"; @@ -1458,7 +1490,7 @@ #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::unregisterService():-" << "Problem: Unable to unregister service" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Reason:" << qPrintable(m_lastError.text()); #endif return false; } @@ -1511,19 +1543,11 @@ } } -#ifndef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN statement = "DELETE FROM ServiceProperty WHERE ServiceID = ?"; -#else - statement = "DELETE FROM ServiceProperty WHERE ServiceID = ? AND Key <> ?"; -#endif - foreach(const QString &serviceID, serviceIDs) { bindValues.clear(); bindValues.append(serviceID); -#ifdef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN - bindValues.append(SECURITY_TOKEN_KEY); -#endif if (!executeQuery(&query, statement, bindValues)) { rollbackTransaction(&query); #ifdef QT_SFW_SERVICEDATABASE_DEBUG @@ -1645,6 +1669,18 @@ { QString path; if(m_databasePath.isEmpty()) { +#if (defined(Q_OS_SYMBIAN) && defined(__WINS__)) + // On Symbian, database location never changes. On emulator it is fixed + // and on hardware it is relative to the db managers private directory. + path = QDir::toNativeSeparators("C:\\Data\\temp\\QtServiceFW"); +#elif defined(Q_OS_SYMBIAN) + QString qtVersion(qVersion()); + qtVersion = qtVersion.left(qtVersion.size() -2); //strip off patch version + path = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + + "\\Nokia\\" + "QtServiceFramework_" + + qtVersion + "_system" + + QLatin1String(".db")); +#else QSettings settings(QSettings::SystemScope, "Nokia", "Services"); path = settings.value("ServicesDB/Path").toString(); if (path.isEmpty()) { @@ -1655,6 +1691,7 @@ path.append(RESOLVERDATABASE); } path = QDir::toNativeSeparators(path); +#endif } else { path = m_databasePath; } @@ -1681,8 +1718,8 @@ if (!beginTransaction(&query, Write)) { #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::createTables():-" - << "Unable to begin transaction" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Unable to begin transaction. " + << "Reason:" << qPrintable(m_lastError.text()); #endif return false; } @@ -1803,8 +1840,8 @@ if (!beginTransaction(&query, Write)) { #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::removeExternalDefaultServiceInterface():-" - << "Problem: Unable to begin transaction" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Problem: Unable to begin transaction. " + << "Reason:" << qPrintable(m_lastError.text()); #endif return false; } @@ -1878,14 +1915,14 @@ if (!beginTransaction(&query, Write)) { #ifdef QT_SFW_SERVICEDATABASE_DEBUG qWarning() << "ServiceDatabase::dropTables():-" - << "Unable to begin transaction" - << "\nReason:" << qPrintable(m_lastError.text()); + << "Unable to begin transaction. " + << "Reason:" << qPrintable(m_lastError.text()); #endif return false; } QStringList actualTables = database.tables(); - foreach(QString expectedTable, expectedTables) { + foreach(const QString expectedTable, expectedTables) { if ((actualTables.contains(expectedTable)) && (!executeQuery(&query, QString("DROP TABLE ") + expectedTable))) { rollbackTransaction(&query); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/serviceframework/servicemetadata.cpp --- a/qtmobility/src/serviceframework/servicemetadata.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/serviceframework/servicemetadata.cpp Mon May 03 13:18:40 2010 +0300 @@ -61,8 +61,6 @@ QTM_BEGIN_NAMESPACE -static const char PATH_SEPARATOR[] = "\\"; - #ifndef QT_NO_DATASTREAM QDataStream &operator<<(QDataStream &out, const ServiceMetaDataResults &r) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/serviceframework/symbian/databasemanagersession.cpp --- a/qtmobility/src/serviceframework/symbian/databasemanagersession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/serviceframework/symbian/databasemanagersession.cpp Mon May 03 13:18:40 2010 +0300 @@ -81,10 +81,10 @@ } CDatabaseManagerServerSession::CDatabaseManagerServerSession(CDatabaseManagerServer& aServer) - : iDatabaseManagerSignalHandler(NULL), + : iServer(aServer), + iDatabaseManagerSignalHandler(NULL), iDb(NULL), - m_watcher(NULL), - iServer(aServer) + m_watcher(NULL) { iServer.IncreaseSessions(); } @@ -555,25 +555,16 @@ void CDatabaseManagerServerSession::initDbPath() { - QSettings::Scope settingsScope = QSettings::SystemScope;; QString dbIdentifier = "_system"; ServiceDatabase *db = iDb; - QSettings settings(QSettings::IniFormat, settingsScope, - QLatin1String("Nokia"), QLatin1String("QtServiceFramework")); - QFileInfo fi(settings.fileName()); #ifdef __WINS__ // In emulator use commmon place for service database - // instead of server's private directory (server is in thread, so each - // application gets its own private directory) - QDir dir; - QString serviceDbPath = QDir::toNativeSeparators("C:/Data/temp/QtServiceFW"); - dir.mkpath(serviceDbPath); - if (!dir.cd(serviceDbPath)) { - qWarning() << "Fatal error: could not create needed path for serviceDatabase: " << serviceDbPath; - User::Panic(_L("PLAT (emulator)"), 0); - } + // instead of server's private directory (on emulator server is in thread so it + // doesn't get its own private directory). + QDir dir(QDir::toNativeSeparators("C:\\Data\\temp\\QtServiceFW")); #else - QDir dir = fi.dir(); + // On hardware, use this DB server's private directory (C:/Private/) + QDir dir(QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + "\\Nokia")); #endif QString qtVersion(qVersion()); qtVersion = qtVersion.left(qtVersion.size() -2); //strip off patch version diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo.cpp --- a/qtmobility/src/systeminfo/qsysteminfo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo.cpp Mon May 03 13:18:40 2010 +0300 @@ -362,7 +362,6 @@ Q_GLOBAL_STATIC(QSystemDisplayInfoPrivate, displayInfoPrivate) Q_GLOBAL_STATIC(QSystemStorageInfoPrivate, storageInfoPrivate) Q_GLOBAL_STATIC(QSystemDeviceInfoPrivate, deviceInfoPrivate) -Q_GLOBAL_STATIC(QSystemScreenSaverPrivate, screenSaverPrivate) /*! \fn QSystemInfo::QSystemInfo(QObject *parent) @@ -478,7 +477,6 @@ */ QSystemNetworkInfo::NetworkStatus QSystemNetworkInfo::networkStatus(QSystemNetworkInfo::NetworkMode mode) { - qWarning() << __FUNCTION__; return netInfoPrivate()->networkStatus(mode); } @@ -583,6 +581,52 @@ { return netInfoPrivate()->interfaceForMode(mode); } +/*! + Returns the current active mode. If more than one mode is active, returns the + default or preferred mode. If no modes are active, returns UnknownMode. + */ +QSystemNetworkInfo::NetworkMode QSystemNetworkInfo::currentMode() +{ + return netInfoPrivate()->currentMode(); +} + +/*! + \internal + + This function is called when the client connects to the networkSignalStrengthChanged() + signal. +*/ +void QSystemNetworkInfo::connectNotify(const char *signal) +{ + //check for networkSignalStrengthChanged() signal connect notification + //This is not required on all platforms +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + if (QLatin1String(signal) == QLatin1String(QMetaObject::normalizedSignature(SIGNAL( + networkSignalStrengthChanged(QSystemNetworkInfo::NetworkMode, int))))) { + netInfoPrivate()->setWlanSignalStrengthCheckEnabled(true); + } +#endif +} + +/*! + \internal + + This function is called when the client disconnects from the networkSignalStrengthChanged() + signal. + + \sa connectNotify() +*/ +void QSystemNetworkInfo::disconnectNotify(const char *signal) +{ + //check for networkSignalStrengthChanged() signal disconnect notification + //This is not required on all platforms +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + if (QLatin1String(signal) == QLatin1String(QMetaObject::normalizedSignature(SIGNAL( + networkSignalStrengthChanged(QSystemNetworkInfo::NetworkMode, int))))) { + netInfoPrivate()->setWlanSignalStrengthCheckEnabled(false); + } +#endif +} // display /*! @@ -863,8 +907,13 @@ */ QSystemScreenSaver::QSystemScreenSaver(QObject *parent) - : QObject(parent), d(screenSaverPrivate()) + : QObject(parent) { +#ifdef Q_OS_LINUX + d = new QSystemScreenSaverPrivate(static_cast(parent)); +#else + d = new QSystemScreenSaverPrivate(parent); +#endif screenSaverIsInhibited = screenSaverInhibited(); } @@ -873,7 +922,6 @@ */ QSystemScreenSaver::~QSystemScreenSaver() { - qWarning() << Q_FUNC_INFO; delete d; } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo.h --- a/qtmobility/src/systeminfo/qsysteminfo.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo.h Mon May 03 13:18:40 2010 +0300 @@ -120,6 +120,7 @@ Q_PROPERTY(QString currentMobileNetworkCode READ currentMobileNetworkCode NOTIFY currentMobileNetworkCodeChanged) Q_PROPERTY(QString homeMobileCountryCode READ homeMobileCountryCode CONSTANT) Q_PROPERTY(QString homeMobileNetworkCode READ homeMobileNetworkCode CONSTANT) + Q_PROPERTY(QSystemNetworkInfo::NetworkMode currentMode READ currentMode) public: @@ -154,6 +155,7 @@ Q_INVOKABLE QSystemNetworkInfo::NetworkStatus networkStatus(QSystemNetworkInfo::NetworkMode mode); Q_INVOKABLE static int networkSignalStrength(QSystemNetworkInfo::NetworkMode mode); QString macAddress(QSystemNetworkInfo::NetworkMode mode); + QSystemNetworkInfo::NetworkMode currentMode(); int cellId(); int locationAreaCode(); @@ -173,6 +175,11 @@ void currentMobileNetworkCodeChanged(const QString &); void networkNameChanged(QSystemNetworkInfo::NetworkMode,const QString &); void networkModeChanged(QSystemNetworkInfo::NetworkMode); + +protected: + virtual void connectNotify(const char *signal); + virtual void disconnectNotify(const char *signal); + private: QSystemNetworkInfoPrivate *d; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_linux.cpp --- a/qtmobility/src/systeminfo/qsysteminfo_linux.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_linux.cpp Mon May 03 13:18:40 2010 +0300 @@ -47,12 +47,12 @@ #include #include #include -#include #include #include #include #include #include +#include #ifndef QT_NO_NETWORKMANAGER #include @@ -92,8 +92,8 @@ if(transDir.exists()) { QStringList localeList = transDir.entryList( QStringList() << QLatin1String("qt_*.qm") ,QDir::Files | QDir::NoDotAndDotDot, QDir::Name); - foreach(QString localeName, localeList) { - QString lang = localeName.mid(3,2); + foreach(const QString localeName, localeList) { + const QString lang = localeName.mid(3,2); if(!langList.contains(lang) && !lang.isEmpty() && !lang.contains(QLatin1String("help"))) { langList <getDevices()) { + foreach(const QDBusObjectPath path, iface->getDevices()) { QNetworkManagerInterfaceDevice *devIface = new QNetworkManagerInterfaceDevice(path.path(), this); switch(devIface->deviceType()) { @@ -221,29 +220,9 @@ return isDefault; } -void QSystemNetworkInfoPrivate::getPrimaryMode() +void QSystemNetworkInfoPrivate::primaryModeChanged() { - // try to see if there are any default route - bool anyDefaultRoute = false; - - QMapIterator i(activePaths); - QString devicepath; - while (i.hasNext()) { - i.next(); - QScopedPointer activeCon; - activeCon.reset(new QNetworkManagerConnectionActive(i.key(), this)); - - if(activeCon->defaultRoute()) { - anyDefaultRoute = activeCon->defaultRoute(); - QNetworkManagerInterfaceDevice *devIface = new QNetworkManagerInterfaceDevice(i.value(), this); - emit networkModeChanged(deviceTypeToMode(devIface->deviceType())); - } - devicepath = i.value(); - } - - if(!anyDefaultRoute) { - emit networkModeChanged(QSystemNetworkInfo::UnknownMode); - } + emit networkModeChanged(currentMode()); } @@ -305,10 +284,7 @@ QScopedPointer settingsConIface; settingsConIface.reset(new QNetworkManagerSettingsConnection(activeCon->serviceName(),activeCon->connection().path(), this)); if(settingsConIface->isValid()) { - qWarning() << settingsConIface->getId(); return settingsConIface->getId(); - } else { - //qWarning() << "not valid"; } } } @@ -321,15 +297,14 @@ QScopedPointer dbIface; dbIface.reset(new QNetworkManagerInterface(this)); - QList connections = dbIface->activeConnections(); + const QList connections = dbIface->activeConnections(); - foreach(QDBusObjectPath activeconpath, connections) { - + foreach(const QDBusObjectPath activeconpath, connections) { QScopedPointer activeCon; activeCon.reset(new QNetworkManagerConnectionActive(activeconpath.path(), this)); - QList devices = activeCon->devices(); - foreach(QDBusObjectPath device, devices) { + const QList devices = activeCon->devices(); + foreach(const QDBusObjectPath device, devices) { activePaths.insert(activeconpath.path(),device.path()); } } @@ -384,7 +359,6 @@ accessPointIface->setConnections(); if(!connect(accessPointIface, SIGNAL(propertiesChanged(const QString &,QMap)), this,SLOT(nmAPPropertiesChanged( const QString &, QMap)))) { - // qWarning() << "connect is false"; } } @@ -401,7 +375,7 @@ } if( i.key() == QLatin1String("Ip4Config")) { // || i.key() == "Ip46Config") { - getPrimaryMode(); + primaryModeChanged(); } } } @@ -442,10 +416,10 @@ case QSystemNetworkInfo::WlanMode: { QString result; - QString baseSysDir = QLatin1String("/sys/class/net/"); - QDir wDir(baseSysDir); - QStringList dirs = wDir.entryList(QStringList() << QLatin1String("*"), QDir::AllDirs | QDir::NoDotAndDotDot); - foreach(QString dir, dirs) { + const QString baseSysDir = QLatin1String("/sys/class/net/"); + const QDir wDir(baseSysDir); + const QStringList dirs = wDir.entryList(QStringList() << QLatin1String("*"), QDir::AllDirs | QDir::NoDotAndDotDot); + foreach(const QString dir, dirs) { QString devFile = baseSysDir + dir; QFileInfo fi(devFile + QLatin1String("/wireless/link")); if(fi.exists()) { @@ -464,10 +438,10 @@ case QSystemNetworkInfo::EthernetMode: { QString result; - QString baseSysDir = QLatin1String("/sys/class/net/"); - QDir eDir(baseSysDir); - QStringList dirs = eDir.entryList(QStringList() << QLatin1String("eth*"), QDir::AllDirs | QDir::NoDotAndDotDot); - foreach(QString dir, dirs) { + const QString baseSysDir = QLatin1String("/sys/class/net/"); + const QDir eDir(baseSysDir); + const QStringList dirs = eDir.entryList(QStringList() << QLatin1String("eth*"), QDir::AllDirs | QDir::NoDotAndDotDot); + foreach(const QString dir, dirs) { QString devFile = baseSysDir + dir; QFileInfo fi(devFile + QLatin1String("/carrier")); if(fi.exists()) { @@ -527,6 +501,32 @@ return QString(); } +QSystemNetworkInfo::NetworkMode QSystemNetworkInfoPrivate::currentMode() +{ + QSystemNetworkInfo::NetworkMode mode = QSystemNetworkInfo::UnknownMode; + +#if !defined(QT_NO_NETWORKMANAGER) + bool anyDefaultRoute = false; + + QMapIterator i(activePaths); + QString devicepath; + while (i.hasNext()) { + i.next(); + QScopedPointer activeCon; + activeCon.reset(new QNetworkManagerConnectionActive(i.key(), this)); + + if(activeCon->defaultRoute()) { + anyDefaultRoute = activeCon->defaultRoute(); + QNetworkManagerInterfaceDevice *devIface = new QNetworkManagerInterfaceDevice(i.value(), this); + return deviceTypeToMode(devIface->deviceType()); + } + devicepath = i.value(); + } +#endif + + return mode; +} + QSystemDisplayInfoPrivate::QSystemDisplayInfoPrivate(QSystemDisplayInfoLinuxCommonPrivate *parent) : QSystemDisplayInfoLinuxCommonPrivate(parent) { @@ -561,12 +561,12 @@ QString QSystemDeviceInfoPrivate::imei() { - return QLatin1String("Sim Not Available"); + return QLatin1String(""); } QString QSystemDeviceInfoPrivate::imsi() { - return QLatin1String("Sim Not Available"); + return QLatin1String(""); } QSystemDeviceInfo::SimStatus QSystemDeviceInfoPrivate::simStatus() @@ -587,7 +587,7 @@ } QSystemScreenSaverPrivate::QSystemScreenSaverPrivate(QSystemScreenSaverLinuxCommonPrivate *parent) - : QSystemScreenSaverLinuxCommonPrivate(parent) + : QSystemScreenSaverLinuxCommonPrivate(parent), currentPid(0) { kdeIsRunning = false; gnomeIsRunning = false; @@ -596,33 +596,52 @@ QSystemScreenSaverPrivate::~QSystemScreenSaverPrivate() { - } - - bool QSystemScreenSaverPrivate::setScreenSaverInhibit() - { - if(kdeIsRunning || gnomeIsRunning) { + if(currentPid != 0) { #if !defined(QT_NO_DBUS) - pid_t pid = getppid(); QDBusConnection dbusConnection = QDBusConnection::sessionBus(); QStringList ifaceList; ifaceList << QLatin1String("org.freedesktop.ScreenSaver"); ifaceList << QLatin1String("org.gnome.ScreenSaver"); QDBusInterface *connectionInterface; - foreach(QString iface, ifaceList) { + foreach(const QString iface, ifaceList) { connectionInterface = new QDBusInterface(QLatin1String(iface.toLatin1()), QLatin1String("/ScreenSaver"), QLatin1String(iface.toLatin1()), dbusConnection); - QDBusReply reply = connectionInterface->call(QLatin1String("Inhibit"), - QString::number((int)pid), - QLatin1String("QSystemScreenSaver")); - if(reply.isValid()) { - currentPid = reply.value(); - qWarning() << "Inhibit" << currentPid; - return reply.isValid(); - } else { - qWarning() << reply.error(); + if(connectionInterface->isValid()) { + QDBusReply reply = connectionInterface->call(QLatin1String("UnInhibit"), + currentPid); + } + } +#endif + } + } + + bool QSystemScreenSaverPrivate::setScreenSaverInhibit() + { + if(kdeIsRunning || gnomeIsRunning) { +#if !defined(QT_NO_DBUS) + const pid_t pid = getppid(); + QDBusConnection dbusConnection = QDBusConnection::sessionBus(); + + QStringList ifaceList; + ifaceList << QLatin1String("org.freedesktop.ScreenSaver"); + ifaceList << QLatin1String("org.gnome.ScreenSaver"); + QDBusInterface *connectionInterface; + foreach(const QString iface, ifaceList) { + connectionInterface = new QDBusInterface(QLatin1String(iface.toLatin1()), + QLatin1String("/ScreenSaver"), + QLatin1String(iface.toLatin1()), + dbusConnection); + if(connectionInterface->isValid()) { + QDBusReply reply = connectionInterface->call(QLatin1String("Inhibit"), + QString::number((int)pid), + QLatin1String("QSystemScreenSaver")); + if(reply.isValid()) { + currentPid = reply.value(); + return reply.isValid(); + } } } #endif @@ -643,23 +662,12 @@ bool QSystemScreenSaverPrivate::screenSaverInhibited() { - if(kdeIsRunning) { - QString kdeSSConfig; - if(QDir( QDir::homePath()+QLatin1String("/.kde4/")).exists()) { - kdeSSConfig = QDir::homePath()+QLatin1String("/.kde4/share/config/kscreensaverrc"); - } else if(QDir(QDir::homePath()+QLatin1String("/.kde/")).exists()) { - kdeSSConfig = QDir::homePath()+QLatin1String("/.kde/share/config/kscreensaverrc"); + if(kdeIsRunning || gnomeIsRunning) { + if(currentPid != 0) { + return true; + } else { + return false; } - QSettings kdeScreenSaveConfig(kdeSSConfig, QSettings::IniFormat); - kdeScreenSaveConfig.beginGroup(QLatin1String("ScreenSaver")); - if(kdeScreenSaveConfig.status() == QSettings::NoError) { - if(kdeScreenSaveConfig.value(QLatin1String("Enabled")).toBool() == false) { - } else { - return true; - } - } - } else if(gnomeIsRunning) { - } #ifdef Q_WS_X11 @@ -726,20 +734,20 @@ { if(kdeIsRunning || gnomeIsRunning) { #if !defined(QT_NO_DBUS) - pid_t pid = getppid(); + const pid_t pid = getppid(); QDBusConnection dbusConnection = QDBusConnection::sessionBus(); QStringList ifaceList; ifaceList << QLatin1String("org.freedesktop.ScreenSaver"); ifaceList << QLatin1String("org.gnome.ScreenSaver"); QDBusInterface *connectionInterface; - foreach(QString iface, ifaceList) { + foreach(const QString iface, ifaceList) { connectionInterface = new QDBusInterface(QLatin1String(iface.toLatin1()), QLatin1String("/ScreenSaver"), QLatin1String(iface.toLatin1()), dbusConnection); - QDBusReply reply = connectionInterface->call(QLatin1String("GetActive"), + const QDBusReply reply = connectionInterface->call(QLatin1String("GetActive"), QString::number((int)pid), QLatin1String("QSystemScreenSaver")); if(reply.isValid()) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_linux_common.cpp --- a/qtmobility/src/systeminfo/qsysteminfo_linux_common.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_linux_common.cpp Mon May 03 13:18:40 2010 +0300 @@ -167,13 +167,13 @@ switch (feature) { case QSystemInfo::BluetoothFeature : { - QString sysPath = "/sys/class/bluetooth/"; - QDir sysDir(sysPath); + const QString sysPath = "/sys/class/bluetooth/"; + const QDir sysDir(sysPath); QStringList filters; filters << "*"; - QStringList sysList = sysDir.entryList( filters ,QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); - foreach(QString dir, sysList) { - QFileInfo btFile(sysPath + dir+"/address"); + const QStringList sysList = sysDir.entryList( filters ,QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); + foreach(const QString dir, sysList) { + const QFileInfo btFile(sysPath + dir+"/address"); if(btFile.exists()) { return true; } @@ -192,14 +192,16 @@ break; case QSystemInfo::FmradioFeature : { - QString sysPath = "/sys/class/video4linux/"; - QDir sysDir(sysPath); + const QString sysPath = "/sys/class/video4linux/"; + const QDir sysDir(sysPath); QStringList filters; filters << "*"; QStringList sysList = sysDir.entryList( filters ,QDir::Dirs, QDir::Name); - if(sysList.contains("radio")) { - featureSupported = true; - } + foreach(const QString dir, sysList) { + if (dir.contains("radio")) { + featureSupported = true; + } + } } break; case QSystemInfo::IrFeature : @@ -223,8 +225,8 @@ QHalInterface iface; if (iface.isValid()) { QHalInterface halIface; - QStringList halDevices = halIface.getAllDevices(); - foreach(QString device, halDevices) { + const QStringList halDevices = halIface.getAllDevices(); + foreach(const QString device, halDevices) { QHalDeviceInterface ifaceDevice(device); if (ifaceDevice.isValid()) { if(ifaceDevice.getPropertyString("info.subsystem") == "mmc_host") { @@ -261,7 +263,7 @@ #if !defined(QT_NO_DBUS) QHalInterface iface; if (iface.isValid()) { - QStringList list = iface.findDeviceByCapability("net.80211"); + const QStringList list = iface.findDeviceByCapability("net.80211"); if(!list.isEmpty()) { featureSupported = true; break; @@ -283,11 +285,11 @@ break; case QSystemInfo::VideoOutFeature : { - QString sysPath = "/sys/class/video4linux/"; - QDir sysDir(sysPath); + const QString sysPath = "/sys/class/video4linux/"; + const QDir sysDir(sysPath); QStringList filters; filters << "*"; - QStringList sysList = sysDir.entryList( filters ,QDir::Dirs, QDir::Name); + const QStringList sysList = sysDir.entryList( filters ,QDir::Dirs, QDir::Name); if(sysList.contains("video")) { featureSupported = true; } @@ -306,8 +308,8 @@ bool QSystemInfoLinuxCommonPrivate::hasHalDeviceFeature(const QString ¶m) { QHalInterface halIface; - QStringList halDevices = halIface.getAllDevices(); - foreach(QString device, halDevices) { + const QStringList halDevices = halIface.getAllDevices(); + foreach(const QString device, halDevices) { if(device.contains(param)) { return true; } @@ -318,8 +320,8 @@ bool QSystemInfoLinuxCommonPrivate::hasHalUsbFeature(qint32 usbClass) { QHalInterface halIface; - QStringList halDevices = halIface.getAllDevices(); - foreach(QString device, halDevices) { + const QStringList halDevices = halIface.getAllDevices(); + foreach(const QString device, halDevices) { QHalDeviceInterface ifaceDevice(device); if (ifaceDevice.isValid()) { if(ifaceDevice.getPropertyString("info.subsystem") == "usb_device") { @@ -352,7 +354,7 @@ } } #endif - QString versionPath = QLatin1String("/proc/version"); + const QString versionPath = QLatin1String("/proc/version"); QFile versionFile(versionPath); if(!versionFile.open(QIODevice::ReadOnly | QIODevice::Text)) { qWarning() << "File not opened"; @@ -381,15 +383,15 @@ bool QSystemInfoLinuxCommonPrivate::hasSysFeature(const QString &featureStr) { - QString sysPath = QLatin1String("/sys/class/"); - QDir sysDir(sysPath); + const QString sysPath = QLatin1String("/sys/class/"); + const QDir sysDir(sysPath); QStringList filters; filters << QLatin1String("*"); - QStringList sysList = sysDir.entryList( filters ,QDir::Dirs, QDir::Name); - foreach(QString dir, sysList) { - QDir sysDir2(sysPath + dir); + const QStringList sysList = sysDir.entryList( filters ,QDir::Dirs, QDir::Name); + foreach(const QString dir, sysList) { + const QDir sysDir2(sysPath + dir); if(dir.contains(featureStr)) { - QStringList sysList2 = sysDir2.entryList( filters ,QDir::Dirs, QDir::Name); + const QStringList sysList2 = sysDir2.entryList( filters ,QDir::Dirs, QDir::Name); if(!sysList2.isEmpty()) { return true; } @@ -400,77 +402,27 @@ QSystemNetworkInfoLinuxCommonPrivate::QSystemNetworkInfoLinuxCommonPrivate(QObject *parent) : QObject(parent) { - // QTimer::singleShot(200, this,SLOT(getPrimaryMode())); } QSystemNetworkInfoLinuxCommonPrivate::~QSystemNetworkInfoLinuxCommonPrivate() { } - -//void QSystemNetworkInfoLinuxCommonPrivate::getPrimaryMode() -//{ -// // try to see if there are any default route -//// bool anyDefaultRoute = false; -// -// QFileInfo fi("/proc/net/route"); -// if(fi.exists()) { -// QFile rx(fi.absoluteFilePath()); -// if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { -// QString result; -// QTextStream out(&rx); -// do { -// result = out.readLine().simplified(); -// if(!result.isEmpty()) { -// QStringList tokens = result.split(" "); -// -// if(tokens.at(2).toLocal8Bit() != "Gateway" -// && tokens.at(2).toLocal8Bit() != "00000000") { -// -// qWarning() <<"found default!" << tokens.at(0); -// // emit networkModeChanged(tokens.at(0))); -// } -// } -// } while (!result.isNull()); -// } -// } -// // QMapIterator i(activePaths); -//// QString devicepath; -//// while (i.hasNext()) { -//// i.next(); -//// QScopedPointer activeCon; -//// activeCon.reset(new QNetworkManagerConnectionActive(i.key())); -//// -//// if(activeCon->defaultRoute()) { -//// anyDefaultRoute = activeCon->defaultRoute(); -//// QNetworkManagerInterfaceDevice *devIface = new QNetworkManagerInterfaceDevice(i.value()); -//// emit networkModeChanged(deviceTypeToMode(devIface->deviceType())); -//// } -//// devicepath = i.value(); -//// } -//// -//// if(!anyDefaultRoute) { -//// emit networkModeChanged(QSystemNetworkInfo::UnknownMode); -//// } -//} - QSystemNetworkInfo::NetworkStatus QSystemNetworkInfoLinuxCommonPrivate::networkStatus(QSystemNetworkInfo::NetworkMode mode) { switch(mode) { case QSystemNetworkInfo::WlanMode: { - qWarning() << __PRETTY_FUNCTION__ << "WLAN"; - - QString baseSysDir = "/sys/class/net/"; - QDir wDir(baseSysDir); - QStringList dirs = wDir.entryList(QStringList() << "*", QDir::AllDirs | QDir::NoDotAndDotDot); - foreach(QString dir, dirs) { - QString devFile = baseSysDir + dir; - QFileInfo wiFi(devFile + "/wireless"); - QFileInfo fi("/proc/net/route"); + const QString baseSysDir = "/sys/class/net/"; + const QDir wDir(baseSysDir); + const QStringList dirs = wDir.entryList(QStringList() << "*", QDir::AllDirs | QDir::NoDotAndDotDot); + foreach(const QString dir, dirs) { + const QString devFile = baseSysDir + dir; + const QFileInfo wiFi(devFile + "/wireless"); + const QFileInfo fi("/proc/net/route"); if(wiFi.exists() && fi.exists()) { QFile rx(fi.absoluteFilePath()); if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { - QString result = rx.readAll(); + const QString result = rx.readAll(); if(result.contains(dir)) { return QSystemNetworkInfo::Connected; } else { @@ -483,18 +435,16 @@ break; case QSystemNetworkInfo::EthernetMode: { - qWarning() << __PRETTY_FUNCTION__ << "Ethernet"; - QString baseSysDir = "/sys/class/net/"; - QDir eDir(baseSysDir); - QString dir = QSystemNetworkInfoLinuxCommonPrivate::interfaceForMode(mode).name(); + const QString baseSysDir = "/sys/class/net/"; + const QDir eDir(baseSysDir); + const QString dir = QSystemNetworkInfoLinuxCommonPrivate::interfaceForMode(mode).name(); - QString devFile = baseSysDir + dir; - qWarning() << devFile; - QFileInfo fi("/proc/net/route"); + const QString devFile = baseSysDir + dir; + const QFileInfo fi("/proc/net/route"); if(fi.exists()) { QFile rx(fi.absoluteFilePath()); if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { - QString result = rx.readAll(); + const QString result = rx.readAll(); if(result.contains(dir)) { return QSystemNetworkInfo::Connected; } else { @@ -523,20 +473,18 @@ case QSystemNetworkInfo::WlanMode: { if(networkStatus(mode) != QSystemNetworkInfo::Connected) { - qWarning() << "not connected"; return netname; } QString wlanInterface; - QString baseSysDir = "/sys/class/net/"; - QDir wDir(baseSysDir); - QStringList dirs = wDir.entryList(QStringList() << "*", QDir::AllDirs | QDir::NoDotAndDotDot); - foreach(QString dir, dirs) { - QString devFile = baseSysDir + dir; - QFileInfo fi(devFile + "/wireless"); + const QString baseSysDir = "/sys/class/net/"; + const QDir wDir(baseSysDir); + const QStringList dirs = wDir.entryList(QStringList() << "*", QDir::AllDirs | QDir::NoDotAndDotDot); + foreach(const QString dir, dirs) { + const QString devFile = baseSysDir + dir; + const QFileInfo fi(devFile + "/wireless"); if(fi.exists()) { wlanInterface = dir; - qWarning() << "interface is" << wlanInterface; } } int sock = socket(PF_INET, SOCK_DGRAM, 0); @@ -601,12 +549,12 @@ case QSystemNetworkInfo::WlanMode: { QString result; - QString baseSysDir = "/sys/class/net/"; - QDir wDir(baseSysDir); - QStringList dirs = wDir.entryList(QStringList() << "*", QDir::AllDirs | QDir::NoDotAndDotDot); - foreach(QString dir, dirs) { - QString devFile = baseSysDir + dir; - QFileInfo fi(devFile + "/wireless"); + const QString baseSysDir = "/sys/class/net/"; + const QDir wDir(baseSysDir); + const QStringList dirs = wDir.entryList(QStringList() << "*", QDir::AllDirs | QDir::NoDotAndDotDot); + foreach(const QString dir, dirs) { + const QString devFile = baseSysDir + dir; + const QFileInfo fi(devFile + "/wireless"); if(fi.exists()) { QFile rx(devFile + "/address"); if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { @@ -622,12 +570,12 @@ case QSystemNetworkInfo::EthernetMode: { QString result; - QString baseSysDir = "/sys/class/net/"; - QDir eDir(baseSysDir); - QStringList dirs = eDir.entryList(QStringList() << "eth*", QDir::AllDirs | QDir::NoDotAndDotDot); - foreach(QString dir, dirs) { - QString devFile = baseSysDir + dir; - QFileInfo fi(devFile + "/address"); + const QString baseSysDir = "/sys/class/net/"; + const QDir eDir(baseSysDir); + const QStringList dirs = eDir.entryList(QStringList() << "eth*", QDir::AllDirs | QDir::NoDotAndDotDot); + foreach(const QString dir, dirs) { + const QString devFile = baseSysDir + dir; + const QFileInfo fi(devFile + "/address"); if(fi.exists()) { QFile rx(fi.absoluteFilePath()); if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { @@ -671,10 +619,7 @@ qWarning() << "Cannot get bnep connection list."; return QSystemNetworkInfo::UndefinedStatus; } - - qWarning() << req.cnum; for (uint j = 0; j< req.cnum; j++) { - qWarning() << info[j].state; if(info[j].state == BT_CONNECTED) { return QSystemNetworkInfo::Connected; } @@ -690,12 +635,12 @@ case QSystemNetworkInfo::WlanMode: { QString result; - QString baseSysDir = "/sys/class/net/"; - QDir wDir(baseSysDir); - QStringList dirs = wDir.entryList(QStringList() << "*", QDir::AllDirs | QDir::NoDotAndDotDot); - foreach(QString dir, dirs) { - QString devFile = baseSysDir + dir; - QFileInfo fi(devFile + "/wireless/link"); + const QString baseSysDir = "/sys/class/net/"; + const QDir wDir(baseSysDir); + const QStringList dirs = wDir.entryList(QStringList() << "*", QDir::AllDirs | QDir::NoDotAndDotDot); + foreach(const QString dir, dirs) { + const QString devFile = baseSysDir + dir; + const QFileInfo fi(devFile + "/wireless/link"); if(fi.exists()) { QFile rx(fi.absoluteFilePath()); if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { @@ -712,12 +657,12 @@ case QSystemNetworkInfo::EthernetMode: { QString result; - QString baseSysDir = "/sys/class/net/"; - QDir eDir(baseSysDir); - QStringList dirs = eDir.entryList(QStringList() << "eth*", QDir::AllDirs | QDir::NoDotAndDotDot); - foreach(QString dir, dirs) { - QString devFile = baseSysDir + dir; - QFileInfo fi(devFile + "/carrier"); + const QString baseSysDir = "/sys/class/net/"; + const QDir eDir(baseSysDir); + const QStringList dirs = eDir.entryList(QStringList() << "eth*", QDir::AllDirs | QDir::NoDotAndDotDot); + foreach(const QString dir, dirs) { + const QString devFile = baseSysDir + dir; + const QFileInfo fi(devFile + "/carrier"); if(fi.exists()) { QFile rx(fi.absoluteFilePath()); if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { @@ -753,14 +698,13 @@ { QHalInterface iface; if (iface.isValid()) { - QStringList list = iface.findDeviceByCapability("net.80211"); + const QStringList list = iface.findDeviceByCapability("net.80211"); if(!list.isEmpty()) { - foreach(QString netDev, list) { - QString deviceName ; + foreach(const QString netDev, list) { QHalDeviceInterface ifaceDevice(netDev); - deviceName = ifaceDevice.getPropertyString("net.interface"); + const QString deviceName = ifaceDevice.getPropertyString("net.interface"); if(list.count() > 1) { - QString baseFIle = "/sys/class/net/" + deviceName+"/operstate"; + const QString baseFIle = "/sys/class/net/" + deviceName+"/operstate"; QFile rx(baseFIle); if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { QString operatingState; @@ -785,14 +729,13 @@ { QHalInterface iface; if (iface.isValid()) { - QStringList list = iface.findDeviceByCapability("net.80203"); + const QStringList list = iface.findDeviceByCapability("net.80203"); if(!list.isEmpty()) { - foreach(QString netDev, list) { - QString deviceName ; + foreach(const QString netDev, list) { QHalDeviceInterface ifaceDevice(netDev); - deviceName = ifaceDevice.getPropertyString("net.interface"); + const QString deviceName = ifaceDevice.getPropertyString("net.interface"); if(list.count() > 1) { - QString baseFIle = "/sys/class/net/" + deviceName+"/operstate"; + const QString baseFIle = "/sys/class/net/" + deviceName+"/operstate"; QFile rx(baseFIle); if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { QString operatingState; @@ -822,16 +765,16 @@ }; #else QString result; - QString baseSysDir = "/sys/class/net/"; - QDir eDir(baseSysDir); - QStringList dirs = eDir.entryList(QStringList() << "*", QDir::AllDirs | QDir::NoDotAndDotDot); - foreach(QString dir, dirs) { - QString devFile = baseSysDir + dir; - QFileInfo devfi(devFile + "/device"); + const QString baseSysDir = "/sys/class/net/"; + const QDir eDir(baseSysDir); + const QStringList dirs = eDir.entryList(QStringList() << "*", QDir::AllDirs | QDir::NoDotAndDotDot); + foreach(const QString dir, dirs) { + const QString devFile = baseSysDir + dir; + const QFileInfo devfi(devFile + "/device"); if(!devfi.exists()) { continue; } - QString baseFIle = "/sys/class/net/" + devFile+"/operstate"; + const QString baseFIle = "/sys/class/net/" + devFile+"/operstate"; QFile rx(baseFIle); if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { QString operatingState; @@ -845,15 +788,15 @@ switch(mode) { case QSystemNetworkInfo::WlanMode: { - QFileInfo fi(devFile + "/wireless"); + const QFileInfo fi(devFile + "/wireless"); if(fi.exists()) { return QNetworkInterface::interfaceFromName(dir); } } break; case QSystemNetworkInfo::EthernetMode: - { - QFileInfo fi(devFile + "/wireless"); + { + const QFileInfo fi(devFile + "/wireless"); if(!fi.exists()) { return QNetworkInterface::interfaceFromName(dir); } @@ -882,7 +825,7 @@ QTextStream rin(&routeFilex); QString line = rin.readLine(); while (!line.isNull()) { - QString lineSection = line.section("\t",2,2,QString::SectionSkipEmpty); + const QString lineSection = line.section("\t",2,2,QString::SectionSkipEmpty); if(lineSection != "00000000" && lineSection!="Gateway") if(line.section("\t",0,0,QString::SectionSkipEmpty) == deviceName) { routeFilex.close(); @@ -902,12 +845,12 @@ QString QSystemNetworkInfoLinuxCommonPrivate::getBluetoothInfo(const QString &file) { - QString sysPath = "/sys/class/bluetooth/"; - QDir sysDir(sysPath); + const QString sysPath = "/sys/class/bluetooth/"; + const QDir sysDir(sysPath); QStringList filters; filters << "*"; - QStringList sysList = sysDir.entryList( filters ,QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); - foreach(QString dir, sysList) { + const QStringList sysList = sysDir.entryList( filters ,QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); + foreach(const QString dir, sysList) { QFile btFile(sysPath + dir+"/"+file); if(btFile.exists()) { if (btFile.open(QIODevice::ReadOnly)) { @@ -948,36 +891,35 @@ #if !defined(QT_NO_DBUS) QHalInterface iface; if (iface.isValid()) { - QStringList list = iface.findDeviceByCapability("laptop_panel"); + const QStringList list = iface.findDeviceByCapability("laptop_panel"); if(!list.isEmpty()) { - foreach(QString lapDev, list) { + foreach(const QString lapDev, list) { QHalDeviceInterface ifaceDevice(lapDev); QHalDeviceLaptopPanelInterface lapIface(lapDev); - float numLevels = ifaceDevice.getPropertyInt("laptop_panel.num_levels") - 1; - float curLevel = lapIface.getBrightness(); + const float numLevels = ifaceDevice.getPropertyInt("laptop_panel.num_levels") - 1; + const float curLevel = lapIface.getBrightness(); return curLevel / numLevels * 100; } } } #endif } else { - QString backlightPath = "/proc/acpi/video/"; - QDir videoDir(backlightPath); + const QString backlightPath = "/proc/acpi/video/"; + const QDir videoDir(backlightPath); QStringList filters; filters << "*"; - QStringList brightnessList = videoDir.entryList(filters, + const QStringList brightnessList = videoDir.entryList(filters, QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); - foreach(QString brightnessFileName, brightnessList) { + foreach(const QString brightnessFileName, brightnessList) { float numLevels = 0.0; float curLevel = 0.0; QFile curBrightnessFile(backlightPath+brightnessFileName+"/LCD/brightness"); if(!curBrightnessFile.open(QIODevice::ReadOnly | QIODevice::Text)) { qWarning()<<"File not opened"; } else { - QString strvalue; - strvalue = curBrightnessFile.readAll().trimmed(); + const QString strvalue = curBrightnessFile.readAll().trimmed(); if(strvalue.contains("levels")) { QStringList list = strvalue.split(" "); numLevels = list.at(2).toFloat(); @@ -1061,8 +1003,8 @@ mountEntries(); struct statfs fs; if(statfs(mountEntriesMap[driveVolume].toLatin1(), &fs ) == 0 ) { - long blockSize = fs.f_bsize; - long totalBlocks = fs.f_blocks; + const long blockSize = fs.f_bsize; + const long totalBlocks = fs.f_blocks; return (double)totalBlocks * blockSize; } return 0; @@ -1074,9 +1016,9 @@ #if !defined(QT_NO_DBUS) QStringList mountedVol; QHalInterface iface; - QStringList list = iface.findDeviceByCapability("volume"); + const QStringList list = iface.findDeviceByCapability("volume"); if(!list.isEmpty()) { - foreach(QString vol, list) { + foreach(const QString vol, list) { QHalDeviceInterface ifaceDevice(vol); if(driveVolume == ifaceDevice.getPropertyString("block.device")) { QHalDeviceInterface ifaceDeviceParent(ifaceDevice.getPropertyString("info.parent"), this); @@ -1205,10 +1147,10 @@ QStringList list = iface.findDeviceByCapability("battery"); if(!list.isEmpty()) { - foreach(QString dev, list) { + foreach(const QString dev, list) { halIfaceDevice = new QHalDeviceInterface(dev); if (halIfaceDevice->isValid()) { - QString batType = halIfaceDevice->getPropertyString("battery.type"); + const QString batType = halIfaceDevice->getPropertyString("battery.type"); if(batType == "primary" || batType == "pda") { if(halIfaceDevice->setConnections() ) { if(!connect(halIfaceDevice,SIGNAL(propertyModified(int, QVariantList)), @@ -1224,7 +1166,7 @@ list = iface.findDeviceByCapability("ac_adapter"); if(!list.isEmpty()) { - foreach(QString dev, list) { + foreach(const QString dev, list) { halIfaceDevice = new QHalDeviceInterface(dev); if (halIfaceDevice->isValid()) { if(halIfaceDevice->setConnections() ) { @@ -1240,7 +1182,7 @@ list = iface.findDeviceByCapability("battery"); if(!list.isEmpty()) { - foreach(QString dev, list) { + foreach(const QString dev, list) { halIfaceDevice = new QHalDeviceInterface(dev); if (halIfaceDevice->isValid()) { if(halIfaceDevice->setConnections()) { @@ -1263,9 +1205,8 @@ void QSystemDeviceInfoLinuxCommonPrivate::halChanged(int,QVariantList map) { for(int i=0; i < map.count(); i++) { -// qWarning() << __FUNCTION__ << map.at(i).toString(); if(map.at(i).toString() == "battery.charge_level.percentage") { - int level = batteryLevel(); + const int level = batteryLevel(); emit batteryLevelChanged(level); if(level < 4) { emit batteryStatusChanged(QSystemDeviceInfo::BatteryCritical); @@ -1378,14 +1319,14 @@ } #endif } - QDir dir("/etc"); + const QDir dir("/etc"); if(dir.exists()) { QStringList langList; QFileInfoList localeList = dir.entryInfoList(QStringList() << "*release", QDir::Files | QDir::NoDotAndDotDot, QDir::Name); - foreach(QFileInfo fileInfo, localeList) { - QString filepath = fileInfo.filePath(); + foreach(const QFileInfo fileInfo, localeList) { + const QString filepath = fileInfo.filePath(); QFile file(filepath); if (file.open(QIODevice::ReadOnly)) { QTextStream prodinfo(&file); @@ -1433,7 +1374,12 @@ QHalInterface iface2; if (iface2.isValid()) { QStringList capList; - capList << "input.keyboard" << "input.keys" << "input.keypad" << "input.mouse" << "input.tablet"; + capList << QLatin1String("input.keyboard") + << QLatin1String("input.keys") + << QLatin1String("input.keypad") + << QLatin1String("input.mouse") + << QLatin1String("input.tablet") + << QLatin1String("input.touchpad"); for(int i = 0; i < capList.count(); i++) { QStringList list = iface2.findDeviceByCapability(capList.at(i)); if(!list.isEmpty()) { @@ -1453,7 +1399,10 @@ case 4: methods = (methods | QSystemDeviceInfo::SingleTouch); break; - }; + case 5: + methods = (methods | QSystemDeviceInfo::SingleTouch); + break; + } } } if(methods != 0) @@ -1461,12 +1410,12 @@ } #endif } - QString inputsPath = "/sys/class/input/"; - QDir inputDir(inputsPath); + const QString inputsPath = "/sys/class/input/"; + const QDir inputDir(inputsPath); QStringList filters; filters << "event*"; - QStringList inputList = inputDir.entryList( filters ,QDir::Dirs, QDir::Name); - foreach(QString inputFileName, inputList) { + const QStringList inputList = inputDir.entryList( filters ,QDir::Dirs, QDir::Name); + foreach(const QString inputFileName, inputList) { QFile file(inputsPath+inputFileName+"/device/name"); if(!file.open(QIODevice::ReadOnly | QIODevice::Text)) { qWarning()<<"File not opened"; @@ -1507,9 +1456,9 @@ if(halIsAvailable) { #if !defined(QT_NO_DBUS) QHalInterface iface; - QStringList list = iface.findDeviceByCapability("battery"); + const QStringList list = iface.findDeviceByCapability("battery"); if(!list.isEmpty()) { - foreach(QString dev, list) { + foreach(const QString dev, list) { QHalDeviceInterface ifaceDevice(dev); if (ifaceDevice.isValid()) { // qWarning() << ifaceDevice.getPropertyString("battery.type") @@ -1538,7 +1487,7 @@ while (!line.isNull()) { if(line.contains("design capacity")) { levelWhenFull = line.split(" ").at(1).trimmed().toFloat(); - qWarning() << levelWhenFull; + //qWarning() << levelWhenFull; infofile.close(); break; } @@ -1557,7 +1506,7 @@ while (!line.isNull()) { if(line.contains("remaining capacity")) { level = line.split(" ").at(1).trimmed().toFloat(); - qWarning() << level; + //qWarning() << level; statefile.close(); break; } @@ -1578,7 +1527,7 @@ QHalInterface iface; QStringList list = iface.findDeviceByCapability("battery"); if(!list.isEmpty()) { - foreach(QString dev, list) { + foreach(const QString dev, list) { QHalDeviceInterface ifaceDevice(dev); if (iface.isValid()) { if (ifaceDevice.getPropertyBool("battery.rechargeable.is_charging")) { @@ -1590,7 +1539,7 @@ list = iface.findDeviceByCapability("ac_adapter"); if(!list.isEmpty()) { - foreach(QString dev, list) { + foreach(const QString dev, list) { QHalDeviceInterface ifaceDevice(dev); if (ifaceDevice.isValid()) { if(ifaceDevice.getPropertyBool("ac_adapter.present")) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_linux_common_p.h --- a/qtmobility/src/systeminfo/qsysteminfo_linux_common_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_linux_common_p.h Mon May 03 13:18:40 2010 +0300 @@ -137,6 +137,7 @@ virtual QString macAddress(QSystemNetworkInfo::NetworkMode mode); virtual QNetworkInterface interfaceForMode(QSystemNetworkInfo::NetworkMode mode); + // virtual QSystemNetworkInfo::NetworkMode currentMode(); //public Q_SLOTS: // void getPrimaryMode(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_linux_p.h --- a/qtmobility/src/systeminfo/qsysteminfo_linux_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_linux_p.h Mon May 03 13:18:40 2010 +0300 @@ -115,10 +115,11 @@ QString homeMobileCountryCode(); QString homeMobileNetworkCode(); + QSystemNetworkInfo::NetworkMode currentMode(); public Q_SLOTS: #if !defined(QT_NO_NETWORKMANAGER) - void getPrimaryMode(); + void primaryModeChanged(); #endif private: @@ -138,6 +139,7 @@ QString getNmNetName(QSystemNetworkInfo::NetworkMode mode); inline QSystemNetworkInfo::NetworkMode deviceTypeToMode(quint32 type); + #endif QString getSysNetName(QSystemNetworkInfo::NetworkMode mode); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_mac.mm --- a/qtmobility/src/systeminfo/qsysteminfo_mac.mm Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_mac.mm Mon May 03 13:18:40 2010 +0300 @@ -58,6 +58,7 @@ #include #include #include +#include #include @@ -72,6 +73,7 @@ #include #include #include +#include #include @@ -90,6 +92,7 @@ #include #include + #include #include @@ -120,8 +123,6 @@ #include #include -// -//////// static QString stringFromCFString(CFStringRef value) { QString retVal; if(CFStringGetLength(value) > 1) { @@ -172,7 +173,7 @@ #ifdef MAC_SDK_10_6 -@interface QNSListener : NSObject +@interface QtMNSListener : NSObject { NSNotificationCenter *center; CWInterface * currentInterface; @@ -181,12 +182,12 @@ - (void)remove; @end -@implementation QNSListener +@implementation QtMNSListener - (id) init { [super init]; center = [NSNotificationCenter defaultCenter]; - currentInterface = [CWInterface interface]; + currentInterface = [CWInterface interfaceWithName:nil]; [center addObserver:self selector:@selector(notificationHandler:) name:kCWModeDidChangeNotification object:nil]; [center addObserver:self selector:@selector(notificationHandler:) name:kCWSSIDDidChangeNotification object:nil]; @@ -202,7 +203,6 @@ -(void)dealloc { [center release]; - [currentInterface release]; [super dealloc]; } @@ -213,12 +213,12 @@ - (void)notificationHandler:(NSNotification *)notification { - QTM_NAMESPACE::QSystemNetworkInfoPrivate::instance()->networkChanged( nsstringToQString([notification name]), nsstringToQString([[notification object]name])); + QTM_NAMESPACE::QSystemNetworkInfoPrivate::instance()->wifiNetworkChanged( nsstringToQString([notification name]), nsstringToQString([[notification object]name])); } @end -@interface QLangListener : NSObject +@interface QtMLangListener : NSObject { NSNotificationCenter *center; QString currentLanguage; @@ -230,7 +230,7 @@ -@implementation QLangListener +@implementation QtMLangListener - (id) init { [super init]; @@ -272,7 +272,37 @@ @end +@interface RemoteDeviceRSSIHostControllerDelegate : NSObject +{ +} +// See IOBluetoothHostControllerDelegate +- (void)readRSSIForDeviceComplete:(id)controller device:(IOBluetoothDevice*)device info:(BluetoothHCIRSSIInfo*)info error:(IOReturn)error; +@end + +@implementation RemoteDeviceRSSIHostControllerDelegate +- (id) init +{ + [super init]; + return self; +} + +- (void)readRSSIForDeviceComplete:(id)controller device:(IOBluetoothDevice*)device info:(BluetoothHCIRSSIInfo*)info error:(IOReturn)error +{ + Q_UNUSED(controller); + Q_UNUSED(device); + + if ((error != kIOReturnSuccess) || (info == NULL)) { + qWarning() << "ERROR: readRSSIForDeviceComplete return error"; + + } else if (info->handle == kBluetoothConnectionHandleNone) { + qWarning() << "ERROR: readRSSIForDeviceComplete no connection"; + } else { + NSLog(@"Rssi value: %@", info->RSSIValue); + } +} +@end #endif +NSObject* delegate; QTM_BEGIN_NAMESPACE @@ -281,16 +311,16 @@ QSystemInfoPrivate::QSystemInfoPrivate(QObject *parent) : QObject(parent) { - langloopThread = new QLangLoopThread(this); - langloopThread->start(); if(!self) self = this; } QSystemInfoPrivate::~QSystemInfoPrivate() { - langloopThread->quit(); - langloopThread->wait(); + if(langloopThread->isRunning()) { + langloopThread->quit(); + langloopThread->wait(); + } } QString QSystemInfoPrivate::currentLanguage() const @@ -304,6 +334,7 @@ QStringList QSystemInfoPrivate::availableLanguages() const { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSUserDefaults* defs = [NSUserDefaults standardUserDefaults]; NSArray* languages = [defs objectForKey:@"AppleLanguages"]; @@ -315,6 +346,7 @@ if(!returnList.contains(language)) returnList << language; } + [pool drain]; return returnList; } @@ -323,6 +355,23 @@ Q_EMIT currentLanguageChanged(lang); } +void QSystemInfoPrivate::connectNotify(const char *signal) +{ + if (QLatin1String(signal) == SIGNAL(currentLanguageChanged(QString))) { + langloopThread = new QLangLoopThread(this); + langloopThread->start(); + } +} + +void QSystemInfoPrivate::disconnectNotify(const char *signal) +{ + if (QLatin1String(signal) == SIGNAL(currentLanguageChanged(QString))) { + if(langloopThread->isRunning()) { + langloopThread->quit(); + langloopThread->wait(); + } + } +} QString QSystemInfoPrivate::version(QSystemInfo::Version type, const QString ¶meter) { @@ -397,32 +446,35 @@ break; case QSystemInfo::MemcardFeature: { - +// IOSCSIPeripheralDeviceType0E + if(hasIOServiceMatching("IOUSBMassStorageClass")) { + featureSupported = true; + } } break; case QSystemInfo::UsbFeature: { - if(hasIOServiceMatching(kIOUSBDeviceClassName)) { + if(hasIOServiceMatching("AppleUSBOHCI")) { + featureSupported = true; + } + if(hasIOServiceMatching("AppleUSBEHCI")) { featureSupported = true; } } break; case QSystemInfo::VibFeature: { - } break; case QSystemInfo::WlanFeature: { if(!QSystemNetworkInfoPrivate::instance()->interfaceForMode(QSystemNetworkInfo::WlanMode).name().isEmpty()) { featureSupported = true; - } } break; case QSystemInfo::SimFeature: { - } break; case QSystemInfo::LocationFeature: @@ -438,7 +490,10 @@ break; case QSystemInfo::VideoOutFeature: { - + ComponentDescription description = {'vout', 0, 0, 0L, 1L << 0}; + if( ::CountComponents(&description) > 0) { + featureSupported = true; + } } break; case QSystemInfo::HapticsFeature: @@ -453,9 +508,17 @@ QSystemNetworkInfoPrivate *QSystemNetworkInfoPrivate::self = 0; -void networkChangeCallback(SCDynamicStoreRef/* store*/, CFArrayRef /*changedKeys*/, void */*info*/) +void networkChangeCallback(SCDynamicStoreRef /*dynamicStore*/, CFArrayRef changedKeys, void */*networkConfigurationManagerPrivate*/) { - QTM_NAMESPACE::QSystemNetworkInfoPrivate::instance()->getDefaultInterface(); +// NSLog(@"changed keys %@", changedKeys); + QStringList keyList = nsarrayToQStringList((void*)changedKeys); + if(keyList.contains("State:/Network/Global/DNS")) { + } + if(keyList.contains("State:/Network/Global/IPv4")) { + QTM_NAMESPACE::QSystemNetworkInfoPrivate::instance()->ethernetChanged(); + QTM_NAMESPACE::QSystemNetworkInfoPrivate::instance()->getDefaultInterface(); + } + return; } @@ -485,19 +548,21 @@ mutex.unlock(); NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - QLangListener *listener; - listener = [[QLangListener alloc] init]; + QtMLangListener *listener; + listener = [[QtMLangListener alloc] init]; NSDate *loopUntil = [NSDate dateWithTimeIntervalSinceNow:1.0]; while (keepRunning && [[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode beforeDate: loopUntil]) { loopUntil = [NSDate dateWithTimeIntervalSinceNow:1.0]; } - // [listener release]; //crash [pool release]; #endif } +#ifdef MAC_SDK_10_6 +QtMNSListener *listener; +#endif QRunLoopThread::QRunLoopThread(QObject *parent) :QThread(parent) @@ -506,38 +571,40 @@ QRunLoopThread::~QRunLoopThread() { - CFRelease(storeSession); - CFRelease(runloopSource); +#ifdef MAC_SDK_10_6 + [listener dealloc]; +#endif } void QRunLoopThread::quit() { - + CFRelease(runloopSource); mutex.lock(); keepRunning = false; mutex.unlock(); + CFRelease(storeSession); } + void QRunLoopThread::run() { #ifdef MAC_SDK_10_6 + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; startNetworkChangeLoop(); + delegate = [[RemoteDeviceRSSIHostControllerDelegate alloc] init]; mutex.lock(); keepRunning = true; mutex.unlock(); - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - QNSListener *listener; - listener = [[QNSListener alloc] init]; + listener = [[QtMNSListener alloc] init]; NSDate *loopUntil = [NSDate dateWithTimeIntervalSinceNow:1.0]; while (keepRunning && [[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode beforeDate: loopUntil]) { loopUntil = [NSDate dateWithTimeIntervalSinceNow:1.0]; } - // [listener release]; //crash [pool release]; #endif } @@ -546,8 +613,8 @@ { storeSession = NULL; - SCDynamicStoreContext dynStoreContext = { 0, (void *)storeSession, NULL, NULL, NULL }; - storeSession = SCDynamicStoreCreate(NULL, + SCDynamicStoreContext dynStoreContext = { 0, this /*(void *)storeSession*/, NULL, NULL, NULL }; + storeSession = SCDynamicStoreCreate(NULL, CFSTR("networkChangeCallback"), networkChangeCallback, &dynStoreContext); @@ -562,6 +629,33 @@ patternsArray = CFArrayCreateMutable(NULL, 0, &kCFTypeArrayCallBacks); CFStringRef storeKey; + + storeKey = SCDynamicStoreKeyCreateNetworkGlobalEntity(NULL, + kSCDynamicStoreDomainState, + kSCEntNetLink); + CFArrayAppendValue(notificationKeys, storeKey); + CFRelease(storeKey); + + storeKey = SCDynamicStoreKeyCreateNetworkServiceEntity(NULL, + kSCDynamicStoreDomainState, + kSCCompAnyRegex, + kSCEntNetLink); + CFArrayAppendValue(patternsArray, storeKey); + CFRelease(storeKey); + + storeKey = SCDynamicStoreKeyCreateNetworkGlobalEntity(NULL, + kSCDynamicStoreDomainState, + kSCEntNetDNS); + CFArrayAppendValue(notificationKeys, storeKey); + CFRelease(storeKey); + + storeKey = SCDynamicStoreKeyCreateNetworkServiceEntity(NULL, + kSCDynamicStoreDomainState, + kSCCompAnyRegex, + kSCEntNetDNS); + CFArrayAppendValue(patternsArray, storeKey); + CFRelease(storeKey); + storeKey = SCDynamicStoreKeyCreateNetworkGlobalEntity(NULL, kSCDynamicStoreDomainState, kSCEntNetIPv4); @@ -588,7 +682,7 @@ runloopSource = SCDynamicStoreCreateRunLoopSource(NULL, storeSession , 0); if (!runloopSource) { qWarning() << "runloop source error:"<< SCErrorString(SCError()); - CFRelease(storeSession ); + CFRelease(storeSession); return; } @@ -604,12 +698,14 @@ qRegisterMetaType("QSystemNetworkInfo::NetworkMode"); qRegisterMetaType("QSystemNetworkInfo::NetworkStatus"); #ifdef MAC_SDK_10_6 - runloopThread = new QRunLoopThread(this); - runloopThread->start(); +if([[CWInterface supportedInterfaces] count] > 0 ) { + hasWifi = true; + } else { + hasWifi = false; + } #endif rssiTimer = new QTimer(this); - connect(rssiTimer, SIGNAL(timeout()), this, SLOT(rssiTimeout())); if(!self) self = this; QTimer::singleShot(200, this, SLOT(primaryInterface())); @@ -618,8 +714,11 @@ QSystemNetworkInfoPrivate::~QSystemNetworkInfoPrivate() { #ifdef MAC_SDK_10_6 - runloopThread->quit(); - runloopThread->wait(); + if(hasWifi && runloopThread->isRunning()) { + runloopThread->quit(); + runloopThread->wait(); + [delegate release]; + } #endif } @@ -628,6 +727,41 @@ defaultInterface = getDefaultInterface(); } +void QSystemNetworkInfoPrivate::connectNotify(const char *signal) +{ + if (QLatin1String(signal) == SIGNAL(networkSignalStrengthChanged(QSystemNetworkInfo::NetworkMode,int))) { + connect(rssiTimer, SIGNAL(timeout()), this, SLOT(rssiTimeout())); + rssiTimer->start(5000); + } + if (QLatin1String(signal) == SIGNAL(networkNameChanged(QSystemNetworkInfo::NetworkMode,QString)) + || QLatin1String(signal) == SIGNAL(networkStatusChanged(QSystemNetworkInfo::NetworkMode, QSystemNetworkInfo::NetworkStatus))) { +#ifdef MAC_SDK_10_6 + if(hasWifi) { + runloopThread = new QRunLoopThread(this); + runloopThread->start(); + } +#endif + } +} + +void QSystemNetworkInfoPrivate::disconnectNotify(const char *signal) +{ + if (QLatin1String(signal) == SIGNAL(networkSignalStrengthChanged(QSystemNetworkInfo::NetworkMode,int))) { + rssiTimer->stop(); + disconnect(rssiTimer, SIGNAL(timeout()), this, SLOT(rssiTimeout())); + } + if (QLatin1String(signal) == SIGNAL(networkNameChanged(QSystemNetworkInfo::NetworkMode,QString)) + || QLatin1String(signal) == SIGNAL(networkStatusChanged(QSystemNetworkInfo::NetworkMode, QSystemNetworkInfo::NetworkStatus))) { +#ifdef MAC_SDK_10_6 + if(hasWifi && runloopThread->isRunning()) { + runloopThread->quit(); + runloopThread->wait(); + [delegate release]; + } +#endif + } +} + QSystemNetworkInfo::NetworkMode QSystemNetworkInfoPrivate::modeForInterface(QString interfaceName) { QSystemNetworkInfo::NetworkMode mode = QSystemNetworkInfo::UnknownMode; @@ -690,17 +824,15 @@ defaultInterface = interfaceName; } } -// qWarning() << __FUNCTION__ << interfaceName; + return interfaceName; } void QSystemNetworkInfoPrivate::rssiTimeout() { - networkStatus(QSystemNetworkInfo::WlanMode); networkSignalStrength(QSystemNetworkInfo::WlanMode); } - bool QSystemNetworkInfoPrivate::isInterfaceActive(const char* netInterface) { struct ifmediareq ifm; @@ -715,6 +847,21 @@ return false; } +void QSystemNetworkInfoPrivate::ethernetChanged() +{ + QSystemNetworkInfo::NetworkStatus status = QSystemNetworkInfo::NoNetworkAvailable; + int carrier = 0; + + if(isInterfaceActive(interfaceForMode(QSystemNetworkInfo::EthernetMode).name().toLocal8Bit())) { + status = QSystemNetworkInfo::Connected; + carrier = 100; + } + Q_EMIT networkStatusChanged(QSystemNetworkInfo::EthernetMode,status); + Q_EMIT networkSignalStrengthChanged(QSystemNetworkInfo::EthernetMode,carrier); + Q_EMIT networkNameChanged(QSystemNetworkInfo::EthernetMode, networkName(QSystemNetworkInfo::EthernetMode)); + Q_EMIT networkModeChanged(modeForInterface(getDefaultInterface())); +} + QSystemNetworkInfo::NetworkStatus QSystemNetworkInfoPrivate::networkStatus(QSystemNetworkInfo::NetworkMode mode) { QSystemNetworkInfo::NetworkStatus status = QSystemNetworkInfo::NoNetworkAvailable; @@ -728,31 +875,34 @@ case QSystemNetworkInfo::WlanMode: { #ifdef MAC_SDK_10_6 - NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; - CWInterface *wifiInterface = [CWInterface interfaceWithName: qstringToNSString(interfaceForMode(mode).name())]; + if(hasWifi) { + NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; + CWInterface *wifiInterface = [CWInterface interfaceWithName: qstringToNSString(interfaceForMode(mode).name())]; + + if([wifiInterface power]) { + if(!rssiTimer->isActive()) + rssiTimer->start(5000); + } else { + if(rssiTimer->isActive()) + rssiTimer->stop(); + } - if([wifiInterface power]) { - if(!rssiTimer->isActive()) - rssiTimer->start(1000); - } else { - if(rssiTimer->isActive()) - rssiTimer->stop(); + switch([[wifiInterface interfaceState]intValue]) { + case kCWInterfaceStateInactive: + status = QSystemNetworkInfo::NoNetworkAvailable; + break; + case kCWInterfaceStateScanning: + case kCWInterfaceStateAuthenticating: + case kCWInterfaceStateAssociating: + status = QSystemNetworkInfo::Searching; + break; + case kCWInterfaceStateRunning: + status = QSystemNetworkInfo::Connected; + break; + }; + [autoreleasepool release]; } - switch([[wifiInterface interfaceState]intValue]) { - case kCWInterfaceStateInactive: - status = QSystemNetworkInfo::NoNetworkAvailable; - break; - case kCWInterfaceStateScanning: - case kCWInterfaceStateAuthenticating: - case kCWInterfaceStateAssociating: - status = QSystemNetworkInfo::Searching; - break; - case kCWInterfaceStateRunning: - status = QSystemNetworkInfo::Connected; - break; - }; - [autoreleasepool release]; #else if(isInterfaceActive(interfaceForMode(mode).name().toLatin1())) { status = QSystemNetworkInfo::Connected; @@ -762,7 +912,7 @@ break; case QSystemNetworkInfo::EthernetMode: { - if(networkSignalStrength(mode) == 100) { + if(isInterfaceActive(interfaceForMode(mode).name().toLatin1())) { return QSystemNetworkInfo::Connected; } else { return QSystemNetworkInfo::NoNetworkAvailable; @@ -794,41 +944,43 @@ case QSystemNetworkInfo::WlanMode: { int signalQuality = 0; + if(hasWifi) { #ifdef MAC_SDK_10_6 - NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; - QString name = interfaceForMode(mode).name(); - CWInterface *wifiInterface = [CWInterface interfaceWithName:qstringToNSString(name)]; + NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; + QString name = interfaceForMode(mode).name(); + CWInterface *wifiInterface = [CWInterface interfaceWithName:qstringToNSString(name)]; - if([wifiInterface power]) { - if(!rssiTimer->isActive()) - rssiTimer->start(1000); - } else { - if(rssiTimer->isActive()) - rssiTimer->stop(); - } + if([wifiInterface power]) { + if(!rssiTimer->isActive()) + rssiTimer->start(5000); + } else { + if(rssiTimer->isActive()) + rssiTimer->stop(); + } - int rssiSignal = [[wifiInterface rssi] intValue]; + int rssiSignal = [[wifiInterface rssi] intValue]; - if(rssiSignal !=0 ) { - int maxRssi = -40; - int minRssi = [[wifiInterface noise] intValue]; - signalQuality = ( 100 * (maxRssi - minRssi) * (maxRssi - minRssi) - (maxRssi - rssiSignal) * - (15 * (maxRssi - minRssi) + 62 * (maxRssi - rssiSignal)) ) / - ((maxRssi - minRssi) * (maxRssi - minRssi)); + if(rssiSignal !=0 ) { + int maxRssi = -40; + int minRssi = [[wifiInterface noise] intValue]; + signalQuality = ( 100 * (maxRssi - minRssi) * (maxRssi - minRssi) - (maxRssi - rssiSignal) * + (15 * (maxRssi - minRssi) + 62 * (maxRssi - rssiSignal)) ) / + ((maxRssi - minRssi) * (maxRssi - minRssi)); - } else { - signalQuality = 0; + } else { + signalQuality = 0; + } + + if(signalStrengthCache != signalQuality) { + if(signalStrengthCache == 0) { + networkStatus(QSystemNetworkInfo::WlanMode); + } + signalStrengthCache = signalQuality; + Q_EMIT networkSignalStrengthChanged(mode, signalQuality); + } + [autoreleasepool release]; +#endif } - - if(signalStrengthCache != signalQuality) { - if(signalStrengthCache == 0) { - networkStatus(QSystemNetworkInfo::WlanMode); - } - signalStrengthCache = signalQuality; - Q_EMIT networkSignalStrengthChanged(mode, signalQuality); - } - [autoreleasepool release]; -#endif return signalQuality; } break; @@ -839,9 +991,32 @@ } break; case QSystemNetworkInfo::BluetoothMode: - // link quality for which device? - // [controller readRSSIForDevice: blah?]; - break; + { +#ifdef MAC_SDK_10_6 + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + IOBluetoothHostController* controller = IOBluetoothHostController.defaultController; + if (controller != NULL) { + + NSArray *devices = [IOBluetoothDevice recentDevices:0]; + for ( IOBluetoothDevice *btDevice in devices ) { + if([btDevice isConnected]) { + qWarning() <<"IOBluetoothDevice connected"<< nsstringToQString([btDevice getName]); +// delegate = [[RemoteDeviceRSSIHostControllerDelegate alloc] init]; + [delegate retain]; + [controller setDelegate:delegate]; + IOReturn rc = [controller readRSSIForDevice:btDevice]; + if (rc != noErr) { + qWarning() << "ERROR: call readRSSIForDevice failed"; + } +//[delegate release]; + } + } +// [devices release]; + // [controller release]; + } + [pool release]; +#endif + } case QSystemNetworkInfo::WimaxMode: break; default: @@ -862,7 +1037,16 @@ QString QSystemNetworkInfoPrivate::currentMobileCountryCode() { - return ""; + QString cmcc; +#if defined(MAC_SDK_10_6) + if(hasWifi) { + CWInterface *primary = [CWInterface interfaceWithName:nil]; + if([primary power]) { + cmcc = nsstringToQString([primary countryCode]); + } + } +#endif + return cmcc; } QString QSystemNetworkInfoPrivate::currentMobileNetworkCode() @@ -882,6 +1066,9 @@ QString QSystemNetworkInfoPrivate::networkName(QSystemNetworkInfo::NetworkMode mode) { + if(networkStatus(mode) == QSystemNetworkInfo::NoNetworkAvailable) { + return ""; + } switch(mode) { case QSystemNetworkInfo::GsmMode: break; @@ -891,16 +1078,32 @@ break; case QSystemNetworkInfo::WlanMode: { + QString name = interfaceForMode(mode).name(); #ifdef MAC_SDK_10_6 - QString name = interfaceForMode(mode).name(); - CWInterface *wifiInterface = [CWInterface interfaceWithName:qstringToNSString(name)]; - return nsstringToQString([wifiInterface ssid]); + if(hasWifi) { + CWInterface *wifiInterface = [CWInterface interfaceWithName:qstringToNSString(name)]; + return nsstringToQString([wifiInterface ssid]); + } #else + SCDynamicStoreRef theDynamicStore; + theDynamicStore = SCDynamicStoreCreate(nil, CFSTR("FindCurrentInterfaceAndIP"), nil, nil); + + NSMutableString *interfaceName = [NSMutableString string]; + NSString *airportPath = [NSString stringWithFormat:@"State:/Network/Interface/%@/AirPort", qstringToNSString(name)]; + + CFDictionaryRef airportPlist = (const __CFDictionary*)SCDynamicStoreCopyValue(theDynamicStore, (CFStringRef)airportPath); + + CFRelease(theDynamicStore); + + return nsstringToQString([(NSDictionary *)airportPlist valueForKey:@"SSID_STR"]); #endif } break; case QSystemNetworkInfo::EthernetMode: { + if(isInterfaceActive(interfaceForMode(mode).name().toLocal8Bit())) { + return QHostInfo::localDomainName(); + } } break; case QSystemNetworkInfo::BluetoothMode: @@ -915,39 +1118,37 @@ QString QSystemNetworkInfoPrivate::macAddress(QSystemNetworkInfo::NetworkMode mode) { - QString mac; -#ifdef MAC_SDK_10_6 - if(mode == QSystemNetworkInfo::BluetoothMode) { - NSString *addy; - IOBluetoothHostController* controller = [IOBluetoothHostController defaultController]; - if (controller != NULL) { - addy = [controller addressAsString]; - mac = QLatin1String([addy UTF8String]); - mac.replace("-",":"); - } - return mac; - } -#endif - mac = interfaceForMode(mode).hardwareAddress(); - return mac; + return interfaceForMode(mode).hardwareAddress(); } QNetworkInterface QSystemNetworkInfoPrivate::interfaceForMode(QSystemNetworkInfo::NetworkMode mode) { QNetworkInterface netInterface; - CFArrayRef interfaceArray = SCNetworkInterfaceCopyAll(); //10.4 CFStringRef iName; CFStringRef type; - for ( long i = 0; i < CFArrayGetCount(interfaceArray); i++) { SCNetworkInterfaceRef thisInterface = (SCNetworkInterfaceRef ) CFArrayGetValueAtIndex(interfaceArray, i); type = SCNetworkInterfaceGetInterfaceType(thisInterface); iName = SCNetworkInterfaceGetBSDName(thisInterface); + if (type != NULL) { if (CFEqual(type, kSCNetworkInterfaceTypeBluetooth) && mode == QSystemNetworkInfo::BluetoothMode) { netInterface = QNetworkInterface::interfaceFromName(stringFromCFString(iName)); - break; + // workaround for null MAC from SCNetworkInterfaceGetHardwareAddressString and bogus BSD name here +#ifdef MAC_SDK_10_6 + IOBluetoothHostController* controller = IOBluetoothHostController.defaultController; + QString macbtMac = nsstringToQString([controller addressAsString]).replace("-",":").toUpper(); + if(!macbtMac.isEmpty()) { + QList interfaces = QNetworkInterface::allInterfaces(); + foreach(const QNetworkInterface thisNetInterface, interfaces) { + if( thisNetInterface.hardwareAddress() == macbtMac) { + netInterface = thisNetInterface; + break; + } + } + } +#endif } else if (CFEqual(type, kSCNetworkInterfaceTypeEthernet) && mode == QSystemNetworkInfo::EthernetMode) { netInterface = QNetworkInterface::interfaceFromName(stringFromCFString(iName)); break; @@ -961,10 +1162,9 @@ return netInterface; } -void QSystemNetworkInfoPrivate::networkChanged(const QString ¬ification, const QString interfaceName) +void QSystemNetworkInfoPrivate::wifiNetworkChanged(const QString ¬ification, const QString interfaceName) { - qWarning() << __FUNCTION__ << notification; - // runloopThread->stopLoop(); + getDefaultInterface(); if(notification == QLatin1String("SSID_CHANGED_NOTIFICATION")) { Q_EMIT networkNameChanged(QSystemNetworkInfo::WlanMode, networkName(QSystemNetworkInfo::WlanMode)); @@ -979,20 +1179,25 @@ CWInterface *wifiInterface = [CWInterface interfaceWithName: qstringToNSString(interfaceName)]; if([wifiInterface power]) { if(!rssiTimer->isActive()) { - qWarning() << __FUNCTION__ << "start timer"; - rssiTimer->start(1000); + rssiTimer->start(5000); + } } else { if(rssiTimer->isActive()) { - qWarning() << __FUNCTION__ << "stop timer"; - rssiTimer->stop(); - } + rssiTimer->stop(); + } + Q_EMIT networkSignalStrengthChanged(QSystemNetworkInfo::WlanMode, 0); } #endif } - // runloopThread->start(); } +QSystemNetworkInfo::NetworkMode QSystemNetworkInfoPrivate::currentMode() +{ + return modeForInterface(getDefaultInterface()); +} + + QSystemDisplayInfoPrivate::QSystemDisplayInfoPrivate(QObject *parent) : QObject(parent) { @@ -1122,8 +1327,9 @@ if (volumeParmeters.vMServerAdr == 0) { //local drive io_service_t ioService; ioService = IOServiceGetMatchingService(kIOMasterPortDefault, - IOBSDNameMatching(kIOMasterPortDefault, 0, - (char *)volumeParmeters.vMDeviceID)); + IOBSDNameMatching(kIOMasterPortDefault, + 0, + (char *)volumeParmeters.vMDeviceID)); if (IOObjectConformsTo(ioService, kIOMediaClass)) { CFTypeRef wholeMedia; @@ -1134,12 +1340,16 @@ 0); if((volumeParmeters.vMExtendedAttributes & (1L << bIsRemovable))) { + IOObjectRelease(ioService); CFRelease(wholeMedia); return QSystemStorageInfo::RemovableDrive; } else { + IOObjectRelease(ioService); + CFRelease(wholeMedia); return QSystemStorageInfo::InternalDrive; } } + IOObjectRelease(ioService); } else { return QSystemStorageInfo::RemoteDrive; } @@ -1267,12 +1477,12 @@ QString QSystemDeviceInfoPrivate::imei() { - return "Sim Not Available"; + return ""; } QString QSystemDeviceInfoPrivate::imsi() { - return "Sim Not Available"; + return ""; } QString QSystemDeviceInfoPrivate::manufacturer() @@ -1322,7 +1532,7 @@ } CFRelease(powerSourcesInfoBlob); - CFRelease(powerSourcesList); + CFRelease(powerSourcesList); if(batteryLevelCache != level) { batteryLevelCache = level; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_mac_p.h --- a/qtmobility/src/systeminfo/qsysteminfo_mac_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_mac_p.h Mon May 03 13:18:40 2010 +0300 @@ -110,6 +110,9 @@ static QSystemInfoPrivate *self; private Q_SLOTS: + protected: + void connectNotify(const char *signal); + void disconnectNotify(const char *signal); }; @@ -139,8 +142,11 @@ QNetworkInterface interfaceForMode(QSystemNetworkInfo::NetworkMode mode); static QSystemNetworkInfoPrivate *instance() {return self;} - void networkChanged(const QString ¬ification, const QString interfaceName); + void wifiNetworkChanged(const QString ¬ification, const QString interfaceName); QString getDefaultInterface(); + QSystemNetworkInfo::NetworkMode currentMode(); + void ethernetChanged(); + Q_SIGNALS: void networkStatusChanged(QSystemNetworkInfo::NetworkMode, QSystemNetworkInfo::NetworkStatus); @@ -154,7 +160,6 @@ void primaryInterface(); private: - bool isInterfaceActive(const char* netInterface); QTimer *rssiTimer; int signalStrengthCache; static QSystemNetworkInfoPrivate *self; @@ -164,6 +169,14 @@ private Q_SLOTS: void rssiTimeout(); +protected: + void startNetworkChangeLoop(); + bool isInterfaceActive(const char* netInterface); + + void connectNotify(const char *signal); + void disconnectNotify(const char *signal); + bool hasWifi; + }; class QSystemDisplayInfoPrivate : public QObject diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_maemo.cpp --- a/qtmobility/src/systeminfo/qsysteminfo_maemo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_maemo.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,7 +40,6 @@ ****************************************************************************/ #include #include - #include #include #include @@ -101,9 +100,9 @@ QStringList languages; GConfItem languagesItem("/apps/osso/inputmethod/available_languages"); - QStringList locales = languagesItem.value().toStringList(); + const QStringList locales = languagesItem.value().toStringList(); - foreach(QString locale, locales) { + foreach(const QString locale, locales) { languages << locale.mid(0,2); } languages << currentLanguage(); @@ -149,9 +148,9 @@ case QSystemInfo::SimFeature : { GConfItem locationValues("/system/nokia/location"); - QStringList locationKeys = locationValues.listEntries(); + const QStringList locationKeys = locationValues.listEntries(); - foreach (QString str, locationKeys) { + foreach (const QString str, locationKeys) { if (str.contains("sim_imsi")) featureSupported = true; break; @@ -161,7 +160,7 @@ case QSystemInfo::LocationFeature : { GConfItem locationValues("/system/nokia/location"); - QStringList locationKeys = locationValues.listEntries(); + const QStringList locationKeys = locationValues.listEntries(); if(locationKeys.count()) { featureSupported = true; } @@ -169,11 +168,11 @@ break; case QSystemInfo::VideoOutFeature : { - QString sysPath = "/sys/class/video4linux/"; - QDir sysDir(sysPath); + const QString sysPath = "/sys/class/video4linux/"; + const QDir sysDir(sysPath); QStringList filters; filters << "*"; - QStringList sysList = sysDir.entryList( filters ,QDir::Dirs, QDir::Name); + const QStringList sysList = sysDir.entryList( filters ,QDir::Dirs, QDir::Name); if(sysList.contains("video0")) { featureSupported = true; } @@ -183,7 +182,7 @@ { // if(halIsAvailable) { QHalInterface iface; - QStringList touchSupport = + const QStringList touchSupport = iface.findDeviceByCapability("input.touchpad"); if(touchSupport.count()) { featureSupported = true; @@ -203,61 +202,97 @@ QSystemNetworkInfoPrivate::QSystemNetworkInfoPrivate(QSystemNetworkInfoLinuxCommonPrivate *parent) : QSystemNetworkInfoLinuxCommonPrivate(parent) { + setupNetworkInfo(); } QSystemNetworkInfoPrivate::~QSystemNetworkInfoPrivate() { + if(wlanSignalStrengthTimer->isActive()) + wlanSignalStrengthTimer->stop(); } QSystemNetworkInfo::NetworkStatus QSystemNetworkInfoPrivate::networkStatus(QSystemNetworkInfo::NetworkMode mode) { - qWarning() << __PRETTY_FUNCTION__ << mode; - switch(mode) { case QSystemNetworkInfo::GsmMode: case QSystemNetworkInfo::CdmaMode: case QSystemNetworkInfo::WcdmaMode: - { - qWarning() << __FUNCTION__<< "GSM" << mode; -//#if 0 -//#if !defined(QT_NO_DBUS) -// QDBusInterface connectionInterface("com.nokia.phone.net", -// "/com/nokia/phone/net", -// "com.nokia.SystemInfo", -// QDBusConnection::systemBus()); -// if(!connectionInterface.isValid()) { -// qWarning() << "interfacenot valid"; -// } -// QDBusReply< QByteArray > reply = connectionInterface.call("GetConfigValue", "/device/sw-release-ver"); -// return reply.value(); -//#endif -//#endif + { + switch(currentCellNetworkStatus) { + case 0: return QSystemNetworkInfo::HomeNetwork; // CS is registered to home network + case 1: return QSystemNetworkInfo::Roaming; // CS is registered to some other network than home network + case 2: return QSystemNetworkInfo::Roaming; // CS is registered to non-home system in a non-home area + case 3: return QSystemNetworkInfo::NoNetworkAvailable; // CS is not in service + case 4: return QSystemNetworkInfo::Searching; // CS is not in service, but is currently searching for service + case 5: return QSystemNetworkInfo::NoNetworkAvailable; // CS is not in service and it is not currently searching for service + case 6: return QSystemNetworkInfo::NoNetworkAvailable; // CS is not in service due to missing SIM or missing subscription + case 8: return QSystemNetworkInfo::NoNetworkAvailable; // CS is in power off state + case 9: return QSystemNetworkInfo::NoNetworkAvailable; // CS is in No Service Power Save State (currently not listening to any cell) + case 10: return QSystemNetworkInfo::NoNetworkAvailable; // CS is in No Service Power Save State (CS is entered to this state + // because there is no network coverage) + case 11: return QSystemNetworkInfo::Denied; // CS is not in service due to missing subscription + default: + break; + }; } break; case QSystemNetworkInfo::EthernetMode: + if(currentEthernetState == "up") { + return QSystemNetworkInfo::Connected; + } else { + return QSystemNetworkInfo::NoNetworkAvailable; + } + break; case QSystemNetworkInfo::WlanMode: case QSystemNetworkInfo::BluetoothMode: { return QSystemNetworkInfoLinuxCommonPrivate::networkStatus(mode); } break; + default: + break; }; return QSystemNetworkInfo::UndefinedStatus; } -int QSystemNetworkInfoPrivate::networkSignalStrength(QSystemNetworkInfo::NetworkMode mode) -{ +qint32 QSystemNetworkInfoPrivate::networkSignalStrength(QSystemNetworkInfo::NetworkMode mode) +{ switch(mode) { case QSystemNetworkInfo::GsmMode: case QSystemNetworkInfo::CdmaMode: case QSystemNetworkInfo::WcdmaMode: + { + return cellSignalStrength; + } + case QSystemNetworkInfo::EthernetMode: { + QString result; + QString baseSysDir = "/sys/class/net/"; + QString interface = QSystemNetworkInfoLinuxCommonPrivate::interfaceForMode(mode).humanReadableName(); + if (interface == "usb0") { + QString dir = QSystemNetworkInfoLinuxCommonPrivate::interfaceForMode(mode).name(); + QString devFile = baseSysDir + dir; + QFileInfo fi(devFile + "/carrier"); + if(fi.exists()) { + QFile rx(fi.absoluteFilePath()); + if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { + QTextStream stream(&rx); + stream >> result; + rx.close(); + return result.toInt() * 100; + break; + } + } + } + return QSystemNetworkInfoLinuxCommonPrivate::networkSignalStrength(mode); break; - case QSystemNetworkInfo::EthernetMode: + } case QSystemNetworkInfo::WlanMode: case QSystemNetworkInfo::BluetoothMode: return QSystemNetworkInfoLinuxCommonPrivate::networkSignalStrength(mode); break; + default: + break; }; return -1; @@ -265,31 +300,67 @@ int QSystemNetworkInfoPrivate::cellId() { - return -1; + return currentCellId; } int QSystemNetworkInfoPrivate::locationAreaCode() { - return -1; + return currentLac; } QString QSystemNetworkInfoPrivate::currentMobileCountryCode() { - return QString(); + return currentMCC; } QString QSystemNetworkInfoPrivate::currentMobileNetworkCode() { - return QString(); + return currentMNC; } QString QSystemNetworkInfoPrivate::homeMobileCountryCode() { - return QString(); + QString imsi = GConfItem("/system/nokia/location/sim_imsi").value().toString(); + if (imsi.length() >= 3) { + return imsi.left(3); + } + return QString(); } QString QSystemNetworkInfoPrivate::homeMobileNetworkCode() { +#if !defined(QT_NO_DBUS) + QDBusInterface connectionInterface("com.nokia.phone.SIM", + "/com/nokia/phone/SIM", + "Phone.Sim", + QDBusConnection::systemBus()); + if (!connectionInterface.isValid()) { + qWarning() << "interface not valid"; + return QString(); + } + QDBusReply reply = connectionInterface.call(QLatin1String("read_hplmn")); + + // The MNC and MCC are split into Hex numbers in the received byte array. + // The MNC can be 2 or 3 digits long. If it is 2 digits long, it ends with 0xF. + // The order of the Hex numbers in the reply is: + // mcc2 mcc1 mnc3 mcc3 mnc2 mnc1 + + QString homeMobileNetworkCode; + if (reply.isValid()) { + QString temp = reply.value().toHex(); + QString mnc1 = temp.right(1); + temp.chop(1); + QString mnc2 = temp.right(1); + temp.chop(2); + QString mnc3 = temp.right(1); + if (mnc3 != "f") { + homeMobileNetworkCode.prepend(mnc3); + } + homeMobileNetworkCode.prepend(mnc2); + homeMobileNetworkCode.prepend(mnc1); + return homeMobileNetworkCode; + } +#endif return QString(); } @@ -302,9 +373,10 @@ case QSystemNetworkInfo::CdmaMode: case QSystemNetworkInfo::GsmMode: case QSystemNetworkInfo::WcdmaMode: + return currentOperatorName; + break; case QSystemNetworkInfo::WimaxMode: break; - break; default: return QSystemNetworkInfoLinuxCommonPrivate::networkName(mode); break; @@ -321,8 +393,30 @@ case QSystemNetworkInfo::WcdmaMode: case QSystemNetworkInfo::WimaxMode: break; + case QSystemNetworkInfo::EthernetMode: { + QString address; + QString baseSysDir = "/sys/class/net/"; + QString interface = QSystemNetworkInfoLinuxCommonPrivate::interfaceForMode(mode).humanReadableName(); + if (interface == "usb0") { + QString dir = QSystemNetworkInfoLinuxCommonPrivate::interfaceForMode(mode).name(); + QString devFile = baseSysDir + dir; + QFileInfo fi(devFile + "/address"); + if(fi.exists()) { + QFile rx(fi.absoluteFilePath()); + if(rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { + QTextStream stream(&rx); + stream >> address; + rx.close(); + return address; + break; + } + } + } + return QSystemNetworkInfoLinuxCommonPrivate::macAddress(mode); + break; + } default: - return QSystemNetworkInfoLinuxCommonPrivate::networkName(mode); + return QSystemNetworkInfoLinuxCommonPrivate::macAddress(mode); break; }; return QString(); @@ -345,6 +439,272 @@ return QNetworkInterface(); } +void QSystemNetworkInfoPrivate::setupNetworkInfo() +{ + currentCellNetworkStatus = QSystemNetworkInfo::UndefinedStatus; + currentEthernetState = "down"; + currentEthernetSignalStrength = networkSignalStrength(QSystemNetworkInfo::EthernetMode); + currentWlanSignalStrength = networkSignalStrength(QSystemNetworkInfo::WlanMode); + currentLac = -1; + currentCellId = -1; + currentMCC = ""; + currentMNC = ""; + cellSignalStrength = 0; + currentOperatorName = ""; + radioAccessTechnology = 0; + iWlanStrengthCheckEnabled = 0; + wlanSignalStrengthTimer = new QTimer(this); + + connect(wlanSignalStrengthTimer, SIGNAL(timeout()), this, SLOT(wlanSignalStrengthCheck())); + + QString devFile = "/sys/class/net/usb0/operstate"; + QFileInfo fi(devFile); + if (fi.exists()) { + QFile rx(fi.absoluteFilePath()); + if (rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { + QTextStream stream(&rx); + stream >> currentEthernetState; + rx.close(); + } + } +#if !defined(QT_NO_DBUS) + QDBusConnection systemDbusConnection = QDBusConnection::systemBus(); + + QDBusInterface connectionInterface("com.nokia.phone.net", + "/com/nokia/phone/net", + "Phone.Net", + systemDbusConnection); + if (!connectionInterface.isValid()) { + qWarning() << "setupNetworkInfo(): interface not valid"; + return; + } + QDBusMessage reply = connectionInterface.call(QLatin1String("get_registration_status")); + if (reply.type() == QDBusMessage::ReplyMessage) { + QList argList = reply.arguments(); + currentCellNetworkStatus = argList.at(STATUS_INDEX).toInt(); + currentLac = argList.at(LAC_INDEX).value(); + currentCellId = argList.at(CELLID_INDEX).value(); + currentMCC.setNum(argList.at(MCC_INDEX).value()); + currentMNC.setNum(argList.at(MNC_INDEX).value()); + } else { + qWarning() << reply.errorMessage(); + } + if (!systemDbusConnection.connect("com.nokia.phone.net", + "/com/nokia/phone/net", + "Phone.Net", + "registration_status_change", + this, SLOT(registrationStatusChanged(uchar,ushort,uint,uint,uint,uchar,uchar)))) { + qWarning() << "unable to connect to registration_status_change"; + } + reply = connectionInterface.call(QLatin1String("get_signal_strength")); + if (reply.type() == QDBusMessage::ReplyMessage) { + QList argList = reply.arguments(); + cellSignalStrength = argList.at(0).toInt(); + } else { + qWarning() << reply.errorMessage(); + } + if (!systemDbusConnection.connect("com.nokia.phone.net", + "/com/nokia/phone/net", + "Phone.Net", + "signal_strength_change", + this, SLOT(cellNetworkSignalStrengthChanged(uchar,uchar)))) { + qWarning() << "unable to connect to signal_strength_change"; + } + uchar type = 0; + QList argumentList; + argumentList << qVariantFromValue(type) << qVariantFromValue(currentMNC.toUInt()) << qVariantFromValue(currentMCC.toUInt()); + reply = connectionInterface.callWithArgumentList(QDBus::Block, QLatin1String("get_operator_name"), argumentList); + + if (reply.type() == QDBusMessage::ReplyMessage) { + QList argList = reply.arguments(); + currentOperatorName = argList.at(0).toString(); + } else { + qWarning() << reply.errorMessage(); + } + if (!systemDbusConnection.connect("com.nokia.phone.net", + "/com/nokia/phone/net", + "Phone.Net", + "operator_name_change", + this, SLOT(operatorNameChanged(uchar,QString,QString,uint,uint)))) { + qWarning() << "unable to connect to operator_name_change"; + } + + reply = connectionInterface.call(QLatin1String("get_radio_access_technology")); + if (reply.type() == QDBusMessage::ReplyMessage) { + QList argList = reply.arguments(); + radioAccessTechnology = argList.at(0).toInt(); + } else { + qWarning() << reply.errorMessage(); + } + if (!systemDbusConnection.connect("com.nokia.phone.net", + "/com/nokia/phone/net", + "Phone.Net", + "radio_access_technology_change", + this, SLOT(networkModeChanged(int)))) { + qWarning() << "unable to connect to radio_access_technology_change"; + } + if(!systemDbusConnection.connect("com.nokia.icd", + "/com/nokia/icd", + "com.nokia.icd", + QLatin1String("status_changed"), + this, SLOT(icdStatusChanged(QString,QString,QString,QString))) ) { + qWarning() << "unable to connect to icdStatusChanged"; + } + if(!systemDbusConnection.connect("com.nokia.bme", + "/com/nokia/bme/signal", + "com.nokia.bme.signal", + QLatin1String("charger_connected"), + this, SLOT(usbCableAction())) ) { + qWarning() << "unable to connect to usbCableAction (connect)"; + } + if(!systemDbusConnection.connect("com.nokia.bme", + "/com/nokia/bme/signal", + "com.nokia.bme.signal", + QLatin1String("charger_disconnected"), + this, SLOT(usbCableAction())) ) { + qWarning() << "unable to connect to usbCableAction (disconnect)"; + } +#endif +} + +void QSystemNetworkInfoPrivate::cellNetworkSignalStrengthChanged(uchar var1, uchar) +{ + QSystemNetworkInfo::NetworkMode mode = QSystemNetworkInfo::UnknownMode; + cellSignalStrength = var1; + + if (radioAccessTechnology == 1) + mode = QSystemNetworkInfo::GsmMode; + if (radioAccessTechnology == 2) + mode = QSystemNetworkInfo::WcdmaMode; + + if (mode != QSystemNetworkInfo::UnknownMode) + emit networkSignalStrengthChanged(mode, cellSignalStrength); +} + +void QSystemNetworkInfoPrivate::networkModeChanged(int newRadioAccessTechnology) +{ + QSystemNetworkInfo::NetworkMode newMode = QSystemNetworkInfo::UnknownMode; + radioAccessTechnology = newRadioAccessTechnology; + + if (radioAccessTechnology == 1) + newMode = QSystemNetworkInfo::GsmMode; + if (radioAccessTechnology == 2) + newMode = QSystemNetworkInfo::WcdmaMode; + + if (newMode != QSystemNetworkInfo::UnknownMode) + emit networkModeChanged(newMode); +} + +void QSystemNetworkInfoPrivate::operatorNameChanged(uchar, QString name, QString, uint, uint) +{ + currentOperatorName = name; + if (radioAccessTechnology == 1) + emit networkNameChanged(QSystemNetworkInfo::GsmMode, currentOperatorName); + if (radioAccessTechnology == 2) + emit networkNameChanged(QSystemNetworkInfo::WcdmaMode, currentOperatorName); +} + +void QSystemNetworkInfoPrivate::registrationStatusChanged(uchar var1, ushort var2, uint var3, uint var4, uint var5, uchar, uchar) +{ + int newCellNetworkStatus = var1; + int newLac = var2; + int newCellId = var3; + QString newMobileCountryCode; + QString newMobileNetworkCode; + newMobileCountryCode.setNum(var4); + newMobileNetworkCode.setNum(var5); + + if (currentCellNetworkStatus != newCellNetworkStatus) { + currentCellNetworkStatus = newCellNetworkStatus; + if (radioAccessTechnology == 1) + emit networkStatusChanged(QSystemNetworkInfo::GsmMode, + networkStatus(QSystemNetworkInfo::GsmMode)); + if (radioAccessTechnology == 2) + emit networkStatusChanged(QSystemNetworkInfo::WcdmaMode, + networkStatus(QSystemNetworkInfo::WcdmaMode)); + } + if (currentLac != newLac) { + currentLac = newLac; + } + if (currentCellId != newCellId) { + currentCellId = newCellId; + } + if (currentMCC != newMobileCountryCode) { + currentMCC = newMobileCountryCode; + emit currentMobileCountryCodeChanged(currentMCC); + } + if (currentMNC != newMobileNetworkCode) { + currentMNC = newMobileNetworkCode; + emit currentMobileNetworkCodeChanged(currentMNC); + } +} + +void QSystemNetworkInfoPrivate::icdStatusChanged(QString, QString var2, QString, QString) +{ + if (var2 == "WLAN_INFRA") { + emit networkStatusChanged(QSystemNetworkInfo::WlanMode, + networkStatus(QSystemNetworkInfo::WlanMode)); + } +} + +void QSystemNetworkInfoPrivate::usbCableAction() +{ + if (currentEthernetSignalStrength != networkSignalStrength(QSystemNetworkInfo::EthernetMode)) { + currentEthernetSignalStrength = networkSignalStrength(QSystemNetworkInfo::EthernetMode); + emit networkSignalStrengthChanged(QSystemNetworkInfo::EthernetMode, + currentEthernetSignalStrength); + } + QString newEthernetState; + QString devFile = "/sys/class/net/usb0/operstate"; + QFileInfo fi(devFile); + if (fi.exists()) { + QFile rx(fi.absoluteFilePath()); + if (rx.exists() && rx.open(QIODevice::ReadOnly | QIODevice::Text)) { + QTextStream stream(&rx); + stream >> newEthernetState; + rx.close(); + if (currentEthernetState != newEthernetState) { + currentEthernetState = newEthernetState; + emit networkStatusChanged(QSystemNetworkInfo::EthernetMode, + networkStatus(QSystemNetworkInfo::EthernetMode)); + } + } + } +} + +QSystemNetworkInfo::NetworkMode QSystemNetworkInfoPrivate::currentMode() +{ + if (radioAccessTechnology == 1) + return QSystemNetworkInfo::GsmMode; + if (radioAccessTechnology == 2) + return QSystemNetworkInfo::WcdmaMode; + + return QSystemNetworkInfo::UnknownMode; +} + +void QSystemNetworkInfoPrivate::wlanSignalStrengthCheck() +{ + if (currentWlanSignalStrength != networkSignalStrength(QSystemNetworkInfo::WlanMode)) { + currentWlanSignalStrength = networkSignalStrength(QSystemNetworkInfo::WlanMode); + emit networkSignalStrengthChanged(QSystemNetworkInfo::WlanMode, currentWlanSignalStrength); + } +} + +void QSystemNetworkInfoPrivate::setWlanSignalStrengthCheckEnabled(bool enabled) +{ + if (enabled) { + iWlanStrengthCheckEnabled++; + if (!wlanSignalStrengthTimer->isActive()) + wlanSignalStrengthTimer->start(5000); //5 seconds interval + } else { + iWlanStrengthCheckEnabled--; + if (iWlanStrengthCheckEnabled <= 0) { + if(wlanSignalStrengthTimer->isActive()) + wlanSignalStrengthTimer->stop(); + } + } +} + QSystemDisplayInfoPrivate::QSystemDisplayInfoPrivate(QSystemDisplayInfoLinuxCommonPrivate *parent) : QSystemDisplayInfoLinuxCommonPrivate(parent) { @@ -468,10 +828,10 @@ QSystemDeviceInfo::SimStatus QSystemDeviceInfoPrivate::simStatus() { GConfItem locationValues("/system/nokia/location"); - QStringList locationKeys = locationValues.listEntries(); + const QStringList locationKeys = locationValues.listEntries(); QStringList result; int count = 0; - foreach (QString str, locationKeys) { + foreach (const QString str, locationKeys) { if (str.contains("sim_imsi")) count++; } @@ -507,9 +867,9 @@ { #if !defined(QT_NO_DBUS) QHalInterface iface; - QStringList list = iface.findDeviceByCapability("battery"); + const QStringList list = iface.findDeviceByCapability("battery"); if(!list.isEmpty()) { - foreach(QString dev, list) { + foreach(const QString dev, list) { QHalDeviceInterface ifaceDevice(dev); if (iface.isValid()) { if (ifaceDevice.getPropertyString("maemo.charger.connection_status") == "connected") { @@ -560,7 +920,7 @@ #if !defined(QT_NO_DBUS) void QSystemDeviceInfoPrivate::bluezPropertyChanged(const QString &str, QDBusVariant v) { - qWarning() << str << v.variant().toBool(); + //qWarning() << str << v.variant().toBool(); emit bluetoothStateChanged(v.variant().toBool()); } #endif @@ -639,12 +999,12 @@ emit currentProfileChanged(currentProfile()); } -void QSystemDeviceInfoPrivate::profileChanged(bool changed, bool active, QString profile, QList values) +void QSystemDeviceInfoPrivate::profileChanged(bool, bool, QString profile, QList values) { - QSystemDeviceInfo::Profile previousProfile = currentProfile(); + const QSystemDeviceInfo::Profile previousProfile = currentProfile(); profileName = profile; - foreach (ProfileDataValue value, values) { + foreach (const ProfileDataValue value, values) { if (value.key == "ringing.alert.type") silentProfile = value.val == "silent"; else if (value.key == "vibrating.alert.enabled") diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_maemo_p.h --- a/qtmobility/src/systeminfo/qsysteminfo_maemo_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_maemo_p.h Mon May 03 13:18:40 2010 +0300 @@ -64,6 +64,20 @@ #if !defined(QT_NO_DBUS) #include +typedef enum +{ + NM_DEVICE_STATE_UNKNOWN = 0, + NM_DEVICE_STATE_UNMANAGED, + NM_DEVICE_STATE_UNAVAILABLE, + NM_DEVICE_STATE_DISCONNECTED, + NM_DEVICE_STATE_PREPARE, + NM_DEVICE_STATE_CONFIG, + NM_DEVICE_STATE_NEED_AUTH, + NM_DEVICE_STATE_IP_CONFIG, + NM_DEVICE_STATE_ACTIVATED, + NM_DEVICE_STATE_FAILED +} NMDeviceState; + struct ProfileDataValue { QString key; QString val; @@ -127,7 +141,46 @@ QString macAddress(QSystemNetworkInfo::NetworkMode mode); QNetworkInterface interfaceForMode(QSystemNetworkInfo::NetworkMode mode); + QSystemNetworkInfo::NetworkMode currentMode(); + void setWlanSignalStrengthCheckEnabled(bool enabled); +protected: + void setupNetworkInfo(); + +private Q_SLOTS: + void cellNetworkSignalStrengthChanged(uchar,uchar); + void icdStatusChanged(QString,QString,QString,QString); + void networkModeChanged(int); + void operatorNameChanged(uchar,QString,QString,uint,uint); + void registrationStatusChanged(uchar,ushort,uint,uint,uint,uchar,uchar); + void usbCableAction(); + void wlanSignalStrengthCheck(); + +private: + // The index of wanted argument in the QDBusMessage which is received as a + // reply to the sent get_registration_status message via interface Phone.Net + + enum { // In the received QDBusMessage.. + STATUS_INDEX = 0, // the original type of status argument is byte + LAC_INDEX, // the original type of lac argument is uint16 + CELLID_INDEX, // the original type of cellId argument is uint32 + MNC_INDEX, // the original type of mnc argument is uint32 + MCC_INDEX // the original type of mcc argument is uint32 + }; + + int cellSignalStrength; + int currentCellId; + int currentCellNetworkStatus; + int currentEthernetSignalStrength; + int currentLac; + QString currentEthernetState; + QString currentMCC; + QString currentMNC; + QString currentOperatorName; + int currentWlanSignalStrength; + int radioAccessTechnology; + int iWlanStrengthCheckEnabled; + QTimer *wlanSignalStrengthTimer; }; class QSystemDisplayInfoPrivate : public QSystemDisplayInfoLinuxCommonPrivate diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_s60.cpp --- a/qtmobility/src/systeminfo/qsysteminfo_s60.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,28 +46,27 @@ #include #include -#include -#include -#include +#include +#include +#include #ifndef KFeatureIdMmc #include #endif #include #include -#include +#include #include -#include -#include -#include +#include +#include +#include #include #include #include -#include +#include #include QTM_BEGIN_NAMESPACE -//////// QSystemInfo QSystemInfoPrivate::QSystemInfoPrivate(QObject *parent) : QObject(parent) { @@ -106,7 +105,7 @@ QString QSystemInfoPrivate::TLanguageToISO639_1(TLanguage language) const { switch (language) { - case ELangAmerican: + case ELangAmerican: case ELangCanadianEnglish: case ELangInternationalEnglish: case ELangSouthAfricanEnglish: @@ -301,7 +300,6 @@ return isFeatureSupported; } -//////// QSystemNetworkInfo QSystemNetworkInfoPrivate::QSystemNetworkInfoPrivate(QObject *parent) : QObject(parent) { @@ -331,7 +329,7 @@ if (networkMode == CTelephony::ENetworkModeGsm && mode != QSystemNetworkInfo::GsmMode) return QSystemNetworkInfo::NoNetworkAvailable; - if ((networkMode == CTelephony::ENetworkModeCdma95 || networkMode == CTelephony::ENetworkModeCdma2000) && + if ((networkMode == CTelephony::ENetworkModeCdma95 || networkMode == CTelephony::ENetworkModeCdma2000) && mode != QSystemNetworkInfo::CdmaMode) return QSystemNetworkInfo::NoNetworkAvailable; @@ -372,7 +370,7 @@ if (networkMode == CTelephony::ENetworkModeGsm && mode != QSystemNetworkInfo::GsmMode) return -1; - if ((networkMode == CTelephony::ENetworkModeCdma95 || networkMode == CTelephony::ENetworkModeCdma2000) && + if ((networkMode == CTelephony::ENetworkModeCdma95 || networkMode == CTelephony::ENetworkModeCdma2000) && mode != QSystemNetworkInfo::CdmaMode) return -1; @@ -438,7 +436,7 @@ if (networkMode == CTelephony::ENetworkModeGsm && mode != QSystemNetworkInfo::GsmMode) return QString(); - if ((networkMode == CTelephony::ENetworkModeCdma95 || networkMode == CTelephony::ENetworkModeCdma2000) && + if ((networkMode == CTelephony::ENetworkModeCdma95 || networkMode == CTelephony::ENetworkModeCdma2000) && mode != QSystemNetworkInfo::CdmaMode) return QString(); @@ -481,7 +479,7 @@ { TBuf<20> bluetoothAddr; TPckgBuf bluetoothAddrPckg; - if (RProperty::Get(KUidSystemCategory, + if (RProperty::Get(KUidSystemCategory, KPropertyKeyBluetoothGetLocalDeviceAddress, bluetoothAddrPckg) == KErrNone) { bluetoothAddrPckg().GetReadable(bluetoothAddr, KNullDesC, _L(":"), KNullDesC); address = QString::fromUtf16(bluetoothAddr.Ptr(), bluetoothAddr.Length()); @@ -516,36 +514,28 @@ void QSystemNetworkInfoPrivate::networkNameChanged() { - QSystemNetworkInfo::NetworkMode mode = QSystemNetworkInfo::UnknownMode; - CTelephony::TNetworkMode networkMode = DeviceInfo::instance()->cellNetworkInfo()->networkMode(); - switch (networkMode) { - case CTelephony::ENetworkModeGsm: mode = QSystemNetworkInfo::GsmMode; break; - case CTelephony::ENetworkModeCdma95: - case CTelephony::ENetworkModeCdma2000: mode = QSystemNetworkInfo::CdmaMode; break; - case CTelephony::ENetworkModeWcdma: mode = QSystemNetworkInfo::WcdmaMode; break; - default: - break; - } - emit networkNameChanged(mode, DeviceInfo::instance()->cellNetworkInfo()->networkName()); + emit networkNameChanged(currentMode(), DeviceInfo::instance()->cellNetworkInfo()->networkName()); } void QSystemNetworkInfoPrivate::networkModeChanged() { - QSystemNetworkInfo::NetworkMode newMode = QSystemNetworkInfo::UnknownMode; - CTelephony::TNetworkMode networkMode = DeviceInfo::instance()->cellNetworkInfo()->networkMode(); - switch (networkMode) { - case CTelephony::ENetworkModeGsm: newMode = QSystemNetworkInfo::GsmMode; break; - case CTelephony::ENetworkModeCdma95: - case CTelephony::ENetworkModeCdma2000: newMode = QSystemNetworkInfo::CdmaMode; break; - case CTelephony::ENetworkModeWcdma: newMode = QSystemNetworkInfo::WcdmaMode; break; - default: - break; - } - emit networkModeChanged(newMode); + emit networkModeChanged(currentMode()); } void QSystemNetworkInfoPrivate::cellNetworkSignalStrengthChanged() { + emit networkSignalStrengthChanged(currentMode(), + DeviceInfo::instance()->cellSignalStrenghtInfo()->cellNetworkSignalStrength()); +} + +void QSystemNetworkInfoPrivate::cellNetworkStatusChanged() +{ + QSystemNetworkInfo::NetworkMode mode = currentMode(); + emit networkStatusChanged(mode, networkStatus(mode)); +} + +QSystemNetworkInfo::NetworkMode QSystemNetworkInfoPrivate::currentMode() +{ QSystemNetworkInfo::NetworkMode mode = QSystemNetworkInfo::UnknownMode; CTelephony::TNetworkMode networkMode = DeviceInfo::instance()->cellNetworkInfo()->networkMode(); switch (networkMode) { @@ -556,27 +546,9 @@ default: break; } - emit networkSignalStrengthChanged(mode, - DeviceInfo::instance()->cellSignalStrenghtInfo()->cellNetworkSignalStrength()); + return mode; } -void QSystemNetworkInfoPrivate::cellNetworkStatusChanged() -{ - QSystemNetworkInfo::NetworkMode mode = QSystemNetworkInfo::UnknownMode; - CTelephony::TNetworkMode networkMode = DeviceInfo::instance()->cellNetworkInfo()->networkMode(); - switch (networkMode) { - case CTelephony::ENetworkModeGsm: mode = QSystemNetworkInfo::GsmMode; break; - case CTelephony::ENetworkModeCdma95: - case CTelephony::ENetworkModeCdma2000: mode = QSystemNetworkInfo::CdmaMode; break; - case CTelephony::ENetworkModeWcdma: mode = QSystemNetworkInfo::WcdmaMode; break; - default: - break; - } - - emit networkStatusChanged(mode, networkStatus(mode)); -} - -//////// QSystemDisplayInfo QSystemDisplayInfoPrivate::QSystemDisplayInfoPrivate(QObject *parent) : QObject(parent) { @@ -633,11 +605,10 @@ } CleanupStack::PopAndDestroy(2, &ws); ) - + return depth; } -//////// QSystemStorageInfo QSystemStorageInfoPrivate::QSystemStorageInfoPrivate(QObject *parent) : QObject(parent) { @@ -732,7 +703,7 @@ } else if (driveInfo.iType == EMediaCdRom) { return QSystemStorageInfo::CdromDrive; } - + if (driveInfo.iDriveAtt & KDriveAttInternal) { return QSystemStorageInfo::InternalDrive; } else if (driveInfo.iDriveAtt & KDriveAttRemovable) { @@ -742,8 +713,6 @@ return QSystemStorageInfo::NoDrive; }; - -//////// QSystemDeviceInfo QSystemDeviceInfoPrivate::QSystemDeviceInfoPrivate(QObject *parent) : QObject(parent), m_profileEngine(NULL), m_proEngNotifyHandler(NULL), m_bluetoothRepository(NULL), m_bluetoothNotifyHandler(NULL) @@ -979,10 +948,10 @@ void QSystemDeviceInfoPrivate::batteryLevelChanged() { emit batteryLevelChanged(batteryLevel()); - + int batteryLevel = DeviceInfo::instance()->batteryInfo()->batteryLevel(); QSystemDeviceInfo::BatteryStatus status(batteryStatus()); - + if(batteryLevel < 4 && status != QSystemDeviceInfo::BatteryCritical) { emit batteryStatusChanged(QSystemDeviceInfo::BatteryCritical); } else if (batteryLevel < 11 && status != QSystemDeviceInfo::BatteryVeryLow) { @@ -1003,7 +972,6 @@ DeviceInfo *DeviceInfo::m_instance = NULL; -//////// QSystemScreenSaver QSystemScreenSaverPrivate::QSystemScreenSaverPrivate(QObject *parent) : QObject(parent), m_screenSaverInhibited(false) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_s60_p.h --- a/qtmobility/src/systeminfo/qsysteminfo_s60_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_s60_p.h Mon May 03 13:18:40 2010 +0300 @@ -117,6 +117,7 @@ QString macAddress(QSystemNetworkInfo::NetworkMode mode); QNetworkInterface interfaceForMode(QSystemNetworkInfo::NetworkMode mode); + QSystemNetworkInfo::NetworkMode currentMode(); Q_SIGNALS: void networkStatusChanged(QSystemNetworkInfo::NetworkMode, QSystemNetworkInfo::NetworkStatus); @@ -177,7 +178,7 @@ class DeviceInfo; QTM_END_NAMESPACE -#include +#include #include class MProEngEngine; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_win.cpp --- a/qtmobility/src/systeminfo/qsysteminfo_win.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_win.cpp Mon May 03 13:18:40 2010 +0300 @@ -463,7 +463,7 @@ void QSystemInfoPrivate::currentLanguageTimeout() { - QString tmpLang = currentLanguage(); + const QString tmpLang = currentLanguage(); if(currentLanguageStr != tmpLang) { currentLanguageStr = tmpLang; emit currentLanguageChanged(currentLanguageStr); @@ -474,7 +474,7 @@ QString QSystemInfoPrivate::currentLanguage() const { - QString lang = QLocale::system().name().left(2); + QString lang = QLocale::system().name().left(2); if(lang.isEmpty() || lang == "C") { lang = "en"; } @@ -489,8 +489,8 @@ if(transDir.exists()) { QStringList localeList = transDir.entryList( QStringList() << "qt_*.qm" ,QDir::Files | QDir::NoDotAndDotDot, QDir::Name); - foreach(QString localeName, localeList) { - QString lang = localeName.mid(3,2); + foreach(const QString localeName, localeList) { + const QString lang = localeName.mid(3,2); if(!langList.contains(lang) && !lang.isEmpty() && !lang.contains("help")) { langList << lang; } @@ -615,7 +615,7 @@ { QSystemStorageInfo mi; QStringList drives = mi.logicalDrives(); - foreach(QString drive, drives) { + foreach(const QString drive, drives) { if(mi.typeForDrive(drive) == QSystemStorageInfo::RemovableDrive) { featureSupported = true; } @@ -861,8 +861,8 @@ modeList << QSystemNetworkInfo::BluetoothMode; modeList << QSystemNetworkInfo::WimaxMode; - foreach(QSystemNetworkInfo::NetworkMode mode, modeList) { - networkSignalStrength(mode); + foreach(const QSystemNetworkInfo::NetworkMode mode, modeList) { + networkSignalStrength(mode); } switch(QSysInfo::WindowsVersion) { case QSysInfo::WV_VISTA: @@ -886,8 +886,8 @@ modeList << QSystemNetworkInfo::BluetoothMode; modeList << QSystemNetworkInfo::WimaxMode; - foreach(QSystemNetworkInfo::NetworkMode mode, modeList) { - networkStatus(mode); + foreach(const QSystemNetworkInfo::NetworkMode mode, modeList) { + networkStatus(mode); } } @@ -1272,6 +1272,24 @@ return isDefaultGateway; } +QSystemNetworkInfo::NetworkMode QSystemNetworkInfoPrivate::currentMode() +{ + QList modeList; + modeList << QSystemNetworkInfo::GsmMode + << QSystemNetworkInfo::CdmaMode + << QSystemNetworkInfo::WcdmaMode + << QSystemNetworkInfo::WlanMode + << QSystemNetworkInfo::EthernetMode + << QSystemNetworkInfo::BluetoothMode + << QSystemNetworkInfo::WimaxMode; + + for (int i = 0; i < modeList.size(); ++i) { + if ( isDefaultMode(modeList.at(i))) + return modeList.at(i); + } + + return QSystemNetworkInfo::UnknownMode; +} QSystemDisplayInfoPrivate::QSystemDisplayInfoPrivate(QObject *parent) : QObject(parent) @@ -1682,12 +1700,12 @@ QString QSystemDeviceInfoPrivate::imei() { - return "Sim Not Available"; + return ""; } QString QSystemDeviceInfoPrivate::imsi() { - return "Sim Not Available"; + return ""; } QString QSystemDeviceInfoPrivate::manufacturer() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qsysteminfo_win_p.h --- a/qtmobility/src/systeminfo/qsysteminfo_win_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qsysteminfo_win_p.h Mon May 03 13:18:40 2010 +0300 @@ -133,6 +133,8 @@ void emitNetworkStatusChanged(QSystemNetworkInfo::NetworkMode, QSystemNetworkInfo::NetworkStatus); void emitNetworkSignalStrengthChanged(QSystemNetworkInfo::NetworkMode,int); + QSystemNetworkInfo::NetworkMode currentMode(); + static QSystemNetworkInfoPrivate *instance(); protected: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/qwmihelper_win.cpp --- a/qtmobility/src/systeminfo/qwmihelper_win.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/qwmihelper_win.cpp Mon May 03 13:18:40 2010 +0300 @@ -150,7 +150,7 @@ break; } - foreach(QString property, classProperty) { + foreach(const QString property, classProperty) { VARIANT msVariant; CIMTYPE variantType; hr = wbemCLassObject->Get(property.utf16(), 0, &msVariant, &variantType, 0); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/symbian/telephonyinfo_s60.h --- a/qtmobility/src/systeminfo/symbian/telephonyinfo_s60.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/symbian/telephonyinfo_s60.h Mon May 03 13:18:40 2010 +0300 @@ -43,7 +43,7 @@ #define DEVICEINFO_H #include -#include +#include #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/systeminfo/systeminfo.pro --- a/qtmobility/src/systeminfo/systeminfo.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/systeminfo/systeminfo.pro Mon May 03 13:18:40 2010 +0300 @@ -42,11 +42,11 @@ unix: { QT += gui - maemo*|linux-*: { + maemo5|maemo6|linux-*: { SOURCES += qsysteminfo_linux_common.cpp HEADERS += qsysteminfo_linux_common_p.h } - !maemo*:linux-*: { + !maemo5:!maemo6:linux-*: { SOURCES += qsysteminfo_linux.cpp HEADERS += qsysteminfo_linux_p.h contains(QT_CONFIG,dbus): { @@ -63,7 +63,7 @@ DEFINES += QT_NO_NETWORKMANAGER } } - maemo*: { + maemo5|maemo6: { #Qt GConf wrapper added here until a proper place is found for it. CONFIG += link_pkgconfig SOURCES += qsysteminfo_maemo.cpp gconfitem.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qvcard21writer.cpp --- a/qtmobility/src/versit/qvcard21writer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qvcard21writer.cpp Mon May 03 13:18:40 2010 +0300 @@ -70,21 +70,37 @@ QString renderedValue; bool useUtf8 = false; - if (variant.type() == QVariant::String) { - QString valueString = variant.toString(); - - // Quoted-Printable encode the value and add Quoted-Printable parameter, if necessary - if (!parameters.contains(QLatin1String("ENCODING"))) { - if (quotedPrintableEncode(valueString)) - parameters.insert(QLatin1String("ENCODING"), QLatin1String("QUOTED-PRINTABLE")); + /* Structured values need to have their components backslash-escaped (in vCard 2.1, semicolons + must be escaped for compound values and commas must be escaped for list values). */ + if (variant.type() == QVariant::StringList) { + QStringList values = property.variantValue().toStringList(); + QString separator; + if (property.valueType() == QVersitProperty::CompoundType) { + separator = QLatin1String(";"); + } else { + if (property.valueType() != QVersitProperty::ListType) { + qWarning("Variant value is a QStringList but the property's value type is neither " + "CompoundType or ListType"); + } + // Assume it's a ListType + separator = QLatin1String(","); } - - // Add the CHARSET parameter, if necessary and encode in UTF-8 later - if (!mCodec->canEncode(valueString)) { - parameters.insert(QLatin1String("CHARSET"), QLatin1String("UTF-8")); - useUtf8 = true; + QString replacement = QLatin1Char('\\') + separator; + QRegExp separatorRegex = QRegExp(separator); + bool first = true; + foreach (QString value, values) { + if (!(value.isEmpty() && property.valueType() == QVersitProperty::ListType)) { + useUtf8 |= encodeVersitValue(parameters, value); + if (!first) { + renderedValue += separator; + } + renderedValue += value.replace(separatorRegex, replacement); + first = false; + } } - renderedValue = valueString; + } else if (variant.type() == QVariant::String) { + renderedValue = variant.toString(); + useUtf8 = encodeVersitValue(parameters, renderedValue); } else if (variant.type() == QVariant::ByteArray) { parameters.insert(QLatin1String("ENCODING"), QLatin1String("BASE64")); renderedValue = QLatin1String(variant.toByteArray().toBase64().data()); @@ -99,7 +115,7 @@ writeCrlf(); QVersitDocument embeddedDocument = variant.value(); encodeVersitDocument(embeddedDocument); - } else if (variant.type() == QVariant::String) { + } else if (variant.type() == QVariant::String || variant.type() == QVariant::StringList) { writeString(renderedValue, useUtf8); } else if (variant.type() == QVariant::ByteArray) { // One extra folding before the value and @@ -112,15 +128,31 @@ writeCrlf(); } +/*! Performs Quoted-Printable encoding and charset encoding on \a value as per vCard 2.1 spec. + Returns true if the value will need to be encoded with UTF-8, false if mCodec is sufficient. */ +bool QVCard21Writer::encodeVersitValue(QMultiHash& parameters, QString& value) +{ + // Quoted-Printable encode the value and add Quoted-Printable parameter, if necessary + if (quotedPrintableEncode(value)) + parameters.insert(QLatin1String("ENCODING"), QLatin1String("QUOTED-PRINTABLE")); + + // Add the CHARSET parameter, if necessary and encode in UTF-8 later + if (!mCodec->canEncode(value)) { + parameters.insert(QLatin1String("CHARSET"), QLatin1String("UTF-8")); + return true; + } + return false; +} + /*! * Encodes the \a parameters and writes it to the device. */ void QVCard21Writer::encodeParameters(const QMultiHash& parameters) { QList names = parameters.uniqueKeys(); - foreach (QString name, names) { + foreach (const QString& name, names) { QStringList values = parameters.values(name); - foreach (QString value, values) { + foreach (const QString& value, values) { writeString(QLatin1String(";")); QString typeParameterName(QLatin1String("TYPE")); if (name.length() > 0 && name != typeParameterName) { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qvcard21writer_p.h --- a/qtmobility/src/versit/qvcard21writer_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qvcard21writer_p.h Mon May 03 13:18:40 2010 +0300 @@ -65,6 +65,7 @@ ~QVCard21Writer(); void encodeVersitProperty(const QVersitProperty& property); + bool encodeVersitValue(QMultiHash& parameters, QString& value); void encodeParameters(const QMultiHash& parameters); bool quotedPrintableEncode(QString& text) const; bool shouldBeQuotedPrintableEncoded(QChar chr) const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qvcard30writer.cpp --- a/qtmobility/src/versit/qvcard30writer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qvcard30writer.cpp Mon May 03 13:18:40 2010 +0300 @@ -79,7 +79,7 @@ encodeParameters(modifiedProperty.parameters()); writeString(QLatin1String(":")); - QString value; + QString renderedValue; if (variant.canConvert()) { QVersitDocument embeddedDocument = variant.value(); QByteArray data; @@ -90,14 +90,40 @@ subWriter.setDevice(&buffer); subWriter.encodeVersitDocument(embeddedDocument); QString documentString(mCodec->toUnicode(data)); - VersitUtils::backSlashEscape(documentString); - value = documentString; + backSlashEscape(documentString); + renderedValue = documentString; } else if (variant.type() == QVariant::String) { - value = variant.toString(); + renderedValue = variant.toString(); + backSlashEscape(renderedValue); + } else if (variant.type() == QVariant::StringList) { + // We need to backslash escape and concatenate the values in the list + QStringList values = property.variantValue().toStringList(); + QString separator; + if (property.valueType() == QVersitProperty::CompoundType) { + separator = QLatin1String(";"); + } else { + if (property.valueType() != QVersitProperty::ListType) { + qWarning("Variant value is a QStringList but the property's value type is neither " + "CompoundType or ListType"); + } + // Assume it's a ListType + separator = QLatin1String(","); + } + bool first = true; + foreach (QString value, values) { + if (!(value.isEmpty() && property.valueType() == QVersitProperty::ListType)) { + if (!first) { + renderedValue += separator; + } + backSlashEscape(value); + renderedValue += value; + first = false; + } + } } else if (variant.type() == QVariant::ByteArray) { - value = QLatin1String(variant.toByteArray().toBase64().data()); + renderedValue = QLatin1String(variant.toByteArray().toBase64().data()); } - writeString(value); + writeString(renderedValue); writeCrlf(); } @@ -110,7 +136,7 @@ foreach (QString nameString, names) { writeString(QLatin1String(";")); QStringList values = parameters.values(nameString); - VersitUtils::backSlashEscape(nameString); + backSlashEscape(nameString); writeString(nameString); writeString(QLatin1String("=")); for (int i=0; i& parameters); + static void backSlashEscape(QString& text); QHash mPropertyNameMappings; }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitcontactexporter.cpp --- a/qtmobility/src/versit/qversitcontactexporter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitcontactexporter.cpp Mon May 03 13:18:40 2010 +0300 @@ -69,7 +69,7 @@ * Process \a detail and update \a document with the corresponding QVersitProperty(s). * \a contact provides the context within which the detail was found. * - * Returns true if the detail has been handled and requires no furthur processing, false otherwise. + * Returns true if the detail has been handled and requires no further processing, false otherwise. * * This function is called on every QContactDetail encountered during an export. Supply this * function and return true to implement custom export behaviour. @@ -110,10 +110,32 @@ * An example usage of QVersitContactExporter * \snippet ../../doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp Export example * + * \section1 Exporting group relationships + * The exporter does not handle QContactRelationships at all. + * + * Some managers use the \l{QContactRelationship::HasMember}{HasMember} QContactRelationship along + * with contacts of type \l{QContactType::TypeGroup}{TypeGroup} to indicate categorization of + * contacts. In vCard, categorization is represented by the CATEGORIES property, which has + * semantics most similar to the QContactTag detail. For contact manager backends that supports + * groups but not QContactTag, if the categorization information needs to be retained through + * CATEGORIES vCard properties, extra work can be done to convert from group relationships to + * QContactTag before passing the contact list to the exporter. Below is some example code that + * does this translation. + * + * \snippet ../../doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp Export relationship example + * * \sa QVersitDocument, QVersitProperty, QVersitContactExporterDetailHandler, QVersitResourceHandler */ /*! + \enum QVersitContactExporter::Error + This enum specifies an error that occurred during the most recent call to exportContacts() + \value NoError The most recent operation was successful + \value EmptyContactError One of the contacts was empty + \value NoNameError One of the contacts has no QContactName field + */ + +/*! * Constructs a new contact exporter */ QVersitContactExporter::QVersitContactExporter() @@ -132,20 +154,54 @@ /*! * Converts \a contacts into a list of corresponding QVersitDocuments, using the format given by * \a versitType. + * Returns true on success. If any of the contacts could not be exported, false is returned and + * errors() will return a list describing the errors that occurred. The successfully exported + * documents will still be available via documents(). */ -QList QVersitContactExporter::exportContacts( +bool QVersitContactExporter::exportContacts( const QList& contacts, QVersitDocument::VersitType versitType) { - QList list; - foreach (QContact contact, contacts) { + int contactIndex = 0; + d->mDocuments.clear(); + d->mErrors.clear(); + bool ok = true; + foreach (const QContact& contact, contacts) { QVersitDocument versitDocument; versitDocument.setType(versitType); - d->exportContact(contact, versitDocument); - list.append(versitDocument); + QVersitContactExporter::Error error; + if (d->exportContact(contact, versitDocument, &error)) { + d->mDocuments.append(versitDocument); + } else { + d->mErrors.insert(contactIndex, error); + ok = false; + } + contactIndex++; } - return list; + return ok; +} + +/*! + * Returns the documents exported in the most recent call to exportContacts(). + * + * \sa exportContacts() + */ +QList QVersitContactExporter::documents() const +{ + return d->mDocuments; +} + +/*! + * Returns the map of errors encountered in the most recent call to exportContacts(). The key is + * the index into the input list of contacts and the value is the error that occurred on that + * contact. + * + * \sa exportContacts() + */ +QMap QVersitContactExporter::errors() const +{ + return d->mErrors; } /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitcontactexporter.h --- a/qtmobility/src/versit/qversitcontactexporter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitcontactexporter.h Mon May 03 13:18:40 2010 +0300 @@ -70,11 +70,19 @@ class Q_VERSIT_EXPORT QVersitContactExporter { public: + enum Error { + NoError = 0, + EmptyContactError, + NoNameError + }; + QVersitContactExporter(); ~QVersitContactExporter(); - QList exportContacts(const QList& contacts, - QVersitDocument::VersitType versitType=QVersitDocument::VCard30Type); + bool exportContacts(const QList& contacts, + QVersitDocument::VersitType versitType); + QList documents() const; + QMap errors() const; void setDetailHandler(QVersitContactExporterDetailHandler* handler); QVersitContactExporterDetailHandler* detailHandler() const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitcontactexporter_p.cpp --- a/qtmobility/src/versit/qversitcontactexporter_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitcontactexporter_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -65,6 +65,7 @@ #include #include #include +#include #include #include @@ -119,12 +120,17 @@ /*! * Export QT Contact into Versit Document. */ -void QVersitContactExporterPrivate::exportContact( +bool QVersitContactExporterPrivate::exportContact( const QContact& contact, - QVersitDocument& document) + QVersitDocument& document, + QVersitContactExporter::Error* error) { mVersitType = document.type(); QList allDetails = contact.details(); + if (allDetails.isEmpty()) { + *error = QVersitContactExporter::EmptyContactError; + return false; + } for (int i = 0; i < allDetails.size(); i++) { QContactDetail detail = allDetails.at(i); @@ -161,6 +167,12 @@ } else if (detail.definitionName() == QContactOrganization::DefinitionName) { encodeOrganization(document, detail); addProperty = false; + } else if (detail.definitionName() == QContactRingtone::DefinitionName) { + addProperty = encodeRingtone(property, detail); + } else if (detail.definitionName() == QContactThumbnail::DefinitionName) { + addProperty = encodeThumbnail(property, detail); + if (!addProperty) + unknown = true; } else if (detail.definitionName() == QContactAvatar::DefinitionName){ addProperty = encodeAvatar(property, detail); if (!addProperty) @@ -170,6 +182,9 @@ } else if (detail.definitionName() == QContactNickname::DefinitionName) { encodeNickname(document, detail); addProperty = false; + } else if (detail.definitionName() == QContactTag::DefinitionName) { + encodeTag(document, detail); + addProperty = false; } else if (detail.definitionName() == QContactGender::DefinitionName) { encodeGender(property, detail); } else if (detail.definitionName() == QContactOnlineAccount::DefinitionName) { @@ -187,12 +202,34 @@ unknown = true; } - if (addProperty) + if (addProperty) { document.addProperty(property); + } if (mDetailHandler) mDetailHandler->postProcessDetail(contact, detail, !unknown, &document); } + + // Search through the document for FN or N properties. This will find it even if it was added + // by a detail handler. + if (!documentContainsName(document)) { + *error = QVersitContactExporter::NoNameError; + return false; + } + return true; +} + +/*! + * Returns true if and only if \a document has a "FN" or "N" property. + */ +bool QVersitContactExporterPrivate::documentContainsName(const QVersitDocument &document) +{ + foreach (const QVersitProperty& property, document.properties()) { + const QString& name = property.name(); + if (name == QLatin1String("FN") || name == QLatin1String("N")) + return true; + } + return false; } /*! @@ -203,12 +240,13 @@ const QContactDetail& detail) { QContactName contactName = static_cast(detail); - property.setValue(QString::fromAscii("%1;%2;%3;%4;%5").arg( - escape(contactName.lastName()), - escape(contactName.firstName()), - escape(contactName.middleName()), - escape(contactName.prefix()), - escape(contactName.suffix()))); + property.setValue(QStringList() + << contactName.lastName() + << contactName.firstName() + << contactName.middleName() + << contactName.prefix() + << contactName.suffix()); + property.setValueType(QVersitProperty::CompoundType); } /*! @@ -220,7 +258,7 @@ { QContactPhoneNumber phoneNumber = static_cast(detail); encodeParameters(property, phoneNumber.contexts(), phoneNumber.subTypes()); - setEscapedValue(property,phoneNumber.number()); + property.setValue(phoneNumber.number()); } /*! @@ -232,7 +270,7 @@ { QContactEmailAddress emailAddress = static_cast(detail); encodeParameters(property, emailAddress.contexts()); - setEscapedValue(property,emailAddress.emailAddress()); + property.setValue(emailAddress.emailAddress()); } /*! @@ -244,14 +282,15 @@ { QContactAddress address = static_cast(detail); encodeParameters(property, address.contexts(), address.subTypes()); - // Leave out the extended address field: - property.setValue(QString::fromAscii("%1;;%2;%3;%4;%5;%6").arg( - escape(address.postOfficeBox()), - escape(address.street()), - escape(address.locality()), - escape(address.region()), - escape(address.postcode()), - escape(address.country()))); + property.setValue(QStringList() + << address.postOfficeBox() + << QString() // Leave out the extended address field + << address.street() + << address.locality() + << address.region() + << address.postcode() + << address.country()); + property.setValueType(QVersitProperty::CompoundType); } /*! @@ -276,7 +315,7 @@ const QContactDetail& detail) { QContactGuid uid = static_cast(detail); - setEscapedValue(property,uid.guid()); + property.setValue(uid.guid()); } /*! @@ -334,7 +373,7 @@ const QContactDetail& detail) { QContactNote contactNote = static_cast(detail); - setEscapedValue(property,contactNote.note()); + property.setValue(contactNote.note()); } /*! @@ -345,10 +384,9 @@ const QContactDetail& detail) { QContactGeoLocation geoLocation = static_cast(detail); - QString value = - QString::number(geoLocation.longitude()) + QLatin1Char(',') + - QString::number(geoLocation.latitude()); - property.setValue(value); + property.setValue(QStringList() << QString::number(geoLocation.longitude()) + << QString::number(geoLocation.latitude())); + property.setValueType(QVersitProperty::CompoundType); } /*! @@ -362,26 +400,22 @@ if (organization.title().length() > 0) { QVersitProperty property; property.setName(QLatin1String("TITLE")); - setEscapedValue(property,organization.title()); + property.setValue(organization.title()); document.addProperty(property); } if (organization.name().length() > 0 || organization.department().size() > 0) { QVersitProperty property; property.setName(QLatin1String("ORG")); - QString value = escape(organization.name()); - QStringList departments(organization.department()); - if (departments.count() == 0) - value += QLatin1Char(';'); - foreach (QString department, departments) { - value += QLatin1Char(';'); - value += escape(department); - } - property.setValue(value); + QStringList values(organization.name()); + values.append(organization.department()); + property.setValue(values); + property.setValueType(QVersitProperty::CompoundType); document.addProperty(property); } - if (organization.logo().length() > 0) { + if (organization.logoUrl().isValid()) { QVersitProperty property; - if (encodeContentFromFile(organization.logo(), property)) { + // XXX TODO: FIXME! + if (encodeContentFromFile(organization.logoUrl().toString(), property)) { property.setName(QLatin1String("LOGO")); document.addProperty(property); } @@ -389,43 +423,68 @@ if (organization.assistantName().length() > 0) { QVersitProperty property; property.setName(QLatin1String("X-ASSISTANT")); - setEscapedValue(property,organization.assistantName()); + property.setValue(organization.assistantName()); document.addProperty(property); } if (organization.role().length() > 0) { QVersitProperty property; property.setName(QLatin1String("ROLE")); - setEscapedValue(property,organization.role()); + property.setValue(organization.role()); document.addProperty(property); } } +bool QVersitContactExporterPrivate::encodeRingtone(QVersitProperty &property, const QContactDetail &detail) +{ + QContactRingtone ringtone = static_cast(detail); + Q_ASSERT(property.name() == QLatin1String("SOUND")); + return encodeContentFromFile(ringtone.audioRingtoneUrl().toLocalFile(), property); +} + /*! - * Encode avatar content into the Versit Document + * Encode thumbnail content into the Versit Document + */ +bool QVersitContactExporterPrivate::encodeThumbnail( + QVersitProperty& property, + const QContactDetail& detail) +{ + QContactThumbnail contactThumbnail = static_cast(detail); + property.setName(QLatin1String("PHOTO")); + QImage image = contactThumbnail.thumbnail(); + if (image.isNull()) + return false; + QByteArray imageData; + QBuffer buffer(&imageData); + buffer.open(QIODevice::WriteOnly); + // Always store a pixmap as a PNG. + if (!image.save(&buffer, "PNG")) { + return false; + } + property.setValue(imageData); + property.insertParameter(QLatin1String("TYPE"), QLatin1String("PNG")); + return true; +} + +/*! + * Encode avatar URIs into the Versit Document */ bool QVersitContactExporterPrivate::encodeAvatar( QVersitProperty& property, const QContactDetail& detail) { + property.setName(QLatin1String("PHOTO")); QContactAvatar contactAvatar = static_cast(detail); - bool encoded = false; - QString propertyName; - if (contactAvatar.subType() == QContactAvatar::SubTypeImage) { - propertyName = QLatin1String("PHOTO"); - } else if (contactAvatar.subType() == QContactAvatar::SubTypeAudioRingtone) { - propertyName = QLatin1String("SOUND"); + QUrl imageUrl(contactAvatar.imageUrl()); + // XXX: fix up this mess: checking the scheme here and in encodeContentFromFile, + // organisation logo and ringtone are QStrings but avatar is a QUrl + if (!imageUrl.scheme().isEmpty() && !imageUrl.host().isEmpty()) { + property.insertParameter(QLatin1String("VALUE"), QLatin1String("URL")); + property.setValue(imageUrl.toString()); + return true; } else { - // NOP + return encodeContentFromFile(contactAvatar.imageUrl().toString(), property); } - if (propertyName.length() > 0) { - encoded = encodeContentFromFile(contactAvatar.avatar(), property); - if (!encoded) - encoded = encodeContentFromPixmap(contactAvatar.pixmap(), property); - if (encoded) - property.setName(propertyName); - } - return encoded; } /*! @@ -436,7 +495,7 @@ QContactDetail& detail) { QContactGender gender = static_cast(detail); - setEscapedValue(property,gender.gender()); + property.setValue(gender.gender()); } /*! @@ -448,27 +507,55 @@ { QContactNickname nicknameDetail = static_cast(detail); QVersitProperty property; - property.setName(QLatin1String("X-NICKNAME")); bool found = false; - foreach (QVersitProperty currentProperty, document.properties()) { + // XXX TODO: ensure it works for both X-NICKNAME and NICKNAME + foreach (const QVersitProperty& currentProperty, document.properties()) { if (currentProperty.name() == QLatin1String("X-NICKNAME")) { property = currentProperty; found = true; break; } } - QString value(property.value()); - if (found) - value += QLatin1Char(','); - QString nickname = escape(nicknameDetail.nickname()); - value.append(nickname); + QStringList value(property.variantValue().toStringList()); + if (!found) + property.setName(QLatin1String("X-NICKNAME")); + value.append(nicknameDetail.nickname()); property.setValue(value); + property.setValueType(QVersitProperty::ListType); // Replace the current property document.removeProperties(QLatin1String("X-NICKNAME")); document.addProperty(property); } /*! + * Encodes a contact tag into the Versit Document + */ +void QVersitContactExporterPrivate::encodeTag( + QVersitDocument& document, + const QContactDetail& detail) +{ + QContactTag tagDetail = static_cast(detail); + QVersitProperty property; + bool found = false; + foreach (const QVersitProperty& currentProperty, document.properties()) { + if (currentProperty.name() == QLatin1String("CATEGORIES")) { + property = currentProperty; + found = true; + break; + } + } + QStringList value(property.variantValue().toStringList()); + if (!found) + property.setName(QLatin1String("CATEGORIES")); + value.append(tagDetail.tag()); + property.setValue(value); + property.setValueType(QVersitProperty::ListType); + // Replace the current property + document.removeProperties(QLatin1String("CATEGORIES")); + document.addProperty(property); +} + +/*! * Encode anniversary information into Versit Document */ void QVersitContactExporterPrivate::encodeAnniversary( @@ -500,7 +587,7 @@ if (subTypes.contains(QContactOnlineAccount::SubTypeImpp)) name = QLatin1String("X-IMPP"); property.setName(name); - setEscapedValue(property,onlineAccount.accountUri()); + property.setValue(onlineAccount.accountUri()); } return encoded; } @@ -517,15 +604,15 @@ if (family.spouse().size()) { QVersitProperty property; property.setName(QLatin1String("X-SPOUSE")); - setEscapedValue(property,family.spouse()); + property.setValue(family.spouse()); document.addProperty(property); } if (family.children().size()) { QVersitProperty property; property.setName(QLatin1String("X-CHILDREN")); - QString children = family.children().join(QLatin1String(",")); - setEscapedValue(property,children); + property.setValue(family.children()); + property.setValueType(QVersitProperty::ListType); document.addProperty(property); } return false; @@ -544,7 +631,7 @@ QContactDisplayLabel displayLabel = static_cast(detail); if (displayLabel.label().size()) { encoded = true; - setEscapedValue(property,displayLabel.label()); + property.setValue(displayLabel.label()); } else { QContactDetail contactDetail; for (int i = 0; i < contact.details().count(); i++) { @@ -563,7 +650,7 @@ name.firstName().length() || name.lastName().length()) { encoded = true; - property.setValue(escape(value)); + property.setValue(value); } } return encoded; @@ -635,49 +722,3 @@ property.setValue(value); return encodeContent; } - -/*! - * Encode embedded content from the given \a pixmap into \a property. - */ -bool QVersitContactExporterPrivate::encodeContentFromPixmap(const QPixmap& pixmap, - QVersitProperty& property) -{ - if (pixmap.isNull()) - return false; - QByteArray imageData; - QBuffer buffer(&imageData); - buffer.open(QIODevice::WriteOnly); - // Always store a pixmap as a PNG. - if (!pixmap.save(&buffer, "PNG")) { - return false; - } - property.setValue(imageData); - property.insertParameter(QLatin1String("TYPE"), QLatin1String("PNG")); - return true; -} - -/*! - * Escapes \a value if necessary and sets it to \a property - */ -void QVersitContactExporterPrivate::setEscapedValue( - QVersitProperty& property, - const QString& value) -{ - QString escapedValue(escape(value)); - property.setValue(escapedValue); -} - -/*! - * Escapes \a value if necessary. - * For vCard there is no concept of escaping the property values. - * Starting from 3.0 the property values having certain special - * characters should be escaped. - */ -QString QVersitContactExporterPrivate::escape(const QString& value) -{ - QString escaped(value); - if (mVersitType != QVersitDocument::VCard21Type) { - VersitUtils::backSlashEscape(escaped); - } - return escaped; -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitcontactexporter_p.h --- a/qtmobility/src/versit/qversitcontactexporter_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitcontactexporter_p.h Mon May 03 13:18:40 2010 +0300 @@ -70,9 +70,11 @@ QVersitContactExporterPrivate(); ~QVersitContactExporterPrivate(); - void exportContact(const QContact& contact, QVersitDocument& versitDocument); + bool exportContact(const QContact& contact, QVersitDocument& versitDocument, + QVersitContactExporter::Error* error); protected: + static bool documentContainsName(const QVersitDocument& document); void encodeName(QVersitProperty& property, const QContactDetail& detail); void encodePhoneNumber(QVersitProperty& property, const QContactDetail& detail); void encodeEmail(QVersitProperty& property, const QContactDetail& detail); @@ -86,11 +88,13 @@ void encodeOrganization(QVersitDocument& document, const QContactDetail& detail); void encodeGender(QVersitProperty& property, const QContactDetail& detail); void encodeNickname(QVersitDocument& document, const QContactDetail& detail); + void encodeTag(QVersitDocument& document, const QContactDetail& detail); void encodeAnniversary(QVersitProperty& property, const QContactDetail& detail); bool encodeOnlineAccount(QVersitProperty& property, const QContactDetail& detail); bool encodeFamily(QVersitDocument& document, const QContactDetail& detail); - bool encodeAvatar(QVersitProperty& property, - const QContactDetail& detail); + bool encodeRingtone(QVersitProperty& property, const QContactDetail& detail); + bool encodeThumbnail(QVersitProperty& property, const QContactDetail& detail); + bool encodeAvatar(QVersitProperty& property, const QContactDetail& detail); bool encodeDisplayLabel(QVersitProperty& property, const QContactDetail& detail, const QContact& contact); @@ -99,11 +103,10 @@ const QStringList& contexts, const QStringList& subTypes=QStringList()); bool encodeContentFromFile(const QString& resourcePath, QVersitProperty& property); - bool encodeContentFromPixmap(const QPixmap& pixmap, QVersitProperty& property); - void setEscapedValue(QVersitProperty& property,const QString& value); - QString escape(const QString& value); public: // Data + QList mDocuments; + QMap mErrors; QVersitContactExporterDetailHandler* mDetailHandler; QVersitDefaultResourceHandler* mDefaultResourceHandler; QVersitResourceHandler* mResourceHandler; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitcontactimporter.cpp --- a/qtmobility/src/versit/qversitcontactimporter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitcontactimporter.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,6 +39,7 @@ ** ****************************************************************************/ +#include "qcontactmanagerengine.h" #include "qversitcontactimporter.h" #include "qversitcontactimporter_p.h" #include "qversitdocument.h" @@ -68,7 +69,7 @@ * Process \a property and update \a contact with the corresponding QContactDetail(s). * \a document provides the context within which the property was found. * \a contactIndex specifies the position that \a contact will take in the list returned by - * \l QVersitContactImporter::importContacts(). + * \l QVersitContactImporter::importDocuments(). * * Returns true if the property has been handled and requires no further processing, false * otherwise. @@ -82,7 +83,7 @@ * Process \a property and update \a contact with the corresponding QContactDetail(s). * \a document provides the context within which the property was found. * \a contactIndex specifies the position that \a contact will take in the list returned by - * \l QVersitContactImporter::importContacts(). + * \l QVersitContactImporter::importDocuments(). * \a alreadyProcessed is true if the detail has already been processed either by * \l preProcessProperty() or by QVersitContactImporter itself. * @@ -116,9 +117,27 @@ * An example usage of QVersitContactImporter * \snippet ../../doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp Import example * + * \section1 Importing categories + * The importer imports the vCard CATEGORIES property by converting each category to a QContactTag. + * Some managers may not have support for QContactTag, but instead support categorization using the + * \l{QContactRelationship::HasMember}{HasMember} QContactRelationship along with contacts of type + * \l{QContactType::TypeGroup}{TypeGroup}. For these backends, if the categorization information + * needs to be retained through group relationships, extra work needs to be done to do the + * conversion. Below is some example code that does this translation. + * + * \snippet ../../doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp Import relationship example + * * \sa QVersitDocument, QVersitReader, QVersitContactImporterPropertyHandler */ +/*! + \enum QVersitContactImporter::Error + This enum specifies an error that occurred during the most recent call to importDocuments() + \value NoError The most recent operation was successful + \value InvalidDocumentError One of the documents is not a vCard + \value EmptyDocumentError One of the documents is empty + */ + /*! Constructs a new importer */ QVersitContactImporter::QVersitContactImporter() : d(new QVersitContactImporterPrivate) @@ -132,18 +151,57 @@ } /*! - * Converts \a documents into a corresponding list of QContacts. + * Converts \a documents into a corresponding list of QContacts. After calling this, the converted + * contacts can be retrieved by calling contacts(). + * Returns true on success. If any of the documents cannot be imported as contacts (eg. they aren't + * vCards), false is returned and errors() will return a list describing the errors that occurred. + * The successfully imported documents will still be available via contacts(). + * + * \sa contacts(), errors() */ -QList QVersitContactImporter::importContacts(const QList& documents) +bool QVersitContactImporter::importDocuments(const QList& documents) { - QList list; - int i = 0; - foreach (QVersitDocument document, documents) { - list.append(d->importContact(document, i)); - i++; + int documentIndex = 0; + int contactIndex = 0; + d->mContacts.clear(); + d->mErrors.clear(); + bool ok = true; + foreach (const QVersitDocument& document, documents) { + QContact contact; + QVersitContactImporter::Error error; + if (d->importContact(document, contactIndex, &contact, &error)) { + d->mContacts.append(contact); + contactIndex++; + } else { + d->mErrors.insert(documentIndex, error); + ok = false; + } + documentIndex++; } - return list; + return ok; +} + +/*! + * Returns the contacts imported in the most recent call to importDocuments(). + * + * \sa importDocuments() + */ +QList QVersitContactImporter::contacts() const +{ + return d->mContacts; +} + +/*! + * Returns the map of errors encountered in the most recent call to importDocuments(). The key is + * the index into the input list of documents and the value is the error that occurred on that + * document. + * + * \sa importDocuments() + */ +QMap QVersitContactImporter::errors() const +{ + return d->mErrors; } /*! diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitcontactimporter.h --- a/qtmobility/src/versit/qversitcontactimporter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitcontactimporter.h Mon May 03 13:18:40 2010 +0300 @@ -73,11 +73,18 @@ class Q_VERSIT_EXPORT QVersitContactImporter { public: + enum Error { + NoError = 0, + InvalidDocumentError, + EmptyDocumentError + }; + QVersitContactImporter(); ~QVersitContactImporter(); - // XXX We need some way of importing/exporting groups and "self-contact" from vCard. - QList importContacts(const QList& documents); + bool importDocuments(const QList& documents); + QList contacts() const; + QMap errors() const; void setPropertyHandler(QVersitContactImporterPropertyHandler* handler); QVersitContactImporterPropertyHandler* propertyHandler() const; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitcontactimporter_p.cpp --- a/qtmobility/src/versit/qversitcontactimporter_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitcontactimporter_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,6 +45,7 @@ #include "qversitproperty.h" #include "qmobilityglobal.h" +#include #include #include #include @@ -65,6 +66,8 @@ #include #include #include +#include +#include #include #include @@ -122,24 +125,35 @@ /*! * Generates a QContact from \a versitDocument. */ -QContact QVersitContactImporterPrivate::importContact( - const QVersitDocument& document, int contactIndex) +bool QVersitContactImporterPrivate::importContact( + const QVersitDocument& document, int contactIndex, QContact* contact, + QVersitContactImporter::Error* error) { - QContact contact; + if (document.type() != QVersitDocument::VCard21Type + && document.type() != QVersitDocument::VCard30Type) { + *error = QVersitContactImporter::InvalidDocumentError; + return false; + } const QList properties = document.properties(); + if (properties.size() == 0) { + *error = QVersitContactImporter::EmptyDocumentError; + return false; + } + // First, do the properties with PREF set so they appear first in the contact details foreach (const QVersitProperty& property, properties) { if (property.parameters().contains(QLatin1String("TYPE"), QLatin1String("PREF"))) - importProperty(document, property, contactIndex, &contact); + importProperty(document, property, contactIndex, contact); } // ... then, do the rest of the properties. foreach (const QVersitProperty& property, properties) { if (!property.parameters().contains(QLatin1String("TYPE"), QLatin1String("PREF"))) - importProperty(document, property, contactIndex, &contact); + importProperty(document, property, contactIndex, contact); } - contact.setType(QContactType::TypeContact); - return contact; + contact->setType(QContactType::TypeContact); + QContactManagerEngine::setContactDisplayLabel(contact, QVersitContactImporterPrivate::synthesizedDisplayLabel(*contact)); + return true; } void QVersitContactImporterPrivate::importProperty( @@ -166,8 +180,10 @@ success = createOrganization(property, contact); } else if (detailDefinitionName == QContactNickname::DefinitionName) { success = createNicknames(property, contact); - } else if (detailDefinitionName == QContactAvatar::DefinitionName) { - success = createAvatar(property,detailDefinition.second, contact); + } else if (detailDefinitionName == QContactRingtone::DefinitionName) { + success = createRingtone(property, contact); + } else if (detailDefinitionName == QContactThumbnail::DefinitionName) { + success = createThumbnail(property, contact); } else if (detailDefinitionName == QContactTimestamp::DefinitionName) { success = createTimeStamp(property, contact); } else if (detailDefinitionName == QContactPhoneNumber::DefinitionName) { @@ -178,9 +194,11 @@ success = createFamily(property, contact); } else if (detailDefinitionName == QContactOnlineAccount::DefinitionName) { success = createOnlineAccount(property, contact); + } else if (detailDefinitionName == QContactTag::DefinitionName) { + success = createTags(property, contact); } else if (detailDefinitionName == QContactDisplayLabel::DefinitionName) { // This actually sets the QContactName's customLabel field (not QContactDisplayLabel) - success = createLabel(property, contact); + success = createCustomLabel(property, contact); } else { // Look up mDetailMappings for a simple mapping from property to detail. success = createNameValueDetail(property, contact); @@ -199,14 +217,18 @@ QContactDetail detail = contact->detail(QContactName::DefinitionName); if (!detail.isEmpty()) { // If multiple name properties exist, - // discard all except the first occurence + // discard all except the first occurrence if (!detail.value(QContactName::FieldFirstName).isEmpty()) return false; else name = QContactName(static_cast(detail)); } - QStringList values = property.value().split(QLatin1Char(';')); + QVariant variant = property.variantValue(); + if (property.valueType() != QVersitProperty::CompoundType + || variant.type() != QVariant::StringList) + return false; + QStringList values = variant.toStringList(); name.setLastName(takeFirst(values)); name.setFirstName(takeFirst(values)); name.setMiddleName(takeFirst(values)); @@ -239,7 +261,11 @@ { QContactAddress address; - QStringList addressParts = property.value().split(QLatin1Char(';')); + QVariant variant = property.variantValue(); + if (property.valueType() != QVersitProperty::CompoundType + || variant.type() != QVariant::StringList) + return false; + QStringList addressParts = variant.toStringList(); address.setPostOfficeBox(takeFirst(addressParts)); // There is no setter for the Extended Address in QContactAddress: if (!addressParts.isEmpty()) @@ -266,7 +292,7 @@ mDetailMappings.value(property.name()); QString fieldName = detailNameAndFieldName.second; QList organizations = contact->details(); - foreach(QContactOrganization current, organizations) { + foreach(const QContactOrganization& current, organizations) { if (current.value(fieldName).length() == 0) { organization = current; break; @@ -278,7 +304,7 @@ organization.setTitle(property.value()); } else if (fieldName == QContactOrganization::FieldRole) { organization.setRole(property.value()); - } else if (fieldName == QContactOrganization::FieldLogo) { + } else if (fieldName == QContactOrganization::FieldLogoUrl) { setOrganizationLogo(organization, property); } else if (fieldName == QContactOrganization::FieldAssistantName) { organization.setAssistantName(property.value()); @@ -296,16 +322,12 @@ void QVersitContactImporterPrivate::setOrganizationNames( QContactOrganization& organization, const QVersitProperty& property) const { - QString value = property.value(); - int firstSemicolon = value.indexOf(QLatin1Char(';')); - if (firstSemicolon >= 0) { - organization.setName(value.left(firstSemicolon)); - QString departmentsStr(value.mid(firstSemicolon+1)); - QStringList departments = - departmentsStr.split(QLatin1Char(';'), QString::SkipEmptyParts); - organization.setDepartment(departments); - } else { - organization.setName(value); + QVariant variant = property.variantValue(); + if (property.valueType() == QVersitProperty::CompoundType + && variant.type() == QVariant::StringList) { + QStringList values = variant.toStringList(); + organization.setName(takeFirst(values)); + organization.setDepartment(values); } } @@ -319,7 +341,7 @@ QByteArray data; saveDataFromProperty(property, &location, &data); if (!location.isEmpty()) - org.setLogo(location); + org.setLogoUrl(QUrl(location)); } /*! @@ -379,12 +401,36 @@ bool QVersitContactImporterPrivate::createNicknames( const QVersitProperty& property, QContact* contact) const { - QStringList values = property.value().split(QLatin1Char(','), QString::SkipEmptyParts); + QVariant variant = property.variantValue(); + if (property.valueType() != QVersitProperty::ListType + || variant.type() != QVariant::StringList) + return false; + QStringList values = variant.toStringList(); QStringList contexts = extractContexts(property); - foreach(QString value, values) { + foreach(const QString& value, values) { QContactNickname nickName; nickName.setNickname(value); - saveDetailWithContext(contact, &nickName, extractContexts(property)); + saveDetailWithContext(contact, &nickName, contexts); + } + return true; +} + +/*! + * Creates QContactTags from \a property and adds them to \a contact + */ +bool QVersitContactImporterPrivate::createTags( + const QVersitProperty& property, QContact* contact) const +{ + QVariant variant = property.variantValue(); + if (property.valueType() != QVersitProperty::ListType + || variant.type() != QVariant::StringList) + return false; + QStringList values = variant.toStringList(); + QStringList contexts = extractContexts(property); + foreach(const QString& value, values) { + QContactTag tag; + tag.setTag(value); + saveDetailWithContext(contact, &tag, contexts); } return true; } @@ -416,31 +462,50 @@ return true; } +bool QVersitContactImporterPrivate::createRingtone(const QVersitProperty &property, + QContact *contact) const +{ + QString location; + QByteArray data; + if (saveDataFromProperty(property, &location, &data) && !location.isEmpty()) { + QContactRingtone ringtone; + ringtone.setAudioRingtoneUrl(location); + saveDetailWithContext(contact, &ringtone, extractContexts(property)); + return true; + } + return false; +} + /*! * Creates a QContactAvatar from \a property */ -bool QVersitContactImporterPrivate::createAvatar( - const QVersitProperty& property, const QString& subType, QContact* contact) const +bool QVersitContactImporterPrivate::createThumbnail( + const QVersitProperty& property, QContact* contact) const { QString location; QByteArray data; - if (!(saveDataFromProperty(property, &location, &data))) - return false; + bool success = false; - QContactAvatar avatar; - if (!location.isEmpty()) - avatar.setAvatar(location); - // Creating a pixmap in a non-GUI thread crashes on S60. - // XXX reenable this when the QtContacts stores QImages. -// if (subType == QContactAvatar::SubTypeImage && !data.isEmpty()) { -// QPixmap pixmap; -// if (pixmap.loadFromData(data)) -// avatar.setPixmap(pixmap); -// } - avatar.setSubType(subType); + if (saveDataFromProperty(property, &location, &data) && !location.isEmpty()) { + QContactAvatar avatar; + avatar.setImageUrl(location); + saveDetailWithContext(contact, &avatar, extractContexts(property)); + success = true; + } + if (!data.isEmpty()) { + QImage image; + if (image.loadFromData(data)) { + QContactThumbnail thumbnail = contact->detail(); + // In the case of multiple thumbnails, pick the smallest one. + if (thumbnail.isEmpty() || image.byteCount() < thumbnail.thumbnail().byteCount()) { + thumbnail.setThumbnail(image); + } + saveDetailWithContext(contact, &thumbnail, extractContexts(property)); + success = true; + } + } - saveDetailWithContext(contact, &avatar, extractContexts(property)); - return true; + return success; } /*! @@ -450,7 +515,11 @@ const QVersitProperty& property, QContact* contact) const { QContactGeoLocation geo; - QStringList values = property.value().split(QLatin1Char(',')); + QVariant variant = property.variantValue(); + if (property.valueType() != QVersitProperty::CompoundType + || variant.type() != QVariant::StringList) + return false; + QStringList values = variant.toStringList(); geo.setLongitude(takeFirst(values).toDouble()); geo.setLatitude(takeFirst(values).toDouble()); @@ -469,7 +538,12 @@ if (property.name() == QLatin1String("X-SPOUSE")) { family.setSpouse(val); } else if (property.name() == QLatin1String("X-CHILDREN")) { - family.setChildren(val.split(QLatin1String(","))); + QVariant variant = property.variantValue(); + if (property.valueType() != QVersitProperty::ListType + || variant.type() != QVariant::StringList) + return false; + QStringList values = variant.toStringList(); + family.setChildren(values); } saveDetailWithContext(contact, &family, extractContexts(property)); @@ -497,7 +571,7 @@ /*! * Creates a simple name-value contact detail. */ -bool QVersitContactImporterPrivate::createLabel( +bool QVersitContactImporterPrivate::createCustomLabel( const QVersitProperty& property, QContact* contact) const { QContactName name; @@ -521,7 +595,7 @@ QStringList types = property.parameters().values(QLatin1String("TYPE")); QStringList contexts; - foreach (QString type, types) { + foreach (const QString& type, types) { QString value = mContextMappings.value(type); if (value.length() > 0) contexts.append(value); @@ -538,7 +612,7 @@ QStringList types = property.parameters().values(QLatin1String("TYPE")); QStringList subTypes; - foreach (QString type, types) { + foreach (const QString& type, types) { QString subType = mSubTypeMappings.value(type); if (subType.length() > 0) subTypes += subType; @@ -620,3 +694,66 @@ detail->setContexts(contexts); contact->saveDetail(detail); } + +/*! Synthesize the display label from the name of the contact, or, failing that, the nickname of +the contact, or failing that, the organisation of the contact. +Returns the synthesized display label. + */ +QString QVersitContactImporterPrivate::synthesizedDisplayLabel(const QContact& contact) +{ + /* XXX This is copied and modified from QContactManagerEngine. This should be made a public + static function in QCME and called here */ + QList allNames = contact.details(); + + const QLatin1String space(" "); + + // synthesize the display label from the name. + foreach (const QContactName& name, allNames) { + if (!name.customLabel().isEmpty()) { + // default behaviour is to allow the user to define a custom display label. + return name.customLabel(); + } + + QString result; + if (!name.value(QContactName::FieldPrefix).trimmed().isEmpty()) { + result += name.value(QContactName::FieldPrefix); + } + if (!name.value(QContactName::FieldFirstName).trimmed().isEmpty()) { + if (!result.isEmpty()) + result += space; + result += name.value(QContactName::FieldFirstName); + } + if (!name.value(QContactName::FieldMiddleName).trimmed().isEmpty()) { + if (!result.isEmpty()) + result += space; + result += name.value(QContactName::FieldMiddleName); + } + if (!name.value(QContactName::FieldLastName).trimmed().isEmpty()) { + if (!result.isEmpty()) + result += space; + result += name.value(QContactName::FieldLastName); + } + if (!name.value(QContactName::FieldSuffix).trimmed().isEmpty()) { + if (!result.isEmpty()) + result += space; + result += name.value(QContactName::FieldSuffix); + } + if (!result.isEmpty()) + return result; + } + + QList allNicknames = contact.details(); + foreach (const QContactNickname& nickname, allNicknames) { + if (!nickname.nickname().isEmpty()) + return nickname.nickname(); + } + + /* Well, we had no non empty names. if we have orgs, fall back to those */ + QList allOrgs = contact.details(); + foreach (const QContactOrganization& org, allOrgs) { + if (!org.name().isEmpty()) + return org.name(); + } + + return QString(); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitcontactimporter_p.h --- a/qtmobility/src/versit/qversitcontactimporter_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitcontactimporter_p.h Mon May 03 13:18:40 2010 +0300 @@ -74,9 +74,12 @@ QVersitContactImporterPrivate(); ~QVersitContactImporterPrivate(); - QContact importContact(const QVersitDocument& versitDocument, int contactIndex); + bool importContact(const QVersitDocument& versitDocument, int contactIndex, + QContact* contact, QVersitContactImporter::Error* error); QList unconvertedVersitProperties(); + static QString synthesizedDisplayLabel(const QContact& contact); + private: void importProperty(const QVersitDocument& document, const QVersitProperty& property, int contactIndex, QContact* contact) const; @@ -90,12 +93,14 @@ bool createAnniversary(const QVersitProperty& property, QContact* contact) const; bool createBirthday(const QVersitProperty& property, QContact* contact) const; bool createNicknames(const QVersitProperty& property, QContact* contact) const; + bool createTags(const QVersitProperty& property, QContact* contact) const; bool createOnlineAccount(const QVersitProperty& property, QContact* contact) const; - bool createAvatar(const QVersitProperty& property, const QString& subType, QContact* contact) const; + bool createRingtone(const QVersitProperty& property, QContact* contact) const; + bool createThumbnail(const QVersitProperty& property, QContact* contact) const; bool createGeoLocation(const QVersitProperty& property, QContact* contact) const; bool createFamily(const QVersitProperty& property, QContact* contact) const; bool createNameValueDetail(const QVersitProperty& property, QContact* contact) const; - bool createLabel(const QVersitProperty& property, QContact* contact) const; + bool createCustomLabel(const QVersitProperty& property, QContact* contact) const; QStringList extractContexts(const QVersitProperty& property) const; QStringList extractSubTypes(const QVersitProperty& property) const; QString takeFirst(QList& list) const; @@ -106,11 +111,12 @@ QContact* contact, QContactDetail* detail, const QStringList& contexts) const; public: // Data + QList mContacts; + QMap mErrors; QVersitContactImporterPropertyHandler* mPropertyHandler; QVersitDefaultResourceHandler* mDefaultResourceHandler; QVersitResourceHandler* mResourceHandler; -private: // Data QHash > mDetailMappings; QHash mContextMappings; QHash mSubTypeMappings; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitdefs_p.h --- a/qtmobility/src/versit/qversitdefs_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitdefs_p.h Mon May 03 13:18:40 2010 +0300 @@ -75,6 +75,9 @@ #include #include #include +#include +#include +#include QTM_BEGIN_NAMESPACE @@ -88,64 +91,66 @@ //! [Property name mappings] // Mappings from versit property names to Qt contact details const VersitContactDetailMapping versitContactDetailMappings[] = { - {"ADR", QContactAddress::DefinitionName.str, + {"ADR", QContactAddress::DefinitionName.latin1(), ""}, - {"BDAY", QContactBirthday::DefinitionName.str, - QContactBirthday::FieldBirthday.str}, - {"FN", QContactDisplayLabel::DefinitionName.str, + {"BDAY", QContactBirthday::DefinitionName.latin1(), + QContactBirthday::FieldBirthday.latin1()}, + {"CATEGORIES", QContactTag::DefinitionName.latin1(), + QContactTag::FieldTag.latin1()}, + {"FN", QContactDisplayLabel::DefinitionName.latin1(), ""}, - {"GEO", QContactGeoLocation::DefinitionName.str, + {"GEO", QContactGeoLocation::DefinitionName.latin1(), ""}, - {"EMAIL", QContactEmailAddress::DefinitionName.str, - QContactEmailAddress::FieldEmailAddress.str}, - {"IMPP", QContactOnlineAccount::DefinitionName.str, - QContactOnlineAccount::SubTypeImpp.str}, - {"LOGO", QContactOrganization::DefinitionName.str, - QContactOrganization::FieldLogo.str}, - {"N", QContactName::DefinitionName.str, + {"EMAIL", QContactEmailAddress::DefinitionName.latin1(), + QContactEmailAddress::FieldEmailAddress.latin1()}, + {"IMPP", QContactOnlineAccount::DefinitionName.latin1(), + QContactOnlineAccount::SubTypeImpp.latin1()}, + {"LOGO", QContactOrganization::DefinitionName.latin1(), + QContactOrganization::FieldLogoUrl.latin1()}, + {"N", QContactName::DefinitionName.latin1(), ""}, - {"NICKNAME", QContactNickname::DefinitionName.str, - QContactNickname::FieldNickname.str}, - {"NOTE", QContactNote::DefinitionName.str, - QContactNote::FieldNote.str}, - {"ORG", QContactOrganization::DefinitionName.str, - QContactOrganization::FieldName.str}, - {"PHOTO", QContactAvatar::DefinitionName.str, - QContactAvatar::SubTypeImage.str}, - {"REV", QContactTimestamp::DefinitionName.str, + {"NICKNAME", QContactNickname::DefinitionName.latin1(), + QContactNickname::FieldNickname.latin1()}, + {"NOTE", QContactNote::DefinitionName.latin1(), + QContactNote::FieldNote.latin1()}, + {"ORG", QContactOrganization::DefinitionName.latin1(), + QContactOrganization::FieldName.latin1()}, + {"PHOTO", QContactThumbnail::DefinitionName.latin1(), + ""}, + {"REV", QContactTimestamp::DefinitionName.latin1(), ""}, - {"ROLE", QContactOrganization::DefinitionName.str, - QContactOrganization::FieldRole.str}, - {"SOUND", QContactAvatar::DefinitionName.str, - QContactAvatar::SubTypeAudioRingtone.str}, - {"TEL", QContactPhoneNumber::DefinitionName.str, - QContactPhoneNumber::FieldNumber.str}, - {"TITLE", QContactOrganization::DefinitionName.str, - QContactOrganization::FieldTitle.str}, - {"UID", QContactGuid::DefinitionName.str, - QContactGuid::FieldGuid.str}, - {"URL", QContactUrl::DefinitionName.str, - QContactUrl::FieldUrl.str}, - {"X-ANNIVERSARY", QContactAnniversary::DefinitionName.str, + {"ROLE", QContactOrganization::DefinitionName.latin1(), + QContactOrganization::FieldRole.latin1()}, + {"SOUND", QContactRingtone::DefinitionName.latin1(), + QContactRingtone::FieldAudioRingtoneUrl.latin1()}, + {"TEL", QContactPhoneNumber::DefinitionName.latin1(), + QContactPhoneNumber::FieldNumber.latin1()}, + {"TITLE", QContactOrganization::DefinitionName.latin1(), + QContactOrganization::FieldTitle.latin1()}, + {"UID", QContactGuid::DefinitionName.latin1(), + QContactGuid::FieldGuid.latin1()}, + {"URL", QContactUrl::DefinitionName.latin1(), + QContactUrl::FieldUrl.latin1()}, + {"X-ANNIVERSARY", QContactAnniversary::DefinitionName.latin1(), ""}, - {"X-ASSISTANT", QContactOrganization::DefinitionName.str, - QContactOrganization::FieldAssistantName.str}, - {"X-CHILDREN", QContactFamily::DefinitionName.str, - QContactFamily::FieldChildren.str}, - {"X-EPOCSECONDNAME",QContactNickname::DefinitionName.str, - QContactNickname::FieldNickname.str}, - {"X-GENDER", QContactGender::DefinitionName.str, - QContactGender::FieldGender.str}, - {"X-IMPP", QContactOnlineAccount::DefinitionName.str, - QContactOnlineAccount::SubTypeImpp.str}, - {"X-JABBER", QContactOnlineAccount::DefinitionName.str, - QContactOnlineAccount::SubTypeImpp.str}, - {"X-NICKNAME", QContactNickname::DefinitionName.str, - QContactNickname::FieldNickname.str}, - {"X-SIP", QContactOnlineAccount::DefinitionName.str, + {"X-ASSISTANT", QContactOrganization::DefinitionName.latin1(), + QContactOrganization::FieldAssistantName.latin1()}, + {"X-CHILDREN", QContactFamily::DefinitionName.latin1(), + QContactFamily::FieldChildren.latin1()}, + {"X-EPOCSECONDNAME",QContactNickname::DefinitionName.latin1(), + QContactNickname::FieldNickname.latin1()}, + {"X-GENDER", QContactGender::DefinitionName.latin1(), + QContactGender::FieldGender.latin1()}, + {"X-IMPP", QContactOnlineAccount::DefinitionName.latin1(), + QContactOnlineAccount::SubTypeImpp.latin1()}, + {"X-JABBER", QContactOnlineAccount::DefinitionName.latin1(), + QContactOnlineAccount::SubTypeImpp.latin1()}, + {"X-NICKNAME", QContactNickname::DefinitionName.latin1(), + QContactNickname::FieldNickname.latin1()}, + {"X-SIP", QContactOnlineAccount::DefinitionName.latin1(), ""}, - {"X-SPOUSE", QContactFamily::DefinitionName.str, - QContactFamily::FieldSpouse.str} + {"X-SPOUSE", QContactFamily::DefinitionName.latin1(), + QContactFamily::FieldSpouse.latin1()} }; //! [Property name mappings] @@ -157,27 +162,27 @@ // Mappings from versit TYPE parameters to Qt contact detail contexts const VersitMapping versitContextMappings[] = { - {"HOME", QContactDetail::ContextHome.str}, - {"WORK", QContactDetail::ContextWork.str}, + {"HOME", QContactDetail::ContextHome.latin1()}, + {"WORK", QContactDetail::ContextWork.latin1()}, }; //! [Property type parameter mappings] // Mappings from versit TYPE parameters to Qt contact detail subtypes const VersitMapping versitSubTypeMappings[] = { - {"DOM", QContactAddress::SubTypeDomestic.str}, - {"INTL", QContactAddress::SubTypeInternational.str}, - {"POSTAL", QContactAddress::SubTypePostal.str}, - {"PARCEL", QContactAddress::SubTypeParcel.str}, - {"VOICE", QContactPhoneNumber::SubTypeVoice.str}, - {"CELL", QContactPhoneNumber::SubTypeMobile.str}, - {"MODEM", QContactPhoneNumber::SubTypeModem.str}, - {"CAR", QContactPhoneNumber::SubTypeCar.str}, - {"VIDEO", QContactPhoneNumber::SubTypeVideo.str}, - {"FAX", QContactPhoneNumber::SubTypeFacsimile.str}, - {"BBS", QContactPhoneNumber::SubTypeBulletinBoardSystem.str}, - {"PAGER", QContactPhoneNumber::SubTypePager.str}, - {"SWIS", QContactOnlineAccount::SubTypeVideoShare.str}, - {"VOIP", QContactOnlineAccount::SubTypeSipVoip.str} + {"DOM", QContactAddress::SubTypeDomestic.latin1()}, + {"INTL", QContactAddress::SubTypeInternational.latin1()}, + {"POSTAL", QContactAddress::SubTypePostal.latin1()}, + {"PARCEL", QContactAddress::SubTypeParcel.latin1()}, + {"VOICE", QContactPhoneNumber::SubTypeVoice.latin1()}, + {"CELL", QContactPhoneNumber::SubTypeMobile.latin1()}, + {"MODEM", QContactPhoneNumber::SubTypeModem.latin1()}, + {"CAR", QContactPhoneNumber::SubTypeCar.latin1()}, + {"VIDEO", QContactPhoneNumber::SubTypeVideo.latin1()}, + {"FAX", QContactPhoneNumber::SubTypeFax.latin1()}, + {"BBS", QContactPhoneNumber::SubTypeBulletinBoardSystem.latin1()}, + {"PAGER", QContactPhoneNumber::SubTypePager.latin1()}, + {"SWIS", QContactOnlineAccount::SubTypeVideoShare.latin1()}, + {"VOIP", QContactOnlineAccount::SubTypeSipVoip.latin1()} }; //! [Property type parameter mappings] diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitdocument.cpp --- a/qtmobility/src/versit/qversitdocument.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitdocument.cpp Mon May 03 13:18:40 2010 +0300 @@ -45,7 +45,7 @@ #include -QTM_USE_NAMESPACE +QTM_BEGIN_NAMESPACE /*! \class QVersitDocument @@ -75,6 +75,13 @@ { } +/*! Constructs a new empty document with the type set to \a type */ +QVersitDocument::QVersitDocument(VersitType type) : d(new QVersitDocumentPrivate()) +{ + d->mVersitType = type; +} + + /*! Constructs a document that is a copy of \a other */ QVersitDocument::QVersitDocument(const QVersitDocument& other) : d(other.d) { @@ -106,6 +113,27 @@ return !(*this == other); } +/*! Returns the hash value for \a key. */ +uint qHash(const QVersitDocument &key) +{ + int hash = QT_PREPEND_NAMESPACE(qHash)(key.type()); + foreach (const QVersitProperty& property, key.properties()) { + hash += qHash(property); + } + return hash; +} + +#ifndef QT_NO_DEBUG_STREAM +QDebug operator<<(QDebug dbg, const QVersitDocument& document) +{ + dbg.nospace() << "QVersitDocument(" << document.type() << ')'; + foreach (const QVersitProperty& property, document.properties()) { + dbg.space() << '\n' << property; + } + return dbg.maybeSpace(); +} +#endif + /*! * Sets the versit document type to \a type. */ @@ -177,3 +205,5 @@ { return d->mProperties.count() == 0 && d->mVersitType == QVersitDocument::InvalidType; } + +QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitdocument.h --- a/qtmobility/src/versit/qversitdocument.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitdocument.h Mon May 03 13:18:40 2010 +0300 @@ -47,6 +47,7 @@ #include #include #include +#include QT_BEGIN_NAMESPACE class QTextCodec; @@ -60,21 +61,21 @@ class Q_VERSIT_EXPORT QVersitDocument { public: + enum VersitType { + InvalidType, + VCard21Type, // vCard version 2.1 + VCard30Type // vCard version 3.0 (RFC 2426) + }; + QVersitDocument(); QVersitDocument(const QVersitDocument& other); + QVersitDocument(VersitType type); ~QVersitDocument(); QVersitDocument& operator=(const QVersitDocument& other); bool operator==(const QVersitDocument& other) const; bool operator!=(const QVersitDocument& other) const; - /*! Versit document type */ - enum VersitType { - InvalidType, - VCard21Type, // vCard version 2.1 - VCard30Type // vCard version 3.0 (RFC 2426) - }; - // metadata about the versit document itself. void setType(VersitType type); VersitType type() const; @@ -92,6 +93,11 @@ QSharedDataPointer d; }; +Q_VERSIT_EXPORT uint qHash(const QVersitDocument& key); +#ifndef QT_NO_DEBUG_STREAM +Q_VERSIT_EXPORT QDebug operator<<(QDebug dbg, const QVersitDocument& property); +#endif + QTM_END_NAMESPACE Q_DECLARE_METATYPE(QTM_PREPEND_NAMESPACE(QVersitDocument)) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitdocument_p.h --- a/qtmobility/src/versit/qversitdocument_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitdocument_p.h Mon May 03 13:18:40 2010 +0300 @@ -60,7 +60,9 @@ #include #include +QT_BEGIN_NAMESPACE class QTextCodec; +QT_END_NAMESPACE QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitdocumentwriter_p.cpp --- a/qtmobility/src/versit/qversitdocumentwriter_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitdocumentwriter_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -117,7 +117,7 @@ writeCrlf(); writeString(QLatin1String("VERSION:" + mVersion)); writeCrlf(); - foreach (QVersitProperty property, properties) { + foreach (const QVersitProperty& property, properties) { encodeVersitProperty(property); } writeString(QLatin1String("END:" + mDocumentType)); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitdocumentwriter_p.h --- a/qtmobility/src/versit/qversitdocumentwriter_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitdocumentwriter_p.h Mon May 03 13:18:40 2010 +0300 @@ -57,9 +57,11 @@ #include #include +QT_BEGIN_NAMESPACE class QIODevice; class QTextCodec; class QTextEncoder; +QT_END_NAMESPACE QTM_BEGIN_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitproperty.cpp --- a/qtmobility/src/versit/qversitproperty.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitproperty.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,7 +46,7 @@ #include #include -QTM_USE_NAMESPACE +QTM_BEGIN_NAMESPACE /*! \class QVersitProperty @@ -71,6 +71,28 @@ \sa QVersitDocument */ +/*! + \enum QVersitProperty::ValueType + Describes the type of data held in the property's value. + + The vCard and iCalendar specifications allows a property value to hold a string, binary data, or a + nested document. String values can either be unstructured or structured. Structured strings can + be either of compound type or list type. A compound value is one that is delimited by semicolons, + allows empty components, and has a property-specific cardinality and ordering. A list value is + one that is delimited by commas, does not have empty components, and has no restrictions on + cardinality or ordering. + + \value PlainType The property value holds an unstructured string and can be retrieved with + QVersitProperty::value() + \value CompoundType The property value holds a compound string and can be retrieved with + QVersitProperty::value() + \value ListType The property value holds a list of strings and can be retrieved with + QVersitProperty::value() + \value BinaryType The property value holds a binary value and can be retrieved with + QVersitProperty::value() + \value VersitDocumentType The property value holds a nested Versit document and can be retrieved + with QVersitProperty::value() + */ /*! Constructs a new empty property */ QVersitProperty::QVersitProperty() : d(new QVersitPropertyPrivate()) @@ -110,13 +132,51 @@ return !(*this == other); } +/*! Returns the hash value for \a key. */ +uint qHash(const QVersitProperty &key) +{ + uint hash = QT_PREPEND_NAMESPACE(qHash)(key.name()) + QT_PREPEND_NAMESPACE(qHash)(key.value()); + foreach (const QString& group, key.groups()) { + hash += QT_PREPEND_NAMESPACE(qHash)(group); + } + QHash::const_iterator it = key.parameters().constBegin(); + QHash::const_iterator end = key.parameters().constEnd(); + while (it != end) { + hash += QT_PREPEND_NAMESPACE(qHash)(it.key()) + QT_PREPEND_NAMESPACE(qHash)(it.value()); + ++it; + } + return hash; +} + +#ifndef QT_NO_DEBUG_STREAM +QDebug operator<<(QDebug dbg, const QVersitProperty& property) +{ + QStringList groups = property.groups(); + QString name = property.name(); + QMultiHash parameters = property.parameters(); + QString value = property.value(); + dbg.nospace() << "QVersitProperty("; + foreach (const QString& group, groups) { + dbg.nospace() << group << '.'; + } + dbg.nospace() << name; + QHash::const_iterator it; + for (it = parameters.constBegin(); it != parameters.constEnd(); ++it) { + dbg.nospace() << ';' << it.key() << '=' << it.value(); + } + dbg.nospace() << ':' << value; + dbg.nospace() << ')'; + return dbg.maybeSpace(); +} +#endif + /*! * Sets the groups in the property to the given list of \a groups. */ void QVersitProperty::setGroups(const QStringList& groups) { d->mGroups.clear(); - foreach (QString group, groups) { + foreach (const QString& group, groups) { d->mGroups.append(group); } } @@ -249,6 +309,22 @@ } /*! + * Sets the type of value held in the property to \a type. + */ +void QVersitProperty::setValueType(QVersitProperty::ValueType type) +{ + d->mValueType = type; +} + +/*! + * Returns the type of value held in the property. + */ +QVersitProperty::ValueType QVersitProperty::valueType() const +{ + return d->mValueType; +} + +/*! * Returns true if the property is empty. */ bool QVersitProperty::isEmpty() const @@ -269,3 +345,5 @@ d->mValue.clear(); d->mParameters.clear(); } + +QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitproperty.h --- a/qtmobility/src/versit/qversitproperty.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitproperty.h Mon May 03 13:18:40 2010 +0300 @@ -61,6 +61,14 @@ class Q_VERSIT_EXPORT QVersitProperty { public: + enum ValueType { + PlainType, + CompoundType, + ListType, + BinaryType, + VersitDocumentType + }; + QVersitProperty(); QVersitProperty(const QVersitProperty& other); ~QVersitProperty(); @@ -90,6 +98,9 @@ } QString value() const; + void setValueType(ValueType type); + ValueType valueType() const; + bool isEmpty() const; void clear(); @@ -98,6 +109,11 @@ QSharedDataPointer d; }; +Q_VERSIT_EXPORT uint qHash(const QVersitProperty& key); +#ifndef QT_NO_DEBUG_STREAM +Q_VERSIT_EXPORT QDebug operator<<(QDebug dbg, const QVersitProperty& property); +#endif + QTM_END_NAMESPACE #endif // QVERSITPROPERTY_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitproperty_p.h --- a/qtmobility/src/versit/qversitproperty_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitproperty_p.h Mon May 03 13:18:40 2010 +0300 @@ -55,6 +55,7 @@ #include "qversitdocument.h" #include "qmobilityglobal.h" +#include "qversitproperty.h" #include #include @@ -68,7 +69,7 @@ class QVersitPropertyPrivate : public QSharedData { public: - QVersitPropertyPrivate() : QSharedData() + QVersitPropertyPrivate() : QSharedData(), mValueType(QVersitProperty::PlainType) { } @@ -77,7 +78,8 @@ mGroups(other.mGroups), mName(other.mName), mParameters(other.mParameters), - mValue(other.mValue) + mValue(other.mValue), + mValueType(other.mValueType) { } @@ -87,6 +89,7 @@ QString mName; QMultiHash mParameters; QVariant mValue; + QVersitProperty::ValueType mValueType; }; QTM_END_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitreader.cpp --- a/qtmobility/src/versit/qversitreader.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitreader.cpp Mon May 03 13:18:40 2010 +0300 @@ -47,6 +47,7 @@ #include #include +#include QTM_USE_NAMESPACE @@ -95,14 +96,6 @@ */ /*! - * \fn QVersitReader::resultsAvailable(QList& results) - * \deprecated - * The signal is emitted by the reader as it reads from the device when it has made more Versit - * documents available. - * \a results is the complete list of documents read so far. - */ - -/*! * \fn QVersitReader::resultsAvailable() * The signal is emitted by the reader as it reads from the device when it has made more Versit * documents available. @@ -111,12 +104,24 @@ /*! Constructs a new reader. */ QVersitReader::QVersitReader() : d(new QVersitReaderPrivate) { - connect(d, SIGNAL(stateChanged(QVersitReader::State)), - this, SIGNAL(stateChanged(QVersitReader::State)),Qt::DirectConnection); - connect(d, SIGNAL(resultsAvailable(QList&)), - this, SIGNAL(resultsAvailable(QList&)), Qt::DirectConnection); - connect(d, SIGNAL(resultsAvailable(QList&)), - this, SIGNAL(resultsAvailable()), Qt::DirectConnection); + d->init(this); +} + +/*! Constructs a new reader that reads from \a inputDevice. */ +QVersitReader::QVersitReader(QIODevice *inputDevice) : d(new QVersitReaderPrivate) +{ + d->init(this); + d->mIoDevice = inputDevice; +} + +/*! Constructs a new reader that reads from \a inputData. */ +QVersitReader::QVersitReader(const QByteArray &inputData) : d(new QVersitReaderPrivate) +{ + d->init(this); + d->mInputBytes.reset(new QBuffer); + d->mInputBytes->setData(inputData); + d->mInputBytes->open(QIODevice::ReadOnly); + d->mIoDevice = d->mInputBytes.data(); } /*! @@ -131,19 +136,37 @@ /*! * Sets the device used for reading the input to be the given \a device. - * Does not take ownership of the device. + * Does not take ownership of the device. This overrides any byte array input source set with + * setData(). */ void QVersitReader::setDevice(QIODevice* device) { + d->mInputBytes.reset(0); d->mIoDevice = device; } /*! - * Returns the device used for reading input. + * Returns the device used for reading input, or 0 if no device has been set (or if the input source + * was set with setData(). */ QIODevice* QVersitReader::device() const { - return d->mIoDevice; + if (d->mInputBytes.isNull()) + return d->mIoDevice; + else + return 0; +} + +/*! + * Sets the data to read from to the byte array input source, \a inputData. + * This overrides any device set with setDevice(). + */ +void QVersitReader::setData(const QByteArray &inputData) +{ + if (d->mInputBytes.isNull()) + d->mInputBytes.reset(new QBuffer); + d->mInputBytes->setData(inputData); + d->mIoDevice = d->mInputBytes.data(); } /*! @@ -168,6 +191,22 @@ } /*! + * Returns the state of the reader. + */ +QVersitReader::State QVersitReader::state() const +{ + return d->state(); +} + +/*! + * Returns the error encountered by the last operation. + */ +QVersitReader::Error QVersitReader::error() const +{ + return d->error(); +} + +/*! * Starts reading the input asynchronously. * Returns false if the input device has not been set or opened or * if there is another asynchronous read operation already pending. @@ -226,20 +265,4 @@ return d->mVersitDocuments; } -/*! - * Returns the state of the reader. - */ -QVersitReader::State QVersitReader::state() const -{ - return d->state(); -} - -/*! - * Returns the error encountered by the last operation. - */ -QVersitReader::Error QVersitReader::error() const -{ - return d->error(); -} - #include "moc_qversitreader.cpp" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitreader.h --- a/qtmobility/src/versit/qversitreader.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitreader.h Mon May 03 13:18:40 2010 +0300 @@ -60,7 +60,6 @@ class Q_VERSIT_EXPORT QVersitReader : public QObject { Q_OBJECT - public: enum Error { NoError = 0, @@ -79,29 +78,33 @@ }; QVersitReader(); + QVersitReader(QIODevice* inputDevice); + QVersitReader(const QByteArray& inputData); ~QVersitReader(); // input: - void setDevice(QIODevice* device); + void setDevice(QIODevice* inputDevice); QIODevice* device() const; + void setData(const QByteArray& inputData); void setDefaultCodec(QTextCodec* codec); QTextCodec* defaultCodec() const; - // reading: - bool startReading(); - void cancel(); - bool waitForFinished(int msec = -1); - // output: QList results() const; State state() const; Error error() const; + // reading: +public Q_SLOTS: + bool startReading(); + void cancel(); +public: + Q_INVOKABLE bool waitForFinished(int msec = -1); + Q_SIGNALS: void stateChanged(QVersitReader::State state); - void resultsAvailable(QList& results); void resultsAvailable(); private: // data diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitreader_p.cpp --- a/qtmobility/src/versit/qversitreader_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitreader_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -56,6 +56,7 @@ /*! \class LineReader \brief The LineReader class is a wrapper around a QIODevice that allows line-by-line reading. + \internal This class keeps an internal buffer which it uses to temporarily store data which it has read from the device but not returned to the user. @@ -150,7 +151,7 @@ */ bool LineReader::tryReadLine(VersitCursor &cursor, bool atEnd) { - int crlfPos; + int crlfPos = -1; QByteArray space = VersitUtils::encode(' ', mCodec); QByteArray tab = VersitUtils::encode('\t', mCodec); @@ -194,6 +195,16 @@ } } +/*! Links the signals from this to the signals of \a reader. */ +void QVersitReaderPrivate::init(QVersitReader* reader) +{ + qRegisterMetaType("QVersitReader::State"); + connect(this, SIGNAL(stateChanged(QVersitReader::State)), + reader, SIGNAL(stateChanged(QVersitReader::State)),Qt::DirectConnection); + connect(this, SIGNAL(resultsAvailable()), + reader, SIGNAL(resultsAvailable()), Qt::DirectConnection); +} + /*! Construct a reader. */ QVersitReaderPrivate::QVersitReaderPrivate() : mIoDevice(0), @@ -203,6 +214,34 @@ mError(QVersitReader::NoError), mIsCanceling(false) { + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard21Type, QString::fromAscii("AGENT")), + QVersitProperty::VersitDocumentType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard30Type, QString::fromAscii("AGENT")), + QVersitProperty::VersitDocumentType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard21Type, QString::fromAscii("N")), + QVersitProperty::CompoundType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard30Type, QString::fromAscii("N")), + QVersitProperty::CompoundType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard21Type, QString::fromAscii("ADR")), + QVersitProperty::CompoundType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard30Type, QString::fromAscii("ADR")), + QVersitProperty::CompoundType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard21Type, QString::fromAscii("GEO")), + QVersitProperty::CompoundType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard30Type, QString::fromAscii("GEO")), + QVersitProperty::CompoundType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard21Type, QString::fromAscii("ORG")), + QVersitProperty::CompoundType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard30Type, QString::fromAscii("ORG")), + QVersitProperty::CompoundType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard21Type, QString::fromAscii("NICKNAMES")), + QVersitProperty::ListType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard30Type, QString::fromAscii("NICKNAMES")), + QVersitProperty::ListType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard21Type, QString::fromAscii("CATEGORIES")), + QVersitProperty::ListType); + mValueTypeMap.insert(qMakePair(QVersitDocument::VCard30Type, QString::fromAscii("CATEGORIES")), + QVersitProperty::ListType); } /*! Destroy a reader. */ @@ -245,7 +284,7 @@ else { QMutexLocker locker(&mMutex); mVersitDocuments.append(document); - emit resultsAvailable(mVersitDocuments); + emit resultsAvailable(); } } else { setError(QVersitReader::ParseError); @@ -401,9 +440,9 @@ property.setParameters(extractVCard21PropertyParams(cursor, lineReader.codec())); QByteArray value = extractPropertyValue(cursor); - if (property.name() == QLatin1String("AGENT")) { + if (mValueTypeMap.value(qMakePair(QVersitDocument::VCard21Type, property.name())) + == QVersitProperty::VersitDocumentType) { // Hack to handle cases where start of document is on the same or next line as "AGENT:" - // XXX: Handle non-ASCII charsets in nested AGENT documents. bool foundBegin = false; if (value == "BEGIN:VCARD") { foundBegin = true; @@ -412,17 +451,20 @@ property = QVersitProperty(); return; } - QVersitDocument agentDocument; - if (!parseVersitDocument(lineReader, agentDocument, foundBegin)) { + QVersitDocument subDocument; + if (!parseVersitDocument(lineReader, subDocument, foundBegin)) { property = QVersitProperty(); } else { - property.setValue(QVariant::fromValue(agentDocument)); + property.setValue(QVariant::fromValue(subDocument)); } } else { QTextCodec* codec; QVariant valueVariant(decodeCharset(value, property, lineReader.codec(), &codec)); - unencode(valueVariant, cursor, property, codec, lineReader); + bool isBinary = unencode(valueVariant, cursor, property, codec, lineReader); property.setValue(valueVariant); + if (!isBinary) { + splitStructuredValue(QVersitDocument::VCard21Type, property, false); + } } } @@ -438,32 +480,42 @@ QTextCodec* codec; QString valueString(decodeCharset(value, property, lineReader.codec(), &codec)); - VersitUtils::removeBackSlashEscaping(valueString); - if (property.name() == QLatin1String("AGENT")) { + if (mValueTypeMap.value(qMakePair(QVersitDocument::VCard30Type, property.name())) + == QVersitProperty::VersitDocumentType) { + removeBackSlashEscaping(valueString); // Make a line reader from the value of the property. - QByteArray agentValue(codec->fromUnicode(valueString)); - QBuffer agentData(&agentValue); - agentData.open(QIODevice::ReadOnly); - agentData.seek(0); - LineReader agentLineReader(&agentData, codec); + QByteArray subDocumentValue(codec->fromUnicode(valueString)); + QBuffer subDocumentData(&subDocumentValue); + subDocumentData.open(QIODevice::ReadOnly); + subDocumentData.seek(0); + LineReader subDocumentLineReader(&subDocumentData, codec); - QVersitDocument agentDocument; - if (!parseVersitDocument(agentLineReader, agentDocument)) { + QVersitDocument subDocument; + if (!parseVersitDocument(subDocumentLineReader, subDocument)) { property = QVersitProperty(); } else { - property.setValue(QVariant::fromValue(agentDocument)); + property.setValue(QVariant::fromValue(subDocument)); } } else { QVariant valueVariant(valueString); - unencode(valueVariant, cursor, property, codec, lineReader); - if (valueVariant.type() == QVariant::ByteArray) { - // hack: add the charset parameter back in (even if there wasn't one to start with and - // the default codec was used). This will help later on if someone calls valueString() - // on the property. - property.insertParameter(QLatin1String("CHARSET"), QLatin1String(codec->name())); + bool isBinary = unencode(valueVariant, cursor, property, codec, lineReader); + property.setValue(valueVariant); + if (!isBinary) { + bool isList = splitStructuredValue(QVersitDocument::VCard30Type, property, true); + // Do backslash unescaping + if (isList) { + QStringList list = property.value(); + for (int i = 0; i < list.length(); i++) { + removeBackSlashEscaping(list[i]); + } + property.setValue(list); + } else { + QString value = property.value(); + removeBackSlashEscaping(value); + property.setValue(value); + } } - property.setValue(valueVariant); } } @@ -491,8 +543,9 @@ /*! * On entry, \a value should hold a QString. On exit, it may be either a QString or a QByteArray. + * Returns true if and only if the property value is turned into a QByteArray. */ -void QVersitReaderPrivate::unencode(QVariant& value, VersitCursor& cursor, +bool QVersitReaderPrivate::unencode(QVariant& value, VersitCursor& cursor, QVersitProperty& property, QTextCodec* codec, LineReader& lineReader) const { @@ -515,6 +568,7 @@ // Remove the encoding parameter as the value is now decoded property.removeParameters(QLatin1String("ENCODING")); value.setValue(valueString); + return false; } else if (property.parameters().contains(QLatin1String("ENCODING"), QLatin1String("BASE64")) || property.parameters().contains(QLatin1String("ENCODING"), QLatin1String("B")) || property.parameters().contains(QLatin1String("TYPE"), QLatin1String("BASE64")) @@ -526,7 +580,9 @@ // the default codec was used). This will help later on if someone calls valueString() // on the property. property.insertParameter(QLatin1String("CHARSET"), QLatin1String(codec->name())); + return true; } + return false; } /*! @@ -582,7 +638,6 @@ } } - /*! * Extracts the groups and the name of the property using \a codec to determine the delimiters * @@ -674,25 +729,14 @@ while (!paramList.isEmpty()) { QByteArray param = paramList.takeLast(); QString name(paramName(param, codec)); - VersitUtils::removeBackSlashEscaping(name); + removeBackSlashEscaping(name); QString values = paramValue(param, codec); - QList valueList = values.split(QLatin1Char(','), QString::SkipEmptyParts); - QString buffer; // for any part ending in a backslash, join it to the next. + QStringList valueList = splitValue(values, QLatin1Char(','), QString::SkipEmptyParts, true); foreach (QString value, valueList) { - if (value.endsWith(QLatin1Char('\\')) && !value.endsWith(QLatin1String("\\\\"))) { - value.chop(1); - buffer.append(value); - buffer.append(QLatin1Char(',')); // because the comma got nuked by split() - } - else { - buffer.append(value); - VersitUtils::removeBackSlashEscaping(buffer); - result.insert(name, buffer); - buffer.clear(); - } + removeBackSlashEscaping(value); + result.insert(name, value); } } - return result; } @@ -817,4 +861,100 @@ return memcmp(textData+index, matchData, n) == 0; } +/*! + * If the \a type and the \a property's name is known to contain a structured value, \a property's + * value is split according to the type of structuring (compound vs. list) it is known to have. + * Returns true if and only if such a split happened (ie. the property value holds a QStringList on + * exit). + */ +bool QVersitReaderPrivate::splitStructuredValue( + QVersitDocument::VersitType type, QVersitProperty& property, + bool hasEscapedBackslashes) const +{ + QVariant variant = property.variantValue(); + QPair key = qMakePair(type, property.name()); + if (mValueTypeMap.contains(key)) { + if (mValueTypeMap.value(key) == QVersitProperty::CompoundType) { + variant.setValue(splitValue(variant.toString(), QLatin1Char(';'), + QString::KeepEmptyParts, hasEscapedBackslashes)); + property.setValue(variant); + property.setValueType(QVersitProperty::CompoundType); + } else if (mValueTypeMap.value(key) == QVersitProperty::ListType) { + variant.setValue(splitValue(variant.toString(), QLatin1Char(','), + QString::SkipEmptyParts, hasEscapedBackslashes)); + property.setValue(variant); + property.setValueType(QVersitProperty::ListType); + } + return true; + } + return false; +} + +/*! + * Splits the \a string into substrings wherever \a sep occurs. + * If \a hasEscapedBackslashes is false, then a \a sep preceded by a backslash is not considered + * a split point (but the backslash is removed). + * If \a hasEscapedBackslashes is true, then a \a sep preceded by an odd number of backslashes is + * not considered a split point (but one backslash is removed). + */ +QStringList QVersitReaderPrivate::splitValue(const QString& string, + const QChar& sep, + QString::SplitBehavior behaviour, + bool hasEscapedBackslashes) +{ + QStringList list; + bool isEscaped = false; // is the current character escaped + int segmentStartIndex = 0; + QString segment; + for (int i = 0; i < string.length(); i++) { + if (string.at(i) == QLatin1Char('\\')) { + if (hasEscapedBackslashes) + isEscaped = !isEscaped; // two consecutive backslashes make isEscaped false + else + isEscaped = true; + } else if (string.at(i) == sep) { + if (isEscaped) { + // we see an escaped separator - remove the backslash + segment += string.midRef(segmentStartIndex, i-segmentStartIndex-1); + segment += sep; + } else { + // we see a separator + segment += string.midRef(segmentStartIndex, i - segmentStartIndex); + if (behaviour == QString::KeepEmptyParts || !segment.isEmpty()) + list.append(segment); + segment.clear(); + } + segmentStartIndex = i+1; + isEscaped = false; + } else { // normal character - keep going + isEscaped = false; + } + } + // The rest of the string after the last sep. + segment += string.midRef(segmentStartIndex); + if (behaviour == QString::KeepEmptyParts || !segment.isEmpty()) + list.append(segment); + return list; +} + +/*! + * Removes backslash escaping for line breaks (CRLFs), colons, semicolons, backslashes and commas + * according to RFC 2426. This is called on parameter names and values and property values. + * Colons ARE unescaped because the text of RFC2426 suggests that they should be. + */ +void QVersitReaderPrivate::removeBackSlashEscaping(QString& text) +{ + if (!(text.startsWith(QLatin1Char('"')) && text.endsWith(QLatin1Char('"')))) { + /* replaces \; with ; + \, with , + \: with : + \\ with \ + */ + text.replace(QRegExp(QLatin1String("\\\\([;,:\\\\])")), QLatin1String("\\1")); + // replaces \n with a CRLF + text.replace(QLatin1String("\\n"), QLatin1String("\r\n"), Qt::CaseInsensitive); + } +} + + #include "moc_qversitreader_p.cpp" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitreader_p.h --- a/qtmobility/src/versit/qversitreader_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitreader_p.h Mon May 03 13:18:40 2010 +0300 @@ -66,9 +66,16 @@ #include #include #include +#include #include #include #include +#include +#include + +QT_BEGIN_NAMESPACE +class QBuffer; +QT_END_NAMESPACE QTM_BEGIN_NAMESPACE @@ -126,10 +133,11 @@ public: // Constructors and destructor QVersitReaderPrivate(); ~QVersitReaderPrivate(); + void init(QVersitReader* reader); signals: void stateChanged(QVersitReader::State state); - void resultsAvailable(QList& results); + void resultsAvailable(); protected: // From QThread void run(); @@ -167,7 +175,7 @@ QVersitDocument& document, const QVersitProperty& property) const; - void unencode( + bool unencode( QVariant& value, VersitCursor& cursor, QVersitProperty& property, @@ -182,6 +190,7 @@ void decodeQuotedPrintable(QString& text) const; + /* These functions operate on a cursor describing a single line */ QPair extractPropertyGroupsAndName(VersitCursor& line, QTextCodec* codec) const; @@ -199,9 +208,21 @@ QString paramName(const QByteArray& parameter, QTextCodec* codec) const; QString paramValue(const QByteArray& parameter, QTextCodec* codec) const; static bool containsAt(const QByteArray& text, const QByteArray& ba, int index); + bool splitStructuredValue(QVersitDocument::VersitType type, + QVersitProperty& property, + bool hasEscapedBackslashes) const; + static QStringList splitValue(const QString& string, + const QChar& sep, + QString::SplitBehavior behaviour, + bool hasEscapedBackslashes); + static void removeBackSlashEscaping(QString& text); public: // Data + /* key is the document type and property name, value is the type of property it is. + If there is no entry, assume it is a PlainType */ + QHash, QVersitProperty::ValueType> mValueTypeMap; QPointer mIoDevice; + QScopedPointer mInputBytes; // Holds the data set by setData() QList mVersitDocuments; int mDocumentNestingLevel; // Depth in parsing nested Versit documents QTextCodec* mDefaultCodec; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitwriter.cpp --- a/qtmobility/src/versit/qversitwriter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitwriter.cpp Mon May 03 13:18:40 2010 +0300 @@ -46,6 +46,7 @@ #include #include +#include QTM_USE_NAMESPACE @@ -107,8 +108,24 @@ /*! Constructs a new writer. */ QVersitWriter::QVersitWriter() : d(new QVersitWriterPrivate) { - connect(d, SIGNAL(stateChanged(QVersitWriter::State)), - this, SIGNAL(stateChanged(QVersitWriter::State)), Qt::DirectConnection); + d->init(this); +} + +/*! Constructs a new writer that writes to \a outputDevice. */ +QVersitWriter::QVersitWriter(QIODevice *outputDevice) : d(new QVersitWriterPrivate) +{ + d->init(this); + d->mIoDevice = outputDevice; +} + +/*! Constructs a new writer that appends to \a outputBytes. */ +QVersitWriter::QVersitWriter(QByteArray *outputBytes) : d(new QVersitWriterPrivate) +{ + d->init(this); + d->mOutputBytes.reset(new QBuffer); + d->mOutputBytes->setBuffer(outputBytes); + d->mOutputBytes->open(QIODevice::WriteOnly); + d->mIoDevice = d->mOutputBytes.data(); } /*! @@ -127,15 +144,19 @@ */ void QVersitWriter::setDevice(QIODevice* device) { + d->mOutputBytes.reset(0); d->mIoDevice = device; } /*! - * Returns the device used for writing. + * Returns the device used for writing, or 0 if no device has been set. */ QIODevice* QVersitWriter::device() const { - return d->mIoDevice; + if (d->mOutputBytes.isNull()) + return d->mIoDevice; + else + return 0; } /*! @@ -158,6 +179,22 @@ } /*! + * Returns the state of the writer. + */ +QVersitWriter::State QVersitWriter::state() const +{ + return d->state(); +} + +/*! + * Returns the error encountered by the last operation. + */ +QVersitWriter::Error QVersitWriter::error() const +{ + return d->error(); +} + +/*! * Starts writing \a input to device() asynchronously. * Returns false if the output device has not been set or opened or * if there is another asynchronous write operation already pending. @@ -207,20 +244,4 @@ } } -/*! - * Returns the state of the writer. - */ -QVersitWriter::State QVersitWriter::state() const -{ - return d->state(); -} - -/*! - * Returns the error encountered by the last operation. - */ -QVersitWriter::Error QVersitWriter::error() const -{ - return d->error(); -} - #include "moc_qversitwriter.cpp" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitwriter.h --- a/qtmobility/src/versit/qversitwriter.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitwriter.h Mon May 03 13:18:40 2010 +0300 @@ -74,22 +74,26 @@ }; QVersitWriter(); + QVersitWriter(QIODevice* outputDevice); + QVersitWriter(QByteArray* outputBytes); ~QVersitWriter(); // output device - void setDevice(QIODevice* device); + void setDevice(QIODevice* outputDevice); QIODevice* device() const; void setDefaultCodec(QTextCodec* codec); QTextCodec* defaultCodec() const; + State state() const; + Error error() const; + // writing: +public Q_SLOTS: bool startWriting(const QList& input); void cancel(); - bool waitForFinished(int msec = -1); - - State state() const; - Error error() const; +public: + Q_INVOKABLE bool waitForFinished(int msec = -1); Q_SIGNALS: void stateChanged(QVersitWriter::State state); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitwriter_p.cpp --- a/qtmobility/src/versit/qversitwriter_p.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitwriter_p.cpp Mon May 03 13:18:40 2010 +0300 @@ -50,6 +50,7 @@ #include #include #include +#include QTM_USE_NAMESPACE @@ -68,13 +69,21 @@ { } +/*! Links the signals from this to the signals of \a writer. */ +void QVersitWriterPrivate::init(QVersitWriter* writer) +{ + qRegisterMetaType("QVersitWriter::State"); + connect(this, SIGNAL(stateChanged(QVersitWriter::State)), + writer, SIGNAL(stateChanged(QVersitWriter::State)), Qt::DirectConnection); +} + /*! * Do the actual writing and set the error and state appropriately. */ void QVersitWriterPrivate::write() { bool canceled = false; - foreach (QVersitDocument document, mInput) { + foreach (const QVersitDocument& document, mInput) { if (isCanceling()) { canceled = true; break; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/qversitwriter_p.h --- a/qtmobility/src/versit/qversitwriter_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/qversitwriter_p.h Mon May 03 13:18:40 2010 +0300 @@ -64,6 +64,10 @@ #include #include +QT_BEGIN_NAMESPACE +class QBuffer; +QT_END_NAMESPACE + QTM_BEGIN_NAMESPACE class QVersitDocumentWriter; @@ -78,6 +82,7 @@ public: QVersitWriterPrivate(); virtual ~QVersitWriterPrivate(); + void init(QVersitWriter* writer); void write(); // mutexed getters and setters. @@ -93,6 +98,7 @@ static QVersitDocumentWriter* writerForType(QVersitDocument::VersitType type); QIODevice* mIoDevice; + QScopedPointer mOutputBytes; // Holds the data set by setData() QList mInput; QVersitWriter::State mState; QVersitWriter::Error mError; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/versitutils.cpp --- a/qtmobility/src/versit/versitutils.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/versitutils.cpp Mon May 03 13:18:40 2010 +0300 @@ -53,42 +53,6 @@ QByteArray VersitUtils::m_encodingMap[256]; /*! - * Performs backslash escaping for line breaks (CRLFs), semicolons, backslashes and commas according - * to RFC 2426. This is called on parameter names and values and property values. - * Colons ARE NOT escaped because the examples in RFC2426 suggest that they shouldn't be. - */ -void VersitUtils::backSlashEscape(QString& text) -{ - /* replaces ; with \; - , with \, - \ with \\ - */ - text.replace(QRegExp(QLatin1String("([;,\\\\])")), QLatin1String("\\\\1")); - // replaces any CRLFs with \n - text.replace(QRegExp(QLatin1String("\r\n|\r|\n")), QLatin1String("\\n")); -} - -/*! - * Removes backslash escaping for line breaks (CRLFs), colons, semicolons, backslashes and commas - * according to RFC 2426. This is called on parameter names and values and property values. - * Colons ARE unescaped because the text of RFC2426 suggests that they should be. - */ -void VersitUtils::removeBackSlashEscaping(QString& text) -{ - if (!(text.startsWith(QLatin1Char('"')) && text.endsWith(QLatin1Char('"')))) { - /* replaces \; with ; - \, with , - \: with : - \\ with \ - */ - text.replace(QRegExp(QLatin1String("\\\\([;,:\\\\])")), QLatin1String("\\1")); - // replaces \n with a CRLF - text.replace(QLatin1String("\\n"), QLatin1String("\r\n"), Qt::CaseInsensitive); - } -} - - -/*! * Encode \a ch with \a codec, without adding an byte-order mark */ QByteArray VersitUtils::encode(char ch, QTextCodec* codec) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/src/versit/versitutils_p.h --- a/qtmobility/src/versit/versitutils_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/src/versit/versitutils_p.h Mon May 03 13:18:40 2010 +0300 @@ -68,9 +68,6 @@ class Q_AUTOTEST_EXPORT VersitUtils { public: - static void backSlashEscape(QString& text); - static void removeBackSlashEscaping(QString& text); - static QByteArray encode(const QByteArray& ba, QTextCodec* codec); static QByteArray encode(char ch, QTextCodec* codec); static QList* newlineList(QTextCodec* codec); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/auto.pro --- a/qtmobility/tests/auto/auto.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/auto.pro Mon May 03 13:18:40 2010 +0300 @@ -11,11 +11,8 @@ qservicemanager \ qabstractsecuritysession \ qservicecontext \ - icheck - -# servicedatabase is not compiled into the serviceframework library on symbian, -# special handling is needed - !symbian:SUBDIRS+=servicedatabase + icheck \ +# servicedatabase } contains(mobility_modules,bearer) { @@ -44,7 +41,7 @@ SUBDIRS += qvaluespace \ #Publish and Subscribe qvaluespacepublisher \ qvaluespacesubscriber \ - qcrmlparser + qcrmlparser unix|win32 { !symbian:!maemo6:!maemo5: SUBDIRS+= \ @@ -81,7 +78,10 @@ qcontactmanager \ qcontactmanagerplugins \ qcontactmanagerfiltering \ - qcontactrelationship + qcontactrelationship \ + qlatin1constant + # This needs glibc: + linux*: SUBDIRS += qcontactmemusage } contains(mobility_modules,versit) { @@ -95,14 +95,13 @@ qversitdocument \ qversitproperty \ qversitreader \ - qversitutils \ qversitwriter } contains(mobility_modules,multimedia) { SUBDIRS += \ #Multimedia qaudiocapturesource \ - qcamera \ + qgraphicsvideoitem \ qmediaimageviewer \ qmediaobject \ qmediaplayer \ @@ -115,24 +114,18 @@ qmediaserviceprovider \ qmediacontent \ qradiotuner \ + qpaintervideosurface \ qvideowidget \ qmediatimerange - contains(QT_CONFIG, multimedia) { - SUBDIRS += \ - qgraphicsvideoitem \ - qpaintervideosurface - - } - symbian: { #symbian spesific autotests SUBDIRS += symbian SUBDIRS -= \ - qcamera \ - qmediaplayer \ - qradiotuner \ - qmediaobject + qmediaplayer_s60 \ + qradiotuner_s60 \ + qmediaobject_s60 \ + qmediarecorder_s60 } } #Messaging @@ -145,3 +138,8 @@ qmessageservice } } + +# Sensors +contains(mobility_modules,sensors) { + SUBDIRS += qsensor +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/databasemanager/tst_databasemanager_s60.cpp --- a/qtmobility/tests/auto/databasemanager/tst_databasemanager_s60.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/databasemanager/tst_databasemanager_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,7 +42,7 @@ #include #define private public #include -#include "../../../serviceframework/qserviceinterfacedescriptor_p.h" +#include "qserviceinterfacedescriptor_p.h" #include #include "../qsfwtestutil.h" #include "servicemetadata_p.h" @@ -89,7 +89,13 @@ void tst_DatabaseManager::initTestCase() { -#if defined(Q_OS_SYMBIAN) && !defined(__WINS__) + // Wait a millisecond so that QServiceManagers are destroyed and release + // the database file (otherwise QFile::remove will get a permission denied --> + // in next case, the isEmpty() check fails). + QTest::qWait(1); + QSfwTestUtil::removeTempUserDb(); + QSfwTestUtil::removeTempSystemDb(); +#if !defined(__WINS__) QSfwTestUtil::removeDatabases(); #endif m_dbm = new DatabaseManager; @@ -116,7 +122,7 @@ QVERIFY(m_dbm->registerService(parseResults, DatabaseManager::UserScope)); } - QSKIP("There is no difference between user and system scope in symbian", SkipAll); + QSKIP("There is no difference between user and system scope in symbian", SkipAll); QStringList systemServiceFiles; systemServiceFiles << "ServiceOmni.xml" << "ServiceWayneEnt.xml" @@ -562,8 +568,8 @@ QVERIFY(compareDescriptor(descriptors[0], "com.nokia.ILocation", "TestService", 1,0)); QVERIFY(compareDescriptor(descriptors[1], "com.nokia.ILocation", "TestService1", 1,1)); QVERIFY(compareDescriptor(descriptors[2], "com.nokia.ILocation", "TestService2", 1,2)); - -} + +} void tst_DatabaseManager::modifyPermissionSet(QFile::Permissions &permsSet, int perm) @@ -613,7 +619,10 @@ void tst_DatabaseManager::cleanupTestCase() { -#if defined(Q_OS_SYMBIAN) && !defined(__WINS__) + QTest::qWait(100); + QSfwTestUtil::removeTempUserDb(); + QSfwTestUtil::removeTempSystemDb(); +#if !defined(__WINS__) QSfwTestUtil::removeDatabases(); #endif } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcamera/qcamera.pro --- a/qtmobility/tests/auto/qcamera/qcamera.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -TARGET = tst_qcamera -INCLUDEPATH += ../../../src/multimedia -CONFIG += testcase - -SOURCES += tst_qcamera.cpp - -include (../../../common.pri) - -CONFIG += mobility -MOBILITY = multimedia - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcamera/tst_qcamera.cpp --- a/qtmobility/tests/auto/qcamera/tst_qcamera.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1075 +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 Qt Mobility Components. -** -** $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 -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QTM_USE_NAMESPACE -class MockCaptureControl; - -class MockCameraControl : public QCameraControl -{ - friend class MockCaptureControl; - Q_OBJECT -public: - MockCameraControl(QObject *parent = 0): - QCameraControl(parent), - m_state(QCamera::StoppedState), - m_captureMode(QCamera::CaptureStillImage) - { - } - - ~MockCameraControl() {} - - void start() { m_state = QCamera::ActiveState; } - virtual void stop() { m_state = QCamera::StoppedState; } - QCamera::State state() const { return m_state; } - - QCamera::CaptureMode captureMode() const { return m_captureMode; } - void setCaptureMode(QCamera::CaptureMode mode) - { - if (m_captureMode != mode) { - m_captureMode = mode; - emit captureModeChanged(mode); - } - } - - QCamera::CaptureModes supportedCaptureModes() const - { - return QCamera::CaptureStillImage | QCamera::CaptureVideo; - } - - - QCamera::State m_state; - QCamera::CaptureMode m_captureMode; -}; - -class MockCaptureControl : public QImageCaptureControl -{ - Q_OBJECT -public: - MockCaptureControl(MockCameraControl *cameraControl, QObject *parent = 0) - :QImageCaptureControl(parent), m_cameraControl(cameraControl) - { - } - - ~MockCaptureControl() - { - } - - bool isReadyForCapture() const { return m_cameraControl->state() == QCamera::ActiveState; } - - void capture(const QString &fileName) - { - if (isReadyForCapture()) - emit imageCaptured(fileName, QImage()); - else - emit error(QStillImageCapture::NotReadyError, - QLatin1String("Could not capture in stopped state")); - } - - MockCameraControl *m_cameraControl; - -}; - -class MockCameraExposureControl : public QCameraExposureControl -{ - Q_OBJECT -public: - MockCameraExposureControl(QObject *parent = 0): - QCameraExposureControl(parent), - m_exposureLocked(false), - m_aperture(2.8), - m_shutterSpeed(0.01), - m_isoSensitivity(100), - m_meteringMode(QCamera::MeteringMatrix), - m_exposureCompensation(0), - m_exposureMode(QCamera::ExposureAuto), - m_flashMode(QCamera::FlashAuto) - { - } - - ~MockCameraExposureControl() {} - - QCamera::FlashMode flashMode() const - { - return m_flashMode; - } - - void setFlashMode(QCamera::FlashMode mode) - { - if (supportedFlashModes() & mode) { - m_flashMode = mode; - } - } - - QCamera::FlashModes supportedFlashModes() const - { - return QCamera::FlashAuto | QCamera::FlashOff | QCamera::FlashOn; - } - - bool isFlashReady() const - { - return true; - } - - QCamera::ExposureMode exposureMode() const - { - return m_exposureMode; - } - - void setExposureMode(QCamera::ExposureMode mode) - { - if (supportedExposureModes() & mode) - m_exposureMode = mode; - } - - QCamera::ExposureModes supportedExposureModes() const - { - return QCamera::ExposureAuto | QCamera::ExposureManual; - } - - qreal exposureCompensation() const - { - return m_exposureCompensation; - } - - void setExposureCompensation(qreal ev) - { - m_exposureCompensation = ev; - } - - QCamera::MeteringMode meteringMode() const - { - return m_meteringMode; - } - - void setMeteringMode(QCamera::MeteringMode mode) - { - if (supportedMeteringModes() & mode) - m_meteringMode = mode; - } - - QCamera::MeteringModes supportedMeteringModes() const - { - return QCamera::MeteringAverage | QCamera::MeteringMatrix; - } - - int isoSensitivity() const - { - return m_isoSensitivity; - } - - QList supportedIsoSensitivities(bool * continuous) const - { - if (continuous) - *continuous = false; - return QList() << 100 << 200 << 400 << 800; - } - - - void setManualIsoSensitivity(int iso) - { - m_isoSensitivity = 100*qRound(qBound(100, iso, 800)/100.0); - } - - void setAutoIsoSensitivity() - { - m_isoSensitivity = 100; - } - - qreal aperture() const - { - return m_aperture; - } - - QList supportedApertures(bool *continuous) const - { - if (continuous) - *continuous = true; - return QList() << 2.8 << 4 << 5.6 << 8 << 11 << 16; - } - - void setManualAperture(qreal aperture) - { - m_aperture = qBound(2.8, aperture, 16.0); - } - - void setAutoAperture() - { - m_aperture = 2.8; - } - - qreal shutterSpeed() const - { - return m_shutterSpeed; - } - - QList supportedShutterSpeeds(bool *continuous) const - { - if (continuous) - *continuous = false; - - return QList() << 0.001 << 0.01 << 0.1 << 1.0; - } - - void setManualShutterSpeed(qreal shutterSpeed) - { - m_shutterSpeed = qBound(0.001, shutterSpeed, 1.0); - } - - void setAutoShutterSpeed() - { - m_shutterSpeed = 0.01; - } - - bool isExposureLocked() const - { - return m_exposureLocked; - } - -public Q_SLOTS: - void lockExposure() - { - if (!m_exposureLocked) { - m_exposureLocked = true; - emit exposureLocked(); - } - } - - void unlockExposure() - { - m_exposureLocked = false; - } - - -private: - bool m_exposureLocked; - qreal m_aperture; - qreal m_shutterSpeed; - int m_isoSensitivity; - QCamera::MeteringMode m_meteringMode; - qreal m_exposureCompensation; - QCamera::ExposureMode m_exposureMode; - QCamera::FlashMode m_flashMode; -}; - -class MockCameraFocusControl : public QCameraFocusControl -{ - Q_OBJECT -public: - MockCameraFocusControl(QObject *parent = 0): - QCameraFocusControl(parent), - m_opticalZoom(1.0), - m_digitalZoom(1.0), - m_macroFocusingEnabled(false), - m_focusMode(QCamera::AutoFocus), - m_focusStatus(QCamera::FocusInitial) - { - } - - ~MockCameraFocusControl() {} - - QCamera::FocusMode focusMode() const - { - return m_focusMode; - } - - void setFocusMode(QCamera::FocusMode mode) - { - if (supportedFocusModes() & mode) - m_focusMode = mode; - } - - QCamera::FocusModes supportedFocusModes() const - { - return QCamera::AutoFocus | QCamera::ContinuousFocus; - } - - QCamera::FocusStatus focusStatus() const - { - return m_focusStatus; - } - - bool macroFocusingEnabled() const - { - return m_macroFocusingEnabled; - } - - bool isMacroFocusingSupported() const - { - return true; - } - - void setMacroFocusingEnabled(bool flag) - { - if (isMacroFocusingSupported()) - m_macroFocusingEnabled = flag; - } - - qreal maximumOpticalZoom() const - { - return 3.0; - } - - qreal maximumDigitalZoom() const - { - return 4.0; - } - - qreal opticalZoom() const - { - return m_opticalZoom; - } - - qreal digitalZoom() const - { - return m_digitalZoom; - } - - void zoomTo(qreal optical, qreal digital) - { - optical = qBound(1.0, optical, maximumOpticalZoom()); - digital = qBound(1.0, digital, maximumDigitalZoom()); - - if (!qFuzzyCompare(digital, m_digitalZoom)) { - m_digitalZoom = digital; - emit digitalZoomChanged(m_digitalZoom); - } - - if (!qFuzzyCompare(optical, m_opticalZoom)) { - m_opticalZoom = optical; - emit opticalZoomChanged(m_opticalZoom); - } - } - -public Q_SLOTS: - void startFocusing() - { - } - - void cancelFocusing() - { - } - -private: - qreal m_opticalZoom; - qreal m_digitalZoom; - bool m_macroFocusingEnabled; - QCamera::FocusMode m_focusMode; - QCamera::FocusStatus m_focusStatus; -}; - -class MockImageProcessingControl : public QImageProcessingControl -{ -public: - MockImageProcessingControl(QObject *parent = 0) - : QImageProcessingControl(parent) - , m_supportedWhiteBalance(QCamera::WhiteBalanceAuto) - , m_contrast(0.0) - , m_saturation(0.0) - , m_sharpeningLevel(0.0) - , m_denoisingLevel(0.0) - , m_sharpeningSupported(false) - , m_denoisingSupported(true) - { - } - - QCamera::WhiteBalanceMode whiteBalanceMode() const { return m_whiteBalanceMode; } - void setWhiteBalanceMode(QCamera::WhiteBalanceMode mode) { m_whiteBalanceMode = mode; } - - QCamera::WhiteBalanceModes supportedWhiteBalanceModes() const { - return m_supportedWhiteBalance; } - void setSupportedWhiteBalanceModes(QCamera::WhiteBalanceModes modes) { - m_supportedWhiteBalance = modes; } - - int manualWhiteBalance() const { return m_manualWhiteBalance; } - void setManualWhiteBalance(int colorTemperature) { m_manualWhiteBalance = colorTemperature; } - - qreal contrast() const { return m_contrast; } - void setContrast(qreal value) { m_contrast = value; } - - qreal saturation() const { return m_saturation; } - void setSaturation(qreal value) { m_saturation = value; } - - bool isSharpeningSupported() const { return m_sharpeningSupported; } - void setSharpendingSupported(bool supported) { m_sharpeningSupported = supported; } - - qreal sharpeningLevel() const { return m_sharpeningLevel; } - void setSharpeningLevel(qreal value) { m_sharpeningLevel = value; } - - bool isDenoisingSupported() const { return m_denoisingSupported; } - void setDenoisingSupported(bool supported) { m_denoisingSupported = supported; } - qreal denoisingLevel() const { return m_denoisingLevel; } - void setDenoisingLevel(qreal value) { m_denoisingLevel = value; } - -private: - QCamera::WhiteBalanceMode m_whiteBalanceMode; - QCamera::WhiteBalanceModes m_supportedWhiteBalance; - int m_manualWhiteBalance; - qreal m_contrast; - qreal m_saturation; - qreal m_sharpeningLevel; - qreal m_denoisingLevel; - bool m_sharpeningSupported; - bool m_denoisingSupported; -}; - -class MockImageEncoderControl : public QImageEncoderControl -{ -public: - MockImageEncoderControl(QObject *parent = 0) - : QImageEncoderControl(parent) - { - } - - QList supportedResolutions(const QImageEncoderSettings & = QImageEncoderSettings(), - bool *continuous = 0) const - { - if (continuous) - *continuous = true; - - return m_supportedResolutions; - } - - void setSupportedResolutions(const QList &resolutions) { - m_supportedResolutions = resolutions; } - - QStringList supportedImageCodecs() const { return m_supportedCodecs; } - void setSupportedImageCodecs(const QStringList &codecs) { m_supportedCodecs = codecs; } - - QString imageCodecDescription(const QString &codecName) const { - return m_codecDescriptions.value(codecName); } - void setImageCodecDescriptions(const QMap &descriptions) { - m_codecDescriptions = descriptions; } - - QImageEncoderSettings imageSettings() const { return m_settings; } - void setImageSettings(const QImageEncoderSettings &settings) { m_settings = settings; } - -private: - QImageEncoderSettings m_settings; - - QList m_supportedResolutions; - QStringList m_supportedCodecs; - QMap m_codecDescriptions; -}; - -class MockSimpleCameraService : public QMediaService -{ - Q_OBJECT - -public: - MockSimpleCameraService(): QMediaService(0) - { - mockControl = new MockCameraControl(this); - } - - ~MockSimpleCameraService() - { - } - - QMediaControl* control(const char *iid) const - { - if (qstrcmp(iid, QCameraControl_iid) == 0) - return mockControl; - return 0; - } - - MockCameraControl *mockControl; -}; - -class MockCameraService : public QMediaService -{ - Q_OBJECT - -public: - MockCameraService(): QMediaService(0) - { - mockControl = new MockCameraControl(this); - mockExposureControl = new MockCameraExposureControl(this); - mockFocusControl = new MockCameraFocusControl(this); - mockCaptureControl = new MockCaptureControl(mockControl, this); - mockImageProcessingControl = new MockImageProcessingControl(this); - mockImageEncoderControl = new MockImageEncoderControl(this); - } - - ~MockCameraService() - { - } - - QMediaControl* control(const char *iid) const - { - if (qstrcmp(iid, QCameraControl_iid) == 0) - return mockControl; - - if (qstrcmp(iid, QCameraExposureControl_iid) == 0) - return mockExposureControl; - - if (qstrcmp(iid, QCameraFocusControl_iid) == 0) - return mockFocusControl; - - if (qstrcmp(iid, QImageCaptureControl_iid) == 0) - return mockCaptureControl; - - if (qstrcmp(iid, QImageProcessingControl_iid) == 0) - return mockImageProcessingControl; - - if (qstrcmp(iid, QImageEncoderControl_iid) == 0) - return mockImageEncoderControl; - - return 0; - } - - MockCameraControl *mockControl; - MockCaptureControl *mockCaptureControl; - MockCameraExposureControl *mockExposureControl; - MockCameraFocusControl *mockFocusControl; - MockImageProcessingControl *mockImageProcessingControl; - MockImageEncoderControl *mockImageEncoderControl; -}; - -class MockProvider : public QMediaServiceProvider -{ -public: - QMediaService *requestService(const QByteArray &, const QMediaServiceProviderHint &) - { - return service; - } - - void releaseService(QMediaService *) {} - - QMediaService *service; -}; - - -class tst_QCamera: public QObject -{ - Q_OBJECT - -public slots: - void initTestCase(); - void cleanupTestCase(); - -private slots: - void testAvailableDevices(); - void testDeviceDescription(); - void testCtorWithDevice(); - void testSimpleCamera(); - void testSimpleCameraWhiteBalance(); - void testSimpleCameraExposure(); - void testSimpleCameraFocus(); - void testSimpleCameraCapture(); - - void testCameraWhiteBalance(); - void testCameraExposure(); - void testCameraFocus(); - void testCameraCapture(); - void testImageSettings(); - -private: - MockSimpleCameraService *mockSimpleCameraService; - MockProvider *provider; -}; - -void tst_QCamera::initTestCase() -{ - provider = new MockProvider; - mockSimpleCameraService = new MockSimpleCameraService; - provider->service = mockSimpleCameraService; - - qRegisterMetaType("QCamera::Error"); -} - -void tst_QCamera::cleanupTestCase() -{ - delete mockSimpleCameraService; - delete provider; -} - -void tst_QCamera::testAvailableDevices() -{ - int deviceCount = QMediaServiceProvider::defaultServiceProvider()->devices(QByteArray(Q_MEDIASERVICE_CAMERA)).count(); - - QVERIFY(QCamera::availableDevices().count() == deviceCount); -} - -void tst_QCamera::testDeviceDescription() -{ - int deviceCount = QMediaServiceProvider::defaultServiceProvider()->devices(QByteArray(Q_MEDIASERVICE_CAMERA)).count(); - - if (deviceCount == 0) - QVERIFY(QCamera::deviceDescription(QByteArray("random")).isNull()); - else { - foreach (const QByteArray &device, QCamera::availableDevices()) - QVERIFY(QCamera::deviceDescription(device).length() > 0); - } -} - -void tst_QCamera::testCtorWithDevice() -{ - int deviceCount = QMediaServiceProvider::defaultServiceProvider()->devices(QByteArray(Q_MEDIASERVICE_CAMERA)).count(); - QCamera *camera = 0; - - if (deviceCount == 0) { - camera = new QCamera("random"); - QVERIFY(camera->error() == QCamera::ServiceMissingError); - } - else { - camera = new QCamera(QCamera::availableDevices().first()); - QVERIFY(camera->error() == QCamera::NoError); - } - - delete camera; -} - -void tst_QCamera::testSimpleCamera() -{ - QCamera camera(0, provider); - QCOMPARE(camera.service(), (QMediaService*)mockSimpleCameraService); - - QCOMPARE(camera.state(), QCamera::StoppedState); - camera.start(); - QCOMPARE(camera.state(), QCamera::ActiveState); - camera.stop(); - QCOMPARE(camera.state(), QCamera::StoppedState); -} - -void tst_QCamera::testSimpleCameraWhiteBalance() -{ - QCamera camera(0, provider); - - //only WhiteBalanceAuto is supported - QCOMPARE(camera.supportedWhiteBalanceModes(), QCamera::WhiteBalanceAuto); - QCOMPARE(camera.whiteBalanceMode(), QCamera::WhiteBalanceAuto); - camera.setWhiteBalanceMode(QCamera::WhiteBalanceCloudy); - QCOMPARE(camera.supportedWhiteBalanceModes(), QCamera::WhiteBalanceAuto); - QCOMPARE(camera.manualWhiteBalance(), -1); - camera.setManualWhiteBalance(5000); - QCOMPARE(camera.manualWhiteBalance(), -1); -} - -void tst_QCamera::testSimpleCameraExposure() -{ - QCamera camera(0, provider); - - QCOMPARE(camera.supportedExposureModes(), QCamera::ExposureAuto); - QCOMPARE(camera.exposureMode(), QCamera::ExposureAuto); - camera.setExposureMode(QCamera::ExposureManual);//should be ignored - QCOMPARE(camera.exposureMode(), QCamera::ExposureAuto); - - QCOMPARE(camera.supportedFlashModes(), QCamera::FlashOff); - QCOMPARE(camera.flashMode(), QCamera::FlashOff); - QCOMPARE(camera.isFlashReady(), false); - camera.setFlashMode(QCamera::FlashOn); - QCOMPARE(camera.flashMode(), QCamera::FlashOff); - - QCOMPARE(camera.supportedMeteringModes(), QCamera::MeteringMatrix); - QCOMPARE(camera.meteringMode(), QCamera::MeteringMatrix); - camera.setMeteringMode(QCamera::MeteringSpot); - QCOMPARE(camera.meteringMode(), QCamera::MeteringMatrix); - - QCOMPARE(camera.exposureCompensation(), 0.0); - camera.setExposureCompensation(2.0); - QCOMPARE(camera.exposureCompensation(), 0.0); - - QCOMPARE(camera.isoSensitivity(), -1); - QVERIFY(camera.supportedIsoSensitivities().isEmpty()); - camera.setManualIsoSensitivity(100); - QCOMPARE(camera.isoSensitivity(), -1); - camera.setAutoIsoSensitivity(); - QCOMPARE(camera.isoSensitivity(), -1); - - QVERIFY(camera.aperture() < 0); - QVERIFY(camera.supportedApertures().isEmpty()); - camera.setAutoAperture(); - QVERIFY(camera.aperture() < 0); - camera.setManualAperture(5.6); - QVERIFY(camera.aperture() < 0); - - QVERIFY(camera.shutterSpeed() < 0); - QVERIFY(camera.supportedShutterSpeeds().isEmpty()); - camera.setAutoShutterSpeed(); - QVERIFY(camera.shutterSpeed() < 0); - camera.setManualShutterSpeed(1/128.0); - QVERIFY(camera.shutterSpeed() < 0); - - QCOMPARE(camera.isExposureLocked(), true); - -} - -void tst_QCamera::testSimpleCameraFocus() -{ - QCamera camera(0, provider); - - QCOMPARE(camera.supportedFocusModes(), QCamera::AutoFocus); - QCOMPARE(camera.focusMode(), QCamera::AutoFocus); - camera.setFocusMode(QCamera::ContinuousFocus); - QCOMPARE(camera.focusMode(), QCamera::AutoFocus); - QCOMPARE(camera.focusStatus(), QCamera::FocusInitial); - - QVERIFY(!camera.isMacroFocusingSupported()); - QVERIFY(!camera.macroFocusingEnabled()); - camera.setMacroFocusingEnabled(true); - QVERIFY(!camera.macroFocusingEnabled()); - - QCOMPARE(camera.maximumOpticalZoom(), 1.0); - QCOMPARE(camera.maximumDigitalZoom(), 1.0); - QCOMPARE(camera.opticalZoom(), 1.0); - QCOMPARE(camera.digitalZoom(), 1.0); - QSignalSpy errorSignal(&camera, SIGNAL(error(QCamera::Error))); - camera.zoomTo(100.0, 100.0); - QCOMPARE(camera.opticalZoom(), 1.0); - QCOMPARE(camera.digitalZoom(), 1.0); - QCOMPARE(errorSignal.count(), 1); - QCOMPARE(camera.error(), QCamera::NotSupportedFeatureError); -} - -void tst_QCamera::testSimpleCameraCapture() -{ - QCamera camera(0, provider); - QStillImageCapture imageCapture(&camera); - - QVERIFY(!imageCapture.isReadyForCapture()); - QVERIFY(!imageCapture.isAvailable()); - - QCOMPARE(imageCapture.error(), QStillImageCapture::NoError); - QVERIFY(imageCapture.errorString().isEmpty()); - - QSignalSpy errorSignal(&imageCapture, SIGNAL(error(QStillImageCapture::Error))); - imageCapture.capture(QString::fromLatin1("/dev/null")); - QCOMPARE(errorSignal.size(), 1); - QCOMPARE(imageCapture.error(), QStillImageCapture::NotSupportedFeatureError); - QVERIFY(!imageCapture.errorString().isEmpty()); -} - -void tst_QCamera::testCameraCapture() -{ - MockCameraService service; - provider->service = &service; - QCamera camera(0, provider); - QStillImageCapture imageCapture(&camera); - - - QVERIFY(!imageCapture.isReadyForCapture()); - - QSignalSpy capturedSignal(&imageCapture, SIGNAL(imageCaptured(QString,QImage))); - QSignalSpy errorSignal(&imageCapture, SIGNAL(error(QStillImageCapture::Error))); - - imageCapture.capture(QString::fromLatin1("/dev/null")); - QCOMPARE(capturedSignal.size(), 0); - QCOMPARE(errorSignal.size(), 1); - QCOMPARE(imageCapture.error(), QStillImageCapture::NotReadyError); - - errorSignal.clear(); - - camera.start(); - QVERIFY(imageCapture.isReadyForCapture()); - QCOMPARE(errorSignal.size(), 0); - - imageCapture.capture(QString::fromLatin1("/dev/null")); - QCOMPARE(capturedSignal.size(), 1); - QCOMPARE(errorSignal.size(), 0); - QCOMPARE(imageCapture.error(), QStillImageCapture::NoError); -} - -void tst_QCamera::testCameraWhiteBalance() -{ - QCamera::WhiteBalanceModes whiteBalanceModes - = QCamera::WhiteBalanceAuto - | QCamera::WhiteBalanceFlash - | QCamera::WhiteBalanceIncandescent; - - MockCameraService service; - service.mockImageProcessingControl->setWhiteBalanceMode(QCamera::WhiteBalanceFlash); - service.mockImageProcessingControl->setSupportedWhiteBalanceModes(whiteBalanceModes); - service.mockImageProcessingControl->setManualWhiteBalance(34); - - MockProvider provider; - provider.service = &service; - - QCamera camera(0, &provider); - - QCOMPARE(camera.whiteBalanceMode(), QCamera::WhiteBalanceFlash); - QCOMPARE(camera.supportedWhiteBalanceModes(), whiteBalanceModes); - - camera.setWhiteBalanceMode(QCamera::WhiteBalanceIncandescent); - QCOMPARE(camera.whiteBalanceMode(), QCamera::WhiteBalanceIncandescent); - - camera.setWhiteBalanceMode(QCamera::WhiteBalanceManual); - QCOMPARE(camera.whiteBalanceMode(), QCamera::WhiteBalanceManual); - QCOMPARE(camera.manualWhiteBalance(), 34); - - camera.setManualWhiteBalance(432); - QCOMPARE(camera.manualWhiteBalance(), 432); -} - -void tst_QCamera::testCameraExposure() -{ - MockCameraService service; - provider->service = &service; - QCamera camera(0, provider); - - QVERIFY(camera.supportedExposureModes() & QCamera::ExposureAuto); - QCOMPARE(camera.exposureMode(), QCamera::ExposureAuto); - camera.setExposureMode(QCamera::ExposureManual); - QCOMPARE(camera.exposureMode(), QCamera::ExposureManual); - - QCOMPARE(camera.flashMode(), QCamera::FlashAuto); - QCOMPARE(camera.isFlashReady(), true); - camera.setFlashMode(QCamera::FlashOn); - QCOMPARE(camera.flashMode(), QCamera::FlashOn); - - camera.setFlashMode(QCamera::FlashRedEyeReduction); // not expected to be supported - QCOMPARE(camera.flashMode(), QCamera::FlashOn); - - QCOMPARE(camera.meteringMode(), QCamera::MeteringMatrix); - camera.setMeteringMode(QCamera::MeteringAverage); - QCOMPARE(camera.meteringMode(), QCamera::MeteringAverage); - camera.setMeteringMode(QCamera::MeteringSpot); - QCOMPARE(camera.meteringMode(), QCamera::MeteringAverage); - - - QCOMPARE(camera.exposureCompensation(), 0.0); - camera.setExposureCompensation(2.0); - QCOMPARE(camera.exposureCompensation(), 2.0); - - int minIso = camera.supportedIsoSensitivities().first(); - int maxIso = camera.supportedIsoSensitivities().last(); - QVERIFY(camera.isoSensitivity() > 0); - QVERIFY(minIso > 0); - QVERIFY(maxIso > 0); - camera.setManualIsoSensitivity(minIso); - QCOMPARE(camera.isoSensitivity(), minIso); - camera.setManualIsoSensitivity(maxIso*10); - QCOMPARE(camera.isoSensitivity(), maxIso); - camera.setManualIsoSensitivity(-10); - QCOMPARE(camera.isoSensitivity(), minIso); - camera.setAutoIsoSensitivity(); - QCOMPARE(camera.isoSensitivity(), 100); - - qreal minAperture = camera.supportedApertures().first(); - qreal maxAperture = camera.supportedApertures().last(); - QVERIFY(minAperture > 0); - QVERIFY(maxAperture > 0); - QVERIFY(camera.aperture() >= minAperture); - QVERIFY(camera.aperture() <= maxAperture); - - camera.setAutoAperture(); - QVERIFY(camera.aperture() >= minAperture); - QVERIFY(camera.aperture() <= maxAperture); - - camera.setManualAperture(0); - QCOMPARE(camera.aperture(), minAperture); - - camera.setManualAperture(10000); - QCOMPARE(camera.aperture(), maxAperture); - - - qreal minShutterSpeed = camera.supportedShutterSpeeds().first(); - qreal maxShutterSpeed = camera.supportedShutterSpeeds().last(); - QVERIFY(minShutterSpeed > 0); - QVERIFY(maxShutterSpeed > 0); - QVERIFY(camera.shutterSpeed() >= minShutterSpeed); - QVERIFY(camera.shutterSpeed() <= maxShutterSpeed); - - camera.setAutoShutterSpeed(); - QVERIFY(camera.shutterSpeed() >= minShutterSpeed); - QVERIFY(camera.shutterSpeed() <= maxShutterSpeed); - - camera.setManualShutterSpeed(0); - QCOMPARE(camera.shutterSpeed(), minShutterSpeed); - - camera.setManualShutterSpeed(10000); - QCOMPARE(camera.shutterSpeed(), maxShutterSpeed); - - QCOMPARE(camera.isExposureLocked(), false); - - camera.lockExposure(); - QCOMPARE(camera.isExposureLocked(), true); - - camera.unlockExposure(); - QCOMPARE(camera.isExposureLocked(), false); -} - -void tst_QCamera::testCameraFocus() -{ - MockCameraService service; - provider->service = &service; - QCamera camera(0, provider); - - QCOMPARE(camera.supportedFocusModes(), QCamera::AutoFocus | QCamera::ContinuousFocus); - QCOMPARE(camera.focusMode(), QCamera::AutoFocus); - camera.setFocusMode(QCamera::ManualFocus); - QCOMPARE(camera.focusMode(), QCamera::AutoFocus); - camera.setFocusMode(QCamera::ContinuousFocus); - QCOMPARE(camera.focusMode(), QCamera::ContinuousFocus); - QCOMPARE(camera.focusStatus(), QCamera::FocusInitial); - - QVERIFY(camera.isMacroFocusingSupported()); - QVERIFY(!camera.macroFocusingEnabled()); - camera.setMacroFocusingEnabled(true); - QVERIFY(camera.macroFocusingEnabled()); - - QVERIFY(camera.maximumOpticalZoom() >= 1.0); - QVERIFY(camera.maximumDigitalZoom() >= 1.0); - QCOMPARE(camera.opticalZoom(), 1.0); - QCOMPARE(camera.digitalZoom(), 1.0); - camera.zoomTo(0.5, 1.0); - QCOMPARE(camera.opticalZoom(), 1.0); - QCOMPARE(camera.digitalZoom(), 1.0); - camera.zoomTo(2.0, 0.5); - QCOMPARE(camera.opticalZoom(), 2.0); - QCOMPARE(camera.digitalZoom(), 1.0); - camera.zoomTo(2.0, 2.5); - QCOMPARE(camera.opticalZoom(), 2.0); - QCOMPARE(camera.digitalZoom(), 2.5); - camera.zoomTo(2000000.0, 1000000.0); - QVERIFY(qFuzzyCompare(camera.opticalZoom(), camera.maximumOpticalZoom())); - QVERIFY(qFuzzyCompare(camera.digitalZoom(), camera.maximumDigitalZoom())); -} - -void tst_QCamera::testImageSettings() -{ - QImageEncoderSettings settings; - QVERIFY(settings.isNull()); - QVERIFY(settings == QImageEncoderSettings()); - - QCOMPARE(settings.codec(), QString()); - settings.setCodec(QLatin1String("codecName")); - QCOMPARE(settings.codec(), QLatin1String("codecName")); - QVERIFY(!settings.isNull()); - QVERIFY(settings != QImageEncoderSettings()); - - settings = QImageEncoderSettings(); - QCOMPARE(settings.quality(), QtMedia::NormalQuality); - settings.setQuality(QtMedia::HighQuality); - QCOMPARE(settings.quality(), QtMedia::HighQuality); - QVERIFY(!settings.isNull()); - - settings = QImageEncoderSettings(); - QCOMPARE(settings.resolution(), QSize()); - settings.setResolution(QSize(320,240)); - QCOMPARE(settings.resolution(), QSize(320,240)); - settings.setResolution(800,600); - QCOMPARE(settings.resolution(), QSize(800,600)); - QVERIFY(!settings.isNull()); - - settings = QImageEncoderSettings(); - QVERIFY(settings.isNull()); - QCOMPARE(settings.codec(), QString()); - QCOMPARE(settings.quality(), QtMedia::NormalQuality); - QCOMPARE(settings.resolution(), QSize()); - - { - QImageEncoderSettings settings1; - QImageEncoderSettings settings2; - QCOMPARE(settings2, settings1); - - settings2 = settings1; - QCOMPARE(settings2, settings1); - QVERIFY(settings2.isNull()); - - settings1.setQuality(QtMedia::HighQuality); - - QVERIFY(settings2.isNull()); - QVERIFY(!settings1.isNull()); - QVERIFY(settings1 != settings2); - } - - { - QImageEncoderSettings settings1; - QImageEncoderSettings settings2(settings1); - QCOMPARE(settings2, settings1); - - settings2 = settings1; - QCOMPARE(settings2, settings1); - QVERIFY(settings2.isNull()); - - settings1.setQuality(QtMedia::HighQuality); - - QVERIFY(settings2.isNull()); - QVERIFY(!settings1.isNull()); - QVERIFY(settings1 != settings2); - } - - QImageEncoderSettings settings1; - QImageEncoderSettings settings2; - - settings1 = QImageEncoderSettings(); - settings1.setResolution(800,600); - settings2 = QImageEncoderSettings(); - settings2.setResolution(QSize(800,600)); - QVERIFY(settings1 == settings2); - settings2.setResolution(QSize(400,300)); - QVERIFY(settings1 != settings2); - - settings1 = QImageEncoderSettings(); - settings1.setCodec("codec1"); - settings2 = QImageEncoderSettings(); - settings2.setCodec("codec1"); - QVERIFY(settings1 == settings2); - settings2.setCodec("codec2"); - QVERIFY(settings1 != settings2); - - settings1 = QImageEncoderSettings(); - settings1.setQuality(QtMedia::NormalQuality); - settings2 = QImageEncoderSettings(); - settings2.setQuality(QtMedia::NormalQuality); - QVERIFY(settings1 == settings2); - settings2.setQuality(QtMedia::LowQuality); - QVERIFY(settings1 != settings2); -} - - - -QTEST_MAIN(tst_QCamera) - -#include "tst_qcamera.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontact/tst_qcontact.cpp --- a/qtmobility/tests/auto/qcontact/tst_qcontact.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontact/tst_qcontact.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,12 +42,21 @@ #include #include "qtcontacts.h" +#include "qcontactid.h" #include "qcontactmanagerdataholder.h" //QContactManagerDataHolder +#include + //TESTED_CLASS= //TESTED_FILES= QTM_USE_NAMESPACE +class HackEngine : public QContactManagerEngine +{ + public: + static void setRels(QContact* contact, const QList& rels) {QContactManagerEngine::setContactRelationships(contact, rels);} +}; + class tst_QContact: public QObject { Q_OBJECT @@ -66,6 +75,9 @@ void displayName(); void type(); void emptiness(); + void idLessThan(); + void idHash(); + void hash(); void traits(); void idTraits(); void localIdTraits(); @@ -550,7 +562,7 @@ related = c.relatedContacts(QContactRelationship::HasMember); QVERIFY(related.isEmpty()); - related = c.relatedContacts(QContactRelationship::HasMember, QContactRelationshipFilter::First); + related = c.relatedContacts(QContactRelationship::HasMember, QContactRelationship::First); QVERIFY(related.isEmpty()); QList relationshipList = c.relationships(); @@ -558,27 +570,6 @@ relationshipList = c.relationships(QContactRelationship::HasMember); QVERIFY(relationshipList.isEmpty()); - - // now test that we can change the order of relationships regardless of the number of relationships - QList orderedList = c.relationshipOrder(); - QVERIFY(orderedList == relationshipList); // should be the same by default - - QContactRelationship dummyRel; - QContactId firstId; - firstId.setManagerUri("test-nokia"); - firstId.setLocalId(QContactLocalId(5)); - QContactId secondId; - secondId.setManagerUri("test-nokia-2"); - secondId.setLocalId(QContactLocalId(5)); - dummyRel.setFirst(firstId); - dummyRel.setSecond(secondId); - dummyRel.setRelationshipType(QContactRelationship::HasAssistant); - - QList reorderedList; - reorderedList.append(dummyRel); - c.setRelationshipOrder(reorderedList); - - QVERIFY(c.relationshipOrder() == reorderedList); } void tst_QContact::displayName() @@ -645,6 +636,86 @@ QVERIFY(c.isEmpty() == true); // type doesn't affect emptiness } +void tst_QContact::idLessThan() +{ + QContactId id1; + id1.setManagerUri("a"); + id1.setLocalId(1); + QContactId id2; + id2.setManagerUri("a"); + id2.setLocalId(1); + QVERIFY(!(id1 < id2)); + QVERIFY(!(id2 < id1)); + QContactId id3; + id3.setManagerUri("a"); + id3.setLocalId(2); + QContactId id4; + id4.setManagerUri("b"); + id4.setLocalId(1); + QContactId id5; // no URI + id5.setLocalId(2); + QVERIFY(id1 < id3); + QVERIFY(!(id3 < id1)); + QVERIFY(id1 < id4); + QVERIFY(!(id4 < id1)); + QVERIFY(id3 < id4); + QVERIFY(!(id4 < id3)); + QVERIFY(id5 < id1); + QVERIFY(!(id1 < id5)); +} + +void tst_QContact::idHash() +{ + QContactId id1; + id1.setManagerUri("a"); + id1.setLocalId(1); + QContactId id2; + id2.setManagerUri("a"); + id2.setLocalId(1); + QContactId id3; + id3.setManagerUri("b"); + id3.setLocalId(1); + QVERIFY(qHash(id1) == qHash(id2)); + QVERIFY(qHash(id1) != qHash(id3)); + QSet set; + set.insert(id1); + set.insert(id2); + set.insert(id3); + QCOMPARE(set.size(), 2); +} + +void tst_QContact::hash() +{ + QContactId id; + id.setManagerUri("a"); + id.setLocalId(1); + QContact contact1; + contact1.setId(id); + QContactDetail detail1("definition"); + detail1.setValue("key", "value"); + contact1.saveDetail(&detail1); + QContact contact2; + contact2.setId(id); + contact2.saveDetail(&detail1); + QContact contact3; + contact3.setId(id); + QContactDetail detail3("definition"); + detail3.setValue("key", "another value"); + contact3.saveDetail(&detail3); + QContact contact4; // no details + contact4.setId(id); + QContact contact5; // preferred details and relationships shouldn't affect the hash + contact5.setId(id); + contact5.saveDetail(&detail1); + contact5.setPreferredDetail("action", detail1); + QContactRelationship rel; + HackEngine::setRels(&contact5, QList() << rel); + QVERIFY(qHash(contact1) == qHash(contact2)); + QVERIFY(qHash(contact1) != qHash(contact3)); + QVERIFY(qHash(contact1) != qHash(contact4)); + QVERIFY(qHash(contact1) == qHash(contact5)); +} + void tst_QContact::traits() { QVERIFY(sizeof(QContact) == sizeof(void *)); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactactions/sendemailaction/sendemailaction.cpp --- a/qtmobility/tests/auto/qcontactactions/sendemailaction/sendemailaction.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactactions/sendemailaction/sendemailaction.cpp Mon May 03 13:18:40 2010 +0300 @@ -123,19 +123,25 @@ return retn; } -bool QContactSendEmailAction::supportsDetail(const QContactDetail& detail) const +bool QContactSendEmailAction::isDetailSupported(const QContactDetail &detail, const QContact &) const { return (detail.definitionName() == QContactEmailAddress::DefinitionName); } -void QContactSendEmailAction::invokeAction(const QContact& contact, const QContactDetail& detail) +QList QContactSendEmailAction::supportedDetails(const QContact& contact) const +{ + return contact.details(QContactEmailAddress::DefinitionName); +} + +bool QContactSendEmailAction::invokeAction(const QContact& contact, const QContactDetail& detail, const QVariantMap& ) { Q_UNUSED(contact); Q_UNUSED(detail); QTimer::singleShot(1, this, SLOT(performAction())); + return true; } -QVariantMap QContactSendEmailAction::result() const +QVariantMap QContactSendEmailAction::results() const { return QVariantMap(); } @@ -143,5 +149,5 @@ void QContactSendEmailAction::performAction() { QMessageBox::information(0, "SendEmail Action", "This example action exists as an example of how the action interface may be implemented; it does not offer the advertised functionality."); - emit progress(QContactAction::FinishedState, QVariantMap()); + emit stateChanged(QContactAction::FinishedState); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactactions/sendemailaction/sendemailaction_p.h --- a/qtmobility/tests/auto/qcontactactions/sendemailaction/sendemailaction_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactactions/sendemailaction/sendemailaction_p.h Mon May 03 13:18:40 2010 +0300 @@ -74,9 +74,11 @@ QVariantMap metaData() const; QContactFilter contactFilter(const QVariant& value) const; - bool supportsDetail(const QContactDetail& detail) const; - void invokeAction(const QContact& contact, const QContactDetail& detail = QContactDetail()); - QVariantMap result() const; + bool isDetailSupported(const QContactDetail& detail, const QContact& contact = QContact()) const; + QList supportedDetails(const QContact& contact) const; + bool invokeAction(const QContact& contact, const QContactDetail& detail = QContactDetail(), const QVariantMap& params = QVariantMap()); + QVariantMap results() const; + State state() const {return QContactAction::FinishedState;} private slots: void performAction(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactactions/unittest/tst_qcontactactions.cpp --- a/qtmobility/tests/auto/qcontactactions/unittest/tst_qcontactactions.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactactions/unittest/tst_qcontactactions.cpp Mon May 03 13:18:40 2010 +0300 @@ -67,6 +67,8 @@ private slots: void testSendEmail(); void testDescriptor(); + void testDescriptorLessThan(); + void testDescriptorHash(); void traits(); }; @@ -314,7 +316,7 @@ QVERIFY(sendEmail->actionDescriptor().implementationVersion() != -1); QVERIFY(sendEmail->actionDescriptor().implementationVersion() != 0); //QVERIFY(!sendEmail->contactFilter().isEmpty()); - QVERIFY(sendEmail->supportsDetail(e)); + QVERIFY(sendEmail->isDetailSupported(e)); QVERIFY(sendEmail->supportedDetails(c).contains(e)); //QVERIFY(sendEmail->performAction(c, e)); //QVERIFY(sendEmail->performAction(c)); @@ -406,6 +408,54 @@ delete sendEmailAction3; } +void tst_QContactActions::testDescriptorLessThan() +{ + QContactActionDescriptor qcad1; + qcad1.setVendorName("a"); + qcad1.setActionName("a"); + qcad1.setImplementationVersion(1); + + QContactActionDescriptor qcad2; + qcad2.setVendorName("a"); + qcad2.setActionName("a"); + qcad2.setImplementationVersion(2); + + QContactActionDescriptor qcad3; + qcad3.setVendorName("a"); + qcad3.setActionName("b"); + qcad3.setImplementationVersion(1); + + QContactActionDescriptor qcad4; + qcad4.setVendorName("b"); + qcad4.setActionName("a"); + qcad4.setImplementationVersion(1); + + QVERIFY(qcad1 < qcad2); + QVERIFY(qcad2 < qcad3); + QVERIFY(qcad3 < qcad4); +} + +void tst_QContactActions::testDescriptorHash() +{ + QContactActionDescriptor qcad1; + qcad1.setVendorName("a"); + qcad1.setActionName("a"); + qcad1.setImplementationVersion(1); + + QContactActionDescriptor qcad2; + qcad2.setVendorName("a"); + qcad2.setActionName("a"); + qcad2.setImplementationVersion(1); + + QContactActionDescriptor qcad3; + qcad3.setVendorName("a"); + qcad3.setActionName("a"); + qcad3.setImplementationVersion(2); + + QVERIFY(qHash(qcad1) == qHash(qcad2)); + QVERIFY(qHash(qcad1) != qHash(qcad3)); +} + void tst_QContactActions::traits() { QCOMPARE(sizeof(QContactActionDescriptor), sizeof(void *)); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactasync/maliciousplugin/maliciousplugin.cpp --- a/qtmobility/tests/auto/qcontactasync/maliciousplugin/maliciousplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactasync/maliciousplugin/maliciousplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -58,15 +58,10 @@ { } -void MaliciousAsyncManagerEngine::deref() -{ - // does this leak? -} - -QString MaliciousAsyncManagerEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const +QString MaliciousAsyncManagerEngine::synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const { Q_UNUSED(contact); - error = QContactManager::NotSupportedError; + *error = QContactManager::NotSupportedError; return QString(); } @@ -113,9 +108,9 @@ } Q_EXPORT_PLUGIN2(MALICIOUSPLUGINTARGET, MaliciousEngineFactory); -QContactManagerEngine* MaliciousEngineFactory::engine(const QMap& parameters, QContactManager::Error& error) +QContactManagerEngine* MaliciousEngineFactory::engine(const QMap& parameters, QContactManager::Error* error) { Q_UNUSED(parameters); - error = QContactManager::NoError; - return &mame; + *error = QContactManager::NoError; + return new MaliciousAsyncManagerEngine(); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactasync/maliciousplugin/maliciousplugin_p.h --- a/qtmobility/tests/auto/qcontactasync/maliciousplugin/maliciousplugin_p.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactasync/maliciousplugin/maliciousplugin_p.h Mon May 03 13:18:40 2010 +0300 @@ -68,12 +68,133 @@ public: MaliciousAsyncManagerEngine(); - void deref(); - QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error& error) const; + QString synthesizedDisplayLabel(const QContact& contact, QContactManager::Error* error) const; QString managerName() const; bool startRequest(QContactAbstractRequest* req); bool cancelRequest(QContactAbstractRequest *req); + + QMap managerParameters() const {return QMap();} + int managerVersion() const {return 0;} + + QList contactIds(const QContactFilter& filter, const QList& sort, QContactManager::Error* error) const + { + return QContactManagerEngine::contactIds(filter, sort, error); + } + + QList contacts(const QContactFilter& filter, const QList& sort, const QContactFetchHint& fetch, QContactManager::Error* error) const + { + return QContactManagerEngine::contacts(filter, sort, fetch, error); + } + + QContact contact(const QContactLocalId& id, const QContactFetchHint& fetch, QContactManager::Error* error) const + { + return QContactManagerEngine::contact(id, fetch, error); + } + + bool saveContacts(QList* contacts, QMap* errorMap, QContactManager::Error* error) + { + return QContactManagerEngine::saveContacts(contacts, errorMap, error); + } + + bool removeContacts(const QList& contacts, QMap* errorMap, QContactManager::Error* error) + { + return QContactManagerEngine::removeContacts(contacts, errorMap, error); + } + + /* "Self" contact id (MyCard) */ + bool setSelfContactId(const QContactLocalId& id, QContactManager::Error* error) + { + return QContactManagerEngine::setSelfContactId(id, error); + } + + QContactLocalId selfContactId(QContactManager::Error* error) const + { + return QContactManagerEngine::selfContactId(error); + } + + /* Relationships between contacts */ + QList relationships(const QString& relType, const QContactId& id, QContactRelationship::Role role, QContactManager::Error* error) const + { + return QContactManagerEngine::relationships(relType, id, role, error); + } + + bool saveRelationships(QList* relationships, QMap* errorMap, QContactManager::Error* error) + { + return QContactManagerEngine::saveRelationships(relationships, errorMap, error); + } + + bool removeRelationships(const QList& relationships, QMap* errorMap, QContactManager::Error* error) + { + return QContactManagerEngine::removeRelationships(relationships, errorMap, error); + } + + /* Validation for saving */ + QContact compatibleContact(const QContact& contact, QContactManager::Error* error) const + { + return QContactManagerEngine::compatibleContact(contact, error); + } + + bool validateContact(const QContact& contact, QContactManager::Error* error) const + { + return QContactManagerEngine::validateContact(contact, error); + } + + bool validateDefinition(const QContactDetailDefinition& def, QContactManager::Error* error) const + { + return QContactManagerEngine::validateDefinition(def, error); + } + + /* Definitions - Accessors and Mutators */ + QMap detailDefinitions(const QString& contactType, QContactManager::Error* error) const + { + return QContactManagerEngine::detailDefinitions(contactType, error); + } + + QContactDetailDefinition detailDefinition(const QString& definitionId, const QString& contactType, QContactManager::Error* error) const + { + return QContactManagerEngine::detailDefinition(definitionId, contactType, error); + } + + bool saveDetailDefinition(const QContactDetailDefinition& def, const QString& contactType, QContactManager::Error* error) + { + return QContactManagerEngine::saveDetailDefinition(def, contactType, error); + } + + bool removeDetailDefinition(const QString& defName, const QString& contactType, QContactManager::Error* error) + { + return QContactManagerEngine::removeDetailDefinition(defName, contactType, error); + } + + /* Asynchronous Request Support */ + void requestDestroyed(QContactAbstractRequest* req) {QContactManagerEngine::requestDestroyed(req);} + bool waitForRequestFinished(QContactAbstractRequest* req, int msecs) {return QContactManagerEngine::waitForRequestFinished(req, msecs);} + + /* Capabilities reporting */ + bool hasFeature(QContactManager::ManagerFeature feat, const QString& contactType) const + { + return QContactManagerEngine::hasFeature(feat, contactType); + } + + bool isRelationshipTypeSupported(const QString& relType, const QString& ctype) const + { + return QContactManagerEngine::isRelationshipTypeSupported(relType, ctype); + } + + bool isFilterSupported(const QContactFilter& fil) const + { + return QContactManagerEngine::isFilterSupported(fil); + } + + QList supportedDataTypes() const + { + return QContactManagerEngine::supportedDataTypes(); + } + QStringList supportedContactTypes() const + { + return QContactManagerEngine::supportedContactTypes(); + } + }; class Q_DECL_EXPORT MaliciousEngineFactory : public QObject, public QContactManagerEngineFactory @@ -82,7 +203,7 @@ Q_INTERFACES(QtMobility::QContactManagerEngineFactory) public: - QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error& error); + QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error* error); QString managerName() const; private: diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactasync/unittest/tst_qcontactasync.cpp --- a/qtmobility/tests/auto/qcontactasync/unittest/tst_qcontactasync.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactasync/unittest/tst_qcontactasync.cpp Mon May 03 13:18:40 2010 +0300 @@ -216,16 +216,19 @@ void testQuickDestruction_data() { addManagers(); } void threadDelivery(); - void progressReceived(QContactFetchRequest* request, bool appendOnly); void threadDelivery_data() { addManagers(); } +protected slots: + void resultsAvailableReceived(); private: + bool compareContactLists(QList lista, QList listb); + bool compareContacts(QContact ca, QContact cb); bool containsIgnoringTimestamps(const QList& list, const QContact& c); bool compareIgnoringTimestamps(const QContact& ca, const QContact& cb); QContactManager* prepareModel(const QString& uri); Qt::HANDLE m_mainThreadId; - Qt::HANDLE m_progressSlotThreadId; + Qt::HANDLE m_resultsAvailableSlotThreadId; QContactManagerDataHolder managerDataHolder; }; @@ -253,6 +256,60 @@ { } +bool tst_QContactAsync::compareContactLists(QList lista, QList listb) +{ + // NOTE: This compare is contact order insensitive. + + // Remove matching contacts + foreach (QContact a, lista) { + foreach (QContact b, listb) { + if (compareContacts(a, b)) { + lista.removeOne(a); + listb.removeOne(b); + break; + } + } + } + return (lista.count() == 0 && listb.count() == 0); +} + +bool tst_QContactAsync::compareContacts(QContact ca, QContact cb) +{ + // NOTE: This compare is contact detail order insensitive. + + if (ca.localId() != cb.localId()) + return false; + + QList aDetails = ca.details(); + QList bDetails = cb.details(); + + // Remove matching details + foreach (QContactDetail ad, aDetails) { + foreach (QContactDetail bd, bDetails) { + if (ad == bd) { + ca.removeDetail(&ad); + cb.removeDetail(&bd); + break; + } + + // Special handling for timestamp + if (ad.definitionName() == QContactTimestamp::DefinitionName && + bd.definitionName() == QContactTimestamp::DefinitionName) { + QContactTimestamp at = static_cast(ad); + QContactTimestamp bt = static_cast(bd); + if (at.created().toString() == bt.created().toString() && + at.lastModified().toString() == bt.lastModified().toString()) { + ca.removeDetail(&ad); + cb.removeDetail(&bd); + break; + } + + } + } + } + return (ca == cb); +} + bool tst_QContactAsync::containsIgnoringTimestamps(const QList& list, const QContact& c) { QList cl = list; @@ -418,8 +475,10 @@ sorting.clear(); cfr.setFilter(fil); cfr.setSorting(sorting); - cfr.setDefinitionRestrictions(QStringList(QContactName::DefinitionName)); - QCOMPARE(cfr.definitionRestrictions(), QStringList(QContactName::DefinitionName)); + QContactFetchHint fetchHint; + fetchHint.setDetailDefinitionsHint(QStringList(QContactName::DefinitionName)); + cfr.setFetchHint(fetchHint); + QCOMPARE(cfr.fetchHint().detailDefinitionsHint(), QStringList(QContactName::DefinitionName)); QVERIFY(!cfr.cancel()); // not started QVERIFY(cfr.start()); QVERIFY((cfr.isActive() && cfr.state() == QContactAbstractRequest::ActiveState) || cfr.isFinished()); @@ -478,7 +537,7 @@ sorting.clear(); cfr.setFilter(fil); cfr.setSorting(sorting); - cfr.setDefinitionRestrictions(QStringList()); + cfr.setFetchHint(QContactFetchHint()); int bailoutCount = MAX_OPTIMISTIC_SCHEDULING_LIMIT; // attempt to cancel 40 times. If it doesn't work due to threading, bail out. while (true) { @@ -493,7 +552,8 @@ sorting.clear(); cfr.setFilter(fil); cfr.setSorting(sorting); - cfr.setDefinitionRestrictions(QStringList()); + cfr.setFetchHint(QContactFetchHint()); + cfr.setFetchHint(QContactFetchHint()); bailoutCount -= 1; if (!bailoutCount) { qWarning("Unable to test cancelling due to thread scheduling!"); @@ -524,7 +584,7 @@ sorting.clear(); cfr.setFilter(fil); cfr.setSorting(sorting); - cfr.setDefinitionRestrictions(QStringList()); + cfr.setFetchHint(QContactFetchHint()); bailoutCount -= 1; spy.clear(); if (!bailoutCount) { @@ -901,7 +961,7 @@ expected.clear(); expected << cm->contact(cm->contactIds().last()); result = csr.contacts(); - QCOMPARE(expected, result); + QVERIFY(compareContactLists(expected, result)); //here we can't compare the whole contact details, testContact would be updated by async call because we just use QThreadSignalSpy to receive signals. //QVERIFY(containsIgnoringTimestamps(expected, testContact)); @@ -1128,7 +1188,7 @@ QScopedPointer cm(prepareModel(uri)); if (!cm->hasFeature(QContactManager::MutableDefinitions)) { - QSKIP("This contact manager doest not support mutable definitions, can't remove a definition!", SkipSingle); + QSKIP("This contact manager does not support mutable definitions, can't remove a definition!", SkipSingle); } QContactDetailDefinitionRemoveRequest drr; QVERIFY(drr.type() == QContactAbstractRequest::DetailDefinitionRemoveRequest); @@ -1236,7 +1296,7 @@ drr.waitForFinished(); drr.setDefinitionNames(QContactType::TypeContact, removeIds); - QCOMPARE(cm->detailDefinitions().keys().size(), originalCount - 2); // hasn't changed + QCOMPARE(cm->detailDefinitions().keys().size(), originalCount - 3); // finished bailoutCount -= 1; if (!bailoutCount) { qWarning("Unable to test cancelling due to thread scheduling!"); @@ -1244,6 +1304,7 @@ break; } spy.clear(); + // XXX should be readded continue; } @@ -1281,7 +1342,7 @@ QVERIFY(spy.count() >= 1); // active + cancelled progress signals spy.clear(); - QCOMPARE(cm->detailDefinitions().keys().size(), originalCount - 2); // hasn't changed + QCOMPARE(cm->detailDefinitions().keys().size(), originalCount - 3); // hasn't changed break; } @@ -1295,7 +1356,7 @@ if (!cm->hasFeature(QContactManager::MutableDefinitions)) { - QSKIP("This contact manager doest not support mutable definitions, can't save a definition!", SkipSingle); + QSKIP("This contact manager does not support mutable definitions, can't save a definition!", SkipSingle); } QContactDetailDefinitionSaveRequest dsr; @@ -1457,6 +1518,15 @@ { QFETCH(QString, uri); QScopedPointer cm(prepareModel(uri)); + + if (!cm->hasFeature(QContactManager::Relationships)) { + QSKIP("This contact manager does not support relationships!", SkipSingle); + } + + if (cm->managerName() == "symbian") { + QSKIP("This contact manager does not support the required relationship types for this test to pass!", SkipSingle); + } + QContactRelationshipFetchRequest rfr; QVERIFY(rfr.type() == QContactAbstractRequest::RelationshipFetchRequest); @@ -1529,7 +1599,7 @@ QVERIFY(spy.count() >= 1); // active + finished progress signals spy.clear(); - rels = cm->relationships(aId, QContactRelationshipFilter::First); + rels = cm->relationships(aId, QContactRelationship::First); result = rfr.relationships(); QCOMPARE(rels, result); @@ -1557,7 +1627,7 @@ spy.clear(); // retrieve rels where second = id of B, and ensure that we get the same results - rels = cm->relationships(bId, QContactRelationshipFilter::Second); + rels = cm->relationships(bId, QContactRelationship::Second); result = rfr.relationships(); QCOMPARE(rels, result); @@ -1590,7 +1660,7 @@ QVERIFY(rfr.start()); QVERIFY(rfr.waitForFinished()); result = rfr.relationships(); - rels = cm->relationships(cId, QContactRelationshipFilter::First); + rels = cm->relationships(cId, QContactRelationship::First); QCOMPARE(rels, result); // cancelling @@ -1655,6 +1725,15 @@ { QFETCH(QString, uri); QScopedPointer cm(prepareModel(uri)); + + if (!cm->hasFeature(QContactManager::Relationships)) { + QSKIP("This contact manager does not support relationships!", SkipSingle); + } + + if (cm->managerName() == "symbian") { + QSKIP("This contact manager does not support the required relationship types for this test to pass!", SkipSingle); + } + QContactRelationshipRemoveRequest rrr; QVERIFY(rrr.type() == QContactAbstractRequest::RelationshipRemoveRequest); @@ -1710,7 +1789,7 @@ QVERIFY(rrr.isFinished()); QVERIFY(spy.count() >= 1); // active + finished progress signals spy.clear(); - QCOMPARE(cm->relationships(QContactRelationship::HasAssistant, cId, QContactRelationshipFilter::Second).size(), 1); + QCOMPARE(cm->relationships(QContactRelationship::HasAssistant, cId, QContactRelationship::Second).size(), 1); // remove (asynchronously) a nonexistent relationship - should fail. r.setFirst(cId); @@ -1730,7 +1809,7 @@ QVERIFY(spy.count() >= 1); // active + finished progress signals spy.clear(); - QCOMPARE(cm->relationships(QContactRelationship::HasManager, cId, QContactRelationshipFilter::First).size(), 0); + QCOMPARE(cm->relationships(QContactRelationship::HasManager, cId, QContactRelationship::First).size(), 0); // QCOMPARE(rrr.error(), QContactManager::DoesNotExistError); // cancelling @@ -1803,6 +1882,15 @@ { QFETCH(QString, uri); QScopedPointer cm(prepareModel(uri)); + + if (!cm->hasFeature(QContactManager::Relationships)) { + QSKIP("This contact manager does not support relationships!", SkipSingle); + } + + if (cm->managerName() == "symbian") { + QSKIP("This contact manager does not support the required relationship types for this test to pass!", SkipSingle); + } + QContactRelationshipSaveRequest rsr; QVERIFY(rsr.type() == QContactAbstractRequest::RelationshipSaveRequest); @@ -1854,7 +1942,7 @@ QVERIFY(spy.count() >= 1); // active + finished progress signals spy.clear(); - QList expected = cm->relationships(QContactRelationship::HasSpouse, aId, QContactRelationshipFilter::First); + QList expected = cm->relationships(QContactRelationship::HasSpouse, aId, QContactRelationship::First); QList result = rsr.relationships(); QCOMPARE(expected, result); QVERIFY(result.contains(testRel)); @@ -1877,7 +1965,7 @@ spy.clear(); expected.clear(); - expected = cm->relationships(QContactRelationship::HasSpouse, aId, QContactRelationshipFilter::First); + expected = cm->relationships(QContactRelationship::HasSpouse, aId, QContactRelationship::First); result = rsr.relationships(); QCOMPARE(result, QList() << testRel); QVERIFY(expected.contains(testRel)); @@ -1918,7 +2006,7 @@ spy.clear(); // verify that the changes were not saved - QList aRels = cm->relationships(aId, QContactRelationshipFilter::First); + QList aRels = cm->relationships(aId, QContactRelationship::First); QVERIFY(!aRels.contains(testRel)); QCOMPARE(cm->relationships(aId).size(), originalCount + 2); // should still only be two extra @@ -1953,7 +2041,7 @@ spy.clear(); // verify that the changes were not saved - QList aRels = cm->relationships(aId, QContactRelationshipFilter::First); + QList aRels = cm->relationships(aId, QContactRelationship::First); QVERIFY(!aRels.contains(testRel)); QCOMPARE(cm->relationships(aId).size(), originalCount + 2); // should still only be two extra @@ -2110,18 +2198,19 @@ QFETCH(QString, uri); QScopedPointer cm(prepareModel(uri)); m_mainThreadId = cm->thread()->currentThreadId(); - m_progressSlotThreadId = m_mainThreadId; + m_resultsAvailableSlotThreadId = m_mainThreadId; // now perform a fetch request and check that the progress is delivered to the correct thread. QContactFetchRequest *req = new QContactFetchRequest; req->setManager(cm.data()); - connect(req, SIGNAL(progress(QContactFetchRequest*,bool)), this, SLOT(progressReceived(QContactFetchRequest*, bool))); + connect(req, SIGNAL(resultsAvailable()), this, SLOT(resultsAvailableReceived())); req->start(); int totalWaitTime = 0; + QTest::qWait(1); // force it to process events at least once. while (req->state() != QContactAbstractRequest::FinishedState) { // ensure that the progress signal was delivered to the main thread. - QCOMPARE(m_mainThreadId, m_progressSlotThreadId); + QCOMPARE(m_mainThreadId, m_resultsAvailableSlotThreadId); QTest::qWait(5); // spin until done totalWaitTime += 5; @@ -2134,14 +2223,17 @@ } // ensure that the progress signal was delivered to the main thread. - QCOMPARE(m_mainThreadId, m_progressSlotThreadId); + QCOMPARE(m_mainThreadId, m_resultsAvailableSlotThreadId); delete req; } -void tst_QContactAsync::progressReceived(QContactFetchRequest* request, bool appendOnly) +void tst_QContactAsync::resultsAvailableReceived() { - Q_UNUSED(appendOnly); - m_progressSlotThreadId = request->thread()->currentThreadId(); + QContactFetchRequest *req = qobject_cast(QObject::sender()); + if (req) + m_resultsAvailableSlotThreadId = req->thread()->currentThreadId(); + else + qDebug() << "resultsAvailableReceived() : request deleted; unable to set thread id!"; } void tst_QContactAsync::addManagers() @@ -2155,6 +2247,7 @@ managers.removeAll("invalid"); managers.removeAll("maliciousplugin"); managers.removeAll("testdummy"); + managers.removeAll("symbiansim"); // SIM backend does not support all the required details for tests to pass. foreach(QString mgr, managers) { QMap params; @@ -2205,6 +2298,15 @@ cm->saveContact(&a); cm->saveContact(&b); cm->saveContact(&c); + + if (!cm->hasFeature(QContactManager::Relationships)) { + return cm; + } + + if (cm->managerName() == "symbian") { + // Symbian backend does not support other relationships than HasMember (which is same as groups) + return cm; + } QContactRelationship arb; arb.setFirst(a.id()); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactdetail/tst_qcontactdetail.cpp --- a/qtmobility/tests/auto/qcontactdetail/tst_qcontactdetail.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactdetail/tst_qcontactdetail.cpp Mon May 03 13:18:40 2010 +0300 @@ -43,6 +43,7 @@ #include "qtcontacts.h" #include "qcontactmanagerdataholder.h" //QContactManagerDataHolder +#include //TESTED_CLASS= //TESTED_FILES= @@ -68,7 +69,7 @@ void templates(); void contexts(); void values(); - void preferredActions(); + void hash(); void traits(); }; @@ -542,35 +543,30 @@ QVERIFY(!p.removeValue("does not exist")); } -void tst_QContactDetail::preferredActions() +void tst_QContactDetail::hash() { - QList prefs; - QContactActionDescriptor ad; - QContactDetail det; - - ad.setActionName("test"); - ad.setImplementationVersion(1); - ad.setVendorName("Nokia"); - - prefs.append(ad); - - ad.setActionName("test-two"); - ad.setImplementationVersion(1); - ad.setVendorName("Nokia"); - - prefs.append(ad); - det.setPreferredActions(prefs); - QVERIFY(det.preferredActions() == prefs); + QContactDetail detail1("definition"); + detail1.setValue("key", "value"); + QContactDetail detail2("definition"); + detail2.setValue("key", "value"); + QContactDetail detail3("definition"); + detail3.setValue("key", "different value"); + QVERIFY(qHash(detail1) == qHash(detail2)); + QVERIFY(qHash(detail1) != qHash(detail3)); + QSet set; + set.insert(detail1); + set.insert(detail2); + set.insert(detail3); + QCOMPARE(set.size(), 2); } void tst_QContactDetail::traits() { - // QContactDetail has a vtable and a dpointer, so we can't really make claims about the size - // QCOMPARE(sizeof(QContactDetail), sizeof(void *)); + QCOMPARE(sizeof(QContactDetail), sizeof(void *)); QTypeInfo ti; QVERIFY(ti.isComplex); QVERIFY(!ti.isStatic); - QVERIFY(ti.isLarge); // virtual table + d pointer + QVERIFY(!ti.isLarge); QVERIFY(!ti.isPointer); QVERIFY(!ti.isDummy); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactdetails/tst_qcontactdetails.cpp --- a/qtmobility/tests/auto/qcontactdetails/tst_qcontactdetails.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactdetails/tst_qcontactdetails.cpp Mon May 03 13:18:40 2010 +0300 @@ -81,7 +81,10 @@ void onlineAccount(); void organization(); void phoneNumber(); + void ringtone(); void syncTarget(); + void tag(); + void thumbnail(); void timestamp(); void type(); void url(); @@ -237,34 +240,27 @@ QContactAvatar a1, a2; // test property set - a1.setAvatar("1234"); - QCOMPARE(a1.avatar(), QString("1234")); - QCOMPARE(a1.value(QContactAvatar::FieldAvatar), QString("1234")); - a1.setSubType(QContactAvatar::SubTypeAudioRingtone); - QCOMPARE(a1.subType(), QString(QLatin1String(QContactAvatar::SubTypeAudioRingtone))); - QCOMPARE(a1.value(QContactAvatar::FieldSubType), QString(QLatin1String(QContactAvatar::SubTypeAudioRingtone))); - - a1.setSubType(QContactAvatar::SubTypeImage); - - //pixmap - uchar pixDataRGB[] = {255, 0, 0, 0, 0, 255, 0, 0, 255, 255, 0, 0}; // Red, Blue, Red, Blue - QImage img(pixDataRGB, 2, 2, 6, QImage::Format_RGB888); // 2 pixels width, 2 pixels height, 6 bytes per line, RGB888 format - QImage scaled = img.scaled(100, 100); // Scale image to show results better - QPixmap pix = QPixmap::fromImage(scaled); // Create pixmap from image - a1.setPixmap(pix); + a1.setImageUrl(QUrl("1234")); + QCOMPARE(a1.imageUrl(), QUrl("1234")); + QCOMPARE(a1.value(QContactAvatar::FieldImageUrl), QUrl("1234")); + a2.setVideoUrl(QUrl("videoUrl")); + a2.setImageUrl(QUrl("imageUrl")); + QCOMPARE(a2.videoUrl(), QUrl("videoUrl")); + QCOMPARE(a2.value(QContactAvatar::FieldVideoUrl), QUrl("videoUrl")); + QCOMPARE(a2.imageUrl(), QUrl("imageUrl")); + QCOMPARE(a2.value(QContactAvatar::FieldImageUrl), QUrl("imageUrl")); // test property add QVERIFY(c.saveDetail(&a1)); QCOMPARE(c.details(QContactAvatar::DefinitionName).count(), 1); - QCOMPARE(QContactAvatar(c.details(QContactAvatar::DefinitionName).value(0)).avatar(), a1.avatar()); - QCOMPARE(a1.pixmap(), pix); + QCOMPARE(QContactAvatar(c.details(QContactAvatar::DefinitionName).value(0)).imageUrl(), a1.imageUrl()); // test property update a1.setValue("label","label1"); - a1.setAvatar("12345"); + a1.setImageUrl(QUrl("12345")); QVERIFY(c.saveDetail(&a1)); QCOMPARE(c.details(QContactAvatar::DefinitionName).value(0).value("label"), QString("label1")); - QCOMPARE(c.details(QContactAvatar::DefinitionName).value(0).value(QContactAvatar::FieldAvatar), QString("12345")); + QCOMPARE(c.details(QContactAvatar::DefinitionName).value(0).value(QContactAvatar::FieldImageUrl), QUrl("12345")); // test property remove QVERIFY(c.removeDetail(&a1)); @@ -608,6 +604,39 @@ QCOMPARE(c.details(QContactNickname::DefinitionName).count(), 0); } +void tst_QContactDetails::note() +{ + QContact c; + QContactNote n1, n2; + + // test property set + n1.setNote("lorem ipsum"); + QCOMPARE(n1.note(), QString("lorem ipsum")); + QCOMPARE(n1.value(QContactNote::FieldNote), QString("lorem ipsum")); + + // test property add + QVERIFY(c.saveDetail(&n1)); + QCOMPARE(c.details(QContactNote::DefinitionName).count(), 1); + QCOMPARE(QContactNote(c.details(QContactNote::DefinitionName).value(0)).note(), n1.note()); + + // test property update + n1.setValue("label","label1"); + n1.setNote("orange gypsum"); + QVERIFY(c.saveDetail(&n1)); + QCOMPARE(c.details(QContactNote::DefinitionName).value(0).value("label"), QString("label1")); + QCOMPARE(c.details(QContactNote::DefinitionName).value(0).value(QContactNote::FieldNote), QString("orange gypsum")); + + // test property remove + QVERIFY(c.removeDetail(&n1)); + QCOMPARE(c.details(QContactNote::DefinitionName).count(), 0); + QVERIFY(c.saveDetail(&n2)); + QCOMPARE(c.details(QContactNote::DefinitionName).count(), 1); + QVERIFY(c.removeDetail(&n2)); + QCOMPARE(c.details(QContactNote::DefinitionName).count(), 0); + QVERIFY(c.removeDetail(&n2) == false); + QCOMPARE(c.details(QContactNote::DefinitionName).count(), 0); +} + void tst_QContactDetails::onlineAccount() { QContact c; @@ -617,15 +646,6 @@ o1.setAccountUri("test@nokia.com"); QCOMPARE(o1.accountUri(), QString("test@nokia.com")); QCOMPARE(o1.value(QContactOnlineAccount::FieldAccountUri), QString("test@nokia.com")); - o1.setNickname("test"); - QCOMPARE(o1.nickname(), QString("test")); - QCOMPARE(o1.value(QContactOnlineAccount::FieldNickname), QString("test")); - o1.setStatusMessage("Gone Fishing"); - QCOMPARE(o1.statusMessage(), QString("Gone Fishing")); - QCOMPARE(o1.value(QContactOnlineAccount::FieldStatusMessage), QString("Gone Fishing")); - o1.setPresence("Extended Away"); - QCOMPARE(o1.presence(), QString("Extended Away")); - QCOMPARE(o1.value(QContactOnlineAccount::FieldPresence), QString("Extended Away")); // Sub types o1.setSubTypes(QContactOnlineAccount::SubTypeSip); @@ -643,9 +663,6 @@ QVERIFY(c.saveDetail(&o1)); QCOMPARE(c.details(QContactOnlineAccount::DefinitionName).count(), 1); QCOMPARE(QContactOnlineAccount(c.details(QContactOnlineAccount::DefinitionName).value(0)).accountUri(), o1.accountUri()); - QCOMPARE(QContactOnlineAccount(c.details(QContactOnlineAccount::DefinitionName).value(0)).presence(), o1.presence()); - QCOMPARE(QContactOnlineAccount(c.details(QContactOnlineAccount::DefinitionName).value(0)).nickname(), o1.nickname()); - QCOMPARE(QContactOnlineAccount(c.details(QContactOnlineAccount::DefinitionName).value(0)).statusMessage(), o1.statusMessage()); QCOMPARE(QContactOnlineAccount(c.details(QContactOnlineAccount::DefinitionName).value(0)).accountUri(), o1.accountUri()); // test property update @@ -684,9 +701,9 @@ QCOMPARE(o1.location(), QString("location one")); QCOMPARE(o1.value(QContactOrganization::FieldLocation), QString("location one")); - o1.setLogo("logo one"); - QCOMPARE(o1.logo(), QString("logo one")); - QCOMPARE(o1.value(QContactOrganization::FieldLogo), QString("logo one")); + o1.setLogoUrl(QUrl("logo one")); + QCOMPARE(o1.logoUrl(), QUrl("logo one")); + QCOMPARE(o1.value(QContactOrganization::FieldLogoUrl), QUrl("logo one")); o1.setTitle("title one"); QCOMPARE(o1.title(), QString("title one")); @@ -719,13 +736,13 @@ // organization-specific API testing o1.setDepartment(QStringList(QString("Imaginary Dept"))); o1.setLocation("Utopia"); - o1.setLogo("logo.png"); + o1.setLogoUrl(QUrl("logo.png")); o1.setName("Utopian Megacorporation"); o1.setTitle("Generic Employee"); c.saveDetail(&o1); QVERIFY(c.detail(QContactOrganization::DefinitionName).value(QContactOrganization::FieldDepartment) == QStringList(QString("Imaginary Dept"))); QVERIFY(c.detail(QContactOrganization::DefinitionName).value(QContactOrganization::FieldLocation) == QString("Utopia")); - QVERIFY(c.detail(QContactOrganization::DefinitionName).value(QContactOrganization::FieldLogo) == QString("logo.png")); + QVERIFY(c.detail(QContactOrganization::DefinitionName).value(QContactOrganization::FieldLogoUrl) == QUrl("logo.png")); QVERIFY(c.detail(QContactOrganization::DefinitionName).value(QContactOrganization::FieldName) == QString("Utopian Megacorporation")); QVERIFY(c.detail(QContactOrganization::DefinitionName).value(QContactOrganization::FieldTitle) == QString("Generic Employee")); } @@ -745,7 +762,7 @@ QCOMPARE(p1.subTypes(), QStringList() << QLatin1String(QContactPhoneNumber::SubTypeCar)); QStringList sl; - sl << QLatin1String(QContactPhoneNumber::SubTypeMobile) << QLatin1String(QContactPhoneNumber::SubTypeFacsimile); + sl << QLatin1String(QContactPhoneNumber::SubTypeMobile) << QLatin1String(QContactPhoneNumber::SubTypeFax); p1.setSubTypes(sl); QCOMPARE(p1.subTypes(), sl); @@ -764,7 +781,7 @@ p1.setSubTypes(QContactPhoneNumber::SubTypeDtmfMenu); c.saveDetail(&p1); QVERIFY(c.detail(QContactPhoneNumber::DefinitionName).variantValue(QContactPhoneNumber::FieldSubTypes).toStringList() == QStringList(QString(QLatin1String(QContactPhoneNumber::SubTypeDtmfMenu)))); - p1.setSubTypes(QStringList() << QContactPhoneNumber::SubTypeModem << QContactPhoneNumber::SubTypeFacsimile); + p1.setSubTypes(QStringList() << QContactPhoneNumber::SubTypeModem << QContactPhoneNumber::SubTypeFax); c.saveDetail(&p1); QVERIFY(c.detail(QContactPhoneNumber::DefinitionName).variantValue(QContactPhoneNumber::FieldSubTypes).toStringList() == p1.subTypes()); @@ -779,6 +796,47 @@ QCOMPARE(c.details(QContactPhoneNumber::DefinitionName).count(), 0); } +void tst_QContactDetails::ringtone() +{ + QContact c; + QContactRingtone r1, r2; + + // test property set + r1.setAudioRingtoneUrl(QUrl("audioUrl")); + QCOMPARE(r1.audioRingtoneUrl(), QUrl("audioUrl")); + QCOMPARE(r1.value(QContactRingtone::FieldAudioRingtoneUrl), QUrl("audioUrl")); + + // and the other fields + r2.setVideoRingtoneUrl(QUrl("videoUrl")); + QCOMPARE(r2.videoRingtoneUrl(), QUrl("videoUrl")); + QCOMPARE(r2.value(QContactRingtone::FieldVideoRingtoneUrl), QUrl("videoUrl")); + r2.setVibrationRingtoneUrl(QUrl("vibrationUrl")); + QCOMPARE(r2.vibrationRingtoneUrl(), QUrl("vibrationUrl")); + QCOMPARE(r2.value(QContactRingtone::FieldVibrationRingtoneUrl), QUrl("vibrationUrl")); + + // test property add + QVERIFY(c.saveDetail(&r1)); + QCOMPARE(c.details(QContactRingtone::DefinitionName).count(), 1); + QCOMPARE(QContactRingtone(c.details(QContactRingtone::DefinitionName).value(0)).audioRingtoneUrl(), r1.audioRingtoneUrl()); + + // test property update + r1.setValue("label","label1"); + r1.setAudioRingtoneUrl(QUrl("audioUrl2")); + QVERIFY(c.saveDetail(&r1)); + QCOMPARE(c.details(QContactRingtone::DefinitionName).value(0).value("label"), QString("label1")); + QCOMPARE(c.details(QContactRingtone::DefinitionName).value(0).value(QContactRingtone::FieldAudioRingtoneUrl), QUrl("audioUrl2")); + + // test property remove + QVERIFY(c.removeDetail(&r1)); + QCOMPARE(c.details(QContactRingtone::DefinitionName).count(), 0); + QVERIFY(c.saveDetail(&r2)); + QCOMPARE(c.details(QContactRingtone::DefinitionName).count(), 1); + QVERIFY(c.removeDetail(&r2)); + QCOMPARE(c.details(QContactRingtone::DefinitionName).count(), 0); + QVERIFY(c.removeDetail(&r2) == false); + QCOMPARE(c.details(QContactRingtone::DefinitionName).count(), 0); +} + void tst_QContactDetails::syncTarget() { QContact c; @@ -812,6 +870,77 @@ QCOMPARE(c.details(QContactSyncTarget::DefinitionName).count(), 0); } +void tst_QContactDetails::tag() +{ + QContact c; + QContactTag t1, t2; + + // test property set + t1.setTag("red"); + QCOMPARE(t1.tag(), QString("red")); + QCOMPARE(t1.value(QContactTag::FieldTag), QString("red")); + + // test property add + QVERIFY(c.saveDetail(&t1)); + QCOMPARE(c.details(QContactTag::DefinitionName).count(), 1); + QCOMPARE(QContactTag(c.details(QContactTag::DefinitionName).value(0)).tag(), t1.tag()); + QVERIFY(c.saveDetail(&t2)); + QCOMPARE(c.details(QContactTag::DefinitionName).count(), 2); + + // test property update + t1.setValue("label","label1"); + t1.setTag("green"); + QVERIFY(c.saveDetail(&t1)); + QCOMPARE(c.details(QContactTag::DefinitionName).value(0).value("label"), QString("label1")); + QCOMPARE(c.details(QContactTag::DefinitionName).value(0).value(QContactTag::FieldTag), QString("green")); + + // test property remove + QVERIFY(c.removeDetail(&t1)); + QCOMPARE(c.details(QContactTag::DefinitionName).count(), 1); + QVERIFY(c.removeDetail(&t2)); + QCOMPARE(c.details(QContactTag::DefinitionName).count(), 0); + QVERIFY(c.removeDetail(&t2) == false); + QCOMPARE(c.details(QContactTag::DefinitionName).count(), 0); +} + +void tst_QContactDetails::thumbnail() +{ + QContact c; + QContactThumbnail t1, t2; + QImage i1, i2; // XXX TODO: FIXME load an image from bytearray + + // test property set + t1.setThumbnail(i1); + QCOMPARE(t1.thumbnail(), i1); + QCOMPARE(t1.value(QContactThumbnail::FieldThumbnail), i1); + + // Make sure we have none to start with + QCOMPARE(c.details(QContactThumbnail::DefinitionName).count(), 0); + + // test property add + QVERIFY(c.saveDetail(&t1)); + QCOMPARE(c.details(QContactThumbnail::DefinitionName).count(), 1); + QCOMPARE(QContactThumbnail(c.details(QContactThumbnail::DefinitionName).value(0)).thumbnail(), t1.thumbnail()); + + // test property update + t1.setValue("label","label1"); + t1.setThumbnail(i2); + QVERIFY(c.saveDetail(&t1)); + QCOMPARE(c.details(QContactThumbnail::DefinitionName).value(0).value("label"), QString("label1")); + QCOMPARE(c.details(QContactThumbnail::DefinitionName).value(0).value(QContactThumbnail::FieldThumbnail), i2); + + // Uniqueness is not currently enforced + QCOMPARE(c.details(QContactThumbnail::DefinitionName).count(), 1); + t2.setThumbnail(i1); + QVERIFY(c.saveDetail(&t2)); + QCOMPARE(c.details(QContactThumbnail::DefinitionName).count(), 2); // save should overwrite! + QCOMPARE(QContactThumbnail(c.details(QContactThumbnail::DefinitionName).value(0)).thumbnail(), i1); + QCOMPARE(QContactThumbnail(c.details(QContactThumbnail::DefinitionName).value(0)).thumbnail(), t2.thumbnail()); + + QVERIFY(c.removeDetail(&t1)); + QCOMPARE(c.details(QContactThumbnail::DefinitionName).count(), 1); +} + void tst_QContactDetails::timestamp() { QContact c; @@ -918,9 +1047,53 @@ QCOMPARE(c.details(QContactUrl::DefinitionName).count(), 0); } + + + + + + + + + + + +// define a custom detail to test inheritance/slicing +class CustomTestDetail : public QContactDetail +{ +public: + Q_DECLARE_CUSTOM_CONTACT_DETAIL(CustomTestDetail, "CustomTestDetail") + Q_DECLARE_LATIN1_CONSTANT(FieldTestLabel, "TestLabel"); + + ~CustomTestDetail() + { + // we define a dtor which does some random stuff + // to test that the virtual dtor works as expected. + + int *temp = 0; + int random = qrand(); + random += 1; + if (random > 0) { + temp = new int; + *temp = 5; + } + + if (temp) { + delete temp; + } + } + + void setTestLabel(const QString& testLabel) { setValue(FieldTestLabel, testLabel); } + QString testLabel() const { return value(FieldTestLabel); } +}; +Q_DEFINE_LATIN1_CONSTANT(CustomTestDetail::FieldTestLabel, "TestLabel"); +Q_DEFINE_LATIN1_CONSTANT(CustomTestDetail::DefinitionName, "CustomTestDetail"); + void tst_QContactDetails::custom() { QContact c; + + // first, test a custom definition detail QContactDetail c1("mycustom"), c2("mycustom"); // test property set @@ -946,39 +1119,63 @@ QCOMPARE(c.details("mycustom").count(), 0); QVERIFY(c.removeDetail(&c2) == false); QCOMPARE(c.details("mycustom").count(), 0); -} + -void tst_QContactDetails::note() -{ - QContact c; - QContactNote n1, n2; + // then, test a custom subclass (we don't test registration of the custom definition, however) + CustomTestDetail ctd1, ctd2; + ctd1.setTestLabel("this is a test"); + ctd2.setTestLabel("test 2"); + QCOMPARE(ctd1.testLabel(), QString("this is a test")); + + // prior to add + QCOMPARE(c.details("CustomTestDetail").count(), 0); + QCOMPARE(c.details().count(), 0); - // test property set - n1.setNote("lorem ipsum"); - QCOMPARE(n1.note(), QString("lorem ipsum")); - QCOMPARE(n1.value(QContactNote::FieldNote), QString("lorem ipsum")); + // test detail add + QVERIFY(c.saveDetail(&ctd1)); + QCOMPARE(c.details("CustomTestDetail").count(), 1); + QCOMPARE(c.details().count(), 1); + QCOMPARE(c.details().first().testLabel(), QString("this is a test")); - // test property add - QVERIFY(c.saveDetail(&n1)); - QCOMPARE(c.details(QContactNote::DefinitionName).count(), 1); - QCOMPARE(QContactNote(c.details(QContactNote::DefinitionName).value(0)).note(), n1.note()); + // test detail update + ctd1.setTestLabel("this is a modified test"); + QVERIFY(c.saveDetail(&ctd1)); // should merely update + QCOMPARE(c.details("CustomTestDetail").count(), 1); + QCOMPARE(c.details().count(), 1); + QCOMPARE(c.details().first().testLabel(), QString("this is a modified test")); - // test property update - n1.setValue("label","label1"); - n1.setNote("orange gypsum"); - QVERIFY(c.saveDetail(&n1)); - QCOMPARE(c.details(QContactNote::DefinitionName).value(0).value("label"), QString("label1")); - QCOMPARE(c.details(QContactNote::DefinitionName).value(0).value(QContactNote::FieldNote), QString("orange gypsum")); + // test detail remove + QVERIFY(c.removeDetail(&ctd1)); + QCOMPARE(c.details("CustomTestDetail").count(), 0); + QCOMPARE(c.details().count(), 0); + + // now test how custom details interact with foreach loops. + QVERIFY(c.saveDetail(&ctd1)); + QVERIFY(c.saveDetail(&ctd2)); + QVERIFY(c.saveDetail(&c1)); + + // first, definition agnostic foreach. + foreach (const QContactDetail& det, c.details()) { + QCOMPARE(det.definitionName().isEmpty(), false); + } - // test property remove - QVERIFY(c.removeDetail(&n1)); - QCOMPARE(c.details(QContactNote::DefinitionName).count(), 0); - QVERIFY(c.saveDetail(&n2)); - QCOMPARE(c.details(QContactNote::DefinitionName).count(), 1); - QVERIFY(c.removeDetail(&n2)); - QCOMPARE(c.details(QContactNote::DefinitionName).count(), 0); - QVERIFY(c.removeDetail(&n2) == false); - QCOMPARE(c.details(QContactNote::DefinitionName).count(), 0); + // second, definition parameter foreach, with assignment. + foreach (const QContactDetail& det, c.details("CustomTestDetail")) { + CustomTestDetail customDet = det; + QCOMPARE(det.definitionName(), QString("CustomTestDetail")); + QCOMPARE(customDet.testLabel().isEmpty(), false); + } + + // third, definition parameter foreach, with cast. + foreach (const QContactDetail& det, c.details("CustomTestDetail")) { + QCOMPARE(static_cast(det).definitionName(), QString("CustomTestDetail")); + QCOMPARE(static_cast(det).testLabel().isEmpty(), false); + } + + // fourth, parametrized foreach. + foreach (const CustomTestDetail& det, c.details()) { + QCOMPARE(det.definitionName(), QString("CustomTestDetail")); + } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactfilter/tst_qcontactfilter.cpp --- a/qtmobility/tests/auto/qcontactfilter/tst_qcontactfilter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactfilter/tst_qcontactfilter.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,6 +39,7 @@ ** ****************************************************************************/ #include +#include #include "qtcontacts.h" #include "qcontactmanagerdataholder.h" //QContactManagerDataHolder @@ -47,6 +48,9 @@ //TESTED_FILES= QTM_USE_NAMESPACE + +Q_DECLARE_METATYPE(QContactFilter) + class tst_QContactFilter : public QObject { Q_OBJECT @@ -72,6 +76,8 @@ void relationshipFilter(); void boringFilters(); void idListFilter(); + void canonicalizedFilter(); + void canonicalizedFilter_data(); void traits(); @@ -635,7 +641,7 @@ QVERIFY(crf.relationshipType() == QString()); QVERIFY(crf.relatedContactId() == newId); - crf.setRelatedContactRole(QContactRelationshipFilter::First); + crf.setRelatedContactRole(QContactRelationship::First); QVERIFY(crf.relationshipType() == QString()); QVERIFY(crf.relatedContactId() == newId); @@ -917,13 +923,231 @@ idf.setIds(ids); // force a detach } +void tst_QContactFilter::canonicalizedFilter() +{ + QFETCH(QContactFilter, in); + QFETCH(QContactFilter, expected); + + QContactFilter out = QContactManagerEngine::canonicalizedFilter(in); + QCOMPARE(out, expected); +} + +void tst_QContactFilter::canonicalizedFilter_data() +{ + QTest::addColumn("in"); + QTest::addColumn("expected"); + + QContactFilter detailFilter1 = QContactName::match("1"); + QContactFilter detailFilter2 = QContactName::match("2"); + QContactInvalidFilter invalidFilter; + QContactFilter defaultFilter; + + { + QTest::newRow("Normal detail filter") + << static_cast(detailFilter1) + << static_cast(detailFilter1); + } + + { + QContactIntersectionFilter qcif; + qcif << detailFilter1; + qcif << detailFilter2; + QTest::newRow("Normal intersection filter") + << static_cast(qcif) + << static_cast(qcif); + } + + { + QContactUnionFilter qcuf; + qcuf << detailFilter1; + qcuf << detailFilter2; + QTest::newRow("Normal intersection filter") + << static_cast(qcuf) + << static_cast(qcuf); + } + + { + QContactIntersectionFilter qcif; + QTest::newRow("Empty intersection") + << static_cast(qcif) + << static_cast(defaultFilter); + } + + { + QContactUnionFilter qcuf; + QTest::newRow("Empty union") + << static_cast(qcuf) + << static_cast(invalidFilter); + } + + { + QContactIntersectionFilter qcif; + qcif << detailFilter1; + QTest::newRow("Single entry intersection filter") + << static_cast(qcif) + << static_cast(detailFilter1); + } + + { + QContactUnionFilter qcuf; + qcuf << detailFilter1; + QTest::newRow("Single entry union filter") + << static_cast(qcuf) + << static_cast(detailFilter1); + } + + { + QContactIntersectionFilter qcif; + qcif << invalidFilter; + qcif << detailFilter1; + qcif << detailFilter2; + QTest::newRow("Intersection with invalid") + << static_cast(qcif) + << static_cast(invalidFilter); + } + + { + QContactIntersectionFilter qcif; + qcif << defaultFilter; + qcif << detailFilter1; + qcif << detailFilter2; + QContactIntersectionFilter expected; + expected << detailFilter1; + expected << detailFilter2; + QTest::newRow("Intersection with default") + << static_cast(qcif) + << static_cast(expected); + } + + { + QContactUnionFilter qcuf; + qcuf << invalidFilter; + qcuf << detailFilter1; + qcuf << detailFilter2; + QContactUnionFilter expected; + expected << detailFilter1; + expected << detailFilter2; + QTest::newRow("Union with invalid") + << static_cast(qcuf) + << static_cast(expected); + } + + { + QContactUnionFilter qcuf; + qcuf << defaultFilter; + qcuf << detailFilter1; + qcuf << detailFilter2; + QTest::newRow("Union with default") + << static_cast(qcuf) + << static_cast(defaultFilter); + } + + { + QContactLocalIdFilter qclif; + QTest::newRow("Empty local id filter") + << static_cast(qclif) + << static_cast(invalidFilter); + } + + { + QContactLocalIdFilter qclif; + qclif.setIds(QList() << 1 << 2); + QTest::newRow("Normal local id filter") + << static_cast(qclif) + << static_cast(qclif); + } + + { + QContactDetailRangeFilter qcdrf; + qcdrf.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldCustomLabel); + QContactDetailFilter expected; + expected.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldCustomLabel); + QTest::newRow("Null valued range filter") + << static_cast(qcdrf) + << static_cast(expected); + } + + { + QContactDetailRangeFilter qcdrf; + qcdrf.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldCustomLabel); + qcdrf.setRange(QLatin1String("a"), QLatin1String("a")); + qcdrf.setMatchFlags(QContactFilter::MatchStartsWith); + QContactDetailFilter expected; + expected.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldCustomLabel); + expected.setValue(QLatin1String("a")); + expected.setMatchFlags(QContactFilter::MatchStartsWith); + QTest::newRow("Equal valued range filter") + << static_cast(qcdrf) + << static_cast(expected); + } + + { + QContactDetailRangeFilter qcdrf; + qcdrf.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldCustomLabel); + qcdrf.setRange(QLatin1String("a"), QLatin1String("a"), + QContactDetailRangeFilter::ExcludeLower | QContactDetailRangeFilter::ExcludeUpper); + qcdrf.setMatchFlags(QContactFilter::MatchStartsWith); + QTest::newRow("Equal valued range filter with excluded bounds") + << static_cast(qcdrf) + << static_cast(invalidFilter); + } + + { + QContactDetailRangeFilter qcdrf; + qcdrf.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldCustomLabel); + qcdrf.setRange(QLatin1String("a"), QLatin1String("b")); + qcdrf.setMatchFlags(QContactFilter::MatchStartsWith); + QTest::newRow("Normal range filter") + << static_cast(qcdrf) + << static_cast(qcdrf); + } + + { + QContactDetailRangeFilter qcdrf; + qcdrf.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldCustomLabel); + qcdrf.setRange(QVariant(QVariant::String), QVariant(QVariant::String)); // null bounds + qcdrf.setMatchFlags(QContactFilter::MatchStartsWith); + QContactDetailFilter qcdf; + qcdf.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldCustomLabel); + qcdf.setMatchFlags(QContactFilter::MatchStartsWith); + qcdf.setValue(QVariant(QVariant::String)); + QTest::newRow("Null valued range filter") + << static_cast(qcdrf) + << static_cast(qcdf); + } + + { + QContactDetailRangeFilter qcdrf; + qcdrf.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldCustomLabel); + qcdrf.setRange(QVariant(QVariant::String), QLatin1String("a")); // min is null + qcdrf.setMatchFlags(QContactFilter::MatchStartsWith); + QTest::newRow("One sided range filter") + << static_cast(qcdrf) + << static_cast(qcdrf); + } + + { + QContactDetailRangeFilter qcdrf; + QTest::newRow("Empty range filter") + << static_cast(qcdrf) + << static_cast(invalidFilter); + } + + { + QContactDetailFilter qcdf; + QTest::newRow("Empty detail filter") + << static_cast(qcdf) + << static_cast(invalidFilter); + } +} + void tst_QContactFilter::traits() { - // QCOMPARE(sizeof(QContactFilter), sizeof(void *)); + QCOMPARE(sizeof(QContactFilter), sizeof(void *)); QTypeInfo ti; QVERIFY(ti.isComplex); QVERIFY(!ti.isStatic); - QVERIFY(ti.isLarge); // virtual table + d pointer + QVERIFY(!ti.isLarge); QVERIFY(!ti.isPointer); QVERIFY(!ti.isDummy); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactmanager/tst_qcontactmanager.cpp --- a/qtmobility/tests/auto/qcontactmanager/tst_qcontactmanager.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactmanager/tst_qcontactmanager.cpp Mon May 03 13:18:40 2010 +0300 @@ -125,7 +125,7 @@ QList removeAllDefaultDetails(const QList& details); void addManagers(); // add standard managers to the data QContact createContact(QContactDetailDefinition nameDef, QString firstName, QString lastName, QString phoneNumber); - void setContactName(QContactDetailDefinition nameDef, QContactName& contactName, const QString &name) const; + void saveContactName(QContact *contact, QContactDetailDefinition nameDef, QContactName *contactName, const QString &name) const; QContactManagerDataHolder managerDataHolder; @@ -433,20 +433,21 @@ return contact; } -void tst_QContactManager::setContactName(QContactDetailDefinition nameDef, QContactName& contactName, const QString &name) const +void tst_QContactManager::saveContactName(QContact *contact, QContactDetailDefinition nameDef, QContactName *contactName, const QString &name) const { // check which name fields are supported in the following order: // 1. custom label, 2. first name, 3. last name if(nameDef.fields().contains(QContactName::FieldCustomLabel)) { - contactName.setCustomLabel(name); + contactName->setCustomLabel(name); } else if(nameDef.fields().contains(QContactName::FieldFirstName)) { - contactName.setFirstName(name); + contactName->setFirstName(name); } else if(nameDef.fields().contains(QContactName::FieldLastName)) { - contactName.setLastName(name); + contactName->setLastName(name); } else { // Assume that at least one of the above name fields is supported by the backend QVERIFY(false); } + contact->saveDetail(contactName); } void tst_QContactManager::metadata() @@ -708,7 +709,7 @@ QContact added = cm->contact(alice.id().localId()); QVERIFY(added.id() != QContactId()); QVERIFY(added.id() == alice.id()); - + if (!isSuperset(added, alice)) { dumpContacts(cm.data()); dumpContactDifferences(added, alice); @@ -716,14 +717,19 @@ } // now try adding a contact that does not exist in the database with non-zero id - QContact nonexistent = createContact(nameDef, "nonexistent", "contact", ""); - QVERIFY(cm->saveContact(&nonexistent)); // should work - QVERIFY(cm->removeContact(nonexistent.id().localId())); // now nonexistent has an id which does not exist - QVERIFY(!cm->saveContact(&nonexistent)); // hence, should fail - QCOMPARE(cm->error(), QContactManager::DoesNotExistError); - nonexistent.setId(QContactId()); - QVERIFY(cm->saveContact(&nonexistent)); // after setting id to zero, should save - QVERIFY(cm->removeContact(nonexistent.id().localId())); + if (cm->managerName() == "symbiansim") { + // TODO: symbiansim backend fails this test currently. Will be fixed later. + QWARN("This manager has a known issue with saving a non-zero id contact. Skipping this test step."); + } else { + QContact nonexistent = createContact(nameDef, "nonexistent", "contact", ""); + QVERIFY(cm->saveContact(&nonexistent)); // should work + QVERIFY(cm->removeContact(nonexistent.id().localId())); // now nonexistent has an id which does not exist + QVERIFY(!cm->saveContact(&nonexistent)); // hence, should fail + QCOMPARE(cm->error(), QContactManager::DoesNotExistError); + nonexistent.setId(QContactId()); + QVERIFY(cm->saveContact(&nonexistent)); // after setting id to zero, should save + QVERIFY(cm->removeContact(nonexistent.id().localId())); + } // now try adding a "megacontact" // - get list of all definitions supported by the manager @@ -737,9 +743,10 @@ foreach (const QContactDetailDefinition def, defs) { // Leave these warnings here - might need an API for this - if (def.accessConstraint() == QContactDetailDefinition::ReadOnly) { - continue; - } + // XXX FIXME: access constraint reporting as moved to the detail itself + //if (def.accessConstraint() == QContactDetailDefinition::ReadOnly) { + // continue; + //} // otherwise, create a new detail of the given type and save it to the contact QContactDetail det(def.name()); @@ -748,6 +755,13 @@ foreach (const QString& fieldKey, fieldKeys) { // get the field, and check to see that it's not constrained. QContactDetailFieldDefinition currentField = fieldmap.value(fieldKey); + + // Special case: phone number. + if (def.name() == QContactPhoneNumber::DefinitionName && + fieldKey == QContactPhoneNumber::FieldNumber) { + det.setValue(fieldKey, "+3581234567890"); + continue; + } // Attempt to create a worthy value if (!currentField.allowableValues().isEmpty()) { @@ -808,23 +822,34 @@ } // now a contact with many details of a particular definition - // this will fail on some backends; how do we query for this capability? + // if the detail is not unique it should then support minumum of two of the same kind + const int nrOfdetails = 2; QContact veryContactable = createContact(nameDef, "Very", "Contactable", ""); - for (int i = 0; i < 50; i++) { + for (int i = 0; i < nrOfdetails; i++) { QString phnStr = QString::number(i); QContactPhoneNumber vcphn; vcphn.setNumber(phnStr); QVERIFY(veryContactable.saveDetail(&vcphn)); } - // check that all the numbers were added successfully, and that it can be saved. - QVERIFY(veryContactable.details(QContactPhoneNumber::DefinitionName).size() == 50); - QVERIFY(cm->saveContact(&veryContactable)); - QContact retrievedContactable = cm->contact(veryContactable.id().localId()); - if (retrievedContactable != veryContactable) { - dumpContactDifferences(veryContactable, retrievedContactable); - QEXPECT_FAIL("mgr='wince'", "Number of phones supported mismatch", Continue); - QCOMPARE(veryContactable, retrievedContactable); + // check that all the numbers were added successfully + QVERIFY(veryContactable.details(QContactPhoneNumber::DefinitionName).size() == nrOfdetails); + + // check if it can be saved + QContactDetailDefinition def = cm->detailDefinition(QContactPhoneNumber::DefinitionName); + if (def.isUnique()) { + QVERIFY(!cm->saveContact(&veryContactable)); + } + else { + QVERIFY(cm->saveContact(&veryContactable)); + + // verify save + QContact retrievedContactable = cm->contact(veryContactable.id().localId()); + if (retrievedContactable != veryContactable) { + dumpContactDifferences(veryContactable, retrievedContactable); + QEXPECT_FAIL("mgr='wince'", "Number of phones supported mismatch", Continue); + QCOMPARE(veryContactable, retrievedContactable); + } } } @@ -841,8 +866,10 @@ /* Update name */ QContactName name = alice.detail(QContactName::DefinitionName); - setContactName(nameDef, name, "updated"); - alice.saveDetail(&name); + saveContactName(&alice, nameDef, &name, "updated"); + QVERIFY(cm->saveContact(&alice)); + QVERIFY(cm->error() == QContactManager::NoError); + saveContactName(&alice, nameDef, &name, "updated2"); QVERIFY(cm->saveContact(&alice)); QVERIFY(cm->error() == QContactManager::NoError); QContact updated = cm->contact(alice.localId()); @@ -894,26 +921,36 @@ QScopedPointer cm(QContactManager::fromUri(uri)); /* First test null pointer operations */ - QVERIFY(!cm->saveContacts(0, 0)); + QVERIFY(!cm->saveContacts(NULL, NULL)); + QVERIFY(cm->error() == QContactManager::BadArgumentError); + + QVERIFY(!cm->removeContacts(QList(), NULL)); QVERIFY(cm->error() == QContactManager::BadArgumentError); - - QVERIFY(!cm->removeContacts(0, 0)); - QVERIFY(cm->error() == QContactManager::BadArgumentError); + + // Get supported name field + QString nameField = QContactName::FieldFirstName; + QContactDetailDefinition def = cm->detailDefinition(QContactName::DefinitionName); + if (!def.fields().contains(QContactName::FieldFirstName)) { + if(def.fields().contains(QContactName::FieldCustomLabel)) + nameField = QLatin1String(QContactName::FieldCustomLabel); + else + QSKIP("This backend does not support the required name field!", SkipSingle); + } /* Now add 3 contacts, all valid */ QContact a; QContactName na; - na.setFirstName("XXXXXX Albert"); + na.setValue(nameField, "XXXXXX Albert"); a.saveDetail(&na); QContact b; QContactName nb; - nb.setFirstName("XXXXXX Bob"); + nb.setValue(nameField, "XXXXXX Bob"); b.saveDetail(&nb); QContact c; QContactName nc; - nc.setFirstName("XXXXXX Carol"); + nc.setValue(nameField, "XXXXXX Carol"); c.saveDetail(&nc); QList contacts; @@ -976,18 +1013,11 @@ /* Now delete them all */ QList ids; - QContactLocalId removedIdForLater = b.id().localId(); ids << a.id().localId() << b.id().localId() << c.id().localId(); - QVERIFY(cm->removeContacts(&ids, &errorMap)); + QVERIFY(cm->removeContacts(ids, &errorMap)); QVERIFY(errorMap.count() == 0); QVERIFY(cm->error() == QContactManager::NoError); - /* Make sure all the ids are now 0 */ - QVERIFY(ids.count() == 3); - QVERIFY(ids.at(0) == 0); - QVERIFY(ids.at(1) == 0); - QVERIFY(ids.at(2) == 0); - /* Make sure the contacts really don't exist any more */ QVERIFY(cm->contact(a.id().localId()).id() == QContactId()); QVERIFY(cm->contact(a.id().localId()).isEmpty()); @@ -1002,7 +1032,7 @@ /* Now try removing with all invalid ids (e.g. the ones we just removed) */ ids.clear(); ids << a.id().localId() << b.id().localId() << c.id().localId(); - QVERIFY(!cm->removeContacts(&ids, &errorMap)); + QVERIFY(!cm->removeContacts(ids, &errorMap)); QVERIFY(cm->error() == QContactManager::DoesNotExistError); QVERIFY(errorMap.count() == 3); QVERIFY(errorMap.values().at(0) == QContactManager::DoesNotExistError); @@ -1054,14 +1084,20 @@ QVERIFY(cm->saveContacts(&contacts, &errorMap)); QVERIFY(errorMap.count() == 0); QVERIFY(cm->error() == QContactManager::NoError); + + // Save and remove a fourth contact. Store the id. + a.setId(QContactId()); + QVERIFY(cm->saveContact(&a)); + QContactLocalId removedId = a.localId(); + QVERIFY(cm->removeContact(removedId)); /* Now delete 3 items, but with one bad argument */ ids.clear(); ids << contacts.at(0).id().localId(); - ids << removedIdForLater; + ids << removedId; ids << contacts.at(2).id().localId(); - QVERIFY(!cm->removeContacts(&ids, &errorMap)); + QVERIFY(!cm->removeContacts(ids, &errorMap)); QVERIFY(cm->error() != QContactManager::NoError); /* Again, the backend has the choice of either removing the successful ones, or not */ @@ -1078,7 +1114,7 @@ /* B should definitely have failed */ QVERIFY(errorMap.value(1) == QContactManager::DoesNotExistError); - QVERIFY(ids.at(1) == removedIdForLater); + QVERIFY(ids.at(1) == removedId); // A might have gone through if (errorMap.keys().contains(2)) { @@ -1151,19 +1187,17 @@ list << foo; QVERIFY(!manager.saveContacts(&list, &errorMap)); - QVERIFY(errorMap.count() == 1); - QVERIFY(errorMap.value(0) == QContactManager::NotSupportedError); + QVERIFY(errorMap.count() == 0); QVERIFY(manager.error() == QContactManager::NotSupportedError); - QVERIFY(!manager.removeContacts(0, &errorMap)); + QVERIFY(!manager.removeContacts(QList(), &errorMap)); QVERIFY(errorMap.count() == 0); QVERIFY(manager.error() == QContactManager::BadArgumentError); QList idlist; idlist << foo.id().localId(); - QVERIFY(!manager.removeContacts(&idlist, &errorMap)); - QVERIFY(errorMap.count() == 1); - QVERIFY(errorMap.value(0) == QContactManager::NotSupportedError); + QVERIFY(!manager.removeContacts(idlist, &errorMap)); + QVERIFY(errorMap.count() == 0); QVERIFY(manager.error() == QContactManager::NotSupportedError); /* Detail definitions */ @@ -1216,9 +1250,9 @@ QVERIFY(manager.error() == QContactManager::NotSupportedError); QVERIFY(manager.relationships().isEmpty()); QVERIFY(manager.error() == QContactManager::NotSupportedError); - manager.saveRelationships(&invalidRelList); + manager.saveRelationships(&invalidRelList, NULL); QVERIFY(manager.error() == QContactManager::NotSupportedError); - manager.removeRelationships(invalidRelList); + manager.removeRelationships(invalidRelList, NULL); QVERIFY(manager.error() == QContactManager::NotSupportedError || manager.error() == QContactManager::DoesNotExistError); /* Capabilities */ @@ -1689,11 +1723,12 @@ int modSigCount = 0; int remSigCount = 0; + QContactDetailDefinition nameDef = m1->detailDefinition(QContactName::DefinitionName, QContactType::TypeContact); + // verify add emits signal added QContactName nc; - nc.setFirstName("John"); - c.saveDetail(&nc); - m1->saveContact(&c); + saveContactName(&c, nameDef, &nc, "John"); + QVERIFY(m1->saveContact(&c)); addSigCount += 1; QTRY_COMPARE(spyCA.count(), addSigCount); args = spyCA.takeFirst(); @@ -1702,9 +1737,8 @@ temp = QContactLocalId(args.at(0).value()); // verify save modified emits signal changed - nc.setLastName("Citizen"); - c.saveDetail(&nc); - m1->saveContact(&c); + saveContactName(&c, nameDef, &nc, "Citizen"); + QVERIFY(m1->saveContact(&c)); modSigCount += 1; QTRY_COMPARE(spyCM.count(), modSigCount); args = spyCM.takeFirst(); @@ -1724,11 +1758,15 @@ // verify multiple adds works as advertised QContact c2, c3; QContactName nc2, nc3; - nc2.setFirstName("Mark"); - nc3.setFirstName("Garry"); - c2.saveDetail(&nc2); - c3.saveDetail(&nc3); - QVERIFY(!m1->saveContact(&c)); // saving contact with nonexistent id fails + saveContactName(&c2, nameDef, &nc2, "Mark"); + saveContactName(&c3, nameDef, &nc3, "Garry"); +#if defined(Q_OS_SYMBIAN) + // TODO: symbiansim backend fails this test currently. Commented out for + // now. Will be fixed later. + if(!uri.contains("symbiansim")) { + QVERIFY(!m1->saveContact(&c)); // saving contact with nonexistent id fails + } +#endif QVERIFY(m1->saveContact(&c2)); addSigCount += 1; QVERIFY(m1->saveContact(&c3)); @@ -1737,14 +1775,11 @@ QTRY_COMPARE(spyCA.count(), addSigCount); // verify multiple modifies works as advertised - nc2.setLastName("M."); - c2.saveDetail(&nc2); + saveContactName(&c2, nameDef, &nc2, "M."); QVERIFY(m1->saveContact(&c2)); modSigCount += 1; - nc2.setPrefix("Mr."); - nc3.setLastName("G."); - c2.saveDetail(&nc2); - c3.saveDetail(&nc3); + saveContactName(&c2, nameDef, &nc2, "Mark"); + saveContactName(&c3, nameDef, &nc3, "G."); QVERIFY(m1->saveContact(&c2)); modSigCount += 1; QVERIFY(m1->saveContact(&c3)); @@ -1786,16 +1821,12 @@ QTRY_COMPARE(spyCR.count(), 0); /* Batch modifies */ - QContactDetailDefinition nameDef = m1->detailDefinition(QContactName::DefinitionName, QContactType::TypeContact); QContactName modifiedName = c.detail(QContactName::DefinitionName); - setContactName(nameDef, modifiedName, "This is modified number 1"); - c.saveDetail(&modifiedName); + saveContactName(&c, nameDef, &modifiedName, "This is modified number 1"); modifiedName = c2.detail(QContactName::DefinitionName); - setContactName(nameDef, modifiedName, "This is modified number 2"); - c2.saveDetail(&modifiedName); + saveContactName(&c2, nameDef, &modifiedName, "This is modified number 2"); modifiedName = c3.detail(QContactName::DefinitionName); - setContactName(nameDef, modifiedName, "This is modified number 3"); - c3.saveDetail(&modifiedName); + saveContactName(&c3, nameDef, &modifiedName, "This is modified number 3"); batchAdd.clear(); batchAdd << c << c2 << c3; @@ -1806,7 +1837,7 @@ /* Batch removes */ batchRemove << c.id().localId() << c2.id().localId() << c3.id().localId(); - QVERIFY(m1->removeContacts(&batchRemove, &errorMap)); + QVERIFY(m1->removeContacts(batchRemove, &errorMap)); sigids.clear(); QTRY_WAIT( while(spyCR.size() > 0) {sigids += spyCR.takeFirst().at(0).value >(); }, sigids.contains(c.localId()) && sigids.contains(c2.localId()) && sigids.contains(c3.localId())); @@ -1818,13 +1849,11 @@ if (!m1->hasFeature(QContactManager::Anonymous)) { // verify that signals are emitted for modifications made to other managers (same id). QContactName ncs = c.detail(QContactName::DefinitionName); - ncs.setSuffix("Test"); - c.saveDetail(&ncs); + saveContactName(&c, nameDef, &ncs, "Test"); c.setId(QContactId()); // reset id so save can succeed. - m2->saveContact(&c); - ncs.setPrefix("Test2"); - c.saveDetail(&ncs); - m2->saveContact(&c); + QVERIFY(m2->saveContact(&c)); + saveContactName(&c, nameDef, &ncs, "Test2"); + QVERIFY(m2->saveContact(&c)); QTRY_COMPARE(spyCA.count(), 1); // check that we received the update signals. QTRY_COMPARE(spyCM.count(), 1); // check that we received the update signals. m2->removeContact(c.localId()); @@ -1989,7 +2018,7 @@ badfields.insert("Bad allowed", badfield); invalidAllowedValuesDef.setFields(badfields); - /* XXX Multiply defined fields.. depends on semantics. */ + /* XXX Multiply defined fields.. depends on semantichangeSet. */ if (cm->hasFeature(QContactManager::MutableDefinitions)) { /* First do some negative testing */ @@ -2093,10 +2122,9 @@ /* Try to make this a bit more consistent by using a single name */ QContact d; QContactName name; - setContactName(cm->detailDefinition(QContactName::DefinitionName, QContactType::TypeContact), name, "Wesley"); + saveContactName(&d, cm->detailDefinition(QContactName::DefinitionName, QContactType::TypeContact), &name, "Wesley"); QVERIFY(d.displayLabel().isEmpty()); - QVERIFY(d.saveDetail(&name)); QString synth = cm->synthesizedDisplayLabel(d); @@ -2139,7 +2167,7 @@ // create a sample contact QContactAvatar a; - a.setAvatar("test.png"); + a.setImageUrl(QUrl("test.png")); QContactPhoneNumber p1; p1.setNumber("12345"); QContactPhoneNumber p2; @@ -2149,15 +2177,13 @@ QContactUrl u; u.setUrl("http://test.nokia.com"); QContactName n; - setContactName(cm->detailDefinition(QContactName::DefinitionName, QContactType::TypeContact), n, "TestContact"); - QContact c; + saveContactName(&c, cm->detailDefinition(QContactName::DefinitionName, QContactType::TypeContact), &n, "TestContact"); c.saveDetail(&a); c.saveDetail(&p1); c.saveDetail(&p2); c.saveDetail(&p3); c.saveDetail(&u); - c.saveDetail(&n); // set a preference for dialing a particular saved phonenumber. c.setPreferredDetail("Dial", p2); @@ -2176,59 +2202,59 @@ { QContactLocalId id(1); - QContactChangeSet cs; - QVERIFY(cs.addedContacts().isEmpty()); - QVERIFY(cs.changedContacts().isEmpty()); - QVERIFY(cs.removedContacts().isEmpty()); - - cs.addedContacts().insert(id); - QVERIFY(!cs.addedContacts().isEmpty()); - QVERIFY(cs.changedContacts().isEmpty()); - QVERIFY(cs.removedContacts().isEmpty()); - QVERIFY(cs.addedContacts().contains(id)); - - cs.changedContacts().insert(id); - cs.changedContacts().insert(id); - QVERIFY(cs.changedContacts().size() == 1); // set, should only be added once. - QVERIFY(!cs.addedContacts().isEmpty()); - QVERIFY(!cs.changedContacts().isEmpty()); - QVERIFY(cs.removedContacts().isEmpty()); - QVERIFY(cs.changedContacts().contains(id)); - - QVERIFY(cs.dataChanged() == false); - QContactChangeSet cs2; - cs2 = cs; - QVERIFY(cs.addedContacts() == cs2.addedContacts()); - cs.emitSignals(0); - - cs2.clear(); - QVERIFY(cs.addedContacts() != cs2.addedContacts()); - - QContactChangeSet cs3(cs2); - QVERIFY(cs.addedContacts() != cs3.addedContacts()); - QVERIFY(cs2.addedContacts() == cs3.addedContacts()); - - cs.setDataChanged(true); - QVERIFY(cs.dataChanged() == true); - QVERIFY(cs.dataChanged() != cs2.dataChanged()); - QVERIFY(cs.dataChanged() != cs3.dataChanged()); - cs.emitSignals(0); - - cs.addedRelationshipsContacts().insert(id); - cs.emitSignals(0); - cs.removedRelationshipsContacts().insert(id); - cs.emitSignals(0); - - cs.oldAndNewSelfContactId() = QPair(QContactLocalId(0), id); - cs2 = cs; - QVERIFY(cs2.addedRelationshipsContacts() == cs.addedRelationshipsContacts()); - QVERIFY(cs2.removedRelationshipsContacts() == cs.removedRelationshipsContacts()); - QVERIFY(cs2.oldAndNewSelfContactId() == cs.oldAndNewSelfContactId()); - cs.emitSignals(0); - cs.oldAndNewSelfContactId() = QPair(id, QContactLocalId(0)); - QVERIFY(cs2.oldAndNewSelfContactId() != cs.oldAndNewSelfContactId()); - cs.setDataChanged(true); - cs.emitSignals(0); + QContactChangeSet changeSet; + QVERIFY(changeSet.addedContacts().isEmpty()); + QVERIFY(changeSet.changedContacts().isEmpty()); + QVERIFY(changeSet.removedContacts().isEmpty()); + + changeSet.insertAddedContact(id); + QVERIFY(!changeSet.addedContacts().isEmpty()); + QVERIFY(changeSet.changedContacts().isEmpty()); + QVERIFY(changeSet.removedContacts().isEmpty()); + QVERIFY(changeSet.addedContacts().contains(id)); + + changeSet.insertChangedContact(id); + changeSet.insertChangedContact(id); + QVERIFY(changeSet.changedContacts().size() == 1); // set, should only be added once. + QVERIFY(!changeSet.addedContacts().isEmpty()); + QVERIFY(!changeSet.changedContacts().isEmpty()); + QVERIFY(changeSet.removedContacts().isEmpty()); + QVERIFY(changeSet.changedContacts().contains(id)); + + QVERIFY(changeSet.dataChanged() == false); + QContactChangeSet changeSet2; + changeSet2 = changeSet; + QVERIFY(changeSet.addedContacts() == changeSet2.addedContacts()); + changeSet.emitSignals(0); + + changeSet2.clearAll(); + QVERIFY(changeSet.addedContacts() != changeSet2.addedContacts()); + + QContactChangeSet changeSet3(changeSet2); + QVERIFY(changeSet.addedContacts() != changeSet3.addedContacts()); + QVERIFY(changeSet2.addedContacts() == changeSet3.addedContacts()); + + changeSet.setDataChanged(true); + QVERIFY(changeSet.dataChanged() == true); + QVERIFY(changeSet.dataChanged() != changeSet2.dataChanged()); + QVERIFY(changeSet.dataChanged() != changeSet3.dataChanged()); + changeSet.emitSignals(0); + + changeSet.addedRelationshipsContacts().insert(id); + changeSet.emitSignals(0); + changeSet.removedRelationshipsContacts().insert(id); + changeSet.emitSignals(0); + + changeSet.setOldAndNewSelfContactId(QPair(QContactLocalId(0), id)); + changeSet2 = changeSet; + QVERIFY(changeSet2.addedRelationshipsContacts() == changeSet.addedRelationshipsContacts()); + QVERIFY(changeSet2.removedRelationshipsContacts() == changeSet.removedRelationshipsContacts()); + QVERIFY(changeSet2.oldAndNewSelfContactId() == changeSet.oldAndNewSelfContactId()); + changeSet.emitSignals(0); + changeSet.setOldAndNewSelfContactId(QPair(id, QContactLocalId(0))); + QVERIFY(changeSet2.oldAndNewSelfContactId() != changeSet.oldAndNewSelfContactId()); + changeSet.setDataChanged(true); + changeSet.emitSignals(0); } void tst_QContactManager::selfContactId() @@ -2513,31 +2539,29 @@ QVERIFY(cm->error() == QContactManager::NotSupportedError); QVERIFY(!cm->removeRelationship(r1)); QVERIFY(cm->error() == QContactManager::NotSupportedError); - QVERIFY(cm->saveRelationships(&batchList).isEmpty()); - QVERIFY(cm->error() == QContactManager::NotSupportedError); - QVERIFY(cm->removeRelationships(batchList).isEmpty()); + cm->saveRelationships(&batchList, NULL); QVERIFY(cm->error() == QContactManager::NotSupportedError); // test retrieval QList retrieveList; - retrieveList = cm->relationships(source.id(), QContactRelationshipFilter::First); + retrieveList = cm->relationships(source.id(), QContactRelationship::First); QVERIFY(retrieveList.isEmpty()); QVERIFY(cm->error() == QContactManager::NotSupportedError); - retrieveList = cm->relationships(source.id(), QContactRelationshipFilter::Second); + retrieveList = cm->relationships(source.id(), QContactRelationship::Second); QVERIFY(retrieveList.isEmpty()); QVERIFY(cm->error() == QContactManager::NotSupportedError); - retrieveList = cm->relationships(source.id()); // Either + retrieveList = cm->relationships(source.id(), QContactRelationship::Either); // Either QVERIFY(retrieveList.isEmpty()); QVERIFY(cm->error() == QContactManager::NotSupportedError); - retrieveList = cm->relationships(QContactRelationship::HasManager, source.id(), QContactRelationshipFilter::First); + retrieveList = cm->relationships(QContactRelationship::HasManager, source.id(), QContactRelationship::First); QVERIFY(retrieveList.isEmpty()); QVERIFY(cm->error() == QContactManager::NotSupportedError); - retrieveList = cm->relationships(QContactRelationship::HasManager, source.id(), QContactRelationshipFilter::Second); + retrieveList = cm->relationships(QContactRelationship::HasManager, source.id(), QContactRelationship::Second); QVERIFY(retrieveList.isEmpty()); QVERIFY(cm->error() == QContactManager::NotSupportedError); - retrieveList = cm->relationships(QContactRelationship::HasManager, source.id(), QContactRelationshipFilter::Either); + retrieveList = cm->relationships(QContactRelationship::HasManager, source.id(), QContactRelationship::Either); QVERIFY(retrieveList.isEmpty()); QVERIFY(cm->error() == QContactManager::NotSupportedError); retrieveList = cm->relationships(QContactRelationship::HasManager, source.id()); @@ -2550,7 +2574,18 @@ } // Get supported relationship types - QStringList availableRelationshipTypes = cm->supportedRelationshipTypes(); + QStringList availableRelationshipTypes; + if (cm->isRelationshipTypeSupported(QContactRelationship::HasMember)) + availableRelationshipTypes << QContactRelationship::HasMember; + if (cm->isRelationshipTypeSupported(QContactRelationship::HasAssistant)) + availableRelationshipTypes << QContactRelationship::HasAssistant; + if (cm->isRelationshipTypeSupported(QContactRelationship::HasManager)) + availableRelationshipTypes << QContactRelationship::HasManager; + if (cm->isRelationshipTypeSupported(QContactRelationship::HasSpouse)) + availableRelationshipTypes << QContactRelationship::HasSpouse; + if (cm->isRelationshipTypeSupported(QContactRelationship::IsSameAs)) + availableRelationshipTypes << QContactRelationship::IsSameAs; + // Check arbitary relationship support if (cm->hasFeature(QContactManager::ArbitraryRelationshipTypes)) { @@ -2610,7 +2645,7 @@ // remove the dest1 contact, relationship should be removed. cm->removeContact(dest1.localId()); - QCOMPARE(cm->relationships(availableRelationshipTypes.at(0), dest1Uri, QContactRelationshipFilter::Second).count(), 0); + QCOMPARE(cm->relationships(availableRelationshipTypes.at(0), dest1Uri, QContactRelationship::Second).count(), 0); // modify and save the relationship customRelationshipOne.setSecond(dest2Uri); @@ -2654,13 +2689,13 @@ source = cm->contact(source.localId()); // and test again. - QVERIFY(source.relatedContacts(QString(), QContactRelationshipFilter::First).isEmpty()); // source is always the first, so this should be empty. - QVERIFY(source.relatedContacts(QString(), QContactRelationshipFilter::Second).contains(dest2.id())); - QVERIFY(source.relatedContacts(QString(), QContactRelationshipFilter::Either).contains(dest2.id())); - QVERIFY(source.relatedContacts(QString(), QContactRelationshipFilter::Second).contains(dest3.id())); - QVERIFY(source.relatedContacts(QString(), QContactRelationshipFilter::Either).contains(dest3.id())); - QVERIFY(source.relatedContacts(availableRelationshipTypes.at(0), QContactRelationshipFilter::Second).contains(dest2.id())); - QVERIFY(source.relatedContacts(availableRelationshipTypes.at(0), QContactRelationshipFilter::First).isEmpty()); + QVERIFY(source.relatedContacts(QString(), QContactRelationship::First).isEmpty()); // source is always the first, so this should be empty. + QVERIFY(source.relatedContacts(QString(), QContactRelationship::Second).contains(dest2.id())); + QVERIFY(source.relatedContacts(QString(), QContactRelationship::Either).contains(dest2.id())); + QVERIFY(source.relatedContacts(QString(), QContactRelationship::Second).contains(dest3.id())); + QVERIFY(source.relatedContacts(QString(), QContactRelationship::Either).contains(dest3.id())); + QVERIFY(source.relatedContacts(availableRelationshipTypes.at(0), QContactRelationship::Second).contains(dest2.id())); + QVERIFY(source.relatedContacts(availableRelationshipTypes.at(0), QContactRelationship::First).isEmpty()); QVERIFY(dest2.relatedContacts().contains(source.id())); QVERIFY(dest2.relationships().contains(customRelationshipOne)); @@ -2668,9 +2703,9 @@ QVERIFY(dest2.relationships(availableRelationshipTypes.at(0)).contains(customRelationshipOne)); QVERIFY(!dest2.relationships(availableRelationshipTypes.at(0)).contains(customRelationshipTwo)); QVERIFY(dest2.relatedContacts(availableRelationshipTypes.at(0)).contains(source.id())); - QVERIFY(dest2.relatedContacts(availableRelationshipTypes.at(0), QContactRelationshipFilter::First).contains(source.id())); - QVERIFY(dest2.relatedContacts(availableRelationshipTypes.at(0), QContactRelationshipFilter::Second).isEmpty()); - QVERIFY(!dest2.relatedContacts(availableRelationshipTypes.at(0), QContactRelationshipFilter::Second).contains(source.id())); + QVERIFY(dest2.relatedContacts(availableRelationshipTypes.at(0), QContactRelationship::First).contains(source.id())); + QVERIFY(dest2.relatedContacts(availableRelationshipTypes.at(0), QContactRelationship::Second).isEmpty()); + QVERIFY(!dest2.relatedContacts(availableRelationshipTypes.at(0), QContactRelationship::Second).contains(source.id())); QVERIFY(dest3.relatedContacts().contains(source.id())); QVERIFY(!dest3.relationships().contains(customRelationshipOne)); @@ -2689,8 +2724,8 @@ } if (availableRelationshipTypes.count() > 1) { - QVERIFY(source.relatedContacts(availableRelationshipTypes.at(1), QContactRelationshipFilter::Second).contains(dest3.id())); - QVERIFY(source.relatedContacts(availableRelationshipTypes.at(1), QContactRelationshipFilter::First).isEmpty()); + QVERIFY(source.relatedContacts(availableRelationshipTypes.at(1), QContactRelationship::Second).contains(dest3.id())); + QVERIFY(source.relatedContacts(availableRelationshipTypes.at(1), QContactRelationship::First).isEmpty()); QVERIFY(dest2.relationships(availableRelationshipTypes.at(1)).isEmpty()); @@ -2700,12 +2735,12 @@ QVERIFY(dest3.relatedContacts(availableRelationshipTypes.at(1)).contains(source.id())); QVERIFY(!dest3.relatedContacts(availableRelationshipTypes.at(0)).contains(source.id())); QVERIFY(dest3.relatedContacts(availableRelationshipTypes.at(1)).contains(source.id())); // role = either - QVERIFY(!dest3.relatedContacts(availableRelationshipTypes.at(1), QContactRelationshipFilter::Second).contains(source.id())); - QVERIFY(dest3.relatedContacts(availableRelationshipTypes.at(1), QContactRelationshipFilter::First).contains(source.id())); + QVERIFY(!dest3.relatedContacts(availableRelationshipTypes.at(1), QContactRelationship::Second).contains(source.id())); + QVERIFY(dest3.relatedContacts(availableRelationshipTypes.at(1), QContactRelationship::First).contains(source.id())); QVERIFY(dest2.relatedContacts(availableRelationshipTypes.at(1)).isEmpty()); } else { - QVERIFY(source.relatedContacts(availableRelationshipTypes.at(0), QContactRelationshipFilter::Second).contains(dest3.id())); + QVERIFY(source.relatedContacts(availableRelationshipTypes.at(0), QContactRelationship::Second).contains(dest3.id())); } // Cleanup a bit @@ -2713,7 +2748,7 @@ QVERIFY(cm->removeRelationship(customRelationshipTwo)); // test batch API and ordering in contacts - QList currentRelationships = cm->relationships(source.id(), QContactRelationshipFilter::First); + QList currentRelationships = cm->relationships(source.id(), QContactRelationship::First); QList batchList; QContactRelationship br1, br2, br3; br1.setFirst(source.id()); @@ -2737,64 +2772,25 @@ batchList << br1 << br2 << br3; // ensure that the batch save works properly - cm->saveRelationships(&batchList); - QVERIFY(cm->error() == QContactManager::NoError); - QList batchRetrieve = cm->relationships(source.id(), QContactRelationshipFilter::First); + cm->saveRelationships(&batchList, NULL); + QCOMPARE(cm->error(), QContactManager::NoError); + QList batchRetrieve = cm->relationships(source.id(), QContactRelationship::First); QVERIFY(batchRetrieve.contains(br1)); QVERIFY(batchRetrieve.contains(br2)); QVERIFY(batchRetrieve.contains(br3)); - // Check relationship ordering support - if (cm->hasFeature(QContactManager::RelationshipOrdering)) - { - // test relationship ordering in the contact - source = cm->contact(source.localId()); - QList cachedRelationships = source.relationships(); - QList orderedRelationships = source.relationshipOrder(); - QCOMPARE(cachedRelationships, orderedRelationships); // initially, should be the same - QVERIFY(orderedRelationships.contains(br1)); - QVERIFY(orderedRelationships.contains(br2)); - QVERIFY(orderedRelationships.contains(br3)); - - // ensure that the reordering works as required. - QContactRelationship temp1 = orderedRelationships.takeAt(0); // now fiddle with the order - QContactRelationship temp2 = orderedRelationships.at(0); // this is the new first relationship - orderedRelationships.insert(2, temp1); // and save the old first back at position 3. - source.setRelationshipOrder(orderedRelationships); // set the new relationship order - cm->saveContact(&source); // save the contact to persist the new order - source = cm->contact(source.localId()); // reload the contact - QCOMPARE(source.relationshipOrder(), orderedRelationships); // ensure that it was persisted. - - // now lets try a negative reordering test: adding relationships which don't exist in the database. - QContactRelationship invalidRel; - invalidRel.setFirst(source.id()); - invalidRel.setSecond(dest2.id()); - invalidRel.setRelationshipType("test-nokia-invalid-relationship-type"); - orderedRelationships << invalidRel; - source.setRelationshipOrder(orderedRelationships); - QVERIFY(!cm->saveContact(&source)); - QVERIFY(cm->error() == QContactManager::InvalidRelationshipError); - orderedRelationships.removeOne(br3); - source.setRelationshipOrder(orderedRelationships); - QVERIFY(!cm->saveContact(&source)); - QVERIFY(cm->error() == QContactManager::InvalidRelationshipError); - source.setRelationshipOrder(QList()); - QVERIFY(!cm->saveContact(&source)); - QVERIFY(cm->error() == QContactManager::InvalidRelationshipError); - } - // remove a single relationship QVERIFY(cm->removeRelationship(br3)); - batchRetrieve = cm->relationships(source.id(), QContactRelationshipFilter::First); + batchRetrieve = cm->relationships(source.id(), QContactRelationship::First); QVERIFY(batchRetrieve.contains(br1)); QVERIFY(batchRetrieve.contains(br2)); QVERIFY(!batchRetrieve.contains(br3)); // has already been removed. // now ensure that the batch remove works and we get returned to the original state. batchList.removeOne(br3); - cm->removeRelationships(batchList); + cm->removeRelationships(batchList, NULL); QVERIFY(cm->error() == QContactManager::NoError); - QCOMPARE(cm->relationships(source.id(), QContactRelationshipFilter::First), currentRelationships); + QCOMPARE(cm->relationships(source.id(), QContactRelationship::First), currentRelationships); // attempt to save relationships between an existing source but non-existent destination QContactId nonexistentDest; @@ -2820,7 +2816,7 @@ maliciousRel.setRelationshipType("nokia-test-invalid-relationship-type"); QVERIFY(!cm->saveRelationship(&maliciousRel)); - // attempt to save a circular relationship + // attempt to save a circular relationship - should fail! maliciousRel.setFirst(source.id()); maliciousRel.setSecond(source.id()); maliciousRel.setRelationshipType(availableRelationshipTypes.at(0)); @@ -2855,19 +2851,30 @@ QVERIFY(cm->error() == QContactManager::DoesNotExistError || cm->error() == QContactManager::InvalidRelationshipError); QCOMPARE(cm->relationships().count(), relationshipsCount); // should be unchanged. + // now we want to ensure that a relationship is removed if one of the contacts is removed. + customRelationshipOne.setFirst(source.id()); + customRelationshipOne.setSecond(dest2.id()); + customRelationshipOne.setRelationshipType(availableRelationshipTypes.at(0)); + QVERIFY(cm->saveRelationship(&customRelationshipOne)); + source = cm->contact(source.localId()); + dest2 = cm->contact(dest2.localId()); + QVERIFY(cm->removeContact(dest2.localId())); // remove dest2, the relationship should be removed + QVERIFY(cm->relationships(availableRelationshipTypes.at(0), dest2.id(), QContactRelationship::Second).isEmpty()); + source = cm->contact(source.localId()); + QVERIFY(!source.relatedContacts().contains(dest2.id())); // and it shouldn't appear in cache. + // now clean up and remove our dests. QVERIFY(cm->removeContact(source.localId())); - QVERIFY(cm->removeContact(dest2.localId())); QVERIFY(cm->removeContact(dest3.localId())); // attempt to save relationships with nonexistent contacts QVERIFY(!cm->saveRelationship(&br1)); QVERIFY(cm->error() == QContactManager::InvalidRelationshipError); - cm->saveRelationships(&batchList); + cm->saveRelationships(&batchList, NULL); QVERIFY(cm->error() == QContactManager::InvalidRelationshipError); QVERIFY(!cm->removeRelationship(br1)); QVERIFY(cm->error() == QContactManager::DoesNotExistError || cm->error() == QContactManager::InvalidRelationshipError); - cm->removeRelationships(batchList); + cm->removeRelationships(batchList, NULL); QVERIFY(cm->error() == QContactManager::DoesNotExistError || cm->error() == QContactManager::InvalidRelationshipError); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactmanagerdataholder.h --- a/qtmobility/tests/auto/qcontactmanagerdataholder.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactmanagerdataholder.h Mon May 03 13:18:40 2010 +0300 @@ -82,7 +82,8 @@ savedContacts.insert(cm->managerName(),contacts); QList ids = cm->contactIds(); QMap errorMap; - cm->removeContacts(&ids, &errorMap); + cm->removeContacts(ids, &errorMap); + ids.clear(); delete cm; } } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactmanagerfiltering/tst_qcontactmanagerfiltering.cpp --- a/qtmobility/tests/auto/qcontactmanagerfiltering/tst_qcontactmanagerfiltering.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactmanagerfiltering/tst_qcontactmanagerfiltering.cpp Mon May 03 13:18:40 2010 +0300 @@ -115,6 +115,9 @@ void detailStringFiltering(); // XXX should take all managers void detailStringFiltering_data(); + void detailPhoneNumberFiltering(); + void detailPhoneNumberFiltering_data(); + void actionPlugins(); void actionFiltering(); void actionFiltering_data(); @@ -160,6 +163,12 @@ managerNames.removeAll("testdummy"); managerNames.removeAll("teststaticdummy"); managerNames.removeAll("maliciousplugin"); +#if defined(Q_OS_SYMBIAN) + // TODO: Analyze fails on symbiansim backend. Simply disable testing of + // symbiansim backend for now to make sure the fails do not steal attention + // from possible fails in symbian backend. + managerNames.removeAll("symbiansim"); +#endif foreach(QString mgr, managerNames) { QMap params; @@ -324,7 +333,7 @@ newMRow("Phone number = 555, starts with", manager) << manager << phonenumber << number << QVariant("555") << (int) QContactFilter::MatchStartsWith << "ab"; newMRow("Phone number = 1212, ends with", manager) << manager << phonenumber << number << QVariant("1212") << (int) QContactFilter::MatchEndsWith << "a"; newMRow("Phone number = 555-1212, match phone number", manager) << manager << phonenumber << number << QVariant("555-1212") << (int) QContactFilter::MatchPhoneNumber << "a"; - newMRow("Phone number = 555, keypad collation", manager) << manager << phonenumber << number << QVariant("555") << (int) QContactFilter::MatchKeypadCollation << "ab"; + newMRow("Phone number = 555, keypad collation", manager) << manager << phonenumber << number << QVariant("555") << (int) (QContactFilter::MatchKeypadCollation | QContactFilter::MatchStartsWith) << "ab"; /* Converting other types to strings */ QPair defAndFieldNames = defAndFieldNamesForTypePerManager.value(manager).value("Integer"); @@ -370,6 +379,120 @@ QCOMPARE_UNSORTED(output, expected); } +void tst_QContactManagerFiltering::detailPhoneNumberFiltering_data() +{ + QTest::addColumn("cm"); + QTest::addColumn("defname"); + QTest::addColumn("fieldname"); + QTest::addColumn("value"); + QTest::addColumn("matchflags"); + QTest::addColumn("expected"); + + // ITU-T standard keypad collation: + // 2 = abc, 3 = def, 4 = ghi, 5 = jkl, 6 = mno, 7 = pqrs, 8 = tuv, 9 = wxyz, 0 = space + + QString phoneDef = QContactPhoneNumber::DefinitionName; + QString phoneField = QContactPhoneNumber::FieldNumber; + QString nameDef = QContactName::DefinitionName; + QString nameField = QContactName::FieldFirstName; // just test the first name. + + // purely to test phone number filtering. + for (int i = 0; i < managers.size(); i++) { + QContactManager *manager = managers.at(i); + + // first, keypad collation testing (ITU-T / T9 testing) + QTest::newRow("t9 aaron") << manager << nameDef << nameField << QVariant(QString("22766")) << (int)(QContactFilter::MatchKeypadCollation) << "a"; + QTest::newRow("t9 bob") << manager << nameDef << nameField << QVariant(QString("262")) << (int)(QContactFilter::MatchKeypadCollation) << "b"; + QTest::newRow("t9 john") << manager << nameDef << nameField << QVariant(QString("5646")) << (int)(QContactFilter::MatchKeypadCollation) << "efg"; + QTest::newRow("t9 bo") << manager << nameDef << nameField << QVariant(QString("26")) << (int)(QContactFilter::MatchKeypadCollation | QContactFilter::MatchStartsWith) << "bc"; // bob, boris + QTest::newRow("t9 zzzz") << manager << nameDef << nameField << QVariant(QString("9999")) << (int)(QContactFilter::MatchKeypadCollation) << ""; // nobody. + + // now do phone number matching - first, aaron's phone number + QTest::newRow("a phone hyphen") << manager << phoneDef << phoneField << QVariant(QString("555-1212")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + QTest::newRow("a phone plus") << manager << phoneDef << phoneField << QVariant(QString("+5551212")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + QTest::newRow("a phone brackets") << manager << phoneDef << phoneField << QVariant(QString("(555)1212")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + QTest::newRow("a phone nospaces") << manager << phoneDef << phoneField << QVariant(QString("5551212")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + QTest::newRow("a phone single space") << manager << phoneDef << phoneField << QVariant(QString("555 1212")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + QTest::newRow("a phone random spaces") << manager << phoneDef << phoneField << QVariant(QString("55 512 12")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + QTest::newRow("a phone every space") << manager << phoneDef << phoneField << QVariant(QString("5 5 5 1 2 1 2")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + QTest::newRow("a phone plus hyphen") << manager << phoneDef << phoneField << QVariant(QString("+555-1212")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + QTest::newRow("a phone plus brackets") << manager << phoneDef << phoneField << QVariant(QString("+5(55)1212")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + QTest::newRow("a phone plus brackets hyphen") << manager << phoneDef << phoneField << QVariant(QString("+5(55)1-212")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + QTest::newRow("a phone plus brackets hyphen spaces") << manager << phoneDef << phoneField << QVariant(QString("+5 (55) 1-212")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; + + // XXX TODO: should we test for character to number conversions (eg, dial 1800-PESTCONTROL) etc + //QTest::newRow("a phone characters") << manager << phoneDef << phoneField << QVariant(QString("jjj1a1a")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; // 5551212 + //QTest::newRow("a phone characters") << manager << phoneDef << phoneField << QVariant(QString("jkl1b1a")) << (int)(QContactFilter::MatchPhoneNumber) << "a"; // 5551212 + + // then matches bob's phone number + QTest::newRow("b phone hyphen") << manager << phoneDef << phoneField << QVariant(QString("555-3456")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + QTest::newRow("b phone plus") << manager << phoneDef << phoneField << QVariant(QString("+5553456")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + QTest::newRow("b phone brackets") << manager << phoneDef << phoneField << QVariant(QString("(555)3456")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + QTest::newRow("b phone nospaces") << manager << phoneDef << phoneField << QVariant(QString("5553456")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + QTest::newRow("b phone single space") << manager << phoneDef << phoneField << QVariant(QString("555 3456")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + QTest::newRow("b phone random spaces") << manager << phoneDef << phoneField << QVariant(QString("55 534 56")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + QTest::newRow("b phone every space") << manager << phoneDef << phoneField << QVariant(QString("5 5 5 3 4 5 6")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + QTest::newRow("b phone plus hyphen") << manager << phoneDef << phoneField << QVariant(QString("+555-3456")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + QTest::newRow("b phone plus brackets") << manager << phoneDef << phoneField << QVariant(QString("+5(55)3456")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + QTest::newRow("b phone plus brackets hyphen") << manager << phoneDef << phoneField << QVariant(QString("+5(55)3-456")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + QTest::newRow("b phone plus brackets hyphen spaces") << manager << phoneDef << phoneField << QVariant(QString("+5 (55) 3-456")) << (int)(QContactFilter::MatchPhoneNumber) << "b"; + + // then match no phone numbers (negative testing) -- 555-9999 matches nobody in our test set. + QTest::newRow("no phone hyphen") << manager << phoneDef << phoneField << QVariant(QString("555-9999")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + QTest::newRow("no phone plus") << manager << phoneDef << phoneField << QVariant(QString("+5559999")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + QTest::newRow("no phone brackets") << manager << phoneDef << phoneField << QVariant(QString("(555)9999")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + QTest::newRow("no phone nospaces") << manager << phoneDef << phoneField << QVariant(QString("5559999")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + QTest::newRow("no phone single space") << manager << phoneDef << phoneField << QVariant(QString("555 9999")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + QTest::newRow("no phone random spaces") << manager << phoneDef << phoneField << QVariant(QString("55 599 99")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + QTest::newRow("no phone every space") << manager << phoneDef << phoneField << QVariant(QString("5 5 5 9 9 9 9")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + QTest::newRow("no phone plus hyphen") << manager << phoneDef << phoneField << QVariant(QString("+555-9999")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + QTest::newRow("no phone plus brackets") << manager << phoneDef << phoneField << QVariant(QString("+5(55)9999")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + QTest::newRow("no phone plus brackets hyphen") << manager << phoneDef << phoneField << QVariant(QString("+5(55)9-999")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + QTest::newRow("no phone plus brackets hyphen spaces") << manager << phoneDef << phoneField << QVariant(QString("+5 (55) 9-999")) << (int)(QContactFilter::MatchPhoneNumber) << ""; + + // then match both aaron and bob via starts with + QTest::newRow("ab phone starts nospace") << manager << phoneDef << phoneField << QVariant(QString("555")) << (int)(QContactFilter::MatchPhoneNumber | QContactFilter::MatchStartsWith) << "ab"; + QTest::newRow("ab phone starts hyphen") << manager << phoneDef << phoneField << QVariant(QString("555-")) << (int)(QContactFilter::MatchPhoneNumber | QContactFilter::MatchStartsWith) << "ab"; + QTest::newRow("ab phone starts space") << manager << phoneDef << phoneField << QVariant(QString("55 5")) << (int)(QContactFilter::MatchPhoneNumber | QContactFilter::MatchStartsWith) << "ab"; + QTest::newRow("ab phone starts brackets") << manager << phoneDef << phoneField << QVariant(QString("(555)")) << (int)(QContactFilter::MatchPhoneNumber | QContactFilter::MatchStartsWith) << "ab"; + QTest::newRow("ab phone starts plus") << manager << phoneDef << phoneField << QVariant(QString("+555")) << (int)(QContactFilter::MatchPhoneNumber | QContactFilter::MatchStartsWith) << "ab"; + QTest::newRow("ab phone starts hyphen space") << manager << phoneDef << phoneField << QVariant(QString("5 55-")) << (int)(QContactFilter::MatchPhoneNumber | QContactFilter::MatchStartsWith) << "ab"; + QTest::newRow("ab phone starts hyphen space brackets") << manager << phoneDef << phoneField << QVariant(QString("5 (55)-")) << (int)(QContactFilter::MatchPhoneNumber | QContactFilter::MatchStartsWith) << "ab"; + QTest::newRow("ab phone starts hyphen space brackets plus") << manager << phoneDef << phoneField << QVariant(QString("+5 (55)-")) << (int)(QContactFilter::MatchPhoneNumber | QContactFilter::MatchStartsWith) << "ab"; + } +} + +void tst_QContactManagerFiltering::detailPhoneNumberFiltering() +{ + QFETCH(QContactManager*, cm); + QFETCH(QString, defname); + QFETCH(QString, fieldname); + QFETCH(QVariant, value); + QFETCH(int, matchflags); + QFETCH(QString, expected); + + // note: this test is exactly the same as string filtering, but uses different fields and specific matchflags. + + QList contacts = contactsAddedToManagers.values(cm); + QList ids; + + QContactDetailFilter df; + df.setDetailDefinitionName(defname, fieldname); + df.setValue(value); + df.setMatchFlags(QContactFilter::MatchFlags(matchflags)); + + if (cm->managerName() == "memory") { + /* At this point, since we're using memory, assume the filter isn't really supported */ + QVERIFY(cm->isFilterSupported(df) == false); + } + + ids = cm->contactIds(df); + + QString output = convertIds(contacts, ids); + //QSKIP("TODO: fix default implementation of phone number matching!", SkipSingle); + QCOMPARE_UNSORTED(output, expected); +} + void tst_QContactManagerFiltering::detailVariantFiltering_data() { QTest::addColumn("cm"); @@ -1718,48 +1841,54 @@ QContactManager *manager = managers.at(i); // HasMember - QTest::newRow("RF-1") << manager << static_cast(QContactRelationshipFilter::Second) << QString(QLatin1String(QContactRelationship::HasMember)) << static_cast(0) << QString() << "a"; - QTest::newRow("RF-2") << manager << static_cast(QContactRelationshipFilter::First) << QString(QLatin1String(QContactRelationship::HasMember)) << static_cast(0) << QString() << "b"; - QTest::newRow("RF-3") << manager << static_cast(QContactRelationshipFilter::Either) << QString(QLatin1String(QContactRelationship::HasMember)) << static_cast(0) << QString() << "ab"; + QTest::newRow("RF-1") << manager << static_cast(QContactRelationship::Second) << QString(QLatin1String(QContactRelationship::HasMember)) << static_cast(0) << QString() << "a"; + QTest::newRow("RF-2") << manager << static_cast(QContactRelationship::First) << QString(QLatin1String(QContactRelationship::HasMember)) << static_cast(0) << QString() << "b"; + QTest::newRow("RF-3") << manager << static_cast(QContactRelationship::Either) << QString(QLatin1String(QContactRelationship::HasMember)) << static_cast(0) << QString() << "ab"; // match any contact that has an assistant - QTest::newRow("RF-4") << manager << static_cast(QContactRelationshipFilter::Second) << QString(QLatin1String(QContactRelationship::HasAssistant)) << static_cast(0) << QString() << "a"; + QTest::newRow("RF-4") << manager << static_cast(QContactRelationship::Second) << QString(QLatin1String(QContactRelationship::HasAssistant)) << static_cast(0) << QString() << "a"; // match any contact that is an assistant - QTest::newRow("RF-5") << manager << static_cast(QContactRelationshipFilter::First) << QString(QLatin1String(QContactRelationship::HasAssistant)) << static_cast(0) << QString() << "b"; + QTest::newRow("RF-5") << manager << static_cast(QContactRelationship::First) << QString(QLatin1String(QContactRelationship::HasAssistant)) << static_cast(0) << QString() << "b"; // match any contact that has an assistant or is an assistant - QTest::newRow("RF-6") << manager << static_cast(QContactRelationshipFilter::Either) << QString(QLatin1String(QContactRelationship::HasAssistant)) << static_cast(0) << QString() << "ab"; + QTest::newRow("RF-6") << manager << static_cast(QContactRelationship::Either) << QString(QLatin1String(QContactRelationship::HasAssistant)) << static_cast(0) << QString() << "ab"; // IsSameAs - QTest::newRow("RF-7") << manager << static_cast(QContactRelationshipFilter::Second) << QString(QLatin1String(QContactRelationship::IsSameAs)) << static_cast(0) << QString() << "a"; - QTest::newRow("RF-8") << manager << static_cast(QContactRelationshipFilter::First) << QString(QLatin1String(QContactRelationship::IsSameAs)) << static_cast(0) << QString() << "b"; - QTest::newRow("RF-9") << manager << static_cast(QContactRelationshipFilter::Either) << QString(QLatin1String(QContactRelationship::IsSameAs)) << static_cast(0) << QString() << "ab"; + QTest::newRow("RF-7") << manager << static_cast(QContactRelationship::Second) << QString(QLatin1String(QContactRelationship::IsSameAs)) << static_cast(0) << QString() << "a"; + QTest::newRow("RF-8") << manager << static_cast(QContactRelationship::First) << QString(QLatin1String(QContactRelationship::IsSameAs)) << static_cast(0) << QString() << "b"; + QTest::newRow("RF-9") << manager << static_cast(QContactRelationship::Either) << QString(QLatin1String(QContactRelationship::IsSameAs)) << static_cast(0) << QString() << "ab"; // Aggregates - QTest::newRow("RF-10") << manager << static_cast(QContactRelationshipFilter::Second) << QString(QLatin1String(QContactRelationship::Aggregates)) << static_cast(0) << QString() << "a"; - QTest::newRow("RF-11") << manager << static_cast(QContactRelationshipFilter::First) << QString(QLatin1String(QContactRelationship::Aggregates)) << static_cast(0) << QString() << "b"; - QTest::newRow("RF-12") << manager << static_cast(QContactRelationshipFilter::Either) << QString(QLatin1String(QContactRelationship::Aggregates)) << static_cast(0) << QString() << "ab"; + QTest::newRow("RF-10") << manager << static_cast(QContactRelationship::Second) << QString(QLatin1String(QContactRelationship::Aggregates)) << static_cast(0) << QString() << "a"; + QTest::newRow("RF-11") << manager << static_cast(QContactRelationship::First) << QString(QLatin1String(QContactRelationship::Aggregates)) << static_cast(0) << QString() << "b"; + QTest::newRow("RF-12") << manager << static_cast(QContactRelationship::Either) << QString(QLatin1String(QContactRelationship::Aggregates)) << static_cast(0) << QString() << "ab"; // HasManager - QTest::newRow("RF-13") << manager << static_cast(QContactRelationshipFilter::Second) << QString(QLatin1String(QContactRelationship::HasManager)) << static_cast(0) << QString() << "a"; - QTest::newRow("RF-14") << manager << static_cast(QContactRelationshipFilter::First) << QString(QLatin1String(QContactRelationship::HasManager)) << static_cast(0) << QString() << "b"; - QTest::newRow("RF-15") << manager << static_cast(QContactRelationshipFilter::Either) << QString(QLatin1String(QContactRelationship::HasManager)) << static_cast(0) << QString() << "ab"; + QTest::newRow("RF-13") << manager << static_cast(QContactRelationship::Second) << QString(QLatin1String(QContactRelationship::HasManager)) << static_cast(0) << QString() << "a"; + QTest::newRow("RF-14") << manager << static_cast(QContactRelationship::First) << QString(QLatin1String(QContactRelationship::HasManager)) << static_cast(0) << QString() << "b"; + QTest::newRow("RF-15") << manager << static_cast(QContactRelationship::Either) << QString(QLatin1String(QContactRelationship::HasManager)) << static_cast(0) << QString() << "ab"; // HasSpouse - QTest::newRow("RF-16") << manager << static_cast(QContactRelationshipFilter::Second) << QString(QLatin1String(QContactRelationship::HasSpouse)) << static_cast(0) << QString() << "a"; - QTest::newRow("RF-17") << manager << static_cast(QContactRelationshipFilter::First) << QString(QLatin1String(QContactRelationship::HasSpouse)) << static_cast(0) << QString() << "b"; - QTest::newRow("RF-18") << manager << static_cast(QContactRelationshipFilter::Either) << QString(QLatin1String(QContactRelationship::HasSpouse)) << static_cast(0) << QString() << "ab"; + QTest::newRow("RF-16") << manager << static_cast(QContactRelationship::Second) << QString(QLatin1String(QContactRelationship::HasSpouse)) << static_cast(0) << QString() << "a"; + QTest::newRow("RF-17") << manager << static_cast(QContactRelationship::First) << QString(QLatin1String(QContactRelationship::HasSpouse)) << static_cast(0) << QString() << "b"; + QTest::newRow("RF-18") << manager << static_cast(QContactRelationship::Either) << QString(QLatin1String(QContactRelationship::HasSpouse)) << static_cast(0) << QString() << "ab"; // Unknown relationship - QTest::newRow("RF-19") << manager << static_cast(QContactRelationshipFilter::Second) << QString(QLatin1String("UnknownRelationship")) << static_cast(0) << QString() << ""; - QTest::newRow("RF-20") << manager << static_cast(QContactRelationshipFilter::First) << QString(QLatin1String("UnknownRelationship")) << static_cast(0) << QString() << ""; - QTest::newRow("RF-21") << manager << static_cast(QContactRelationshipFilter::Either) << QString(QLatin1String("UnknownRelationship")) << static_cast(0) << QString() << ""; + if (manager->hasFeature(QContactManager::ArbitraryRelationshipTypes)) { + QTest::newRow("RF-19") << manager << static_cast(QContactRelationship::Second) << QString(QLatin1String("UnknownRelationship")) << static_cast(0) << QString() << "a"; + QTest::newRow("RF-20") << manager << static_cast(QContactRelationship::First) << QString(QLatin1String("UnknownRelationship")) << static_cast(0) << QString() << "b"; + QTest::newRow("RF-21") << manager << static_cast(QContactRelationship::Either) << QString(QLatin1String("UnknownRelationship")) << static_cast(0) << QString() << "ab"; + } else { + QTest::newRow("RF-19") << manager << static_cast(QContactRelationship::Second) << QString(QLatin1String("UnknownRelationship")) << static_cast(0) << QString() << ""; + QTest::newRow("RF-20") << manager << static_cast(QContactRelationship::First) << QString(QLatin1String("UnknownRelationship")) << static_cast(0) << QString() << ""; + QTest::newRow("RF-21") << manager << static_cast(QContactRelationship::Either) << QString(QLatin1String("UnknownRelationship")) << static_cast(0) << QString() << ""; + } // match any contact that is the related contact in a relationship with contact-A - //QTest::newRow("RF-19") << manager << static_cast(QContactRelationshipFilter::Second) << QString() << static_cast(contactAId.value(manager).localId()) << contactAId.value(manager).managerUri() << "h"; + //QTest::newRow("RF-19") << manager << static_cast(QContactRelationship::Second) << QString() << static_cast(contactAId.value(manager).localId()) << contactAId.value(manager).managerUri() << "h"; // match any contact has contact-A as the related contact - //QTest::newRow("RF-20") << manager << static_cast(QContactRelationshipFilter::First) << QString() << static_cast(contactAId.value(manager).localId()) << contactAId.value(manager).managerUri() << "i"; + //QTest::newRow("RF-20") << manager << static_cast(QContactRelationship::First) << QString() << static_cast(contactAId.value(manager).localId()) << contactAId.value(manager).managerUri() << "i"; // match any contact that has any relationship with contact-A - //QTest::newRow("RF-21") << manager << static_cast(QContactRelationshipFilter::Either) << QString() << static_cast(contactAId.value(manager).localId()) << contactAId.value(manager).managerUri() << "hi"; + //QTest::newRow("RF-21") << manager << static_cast(QContactRelationship::Either) << QString() << static_cast(contactAId.value(manager).localId()) << contactAId.value(manager).managerUri() << "hi"; } } @@ -1815,7 +1944,8 @@ // save and check error code bool succeeded = false; if((cm->hasFeature(QContactManager::Relationships) - && cm->supportedRelationshipTypes().contains(relationshipType)) + && cm->isRelationshipTypeSupported(relationshipType, contactA.type()) + && cm->isRelationshipTypeSupported(relationshipType, contactB.type())) || cm->hasFeature(QContactManager::ArbitraryRelationshipTypes)) { succeeded = true; QVERIFY(cm->saveRelationship(&h2i)); @@ -1831,7 +1961,7 @@ relatedContactId.setManagerUri(otherManagerUri); QContactRelationshipFilter crf; - crf.setRelatedContactRole(static_cast(relatedContactRole)); + crf.setRelatedContactRole(static_cast(relatedContactRole)); crf.setRelationshipType(relationshipType); crf.setRelatedContactId(relatedContactId); @@ -1861,10 +1991,13 @@ if (!cm->hasFeature(QContactManager::Relationships)) { QSKIP("Manager does not support relationships; skipping relationship filtering", SkipSingle); } else if(relationshipType.isEmpty() - || cm->supportedRelationshipTypes().contains(relationshipType)) { + || (cm->isRelationshipTypeSupported(relationshipType, contactA.type()) + && cm->isRelationshipTypeSupported(relationshipType, contactB.type()))) { + // check that the relationship type is supported for both contacts. QCOMPARE_UNSORTED(output, expected); } else { - QSKIP("Manager does not support relationship type; skipping", SkipSingle); + QString msg = "Manager does not support relationship type " + relationshipType + " between " + contactA.type() + " and " + contactB.type() + " type contacts."; + QSKIP(msg.toAscii(), SkipSingle); } } @@ -2502,6 +2635,12 @@ continue; } + // if read only, we cannot use this definition. + // special case these, since read-only is reported via details, not definitions... + if (def.name() == QString(QLatin1String(QContactName::DefinitionName)) || def.name() == QString(QLatin1String(QContactPresence::DefinitionName))) { + continue; + } + // grab the fields and search for a field of the required type // we only consider the definition if it only has a SINGLE FIELD, and // if that field is of the required type. This avoids nasty presence test @@ -2705,9 +2844,12 @@ name.setFirstName("Aaron"); name.setLastName("Aaronson"); - name.setMiddleName("Arne"); - name.setPrefix("Sir"); - name.setSuffix("Dr."); + if (cm->detailDefinition(QContactName::DefinitionName).fields().contains(QContactName::FieldMiddleName)) + name.setMiddleName("Arne"); + if (cm->detailDefinition(QContactName::DefinitionName).fields().contains(QContactName::FieldPrefix)) + name.setPrefix("Sir"); + if (cm->detailDefinition(QContactName::DefinitionName).fields().contains(QContactName::FieldSuffix)) + name.setSuffix("Dr."); QContactNickname nick; nick.setNickname("Sir Aaron"); QContactEmailAddress emailAddr; @@ -3036,7 +3178,29 @@ } /* Static actions for testing matching */ -class QIntegerAction : public QContactAction + +class DummyAction : public QContactAction +{ +public: + QVariantMap metaData() const {return QVariantMap();} + + bool invokeAction(const QContact&, const QContactDetail&, const QVariantMap&) + { + // Well, do something + emit stateChanged(QContactAction::FinishedState); + return true; + } + + QVariantMap results() const + { + return QVariantMap(); + } + + State state() const {return QContactAction::FinishedState;} + +}; + +class QIntegerAction : public DummyAction { Q_OBJECT @@ -3045,8 +3209,6 @@ ~QIntegerAction() {} QContactActionDescriptor actionDescriptor() const { return QContactActionDescriptor("Number", "IntegerCo", 5); } - QVariantMap metadata() const {return QVariantMap();} - QVariantMap metaData() const {return QVariantMap();} QContactFilter contactFilter(const QVariant& value) const { @@ -3056,28 +3218,19 @@ df.setValue(value); return df; } - bool supportsDetail(const QContactDetail& detail) const + bool isDetailSupported(const QContactDetail &detail, const QContact &) const { return detail.definitionName() == defAndFieldNamesForTypeForActions.value("Integer").first && !detail.variantValue(defAndFieldNamesForTypeForActions.value("Integer").second).isNull(); } - - void invokeAction(const QContact& contact, const QContactDetail& detail = QContactDetail()) + QList supportedDetails(const QContact& contact) const { - Q_UNUSED(contact); - Q_UNUSED(detail); - // Well, do something - emit progress(QContactAction::FinishedState, QVariantMap()); - } - - QVariantMap result() const - { - return QVariantMap(); + return contact.details(defAndFieldNamesForTypeForActions.value("Integer").first); } }; /* Static actions for testing matching */ -class QPhoneNumberAction : public QContactAction +class QPhoneNumberAction : public DummyAction { Q_OBJECT @@ -3086,8 +3239,6 @@ ~QPhoneNumberAction() {} QContactActionDescriptor actionDescriptor() const { return QContactActionDescriptor("PhoneNumber", "PhoneNumberCo", 4); } - QVariantMap metadata() const {return QVariantMap();} - QVariantMap metaData() const {return QVariantMap();} QContactFilter contactFilter(const QVariant& value) const { @@ -3096,28 +3247,19 @@ df.setValue(value); return df; } - bool supportsDetail(const QContactDetail& detail) const + bool isDetailSupported(const QContactDetail& detail, const QContact&) const { return detail.definitionName() == QContactPhoneNumber::DefinitionName && !detail.variantValue(QContactPhoneNumber::FieldNumber).isNull(); } - - void invokeAction(const QContact& contact, const QContactDetail& detail = QContactDetail()) + QList supportedDetails(const QContact& contact) const { - Q_UNUSED(contact); - Q_UNUSED(detail); - // Well, do something - emit progress(QContactAction::FinishedState, QVariantMap()); - } - - QVariantMap result() const - { - return QVariantMap(); + return contact.details(QContactPhoneNumber::DefinitionName); } }; /* Static actions for testing matching */ -class QDateAction : public QContactAction +class QDateAction : public DummyAction { Q_OBJECT @@ -3126,8 +3268,6 @@ ~QDateAction() {} QContactActionDescriptor actionDescriptor() const { return QContactActionDescriptor("Date", "DateCo", 9); } - QVariantMap metadata() const {return QVariantMap();} - QVariantMap metaData() const {return QVariantMap();} QContactFilter contactFilter(const QVariant& value) const { @@ -3137,27 +3277,19 @@ df.setValue(value); return df; } - bool supportsDetail(const QContactDetail& detail) const + + bool isDetailSupported(const QContactDetail &detail, const QContact &) const { return detail.definitionName() == defAndFieldNamesForTypeForActions.value("Date").first && !detail.variantValue(defAndFieldNamesForTypeForActions.value("Date").second).isNull(); } - - void invokeAction(const QContact& contact, const QContactDetail& detail = QContactDetail()) + QList supportedDetails(const QContact& contact) const { - Q_UNUSED(contact); - Q_UNUSED(detail); - // Well, do something - emit progress(QContactAction::FinishedState, QVariantMap()); - } - - QVariantMap result() const - { - return QVariantMap(); + return contact.details(defAndFieldNamesForTypeForActions.value("Date").first); } }; -class QNumberAction : public QContactAction +class QNumberAction : public DummyAction { Q_OBJECT @@ -3166,8 +3298,6 @@ ~QNumberAction() {} QContactActionDescriptor actionDescriptor() const { return QContactActionDescriptor("Number", "NumberCo", 42); } - QVariantMap metadata() const {return QVariantMap();} - QVariantMap metaData() const {return QVariantMap();} QContactFilter contactFilter(const QVariant& value) const { @@ -3184,7 +3314,8 @@ /* We like either doubles or integers */ return df | df2; } - bool supportsDetail(const QContactDetail& detail) const + + bool isDetailSupported(const QContactDetail &detail, const QContact &) const { if (detail.definitionName() == defAndFieldNamesForTypeForActions.value("Double").first && !detail.variantValue(defAndFieldNamesForTypeForActions.value("Double").second).isNull()) { @@ -3198,22 +3329,15 @@ return false; } - - void invokeAction(const QContact& contact, const QContactDetail& detail = QContactDetail()) + QList supportedDetails(const QContact& contact) const { - Q_UNUSED(contact); - Q_UNUSED(detail); - // Well, do something - emit progress(QContactAction::FinishedState, QVariantMap()); - } - - QVariantMap result() const - { - return QVariantMap(); + QList retn = contact.details(defAndFieldNamesForTypeForActions.value("Integer").first); + retn.append(contact.details(defAndFieldNamesForTypeForActions.value("Double").first)); + return retn; } }; -class QBooleanAction : public QContactAction +class QBooleanAction : public DummyAction { Q_OBJECT @@ -3222,8 +3346,6 @@ ~QBooleanAction() {} QContactActionDescriptor actionDescriptor() const { return QContactActionDescriptor("Boolean", "BooleanCo", 3); } - QVariantMap metadata() const {return QVariantMap();} - QVariantMap metaData() const {return QVariantMap();} QContactFilter contactFilter(const QVariant& value) const { @@ -3238,27 +3360,18 @@ return QContactInvalidFilter(); } } - bool supportsDetail(const QContactDetail& detail) const + bool isDetailSupported(const QContactDetail &detail, const QContact &) const { return detail.definitionName() == defAndFieldNamesForTypeForActions.value("Bool").first && (detail.value(defAndFieldNamesForTypeForActions.value("Bool").second) == true); } - - void invokeAction(const QContact& contact, const QContactDetail& detail = QContactDetail()) + QList supportedDetails(const QContact& contact) const { - Q_UNUSED(contact); - Q_UNUSED(detail); - // Well, do something - emit progress(QContactAction::FinishedState, QVariantMap()); - } - - QVariantMap result() const - { - return QVariantMap(); + return contact.details(defAndFieldNamesForTypeForActions.value("Bool").first); } }; -class RecursiveAction : public QContactAction +class RecursiveAction : public DummyAction { Q_OBJECT @@ -3267,8 +3380,6 @@ ~RecursiveAction() {} QContactActionDescriptor actionDescriptor() const { return QContactActionDescriptor("Recursive", "RecursiveCo", 3); } - QVariantMap metadata() const {return QVariantMap();} - QVariantMap metaData() const {return QVariantMap();} QContactFilter contactFilter(const QVariant& value) const { @@ -3279,18 +3390,13 @@ af.setValue(value); return af; } - bool supportsDetail(const QContactDetail&) const + bool isDetailSupported(const QContactDetail&, const QContact&) const { return false; } - void invokeAction(const QContact&, const QContactDetail&) + QList supportedDetails(const QContact&) const { - emit progress(QContactAction::FinishedState, QVariantMap()); - } - - QVariantMap result() const - { - return QVariantMap(); + return QList(); } }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactmanagerplugins/dummyplugin/dummyplugin.cpp --- a/qtmobility/tests/auto/qcontactmanagerplugins/dummyplugin/dummyplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactmanagerplugins/dummyplugin/dummyplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -57,7 +57,7 @@ class DummyEngine : public QContactManagerEngine { public: - DummyEngine(const QMap& parameters, QContactManager::Error& error); + DummyEngine(const QMap& parameters, QContactManager::Error* error); DummyEngine(const DummyEngine& other); ~DummyEngine(); DummyEngine& operator=(const DummyEngine& other); @@ -66,16 +66,160 @@ QString managerName() const; /* Contacts - Accessors and Mutators */ - QList contacts(QContactManager::Error& error) const; - QContact contact(const QContactLocalId& contactId, QContactManager::Error& error) const; - QContact contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const; - bool saveContact(QContact* contact, bool batch, QContactManager::Error& error); - bool removeContact(const QContactLocalId& contactId, bool batch, QContactManager::Error& error); + QList contacts(QContactManager::Error* error) const; + QContact contact(const QContactLocalId& contactId, QContactManager::Error* error) const; + QContact contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const; + bool saveContact(QContact* contact, bool batch, QContactManager::Error* error); + bool removeContact(const QContactLocalId& contactId, bool batch, QContactManager::Error* error); /* Capabilities reporting */ QStringList capabilities() const; QStringList fastFilterableDefinitions() const; QList supportedDataTypes() const; + + QMap managerParameters() const {return QMap();} + int managerVersion() const {return 0;} + + QList contactIds(const QContactFilter&, const QList&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QList(); + } + + QList contacts(const QContactFilter&, const QList&, const QContactFetchHint&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QList(); + } + + bool saveContacts(QList*, QMap*, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + bool removeContacts(const QList&, QMap*, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + QContact conformingContact(const QContact&, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return QContact(); + } + + /* Synthesize the display label of a contact */ + virtual QString synthesizedDisplayLabel(const QContact&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QString(); + } + + /* "Self" contact id (MyCard) */ + virtual bool setSelfContactId(const QContactLocalId&, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + virtual QContactLocalId selfContactId(QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return 0; + } + + /* Relationships between contacts */ + virtual QList relationships(const QString&, const QContactId&, QContactRelationship::Role, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QList(); + } + + virtual bool saveRelationships(QList*, QMap*, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + virtual bool removeRelationships(const QList&, QMap*, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + /* Validation for saving */ + virtual QContact compatibleContact(const QContact&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QContact(); + } + + virtual bool validateContact(const QContact&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return false; + } + + virtual bool validateDefinition(const QContactDetailDefinition&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return false; + } + + /* Definitions - Accessors and Mutators */ + virtual QMap detailDefinitions(const QString&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QMap(); + } + + virtual QContactDetailDefinition detailDefinition(const QString&, const QString&, QContactManager::Error* error) const + { + *error = QContactManager::NotSupportedError; + return QContactDetailDefinition(); + } + + virtual bool saveDetailDefinition(const QContactDetailDefinition&, const QString&, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + virtual bool removeDetailDefinition(const QString&, const QString&, QContactManager::Error* error) + { + *error = QContactManager::NotSupportedError; + return false; + } + + /* Asynchronous Request Support */ + virtual void requestDestroyed(QContactAbstractRequest*) {} + virtual bool startRequest(QContactAbstractRequest*) {return false;} + virtual bool cancelRequest(QContactAbstractRequest*) {return false;} + virtual bool waitForRequestFinished(QContactAbstractRequest*, int) {return false;} + + /* Capabilities reporting */ + virtual bool hasFeature(QContactManager::ManagerFeature, const QString&) const + { + return false; + } + + virtual bool isRelationshipTypeSupported(const QString&, const QString&) const + { + return false; + } + + virtual bool isFilterSupported(const QContactFilter&) const + { + return false; + } + + virtual QStringList supportedContactTypes() const + { + return QStringList(); + } + }; class Q_DECL_EXPORT DummyEngineFactory : public QObject, public QContactManagerEngineFactory @@ -83,11 +227,11 @@ Q_OBJECT Q_INTERFACES(QtMobility::QContactManagerEngineFactory) public: - QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error& error); + QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error* error); QString managerName() const; }; -QContactManagerEngine* DummyEngineFactory::engine(const QMap& parameters, QContactManager::Error& error) +QContactManagerEngine* DummyEngineFactory::engine(const QMap& parameters, QContactManager::Error* error) { return new DummyEngine(parameters, error); } @@ -102,10 +246,10 @@ } Q_EXPORT_PLUGIN2(DUMMYPLUGINTARGET, DummyEngineFactory); -DummyEngine::DummyEngine(const QMap& parameters, QContactManager::Error& error) +DummyEngine::DummyEngine(const QMap& parameters, QContactManager::Error* error) { Q_UNUSED(parameters); - error = QContactManager::AlreadyExistsError; // Another random choice + *error = QContactManager::AlreadyExistsError; // Another random choice } DummyEngine::DummyEngine(const DummyEngine& other) @@ -144,36 +288,36 @@ #endif } -QList DummyEngine::contacts(QContactManager::Error& error) const +QList DummyEngine::contacts(QContactManager::Error* error) const { QList allCIds; - if (allCIds.count() > 0 && error == QContactManager::NoError) - error = QContactManager::DoesNotExistError; + if (allCIds.count() > 0 && *error == QContactManager::NoError) + *error = QContactManager::DoesNotExistError; return allCIds; } -QContact DummyEngine::contact(const QContactLocalId& contactId, QContactManager::Error& error) const +QContact DummyEngine::contact(const QContactLocalId& contactId, QContactManager::Error* error) const { Q_UNUSED(contactId); - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return QContact(); } -QContact DummyEngine::contact(const QContactLocalId& contactId, const QStringList& definitionRestrictions, QContactManager::Error& error) const +QContact DummyEngine::contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint, QContactManager::Error* error) const { Q_UNUSED(contactId); - Q_UNUSED(definitionRestrictions); - error = QContactManager::DoesNotExistError; + Q_UNUSED(fetchHint); + *error = QContactManager::DoesNotExistError; return QContact(); } -bool DummyEngine::saveContact(QContact* contact, bool batch, QContactManager::Error& error) +bool DummyEngine::saveContact(QContact* contact, bool batch, QContactManager::Error* error) { // ensure that the contact's details conform to their definitions if (!validateContact(*contact, error)) { - error = QContactManager::InvalidDetailError; + *error = QContactManager::InvalidDetailError; return false; } @@ -182,7 +326,7 @@ newId.setManagerUri(managerUri()); newId.setLocalId(5); contact->setId(newId); - error = QContactManager::NoError; + *error = QContactManager::NoError; // if we need to emit signals (ie, this isn't part of a batch operation) // then emit the correct one. @@ -195,14 +339,14 @@ return true; } -bool DummyEngine::removeContact(const QContactLocalId& contactId, bool batch, QContactManager::Error& error) +bool DummyEngine::removeContact(const QContactLocalId& contactId, bool batch, QContactManager::Error* error) { if (contactId != 5) { - error = QContactManager::DoesNotExistError; + *error = QContactManager::DoesNotExistError; return false; } - error = QContactManager::NoError; + *error = QContactManager::NoError; // if we need to emit signals (ie, this isn't part of a batch operation) // then emit the correct one. diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactmanagerplugins/unittest/tst_qcontactmanagerplugins.cpp --- a/qtmobility/tests/auto/qcontactmanagerplugins/unittest/tst_qcontactmanagerplugins.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactmanagerplugins/unittest/tst_qcontactmanagerplugins.cpp Mon May 03 13:18:40 2010 +0300 @@ -75,14 +75,14 @@ Q_OBJECT Q_INTERFACES(QtMobility::QContactManagerEngineFactory) public: - QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error& error); + QContactManagerEngine* engine(const QMap& parameters, QContactManager::Error* error); QString managerName() const {return "teststaticdummy";} }; -QContactManagerEngine* DummyStaticEngineFactory::engine(const QMap& parameters, QContactManager::Error& error) +QContactManagerEngine* DummyStaticEngineFactory::engine(const QMap& parameters, QContactManager::Error* error) { Q_UNUSED(parameters); - error = QContactManager::LockedError; // random unlikely error + *error = QContactManager::LockedError; // random unlikely error return 0; // always fail, haha } @@ -99,7 +99,7 @@ Q_OBJECT Q_INTERFACES(QtMobility::QContactManagerEngineFactory) public: - QContactManagerEngine* engine(const QMap& , QContactManager::Error& ) {return 0;} + QContactManagerEngine* engine(const QMap& , QContactManager::Error* ) {return 0;} QString managerName() const {return "memory";} }; @@ -112,7 +112,7 @@ Q_OBJECT Q_INTERFACES(QtMobility::QContactManagerEngineFactory) public: - QContactManagerEngine* engine(const QMap& , QContactManager::Error& ) {return 0;} + QContactManagerEngine* engine(const QMap& , QContactManager::Error* ) {return 0;} QString managerName() const {return "invalid";} }; @@ -126,7 +126,7 @@ Q_OBJECT Q_INTERFACES(QtMobility::QContactManagerEngineFactory) public: - QContactManagerEngine* engine(const QMap& , QContactManager::Error& ) {return 0;} + QContactManagerEngine* engine(const QMap& , QContactManager::Error* ) {return 0;} QString managerName() const {return QString();} }; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactmemusage/qcontactmemusage.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qcontactmemusage/qcontactmemusage.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,23 @@ +QT += testlib +TEMPLATE=app +TARGET=tst_qcontactmemusage +CONFIG+=testcase + +include(../../../common.pri) + +INCLUDEPATH += ../../../src/contacts \ + ../../../src/contacts/details \ + ../../../src/contacts/requests \ + ../../../src/contacts/filters +INCLUDEPATH += ../ + +CONFIG += mobility +MOBILITY = contacts +SOURCES += tst_qcontactmemusage.cpp + +symbian: { + TARGET.CAPABILITY = ReadUserData \ + WriteUserData \ + ReadDeviceData \ + WriteDeviceData +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactmemusage/tst_qcontactmemusage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qcontactmemusage/tst_qcontactmemusage.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,331 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include + +#include "qtcontacts.h" +#include "qcontactmanagerdataholder.h" //QContactManagerDataHolder + +//TESTED_CLASS= +//TESTED_FILES= + + +// Define global op new so we can track some amount of allocations +static qulonglong cAllocated = 0; +static qulonglong nAllocations = 0; + +/* +void * operator new(size_t sz) +{ + nAllocations++; + cAllocated += sz; + return malloc(sz); +} +void * operator new[](size_t sz) +{ + nAllocations++; + cAllocated += sz; + return malloc(sz); +} +void operator delete(void * block) +{ + if (block) + free(block); +} + +void operator delete[](void *block) +{ + if (block) + free(block); +} +*/ + + +// Also hook malloc (with glibc) +void *(*old_hook)(size_t, const void*); +void *qmallochook(size_t size, const void* ) +{ + void * ret; + nAllocations++; + cAllocated += size; + __malloc_hook = old_hook; + ret = malloc(size); + __malloc_hook = qmallochook; + return ret; +} + +// I can't seem to get the __malloc_init_hook method working (C++ mangling?) +static int qmallocinithook() +{ + old_hook = __malloc_hook; + __malloc_hook = qmallochook; + return 1; +} + +Q_CONSTRUCTOR_FUNCTION(qmallocinithook); + +class QMemUsed +{ +public: + QMemUsed() : mLabel(0), mAllocated(cAllocated), mAllocations(nAllocations), mItems(0) + { + } + QMemUsed(const char* name) : mLabel(name), mAllocated(cAllocated), mAllocations(nAllocations), mItems(0) + { + } + QMemUsed(const char* name, int nItems) : mLabel(name), mAllocated(cAllocated), mAllocations(nAllocations), mItems(nItems) + { + } + ~QMemUsed() + { + mAllocated = cAllocated - mAllocated; + mAllocations = nAllocations - mAllocations; + QString allocations = mAllocations > 1 ? QString("allocations") : QString("allocation"); + if (mItems > 1) { + QString msg("%1 bytes in %2 %8 (for %3 x %6 -> %4 bytes, %5 allocations per %7)"); + qDebug() << msg.arg(mAllocated).arg(mAllocations).arg(mItems).arg(((double)mAllocated) / mItems).arg(((double) mAllocations) / mItems).arg(mLabel).arg(mLabel).arg(allocations).toLatin1().constData(); + } else if (mLabel.latin1()){ + QString msg("%1 bytes in %2 %4 for %3"); + qDebug() << msg.arg(mAllocated).arg(mAllocations).arg(mLabel).arg(allocations).toLatin1().constData(); + } else { + QString msg("%1 bytes in %2 %3"); + qDebug() << msg.arg(mAllocated).arg(mAllocations).arg(allocations).toLatin1().constData(); + } + } + QLatin1String mLabel; + qulonglong mAllocated; + qulonglong mAllocations; + int mItems; +}; + +QTM_USE_NAMESPACE +class tst_QContactMemUsage : public QObject +{ +Q_OBJECT + +public: + tst_QContactMemUsage(); + virtual ~tst_QContactMemUsage(); + +private: + QContactManagerDataHolder managerDataHolder; + +public slots: + void init(); + void cleanup(); + +private slots: + void single(); + void multiple(); + +private: + QMemUsed mem; +}; + +tst_QContactMemUsage::tst_QContactMemUsage() +{ +} + +tst_QContactMemUsage::~tst_QContactMemUsage() +{ +} + +void tst_QContactMemUsage::init() +{ +} + +void tst_QContactMemUsage::cleanup() +{ +} + +void tst_QContactMemUsage::single() +{ + // Try single allocations + { + QMemUsed m("PhoneNumber"); + QContactPhoneNumber p1; + } + + { + QMemUsed m("Address"); + QContactAddress a; + } + + { + QMemUsed m("Name"); + QContactName p1; + } +} + +void tst_QContactMemUsage::multiple() +{ + // First 10 + { + QMemUsed m("PhoneNumber", 10); + QContactPhoneNumber p1; + QContactPhoneNumber p2; + QContactPhoneNumber p3; + QContactPhoneNumber p4; + QContactPhoneNumber p5; + QContactPhoneNumber p6; + QContactPhoneNumber p7; + QContactPhoneNumber p8; + QContactPhoneNumber p9; + QContactPhoneNumber p10; + } + + { + QMemUsed m("Address", 10); + QContactAddress p1; + QContactAddress p2; + QContactAddress p3; + QContactAddress p4; + QContactAddress p5; + QContactAddress p6; + QContactAddress p7; + QContactAddress p8; + QContactAddress p9; + QContactAddress p10; + } + + { + QMemUsed m("Address", 10); + QContactAddress p1; + QContactAddress p2; + QContactAddress p3; + QContactAddress p4; + QContactAddress p5; + QContactAddress p6; + QContactAddress p7; + QContactAddress p8; + QContactAddress p9; + QContactAddress p10; + } + + { + QMemUsed m("Name", 10); + QContactName p1; + QContactName p2; + QContactName p3; + QContactName p4; + QContactName p5; + QContactName p6; + QContactName p7; + QContactName p8; + QContactName p9; + QContactName p10; + } + + { + QList details; + QMemUsed m("PhoneNumber", 100); + for (int i = 0; i < 100; i++) { + QContactPhoneNumber a; + details.append(a); + } + } + + + { + QList details; + QMemUsed m("Address", 100); + for (int i = 0; i < 100; i++) { + QContactAddress a; + details.append(a); + } + } + + + { + QList details; + QMemUsed m("Name", 100); + for (int i = 0; i < 100; i++) { + QContactName a; + details.append(a); + } + } + + + // Now set some values + { + QString v("1234"); + QMemUsed m("PhoneNumber with number"); + QContactPhoneNumber p; + p.setNumber(v); + } + + { + QVariant v("1234"); + QMemUsed m("PhoneNumber with number as variant"); + QContactPhoneNumber p; + p.setValue(QContactPhoneNumber::FieldNumber, v); + } + + + { + QMemUsed m("PhoneNumber with number and subtype"); + QContactPhoneNumber p; + p.setNumber("1234"); + p.setSubTypes(QContactPhoneNumber::SubTypeMobile); + } + + { + QMemUsed m("PhoneNumber with custom fields"); + QContactPhoneNumber p; + QVariant v = QString("1234"); + p.setValue(QContactAddress::FieldCountry, v); + p.setValue(QContactUrl::FieldUrl, v); + p.setValue(QContactEmailAddress::FieldEmailAddress, v); + p.setValue(QContactName::FieldFirstName, v); + p.setValue(QContactName::FieldLastName, v); + p.setValue(QContactName::FieldMiddleName, v); + p.setValue(QContactName::FieldPrefix, v); + p.setValue(QContactName::FieldSuffix, v); + p.setValue(QContactAddress::FieldLocality, v); + p.setValue(QContactAddress::FieldRegion, v); + } + + +} + +QTEST_MAIN(tst_QContactMemUsage) +#include "tst_qcontactmemusage.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qcontactrelationship/tst_qcontactrelationship.cpp --- a/qtmobility/tests/auto/qcontactrelationship/tst_qcontactrelationship.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qcontactrelationship/tst_qcontactrelationship.cpp Mon May 03 13:18:40 2010 +0300 @@ -62,6 +62,7 @@ private slots: void operations(); void emptiness(); + void hash(); }; tst_QContactRelationship::tst_QContactRelationship() @@ -139,6 +140,36 @@ QVERIFY(r3 != r1); } +void tst_QContactRelationship::hash() +{ + QContactRelationship r1; + QContactId id1; + id1.setManagerUri("a"); + id1.setLocalId(1); + r1.setFirst(id1); + QContactId id2; + id2.setManagerUri("b"); + id2.setLocalId(2); + r1.setSecond(id2); + r1.setRelationshipType(QContactRelationship::HasMember); + + QContactRelationship r2; + r2.setFirst(id1); + r2.setSecond(id2); + r2.setRelationshipType(QContactRelationship::HasMember); + + QContactRelationship r3; + r3.setFirst(id1); + QContactId id3; + id3.setManagerUri("c"); + id3.setLocalId(3); + r3.setSecond(id3); + r3.setRelationshipType(QContactRelationship::HasMember); + + QVERIFY(qHash(r1) == qHash(r2)); + QVERIFY(qHash(r1) != qHash(r3)); + +} QTEST_MAIN(tst_QContactRelationship) #include "tst_qcontactrelationship.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp --- a/qtmobility/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp Mon May 03 13:18:40 2010 +0300 @@ -91,7 +91,7 @@ private slots: void initTestCase() { - int id = qRegisterMetaType(); + qRegisterMetaType(); } void init() @@ -124,20 +124,20 @@ //TC_ID_4_x_1 void constructor_withoutParent() { - QLocationTestUtils::uheap_mark(); + //QLocationTestUtils::uheap_mark(); MyPositionAreaMonitor *myMonitor = new MyPositionAreaMonitor(); delete myMonitor; - QLocationTestUtils::uheap_mark_end(); + //QLocationTestUtils::uheap_mark_end(); } //TC_ID_4_x_2 void constructor_withParent() { - QLocationTestUtils::uheap_mark(); + //QLocationTestUtils::uheap_mark(); QObject* parent = new QObject; - MyPositionAreaMonitor *myMonitor = new MyPositionAreaMonitor(parent); + new MyPositionAreaMonitor(parent); delete parent; - QLocationTestUtils::uheap_mark_end(); + //QLocationTestUtils::uheap_mark_end(); } //TC_ID_4_x_1 @@ -145,12 +145,12 @@ { if (!QLocationTestUtils::hasDefaultMonitor()) QSKIP("No default monitor source", SkipAll); - QLocationTestUtils::uheap_mark(); + //QLocationTestUtils::uheap_mark(); QObject* parent = new QObject; QGeoAreaMonitor* obj = QGeoAreaMonitor::createDefaultMonitor(parent); QVERIFY(obj != 0); delete parent; - QLocationTestUtils::uheap_mark_end(); + //QLocationTestUtils::uheap_mark_end(); } //TC_ID_4_x_1 diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qgeopositioninfo/tst_qgeopositioninfo.cpp --- a/qtmobility/tests/auto/qgeopositioninfo/tst_qgeopositioninfo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qgeopositioninfo/tst_qgeopositioninfo.cpp Mon May 03 13:18:40 2010 +0300 @@ -138,7 +138,7 @@ QGeoPositionInfo info; QVERIFY(!info.isValid()); QVERIFY(!info.coordinate().isValid()); - QVERIFY(info.dateTime().isNull()); + QVERIFY(info.timestamp().isNull()); } void constructor_coord_dateTime() @@ -149,7 +149,7 @@ QGeoPositionInfo info(coord, dateTime); QCOMPARE(info.coordinate(), coord); - QCOMPARE(info.dateTime(), dateTime); + QCOMPARE(info.timestamp(), dateTime); QCOMPARE(info.isValid(), valid); } @@ -227,8 +227,8 @@ QFETCH(QDateTime, dateTime); QGeoPositionInfo info; - info.setDateTime(dateTime); - QCOMPARE(info.dateTime(), dateTime); + info.setTimestamp(dateTime); + QCOMPARE(info.timestamp(), dateTime); } void setDateTime_data() @@ -241,7 +241,7 @@ void dateTime() { QGeoPositionInfo info; - QVERIFY(info.dateTime().isNull()); + QVERIFY(info.timestamp().isNull()); } void setCoordinate() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qgeosatelliteinfo/tst_qgeosatelliteinfo.cpp --- a/qtmobility/tests/auto/qgeosatelliteinfo/tst_qgeosatelliteinfo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qgeosatelliteinfo/tst_qgeosatelliteinfo.cpp Mon May 03 13:18:40 2010 +0300 @@ -308,6 +308,25 @@ attribute_data(); } + void datastream() + { + QFETCH(QGeoSatelliteInfo, info); + + QByteArray ba; + QDataStream out(&ba, QIODevice::WriteOnly); + out << info; + + QDataStream in(&ba, QIODevice::ReadOnly); + QGeoSatelliteInfo inInfo; + in >> inInfo; + QCOMPARE(inInfo, info); + } + + void datastream_data() + { + addTestData_update(); + } + void debug() { QFETCH(QGeoSatelliteInfo, info); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp --- a/qtmobility/tests/auto/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,10 +40,8 @@ ****************************************************************************/ #include +#include "qgraphicsvideoitem.h" #include - -#include "qgraphicsvideoitem.h" - #include "qmediaobject.h" #include "qmediaservice.h" #include "qpaintervideosurface_p.h" @@ -360,7 +358,7 @@ QVERIFY(object.testService->rendererControl->surface() != 0); item->hide(); - QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::NoOutput); + QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::RendererOutput); item->show(); QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::RendererOutput); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qlatin1constant/qlatin1constant.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qlatin1constant/qlatin1constant.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,16 @@ +QT += testlib +TEMPLATE=app +TARGET=tst_qlatin1constant +CONFIG+=testcase + +include(../../../common.pri) + +INCLUDEPATH += ../../../src/contacts + +INCLUDEPATH += ../ + +CONFIG += mobility +MOBILITY = contacts + +SOURCES += tst_qlatin1constant.cpp + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qlatin1constant/tst_qlatin1constant.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qlatin1constant/tst_qlatin1constant.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,299 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 + +#include "qtcontactsglobal.h" +#include +#include +#include + +//TESTED_CLASS= +//TESTED_FILES= + +QTM_USE_NAMESPACE + +Q_DEFINE_LATIN1_CONSTANT(a, "a"); +Q_DEFINE_LATIN1_CONSTANT(a2, "a"); +Q_DEFINE_LATIN1_CONSTANT(b, "b"); +Q_DEFINE_LATIN1_CONSTANT(b2, "b"); +Q_DEFINE_LATIN1_CONSTANT(bb, "bb"); +Q_DEFINE_LATIN1_CONSTANT(bb2, "bb"); + +Q_DEFINE_LATIN1_CONSTANT(z, ""); +Q_DEFINE_LATIN1_CONSTANT(z2, ""); + +Q_DEFINE_LATIN1_CONSTANT(z3, "\0"); +Q_DEFINE_LATIN1_CONSTANT(soup, "alphabet soup"); // but you can't have any + +QLatin1String ln(0); +QLatin1String lz(""); +QLatin1String la("a"); +QLatin1String lb("b"); +QLatin1String lbb("bb"); +QLatin1String lsoup("alphabet soup"); + +QString sn; +QString sz(""); +QString sa(la); +QString sb(lb); +QString sbb(lbb); +QString ssoup("alphabet soup"); + +class tst_QLatin1Constant: public QObject +{ +Q_OBJECT + +public: + tst_QLatin1Constant(); + virtual ~tst_QLatin1Constant(); + + // Overload testers + int overloaded(const char *) {return 1;} + //int overloaded(const QLatin1String& ) {return 2;} + int overloaded(QLatin1String ) {return 3;} + int overloaded(const QString& ) {return 4;} + //int overloaded(QString ){return 5;} + //template int overloaded(const QLatin1Constant& ) {return 6;} + template int overloaded(QLatin1Constant ) {return 7;} + int overloaded(const QVariant&) {return 8;} + + // More overload testers + int overloaded2(QLatin1String) {return 3;} + int overloaded2(const QString&) {return 4;} + + int overloaded3(const char*) {return 1;} + int overloaded3(QLatin1String) {return 3;} + + int overloaded4(const char*) {return 1;} + int overloaded4(const QString&) {return 4;} + + // Conversion testers + bool charfunc(const char* str) {return qstrcmp(str, "alphabet soup") == 0;} + bool latfunc(QLatin1String lat) {return qstrcmp(lat.latin1(), "alphabet soup") == 0;} + bool latreffunc(const QLatin1String& lat) {return qstrcmp(lat.latin1(), "alphabet soup") == 0;} + bool strfunc(QString str) {return str == QString::fromAscii("alphabet soup");} + bool strreffunc(const QString& str) {return str == QString::fromAscii("alphabet soup");} + bool varfunc(const QVariant& var) {return (var.type() == QVariant::String) && var.toString() == QString::fromAscii("alphabet soup");} + +private slots: + void hash(); + void conversion(); + void overloads(); + void equals(); + void latinEquals(); + void stringEquals(); + void ordering(); + void latinaccessor(); +}; + +tst_QLatin1Constant::tst_QLatin1Constant() +{ +} + +tst_QLatin1Constant::~tst_QLatin1Constant() +{ +} + +void tst_QLatin1Constant::hash() +{ + // Test that if a == b, hash(a) == hash(b) + // (also for ===) + QVERIFY(qHash(a) == qHash(a)); + QVERIFY(qHash(a) == qHash(a2)); + QVERIFY(qHash(b) == qHash(b)); + QVERIFY(qHash(b) == qHash(b)); + QVERIFY(qHash(bb) == qHash(bb)); + QVERIFY(qHash(bb) == qHash(bb)); + + // As a convenience, make sure that hashing + // the same string gives the same results + // no matter the storage + QVERIFY(qHash(a) == qHash(la)); + QVERIFY(qHash(a) == qHash(sa)); +} + +void tst_QLatin1Constant::equals() +{ + // Check symmetry and dupes + QVERIFY(a == a); + QVERIFY(a == a2); + QVERIFY(a2 == a); + QVERIFY(b == b); + QVERIFY(b == b2); + QVERIFY(b2 == b2); + QVERIFY(bb == bb); + QVERIFY(bb == bb2); + QVERIFY(bb2 == bb); + + QVERIFY(z == z); + QVERIFY(z == z2); + QVERIFY(z2 == z); + + // Now make sure that the length is taken into account + QVERIFY(b != bb2); + QVERIFY(bb2 != b); + QVERIFY(a != z); + QVERIFY(z != a); + + // and just in case something is really wrong + QVERIFY(a != b); + QVERIFY(b != a); +} + +void tst_QLatin1Constant::latinaccessor() +{ + QVERIFY(a.chars == a.latin1()); + QVERIFY(z.latin1() == z.chars); +} + +void tst_QLatin1Constant::latinEquals() +{ + // Test operator== with latin1 strings + QVERIFY(a == la); + QVERIFY(la == a); + QVERIFY(a2 == la); + QVERIFY(la == a2); + QVERIFY(b == lb); + QVERIFY(lb == b); + QVERIFY(bb == lbb); + QVERIFY(lbb == bb); + + QVERIFY(b != lbb); + QVERIFY(lbb != b); + + QVERIFY(a != lb); + QVERIFY(lb != a); + + QVERIFY(z == lz); + QVERIFY((z == ln) == (lz == ln)); // QLatin1String(0) != QLatin1String("") + QVERIFY(lz == z); + QVERIFY((ln == z) == (ln == lz)); +} + +void tst_QLatin1Constant::stringEquals() +{ + // Test operator== with QStrings + QVERIFY(a == sa); + QVERIFY(sa == a); + QVERIFY(a2 == sa); + QVERIFY(sa == a2); + QVERIFY(b == sb); + QVERIFY(sb == b); + QVERIFY(bb == sbb); + QVERIFY(sbb == bb); + + QVERIFY(b != sbb); + QVERIFY(sbb != b); + + QVERIFY(a != sb); + QVERIFY(sb != a); + + QVERIFY(z == sz); + QVERIFY((z == sn) == (sz == sn)); // QString(0) != QString("") + QVERIFY(sz == z); + QVERIFY((sn == z) == (sn == sz)); +} + +void tst_QLatin1Constant::conversion() +{ + QVERIFY(charfunc("alphabet soup")); + QVERIFY(charfunc(soup.chars)); + QVERIFY(charfunc(soup.latin1())); + + QVERIFY(latfunc(lsoup)); + QVERIFY(latreffunc(lsoup)); + + QVERIFY(strfunc(ssoup)); + QVERIFY(strreffunc(ssoup)); + + // See if soup gets converted appropriately + QVERIFY(latfunc(soup)); + QVERIFY(strfunc(soup)); + QVERIFY(latreffunc(soup)); + QVERIFY(strreffunc(soup)); + QVERIFY(varfunc(soup)); + + // Now we also want to make sure that converting to QLatin1String doesn't copy the string + QLatin1String lsoup2 = soup; // implicit operator QLatin1String + QLatin1String lsoup3 = (QLatin1String) soup; // explicit operator QLatin1String + QLatin1String lsoup4 = QLatin1String(soup); // implicit operator QLatin1String + + QVERIFY(lsoup2.latin1() == soup.latin1()); + QVERIFY(lsoup3.latin1() == soup.latin1()); + QVERIFY(lsoup4.latin1() == soup.latin1()); +} + +void tst_QLatin1Constant::overloads() +{ + QVERIFY(overloaded("alphabet soup") == 1); + QVERIFY(overloaded(soup) == 7); + QVERIFY(overloaded(lsoup) == 2 || overloaded(lsoup) == 3); + QVERIFY(overloaded(ssoup) == 4 || overloaded(ssoup) == 5); + + QVERIFY(overloaded2(lsoup) == 3); + QVERIFY(overloaded2(ssoup) == 4); + QCOMPARE(overloaded2(soup.latin1()), 4); // XXX grr, can't call with just soup [ambiguous], this goes to QString + + QVERIFY(overloaded3(lsoup) == 3); + QCOMPARE(overloaded3(soup), 3); // XXX this goes with QLatin1String + + QVERIFY(overloaded4(ssoup) == 4); + QCOMPARE(overloaded4(soup), 4); // XXX this goes with QString +} + +void tst_QLatin1Constant::ordering() +{ + QVERIFY(z < a); + QVERIFY(!(a < z)); + QVERIFY(a < b); + QVERIFY(!(b < a)); + QVERIFY(a < bb); + QVERIFY(!(bb < a)); + QVERIFY(b < bb); + QVERIFY(!(bb < b)); + + QVERIFY(!(a < a)); + QVERIFY(!(z < z)); +} + +QTEST_MAIN(tst_QLatin1Constant) +#include "tst_qlatin1constant.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qlocationtestutils.cpp --- a/qtmobility/tests/auto/qlocationtestutils.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qlocationtestutils.cpp Mon May 03 13:18:40 2010 +0300 @@ -74,6 +74,8 @@ { #if defined(Q_OS_SYMBIAN) && defined(QT_LOCATION_S60_MONITORING) return true; +#elif defined (Q_WS_MAEMO_5) + return true; #else return false; #endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmediacontent/qmediacontent.pro --- a/qtmobility/tests/auto/qmediacontent/qmediacontent.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmediacontent/qmediacontent.pro Mon May 03 13:18:40 2010 +0300 @@ -1,7 +1,7 @@ TARGET = tst_qmediacontent INCLUDEPATH += ../../../src/multimedia CONFIG += testcase - +QT += network include (../../../common.pri) CONFIG += mobility diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmediacontent/tst_qmediacontent.cpp --- a/qtmobility/tests/auto/qmediacontent/tst_qmediacontent.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmediacontent/tst_qmediacontent.cpp Mon May 03 13:18:40 2010 +0300 @@ -40,6 +40,7 @@ ****************************************************************************/ #include +#include #include @@ -51,6 +52,7 @@ private slots: void testNull(); void testUrlCtor(); + void testRequestCtor(); void testResourceCtor(); void testResourceListCtor(); void testCopy(); @@ -77,6 +79,18 @@ QCOMPARE(media.canonicalResource().url(), QUrl("http://example.com/movie.mov")); } +void tst_QMediaContent::testRequestCtor() +{ + QNetworkRequest request(QUrl("http://example.com/movie.mov")); + request.setAttribute(QNetworkRequest::User, QVariant(1234)); + + QMediaContent media(request); + + QCOMPARE(media.canonicalUrl(), QUrl("http://example.com/movie.mov")); + QCOMPARE(media.canonicalResource().request(), request); + QCOMPARE(media.canonicalResource().url(), QUrl("http://example.com/movie.mov")); +} + void tst_QMediaContent::testResourceCtor() { QMediaContent media(QMediaResource(QUrl("http://example.com/movie.mov"))); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmediaimageviewer/tst_qmediaimageviewer.cpp --- a/qtmobility/tests/auto/qmediaimageviewer/tst_qmediaimageviewer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmediaimageviewer/tst_qmediaimageviewer.cpp Mon May 03 13:18:40 2010 +0300 @@ -44,13 +44,13 @@ #include -#include -#include -#include -#include -#include -#include -#include +#include "../../../src/multimedia/qmediaimageviewer.h" +#include "../../../src/multimedia/qmediaimageviewerservice_p.h" +#include "../../../src/multimedia/qmediaplaylist.h" +#include "../../../src/multimedia/qmediaservice.h" +#include "../../../src/multimedia/qvideooutputcontrol.h" +#include "../../../src/multimedia/qvideorenderercontrol.h" +#include "../../../src/multimedia/qvideowidgetcontrol.h" #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmediaplaylist/tst_qmediaplaylist.cpp --- a/qtmobility/tests/auto/qmediaplaylist/tst_qmediaplaylist.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmediaplaylist/tst_qmediaplaylist.cpp Mon May 03 13:18:40 2010 +0300 @@ -407,7 +407,6 @@ QBuffer buffer; buffer.open(QBuffer::ReadWrite); - QTest::ignoreMessage(QtWarningMsg, "Load static plugins for \"/playlistformats/\" "); bool res = playlist.save(&buffer, "unsupported_format"); QVERIFY(!res); QVERIFY(playlist.error() != QMediaPlaylist::NoError); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmediapluginloader/tst_qmediapluginloader.cpp --- a/qtmobility/tests/auto/qmediapluginloader/tst_qmediapluginloader.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmediapluginloader/tst_qmediapluginloader.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,12 +39,12 @@ ** ****************************************************************************/ +#include +#include + #include #include -#include -#include - QTM_USE_NAMESPACE class tst_QMediaPluginLoader : public QObject diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmediaresource/qmediaresource.pro --- a/qtmobility/tests/auto/qmediaresource/qmediaresource.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmediaresource/qmediaresource.pro Mon May 03 13:18:40 2010 +0300 @@ -4,6 +4,8 @@ include (../../../common.pri) +QT += network + SOURCES += tst_qmediaresource.cpp CONFIG += mobility diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmediaresource/tst_qmediaresource.cpp --- a/qtmobility/tests/auto/qmediaresource/tst_qmediaresource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmediaresource/tst_qmediaresource.cpp Mon May 03 13:18:40 2010 +0300 @@ -63,6 +63,7 @@ QCOMPARE(resource.isNull(), true); QCOMPARE(resource.url(), QUrl()); + QCOMPARE(resource.request(), QNetworkRequest()); QCOMPARE(resource.mimeType(), QString()); QCOMPARE(resource.language(), QString()); QCOMPARE(resource.audioCodec(), QString()); @@ -78,6 +79,7 @@ void tst_QMediaResource::construct_data() { QTest::addColumn("url"); + QTest::addColumn("request"); QTest::addColumn("mimeType"); QTest::addColumn("language"); QTest::addColumn("audioCodec"); @@ -91,6 +93,7 @@ QTest::newRow("audio content") << QUrl(QString::fromLatin1("http:://test.com/test.mp3")) + << QNetworkRequest(QUrl(QString::fromLatin1("http:://test.com/test.mp3"))) << QString::fromLatin1("audio/mpeg") << QString::fromLatin1("eng") << QString::fromLatin1("mp3") @@ -103,6 +106,7 @@ << QSize(); QTest::newRow("image content") << QUrl(QString::fromLatin1("http:://test.com/test.jpg")) + << QNetworkRequest(QUrl(QString::fromLatin1("http:://test.com/test.jpg"))) << QString::fromLatin1("image/jpeg") << QString() << QString() @@ -115,6 +119,7 @@ << QSize(640, 480); QTest::newRow("video content") << QUrl(QString::fromLatin1("http:://test.com/test.mp4")) + << QNetworkRequest(QUrl(QString::fromLatin1("http:://test.com/test.mp4"))) << QString::fromLatin1("video/mp4") << QString() << QString::fromLatin1("aac") @@ -127,6 +132,7 @@ << QSize(720, 576); QTest::newRow("thumbnail") << QUrl(QString::fromLatin1("file::///thumbs/test.png")) + << QNetworkRequest(QUrl(QString::fromLatin1("file::///thumbs/test.png"))) << QString::fromLatin1("image/png") << QString() << QString() @@ -142,6 +148,7 @@ void tst_QMediaResource::construct() { QFETCH(QUrl, url); + QFETCH(QNetworkRequest, request); QFETCH(QString, mimeType); QFETCH(QString, language); QFETCH(QString, audioCodec); @@ -174,6 +181,44 @@ QCOMPARE(resource.isNull(), false); QCOMPARE(resource.url(), url); + QCOMPARE(resource.request(), request); + QCOMPARE(resource.mimeType(), mimeType); + QCOMPARE(resource.language(), QString()); + QCOMPARE(resource.audioCodec(), QString()); + QCOMPARE(resource.videoCodec(), QString()); + QCOMPARE(resource.dataSize(), qint64(0)); + QCOMPARE(resource.audioBitRate(), 0); + QCOMPARE(resource.sampleRate(), 0); + QCOMPARE(resource.channelCount(), 0); + QCOMPARE(resource.videoBitRate(), 0); + QCOMPARE(resource.resolution(), QSize()); + + resource.setLanguage(language); + resource.setAudioCodec(audioCodec); + resource.setVideoCodec(videoCodec); + resource.setDataSize(dataSize); + resource.setAudioBitRate(audioBitRate); + resource.setSampleRate(sampleRate); + resource.setChannelCount(channelCount); + resource.setVideoBitRate(videoBitRate); + resource.setResolution(resolution); + + QCOMPARE(resource.language(), language); + QCOMPARE(resource.audioCodec(), audioCodec); + QCOMPARE(resource.videoCodec(), videoCodec); + QCOMPARE(resource.dataSize(), dataSize); + QCOMPARE(resource.audioBitRate(), audioBitRate); + QCOMPARE(resource.sampleRate(), sampleRate); + QCOMPARE(resource.channelCount(), channelCount); + QCOMPARE(resource.videoBitRate(), videoBitRate); + QCOMPARE(resource.resolution(), resolution); + } + { + QMediaResource resource(request, mimeType); + + QCOMPARE(resource.isNull(), false); + QCOMPARE(resource.url(), url); + QCOMPARE(resource.request(), request); QCOMPARE(resource.mimeType(), mimeType); QCOMPARE(resource.language(), QString()); QCOMPARE(resource.audioCodec(), QString()); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp --- a/qtmobility/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp Mon May 03 13:18:40 2010 +0300 @@ -49,7 +49,6 @@ #include #include #include -#include #include QTM_USE_NAMESPACE @@ -75,8 +74,7 @@ QStringList keys() const { return QStringList() << - QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER) << - QLatin1String(Q_MEDIASERVICE_CAMERA); + QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER); } QMediaService* create(QString const& key) @@ -112,8 +110,6 @@ QList devices(const QByteArray &service) const { QList res; - if (service == QByteArray(Q_MEDIASERVICE_CAMERA)) - res << "camera1" << "camera2"; return res; } @@ -157,7 +153,7 @@ Q_UNUSED(codecs); if (mimeType == "audio/wav") - return QtMedia::PreferedService; + return QtMedia::PreferredService; return QtMedia::NotSupported; } @@ -187,7 +183,6 @@ { return QStringList() << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER) << - QLatin1String(Q_MEDIASERVICE_CAMERA) << QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE); } @@ -207,9 +202,7 @@ QList devices(const QByteArray &service) const { QList res; - if (service == QByteArray(Q_MEDIASERVICE_CAMERA)) - res << "camera3" << "camera4"; - else if (service == QByteArray(Q_MEDIASERVICE_AUDIOSOURCE)) + if (service == QByteArray(Q_MEDIASERVICE_AUDIOSOURCE)) res << "audiosource1" << "audiosource2"; return res; @@ -224,6 +217,57 @@ } }; +class MockServicePlugin4 : public QMediaServiceProviderPlugin, + public QMediaServiceSupportedFormatsInterface, + public QMediaServiceFeaturesInterface +{ + Q_OBJECT + Q_INTERFACES(QtMobility::QMediaServiceSupportedFormatsInterface) + Q_INTERFACES(QtMobility::QMediaServiceFeaturesInterface) +public: + QStringList keys() const + { + return QStringList() << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER); + } + + QMediaService* create(QString const& key) + { + if (keys().contains(key)) + return new MockMediaService("MockServicePlugin4"); + else + return 0; + } + + void release(QMediaService *service) + { + delete service; + } + + QtMedia::SupportEstimate hasSupport(const QString &mimeType, const QStringList& codecs) const + { + if (codecs.contains(QLatin1String("jpeg2000"))) + return QtMedia::NotSupported; + + if (supportedMimeTypes().contains(mimeType)) + return QtMedia::ProbablySupported; + + return QtMedia::MaybeSupported; + } + + QStringList supportedMimeTypes() const + { + return QStringList() << "video/mp4" << "video/quicktime"; + } + + QMediaServiceProviderHint::Features supportedFeatures(const QByteArray &service) const + { + if (service == QByteArray(Q_MEDIASERVICE_MEDIAPLAYER)) + return QMediaServiceProviderHint::StreamPlayback; + else + return 0; + } +}; + class MockMediaServiceProvider : public QMediaServiceProvider @@ -248,12 +292,11 @@ public slots: void initTestCase(); -private slots: +private slots: void testDefaultProviderAvailable(); void testObtainService(); void testHasSupport(); void testSupportedMimeTypes(); - void testDevices(); void testProviderHints(); private: @@ -265,6 +308,7 @@ plugins << new MockServicePlugin1; plugins << new MockServicePlugin2; plugins << new MockServicePlugin3; + plugins << new MockServicePlugin4; QMediaPluginLoader::setStaticPlugins(QLatin1String("/mediaservice"), plugins); } @@ -284,7 +328,6 @@ QMediaService *service = 0; - QTest::ignoreMessage(QtWarningMsg, "Load static plugins for \"/mediaservice/\" "); // Player service = provider->requestService(Q_MEDIASERVICE_MEDIAPLAYER); QVERIFY(service != 0); @@ -325,12 +368,32 @@ QCOMPARE(QMediaPlayer::hasSupport("audio/ogg"), QtMedia::ProbablySupported); QCOMPARE(QMediaPlayer::hasSupport("audio/wav"), QtMedia::ProbablySupported); + //test low latency flag support + QCOMPARE(QMediaPlayer::hasSupport("audio/wav", QStringList(), QMediaPlayer::LowLatency), + QtMedia::ProbablySupported); + //plugin1 probably supports audio/ogg, it checked because it doesn't provide features iface + QCOMPARE(QMediaPlayer::hasSupport("audio/ogg", QStringList(), QMediaPlayer::LowLatency), + QtMedia::ProbablySupported); + //Plugin4 is not checked here, sine it's known not support low latency + QCOMPARE(QMediaPlayer::hasSupport("video/quicktime", QStringList(), QMediaPlayer::LowLatency), + QtMedia::MaybeSupported); + + //test streaming flag support + QCOMPARE(QMediaPlayer::hasSupport("video/quicktime", QStringList(), QMediaPlayer::StreamPlayback), + QtMedia::ProbablySupported); + //Plugin2 is not checked here, sine it's known not support streaming + QCOMPARE(QMediaPlayer::hasSupport("audio/wav", QStringList(), QMediaPlayer::StreamPlayback), + QtMedia::MaybeSupported); + //ensure the correct media player plugin is choosen for mime type QMediaPlayer simplePlayer(0, QMediaPlayer::LowLatency); QCOMPARE(simplePlayer.service()->objectName(), QLatin1String("MockServicePlugin2")); QMediaPlayer mediaPlayer; QVERIFY(mediaPlayer.service()->objectName() != QLatin1String("MockServicePlugin2")); + + QMediaPlayer streamPlayer(0, QMediaPlayer::StreamPlayback); + QCOMPARE(streamPlayer.service()->objectName(), QLatin1String("MockServicePlugin4")); } void tst_QMediaServiceProvider::testSupportedMimeTypes() @@ -344,43 +407,6 @@ QVERIFY(!provider->supportedMimeTypes(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER)).contains("audio/mp3")); } -void tst_QMediaServiceProvider::testDevices() -{ - MockMediaServiceProvider mockProvider; - QVERIFY(mockProvider.devices(QByteArray(Q_MEDIASERVICE_CAMERA)).isEmpty()); - QVERIFY(mockProvider.deviceDescription(QByteArray(Q_MEDIASERVICE_CAMERA), - QByteArray()).isEmpty()); - - QMediaServiceProvider *provider = QMediaServiceProvider::defaultServiceProvider(); - - QList cameraDevices = provider->devices(QByteArray(Q_MEDIASERVICE_CAMERA)); - QCOMPARE(cameraDevices.count(), 4); - QVERIFY(cameraDevices.contains(QByteArray("camera1"))); - QVERIFY(cameraDevices.contains(QByteArray("camera2"))); - QVERIFY(cameraDevices.contains(QByteArray("camera3"))); - QVERIFY(cameraDevices.contains(QByteArray("camera4"))); - - //ensure the right plugin is choosen for a device - QCamera camera1(QByteArray("camera1")); - QCOMPARE( camera1.service()->objectName(), QLatin1String("MockServicePlugin1") ); - QCamera camera2(QByteArray("camera2")); - QCOMPARE( camera2.service()->objectName(), QLatin1String("MockServicePlugin1") ); - QCamera camera3(QByteArray("camera3")); - QCOMPARE( camera3.service()->objectName(), QLatin1String("MockServicePlugin3") ); - QCamera camera4(QByteArray("camera4")); - QCOMPARE( camera4.service()->objectName(), QLatin1String("MockServicePlugin3") ); - - QList audioSourceDevices = provider->devices(QByteArray(Q_MEDIASERVICE_AUDIOSOURCE)); - QCOMPARE(audioSourceDevices.count(), 2); - QVERIFY(audioSourceDevices.contains(QByteArray("audiosource1"))); - QVERIFY(audioSourceDevices.contains(QByteArray("audiosource2"))); - - QVERIFY(provider->devices(QByteArray("non existing service")).isEmpty()); -} - - - - void tst_QMediaServiceProvider::testProviderHints() { { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmessage/tst_qmessage.cpp --- a/qtmobility/tests/auto/qmessage/tst_qmessage.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmessage/tst_qmessage.cpp Mon May 03 13:18:40 2010 +0300 @@ -109,6 +109,7 @@ void testMessageAddress_data(); void testMessageAddress(); void testHeaderFields(); + void testStandardFolder(); private: QMessageAccountId testAccountId; @@ -200,7 +201,7 @@ QCOMPARE(msg.from() != QMessageAddress(), true); QCOMPARE(msg.isModified(), true); - addr = QMessageAddress(QMessageAddress::Xmpp, "bob@example.org"); + addr = QMessageAddress(QMessageAddress::InstantMessage, "bob@example.org"); msg.setFrom(addr); QCOMPARE(msg.from(), addr); QCOMPARE(msg.from() != QMessageAddress(), true); @@ -310,7 +311,7 @@ QCOMPARE(msg.isModified(), true); addresses = QMessageAddressList(); - addresses.append(QMessageAddress(QMessageAddress::Xmpp, "charlie@example.org")); + addresses.append(QMessageAddress(QMessageAddress::InstantMessage, "charlie@example.org")); msg.setBcc(addresses); QCOMPARE(msg.bcc(), addresses); } @@ -456,3 +457,8 @@ QCOMPARE(msg.headerFieldValue("X-None").isEmpty(), true); } +void tst_QMessage::testStandardFolder() +{ + QMessage msg; + QCOMPARE(msg.standardFolder(), QMessage::DraftsFolder); +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmessageservice/tst_qmessageservice.cpp --- a/qtmobility/tests/auto/qmessageservice/tst_qmessageservice.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmessageservice/tst_qmessageservice.cpp Mon May 03 13:18:40 2010 +0300 @@ -289,7 +289,7 @@ ("path", "Innbox") ("name", "Innbox") ("parentFolderPath", "") -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << Params()("parentAccountName", "Work") ("path", "Innbox/X-Announce") ("name", "X-Announce") @@ -322,7 +322,7 @@ QList messageParams; messageParams << Params()("parentAccountName", "Alter Ego") ("parentFolderPath", "My messages") -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) // SMS messages must be in SMS store on Windows and on Symbian +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) // SMS messages must be in SMS store on Windows and on Symbian ("type", "email") #else ("type", "sms") @@ -365,7 +365,7 @@ ("status-hasAttachments", "true") ("attachments", attachmentPaths) ("custom-spam", "filter:no") -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << Params()("parentAccountName", "Work") ("parentFolderPath", "Innbox/X-Announce") ("type", "email") @@ -448,7 +448,7 @@ SignalCatcher sc(this); connect(testService,SIGNAL(messagesFound(const QMessageIdList&)),&sc,SLOT(messagesFound(const QMessageIdList&))); -#ifdef Q_OS_SYMBIAN +#if (defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) connect(testService,SIGNAL(stateChanged(QMessageService::State)),&sc,SLOT(stateChanged(QMessageService::State))); #endif @@ -457,7 +457,7 @@ if (body.isEmpty()) { sc.reset(); QCOMPARE(testService->queryMessages(filter&~existingAccountsFilter),true); -#ifdef Q_OS_SYMBIAN +#if (defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) QTRY_VERIFY(sc.state == QMessageService::FinishedState); #else while(testService->state() == QMessageService::ActiveState) @@ -468,7 +468,7 @@ sc.reset(); QCOMPARE(testService->queryMessages(~filter&~existingAccountsFilter),true); -#ifdef Q_OS_SYMBIAN +#if (defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) QTRY_VERIFY(sc.state == QMessageService::FinishedState); #else while(testService->state() == QMessageService::ActiveState) @@ -481,7 +481,7 @@ sc.reset(); QCOMPARE(testService->queryMessages(filter&~existingAccountsFilter,body),true); -#ifdef Q_OS_SYMBIAN +#if (defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) QTRY_VERIFY(sc.state == QMessageService::FinishedState); #else while(testService->state() == QMessageService::ActiveState) @@ -492,7 +492,7 @@ sc.reset(); QCOMPARE(testService->queryMessages(~filter&~existingAccountsFilter,body),true); -#ifdef Q_OS_SYMBIAN +#if (defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) QTRY_VERIFY(sc.state == QMessageService::FinishedState); #else while(testService->state() == QMessageService::ActiveState) @@ -512,11 +512,13 @@ QTest::addColumn("negatedIds"); QTest::addColumn("body"); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("empty filter") << QMessageFilter() << messageIds << QMessageIdList() << ""; +#endif QTest::newRow("id equality 1") << QMessageFilter::byId(messageIds[0], QMessageDataComparator::Equal) @@ -572,11 +574,13 @@ << ( QMessageIdList() << messageIds[2] << messageIds[3] << messageIds[4] ) << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("id list inclusion empty") << QMessageFilter::byId(QMessageIdList(), QMessageDataComparator::Includes) << QMessageIdList() << messageIds << ""; +#endif QTest::newRow("id list exclusion 1") << QMessageFilter::byId(QMessageIdList() << messageIds[0], QMessageDataComparator::Excludes) @@ -596,12 +600,15 @@ << ( QMessageIdList() << messageIds[0] << messageIds[1] ) << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("id list exclusion empty") << QMessageFilter::byId(QMessageIdList(), QMessageDataComparator::Excludes) << messageIds << QMessageIdList() << ""; +#endif +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("id filter inclusion empty") << QMessageFilter::byId(QMessageFilter(), QMessageDataComparator::Includes) << messageIds @@ -620,10 +627,11 @@ << ( QMessageIdList() << messageIds[4] ) << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[2] << messageIds[3] ) << ""; +#endif QTest::newRow("type equality 1") << QMessageFilter::byType(QMessage::Sms, QMessageDataComparator::Equal) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << QMessageIdList() << messageIds #else @@ -634,7 +642,7 @@ QTest::newRow("type equality 2") << QMessageFilter::byType(QMessage::Email, QMessageDataComparator::Equal) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << messageIds << QMessageIdList() #else @@ -651,7 +659,7 @@ QTest::newRow("type inequality 1") << QMessageFilter::byType(QMessage::Sms, QMessageDataComparator::NotEqual) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << messageIds << QMessageIdList() #else @@ -662,7 +670,7 @@ QTest::newRow("type inequality 2") << QMessageFilter::byType(QMessage::Email, QMessageDataComparator::NotEqual) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << QMessageIdList() << messageIds #else @@ -679,7 +687,7 @@ QTest::newRow("type mask inclusion 1") << QMessageFilter::byType(QMessage::Sms, QMessageDataComparator::Includes) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << QMessageIdList() << messageIds #else @@ -690,7 +698,7 @@ QTest::newRow("type mask inclusion 2") << QMessageFilter::byType(QMessage::Email, QMessageDataComparator::Includes) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << messageIds << QMessageIdList() #else @@ -713,7 +721,7 @@ QTest::newRow("type mask exclusion 1") << QMessageFilter::byType(QMessage::Sms, QMessageDataComparator::Excludes) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << messageIds << QMessageIdList() #else @@ -724,7 +732,7 @@ QTest::newRow("type mask exclusion 2") << QMessageFilter::byType(QMessage::Email, QMessageDataComparator::Excludes) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << QMessageIdList() << messageIds #else @@ -745,6 +753,7 @@ << QMessageIdList() << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("sender equality 1") << QMessageFilter::bySender("Esteemed.Colleague@example.com", QMessageDataComparator::Equal) << ( QMessageIdList() << messageIds[1] ) @@ -756,6 +765,7 @@ << ( QMessageIdList() << messageIds[3] ) << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[2] << messageIds[4] ) << ""; +#endif QTest::newRow("sender equality non-matching") << QMessageFilter::bySender("Nonesuch", QMessageDataComparator::Equal) @@ -775,6 +785,7 @@ << messageIds << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("sender inequality 1") << QMessageFilter::bySender("Esteemed.Colleague@example.com", QMessageDataComparator::NotEqual) << ( QMessageIdList() << messageIds[0] << messageIds[2] << messageIds[3] << messageIds[4] ) @@ -864,6 +875,7 @@ << QMessageIdList() << messageIds << ""; +#endif QTest::newRow("recipients inclusion 1") << QMessageFilter::byRecipients("example", QMessageDataComparator::Includes) @@ -1045,6 +1057,7 @@ << messageIds << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("timeStamp equality 1") << QMessageFilter::byTimeStamp(QDateTime::fromString("1999-04-01T10:30:00Z", Qt::ISODate), QMessageDataComparator::Equal) << ( QMessageIdList() << messageIds[4] ) @@ -1220,7 +1233,9 @@ << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[2] << messageIds[3] ) << ( QMessageIdList() << messageIds[4] ) << ""; +#endif +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("status equality 1") << QMessageFilter::byStatus(QMessage::Read, QMessageDataComparator::Equal) << ( QMessageIdList() << messageIds[0] << messageIds[3] << messageIds[4] ) @@ -1232,6 +1247,7 @@ << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[4] ) << ( QMessageIdList() << messageIds[0] << messageIds[3] ) << ""; +#endif QTest::newRow("status equality 3") << QMessageFilter::byStatus(QMessage::Removed, QMessageDataComparator::Equal) @@ -1239,6 +1255,7 @@ << messageIds << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("status inequality 1") << QMessageFilter::byStatus(QMessage::Read, QMessageDataComparator::NotEqual) << ( QMessageIdList() << messageIds[1] << messageIds[2] ) @@ -1250,6 +1267,7 @@ << ( QMessageIdList() << messageIds[0] << messageIds[3] ) << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[4] ) << ""; +#endif QTest::newRow("status inequality 3") << QMessageFilter::byStatus(QMessage::Removed, QMessageDataComparator::NotEqual) @@ -1257,6 +1275,7 @@ << QMessageIdList() << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("status mask inclusion 1") << QMessageFilter::byStatus(QMessage::Read, QMessageDataComparator::Includes) << ( QMessageIdList() << messageIds[0] << messageIds[3] << messageIds[4] ) @@ -1268,6 +1287,7 @@ << ( QMessageIdList() << messageIds[4] ) << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[2] << messageIds[3] ) << ""; +#endif QTest::newRow("status mask inclusion 3") << QMessageFilter::byStatus(QMessage::Read | QMessage::Removed, QMessageDataComparator::Includes) @@ -1281,6 +1301,7 @@ << messageIds << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("status mask exclusion 1") << QMessageFilter::byStatus(QMessage::Read, QMessageDataComparator::Excludes) << ( QMessageIdList() << messageIds[1] << messageIds[2] ) @@ -1298,6 +1319,7 @@ << ( QMessageIdList() << messageIds[1] << messageIds[2] ) << ( QMessageIdList() << messageIds[0] << messageIds[3] << messageIds[4] ) << ""; +#endif QTest::newRow("status mask exclusion empty") << QMessageFilter::byStatus(static_cast(0), QMessageDataComparator::Excludes) @@ -1305,6 +1327,7 @@ << messageIds << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("priority equality 1") << QMessageFilter::byPriority(QMessage::HighPriority, QMessageDataComparator::Equal) << ( QMessageIdList() << messageIds[1] << messageIds[2] ) @@ -1340,6 +1363,7 @@ << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[4] ) << ( QMessageIdList() << messageIds[0] << messageIds[3] ) << ""; +#endif QTest::newRow("size equality 1") << QMessageFilter::bySize(messageSizes[3], QMessageDataComparator::Equal) @@ -1446,6 +1470,7 @@ #endif << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("parentAccountId equality 1") << QMessageFilter::byParentAccountId(accountIds[0], QMessageDataComparator::Equal) << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] << messageIds[4] ) @@ -1457,6 +1482,7 @@ << ( QMessageIdList() << messageIds[0] ) << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] << messageIds[4] ) << ""; +#endif QTest::newRow("parentAccountId equality invalid") << QMessageFilter::byParentAccountId(QMessageAccountId(), QMessageDataComparator::Equal) @@ -1464,6 +1490,7 @@ << messageIds << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("parentAccountId inequality 1") << QMessageFilter::byParentAccountId(accountIds[0], QMessageDataComparator::NotEqual) << ( QMessageIdList() << messageIds[0] ) @@ -1475,6 +1502,7 @@ << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] << messageIds[4] ) << ( QMessageIdList() << messageIds[0] ) << ""; +#endif QTest::newRow("parentAccountId inequality invalid") << QMessageFilter::byParentAccountId(QMessageAccountId(), QMessageDataComparator::NotEqual) @@ -1482,6 +1510,7 @@ << QMessageIdList() << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("parentAccountId filter inclusion 1") << QMessageFilter::byParentAccountId(QMessageAccountFilter::byName("Alter Ego", QMessageDataComparator::Equal), QMessageDataComparator::Includes) << ( QMessageIdList() << messageIds[0] ) @@ -1541,7 +1570,9 @@ << messageIds << QMessageIdList() << ""; +#endif +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("standardFolder equality 1") << QMessageFilter::byStandardFolder(QMessage::InboxFolder, QMessageDataComparator::Equal) #ifndef Q_OS_SYMBIAN @@ -1556,10 +1587,10 @@ QTest::newRow("standardFolder equality 2") << QMessageFilter::byStandardFolder(QMessage::TrashFolder, QMessageDataComparator::Equal) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << ( QMessageIdList() ) << messageIds -#else // Created folders are not mapped to any Standard Folder in Symbian +#else // Created folders are not mapped to any Standard Folder in Symbian & Maemo // <=> No messages will be returned, if messages are searched using Standard Folder Filter << ( QMessageIdList() ) << ( QMessageIdList() ) @@ -1568,10 +1599,10 @@ QTest::newRow("standardFolder inequality 1") << QMessageFilter::byStandardFolder(QMessage::InboxFolder, QMessageDataComparator::NotEqual) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << ( QMessageIdList() ) << messageIds -#else // Created folders are not mapped to any Standard Folder in Symbian +#else // Created folders are not mapped to any Standard Folder in Symbian & Maemo // <=> No messages will be returned, if messages are searched using Standard Folder Filter << ( QMessageIdList() ) << ( QMessageIdList() ) @@ -1580,15 +1611,16 @@ QTest::newRow("standardFolder inequality 2") << QMessageFilter::byStandardFolder(QMessage::TrashFolder, QMessageDataComparator::NotEqual) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << messageIds << ( QMessageIdList() ) -#else // Created folders are not mapped to any Standard Folder in Symbian +#else // Created folders are not mapped to any Standard Folder in Symbian & Maemo // <=> No messages will be returned, if messages are searched using Standard Folder Filter << ( QMessageIdList() ) << ( QMessageIdList() ) #endif << ""; +#endif QTest::newRow("parentFolderId equality 1") << QMessageFilter::byParentFolderId(folderIds[0], QMessageDataComparator::Equal) @@ -1626,6 +1658,7 @@ << QMessageIdList() << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("parentFolderId filter inclusion 1") << QMessageFilter::byParentFolderId(QMessageFolderFilter::byPath("My messages", QMessageDataComparator::Equal), QMessageDataComparator::Includes) << ( QMessageIdList() << messageIds[0] ) @@ -1695,8 +1728,9 @@ << messageIds << QMessageIdList() << ""; +#endif -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("ancestorFolderIds inclusion 1") << QMessageFilter::byAncestorFolderIds(folderIds[1], QMessageDataComparator::Includes) << ( QMessageIdList() << messageIds[3] << messageIds[4] ) @@ -1794,6 +1828,7 @@ << ""; #endif +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) // Test some basic combinations QTest::newRow("status mask inclusion AND timeStamp greater than") << ( QMessageFilter::byStatus(QMessage::Read, QMessageDataComparator::Includes) & @@ -1838,6 +1873,7 @@ << ( QMessageIdList() << messageIds[2] ) << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[3] << messageIds[4] ) << ""; +#endif QMessageFilter orEquals(QMessageFilter::bySubject("agenda", QMessageDataComparator::Includes)); orEquals |= QMessageFilter::bySubject("ee", QMessageDataComparator::Excludes); @@ -1846,7 +1882,7 @@ << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] ) << ( QMessageIdList() << messageIds[0] << messageIds[4] ) << ""; - +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("body") << QMessageFilter() << ( QMessageIdList() << messageIds[0] << messageIds[2] ) @@ -1858,7 +1894,9 @@ << ( QMessageIdList() << messageIds[2] ) << ( QMessageIdList() << messageIds[0] ) // contains body but does not match filter << "summer"; +#endif +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) // Test options QMessageFilter caseInsensitive1(QMessageFilter::bySubject("free beer", QMessageDataComparator::Equal)); QTest::newRow("options:caseInsensitive 1") @@ -1866,6 +1904,7 @@ << ( QMessageIdList() << messageIds[4] ) << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[2] << messageIds[3] ) << ""; +#endif QMessageFilter caseSensitive1(QMessageFilter::bySubject("free beer", QMessageDataComparator::Equal)); caseSensitive1.setMatchFlags(QMessageDataComparator::MatchCaseSensitive); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmessagestore/tst_qmessagestore.cpp --- a/qtmobility/tests/auto/qmessagestore/tst_qmessagestore.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmessagestore/tst_qmessagestore.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,6 +42,9 @@ #include #include #include +#include +#include +#include #include "qtmessaging.h" #include "../support/support.h" @@ -239,7 +242,7 @@ // Note: on Win CE, we can't use 'Inbox' 'Drafts' etc., becuase they're added automatically by the system QTest::newRow("Inbox") << "Unbox" << "Unbox" << "" << "Unbox"; -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) // Symbian does not currently support paths QTest::newRow("Drafts") << "Crafts" << "" << "" << "Crafts"; QTest::newRow("Archived") << "Unbox/Archived" << "Archived" << "Unbox" << "Archived"; @@ -274,7 +277,7 @@ p.insert("parentAccountName", testAccountName); p.insert("parentFolderPath", parentFolderPath); -#if defined(Q_OS_SYMBIAN) +#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) int originalCount = manager->countFolders(QMessageFolderFilter::byParentAccountId(testAccountId)); #else int originalCount = manager->countFolders(); @@ -283,7 +286,7 @@ QMessageFolderId folderId(Support::addFolder(p)); QVERIFY(folderId.isValid()); QVERIFY(folderId != QMessageFolderId()); -#if defined(Q_OS_SYMBIAN) +#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) QCOMPARE(manager->countFolders(QMessageFolderFilter::byParentAccountId(testAccountId)), originalCount + 1); #else QCOMPARE(manager->countFolders(), originalCount + 1); @@ -472,20 +475,20 @@ QVERIFY(testAccountId.isValid()); QMessageFolderId testFolderId; -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QMessageFolderFilter filter(QMessageFolderFilter::byName("Inbox") & QMessageFolderFilter::byParentAccountId(testAccountId)); #else - // Created Messages can not be stored into "Inbox" folder in Symbian + // Created Messages can not be stored into "Inbox" folder in Symbian & Meamo QMessageFolderFilter filter(QMessageFolderFilter::byName("Unbox") & QMessageFolderFilter::byParentAccountId(testAccountId)); #endif QMessageFolderIdList folderIds(manager->queryFolders(filter)); if (folderIds.isEmpty()) { Support::Parameters p; -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) p.insert("path", "Inbox"); p.insert("name", "Inbox"); #else - // Created Messages can not be stored into "Inbox" folder in Symbian + // Created Messages can not be stored into "Inbox" folder in Symbian & Maemo p.insert("path", "Unbox"); p.insert("name", "Unbox"); #endif @@ -498,6 +501,19 @@ QMessageFolder testFolder(testFolderId); +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + // Wait 1/100 second to make sure that there is + // enough time to start monitoring new folder + { + QEventLoop eventLoop; + QTimer::singleShot(100, &eventLoop, SLOT(quit())); + eventLoop.exec(); + } + // Note: QTest::qSleep(100); can not be used + // because QTest::qSleep(100); blocks + // signaling from other threads +#endif + SignalCatcher catcher; connect(manager, SIGNAL(messageAdded(QMessageId, QMessageManager::NotificationFilterIdSet)), &catcher, SLOT(messageAdded(QMessageId, QMessageManager::NotificationFilterIdSet))); connect(manager, SIGNAL(messageUpdated(QMessageId, QMessageManager::NotificationFilterIdSet)), &catcher, SLOT(messageUpdated(QMessageId, QMessageManager::NotificationFilterIdSet))); @@ -556,6 +572,16 @@ QVERIFY(messageId != QMessageId()); QCOMPARE(manager->countMessages(), originalCount + 1); +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + // Wait 1 second to make sure that there is + // enough time to get add signal + { + QEventLoop eventLoop; + QTimer::singleShot(1000, &eventLoop, SLOT(quit())); + eventLoop.exec(); + } +#endif + #if defined(Q_OS_WIN) // Give MAPI enough time to emit the message added notification QTest::qSleep(1000); @@ -575,28 +601,33 @@ QMessageAddress toAddress; toAddress.setType(QMessageAddress::Email); - toAddress.setRecipient(to); + toAddress.setAddressee(to); QVERIFY(!message.to().isEmpty()); QCOMPARE(message.to().first(), toAddress); - QCOMPARE(message.to().first().recipient(), to); + QCOMPARE(message.to().first().addressee(), to); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) + // From address is currently taken automatically from account in Maemo implementation QMessageAddress fromAddress; fromAddress.setType(QMessageAddress::Email); - fromAddress.setRecipient(from); + fromAddress.setAddressee(from); QCOMPARE(message.from(), fromAddress); - QCOMPARE(message.from().recipient(), from); - + QCOMPARE(message.from().addressee(), from); +#endif QList ccAddresses; foreach (const QString &element, cc.split(",", QString::SkipEmptyParts)) { QMessageAddress addr; addr.setType(QMessageAddress::Email); - addr.setRecipient(element.trimmed()); + addr.setAddressee(element.trimmed()); ccAddresses.append(addr); } - - QCOMPARE(message.cc(), ccAddresses); + + QCOMPARE(message.cc(), ccAddresses); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) + // Dates can not be stored with addMessage in Maemo implementation QCOMPARE(message.date(), QDateTime::fromString(date, Qt::ISODate)); +#endif QCOMPARE(message.subject(), subject); QCOMPARE(message.contentType().toLower(), messageType.toLower()); @@ -610,11 +641,14 @@ QCOMPARE(message.parentAccountId(), testAccountId); QCOMPARE(message.parentFolderId(), testFolderId); -#ifndef Q_OS_SYMBIAN // Created Messages are not stored in Standard Folders in Symbian - QCOMPARE(message.standardFolder(), QMessage::InboxFolder); +#ifndef Q_OS_SYMBIAN // Created Messages are not stored in Standard Folders in Symbian & Maemo + QCOMPARE(message.standardFolder(), QMessage::DraftsFolder); #endif +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) + // Message size calculation is not yet good enough in Maemo implementation QAPPROXIMATECOMPARE(message.size(), messageSize, (messageSize / 2)); +#endif QMessageContentContainerId bodyId(message.bodyId()); QCOMPARE(bodyId.isValid(), true); @@ -649,6 +683,17 @@ // We cannot create nested multipart messages QVERIFY(attachment.contentIds().isEmpty()); +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + // Check attachment content + QByteArray attachmentContent = attachment.content(); + QString fileName = QString(TESTDATA_DIR) + QString("/testdata/") + attachments[index]; + QFile attachmentFile(fileName); + if (attachmentFile.open(QIODevice::ReadOnly)) { + QByteArray originalAttachmentContent = attachmentFile.readAll(); + QCOMPARE(attachmentContent, originalAttachmentContent); + } +#endif + QCOMPARE(attachment.contentType().toLower(), attachmentType[index].toLower()); QCOMPARE(attachment.contentSubType().toLower(), attachmentSubType[index].toLower()); QCOMPARE(attachment.suggestedFileName(), attachments[index]); @@ -671,6 +716,8 @@ QCOMPARE(body.textContent(), replacementText); QAPPROXIMATECOMPARE(body.size(), 72, 36); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) + // Update does not yet work in Maemo QDateTime dt(QDateTime::fromString("1980-12-31T23:59:59Z", Qt::ISODate)); dt.setTimeSpec(Qt::UTC); message.setDate(dt); @@ -738,6 +785,7 @@ // Verify that the attachments can be removed updated.clearAttachments(); QVERIFY(updated.attachmentIds().isEmpty()); +#endif // Test message removal if (removeMessage == "byId") { @@ -754,11 +802,16 @@ while (QCoreApplication::hasPendingEvents()) QCoreApplication::processEvents(); -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) QCOMPARE(removeCatcher.removed.count(), 1); QCOMPARE(removeCatcher.removed.first().first, messageId); +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + QCOMPARE(removeCatcher.removed.first().second.count(), 2); + QCOMPARE(removeCatcher.removed.first().second, QSet() << filter2->id << filter3->id); +#else QCOMPARE(removeCatcher.removed.first().second.count(), 1); QCOMPARE(removeCatcher.removed.first().second, QSet() << filter3->id); +#endif #endif } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qmessagestorekeys/tst_qmessagestorekeys.cpp --- a/qtmobility/tests/auto/qmessagestorekeys/tst_qmessagestorekeys.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qmessagestorekeys/tst_qmessagestorekeys.cpp Mon May 03 13:18:40 2010 +0300 @@ -228,7 +228,7 @@ ("path", "Innbox") ("name", "Innbox") ("parentFolderPath", "") -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << Params()("parentAccountName", "Work") ("path", "Innbox/X-Announce") ("name", "X-Announce") @@ -253,6 +253,19 @@ QVERIFY(folderIds.last().isValid()); } +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + // Local folders can be seen through every account + // => Make sure that existingFolderIds contains all folderIds + // but not ids which were returned from addFolder calls + QMessageFolderFilter folderFilter; + foreach(QMessageAccountId id, accountIds) { + folderFilter |= QMessageFolderFilter::byParentAccountId(id); + } + QSet newFolderIds = manager->queryFolders(folderFilter).toSet().subtract(existingFolderIds); + newFolderIds = newFolderIds.subtract(folderIds.toSet()); + existingFolderIds.unite(newFolderIds); +#endif + existingMessageIds = manager->queryMessages(~existingAccountsFilter).toSet(); // For windows at least, we can't have HasAttachments set without a real attachment @@ -265,7 +278,7 @@ QList messageParams; messageParams << Params()("parentAccountName", "Alter Ego") ("parentFolderPath", "My messages") -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) // SMS messages must be in SMS store on Windows and on Symbian +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) // SMS messages must be in SMS store on Windows and on Symbian ("type", "email") #else ("type", "sms") @@ -308,7 +321,7 @@ ("status-hasAttachments", "true") ("attachments", attachmentPaths) ("custom-spam", "filter:no") -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << Params()("parentAccountName", "Work") ("parentFolderPath", "Innbox/X-Announce") ("type", "email") @@ -775,10 +788,12 @@ << ( QMessageFolderIdList() << folderIds[0] << folderIds[1] ) << ( QMessageFolderIdList() << folderIds[2] << folderIds[3] ); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("id list inclusion empty") << QMessageFolderFilter::byId(QMessageFolderIdList(), QMessageDataComparator::Includes) << QMessageFolderIdList() << folderIds; +#endif QTest::newRow("id list exclusion 1") << QMessageFolderFilter::byId(QMessageFolderIdList() << folderIds[0], QMessageDataComparator::Excludes) @@ -795,17 +810,19 @@ << ( QMessageFolderIdList() << folderIds[2] << folderIds[3] ) << ( QMessageFolderIdList() << folderIds[0] << folderIds[1] ); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("id list exclusion empty") << QMessageFolderFilter::byId(QMessageFolderIdList(), QMessageDataComparator::Excludes) << folderIds << QMessageFolderIdList(); +#endif QTest::newRow("id filter inclusion 1") << QMessageFolderFilter::byId(QMessageFolderFilter::byPath("My messages", QMessageDataComparator::Equal), QMessageDataComparator::Includes) << ( QMessageFolderIdList() << folderIds[0] ) << ( QMessageFolderIdList() << folderIds[1] << folderIds[2] << folderIds[3] ); -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("id filter inclusion 2") << QMessageFolderFilter::byId(QMessageFolderFilter::byPath("Innbox/X-Announce", QMessageDataComparator::Equal), QMessageDataComparator::Includes) << ( QMessageFolderIdList() << folderIds[2] ) @@ -832,7 +849,7 @@ << ( QMessageFolderIdList() << folderIds[1] << folderIds[2] << folderIds[3] ) << ( QMessageFolderIdList() << folderIds[0] ); -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("id filter exclusion 2") << QMessageFolderFilter::byId(QMessageFolderFilter::byPath("Innbox/X-Announce", QMessageDataComparator::Equal), QMessageDataComparator::Excludes) << ( QMessageFolderIdList() << folderIds[0] << folderIds[1] << folderIds[3] ) @@ -859,7 +876,7 @@ << ( QMessageFolderIdList() << folderIds[0] ) << ( QMessageFolderIdList() << folderIds[1] << folderIds[2] << folderIds[3] ); -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("path equality 2") << QMessageFolderFilter::byPath("Innbox/X-Announce", QMessageDataComparator::Equal) << ( QMessageFolderIdList() << folderIds[2] ) @@ -886,7 +903,7 @@ << ( QMessageFolderIdList() << folderIds[1] << folderIds[2] << folderIds[3] ) << ( QMessageFolderIdList() << folderIds[0] ); -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("path inequality 2") << QMessageFolderFilter::byPath("Innbox/X-Announce", QMessageDataComparator::NotEqual) << ( QMessageFolderIdList() << folderIds[0] << folderIds[1] << folderIds[3] ) @@ -913,7 +930,7 @@ << ( QMessageFolderIdList() << folderIds[0] ) << ( QMessageFolderIdList() << folderIds[1] << folderIds[2] << folderIds[3] ); -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("path inclusion 2") << QMessageFolderFilter::byPath("box/X-Ann", QMessageDataComparator::Includes) << ( QMessageFolderIdList() << folderIds[2] << folderIds[3] ) @@ -940,7 +957,7 @@ << ( QMessageFolderIdList() << folderIds[1] << folderIds[2] << folderIds[3] ) << ( QMessageFolderIdList() << folderIds[0] ); -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("path exclusion 2") << QMessageFolderFilter::byPath("box/X-Ann", QMessageDataComparator::Excludes) << ( QMessageFolderIdList() << folderIds[0] << folderIds[1] ) @@ -1092,6 +1109,7 @@ << folderIds << QMessageFolderIdList(); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("parentAccountId filter inclusion 1") << QMessageFolderFilter::byParentAccountId(QMessageAccountFilter::byName("Alter Ego", QMessageDataComparator::Equal), QMessageDataComparator::Includes) << ( QMessageFolderIdList() << folderIds[0] ) @@ -1141,8 +1159,9 @@ << QMessageFolderFilter::byParentAccountId(QMessageAccountFilter::byName("NoneSuch"), QMessageDataComparator::Excludes) << folderIds << QMessageFolderIdList(); - -#ifndef Q_OS_SYMBIAN +#endif + +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("parentFolderId equality 1") << QMessageFolderFilter::byParentFolderId(folderIds[1], QMessageDataComparator::Equal) << ( QMessageFolderIdList() << folderIds[2] ) @@ -1378,7 +1397,7 @@ QTest::newRow("path ascending") << ( FolderSortList() << QMessageFolderSortOrder::byPath(Qt::AscendingOrder) ) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << ( QMessageFolderIdList() << folderIds[1] << folderIds[2] << folderIds[3] << folderIds[0] ); #else << ( QMessageFolderIdList() << folderIds[1] << folderIds[0] << folderIds[2] << folderIds[3] ); @@ -1386,7 +1405,7 @@ QTest::newRow("path descending") << ( FolderSortList() << QMessageFolderSortOrder::byPath(Qt::DescendingOrder) ) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << ( QMessageFolderIdList() << folderIds[0] << folderIds[3] << folderIds[2] << folderIds[1] ); #else << ( QMessageFolderIdList() << folderIds[3] << folderIds[2] << folderIds[0] << folderIds[1] ); @@ -1402,7 +1421,7 @@ QTest::newRow("path ascending + name ascending") << ( FolderSortList() << QMessageFolderSortOrder::byPath(Qt::AscendingOrder) << QMessageFolderSortOrder::byName(Qt::AscendingOrder) ) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << ( QMessageFolderIdList() << folderIds[1] << folderIds[2] << folderIds[3] << folderIds[0] ); #else << ( QMessageFolderIdList() << folderIds[1] << folderIds[0] << folderIds[2] << folderIds[3] ); @@ -1413,7 +1432,7 @@ QTest::newRow("path ascending += name ascending") << ( FolderSortList() << plusEquals ) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << ( QMessageFolderIdList() << folderIds[1] << folderIds[2] << folderIds[3] << folderIds[0] ); #else << ( QMessageFolderIdList() << folderIds[1] << folderIds[0] << folderIds[2] << folderIds[3] ); @@ -1517,11 +1536,13 @@ << ( QMessageIdList() << messageIds[2] << messageIds[3] << messageIds[4] ) << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("id list inclusion empty") << QMessageFilter::byId(QMessageIdList(), QMessageDataComparator::Includes) << QMessageIdList() << messageIds << ""; +#endif QTest::newRow("id list exclusion 1") << QMessageFilter::byId(QMessageIdList() << messageIds[0], QMessageDataComparator::Excludes) @@ -1541,11 +1562,13 @@ << ( QMessageIdList() << messageIds[0] << messageIds[1] ) << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("id list exclusion empty") << QMessageFilter::byId(QMessageIdList(), QMessageDataComparator::Excludes) << messageIds << QMessageIdList() << ""; +#endif QTest::newRow("id filter inclusion empty") << QMessageFilter::byId(QMessageFilter(), QMessageDataComparator::Includes) @@ -1568,7 +1591,7 @@ QTest::newRow("type equality 1") << QMessageFilter::byType(QMessage::Sms, QMessageDataComparator::Equal) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << QMessageIdList() << messageIds #else @@ -1579,7 +1602,7 @@ QTest::newRow("type equality 2") << QMessageFilter::byType(QMessage::Email, QMessageDataComparator::Equal) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << messageIds << QMessageIdList() #else @@ -1596,7 +1619,7 @@ QTest::newRow("type inequality 1") << QMessageFilter::byType(QMessage::Sms, QMessageDataComparator::NotEqual) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << messageIds << QMessageIdList() #else @@ -1607,7 +1630,7 @@ QTest::newRow("type inequality 2") << QMessageFilter::byType(QMessage::Email, QMessageDataComparator::NotEqual) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << QMessageIdList() << messageIds #else @@ -1624,7 +1647,7 @@ QTest::newRow("type mask inclusion 1") << QMessageFilter::byType(QMessage::Sms, QMessageDataComparator::Includes) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << QMessageIdList() << messageIds #else @@ -1635,7 +1658,7 @@ QTest::newRow("type mask inclusion 2") << QMessageFilter::byType(QMessage::Email, QMessageDataComparator::Includes) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << messageIds << QMessageIdList() #else @@ -1658,7 +1681,7 @@ QTest::newRow("type mask exclusion 1") << QMessageFilter::byType(QMessage::Sms, QMessageDataComparator::Excludes) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << messageIds << QMessageIdList() #else @@ -1669,7 +1692,7 @@ QTest::newRow("type mask exclusion 2") << QMessageFilter::byType(QMessage::Email, QMessageDataComparator::Excludes) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << QMessageIdList() << messageIds #else @@ -1690,6 +1713,7 @@ << QMessageIdList() << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("sender equality 1") << QMessageFilter::bySender("Esteemed.Colleague@example.com", QMessageDataComparator::Equal) << ( QMessageIdList() << messageIds[1] ) @@ -1701,6 +1725,7 @@ << ( QMessageIdList() << messageIds[3] ) << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[2] << messageIds[4] ) << ""; +#endif QTest::newRow("sender equality non-matching") << QMessageFilter::bySender("Nonesuch", QMessageDataComparator::Equal) @@ -1720,6 +1745,7 @@ << messageIds << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("sender inequality 1") << QMessageFilter::bySender("Esteemed.Colleague@example.com", QMessageDataComparator::NotEqual) << ( QMessageIdList() << messageIds[0] << messageIds[2] << messageIds[3] << messageIds[4] ) @@ -1731,6 +1757,7 @@ << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[2] << messageIds[4] ) << ( QMessageIdList() << messageIds[3] ) << ""; +#endif QTest::newRow("sender inequality non-matching") << QMessageFilter::bySender("Nonesuch", QMessageDataComparator::NotEqual) @@ -1756,11 +1783,13 @@ << ( QMessageIdList() << messageIds[0] ) << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("sender inclusion 2") << QMessageFilter::bySender("ozone", QMessageDataComparator::Includes) << ( QMessageIdList() << messageIds[0] ) << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] << messageIds[4] ) << ""; +#endif QTest::newRow("sender inclusion non-matching") << QMessageFilter::bySender("Nonesuch", QMessageDataComparator::Includes) @@ -1786,11 +1815,13 @@ << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] << messageIds[4] ) << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("sender exclusion 2") << QMessageFilter::bySender("ozone", QMessageDataComparator::Excludes) << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] << messageIds[4] ) << ( QMessageIdList() << messageIds[0] ) << ""; +#endif QTest::newRow("sender exclusion non-matching") << QMessageFilter::bySender("Nonesuch", QMessageDataComparator::Excludes) @@ -1990,6 +2021,7 @@ << messageIds << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("timeStamp equality 1") << QMessageFilter::byTimeStamp(QDateTime::fromString("1999-04-01T10:30:00Z", Qt::ISODate), QMessageDataComparator::Equal) << ( QMessageIdList() << messageIds[4] ) @@ -2165,7 +2197,9 @@ << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[2] << messageIds[3] ) << ( QMessageIdList() << messageIds[4] ) << ""; - +#endif + +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("status equality 1") << QMessageFilter::byStatus(QMessage::Read, QMessageDataComparator::Equal) << ( QMessageIdList() << messageIds[0] << messageIds[3] << messageIds[4] ) @@ -2285,6 +2319,7 @@ << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[4] ) << ( QMessageIdList() << messageIds[0] << messageIds[3] ) << ""; +#endif QTest::newRow("size equality 1") << QMessageFilter::bySize(messageSizes[3], QMessageDataComparator::Equal) @@ -2391,6 +2426,7 @@ #endif << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("parentAccountId equality 1") << QMessageFilter::byParentAccountId(accountIds[0], QMessageDataComparator::Equal) << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] << messageIds[4] ) @@ -2402,6 +2438,7 @@ << ( QMessageIdList() << messageIds[0] ) << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] << messageIds[4] ) << ""; +#endif QTest::newRow("parentAccountId equality invalid") << QMessageFilter::byParentAccountId(QMessageAccountId(), QMessageDataComparator::Equal) @@ -2409,6 +2446,7 @@ << messageIds << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("parentAccountId inequality 1") << QMessageFilter::byParentAccountId(accountIds[0], QMessageDataComparator::NotEqual) << ( QMessageIdList() << messageIds[0] ) @@ -2420,6 +2458,7 @@ << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] << messageIds[4] ) << ( QMessageIdList() << messageIds[0] ) << ""; +#endif QTest::newRow("parentAccountId inequality invalid") << QMessageFilter::byParentAccountId(QMessageAccountId(), QMessageDataComparator::NotEqual) @@ -2427,6 +2466,7 @@ << QMessageIdList() << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("parentAccountId filter inclusion 1") << QMessageFilter::byParentAccountId(QMessageAccountFilter::byName("Alter Ego", QMessageDataComparator::Equal), QMessageDataComparator::Includes) << ( QMessageIdList() << messageIds[0] ) @@ -2486,13 +2526,15 @@ << messageIds << QMessageIdList() << ""; - +#endif + +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("standardFolder equality 1") << QMessageFilter::byStandardFolder(QMessage::InboxFolder, QMessageDataComparator::Equal) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << messageIds << ( QMessageIdList() ) -#else // Created folders are not mapped to any Standard Folder in Symbian +#else // Created folders are not mapped to any Standard Folder in Symbian/Maemo // <=> No messages will be returned, if messages are searched using Standard Folder Filter << ( QMessageIdList() ) << ( QMessageIdList() ) @@ -2501,10 +2543,10 @@ QTest::newRow("standardFolder equality 2") << QMessageFilter::byStandardFolder(QMessage::TrashFolder, QMessageDataComparator::Equal) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << ( QMessageIdList() ) << messageIds -#else // Created folders are not mapped to any Standard Folder in Symbian +#else // Created folders are not mapped to any Standard Folder in Symbian/Maemo // <=> No messages will be returned, if messages are searched using Standard Folder Filter << ( QMessageIdList() ) << ( QMessageIdList() ) @@ -2513,10 +2555,10 @@ QTest::newRow("standardFolder inequality 1") << QMessageFilter::byStandardFolder(QMessage::InboxFolder, QMessageDataComparator::NotEqual) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << ( QMessageIdList() ) << messageIds -#else // Created folders are not mapped to any Standard Folder in Symbian +#else // Created folders are not mapped to any Standard Folder in Symbian/Maemo // <=> No messages will be returned, if messages are searched using Standard Folder Filter << ( QMessageIdList() ) << ( QMessageIdList() ) @@ -2525,15 +2567,16 @@ QTest::newRow("standardFolder inequality 2") << QMessageFilter::byStandardFolder(QMessage::TrashFolder, QMessageDataComparator::NotEqual) -#ifndef Q_OS_SYMBIAN +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) << messageIds << ( QMessageIdList() ) -#else // Created folders are not mapped to any Standard Folder in Symbian +#else // Created folders are not mapped to any Standard Folder in Symbian/Maemo // <=> No messages will be returned, if messages are searched using Standard Folder Filter << ( QMessageIdList() ) << ( QMessageIdList() ) #endif << ""; +#endif QTest::newRow("parentFolderId equality 1") << QMessageFilter::byParentFolderId(folderIds[0], QMessageDataComparator::Equal) @@ -2571,6 +2614,7 @@ << QMessageIdList() << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("parentFolderId filter inclusion 1") << QMessageFilter::byParentFolderId(QMessageFolderFilter::byPath("My messages", QMessageDataComparator::Equal), QMessageDataComparator::Includes) << ( QMessageIdList() << messageIds[0] ) @@ -2640,8 +2684,9 @@ << messageIds << QMessageIdList() << ""; - -#ifndef Q_OS_SYMBIAN +#endif + +#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("ancestorFolderIds inclusion 1") << QMessageFilter::byAncestorFolderIds(folderIds[1], QMessageDataComparator::Includes) << ( QMessageIdList() << messageIds[3] << messageIds[4] ) @@ -2739,6 +2784,7 @@ << ""; #endif +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) // Test some basic combinations QTest::newRow("status mask inclusion AND timeStamp greater than") << ( QMessageFilter::byStatus(QMessage::Read, QMessageDataComparator::Includes) & @@ -2768,6 +2814,7 @@ << ( QMessageIdList() << messageIds[2] ) << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[3] << messageIds[4] ) << ""; +#endif QTest::newRow("subject inclusion OR subject exclusion") << ( QMessageFilter::bySubject("agenda", QMessageDataComparator::Includes) | @@ -2776,6 +2823,7 @@ << ( QMessageIdList() << messageIds[0] << messageIds[4] ) << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QMessageFilter andEquals(QMessageFilter::bySender("Boss", QMessageDataComparator::Includes)); andEquals &= QMessageFilter::byTimeStamp(epoch, QMessageDataComparator::GreaterThan); QTest::newRow("QMessageFilter::operator&=") @@ -2783,6 +2831,7 @@ << ( QMessageIdList() << messageIds[2] ) << ( QMessageIdList() << messageIds[0] << messageIds[1] << messageIds[3] << messageIds[4] ) << ""; +#endif QMessageFilter orEquals(QMessageFilter::bySubject("agenda", QMessageDataComparator::Includes)); orEquals |= QMessageFilter::bySubject("ee", QMessageDataComparator::Excludes); @@ -2792,6 +2841,7 @@ << ( QMessageIdList() << messageIds[0] << messageIds[4] ) << ""; +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("body") << QMessageFilter() << ( QMessageIdList() << messageIds[0] << messageIds[2] ) @@ -2803,6 +2853,7 @@ << ( QMessageIdList() << messageIds[2] ) << ( QMessageIdList() << messageIds[0] ) // contains body but does not match filter << "summer"; +#endif // Test matchFlags QMessageFilter caseInsensitive1(QMessageFilter::bySubject("free beer", QMessageDataComparator::Equal)); @@ -2860,7 +2911,7 @@ QTest::newRow("type ascending") << ( MessageSortList() << QMessageSortOrder::byType(Qt::AscendingOrder) ) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << ( MessageListList() << messageIds ); // All messages are Email type #else << ( MessageListList() << ( QMessageIdList() << messageIds[0] ) @@ -2869,13 +2920,14 @@ QTest::newRow("type descending") << ( MessageSortList() << QMessageSortOrder::byType(Qt::DescendingOrder) ) -#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN)) +#if (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << ( MessageListList() << messageIds ); // All messages are Email type #else << ( MessageListList() << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[3] << messageIds[4] ) << ( QMessageIdList() << messageIds[0] ) ); #endif +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("sender ascending") << ( MessageSortList() << QMessageSortOrder::bySender(Qt::AscendingOrder) ) << ( MessageListList() << ( QMessageIdList() << messageIds[2] << messageIds[4] ) @@ -2889,6 +2941,7 @@ << ( QMessageIdList() << messageIds[0] ) << ( QMessageIdList() << messageIds[1] ) << ( QMessageIdList() << messageIds[2] << messageIds[4] ) ); +#endif QTest::newRow("recipients ascending") << ( MessageSortList() << QMessageSortOrder::byRecipients(Qt::AscendingOrder) ) @@ -2918,6 +2971,7 @@ << ( QMessageIdList() << messageIds[0] ) << ( QMessageIdList() << messageIds[4] ) ); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("timeStamp ascending") << ( MessageSortList() << QMessageSortOrder::byTimeStamp(Qt::AscendingOrder) ) << ( MessageListList() << ( QMessageIdList() << messageIds[4] ) @@ -2946,7 +3000,7 @@ << ( QMessageIdList() << messageIds[3] ) << ( QMessageIdList() << messageIds[0] ) << ( QMessageIdList() << messageIds[4] ) ); -#endif +#endif QTest::newRow("priority ascending") << ( MessageSortList() << QMessageSortOrder::byPriority(Qt::AscendingOrder) ) @@ -2959,10 +3013,11 @@ << ( MessageListList() << ( QMessageIdList() << messageIds[1] << messageIds[2] ) << ( QMessageIdList() << messageIds[0] << messageIds[3] ) << ( QMessageIdList() << messageIds[4] ) ); +#endif QTest::newRow("size ascending") << ( MessageSortList() << QMessageSortOrder::bySize(Qt::AscendingOrder) ) -#if defined(Q_OS_SYMBIAN) +#if (defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << ( MessageListList() << ( QMessageIdList() << messageIds[3] ) << ( QMessageIdList() << messageIds[0] ) << ( QMessageIdList() << messageIds[4] ) @@ -2983,7 +3038,7 @@ QTest::newRow("size descending") << ( MessageSortList() << QMessageSortOrder::bySize(Qt::DescendingOrder) ) << ( MessageListList() << ( QMessageIdList() << messageIds[2] ) -#if defined(Q_OS_SYMBIAN) +#if (defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << ( QMessageIdList() << messageIds[1] ) << ( QMessageIdList() << messageIds[4] ) << ( QMessageIdList() << messageIds[0] ) @@ -3000,16 +3055,19 @@ << ( QMessageIdList() << messageIds[0] ) ); #endif +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("status:HasAttachments ascending") << ( MessageSortList() << QMessageSortOrder::byStatus(QMessage::HasAttachments, Qt::AscendingOrder) ) << ( MessageListList() << ( QMessageIdList() << messageIds[0] << messageIds[3] ) << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[4] ) ); +#endif QTest::newRow("status:HasAttachments descending") << ( MessageSortList() << QMessageSortOrder::byStatus(QMessage::HasAttachments, Qt::DescendingOrder) ) << ( MessageListList() << ( QMessageIdList() << messageIds[1] << messageIds[2] << messageIds[4] ) << ( QMessageIdList() << messageIds[0] << messageIds[3] ) ); +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QTest::newRow("status:Read ascending") << ( MessageSortList() << QMessageSortOrder::byStatus(QMessage::Read, Qt::AscendingOrder) ) << ( MessageListList() << ( QMessageIdList() << messageIds[1] << messageIds[2] ) @@ -3019,7 +3077,9 @@ << ( MessageSortList() << QMessageSortOrder::byStatus(QMessage::Read, Qt::DescendingOrder) ) << ( MessageListList() << ( QMessageIdList() << messageIds[0] << messageIds[3] << messageIds[4] ) << ( QMessageIdList() << messageIds[1] << messageIds[2] ) ); - +#endif + +#if !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) // On Windows, the following tests do not vary by type (which is always Email) QTest::newRow("type ascending, priority ascending, size ascending") << ( MessageSortList() << QMessageSortOrder::byType(Qt::AscendingOrder) @@ -3131,7 +3191,7 @@ << ( QMessageIdList() << messageIds[3] ) << ( QMessageIdList() << messageIds[0] ) << ( QMessageIdList() << messageIds[4] ) ); -#elif defined(Q_OS_SYMBIAN) +#elif (defined(Q_OS_SYMBIAN) || defined(Q_OS_WIN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)) << ( MessageListList() << ( QMessageIdList() << messageIds[2] ) << ( QMessageIdList() << messageIds[1] ) << ( QMessageIdList() << messageIds[0] ) @@ -3186,6 +3246,7 @@ << ( QMessageIdList() << messageIds[4] ) << ( QMessageIdList() << messageIds[0] ) ); #endif +#endif } void tst_QMessageStoreKeys::testMessageOrdering() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qnetworkconfigmanager/qnetworkconfigmanager.pro --- a/qtmobility/tests/auto/qnetworkconfigmanager/qnetworkconfigmanager.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qnetworkconfigmanager/qnetworkconfigmanager.pro Mon May 03 13:18:40 2010 +0300 @@ -15,7 +15,7 @@ TARGET.CAPABILITY = NetworkServices NetworkControl ReadUserData } -maemo6 { +maemo6|maemo5 { CONFIG += link_pkgconfig PKGCONFIG += conninet diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qnetworkconfigmanager/tst_qnetworkconfigmanager.cpp --- a/qtmobility/tests/auto/qnetworkconfigmanager/tst_qnetworkconfigmanager.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qnetworkconfigmanager/tst_qnetworkconfigmanager.cpp Mon May 03 13:18:40 2010 +0300 @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** @@ -41,10 +41,10 @@ #include #include "../qbearertestcommon.h" -#include "qnetworkconfiguration.h" -#include "qnetworkconfigmanager.h" +#include "../../../src/bearer/qnetworkconfiguration.h" +#include "../../../src/bearer/qnetworkconfigmanager.h" -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) #include #include #endif @@ -66,7 +66,7 @@ void configurationFromIdentifier(); private: -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) Maemo::IAPConf *iapconf; Maemo::IAPConf *iapconf2; Maemo::IAPConf *gprsiap; @@ -78,7 +78,7 @@ void tst_QNetworkConfigurationManager::initTestCase() { -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) iapconf = new Maemo::IAPConf("007"); iapconf->setValue("ipv4_type", "AUTO"); iapconf->setValue("wlan_wepkey1", "connt"); @@ -152,7 +152,7 @@ void tst_QNetworkConfigurationManager::cleanupTestCase() { -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) iapconf->clear(); delete iapconf; iapconf2->clear(); @@ -285,14 +285,12 @@ QNetworkConfiguration defaultConfig = manager.defaultConfiguration(); bool confirm = configs.contains(defaultConfig); - bool isUserChoice = (defaultConfig.type() == QNetworkConfiguration::UserChoice); - //user choice config is not part of allConfigurations() - QVERIFY(isUserChoice != confirm); - if (!isUserChoice) { + if (defaultConfig.type() != QNetworkConfiguration::UserChoice) { QVERIFY(confirm || !defaultConfig.isValid()); QVERIFY(!(confirm && !defaultConfig.isValid())); } else { + QVERIFY(!confirm); // user choice config is not part of allConfigurations() QVERIFY(defaultConfig.isValid()); QCOMPARE(defaultConfig.name(), QString("UserChoice")); QCOMPARE(defaultConfig.children().count(), 0); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qnetworkconfiguration/qnetworkconfiguration.pro --- a/qtmobility/tests/auto/qnetworkconfiguration/qnetworkconfiguration.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qnetworkconfiguration/qnetworkconfiguration.pro Mon May 03 13:18:40 2010 +0300 @@ -15,7 +15,7 @@ TARGET.CAPABILITY = NetworkServices NetworkControl ReadUserData } -maemo6 { +maemo6|maemo5 { CONFIG += link_pkgconfig PKGCONFIG += conninet diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qnetworkconfiguration/tst_qnetworkconfiguration.cpp --- a/qtmobility/tests/auto/qnetworkconfiguration/tst_qnetworkconfiguration.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qnetworkconfiguration/tst_qnetworkconfiguration.cpp Mon May 03 13:18:40 2010 +0300 @@ -41,10 +41,10 @@ #include #include "../qbearertestcommon.h" -#include "qnetworkconfiguration.h" -#include "qnetworkconfigmanager.h" +#include "../../../src/bearer/qnetworkconfiguration.h" +#include "../../../src/bearer/qnetworkconfigmanager.h" -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) #include #include #endif @@ -65,7 +65,7 @@ void isRoamingAvailable(); private: -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) Maemo::IAPConf *iapconf; Maemo::IAPConf *iapconf2; Maemo::IAPConf *gprsiap; @@ -77,7 +77,7 @@ void tst_QNetworkConfiguration::initTestCase() { -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) iapconf = new Maemo::IAPConf("007"); iapconf->setValue("ipv4_type", "AUTO"); iapconf->setValue("wlan_wepkey1", "connt"); @@ -150,7 +150,7 @@ void tst_QNetworkConfiguration::cleanupTestCase() { -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) iapconf->clear(); delete iapconf; iapconf2->clear(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qnetworksession/lackey/main.cpp --- a/qtmobility/tests/auto/qnetworksession/lackey/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qnetworksession/lackey/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,9 +42,9 @@ #include #include #include -#include -#include -#include +#include "../../../../src/bearer/qnetworkconfigmanager.h" +#include "../../../../src/bearer/qnetworkconfiguration.h" +#include "../../../../src/bearer/qnetworksession.h" #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.cpp --- a/qtmobility/tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,17 +42,21 @@ #include #include #include +#include #include "../../qbearertestcommon.h" -#include -#include +#include "../../../../src/bearer/qnetworkconfigmanager.h" +#include "../../../../src/bearer/qnetworksession.h" -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) #include #include #endif QTM_USE_NAMESPACE +// Can be used to configure tests that require manual attention (such as roaming) +//#define QNETWORKSESSION_MANUAL_TESTS 1 + Q_DECLARE_METATYPE(QNetworkConfiguration) Q_DECLARE_METATYPE(QNetworkConfiguration::Type); Q_DECLARE_METATYPE(QNetworkSession::State); @@ -75,6 +79,9 @@ void repeatedOpenClose(); void roamingErrorCodes(); + + void sessionStop_data(); + void sessionStop(); void sessionProperties_data(); void sessionProperties(); @@ -90,7 +97,7 @@ uint inProcessSessionManagementCount; -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) Maemo::IAPConf *iapconf; Maemo::IAPConf *iapconf2; Maemo::IAPConf *gprsiap; @@ -103,6 +110,7 @@ // Helper functions bool openSession(QNetworkSession *session); bool closeSession(QNetworkSession *session, bool lastSessionOnConfiguration = true); +void updateConfigurations(); QNetworkConfiguration suitableConfiguration(QString bearerType, QNetworkConfiguration::Type configType); void tst_QNetworkSession::initTestCase() @@ -112,7 +120,7 @@ qRegisterMetaType("QNetworkConfiguration"); qRegisterMetaType("QNetworkConfiguration::Type"); -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) iapconf = new Maemo::IAPConf("007"); iapconf->setValue("ipv4_type", "AUTO"); iapconf->setValue("wlan_wepkey1", "connt"); @@ -198,7 +206,7 @@ "tests in inProcessSessionManagement()"); } -#ifdef Q_WS_MAEMO_6 +#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5) iapconf->clear(); delete iapconf; iapconf2->clear(); @@ -223,13 +231,12 @@ void tst_QNetworkSession::invalidSession() { - // Verify that session created with invalid configuration remains in invalid state + // 1. Verify that session created with invalid configuration remains in invalid state QNetworkSession session(QNetworkConfiguration(), 0); QVERIFY(!session.isOpen()); QVERIFY(session.state() == QNetworkSession::Invalid); - // Verify that opening session with invalid configuration both 1) emits invalidconfigurationerror - // and 2) sets session's state as invalid. + // 2. Verify that opening session with invalid configuration both 1) emits invalidconfigurationerror and 2) sets session's state as invalid. QSignalSpy errorSpy(&session, SIGNAL(error(QNetworkSession::SessionError))); session.open(); session.waitForOpened(1000); // Should bail out right away @@ -239,24 +246,56 @@ QVERIFY(error == QNetworkSession::InvalidConfigurationError); QVERIFY(session.state() == QNetworkSession::Invalid); - // Check same thing with a config from platform (there are subtle differences - // because emtpy configuration does not have private pointer). Test with config - // in '(un)defined' state - QList allConfigs = manager.allConfigurations(); - foreach(QNetworkConfiguration config, allConfigs) { - if ((config.state() & QNetworkConfiguration::Discovered) != QNetworkConfiguration::Discovered) { - QNetworkSession session2(config); - QSignalSpy errorSpy2(&session2, SIGNAL(error(QNetworkSession::SessionError))); - session2.open(); - session2.waitForOpened(1000); // Should bail out right away - QVERIFY(errorSpy2.count() == 1); - QNetworkSession::SessionError error2 = - qvariant_cast (errorSpy2.first().at(0)); - QVERIFY(error2 == QNetworkSession::InvalidConfigurationError); - QVERIFY(session2.state() == QNetworkSession::Invalid); - break; // Once is enough - } +#ifdef QNETWORKSESSION_MANUAL_TESTS + QNetworkConfiguration definedConfig = suitableConfiguration("WLAN",QNetworkConfiguration::InternetAccessPoint); + if (definedConfig.isValid()) { + // 3. Verify that opening a session with defined configuration emits error and enters notavailable-state + // TODO these timer waits should be changed to waiting appropriate signals, now these wait excessively + qDebug() << "Shutdown WLAN IAP (waiting 60 seconds): " << definedConfig.name(); + QTest::qWait(60000); + // Shutting down WLAN should bring back to defined -state. + QVERIFY((definedConfig.state() & QNetworkConfiguration::Defined) == QNetworkConfiguration::Defined); + QNetworkSession definedSession(definedConfig); + QSignalSpy errorSpy(&definedSession, SIGNAL(error(QNetworkSession::SessionError))); + QNetworkSession::SessionError sessionError; + + definedSession.open(); + + QVERIFY(definedConfig.isValid()); // Session remains valid + QVERIFY(definedSession.state() == QNetworkSession::NotAvailable); // State is not available because WLAN is not in coverage + QVERIFY(!errorSpy.isEmpty()); // Session tells with error about invalidated configuration + sessionError = qvariant_cast (errorSpy.first().at(0)); + qDebug() << "Error code is: " << sessionError; + QVERIFY(sessionError == QNetworkSession::InvalidConfigurationError); + + qDebug() << "Turn the WLAN IAP back on (waiting 60 seconds): " << definedConfig.name(); + QTest::qWait(60000); + updateConfigurations(); + + QVERIFY(definedConfig.state() == QNetworkConfiguration::Discovered); } + + QNetworkConfiguration invalidatedConfig = suitableConfiguration("WLAN",QNetworkConfiguration::InternetAccessPoint); + if (invalidatedConfig.isValid()) { + // 4. Verify that invalidating a session after its successfully configured works + QNetworkSession invalidatedSession(invalidatedConfig); + QSignalSpy errorSpy(&invalidatedSession, SIGNAL(error(QNetworkSession::SessionError))); + QNetworkSession::SessionError sessionError; + + qDebug() << "Delete the WLAN IAP from phone now (waiting 60 seconds): " << invalidatedConfig.name(); + QTest::qWait(60000); + + invalidatedSession.open(); + QVERIFY(!invalidatedConfig.isValid()); + QVERIFY(invalidatedSession.state() == QNetworkSession::Invalid); + QVERIFY(!errorSpy.isEmpty()); + + sessionError = qvariant_cast (errorSpy.first().at(0)); + QVERIFY(sessionError == QNetworkSession::InvalidConfigurationError); + qDebug() << "Add the WLAN IAP back (waiting 60 seconds): " << invalidatedConfig.name(); + QTest::qWait(60000); + } +#endif } void tst_QNetworkSession::sessionProperties_data() @@ -372,7 +411,6 @@ } void tst_QNetworkSession::roamingErrorCodes() { - #ifndef Q_OS_SYMBIAN QSKIP("Roaming supported on Symbian.", SkipAll); #else @@ -400,8 +438,9 @@ QVERIFY(iapSession.state() == QNetworkSession::Disconnected); QVERIFY(adminIapSession.state() == QNetworkSession::Disconnected); #endif // Q_OS_SYMBIAN - /* - // Check for roaming error. Challenging to automate, therefore commented out. + +#ifdef QNETWORKSESSION_MANUAL_TESTS + // Check for roaming error. // Case requires that you have controllable WLAN in Internet SNAP (only). QNetworkConfiguration snapConfig = suitableConfiguration("bearer_not_relevant_with_snaps", QNetworkConfiguration::ServiceNetwork); if (!snapConfig.isValid()) { @@ -429,7 +468,144 @@ error = qvariant_cast(errorSpy2.first().at(0)); QVERIFY(error == QNetworkSession::SessionAbortedError); QVERIFY(iapSession2.state() == QNetworkSession::Disconnected); - */ +#endif +} + + +void tst_QNetworkSession::sessionStop_data() { + QTest::addColumn("bearerType"); + QTest::addColumn("configurationType"); + + QTest::newRow("SNAP") << "bearer_type_not_relevant_with_SNAPs" << QNetworkConfiguration::ServiceNetwork; + QTest::newRow("WLAN_IAP") << "WLAN" << QNetworkConfiguration::InternetAccessPoint; + QTest::newRow("Cellular_IAP") << "cellular" << QNetworkConfiguration::InternetAccessPoint; +} + +void tst_QNetworkSession::sessionStop() +{ +#ifndef Q_OS_SYMBIAN + QSKIP("Testcase contains mainly Symbian specific checks, because it is only platform to really support interface (IAP-level) Stop.", SkipAll); +#endif + QFETCH(QString, bearerType); + QFETCH(QNetworkConfiguration::Type, configurationType); + + int configWaitdelayInMs = 2000; + + QNetworkConfiguration config = suitableConfiguration(bearerType, configurationType); + if (!config.isValid()) { + QSKIP("No suitable configurations, skipping this round of session stop test.", SkipSingle); + } + qDebug() << "Using following configuration to open and stop a session: " << config.name(); + + QNetworkSession openedSession(config); + QNetworkSession closedSession(config); + QNetworkSession innocentSession(config); + QNetworkConfigurationManager mgr; + + QSignalSpy closedSessionOpenedSpy(&closedSession, SIGNAL(opened())); + QSignalSpy closedSessionClosedSpy(&closedSession, SIGNAL(closed())); + QSignalSpy closedSessionStateChangedSpy(&closedSession, SIGNAL(stateChanged(QNetworkSession::State))); + QSignalSpy closedErrorSpy(&closedSession, SIGNAL(error(QNetworkSession::SessionError))); + + QSignalSpy innocentSessionClosedSpy(&innocentSession, SIGNAL(closed())); + QSignalSpy innocentSessionStateChangedSpy(&innocentSession, SIGNAL(stateChanged(QNetworkSession::State))); + QSignalSpy innocentErrorSpy(&innocentSession, SIGNAL(error(QNetworkSession::SessionError))); + QNetworkSession::SessionError sessionError; + + // 1. Verify that stopping an opened session works (the simplest usecase). + qDebug("----------1. Verify that stopping an opened session works (the simplest usecase)"); + QSignalSpy configChangeSpy(&mgr, SIGNAL(configurationChanged(QNetworkConfiguration))); + QVERIFY(openSession(&openedSession)); + qDebug("Waiting for %d ms to get all configurationChange signals from platform.", configWaitdelayInMs); + // Clear signals caused by opening + closedSessionOpenedSpy.clear(); + closedSessionClosedSpy.clear(); + closedSessionStateChangedSpy.clear(); + closedErrorSpy.clear(); + openedSession.stop(); + + QVERIFY(openedSession.state() == QNetworkSession::Disconnected); + QTest::qWait(configWaitdelayInMs); // Wait to get all relevant configurationChange() signals + QVERIFY(config.state() != QNetworkConfiguration::Active); + + // 2. Verify that stopping a session based on non-connected configuration does nothing + qDebug("----------2. Verify that stopping a session based on non-connected configuration does nothing"); + QNetworkSession::State closedSessionOriginalState = closedSession.state(); + // Clear all possible signals + configChangeSpy.clear(); + closedSessionOpenedSpy.clear(); + closedSessionClosedSpy.clear(); + closedSessionStateChangedSpy.clear(); + closedErrorSpy.clear(); + + closedSession.stop(); + qDebug("Waiting for %d ms to get all configurationChange signals from platform.", configWaitdelayInMs); + QTest::qWait(configWaitdelayInMs); // Wait to get all relevant configurationChange() signals + + QVERIFY(closedSessionOpenedSpy.isEmpty()); + QVERIFY(closedSessionClosedSpy.isEmpty()); + QVERIFY(closedSessionStateChangedSpy.isEmpty()); + QVERIFY(closedErrorSpy.isEmpty()); + QVERIFY(closedSession.state() == closedSessionOriginalState); // State remains + + // 3. Check that stopping a opened session affects also other opened session based on the same configuration. + if (config.type() == QNetworkConfiguration::InternetAccessPoint) { + qDebug("----------3. Check that stopping a opened session affects also other opened session based on the same configuration."); + QVERIFY(openSession(&openedSession)); + QVERIFY(openSession(&innocentSession)); + + configChangeSpy.clear(); + innocentSessionClosedSpy.clear(); + innocentSessionStateChangedSpy.clear(); + innocentErrorSpy.clear(); + + openedSession.stop(); + qDebug("Waiting for %d ms to get all configurationChange signals from platform.", configWaitdelayInMs); + QTest::qWait(configWaitdelayInMs); // Wait to get all relevant configurationChange() signals + + QVERIFY(!innocentSessionClosedSpy.isEmpty()); + QVERIFY(!innocentSessionStateChangedSpy.isEmpty()); + QVERIFY(!innocentErrorSpy.isEmpty()); + QVERIFY(innocentSession.state() == QNetworkSession::Disconnected); + QVERIFY(openedSession.state() == QNetworkSession::Disconnected); + sessionError = qvariant_cast(innocentErrorSpy.first().at(0)); + QVERIFY(sessionError == QNetworkSession::SessionAbortedError); + + innocentSessionClosedSpy.clear(); + innocentSessionStateChangedSpy.clear(); + innocentErrorSpy.clear(); + } else { + qDebug("----------3. Skip for SNAP configuration."); + } + // 4. Check that stopping a non-opened session stops the other session based on the + // same configuration if configuration is IAP. Stopping closed SNAP session has no impact on other opened SNAP session. + if (config.type() == QNetworkConfiguration::ServiceNetwork) { + qDebug("----------4. Skip for SNAP configuration."); + } else if (config.type() == QNetworkConfiguration::InternetAccessPoint) { + qDebug("----------4. Check that stopping a non-opened session stops the other session based on the same configuration"); + QVERIFY(openSession(&innocentSession)); + qDebug("Waiting for %d ms after open to make sure all platform indications are propagated", configWaitdelayInMs); + QTest::qWait(configWaitdelayInMs); + closedSession.stop(); + qDebug("Waiting for %d ms to get all configurationChange signals from platform..", configWaitdelayInMs); + QTest::qWait(configWaitdelayInMs); // Wait to get all relevant configurationChange() signals + + QVERIFY(!innocentSessionClosedSpy.isEmpty()); + QVERIFY(!innocentSessionStateChangedSpy.isEmpty()); + QVERIFY(!innocentErrorSpy.isEmpty()); + QVERIFY(innocentSession.state() == QNetworkSession::Disconnected); + QVERIFY(closedSession.state() == QNetworkSession::Disconnected); + sessionError = qvariant_cast(innocentErrorSpy.first().at(0)); + QVERIFY(sessionError == QNetworkSession::SessionAbortedError); + QVERIFY(config.state() == QNetworkConfiguration::Discovered); + } + + // 5. Sanity check that stopping invalid session does not crash + qDebug("----------5. Sanity check that stopping invalid session does not crash"); + QNetworkSession invalidSession(QNetworkConfiguration(), 0); + QVERIFY(invalidSession.state() == QNetworkSession::Invalid); + invalidSession.stop(); + QVERIFY(invalidSession.state() == QNetworkSession::Invalid); } void tst_QNetworkSession::userChoiceSession_data() @@ -1042,6 +1218,7 @@ // Ignores configurations in other than 'discovered' -state. Returns invalid (QNetworkConfiguration()) // if none found. QNetworkConfiguration suitableConfiguration(QString bearerType, QNetworkConfiguration::Type configType) { + // Refresh configurations and derive configurations matching given parameters. QNetworkConfigurationManager mgr; QSignalSpy updateSpy(&mgr, SIGNAL(updateCompleted())); @@ -1082,6 +1259,15 @@ } } +// A convinience-function: updates configurations and waits that they are updated. +void updateConfigurations() +{ + QNetworkConfigurationManager mgr; + QSignalSpy updateSpy(&mgr, SIGNAL(updateCompleted())); + mgr.updateConfigurations(); + QTRY_NOOP(updateSpy.count() == 1); +} + // A convinience function for test-cases: opens the given configuration and return // true if it was done gracefully. bool openSession(QNetworkSession *session) { @@ -1181,16 +1367,13 @@ return false; } if (lastSessionOnConfiguration && - session->configuration().state() != QNetworkConfiguration::Discovered) { - qDebug("tst_QNetworkSession::closeSession() failure: session's configuration is not back in 'Discovered' -state."); + session->configuration().state() == QNetworkConfiguration::Active) { + qDebug("tst_QNetworkSession::closeSession() failure: session's configuration is still in active state."); return false; } return true; } - - QTEST_MAIN(tst_QNetworkSession) #include "tst_qnetworksession.moc" - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.pro --- a/qtmobility/tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.pro Mon May 03 13:18:40 2010 +0300 @@ -21,7 +21,7 @@ TARGET.CAPABILITY = NetworkServices NetworkControl ReadUserData PowerMgmt } -maemo6 { +maemo6|maemo5 { CONFIG += link_pkgconfig PKGCONFIG += conninet diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qnmeapositioninfosource/tst_dummynmeapositioninfosource.cpp --- a/qtmobility/tests/auto/qnmeapositioninfosource/tst_dummynmeapositioninfosource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qnmeapositioninfosource/tst_dummynmeapositioninfosource.cpp Mon May 03 13:18:40 2010 +0300 @@ -83,7 +83,7 @@ Q_UNUSED(size); posInfo->setCoordinate(QGeoCoordinate(callCount * 1.0, callCount * 1.0, callCount * 1.0)); - posInfo->setDateTime(QDateTime::currentDateTime().toUTC()); + posInfo->setTimestamp(QDateTime::currentDateTime().toUTC()); *hasFix = true; ++callCount; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qnmeapositioninfosource/tst_qnmeapositioninfosource.cpp --- a/qtmobility/tests/auto/qnmeapositioninfosource/tst_qnmeapositioninfosource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qnmeapositioninfosource/tst_qnmeapositioninfosource.cpp Mon May 03 13:18:40 2010 +0300 @@ -115,20 +115,20 @@ // been called, it should still be available through lastKnownPosition() QDateTime dt = QDateTime::currentDateTime().toUTC(); proxy->feedUpdate(dt); - QTRY_COMPARE(proxy->source()->lastKnownPosition().dateTime(), dt); + QTRY_COMPARE(proxy->source()->lastKnownPosition().timestamp(), dt); QList dateTimes = createDateTimes(5); for (int i=0; isource()->requestUpdate(); proxy->feedUpdate(dateTimes[i]); - QTRY_COMPARE(proxy->source()->lastKnownPosition().dateTime(), dateTimes[i]); + QTRY_COMPARE(proxy->source()->lastKnownPosition().timestamp(), dateTimes[i]); } proxy->source()->startUpdates(); dateTimes = createDateTimes(5); for (int i=0; ifeedUpdate(dateTimes[i]); - QTRY_COMPARE(proxy->source()->lastKnownPosition().dateTime(), dateTimes[i]); + QTRY_COMPARE(proxy->source()->lastKnownPosition().timestamp(), dateTimes[i]); } } @@ -164,10 +164,10 @@ if (trigger == StartUpdatesMethod) { QTRY_COMPARE(spy.count(), dateTimes.count()); for (int i=0; i().dateTime(), dateTimes[i]); + QCOMPARE(spy.at(i).at(0).value().timestamp(), dateTimes[i]); } else if (trigger == RequestUpdatesMethod) { QTRY_COMPARE(spy.count(), 1); - QCOMPARE(spy.at(0).at(0).value().dateTime(), dateTimes.first()); + QCOMPARE(spy.at(0).at(0).value().timestamp(), dateTimes.first()); } } } @@ -229,7 +229,9 @@ QDateTime dt = QDateTime::currentDateTime().toUTC(); if (m_mode == QNmeaPositionInfoSource::SimulationMode) { + // the first sentence primes the simulation proxy->feedBytes(QLocationTestUtils::createRmcSentence(dt).toLatin1()); + proxy->feedBytes(QLocationTestUtils::createRmcSentence(dt.addMSecs(50)).toLatin1()); proxy->feedBytes(QLocationTestUtils::createRmcSentence(dt.addSecs(1)).toLatin1()); proxy->feedBytes(QLocationTestUtils::createRmcSentence(dt.addSecs(2)).toLatin1()); proxy->feedBytes(QLocationTestUtils::createRmcSentence(dt.addSecs(9)).toLatin1()); @@ -238,7 +240,7 @@ for (int j = 0; j < 3; ++j) { i = 0; - for (; i < 15; ++i) { + for (; i < 12; ++i) { QTest::qWait(100); if ((spyUpdate.count() == 1) && (spyTimeout.count() == 0)) break; @@ -251,7 +253,7 @@ } i = 0; - for (; i < 75; ++i) { + for (; i < 72; ++i) { QTest::qWait(100); if ((spyUpdate.count() == 0) && (spyTimeout.count() == 1)) break; @@ -259,12 +261,13 @@ QVERIFY((spyUpdate.count() == 0) && (spyTimeout.count() == 1)); spyTimeout.clear(); - for (; i < 75; ++i) { + for (; i < 72; ++i) { QTest::qWait(100); if ((spyUpdate.count() == 1) && (spyTimeout.count() == 0)) break; } QVERIFY((spyUpdate.count() == 1) && (spyTimeout.count() == 0)); + } else { QTest::qWait(900); // dt + 900 @@ -324,7 +327,7 @@ proxy->feedUpdate(dateTimes[i]); QTRY_COMPARE(spyUpdate.count(), 1); - QCOMPARE(spyUpdate[0][0].value().dateTime(), dateTimes.last()); + QCOMPARE(spyUpdate[0][0].value().timestamp(), dateTimes.last()); } void tst_QNmeaPositionInfoSource::startUpdates_waitForValidDateTime() @@ -348,7 +351,7 @@ QTRY_COMPARE(spy.count(), dateTimes.count()); for (int i=0; i().dateTime(), dateTimes[i]); + QCOMPARE(spy[i][0].value().timestamp(), dateTimes[i]); } void tst_QNmeaPositionInfoSource::startUpdates_waitForValidDateTime_data() @@ -401,7 +404,7 @@ proxy->feedBytes(bytes); QTRY_COMPARE(spy.count(), 1); - QCOMPARE(spy[0][0].value().dateTime(), dateTimes[0]); + QCOMPARE(spy[0][0].value().timestamp(), dateTimes[0]); } void tst_QNmeaPositionInfoSource::requestUpdate_waitForValidDateTime_data() @@ -427,7 +430,7 @@ proxy->feedUpdate(dt); proxy->source()->requestUpdate(); QTRY_COMPARE(spyUpdate.count(), 1); - QCOMPARE(spyUpdate[0][0].value().dateTime(), dt); + QCOMPARE(spyUpdate[0][0].value().timestamp(), dt); QCOMPARE(spyTimeout.count(), 0); spyUpdate.clear(); @@ -437,7 +440,7 @@ QTest::qWait(300); proxy->feedUpdate(dt); QTRY_COMPARE(spyUpdate.count(), 1); - QCOMPARE(spyUpdate[0][0].value().dateTime(), dt); + QCOMPARE(spyUpdate[0][0].value().timestamp(), dt); QCOMPARE(spyTimeout.count(), 0); spyUpdate.clear(); @@ -471,7 +474,7 @@ proxy->source()->requestUpdate(100); proxy->feedUpdate(dt); QTRY_COMPARE(spyUpdate.count(), 1); - QCOMPARE(spyUpdate[0][0].value().dateTime(), dt); + QCOMPARE(spyUpdate[0][0].value().timestamp(), dt); QCOMPARE(spyTimeout.count(), 0); spyUpdate.clear(); @@ -499,7 +502,7 @@ proxy->feedBytes(bytes); QTRY_COMPARE(spy.count(), dateTimes.count()); for (int i=0; i().dateTime(), dateTimes[i]); + QCOMPARE(spy[i][0].value().timestamp(), dateTimes[i]); } void tst_QNmeaPositionInfoSource::testWithBadNmea_data() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qpaintervideosurface/tst_qpaintervideosurface.cpp --- a/qtmobility/tests/auto/qpaintervideosurface/tst_qpaintervideosurface.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qpaintervideosurface/tst_qpaintervideosurface.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,9 +39,9 @@ ** ****************************************************************************/ -#include #include +#include #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qsensor/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qsensor/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,76 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "gruesensorimpl.h" +#include +#include +#include +#include +#include + +class GrueSensorPlugin : public QObject, public QSensorPluginInterface, public QSensorBackendFactory +{ + Q_OBJECT + Q_INTERFACES(QtMobility::QSensorPluginInterface) +public: + void registerSensors() + { + qDebug() << "loaded the grue plugin"; + QSensorManager::registerBackend(GrueSensor::type, gruesensorimpl::id, this); + } + + QSensorBackend *createBackend(QSensor *sensor) + { + if (sensor->identifier() == gruesensorimpl::id) { + // Can't make this unless we have an ambient light sensor + if (!QSensor::defaultSensorForType(QAmbientLightSensor::type).isEmpty()) + return new gruesensorimpl(sensor); + qDebug() << "can't make" << sensor->identifier() << "because no" << QAmbientLightSensor::type << "sensors exist"; + } + + return 0; + } +}; + +Q_EXPORT_PLUGIN2(libsensors_grueplugin, GrueSensorPlugin); + +#include "main.moc" + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qsensor/qsensor.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qsensor/qsensor.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,26 @@ +TEMPLATE = app +TARGET = tst_qsensor + +CONFIG += testcase +QT += testlib + +include(../../../common.pri) +#include(../support/support.pri) + +CONFIG += mobility +MOBILITY = sensors +INCLUDEPATH += ../../../src/sensors + +SOURCES += \ + tst_qsensor.cpp + +HEADERS += \ + test_sensor.h\ + test_sensor_p.h\ + test_sensorimpl.h + +SOURCES += \ + test_sensor.cpp\ + test_sensorimpl.cpp\ + test_sensorplugin.cpp + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qsensor/test_sensor.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qsensor/test_sensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,61 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "test_sensor.h" +#include "test_sensor_p.h" + +IMPLEMENT_READING(TestSensorReading) + +bool TestSensorReading::test() const +{ + return d->test; +} + +void TestSensorReading::setTest(bool test) +{ + d->test = test; +} + +// ===================================================================== + +const char *TestSensor::type("test sensor"); + +#include "moc_test_sensor.cpp" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qsensor/test_sensor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qsensor/test_sensor.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,79 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 TEST_SENSOR_H +#define TEST_SENSOR_H + +#include + +QTM_USE_NAMESPACE + +class TestSensorReadingPrivate; + +class TestSensorReading : public QSensorReading +{ + Q_OBJECT + Q_PROPERTY(bool test READ test) + DECLARE_READING(TestSensorReading) +public: + bool test() const; + void setTest(bool test); +}; + +class TestSensorFilter : public QSensorFilter +{ +public: + virtual bool filter(TestSensorReading *reading) = 0; +private: + bool filter(QSensorReading *reading) { return filter(static_cast(reading)); } +}; + +class TestSensor : public QSensor +{ + Q_OBJECT +public: + explicit TestSensor(QObject *parent = 0) : QSensor(TestSensor::type, parent) {} + virtual ~TestSensor() {} + TestSensorReading *reading() const { return static_cast(QSensor::reading()); } + static const char *type; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qsensor/test_sensor_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qsensor/test_sensor_p.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,69 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 TEST_SENSOR_P_H +#define TEST_SENSOR_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 "qsensor_p.h" + +class TestSensorReadingPrivate : public QSensorReadingPrivate +{ +public: + TestSensorReadingPrivate() + : test(false) + { + } + + bool test; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qsensor/test_sensorimpl.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qsensor/test_sensorimpl.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,96 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "test_sensorimpl.h" +#include +#include + +const char *testsensorimpl::id("test sensor impl"); + +testsensorimpl::testsensorimpl(QSensor *sensor) + : QSensorBackend(sensor) +{ + setReading(&m_reading); + setDescription("sensor description"); + addOutputRange(0, 1, 0.5); + addOutputRange(0, 2, 1); + QString doThis = sensor->property("doThis").toString(); + if (doThis == "rates(0)") { + setDataRates(0); + } else if (doThis == "rates") { + setDataRates(new QAccelerometer(this)); + if (sensor->availableDataRates().count()) { + sensor->setDataRate(sensor->availableDataRates().first().first); + } else { + addDataRate(100, 100); + sensor->setDataRate(100); + } + } else { + addDataRate(100, 100); + sensor->setDataRate(100); + } + reading(); +} + +void testsensorimpl::start() +{ + QString doThis = sensor()->property("doThis").toString(); + if (doThis == "busy") + sensorBusy(); + else if (doThis == "stop") + sensorStopped(); + else if (doThis == "error") + sensorError(1); + else if (doThis == "setFalse") { + m_reading.setTimestamp(1); + m_reading.setTest(false); + newReadingAvailable(); + } else { + m_reading.setTimestamp(2); + m_reading.setTest(true); + newReadingAvailable(); + } +} + +void testsensorimpl::stop() +{ +} + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qsensor/test_sensorimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qsensor/test_sensorimpl.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,64 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 TEST_SENSORIMPL_H +#define TEST_SENSORIMPL_H + +#include +#include "test_sensor.h" + +QTM_USE_NAMESPACE + +class testsensorimpl : public QSensorBackend +{ +public: + static const char *id; + + testsensorimpl(QSensor *sensor); + + void start(); + void stop(); + +private: + TestSensorReading m_reading; +}; + +#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qsensor/test_sensorplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qsensor/test_sensorplugin.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,76 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "test_sensorimpl.h" +#include +#include +#include +#include +#include + +QTM_USE_NAMESPACE + +class TestSensorPlugin : public QObject, public QSensorPluginInterface, public QSensorBackendFactory +{ + Q_OBJECT + Q_INTERFACES(QtMobility::QSensorPluginInterface) +public: + void registerSensors() + { + QSensorManager::registerBackend(TestSensor::type, testsensorimpl::id, this); + QSensorManager::registerBackend(TestSensor::type, "test sensor 2", this); + } + + QSensorBackend *createBackend(QSensor *sensor) + { + if (sensor->identifier() == testsensorimpl::id) { + return new testsensorimpl(sensor); + } + + qWarning() << "Can't create backend" << sensor->identifier(); + return 0; + } +}; + +REGISTER_STATIC_PLUGIN(TestSensorPlugin) + +#include "test_sensorplugin.moc" + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qsensor/tst_qsensor.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qsensor/tst_qsensor.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,316 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include +#include + +#include "qsensor.h" +#include "test_sensor.h" +#include "test_sensorimpl.h" + +QTM_USE_NAMESPACE + +class MyFilter : public TestSensorFilter +{ + bool filter(TestSensorReading *reading) + { + return reading->test(); + } +}; + +/* + Unit test for QSensor class. +*/ +class tst_QSensor : public QObject +{ + Q_OBJECT + +public: + tst_QSensor() + { + } + +private slots: + void initTestCase() + { + QSettings settings(QLatin1String("Nokia"), QLatin1String("Sensors")); + settings.clear(); + } + + void cleanupTestCase() + { + QSettings settings(QLatin1String("Nokia"), QLatin1String("Sensors")); + settings.clear(); + } + + + void testTypeRegistered() + { + QList expected; + expected << TestSensor::type; + QList actual = QSensor::sensorTypes(); + QCOMPARE(actual, expected); + } + + void testSensorRegistered() + { + QList expected; + expected << testsensorimpl::id << "test sensor 2"; + QList actual = QSensor::sensorsForType(TestSensor::type); + QCOMPARE(actual, expected); + } + + void testSensorDefault() + { + QByteArray expected = testsensorimpl::id; + QByteArray actual = QSensor::defaultSensorForType(TestSensor::type); + QCOMPARE(actual, expected); + } + + void testBadDefaultFromConfig() + { + QSettings settings(QLatin1String("Nokia"), QLatin1String("Sensors")); + settings.setValue(QString(QLatin1String("Default/%1")).arg(QString::fromLatin1(TestSensor::type)), QByteArray("bogus id")); + settings.sync(); + + QByteArray expected = testsensorimpl::id; + QByteArray actual = QSensor::defaultSensorForType(TestSensor::type); + QCOMPARE(actual, expected); + } + + void testGoodDefaultFromConfig() + { + QSettings settings(QLatin1String("Nokia"), QLatin1String("Sensors")); + settings.setValue(QString(QLatin1String("Default/%1")).arg(QString::fromLatin1(TestSensor::type)), QByteArray(testsensorimpl::id)); + settings.sync(); + + QByteArray expected = testsensorimpl::id; + QByteArray actual = QSensor::defaultSensorForType(TestSensor::type); + QCOMPARE(actual, expected); + } + + void testNoSensorsForType() + { + QList expected; + QList actual = QSensor::sensorsForType("bogus type"); + QCOMPARE(actual, expected); + } + + void testNoDefaultForType() + { + QByteArray expected; + QByteArray actual = QSensor::defaultSensorForType("bogus type"); + QCOMPARE(actual, expected); + } + + void testCreation() + { + TestSensor sensor; + sensor.connectToBackend(); + QByteArray expected = testsensorimpl::id; + QByteArray actual = sensor.identifier(); + QCOMPARE(actual, expected); + } + + void testBadDefaultCreation() + { + QSettings settings(QLatin1String("Nokia"), QLatin1String("Sensors")); + settings.setValue(QString(QLatin1String("Default/%1")).arg(QString::fromLatin1(TestSensor::type)), QByteArray("test sensor 2")); + settings.sync(); + + TestSensor sensor; + QTest::ignoreMessage(QtWarningMsg, "Can't create backend \"test sensor 2\" "); + sensor.connectToBackend(); + QByteArray expected = testsensorimpl::id; + QByteArray actual = sensor.identifier(); + QCOMPARE(actual, expected); + } + + void testBadCreation() + { + QSensor sensor("bogus type"); + sensor.connectToBackend(); + QByteArray expected; // should be null + QByteArray actual = sensor.identifier(); + QCOMPARE(actual, expected); + } + + void resetSettings() + { + QSettings settings(QLatin1String("Nokia"), QLatin1String("Sensors")); + settings.setValue(QString(QLatin1String("Default/%1")).arg(QString::fromLatin1(TestSensor::type)), QByteArray(testsensorimpl::id)); + settings.sync(); + } + + void testTimestamp() + { + TestSensor sensor; + sensor.connectToBackend(); + QVERIFY(sensor.reading() != 0); + quint64 timestamp = sensor.reading()->timestamp(); + QVERIFY(timestamp == qtimestamp()); + } + + void testStart() + { + TestSensor sensor; + sensor.start(); + QVERIFY(sensor.isActive()); + sensor.start(); + QVERIFY(sensor.isActive()); + } + + void testBadStart() + { + QSensor sensor("bogus type"); + sensor.start(); + QVERIFY(!sensor.isActive()); + } + + void testStop() + { + TestSensor sensor; + sensor.stop(); + QVERIFY(!sensor.isActive()); + sensor.start(); + QVERIFY(sensor.isActive()); + sensor.stop(); + QVERIFY(!sensor.isActive()); + } + + void testMetaData() + { + TestSensor sensor; + sensor.connectToBackend(); + + QString actual = sensor.description(); + QString expected = "sensor description"; + QCOMPARE(actual, expected); + sensor.outputRange(); + sensor.setOutputRange(1); + sensor.outputRanges(); + sensor.availableDataRates(); + sensor.setDataRate(100); + sensor.dataRate(); + sensor.isBusy(); + sensor.error(); + sensor.isConnectedToBackend(); + + TestSensorReading *reading = sensor.reading(); + reading->test(); + QCOMPARE(reading->valueCount(), 1); + reading->value(0).toBool(); + } + + void testMetaData2() + { + TestSensor sensor; + sensor.setProperty("doThis", "rates(0)"); + QTest::ignoreMessage(QtWarningMsg, "ERROR: Cannot call QSensorBackend::setDataRates with 0 "); + QTest::ignoreMessage(QtWarningMsg, "\"test sensor impl\" backend does not support any data rates. It cannot be used. "); + QTest::ignoreMessage(QtWarningMsg, "\"test sensor impl\" backend did not supply default data rate. "); + sensor.connectToBackend(); + } + + void testMetaData3() + { + TestSensor sensor; + sensor.setProperty("doThis", "rates"); + sensor.connectToBackend(); + + sensor.availableDataRates(); + } + + void testFilter() + { + TestSensor sensor; + sensor.connectToBackend(); + + MyFilter filter; + sensor.addFilter(&filter); + sensor.removeFilter(&filter); + sensor.addFilter(&filter); + } + + void testStart2() + { + TestSensor sensor; + sensor.connectToBackend(); + + sensor.setProperty("doThis", "busy"); + sensor.start(); + QVERIFY(!sensor.isActive()); + + sensor.setProperty("doThis", "stop"); + sensor.start(); + QVERIFY(!sensor.isActive()); + + sensor.setProperty("doThis", "error"); + sensor.start(); + QVERIFY(sensor.error() == 1); + QVERIFY(sensor.isActive()); + + MyFilter filter; + sensor.addFilter(&filter); + sensor.setProperty("doThis", "setFalse"); + sensor.start(); + QVERIFY(sensor.isActive()); + + sensor.setProperty("doThis", "setTrue"); + sensor.start(); + QVERIFY(sensor.isActive()); + + } + + void testSetBadRate() + { + TestSensor sensor; + sensor.connectToBackend(); + + QTest::ignoreMessage(QtWarningMsg, "setDataRate: rate 300 is not supported by the sensor. "); + sensor.setDataRate(300); + } +}; + +QTEST_MAIN(tst_QSensor) + +#include "tst_qsensor.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qsystemnetworkinfo/tst_qsystemnetworkinfo.cpp --- a/qtmobility/tests/auto/qsystemnetworkinfo/tst_qsystemnetworkinfo.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qsystemnetworkinfo/tst_qsystemnetworkinfo.cpp Mon May 03 13:18:40 2010 +0300 @@ -72,6 +72,7 @@ void tst_macAddress(); void tst_interfaceForMode(); + void tst_currentMode(); }; //signal todo: // void networkStatusChanged(QSystemNetworkInfo::NetworkMode netmode, QSystemNetworkInfo::CellNetworkStatus netStatus); @@ -153,9 +154,12 @@ void tst_QSystemNetworkInfo::tst_currentMobileCountryCode() { QSystemNetworkInfo ni; - if(QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::GsmMode) - || QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::CdmaMode) - || QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::WcdmaMode)) { + if(QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::GsmMode) + || QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::CdmaMode) + || QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::WcdmaMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::GsmMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::CdmaMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::WcdmaMode)) { QVERIFY(!ni.currentMobileCountryCode().isEmpty()); } else { QVERIFY(ni.currentMobileCountryCode().isEmpty()); @@ -165,9 +169,12 @@ void tst_QSystemNetworkInfo::tst_currentMobileNetworkCode() { QSystemNetworkInfo ni; - if(QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::GsmMode) - || QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::CdmaMode) - || QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::WcdmaMode)) { + if(QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::GsmMode) + || QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::CdmaMode) + || QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::WcdmaMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::GsmMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::CdmaMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::WcdmaMode)) { QVERIFY(!ni.currentMobileNetworkCode().isEmpty()); } else { QVERIFY(ni.currentMobileNetworkCode().isEmpty()); @@ -178,9 +185,12 @@ void tst_QSystemNetworkInfo::tst_homeMobileCountryCode() { QSystemNetworkInfo ni; - if(QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::GsmMode) - || QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::CdmaMode) - || QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::WcdmaMode)) { + if(QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::GsmMode) + || QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::CdmaMode) + || QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::WcdmaMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::GsmMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::CdmaMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::WcdmaMode)) { QVERIFY(!ni.homeMobileCountryCode().isEmpty()); } else { QVERIFY(ni.homeMobileCountryCode().isEmpty()); @@ -190,9 +200,12 @@ void tst_QSystemNetworkInfo::tst_homeMobileNetworkCode() { QSystemNetworkInfo ni; - if(QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::GsmMode) - || QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::CdmaMode) - || QSystemNetworkInfo::Connected == ni.networkStatus(QSystemNetworkInfo::WcdmaMode)) { + if(QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::GsmMode) + || QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::CdmaMode) + || QSystemNetworkInfo::HomeNetwork == ni.networkStatus(QSystemNetworkInfo::WcdmaMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::GsmMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::CdmaMode) + || QSystemNetworkInfo::Roaming == ni.networkStatus(QSystemNetworkInfo::WcdmaMode)) { QVERIFY(!ni.homeMobileNetworkCode().isEmpty()); } else { QVERIFY(ni.homeMobileNetworkCode().isEmpty()); @@ -253,5 +266,21 @@ } +void tst_QSystemNetworkInfo::tst_currentMode() +{ + QSystemNetworkInfo ni; + QSystemNetworkInfo::NetworkMode mode = ni.currentMode(); + + QVERIFY( mode == QSystemNetworkInfo::UnknownMode + || mode == QSystemNetworkInfo::GsmMode + || mode == QSystemNetworkInfo::CdmaMode + || mode == QSystemNetworkInfo::WcdmaMode + || mode == QSystemNetworkInfo::WlanMode + || mode == QSystemNetworkInfo::EthernetMode + || mode == QSystemNetworkInfo::BluetoothMode + || mode == QSystemNetworkInfo::WimaxMode ); +} + + QTEST_MAIN(tst_QSystemNetworkInfo) #include "tst_qsystemnetworkinfo.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvaluespace/tst_qvaluespace.cpp --- a/qtmobility/tests/auto/qvaluespace/tst_qvaluespace.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qvaluespace/tst_qvaluespace.cpp Mon May 03 13:18:40 2010 +0300 @@ -309,7 +309,7 @@ { QList layers = QValueSpace::availableLayers(); -#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_6) +#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5) && !defined(Q_WS_MAEMO_6) QVERIFY(layers.contains(QVALUESPACE_SHAREDMEMORY_LAYER)); #else QVERIFY(!layers.contains(QVALUESPACE_SHAREDMEMORY_LAYER)); @@ -323,6 +323,10 @@ QVERIFY(!layers.contains(QVALUESPACE_NONVOLATILEREGISTRY_LAYER)); #endif +#ifdef Q_WS_MAEMO_5 + QVERIFY(layers.contains(QVALUESPACE_GCONF_LAYER)); +#endif + #ifdef Q_WS_MAEMO_6 QVERIFY(layers.contains(QVALUESPACE_CONTEXTKIT_LAYER)); #else diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvaluespacepublisher/tst_qvaluespacepublisher.cpp --- a/qtmobility/tests/auto/qvaluespacepublisher/tst_qvaluespacepublisher.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qvaluespacepublisher/tst_qvaluespacepublisher.cpp Mon May 03 13:18:40 2010 +0300 @@ -56,6 +56,8 @@ #include #endif +#include + #define QTRY_COMPARE(a,e) \ for (int _i = 0; _i < 5000; _i += 100) { \ if ((a) == (e)) break; \ @@ -132,6 +134,13 @@ #endif QValueSpace::initValueSpaceServer(); + + if (QValueSpace::availableLayers().contains(QVALUESPACE_GCONF_LAYER)) { + QCOMPARE(QProcess::execute("gconftool-2 -u /value"), 0); + QCOMPARE(QProcess::execute("gconftool-2 -u /testConstructor/value"), 0); + QCOMPARE(QProcess::execute("gconftool-2 -u /testConstructor/subpath/value"), 0); + } + } void tst_QValueSpacePublisher::cleanupTestCase() @@ -474,12 +483,18 @@ QList layers = QValueSpaceManager::instance()->getLayers(); + int foundLayers = 0; for (int i = 0; i < layers.count(); ++i) { QAbstractValueSpaceLayer *layer = layers.at(i); if (layer->id() == QVALUESPACE_NONVOLATILEREGISTRY_LAYER) continue; + //GConfLayer can't provide thread-safety because it eventually depends on + //DBus which isn't fully thread-safe + if (layer->id() == QVALUESPACE_GCONF_LAYER) + continue; + #ifdef Q_OS_WINCE // Limit number of items on Windows CE to prevent out of disk space errors. if (layer->id() == QVALUESPACE_VOLATILEREGISTRY_LAYER) { @@ -571,7 +586,11 @@ QTest::newRow("100 threads, 100 items") << layer->id() << uint(100) << uint(100) << false; } + foundLayers++; } + + if (foundLayers == 0) + QSKIP("No layers providing thread-safety found", SkipAll); } void tst_QValueSpacePublisher::threads() @@ -581,6 +600,9 @@ QFETCH(unsigned int, count); QFETCH(bool, sequential); + if (QValueSpace::availableLayers().contains(QVALUESPACE_GCONF_LAYER)) { + QCOMPARE(QProcess::execute("gconftool-2 --recursive-unset /threads"), 0); + } QStringList expectedPaths; for (unsigned int i = 0; i < threads; ++i) expectedPaths.append(QString("thread%1").arg(i)); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvaluespacesubscriber/lackey/main.cpp --- a/qtmobility/tests/auto/qvaluespacesubscriber/lackey/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qvaluespacesubscriber/lackey/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#include -#include +#include "../../../../src/publishsubscribe/qvaluespacesubscriber.h" +#include "../../../../src/publishsubscribe/qvaluespacepublisher.h" #include #include diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvaluespacesubscriber/qvaluespacesubscriber.pro --- a/qtmobility/tests/auto/qvaluespacesubscriber/qvaluespacesubscriber.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qvaluespacesubscriber/qvaluespacesubscriber.pro Mon May 03 13:18:40 2010 +0300 @@ -2,5 +2,6 @@ SUBDIRS = tst_qvaluespacesubscriber !symbian { - SUBDIRS += lackey tst_qvaluespacesubscriber_oop + SUBDIRS += lackey + !maemo5:SUBDIRS += tst_qvaluespacesubscriber_oop } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvaluespacesubscriber/tst_qvaluespacesubscribershared.cpp --- a/qtmobility/tests/auto/qvaluespacesubscriber/tst_qvaluespacesubscribershared.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qvaluespacesubscriber/tst_qvaluespacesubscribershared.cpp Mon May 03 13:18:40 2010 +0300 @@ -52,6 +52,7 @@ #include #include #include +#include #include @@ -62,7 +63,7 @@ #define ERROR_SETVALUE_NOT_SUPPORTED 1 -#ifdef Q_OS_SYMBIAN +#if defined(Q_OS_SYMBIAN)// || defined (Q_OS_LINUX) #define QTRY_COMPARE(a,e) \ for (int _i = 0; _i < 100; _i++) { \ if ((a) == (e)) break; \ @@ -458,11 +459,7 @@ QValueSpaceSubscriber *subscriber = qvariant_cast(testItem); QCOMPARE(subscriber->parent(), (QObject*)this); QCOMPARE(subscriber->value(), value); - #ifdef Q_OS_SYMBIAN - QVERIFY(subscriber->subPaths().toSet().contains(subPaths.toSet())); - #else - QCOMPARE(subscriber->subPaths().toSet(), subPaths.toSet()); - #endif + QVERIFY(subscriber->subPaths().toSet().contains(subPaths.toSet())); QCOMPARE(subscriber->path(), path); QCOMPARE(subscriber->value(relItemPath, 100).toInt(), expectedValue); } @@ -529,43 +526,23 @@ << "double" << "float" << "QChar"; QCOMPARE(subscriber.path(), QLatin1String("/")); - #ifdef Q_OS_SYMBIAN - QVERIFY(subscriber.subPaths().toSet().contains(rootPaths.toSet())); - #else - QCOMPARE(subscriber.subPaths().toSet(), rootPaths.toSet()); - #endif + QVERIFY(subscriber.subPaths().toSet().contains(rootPaths.toSet())); subscriber.cd("home"); QCOMPARE(subscriber.path(), QLatin1String("/home")); - #ifdef Q_OS_SYMBIAN - QVERIFY(subscriber.subPaths().toSet().contains(homePaths.toSet())); - #else - QCOMPARE(subscriber.subPaths().toSet(), homePaths.toSet()); - #endif + QVERIFY(subscriber.subPaths().toSet().contains(homePaths.toSet())); subscriber.cd("user"); QCOMPARE(subscriber.path(), QLatin1String("/home/user")); - #ifdef Q_OS_SYMBIAN - QVERIFY(subscriber.subPaths().toSet().contains(homeUserPaths.toSet())); - #else - QCOMPARE(subscriber.subPaths().toSet(), homeUserPaths.toSet()); - #endif + QVERIFY(subscriber.subPaths().toSet().contains(homeUserPaths.toSet())); subscriber.cdUp(); QCOMPARE(subscriber.path(), QLatin1String("/home")); - #ifdef Q_OS_SYMBIAN - QVERIFY(subscriber.subPaths().toSet().contains(homePaths.toSet())); - #else - QCOMPARE(subscriber.subPaths().toSet(), homePaths.toSet()); - #endif + QVERIFY(subscriber.subPaths().toSet().contains(homePaths.toSet())); subscriber.cd("/home/user"); QCOMPARE(subscriber.path(), QLatin1String("/home/user")); - #ifdef Q_OS_SYMBIAN - QVERIFY(subscriber.subPaths().toSet().contains(homeUserPaths.toSet())); - #else - QCOMPARE(subscriber.subPaths().toSet(), homeUserPaths.toSet()); - #endif + QVERIFY(subscriber.subPaths().toSet().contains(homeUserPaths.toSet())); } void tst_QValueSpaceSubscriber::contentsChanged_data() @@ -723,6 +700,14 @@ subscriber.property("value"); } + #ifdef Q_OS_LINUX + //Wait for possible asynchronously emitted signals + QEventLoop loop; + QTimer::singleShot(100, &loop, SLOT(quit())); + loop.exec(); + spy->clear(); + #endif + QCOMPARE(spy->count(), 0); busy->setValue("alex/busy", new_value); @@ -773,7 +758,7 @@ QCOMPARE(base.value("home/user/int", 5).toInt(), 3); QCOMPARE(base.value("home/user/QByteArray", QByteArray("invalid")).toByteArray(), QByteArray("testByteArray")); - QCOMPARE(base.value("home/user/double", 4.0).toDouble(), double(4.56)); + QVERIFY(fabs(base.value("home/user/double", 4.0).toDouble() - double(4.56)) < 0.01); //QCOMPARE(base.value("home/user/float", 4.0).toDouble(), (double)4.56); QValueSpaceSubscriber base1(layer->id(), QString("/home")); @@ -783,7 +768,7 @@ QCOMPARE(base1.value("user/int", 5).toInt(), 3); QCOMPARE(base1.value("user/QByteArray", QByteArray("invalid")).toByteArray(), QByteArray("testByteArray")); - QCOMPARE(base1.value("user/double", 4.0).toDouble(), double(4.56)); + QVERIFY(fabs(base.value("home/user/double", 4.0).toDouble() - double(4.56)) < 0.01); //QCOMPARE(base1.value("user/float", 4.0).toDouble(), double(4.56)); QValueSpaceSubscriber base2(layer->id(), QString("/home/user")); @@ -793,7 +778,7 @@ QCOMPARE(base2.value("int", 5).toInt(), 3); QCOMPARE(base2.value("QByteArray", QByteArray("invalid")).toByteArray(), QByteArray("testByteArray")); - QCOMPARE(base2.value("double", 4.0).toDouble(), double(4.56)); + QVERIFY(fabs(base.value("home/user/double", 4.0).toDouble() - double(4.56)) < 0.01); //QCOMPARE(base2.value("float", 4.0).toDouble(), 4.56); } @@ -828,7 +813,11 @@ QProcess process; process.setProcessChannelMode(QProcess::ForwardedChannels); +#ifdef Q_OS_UNIX + process.start("./vsiTestLackey", QStringList() << "-ipcTests" << layer->id().toString()); +#else process.start("vsiTestLackey", QStringList() << "-ipcTests" << layer->id().toString()); +#endif QVERIFY(process.waitForStarted()); //lackey sets value to 100 as part of its startup @@ -900,7 +889,11 @@ QProcess process; process.setProcessChannelMode(QProcess::ForwardedChannels); +#ifdef Q_OS_UNIX + process.start("./vsiTestLackey", QStringList() << "-ipcRemoveKey" << layer->id().toString()); +#else process.start("vsiTestLackey", QStringList() << "-ipcRemoveKey" << layer->id().toString()); +#endif QVERIFY(process.waitForStarted()); // Wait for lackey to create "value". @@ -1041,8 +1034,13 @@ QProcess process; process.setProcessChannelMode(QProcess::ForwardedChannels); +#ifdef Q_OS_UNIX + process.start("./vsiTestLackey", QStringList() + << "-ipcInterestNotification" << layer->id().toString()); +#else process.start("vsiTestLackey", QStringList() << "-ipcInterestNotification" << layer->id().toString()); +#endif QVERIFY(process.waitForStarted()); // Lackey will receive interestChanged from server and set the attribute. @@ -1080,7 +1078,7 @@ Q_OBJECT public: - WriteThread(); + WriteThread(const QUuid& layerId); void setDone(); @@ -1090,10 +1088,11 @@ private: QValueSpacePublisher *publisher; bool done; + const QUuid& layerId; }; -WriteThread::WriteThread() -: publisher(0), done(false) +WriteThread::WriteThread(const QUuid& layerId) +: publisher(0), done(false), layerId(layerId) { } @@ -1106,7 +1105,7 @@ { QTest::qWait(100); // give some ReadThreads some time to start. - QValueSpacePublisher publisher("/threads"); + QValueSpacePublisher publisher(layerId, "/threads"); uint value = 0; while (!done) { @@ -1122,7 +1121,7 @@ Q_OBJECT public: - ReadThread(QValueSpaceSubscriber *subscriber, bool sync); + ReadThread(QValueSpaceSubscriber *subscriber, bool sync, const QUuid& layerId); protected: void run(); @@ -1131,18 +1130,18 @@ QValueSpaceSubscriber *masterSubscriber; int iterations; bool synchronised; + const QUuid& layerId; }; -ReadThread::ReadThread(QValueSpaceSubscriber *subscriber, bool sync) -: masterSubscriber(subscriber), iterations(0), synchronised(sync) +ReadThread::ReadThread(QValueSpaceSubscriber *subscriber, bool sync, const QUuid& layerId) +: masterSubscriber(subscriber), iterations(0), synchronised(sync), layerId(layerId) { } void ReadThread::run() { while (true) { - QValueSpaceSubscriber subscriber; - subscriber.setPath(masterSubscriber); + QValueSpaceSubscriber subscriber(layerId, masterSubscriber->path()); if (synchronised) { QEventLoop loop; @@ -1163,39 +1162,60 @@ { QTest::addColumn("threads"); QTest::addColumn("synchronised"); + QTest::addColumn("layerId"); - QTest::newRow("1 thread") << uint(1) << true; - QTest::newRow("2 threads") << uint(2) << true; + QList layers = QValueSpaceManager::instance()->getLayers(); + + int foundLayers = 0; + for (int i = 0; i < layers.count(); ++i) { + QAbstractValueSpaceLayer *layer = layers.at(i); + + //GConfLayer can't provide thread-safety because it eventually depends on + //DBus which isn't fully thread-safe + if (layer->id() == QVALUESPACE_GCONF_LAYER) { + continue; + } + + const QUuid id = layer->id(); + + QTest::newRow("1 thread") << uint(1) << true << id; + QTest::newRow("2 threads") << uint(2) << true << id; #if defined(Q_OS_WINCE) || defined(Q_OS_SYMBIAN) - QTest::newRow("10 threads") << uint(10) << true; + QTest::newRow("10 threads") << uint(10) << true << id; #else - QTest::newRow("100 threads") << uint(100) << true; + QTest::newRow("100 threads") << uint(100) << true << id; #endif - QTest::newRow("1 thread, unsynchronised") << uint(1) << false; - QTest::newRow("2 threads, unsynchronised") << uint(2) << false; + QTest::newRow("1 thread, unsynchronised") << uint(1) << false << id; + QTest::newRow("2 threads, unsynchronised") << uint(2) << false << id; #if defined(Q_OS_WINCE) || defined(Q_OS_SYMBIAN) - QTest::newRow("10 threads") << uint(10) << false; + QTest::newRow("10 threads") << uint(10) << false << id; #else - QTest::newRow("100 threads, unsynchronised") << uint(100) << false; + QTest::newRow("100 threads, unsynchronised") << uint(100) << false << id; #endif + foundLayers++; + } + + if (foundLayers == 0) + QSKIP("No layers providing thread-safety found", SkipAll); } void tst_QValueSpaceSubscriber::threads() { QFETCH(unsigned int, threads); QFETCH(bool, synchronised); + QFETCH(QUuid, layerId); QEventLoop writeLoop; - WriteThread *writeThread = new WriteThread; + WriteThread *writeThread = new WriteThread(layerId); connect(writeThread, SIGNAL(finished()), &writeLoop, SLOT(quit())); writeThread->start(); - QValueSpaceSubscriber masterSubscriber("/threads/value"); + QValueSpaceSubscriber masterSubscriber(layerId, "/threads/value"); QVector readThreads(threads); for (unsigned int i = 0; i < threads; ++i) { - readThreads[i] = new ReadThread(&masterSubscriber, synchronised); + readThreads[i] = new ReadThread(&masterSubscriber, synchronised, layerId); readThreads[i]->start(); } @@ -1214,10 +1234,10 @@ writeLoop.exec(); delete writeThread; - #ifdef Q_OS_SYMBIAN - QValueSpacePublisher resetPublisher("/threads"); - resetPublisher.resetValue("value"); - #endif +#ifdef Q_OS_SYMBIAN + QValueSpacePublisher resetPublisher(layerId, "/threads"); + resetPublisher.resetValue("value"); +#endif } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvcard21writer/qvcard21writer.pro --- a/qtmobility/tests/auto/qvcard21writer/qvcard21writer.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qvcard21writer/qvcard21writer.pro Mon May 03 13:18:40 2010 +0300 @@ -16,8 +16,8 @@ ../../../src/contacts/requests \ ../../../src/contacts/filters -HEADERS += ut_qvcard21writer.h -SOURCES += ut_qvcard21writer.cpp +HEADERS += tst_qvcard21writer.h +SOURCES += tst_qvcard21writer.cpp CONFIG += mobility MOBILITY = contacts versit diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvcard21writer/tst_qvcard21writer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qvcard21writer/tst_qvcard21writer.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,348 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "tst_qvcard21writer.h" +#include "qvcard21writer_p.h" +#include "qversitproperty.h" +#include "qversitdocument.h" +#include +#include +#include + +// This says "NOKIA" in Katakana +const QString KATAKANA_NOKIA(QString::fromUtf8("\xe3\x83\x8e\xe3\x82\xad\xe3\x82\xa2")); + +QTM_USE_NAMESPACE + +Q_DECLARE_METATYPE(QVersitProperty) + +void tst_QVCard21Writer::init() +{ + mWriter = new QVCard21Writer; + mWriter->setCodec(QTextCodec::codecForName("ISO_8859-1")); +} + +void tst_QVCard21Writer::cleanup() +{ + delete mWriter; +} + +void tst_QVCard21Writer::testEncodeVersitProperty() +{ + QFETCH(QVersitProperty, property); + QFETCH(QByteArray, expectedResult); + QFETCH(QByteArray, codec); + QTextCodec* textCodec = QTextCodec::codecForName(codec); + QByteArray encodedProperty; + QBuffer buffer(&encodedProperty); + mWriter->setDevice(&buffer); + mWriter->setCodec(textCodec); + buffer.open(QIODevice::WriteOnly); + + mWriter->encodeVersitProperty(property); + QCOMPARE(encodedProperty, expectedResult); +} + +void tst_QVCard21Writer::testEncodeVersitProperty_data() +{ + QTest::addColumn("property"); + QTest::addColumn("expectedResult"); + QTest::addColumn("codec"); + + QVersitProperty property; + QByteArray expectedResult; + QByteArray codec("ISO-8859_1"); + + // normal case + property.setName(QString::fromAscii("FN")); + property.setValue(QString::fromAscii("John Citizen")); + property.setValueType(QVersitProperty::PlainType); + expectedResult = "FN:John Citizen\r\n"; + QTest::newRow("No parameters") << property << expectedResult << codec; + + // Structured N - escaping should happen for semicolons, not for commas + property.setName(QLatin1String("N")); + property.setValue(QStringList() + << QLatin1String("La;st") // needs to be backslash escaped + << QLatin1String("Fi,rst") + << QLatin1String("Mi:ddle") + << QLatin1String("Pr\\efix") // needs to be QP encoded + << QLatin1String("Suffix")); + property.setValueType(QVersitProperty::CompoundType); + expectedResult = "N;ENCODING=QUOTED-PRINTABLE:La\\;st;Fi,rst;Mi:ddle;Pr=5Cefix;Suffix\r\n"; + QTest::newRow("N property") << property << expectedResult << codec; + + // Structured CATEGORIES - escaping should happen for commas, not semicolons + property.setName(QLatin1String("CATEGORIES")); + property.setValue(QStringList() + << QLatin1String("re;d") + << QLatin1String("gr,een") + << QLatin1String("bl:ue")); + property.setValueType(QVersitProperty::ListType); + expectedResult = "CATEGORIES:re;d,gr\\,een,bl:ue\r\n"; + QTest::newRow("CATEGORIES property") << property << expectedResult << codec; + + // With parameter(s). No special characters in the value. + // -> No need to Quoted-Printable encode the value. + expectedResult = "TEL;HOME:123\r\n"; + property.setName(QString::fromAscii("TEL")); + property.setValue(QString::fromAscii("123")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("HOME")); + QTest::newRow("With parameters, plain value") << property << expectedResult << codec; + + expectedResult = "EMAIL;HOME;ENCODING=QUOTED-PRINTABLE:john.citizen=40example.com\r\n"; + property.setName(QString::fromAscii("EMAIL")); + property.setValue(QString::fromAscii("john.citizen@example.com")); + QTest::newRow("With parameters, special value") << property << expectedResult << codec; + + // AGENT property with parameter + expectedResult = +"AGENT;X-PARAMETER=VALUE:\r\n\ +BEGIN:VCARD\r\n\ +VERSION:2.1\r\n\ +FN:Secret Agent\r\n\ +END:VCARD\r\n\ +\r\n"; + property.setParameters(QMultiHash()); + property.setName(QString::fromAscii("AGENT")); + property.setValue(QString()); + property.insertParameter(QString::fromAscii("X-PARAMETER"),QString::fromAscii("VALUE")); + QVersitDocument document; + QVersitProperty embeddedProperty; + embeddedProperty.setName(QString(QString::fromAscii("FN"))); + embeddedProperty.setValue(QString::fromAscii("Secret Agent")); + document.addProperty(embeddedProperty); + property.setValue(QVariant::fromValue(document)); + QTest::newRow("AGENT property") << property << expectedResult << codec; + + // Value is base64 encoded. + // Check that the extra folding and the line break are added + QByteArray value("value"); + expectedResult = "Springfield.HOUSE.PHOTO;ENCODING=BASE64:\r\n " + value.toBase64() + "\r\n\r\n"; + QStringList groups(QString::fromAscii("Springfield")); + groups.append(QString::fromAscii("HOUSE")); + property.setGroups(groups); + property.setParameters(QMultiHash()); + property.setName(QString::fromAscii("PHOTO")); + property.setValue(value); + QTest::newRow("base64 encoded") << property << expectedResult << codec; + + // Characters other than ASCII: + expectedResult = "ORG;CHARSET=UTF-8:" + KATAKANA_NOKIA.toUtf8() + "\r\n"; + property = QVersitProperty(); + property.setName(QLatin1String("ORG")); + property.setValue(KATAKANA_NOKIA); + QTest::newRow("non-ASCII") << property << expectedResult << codec; + + // In Shift-JIS codec. + QTextCodec* jisCodec = QTextCodec::codecForName("Shift-JIS"); + expectedResult = jisCodec->fromUnicode( + QLatin1String("ORG:") + KATAKANA_NOKIA + QLatin1String("\r\n")); + property = QVersitProperty(); + property.setName(QLatin1String("ORG")); + property.setValue(KATAKANA_NOKIA); + QTest::newRow("JIS codec") << property << expectedResult << QByteArray("Shift-JIS"); + + // CHARSET and QUOTED-PRINTABLE + expectedResult = "EMAIL;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:john=40" + + KATAKANA_NOKIA.toUtf8() + ".com\r\n"; + property = QVersitProperty(); + property.setName(QLatin1String("EMAIL")); + property.setValue(QString::fromAscii("john@%1.com").arg(KATAKANA_NOKIA)); + QTest::newRow("Charset and QP") << property << expectedResult << codec; +} + +void tst_QVCard21Writer::testEncodeParameters() +{ + QByteArray encodedParameters; + QBuffer buffer(&encodedParameters); + mWriter->setDevice(&buffer); + buffer.open(QIODevice::WriteOnly); + + QString typeParameterName(QString::fromAscii("TYPE")); + QString encodingParameterName(QString::fromAscii("ENCODING")); + + // No parameters + QMultiHash parameters; + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray("")); + + // One TYPE parameter + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + encodedParameters.clear(); + buffer.open(QIODevice::WriteOnly); + parameters.insert(typeParameterName,QString::fromAscii("HOME")); + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray(";HOME")); + + // Two TYPE parameters + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + encodedParameters.clear(); + buffer.open(QIODevice::WriteOnly); + parameters.insert(typeParameterName,QString::fromAscii("VOICE")); + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray(";VOICE;HOME")); + + // One ENCODING parameter + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + encodedParameters.clear(); + buffer.open(QIODevice::WriteOnly); + parameters.clear(); + parameters.insert(encodingParameterName,QString::fromAscii("8BIT")); + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray(";ENCODING=8BIT")); + + // Two parameters + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + encodedParameters.clear(); + buffer.open(QIODevice::WriteOnly); + parameters.insert(QString::fromAscii("X-PARAM"),QString::fromAscii("VALUE")); + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray(";X-PARAM=VALUE;ENCODING=8BIT")); +} + +void tst_QVCard21Writer::testEncodeGroupsAndName() +{ + QVersitProperty property; + QByteArray result; + QBuffer buffer(&result); + mWriter->setDevice(&buffer); + buffer.open(QIODevice::WriteOnly); + + // No groups + + property.setName(QString::fromAscii("name")); + QByteArray expected("NAME"); + mWriter->encodeGroupsAndName(property); + QCOMPARE(result, expected); + + // One group + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + result.clear(); + buffer.open(QIODevice::WriteOnly); + property.setGroups(QStringList(QString::fromAscii("group"))); + expected = "group.NAME"; + mWriter->encodeGroupsAndName(property); + QCOMPARE(result, expected); + + // Two groups + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + result.clear(); + buffer.open(QIODevice::WriteOnly); + QStringList groups(QString::fromAscii("group1")); + groups.append(QString::fromAscii("group2")); + property.setGroups(groups); + expected = "group1.group2.NAME"; + mWriter->encodeGroupsAndName(property); + QCOMPARE(result, expected); +} + + +void tst_QVCard21Writer::testQuotedPrintableEncode() +{ + QByteArray encodedBytes; + + // Nothing to encode + QString nothingToEncode(QLatin1String("nothing to encode")); + QVERIFY(!mWriter->quotedPrintableEncode(nothingToEncode)); + + // Special characters + QString inputOutput(QLatin1String("\n")); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=0A")); + inputOutput = QLatin1String("\r"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=0D")); + inputOutput = QLatin1String("!"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=21")); + inputOutput = QLatin1String("\""); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=22")); + inputOutput = QLatin1String("#"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=23")); + inputOutput = QLatin1String("$"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=24")); + inputOutput = QLatin1String("="); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=3D")); + inputOutput = QLatin1String("@"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=40")); + inputOutput = QLatin1String("["); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=5B")); + inputOutput = QLatin1String("\\"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=5C")); + inputOutput = QLatin1String("]"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=5D")); + inputOutput = QLatin1String("^"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=5E")); + inputOutput = QLatin1String("`"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=60")); + inputOutput = QLatin1String("{"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=7B")); + inputOutput = QLatin1String("|"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=7C")); + inputOutput = QLatin1String("}"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=7D")); + inputOutput = QLatin1String("~"); + QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); + QCOMPARE(inputOutput, QLatin1String("=7E")); +} + +QTEST_MAIN(tst_QVCard21Writer) + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvcard21writer/tst_qvcard21writer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qvcard21writer/tst_qvcard21writer.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,72 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 tst_QVCARD21WRITER_H +#define tst_QVCARD21WRITER_H + +#include +#include + + +QTM_BEGIN_NAMESPACE +class QVCard21Writer; +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE +class tst_QVCard21Writer : public QObject +{ + Q_OBJECT + +private slots: // Tests + + void init(); + void cleanup(); + + void testEncodeVersitProperty(); + void testEncodeVersitProperty_data(); + void testEncodeParameters(); + void testEncodeGroupsAndName(); + void testQuotedPrintableEncode(); +private: // Data + QVCard21Writer* mWriter; +}; + +#endif // tst_QVCARD21WRITER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvcard21writer/ut_qvcard21writer.cpp --- a/qtmobility/tests/auto/qvcard21writer/ut_qvcard21writer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,345 +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 Qt Mobility Components. -** -** $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 "ut_qvcard21writer.h" -#include "qvcard21writer_p.h" -#include "qversitproperty.h" -#include "qversitdocument.h" -#include -#include -#include - -// This says "NOKIA" in Katakana -const QString KATAKANA_NOKIA(QString::fromUtf8("\xe3\x83\x8e\xe3\x82\xad\xe3\x82\xa2")); - -QTM_USE_NAMESPACE - -void UT_QVCard21Writer::init() -{ - mWriter = new QVCard21Writer; - mWriter->setCodec(QTextCodec::codecForName("ISO_8859-1")); -} - -void UT_QVCard21Writer::cleanup() -{ - delete mWriter; -} - -void UT_QVCard21Writer::testEncodeVersitProperty() -{ - QByteArray encodedProperty; - QBuffer buffer(&encodedProperty); - mWriter->setDevice(&buffer); - buffer.open(QIODevice::WriteOnly); - - // No parameters - QByteArray expectedResult = "FN:John Citizen\r\n"; - QVersitProperty property; - property.setName(QString::fromAscii("FN")); - property.setValue(QString::fromAscii("John Citizen")); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // With parameter(s). No special characters in the value. - // -> No need to Quoted-Printable encode the value. - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = "TEL;HOME:123\r\n"; - property.setName(QString::fromAscii("TEL")); - property.setValue(QString::fromAscii("123")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("HOME")); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // With parameter(s). Special characters in the value. - // -> The value needs to be Quoted-Printable encoded. - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = "EMAIL;HOME;ENCODING=QUOTED-PRINTABLE:john.citizen=40example.com\r\n"; - property.setName(QString::fromAscii("EMAIL")); - property.setValue(QString::fromAscii("john.citizen@example.com")); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // AGENT property with parameter - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = -"AGENT;X-PARAMETER=VALUE:\r\n\ -BEGIN:VCARD\r\n\ -VERSION:2.1\r\n\ -FN:Secret Agent\r\n\ -END:VCARD\r\n\ -\r\n"; - property.setParameters(QMultiHash()); - property.setName(QString::fromAscii("AGENT")); - property.setValue(QString()); - property.insertParameter(QString::fromAscii("X-PARAMETER"),QString::fromAscii("VALUE")); - QVersitDocument document; - QVersitProperty embeddedProperty; - embeddedProperty.setName(QString(QString::fromAscii("FN"))); - embeddedProperty.setValue(QString::fromAscii("Secret Agent")); - document.addProperty(embeddedProperty); - property.setValue(QVariant::fromValue(document)); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // Value is base64 encoded. - // Check that the extra folding and the line break are added - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - QByteArray value("value"); - expectedResult = "Springfield.HOUSE.PHOTO;ENCODING=BASE64:\r\n " + value.toBase64() + "\r\n\r\n"; - QStringList groups(QString::fromAscii("Springfield")); - groups.append(QString::fromAscii("HOUSE")); - property.setGroups(groups); - property.setParameters(QMultiHash()); - property.setName(QString::fromAscii("PHOTO")); - property.setValue(value); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // Characters other than ASCII: - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = "ORG;CHARSET=UTF-8:" + KATAKANA_NOKIA.toUtf8() + "\r\n"; - property = QVersitProperty(); - property.setName(QLatin1String("ORG")); - property.setValue(KATAKANA_NOKIA); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // In Shift-JIS codec. - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - QTextCodec* jisCodec = QTextCodec::codecForName("Shift-JIS"); - expectedResult = jisCodec->fromUnicode( - QLatin1String("ORG:") + KATAKANA_NOKIA + QLatin1String("\r\n")); - property = QVersitProperty(); - property.setName(QLatin1String("ORG")); - property.setValue(KATAKANA_NOKIA); - mWriter->setCodec(jisCodec); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // CHARSET and QUOTED-PRINTABLE - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = "EMAIL;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:john=40" - + KATAKANA_NOKIA.toUtf8() + ".com\r\n"; - property = QVersitProperty(); - property.setName(QLatin1String("EMAIL")); - property.setValue(QString::fromAscii("john@%1.com").arg(KATAKANA_NOKIA)); - mWriter->setCodec(QTextCodec::codecForName("ISO_8859-1")); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); -} - -void UT_QVCard21Writer::testEncodeParameters() -{ - QByteArray encodedParameters; - QBuffer buffer(&encodedParameters); - mWriter->setDevice(&buffer); - buffer.open(QIODevice::WriteOnly); - - QString typeParameterName(QString::fromAscii("TYPE")); - QString encodingParameterName(QString::fromAscii("ENCODING")); - - // No parameters - QMultiHash parameters; - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray("")); - - // One TYPE parameter - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedParameters.clear(); - buffer.open(QIODevice::WriteOnly); - parameters.insert(typeParameterName,QString::fromAscii("HOME")); - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray(";HOME")); - - // Two TYPE parameters - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedParameters.clear(); - buffer.open(QIODevice::WriteOnly); - parameters.insert(typeParameterName,QString::fromAscii("VOICE")); - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray(";VOICE;HOME")); - - // One ENCODING parameter - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedParameters.clear(); - buffer.open(QIODevice::WriteOnly); - parameters.clear(); - parameters.insert(encodingParameterName,QString::fromAscii("8BIT")); - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray(";ENCODING=8BIT")); - - // Two parameters - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedParameters.clear(); - buffer.open(QIODevice::WriteOnly); - parameters.insert(QString::fromAscii("X-PARAM"),QString::fromAscii("VALUE")); - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray(";X-PARAM=VALUE;ENCODING=8BIT")); -} - -void UT_QVCard21Writer::testEncodeGroupsAndName() -{ - QVersitProperty property; - QByteArray result; - QBuffer buffer(&result); - mWriter->setDevice(&buffer); - buffer.open(QIODevice::WriteOnly); - - // No groups - - property.setName(QString::fromAscii("name")); - QByteArray expected("NAME"); - mWriter->encodeGroupsAndName(property); - QCOMPARE(result, expected); - - // One group - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - result.clear(); - buffer.open(QIODevice::WriteOnly); - property.setGroups(QStringList(QString::fromAscii("group"))); - expected = "group.NAME"; - mWriter->encodeGroupsAndName(property); - QCOMPARE(result, expected); - - // Two groups - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - result.clear(); - buffer.open(QIODevice::WriteOnly); - QStringList groups(QString::fromAscii("group1")); - groups.append(QString::fromAscii("group2")); - property.setGroups(groups); - expected = "group1.group2.NAME"; - mWriter->encodeGroupsAndName(property); - QCOMPARE(result, expected); -} - - -void UT_QVCard21Writer::testQuotedPrintableEncode() -{ - QByteArray encodedBytes; - - // Nothing to encode - QString nothingToEncode(QLatin1String("nothing to encode")); - QVERIFY(!mWriter->quotedPrintableEncode(nothingToEncode)); - - // Special characters - QString inputOutput(QLatin1String("\n")); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=0A")); - inputOutput = QLatin1String("\r"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=0D")); - inputOutput = QLatin1String("!"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=21")); - inputOutput = QLatin1String("\""); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=22")); - inputOutput = QLatin1String("#"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=23")); - inputOutput = QLatin1String("$"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=24")); - inputOutput = QLatin1String("="); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=3D")); - inputOutput = QLatin1String("@"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=40")); - inputOutput = QLatin1String("["); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=5B")); - inputOutput = QLatin1String("\\"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=5C")); - inputOutput = QLatin1String("]"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=5D")); - inputOutput = QLatin1String("^"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=5E")); - inputOutput = QLatin1String("`"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=60")); - inputOutput = QLatin1String("{"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=7B")); - inputOutput = QLatin1String("|"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=7C")); - inputOutput = QLatin1String("}"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=7D")); - inputOutput = QLatin1String("~"); - QVERIFY(mWriter->quotedPrintableEncode(inputOutput)); - QCOMPARE(inputOutput, QLatin1String("=7E")); -} - -QTEST_MAIN(UT_QVCard21Writer) - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvcard21writer/ut_qvcard21writer.h --- a/qtmobility/tests/auto/qvcard21writer/ut_qvcard21writer.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +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 Qt Mobility Components. -** -** $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 UT_QVCARD21WRITER_H -#define UT_QVCARD21WRITER_H - -#include -#include - - -QTM_BEGIN_NAMESPACE -class QVCard21Writer; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE -class UT_QVCard21Writer : public QObject -{ - Q_OBJECT - -private slots: // Tests - - void init(); - void cleanup(); - - void testEncodeVersitProperty(); - void testEncodeParameters(); - void testEncodeGroupsAndName(); - void testQuotedPrintableEncode(); - -private: // Data - QVCard21Writer* mWriter; -}; - -#endif // UT_QVCARD21WRITER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvcard30writer/qvcard30writer.pro --- a/qtmobility/tests/auto/qvcard30writer/qvcard30writer.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qvcard30writer/qvcard30writer.pro Mon May 03 13:18:40 2010 +0300 @@ -16,8 +16,8 @@ ../../../src/contacts/requests \ ../../../src/contacts/filters -HEADERS += ut_qvcard30writer.h -SOURCES += ut_qvcard30writer.cpp +HEADERS += tst_qvcard30writer.h +SOURCES += tst_qvcard30writer.cpp CONFIG += mobility MOBILITY = contacts versit diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvcard30writer/tst_qvcard30writer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qvcard30writer/tst_qvcard30writer.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,307 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "tst_qvcard30writer.h" +#include "qvcard30writer_p.h" +#include "qversitdocument.h" +#include "qversitproperty.h" +#include +#include +#include + +// This says "NOKIA" in Katakana encoded with UTF-8 +const QString KATAKANA_NOKIA(QString::fromUtf8("\xe3\x83\x8e\xe3\x82\xad\xe3\x82\xa2")); + +QTM_USE_NAMESPACE + +Q_DECLARE_METATYPE(QVersitProperty) + +void tst_QVCard30Writer::init() +{ + mWriter = new QVCard30Writer; + mWriter->setCodec(QTextCodec::codecForName("UTF-8")); +} + +void tst_QVCard30Writer::cleanup() +{ + delete mWriter; +} + +void tst_QVCard30Writer::testEncodeVersitProperty() +{ + QFETCH(QVersitProperty, property); + QFETCH(QByteArray, expectedResult); + QByteArray encodedProperty; + QBuffer buffer(&encodedProperty); + mWriter->setDevice(&buffer); + buffer.open(QIODevice::WriteOnly); + mWriter->encodeVersitProperty(property); + QCOMPARE(encodedProperty, expectedResult); +} + + +void tst_QVCard30Writer::testEncodeVersitProperty_data() +{ + QTest::addColumn("property"); + QTest::addColumn("expectedResult"); + + QVersitProperty property; + QByteArray expectedResult; + + // No parameters + expectedResult = "FN:John Citizen\r\n"; + property.setName(QString::fromAscii("FN")); + property.setValue(QString::fromAscii("John Citizen")); + QTest::newRow("No parameters") << property << expectedResult; + + // With parameter(s) + expectedResult = "TEL;TYPE=HOME:123\r\n"; + property.setName(QString::fromAscii("TEL")); + property.setValue(QString::fromAscii("123")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("HOME")); + QTest::newRow("With parameters, plain value") << property << expectedResult; + + // normal FN property is backslash escaped + property.clear(); + property.setName(QLatin1String("FN")); + property.setValue(QLatin1String(";,:\\")); + // semicolons, commas and backslashes are escaped (not colons, as per RFC2426) + expectedResult = "FN:\\;\\,:\\\\\r\n"; + QTest::newRow("FN property") << property << expectedResult; + + // Structured N + property.setName(QLatin1String("N")); + property.setValue(QStringList() + << QLatin1String("La;st") // needs to be backslash escaped + << QLatin1String("Fi,rst") + << QLatin1String("Mi:ddle") + << QLatin1String("Pr\\efix") // needs to be QP encoded + << QLatin1String("Suffix")); + property.setValueType(QVersitProperty::CompoundType); + expectedResult = "N:La\\;st;Fi\\,rst;Mi:ddle;Pr\\\\efix;Suffix\r\n"; + QTest::newRow("N property") << property << expectedResult; + + // Structured CATEGORIES + property.setName(QLatin1String("CATEGORIES")); + property.setValue(QStringList() + << QLatin1String("re;d") + << QLatin1String("gr,een") + << QLatin1String("bl:ue") + << QLatin1String("ye\\llow")); + property.setValueType(QVersitProperty::ListType); + expectedResult = "CATEGORIES:re\\;d,gr\\,een,bl:ue,ye\\\\llow\r\n"; + QTest::newRow("CATEGORIES property") << property << expectedResult; + + // Convert X-NICKNAME to NICKNAME + expectedResult = "NICKNAME:Jack\r\n"; + property.setParameters(QMultiHash()); + property.setName(QString::fromAscii("X-NICKNAME")); + property.setValue(QString::fromAscii("Jack")); + QTest::newRow("NICKNAME property") << property << expectedResult; + + // Convert X-IMPP to IMPP; + expectedResult = "IMPP:msn:msn-address\r\n"; + property.setParameters(QMultiHash()); + property.setName(QString::fromAscii("X-IMPP")); + property.setValue(QString::fromAscii("msn:msn-address")); + QTest::newRow("IMPP property") << property << expectedResult; + + // AGENT property + expectedResult = "AGENT:BEGIN:VCARD\\nVERSION:3.0\\nFN:Secret Agent\\nEND:VCARD\\n\r\n"; + property.setName(QString::fromAscii("AGENT")); + property.setValue(QString()); + QVersitDocument document; + QVersitProperty embeddedProperty; + embeddedProperty.setName(QString(QString::fromAscii("FN"))); + embeddedProperty.setValue(QString::fromAscii("Secret Agent")); + document.addProperty(embeddedProperty); + property.setValue(QVariant::fromValue(document)); + QTest::newRow("AGENT property") << property << expectedResult; + + // Value is base64 encoded. + QByteArray value("value"); + expectedResult = "Springfield.HOUSE.PHOTO;ENCODING=B:" + value.toBase64() + "\r\n"; + QStringList groups(QString::fromAscii("Springfield")); + groups.append(QString::fromAscii("HOUSE")); + property.setGroups(groups); + property.setParameters(QMultiHash()); + property.setName(QString::fromAscii("PHOTO")); + property.setValue(value); + QTest::newRow("base64 encoded") << property << expectedResult; + + // Characters other than ASCII: + expectedResult = "ORG:" + KATAKANA_NOKIA.toUtf8() + "\r\n"; + property = QVersitProperty(); + property.setName(QLatin1String("ORG")); + property.setValue(KATAKANA_NOKIA); + QTest::newRow("non-ASCII") << property << expectedResult; + + // No CHARSET and QUOTED-PRINTABLE parameters + expectedResult = "EMAIL:john@" + KATAKANA_NOKIA.toUtf8() + ".com\r\n"; + property = QVersitProperty(); + property.setName(QLatin1String("EMAIL")); + property.setValue(QString::fromAscii("john@%1.com").arg(KATAKANA_NOKIA)); + QTest::newRow("special chars") << property << expectedResult; +} + +void tst_QVCard30Writer::testEncodeParameters() +{ + QByteArray encodedParameters; + QBuffer buffer(&encodedParameters); + mWriter->setDevice(&buffer); + buffer.open(QIODevice::WriteOnly); + + QString typeParameterName(QString::fromAscii("TYPE")); + QString encodingParameterName(QString::fromAscii("ENCODING")); + + // No parameters + QMultiHash parameters; + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray("")); + + // One TYPE parameter + parameters.insert(typeParameterName,QString::fromAscii("HOME")); + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + encodedParameters.clear(); + buffer.open(QIODevice::WriteOnly); + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray(";TYPE=HOME")); + + // Two TYPE parameters + parameters.insert(typeParameterName,QString::fromAscii("VOICE")); + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + encodedParameters.clear(); + buffer.open(QIODevice::WriteOnly); + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray(";TYPE=VOICE,HOME")); + + // One ENCODING parameter + parameters.clear(); + parameters.insert(encodingParameterName,QString::fromAscii("8BIT")); + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + encodedParameters.clear(); + buffer.open(QIODevice::WriteOnly); + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray(";ENCODING=8BIT")); + + // Two parameters + parameters.insert(QString::fromAscii("X-PARAM"),QString::fromAscii("VALUE")); + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + encodedParameters.clear(); + buffer.open(QIODevice::WriteOnly); + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray(";X-PARAM=VALUE;ENCODING=8BIT")); + + // Parameter with characters that require backslash escaping + parameters.clear(); + parameters.insert(QString::fromAscii("X-P;ARAM"),QString::fromAscii("VA,LUE")); + mWriter->writeCrlf(); // so it doesn't start folding + buffer.close(); + encodedParameters.clear(); + buffer.open(QIODevice::WriteOnly); + mWriter->encodeParameters(parameters); + QCOMPARE(encodedParameters, QByteArray(";X-P\\;ARAM=VA\\,LUE")); +} + +void tst_QVCard30Writer::testBackSlashEscape() +{ + // Empty string + QString input; + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input,QString()); + + // Nothing to escape in the string + input = QString::fromAscii("Nothing to escape"); + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input,QString::fromAscii("Nothing to escape")); + + // Line break in the beginning + input = QString::fromAscii("\r\n input"); + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input,QString::fromAscii("\\n input")); + + // Line break in the end + input = QString::fromAscii("input\r\n"); + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input,QString::fromAscii("input\\n")); + + // Semicolon in the beginning + input = QString::fromAscii(";input"); + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input,QString::fromAscii("\\;input")); + + // Semicolon in the end + input = QString::fromAscii("input;"); + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input,QString::fromAscii("input\\;")); + + // Comma in the beginning + input = QString::fromAscii(",input"); + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input,QString::fromAscii("\\,input")); + + // Comma in the end + input = QString::fromAscii("input,"); + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input,QString::fromAscii("input\\,")); + + // Backslash in the beginning + input = QString::fromAscii("\\input"); + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input,QString::fromAscii("\\\\input")); + + // Backslash in the end + input = QString::fromAscii("input\\"); + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input,QString::fromAscii("input\\\\")); + + // Line break, semicolon, backslash and comma in the middle of the string + input = QString::fromAscii("Escape these \r\n ; , \\ "); + QVCard30Writer::backSlashEscape(input); + QCOMPARE(input, QString::fromAscii("Escape these \\n \\; \\, \\\\ ")); +} + +QTEST_MAIN(tst_QVCard30Writer) + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvcard30writer/tst_qvcard30writer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qvcard30writer/tst_qvcard30writer.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,73 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 tst_QVCARD30WRITER_H +#define tst_QVCARD30WRITER_H + +#include +#include + +QTM_BEGIN_NAMESPACE + +class QVCard30Writer; + +QTM_END_NAMESPACE +QTM_USE_NAMESPACE + +class tst_QVCard30Writer : public QObject +{ + Q_OBJECT + +private slots: // Tests + + void init(); + void cleanup(); + + void testEncodeVersitProperty(); + void testEncodeVersitProperty_data(); + void testEncodeParameters(); + void testBackSlashEscape(); + +private: // Data + QVCard30Writer* mWriter; +}; + +#endif // tst_QVCARD30WRITER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvcard30writer/ut_qvcard30writer.cpp --- a/qtmobility/tests/auto/qvcard30writer/ut_qvcard30writer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,239 +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 Qt Mobility Components. -** -** $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 "ut_qvcard30writer.h" -#include "qvcard30writer_p.h" -#include "qversitdocument.h" -#include "qversitproperty.h" -#include -#include -#include - -// This says "NOKIA" in Katakana encoded with UTF-8 -const QString KATAKANA_NOKIA(QString::fromUtf8("\xe3\x83\x8e\xe3\x82\xad\xe3\x82\xa2")); - -QTM_USE_NAMESPACE - -void UT_QVCard30Writer::init() -{ - mWriter = new QVCard30Writer; - mWriter->setCodec(QTextCodec::codecForName("UTF-8")); -} - -void UT_QVCard30Writer::cleanup() -{ - delete mWriter; -} - -void UT_QVCard30Writer::testEncodeVersitProperty() -{ - QByteArray encodedProperty; - QBuffer buffer(&encodedProperty); - mWriter->setDevice(&buffer); - buffer.open(QIODevice::WriteOnly); - - // No parameters - QByteArray expectedResult = "FN:John Citizen\r\n"; - QVersitProperty property; - property.setName(QString::fromAscii("FN")); - property.setValue(QString::fromAscii("John Citizen")); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // With parameter(s) - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = "TEL;TYPE=HOME:123\r\n"; - property.setName(QString::fromAscii("TEL")); - property.setValue(QString::fromAscii("123")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("HOME")); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // Convert X-NICKNAME to NICKNAME - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = "NICKNAME:Jack\r\n"; - property.setParameters(QMultiHash()); - property.setName(QString::fromAscii("X-NICKNAME")); - property.setValue(QString::fromAscii("Jack")); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // Convert X-IMPP to IMPP - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = "IMPP:msn:msn-address\r\n"; - property.setParameters(QMultiHash()); - property.setName(QString::fromAscii("X-IMPP")); - property.setValue(QString::fromAscii("msn:msn-address")); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // AGENT property - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = "AGENT:BEGIN:VCARD\\nVERSION:3.0\\nFN:Secret Agent\\nEND:VCARD\\n\r\n"; - property.setName(QString::fromAscii("AGENT")); - property.setValue(QString()); - QVersitDocument document; - QVersitProperty embeddedProperty; - embeddedProperty.setName(QString(QString::fromAscii("FN"))); - embeddedProperty.setValue(QString::fromAscii("Secret Agent")); - document.addProperty(embeddedProperty); - property.setValue(QVariant::fromValue(document)); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // Value is base64 encoded. - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - QByteArray value("value"); - expectedResult = "Springfield.HOUSE.PHOTO;ENCODING=B:" + value.toBase64() + "\r\n"; - QStringList groups(QString::fromAscii("Springfield")); - groups.append(QString::fromAscii("HOUSE")); - property.setGroups(groups); - property.setParameters(QMultiHash()); - property.setName(QString::fromAscii("PHOTO")); - property.setValue(value); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // Characters other than ASCII: - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = "ORG:" + KATAKANA_NOKIA.toUtf8() + "\r\n"; - property = QVersitProperty(); - property.setName(QLatin1String("ORG")); - property.setValue(KATAKANA_NOKIA); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); - - // No CHARSET and QUOTED-PRINTABLE parameters - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedProperty.clear(); - buffer.open(QIODevice::WriteOnly); - expectedResult = "EMAIL:john@" + KATAKANA_NOKIA.toUtf8() + ".com\r\n"; - property = QVersitProperty(); - property.setName(QLatin1String("EMAIL")); - property.setValue(QString::fromAscii("john@%1.com").arg(KATAKANA_NOKIA)); - mWriter->encodeVersitProperty(property); - QCOMPARE(encodedProperty, expectedResult); -} - -void UT_QVCard30Writer::testEncodeParameters() -{ - QByteArray encodedParameters; - QBuffer buffer(&encodedParameters); - mWriter->setDevice(&buffer); - buffer.open(QIODevice::WriteOnly); - - QString typeParameterName(QString::fromAscii("TYPE")); - QString encodingParameterName(QString::fromAscii("ENCODING")); - - // No parameters - QMultiHash parameters; - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray("")); - - // One TYPE parameter - parameters.insert(typeParameterName,QString::fromAscii("HOME")); - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedParameters.clear(); - buffer.open(QIODevice::WriteOnly); - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray(";TYPE=HOME")); - - // Two TYPE parameters - parameters.insert(typeParameterName,QString::fromAscii("VOICE")); - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedParameters.clear(); - buffer.open(QIODevice::WriteOnly); - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray(";TYPE=VOICE,HOME")); - - // One ENCODING parameter - parameters.clear(); - parameters.insert(encodingParameterName,QString::fromAscii("8BIT")); - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedParameters.clear(); - buffer.open(QIODevice::WriteOnly); - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray(";ENCODING=8BIT")); - - // Two parameters - parameters.insert(QString::fromAscii("X-PARAM"),QString::fromAscii("VALUE")); - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedParameters.clear(); - buffer.open(QIODevice::WriteOnly); - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray(";X-PARAM=VALUE;ENCODING=8BIT")); - - // Parameter with characters that require backslash escaping - parameters.clear(); - parameters.insert(QString::fromAscii("X-P;ARAM"),QString::fromAscii("VA,LUE")); - mWriter->writeCrlf(); // so it doesn't start folding - buffer.close(); - encodedParameters.clear(); - buffer.open(QIODevice::WriteOnly); - mWriter->encodeParameters(parameters); - QCOMPARE(encodedParameters, QByteArray(";X-P\\;ARAM=VA\\,LUE")); -} - -QTEST_MAIN(UT_QVCard30Writer) - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvcard30writer/ut_qvcard30writer.h --- a/qtmobility/tests/auto/qvcard30writer/ut_qvcard30writer.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +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 Qt Mobility Components. -** -** $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 UT_QVCARD30WRITER_H -#define UT_QVCARD30WRITER_H - -#include -#include - -QTM_BEGIN_NAMESPACE - -class QVCard30Writer; - -QTM_END_NAMESPACE -QTM_USE_NAMESPACE - -class UT_QVCard30Writer : public QObject -{ - Q_OBJECT - -private slots: // Tests - - void init(); - void cleanup(); - - void testEncodeVersitProperty(); - void testEncodeParameters(); - -private: // Data - QVCard30Writer* mWriter; -}; - -#endif // UT_QVCARD30WRITER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/qversit.pro --- a/qtmobility/tests/auto/qversit/qversit.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qversit/qversit.pro Mon May 03 13:18:40 2010 +0300 @@ -2,8 +2,14 @@ TEMPLATE = app TARGET = tst_qversit +symbian*: { + VERSIT_TESTDATA.sources = testdata/* + VERSIT_TESTDATA.path = testdata + DEPLOYMENT += VERSIT_TESTDATA +} + wince* { - DEFINES+= TESTDATA_DIR=\\\".\\\" + DEFINES+= TESTDATA_DIR=\\\"./\\\" }else:!symbian { DEFINES += TESTDATA_DIR=\\\"$$PWD/\\\" } @@ -19,8 +25,8 @@ ../../../src/contacts/details \ ../../../src/contacts/requests \ ../../../src/contacts/filters -HEADERS += ut_qversit.h -SOURCES += ut_qversit.cpp +HEADERS += tst_qversit.h +SOURCES += tst_qversit.cpp CONFIG += mobility MOBILITY = contacts \ versit diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4-MultipleAll.vcf Binary file qtmobility/tests/auto/qversit/testdata/AAB4-MultipleAll.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4-MultipleAscii.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversit/testdata/AAB4-MultipleAscii.vcf Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,3599 @@ +BEGIN:VCARD +VERSION:3.0 +N:;;;; +FN:Apple Computer Inc. +ORG:Apple Computer Inc.; +TEL;type=MAIN;type=pref:1-800-MY-APPLE +item1.ADR;type=WORK;type=pref:;;1 Infinite Loop;Cupertino;CA;95014;United States +item1.X-ABADR:us +item2.URL;type=pref:http\://www.apple.com +item2.X-ABLabel:_$!!$_ +PHOTO;BASE64: + TU0AKgAAAyiAP+BQOCQWDQeEQmFQuGQ2HQ+IRGJROKRWLReMRmNRuOR2PR+QSGRSOPPyTOZ1OxjM + 1pLZfsVtuBxySaTWHvF5vVkNBqqlZrlTrFbqqfthvOKbUmlQN4PN6L1jMugrep1NZLtguR0uul12 + RvZ8PhhstoVWhWZbr5jsywPivW+PzFxqhZUCz3ehz9st+Z3C/Rp6vd8MFks60Whis1ovd8vm/4+L + ul2O5YrpgYehMBkM2mvTIZ+LOJzOm0ZVgM5qtmcvbQa1+696PZ76vXv2Eu14PJmNNsNNtN7JO7a0 + yncF2u9423Wx+TPx0ZNlNFqrthslar5iddiLxispmtRsc93Pl9PuB7Xyvt3vJ575vVBlrVesOrsF + ZLxgy5i2NoN1xnMxjHOWiLVmWaRrFcW5eroXDMKooS6FyV5cF8zRmmubpwG4cJyJWaT6wjB0HKIX + MLHUdx4QGhbcHk7hlREvEYQeW8GQZGUbxioTtHIdB1uHFTVl4YkXxzGccSNIsjyUvDCGdALlubAx + rSXJEqypK8ilyYRjq1HzXs+2seHWWBcl/LErSTNM0TWtBcGCYzjnjFR/vEY5nGnG01TPPc9KFCZf + NEdM5oGaBrm27U+TZPtFUYYhmGi9NBoEX61xJRNL0WtBWFsXijKRSSB0RTNR0ZTBbvqcrJVAgb61 + NV1SPkYZ1OPVaBNNV9S1JGRZl4YTxVqf9eGFXFiTVBJem8cZz2BIRlTzXNoWLGcIu+bFgTsacyTN + XVuWjWDsTjUBsG6cLqGTaV0LxBhkulJ8VRY3ZsRDbt02hEl4uU1zXnAcpz21euAQgur+Vmd7ltW+ + GA29ha0F0YZkTmaRsG5eeGXpi9GSlOb1nnYWFXrTZeYLUDUGzj+MRknZq0jSSnHrNxjZPi0qvrE8 + U2AgVknOVZaF1mUzp8XL3ZwgramgaxtZ/btHGjfOiIKtsLaVRhbmAYtw6ehacHrqVFwZhxkSlQpt + 2qtRmUtReYHOdZ26yiLAnwaOJvqVZal2+5g5VLrYnu9LauatrxXi7RWwVvF445t3FcXxnG8dx/Ic + jyXJ8pyvLIIgIAANAQAAAwAAAAEAMAAAAQEAAwAAAAEAMAAAAQIAAwAAAAMAAAPKAQMAAwAAAAEA + BQAAAQYAAwAAAAEAAgAAAREABAAAAAEAAAAIARUAAwAAAAEAAwAAARYABAAAAAEAAADjARcABAAA + AAEAAAMgARoABQAAAAEAAAPQARsABQAAAAEAAAPYARwAAwAAAAEAAQAAASgAAwAAAAEAAgAAAAAA + AAAIAAgACAAK/IAAACcQAAr8gAAAJxA= +X-ABShowAs:COMPANY +X-ABUID:C5C50103-C86C-40BB-8864-909A089EB390\:ABPerson +END:VCARD +BEGIN:VCARD +VERSION:3.0 +N:Lastname;Firstname;;; +FN:Firstname Lastname +ORG:Company; +EMAIL;type=INTERNET;type=WORK;type=pref:work@email +item1.EMAIL;type=INTERNET:other email +item1.X-ABLabel:_$!!$_ +item2.EMAIL;type=INTERNET:custom@email +item2.X-ABLabel:custom email label +TEL;type=WORK;type=pref:work phone +TEL;type=WORK:work phone 2 +TEL;type=CELL:mobile phone +TEL;type=WORK;type=FAX:work fax +item3.TEL:other phone +item3.X-ABLabel:_$!!$_ +item4.TEL:custom phone +item4.X-ABLabel:custom label +item5.ADR;type=WORK;type=pref:;;Work Address;Work City;Work State;Work ZIP;Work Country +item5.X-ABADR:us +X-AIM;type=WORK;type=pref:workaim +X-JABBER;type=HOME;type=pref:Jabber +X-JABBER;type=WORK:workjabber +item6.X-MSN;type=pref:othermsn +item6.X-ABLabel:_$!!$_ +X-YAHOO;type=HOME;type=pref:homeyahoo +X-ICQ;type=WORK;type=pref:workicq +PHOTO;BASE64: + TU0AKgADAAhIMyBIMyBIMidELiNDKxc/KBVAKRY/KBVALBZGMRpIMx5KNSBKNylOOixPOSdIMiFD + LxhEMBlEKxlFLBo6LBY5KxU5JQ47Jw87KhU+LRdELh9IMiNNNSlQOSxVPi5ROytPOS1POS1PODFT + OzRKQDA9MyRHKRZJKxdJMyJOOCZKOCVFMiBAMyVAMyVAMydFOCtMQDVHPDFFNyU/MSA8LyFGOSpP + QC5WRzRQPzBJOSo8MiM4Lh8/LyFVRDReTEVlU0xnT0FkTT9hT0NjUUVhSTxdRjlJNSBDLxpHNy5T + QTlYQzJMNydUOSVVOiZRNyNOMyBKLBpIKhhDLxpFMRxGMRxFMBtOPihQQCpMOSZHNCJMNSJWPytW + QTNWQTNTPjFKNypMMiJNMyNTQTNcSjxiT0ZfTURYRS9MOSRUQC9bRzVbSjhNPStHOCY/MB9ENR5K + PCRYQThXQDdROy5POSxGOiVEOCNKOy1TQzRNPS9AMSREMCRHMydELyBJNCVDLxhFMRpJNyZEMSFF + MSRALSA5LB48LyFGOjhOQT9VSUBYTURTQzdNPTFJOylDNCM/Mx83Kxc6LyhEOTFRRj5XTERYRz5J + OTBBMSNMOyxOOi9OOi9KMy9MNDBENSxFNy1IODJMOzVMRTxTTENUSj5GPTFGNylGNylAOSo8NCZG + LytROjVQPjVTQDhNQDxOQT1OPixJOihFNC9JOTNJPz5KQD9YRUlfTFBcSUxFMzU9JBpGLCJINzdR + Pz9aRkhcSEpOOzlFMjBIOTpaSUpeTElcSUdROTRNNDBDLSJDLSJ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hoSNe3qNcm6WeneVgoibiI6ZiY6UhImRg4ONf3+RgoSZiYydjJmfjpujlJua + i5KZh4iSgIKQeX6OeH2Re4OZg4udjZWdjZWdho2Se4OVf3+WgICWgnuZhH6deniZd3SUenmVe3qR + emuQeWqRd2uSeG2Jc2eHcGSGamOJbmeUdG6ZeXOWdWqUc2iQdWqVem+eeXSdeHOae3KhgnidiYOd + iYOfh36ehn2ignuignuef3Kef3KZeXOZeXOaeniefnufg36dgHunf22bdGKUaViOZFSSamSbc22d + eHWdeHWadWKXc1+XcmibdWumfXSle3OieXCjenKhdGWjd2ileW2ofXCsgGileWGfblufbluhcFih + cFieblaeblaZa1qhc2Gjd2WnemmqfWumeWijdWGhc16jeGmqfm+og3KrhnSreWWhb1yhaUqXYUON + foONfoONen6QfYCMf4COgoOVgIyXg46Vh5CQgouQfYCNen6MfoeRg4yRhIuQg4mOhIuQhoyNgIKR + hIaQi46SjZGZjZmajpqXjZ6WjJ2bjJ6djZ+QhoyMgoiSg4iQgIaQhI2ViZKdkKOhlKehlquhlquh + lKqdkKaajJebjZmbkpqZkJeVkJSQi46RiJWQh5SOiY2Qi46UjI6XkJKel6Oel6Obkp+akZ6XkZqZ + kpuhmaiimqqblqaXkqKdlKGlm6ienqyenqyhkp6Rg46NgIeRhIuSf4OWg4eVhouVhouWh46UhIyL + f4iJfoeGenmJfn2MeX2Nen6LgISJf4ONfoORgoeNgouRho6UjZaVjpeZjZmbkJuelZ+hl6Kilp+a + jpefjpubi5eZjZmhlaGelKWakKGSiI6UiZCXi5GajZSZi5SZi5SbjJSZiZGai5KWh46WjJCVi46S + iZGQh46ShomShomUho6XiZKfkpaajZGdiY2ei46Wg4eQfYCNgIeRhIuOgoaOgoaQgn+Qgn+Vf3+X + goKUfoOZg4iekJuajJeUgIeNeoCSe4CXgIaZhomhjZGil56il56fiYmXgoKWd3CWd3CXhIuei5Ga + i5CSg4iSfX2SfX2RfX+diIubiZ2di56ijpWah42af4aXfYORe4aOeYOOgoaViIyZ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foKZg4iZg4ieg3ua + f3ibeXSaeHOOd2KLc16MaFWJZVONbl6UdGSZdWmdeW2ZeXOWd3CZeGuZeGuRd2uVem+We3ebgHuf + f3mignuign6ff3uihoKjh4OniYmmiIihhoCeg36dgHuafnmhenOjfXWad2uQbWKQZ0+OZU6QZFSW + alqab1eZblaZb1ybcl6adF+Zc16ec1+ZblubcFufdF6bdWqlfnOnf3Knf3Kme2ifdWKhc16fcl2d + a0+ZaEyUZ1Wfcl+leHOmeXSofWmid2OicFafblSdcmGne2qqgHqvhn+zg3iufnOneFeic1OOg46M + gIyQgIaNfoOMeX+MeX+Me4aRgIuSg4uWh46Rh42Rh42SiZSVjJaViZeViZeSkJSQjZGRjI2OiYuQ + i4yUjpCZkpualJ2ZjZaXjJWWjZeWjZeViZWSh5KNgouNgouai5CdjZKajJWbjZabjZubjZuajZSS + hoyUh4uViIyXjZSWjJKSjpqVkZ2fkZqfkZqakJaakJahl5+mnaWhmaqZkaKWjpSSi5CVjpedlp+l + laeikqWakJSWjJCXlZmhnqKloayemqaekZWViIyQgo2Rg46LhomNiIyQh5GQh5GVh5KWiJSWi5SZ + jZaSiZGQh46WiJGXiZKQgo2LfYiIfoKGe3+LfoKNgISQh5SRiJWWjZebkp2VlaKZmaaflaaflaam + mqijl6ajlaGilJ+ZkaGXkJ+ZjqGbkaOdkKaekaebkp2ZkJqakqKelqaakqKWjp6WkJaUjZSajY6Z + jI2UhoaOgICRh42WjJKdlKGimaaelKWXjZ6ah42RfoSOen2WgoSOhoSOhoSWh4ybjJGfi5abh5Kd + iZCbiI6bkZedkpmbiYuSgIKIfoKQhomajZSekZejlpqll5umkJCijIyXgoSSfX+Zg4udh46biYuO + fX6IbmqDaWWLbniWeYOWh4yai5CZhIeRfX+WfX6WfX6ReHmReHmReHeUenmWgICeiIidiIidiIia + gIKVe32UeXWSeHSWenqdgICehIafhoehh4aehIOfg3ubf3iVe2mQd2SLalSIaFGOcGOSdGebenKd + e3ObfXOXeW+WeG6Vd22QbmuScG6Sc22XeHKZenCZenCXe3ibf3uihoijh4mmiYyni42niH6jhHqf + hHWZfm+de3Chf3Sfe2+XdGiXbVWRZ0+OZFGQZVOXbliacFubd2Wjfm2iemiheWeic2Web2KacF2b + cl6ZcGefd22jf3OlgHSnf3KlfW+meGGidF2bbleXalSWalqabl2eeG2ie3CoemOfclufblSebVOh + b1yod2Osf3qwg36uf3esfnWmdVijc1aQh5GQh5GShoyQg4mRfX+Qe36RhIiXi46ajJWajJWaiZmb + i5qWjZeVjJaUi5WWjZeXkZqXkZqVi46SiIyUiJGbkJmfkqWdkKKZjZmXjJeajJWbjZaSiZaSiZaU + iJaajp2ekZeekZebjJGai5CSjJWUjZaQiI2MhImUiY2XjZGZjZmXjJeXkKGblKWflKKekqGakJae + lJqjmqemnaqilqKZjZmUiY2Ng4eQiZKalJ2hkpudjpeWjJKZjpWel6GnoaqloaqhnaadkpmXjZSR + iJCNhIyMiI6Oi5GSiZaSiZaSjZ2WkaGhlKafkqWWkaGSjZ2Wi5aWi5aUiY2QhomOgoaMf4OJen2J + en2JfomMgIyRjJCVkJSdlqKel6OdlaWdlaWil6qlmqylmaeekqGdjZ+bjJ6ZjqOelKiflKKflKKd + lJudlJuWkaGblqadlqKalJ+bkpqakZmei46fjJCahoaUf3+XiI2fkJWhl6KimaOZlZ6RjZaViIyR + hIiOf4SRgoeVhouWh4yZiY6djZKhkZmdjZWijpediZKVjpqblaGhkpuWiJGRhIiWiY2hlJqilZui + lZmll5ujl5aekpGVf4SQen+Of4eVho2Vg4SOfX6Nc2iEal+Da2eMdG+Vhoiai42ahIeSfX+Ve32W + fX6Ve32UenuUen6SeX2Vf4KbhoieiI2fiY6bhouahImahIKVf32VfXiXf3qahIKdh4SfhoSfhoSj + iIOfhH+bgHWWe3CRcl+La1qSdGeae26igIKigIKif36aeHeWd3OWd3OSb2eUcGiUbmOXcmeUdGSU + dGSVc26beXSbf3uni4eqjI6niYyuhoKnf3uef3WdfnSjfnulf32mgnmfe3Oac2GQ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Zb1ybbm2idHOje2uogHCnfWSXblabZEqeZ02WaVWZa1eablWdcFeib1qea1aXaEeOXz+JZE6W + cFqje26rg3WsfW2md2eialCdZUyUiJGZjZaajp2ajp2XjpaWjZWdkKKfkqWilJ+ekJuXjJWXjJWZ + jJ6ViJqZjqGelKailJ+ekJuah5CdiZKajpqajpqdkpaZjpKWjJKSiI6QhomQhomRiZmVjZ2ajaGe + kaWbkp+WjZqUiJGRho6Qh5GRiJKXiZKZi5SZkJqflqGlmaWhlaGdlKGbkp+ekpuajpefkZqhkpuh + lZ6flJ2ZjpCVi4yQg4SNgIKQg4SbjpCXjJWajpebkJmflJ2hlaGjl6Ohl5+elZ2alJ2alJ2ZkJ2b + kp+Zkp6alJ+alqKbl6Ofna+in7KfmqqalaWSjY6RjI2RjI2UjpCakpeXkJWViZWRhpGOgoOLfn+J + goKNhoaSi42WjpGalZmdl5ublaGdlqKfl6efl6emmqammqailJ2djpeWjZqXjpubkJ6ajp2ViZKS + h5CXh5GejZehlaOilqWhl5+dlJubkJmajpeXhIuUgIeRh42XjZSbjZaZi5SSg4aNfoCUfnuWgH6X + goKfiYmVh4eVh4ediY2ijpKfjJKei5GbjI6XiIuUhIyWh46WiZCZjJKUiZCVi5GfkZqilJ2mkpms + mZ+mkpmhjZSXf3mQeHKQfXeXhH6Zg4OXgoKQeX6LdHmNeH2NeH2NeIKUfoiahIyahIydh4yeiI2a + hISahISUgIeVgoiUfYKVfoObhouhi5CfkJWejpSmkJKjjZCbhoiRe36Wenebf3udh4eeiIijiISj + iIShhoKdgn6hfXSZdW2bfXOfgHeliZCmi5GjiICbgHmad2uUcGWScmWUc2eScF6Na1qQbl6ObV2Q + al+Xcmeee2ulgnKsh4SuiIashnumf3Wfe3Cfe3ClgoCqh4arh3qjf3Oie3Cmf3SlgHWlgHWffWqh + fmumf3Wmf3Wog36sh4KrgH6lenilemedc1+UcFuSb1qXa1udcF+ec2ene2+mfWKddFqaZUqZZEmZ + aFebalqabViabVibalWZaFOWZ02UZEqNYkeUaE2bdGelfW+qfWunemmjblWbZ06WkJuZkp6Zjp+Z + jp+ekqGekqGdkKOajaGXjpmWjZedjJaejZeXjJqbkJ6fl6efl6edjpqbjZmVho2ZiZGXjJWbkJmZ + lJeVkJSSi42NhoiRg4CRg4CRh42Vi5GZjp+dkqOWkJmQiZKQgouRg4yOhpCNhI6Vh5CajJWdlJui + maGmnaehl6KekJufkZ2ekJubjZmXjpaZkJeel56fmZ+dlZedlZeWiY2ViIybjpWfkpmakZmZkJee + jZehkJqjlZ6ilJ2flJ2hlZ6jmqeimaabkaKdkqOWkaGZlKOdl6einayin7Kin7KbmqWRkJqVhouW + h4yWkJaZkpmblZ6WkJmZjJ6ViJqUi5WQh5GSiI6UiZCWjJKakJabkZWhlpqekqGekqGflqGflqGe + mqOhnaailp+ekpuZkpuZkpuXjpaSiZGVho2Sg4uZhoydiZChkqGomqijmqKdlJujlJadjZCXgoyV + f4mXi46ajZGdkJGXi4yRgoSQgIOZgoedhoueiJCljpabjpKViIyjkJanlJqlkZefjJKfjJCXhIiU + foCVf4KRgoSSg4aOf4KNfoCXiJCai5KijpWolZunlJqhjZSZhIKXg4CXhIiZhomVh4eUhoaVgoiU + gIeShISRg4ONeHiNeHiVfoadho2liZCliZCiiImiiImZhomVgoaSfoCQe36UfYKag4ihiY6ljZKo + lJaolJadiIuOen2Rd3KUeXSZf4CbgoOjhoalh4emhoKhgH2ffnWbenKigHWmhHmmi5anjJemi3+f + hHmjd26bb2eZc2iWcGWQa12RbV6SamGRaV+SbWKWcGWaeW2jgnWuh3+shn6qiH2lg3ijfXWfeXKn + gn+qhIKrh36rh36ognirhHqqhn2ohHulf3CmgHKngHWmf3SmgHungn2qgoCmfn2ofW6id2ibclWR + aEyXZ1Sda1iab1yfdGGld2Kld2KfaUiZY0OWaVOabVabblqbblqaaFWaaFWXaFCVZU6VZU6UZE2Z + aluic2OmeG+oenKreVyjclWajaGbjqKZlKWalaaelqeblKWdkqOakKGWkJmWkJmfjpufjpudjpql + lqKll6qjlqihkZabjJGWiIiajIyXjpmXjpmUkZWRjpKNhoaNhoaMgH+NgoCVg4SbiYuZi5abjZmW + iY2OgoaOe4KNeoCMfYSOf4eQhoyXjZSelZ+jmqWfm6WdmaKekJubjZmXjpmWjZeXjJWdkZqemqah + naijmqWhl6KdlJ6dlJ6blaGblaGZjZaZjZadjZKfkJWhkp6ekJuflqOlm6imm6ymm6ydlp+blZ6d + laWdlaWflqOon6ysn7KnmqyXlZmOjJCWiZCajZSSkp+Skp+akZuXjpmZjp+Zjp+SkJ+UkaGZkpuZ + kpuakJaakJadkZqflJ2bkaKZjp+ekp6hlaGbl6GdmaKhlaGflJ+fkZ2ekJufkJWai5CbhIyZgomO + gH6Vh4SZjZunm6qenaebmqWfkpaajZGah42ah42bjpWdkJadjZCfkJKXiYmUhoaXiZWilJ+jlaOe + kJ6akZmVjJShlJqjlp2mkZ2lkJujjZWeiJCZh4iWhIaRf3uOfXmUenmSeXiJfn2QhIOZjJCekZWd + kJSdkJSdiIudiIuhiZadhpKXi5GViI6diZKhjZaijpWbiI6Qe3SLd2+Rf4CaiImlkZqmkpumjpSe + h4yXhoeUgoORe3mNeHWQeniVf32bh4mjjpGokpWnkZSli4yXfn+McmqLcGmRdXKWenehf4Cnhoeo + iIKlhH6ifnOdeW6denWjgHulh4ymiI2qhH+og36lgHSdeW2dd2ueeG2XdWWRb1+Oa1+Sb2OXc2SZ + dGWbenKffnWmgH6rhoOui4iqh4SohHueenKhe3elf3qogICrg4OnhHSqh3emh3qmh3qrgnirgnir + hHqlfnSiem2je26lfnejfXWlfWqmfmufd1SddFGfblufblubblqidF+ld1+ld1+jc1OhcFCXbVee + c12bb1GZbU+dZ1ObZVGWbVOZb1WebVefblihb1emdFyjdWGld2KqeF2ndVufjaGikKOelKaelKab + lKOZkaGZkp6blaGekJmekJmfjpuejZqfkZ+nmaejmaqhlqedkJSajZGZjJCajZGWjpSWjpSWkZWU + jpKRh4uMgoaIgIOIgIORfXqWgn+ShoyUh42QgIaLe4CLdXqLdXqNen6QfYCNg4eXjZGhlJqnmqGh + l5+ZkJeXjZSWjJKWi5SXjJWajpehlZ6ina6ina6lmqyil6qhmaifl6edlqKZkp6ajZSZjJKWjJCb + kZWelZ+dlJ6fkKOmlqqlnayimqqblpqVkJSdjpqhkp6blZ6mn6iroq+imaadkJaWiZCWjZWimaGa + l6eVkqKVjpeWkJmZkJ2dlKGWkaGalaWel6GblZ6alZmdl5uflKKilqWdkKKZjJ6akZ6flqOflaah + lqedlp+dlp+hkp6fkZ2hkZaZiY6hiY6dhouVhouOf4SUi5emnaqlnayjm6ufkZqbjZaWjJKVi5Gd + kZqflJ2hlp2elJqajo2ZjYyXkZeel56jmqedlKGdkZ2dkZ2jlJmmlpuqlaGmkZ2jjZeijJabjI6X + iIuZhISVgICQe3mLd3SId3ONe3iSg4iZiY6ai42djZCZhoybiI6fjJWei5Sii5Keh46RgI2djJmo + kZ6jjJmZgHqMdG6IdHKUf32fkJemlp6olJahjI6Xg4ORfX2OeXeLdXOQdHCXe3iZh4ajkZCnlZam + lJWnjYybgoCUdG6NbmiSc22Wd3CfgoSihIeihoChhH+fgHebfXOafnefg3ujh4eliIiliICihn6h + hnieg3WignuignuffW2Vc2OWamKabmWadGqeeG6denWhfnmmgH+sh4aujYmnh4Omg36ffXieem6j + f3OmgHuog36mhHinhnmoh3qnhnmohHurh36sh4KqhH+ifmOfe2GjenCieW+mfmuiemihd16fdV2h + dGOhdGOdcmGfdGOdd12adFufdFyjeF+adF+Zc16dbk6dbk6faUyhak2iclqmdV2mdF6mdF6meGGn + eWKleWOjeGKqeF+qeF+djZ+fkKKelqablKOVkJ+Ujp6ZkJ2dlKGdkpmdkpmdkpmdkpmikqWnl6qi + laedkKKblJmakpeekZebjpWZjI2Uh4iWjJKUiZCRhIuNgIeHenuHenuOe3WVgnuUgIeUgIeQfYON + eoCNd3uNd3uMenuQfn+Ngn6ViYabkZehlp2jlpqekZWVjZCSi42ZiY6ai5Cdlp+im6WjobClorKh + maqelqeimaahl6WbkJmWi5SZiY6ZiY6WjpSakpeakqKZkaGXjJeekp6imaaimaaakJGUiYuXi5Ga + jZSUkp2enaemn6udlqKWiZCViI6ZkJ2jmqealaaVkKGSjJeRi5aXkZ2alJ+dlaWakqKjlZ6jlZ6f + lqGimaOilqWflKKZjZmWi5aajpqdkZ2hlaOjl6aelKWhlqehl6WdlKGhkpuekJmfkZqZi5Sai5KQ + gIiUjZmhmqanl6qnl6qhkp6djpqXjpaZkJeel6OdlqKjmqKflp6ZkZSXkJKdlp2fmZ+hmqael6Oe + lZ+flqGmkpuqlp+mmZ+ll56jkp2ejZedjZWfkJedjZKWh4yVgIONeXuLd3SMeHWXg4abh4meiYeh + jImaiImejI2fjY6fjY6hi4uhi4uSgoyZiJKllJ6hkJqehoCWfnmQdW6UeXKajIyml5eqlZWjjo6f + hoSXfn2UeXSOdG+MbWeSc22SfX2fiYmjkJamkpmukZaihouXd26JaWGObmWXd26df4KjhoijiICi + h3+hgnWdfnKafnmdgHuiiIehh4afiHuhiX2liIOmiYSri4esjIiognedd2uZc1yadF2efXSffnWh + f3eefXShfnmlgn2sjIiqiYaqhH+ifXied2med2mhfXSng3qrh3urh3usg3mrgnimgnmohHunhH+q + h4KlgGibeF+hdWeid2ilfmmhemWheWeheWefeGqfeGqbdWGbdWGZc1yXcluhcmKmd2eleWOjeGKi + dE2db0ifaUqjbU6od2Oue2iofWSofWSuf2qsfmmrfWioemWmdFyndV2XkZ2alJ+XkZqXkZqXjpuX + jpubkp2bkp2bkpqbkpqakJaakJaakqKblKOelaKakZ6ilJ2ilJ2fkJeai5KZhomXhIiViI6WiZCR + h42LgIeOgICLfX2Qgn2XiYSXhoeVg4SQeoKNeH+Md36Md36MenuOfX6SfoCZhIedjZWhkZmikpeb + jJGQiI2RiY6ZiJWfjpufl6emnq6nn6+mnq6dlqKel6OhmqOfmaKakJaWjJKWh4yXiI2SjpeZlZ6d + lp2XkZeSjJWZkpuflKKhlaOakJSSiIyRh4iVi4yWkJmXkZqdlp+ZkpuUiY2Vi46dlqKlnqqbkJuV + iZWRh4uSiIyXjpaZkJebkp2XjpmajJWekJmbjqGilaeflqGbkp2ZjpKVi46ViZKWi5SZkJ2elaKe + lKWelKWfkqailaiilqWilqWhl6Kbkp2ekZeViI6SiZSbkp2hlaOilqWflJ+ZjZmakZ6dlKGil6qe + lKailKKekJ6Wjo6akpKdlJulm6OlmaKilp+bkp+bkp+jlaGml6OlmaKjl6GikZuejZedkJSdkJSf + kpaXi46XhIuWg4mSfniOenSVf4Kbhoifi42hjI6hi42hi42ejIudi4mhhoyhhoyZg4iZg4iikpqm + lp6ijYeXg32Nem2Sf3KZh4imlJWsl5qlkJKhiIOXf3qWenOSd2+LcmeHbmOLd3CVgHqhi5KijJSq + jJSlh46Zem6LbWGIamGRc2mbenuhf4Cni4Oihn6dgnSZfnCbf3qdgHuihIejhoiliIiliIiqiYeu + jYuwjYyvjIuviXiifWuWcFqZc1yig3elhnmnhnmhf3OigHWjgnenh4Cnh4CuiYCmgnmdemqZd2ef + eW+jfXOohHmrh3uwg36vgn2lfnSngHeog4CrhoOlgGqhfWefdFybcFifd1yjel+lemenfWmne22j + eGmec2KbcF+Zc1yVb1iicF+od2WqfWuqfWuneWSjdWGhb1ejclqnemGugGewhGusgGi2hGuygGiw + fmivfWeqeVyjc1aZkJeVjJSWjJ2WjJ2ajJqbjZuekJuilJ+flJ2dkZqZjJKajZSWjZqZkJ2bkpqd + lJujl6OhlaGejpaZiZGZhomah4uVhoiVhoiSiIyJf4ORgoeUhImZjJKajZSZiJKWhpCQgIaNfoOM + fn6LfX2NeXmNeXmQe3WXg32ZiY6ejpSdjo6ShISOg4KRhoSWhpCfjpmhl6Wlm6ilmaWekp6dkZqe + kpuflqGhl6KakJGQhoeOhIiUiY2VkJ+ZlKOdlp+XkZqUiZCXjZSajpqdkZ2ZjpKSiIyZiY6bjJGb + kZebkZebkZeZjpWVi5GXjZShl6KimaOijpWXhIuUh4uWiY2akJaakJaXiJCUhIyUh42WiZCVjJaa + kZualJ2blZ6fkpaViIyQhomRh4uSi5CXkJWblZ6dlp+dkKOjlqqll6ummayimaGelZ2bkZeVi5GQ + h46VjJSXkZqblZ6dlaWakqKflaeelKallqWhkqGei5Sah5CZjI2ajY6fkpanmp6om5+ll5uVjJSV + jJSZjZubkJ6bkJ6flKKllZ2fkJedjZKai5Cei5GbiI6XhI2UgImVgoaVgoaVhoiZiYyhi5CijJGn + kZGljo6djZCai42hho6ih5CahImeiI2fkJWmlpumkZGfi4uXg4OVgICbhoumkJWqkpeokZajiYud + g4SXfXWQdW6Rd2uLcGWIbmeSeHCah4ufjJCijJGijJGagG6Mc2GIal2Nb2KaeXqlg4Smh32dfnSZ + fnCZfnCdfnSef3WlhIKlhIKjhoiniYyojIyqjY2ujYuwkI2vjYKjgneWdGSXdWWjfnurhoOqiH2n + hnqmg3CffWqjfnmog36shn6ngHmfemebd2OZcm6feHSlf32rhoOvhn+vhn+nfWmlemehfXSmgnmh + g2+fgm6jd12fc1qeclaidVqmeWinemmofWSjeF+hc16db1uZbl2XbVylc2KndWSnfWSrgGiofWun + e2qldFymdV2nd1yvfmOwgmqvgGmwgm2wgm2uf2iuf2irgGGme1yZiY6ZiY6ViZeSh5Wai56bjJ+b + kaKdkqOdkpmZjpWZiYyZiYyVjJaakZudlKGhl6WomqallqKXjZSSiI6VhouVhouUhImVhouRho6R + ho6Ui5WUi5WXjpuelaKhkaWZiZ2OgoaMf4ONg4SOhIaUf4KNeXuNfXWUg3uShomXi46bjpCRhIaM + goOOhIaSiI6XjZSflJ+hlaGhlp2ZjpWWi5aflJ+hl6WelaKhkpKajIyUiZCZjpWblKWdlaadl5uW + kZWShoeViImZjJKajZSbjJGbjJGdjpqekJuZkJeWjZWbkZWZjpKViZWZjZmhlaOhlaOlkZediZCZ + iY6fkJWfkJWbjJGWhIaRf4CUfoaahIybjJSdjZWelZ+flqGdlZqVjZKQiIuLg4aUhImZiY6WkZWa + lZmdkZ+flKKilKKllqWjl6GekpuakJaXjZSRh42QhoySiZGXjpablKOZkaGdkqOelKWil5uelJed + iIiXg4OdiIueiYyekZWmmZ2om52mmZqejIiUgn6ZhISbh4eZjJCbjpKhjZaijpeei5GZhoyag4ue + h46XhIuUgIeah4udiY2ajpqbkJufjpmikZull5milZahlJeajZGeiJCeiJCei5GdiZCfkJWjlJmm + kpajkJSbho2ahIybho2jjZWrkJmvlJ2skJKhhIedgn6We3iSeWqMc2SHaGKQcGqReHmiiImfjY6f + jY6bgm2Qd2KOcmGRdGOdenmhfn2ffnWde3OZeGude2+eg3ieg3ilgn+nhIKliIumiYynjY6qkJGu + jYuvjoyrjH+lhnmbc2mXb2Wbd3Sog4CujYmqiYaqhHCifWmfeW6lfnOngHWngHWlfWqfeGWWcGeb + dWuienqshISrh3uohHmhfWSbeF+ZdWmdeW2hfXKdeW6hcFiiclqdb1ihc1yidWSleGelel+jeV6h + cFiba1SXblSZb1Whc1yld1+qf2esgmmrf3Cqfm+nel6leFyqeVyygGOzgG2wfmqwgHCygnKvf3Sz + g3izgmmvfmWWg4mWg4mUhpSUhpSWh5mXiJqbjqGdkKKakZmZkJeZiY6XiI2WiJGbjZadlaahmaqi + lp+dkZqQhomLgISQg4mRhIuRh4uVi46ZjpWZjpWZkpublZ6fkqWjlqihjqKZh5qViImWiYuZjJKa + jZSVgoiVgoiXhoebiYuWh4yXiI2ei46VgoaQg4mRhIuOhIiVi46hlJqhlJqXkJWSi5CUjZadlp+l + lqWilKKakJSWjJCajpedkZqlmaelmaejmZ+elJqbh4mZhIedjZCdjZCakJaelJqekaOfkqWjlp2d + kJaZjJCXi46VjJaZkJqZlKOVkJ+ajpqXjJeakJadkpmelJeZjpKUhIeUhIeUh42ZjJKXjJqekqGd + kqOhlqedlZqWjpSQgIaOf4SWg4yei5SWkZWVkJSfkJehkZmbjZmfkZ2flZudkpmbkZKVi4yRgoeQ + gIaMgoiSiI6VjJSXjpaZkJqdlJ6jl5aflJKijZCdiIueiJKfiZSfjpuol6WuoaWrnqKjkY2di4ed + i3qaiHiaiImbiYudiZKhjZadjZWai5KfiYyZg4abhImdhouei5SfjJWajpebkJmjlJullZ2om5+q + naGqmp2fkJKii5CfiI2fjpuhkJ2mlp6mlp6nlJehjZGah42ah42liZCliZCrkJuukp6ukZSni42d + h4eXgoKVgHeQe3KObmKLal6McG2fg3+hjZGdiY2agHOSeWuScmWVdGibeXShfnmhfnmhfnmefnii + gnujh4KliIOliIOliIOmiYyojI6nkZGokpKrjouojIiujoSmh32he22ZdGWadGqjfXOohoOvjImv + h3Srg3Cjf2efe2Omfm6ogHCrfm+meWqbcGKXbV6ZcnKheXmoh36nhn2lfWqbdGKbcGKdcmOfc2Ki + dWShb1Ohb1OdbVWba1SbblyidGKhdV+hdV+ebVeaaVSbbU2fcFCdc1iieF2lf2uog2+rf3CofW6n + eFamd1WjeWGsgmmyh3OwhnKzhHKwgm+wgHWzg3izg3O0hHSNg4eNg4eSgo6Xh5SXiZKZi5SejZ2e + jZ2djJmZiJWah42ah42ZiJKfjpmhlqeflaabkZWUiY2Rg4CQgn+RhIiViIyVjZCWjpGZjpKZjpKa + lJqdlp2elaKflqOfkZ2ajJeVkJGVkJGekpudkZqXi5GViI6ZiZGXiJCZjI2ajY6ajZGShomMgoiM + goiRh4uUiY2akpeZkZaUjJGVjZKUjZaalJ2dkZ+bkJ6bkp2ZkJqdlJ6dlJ6il6qhlqiel6OblaGa + i5KVho2biI6ei5GXkZeel56hlKailaellp+fkZqZiYyVhoiUi5WZkJqVjZ2UjJuXjpuVjJmbkJmf + lJ2ikpqbjJSVi5GVi5GXjZSakJadlKGelaKhl6Whl6WhlJeZjJCVgIOSfoCVho2bjJSakJaWjJKX + hIubiI6Xi46bjpKfkJKfkJKXjouRiISUf4KUf4KMeX2Oe3+Qg4eUh4uZi5SekJmilZuekZebjZab + jZaZiJWbi5ejjJuqkqKmmqajl6Ofjpmbi5WdiIiahoaahIyahIyai5CdjZKWi5SXjJWai42XiIue + iI2fiY6fjpmhkJqekZefkpmmkpaqlpqomZ6snaKqm5mjlZKjjZKfiY6hjJqlkJ6qlp+qlp+rlZen + kZSeiYybh4mdiIuijZCikpqhkZmrkZCjiYiihISfgoKbf3+WenqRd2mJb2KMbWqdfXqijI6jjZCd + gnqVenOUc2iScmeZeXOff3mefnqff3udf3+ihISni42ojI6mjJCiiIyliIimiYmnjYyrkZCyjZCu + iYyvjYSnhn2le3KddGqXcGGddWWhf3enhn2shnuuh32rgmSjel2feGWlfWqqfm+ofW6meGWfcl+a + cmmheG+qg3irhHmme2ifdWKbcl6acF2dc1ihd1ydcFWbb1SablWfc1qhc16hc16hd1ybcleXaFCa + alObaEmhbU6bcl6ieGSrf3OwhHiyhHOqfWund1Ojc0+ld2SrfWqshHSvh3ezhnSvgnCwg3KvgnC2 + hnW6iXmShoyRhIuXhIuZhoyViImZjI2ajZSdkJaZjJKXi5GWiZCWiZCZiJWfjpujkqKejZ2Zi4uS + hISNgoCOg4KQhoyZjpWbkp2dlJ6ekZefkpmblJmelpullqWnmaeflqGdlJ6elZ2dlJuhlZ6ekpuX + i46ZjJCXjpmXjpmakpKZkZGajZSUh42NhouQiI2VkJGWkZKblJmXkJWZjJKWiZCWiJaXiZeWjZWW + jZWakZuakZubkp+dlKGXkKOakqadlaWakqKWiJaUhpSXgI2XgI2UjZSdlp2flaaflaaflKKajp2X + i46Uh4uWjZeZkJqUhpGUhpGVjJmbkp+bkpqflp6jlJudjZWXjJeXjJeXjJWajpealJ2blZ6flqOh + l6WjmZqbkZKWgoKSfn6Zg4ueiJCfkJWdjZKZhIeahoiZh4ibiYudjo6djo6XjIuRhoSSfn6RfX2N + eH2OeX6NfoOQgIaVho2djZWfkpmfkpmekqGbkJ6ajJWZi5SdjJaejZefkZ2ml6OejZ2djJuah5Ca + h5CZhoydiZCdiY2ei46XjJWXjJWbjJSai5Kei5Sei5SfjpmikZulkZehjZSikpWnl5qlmp6onqKq + nZ6nmpumjpadho2ZiJKhkJqmkpuqlp+rlJmnkJWeh4ybhImag4ieh4yfiY6ijJGni4eihoKhg4Od + f3+aenidfXqWenqQdHSRcHKbenufhoejiYuhhoCaf3qRd2uOdGmVdXOZeXehfnuhfnudf4KihIen + jJKrkJankZGljo6miIijhoani4eskIywkpKukJCui4ariIOrg3Wed2mbcF+ec2Kdd22ie3KqhH+w + i4augnCmemmed2Sje2mqfXCoe2+idWSidWSec2ehdWmjfXKmf3SngGehemGfdV+fdV+hc16hc16e + cFydb1uhc2Gld2SneWSld2KidVqhdFibak6ZaEyaaU+hb1WhdGioe2+ugHmwg3uyg26oemWnd1qo + eFujd2Woe2qshnCzjHe0iHSzh3OwhHOsgG+wg3S3iXqWiZCUh42XgomXgomWh4mZiYyZjpWXjZSX + jJWXjJWajp2XjJqdi56hjqKjjpqeiZWXhoeUgoONg4eWjJCflaail6ihlKehlKehlZ6flJ2hlpqh + lpqekqGhlaOfkqajlqqfl6ejm6unlqGllJ6bjJGbjJGbkp2imaOfl5qfl5qdkZqViZKUjZSSjJKX + kZeblZualZmVkJSdh5GZg42VhouWh4ySiIyRh4uWiJGZi5Sdi56biZ2WjZqSiZaaiJuaiJuSh5KN + go2UgImSf4iSh5CViZKZjZaZjZaajJWWiJGSiIyQhomZi5SZi5SOeX6Re4CShI2XiZKbkp2dlJ6f + kZqbjZaUiJSViZWakJaakJabkJuajpqbjZailJ2om52ekZKXgIaVfoOag4uhiZGikpedjZKZhomU + gISXgoeahImeiI2hi5CfjY6XhoeQgoKNf3+QeYCOeH+Oe3+RfoKRf3ubiYajlp2jlp2flqOdlKGe + lJeXjZGajY6Uh4iXi5GdkJaeiZqfi5uViZKViZKZiY6bjJGah42ZhoyXhIuXhIudiZKdiZKfjJWi + jpejjZWijJSdh5GahI6ai5ChkZailp+lmaKqnaOrnqWqkpqfiJCWf46ag5KdiJSjjpqnl52llZqn + iY6fgoebfYSfgIiehIifhomjiIOfhH+eg36dgn2bfXOZenCOenSMeHKOcnSUd3mdg4SmjI2jiH2e + g3iZe2qOcmGOcGSUdWmdeniffXqefX6oh4iojI6ukZSqjZCojI6nhoeigIKnhIOriIewkIysjIis + i3+si3+shHemfnChemWbdWGacmiddGqifXiog36siHuohHiofWmjeGSfdWKieGShc2Gfcl+ec2Kf + dGOee2ujgHCofWuleWihem+lfnOoe3OleG+lc1+lc1+lemeofmqsfmerfWWqeFusel2lcE6ZZUSb + ZE+mblimd2uufnOygoCzg4Kyf2mue2Wod16semKod2OqeGSsgG2yhnK0hnC0hnCzhnSwg3Kwg3e0 + h3qWi5SSh5CXg5GVgI6Zg4uahIyUiJGViZKWjZWWjZWbkJuZjZmdjJaejZebi5WZiJKZhoyXhIuU + h42fkpmjma6lmq+mmaull6qhl6KflqGhlJeilZmZkpmalJqbkaOil6qfmqqjnq6rlqKnkp6fkpme + kZeflqOhl6WhlaGekp6ZjZmZjZmXkZqalJ2elaKflqOZkpuQiZKWh4yUhImRhIaQg4SNgISNgISO + hIuQhoyVho2Sg4uRhIiShomXh5SXh5SRh4iLgIKOg4KViYiRh4uOhIiXi5GXi5GZiZGWh46UiZCU + iZCWh4yWh4yRen+QeX6Lfn+WiYuZkZSblJabkZeakJaViI6ViI6ZiY6bjJGhjZSdiZCfjpmikZul + lqKhkp6aiImWhIaWg4ediY2ikZuejZeZhIeVgIOVgoidiZChiZGii5KhkZaZiY6Uh4iUh4iWf4SS + e4CQfYORfoSRfoKZhomjkp2mlZ+hmqGel56jlZ6bjZaeiYmXg4OZhomdiY2ZiZGXiJCbiJGbiJGb + iJGhjZaijpWei5Gag4uag4uXhIibiIyhiZGjjJSdjZKZiY6UgISWg4eVh5CajJWilKKml6awoq6s + nqqvmaGijJSbhoiWgIOUfoadh46nkJ2nkJ2miJCegIihe3meeXeaf3qhhoCdiIKdiIKegoKdgICb + e3WVdW+IdWiLeGqNc26SeHOif36nhIOmh32ig3mafWuVeGeRcmKQcGGZeG2de3Cbf3ijh3+ni4eq + jYmrjo6qjY2nhIKlgn+og4Kog4KnhH+ohoCvjIewjYiuiHmog3Sjfm2eeWiedWuddGqfdXOnfXqs + g3quhHuvg22ne2WhdV2leWGld2SjdWOdd1+Zc1ydeGelf26mfXOnfnSmfnqogH2ugnWqfnKneWSo + emWof3eof3evf3SwgHWuf2irfWWndWSfbl2hak2hak2jb2OueW2vgHuzhH+wgm2vgGuue2GwfmOu + e2Ood16seme0gm63h3ezg3Owg3KyhHO2hnq0hHmZjZmZjZmXiZeUhpSRgoeSg4iNhoiUjI6XkJ+Z + kaGbjZudjp2ajJWbjZaXiZKWiJGbh5Kbh5KXiZWhkp6fkqajlqqqoa6mnaqhl6KimaOelJqdkpmf + kpSfkpSakZujmqWmn6uooq6qlaaolKWflqGakZuel6GhmqOhlaOdkZ+WjpSWjpSfjp6ikaGjnaah + mqObkJuSh5KQhoeQhoeRg4OOgICHeHqHeHqLe4CLe4CUeX+UeX+MeHqSfoCVhouZiY6RhoSQhIOS + hoebjpCVi46UiY2ZiYyXiIuVhoiZiYyXi4yajY6biIyah4uUf3mSfniOgICWiIibjpKekZWdjZKa + i5CWh4yWh4yZg4uahIyZiY6bjJGfjpuikZ6ikaGikaGajZGViIyUh4ibjpCekJuekJuahoaXg4OV + goaah4uZiJKejZehkpuekJmdkJafkpmhho6ZfoeQgIiRgomOf4KUhIefi5alkJunmaKllp+ijpeb + iJGQgn+Rg4Cdg4SehIadi4yaiImfhI2ih5Chi5WmkJqmkpujkJmXgoSVf4KUgn6Zh4Obh4eeiYmf + iYeXgn+SfXqUfnuNgIeViI6hkJ2nlqOsnqysnqywnaalkZqhh4aZf36OeniWgn+eiJChi5Kdhoub + hImef3WZenCZfX2egoKliIiihoaihISfgoKee3eVc26Qc2KRdGORc2eSdGiee3elgn2jiICfhH2d + gnObgHKQc12LbliZdWqhfXKegnqdgHmhg4OrjY2zkI6wjYysiYSohoCmg4Clgn+mg36nhH+siYev + jImsi36qiHulgHSifnKje26heWuecmmleG+qgHewh32yhnSsgG+ne2OofWSof3WnfnSje2ufeGie + eGOie2eje2unf2+mgHush4KyhnSrf26rfWqoemiuf3iyg3uyhHuwg3qshnCogm2ogmimf2Wsd1Gj + bkmja16udWirf3OwhHiwhG6whG6yg26yg26zgG+semmreWGyf2eyhnSyhnSzh3qzh3qzg3OygnKV + i5uUiZqXiZeUhpSOf4KSg4aVi5GelJqflaaakKGUiJGSh5CWiJGZi5SViZKWi5Sbi5edjJmbjZaf + kZqjl6Gonaanoaqlnqemmqilmaeml6OjlaGljZKljZKikpqrm6Oon6yroq+nmaKjlZ6dkZ2bkJue + lZ2elZ2hkpudjpedkJSdkJSakZuflqGjn6uhnaimkZ2ahpGZjJCZjJCWiY2RhIiIenqHeXmLfX2I + enqIeXuIeXuIeXuSg4aai42ejpGViIyUh4uWi5SajpedlJ6ZkJqekZKajY6ekZWhlJeekZWbjpKW + iY2Uh4uQe3uSfn6Vf4edh46bjpKZjJCdjZWZiZGRh42OhIuXgIadhoudkJafkpmekaOekaOmkKWl + jqOjkJmfjJWai42djZCdkZqdkZqbjYuUhoObhImii5CakJabkZeilp+flJ2jlJullZ2ijpediZKU + h4uRhIiWgoSWgoSai5KfkJeilZuhlJqajZSWiZCZhIeZhIedh4meiIuajouajouZhIeeiYyjkJmm + kpuijJSeiJCQfn+Qfn+SfoCWgoSbh4mdiIufhH2dgnqafnqWeneOenqVgICbh5KhjJemkaKvmquq + maajkp+dg4KZf36SeHOUeXSWf4SfiI2hho6hho6ign6ZeXWbfoChg4amjJCli46jiIShhoKZgnWS + e2+VemuUeWqWdWqScmeaeXCjgnmmi4ejiISmi3+ih3uhgHCZeWmdfXqign+nhIKlgn+jgH+qh4av + i5Cvi5Cwi4irhoOjgHulgn2if3qjgHuhhoKliYami3+jiH2ng3qlgHile3Wle3WjenSfd3Cje26s + hHeyhHuyhHusgG2sgG2rfnmugHusg3qqgHiqd2iseWqmemmofWuqhHWsh3iwg3KugG+qe2mrfWqv + gHizhHuuh32viH6vi3+uiX6yhnSwhHOugGSoe1+ld1+neWKsgHSvg3euhniyiXu2iH+0h360hHSv + f2+qfWGvgmWohnWvjHu0jYK4kYa4i3uyhHWUiJSRhpGOg4yMgImSg4uVho2XiZWhkp6dkZ2Wi5aV + houWh4yVh5KbjZmekJ6hkqGbkJuXjJeZiZGdjZWflqGjmqWjmqWjmqWnmaWnmaWmlqqikqajjZWi + jJSflJ2mmqOom66rnrCmnaWelZ2ajpedkZqfkJefkJefkpmdkJaakJSakJSdkpajmZ2roq+mnaqj + lJuejpaflJ+hlaGakJaVi5GUgISQfYCLe36MfX+VgIORfX+LgISUiY2bjZadjpeXiZKUho6Sh5KZ + jZmekaWekaWZlZ6VkZqdlKGelaKdlZqWjpSQhomUiY2Uh42RhIuViI6ajZSbjZaekJmbjZmUhpGR + ho6UiJGbho2ijJSilJ2hkpuajZ+ajZ+njqGokKKhjJqhjJqijpWfjJKajpedkZqejpGZiYybho2f + iZGekZefkpmhlp2flZullJ6nlqGlkJuhjJeah42ZhoyXgoeVf4SfkJWfkJWfkJWejpSZho6Sf4iW + gIadh4yeiJKeiJKai5Cai5CXjIiajoullJ6mlZ+hi5KXgomOeniNeXeRen+XgIaahImahImfh4Ke + hoCXgoSWgIOUe3eVfXiVf4Kdh4mjkJmrl6GqlJ6okp2lg4eaeX2UeXWSeHSRen+VfoOdgoibgIed + gIOafoCZf4OfhomljZKljZKnjIihhoKeg3ubgHmXe3SVeXKVd22SdGqaenSjg32vjY6vjY6rjoen + i4OmhoKff3uigIKmhIani4eliISigHilg3qqjIysjo6wjI6qhoimhHiigHSefXKffnOee3mif32r + h3urh3uohHmmgnehfXChfXChe3ebd3KidWmoe2+vgHmwgnqvg3eugnWqg3uviICyiH6vhnuvf3Kr + e26leWiofWurg3Ovh3evg3KugnCqe2eoemWuf3evgHiuh3+viICwh4Cwh4Cwh32uhHqrfm+ugHKs + gG2rf2urf3Cvg3SugHuyhH+3iYK2iICziHSsgm6neWKrfWWvh3m2jX+2ko23lI67kYu2jIaUgIeR + foSOf4eRgomVg5aaiJuejZqejZqZiZGVho2XhI2ah5Cdh5umkKWllaejlKajlJuai5KZhombiIye + kp6flJ+elaKelaKhl6Wjmqejl6ahlaOijpeijpeekp6lmaWrnrKrnrKnnaOelJqejpSbjJGjkJmi + jpedkZqZjZaXjZGakJSflZmmm5+oobCmnq6hl5+flp6umaqvmqujmZ+bkZeah42ZhoyVh5KUhpGa + hoiXg4aUhpGbjZmekp6dkZ2dkJSWiY2Zi5SbjZaelKWjmaqfl6ielqefmaWjnaihlZ6Wi5SVhoiX + iIuViI6WiZCXjJWajpefjp6ejZ2bi5qXh5aWiZCWiZCdiJSijZmilqWhlaOijZmijZmhjJqlkJ6i + kZ6ikZ6okZ6ljZqXi5GZjJKZiY6ai5CbiJGdiZKZjZabkJmbkJuflJ+olKWqlaaikqWdjZ+ijZmX + g46XgIaVfoOai5KdjZWfiZGdh46SfYKQen+Wf4Sdhoueh46hiZGhiY6dhouaiIeZh4ahjJemkZ2e + h46UfYSLcnOQd3iVe3+Zf4ObhoabhoaeiI2eiI2dhpCag42XfXiVenWSeXiXfn2ei5GjkJanlJen + lJewiYymf4KafX2VeHiRdXqQdHmafX+df4KegIOdf4KbgImjiJGojZSmi5Glh4eniYmnh4OmhoKd + gHuafnmVeXSQdG+ZfnqfhICsjo6vkZGsjo6sjo6rjpGni42niYmmiIiokIenjoajgG6ee2mjg4Cr + i4isi4yriYusiH2ohHmmgHKhe22jd2+hdG2mfnCogHOohnWohnWlf26he2qddWied2mjd2ileGmr + fnKwg3eyhnewhHWqh3eui3qyiH6vhnuwg3evgnWofWmqfmqogHCshHSuhniuhnireGKndF6nenOs + f3ivhn2wh360i4KziYC2iXqvg3SoemWqe2eofXCjeGurfWq0hnO0h3+3iYK3i36zh3qvgGmqe2So + dV+uemSwg3q7jYS2lJW6l5m/lY67kYuNe3iNe3iNfoCUhIeZiJWdjJmekJufkZ2bjJSXiJCVhouZ + iY6ekJ6jlaOjlaOhkqGijJSahIyXgomahIybi5Wbi5WdjpehkpuhlKailaelmaemmqill56hlJqf + lKKlmaern6uqnqqmmZqhlJWfkJeejpadkpmelJqdlJudlJuekpubkJmflp6lm6Omnq6mnq6imaam + naqvoaqsnqelnZ+fl5qhlJeekZWhkp6ekJufjJCah4uUiJGViZKZlJealZmejIiZh4OXiYeekI2e + lZ+hl6KilqKjl6Omnaqmnaqhl5+Ui5KUhIeUhIeShJCUhpGai52ikqWnkp6ijZmfiZGfiZGUh4uW + iY2ZiZujlKanl5+hkZmeiYyahoiai5KdjZWhkJ+ikaGqlp2ijpWXhIuZhoyZg4ubho2ahIyZg4uX + jJeXjJeXiZWdjpqjkqKikaGlmquhlqelkZeZhoyVfoOVfoOVgouah5Cdh4mahIeRfX2Qe3uZf4Of + homhho6ih5Chh4uehIiahISfiYmhi42ijI6ahn6NeXKJcG+NdHOVeXudgIOfhoehh4ifjJKhjZSh + kJqbi5WZg4CSfXqJdW6Qe3SRhIiWiY2ijJSmkJeskIyliISehoCZgHuVd22OcGeWdXeffn+fg4ad + gIOeg4mhhoyljIeji4alhIKnh4SuiIOsh4Klg3iigHWaf3SXfXKWenedgH2ni5CukZavkJevkJeu + kJqylJ6vlZmyl5u0mpuvlZasi36de2+deHOjfnmmhoOoiIauiIOrhoCnhHSffW2ac2WWb2KZd2ei + f2+og2+og2+qfm2jeGeeb2KfcGOZc2ibdWqfd22qgHeshHSqgnKogHOrg3Wof3Wrgni0hHSwgHCu + emeqd2Omem6ugnWuh3uuh3uqeFuhb1Ohc2GneWesf3qyhH+yh4S0iYe3iX2yhHiweWSrdF+hdWSf + dGOneGiygnKzg3i3h3u2h3Kyg26wfmGsel2sc1+udGGvgn24i4a3jZG/lZnFlZTBkZCQhIONgoCM + gH+RhoSXiZKbjZaekqGbkJ6hjZadiZKWiJGXiZKZjZahlZ6fkqWbjqGdiZCZhoyWgIuZg42Zhomb + iIyZiZGbjJSfi5aolJ+lmaWonaijmZ+elJqflKKlmaemmqimmqiml6GjlZ6flZuflZudlp2blZue + kqGekqGdlqKfmaWhmaimnq6on6yqoa6onq+sorOvo6+soayooqilnqWhl5+elZ2hmZ6hmZ6llZqe + jpSUjI6RiYyWjpSakpeekJCZi4uXiYmbjY2akZ6elaKflKKlmaenna6jmaqfmZ+UjZSQhIOOg4KN + foOSg4iWhpChkJqmlp6ejpafjJKfjJKWiY2ViIyZi5SfkZqjlJafkJKfi4uZhISZhombiIyeiZWl + kJuhlJeekZWZg4CXgn+Vf4SXgoeXgoyWgIuShoyShoyah5Cei5SdjJafjpmjmqWimaOilJ2ekJmX + hoeSgIKWhIabiYudh4SahIKQeniQeniZfYKihouhi42dh4mag4iZgoeahISeiIijiYiiiIeWfnWJ + cmmIb3COdXeafYelh5Glh46ihIyei46jkJSikpehkZaiiImZf4CLd2+MeHCJen2QgIObhpCjjZem + iYyliIuiiIyZf4OReG2Mc2iVdXKaenebh4CeiYOdh4meiIuhh4ifhoelgoCnhIOwi4iuiIanhn2j + gnmefXCbem6WdHKdeninjJKwlZuzlZ2wkpqzlZ20lp6wlZGylpK3nZuwlpWwi4amgHufemuhe22h + fnmjgHumg4Kqh4anhHSffW2bd2ORbVqSbl2adWSifnOlgHWqfXCmeW2fdGOZbl2Sb2OWc2edcmWh + dWmne22rf3CofWerf2mqfmqugm60hHevf3KueF6lb1afc2Soe22qgnSshHeoemOhc1yeaVOmcFqn + eGiwgHCwh36yiH+0iXWyh3OzgmmqeWGmdV2iclqhcmSqem2yhH+2iIOzh3Czh3Cwf2evfmWvemuq + dWevgn24i4a0jIu6kZC+jo27jIuRhIuNgIeQfYOZhoyXjJWdkZqbkaKZjp+fjpuaiZaRhIuViI6e + jZehkJqbjZmWiJSUh4uRhIiVgoaVgoaXhoeUgoOWf4eeh46ejpajlJunmaernauhl6KdlJ6flKKj + l6almaemmqinmqymmaummqinm6qinaGfmp6hlaGflJ+bmaeem6qimaannquqoa6qoa6qo6+qo6+y + pauzpqyrpa6noaqfm6eemqahmqael6OjlZ6ekJmdjZCbjI6bjpWhlJqelZ2WjZWZiY6XiI2XiZWb + jZmfjpullKGqmqyomaublaGVjpqSh4OQhICQe3mUf32XhIujkJafmp6ZlJehlJqhlJqUi4mOhoSb + iIyijpKikpeejpSfi4udiIiahIeZg4abhpCljpmhkZSdjZCagH+Xfn2WgH6Vf32Uf3+Sfn6Ren+R + en+Vf4SbhoubiJGhjZajlaGomqail56akJaWfX6WfX6Vg3+aiISeiIudh4mWgnuSfniWf4ShiY6h + jI6ahoiagISXfoKahIShi4uojpKli46WgnuOenSLcG2QdXKbfoioi5Whho6fhI2fi4umkZGlkZWm + kpamkZSbh4mVenWNc26JdHKOeXeXfYOih42hi4uijIyijIyZg4OVeneNc2+Sd2+ZfXWfh4KljIei + iImjiYufhoedg4SdgH2hhICsi46zkZWojIeliIOognieeG6ScG+UcnClhpCsjZeukZGukZGylZq0 + l52zlZWzlZWwmpqwmpq0joyuiIaie2ebdWGZeG2ffnOjfnuqhIKnfnSmfXOfe2WSb1qRaFOUalWZ + cGiedW2leGuleGufdGGab1yWa1aUaVSUaVSXbVeidF+oemWoeF2oeF2reWiwfm2zg3Wvf3Kre1qe + b06hc1yqe2Sqfm2ugnCue2ilc1+jblWibVSjc1uqeWG0h36yhHuwhG60iHKwgmquf2iseWWreGSo + d2WndWSvgnq3iYK0jHmvh3SwgHCufm6sf26rfm2wg366jIe2kIu0jomziYCziYCRg4yShI2WgIiZ + g4ubi5edjJmajaGajaGhjJeahpGSgoyVhI6Zi5SajJWdh5GahI6XhIiSf4OLf36Lf36XgIaZgoed + goujiJGfkZqhkpujlaOjlaOflJ+ekp6fkZqhkpulmaemmqimnaqroq+rn66onaumm6Khlp2ekJme + kJmfl6ehmaimmaunmqyqoa6qoa6upbKqoa6vpq6vpq6rpbCooq6ml6ajlaOim6Wim6WnmqGll56h + lJqdkJaekJmhkpufmaWZkp6djZWXiJCbiI6fjJKdjZWhkZmol6esm6uml6afkZ+ZjI2WiYuZhH6Q + e3WShISbjY2blZuhmqGnlqGnlqGZjpCQhoeZiZGdjZWekZedkJaeiI2dh4ybho2Zg4uih5CnjJWo + kZmnkJedh4ydh4yXgoeWgIaafoCUeHqVfXiUe3eSfYKVf4SXgoedh4yii5emjpull56bjpWXfoKV + e3+Qgn2UhoChi5WeiJKei46ZhomXgIaii5CfiZGeiJCjhoidf4Kfg4amiYyrkJmnjJWahIyQeoKV + eXmWenqbgIehhoyii5CfiI2biYiikI6lkI2ijYuhjpCbiYubf3+UeHiRdHeOcnSQdHebf4Kli4yo + jpCmjI2fhoeWen2RdXiQdHCXe3ijiYurkZKojo2mjIumiIuihIejh4Kfg36ihoaukZG0lJGvjoys + h4KifXiWdW2ObmWfe36rh4mrkZWulJewlJmwlJmzkZWzkZWvkpe2mZ64l5WsjImng3eeem6VdGiX + d2qfe3Ojf3emfnCiem2heWeUbVuSaFCRZ0+WaVedb12idGKhc2GmeGOhc16Xa06UaEqXZ0+ebVWh + c1ymeGGnd1yoeF2meGOoemWvg3SsgHKhe1ubd1aec2KmemmsgHKsgHKugG+oe2qmdF6hb1qmdF6u + e2WyhnSzh3Wvg2+whHCugnCsgG+re3Cre3CreGureGune2qvg3K0iHmyhnezh3qvg3esg3mrgniy + iIK4joi3jou0jIiygHmwf3iShomUh4uXgoyXgoydh46eiJCekqGajp2bjZmajJeVh5CVh5CWi5SV + iZKZhJCVgIyRfoKQfYCOf4KSg4aZg4udh46biJGdiZKZi5SekJmfkZ+ekJ6ejZefjpmjkJmijpej + laGrnaiqoa6on6ynna6mm6yml6GfkZqdjZWdjZWhkaOmlqillaimlqqmmaunmqyvn7Kvn7KopbCq + prKupbKnnquolZ6lkZqjl6Gjl6Gilp+flJ2llZ2jlJujlZ6omqOlm6ielaKhkpuajJWZi5SajJWZ + jZabkJmjl6ammqionaummqiel56VjpWXfoKVe3+Vg4SbiYuflJ2mmqOrmqWmlZ+akJSRh4uXi5GX + i5Gdl5mdl5mbjJGai5CUh42ViI6ahI6jjZeikpqjlJuhkJ2fjpuhiZuii52XgoeRe4CXg4OXg4OU + f4KXg4aUgoCVg4KXiJCfkJehkZmejpabhoiWgIOUfoObhoudjJmjkp+mjpaii5KfiI2ii5CdiZCd + iZCjh4yfg4iahIyhi5KnkZuijJaZgI2Ue4idf4eegIidh4mhi42hiY6fiI2ijIyjjY2mjIunjYyh + jIyijY2dgIaXe4CUd3mUd3mNc2+SeHSni4erjouoi42jhoiaeHWXdXOVeXmZfX2mjJCwlpqvlZas + kpSriYumhIalh4eegICliIiskJCylZWukZGvi3+qhnqffW2WdGSfgHeniH6ukZSukZSylJawkpWy + jZK0kJWzkZe2lJqzlpuvkpezjYiog36heWubdGeadGmdd2ulemefdWKhdV2ab1eaaFOWZE+UY0ya + aVGhb1eicFimcFqoc1yicFabalCZaU+eblSmdGOreWild2KmeGOld1+qe2Swg3eugHSofmOlel+d + dGqheG6sgn+rgH6wgHWufnOqe2moemiqemqwgHCyhne2iXq3iXqzhneugnOrf3Cqfm+rf3Crfm2q + fWuoeWuygnSyiH+0i4K2iIO3iYS0h36wg3qyg3q8jYS4i4O6jIS0hHSsfW2Vho2ZiZGah5CXhI2a + h5Cah5CeiZWeiZWejZ2ZiJeZi5SXiZKZhJCXg46VgouVgouRfoKRfoKXgoydh5GdiJSfi5aZi5SX + iZKdhpKfiJWii5qii5qhjJeijZmmjZqmjZqllaerm66snqqqm6ennqiimaOjlZ6fkZqhjZahjZah + kpuilJ2ikqWikqWmlKenlaiumaqwm6yupa+so66rn6uqnqqnl52ikpeilKKllqWelZ+hl6Kol6Kj + kp2jlaOrnaurnrCmmaullKOfjp6hkJ2hkJ2ekJuhkp6lmaWmmqanmq6om6+qoauhl6KVhI6RgIua + hIyhi5KelZ2lm6OqnqehlZ6fkJKWh4mbjI6ejpGnmqGll56ejpSai5CXhIuZhoydiZKfjJWhkJ2i + kZ6nl6qmlqinlaijkaWbiIyWg4eXhIibiIybiYuaiImXgoKZg4OXiIudjZChjZGfjJChhoyhhoya + g4ihiY6fjpumlaKrlJ6nkJqliZCjiI6ah4uZhomei46ah4uahIyfiZGnkZmhi5KZgomWf4eag4id + houdiIieiYmeiI2hi5Cmi5GojZSnjJKmi5GijIyjjY2hhImegoeZg4ORe3uReXONdW+if36riIeq + iIylg4ebenKXd26bf3qihoCoi5KwkpqvlZmwlpqsi4yqiImliYabgH2hh4amjIuwlJawlJa0kY6s + iYelfW+bdGeZeXWff3uojIyskJCylJSylJSzkI6zkI6ykJa2lJq3mZ6ylJmujI2riYusf3OleGuf + dGGhdWKmemSjeGKecliablWeaFSXYk6UZE2XaFCeclihdFuodFWseFindVufblSbalOhb1ereGuv + e2+qem2neGqleGmnemuvgnWyhHirfWWrfWWieW+le3Kug4Csgn+yfm2uemmoemWneWSrfnKyhHi0 + jYa4kYm6kIe0i4K2iXqugnOsgGisgGiqf2uqf2uqe3Owgnm2iIO7jYi3jo24kI64i4Kzhn2ugnC4 + jHq3jYO3jYO2iHevgnCbh5Kbh5KZiJWWhpKVhI6VhI6WgJWdh5uXiJqVhpeXh5SWhpKbg5mdhJqa + hI6Zg42XhIuWg4meiZefi5mdjpqekJuajZSXi5GXhIuah42hjZadiZKhkJ+hkJ+hkJ+ikaGmlaKo + l6Wml6allqWml6ajlaOilqWdkZ+fkpmdkJaekZWekZWfkJehkZmjkp+llKGmlaKsm6isoa+vo7Ks + nqeqm6WikpWbjI6jjpqlkJubkJuekp6nkp6nkp6hlKaom66om7KqnbOqmqyllaejl6ajl6aekp6e + kp6fmaWlnqqqmqyomauuoaeom6KhkpuZi5SbjJSdjZWekp6lmaWsm6anlqGjjo6diIiaiImjkZKq + maOqmaOmkZGbh4edhouag4ibjJSejpalkJurlqKqnbCrnrKqm6qilKKfiZShi5WhjZaijpefjJWX + hI2SfXqUfnubh4efi4uhjZafjJWfiJefiJeeg4mdgoiei5GlkZeqkZ6okJ2ijI6dh4mXg4aahoia + h4uZhombh4mfi42jjpGfi42ahIeXgoShi5WnkZujkJSfjJChi5CljpSmjpmqkp2rkJaih42jiI6j + iI6liZKih5CeiI2Vf4SVgnuVgnuhg4irjZKrjo6hhISef3ObfXCihoani4ujjZKokpe0lp60lp6r + jZKoi5CjiIShhoKih4OnjIiukpu0maKzlJuvkJerg4KddXSWdXeaeXqfgoSqjI6vkZasjpSyjZCz + jpGvjY6ykJGyjZKzjpSyjImwi4isg3mmfXOieF+hd16leFyhdFibb1Sbb1SdbVCZaU2XblGZb1Of + c2Kjd2Wnel6qfWGod1ymdFqmb1umb1undGWyfm+qem2oeWumem6qfnKsg3mrgnirf2usgG2rfm+u + gHKrgnmrgnmyg3CsfmuoeF+oeF+qfm+whHWykY62lZK8lpG3kYy0i4Kwh36uf2qsfmmofWmofWmn + fWmug2+yhH24i4O3jYe4joi0h3WugG+sfW2zg3OyhH24i4O6jHq3iXiZi5aajJeXjJqSh5WSgo6U + g5CVhJSWhpWUhpGUhpGUhIyUhIyahpGeiZWZiJWWhpKZho6diZKfkZ2fkZ2bkJubkJuZiY6VhouU + hImWh4ybi5WejZehlaOflKKhkp6ekJuljpmqlJ6llJ6llJ6imaGimaGilqWekqGakZmZkJefkJWe + jpSejZehkJqjkp+jkp+nlqOrmqeqna+uobOwoquqm6WjlJabjI6hi5KjjZWbjpWekZemkJemkJeh + kqGllqWnna+nna+qm6Wml6Glm6ijmqeimaahl6Welqafl6ejlqqqnbCwoq6un6unmaejlaOekJ6e + kJ6jlaGomqawm6qrlqWnkJeii5KeiJCmkJermqqqmainlZadi4ybh4mfi42ijpWei5GjkJmsmaKr + nrCsn7KrlqKnkp6liZKmi5Sqkp+qkp+jjpqahpGWf4SUfYKeiIihi4uljZeii5Wfi5afi5ahh4uZ + f4Obh4mjjpGnkJeokZmijIyfiYmbf3+egoKehIObgoCeiI2dh4yfiYmijIyahISXgoKeh46slZ2r + lZ2jjZWmkJKokpWnkJeulp6vkZmjho2ihImihImih5Cih5CeiJKbhpCeiIuXgoShhImrjpSskpSl + i4yhhH2fg3uni5CskJWqjpWskZezlZ22l5+qjpWnjJKmiI2lh4ymiYmni4uukJezlZ2wlJmylZqs + iYSffXiad26beG+igIKujI2zlJ6ykp2wjpCujI2ujYuvjoyyjIu0jo2zjI6viIuvh4Oqgn6lf3Cj + fm+ieGKhd2Gicleicleiclqfb1efdF6jeGKnenKqfXSrfWirfWiufVuoeFamdV2ldFyjdWGqe2er + fWqsfmuoeWuqem2ofXCqfnKrfnKugHSqe2eqe2eugHKzhnewg3Ksf26od1qlc1aleGurfnKyjIe2 + kIu7ko66kY23hn+2hH62g3KvfWureWisemmnfWSqf2euhH62jIa7jYS4i4K3g3KseWimd2eoeWmq + e3OzhHu3h3e3h3eVh5KZi5aWiZ2ViJuWhpWWhpWUhpGShJCSgoyUg42UhImWh4ybi5qdjJuZiZua + i52ejJ+ejJ+bkJudkZ2dkpaZjpKWh4ySg4iVf4ebho2fjJWjkJmimqqfl6efkpmekZeejpSllZqo + lKKrlqWmmqajl6Ojl6OhlaGhl6KelZ+ekp6ekp6fkZ+hkqGjkp+llKGlm6ijmqemlqirm66snqyo + mqihkZaejpSljpamkJefkJKhkZSokZaljZKijZmlkJunnqumnaqlm6ilm6immaummauim6ehmqaf + lKKhlaOnlqaunayunrKsnbCnlainlaillqKilJ+qkp+wmaarmqenlqOljpafiZGfiZSnkZuolqqr + mayilp+ajpeejpaikpqnkZuhi5WhkJqrmqWqnqqonairlZ+nkZuljJmnjpuqlJ6okp2ikJGdi4yX + fn2Xfn2ihoajh4eljZWnkJeijZmhjJeli4mbgoCdg4enjZGmjpaokZmljpGijI6jgoOjgoOlg4Sn + hoehjIydiIiehIahh4ibg36bg36eh46rlJurl56nlJqmjpSnkJWojZaylp+wkpqoi5KihoadgICe + g4mfhIubhJGeh5Shho6eg4yhg4uniZGskJKni42ih4Kih4KrjZeukJqylJuylJu0maKzl6GskpSs + kpSniYylh4mlh4mmiIusjZevkJqzlZq0lpuvjoijg32heG6ddGqbfoCniYywkZu0lZ+wkI2ri4ir + iIaqh4Srh4mqhoiuiIerhoSuhoKrg3+ogHCnf2+oemOneWKmdFqmdFqndGGreGSqemqufm6ugHiw + g3qzhnevgnOwf2eremKrelqldFSleFyoe1+sfmmvgGuzenKvd26odWeodWeoeWmre2une2ine2io + fXCugnWvg3KsgG+ye1+mcFWhc1yjdV6wg3u6jIS+kpK+kpK+iX23g3e6hHi3gnWyemiveGWoemWo + emWuf3e3iH+4jHq0iHezf2muemSmdF6mdF6meGWoemiyg263iHOWgo2diJSZjJ+ajaGaiZaVhJGR + g4yMfoeRfYiUf4uXh5GejZefkKKejqGdkKKdkKKmkaKijZ6hiZmii5qbjpWXi5GWh4yVhouXgoeZ + g4ieiJKjjZeflKKflKKfkpadkJShjZajkJmolKKqlaOilqWlmaeimaahl6Wmlqinl6qnm6qjl6af + maWblaGllqWllqWll6qll6qnl66oma+umaWqlaGfkJeikpqnkZumkJqdkpSdkpSjkJahjZShjZGi + jpKilZmmmZ2mmqajl6Oomqiqm6qmnaqjmqehlaOekqGnlqGsm6ammayll6umlqqqmq6nl6qnl6qq + m6eun6ummqahlaGolZ6jkJmhkpunmaKmlaWol6eilJ+hkp6llqKnmaWsl6OjjpqikZ6unaqvnqiq + maOmkJeljpajkJmlkZqrlJurlJuijZCeiYyag4iag4ihiY6jjJGnlJ2mkpuikpqhkZmijImdh4Sd + iIunkpWolJ+mkZ2okZunkJqjhouihImfiI2ii5CmkJeijJSfiYyfiYybhoieiIumiJWylKGwmaGu + lp6qkJSojpKmjparlJuwlZunjJKdgHuZfXiSfX2WgICVgIOZhIebhImdhoufhIumi5GojpKli46j + jJGjjJGojJ2wlKWzlqWzlqW3m6e2mqawm56rlpmoi42lh4mohoSmg4KmjJCojpKzkJm3lJ23kpWu + iYyognqie3SfgoSlh4msjpSvkZasjImqiYeviICqg3umfn2je3qog4Cngn+rhH2uh3+whHiugnWv + fWSsemKod1yndVuleWWqfmqsgHKvg3SyiH+ziYC6jH+2iHuyg26uf2qwe1urd1asel2zgGOvgnCy + hHO0gHKreGmjc1iiclemdFyod16mc12reGKsemewfmqyf26yf26wfmindV+jdFOfcE+oenK3iH+/ + jo3FlJLBjIK7h323g3Szf3C6g2uveWKoeF+remKvgG60hnO0jHm0jHm0hnCrfWiremKnd16wfmqz + gG22hnW2hnWVgIydiJSbjJ6bjJ6bh5KXg46SfoyRfYuQf4mRgIuZi5aekJujlaOjlaOflJ+flJ+h + lZ6dkZqfjJWfjJWekZeZjJKXhIuVgoiWhIaXhoeXiJCdjZWhkJqhkJqhjZabiJGhi5WljpmilJ2j + lZ6jl6Gilp+ilqWlmaeil6qjmauooq6lnqqjl6aflKKmlKehjqKikaGllKOjlKaikqWqlp+nlJ2d + kpmhlp2llqKllqKimaGimaGmlZ+hkJqdkJSdkJSfkJWllZqflJ2hlZ6hlaGilqKmmauom66lm6ie + laKilqKlmaWrmqqrmqqvma6vma6omayrm6+un66voa+mmZ+jlp2mlZ+llJ6hlaOmmqiol6Wjkp+l + kJ6mkZ+qlaaumaqwm6emkZ2ikZ6unaqznqyumaeskZqojZaljpaljpaqlJmnkZaeiI2bhouZg42a + hI6hiZamjpumlZ+llJ6mkpulkZqii5Cdhouii5KokZmsl6aumaerlKGqkp+sjpalh46hi5Kljpar + lZ+qlJ6mkJWijJGfiYyfiYyliZWrkJuzlZ+0lqGskpanjZGnkJWslZqslpumkJWmg4KffXuUeXSQ + dXCWe3idgn6Zg4Cdh4SiiIyli46ijJGhi5CljZWljZWojJqukZ+zlqW0l6aymaawl6Wvl52ulpus + jo6jhoafg4OZfX2fg4aliIuojJGwlJmwlJarjpGqg4ajfX+bfn6lh4eujI2vjY6sjIioiISnhn2j + gnmie3KhenClf3qjfnmnfnSqgHergnirgnivfmOse2Goe2KnemGsfW2vf2+vf3K0hHe2jIO3jYS4 + jH+2iX22h3Kuf2qzfWGye1+wfmO0gme2gni7h324iHiufm6jdFOZakmda1Ghb1WqclqyeWGvfmWz + gmmwhG6yhm+zgG2vfWmveV+oc1qseW+4hHq8jYbDlIy+iX+6hnu2hnW0hHS3hG6yf2mzel+udVus + f3C2iHm0jH6yiXuwgm+uf22vfWereWOwgnmwgnm3jIm8kY6Wgo2diJSbh5WahpSXg46Wgo2Rg5GR + g5GUhpGZi5abjJ6ejqGhkqGjlaOllJ6mlZ+hlZ6ekpuajZSZjJKei5Sei5SXhIuVgoiWgIaZg4ia + h5CfjJWbjpKZjJCbiI6Zhoyah42hjZSekZehlJqjlZ6ilJ2hlZ6ilp+llaerm66qnqylmaeikqWi + kqWjlaGekJuekZefkpmfkJefkJeikpqjlJumlp6llZ2ilJ+fkZ2jlaOnmaeml6OilJ+bkZeakJae + jpafkJedjpedjpedjpejlZ6jlKaqmqylmquil6iol6eol6eml6OnmaWsm6urmqqunrKvn7OuobOu + obOnmqGilZullaemlqill6ummayllqWfkZ+hkJqhkJqulqiwmauymqqmjp6mlaKqmaaun66omqio + kZuljZelkZemkpmmlJWhjpCjiI6fhIuXhI2diZKeiZWhjJellqKnmaWvl6Kqkp2ljZeii5Wljpmo + kp2wm6eynaiym6aym6asjpmniZSikZuol6KwmaiwmaivmZ6nkZahiZGfiJCliZKrkJmylqKzl6Or + kJmmi5SqjJSsjpaolZ6lkZqniYmihISXe3iUeHSVdXKaeneZfnOfhHmliIimiYmniZGmiJCmi5Sm + i5SliZCnjJKskZqwlZ6ylqKvlJ+wlpewlpeuko2liYSfhICWe3ideniif32jh4yvkpewkpqsjpas + hIOnf36hgH6ign+nh4SujYuujI2riYuriIajgH6mfnCed2mheWuje26mem6sgHSshHeuhnirfWin + eWSreWireWiqem2ufnCygnSygnSwiHi3jn64kH+3jn67h3iyfm+zgGizgGivfWu4hnS2iIC8joe/ + kH24iXesel2fblGaaFWea1imdF6wfmisfmmsfmmsfmmvgGuvgG6wgm+vf3KoeWuvfne2hH28jYy/ + kI67jX62iHm0h3q2iHu2h3S0hnOygGiufWSyg3u4iYKziX+yiH6vhHCqf2uufm6zg3O2h4m6i428 + kpnBlp2Wh4yVhouUgImSf4iRfoSSf4aVhJSZiJeZh5qbiZ2dkZ2dkZ2bjZullqWml6OjlaGhkp6e + kJuajJWWiJGfi5meiZeah5CZho6ah4ufjJCfjY6ejI2UiY2SiIyWhIOWhIOUgoObiYubjpWekZef + kZ2ilJ+ilJ+hkp6llqKnmaWnl6qfkKKdkKKekaOekJuXiZWbi5WejZefkJWhkZankp6qlaGnl5+l + lZ2hlJqfkpmllJ6nlqGnlqOmlaKflZudkpmejpafkJedjpeekJmhkp6jlaGnl6urm6+mmauom66y + na6vmqujlaGjlaGol6eunayunay0o7OwpbCvo6+sl6afi5mjlKarm66smq6rmaynlqOikZ6ikpqh + kZmolKWvmquwmauqkqWnkp6qlaGnmaellqWolKKlkJ6nkZmokpqolZmei46fhomfhomag4udho2b + iI6ei5GhkJqol6Kvl6KslZ+njY6jiYuejI2jkZKsl6iznq+0n6u0n6uvl5+qkpqllqKqm6e0n7C2 + obK0naeokZujjJafiJKliZKrkJmulqGwmaOrkZWli46njY6njY6ijpWjkJaljpGdh4mXe3eWenWX + c26Xc26ZeXWlhICliIini4uui5SriJGmiYymiYyfhoSbgoCjhIylho2ni5CrjpSojpCskpSqlY6l + kImlg3qffnWbenKefXSif4ivjJWqjZKskJWriIOhfnmaeHWffXqmgH+rhoSmiI2oi5Crh4mmgoSi + f32ee3mZdWmWc2efeGinf2+qhHWrhnesgmuofmiqem2re26sfW2vf2+vf3KsfW+ogHOyiXu6jIS/ + kYm7iYK6iIC2g2+yf2uufnO2hnq2jYm6kY27jnq2iXWyf2SjcleXalafcl2ofWmugm6yg3Cwgm+u + fm6ufm6ugnOwhHWygnewgHWyhHu3iYC3koa6lYi+kX23i3e3h3m0hHe2h3S3iHW0iHSzh3OzhoC3 + iYSviH2viH2whG6ugmuvgnW2iHu4iYy8jZC+lJ3Cl6GZiJKXh5GZg4uVf4eSfX+UfoCZg42eiJKX + i5GXi5GbjZadjpedjp2ml6ailqKilqKekpuajpebjZaXiZKaiZSZiJKeiZWfi5afkZqhkpuhi5Kd + h46ZiJKXh5GXg4aVgIOUf4KXg4aah4uei46ejpafkJeikpqhkZmjlKaomauolq6ejKObi5qdjJui + jZmdiJSei5Sei5ShjZSlkZeolZ6olZ6mlp6ikpqbkZWelJellKGnlqOol6eol6enm6WlmaKolKKn + kqGfkZqhkpuikpejlJmhlaOonaunm6esoayunayqmaillKGjkp+llKOqmairnauzpbO3prayobCr + lKGii5elkqaql6usm6iqmaaomZ6hkZaikpqejpalkJ6qlaOumaenkqGmkJWnkZajkp+mlaKrmqen + lqOmkpunlJ2nlJqfjJKdh4ybhouZg4iZg4idiIuhjI6ijpWnlJqqlJmokpemjI2hh4idiIiijY2o + kZ6vl6Wwn6yyoa6znaWrlZ2ll56mmZ+wn6yzoq+3n6qslZ+miJCdf4edgoinjJKnjJWwlZ6qkJGj + iYuhhoCfhH+fhIuliZCijIyfiYmegn6afnqaeneZeXWZeXelhIKljZKnkJWukJKqjI6miYyni42j + h4Kbf3qffXiffXihgH6jg4CfgoKniYmqjYmmiYalgoCif36dfnSbfXOffoKoh4uskJWskJWrjH+m + h3qdeW2deW2ifXqmgH6jgoOmhIaqhIOmgH+hfn2ffXuefXSZeG+heG6qgHeviYSyjIe0iHmugnOu + f22vgG6vgGuuf2qrf2mrf2mqeXKwf3izh3q8kIO7jIS8jYa6i3Wuf2que2qzgG+0i4S7kYu4kIKz + i32whminfV+ablWdcFeoenWzhH+zhnewg3Svf3KufnCqfnKwhHi2hnq3h3uyhnmzh3qzjIC4kYbB + kIS8jIC6h3OzgG2wgHC3h3e3h3e3h3ewh362jIOuhHquhHque2WqeGKsfmuzhHK4iInBkJG/lJXB + lZaaiZSaiZSfg4ibf4SWe4Kaf4ahjJeijZmZjJKWiZCah42fjJKikaGqmaimlqijlKabkpqZkJeV + i5GVi5GWjI2bkZKhkJ+nlqaom66jlqifiZGahIyShI2Uho6ahoaZhISXg4OZhISfi42hjI6fjJKh + jZShlJqhlJqlkqamlKemkZ+hjJqfiZGfiZGijJahi5WejpabjJSjkJmolZ6ml6GjlZ6omZ6ikpej + lZ6llp+ol6KmlZ+qmqyrm66onaurn66umaqqlaanlqallKOolZuolZuXjpahl5+nm6qqnqysm6ur + mqqllKGikZ6ikKOjkaWqmqywobO0pberm66ilJ+ajJehjqKjkaWumaWumaWqmp+ikpehlJefkpaj + kJmnlJ2rlqKnkp6mkJWljpSfjpmjkp2olKWvmqunkJ+okaGfkZGekJCdjoyWiIaWi4mViYifiYem + kI2nkJerlJurlZqokpejjY2eiIifiYyijI6mjpmrlJ6vmqa0n6uym6aslqGolZumkpmsm6ayoau6 + oa6slKGsi4ybenuWfYCehIiihIysjpamjIuiiIejgnmjgnmjg4ClhIKlh4mlh4mihoafg4Oeg3+d + gn6df4Klh4mvlJ2wlZ6ukpmrkJaniZGoi5KsiH+lgHifeW6feW6ZdWqbeG2ie3SrhH2uiIOog36l + goChfn2efXCaeW2XdXOhfnuriYuujI2ujYemhn+ie3Cdd2uXdXCZd3KfeW+mf3Wrfneoe3Soenum + eHmmeXKhdG2hdG+ugHu0jIy4kJC2joeviIC0gG+zf26uf2iuf2irfWiuf2qofmqme2iqgnSyiXuz + joa3kom/joO2hnqwfWmwfWm2iIO8jom+loy4kYe3jHiug2+meGOjdWGnfniwh4C4hHWyfm+uemes + eWWufnOygnewgnm2h360iHmyhne0h3q/kYTFkIbBjIK4hnS0gnC2gni4hHq6hnu7h322iXW4jHi2 + i3evhHCrel+nd1yreGSzf2u2hIDDkY2+lI28koybjZmXiZWahI6Zg42dhpCdhpCdjJuejZ2Uh42O + goiRhIiXi46ikKOmlKenkaqjjaabkZeZjpWXi5GajZSVkJGblpeilq+mmrOrmqemlaKfhIufhIub + iJGbiJGbhouahImXiYmWiIiei5GjkJajkJahjZSbkJudkZ2lkKGlkKGjjJmdhpKZiY6ejpSnkp6o + lJ+ikZ6hkJ2ml6Oomqammqinm6qunrCunrComqiml6aimaOhl6KomauunrCsnbCrm6+lmaWjl6Os + nqqrnaillJ6hkJqah5CfjJWilKKqm6qrnairnainlqGfjpmejZqfjpuikKOvnbCwoq6snqqmkpue + i5Sii5KmjpajlJunl5+jlJmhkZafkJWikpejkJamkpmnlJ2olZ6njJKliZCeiZWijZmnkJ2vl6Wo + maGjlJunkpWmkZShjZGbiIydjZKai5Cfi4ulkJCnkJWqkpeqkperlJmii5ChiY6ehIifhomhhoyl + iZCulaK2naqwl6WulaKqjZKrjpSokpq0nqa2n6qul6Kni4OZfXWUeXKVenOdf3+miIiihoaihoaf + hH+dgn2jgoOlg4SmhIamhIaeiIieiIihh4ahh4ang4uuiZGzl6Ozl6O0lqGwkp2qi5Kmh46rhoOn + gn+hf3SaeW6acmiddGqbeG2hfXKrhoCrhoCqgoCje3qdenmbeXiXd26aeXCnf36vh4aoiIKignuh + enCZc2mUcGWWc2iac2OddWWjeGmmemuleHOjd3KmdW+jc22bc22ieXOsh4S2kI26kIm0i4SshHeu + hnivg3Svg3SogG6ogG6ugnCne2qoe2+vgnWwi4a3kYy8jom6jIe2hnWwgHCzhoC7jYi/lY64joi6 + jH23iXqugnOrf3Cwgnm3iH+2h2+yg2uue2WvfWevgG6wgm+vf3Kzg3WuhnWshHSwg3u8joe/kYS8 + joK6iXu4iHq2hnqwgHW2gnW6hnmyg260hnC3i3KwhGuvfWKsel+reGSwfWmzg3jCkYbBkYm+joed + jJmaiZaXh5aWhpWXg46bh5KZi5aXiZWVgouQfYaVf4edh46ijZ6nkqOllqKjlaGbkZWZjpKai5KX + iJCbkJmjl6Gnn7Onn7OrmqehkJ2ahImbhouWjJKbkZejjZehi5WhiZGhiZGdjJadjJadjpqajJee + kJ6ekJ6fkZ+fkZ+iiZafh5SZiJWikZ6ol6enlqallaeikqWjl6anm6qunrCsna+zobawnrOmmaui + laejl6Ommqaqm6qsnqyvoa+rnauqnaOsn6awn6qyoaurlKGeh5SRgoeVhoudiJankqGfmaWhmqau + laKiiZahi5KfiZGhjJevmqaznqywm6qljpadh46dh4yijJGhkZmmlp6jlpqekZWijpWmkpmokpen + kZaulp6qkpqliZKliZKjh5WmiZeokZ6okZ6rl56olZuqlJuokpqhjZGdiY2bjI6bjI6njJKmi5Gl + jZKljZKqlJaslpmrkJajiI6dh4mdh4mXgoSeiIuqjJmzlaKykqKujp6vjoysjImrjZe3maO3n6qw + maOwjI6mgoSafneWenOZfnmjiIOlh4emiIiiiIejiYiniYmqjIyni4eliISihoiliIuli4yiiImn + iYyoi42zlZ+4mqW6mqWykp2zjJSwiZGniYylh4mhhH2dgHmhenCeeG6Wc2qeenKqgn6qgn6shn6o + gnqheXWed3OZdWqWc2ibeXSffXilgHijf3eieXOXb2mXb2WVbWOWa1iZbluecmGhdGOjd2+meXKl + d3KbbmmWcGmadG2ogH+3jo22lIuwjoauhHqsg3mzhHu0hn2zhn6zhn6yjH2lf3CmeWqqfW6uh3+y + i4O6jIe6jIe6hne0gHK2h3+/kIi8kZG6jo64i362iHuwiHqvh3mvh3mvh3m0iXOziHKzhG+zhG+w + hHOyhnSwhG6ugmuofWene2WsfW+zg3W7jIO+joa8jn+7jX62hnW0hHS0gm62g2+0gG27h3O3i3m3 + i3myhm2rf2eyhne0iHmyi4O3kIi7jIu3iIediZKfjJWaiZSWhpCUho6XiZKZiZGUhIyReoeQeYaU + foOZg4ibjZafkZqjkp+llKGbkZWXjZGai5CXiI2jkp+rmqeqn7Cnna6ol6KdjJaahImdh4yekZei + lZuolZ6lkZqjjJSljZWdjZWbjJSbjpWbjpWejJ+hjqKhjqKfjaGfi5mhjJqbkJujl6Ovmquumaqn + lqOikZ6nmaernaurnrCsn7Kyo7KworCmmaufkqWolJ+rlqKsl6Ovmqasoaqjl6Gilp+nm6Wsnqys + nqyikpqVho2SfX+UfoCdg4eojpKekp6hlaGnkp6eiZWai42Vhoibho2mkJeunrKrm6+nlJqdiZCe + iJChi5KhkJqmlZ+ll5ubjpKhkZamlpunlJqqlp2slqGnkZuiiZahiJWliZWliZWmkJqqlJ6vlqOs + lKGslaKqkp+nkZGijIydh4yijJGskZqqjpeljpGmkJKulpuulpuukZGliIibhoiXgoSUfYKZgoei + hoiukZSvkZmrjZWrjY2miIioi5eylKGzl6OwlaGzkJunhJCUfoCRe36bf3umiYaqjouliYali4yq + kJGylZqylZqnjY6li4ymi5GnjJKmjJCjiY2oi5KniZGylJ64mqW0maWwlaGyi42viIumi4ejiISi + hn6hhH2je3iheXWbeXeee3mjfnmngn2rg3Org3OhfWebeGKWcmGUb16Wc2iZdWqfeXKeeHCfeGqX + cGOdal6ZZ1uSZVSUZ1Wfbl2mdGOldWineGqoeWuhcmSXcGOac2Wleni2i4i+lo63kIiwhHisgHSy + hH2zhn6wh364joa6lISviXqqeGSmdGGoenKwgnm4iYS4iYS4iH23h3u0h367jYS+kIu7jYi7h320 + gHeyhnmzh3qzh3qzh3q0iHu0iHu7i327i326jH26jH2zhG2vgGmofmWnfWSremKufWS3g3m7h327 + jX68jn+4iHivf2+zgGqvfWeve2W4hG64iYC7jIO2iXqzh3i4lIu4lIu2kpG3lJK7kI24jYuXiJCW + h46XiI2XiI2XiJCai5KZiZGVho2OeYCNeH+SfX+bhoidjJmdjJmdi56ejJ+ajo2ViYiXhIibiIyl + kJ6qlaOlmaWflJ+ljpGeiIuWg4eah4uhkZallZqilZuilZuijJaahI6Wg4mVgoiViI6WiZCbi5Wd + jJaeiZqdiJmhiZmljZ2ikZ6ol6Wsl6ilkKGjjZWhi5KqkqWulqiom66uobOwoquml6GikpqfkJel + kZeqlp2umqOsmaKrm6OomaGmlaKnlqOonaulmaediY2UgISQeniRe3mZe36ihIeikpqikpqekpuZ + jZaUiY2Ng4eWgo2fi5aml6aqm6qll5uajZGdiZChjZSmlZ+ol6KikpeejpSfjJWjkJmqmaOol6Kv + lqOokJ2ii5WjjJaijJSijJSmi5SskZqolKWsl6iwl6WvlqOmkZSijZCfiZGljpaukpmukpmqlJal + jpGslZ+wmaOukZSliIuehIaehIaagIKZf4CehoCokIuukZSqjZCojIyihoamiJWoi5eskZqskZqu + kZaojJGbgIybgIyfg4ani42ujpmvkJqoi5erjZq0maWylqKqjpWukpmrkJmqjpelh4mhg4aliI2l + iI2sjJu2laW2mqOylp+vjY6nhoehhISfg4Onhn2lg3qmgHuhe3eff3uign6mgHuog36qhn2ng3qn + fWmdc1+WalqQZFSQZVWWa1uZbl2ab16XdF6XdF6abViXalaVaFaWaVebbWKhcmeldWimd2mleWWh + d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6Gjp + cepw62PsU+1A7i3vDO/r8LzxjvJW8xvz2/SV9U719vaf90L32/h0+QX5h/oK+o36+vtl+8/8OvyV + /OT9NP2D/dP+I/6J/vT/X//J//8AAGRlc2MAAAAAAAAACkNvbG9yIExDRAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAABtbHVjAAAAAAAAAA8AAAAMaXRJVAAAABQAAADEZnJGUgAAAEIAAADYbmJOTwAAABIA + AAEaZXNFUwAAABIAAAEsZmlGSQAAABAAAAE+cHRQVAAAABgAAAFOemhUVwAAAA4AAAFmamFKUAAA + AA4AAAF0bmxOTAAAABYAAAGCZGVERQAAABAAAAGYa29LUgAAAAwAAAGoZW5VUwAAABIAAAG0c3ZT + RQAAABAAAAHGZGFESwAAABwAAAHWemhDTgAAAAwAAAHyAEwAQwBEACAAYwBvAGwAbwByAGkAyQBj + AHIAYQBuACAA4AAgAGMAcgBpAHMAdABhAHUAeAAgAGwAaQBxAHUAaQBkAGUAcwAgAGMAbwB1AGwA + ZQB1AHIARgBhAHIAZwBlAC0ATABDAEQATABDAEQAIABjAG8AbABvAHIAVgDkAHIAaQAtAEwAQwBE + AEwAQwBEACAAYwBvAGwAbwByAGkAZABvX2mCcm2yZnaYb3k6VmgwqzDpMPwAIABMAEMARABLAGwA + ZQB1AHIAZQBuAC0ATABDAEQARgBhAHIAYgAtAEwAQwBEzuy37AAgAEwAQwBEAEMAbwBsAG8AcgAg + AEwAQwBEAEYA5AByAGcALQBMAEMARABMAEMARAAtAGYAYQByAHYAZQBzAGsA5gByAG1faYJyACAA + TABDAEQAAG1tb2QAAAAAAAAGEAAAnFYAAAAAv/h7gAAAAAAAAAAAAAAAAAAAAAB0ZXh0AAAAAENv + cHlyaWdodCBBcHBsZSBDb21wdXRlciwgSW5jLiwgMjAwNQAAAAA= +item7.X-ABRELATEDNAMES:assistant +item7.X-ABLabel:_$!!$_ +item8.X-ABRELATEDNAMES;type=pref:spouse +item8.X-ABLabel:_$!!$_ +item9.X-ABRELATEDNAMES:father +item9.X-ABLabel:_$!!$_ +item10.X-ABRELATEDNAMES:Custom relation +item10.X-ABLabel:CustomRelLabel +X-ABUID:3D833EB4-BFFC-41F0-9193-96695487C45E\:ABPerson +END:VCARD diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4-SingleCompany.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversit/testdata/AAB4-SingleCompany.vcf Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,32 @@ +BEGIN:VCARD +VERSION:3.0 +N:;;;; +FN:Apple Computer Inc. +ORG:Apple Computer Inc.; +TEL;type=MAIN;type=pref:1-800-MY-APPLE +item1.ADR;type=WORK;type=pref:;;1 Infinite Loop;Cupertino;CA;95014;United States +item1.X-ABADR:us +item2.URL;type=pref:http\://www.apple.com +item2.X-ABLabel:_$!!$_ +PHOTO;BASE64: + TU0AKgAAAyiAP+BQOCQWDQeEQmFQuGQ2HQ+IRGJROKRWLReMRmNRuOR2PR+QSGRSOPPyTOZ1OxjM + 1pLZfsVtuBxySaTWHvF5vVkNBqqlZrlTrFbqqfthvOKbUmlQN4PN6L1jMugrep1NZLtguR0uul12 + RvZ8PhhstoVWhWZbr5jsywPivW+PzFxqhZUCz3ehz9st+Z3C/Rp6vd8MFks60Whis1ovd8vm/4+L + ul2O5YrpgYehMBkM2mvTIZ+LOJzOm0ZVgM5qtmcvbQa1+696PZ76vXv2Eu14PJmNNsNNtN7JO7a0 + yncF2u9423Wx+TPx0ZNlNFqrthslar5iddiLxispmtRsc93Pl9PuB7Xyvt3vJ575vVBlrVesOrsF + ZLxgy5i2NoN1xnMxjHOWiLVmWaRrFcW5eroXDMKooS6FyV5cF8zRmmubpwG4cJyJWaT6wjB0HKIX + MLHUdx4QGhbcHk7hlREvEYQeW8GQZGUbxioTtHIdB1uHFTVl4YkXxzGccSNIsjyUvDCGdALlubAx + rSXJEqypK8ilyYRjq1HzXs+2seHWWBcl/LErSTNM0TWtBcGCYzjnjFR/vEY5nGnG01TPPc9KFCZf + NEdM5oGaBrm27U+TZPtFUYYhmGi9NBoEX61xJRNL0WtBWFsXijKRSSB0RTNR0ZTBbvqcrJVAgb61 + NV1SPkYZ1OPVaBNNV9S1JGRZl4YTxVqf9eGFXFiTVBJem8cZz2BIRlTzXNoWLGcIu+bFgTsacyTN + XVuWjWDsTjUBsG6cLqGTaV0LxBhkulJ8VRY3ZsRDbt02hEl4uU1zXnAcpz21euAQgur+Vmd7ltW+ + GA29ha0F0YZkTmaRsG5eeGXpi9GSlOb1nnYWFXrTZeYLUDUGzj+MRknZq0jSSnHrNxjZPi0qvrE8 + U2AgVknOVZaF1mUzp8XL3ZwgramgaxtZ/btHGjfOiIKtsLaVRhbmAYtw6ehacHrqVFwZhxkSlQpt + 2qtRmUtReYHOdZ26yiLAnwaOJvqVZal2+5g5VLrYnu9LauatrxXi7RWwVvF445t3FcXxnG8dx/Ic + jyXJ8pyvLIIgIAANAQAAAwAAAAEAMAAAAQEAAwAAAAEAMAAAAQIAAwAAAAMAAAPKAQMAAwAAAAEA + BQAAAQYAAwAAAAEAAgAAAREABAAAAAEAAAAIARUAAwAAAAEAAwAAARYABAAAAAEAAADjARcABAAA + AAEAAAMgARoABQAAAAEAAAPQARsABQAAAAEAAAPYARwAAwAAAAEAAQAAASgAAwAAAAEAAgAAAAAA + AAAIAAgACAAK/IAAACcQAAr8gAAAJxA= +X-ABShowAs:COMPANY +X-ABUID:C5C50103-C86C-40BB-8864-909A089EB390\:ABPerson +END:VCARD diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4-SingleExtensive.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversit/testdata/AAB4-SingleExtensive.vcf Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,3567 @@ +BEGIN:VCARD +VERSION:3.0 +N:Lastname;Firstname;;; +FN:Firstname Lastname +ORG:Company; +EMAIL;type=INTERNET;type=WORK;type=pref:work@email +item1.EMAIL;type=INTERNET:other email +item1.X-ABLabel:_$!!$_ +item2.EMAIL;type=INTERNET:custom@email +item2.X-ABLabel:custom email label +TEL;type=WORK;type=pref:work phone +TEL;type=WORK:work phone 2 +TEL;type=CELL:mobile phone +TEL;type=WORK;type=FAX:work fax +item3.TEL:other phone +item3.X-ABLabel:_$!!$_ +item4.TEL:custom phone +item4.X-ABLabel:custom label +item5.ADR;type=WORK;type=pref:;;Work Address;Work City;Work State;Work ZIP;Work Country +item5.X-ABADR:us +X-AIM;type=WORK;type=pref:workaim +X-JABBER;type=HOME;type=pref:Jabber +X-JABBER;type=WORK:workjabber +item6.X-MSN;type=pref:othermsn +item6.X-ABLabel:_$!!$_ +X-YAHOO;type=HOME;type=pref:homeyahoo +X-ICQ;type=WORK;type=pref:workicq +PHOTO;BASE64: + TU0AKgADAAhIMyBIMyBIMidELiNDKxc/KBVAKRY/KBVALBZGMRpIMx5KNSBKNylOOixPOSdIMiFD + LxhEMBlEKxlFLBo6LBY5KxU5JQ47Jw87KhU+LRdELh9IMiNNNSlQOSxVPi5ROytPOS1POS1PODFT + OzRKQDA9MyRHKRZJKxdJMyJOOCZKOCVFMiBAMyVAMyVAMydFOCtMQDVHPDFFNyU/MSA8LyFGOSpP + QC5WRzRQPzBJOSo8MiM4Lh8/LyFVRDReTEVlU0xnT0FkTT9hT0NjUUVhSTxdRjlJNSBDLxpHNy5T + QTlYQzJMNydUOSVVOiZRNyNOMyBKLBpIKhhDLxpFMRxGMRxFMBtOPihQQCpMOSZHNCJMNSJWPytW + QTNWQTNTPjFKNypMMiJNMyNTQTNcSjxiT0ZfTURYRS9MOSRUQC9bRzVbSjhNPStHOCY/MB9ENR5K + PCRYQThXQDdROy5POSxGOiVEOCNKOy1TQzRNPS9AMSREMCRHMydELyBJNCV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+idF2icleeblSda1aZaFOUZE2NXkeIXEaO + YkyRb1+XdWWedFqXblSLdHuGb3eCamV/aGN7b2V5bWN5bmp/dHCHeHqQgIORi5aRi5aNh42Nh42Z + hoyah42XjJeXjJebjpKViIyRgoeQgIaNgIKMf4CHfn2DenmHfYOIfoSMhIeRiYyQiZKVjpebjqGe + kaOZjpWRh42OfXuJeHeLeXiJeHd+dXJ/d3ODeneJgH2RgoSVhoiai5CXiI2SiIyUiY2SjpeWkpub + lqealaaRjJuJhJSJen+Of4SRi5aalJ+ekaObjqGVho2Le4ODfn2Mh4aSjpqZlaGel6+fmbCelqqa + kqaUiJGRho6SjJeZkp6ZkaWZkaWdlKGdlKGal6abmaeem66XlaeWlqWZmaebmaifnayem66ZlqiW + kpuQjJWXiZKXiZKVjpWQiZCMhImMhImRh42UiZCSjpqSjpqXkZ2UjZmQi46Mh4uOgoiJfYOGeoOH + e4SJfYCNgISRgoeNfoOOf4eUhIyRg4yShI2XhIuWg4mZhoyVgoiSiI6Rh42Vho2RgomShomXi46W + jpSakpelmaWekp6Sh5CNgouOg4yRho6Sh5WWi5mdkZqflJ2dkJSXi46ShoyRhIuOg5GUiJaZi5ae + kJuUiJGUiJGZjZmWi5aVi46UiY2ai5CWh4yRgomVho2Vh5KVh5KbjJSZiZGVg4SLeXqIdXmHdHiN + eHiOeXmSfoCVgIOUenmOdXSGcmqGcmqJcG+LcnCMd3mQen2Wen+UeH2SeX2Uen6SfYSZg4ufhICd + gn6aenSSc22OdG+UeXSQf3iSgnqWe3SGa2R/YVuAYlyCY12EZV+JameRcm6WeXuZe36ZeXWXeHSW + d3OQcG2Xc26deHOihoKfg3+igHibenKaeHObeXSifXilf3qfeGWVblySaVSOZVCQal+WcGWZd3Kh + fnmjgHujgHuffWqaeGWWeWWXemede3OigHihemOSbVaRYVCQX0+OaFuOaFuQZ0+WbVWXc1+eeWWh + dWSid2Wjd1ueclaablOXa1CUZEqVZUyRYUyOXkmSZ16bb2edc1iacFaLdHmEbnOC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h5CWhpCUg42OgoiOgoiIeXuHeHqGeXqHenuNgouOg4yRho6N + gouOhpKRiJWUjZmVjpqZjZmajpqhkp6ilJ+XjpuWjZqXi52ajZ+akqKdlaWblaGUjZmNhI6NhI6U + h42WiZCWi5aZjZmVjJSRiJCQh46Oho2Uh4uRhIiQiI2QiI2Ng4mNg4mRg4yXiZKfkpSXi4yZhISZ + hISOgoaMf4OOhIuRh42Qg4SQg4SNeXmMeHiQe3mQe3mNfoaWh46bkp+WjZqRhIuNgIeQfYCUgISa + hIyeiJCilZmdkJSXhoSNe3qNcm6WeneVgoibiI6ZiY6UhImRg4ONf3+RgoSZiYydjJmfjpujlJua + i5KZh4iSgIKQeX6OeH2Re4OZg4udjZWdjZWdho2Se4OVf3+WgICWgnuZhH6deniZd3SUenmVe3qR + emuQeWqRd2uSeG2Jc2eHcGSGamOJbmeUdG6ZeXOWdWqUc2iQdWqVem+eeXSdeHOae3KhgnidiYOd + iYOfh36ehn2ignuignuef3Kef3KZeXOZeXOaeniefnufg36dgHunf22bdGKUaViOZFSSamSbc22d + eHWdeHWadWKXc1+XcmibdWumfXSle3OieXCjenKhdGWjd2ileW2ofXCsgGileWGfblufbluhcFih + cFieblaeblaZa1qhc2Gjd2WnemmqfWumeWijdWGhc16jeGmqfm+og3KrhnSreWWhb1yhaUqXYUON + foONfoONen6QfYCMf4COgoOVgIyXg46Vh5CQgouQfYCNen6MfoeRg4yRhIuQg4mOhIuQhoyNgIKR + hIaQi46SjZGZjZmajpqXjZ6WjJ2bjJ6djZ+QhoyMgoiSg4iQgIaQhI2ViZKdkKOhlKehlquhlquh + lKqdkKaajJebjZmbkpqZkJeVkJSQi46RiJWQh5SOiY2Qi46UjI6XkJKel6Oel6Obkp+akZ6XkZqZ + kpuhmaiimqqblqaXkqKdlKGlm6ienqyenqyhkp6Rg46NgIeRhIuSf4OWg4eVhouVhouWh46UhIyL + f4iJfoeGenmJfn2MeX2Nen6LgISJf4ONfoORgoeNgouRho6UjZaVjpeZjZm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ZeXjpmajpqd + kZ2WkJmVjpebkp2dlJ6ekpuXjJWWjpSWjpSVkJSRjJCViIyRhIiQiI2WjpSblZ6fmaKhkJqbi5WV + goaOe3+Ne32Vg4SOhIaMgoORhIaViImag4idhoubhoibhoidkJaekZebh4mNeXuOeX6Xgoeah4uj + kJShlp2hlp2jiY2hh4uafn6Xe3uah42ei5GWiYuOgoOHcnSIc3WReoKag4uZi5SZi5Sah4uUgISX + foKSeX2MdX2Nd36Qfn+Rf4CWhIaaiImZhn6VgnqUeHORdXCQc3OWeXmWfYCXfoKZg4iZg4ieg3ua + f3ibeXSaeHOOd2KLc16MaFWJZVONbl6UdGSZdWmdeW2ZeXOWd3CZeGuZeGuRd2uVem+We3ebgHuf + f3mignuign6ff3uihoKjh4OniYmmiIihhoCeg36dgHuafnmhenOjfXWad2uQbWKQZ0+OZU6QZFSW + alqab1eZblaZb1ybcl6adF+Zc16ec1+ZblubcFufdF6bdWqlfnOnf3Knf3Kme2ifdWKhc16fcl2d + a0+ZaEyUZ1Wfcl+leHOmeXSofWmid2OicFafblSdcmGne2qqgHqvhn+zg3iufnOneFeic1OOg46M + gIyQgIaNfoOMeX+MeX+Me4aRgIuSg4uWh46Rh42Rh42SiZSVjJaViZeViZeSkJSQjZGRjI2OiYuQ + i4yUjpCZkpualJ2ZjZaXjJWWjZeWjZeViZWSh5KNgouNgouai5CdjZKajJWbjZabjZubjZuajZSS + hoyUh4uViIyXjZSWjJKSjpqVkZ2fkZqfkZqakJaakJahl5+mnaWhmaqZkaKWjpSSi5CVjpedlp+l + laeikqWakJSWjJCXlZmhnqKloayemqaekZWViIyQgo2Rg46LhomNiIyQh5GQh5GVh5KWiJSWi5SZ + jZaSiZGQh46WiJGXiZKQgo2LfYiIfoKGe3+LfoKNgISQh5SRiJWWjZebkp2VlaKZmaaflaaflaam + mqijl6ajlaGilJ+ZkaGXkJ+ZjqGbkaOdkKaekaebkp2ZkJqakqKelqaakqKWjp6WkJaUjZSajY6Z + jI2UhoaOgICRh42WjJKdlKGimaaelKWXjZ6ah42RfoSOen2WgoSOhoSOhoSWh4ybjJGfi5abh5Kd + iZCbiI6bkZedkpmbiYuSgIKIfoKQhomajZSekZejlpqll5umkJCijIyXgoSSfX+Zg4udh46biYuO + fX6IbmqDaWWLbniWeYOWh4yai5CZhIeRfX+WfX6WfX6ReHmReHmReHeUenmWgICeiIidiIidiIia + gIKVe32UeXWSeHSWenqdgICehIafhoehh4aehIOfg3ubf3iVe2mQd2SLalSIaFGOcGOSdGebenKd + e3ObfXOXeW+WeG6Vd22QbmuScG6Sc22XeHKZenCZenCXe3ibf3uihoijh4mmiYyni42niH6jhHqf + hHWZfm+de3Chf3Sfe2+XdGiXbVWRZ0+OZFGQZVOXbliacFubd2Wjfm2iemiheWeic2Web2KacF2b + cl6ZcGefd22jf3OlgHSnf3KlfW+meGGidF2bbleXalSWalqabl2eeG2ie3CoemOfclufblSebVOh + b1yod2Osf3qwg36uf3esfnWmdVijc1aQh5GQh5GShoyQg4mRfX+Qe36RhIiXi46ajJWajJWaiZmb + i5qWjZeVjJaUi5WWjZeXkZqXkZqVi46SiIyUiJGbkJmfkqWdkKKZjZmXjJeajJWbjZaSiZaSiZaU + iJaajp2ekZeekZebjJGai5CSjJWUjZaQiI2MhImUiY2XjZGZjZmXjJeXkKGblKWflKKekqGakJae + lJqjmqemnaqilqKZjZmUiY2Ng4eQiZKalJ2hkpudjpeWjJKZjpWel6GnoaqloaqhnaadkpmXjZSR + iJCNhIyMiI6Oi5GSiZaSiZaSjZ2WkaGhlKafkqWWkaGSjZ2Wi5aWi5aUiY2QhomOgoaMf4OJen2J + en2JfomMgIyRjJCVkJSdlqKel6OdlaWdlaWil6qlmqylmaeekqGdjZ+bjJ6ZjqOelKiflKKflKKd + lJudlJuWkaGblqadlqKalJ+bkpqakZmei46fjJCahoaUf3+XiI2fkJWhl6KimaOZlZ6RjZaViIyR + hIiOf4SRgoeVhouWh4yZiY6djZKhkZmdjZWijpediZKVjpqblaGhkpuWiJG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CM + c3KHbm2GcHCLdXWVf4eXgombhImVfoOXfoKXfoKVf4KVf4KQfn+Rf4CSe4OWf4ediZChjZShjZSh + jZSljo6eiIiXfn+UenuVe3qdg4KeiYOeiYOfhH2ih3+egn6afnqdd2uWcGWWd3CefniihImjhouj + h4Kbf3qWeGuUdWmUcGWUcGWVbWOSamGRbmKVcmWScGuZd3KffXqnhIKsiYiqh4aviICngHmde3Cd + e3Cif3qmg36ohHmifnOfemmdeGeadWSbd2WadWSdeGeifXijfnmqh4Kui4aqgHqjenShd2GXbliS + aVaZb1ybbm2idHOje2uogHCnfWSXblabZEqeZ02WaVWZa1eablWdcFeib1qea1aXaEeOXz+JZE6W + cFqje26rg3WsfW2md2eialCdZUyUiJGZjZaajp2ajp2XjpaWjZWdkKKfkqWilJ+ekJuXjJWXjJWZ + jJ6ViJqZjqGelKailJ+ekJuah5CdiZKajpqajpqdkpaZjpKWjJKSiI6QhomQhomRiZmVjZ2ajaGe + kaWbkp+WjZqUiJGRho6Qh5GRiJKXiZKZi5SZkJqflqGlmaWhlaGdlKGbkp+ekpuajpefkZqhkpuh + lZ6flJ2ZjpCVi4yQg4SNgIKQg4SbjpCXjJWajpebkJmflJ2hlaGjl6Ohl5+elZ2alJ2alJ2ZkJ2b + kp+Zkp6alJ+alqKbl6Ofna+in7KfmqqalaWSjY6RjI2RjI2UjpCakpeXkJWViZWRhpGOgoOLfn+J + goKNhoaSi42WjpGalZmdl5ublaGdlqKfl6efl6emmqammqailJ2djpeWjZqXjpubkJ6ajp2ViZKS + h5CXh5GejZehlaOilqWhl5+dlJubkJmajpeXhIuUgIeRh42XjZSbjZaZi5SSg4aNfoCUfnuWgH6X + goKfiYmVh4eVh4ediY2ijpKfjJKei5GbjI6XiIuUhIyWh46WiZCZjJKUiZCVi5GfkZqilJ2mkpms + mZ+mkpmhjZSXf3mQeHKQfXeXhH6Zg4OXgoKQeX6LdHmNeH2NeH2NeIKUfoiahIyahIydh4yeiI2a + hISahISUgIeVgoiUfYKVfoObhouhi5CfkJWejpSmkJKjjZCbhoiRe36Wenebf3udh4eeiIijiISj + iIShhoKdgn6hfXSZdW2bfXOfgHeliZCmi5GjiICbgHmad2uUcGWScmWUc2eScF6Na1qQbl6ObV2Q + al+Xcmeee2ulgnKsh4SuiIashnumf3Wfe3Cfe3ClgoCqh4arh3qjf3Oie3Cmf3SlgHWlgHWffWqh + fmumf3Wmf3Wog36sh4KrgH6lenilemedc1+UcFuSb1qXa1udcF+ec2ene2+mfWKddFqaZUqZZEmZ + aFebalqabViabVibalWZaFOWZ02UZEqNYkeUaE2bdGelfW+qfWunemmjblWbZ06WkJuZkp6Zjp+Z + jp+ekqGekqGdkKOajaGXjpmWjZedjJaejZeXjJqbkJ6fl6efl6edjpqbjZmVho2ZiZGXjJWbkJmZ + lJeVkJSSi42NhoiRg4CRg4CRh42Vi5GZjp+dkqOWkJmQiZKQgouRg4yOhpCNhI6Vh5CajJWdlJui + maGmnaehl6KekJufkZ2ekJubjZmXjpaZkJeel56fmZ+dlZedlZeWiY2ViIybjpWfkpmakZmZkJee + jZehkJqjlZ6ilJ2flJ2hlZ6jmqeimaabkaKdkqOWkaGZlKOdl6einayin7Kin7KbmqWRkJqVhouW + h4yWkJaZkpmblZ6WkJmZjJ6ViJqUi5WQh5GSiI6UiZCWjJKakJabkZWhlpqekqGekqGflqGflqGe + mqOhnaailp+ekpuZkpuZkpuXjpaSiZGVho2Sg4uZhoydiZChkqGomqijmqKdlJujlJadjZCXgoyV + f4mXi46ajZGdkJGXi4yRgoSQgIOZgoedhoueiJCljpabjpKViIyjkJanlJqlkZefjJKfjJCXhIiU + foCVf4KRgoSSg4aOf4KNfoCXiJCai5KijpWolZunlJqhjZSZhIKXg4CXhIiZhomVh4eUhoaVgoiU + gIeShISRg4ONeHiNeHiVfoadho2liZCliZCiiImiiImZhomVgoaSfoCQe36UfYKag4ihiY6ljZKo + lJaolJadiIuOen2Rd3KUeXSZf4CbgoOjhoalh4emhoKhgH2ffnWbenKigHWmhHmmi5anjJemi3+f + hHmjd26bb2eZc2iWcGWQa12RbV6SamGRaV+SbWKWcGWaeW2jgnWuh3+shn6qiH2lg3ijfXWfeXKn + gn+qhIKrh36rh36ognirhHqqhn2ohHulf3CmgHKngHWmf3SmgHungn2qgoCmfn2ofW6id2ibclWR + aEyXZ1Sda1iab1yfdGGld2Kld2KfaUiZY0OWaVOabVabblqbblqaaFWaaFWXaFCVZU6VZU6UZE2Z + aluic2OmeG+oenKreVyjclWajaGbjqKZlKWalaaelqeblKWdkqOakKGWkJmWkJmfjpufjpudjpql + lqKll6qjlqihkZabjJGWiIiajIyXjpmXjpmUkZWRjpKNhoaNhoaMgH+NgoCVg4SbiYuZi5abjZmW + iY2OgoaOe4KNeoCMfYSOf4eQhoyXjZSelZ+jmqWfm6WdmaKekJubjZmXjpmWjZeXjJWdkZqemqah + naijmqWhl6KdlJ6dlJ6blaGblaGZjZaZjZadjZKfkJWhkp6ekJuflqOlm6imm6ymm6ydlp+blZ6d + laWdlaWflqOon6ysn7KnmqyXlZmOjJCWiZCajZSSkp+Skp+akZuXjpmZjp+Zjp+SkJ+UkaGZkpuZ + kpuakJaakJadkZqflJ2bkaKZjp+ekp6hlaGbl6GdmaKhlaGflJ+fkZ2ekJufkJWai5CbhIyZgomO + gH6Vh4SZjZunm6qenaebmqWfkpaajZGah42ah42bjpWdkJadjZCfkJKXiYmUhoaXiZWilJ+jlaOe + kJ6akZmVjJShlJqjlp2mkZ2lkJujjZWeiJCZh4iWhIaRf3uOfXmUenmSeXiJfn2QhIOZjJCekZWd + kJSdkJSdiIudiIuhiZadhpKXi5GViI6diZKhjZaijpWbiI6Qe3SLd2+Rf4CaiImlkZqmkpumjpSe + h4yXhoeUgoORe3mNeHWQeniVf32bh4mjjpGokpWnkZSli4yXfn+McmqLcGmRdXKWenehf4Cnhoeo + iIKlhH6ifnOdeW6denWjgHulh4ymiI2qhH+og36lgHSdeW2dd2ueeG2XdWWRb1+Oa1+Sb2OXc2SZ + dGWbenKffnWmgH6rhoOui4iqh4SohHueenKhe3elf3qogICrg4OnhHSqh3emh3qmh3qrgnirgnir + hHqlfnSiem2je26lfnejfXWlfWqmfmufd1SddFGfblufblubblqidF+ld1+ld1+jc1OhcFCXbVee + c12bb1GZbU+dZ1ObZVGWbVOZb1WebVefblihb1emdFyjdWGld2KqeF2ndVufjaGikKOelKaelKab + lKOZkaGZkp6blaGekJmekJmfjpuejZqfkZ+nmaejmaqhlqedkJSajZGZjJCajZGWjpSWjpSWkZWU + jpKRh4uMgoaIgIOIgIORfXqWgn+ShoyUh42QgIaLe4CLdXqLdXqNen6QfYCNg4eXjZGhlJqnmqGh + l5+ZkJeXjZSWjJKWi5SXjJWajpehlZ6ina6ina6lmqyil6qhmaifl6edlqKZkp6ajZSZjJKWjJCb + kZWelZ+dlJ6fkKOmlqqlnayimqqblpqVkJSdjpqhkp6blZ6mn6iroq+imaadkJaWiZCWjZWimaGa + l6eVkqKVjpeWkJmZkJ2dlKGWkaGalaWel6GblZ6alZmdl5uflKKilqWdkKKZjJ6akZ6flqOflaah + lqedlp+dlp+hkp6fkZ2hkZaZiY6hiY6dhouVhouOf4SUi5emnaqlnayjm6ufkZqbjZaWjJKVi5Gd + kZqflJ2hlp2elJqajo2ZjYyXkZeel56jmqedlKGdkZ2dkZ2jlJmmlpuqlaGmkZ2jjZeijJabjI6X + iIuZhISVgICQe3mLd3SId3ONe3iSg4iZiY6ai42djZCZhoybiI6fjJWei5Sii5Keh46RgI2djJmo + kZ6jjJmZgHqMdG6IdHKUf32fkJemlp6olJahjI6Xg4ORfX2OeXeLdXOQdHCXe3iZh4ajkZCnlZam + lJWnjYybgoCUdG6NbmiSc22Wd3CfgoSihIeihoChhH+fgHebfXOafnefg3ujh4eliIiliICihn6h + hnieg3WignuignuffW2Vc2OWamKabmWadGqeeG6denWhfnmmgH+sh4aujYmnh4Omg36ffXieem6j + f3OmgHuog36mhHinhnmoh3qnhnmohHurh36sh4KqhH+ifmOfe2GjenCieW+mfmuiemihd16fdV2h + dGOhdGOdcmGfdGOdd12adFufdFyjeF+adF+Zc16dbk6dbk6faUyhak2iclqmdV2mdF6mdF6meGGn + eWKleWOjeGKqeF+qeF+djZ+fkKKelqablKOVkJ+Ujp6ZkJ2dlKGdkpmdkpmdkpmdkpmikqWnl6qi + laedkKKblJmakpeekZebjpWZjI2Uh4iWjJKUiZCRhIuNgIeHenuHenuOe3WVgnuUgIeUgIeQfYON + eoCNd3uNd3uMenuQfn+Ngn6ViYabkZehlp2jlpqekZWVjZCSi42ZiY6ai5Cdlp+im6WjobClorKh + maqelqeimaahl6WbkJmWi5SZiY6ZiY6WjpSakpeakqKZkaGXjJeekp6imaaimaaakJGUiYuXi5Ga + jZSUkp2enaemn6udlqKWiZCViI6ZkJ2jmqealaaVkKGSjJeRi5aXkZ2alJ+dlaWakqKjlZ6jlZ6f + lqGimaOilqWflKKZjZmWi5aajpqdkZ2hlaOjl6aelKWhlqehl6WdlKGhkpuekJmfkZqZi5Sai5KQ + gIiUjZmhmqanl6qnl6qhkp6djpqXjpaZkJeel6OdlqKjmqKflp6ZkZSXkJKdlp2fmZ+hmqael6Oe + lZ+flqGmkpuqlp+mmZ+ll56jkp2ejZedjZWfkJedjZKWh4yVgIONeXuLd3SMeHWXg4abh4meiYeh + jImaiImejI2fjY6fjY6hi4uhi4uSgoyZiJKllJ6hkJqehoCWfnmQdW6UeXKajIyml5eqlZWjjo6f + hoSXfn2UeXSOdG+MbWeSc22SfX2fiYmjkJamkpmukZaihouXd26JaWGObmWXd26df4KjhoijiICi + h3+hgnWdfnKafnmdgHuiiIehh4afiHuhiX2liIOmiYSri4esjIiognedd2uZc1yadF2efXSffnWh + f3eefXShfnmlgn2sjIiqiYaqhH+ifXied2med2mhfXSng3qrh3urh3usg3mrgnimgnmohHunhH+q + h4KlgGibeF+hdWeid2ilfmmhemWheWeheWefeGqfeGqbdWGbdWGZc1yXcluhcmKmd2eleWOjeGKi + dE2db0ifaUqjbU6od2Oue2iofWSofWSuf2qsfmmrfWioemWmdFyndV2XkZ2alJ+XkZqXkZqXjpuX + jpubkp2bkp2bkpqbkpqakJaakJaakqKblKOelaKakZ6ilJ2ilJ2fkJeai5KZhomXhIiViI6WiZCR + h42LgIeOgICLfX2Qgn2XiYSXhoeVg4SQeoKNeH+Md36Md36MenuOfX6SfoCZhIedjZWhkZmikpeb + jJGQiI2RiY6ZiJWfjpufl6emnq6nn6+mnq6dlqKel6OhmqOfmaKakJaWjJKWh4yXiI2SjpeZlZ6d + lp2XkZeSjJWZkpuflKKhlaOakJSSiIyRh4iVi4yWkJmXkZqdlp+ZkpuUiY2Vi46dlqKlnqqbkJuV + iZWRh4uSiIyXjpaZkJebkp2XjpmajJWekJmbjqGilaeflqGbkp2ZjpKVi46ViZKWi5SZkJ2elaKe + lKWelKWfkqailaiilqWilqWhl6Kbkp2ekZeViI6SiZSbkp2hlaOilqWflJ+ZjZmakZ6dlKGil6qe + lKailKKekJ6Wjo6akpKdlJulm6OlmaKilp+bkp+bkp+jlaGml6OlmaKjl6GikZuejZedkJSdkJSf + kpaXi46XhIuWg4mSfniOenSVf4Kbhoifi42hjI6hi42hi42ejIudi4mhhoyhhoyZg4iZg4iikpqm + lp6ijYeXg32Nem2Sf3KZh4imlJWsl5qlkJKhiIOXf3qWenOSd2+LcmeHbmOLd3CVgHqhi5KijJSq + jJSlh46Zem6LbWGIamGRc2mbenuhf4Cni4Oihn6dgnSZfnCbf3qdgHuihIejhoiliIiliIiqiYeu + jYuwjYyvjIuviXiifWuWcFqZc1yig3elhnmnhnmhf3OigHWjgnenh4Cnh4CuiYCmgnmdemqZd2ef + eW+jfXOohHmrh3uwg36vgn2lfnSngHeog4CrhoOlgGqhfWefdFybcFifd1yjel+lemenfWmne22j + eGmec2KbcF+Zc1yVb1iicF+od2WqfWuqfWuneWSjdWGhb1ejclqnemGugGewhGusgGi2hGuygGiw + fmivfWeqeVyjc1aZkJeVjJSWjJ2WjJ2ajJqbjZuekJuilJ+flJ2dkZqZjJKajZSWjZqZkJ2bkpqd + lJujl6OhlaGejpaZiZGZhomah4uVhoiVhoiSiIyJf4ORgoeUhImZjJKajZSZiJKWhpCQgIaNfoOM + fn6LfX2NeXmNeXmQe3WXg32ZiY6ejpSdjo6ShISOg4KRhoSWhpCfjpmhl6Wlm6ilmaWekp6dkZqe + kpuflqGhl6KakJGQhoeOhIiUiY2VkJ+ZlKOdlp+XkZqUiZCXjZSajpqdkZ2ZjpKSiIyZiY6bjJGb + kZebkZebkZeZjpWVi5GXjZShl6KimaOijpWXhIuUh4uWiY2akJaakJaXiJCUhIyUh42WiZCVjJaa + kZualJ2blZ6fkpaViIyQhomRh4uSi5CXkJWblZ6dlp+dkKOjlqqll6ummayimaGelZ2bkZeVi5GQ + h46VjJSXkZqblZ6dlaWakqKflaeelKallqWhkqGei5Sah5CZjI2ajY6fkpanmp6om5+ll5uVjJSV + jJSZjZubkJ6bkJ6flKKllZ2fkJedjZKai5Cei5GbiI6XhI2UgImVgoaVgoaVhoiZiYyhi5CijJGn + kZGljo6djZCai42hho6ih5CahImeiI2fkJWmlpumkZGfi4uXg4OVgICbhoumkJWqkpeokZajiYud + g4SXfXWQdW6Rd2uLcGWIbmeSeHCah4ufjJCijJGijJGagG6Mc2GIal2Nb2KaeXqlg4Smh32dfnSZ + fnCZfnCdfnSef3WlhIKlhIKjhoiniYyojIyqjY2ujYuwkI2vjYKjgneWdGSXdWWjfnurhoOqiH2n + hnqmg3CffWqjfnmog36shn6ngHmfemebd2OZcm6feHSlf32rhoOvhn+vhn+nfWmlemehfXSmgnmh + g2+fgm6jd12fc1qeclaidVqmeWinemmofWSjeF+hc16db1uZbl2XbVylc2KndWSnfWSrgGiofWun + e2qldFymdV2nd1yvfmOwgmqvgGmwgm2wgm2uf2iuf2irgGGme1yZiY6ZiY6ViZeSh5Wai56bjJ+b + kaKdkqOdkpmZjpWZiYyZiYyVjJaakZudlKGhl6WomqallqKXjZSSiI6VhouVhouUhImVhouRho6R + ho6Ui5WUi5WXjpuelaKhkaWZiZ2OgoaMf4ONg4SOhIaUf4KNeXuNfXWUg3uShomXi46bjpCRhIaM + goOOhIaSiI6XjZSflJ+hlaGhlp2ZjpWWi5aflJ+hl6WelaKhkpKajIyUiZCZjpWblKWdlaadl5uW + kZWShoeViImZjJKajZSbjJGbjJGdjpqekJuZkJeWjZWbkZWZjpKViZWZjZmhlaOhlaOlkZediZCZ + iY6fkJWfkJWbjJGWhIaRf4CUfoaahIybjJSdjZWelZ+flqGdlZqVjZKQiIuLg4aUhImZiY6WkZWa + lZmdkZ+flKKilKKllqWjl6GekpuakJaXjZSRh42QhoySiZGXjpablKOZkaGdkqOelKWil5uelJed + iIiXg4OdiIueiYyekZWmmZ2om52mmZqejIiUgn6ZhISbh4eZjJCbjpKhjZaijpeei5GZhoyag4ue + h46XhIuUgIeah4udiY2ajpqbkJufjpmikZull5milZahlJeajZGeiJCeiJCei5GdiZCfkJWjlJmm + kpajkJSbho2ahIybho2jjZWrkJmvlJ2skJKhhIedgn6We3iSeWqMc2SHaGKQcGqReHmiiImfjY6f + jY6bgm2Qd2KOcmGRdGOdenmhfn2ffnWde3OZeGude2+eg3ieg3ilgn+nhIKliIumiYynjY6qkJGu + jYuvjoyrjH+lhnmbc2mXb2Wbd3Sog4CujYmqiYaqhHCifWmfeW6lfnOngHWngHWlfWqfeGWWcGeb + dWuienqshISrh3uohHmhfWSbeF+ZdWmdeW2hfXKdeW6hcFiiclqdb1ihc1yidWSleGelel+jeV6h + cFiba1SXblSZb1Whc1yld1+qf2esgmmrf3Cqfm+nel6leFyqeVyygGOzgG2wfmqwgHCygnKvf3Sz + g3izgmmvfmWWg4mWg4mUhpSUhpSWh5mXiJqbjqGdkKKakZmZkJeZiY6XiI2WiJGbjZadlaahmaqi + lp+dkZqQhomLgISQg4mRhIuRh4uVi46ZjpWZjpWZkpublZ6fkqWjlqihjqKZh5qViImWiYuZjJKa + jZSVgoiVgoiXhoebiYuWh4yXiI2ei46VgoaQg4mRhIuOhIiVi46hlJqhlJqXkJWSi5CUjZadlp+l + lqWilKKakJSWjJCajpedkZqlmaelmaejmZ+elJqbh4mZhIedjZCdjZCakJaelJqekaOfkqWjlp2d + kJaZjJCXi46VjJaZkJqZlKOVkJ+ajpqXjJeakJadkpmelJeZjpKUhIeUhIeUh42ZjJKXjJqekqGd + kqOhlqedlZqWjpSQgIaOf4SWg4yei5SWkZWVkJSfkJehkZmbjZmfkZ2flZudkpmbkZKVi4yRgoeQ + gIaMgoiSiI6VjJSXjpaZkJqdlJ6jl5aflJKijZCdiIueiJKfiZSfjpuol6WuoaWrnqKjkY2di4ed + i3qaiHiaiImbiYudiZKhjZadjZWai5KfiYyZg4abhImdhouei5SfjJWajpebkJmjlJullZ2om5+q + naGqmp2fkJKii5CfiI2fjpuhkJ2mlp6mlp6nlJehjZGah42ah42liZCliZCrkJuukp6ukZSni42d + h4eXgoKVgHeQe3KObmKLal6McG2fg3+hjZGdiY2agHOSeWuScmWVdGibeXShfnmhfnmhfnmefnii + gnujh4KliIOliIOliIOmiYyojI6nkZGokpKrjouojIiujoSmh32he22ZdGWadGqjfXOohoOvjImv + h3Srg3Cjf2efe2Omfm6ogHCrfm+meWqbcGKXbV6ZcnKheXmoh36nhn2lfWqbdGKbcGKdcmOfc2Ki + dWShb1Ohb1OdbVWba1SbblyidGKhdV+hdV+ebVeaaVSbbU2fcFCdc1iieF2lf2uog2+rf3CofW6n + eFamd1WjeWGsgmmyh3OwhnKzhHKwgm+wgHWzg3izg3O0hHSNg4eNg4eSgo6Xh5SXiZKZi5SejZ2e + jZ2djJmZiJWah42ah42ZiJKfjpmhlqeflaabkZWUiY2Rg4CQgn+RhIiViIyVjZCWjpGZjpKZjpKa + lJqdlp2elaKflqOfkZ2ajJeVkJGVkJGekpudkZqXi5GViI6ZiZGXiJCZjI2ajY6ajZGShomMgoiM + goiRh4uUiY2akpeZkZaUjJGVjZKUjZaalJ2dkZ+bkJ6bkp2ZkJqdlJ6dlJ6il6qhlqiel6OblaGa + i5KVho2biI6ei5GXkZeel56hlKailaellp+fkZqZiYyVhoiUi5WZkJqVjZ2UjJuXjpuVjJmbkJmf + lJ2ikpqbjJSVi5GVi5GXjZSakJadlKGelaKhl6Whl6WhlJeZjJCVgIOSfoCVho2bjJSakJaWjJKX + hIubiI6Xi46bjpKfkJKfkJKXjouRiISUf4KUf4KMeX2Oe3+Qg4eUh4uZi5SekJmilZuekZebjZab + jZaZiJWbi5ejjJuqkqKmmqajl6Ofjpmbi5WdiIiahoaahIyahIyai5CdjZKWi5SXjJWai42XiIue + iI2fiY6fjpmhkJqekZefkpmmkpaqlpqomZ6snaKqm5mjlZKjjZKfiY6hjJqlkJ6qlp+qlp+rlZen + kZSeiYybh4mdiIuijZCikpqhkZmrkZCjiYiihISfgoKbf3+WenqRd2mJb2KMbWqdfXqijI6jjZCd + gnqVenOUc2iScmeZeXOff3mefnqff3udf3+ihISni42ojI6mjJCiiIyliIimiYmnjYyrkZCyjZCu + iYyvjYSnhn2le3KddGqXcGGddWWhf3enhn2shnuuh32rgmSjel2feGWlfWqqfm+ofW6meGWfcl+a + cmmheG+qg3irhHmme2ifdWKbcl6acF2dc1ihd1ydcFWbb1SablWfc1qhc16hc16hd1ybcleXaFCa + alObaEmhbU6bcl6ieGSrf3OwhHiyhHOqfWund1Ojc0+ld2SrfWqshHSvh3ezhnSvgnCwg3KvgnC2 + hnW6iXmShoyRhIuXhIuZhoyViImZjI2ajZSdkJaZjJKXi5GWiZCWiZCZiJWfjpujkqKejZ2Zi4uS + hISNgoCOg4KQhoyZjpWbkp2dlJ6ekZefkpmblJmelpullqWnmaeflqGdlJ6elZ2dlJuhlZ6ekpuX + i46ZjJCXjpmXjpmakpKZkZGajZSUh42NhouQiI2VkJGWkZKblJmXkJWZjJKWiZCWiJaXiZeWjZWW + jZWakZuakZubkp+dlKGXkKOakqadlaWakqKWiJaUhpSXgI2XgI2UjZSdlp2flaaflaaflKKajp2X + i46Uh4uWjZeZkJqUhpGUhpGVjJmbkp+bkpqflp6jlJudjZWXjJeXjJeXjJWajpealJ2blZ6flqOh + l6WjmZqbkZKWgoKSfn6Zg4ueiJCfkJWdjZKZhIeahoiZh4ibiYudjo6djo6XjIuRhoSSfn6RfX2N + eH2OeX6NfoOQgIaVho2djZWfkpmfkpmekqGbkJ6ajJWZi5SdjJaejZefkZ2ml6OejZ2djJuah5Ca + h5CZhoydiZCdiY2ei46XjJWXjJWbjJSai5Kei5Sei5SfjpmikZulkZehjZSikpWnl5qlmp6onqKq + nZ6nmpumjpadho2ZiJKhkJqmkpuqlp+rlJmnkJWeh4ybhImag4ieh4yfiY6ijJGni4eihoKhg4Od + f3+aenidfXqWenqQdHSRcHKbenufhoejiYuhhoCaf3qRd2uOdGmVdXOZeXehfnuhfnudf4KihIen + jJKrkJankZGljo6miIijhoani4eskIywkpKukJCui4ariIOrg3Wed2mbcF+ec2Kdd22ie3KqhH+w + i4augnCmemmed2Sje2mqfXCoe2+idWSidWSec2ehdWmjfXKmf3SngGehemGfdV+fdV+hc16hc16e + cFydb1uhc2Gld2SneWSld2KidVqhdFibak6ZaEyaaU+hb1WhdGioe2+ugHmwg3uyg26oemWnd1qo + eFujd2Woe2qshnCzjHe0iHSzh3OwhHOsgG+wg3S3iXqWiZCUh42XgomXgomWh4mZiYyZjpWXjZSX + jJWXjJWajp2XjJqdi56hjqKjjpqeiZWXhoeUgoONg4eWjJCflaail6ihlKehlKehlZ6flJ2hlpqh + lpqekqGhlaOfkqajlqqfl6ejm6unlqGllJ6bjJGbjJGbkp2imaOfl5qfl5qdkZqViZKUjZSSjJKX + kZeblZualZmVkJSdh5GZg42VhouWh4ySiIyRh4uWiJGZi5Sdi56biZ2WjZqSiZaaiJuaiJuSh5KN + go2UgImSf4iSh5CViZKZjZaZjZaajJWWiJGSiIyQhomZi5SZi5SOeX6Re4CShI2XiZKbkp2dlJ6f + kZqbjZaUiJSViZWakJaakJabkJuajpqbjZailJ2om52ekZKXgIaVfoOag4uhiZGikpedjZKZhomU + gISXgoeahImeiI2hi5CfjY6XhoeQgoKNf3+QeYCOeH+Oe3+RfoKRf3ubiYajlp2jlp2flqOdlKGe + lJeXjZGajY6Uh4iXi5GdkJaeiZqfi5uViZKViZKZiY6bjJGah42ZhoyXhIuXhIudiZKdiZKfjJWi + jpejjZWijJSdh5GahI6ai5ChkZailp+lmaKqnaOrnqWqkpqfiJCWf46ag5KdiJSjjpqnl52llZqn + iY6fgoebfYSfgIiehIifhomjiIOfhH+eg36dgn2bfXOZenCOenSMeHKOcnSUd3mdg4SmjI2jiH2e + g3iZe2qOcmGOcGSUdWmdeniffXqefX6oh4iojI6ukZSqjZCojI6nhoeigIKnhIOriIewkIysjIis + i3+si3+shHemfnChemWbdWGacmiddGqifXiog36siHuohHiofWmjeGSfdWKieGShc2Gfcl+ec2Kf + dGOee2ujgHCofWuleWihem+lfnOoe3OleG+lc1+lc1+lemeofmqsfmerfWWqeFusel2lcE6ZZUSb + ZE+mblimd2uufnOygoCzg4Kyf2mue2Wod16semKod2OqeGSsgG2yhnK0hnC0hnCzhnSwg3Kwg3e0 + h3qWi5SSh5CXg5GVgI6Zg4uahIyUiJGViZKWjZWWjZWbkJuZjZmdjJaejZebi5WZiJKZhoyXhIuU + h42fkpmjma6lmq+mmaull6qhl6KflqGhlJeilZmZkpmalJqbkaOil6qfmqqjnq6rlqKnkp6fkpme + kZeflqOhl6WhlaGekp6ZjZmZjZmXkZqalJ2elaKflqOZkpuQiZKWh4yUhImRhIaQg4SNgISNgISO + hIuQhoyVho2Sg4uRhIiShomXh5SXh5SRh4iLgIKOg4KViYiRh4uOhIiXi5GXi5GZiZGWh46UiZCU + iZCWh4yWh4yRen+QeX6Lfn+WiYuZkZSblJabkZeakJaViI6ViI6ZiY6bjJGhjZSdiZCfjpmikZul + lqKhkp6aiImWhIaWg4ediY2ikZuejZeZhIeVgIOVgoidiZChiZGii5KhkZaZiY6Uh4iUh4iWf4SS + e4CQfYORfoSRfoKZhomjkp2mlZ+hmqGel56jlZ6bjZaeiYmXg4OZhomdiY2ZiZGXiJCbiJGbiJGb + iJGhjZaijpWei5Gag4uag4uXhIibiIyhiZGjjJSdjZKZiY6UgISWg4eVh5CajJWilKKml6awoq6s + nqqvmaGijJSbhoiWgIOUfoadh46nkJ2nkJ2miJCegIihe3meeXeaf3qhhoCdiIKdiIKegoKdgICb + e3WVdW+IdWiLeGqNc26SeHOif36nhIOmh32ig3mafWuVeGeRcmKQcGGZeG2de3Cbf3ijh3+ni4eq + jYmrjo6qjY2nhIKlgn+og4Kog4KnhH+ohoCvjIewjYiuiHmog3Sjfm2eeWiedWuddGqfdXOnfXqs + g3quhHuvg22ne2WhdV2leWGld2SjdWOdd1+Zc1ydeGelf26mfXOnfnSmfnqogH2ugnWqfnKneWSo + emWof3eof3evf3SwgHWuf2irfWWndWSfbl2hak2hak2jb2OueW2vgHuzhH+wgm2vgGuue2GwfmOu + e2Ood16seme0gm63h3ezg3Owg3KyhHO2hnq0hHmZjZmZjZmXiZeUhpSRgoeSg4iNhoiUjI6XkJ+Z + kaGbjZudjp2ajJWbjZaXiZKWiJGbh5Kbh5KXiZWhkp6fkqajlqqqoa6mnaqhl6KimaOelJqdkpmf + kpSfkpSakZujmqWmn6uooq6qlaaolKWflqGakZuel6GhmqOhlaOdkZ+WjpSWjpSfjp6ikaGjnaah + mqObkJuSh5KQhoeQhoeRg4OOgICHeHqHeHqLe4CLe4CUeX+UeX+MeHqSfoCVhouZiY6RhoSQhIOS + hoebjpCVi46UiY2ZiYyXiIuVhoiZiYyXi4yajY6biIyah4uUf3mSfniOgICWiIibjpKekZWdjZKa + i5CWh4yWh4yZg4uahIyZiY6bjJGfjpuikZ6ikaGikaGajZGViIyUh4ibjpCekJuekJuahoaXg4OV + goaah4uZiJKejZehkpuekJmdkJafkpmhho6ZfoeQgIiRgomOf4KUhIefi5alkJunmaKllp+ijpeb + iJGQgn+Rg4Cdg4SehIadi4yaiImfhI2ih5Chi5WmkJqmkpujkJmXgoSVf4KUgn6Zh4Obh4eeiYmf + iYeXgn+SfXqUfnuNgIeViI6hkJ2nlqOsnqysnqywnaalkZqhh4aZf36OeniWgn+eiJChi5Kdhoub + hImef3WZenCZfX2egoKliIiihoaihISfgoKee3eVc26Qc2KRdGORc2eSdGiee3elgn2jiICfhH2d + gnObgHKQc12LbliZdWqhfXKegnqdgHmhg4OrjY2zkI6wjYysiYSohoCmg4Clgn+mg36nhH+siYev + jImsi36qiHulgHSifnKje26heWuecmmleG+qgHewh32yhnSsgG+ne2OofWSof3WnfnSje2ufeGie + eGOie2eje2unf2+mgHush4KyhnSrf26rfWqoemiuf3iyg3uyhHuwg3qshnCogm2ogmimf2Wsd1Gj + bkmja16udWirf3OwhHiwhG6whG6yg26yg26zgG+semmreWGyf2eyhnSyhnSzh3qzh3qzg3OygnKV + i5uUiZqXiZeUhpSOf4KSg4aVi5GelJqflaaakKGUiJGSh5CWiJGZi5SViZKWi5Sbi5edjJmbjZaf + kZqjl6Gonaanoaqlnqemmqilmaeml6OjlaGljZKljZKikpqrm6Oon6yroq+nmaKjlZ6dkZ2bkJue + lZ2elZ2hkpudjpedkJSdkJSakZuflqGjn6uhnaimkZ2ahpGZjJCZjJCWiY2RhIiIenqHeXmLfX2I + enqIeXuIeXuIeXuSg4aai42ejpGViIyUh4uWi5SajpedlJ6ZkJqekZKajY6ekZWhlJeekZWbjpKW + iY2Uh4uQe3uSfn6Vf4edh46bjpKZjJCdjZWZiZGRh42OhIuXgIadhoudkJafkpmekaOekaOmkKWl + jqOjkJmfjJWai42djZCdkZqdkZqbjYuUhoObhImii5CakJabkZeilp+flJ2jlJullZ2ijpediZKU + h4uRhIiWgoSWgoSai5KfkJeilZuhlJqajZSWiZCZhIeZhIedh4meiIuajouajouZhIeeiYyjkJmm + kpuijJSeiJCQfn+Qfn+SfoCWgoSbh4mdiIufhH2dgnqafnqWeneOenqVgICbh5KhjJemkaKvmquq + maajkp+dg4KZf36SeHOUeXSWf4SfiI2hho6hho6ign6ZeXWbfoChg4amjJCli46jiIShhoKZgnWS + e2+VemuUeWqWdWqScmeaeXCjgnmmi4ejiISmi3+ih3uhgHCZeWmdfXqign+nhIKlgn+jgH+qh4av + i5Cvi5Cwi4irhoOjgHulgn2if3qjgHuhhoKliYami3+jiH2ng3qlgHile3Wle3WjenSfd3Cje26s + hHeyhHuyhHusgG2sgG2rfnmugHusg3qqgHiqd2iseWqmemmofWuqhHWsh3iwg3KugG+qe2mrfWqv + gHizhHuuh32viH6vi3+uiX6yhnSwhHOugGSoe1+ld1+neWKsgHSvg3euhniyiXu2iH+0h360hHSv + f2+qfWGvgmWohnWvjHu0jYK4kYa4i3uyhHWUiJSRhpGOg4yMgImSg4uVho2XiZWhkp6dkZ2Wi5aV + houWh4yVh5KbjZmekJ6hkqGbkJuXjJeZiZGdjZWflqGjmqWjmqWjmqWnmaWnmaWmlqqikqajjZWi + jJSflJ2mmqOom66rnrCmnaWelZ2ajpedkZqfkJefkJefkpmdkJaakJSakJSdkpajmZ2roq+mnaqj + lJuejpaflJ+hlaGakJaVi5GUgISQfYCLe36MfX+VgIORfX+LgISUiY2bjZadjpeXiZKUho6Sh5KZ + jZmekaWekaWZlZ6VkZqdlKGelaKdlZqWjpSQhomUiY2Uh42RhIuViI6ajZSbjZaekJmbjZmUhpGR + ho6UiJGbho2ijJSilJ2hkpuajZ+ajZ+njqGokKKhjJqhjJqijpWfjJKajpedkZqejpGZiYybho2f + iZGekZefkpmhlp2flZullJ6nlqGlkJuhjJeah42ZhoyXgoeVf4SfkJWfkJWfkJWejpSZho6Sf4iW + gIadh4yeiJKeiJKai5Cai5CXjIiajoullJ6mlZ+hi5KXgomOeniNeXeRen+XgIaahImahImfh4Ke + hoCXgoSWgIOUe3eVfXiVf4Kdh4mjkJmrl6GqlJ6okp2lg4eaeX2UeXWSeHSRen+VfoOdgoibgIed + gIOafoCZf4OfhomljZKljZKnjIihhoKeg3ubgHmXe3SVeXKVd22SdGqaenSjg32vjY6vjY6rjoen + i4OmhoKff3uigIKmhIani4eliISigHilg3qqjIysjo6wjI6qhoimhHiigHSefXKffnOee3mif32r + h3urh3uohHmmgnehfXChfXChe3ebd3KidWmoe2+vgHmwgnqvg3eugnWqg3uviICyiH6vhnuvf3Kr + e26leWiofWurg3Ovh3evg3KugnCqe2eoemWuf3evgHiuh3+viICwh4Cwh4Cwh32uhHqrfm+ugHKs + gG2rf2urf3Cvg3SugHuyhH+3iYK2iICziHSsgm6neWKrfWWvh3m2jX+2ko23lI67kYu2jIaUgIeR + foSOf4eRgomVg5aaiJuejZqejZqZiZGVho2XhI2ah5Cdh5umkKWllaejlKajlJuai5KZhombiIye + kp6flJ+elaKelaKhl6Wjmqejl6ahlaOijpeijpeekp6lmaWrnrKrnrKnnaOelJqejpSbjJGjkJmi + jpedkZqZjZaXjZGakJSflZmmm5+oobCmnq6hl5+flp6umaqvmqujmZ+bkZeah42ZhoyVh5KUhpGa + hoiXg4aUhpGbjZmekp6dkZ2dkJSWiY2Zi5SbjZaelKWjmaqfl6ielqefmaWjnaihlZ6Wi5SVhoiX + iIuViI6WiZCXjJWajpefjp6ejZ2bi5qXh5aWiZCWiZCdiJSijZmilqWhlaOijZmijZmhjJqlkJ6i + kZ6ikZ6okZ6ljZqXi5GZjJKZiY6ai5CbiJGdiZKZjZabkJmbkJuflJ+olKWqlaaikqWdjZ+ijZmX + g46XgIaVfoOai5KdjZWfiZGdh46SfYKQen+Wf4Sdhoueh46hiZGhiY6dhouaiIeZh4ahjJemkZ2e + h46UfYSLcnOQd3iVe3+Zf4ObhoabhoaeiI2eiI2dhpCag42XfXiVenWSeXiXfn2ei5GjkJanlJen + lJewiYymf4KafX2VeHiRdXqQdHmafX+df4KegIOdf4KbgImjiJGojZSmi5Glh4eniYmnh4OmhoKd + gHuafnmVeXSQdG+ZfnqfhICsjo6vkZGsjo6sjo6rjpGni42niYmmiIiokIenjoajgG6ee2mjg4Cr + i4isi4yriYusiH2ohHmmgHKhe22jd2+hdG2mfnCogHOohnWohnWlf26he2qddWied2mjd2ileGmr + fnKwg3eyhnewhHWqh3eui3qyiH6vhnuwg3evgnWofWmqfmqogHCshHSuhniuhnireGKndF6nenOs + f3ivhn2wh360i4KziYC2iXqvg3SoemWqe2eofXCjeGurfWq0hnO0h3+3iYK3i36zh3qvgGmqe2So + dV+uemSwg3q7jYS2lJW6l5m/lY67kYuNe3iNe3iNfoCUhIeZiJWdjJmekJufkZ2bjJSXiJCVhouZ + iY6ekJ6jlaOjlaOhkqGijJSahIyXgomahIybi5Wbi5WdjpehkpuhlKailaelmaemmqill56hlJqf + lKKlmaern6uqnqqmmZqhlJWfkJeejpadkpmelJqdlJudlJuekpubkJmflp6lm6Omnq6mnq6imaam + naqvoaqsnqelnZ+fl5qhlJeekZWhkp6ekJufjJCah4uUiJGViZKZlJealZmejIiZh4OXiYeekI2e + lZ+hl6KilqKjl6Omnaqmnaqhl5+Ui5KUhIeUhIeShJCUhpGai52ikqWnkp6ijZmfiZGfiZGUh4uW + iY2ZiZujlKanl5+hkZmeiYyahoiai5KdjZWhkJ+ikaGqlp2ijpWXhIuZhoyZg4ubho2ahIyZg4uX + jJeXjJeXiZWdjpqjkqKikaGlmquhlqelkZeZhoyVfoOVfoOVgouah5Cdh4mahIeRfX2Qe3uZf4Of + homhho6ih5Chh4uehIiahISfiYmhi42ijI6ahn6NeXKJcG+NdHOVeXudgIOfhoehh4ifjJKhjZSh + kJqbi5WZg4CSfXqJdW6Qe3SRhIiWiY2ijJSmkJeskIyliISehoCZgHuVd22OcGeWdXeffn+fg4ad + gIOeg4mhhoyljIeji4alhIKnh4SuiIOsh4Klg3iigHWaf3SXfXKWenedgH2ni5CukZavkJevkJeu + kJqylJ6vlZmyl5u0mpuvlZasi36de2+deHOjfnmmhoOoiIauiIOrhoCnhHSffW2ac2WWb2KZd2ei + f2+og2+og2+qfm2jeGeeb2KfcGOZc2ibdWqfd22qgHeshHSqgnKogHOrg3Wof3Wrgni0hHSwgHCu + emeqd2Omem6ugnWuh3uuh3uqeFuhb1Ohc2GneWesf3qyhH+yh4S0iYe3iX2yhHiweWSrdF+hdWSf + dGOneGiygnKzg3i3h3u2h3Kyg26wfmGsel2sc1+udGGvgn24i4a3jZG/lZnFlZTBkZCQhIONgoCM + gH+RhoSXiZKbjZaekqGbkJ6hjZadiZKWiJGXiZKZjZahlZ6fkqWbjqGdiZCZhoyWgIuZg42Zhomb + iIyZiZGbjJSfi5aolJ+lmaWonaijmZ+elJqflKKlmaemmqimmqiml6GjlZ6flZuflZudlp2blZue + kqGekqGdlqKfmaWhmaimnq6on6yqoa6onq+sorOvo6+soayooqilnqWhl5+elZ2hmZ6hmZ6llZqe + jpSUjI6RiYyWjpSakpeekJCZi4uXiYmbjY2akZ6elaKflKKlmaenna6jmaqfmZ+UjZSQhIOOg4KN + foOSg4iWhpChkJqmlp6ejpafjJKfjJKWiY2ViIyZi5SfkZqjlJafkJKfi4uZhISZhombiIyeiZWl + kJuhlJeekZWZg4CXgn+Vf4SXgoeXgoyWgIuShoyShoyah5Cei5SdjJafjpmjmqWimaOilJ2ekJmX + hoeSgIKWhIabiYudh4SahIKQeniQeniZfYKihouhi42dh4mag4iZgoeahISeiIijiYiiiIeWfnWJ + cmmIb3COdXeafYelh5Glh46ihIyei46jkJSikpehkZaiiImZf4CLd2+MeHCJen2QgIObhpCjjZem + iYyliIuiiIyZf4OReG2Mc2iVdXKaenebh4CeiYOdh4meiIuhh4ifhoelgoCnhIOwi4iuiIanhn2j + gnmefXCbem6WdHKdeninjJKwlZuzlZ2wkpqzlZ20lp6wlZGylpK3nZuwlpWwi4amgHufemuhe22h + fnmjgHumg4Kqh4anhHSffW2bd2ORbVqSbl2adWSifnOlgHWqfXCmeW2fdGOZbl2Sb2OWc2edcmWh + dWmne22rf3CofWerf2mqfmqugm60hHevf3KueF6lb1afc2Soe22qgnSshHeoemOhc1yeaVOmcFqn + eGiwgHCwh36yiH+0iXWyh3OzgmmqeWGmdV2iclqhcmSqem2yhH+2iIOzh3Czh3Cwf2evfmWvemuq + dWevgn24i4a0jIu6kZC+jo27jIuRhIuNgIeQfYOZhoyXjJWdkZqbkaKZjp+fjpuaiZaRhIuViI6e + jZehkJqbjZmWiJSUh4uRhIiVgoaVgoaXhoeUgoOWf4eeh46ejpajlJunmaernauhl6KdlJ6flKKj + l6almaemmqinmqymmaummqinm6qinaGfmp6hlaGflJ+bmaeem6qimaannquqoa6qoa6qo6+qo6+y + pauzpqyrpa6noaqfm6eemqahmqael6OjlZ6ekJmdjZCbjI6bjpWhlJqelZ2WjZWZiY6XiI2XiZWb + jZmfjpullKGqmqyomaublaGVjpqSh4OQhICQe3mUf32XhIujkJafmp6ZlJehlJqhlJqUi4mOhoSb + iIyijpKikpeejpSfi4udiIiahIeZg4abhpCljpmhkZSdjZCagH+Xfn2WgH6Vf32Uf3+Sfn6Ren+R + en+Vf4SbhoubiJGhjZajlaGomqail56akJaWfX6WfX6Vg3+aiISeiIudh4mWgnuSfniWf4ShiY6h + jI6ahoiagISXfoKahIShi4uojpKli46WgnuOenSLcG2QdXKbfoioi5Whho6fhI2fi4umkZGlkZWm + kpamkZSbh4mVenWNc26JdHKOeXeXfYOih42hi4uijIyijIyZg4OVeneNc2+Sd2+ZfXWfh4KljIei + iImjiYufhoedg4SdgH2hhICsi46zkZWojIeliIOognieeG6ScG+UcnClhpCsjZeukZGukZGylZq0 + l52zlZWzlZWwmpqwmpq0joyuiIaie2ebdWGZeG2ffnOjfnuqhIKnfnSmfXOfe2WSb1qRaFOUalWZ + cGiedW2leGuleGufdGGab1yWa1aUaVSUaVSXbVeidF+oemWoeF2oeF2reWiwfm2zg3Wvf3Kre1qe + b06hc1yqe2Sqfm2ugnCue2ilc1+jblWibVSjc1uqeWG0h36yhHuwhG60iHKwgmquf2iseWWreGSo + d2WndWSvgnq3iYK0jHmvh3SwgHCufm6sf26rfm2wg366jIe2kIu0jomziYCziYCRg4yShI2WgIiZ + g4ubi5edjJmajaGajaGhjJeahpGSgoyVhI6Zi5SajJWdh5GahI6XhIiSf4OLf36Lf36XgIaZgoed + goujiJGfkZqhkpujlaOjlaOflJ+ekp6fkZqhkpulmaemmqimnaqroq+rn66onaumm6Khlp2ekJme + kJmfl6ehmaimmaunmqyqoa6qoa6upbKqoa6vpq6vpq6rpbCooq6ml6ajlaOim6Wim6WnmqGll56h + lJqdkJaekJmhkpufmaWZkp6djZWXiJCbiI6fjJKdjZWhkZmol6esm6uml6afkZ+ZjI2WiYuZhH6Q + e3WShISbjY2blZuhmqGnlqGnlqGZjpCQhoeZiZGdjZWekZedkJaeiI2dh4ybho2Zg4uih5CnjJWo + kZmnkJedh4ydh4yXgoeWgIaafoCUeHqVfXiUe3eSfYKVf4SXgoedh4yii5emjpull56bjpWXfoKV + e3+Qgn2UhoChi5WeiJKei46ZhomXgIaii5CfiZGeiJCjhoidf4Kfg4amiYyrkJmnjJWahIyQeoKV + eXmWenqbgIehhoyii5CfiI2biYiikI6lkI2ijYuhjpCbiYubf3+UeHiRdHeOcnSQdHebf4Kli4yo + jpCmjI2fhoeWen2RdXiQdHCXe3ijiYurkZKojo2mjIumiIuihIejh4Kfg36ihoaukZG0lJGvjoys + h4KifXiWdW2ObmWfe36rh4mrkZWulJewlJmwlJmzkZWzkZWvkpe2mZ64l5WsjImng3eeem6VdGiX + d2qfe3Ojf3emfnCiem2heWeUbVuSaFCRZ0+WaVedb12idGKhc2GmeGOhc16Xa06UaEqXZ0+ebVWh + c1ymeGGnd1yoeF2meGOoemWvg3SsgHKhe1ubd1aec2KmemmsgHKsgHKugG+oe2qmdF6hb1qmdF6u + e2WyhnSzh3Wvg2+whHCugnCsgG+re3Cre3CreGureGune2qvg3K0iHmyhnezh3qvg3esg3mrgniy + iIK4joi3jou0jIiygHmwf3iShomUh4uXgoyXgoydh46eiJCekqGajp2bjZmajJeVh5CVh5CWi5SV + iZKZhJCVgIyRfoKQfYCOf4KSg4aZg4udh46biJGdiZKZi5SekJmfkZ+ekJ6ejZefjpmjkJmijpej + laGrnaiqoa6on6ynna6mm6yml6GfkZqdjZWdjZWhkaOmlqillaimlqqmmaunmqyvn7Kvn7KopbCq + prKupbKnnquolZ6lkZqjl6Gjl6Gilp+flJ2llZ2jlJujlZ6omqOlm6ielaKhkpuajJWZi5SajJWZ + jZabkJmjl6ammqionaummqiel56VjpWXfoKVe3+Vg4SbiYuflJ2mmqOrmqWmlZ+akJSRh4uXi5GX + i5Gdl5mdl5mbjJGai5CUh42ViI6ahI6jjZeikpqjlJuhkJ2fjpuhiZuii52XgoeRe4CXg4OXg4OU + f4KXg4aUgoCVg4KXiJCfkJehkZmejpabhoiWgIOUfoObhoudjJmjkp+mjpaii5KfiI2ii5CdiZCd + iZCjh4yfg4iahIyhi5KnkZuijJaZgI2Ue4idf4eegIidh4mhi42hiY6fiI2ijIyjjY2mjIunjYyh + jIyijY2dgIaXe4CUd3mUd3mNc2+SeHSni4erjouoi42jhoiaeHWXdXOVeXmZfX2mjJCwlpqvlZas + kpSriYumhIalh4eegICliIiskJCylZWukZGvi3+qhnqffW2WdGSfgHeniH6ukZSukZSylJawkpWy + jZK0kJWzkZe2lJqzlpuvkpezjYiog36heWubdGeadGmdd2ulemefdWKhdV2ab1eaaFOWZE+UY0ya + aVGhb1eicFimcFqoc1yicFabalCZaU+eblSmdGOreWild2KmeGOld1+qe2Swg3eugHSofmOlel+d + dGqheG6sgn+rgH6wgHWufnOqe2moemiqemqwgHCyhne2iXq3iXqzhneugnOrf3Cqfm+rf3Crfm2q + fWuoeWuygnSyiH+0i4K2iIO3iYS0h36wg3qyg3q8jYS4i4O6jIS0hHSsfW2Vho2ZiZGah5CXhI2a + h5Cah5CeiZWeiZWejZ2ZiJeZi5SXiZKZhJCXg46VgouVgouRfoKRfoKXgoydh5GdiJSfi5aZi5SX + iZKdhpKfiJWii5qii5qhjJeijZmmjZqmjZqllaerm66snqqqm6ennqiimaOjlZ6fkZqhjZahjZah + kpuilJ2ikqWikqWmlKenlaiumaqwm6yupa+so66rn6uqnqqnl52ikpeilKKllqWelZ+hl6Kol6Kj + kp2jlaOrnaurnrCmmaullKOfjp6hkJ2hkJ2ekJuhkp6lmaWmmqanmq6om6+qoauhl6KVhI6RgIua + hIyhi5KelZ2lm6OqnqehlZ6fkJKWh4mbjI6ejpGnmqGll56ejpSai5CXhIuZhoydiZKfjJWhkJ2i + kZ6nl6qmlqinlaijkaWbiIyWg4eXhIibiIybiYuaiImXgoKZg4OXiIudjZChjZGfjJChhoyhhoya + g4ihiY6fjpumlaKrlJ6nkJqliZCjiI6ah4uZhomei46ah4uahIyfiZGnkZmhi5KZgomWf4eag4id + houdiIieiYmeiI2hi5Cmi5GojZSnjJKmi5GijIyjjY2hhImegoeZg4ORe3uReXONdW+if36riIeq + iIylg4ebenKXd26bf3qihoCoi5KwkpqvlZmwlpqsi4yqiImliYabgH2hh4amjIuwlJawlJa0kY6s + iYelfW+bdGeZeXWff3uojIyskJCylJSylJSzkI6zkI6ykJa2lJq3mZ6ylJmujI2riYusf3OleGuf + dGGhdWKmemSjeGKecliablWeaFSXYk6UZE2XaFCeclihdFuodFWseFindVufblSbalOhb1ereGuv + e2+qem2neGqleGmnemuvgnWyhHirfWWrfWWieW+le3Kug4Csgn+yfm2uemmoemWneWSrfnKyhHi0 + jYa4kYm6kIe0i4K2iXqugnOsgGisgGiqf2uqf2uqe3Owgnm2iIO7jYi3jo24kI64i4Kzhn2ugnC4 + jHq3jYO3jYO2iHevgnCbh5Kbh5KZiJWWhpKVhI6VhI6WgJWdh5uXiJqVhpeXh5SWhpKbg5mdhJqa + hI6Zg42XhIuWg4meiZefi5mdjpqekJuajZSXi5GXhIuah42hjZadiZKhkJ+hkJ+hkJ+ikaGmlaKo + l6Wml6allqWml6ajlaOilqWdkZ+fkpmdkJaekZWekZWfkJehkZmjkp+llKGmlaKsm6isoa+vo7Ks + nqeqm6WikpWbjI6jjpqlkJubkJuekp6nkp6nkp6hlKaom66om7KqnbOqmqyllaejl6ajl6aekp6e + kp6fmaWlnqqqmqyomauuoaeom6KhkpuZi5SbjJSdjZWekp6lmaWsm6anlqGjjo6diIiaiImjkZKq + maOqmaOmkZGbh4edhouag4ibjJSejpalkJurlqKqnbCrnrKqm6qilKKfiZShi5WhjZaijpefjJWX + hI2SfXqUfnubh4efi4uhjZafjJWfiJefiJeeg4mdgoiei5GlkZeqkZ6okJ2ijI6dh4mXg4aahoia + h4uZhombh4mfi42jjpGfi42ahIeXgoShi5WnkZujkJSfjJChi5CljpSmjpmqkp2rkJaih42jiI6j + iI6liZKih5CeiI2Vf4SVgnuVgnuhg4irjZKrjo6hhISef3ObfXCihoani4ujjZKokpe0lp60lp6r + jZKoi5CjiIShhoKih4OnjIiukpu0maKzlJuvkJerg4KddXSWdXeaeXqfgoSqjI6vkZasjpSyjZCz + jpGvjY6ykJGyjZKzjpSyjImwi4isg3mmfXOieF+hd16leFyhdFibb1Sbb1SdbVCZaU2XblGZb1Of + c2Kjd2Wnel6qfWGod1ymdFqmb1umb1undGWyfm+qem2oeWumem6qfnKsg3mrgnirf2usgG2rfm+u + gHKrgnmrgnmyg3CsfmuoeF+oeF+qfm+whHWykY62lZK8lpG3kYy0i4Kwh36uf2qsfmmofWmofWmn + fWmug2+yhH24i4O3jYe4joi0h3WugG+sfW2zg3OyhH24i4O6jHq3iXiZi5aajJeXjJqSh5WSgo6U + g5CVhJSWhpWUhpGUhpGUhIyUhIyahpGeiZWZiJWWhpKZho6diZKfkZ2fkZ2bkJubkJuZiY6VhouU + hImWh4ybi5WejZehlaOflKKhkp6ekJuljpmqlJ6llJ6llJ6imaGimaGilqWekqGakZmZkJefkJWe + jpSejZehkJqjkp+jkp+nlqOrmqeqna+uobOwoquqm6WjlJabjI6hi5KjjZWbjpWekZemkJemkJeh + kqGllqWnna+nna+qm6Wml6Glm6ijmqeimaahl6Welqafl6ejlqqqnbCwoq6un6unmaejlaOekJ6e + kJ6jlaGomqawm6qrlqWnkJeii5KeiJCmkJermqqqmainlZadi4ybh4mfi42ijpWei5GjkJmsmaKr + nrCsn7KrlqKnkp6liZKmi5Sqkp+qkp+jjpqahpGWf4SUfYKeiIihi4uljZeii5Wfi5afi5ahh4uZ + f4Obh4mjjpGnkJeokZmijIyfiYmbf3+egoKehIObgoCeiI2dh4yfiYmijIyahISXgoKeh46slZ2r + lZ2jjZWmkJKokpWnkJeulp6vkZmjho2ihImihImih5Cih5CeiJKbhpCeiIuXgoShhImrjpSskpSl + i4yhhH2fg3uni5CskJWqjpWskZezlZ22l5+qjpWnjJKmiI2lh4ymiYmni4uukJezlZ2wlJmylZqs + iYSffXiad26beG+igIKujI2zlJ6ykp2wjpCujI2ujYuvjoyyjIu0jo2zjI6viIuvh4Oqgn6lf3Cj + fm+ieGKhd2Gicleicleiclqfb1efdF6jeGKnenKqfXSrfWirfWiufVuoeFamdV2ldFyjdWGqe2er + fWqsfmuoeWuqem2ofXCqfnKrfnKugHSqe2eqe2eugHKzhnewg3Ksf26od1qlc1aleGurfnKyjIe2 + kIu7ko66kY23hn+2hH62g3KvfWureWisemmnfWSqf2euhH62jIa7jYS4i4K3g3KseWimd2eoeWmq + e3OzhHu3h3e3h3eVh5KZi5aWiZ2ViJuWhpWWhpWUhpGShJCSgoyUg42UhImWh4ybi5qdjJuZiZua + i52ejJ+ejJ+bkJudkZ2dkpaZjpKWh4ySg4iVf4ebho2fjJWjkJmimqqfl6efkpmekZeejpSllZqo + lKKrlqWmmqajl6Ojl6OhlaGhl6KelZ+ekp6ekp6fkZ+hkqGjkp+llKGlm6ijmqemlqirm66snqyo + mqihkZaejpSljpamkJefkJKhkZSokZaljZKijZmlkJunnqumnaqlm6ilm6immaummauim6ehmqaf + lKKhlaOnlqaunayunrKsnbCnlainlaillqKilJ+qkp+wmaarmqenlqOljpafiZGfiZSnkZuolqqr + mayilp+ajpeejpaikpqnkZuhi5WhkJqrmqWqnqqonairlZ+nkZuljJmnjpuqlJ6okp2ikJGdi4yX + fn2Xfn2ihoajh4eljZWnkJeijZmhjJeli4mbgoCdg4enjZGmjpaokZmljpGijI6jgoOjgoOlg4Sn + hoehjIydiIiehIahh4ibg36bg36eh46rlJurl56nlJqmjpSnkJWojZaylp+wkpqoi5KihoadgICe + g4mfhIubhJGeh5Shho6eg4yhg4uniZGskJKni42ih4Kih4KrjZeukJqylJuylJu0maKzl6GskpSs + kpSniYylh4mlh4mmiIusjZevkJqzlZq0lpuvjoijg32heG6ddGqbfoCniYywkZu0lZ+wkI2ri4ir + iIaqh4Srh4mqhoiuiIerhoSuhoKrg3+ogHCnf2+oemOneWKmdFqmdFqndGGreGSqemqufm6ugHiw + g3qzhnevgnOwf2eremKrelqldFSleFyoe1+sfmmvgGuzenKvd26odWeodWeoeWmre2une2ine2io + fXCugnWvg3KsgG+ye1+mcFWhc1yjdV6wg3u6jIS+kpK+kpK+iX23g3e6hHi3gnWyemiveGWoemWo + emWuf3e3iH+4jHq0iHezf2muemSmdF6mdF6meGWoemiyg263iHOWgo2diJSZjJ+ajaGaiZaVhJGR + g4yMfoeRfYiUf4uXh5GejZefkKKejqGdkKKdkKKmkaKijZ6hiZmii5qbjpWXi5GWh4yVhouXgoeZ + g4ieiJKjjZeflKKflKKfkpadkJShjZajkJmolKKqlaOilqWlmaeimaahl6Wmlqinl6qnm6qjl6af + maWblaGllqWllqWll6qll6qnl66oma+umaWqlaGfkJeikpqnkZumkJqdkpSdkpSjkJahjZShjZGi + jpKilZmmmZ2mmqajl6Oomqiqm6qmnaqjmqehlaOekqGnlqGsm6ammayll6umlqqqmq6nl6qnl6qq + m6eun6ummqahlaGolZ6jkJmhkpunmaKmlaWol6eilJ+hkp6llqKnmaWsl6OjjpqikZ6unaqvnqiq + maOmkJeljpajkJmlkZqrlJurlJuijZCeiYyag4iag4ihiY6jjJGnlJ2mkpuikpqhkZmijImdh4Sd + iIunkpWolJ+mkZ2okZunkJqjhouihImfiI2ii5CmkJeijJSfiYyfiYybhoieiIumiJWylKGwmaGu + lp6qkJSojpKmjparlJuwlZunjJKdgHuZfXiSfX2WgICVgIOZhIebhImdhoufhIumi5GojpKli46j + jJGjjJGojJ2wlKWzlqWzlqW3m6e2mqawm56rlpmoi42lh4mohoSmg4KmjJCojpKzkJm3lJ23kpWu + iYyognqie3SfgoSlh4msjpSvkZasjImqiYeviICqg3umfn2je3qog4Cngn+rhH2uh3+whHiugnWv + fWSsemKod1yndVuleWWqfmqsgHKvg3SyiH+ziYC6jH+2iHuyg26uf2qwe1urd1asel2zgGOvgnCy + hHO0gHKreGmjc1iiclemdFyod16mc12reGKsemewfmqyf26yf26wfmindV+jdFOfcE+oenK3iH+/ + jo3FlJLBjIK7h323g3Szf3C6g2uveWKoeF+remKvgG60hnO0jHm0jHm0hnCrfWiremKnd16wfmqz + gG22hnW2hnWVgIydiJSbjJ6bjJ6bh5KXg46SfoyRfYuQf4mRgIuZi5aekJujlaOjlaOflJ+flJ+h + lZ6dkZqfjJWfjJWekZeZjJKXhIuVgoiWhIaXhoeXiJCdjZWhkJqhkJqhjZabiJGhi5WljpmilJ2j + lZ6jl6Gilp+ilqWlmaeil6qjmauooq6lnqqjl6aflKKmlKehjqKikaGllKOjlKaikqWqlp+nlJ2d + kpmhlp2llqKllqKimaGimaGmlZ+hkJqdkJSdkJSfkJWllZqflJ2hlZ6hlaGilqKmmauom66lm6ie + laKilqKlmaWrmqqrmqqvma6vma6omayrm6+un66voa+mmZ+jlp2mlZ+llJ6hlaOmmqiol6Wjkp+l + kJ6mkZ+qlaaumaqwm6emkZ2ikZ6unaqznqyumaeskZqojZaljpaljpaqlJmnkZaeiI2bhouZg42a + hI6hiZamjpumlZ+llJ6mkpulkZqii5Cdhouii5KokZmsl6aumaerlKGqkp+sjpalh46hi5Kljpar + lZ+qlJ6mkJWijJGfiYyfiYyliZWrkJuzlZ+0lqGskpanjZGnkJWslZqslpumkJWmg4KffXuUeXSQ + dXCWe3idgn6Zg4Cdh4SiiIyli46ijJGhi5CljZWljZWojJqukZ+zlqW0l6aymaawl6Wvl52ulpus + jo6jhoafg4OZfX2fg4aliIuojJGwlJmwlJarjpGqg4ajfX+bfn6lh4eujI2vjY6sjIioiISnhn2j + gnmie3KhenClf3qjfnmnfnSqgHergnirgnivfmOse2Goe2KnemGsfW2vf2+vf3K0hHe2jIO3jYS4 + jH+2iX22h3Kuf2qzfWGye1+wfmO0gme2gni7h324iHiufm6jdFOZakmda1Ghb1WqclqyeWGvfmWz + gmmwhG6yhm+zgG2vfWmveV+oc1qseW+4hHq8jYbDlIy+iX+6hnu2hnW0hHS3hG6yf2mzel+udVus + f3C2iHm0jH6yiXuwgm+uf22vfWereWOwgnmwgnm3jIm8kY6Wgo2diJSbh5WahpSXg46Wgo2Rg5GR + g5GUhpGZi5abjJ6ejqGhkqGjlaOllJ6mlZ+hlZ6ekpuajZSZjJKei5Sei5SXhIuVgoiWgIaZg4ia + h5CfjJWbjpKZjJCbiI6Zhoyah42hjZSekZehlJqjlZ6ilJ2hlZ6ilp+llaerm66qnqylmaeikqWi + kqWjlaGekJuekZefkpmfkJefkJeikpqjlJumlp6llZ2ilJ+fkZ2jlaOnmaeml6OilJ+bkZeakJae + jpafkJedjpedjpedjpejlZ6jlKaqmqylmquil6iol6eol6eml6OnmaWsm6urmqqunrKvn7OuobOu + obOnmqGilZullaemlqill6ummayllqWfkZ+hkJqhkJqulqiwmauymqqmjp6mlaKqmaaun66omqio + kZuljZelkZemkpmmlJWhjpCjiI6fhIuXhI2diZKeiZWhjJellqKnmaWvl6Kqkp2ljZeii5Wljpmo + kp2wm6eynaiym6aym6asjpmniZSikZuol6KwmaiwmaivmZ6nkZahiZGfiJCliZKrkJmylqKzl6Or + kJmmi5SqjJSsjpaolZ6lkZqniYmihISXe3iUeHSVdXKaeneZfnOfhHmliIimiYmniZGmiJCmi5Sm + i5SliZCnjJKskZqwlZ6ylqKvlJ+wlpewlpeuko2liYSfhICWe3ideniif32jh4yvkpewkpqsjpas + hIOnf36hgH6ign+nh4SujYuujI2riYuriIajgH6mfnCed2mheWuje26mem6sgHSshHeuhnirfWin + eWSreWireWiqem2ufnCygnSygnSwiHi3jn64kH+3jn67h3iyfm+zgGizgGivfWu4hnS2iIC8joe/ + kH24iXesel2fblGaaFWea1imdF6wfmisfmmsfmmsfmmvgGuvgG6wgm+vf3KoeWuvfne2hH28jYy/ + kI67jX62iHm0h3q2iHu2h3S0hnOygGiufWSyg3u4iYKziX+yiH6vhHCqf2uufm6zg3O2h4m6i428 + kpnBlp2Wh4yVhouUgImSf4iRfoSSf4aVhJSZiJeZh5qbiZ2dkZ2dkZ2bjZullqWml6OjlaGhkp6e + kJuajJWWiJGfi5meiZeah5CZho6ah4ufjJCfjY6ejI2UiY2SiIyWhIOWhIOUgoObiYubjpWekZef + kZ2ilJ+ilJ+hkp6llqKnmaWnl6qfkKKdkKKekaOekJuXiZWbi5WejZefkJWhkZankp6qlaGnl5+l + lZ2hlJqfkpmllJ6nlqGnlqOmlaKflZudkpmejpafkJedjpeekJmhkp6jlaGnl6urm6+mmauom66y + na6vmqujlaGjlaGol6eunayunay0o7OwpbCvo6+sl6afi5mjlKarm66smq6rmaynlqOikZ6ikpqh + kZmolKWvmquwmauqkqWnkp6qlaGnmaellqWolKKlkJ6nkZmokpqolZmei46fhomfhomag4udho2b + iI6ei5GhkJqol6Kvl6KslZ+njY6jiYuejI2jkZKsl6iznq+0n6u0n6uvl5+qkpqllqKqm6e0n7C2 + obK0naeokZujjJafiJKliZKrkJmulqGwmaOrkZWli46njY6njY6ijpWjkJaljpGdh4mXe3eWenWX + c26Xc26ZeXWlhICliIini4uui5SriJGmiYymiYyfhoSbgoCjhIylho2ni5CrjpSojpCskpSqlY6l + kImlg3qffnWbenKefXSif4ivjJWqjZKskJWriIOhfnmaeHWffXqmgH+rhoSmiI2oi5Crh4mmgoSi + f32ee3mZdWmWc2efeGinf2+qhHWrhnesgmuofmiqem2re26sfW2vf2+vf3KsfW+ogHOyiXu6jIS/ + kYm7iYK6iIC2g2+yf2uufnO2hnq2jYm6kY27jnq2iXWyf2SjcleXalafcl2ofWmugm6yg3Cwgm+u + fm6ufm6ugnOwhHWygnewgHWyhHu3iYC3koa6lYi+kX23i3e3h3m0hHe2h3S3iHW0iHSzh3OzhoC3 + iYSviH2viH2whG6ugmuvgnW2iHu4iYy8jZC+lJ3Cl6GZiJKXh5GZg4uVf4eSfX+UfoCZg42eiJKX + i5GXi5GbjZadjpedjp2ml6ailqKilqKekpuajpebjZaXiZKaiZSZiJKeiZWfi5afkZqhkpuhi5Kd + h46ZiJKXh5GXg4aVgIOUf4KXg4aah4uei46ejpafkJeikpqhkZmjlKaomauolq6ejKObi5qdjJui + jZmdiJSei5Sei5ShjZSlkZeolZ6olZ6mlp6ikpqbkZWelJellKGnlqOol6eol6enm6WlmaKolKKn + kqGfkZqhkpuikpejlJmhlaOonaunm6esoayunayqmaillKGjkp+llKOqmairnauzpbO3prayobCr + lKGii5elkqaql6usm6iqmaaomZ6hkZaikpqejpalkJ6qlaOumaenkqGmkJWnkZajkp+mlaKrmqen + lqOmkpunlJ2nlJqfjJKdh4ybhouZg4iZg4idiIuhjI6ijpWnlJqqlJmokpemjI2hh4idiIiijY2o + kZ6vl6Wwn6yyoa6znaWrlZ2ll56mmZ+wn6yzoq+3n6qslZ+miJCdf4edgoinjJKnjJWwlZ6qkJGj + iYuhhoCfhH+fhIuliZCijIyfiYmegn6afnqaeneZeXWZeXelhIKljZKnkJWukJKqjI6miYyni42j + h4Kbf3qffXiffXihgH6jg4CfgoKniYmqjYmmiYalgoCif36dfnSbfXOffoKoh4uskJWskJWrjH+m + h3qdeW2deW2ifXqmgH6jgoOmhIaqhIOmgH+hfn2ffXuefXSZeG+heG6qgHeviYSyjIe0iHmugnOu + f22vgG6vgGuuf2qrf2mrf2mqeXKwf3izh3q8kIO7jIS8jYa6i3Wuf2que2qzgG+0i4S7kYu4kIKz + i32whminfV+ablWdcFeoenWzhH+zhnewg3Svf3KufnCqfnKwhHi2hnq3h3uyhnmzh3qzjIC4kYbB + kIS8jIC6h3OzgG2wgHC3h3e3h3e3h3ewh362jIOuhHquhHque2WqeGKsfmuzhHK4iInBkJG/lJXB + lZaaiZSaiZSfg4ibf4SWe4Kaf4ahjJeijZmZjJKWiZCah42fjJKikaGqmaimlqijlKabkpqZkJeV + i5GVi5GWjI2bkZKhkJ+nlqaom66jlqifiZGahIyShI2Uho6ahoaZhISXg4OZhISfi42hjI6fjJKh + jZShlJqhlJqlkqamlKemkZ+hjJqfiZGfiZGijJahi5WejpabjJSjkJmolZ6ml6GjlZ6omZ6ikpej + lZ6llp+ol6KmlZ+qmqyrm66onaurn66umaqqlaanlqallKOolZuolZuXjpahl5+nm6qqnqysm6ur + mqqllKGikZ6ikKOjkaWqmqywobO0pberm66ilJ+ajJehjqKjkaWumaWumaWqmp+ikpehlJefkpaj + kJmnlJ2rlqKnkp6mkJWljpSfjpmjkp2olKWvmqunkJ+okaGfkZGekJCdjoyWiIaWi4mViYifiYem + kI2nkJerlJurlZqokpejjY2eiIifiYyijI6mjpmrlJ6vmqa0n6uym6aslqGolZumkpmsm6ayoau6 + oa6slKGsi4ybenuWfYCehIiihIysjpamjIuiiIejgnmjgnmjg4ClhIKlh4mlh4mihoafg4Oeg3+d + gn6df4Klh4mvlJ2wlZ6ukpmrkJaniZGoi5KsiH+lgHifeW6feW6ZdWqbeG2ie3SrhH2uiIOog36l + goChfn2efXCaeW2XdXOhfnuriYuujI2ujYemhn+ie3Cdd2uXdXCZd3KfeW+mf3Wrfneoe3Soenum + eHmmeXKhdG2hdG+ugHu0jIy4kJC2joeviIC0gG+zf26uf2iuf2irfWiuf2qofmqme2iqgnSyiXuz + joa3kom/joO2hnqwfWmwfWm2iIO8jom+loy4kYe3jHiug2+meGOjdWGnfniwh4C4hHWyfm+uemes + eWWufnOygnewgnm2h360iHmyhne0h3q/kYTFkIbBjIK4hnS0gnC2gni4hHq6hnu7h322iXW4jHi2 + i3evhHCrel+nd1yreGSzf2u2hIDDkY2+lI28koybjZmXiZWahI6Zg42dhpCdhpCdjJuejZ2Uh42O + goiRhIiXi46ikKOmlKenkaqjjaabkZeZjpWXi5GajZSVkJGblpeilq+mmrOrmqemlaKfhIufhIub + iJGbiJGbhouahImXiYmWiIiei5GjkJajkJahjZSbkJudkZ2lkKGlkKGjjJmdhpKZiY6ejpSnkp6o + lJ+ikZ6hkJ2ml6Oomqammqinm6qunrCunrComqiml6aimaOhl6KomauunrCsnbCrm6+lmaWjl6Os + nqqrnaillJ6hkJqah5CfjJWilKKqm6qrnairnainlqGfjpmejZqfjpuikKOvnbCwoq6snqqmkpue + i5Sii5KmjpajlJunl5+jlJmhkZafkJWikpejkJamkpmnlJ2olZ6njJKliZCeiZWijZmnkJ2vl6Wo + maGjlJunkpWmkZShjZGbiIydjZKai5Cfi4ulkJCnkJWqkpeqkperlJmii5ChiY6ehIifhomhhoyl + iZCulaK2naqwl6WulaKqjZKrjpSokpq0nqa2n6qul6Kni4OZfXWUeXKVenOdf3+miIiihoaihoaf + hH+dgn2jgoOlg4SmhIamhIaeiIieiIihh4ahh4ang4uuiZGzl6Ozl6O0lqGwkp2qi5Kmh46rhoOn + gn+hf3SaeW6acmiddGqbeG2hfXKrhoCrhoCqgoCje3qdenmbeXiXd26aeXCnf36vh4aoiIKignuh + enCZc2mUcGWWc2iac2OddWWjeGmmemuleHOjd3KmdW+jc22bc22ieXOsh4S2kI26kIm0i4SshHeu + hnivg3Svg3SogG6ogG6ugnCne2qoe2+vgnWwi4a3kYy8jom6jIe2hnWwgHCzhoC7jYi/lY64joi6 + jH23iXqugnOrf3Cwgnm3iH+2h2+yg2uue2WvfWevgG6wgm+vf3Kzg3WuhnWshHSwg3u8joe/kYS8 + joK6iXu4iHq2hnqwgHW2gnW6hnmyg260hnC3i3KwhGuvfWKsel+reGSwfWmzg3jCkYbBkYm+joed + jJmaiZaXh5aWhpWXg46bh5KZi5aXiZWVgouQfYaVf4edh46ijZ6nkqOllqKjlaGbkZWZjpKai5KX + iJCbkJmjl6Gnn7Onn7OrmqehkJ2ahImbhouWjJKbkZejjZehi5WhiZGhiZGdjJadjJadjpqajJee + kJ6ekJ6fkZ+fkZ+iiZafh5SZiJWikZ6ol6enlqallaeikqWjl6anm6qunrCsna+zobawnrOmmaui + laejl6Ommqaqm6qsnqyvoa+rnauqnaOsn6awn6qyoaurlKGeh5SRgoeVhoudiJankqGfmaWhmqau + laKiiZahi5KfiZGhjJevmqaznqywm6qljpadh46dh4yijJGhkZmmlp6jlpqekZWijpWmkpmokpen + kZaulp6qkpqliZKliZKjh5WmiZeokZ6okZ6rl56olZuqlJuokpqhjZGdiY2bjI6bjI6njJKmi5Gl + jZKljZKqlJaslpmrkJajiI6dh4mdh4mXgoSeiIuqjJmzlaKykqKujp6vjoysjImrjZe3maO3n6qw + maOwjI6mgoSafneWenOZfnmjiIOlh4emiIiiiIejiYiniYmqjIyni4eliISihoiliIuli4yiiImn + iYyoi42zlZ+4mqW6mqWykp2zjJSwiZGniYylh4mhhH2dgHmhenCeeG6Wc2qeenKqgn6qgn6shn6o + gnqheXWed3OZdWqWc2ibeXSffXilgHijf3eieXOXb2mXb2WVbWOWa1iZbluecmGhdGOjd2+meXKl + d3KbbmmWcGmadG2ogH+3jo22lIuwjoauhHqsg3mzhHu0hn2zhn6zhn6yjH2lf3CmeWqqfW6uh3+y + i4O6jIe6jIe6hne0gHK2h3+/kIi8kZG6jo64i362iHuwiHqvh3mvh3mvh3m0iXOziHKzhG+zhG+w + hHOyhnSwhG6ugmuofWene2WsfW+zg3W7jIO+joa8jn+7jX62hnW0hHS0gm62g2+0gG27h3O3i3m3 + i3myhm2rf2eyhne0iHmyi4O3kIi7jIu3iIediZKfjJWaiZSWhpCUho6XiZKZiZGUhIyReoeQeYaU + foOZg4ibjZafkZqjkp+llKGbkZWXjZGai5CXiI2jkp+rmqeqn7Cnna6ol6KdjJaahImdh4yekZei + lZuolZ6lkZqjjJSljZWdjZWbjJSbjpWbjpWejJ+hjqKhjqKfjaGfi5mhjJqbkJujl6Ovmquumaqn + lqOikZ6nmaernaurnrCsn7Kyo7KworCmmaufkqWolJ+rlqKsl6Ovmqasoaqjl6Gilp+nm6Wsnqys + nqyikpqVho2SfX+UfoCdg4eojpKekp6hlaGnkp6eiZWai42Vhoibho2mkJeunrKrm6+nlJqdiZCe + iJChi5KhkJqmlZ+ll5ubjpKhkZamlpunlJqqlp2slqGnkZuiiZahiJWliZWliZWmkJqqlJ6vlqOs + lKGslaKqkp+nkZGijIydh4yijJGskZqqjpeljpGmkJKulpuulpuukZGliIibhoiXgoSUfYKZgoei + hoiukZSvkZmrjZWrjY2miIioi5eylKGzl6OwlaGzkJunhJCUfoCRe36bf3umiYaqjouliYali4yq + kJGylZqylZqnjY6li4ymi5GnjJKmjJCjiY2oi5KniZGylJ64mqW0maWwlaGyi42viIumi4ejiISi + hn6hhH2je3iheXWbeXeee3mjfnmngn2rg3Org3OhfWebeGKWcmGUb16Wc2iZdWqfeXKeeHCfeGqX + cGOdal6ZZ1uSZVSUZ1Wfbl2mdGOldWineGqoeWuhcmSXcGOac2Wleni2i4i+lo63kIiwhHisgHSy + hH2zhn6wh364joa6lISviXqqeGSmdGGoenKwgnm4iYS4iYS4iH23h3u0h367jYS+kIu7jYi7h320 + gHeyhnmzh3qzh3qzh3q0iHu0iHu7i327i326jH26jH2zhG2vgGmofmWnfWSremKufWS3g3m7h327 + jX68jn+4iHivf2+zgGqvfWeve2W4hG64iYC7jIO2iXqzh3i4lIu4lIu2kpG3lJK7kI24jYuXiJCW + h46XiI2XiI2XiJCai5KZiZGVho2OeYCNeH+SfX+bhoidjJmdjJmdi56ejJ+ajo2ViYiXhIibiIyl + kJ6qlaOlmaWflJ+ljpGeiIuWg4eah4uhkZallZqilZuilZuijJaahI6Wg4mVgoiViI6WiZCbi5Wd + jJaeiZqdiJmhiZmljZ2ikZ6ol6Wsl6ilkKGjjZWhi5KqkqWulqiom66uobOwoquml6GikpqfkJel + kZeqlp2umqOsmaKrm6OomaGmlaKnlqOonaulmaediY2UgISQeniRe3mZe36ihIeikpqikpqekpuZ + jZaUiY2Ng4eWgo2fi5aml6aqm6qll5uajZGdiZChjZSmlZ+ol6KikpeejpSfjJWjkJmqmaOol6Kv + lqOokJ2ii5WjjJaijJSijJSmi5SskZqolKWsl6iwl6WvlqOmkZSijZCfiZGljpaukpmukpmqlJal + jpGslZ+wmaOukZSliIuehIaehIaagIKZf4CehoCokIuukZSqjZCojIyihoamiJWoi5eskZqskZqu + kZaojJGbgIybgIyfg4ani42ujpmvkJqoi5erjZq0maWylqKqjpWukpmrkJmqjpelh4mhg4aliI2l + iI2sjJu2laW2mqOylp+vjY6nhoehhISfg4Onhn2lg3qmgHuhe3eff3uign6mgHuog36qhn2ng3qn + fWmdc1+WalqQZFSQZVWWa1uZbl2ab16XdF6XdF6abViXalaVaFaWaVebbWKhcmeldWimd2mleWWh + dWKab2GdcmOhdWSugnC6koi2joSuhHqqgHeuhHqyiH6rh3qyjYC3kX2zjXmvfmOmdVufdGGmemeu + fXW0g3u4iH23h3uzh3q4jH+7jIO6i4K0hHewgHOugmuwhG6yiXmwiHi0h3q6jH++joe/kIi8joa7 + jYS3iHWsfmusfmeqe2Sue2WsemSzf3O4hHi2hni6iXu7iHe4hnS2gHKyfW6weWeze2m4h4O7iYa3 + jou7ko64lJa4lJa8l5q+mZu/lpK4kIwADQEAAAMAAAABAQAAAAEBAAMAAAABAQAAAAECAAMAAAAD + AAMAqgEDAAMAAAABAAEAAAEGAAMAAAABAAIAAAERAAQAAAACAAMAsAESAAMAAAABAAEAAAEVAAMA + AAABAAMAAAEWAAMAAAABAKoAAAEXAAQAAAACAAMAuAEcAAMAAAABAAEAAAFTAAMAAAADAAMAwIdz + AAcAABDoAAMAxgAAAAAACAAIAAgAAAAIAAH+CAAB/gAAAQIAAAEAAQABAAAQ6GFwcGwCAAAAbW50 + clJHQiBYWVogB9YABAAeABAAAgAkYWNzcEFQUEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPbW + AAEAAAAA0y1hcHBs8Km3nXI3UvdB2LuwZ9wBHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAOclhZWgAAASwAAAAUZ1hZWgAAAUAAAAAUYlhZWgAAAVQAAAAUd3RwdAAAAWgAAAAUY2hhZAAA + AXwAAAAs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IAZQBuAC0ATABDAEQARgBhAHIAYgAtAEwAQwBEzuy37AAgAEwAQwBEAEMAbwBsAG8AcgAg + AEwAQwBEAEYA5AByAGcALQBMAEMARABMAEMARAAtAGYAYQByAHYAZQBzAGsA5gByAG1faYJyACAA + TABDAEQAAG1tb2QAAAAAAAAGEAAAnFYAAAAAv/h7gAAAAAAAAAAAAAAAAAAAAAB0ZXh0AAAAAENv + cHlyaWdodCBBcHBsZSBDb21wdXRlciwgSW5jLiwgMjAwNQAAAAA= +item7.X-ABRELATEDNAMES:assistant +item7.X-ABLabel:_$!!$_ +item8.X-ABRELATEDNAMES;type=pref:spouse +item8.X-ABLabel:_$!!$_ +item9.X-ABRELATEDNAMES:father +item9.X-ABLabel:_$!!$_ +item10.X-ABRELATEDNAMES:Custom relation +item10.X-ABLabel:CustomRelLabel +X-ABUID:3D833EB4-BFFC-41F0-9193-96695487C45E\:ABPerson +END:VCARD diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4-SingleNonAscii.vcf Binary file qtmobility/tests/auto/qversit/testdata/AAB4-SingleNonAscii.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4-SingleNonAsciiWithPhoto.vcf Binary file qtmobility/tests/auto/qversit/testdata/AAB4-SingleNonAsciiWithPhoto.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4/MultipleAll.vcf Binary file qtmobility/tests/auto/qversit/testdata/AAB4/MultipleAll.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4/MultipleAscii.vcf --- a/qtmobility/tests/auto/qversit/testdata/AAB4/MultipleAscii.vcf Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3599 +0,0 @@ -BEGIN:VCARD -VERSION:3.0 -N:;;;; -FN:Apple Computer Inc. -ORG:Apple Computer Inc.; -TEL;type=MAIN;type=pref:1-800-MY-APPLE -item1.ADR;type=WORK;type=pref:;;1 Infinite Loop;Cupertino;CA;95014;United States -item1.X-ABADR:us -item2.URL;type=pref:http\://www.apple.com -item2.X-ABLabel:_$!!$_ -PHOTO;BASE64: - TU0AKgAAAyiAP+BQOCQWDQeEQmFQuGQ2HQ+IRGJROKRWLReMRmNRuOR2PR+QSGRSOPPyTOZ1OxjM - 1pLZfsVtuBxySaTWHvF5vVkNBqqlZrlTrFbqqfthvOKbUmlQN4PN6L1jMugrep1NZLtguR0uul12 - RvZ8PhhstoVWhWZbr5jsywPivW+PzFxqhZUCz3ehz9st+Z3C/Rp6vd8MFks60Whis1ovd8vm/4+L - ul2O5YrpgYehMBkM2mvTIZ+LOJzOm0ZVgM5qtmcvbQa1+696PZ76vXv2Eu14PJmNNsNNtN7JO7a0 - yncF2u9423Wx+TPx0ZNlNFqrthslar5iddiLxispmtRsc93Pl9PuB7Xyvt3vJ575vVBlrVesOrsF - ZLxgy5i2NoN1xnMxjHOWiLVmWaRrFcW5eroXDMKooS6FyV5cF8zRmmubpwG4cJyJWaT6wjB0HKIX - MLHUdx4QGhbcHk7hlREvEYQeW8GQZGUbxioTtHIdB1uHFTVl4YkXxzGccSNIsjyUvDCGdALlubAx - rSXJEqypK8ilyYRjq1HzXs+2seHWWBcl/LErSTNM0TWtBcGCYzjnjFR/vEY5nGnG01TPPc9KFCZf - NEdM5oGaBrm27U+TZPtFUYYhmGi9NBoEX61xJRNL0WtBWFsXijKRSSB0RTNR0ZTBbvqcrJVAgb61 - NV1SPkYZ1OPVaBNNV9S1JGRZl4YTxVqf9eGFXFiTVBJem8cZz2BIRlTzXNoWLGcIu+bFgTsacyTN - XVuWjWDsTjUBsG6cLqGTaV0LxBhkulJ8VRY3ZsRDbt02hEl4uU1zXnAcpz21euAQgur+Vmd7ltW+ - GA29ha0F0YZkTmaRsG5eeGXpi9GSlOb1nnYWFXrTZeYLUDUGzj+MRknZq0jSSnHrNxjZPi0qvrE8 - U2AgVknOVZaF1mUzp8XL3ZwgramgaxtZ/btHGjfOiIKtsLaVRhbmAYtw6ehacHrqVFwZhxkSlQpt - 2qtRmUtReYHOdZ26yiLAnwaOJvqVZal2+5g5VLrYnu9LauatrxXi7RWwVvF445t3FcXxnG8dx/Ic - jyXJ8pyvLIIgIAANAQAAAwAAAAEAMAAAAQEAAwAAAAEAMAAAAQIAAwAAAAMAAAPKAQMAAwAAAAEA - BQAAAQYAAwAAAAEAAgAAAREABAAAAAEAAAAIARUAAwAAAAEAAwAAARYABAAAAAEAAADjARcABAAA - AAEAAAMgARoABQAAAAEAAAPQARsABQAAAAEAAAPYARwAAwAAAAEAAQAAASgAAwAAAAEAAgAAAAAA - AAAIAAgACAAK/IAAACcQAAr8gAAAJxA= -X-ABShowAs:COMPANY -X-ABUID:C5C50103-C86C-40BB-8864-909A089EB390\:ABPerson -END:VCARD -BEGIN:VCARD -VERSION:3.0 -N:Lastname;Firstname;;; -FN:Firstname Lastname -ORG:Company; -EMAIL;type=INTERNET;type=WORK;type=pref:work@email -item1.EMAIL;type=INTERNET:other email -item1.X-ABLabel:_$!!$_ -item2.EMAIL;type=INTERNET:custom@email -item2.X-ABLabel:custom email label -TEL;type=WORK;type=pref:work phone -TEL;type=WORK:work phone 2 -TEL;type=CELL:mobile phone -TEL;type=WORK;type=FAX:work fax -item3.TEL:other phone -item3.X-ABLabel:_$!!$_ -item4.TEL:custom phone -item4.X-ABLabel:custom label -item5.ADR;type=WORK;type=pref:;;Work Address;Work City;Work State;Work ZIP;Work Country -item5.X-ABADR:us -X-AIM;type=WORK;type=pref:workaim -X-JABBER;type=HOME;type=pref:Jabber -X-JABBER;type=WORK:workjabber -item6.X-MSN;type=pref:othermsn -item6.X-ABLabel:_$!!$_ -X-YAHOO;type=HOME;type=pref:homeyahoo -X-ICQ;type=WORK;type=pref:workicq -PHOTO;BASE64: - TU0AKgADAAhIMyBIMyBIMidELiNDKxc/KBVAKRY/KBVALBZGMRpIM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jJGWh4yOf4SOgoOViImWjJCdkpaimaGakZmRho6Og4ySiZSRiJKWi5aZ - jZmmlaKfjpuVi4yRh4iJgIuOhpCRhpSbkJ6ekpudkZqViIyWiY2XjJeWi5aXiZKWiJGah42XhIuV - gI6ahpSWi5aWi5afjJWXhI2QfYOMeX+HdHqHdHqOeH+Se4OWgIiWgIiSfYKMd3uLd22IdGqDb2WI - dGqIdHSNeXmOeX6Qen+Oen2Qe36UfoaahIyhh4aehIObf3qUeHOVeneVeneNf3qNf3qUeXKEamOD - aGGEaWKEaWKGamOIbmONc2iSeHSWe3iZfXmWeneWd3COb2mUcm2denWbgHmeg3uef3ObfXCfeHSi - enejfnmlf3qlemSbclyRZ1GValWXbWGbcGSaeW6ffnOhf3SigHWffWqaeGWXeWuVd2mWe3Caf3SX - d1uLak+JZVeQa12ZcmKZcmKUblqadF+ddWiheWuld1+idF2icleeblSda1aZaFOUZE2NXkeIXEaO - YkyRb1+XdWWedFqXblSLdHuGb3eCamV/aGN7b2V5bWN5bmp/dHCHeHqQgIORi5aRi5aNh42Nh42Z - hoyah42XjJeXjJebjpKViIyRgoeQgIaNgIKMf4CHfn2DenmHfYOIfoSMhIeRiYyQiZKVjpebjqGe - kaOZjpWRh42OfXuJeHeLeXiJeHd+dXJ/d3ODeneJgH2RgoSVhoiai5CXiI2SiIyUiY2SjpeWkpub - lqealaaRjJuJhJSJen+Of4SRi5aalJ+ekaObjqGVho2Le4ODfn2Mh4aSjpqZlaGel6+fmbCelqqa - kqaUiJGRho6SjJeZkp6ZkaWZkaWdlKGdlKGal6abmaeem66XlaeWlqWZmaebmaifnayem66ZlqiW - kpuQjJWXiZKXiZKVjpWQiZCMhImMhImRh42UiZCSjpqSjpqXkZ2UjZmQi46Mh4uOgoiJfYOGeoOH - e4SJfYCNgISRgoeNfoOOf4eUhIyRg4yShI2XhIuWg4mZhoyVgoiSiI6Rh42Vho2RgomShomXi46W - jpSakpelmaWekp6Sh5CNgouOg4yRho6Sh5WWi5mdkZq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c1yO - b2mZeXOhhICihoKlf26VcF+OaVONaFGQbWKdeW6jfnmifXied2Sac2GadGqfeW+mgHumgHujf3Sj - f3ShdWSfdGOfeGiheWmmemejeGSbb1Sbb1Seclaeclafcluhc1yfcl+hc2GjdWGqe2enf22iemim - dVuhcFafbVehbliid2Oid2OjcleaaU+ZYkSSXD6Of4eMfYSUfYSZgomQhomSiIyWi5aUiJSUiJSO - g46MfX+EdXiDd3qMf4OHfYCDeX2NeoCQfYOJen+QgIaOgoaViIyVjZKWjpSdjZ+djZ+bi5ebi5eR - hIuRhIuUgImRfoeNgouSh5CekqGilqWhmaqimqufmq6dl6uakqKblKObl6OXlJ+UkZWMiY2MhImN - houOgoOQg4SSiImWjI2ajZSajZSZjZaZjZaXjJebkJublqaemaidmaWXlJ+ZkaGZkaGXlaOal6aa - kZmRiJCNhouNhouQg4mRhIuQhI2Sh5CWhpCUg42OgoiOgoiIeXuHeHqGeXqHenuNgouOg4yRho6N - gouOhpKRiJWUjZmVjpqZjZmajpqhkp6ilJ+XjpuWjZqXi52ajZ+akqKdlaWblaGUjZmNhI6NhI6U - h42WiZCWi5aZjZmVjJSRiJCQh46Oho2Uh4uRhIiQiI2QiI2Ng4mNg4mRg4yXiZKfkpSXi4yZhISZ - hISOgoaMf4OOhIuRh42Qg4SQg4SNeXmMeHiQe3mQe3mNfoaWh46bkp+WjZqRhIuNgIeQfYCUgISa - hIyeiJCilZmdkJSXhoSNe3qNcm6WeneVgoibiI6ZiY6UhImRg4ONf3+RgoSZiYydjJmfjpujlJua - i5KZh4iSgIKQeX6OeH2Re4OZg4udjZWdjZWdho2Se4OVf3+WgICWgnuZhH6deniZd3SUenmVe3qR - emuQeWqRd2uSeG2Jc2eHcGSGamOJbmeUdG6ZeXOWdWqUc2iQdWqVem+eeXSdeHOae3KhgnidiYOd - iYOfh36ehn2ignuignuef3Kef3KZeXOZeXOaeniefnufg36dgHunf22bdGKUaViOZFSSamSbc22d - eHWdeHWadWKXc1+XcmibdWumfXSle3OieXCjenKhdGWjd2ileW2ofXCsgGileWGfblufbluhcFih - cFieblaeblaZa1qhc2Gjd2WnemmqfWumeWijdWGhc16jeGmqfm+og3KrhnSreWWhb1yhaUqXYUON - foONfoONen6QfYCMf4COgoOVgIyXg46Vh5CQgouQfYCNen6MfoeRg4yRhIuQg4mOhIuQhoyNgIKR - hIaQi46SjZGZjZmajpqXjZ6WjJ2bjJ6djZ+QhoyMgoiSg4iQgIaQhI2ViZKdkKOhlKehlquhlquh - lKqdkKaajJebjZmbkpqZkJeVkJSQi46RiJWQh5SOiY2Qi46UjI6XkJKel6Oel6Obkp+akZ6XkZqZ - kpuhmaiimqqblqaXkqKdlKGlm6ienqyenqyhkp6Rg46NgIeRhIuSf4OWg4eVhouVhouWh46UhIyL - f4iJfoeGenmJfn2MeX2Nen6LgISJf4ONfoORgoeNgouRho6UjZaVjpeZjZmbkJuelZ+hl6Kilp+a - jpefjpubi5eZjZmhlaGelKWakKGSiI6UiZCXi5GajZSZi5SZi5SbjJSZiZGai5KWh46WjJCVi46S - iZGQh46ShomShomUho6XiZKfkpaajZGdiY2ei46Wg4eQfYCNgIeRhIuOgoaOgoaQgn+Qgn+Vf3+X - goKUfoOZg4iekJuajJeUgIeNeoCSe4CXgIaZhomhjZGil56il56fiYmXgoKWd3CWd3CXhIuei5Ga - i5CSg4iSfX2SfX2RfX+diIubiZ2di56ijpWah42af4aXfYORe4aOeYOOgoaViIyZiY6ZiY6dg4SS - eXqVeXWVeXWMd3eSfX2ZfXmZfXmVgICahoaZgnWVfnKXeHSWd3OSdGiOcGSHaVyEZ1qObmOUc2iV - d2qWeGuVeXKVeXKbem+bem+SeW6XfnOdgn6fhIClhH6lhH6lg3qjgnmig3mig3mjg4Cjg4ChhISe - goKegn2afnmlfnSfeW+WcGWOaV6QYleVZ1yVb2iXcmqWcFyWcFyUb1yXc1+ec2Kec2KfdGWdcmOe - c2SleWqlfW+ogHOrgG2ofmqjcl6ebVqec1udclqfak+aZUqSZVGhc16meHCne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ic1OOg46M - gIyQgIaNfoOMeX+MeX+Me4aRgIuSg4uWh46Rh42Rh42SiZSVjJaViZeViZeSkJSQjZGRjI2OiYuQ - i4yUjpCZkpualJ2ZjZaXjJWWjZeWjZeViZWSh5KNgouNgouai5CdjZKajJWbjZabjZubjZuajZSS - hoyUh4uViIyXjZSWjJKSjpqVkZ2fkZqfkZqakJaakJahl5+mnaWhmaqZkaKWjpSSi5CVjpedlp+l - laeikqWakJSWjJCXlZmhnqKloayemqaekZWViIyQgo2Rg46LhomNiIyQh5GQh5GVh5KWiJSWi5SZ - jZaSiZGQh46WiJGXiZKQgo2LfYiIfoKGe3+LfoKNgISQh5SRiJWWjZebkp2VlaKZmaaflaaflaam - mqijl6ajlaGilJ+ZkaGXkJ+ZjqGbkaOdkKaekaebkp2ZkJqakqKelqaakqKWjp6WkJaUjZSajY6Z - jI2UhoaOgICRh42WjJKdlKGimaaelKWXjZ6ah42RfoSOen2WgoSOhoSOhoSWh4ybjJGfi5abh5Kd - iZCbiI6bkZedkpmbiYuSgIKIfoKQhomajZSekZejlpqll5umkJCijIyXgoSSfX+Zg4udh46biYuO - fX6IbmqDaWWLbniWeYOWh4yai5CZhIeRfX+WfX6WfX6ReHmReHmReHeUenmWgICeiIidiIidiIia - gIKVe32UeXWSeHSWenqdgICehIafhoehh4aehIOfg3ubf3iVe2mQd2SLalSIaFGOcGOSdGebenKd - e3ObfXOXeW+WeG6Vd22QbmuScG6Sc22XeHKZenCZenCXe3ibf3uihoijh4mmiYyni42niH6jhHqf - hHWZfm+de3Chf3Sfe2+XdGiXbVWRZ0+OZFGQZVOXbliacFubd2Wjfm2iemiheWeic2Web2KacF2b - cl6ZcGefd22jf3OlgHSnf3KlfW+meGGidF2bbleXalSWalqabl2eeG2ie3CoemOfclufblSebVOh - b1yod2Osf3qwg36uf3esfnWmdVijc1aQh5GQh5GShoyQg4mRfX+Qe36RhIiXi46ajJWajJWaiZmb - i5qWjZeVjJaUi5WWjZeXkZqXkZqVi46SiIyUiJGbkJmfkqWdkKKZjZmXjJeajJWbjZaSiZaSiZaU - iJaajp2ekZeekZebjJGai5CSjJWUjZaQiI2MhImUiY2XjZGZjZmXjJeXkKGblKWflKKekqGakJae - lJqjmqemnaqilqKZjZmUiY2Ng4eQiZKalJ2hkpudjpeWjJKZjpWel6GnoaqloaqhnaadkpmXjZSR - iJCNhIyMiI6Oi5GSiZaSiZaSjZ2WkaGhlKafkqWWkaGSjZ2Wi5aWi5aUiY2QhomOgoaMf4OJen2J - en2JfomMgIyRjJCVkJSdlqKel6OdlaWdlaWil6qlmqylmaeekqGdjZ+bjJ6ZjqOelKiflKKflKKd - lJudlJuWkaGblqadlqKalJ+bkpqakZmei46fjJCahoaUf3+XiI2fkJWhl6KimaOZlZ6RjZaViIyR - hIiOf4SRgoeVhouWh4yZiY6djZKhkZmdjZWijpediZKVjpqblaGhkpuWiJGRhIiWiY2hlJqilZui - lZmll5ujl5aekpGVf4SQen+Of4eVho2Vg4SOfX6Nc2iEal+Da2eMdG+Vhoiai42ahIeSfX+Ve32W - fX6Ve32UenuUen6SeX2Vf4KbhoieiI2fiY6bhouahImahIKVf32VfXiXf3qahIKdh4SfhoSfhoSj - iIOfhH+bgHWWe3CRcl+La1qSdGeae26igIKigIKif36aeHeWd3OWd3OSb2eUcGiUbmOXcmeUdGSU - dGSVc26beXSbf3uni4eqjI6niYyuhoKnf3uef3WdfnSjfnulf32mgnmfe3Oac2GQaVeSaVGUalOZ - cmSbdGeefXSigHiqhnmohHimfXOheG6ac2OUbV2ZbmKid2qfe3CmgnengHWngHWne2ObcFibalqb - alqXaliZa1qbcl6jeWWmdVufb1WXaEiXaEiVaFSdb1uqe3Syg3uufnCneGqlc1ifblSUho6Vh5CU - iZCSiI6VhouUhImaiZahkJ2hlKaekaOdjpeajJWZjZmViZWUi5eXjpufkZ2fkZ2ei5GbiI6bjZah - kpujkqKfjp6Wi5aUiJSUiJGViZKUi6KVjKOajKafkauekaWajaGai5CXiI2OiJSOiJSUiJSSh5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mqeimaabkaKdkqOWkaGZlKOdl6einayin7Kin7KbmqWRkJqVhouW - h4yWkJaZkpmblZ6WkJmZjJ6ViJqUi5WQh5GSiI6UiZCWjJKakJabkZWhlpqekqGekqGflqGflqGe - mqOhnaailp+ekpuZkpuZkpuXjpaSiZGVho2Sg4uZhoydiZChkqGomqijmqKdlJujlJadjZCXgoyV - f4mXi46ajZGdkJGXi4yRgoSQgIOZgoedhoueiJCljpabjpKViIyjkJanlJqlkZefjJKfjJCXhIiU - foCVf4KRgoSSg4aOf4KNfoCXiJCai5KijpWolZunlJqhjZSZhIKXg4CXhIiZhomVh4eUhoaVgoiU - gIeShISRg4ONeHiNeHiVfoadho2liZCliZCiiImiiImZhomVgoaSfoCQe36UfYKag4ihiY6ljZKo - lJaolJadiIuOen2Rd3KUeXSZf4CbgoOjhoalh4emhoKhgH2ffnWbenKigHWmhHmmi5anjJemi3+f - hHmjd26bb2eZc2iWcGWQa12RbV6SamGRaV+SbWKWcGWaeW2jgnWuh3+shn6qiH2lg3ijfXWfeXKn - gn+qhIKrh36rh36ognirhHqqhn2ohHulf3CmgHKngHWmf3SmgHungn2qgoCmfn2ofW6id2ibclWR - aEyXZ1Sda1iab1yfdGGld2Kld2KfaUiZY0OWaVOabVabblqbblqaaFWaaFWXaFCVZU6VZU6UZE2Z - aluic2OmeG+oenKreVyjclWajaGbjqKZlKWalaaelqeblKWdkqOakKGWkJmWkJmfjpufjpudjpql - lqKll6qjlqihkZabjJGWiIiajIyXjpmXjpmUkZWRjpKNhoaNhoaMgH+NgoCVg4SbiYuZi5abjZmW - iY2OgoaOe4KNeoCMfYSOf4eQhoyXjZSelZ+jmqWfm6WdmaKekJubjZmXjpmWjZeXjJWdkZqemqah - naijmqWhl6KdlJ6dlJ6blaGblaGZjZaZjZadjZKfkJWhkp6ekJuflqOlm6imm6ymm6ydlp+blZ6d - laWdlaWflqOon6ysn7KnmqyXlZmOjJCWiZCajZSSkp+Skp+akZuXjpmZjp+Zjp+SkJ+UkaGZkpuZ - kpuakJaakJadkZqflJ2bkaKZjp+ekp6hlaGbl6GdmaKhlaGflJ+fkZ2ekJufkJWai5CbhIyZgomO - gH6Vh4SZjZunm6qenaebmqWfkpaajZGah42ah42bjpWdkJadjZCfkJKXiYmUhoaXiZWilJ+jlaOe - kJ6akZmVjJShlJqjlp2mkZ2lkJujjZWeiJCZh4iWhIaRf3uOfXmUenmSeXiJfn2QhIOZjJCekZWd - kJSdkJSdiIudiIuhiZadhpKXi5GViI6diZKhjZaijpWbiI6Qe3SLd2+Rf4CaiImlkZqmkpumjpSe - h4yXhoeUgoORe3mNeHWQeniVf32bh4mjjpGokpWnkZSli4yXfn+McmqLcGmRdXKWenehf4Cnhoeo - iIKlhH6ifnOdeW6denWjgHulh4ymiI2qhH+og36lgHSdeW2dd2ueeG2XdWWRb1+Oa1+Sb2OXc2SZ - dGWbenKffnWmgH6rhoOui4iqh4SohHueenKhe3elf3qogICrg4OnhHSqh3emh3qmh3qrgnirgnir - hHqlfnSiem2je26lfnejfXWlfWqmfmufd1SddFGfblufblubblqidF+ld1+ld1+jc1OhcFCXbVee - c12bb1GZbU+dZ1ObZVGWbVOZb1WebVefblihb1emdFyjdWGld2KqeF2ndVufjaGikKOelKaelKab - lKOZkaGZkp6blaGekJmekJmfjpuejZqfkZ+nmaejmaqhlqedkJSajZGZjJCajZGWjpSWjpSWkZWU - jpKRh4uMgoaIgIOIgIORfXqWgn+ShoyUh42QgIaLe4CLdXqLdXqNen6QfYCNg4eXjZGhlJqnmqGh - l5+ZkJeXjZSWjJKWi5SXjJWajpehlZ6ina6ina6lmqyil6qhmaifl6edlqKZkp6ajZSZjJKWjJCb - kZWelZ+dlJ6fkKOmlqqlnayimqqblpqVkJSdjpqhkp6blZ6mn6iroq+imaadkJaWiZCWjZWimaGa - l6eVkqKVjpeWkJmZkJ2dlKGWkaGalaWel6GblZ6alZmdl5uflKKilqWdkKKZjJ6akZ6flqOflaah - lqedlp+dlp+hkp6fkZ2hkZaZiY6hiY6dhouVhouOf4SUi5emnaqlnayjm6ufkZqbjZaWjJKVi5Gd - kZqflJ2hlp2elJqajo2ZjYyXkZeel56jmqedlKGdkZ2dkZ2jlJmmlpuqlaGmkZ2jjZeijJabjI6X - iIuZhISVgICQe3mLd3SId3ONe3iSg4iZiY6ai42djZCZhoybiI6fjJWei5Sii5Keh46RgI2djJmo - kZ6jjJmZgHqMdG6IdHKUf32fkJemlp6olJahjI6Xg4ORfX2OeXeLdXOQdHCXe3iZh4ajkZCnlZam - lJWnjYybgoCUdG6NbmiSc22Wd3CfgoSihIeihoChhH+fgHebfXOafnefg3ujh4eliIiliICihn6h - hnieg3WignuignuffW2Vc2OWamKabmWadGqeeG6denWhfnmmgH+sh4aujYmnh4Omg36ffXieem6j - f3OmgHuog36mhHinhnmoh3qnhnmohHurh36sh4KqhH+ifmOfe2GjenCieW+mfmuiemihd16fdV2h - dGOhdGOdcmGfdGOdd12adFufdFyjeF+adF+Zc16dbk6dbk6faUyhak2iclqmdV2mdF6mdF6meGGn - eWKleWOjeGKqeF+qeF+djZ+fkKKelqablKOVkJ+Ujp6ZkJ2dlKGdkpmdkpmdkpmdkpmikqWnl6qi - laedkKKblJmakpeekZebjpWZjI2Uh4iWjJKUiZCRhIuNgIeHenuHenuOe3WVgnuUgIeUgIeQfYON - eoCNd3uNd3uMenuQfn+Ngn6ViYabkZehlp2jlpqekZWVjZCSi42ZiY6ai5Cdlp+im6WjobClorKh - maqelqeimaahl6WbkJmWi5SZiY6ZiY6WjpSakpeakqKZkaGXjJeekp6imaaimaaakJGUiYuXi5Ga - jZSUkp2enaemn6udlqKWiZCViI6ZkJ2jmqealaaVkKGSjJeRi5aXkZ2alJ+dlaWakqKjlZ6jlZ6f - lqGimaOilqWflKKZjZmWi5aajpqdkZ2hlaOjl6aelKWhlqehl6WdlKGhkpuekJmfkZqZi5Sai5KQ - gIiUjZmhmqanl6qnl6qhkp6djpqXjpaZkJeel6OdlqKjmqKflp6ZkZSXkJKdlp2fmZ+hmqael6Oe - lZ+flqGmkpuqlp+mmZ+ll56jkp2ejZedjZWfkJedjZKWh4yVgIONeXuLd3SMeHWXg4abh4meiYeh - jImaiImejI2fjY6fjY6hi4uhi4uSgoyZiJKllJ6hkJqehoCWfnmQdW6UeXKajIyml5eqlZWjjo6f - hoSXfn2UeXSOdG+MbWeSc22SfX2fiYmjkJamkpmukZaihouXd26JaWGObmWXd26df4KjhoijiICi - h3+hgnWdfnKafnmdgHuiiIehh4afiHuhiX2liIOmiYSri4esjIiognedd2uZc1yadF2efXSffnWh - f3eefXShfnmlgn2sjIiqiYaqhH+ifXied2med2mhfXSng3qrh3urh3usg3mrgnimgnmohHunhH+q - h4KlgGibeF+hdWeid2ilfmmhemWheWeheWefeGqfeGqbdWGbdWGZc1yXcluhcmKmd2eleWOjeGKi - dE2db0ifaUqjbU6od2Oue2iofWSofWSuf2qsfmmrfWioemWmdFyndV2XkZ2alJ+XkZqXkZqXjpuX - jpubkp2bkp2bkpqbkpqakJaakJaakqKblKOelaKakZ6ilJ2ilJ2fkJeai5KZhomXhIiViI6WiZCR - h42LgIeOgICLfX2Qgn2XiYSXhoeVg4SQeoKNeH+Md36Md36MenuOfX6SfoCZhIedjZWhkZmikpeb - jJGQiI2RiY6ZiJWfjpufl6emnq6nn6+mnq6dlqKel6OhmqOfmaKakJaWjJKWh4yXiI2SjpeZlZ6d - lp2XkZeSjJWZkpuflKKhlaOakJSSiIyRh4iVi4yWkJmXkZqdlp+ZkpuUiY2Vi46dlqKlnqqbkJuV - iZWRh4uSiIyXjpaZkJebkp2XjpmajJWekJmbjqGilaeflqGbkp2ZjpKVi46ViZKWi5SZkJ2elaKe - lKWelKWfkqailaiilqWilqWhl6Kbkp2ekZeViI6SiZSbkp2hlaOilqWflJ+ZjZmakZ6dlKGil6qe - lKailKKekJ6Wjo6akpKdlJulm6OlmaKilp+bkp+bkp+jlaGml6OlmaKjl6GikZuejZedkJSdkJSf - kpaXi46XhIuWg4mSfniOenSVf4Kbhoifi42hjI6hi42hi42ejIudi4mhhoyhhoyZg4iZg4iikpqm - lp6ijYeXg32Nem2Sf3KZh4imlJWsl5qlkJKhiIOXf3qWenOSd2+LcmeHbmOLd3CVgHqhi5KijJSq - jJSlh46Zem6LbWGIamGRc2mbenuhf4Cni4Oihn6dgnSZfnCbf3qdgHuihIejhoiliIiliIiqiYeu - jYuwjYyvjIuviXiifWuWcFqZc1yig3elhnmnhnmhf3OigHWjgnenh4Cnh4CuiYCmgnmdemqZd2ef - eW+jfXOohHmrh3uwg36vgn2lfnSngHeog4CrhoOlgGqhfWefdFybcFifd1yjel+lemenfWmne22j - eGmec2KbcF+Zc1yVb1iicF+od2WqfWuqfWuneWSjdWGhb1ejclqnemGugGewhGusgGi2hGuygGiw - fmivfWeqeVyjc1aZkJeVjJSWjJ2WjJ2ajJqbjZuekJuilJ+flJ2dkZqZjJKajZSWjZqZkJ2bkpqd - lJujl6OhlaGejpaZiZGZhomah4uVhoiVhoiSiIyJf4ORgoeUhImZjJKajZSZiJKWhpCQgIaNfoOM - fn6LfX2NeXmNeXmQe3WXg32ZiY6ejpSdjo6ShISOg4KRhoSWhpCfjpmhl6Wlm6ilmaWekp6dkZqe - kpuflqGhl6KakJGQhoeOhIiUiY2VkJ+ZlKOdlp+XkZqUiZCXjZSajpqdkZ2ZjpKSiIyZiY6bjJGb - kZebkZebkZeZjpWVi5GXjZShl6KimaOijpWXhIuUh4uWiY2akJaakJaXiJCUhIyUh42WiZCVjJaa - kZualJ2blZ6fkpaViIyQhomRh4uSi5CXkJWblZ6dlp+dkKOjlqqll6ummayimaGelZ2bkZeVi5GQ - h46VjJSXkZqblZ6dlaWakqKflaeelKallqWhkqGei5Sah5CZjI2ajY6fkpanmp6om5+ll5uVjJSV - jJSZjZubkJ6bkJ6flKKllZ2fkJedjZKai5Cei5GbiI6XhI2UgImVgoaVgoaVhoiZiYyhi5CijJGn - kZGljo6djZCai42hho6ih5CahImeiI2fkJWmlpumkZGfi4uXg4OVgICbhoumkJWqkpeokZajiYud - g4SXfXWQdW6Rd2uLcGWIbmeSeHCah4ufjJCijJGijJGagG6Mc2GIal2Nb2KaeXqlg4Smh32dfnSZ - fnCZfnCdfnSef3WlhIKlhIKjhoiniYyojIyqjY2ujYuwkI2vjYKjgneWdGSXdWWjfnurhoOqiH2n - hnqmg3CffWqjfnmog36shn6ngHmfemebd2OZcm6feHSlf32rhoOvhn+vhn+nfWmlemehfXSmgnmh - g2+fgm6jd12fc1qeclaidVqmeWinemmofWSjeF+hc16db1uZbl2XbVylc2KndWSnfWSrgGiofWun - e2qldFymdV2nd1yvfmOwgmqvgGmwgm2wgm2uf2iuf2irgGGme1yZiY6ZiY6ViZeSh5Wai56bjJ+b - kaKdkqOdkpmZjpWZiYyZiYyVjJaakZudlKGhl6WomqallqKXjZSSiI6VhouVhouUhImVhouRho6R - ho6Ui5WUi5WXjpuelaKhkaWZiZ2OgoaMf4ONg4SOhIaUf4KNeXuNfXWUg3uShomXi46bjpCRhIaM - goOOhIaSiI6XjZSflJ+hlaGhlp2ZjpWWi5aflJ+hl6WelaKhkpKajIyUiZCZjpWblKWdlaadl5uW - kZWShoeViImZjJKajZSbjJGbjJGdjpqekJuZkJeWjZWbkZWZjpKViZWZjZmhlaOhlaOlkZediZCZ - iY6fkJWfkJWbjJGWhIaRf4CUfoaahIybjJSdjZWelZ+flqGdlZqVjZKQiIuLg4aUhImZiY6WkZWa - lZmdkZ+flKKilKKllqWjl6GekpuakJaXjZSRh42QhoySiZGXjpablKOZkaGdkqOelKWil5uelJed - iIiXg4OdiIueiYyekZWmmZ2om52mmZqejIiUgn6ZhISbh4eZjJCbjpKhjZaijpeei5GZhoyag4ue - h46XhIuUgIeah4udiY2ajpqbkJufjpmikZull5milZahlJeajZGeiJCeiJCei5GdiZCfkJWjlJmm - kpajkJSbho2ahIybho2jjZWrkJmvlJ2skJKhhIedgn6We3iSeWqMc2SHaGKQcGqReHmiiImfjY6f - jY6bgm2Qd2KOcmGRdGOdenmhfn2ffnWde3OZeGude2+eg3ieg3ilgn+nhIKliIumiYynjY6qkJGu - jYuvjoyrjH+lhnmbc2mXb2Wbd3Sog4CujYmqiYaqhHCifWmfeW6lfnOngHWngHWlfWqfeGWWcGeb - dWuienqshISrh3uohHmhfWSbeF+ZdWmdeW2hfXKdeW6hcFiiclqdb1ihc1yidWSleGelel+jeV6h - cFiba1SXblSZb1Whc1yld1+qf2esgmmrf3Cqfm+nel6leFyqeVyygGOzgG2wfmqwgHCygnKvf3Sz - g3izgmmvfmWWg4mWg4mUhpSUhpSWh5mXiJqbjqGdkKKakZmZkJeZiY6XiI2WiJGbjZadlaahmaqi - lp+dkZqQhomLgISQg4mRhIuRh4uVi46ZjpWZjpWZkpublZ6fkqWjlqihjqKZh5qViImWiYuZjJKa - jZSVgoiVgoiXhoebiYuWh4yXiI2ei46VgoaQg4mRhIuOhIiVi46hlJqhlJqXkJWSi5CUjZadlp+l - lqWilKKakJSWjJCajpedkZqlmaelmaejmZ+elJqbh4mZhIedjZCdjZCakJaelJqekaOfkqWjlp2d - kJaZjJCXi46VjJaZkJqZlKOVkJ+ajpqXjJeakJadkpmelJeZjpKUhIeUhIeUh42ZjJKXjJqekqGd - kqOhlqedlZqWjpSQgIaOf4SWg4yei5SWkZWVkJSfkJehkZmbjZmfkZ2flZudkpmbkZKVi4yRgoeQ - gIaMgoiSiI6VjJSXjpaZkJqdlJ6jl5aflJKijZCdiIueiJKfiZSfjpuol6WuoaWrnqKjkY2di4ed - i3qaiHiaiImbiYudiZKhjZadjZWai5KfiYyZg4abhImdhouei5SfjJWajpebkJmjlJullZ2om5+q - naGqmp2fkJKii5CfiI2fjpuhkJ2mlp6mlp6nlJehjZGah42ah42liZCliZCrkJuukp6ukZSni42d - h4eXgoKVgHeQe3KObmKLal6McG2fg3+hjZGdiY2agHOSeWuScmWVdGibeXShfnmhfnmhfnmefnii - gnujh4KliIOliIOliIOmiYyojI6nkZGokpKrjouojIiujoSmh32he22ZdGWadGqjfXOohoOvjImv - h3Srg3Cjf2efe2Omfm6ogHCrfm+meWqbcGKXbV6ZcnKheXmoh36nhn2lfWqbdGKbcGKdcmOfc2Ki - dWShb1Ohb1OdbVWba1SbblyidGKhdV+hdV+ebVeaaVSbbU2fcFCdc1iieF2lf2uog2+rf3CofW6n - eFamd1WjeWGsgmmyh3OwhnKzhHKwgm+wgHWzg3izg3O0hHSNg4eNg4eSgo6Xh5SXiZKZi5SejZ2e - jZ2djJmZiJWah42ah42ZiJKfjpmhlqeflaabkZWUiY2Rg4CQgn+RhIiViIyVjZCWjpGZjpKZjpKa - lJqdlp2elaKflqOfkZ2ajJeVkJGVkJGekpudkZqXi5GViI6ZiZGXiJCZjI2ajY6ajZGShomMgoiM - goiRh4uUiY2akpeZkZaUjJGVjZKUjZaalJ2dkZ+bkJ6bkp2ZkJqdlJ6dlJ6il6qhlqiel6OblaGa - i5KVho2biI6ei5GXkZeel56hlKailaellp+fkZqZiYyVhoiUi5WZkJqVjZ2UjJuXjpuVjJmbkJmf - lJ2ikpqbjJSVi5GVi5GXjZSakJadlKGelaKhl6Whl6WhlJeZjJCVgIOSfoCVho2bjJSakJaWjJKX - hIubiI6Xi46bjpKfkJKfkJKXjouRiISUf4KUf4KMeX2Oe3+Qg4eUh4uZi5SekJmilZuekZebjZab - jZaZiJWbi5ejjJuqkqKmmqajl6Ofjpmbi5WdiIiahoaahIyahIyai5CdjZKWi5SXjJWai42XiIue - iI2fiY6fjpmhkJqekZefkpmmkpaqlpqomZ6snaKqm5mjlZKjjZKfiY6hjJqlkJ6qlp+qlp+rlZen - kZSeiYybh4mdiIuijZCikpqhkZmrkZCjiYiihISfgoKbf3+WenqRd2mJb2KMbWqdfXqijI6jjZCd - gnqVenOUc2iScmeZeXOff3mefnqff3udf3+ihISni42ojI6mjJCiiIyliIimiYmnjYyrkZCyjZCu - iYyvjYSnhn2le3KddGqXcGGddWWhf3enhn2shnuuh32rgmSjel2feGWlfWqqfm+ofW6meGWfcl+a - cmmheG+qg3irhHmme2ifdWKbcl6acF2dc1ihd1ydcFWbb1SablWfc1qhc16hc16hd1ybcleXaFCa - alObaEmhbU6bcl6ieGSrf3OwhHiyhHOqfWund1Ojc0+ld2SrfWqshHSvh3ezhnSvgnCwg3KvgnC2 - hnW6iXmShoyRhIuXhIuZhoyViImZjI2ajZSdkJaZjJKXi5GWiZCWiZCZiJWfjpujkqKejZ2Zi4uS - hISNgoCOg4KQhoyZjpWbkp2dlJ6ekZefkpmblJmelpullqWnmaeflqGdlJ6elZ2dlJuhlZ6ekpuX - i46ZjJCXjpmXjpmakpKZkZGajZSUh42NhouQiI2VkJGWkZKblJmXkJWZjJKWiZCWiJaXiZeWjZWW - jZWakZuakZubkp+dlKGXkKOakqadlaWakqKWiJaUhpSXgI2XgI2UjZSdlp2flaaflaaflKKajp2X - i46Uh4uWjZeZkJqUhpGUhpGVjJmbkp+bkpqflp6jlJudjZWXjJeXjJeXjJWajpealJ2blZ6flqOh - l6WjmZqbkZKWgoKSfn6Zg4ueiJCfkJWdjZKZhIeahoiZh4ibiYudjo6djo6XjIuRhoSSfn6RfX2N - eH2OeX6NfoOQgIaVho2djZWfkpmfkpmekqGbkJ6ajJWZi5SdjJaejZefkZ2ml6OejZ2djJuah5Ca - h5CZhoydiZCdiY2ei46XjJWXjJWbjJSai5Kei5Sei5SfjpmikZulkZehjZSikpWnl5qlmp6onqKq - nZ6nmpumjpadho2ZiJKhkJqmkpuqlp+rlJmnkJWeh4ybhImag4ieh4yfiY6ijJGni4eihoKhg4Od - f3+aenidfXqWenqQdHSRcHKbenufhoejiYuhhoCaf3qRd2uOdGmVdXOZeXehfnuhfnudf4KihIen - jJKrkJankZGljo6miIijhoani4eskIywkpKukJCui4ariIOrg3Wed2mbcF+ec2Kdd22ie3KqhH+w - i4augnCmemmed2Sje2mqfXCoe2+idWSidWSec2ehdWmjfXKmf3SngGehemGfdV+fdV+hc16hc16e - cFydb1uhc2Gld2SneWSld2KidVqhdFibak6ZaEyaaU+hb1WhdGioe2+ugHmwg3uyg26oemWnd1qo - eFujd2Woe2qshnCzjHe0iHSzh3OwhHOsgG+wg3S3iXqWiZCUh42XgomXgomWh4mZiYyZjpWXjZSX - jJWXjJWajp2XjJqdi56hjqKjjpqeiZWXhoeUgoONg4eWjJCflaail6ihlKehlKehlZ6flJ2hlpqh - lpqekqGhlaOfkqajlqqfl6ejm6unlqGllJ6bjJGbjJGbkp2imaOfl5qfl5qdkZqViZKUjZSSjJKX - kZeblZualZmVkJSdh5GZg42VhouWh4ySiIyRh4uWiJGZi5Sdi56biZ2WjZqSiZaaiJuaiJuSh5KN - go2UgImSf4iSh5CViZKZjZaZjZaajJWWiJGSiIyQhomZi5SZi5SOeX6Re4CShI2XiZKbkp2dlJ6f - kZqbjZaUiJSViZWakJaakJabkJuajpqbjZailJ2om52ekZKXgIaVfoOag4uhiZGikpedjZKZhomU - gISXgoeahImeiI2hi5CfjY6XhoeQgoKNf3+QeYCOeH+Oe3+RfoKRf3ubiYajlp2jlp2flqOdlKGe - lJeXjZGajY6Uh4iXi5GdkJaeiZqfi5uViZKViZKZiY6bjJGah42ZhoyXhIuXhIudiZKdiZKfjJWi - jpejjZWijJSdh5GahI6ai5ChkZailp+lmaKqnaOrnqWqkpqfiJCWf46ag5KdiJSjjpqnl52llZqn - iY6fgoebfYSfgIiehIifhomjiIOfhH+eg36dgn2bfXOZenCOenSMeHKOcnSUd3mdg4SmjI2jiH2e - g3iZe2qOcmGOcGSUdWmdeniffXqefX6oh4iojI6ukZSqjZCojI6nhoeigIKnhIOriIewkIysjIis - i3+si3+shHemfnChemWbdWGacmiddGqifXiog36siHuohHiofWmjeGSfdWKieGShc2Gfcl+ec2Kf - dGOee2ujgHCofWuleWihem+lfnOoe3OleG+lc1+lc1+lemeofmqsfmerfWWqeFusel2lcE6ZZUSb - ZE+mblimd2uufnOygoCzg4Kyf2mue2Wod16semKod2OqeGSsgG2yhnK0hnC0hnCzhnSwg3Kwg3e0 - h3qWi5SSh5CXg5GVgI6Zg4uahIyUiJGViZKWjZWWjZWbkJuZjZmdjJaejZebi5WZiJKZhoyXhIuU - h42fkpmjma6lmq+mmaull6qhl6KflqGhlJeilZmZkpmalJqbkaOil6qfmqqjnq6rlqKnkp6fkpme - kZeflqOhl6WhlaGekp6ZjZmZjZmXkZqalJ2elaKflqOZkpuQiZKWh4yUhImRhIaQg4SNgISNgISO - hIuQhoyVho2Sg4uRhIiShomXh5SXh5SRh4iLgIKOg4KViYiRh4uOhIiXi5GXi5GZiZGWh46UiZCU - iZCWh4yWh4yRen+QeX6Lfn+WiYuZkZSblJabkZeakJaViI6ViI6ZiY6bjJGhjZSdiZCfjpmikZul - lqKhkp6aiImWhIaWg4ediY2ikZuejZeZhIeVgIOVgoidiZChiZGii5KhkZaZiY6Uh4iUh4iWf4SS - e4CQfYORfoSRfoKZhomjkp2mlZ+hmqGel56jlZ6bjZaeiYmXg4OZhomdiY2ZiZGXiJCbiJGbiJGb - iJGhjZaijpWei5Gag4uag4uXhIibiIyhiZGjjJSdjZKZiY6UgISWg4eVh5CajJWilKKml6awoq6s - nqqvmaGijJSbhoiWgIOUfoadh46nkJ2nkJ2miJCegIihe3meeXeaf3qhhoCdiIKdiIKegoKdgICb - e3WVdW+IdWiLeGqNc26SeHOif36nhIOmh32ig3mafWuVeGeRcmKQcGGZeG2de3Cbf3ijh3+ni4eq - jYmrjo6qjY2nhIKlgn+og4Kog4KnhH+ohoCvjIewjYiuiHmog3Sjfm2eeWiedWuddGqfdXOnfXqs - g3quhHuvg22ne2WhdV2leWGld2SjdWOdd1+Zc1ydeGelf26mfXOnfnSmfnqogH2ugnWqfnKneWSo - emWof3eof3evf3SwgHWuf2irfWWndWSfbl2hak2hak2jb2OueW2vgHuzhH+wgm2vgGuue2GwfmOu - e2Ood16seme0gm63h3ezg3Owg3KyhHO2hnq0hHmZjZmZjZmXiZeUhpSRgoeSg4iNhoiUjI6XkJ+Z - kaGbjZudjp2ajJWbjZaXiZKWiJGbh5Kbh5KXiZWhkp6fkqajlqqqoa6mnaqhl6KimaOelJqdkpmf - kpSfkpSakZujmqWmn6uooq6qlaaolKWflqGakZuel6GhmqOhlaOdkZ+WjpSWjpSfjp6ikaGjnaah - mqObkJuSh5KQhoeQhoeRg4OOgICHeHqHeHqLe4CLe4CUeX+UeX+MeHqSfoCVhouZiY6RhoSQhIOS - hoebjpCVi46UiY2ZiYyXiIuVhoiZiYyXi4yajY6biIyah4uUf3mSfniOgICWiIibjpKekZWdjZKa - i5CWh4yWh4yZg4uahIyZiY6bjJGfjpuikZ6ikaGikaGajZGViIyUh4ibjpCekJuekJuahoaXg4OV - goaah4uZiJKejZehkpuekJmdkJafkpmhho6ZfoeQgIiRgomOf4KUhIefi5alkJunmaKllp+ijpeb - iJGQgn+Rg4Cdg4SehIadi4yaiImfhI2ih5Chi5WmkJqmkpujkJmXgoSVf4KUgn6Zh4Obh4eeiYmf - iYeXgn+SfXqUfnuNgIeViI6hkJ2nlqOsnqysnqywnaalkZqhh4aZf36OeniWgn+eiJChi5Kdhoub - hImef3WZenCZfX2egoKliIiihoaihISfgoKee3eVc26Qc2KRdGORc2eSdGiee3elgn2jiICfhH2d - gnObgHKQc12LbliZdWqhfXKegnqdgHmhg4OrjY2zkI6wjYysiYSohoCmg4Clgn+mg36nhH+siYev - jImsi36qiHulgHSifnKje26heWuecmmleG+qgHewh32yhnSsgG+ne2OofWSof3WnfnSje2ufeGie - eGOie2eje2unf2+mgHush4KyhnSrf26rfWqoemiuf3iyg3uyhHuwg3qshnCogm2ogmimf2Wsd1Gj - bkmja16udWirf3OwhHiwhG6whG6yg26yg26zgG+semmreWGyf2eyhnSyhnSzh3qzh3qzg3OygnKV - i5uUiZqXiZeUhpSOf4KSg4aVi5GelJqflaaakKGUiJGSh5CWiJGZi5SViZKWi5Sbi5edjJmbjZaf - kZqjl6Gonaanoaqlnqemmqilmaeml6OjlaGljZKljZKikpqrm6Oon6yroq+nmaKjlZ6dkZ2bkJue - lZ2elZ2hkpudjpedkJSdkJSakZuflqGjn6uhnaimkZ2ahpGZjJCZjJCWiY2RhIiIenqHeXmLfX2I - enqIeXuIeXuIeXuSg4aai42ejpGViIyUh4uWi5SajpedlJ6ZkJqekZKajY6ekZWhlJeekZWbjpKW - iY2Uh4uQe3uSfn6Vf4edh46bjpKZjJCdjZWZiZGRh42OhIuXgIadhoudkJafkpmekaOekaOmkKWl - jqOjkJmfjJWai42djZCdkZqdkZqbjYuUhoObhImii5CakJabkZeilp+flJ2jlJullZ2ijpediZKU - h4uRhIiWgoSWgoSai5KfkJeilZuhlJqajZSWiZCZhIeZhIedh4meiIuajouajouZhIeeiYyjkJmm - kpuijJSeiJCQfn+Qfn+SfoCWgoSbh4mdiIufhH2dgnqafnqWeneOenqVgICbh5KhjJemkaKvmquq - maajkp+dg4KZf36SeHOUeXSWf4SfiI2hho6hho6ign6ZeXWbfoChg4amjJCli46jiIShhoKZgnWS - e2+VemuUeWqWdWqScmeaeXCjgnmmi4ejiISmi3+ih3uhgHCZeWmdfXqign+nhIKlgn+jgH+qh4av - i5Cvi5Cwi4irhoOjgHulgn2if3qjgHuhhoKliYami3+jiH2ng3qlgHile3Wle3WjenSfd3Cje26s - hHeyhHuyhHusgG2sgG2rfnmugHusg3qqgHiqd2iseWqmemmofWuqhHWsh3iwg3KugG+qe2mrfWqv - gHizhHuuh32viH6vi3+uiX6yhnSwhHOugGSoe1+ld1+neWKsgHSvg3euhniyiXu2iH+0h360hHSv - f2+qfWGvgmWohnWvjHu0jYK4kYa4i3uyhHWUiJSRhpGOg4yMgImSg4uVho2XiZWhkp6dkZ2Wi5aV - houWh4yVh5KbjZmekJ6hkqGbkJuXjJeZiZGdjZWflqGjmqWjmqWjmqWnmaWnmaWmlqqikqajjZWi - jJSflJ2mmqOom66rnrCmnaWelZ2ajpedkZqfkJefkJefkpmdkJaakJSakJSdkpajmZ2roq+mnaqj - lJuejpaflJ+hlaGakJaVi5GUgISQfYCLe36MfX+VgIORfX+LgISUiY2bjZadjpeXiZKUho6Sh5KZ - jZmekaWekaWZlZ6VkZqdlKGelaKdlZqWjpSQhomUiY2Uh42RhIuViI6ajZSbjZaekJmbjZmUhpGR - ho6UiJGbho2ijJSilJ2hkpuajZ+ajZ+njqGokKKhjJqhjJqijpWfjJKajpedkZqejpGZiYybho2f - iZGekZefkpmhlp2flZullJ6nlqGlkJuhjJeah42ZhoyXgoeVf4SfkJWfkJWfkJWejpSZho6Sf4iW - gIadh4yeiJKeiJKai5Cai5CXjIiajoullJ6mlZ+hi5KXgomOeniNeXeRen+XgIaahImahImfh4Ke - hoCXgoSWgIOUe3eVfXiVf4Kdh4mjkJmrl6GqlJ6okp2lg4eaeX2UeXWSeHSRen+VfoOdgoibgIed - gIOafoCZf4OfhomljZKljZKnjIihhoKeg3ubgHmXe3SVeXKVd22SdGqaenSjg32vjY6vjY6rjoen - i4OmhoKff3uigIKmhIani4eliISigHilg3qqjIysjo6wjI6qhoimhHiigHSefXKffnOee3mif32r - h3urh3uohHmmgnehfXChfXChe3ebd3KidWmoe2+vgHmwgnqvg3eugnWqg3uviICyiH6vhnuvf3Kr - e26leWiofWurg3Ovh3evg3KugnCqe2eoemWuf3evgHiuh3+viICwh4Cwh4Cwh32uhHqrfm+ugHKs - gG2rf2urf3Cvg3SugHuyhH+3iYK2iICziHSsgm6neWKrfWWvh3m2jX+2ko23lI67kYu2jIaUgIeR - foSOf4eRgomVg5aaiJuejZqejZqZiZGVho2XhI2ah5Cdh5umkKWllaejlKajlJuai5KZhombiIye - kp6flJ+elaKelaKhl6Wjmqejl6ahlaOijpeijpeekp6lmaWrnrKrnrKnnaOelJqejpSbjJGjkJmi - jpedkZqZjZaXjZGakJSflZmmm5+oobCmnq6hl5+flp6umaqvmqujmZ+bkZeah42ZhoyVh5KUhpGa - hoiXg4aUhpGbjZmekp6dkZ2dkJSWiY2Zi5SbjZaelKWjmaqfl6ielqefmaWjnaihlZ6Wi5SVhoiX - iIuViI6WiZCXjJWajpefjp6ejZ2bi5qXh5aWiZCWiZCdiJSijZmilqWhlaOijZmijZmhjJqlkJ6i - kZ6ikZ6okZ6ljZqXi5GZjJKZiY6ai5CbiJGdiZKZjZabkJmbkJuflJ+olKWqlaaikqWdjZ+ijZmX - g46XgIaVfoOai5KdjZWfiZGdh46SfYKQen+Wf4Sdhoueh46hiZGhiY6dhouaiIeZh4ahjJemkZ2e - h46UfYSLcnOQd3iVe3+Zf4ObhoabhoaeiI2eiI2dhpCag42XfXiVenWSeXiXfn2ei5GjkJanlJen - lJewiYymf4KafX2VeHiRdXqQdHmafX+df4KegIOdf4KbgImjiJGojZSmi5Glh4eniYmnh4OmhoKd - gHuafnmVeXSQdG+ZfnqfhICsjo6vkZGsjo6sjo6rjpGni42niYmmiIiokIenjoajgG6ee2mjg4Cr - i4isi4yriYusiH2ohHmmgHKhe22jd2+hdG2mfnCogHOohnWohnWlf26he2qddWied2mjd2ileGmr - fnKwg3eyhnewhHWqh3eui3qyiH6vhnuwg3evgnWofWmqfmqogHCshHSuhniuhnireGKndF6nenOs - f3ivhn2wh360i4KziYC2iXqvg3SoemWqe2eofXCjeGurfWq0hnO0h3+3iYK3i36zh3qvgGmqe2So - dV+uemSwg3q7jYS2lJW6l5m/lY67kYuNe3iNe3iNfoCUhIeZiJWdjJmekJufkZ2bjJSXiJCVhouZ - iY6ekJ6jlaOjlaOhkqGijJSahIyXgomahIybi5Wbi5WdjpehkpuhlKailaelmaemmqill56hlJqf - lKKlmaern6uqnqqmmZqhlJWfkJeejpadkpmelJqdlJudlJuekpubkJmflp6lm6Omnq6mnq6imaam - naqvoaqsnqelnZ+fl5qhlJeekZWhkp6ekJufjJCah4uUiJGViZKZlJealZmejIiZh4OXiYeekI2e - lZ+hl6KilqKjl6Omnaqmnaqhl5+Ui5KUhIeUhIeShJCUhpGai52ikqWnkp6ijZmfiZGfiZGUh4uW - iY2ZiZujlKanl5+hkZmeiYyahoiai5KdjZWhkJ+ikaGqlp2ijpWXhIuZhoyZg4ubho2ahIyZg4uX - jJeXjJeXiZWdjpqjkqKikaGlmquhlqelkZeZhoyVfoOVfoOVgouah5Cdh4mahIeRfX2Qe3uZf4Of - homhho6ih5Chh4uehIiahISfiYmhi42ijI6ahn6NeXKJcG+NdHOVeXudgIOfhoehh4ifjJKhjZSh - kJqbi5WZg4CSfXqJdW6Qe3SRhIiWiY2ijJSmkJeskIyliISehoCZgHuVd22OcGeWdXeffn+fg4ad - gIOeg4mhhoyljIeji4alhIKnh4SuiIOsh4Klg3iigHWaf3SXfXKWenedgH2ni5CukZavkJevkJeu - kJqylJ6vlZmyl5u0mpuvlZasi36de2+deHOjfnmmhoOoiIauiIOrhoCnhHSffW2ac2WWb2KZd2ei - f2+og2+og2+qfm2jeGeeb2KfcGOZc2ibdWqfd22qgHeshHSqgnKogHOrg3Wof3Wrgni0hHSwgHCu - emeqd2Omem6ugnWuh3uuh3uqeFuhb1Ohc2GneWesf3qyhH+yh4S0iYe3iX2yhHiweWSrdF+hdWSf - dGOneGiygnKzg3i3h3u2h3Kyg26wfmGsel2sc1+udGGvgn24i4a3jZG/lZnFlZTBkZCQhIONgoCM - gH+RhoSXiZKbjZaekqGbkJ6hjZadiZKWiJGXiZKZjZahlZ6fkqWbjqGdiZCZhoyWgIuZg42Zhomb - iIyZiZGbjJSfi5aolJ+lmaWonaijmZ+elJqflKKlmaemmqimmqiml6GjlZ6flZuflZudlp2blZue - kqGekqGdlqKfmaWhmaimnq6on6yqoa6onq+sorOvo6+soayooqilnqWhl5+elZ2hmZ6hmZ6llZqe - jpSUjI6RiYyWjpSakpeekJCZi4uXiYmbjY2akZ6elaKflKKlmaenna6jmaqfmZ+UjZSQhIOOg4KN - foOSg4iWhpChkJqmlp6ejpafjJKfjJKWiY2ViIyZi5SfkZqjlJafkJKfi4uZhISZhombiIyeiZWl - kJuhlJeekZWZg4CXgn+Vf4SXgoeXgoyWgIuShoyShoyah5Cei5SdjJafjpmjmqWimaOilJ2ekJmX - hoeSgIKWhIabiYudh4SahIKQeniQeniZfYKihouhi42dh4mag4iZgoeahISeiIijiYiiiIeWfnWJ - cmmIb3COdXeafYelh5Glh46ihIyei46jkJSikpehkZaiiImZf4CLd2+MeHCJen2QgIObhpCjjZem - iYyliIuiiIyZf4OReG2Mc2iVdXKaenebh4CeiYOdh4meiIuhh4ifhoelgoCnhIOwi4iuiIanhn2j - gnmefXCbem6WdHKdeninjJKwlZuzlZ2wkpqzlZ20lp6wlZGylpK3nZuwlpWwi4amgHufemuhe22h - fnmjgHumg4Kqh4anhHSffW2bd2ORbVqSbl2adWSifnOlgHWqfXCmeW2fdGOZbl2Sb2OWc2edcmWh - dWmne22rf3CofWerf2mqfmqugm60hHevf3KueF6lb1afc2Soe22qgnSshHeoemOhc1yeaVOmcFqn - eGiwgHCwh36yiH+0iXWyh3OzgmmqeWGmdV2iclqhcmSqem2yhH+2iIOzh3Czh3Cwf2evfmWvemuq - dWevgn24i4a0jIu6kZC+jo27jIuRhIuNgIeQfYOZhoyXjJWdkZqbkaKZjp+fjpuaiZaRhIuViI6e - jZehkJqbjZmWiJSUh4uRhIiVgoaVgoaXhoeUgoOWf4eeh46ejpajlJunmaernauhl6KdlJ6flKKj - l6almaemmqinmqymmaummqinm6qinaGfmp6hlaGflJ+bmaeem6qimaannquqoa6qoa6qo6+qo6+y - pauzpqyrpa6noaqfm6eemqahmqael6OjlZ6ekJmdjZCbjI6bjpWhlJqelZ2WjZWZiY6XiI2XiZWb - jZmfjpullKGqmqyomaublaGVjpqSh4OQhICQe3mUf32XhIujkJafmp6ZlJehlJqhlJqUi4mOhoSb - iIyijpKikpeejpSfi4udiIiahIeZg4abhpCljpmhkZSdjZCagH+Xfn2WgH6Vf32Uf3+Sfn6Ren+R - en+Vf4SbhoubiJGhjZajlaGomqail56akJaWfX6WfX6Vg3+aiISeiIudh4mWgnuSfniWf4ShiY6h - jI6ahoiagISXfoKahIShi4uojpKli46WgnuOenSLcG2QdXKbfoioi5Whho6fhI2fi4umkZGlkZWm - kpamkZSbh4mVenWNc26JdHKOeXeXfYOih42hi4uijIyijIyZg4OVeneNc2+Sd2+ZfXWfh4KljIei - iImjiYufhoedg4SdgH2hhICsi46zkZWojIeliIOognieeG6ScG+UcnClhpCsjZeukZGukZGylZq0 - l52zlZWzlZWwmpqwmpq0joyuiIaie2ebdWGZeG2ffnOjfnuqhIKnfnSmfXOfe2WSb1qRaFOUalWZ - cGiedW2leGuleGufdGGab1yWa1aUaVSUaVSXbVeidF+oemWoeF2oeF2reWiwfm2zg3Wvf3Kre1qe - b06hc1yqe2Sqfm2ugnCue2ilc1+jblWibVSjc1uqeWG0h36yhHuwhG60iHKwgmquf2iseWWreGSo - d2WndWSvgnq3iYK0jHmvh3SwgHCufm6sf26rfm2wg366jIe2kIu0jomziYCziYCRg4yShI2WgIiZ - g4ubi5edjJmajaGajaGhjJeahpGSgoyVhI6Zi5SajJWdh5GahI6XhIiSf4OLf36Lf36XgIaZgoed - goujiJGfkZqhkpujlaOjlaOflJ+ekp6fkZqhkpulmaemmqimnaqroq+rn66onaumm6Khlp2ekJme - kJmfl6ehmaimmaunmqyqoa6qoa6upbKqoa6vpq6vpq6rpbCooq6ml6ajlaOim6Wim6WnmqGll56h - lJqdkJaekJmhkpufmaWZkp6djZWXiJCbiI6fjJKdjZWhkZmol6esm6uml6afkZ+ZjI2WiYuZhH6Q - e3WShISbjY2blZuhmqGnlqGnlqGZjpCQhoeZiZGdjZWekZedkJaeiI2dh4ybho2Zg4uih5CnjJWo - kZmnkJedh4ydh4yXgoeWgIaafoCUeHqVfXiUe3eSfYKVf4SXgoedh4yii5emjpull56bjpWXfoKV - e3+Qgn2UhoChi5WeiJKei46ZhomXgIaii5CfiZGeiJCjhoidf4Kfg4amiYyrkJmnjJWahIyQeoKV - eXmWenqbgIehhoyii5CfiI2biYiikI6lkI2ijYuhjpCbiYubf3+UeHiRdHeOcnSQdHebf4Kli4yo - jpCmjI2fhoeWen2RdXiQdHCXe3ijiYurkZKojo2mjIumiIuihIejh4Kfg36ihoaukZG0lJGvjoys - h4KifXiWdW2ObmWfe36rh4mrkZWulJewlJmwlJmzkZWzkZWvkpe2mZ64l5WsjImng3eeem6VdGiX - d2qfe3Ojf3emfnCiem2heWeUbVuSaFCRZ0+WaVedb12idGKhc2GmeGOhc16Xa06UaEqXZ0+ebVWh - c1ymeGGnd1yoeF2meGOoemWvg3SsgHKhe1ubd1aec2KmemmsgHKsgHKugG+oe2qmdF6hb1qmdF6u - e2WyhnSzh3Wvg2+whHCugnCsgG+re3Cre3CreGureGune2qvg3K0iHmyhnezh3qvg3esg3mrgniy - iIK4joi3jou0jIiygHmwf3iShomUh4uXgoyXgoydh46eiJCekqGajp2bjZmajJeVh5CVh5CWi5SV - iZKZhJCVgIyRfoKQfYCOf4KSg4aZg4udh46biJGdiZKZi5SekJmfkZ+ekJ6ejZefjpmjkJmijpej - laGrnaiqoa6on6ynna6mm6yml6GfkZqdjZWdjZWhkaOmlqillaimlqqmmaunmqyvn7Kvn7KopbCq - prKupbKnnquolZ6lkZqjl6Gjl6Gilp+flJ2llZ2jlJujlZ6omqOlm6ielaKhkpuajJWZi5SajJWZ - jZabkJmjl6ammqionaummqiel56VjpWXfoKVe3+Vg4SbiYuflJ2mmqOrmqWmlZ+akJSRh4uXi5GX - i5Gdl5mdl5mbjJGai5CUh42ViI6ahI6jjZeikpqjlJuhkJ2fjpuhiZuii52XgoeRe4CXg4OXg4OU - f4KXg4aUgoCVg4KXiJCfkJehkZmejpabhoiWgIOUfoObhoudjJmjkp+mjpaii5KfiI2ii5CdiZCd - iZCjh4yfg4iahIyhi5KnkZuijJaZgI2Ue4idf4eegIidh4mhi42hiY6fiI2ijIyjjY2mjIunjYyh - jIyijY2dgIaXe4CUd3mUd3mNc2+SeHSni4erjouoi42jhoiaeHWXdXOVeXmZfX2mjJCwlpqvlZas - kpSriYumhIalh4eegICliIiskJCylZWukZGvi3+qhnqffW2WdGSfgHeniH6ukZSukZSylJawkpWy - jZK0kJWzkZe2lJqzlpuvkpezjYiog36heWubdGeadGmdd2ulemefdWKhdV2ab1eaaFOWZE+UY0ya - aVGhb1eicFimcFqoc1yicFabalCZaU+eblSmdGOreWild2KmeGOld1+qe2Swg3eugHSofmOlel+d - dGqheG6sgn+rgH6wgHWufnOqe2moemiqemqwgHCyhne2iXq3iXqzhneugnOrf3Cqfm+rf3Crfm2q - fWuoeWuygnSyiH+0i4K2iIO3iYS0h36wg3qyg3q8jYS4i4O6jIS0hHSsfW2Vho2ZiZGah5CXhI2a - h5Cah5CeiZWeiZWejZ2ZiJeZi5SXiZKZhJCXg46VgouVgouRfoKRfoKXgoydh5GdiJSfi5aZi5SX - iZKdhpKfiJWii5qii5qhjJeijZmmjZqmjZqllaerm66snqqqm6ennqiimaOjlZ6fkZqhjZahjZah - kpuilJ2ikqWikqWmlKenlaiumaqwm6yupa+so66rn6uqnqqnl52ikpeilKKllqWelZ+hl6Kol6Kj - kp2jlaOrnaurnrCmmaullKOfjp6hkJ2hkJ2ekJuhkp6lmaWmmqanmq6om6+qoauhl6KVhI6RgIua - hIyhi5KelZ2lm6OqnqehlZ6fkJKWh4mbjI6ejpGnmqGll56ejpSai5CXhIuZhoydiZKfjJWhkJ2i - kZ6nl6qmlqinlaijkaWbiIyWg4eXhIibiIybiYuaiImXgoKZg4OXiIudjZChjZGfjJChhoyhhoya - g4ihiY6fjpumlaKrlJ6nkJqliZCjiI6ah4uZhomei46ah4uahIyfiZGnkZmhi5KZgomWf4eag4id - houdiIieiYmeiI2hi5Cmi5GojZSnjJKmi5GijIyjjY2hhImegoeZg4ORe3uReXONdW+if36riIeq - iIylg4ebenKXd26bf3qihoCoi5KwkpqvlZmwlpqsi4yqiImliYabgH2hh4amjIuwlJawlJa0kY6s - iYelfW+bdGeZeXWff3uojIyskJCylJSylJSzkI6zkI6ykJa2lJq3mZ6ylJmujI2riYusf3OleGuf - dGGhdWKmemSjeGKecliablWeaFSXYk6UZE2XaFCeclihdFuodFWseFindVufblSbalOhb1ereGuv - e2+qem2neGqleGmnemuvgnWyhHirfWWrfWWieW+le3Kug4Csgn+yfm2uemmoemWneWSrfnKyhHi0 - jYa4kYm6kIe0i4K2iXqugnOsgGisgGiqf2uqf2uqe3Owgnm2iIO7jYi3jo24kI64i4Kzhn2ugnC4 - jHq3jYO3jYO2iHevgnCbh5Kbh5KZiJWWhpKVhI6VhI6WgJWdh5uXiJqVhpeXh5SWhpKbg5mdhJqa - hI6Zg42XhIuWg4meiZefi5mdjpqekJuajZSXi5GXhIuah42hjZadiZKhkJ+hkJ+hkJ+ikaGmlaKo - l6Wml6allqWml6ajlaOilqWdkZ+fkpmdkJaekZWekZWfkJehkZmjkp+llKGmlaKsm6isoa+vo7Ks - nqeqm6WikpWbjI6jjpqlkJubkJuekp6nkp6nkp6hlKaom66om7KqnbOqmqyllaejl6ajl6aekp6e - kp6fmaWlnqqqmqyomauuoaeom6KhkpuZi5SbjJSdjZWekp6lmaWsm6anlqGjjo6diIiaiImjkZKq - maOqmaOmkZGbh4edhouag4ibjJSejpalkJurlqKqnbCrnrKqm6qilKKfiZShi5WhjZaijpefjJWX - hI2SfXqUfnubh4efi4uhjZafjJWfiJefiJeeg4mdgoiei5GlkZeqkZ6okJ2ijI6dh4mXg4aahoia - h4uZhombh4mfi42jjpGfi42ahIeXgoShi5WnkZujkJSfjJChi5CljpSmjpmqkp2rkJaih42jiI6j - iI6liZKih5CeiI2Vf4SVgnuVgnuhg4irjZKrjo6hhISef3ObfXCihoani4ujjZKokpe0lp60lp6r - jZKoi5CjiIShhoKih4OnjIiukpu0maKzlJuvkJerg4KddXSWdXeaeXqfgoSqjI6vkZasjpSyjZCz - jpGvjY6ykJGyjZKzjpSyjImwi4isg3mmfXOieF+hd16leFyhdFibb1Sbb1SdbVCZaU2XblGZb1Of - c2Kjd2Wnel6qfWGod1ymdFqmb1umb1undGWyfm+qem2oeWumem6qfnKsg3mrgnirf2usgG2rfm+u - gHKrgnmrgnmyg3CsfmuoeF+oeF+qfm+whHWykY62lZK8lpG3kYy0i4Kwh36uf2qsfmmofWmofWmn - fWmug2+yhH24i4O3jYe4joi0h3WugG+sfW2zg3OyhH24i4O6jHq3iXiZi5aajJeXjJqSh5WSgo6U - g5CVhJSWhpWUhpGUhpGUhIyUhIyahpGeiZWZiJWWhpKZho6diZKfkZ2fkZ2bkJubkJuZiY6VhouU - hImWh4ybi5WejZehlaOflKKhkp6ekJuljpmqlJ6llJ6llJ6imaGimaGilqWekqGakZmZkJefkJWe - jpSejZehkJqjkp+jkp+nlqOrmqeqna+uobOwoquqm6WjlJabjI6hi5KjjZWbjpWekZemkJemkJeh - kqGllqWnna+nna+qm6Wml6Glm6ijmqeimaahl6Welqafl6ejlqqqnbCwoq6un6unmaejlaOekJ6e - kJ6jlaGomqawm6qrlqWnkJeii5KeiJCmkJermqqqmainlZadi4ybh4mfi42ijpWei5GjkJmsmaKr - nrCsn7KrlqKnkp6liZKmi5Sqkp+qkp+jjpqahpGWf4SUfYKeiIihi4uljZeii5Wfi5afi5ahh4uZ - f4Obh4mjjpGnkJeokZmijIyfiYmbf3+egoKehIObgoCeiI2dh4yfiYmijIyahISXgoKeh46slZ2r - lZ2jjZWmkJKokpWnkJeulp6vkZmjho2ihImihImih5Cih5CeiJKbhpCeiIuXgoShhImrjpSskpSl - i4yhhH2fg3uni5CskJWqjpWskZezlZ22l5+qjpWnjJKmiI2lh4ymiYmni4uukJezlZ2wlJmylZqs - iYSffXiad26beG+igIKujI2zlJ6ykp2wjpCujI2ujYuvjoyyjIu0jo2zjI6viIuvh4Oqgn6lf3Cj - fm+ieGKhd2Gicleicleiclqfb1efdF6jeGKnenKqfXSrfWirfWiufVuoeFamdV2ldFyjdWGqe2er - fWqsfmuoeWuqem2ofXCqfnKrfnKugHSqe2eqe2eugHKzhnewg3Ksf26od1qlc1aleGurfnKyjIe2 - kIu7ko66kY23hn+2hH62g3KvfWureWisemmnfWSqf2euhH62jIa7jYS4i4K3g3KseWimd2eoeWmq - e3OzhHu3h3e3h3eVh5KZi5aWiZ2ViJuWhpWWhpWUhpGShJCSgoyUg42UhImWh4ybi5qdjJuZiZua - i52ejJ+ejJ+bkJudkZ2dkpaZjpKWh4ySg4iVf4ebho2fjJWjkJmimqqfl6efkpmekZeejpSllZqo - lKKrlqWmmqajl6Ojl6OhlaGhl6KelZ+ekp6ekp6fkZ+hkqGjkp+llKGlm6ijmqemlqirm66snqyo - mqihkZaejpSljpamkJefkJKhkZSokZaljZKijZmlkJunnqumnaqlm6ilm6immaummauim6ehmqaf - lKKhlaOnlqaunayunrKsnbCnlainlaillqKilJ+qkp+wmaarmqenlqOljpafiZGfiZSnkZuolqqr - mayilp+ajpeejpaikpqnkZuhi5WhkJqrmqWqnqqonairlZ+nkZuljJmnjpuqlJ6okp2ikJGdi4yX - fn2Xfn2ihoajh4eljZWnkJeijZmhjJeli4mbgoCdg4enjZGmjpaokZmljpGijI6jgoOjgoOlg4Sn - hoehjIydiIiehIahh4ibg36bg36eh46rlJurl56nlJqmjpSnkJWojZaylp+wkpqoi5KihoadgICe - g4mfhIubhJGeh5Shho6eg4yhg4uniZGskJKni42ih4Kih4KrjZeukJqylJuylJu0maKzl6GskpSs - kpSniYylh4mlh4mmiIusjZevkJqzlZq0lpuvjoijg32heG6ddGqbfoCniYywkZu0lZ+wkI2ri4ir - iIaqh4Srh4mqhoiuiIerhoSuhoKrg3+ogHCnf2+oemOneWKmdFqmdFqndGGreGSqemqufm6ugHiw - g3qzhnevgnOwf2eremKrelqldFSleFyoe1+sfmmvgGuzenKvd26odWeodWeoeWmre2une2ine2io - fXCugnWvg3KsgG+ye1+mcFWhc1yjdV6wg3u6jIS+kpK+kpK+iX23g3e6hHi3gnWyemiveGWoemWo - emWuf3e3iH+4jHq0iHezf2muemSmdF6mdF6meGWoemiyg263iHOWgo2diJSZjJ+ajaGaiZaVhJGR - g4yMfoeRfYiUf4uXh5GejZefkKKejqGdkKKdkKKmkaKijZ6hiZmii5qbjpWXi5GWh4yVhouXgoeZ - g4ieiJKjjZeflKKflKKfkpadkJShjZajkJmolKKqlaOilqWlmaeimaahl6Wmlqinl6qnm6qjl6af - maWblaGllqWllqWll6qll6qnl66oma+umaWqlaGfkJeikpqnkZumkJqdkpSdkpSjkJahjZShjZGi - jpKilZmmmZ2mmqajl6Oomqiqm6qmnaqjmqehlaOekqGnlqGsm6ammayll6umlqqqmq6nl6qnl6qq - m6eun6ummqahlaGolZ6jkJmhkpunmaKmlaWol6eilJ+hkp6llqKnmaWsl6OjjpqikZ6unaqvnqiq - maOmkJeljpajkJmlkZqrlJurlJuijZCeiYyag4iag4ihiY6jjJGnlJ2mkpuikpqhkZmijImdh4Sd - iIunkpWolJ+mkZ2okZunkJqjhouihImfiI2ii5CmkJeijJSfiYyfiYybhoieiIumiJWylKGwmaGu - lp6qkJSojpKmjparlJuwlZunjJKdgHuZfXiSfX2WgICVgIOZhIebhImdhoufhIumi5GojpKli46j - jJGjjJGojJ2wlKWzlqWzlqW3m6e2mqawm56rlpmoi42lh4mohoSmg4KmjJCojpKzkJm3lJ23kpWu - iYyognqie3SfgoSlh4msjpSvkZasjImqiYeviICqg3umfn2je3qog4Cngn+rhH2uh3+whHiugnWv - fWSsemKod1yndVuleWWqfmqsgHKvg3SyiH+ziYC6jH+2iHuyg26uf2qwe1urd1asel2zgGOvgnCy - hHO0gHKreGmjc1iiclemdFyod16mc12reGKsemewfmqyf26yf26wfmindV+jdFOfcE+oenK3iH+/ - jo3FlJLBjIK7h323g3Szf3C6g2uveWKoeF+remKvgG60hnO0jHm0jHm0hnCrfWiremKnd16wfmqz - gG22hnW2hnWVgIydiJSbjJ6bjJ6bh5KXg46SfoyRfYuQf4mRgIuZi5aekJujlaOjlaOflJ+flJ+h - lZ6dkZqfjJWfjJWekZeZjJKXhIuVgoiWhIaXhoeXiJCdjZWhkJqhkJqhjZabiJGhi5WljpmilJ2j - lZ6jl6Gilp+ilqWlmaeil6qjmauooq6lnqqjl6aflKKmlKehjqKikaGllKOjlKaikqWqlp+nlJ2d - kpmhlp2llqKllqKimaGimaGmlZ+hkJqdkJSdkJSfkJWllZqflJ2hlZ6hlaGilqKmmauom66lm6ie - laKilqKlmaWrmqqrmqqvma6vma6omayrm6+un66voa+mmZ+jlp2mlZ+llJ6hlaOmmqiol6Wjkp+l - kJ6mkZ+qlaaumaqwm6emkZ2ikZ6unaqznqyumaeskZqojZaljpaljpaqlJmnkZaeiI2bhouZg42a - hI6hiZamjpumlZ+llJ6mkpulkZqii5Cdhouii5KokZmsl6aumaerlKGqkp+sjpalh46hi5Kljpar - lZ+qlJ6mkJWijJGfiYyfiYyliZWrkJuzlZ+0lqGskpanjZGnkJWslZqslpumkJWmg4KffXuUeXSQ - dXCWe3idgn6Zg4Cdh4SiiIyli46ijJGhi5CljZWljZWojJqukZ+zlqW0l6aymaawl6Wvl52ulpus - jo6jhoafg4OZfX2fg4aliIuojJGwlJmwlJarjpGqg4ajfX+bfn6lh4eujI2vjY6sjIioiISnhn2j - gnmie3KhenClf3qjfnmnfnSqgHergnirgnivfmOse2Goe2KnemGsfW2vf2+vf3K0hHe2jIO3jYS4 - jH+2iX22h3Kuf2qzfWGye1+wfmO0gme2gni7h324iHiufm6jdFOZakmda1Ghb1WqclqyeWGvfmWz - gmmwhG6yhm+zgG2vfWmveV+oc1qseW+4hHq8jYbDlIy+iX+6hnu2hnW0hHS3hG6yf2mzel+udVus - f3C2iHm0jH6yiXuwgm+uf22vfWereWOwgnmwgnm3jIm8kY6Wgo2diJSbh5WahpSXg46Wgo2Rg5GR - g5GUhpGZi5abjJ6ejqGhkqGjlaOllJ6mlZ+hlZ6ekpuajZSZjJKei5Sei5SXhIuVgoiWgIaZg4ia - h5CfjJWbjpKZjJCbiI6Zhoyah42hjZSekZehlJqjlZ6ilJ2hlZ6ilp+llaerm66qnqylmaeikqWi - kqWjlaGekJuekZefkpmfkJefkJeikpqjlJumlp6llZ2ilJ+fkZ2jlaOnmaeml6OilJ+bkZeakJae - jpafkJedjpedjpedjpejlZ6jlKaqmqylmquil6iol6eol6eml6OnmaWsm6urmqqunrKvn7OuobOu - obOnmqGilZullaemlqill6ummayllqWfkZ+hkJqhkJqulqiwmauymqqmjp6mlaKqmaaun66omqio - kZuljZelkZemkpmmlJWhjpCjiI6fhIuXhI2diZKeiZWhjJellqKnmaWvl6Kqkp2ljZeii5Wljpmo - kp2wm6eynaiym6aym6asjpmniZSikZuol6KwmaiwmaivmZ6nkZahiZGfiJCliZKrkJmylqKzl6Or - kJmmi5SqjJSsjpaolZ6lkZqniYmihISXe3iUeHSVdXKaeneZfnOfhHmliIimiYmniZGmiJCmi5Sm - i5SliZCnjJKskZqwlZ6ylqKvlJ+wlpewlpeuko2liYSfhICWe3ideniif32jh4yvkpewkpqsjpas - hIOnf36hgH6ign+nh4SujYuujI2riYuriIajgH6mfnCed2mheWuje26mem6sgHSshHeuhnirfWin - eWSreWireWiqem2ufnCygnSygnSwiHi3jn64kH+3jn67h3iyfm+zgGizgGivfWu4hnS2iIC8joe/ - kH24iXesel2fblGaaFWea1imdF6wfmisfmmsfmmsfmmvgGuvgG6wgm+vf3KoeWuvfne2hH28jYy/ - kI67jX62iHm0h3q2iHu2h3S0hnOygGiufWSyg3u4iYKziX+yiH6vhHCqf2uufm6zg3O2h4m6i428 - kpnBlp2Wh4yVhouUgImSf4iRfoSSf4aVhJSZiJeZh5qbiZ2dkZ2dkZ2bjZullqWml6OjlaGhkp6e - kJuajJWWiJGfi5meiZeah5CZho6ah4ufjJCfjY6ejI2UiY2SiIyWhIOWhIOUgoObiYubjpWekZef - kZ2ilJ+ilJ+hkp6llqKnmaWnl6qfkKKdkKKekaOekJuXiZWbi5WejZefkJWhkZankp6qlaGnl5+l - lZ2hlJqfkpmllJ6nlqGnlqOmlaKflZudkpmejpafkJedjpeekJmhkp6jlaGnl6urm6+mmauom66y - na6vmqujlaGjlaGol6eunayunay0o7OwpbCvo6+sl6afi5mjlKarm66smq6rmaynlqOikZ6ikpqh - kZmolKWvmquwmauqkqWnkp6qlaGnmaellqWolKKlkJ6nkZmokpqolZmei46fhomfhomag4udho2b - iI6ei5GhkJqol6Kvl6KslZ+njY6jiYuejI2jkZKsl6iznq+0n6u0n6uvl5+qkpqllqKqm6e0n7C2 - obK0naeokZujjJafiJKliZKrkJmulqGwmaOrkZWli46njY6njY6ijpWjkJaljpGdh4mXe3eWenWX - c26Xc26ZeXWlhICliIini4uui5SriJGmiYymiYyfhoSbgoCjhIylho2ni5CrjpSojpCskpSqlY6l - kImlg3qffnWbenKefXSif4ivjJWqjZKskJWriIOhfnmaeHWffXqmgH+rhoSmiI2oi5Crh4mmgoSi - f32ee3mZdWmWc2efeGinf2+qhHWrhnesgmuofmiqem2re26sfW2vf2+vf3KsfW+ogHOyiXu6jIS/ - kYm7iYK6iIC2g2+yf2uufnO2hnq2jYm6kY27jnq2iXWyf2SjcleXalafcl2ofWmugm6yg3Cwgm+u - fm6ufm6ugnOwhHWygnewgHWyhHu3iYC3koa6lYi+kX23i3e3h3m0hHe2h3S3iHW0iHSzh3OzhoC3 - iYSviH2viH2whG6ugmuvgnW2iHu4iYy8jZC+lJ3Cl6GZiJKXh5GZg4uVf4eSfX+UfoCZg42eiJKX - i5GXi5GbjZadjpedjp2ml6ailqKilqKekpuajpebjZaXiZKaiZSZiJKeiZWfi5afkZqhkpuhi5Kd - h46ZiJKXh5GXg4aVgIOUf4KXg4aah4uei46ejpafkJeikpqhkZmjlKaomauolq6ejKObi5qdjJui - jZmdiJSei5Sei5ShjZSlkZeolZ6olZ6mlp6ikpqbkZWelJellKGnlqOol6eol6enm6WlmaKolKKn - kqGfkZqhkpuikpejlJmhlaOonaunm6esoayunayqmaillKGjkp+llKOqmairnauzpbO3prayobCr - lKGii5elkqaql6usm6iqmaaomZ6hkZaikpqejpalkJ6qlaOumaenkqGmkJWnkZajkp+mlaKrmqen - lqOmkpunlJ2nlJqfjJKdh4ybhouZg4iZg4idiIuhjI6ijpWnlJqqlJmokpemjI2hh4idiIiijY2o - kZ6vl6Wwn6yyoa6znaWrlZ2ll56mmZ+wn6yzoq+3n6qslZ+miJCdf4edgoinjJKnjJWwlZ6qkJGj - iYuhhoCfhH+fhIuliZCijIyfiYmegn6afnqaeneZeXWZeXelhIKljZKnkJWukJKqjI6miYyni42j - h4Kbf3qffXiffXihgH6jg4CfgoKniYmqjYmmiYalgoCif36dfnSbfXOffoKoh4uskJWskJWrjH+m - h3qdeW2deW2ifXqmgH6jgoOmhIaqhIOmgH+hfn2ffXuefXSZeG+heG6qgHeviYSyjIe0iHmugnOu - f22vgG6vgGuuf2qrf2mrf2mqeXKwf3izh3q8kIO7jIS8jYa6i3Wuf2que2qzgG+0i4S7kYu4kIKz - i32whminfV+ablWdcFeoenWzhH+zhnewg3Svf3KufnCqfnKwhHi2hnq3h3uyhnmzh3qzjIC4kYbB - kIS8jIC6h3OzgG2wgHC3h3e3h3e3h3ewh362jIOuhHquhHque2WqeGKsfmuzhHK4iInBkJG/lJXB - lZaaiZSaiZSfg4ibf4SWe4Kaf4ahjJeijZmZjJKWiZCah42fjJKikaGqmaimlqijlKabkpqZkJeV - i5GVi5GWjI2bkZKhkJ+nlqaom66jlqifiZGahIyShI2Uho6ahoaZhISXg4OZhISfi42hjI6fjJKh - jZShlJqhlJqlkqamlKemkZ+hjJqfiZGfiZGijJahi5WejpabjJSjkJmolZ6ml6GjlZ6omZ6ikpej - lZ6llp+ol6KmlZ+qmqyrm66onaurn66umaqqlaanlqallKOolZuolZuXjpahl5+nm6qqnqysm6ur - mqqllKGikZ6ikKOjkaWqmqywobO0pberm66ilJ+ajJehjqKjkaWumaWumaWqmp+ikpehlJefkpaj - kJmnlJ2rlqKnkp6mkJWljpSfjpmjkp2olKWvmqunkJ+okaGfkZGekJCdjoyWiIaWi4mViYifiYem - kI2nkJerlJurlZqokpejjY2eiIifiYyijI6mjpmrlJ6vmqa0n6uym6aslqGolZumkpmsm6ayoau6 - oa6slKGsi4ybenuWfYCehIiihIysjpamjIuiiIejgnmjgnmjg4ClhIKlh4mlh4mihoafg4Oeg3+d - gn6df4Klh4mvlJ2wlZ6ukpmrkJaniZGoi5KsiH+lgHifeW6feW6ZdWqbeG2ie3SrhH2uiIOog36l - goChfn2efXCaeW2XdXOhfnuriYuujI2ujYemhn+ie3Cdd2uXdXCZd3KfeW+mf3Wrfneoe3Soenum - eHmmeXKhdG2hdG+ugHu0jIy4kJC2joeviIC0gG+zf26uf2iuf2irfWiuf2qofmqme2iqgnSyiXuz - joa3kom/joO2hnqwfWmwfWm2iIO8jom+loy4kYe3jHiug2+meGOjdWGnfniwh4C4hHWyfm+uemes - eWWufnOygnewgnm2h360iHmyhne0h3q/kYTFkIbBjIK4hnS0gnC2gni4hHq6hnu7h322iXW4jHi2 - i3evhHCrel+nd1yreGSzf2u2hIDDkY2+lI28koybjZmXiZWahI6Zg42dhpCdhpCdjJuejZ2Uh42O - goiRhIiXi46ikKOmlKenkaqjjaabkZeZjpWXi5GajZSVkJGblpeilq+mmrOrmqemlaKfhIufhIub - iJGbiJGbhouahImXiYmWiIiei5GjkJajkJahjZSbkJudkZ2lkKGlkKGjjJmdhpKZiY6ejpSnkp6o - lJ+ikZ6hkJ2ml6Oomqammqinm6qunrCunrComqiml6aimaOhl6KomauunrCsnbCrm6+lmaWjl6Os - nqqrnaillJ6hkJqah5CfjJWilKKqm6qrnairnainlqGfjpmejZqfjpuikKOvnbCwoq6snqqmkpue - i5Sii5KmjpajlJunl5+jlJmhkZafkJWikpejkJamkpmnlJ2olZ6njJKliZCeiZWijZmnkJ2vl6Wo - maGjlJunkpWmkZShjZGbiIydjZKai5Cfi4ulkJCnkJWqkpeqkperlJmii5ChiY6ehIifhomhhoyl - iZCulaK2naqwl6WulaKqjZKrjpSokpq0nqa2n6qul6Kni4OZfXWUeXKVenOdf3+miIiihoaihoaf - hH+dgn2jgoOlg4SmhIamhIaeiIieiIihh4ahh4ang4uuiZGzl6Ozl6O0lqGwkp2qi5Kmh46rhoOn - gn+hf3SaeW6acmiddGqbeG2hfXKrhoCrhoCqgoCje3qdenmbeXiXd26aeXCnf36vh4aoiIKignuh - enCZc2mUcGWWc2iac2OddWWjeGmmemuleHOjd3KmdW+jc22bc22ieXOsh4S2kI26kIm0i4SshHeu - hnivg3Svg3SogG6ogG6ugnCne2qoe2+vgnWwi4a3kYy8jom6jIe2hnWwgHCzhoC7jYi/lY64joi6 - jH23iXqugnOrf3Cwgnm3iH+2h2+yg2uue2WvfWevgG6wgm+vf3Kzg3WuhnWshHSwg3u8joe/kYS8 - joK6iXu4iHq2hnqwgHW2gnW6hnmyg260hnC3i3KwhGuvfWKsel+reGSwfWmzg3jCkYbBkYm+joed - jJmaiZaXh5aWhpWXg46bh5KZi5aXiZWVgouQfYaVf4edh46ijZ6nkqOllqKjlaGbkZWZjpKai5KX - iJCbkJmjl6Gnn7Onn7OrmqehkJ2ahImbhouWjJKbkZejjZehi5WhiZGhiZGdjJadjJadjpqajJee - kJ6ekJ6fkZ+fkZ+iiZafh5SZiJWikZ6ol6enlqallaeikqWjl6anm6qunrCsna+zobawnrOmmaui - laejl6Ommqaqm6qsnqyvoa+rnauqnaOsn6awn6qyoaurlKGeh5SRgoeVhoudiJankqGfmaWhmqau - laKiiZahi5KfiZGhjJevmqaznqywm6qljpadh46dh4yijJGhkZmmlp6jlpqekZWijpWmkpmokpen - kZaulp6qkpqliZKliZKjh5WmiZeokZ6okZ6rl56olZuqlJuokpqhjZGdiY2bjI6bjI6njJKmi5Gl - jZKljZKqlJaslpmrkJajiI6dh4mdh4mXgoSeiIuqjJmzlaKykqKujp6vjoysjImrjZe3maO3n6qw - maOwjI6mgoSafneWenOZfnmjiIOlh4emiIiiiIejiYiniYmqjIyni4eliISihoiliIuli4yiiImn - iYyoi42zlZ+4mqW6mqWykp2zjJSwiZGniYylh4mhhH2dgHmhenCeeG6Wc2qeenKqgn6qgn6shn6o - gnqheXWed3OZdWqWc2ibeXSffXilgHijf3eieXOXb2mXb2WVbWOWa1iZbluecmGhdGOjd2+meXKl - d3KbbmmWcGmadG2ogH+3jo22lIuwjoauhHqsg3mzhHu0hn2zhn6zhn6yjH2lf3CmeWqqfW6uh3+y - i4O6jIe6jIe6hne0gHK2h3+/kIi8kZG6jo64i362iHuwiHqvh3mvh3mvh3m0iXOziHKzhG+zhG+w - hHOyhnSwhG6ugmuofWene2WsfW+zg3W7jIO+joa8jn+7jX62hnW0hHS0gm62g2+0gG27h3O3i3m3 - i3myhm2rf2eyhne0iHmyi4O3kIi7jIu3iIediZKfjJWaiZSWhpCUho6XiZKZiZGUhIyReoeQeYaU - foOZg4ibjZafkZqjkp+llKGbkZWXjZGai5CXiI2jkp+rmqeqn7Cnna6ol6KdjJaahImdh4yekZei - lZuolZ6lkZqjjJSljZWdjZWbjJSbjpWbjpWejJ+hjqKhjqKfjaGfi5mhjJqbkJujl6Ovmquumaqn - lqOikZ6nmaernaurnrCsn7Kyo7KworCmmaufkqWolJ+rlqKsl6Ovmqasoaqjl6Gilp+nm6Wsnqys - nqyikpqVho2SfX+UfoCdg4eojpKekp6hlaGnkp6eiZWai42Vhoibho2mkJeunrKrm6+nlJqdiZCe - iJChi5KhkJqmlZ+ll5ubjpKhkZamlpunlJqqlp2slqGnkZuiiZahiJWliZWliZWmkJqqlJ6vlqOs - lKGslaKqkp+nkZGijIydh4yijJGskZqqjpeljpGmkJKulpuulpuukZGliIibhoiXgoSUfYKZgoei - hoiukZSvkZmrjZWrjY2miIioi5eylKGzl6OwlaGzkJunhJCUfoCRe36bf3umiYaqjouliYali4yq - kJGylZqylZqnjY6li4ymi5GnjJKmjJCjiY2oi5KniZGylJ64mqW0maWwlaGyi42viIumi4ejiISi - hn6hhH2je3iheXWbeXeee3mjfnmngn2rg3Org3OhfWebeGKWcmGUb16Wc2iZdWqfeXKeeHCfeGqX - cGOdal6ZZ1uSZVSUZ1Wfbl2mdGOldWineGqoeWuhcmSXcGOac2Wleni2i4i+lo63kIiwhHisgHSy - hH2zhn6wh364joa6lISviXqqeGSmdGGoenKwgnm4iYS4iYS4iH23h3u0h367jYS+kIu7jYi7h320 - gHeyhnmzh3qzh3qzh3q0iHu0iHu7i327i326jH26jH2zhG2vgGmofmWnfWSremKufWS3g3m7h327 - jX68jn+4iHivf2+zgGqvfWeve2W4hG64iYC7jIO2iXqzh3i4lIu4lIu2kpG3lJK7kI24jYuXiJCW - h46XiI2XiI2XiJCai5KZiZGVho2OeYCNeH+SfX+bhoidjJmdjJmdi56ejJ+ajo2ViYiXhIibiIyl - kJ6qlaOlmaWflJ+ljpGeiIuWg4eah4uhkZallZqilZuilZuijJaahI6Wg4mVgoiViI6WiZCbi5Wd - jJaeiZqdiJmhiZmljZ2ikZ6ol6Wsl6ilkKGjjZWhi5KqkqWulqiom66uobOwoquml6GikpqfkJel - kZeqlp2umqOsmaKrm6OomaGmlaKnlqOonaulmaediY2UgISQeniRe3mZe36ihIeikpqikpqekpuZ - jZaUiY2Ng4eWgo2fi5aml6aqm6qll5uajZGdiZChjZSmlZ+ol6KikpeejpSfjJWjkJmqmaOol6Kv - lqOokJ2ii5WjjJaijJSijJSmi5SskZqolKWsl6iwl6WvlqOmkZSijZCfiZGljpaukpmukpmqlJal - jpGslZ+wmaOukZSliIuehIaehIaagIKZf4CehoCokIuukZSqjZCojIyihoamiJWoi5eskZqskZqu - kZaojJGbgIybgIyfg4ani42ujpmvkJqoi5erjZq0maWylqKqjpWukpmrkJmqjpelh4mhg4aliI2l - iI2sjJu2laW2mqOylp+vjY6nhoehhISfg4Onhn2lg3qmgHuhe3eff3uign6mgHuog36qhn2ng3qn - fWmdc1+WalqQZFSQZVWWa1uZbl2ab16XdF6XdF6abViXalaVaFaWaVebbWKhcmeldWimd2mleWWh - dWKab2GdcmOhdWSugnC6koi2joSuhHqqgHeuhHqyiH6rh3qyjYC3kX2zjXmvfmOmdVufdGGmemeu - fXW0g3u4iH23h3uzh3q4jH+7jIO6i4K0hHewgHOugmuwhG6yiXmwiHi0h3q6jH++joe/kIi8joa7 - jYS3iHWsfmusfmeqe2Sue2WsemSzf3O4hHi2hni6iXu7iHe4hnS2gHKyfW6weWeze2m4h4O7iYa3 - jou7ko64lJa4lJa8l5q+mZu/lpK4kIwADQEAAAMAAAABAQAAAAEBAAMAAAABAQAAAAECAAMAAAAD - AAM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OTwAAABIA - AAEaZXNFUwAAABIAAAEsZmlGSQAAABAAAAE+cHRQVAAAABgAAAFOemhUVwAAAA4AAAFmamFKUAAA - AA4AAAF0bmxOTAAAABYAAAGCZGVERQAAABAAAAGYa29LUgAAAAwAAAGoZW5VUwAAABIAAAG0c3ZT - RQAAABAAAAHGZGFESwAAABwAAAHWemhDTgAAAAwAAAHyAEwAQwBEACAAYwBvAGwAbwByAGkAyQBj - AHIAYQBuACAA4AAgAGMAcgBpAHMAdABhAHUAeAAgAGwAaQBxAHUAaQBkAGUAcwAgAGMAbwB1AGwA - ZQB1AHIARgBhAHIAZwBlAC0ATABDAEQATABDAEQAIABjAG8AbABvAHIAVgDkAHIAaQAtAEwAQwBE - AEwAQwBEACAAYwBvAGwAbwByAGkAZABvX2mCcm2yZnaYb3k6VmgwqzDpMPwAIABMAEMARABLAGwA - ZQB1AHIAZQBuAC0ATABDAEQARgBhAHIAYgAtAEwAQwBEzuy37AAgAEwAQwBEAEMAbwBsAG8AcgAg - AEwAQwBEAEYA5AByAGcALQBMAEMARABMAEMARAAtAGYAYQByAHYAZQBzAGsA5gByAG1faYJyACAA - TABDAEQAAG1tb2QAAAAAAAAGEAAAnFYAAAAAv/h7gAAAAAAAAAAAAAAAAAAAAAB0ZXh0AAAAAENv - cHlyaWdodCBBcHBsZSBDb21wdXRlciwgSW5jLiwgMjAwNQAAAAA= -item7.X-ABRELATEDNAMES:assistant -item7.X-ABLabel:_$!!$_ -item8.X-ABRELATEDNAMES;type=pref:spouse -item8.X-ABLabel:_$!!$_ -item9.X-ABRELATEDNAMES:father -item9.X-ABLabel:_$!!$_ -item10.X-ABRELATEDNAMES:Custom relation -item10.X-ABLabel:CustomRelLabel -X-ABUID:3D833EB4-BFFC-41F0-9193-96695487C45E\:ABPerson -END:VCARD diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4/SingleCompany.vcf --- a/qtmobility/tests/auto/qversit/testdata/AAB4/SingleCompany.vcf Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -BEGIN:VCARD -VERSION:3.0 -N:;;;; -FN:Apple Computer Inc. -ORG:Apple Computer Inc.; -TEL;type=MAIN;type=pref:1-800-MY-APPLE -item1.ADR;type=WORK;type=pref:;;1 Infinite Loop;Cupertino;CA;95014;United States -item1.X-ABADR:us -item2.URL;type=pref:http\://www.apple.com -item2.X-ABLabel:_$!!$_ -PHOTO;BASE64: - TU0AKgAAAyiAP+BQOCQWDQeEQmFQuGQ2HQ+IRGJROKRWLReMRmNRuOR2PR+QSGRSOPPyTOZ1OxjM - 1pLZfsVtuBxySaTWHvF5vVkNBqqlZrlTrFbqqfthvOKbUmlQN4PN6L1jMugrep1NZLtguR0uul12 - RvZ8PhhstoVWhWZbr5jsywPivW+PzFxqhZUCz3ehz9st+Z3C/Rp6vd8MFks60Whis1ovd8vm/4+L - ul2O5YrpgYehMBkM2mvTIZ+LOJzOm0ZVgM5qtmcvbQa1+696PZ76vXv2Eu14PJmNNsNNtN7JO7a0 - yncF2u9423Wx+TPx0ZNlNFqrthslar5iddiLxispmtRsc93Pl9PuB7Xyvt3vJ575vVBlrVesOrsF - ZLxgy5i2NoN1xnMxjHOWiLVmWaRrFcW5eroXDMKooS6FyV5cF8zRmmubpwG4cJyJWaT6wjB0HKIX - MLHUdx4QGhbcHk7hlREvEYQeW8GQZGUbxioTtHIdB1uHFTVl4YkXxzGccSNIsjyUvDCGdALlubAx - rSXJEqypK8ilyYRjq1HzXs+2seHWWBcl/LErSTNM0TWtBcGCYzjnjFR/vEY5nGnG01TPPc9KFCZf - NEdM5oGaBrm27U+TZPtFUYYhmGi9NBoEX61xJRNL0WtBWFsXijKRSSB0RTNR0ZTBbvqcrJVAgb61 - NV1SPkYZ1OPVaBNNV9S1JGRZl4YTxVqf9eGFXFiTVBJem8cZz2BIRlTzXNoWLGcIu+bFgTsacyTN - XVuWjWDsTjUBsG6cLqGTaV0LxBhkulJ8VRY3ZsRDbt02hEl4uU1zXnAcpz21euAQgur+Vmd7ltW+ - GA29ha0F0YZkTmaRsG5eeGXpi9GSlOb1nnYWFXrTZeYLUDUGzj+MRknZq0jSSnHrNxjZPi0qvrE8 - U2AgVknOVZaF1mUzp8XL3ZwgramgaxtZ/btHGjfOiIKtsLaVRhbmAYtw6ehacHrqVFwZhxkSlQpt - 2qtRmUtReYHOdZ26yiLAnwaOJvqVZal2+5g5VLrYnu9LauatrxXi7RWwVvF445t3FcXxnG8dx/Ic - jyXJ8pyvLIIgIAANAQAAAwAAAAEAMAAAAQEAAwAAAAEAMAAAAQIAAwAAAAMAAAPKAQMAAwAAAAEA - BQAAAQYAAwAAAAEAAgAAAREABAAAAAEAAAAIARUAAwAAAAEAAwAAARYABAAAAAEAAADjARcABAAA - AAEAAAMgARoABQAAAAEAAAPQARsABQAAAAEAAAPYARwAAwAAAAEAAQAAASgAAwAAAAEAAgAAAAAA - AAAIAAgACAAK/IAAACcQAAr8gAAAJxA= -X-ABShowAs:COMPANY -X-ABUID:C5C50103-C86C-40BB-8864-909A089EB390\:ABPerson -END:VCARD diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4/SingleExtensive.vcf --- a/qtmobility/tests/auto/qversit/testdata/AAB4/SingleExtensive.vcf Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3567 +0,0 @@ -BEGIN:VCARD -VERSION:3.0 -N:Lastname;Firstname;;; -FN:Firstname Lastname -ORG:Company; -EMAIL;type=INTERNET;type=WORK;type=pref:work@email -item1.EMAIL;type=INTERNET:other email -item1.X-ABLabel:_$!!$_ -item2.EMAIL;type=INTERNET:custom@email -item2.X-ABLabel:custom email label -TEL;type=WORK;type=pref:work phone -TEL;type=WORK:work phone 2 -TEL;type=CELL:mobile phone -TEL;type=WORK;type=FAX:work fax -item3.TEL:other phone -item3.X-ABLabel:_$!!$_ -item4.TEL:custom phone -item4.X-ABLabel:custom label -item5.ADR;type=WORK;type=pref:;;Work Address;Work City;Work State;Work ZIP;Work Country -item5.X-ABADR:us -X-AIM;type=WORK;type=pref:workaim -X-JABBER;type=HOME;type=pref:Jabber -X-JABBER;type=WORK:workjabber -item6.X-MSN;type=pref:othermsn -item6.X-ABLabel:_$!!$_ -X-YAHOO;type=HOME;type=pref:homeyahoo -X-ICQ;type=WORK;type=pref:workicq -PHOTO;BASE64: - TU0AKgADAAhIMyBIMyBIMidELiNDKxc/KBVAKRY/KBVALBZGMRpIMx5KNSBKNylOOixPOSdIMiFD - LxhEMBlEKxlFLBo6LBY5KxU5JQ47Jw87KhU+LRdELh9IMiNNNSlQOSxVPi5ROytPOS1POS1PODFT - OzRKQDA9MyRHKRZJKxdJMyJOOCZKOCVFMiBAMyVAMyVAMydFOCtMQDVHPDFFNyU/MSA8LyFGOSpP - QC5WRzRQPzBJOSo8MiM4Lh8/LyFVRDReTEVlU0xnT0FkTT9hT0NjUUVhSTxdRjlJNSBDLxpHNy5T - QTlYQzJMNydUOSVVOiZRNyNOMyBKLBpIKhhDLxpFMRxGMRxFMBtOPihQQCpMOSZHNCJMNSJWPytW - QTNWQTNTPjFKNypMMiJNMyNTQTNcSjxiT0ZfTURYRS9MOSRUQC9bRzVbSjhNPStHOCY/MB9ENR5K - PCRYQThXQDdROy5POSxGOiVEOCNKOy1TQzRNPS9AMSREMCRHMydELyBJNCVDLxhFMRpJNyZEMSFF - MSRALSA5LB48LyFGOjhOQT9VSUBYTURTQzdNPTFJOylDNCM/Mx83Kxc6LyhEOTFRRj5XTERYRz5J - OTBBMSNMOyxOOi9OOi9KMy9MNDBENSxFNy1IODJMOzVMRTxTTENUSj5GPTFGNylGNylAOSo8NCZG - LytROjVQPjVTQDhNQDxOQT1OPixJOihFNC9JOTNJPz5KQD9YRUlfTFBcSUxFMzU9JBpGLCJINzdR - Pz9aRkhcSEpOOzlFMjBIOTpaSUpeTElcSUdROTRNNDBDLSJDLSJ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hoSNe3qNcm6WeneVgoibiI6ZiY6UhImRg4ONf3+RgoSZiYydjJmfjpujlJua - i5KZh4iSgIKQeX6OeH2Re4OZg4udjZWdjZWdho2Se4OVf3+WgICWgnuZhH6deniZd3SUenmVe3qR - emuQeWqRd2uSeG2Jc2eHcGSGamOJbmeUdG6ZeXOWdWqUc2iQdWqVem+eeXSdeHOae3KhgnidiYOd - iYOfh36ehn2ignuignuef3Kef3KZeXOZeXOaeniefnufg36dgHunf22bdGKUaViOZFSSamSbc22d - eHWdeHWadWKXc1+XcmibdWumfXSle3OieXCjenKhdGWjd2ileW2ofXCsgGileWGfblufbluhcFih - cFieblaeblaZa1qhc2Gjd2WnemmqfWumeWijdWGhc16jeGmqfm+og3KrhnSreWWhb1yhaUqXYUON - foONfoONen6QfYCMf4COgoOVgIyXg46Vh5CQgouQfYCNen6MfoeRg4yRhIuQg4mOhIuQhoyNgIKR - hIaQi46SjZGZjZmajpqXjZ6WjJ2bjJ6djZ+QhoyMgoiSg4iQgIaQhI2ViZKdkKOhlKehlquhlquh - lKqdkKaajJebjZmbkpqZkJeVkJSQi46RiJWQh5SOiY2Qi46UjI6XkJKel6Oel6Obkp+akZ6XkZqZ - kpuhmaiimqqblqaXkqKdlKGlm6ienqyenqyhkp6Rg46NgIeRhIuSf4OWg4eVhouVhouWh46UhIyL - f4iJfoeGenmJfn2MeX2Nen6LgISJf4ONfoORgoeNgouRho6UjZaVjpeZjZmbkJuelZ+hl6Kilp+a - jpefjpubi5eZjZmhlaGelKWakKGSiI6UiZCXi5GajZSZi5SZi5SbjJSZiZGai5KWh46WjJCVi46S - iZGQh46ShomShomUho6XiZKfkpaajZGdiY2ei46Wg4eQfYCNgIeRhIuOgoaOgoaQgn+Qgn+Vf3+X - goKUfoOZg4iekJuajJeUgIeNeoCSe4CXgIaZhomhjZGil56il56fiYmXgoKWd3CWd3CXhIuei5Ga - i5CSg4iSfX2SfX2RfX+diIubiZ2di56ijpWah42af4aXfYORe4aOeYOOgoaViIyZ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foKZg4iZg4ieg3ua - f3ibeXSaeHOOd2KLc16MaFWJZVONbl6UdGSZdWmdeW2ZeXOWd3CZeGuZeGuRd2uVem+We3ebgHuf - f3mignuign6ff3uihoKjh4OniYmmiIihhoCeg36dgHuafnmhenOjfXWad2uQbWKQZ0+OZU6QZFSW - alqab1eZblaZb1ybcl6adF+Zc16ec1+ZblubcFufdF6bdWqlfnOnf3Knf3Kme2ifdWKhc16fcl2d - a0+ZaEyUZ1Wfcl+leHOmeXSofWmid2OicFafblSdcmGne2qqgHqvhn+zg3iufnOneFeic1OOg46M - gIyQgIaNfoOMeX+MeX+Me4aRgIuSg4uWh46Rh42Rh42SiZSVjJaViZeViZeSkJSQjZGRjI2OiYuQ - i4yUjpCZkpualJ2ZjZaXjJWWjZeWjZeViZWSh5KNgouNgouai5CdjZKajJWbjZabjZubjZuajZSS - hoyUh4uViIyXjZSWjJKSjpqVkZ2fkZqfkZqakJaakJahl5+mnaWhmaqZkaKWjpSSi5CVjpedlp+l - laeikqWakJSWjJCXlZmhnqKloayemqaekZWViIyQgo2Rg46LhomNiIyQh5GQh5GVh5KWiJSWi5SZ - jZaSiZGQh46WiJGXiZKQgo2LfYiIfoKGe3+LfoKNgISQh5SRiJWWjZebkp2VlaKZmaaflaaflaam - mqijl6ajlaGilJ+ZkaGXkJ+ZjqGbkaOdkKaekaebkp2ZkJqakqKelqaakqKWjp6WkJaUjZSajY6Z - jI2UhoaOgICRh42WjJKdlKGimaaelKWXjZ6ah42RfoSOen2WgoSOhoSOhoSWh4ybjJGfi5abh5Kd - iZCbiI6bkZedkpmbiYuSgIKIfoKQhomajZSekZejlpqll5umkJCijIyXgoSSfX+Zg4udh46biYuO - fX6IbmqDaWWLbniWeYOWh4yai5CZhIeRfX+WfX6WfX6ReHmReHmReHeUenmWgICeiIidiIidiIia - gIKVe32UeXWSeHSWenqdgICehIafhoehh4aehIOfg3ubf3iVe2mQd2SLalSIaFGOcGOSdGebenKd - e3ObfXOXeW+WeG6Vd22QbmuScG6Sc22XeHKZenCZenCXe3ibf3uihoijh4mmiYyni42niH6jhHqf - hHWZfm+de3Chf3Sfe2+XdGiXbVWRZ0+OZFGQZVOXbliacFubd2Wjfm2iemiheWeic2Web2KacF2b - cl6ZcGefd22jf3OlgHSnf3KlfW+meGGidF2bbleXalSWalqabl2eeG2ie3CoemOfclufblSebVOh - b1yod2Osf3qwg36uf3esfnWmdVijc1aQh5GQh5GShoyQg4mRfX+Qe36RhIiXi46ajJWajJWaiZmb - i5qWjZeVjJaUi5WWjZeXkZqXkZqVi46SiIyUiJGbkJmfkqWdkKKZjZmXjJeajJWbjZaSiZaSiZaU - iJaajp2ekZeekZebjJGai5CSjJWUjZaQiI2MhImUiY2XjZGZjZmXjJeXkKGblKWflKKekqGakJae - lJqjmqemnaqilqKZjZmUiY2Ng4eQiZKalJ2hkpudjpeWjJKZjpWel6GnoaqloaqhnaadkpmXjZSR - iJCNhIyMiI6Oi5GSiZaSiZaSjZ2WkaGhlKafkqWWkaGSjZ2Wi5aWi5aUiY2QhomOgoaMf4OJen2J - en2JfomMgIyRjJCVkJSdlqKel6OdlaWdlaWil6qlmqylmaeekqGdjZ+bjJ6ZjqOelKiflKKflKKd - lJudlJuWkaGblqadlqKalJ+bkpqakZmei46fjJCahoaUf3+XiI2fkJWhl6KimaOZlZ6RjZaViIyR - hIiOf4SRgoeVhouWh4yZiY6djZKhkZmdjZWijpediZKVjpqblaGhkpuWiJGRhIiWiY2hlJqilZui - lZmll5ujl5aekpGVf4SQen+Of4eVho2Vg4SOfX6Nc2iEal+Da2eMdG+Vhoiai42ahIeSfX+Ve32W - fX6Ve32UenuUen6SeX2Vf4KbhoieiI2fiY6bhouahImahIKVf32VfXiXf3qahIKdh4SfhoSfhoSj - iIOfhH+bgHWWe3CRcl+La1qSdGeae26igIKigIKif36aeHeWd3OWd3OSb2eUcGiUbmOXcmeUdGSU - dGSVc26beXSbf3uni4eqjI6niYyuhoKnf3uef3WdfnSjfnulf32mgnmfe3Oac2GQ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Zb1ybbm2idHOje2uogHCnfWSXblabZEqeZ02WaVWZa1eablWdcFeib1qea1aXaEeOXz+JZE6W - cFqje26rg3WsfW2md2eialCdZUyUiJGZjZaajp2ajp2XjpaWjZWdkKKfkqWilJ+ekJuXjJWXjJWZ - jJ6ViJqZjqGelKailJ+ekJuah5CdiZKajpqajpqdkpaZjpKWjJKSiI6QhomQhomRiZmVjZ2ajaGe - kaWbkp+WjZqUiJGRho6Qh5GRiJKXiZKZi5SZkJqflqGlmaWhlaGdlKGbkp+ekpuajpefkZqhkpuh - lZ6flJ2ZjpCVi4yQg4SNgIKQg4SbjpCXjJWajpebkJmflJ2hlaGjl6Ohl5+elZ2alJ2alJ2ZkJ2b - kp+Zkp6alJ+alqKbl6Ofna+in7KfmqqalaWSjY6RjI2RjI2UjpCakpeXkJWViZWRhpGOgoOLfn+J - goKNhoaSi42WjpGalZmdl5ublaGdlqKfl6efl6emmqammqailJ2djpeWjZqXjpubkJ6ajp2ViZKS - h5CXh5GejZehlaOilqWhl5+dlJubkJmajpeXhIuUgIeRh42XjZSbjZaZi5SSg4aNfoCUfnuWgH6X - goKfiYmVh4eVh4ediY2ijpKfjJKei5GbjI6XiIuUhIyWh46WiZCZjJKUiZCVi5GfkZqilJ2mkpms - mZ+mkpmhjZSXf3mQeHKQfXeXhH6Zg4OXgoKQeX6LdHmNeH2NeH2NeIKUfoiahIyahIydh4yeiI2a - hISahISUgIeVgoiUfYKVfoObhouhi5CfkJWejpSmkJKjjZCbhoiRe36Wenebf3udh4eeiIijiISj - iIShhoKdgn6hfXSZdW2bfXOfgHeliZCmi5GjiICbgHmad2uUcGWScmWUc2eScF6Na1qQbl6ObV2Q - al+Xcmeee2ulgnKsh4SuiIashnumf3Wfe3Cfe3ClgoCqh4arh3qjf3Oie3Cmf3SlgHWlgHWffWqh - fmumf3Wmf3Wog36sh4KrgH6lenilemedc1+UcFuSb1qXa1udcF+ec2ene2+mfWKddFqaZUqZZEmZ - aFebalqabViabVibalWZaFOWZ02UZEqNYkeUaE2bdGelfW+qfWunemmjblWbZ06WkJuZkp6Zjp+Z - jp+ekqGekqGdkKOajaGXjpmWjZedjJaejZeXjJqbkJ6fl6efl6edjpqbjZmVho2ZiZGXjJWbkJmZ - lJeVkJSSi42NhoiRg4CRg4CRh42Vi5GZjp+dkqOWkJmQiZKQgouRg4yOhpCNhI6Vh5CajJWdlJui - maGmnaehl6KekJufkZ2ekJubjZmXjpaZkJeel56fmZ+dlZedlZeWiY2ViIybjpWfkpmakZmZkJee - jZehkJqjlZ6ilJ2flJ2hlZ6jmqeimaabkaKdkqOWkaGZlKOdl6einayin7Kin7KbmqWRkJqVhouW - h4yWkJaZkpmblZ6WkJmZjJ6ViJqUi5WQh5GSiI6UiZCWjJKakJabkZWhlpqekqGekqGflqGflqGe - mqOhnaailp+ekpuZkpuZkpuXjpaSiZGVho2Sg4uZhoydiZChkqGomqijmqKdlJujlJadjZCXgoyV - f4mXi46ajZGdkJGXi4yRgoSQgIOZgoedhoueiJCljpabjpKViIyjkJanlJqlkZefjJKfjJCXhIiU - foCVf4KRgoSSg4aOf4KNfoCXiJCai5KijpWolZunlJqhjZSZhIKXg4CXhIiZhomVh4eUhoaVgoiU - gIeShISRg4ONeHiNeHiVfoadho2liZCliZCiiImiiImZhomVgoaSfoCQe36UfYKag4ihiY6ljZKo - lJaolJadiIuOen2Rd3KUeXSZf4CbgoOjhoalh4emhoKhgH2ffnWbenKigHWmhHmmi5anjJemi3+f - hHmjd26bb2eZc2iWcGWQa12RbV6SamGRaV+SbWKWcGWaeW2jgnWuh3+shn6qiH2lg3ijfXWfeXKn - gn+qhIKrh36rh36ognirhHqqhn2ohHulf3CmgHKngHWmf3SmgHungn2qgoCmfn2ofW6id2ibclWR - aEyXZ1Sda1iab1yfdGGld2Kld2KfaUiZY0OWaVOabVabblqbblqaaFWaaFWXaFCVZU6VZU6UZE2Z - aluic2OmeG+oenKreVyjclWajaGbjqKZlKWalaaelqeblKWdkqOakKGWkJmWkJmfjpufjpudjpql - lqKll6qjlqihkZabjJGWiIiajIyXjpmXjpmUkZWRjpKNhoaNhoaMgH+NgoCVg4SbiYuZi5abjZmW - iY2OgoaOe4KNeoCMfYSOf4eQhoyXjZSelZ+jmqWfm6WdmaKekJubjZmXjpmWjZeXjJWdkZqemqah - naijmqWhl6KdlJ6dlJ6blaGblaGZjZaZjZadjZKfkJWhkp6ekJuflqOlm6imm6ymm6ydlp+blZ6d - laWdlaWflqOon6ysn7KnmqyXlZmOjJCWiZCajZSSkp+Skp+akZuXjpmZjp+Zjp+SkJ+UkaGZkpuZ - kpuakJaakJadkZqflJ2bkaKZjp+ekp6hlaGbl6GdmaKhlaGflJ+fkZ2ekJufkJWai5CbhIyZgomO - gH6Vh4SZjZunm6qenaebmqWfkpaajZGah42ah42bjpWdkJadjZCfkJKXiYmUhoaXiZWilJ+jlaOe - kJ6akZmVjJShlJqjlp2mkZ2lkJujjZWeiJCZh4iWhIaRf3uOfXmUenmSeXiJfn2QhIOZjJCekZWd - kJSdkJSdiIudiIuhiZadhpKXi5GViI6diZKhjZaijpWbiI6Qe3SLd2+Rf4CaiImlkZqmkpumjpSe - h4yXhoeUgoORe3mNeHWQeniVf32bh4mjjpGokpWnkZSli4yXfn+McmqLcGmRdXKWenehf4Cnhoeo - iIKlhH6ifnOdeW6denWjgHulh4ymiI2qhH+og36lgHSdeW2dd2ueeG2XdWWRb1+Oa1+Sb2OXc2SZ - dGWbenKffnWmgH6rhoOui4iqh4SohHueenKhe3elf3qogICrg4OnhHSqh3emh3qmh3qrgnirgnir - hHqlfnSiem2je26lfnejfXWlfWqmfmufd1SddFGfblufblubblqidF+ld1+ld1+jc1OhcFCXbVee - c12bb1GZbU+dZ1ObZVGWbVOZb1WebVefblihb1emdFyjdWGld2KqeF2ndVufjaGikKOelKaelKab - lKOZkaGZkp6blaGekJmekJmfjpuejZqfkZ+nmaejmaqhlqedkJSajZGZjJCajZGWjpSWjpSWkZWU - jpKRh4uMgoaIgIOIgIORfXqWgn+ShoyUh42QgIaLe4CLdXqLdXqNen6QfYCNg4eXjZGhlJqnmqGh - l5+ZkJeXjZSWjJKWi5SXjJWajpehlZ6ina6ina6lmqyil6qhmaifl6edlqKZkp6ajZSZjJKWjJCb - kZWelZ+dlJ6fkKOmlqqlnayimqqblpqVkJSdjpqhkp6blZ6mn6iroq+imaadkJaWiZCWjZWimaGa - l6eVkqKVjpeWkJmZkJ2dlKGWkaGalaWel6GblZ6alZmdl5uflKKilqWdkKKZjJ6akZ6flqOflaah - lqedlp+dlp+hkp6fkZ2hkZaZiY6hiY6dhouVhouOf4SUi5emnaqlnayjm6ufkZqbjZaWjJKVi5Gd - kZqflJ2hlp2elJqajo2ZjYyXkZeel56jmqedlKGdkZ2dkZ2jlJmmlpuqlaGmkZ2jjZeijJabjI6X - iIuZhISVgICQe3mLd3SId3ONe3iSg4iZiY6ai42djZCZhoybiI6fjJWei5Sii5Keh46RgI2djJmo - kZ6jjJmZgHqMdG6IdHKUf32fkJemlp6olJahjI6Xg4ORfX2OeXeLdXOQdHCXe3iZh4ajkZCnlZam - lJWnjYybgoCUdG6NbmiSc22Wd3CfgoSihIeihoChhH+fgHebfXOafnefg3ujh4eliIiliICihn6h - hnieg3WignuignuffW2Vc2OWamKabmWadGqeeG6denWhfnmmgH+sh4aujYmnh4Omg36ffXieem6j - f3OmgHuog36mhHinhnmoh3qnhnmohHurh36sh4KqhH+ifmOfe2GjenCieW+mfmuiemihd16fdV2h - dGOhdGOdcmGfdGOdd12adFufdFyjeF+adF+Zc16dbk6dbk6faUyhak2iclqmdV2mdF6mdF6meGGn - eWKleWOjeGKqeF+qeF+djZ+fkKKelqablKOVkJ+Ujp6ZkJ2dlKGdkpmdkpmdkpmdkpmikqWnl6qi - laedkKKblJmakpeekZebjpWZjI2Uh4iWjJKUiZCRhIuNgIeHenuHenuOe3WVgnuUgIeUgIeQfYON - eoCNd3uNd3uMenuQfn+Ngn6ViYabkZehlp2jlpqekZWVjZCSi42ZiY6ai5Cdlp+im6WjobClorKh - maqelqeimaahl6WbkJmWi5SZiY6ZiY6WjpSakpeakqKZkaGXjJeekp6imaaimaaakJGUiYuXi5Ga - jZSUkp2enaemn6udlqKWiZCViI6ZkJ2jmqealaaVkKGSjJeRi5aXkZ2alJ+dlaWakqKjlZ6jlZ6f - lqGimaOilqWflKKZjZmWi5aajpqdkZ2hlaOjl6aelKWhlqehl6WdlKGhkpuekJmfkZqZi5Sai5KQ - gIiUjZmhmqanl6qnl6qhkp6djpqXjpaZkJeel6OdlqKjmqKflp6ZkZSXkJKdlp2fmZ+hmqael6Oe - lZ+flqGmkpuqlp+mmZ+ll56jkp2ejZedjZWfkJedjZKWh4yVgIONeXuLd3SMeHWXg4abh4meiYeh - jImaiImejI2fjY6fjY6hi4uhi4uSgoyZiJKllJ6hkJqehoCWfnmQdW6UeXKajIyml5eqlZWjjo6f - hoSXfn2UeXSOdG+MbWeSc22SfX2fiYmjkJamkpmukZaihouXd26JaWGObmWXd26df4KjhoijiICi - h3+hgnWdfnKafnmdgHuiiIehh4afiHuhiX2liIOmiYSri4esjIiognedd2uZc1yadF2efXSffnWh - f3eefXShfnmlgn2sjIiqiYaqhH+ifXied2med2mhfXSng3qrh3urh3usg3mrgnimgnmohHunhH+q - h4KlgGibeF+hdWeid2ilfmmhemWheWeheWefeGqfeGqbdWGbdWGZc1yXcluhcmKmd2eleWOjeGKi - dE2db0ifaUqjbU6od2Oue2iofWSofWSuf2qsfmmrfWioemWmdFyndV2XkZ2alJ+XkZqXkZqXjpuX - jpubkp2bkp2bkpqbkpqakJaakJaakqKblKOelaKakZ6ilJ2ilJ2fkJeai5KZhomXhIiViI6WiZCR - h42LgIeOgICLfX2Qgn2XiYSXhoeVg4SQeoKNeH+Md36Md36MenuOfX6SfoCZhIedjZWhkZmikpeb - jJGQiI2RiY6ZiJWfjpufl6emnq6nn6+mnq6dlqKel6OhmqOfmaKakJaWjJKWh4yXiI2SjpeZlZ6d - lp2XkZeSjJWZkpuflKKhlaOakJSSiIyRh4iVi4yWkJmXkZqdlp+ZkpuUiY2Vi46dlqKlnqqbkJuV - iZWRh4uSiIyXjpaZkJebkp2XjpmajJWekJmbjqGilaeflqGbkp2ZjpKVi46ViZKWi5SZkJ2elaKe - lKWelKWfkqailaiilqWilqWhl6Kbkp2ekZeViI6SiZSbkp2hlaOilqWflJ+ZjZmakZ6dlKGil6qe - lKailKKekJ6Wjo6akpKdlJulm6OlmaKilp+bkp+bkp+jlaGml6OlmaKjl6GikZuejZedkJSdkJSf - kpaXi46XhIuWg4mSfniOenSVf4Kbhoifi42hjI6hi42hi42ejIudi4mhhoyhhoyZg4iZg4iikpqm - lp6ijYeXg32Nem2Sf3KZh4imlJWsl5qlkJKhiIOXf3qWenOSd2+LcmeHbmOLd3CVgHqhi5KijJSq - jJSlh46Zem6LbWGIamGRc2mbenuhf4Cni4Oihn6dgnSZfnCbf3qdgHuihIejhoiliIiliIiqiYeu - jYuwjYyvjIuviXiifWuWcFqZc1yig3elhnmnhnmhf3OigHWjgnenh4Cnh4CuiYCmgnmdemqZd2ef - eW+jfXOohHmrh3uwg36vgn2lfnSngHeog4CrhoOlgGqhfWefdFybcFifd1yjel+lemenfWmne22j - eGmec2KbcF+Zc1yVb1iicF+od2WqfWuqfWuneWSjdWGhb1ejclqnemGugGewhGusgGi2hGuygGiw - fmivfWeqeVyjc1aZkJeVjJSWjJ2WjJ2ajJqbjZuekJuilJ+flJ2dkZqZjJKajZSWjZqZkJ2bkpqd - lJujl6OhlaGejpaZiZGZhomah4uVhoiVhoiSiIyJf4ORgoeUhImZjJKajZSZiJKWhpCQgIaNfoOM - fn6LfX2NeXmNeXmQe3WXg32ZiY6ejpSdjo6ShISOg4KRhoSWhpCfjpmhl6Wlm6ilmaWekp6dkZqe - kpuflqGhl6KakJGQhoeOhIiUiY2VkJ+ZlKOdlp+XkZqUiZCXjZSajpqdkZ2ZjpKSiIyZiY6bjJGb - kZebkZebkZeZjpWVi5GXjZShl6KimaOijpWXhIuUh4uWiY2akJaakJaXiJCUhIyUh42WiZCVjJaa - kZualJ2blZ6fkpaViIyQhomRh4uSi5CXkJWblZ6dlp+dkKOjlqqll6ummayimaGelZ2bkZeVi5GQ - h46VjJSXkZqblZ6dlaWakqKflaeelKallqWhkqGei5Sah5CZjI2ajY6fkpanmp6om5+ll5uVjJSV - jJSZjZubkJ6bkJ6flKKllZ2fkJedjZKai5Cei5GbiI6XhI2UgImVgoaVgoaVhoiZiYyhi5CijJGn - kZGljo6djZCai42hho6ih5CahImeiI2fkJWmlpumkZGfi4uXg4OVgICbhoumkJWqkpeokZajiYud - g4SXfXWQdW6Rd2uLcGWIbmeSeHCah4ufjJCijJGijJGagG6Mc2GIal2Nb2KaeXqlg4Smh32dfnSZ - fnCZfnCdfnSef3WlhIKlhIKjhoiniYyojIyqjY2ujYuwkI2vjYKjgneWdGSXdWWjfnurhoOqiH2n - hnqmg3CffWqjfnmog36shn6ngHmfemebd2OZcm6feHSlf32rhoOvhn+vhn+nfWmlemehfXSmgnmh - g2+fgm6jd12fc1qeclaidVqmeWinemmofWSjeF+hc16db1uZbl2XbVylc2KndWSnfWSrgGiofWun - e2qldFymdV2nd1yvfmOwgmqvgGmwgm2wgm2uf2iuf2irgGGme1yZiY6ZiY6ViZeSh5Wai56bjJ+b - kaKdkqOdkpmZjpWZiYyZiYyVjJaakZudlKGhl6WomqallqKXjZSSiI6VhouVhouUhImVhouRho6R - ho6Ui5WUi5WXjpuelaKhkaWZiZ2OgoaMf4ONg4SOhIaUf4KNeXuNfXWUg3uShomXi46bjpCRhIaM - goOOhIaSiI6XjZSflJ+hlaGhlp2ZjpWWi5aflJ+hl6WelaKhkpKajIyUiZCZjpWblKWdlaadl5uW - kZWShoeViImZjJKajZSbjJGbjJGdjpqekJuZkJeWjZWbkZWZjpKViZWZjZmhlaOhlaOlkZediZCZ - iY6fkJWfkJWbjJGWhIaRf4CUfoaahIybjJSdjZWelZ+flqGdlZqVjZKQiIuLg4aUhImZiY6WkZWa - lZmdkZ+flKKilKKllqWjl6GekpuakJaXjZSRh42QhoySiZGXjpablKOZkaGdkqOelKWil5uelJed - iIiXg4OdiIueiYyekZWmmZ2om52mmZqejIiUgn6ZhISbh4eZjJCbjpKhjZaijpeei5GZhoyag4ue - h46XhIuUgIeah4udiY2ajpqbkJufjpmikZull5milZahlJeajZGeiJCeiJCei5GdiZCfkJWjlJmm - kpajkJSbho2ahIybho2jjZWrkJmvlJ2skJKhhIedgn6We3iSeWqMc2SHaGKQcGqReHmiiImfjY6f - jY6bgm2Qd2KOcmGRdGOdenmhfn2ffnWde3OZeGude2+eg3ieg3ilgn+nhIKliIumiYynjY6qkJGu - jYuvjoyrjH+lhnmbc2mXb2Wbd3Sog4CujYmqiYaqhHCifWmfeW6lfnOngHWngHWlfWqfeGWWcGeb - dWuienqshISrh3uohHmhfWSbeF+ZdWmdeW2hfXKdeW6hcFiiclqdb1ihc1yidWSleGelel+jeV6h - cFiba1SXblSZb1Whc1yld1+qf2esgmmrf3Cqfm+nel6leFyqeVyygGOzgG2wfmqwgHCygnKvf3Sz - g3izgmmvfmWWg4mWg4mUhpSUhpSWh5mXiJqbjqGdkKKakZmZkJeZiY6XiI2WiJGbjZadlaahmaqi - lp+dkZqQhomLgISQg4mRhIuRh4uVi46ZjpWZjpWZkpublZ6fkqWjlqihjqKZh5qViImWiYuZjJKa - jZSVgoiVgoiXhoebiYuWh4yXiI2ei46VgoaQg4mRhIuOhIiVi46hlJqhlJqXkJWSi5CUjZadlp+l - lqWilKKakJSWjJCajpedkZqlmaelmaejmZ+elJqbh4mZhIedjZCdjZCakJaelJqekaOfkqWjlp2d - kJaZjJCXi46VjJaZkJqZlKOVkJ+ajpqXjJeakJadkpmelJeZjpKUhIeUhIeUh42ZjJKXjJqekqGd - kqOhlqedlZqWjpSQgIaOf4SWg4yei5SWkZWVkJSfkJehkZmbjZmfkZ2flZudkpmbkZKVi4yRgoeQ - gIaMgoiSiI6VjJSXjpaZkJqdlJ6jl5aflJKijZCdiIueiJKfiZSfjpuol6WuoaWrnqKjkY2di4ed - i3qaiHiaiImbiYudiZKhjZadjZWai5KfiYyZg4abhImdhouei5SfjJWajpebkJmjlJullZ2om5+q - naGqmp2fkJKii5CfiI2fjpuhkJ2mlp6mlp6nlJehjZGah42ah42liZCliZCrkJuukp6ukZSni42d - h4eXgoKVgHeQe3KObmKLal6McG2fg3+hjZGdiY2agHOSeWuScmWVdGibeXShfnmhfnmhfnmefnii - gnujh4KliIOliIOliIOmiYyojI6nkZGokpKrjouojIiujoSmh32he22ZdGWadGqjfXOohoOvjImv - h3Srg3Cjf2efe2Omfm6ogHCrfm+meWqbcGKXbV6ZcnKheXmoh36nhn2lfWqbdGKbcGKdcmOfc2Ki - dWShb1Ohb1OdbVWba1SbblyidGKhdV+hdV+ebVeaaVSbbU2fcFCdc1iieF2lf2uog2+rf3CofW6n - eFamd1WjeWGsgmmyh3OwhnKzhHKwgm+wgHWzg3izg3O0hHSNg4eNg4eSgo6Xh5SXiZKZi5SejZ2e - jZ2djJmZiJWah42ah42ZiJKfjpmhlqeflaabkZWUiY2Rg4CQgn+RhIiViIyVjZCWjpGZjpKZjpKa - lJqdlp2elaKflqOfkZ2ajJeVkJGVkJGekpudkZqXi5GViI6ZiZGXiJCZjI2ajY6ajZGShomMgoiM - goiRh4uUiY2akpeZkZaUjJGVjZKUjZaalJ2dkZ+bkJ6bkp2ZkJqdlJ6dlJ6il6qhlqiel6OblaGa - i5KVho2biI6ei5GXkZeel56hlKailaellp+fkZqZiYyVhoiUi5WZkJqVjZ2UjJuXjpuVjJmbkJmf - lJ2ikpqbjJSVi5GVi5GXjZSakJadlKGelaKhl6Whl6WhlJeZjJCVgIOSfoCVho2bjJSakJaWjJKX - hIubiI6Xi46bjpKfkJKfkJKXjouRiISUf4KUf4KMeX2Oe3+Qg4eUh4uZi5SekJmilZuekZebjZab - jZaZiJWbi5ejjJuqkqKmmqajl6Ofjpmbi5WdiIiahoaahIyahIyai5CdjZKWi5SXjJWai42XiIue - iI2fiY6fjpmhkJqekZefkpmmkpaqlpqomZ6snaKqm5mjlZKjjZKfiY6hjJqlkJ6qlp+qlp+rlZen - kZSeiYybh4mdiIuijZCikpqhkZmrkZCjiYiihISfgoKbf3+WenqRd2mJb2KMbWqdfXqijI6jjZCd - gnqVenOUc2iScmeZeXOff3mefnqff3udf3+ihISni42ojI6mjJCiiIyliIimiYmnjYyrkZCyjZCu - iYyvjYSnhn2le3KddGqXcGGddWWhf3enhn2shnuuh32rgmSjel2feGWlfWqqfm+ofW6meGWfcl+a - cmmheG+qg3irhHmme2ifdWKbcl6acF2dc1ihd1ydcFWbb1SablWfc1qhc16hc16hd1ybcleXaFCa - alObaEmhbU6bcl6ieGSrf3OwhHiyhHOqfWund1Ojc0+ld2SrfWqshHSvh3ezhnSvgnCwg3KvgnC2 - hnW6iXmShoyRhIuXhIuZhoyViImZjI2ajZSdkJaZjJKXi5GWiZCWiZCZiJWfjpujkqKejZ2Zi4uS - hISNgoCOg4KQhoyZjpWbkp2dlJ6ekZefkpmblJmelpullqWnmaeflqGdlJ6elZ2dlJuhlZ6ekpuX - i46ZjJCXjpmXjpmakpKZkZGajZSUh42NhouQiI2VkJGWkZKblJmXkJWZjJKWiZCWiJaXiZeWjZWW - jZWakZuakZubkp+dlKGXkKOakqadlaWakqKWiJaUhpSXgI2XgI2UjZSdlp2flaaflaaflKKajp2X - i46Uh4uWjZeZkJqUhpGUhpGVjJmbkp+bkpqflp6jlJudjZWXjJeXjJeXjJWajpealJ2blZ6flqOh - l6WjmZqbkZKWgoKSfn6Zg4ueiJCfkJWdjZKZhIeahoiZh4ibiYudjo6djo6XjIuRhoSSfn6RfX2N - eH2OeX6NfoOQgIaVho2djZWfkpmfkpmekqGbkJ6ajJWZi5SdjJaejZefkZ2ml6OejZ2djJuah5Ca - h5CZhoydiZCdiY2ei46XjJWXjJWbjJSai5Kei5Sei5SfjpmikZulkZehjZSikpWnl5qlmp6onqKq - nZ6nmpumjpadho2ZiJKhkJqmkpuqlp+rlJmnkJWeh4ybhImag4ieh4yfiY6ijJGni4eihoKhg4Od - f3+aenidfXqWenqQdHSRcHKbenufhoejiYuhhoCaf3qRd2uOdGmVdXOZeXehfnuhfnudf4KihIen - jJKrkJankZGljo6miIijhoani4eskIywkpKukJCui4ariIOrg3Wed2mbcF+ec2Kdd22ie3KqhH+w - i4augnCmemmed2Sje2mqfXCoe2+idWSidWSec2ehdWmjfXKmf3SngGehemGfdV+fdV+hc16hc16e - cFydb1uhc2Gld2SneWSld2KidVqhdFibak6ZaEyaaU+hb1WhdGioe2+ugHmwg3uyg26oemWnd1qo - eFujd2Woe2qshnCzjHe0iHSzh3OwhHOsgG+wg3S3iXqWiZCUh42XgomXgomWh4mZiYyZjpWXjZSX - jJWXjJWajp2XjJqdi56hjqKjjpqeiZWXhoeUgoONg4eWjJCflaail6ihlKehlKehlZ6flJ2hlpqh - lpqekqGhlaOfkqajlqqfl6ejm6unlqGllJ6bjJGbjJGbkp2imaOfl5qfl5qdkZqViZKUjZSSjJKX - kZeblZualZmVkJSdh5GZg42VhouWh4ySiIyRh4uWiJGZi5Sdi56biZ2WjZqSiZaaiJuaiJuSh5KN - go2UgImSf4iSh5CViZKZjZaZjZaajJWWiJGSiIyQhomZi5SZi5SOeX6Re4CShI2XiZKbkp2dlJ6f - kZqbjZaUiJSViZWakJaakJabkJuajpqbjZailJ2om52ekZKXgIaVfoOag4uhiZGikpedjZKZhomU - gISXgoeahImeiI2hi5CfjY6XhoeQgoKNf3+QeYCOeH+Oe3+RfoKRf3ubiYajlp2jlp2flqOdlKGe - lJeXjZGajY6Uh4iXi5GdkJaeiZqfi5uViZKViZKZiY6bjJGah42ZhoyXhIuXhIudiZKdiZKfjJWi - jpejjZWijJSdh5GahI6ai5ChkZailp+lmaKqnaOrnqWqkpqfiJCWf46ag5KdiJSjjpqnl52llZqn - iY6fgoebfYSfgIiehIifhomjiIOfhH+eg36dgn2bfXOZenCOenSMeHKOcnSUd3mdg4SmjI2jiH2e - g3iZe2qOcmGOcGSUdWmdeniffXqefX6oh4iojI6ukZSqjZCojI6nhoeigIKnhIOriIewkIysjIis - i3+si3+shHemfnChemWbdWGacmiddGqifXiog36siHuohHiofWmjeGSfdWKieGShc2Gfcl+ec2Kf - dGOee2ujgHCofWuleWihem+lfnOoe3OleG+lc1+lc1+lemeofmqsfmerfWWqeFusel2lcE6ZZUSb - ZE+mblimd2uufnOygoCzg4Kyf2mue2Wod16semKod2OqeGSsgG2yhnK0hnC0hnCzhnSwg3Kwg3e0 - h3qWi5SSh5CXg5GVgI6Zg4uahIyUiJGViZKWjZWWjZWbkJuZjZmdjJaejZebi5WZiJKZhoyXhIuU - h42fkpmjma6lmq+mmaull6qhl6KflqGhlJeilZmZkpmalJqbkaOil6qfmqqjnq6rlqKnkp6fkpme - kZeflqOhl6WhlaGekp6ZjZmZjZmXkZqalJ2elaKflqOZkpuQiZKWh4yUhImRhIaQg4SNgISNgISO - hIuQhoyVho2Sg4uRhIiShomXh5SXh5SRh4iLgIKOg4KViYiRh4uOhIiXi5GXi5GZiZGWh46UiZCU - iZCWh4yWh4yRen+QeX6Lfn+WiYuZkZSblJabkZeakJaViI6ViI6ZiY6bjJGhjZSdiZCfjpmikZul - lqKhkp6aiImWhIaWg4ediY2ikZuejZeZhIeVgIOVgoidiZChiZGii5KhkZaZiY6Uh4iUh4iWf4SS - e4CQfYORfoSRfoKZhomjkp2mlZ+hmqGel56jlZ6bjZaeiYmXg4OZhomdiY2ZiZGXiJCbiJGbiJGb - iJGhjZaijpWei5Gag4uag4uXhIibiIyhiZGjjJSdjZKZiY6UgISWg4eVh5CajJWilKKml6awoq6s - nqqvmaGijJSbhoiWgIOUfoadh46nkJ2nkJ2miJCegIihe3meeXeaf3qhhoCdiIKdiIKegoKdgICb - e3WVdW+IdWiLeGqNc26SeHOif36nhIOmh32ig3mafWuVeGeRcmKQcGGZeG2de3Cbf3ijh3+ni4eq - jYmrjo6qjY2nhIKlgn+og4Kog4KnhH+ohoCvjIewjYiuiHmog3Sjfm2eeWiedWuddGqfdXOnfXqs - g3quhHuvg22ne2WhdV2leWGld2SjdWOdd1+Zc1ydeGelf26mfXOnfnSmfnqogH2ugnWqfnKneWSo - emWof3eof3evf3SwgHWuf2irfWWndWSfbl2hak2hak2jb2OueW2vgHuzhH+wgm2vgGuue2GwfmOu - e2Ood16seme0gm63h3ezg3Owg3KyhHO2hnq0hHmZjZmZjZmXiZeUhpSRgoeSg4iNhoiUjI6XkJ+Z - kaGbjZudjp2ajJWbjZaXiZKWiJGbh5Kbh5KXiZWhkp6fkqajlqqqoa6mnaqhl6KimaOelJqdkpmf - kpSfkpSakZujmqWmn6uooq6qlaaolKWflqGakZuel6GhmqOhlaOdkZ+WjpSWjpSfjp6ikaGjnaah - mqObkJuSh5KQhoeQhoeRg4OOgICHeHqHeHqLe4CLe4CUeX+UeX+MeHqSfoCVhouZiY6RhoSQhIOS - hoebjpCVi46UiY2ZiYyXiIuVhoiZiYyXi4yajY6biIyah4uUf3mSfniOgICWiIibjpKekZWdjZKa - i5CWh4yWh4yZg4uahIyZiY6bjJGfjpuikZ6ikaGikaGajZGViIyUh4ibjpCekJuekJuahoaXg4OV - goaah4uZiJKejZehkpuekJmdkJafkpmhho6ZfoeQgIiRgomOf4KUhIefi5alkJunmaKllp+ijpeb - iJGQgn+Rg4Cdg4SehIadi4yaiImfhI2ih5Chi5WmkJqmkpujkJmXgoSVf4KUgn6Zh4Obh4eeiYmf - iYeXgn+SfXqUfnuNgIeViI6hkJ2nlqOsnqysnqywnaalkZqhh4aZf36OeniWgn+eiJChi5Kdhoub - hImef3WZenCZfX2egoKliIiihoaihISfgoKee3eVc26Qc2KRdGORc2eSdGiee3elgn2jiICfhH2d - gnObgHKQc12LbliZdWqhfXKegnqdgHmhg4OrjY2zkI6wjYysiYSohoCmg4Clgn+mg36nhH+siYev - jImsi36qiHulgHSifnKje26heWuecmmleG+qgHewh32yhnSsgG+ne2OofWSof3WnfnSje2ufeGie - eGOie2eje2unf2+mgHush4KyhnSrf26rfWqoemiuf3iyg3uyhHuwg3qshnCogm2ogmimf2Wsd1Gj - bkmja16udWirf3OwhHiwhG6whG6yg26yg26zgG+semmreWGyf2eyhnSyhnSzh3qzh3qzg3OygnKV - i5uUiZqXiZeUhpSOf4KSg4aVi5GelJqflaaakKGUiJGSh5CWiJGZi5SViZKWi5Sbi5edjJmbjZaf - kZqjl6Gonaanoaqlnqemmqilmaeml6OjlaGljZKljZKikpqrm6Oon6yroq+nmaKjlZ6dkZ2bkJue - lZ2elZ2hkpudjpedkJSdkJSakZuflqGjn6uhnaimkZ2ahpGZjJCZjJCWiY2RhIiIenqHeXmLfX2I - enqIeXuIeXuIeXuSg4aai42ejpGViIyUh4uWi5SajpedlJ6ZkJqekZKajY6ekZWhlJeekZWbjpKW - iY2Uh4uQe3uSfn6Vf4edh46bjpKZjJCdjZWZiZGRh42OhIuXgIadhoudkJafkpmekaOekaOmkKWl - jqOjkJmfjJWai42djZCdkZqdkZqbjYuUhoObhImii5CakJabkZeilp+flJ2jlJullZ2ijpediZKU - h4uRhIiWgoSWgoSai5KfkJeilZuhlJqajZSWiZCZhIeZhIedh4meiIuajouajouZhIeeiYyjkJmm - kpuijJSeiJCQfn+Qfn+SfoCWgoSbh4mdiIufhH2dgnqafnqWeneOenqVgICbh5KhjJemkaKvmquq - maajkp+dg4KZf36SeHOUeXSWf4SfiI2hho6hho6ign6ZeXWbfoChg4amjJCli46jiIShhoKZgnWS - e2+VemuUeWqWdWqScmeaeXCjgnmmi4ejiISmi3+ih3uhgHCZeWmdfXqign+nhIKlgn+jgH+qh4av - i5Cvi5Cwi4irhoOjgHulgn2if3qjgHuhhoKliYami3+jiH2ng3qlgHile3Wle3WjenSfd3Cje26s - hHeyhHuyhHusgG2sgG2rfnmugHusg3qqgHiqd2iseWqmemmofWuqhHWsh3iwg3KugG+qe2mrfWqv - gHizhHuuh32viH6vi3+uiX6yhnSwhHOugGSoe1+ld1+neWKsgHSvg3euhniyiXu2iH+0h360hHSv - f2+qfWGvgmWohnWvjHu0jYK4kYa4i3uyhHWUiJSRhpGOg4yMgImSg4uVho2XiZWhkp6dkZ2Wi5aV - houWh4yVh5KbjZmekJ6hkqGbkJuXjJeZiZGdjZWflqGjmqWjmqWjmqWnmaWnmaWmlqqikqajjZWi - jJSflJ2mmqOom66rnrCmnaWelZ2ajpedkZqfkJefkJefkpmdkJaakJSakJSdkpajmZ2roq+mnaqj - lJuejpaflJ+hlaGakJaVi5GUgISQfYCLe36MfX+VgIORfX+LgISUiY2bjZadjpeXiZKUho6Sh5KZ - jZmekaWekaWZlZ6VkZqdlKGelaKdlZqWjpSQhomUiY2Uh42RhIuViI6ajZSbjZaekJmbjZmUhpGR - ho6UiJGbho2ijJSilJ2hkpuajZ+ajZ+njqGokKKhjJqhjJqijpWfjJKajpedkZqejpGZiYybho2f - iZGekZefkpmhlp2flZullJ6nlqGlkJuhjJeah42ZhoyXgoeVf4SfkJWfkJWfkJWejpSZho6Sf4iW - gIadh4yeiJKeiJKai5Cai5CXjIiajoullJ6mlZ+hi5KXgomOeniNeXeRen+XgIaahImahImfh4Ke - hoCXgoSWgIOUe3eVfXiVf4Kdh4mjkJmrl6GqlJ6okp2lg4eaeX2UeXWSeHSRen+VfoOdgoibgIed - gIOafoCZf4OfhomljZKljZKnjIihhoKeg3ubgHmXe3SVeXKVd22SdGqaenSjg32vjY6vjY6rjoen - i4OmhoKff3uigIKmhIani4eliISigHilg3qqjIysjo6wjI6qhoimhHiigHSefXKffnOee3mif32r - h3urh3uohHmmgnehfXChfXChe3ebd3KidWmoe2+vgHmwgnqvg3eugnWqg3uviICyiH6vhnuvf3Kr - e26leWiofWurg3Ovh3evg3KugnCqe2eoemWuf3evgHiuh3+viICwh4Cwh4Cwh32uhHqrfm+ugHKs - gG2rf2urf3Cvg3SugHuyhH+3iYK2iICziHSsgm6neWKrfWWvh3m2jX+2ko23lI67kYu2jIaUgIeR - foSOf4eRgomVg5aaiJuejZqejZqZiZGVho2XhI2ah5Cdh5umkKWllaejlKajlJuai5KZhombiIye - kp6flJ+elaKelaKhl6Wjmqejl6ahlaOijpeijpeekp6lmaWrnrKrnrKnnaOelJqejpSbjJGjkJmi - jpedkZqZjZaXjZGakJSflZmmm5+oobCmnq6hl5+flp6umaqvmqujmZ+bkZeah42ZhoyVh5KUhpGa - hoiXg4aUhpGbjZmekp6dkZ2dkJSWiY2Zi5SbjZaelKWjmaqfl6ielqefmaWjnaihlZ6Wi5SVhoiX - iIuViI6WiZCXjJWajpefjp6ejZ2bi5qXh5aWiZCWiZCdiJSijZmilqWhlaOijZmijZmhjJqlkJ6i - kZ6ikZ6okZ6ljZqXi5GZjJKZiY6ai5CbiJGdiZKZjZabkJmbkJuflJ+olKWqlaaikqWdjZ+ijZmX - g46XgIaVfoOai5KdjZWfiZGdh46SfYKQen+Wf4Sdhoueh46hiZGhiY6dhouaiIeZh4ahjJemkZ2e - h46UfYSLcnOQd3iVe3+Zf4ObhoabhoaeiI2eiI2dhpCag42XfXiVenWSeXiXfn2ei5GjkJanlJen - lJewiYymf4KafX2VeHiRdXqQdHmafX+df4KegIOdf4KbgImjiJGojZSmi5Glh4eniYmnh4OmhoKd - gHuafnmVeXSQdG+ZfnqfhICsjo6vkZGsjo6sjo6rjpGni42niYmmiIiokIenjoajgG6ee2mjg4Cr - i4isi4yriYusiH2ohHmmgHKhe22jd2+hdG2mfnCogHOohnWohnWlf26he2qddWied2mjd2ileGmr - fnKwg3eyhnewhHWqh3eui3qyiH6vhnuwg3evgnWofWmqfmqogHCshHSuhniuhnireGKndF6nenOs - f3ivhn2wh360i4KziYC2iXqvg3SoemWqe2eofXCjeGurfWq0hnO0h3+3iYK3i36zh3qvgGmqe2So - dV+uemSwg3q7jYS2lJW6l5m/lY67kYuNe3iNe3iNfoCUhIeZiJWdjJmekJufkZ2bjJSXiJCVhouZ - iY6ekJ6jlaOjlaOhkqGijJSahIyXgomahIybi5Wbi5WdjpehkpuhlKailaelmaemmqill56hlJqf - lKKlmaern6uqnqqmmZqhlJWfkJeejpadkpmelJqdlJudlJuekpubkJmflp6lm6Omnq6mnq6imaam - naqvoaqsnqelnZ+fl5qhlJeekZWhkp6ekJufjJCah4uUiJGViZKZlJealZmejIiZh4OXiYeekI2e - lZ+hl6KilqKjl6Omnaqmnaqhl5+Ui5KUhIeUhIeShJCUhpGai52ikqWnkp6ijZmfiZGfiZGUh4uW - iY2ZiZujlKanl5+hkZmeiYyahoiai5KdjZWhkJ+ikaGqlp2ijpWXhIuZhoyZg4ubho2ahIyZg4uX - jJeXjJeXiZWdjpqjkqKikaGlmquhlqelkZeZhoyVfoOVfoOVgouah5Cdh4mahIeRfX2Qe3uZf4Of - homhho6ih5Chh4uehIiahISfiYmhi42ijI6ahn6NeXKJcG+NdHOVeXudgIOfhoehh4ifjJKhjZSh - kJqbi5WZg4CSfXqJdW6Qe3SRhIiWiY2ijJSmkJeskIyliISehoCZgHuVd22OcGeWdXeffn+fg4ad - gIOeg4mhhoyljIeji4alhIKnh4SuiIOsh4Klg3iigHWaf3SXfXKWenedgH2ni5CukZavkJevkJeu - kJqylJ6vlZmyl5u0mpuvlZasi36de2+deHOjfnmmhoOoiIauiIOrhoCnhHSffW2ac2WWb2KZd2ei - f2+og2+og2+qfm2jeGeeb2KfcGOZc2ibdWqfd22qgHeshHSqgnKogHOrg3Wof3Wrgni0hHSwgHCu - emeqd2Omem6ugnWuh3uuh3uqeFuhb1Ohc2GneWesf3qyhH+yh4S0iYe3iX2yhHiweWSrdF+hdWSf - dGOneGiygnKzg3i3h3u2h3Kyg26wfmGsel2sc1+udGGvgn24i4a3jZG/lZnFlZTBkZCQhIONgoCM - gH+RhoSXiZKbjZaekqGbkJ6hjZadiZKWiJGXiZKZjZahlZ6fkqWbjqGdiZCZhoyWgIuZg42Zhomb - iIyZiZGbjJSfi5aolJ+lmaWonaijmZ+elJqflKKlmaemmqimmqiml6GjlZ6flZuflZudlp2blZue - kqGekqGdlqKfmaWhmaimnq6on6yqoa6onq+sorOvo6+soayooqilnqWhl5+elZ2hmZ6hmZ6llZqe - jpSUjI6RiYyWjpSakpeekJCZi4uXiYmbjY2akZ6elaKflKKlmaenna6jmaqfmZ+UjZSQhIOOg4KN - foOSg4iWhpChkJqmlp6ejpafjJKfjJKWiY2ViIyZi5SfkZqjlJafkJKfi4uZhISZhombiIyeiZWl - kJuhlJeekZWZg4CXgn+Vf4SXgoeXgoyWgIuShoyShoyah5Cei5SdjJafjpmjmqWimaOilJ2ekJmX - hoeSgIKWhIabiYudh4SahIKQeniQeniZfYKihouhi42dh4mag4iZgoeahISeiIijiYiiiIeWfnWJ - cmmIb3COdXeafYelh5Glh46ihIyei46jkJSikpehkZaiiImZf4CLd2+MeHCJen2QgIObhpCjjZem - iYyliIuiiIyZf4OReG2Mc2iVdXKaenebh4CeiYOdh4meiIuhh4ifhoelgoCnhIOwi4iuiIanhn2j - gnmefXCbem6WdHKdeninjJKwlZuzlZ2wkpqzlZ20lp6wlZGylpK3nZuwlpWwi4amgHufemuhe22h - fnmjgHumg4Kqh4anhHSffW2bd2ORbVqSbl2adWSifnOlgHWqfXCmeW2fdGOZbl2Sb2OWc2edcmWh - dWmne22rf3CofWerf2mqfmqugm60hHevf3KueF6lb1afc2Soe22qgnSshHeoemOhc1yeaVOmcFqn - eGiwgHCwh36yiH+0iXWyh3OzgmmqeWGmdV2iclqhcmSqem2yhH+2iIOzh3Czh3Cwf2evfmWvemuq - dWevgn24i4a0jIu6kZC+jo27jIuRhIuNgIeQfYOZhoyXjJWdkZqbkaKZjp+fjpuaiZaRhIuViI6e - jZehkJqbjZmWiJSUh4uRhIiVgoaVgoaXhoeUgoOWf4eeh46ejpajlJunmaernauhl6KdlJ6flKKj - l6almaemmqinmqymmaummqinm6qinaGfmp6hlaGflJ+bmaeem6qimaannquqoa6qoa6qo6+qo6+y - pauzpqyrpa6noaqfm6eemqahmqael6OjlZ6ekJmdjZCbjI6bjpWhlJqelZ2WjZWZiY6XiI2XiZWb - jZmfjpullKGqmqyomaublaGVjpqSh4OQhICQe3mUf32XhIujkJafmp6ZlJehlJqhlJqUi4mOhoSb - iIyijpKikpeejpSfi4udiIiahIeZg4abhpCljpmhkZSdjZCagH+Xfn2WgH6Vf32Uf3+Sfn6Ren+R - en+Vf4SbhoubiJGhjZajlaGomqail56akJaWfX6WfX6Vg3+aiISeiIudh4mWgnuSfniWf4ShiY6h - jI6ahoiagISXfoKahIShi4uojpKli46WgnuOenSLcG2QdXKbfoioi5Whho6fhI2fi4umkZGlkZWm - kpamkZSbh4mVenWNc26JdHKOeXeXfYOih42hi4uijIyijIyZg4OVeneNc2+Sd2+ZfXWfh4KljIei - iImjiYufhoedg4SdgH2hhICsi46zkZWojIeliIOognieeG6ScG+UcnClhpCsjZeukZGukZGylZq0 - l52zlZWzlZWwmpqwmpq0joyuiIaie2ebdWGZeG2ffnOjfnuqhIKnfnSmfXOfe2WSb1qRaFOUalWZ - cGiedW2leGuleGufdGGab1yWa1aUaVSUaVSXbVeidF+oemWoeF2oeF2reWiwfm2zg3Wvf3Kre1qe - b06hc1yqe2Sqfm2ugnCue2ilc1+jblWibVSjc1uqeWG0h36yhHuwhG60iHKwgmquf2iseWWreGSo - d2WndWSvgnq3iYK0jHmvh3SwgHCufm6sf26rfm2wg366jIe2kIu0jomziYCziYCRg4yShI2WgIiZ - g4ubi5edjJmajaGajaGhjJeahpGSgoyVhI6Zi5SajJWdh5GahI6XhIiSf4OLf36Lf36XgIaZgoed - goujiJGfkZqhkpujlaOjlaOflJ+ekp6fkZqhkpulmaemmqimnaqroq+rn66onaumm6Khlp2ekJme - kJmfl6ehmaimmaunmqyqoa6qoa6upbKqoa6vpq6vpq6rpbCooq6ml6ajlaOim6Wim6WnmqGll56h - lJqdkJaekJmhkpufmaWZkp6djZWXiJCbiI6fjJKdjZWhkZmol6esm6uml6afkZ+ZjI2WiYuZhH6Q - e3WShISbjY2blZuhmqGnlqGnlqGZjpCQhoeZiZGdjZWekZedkJaeiI2dh4ybho2Zg4uih5CnjJWo - kZmnkJedh4ydh4yXgoeWgIaafoCUeHqVfXiUe3eSfYKVf4SXgoedh4yii5emjpull56bjpWXfoKV - e3+Qgn2UhoChi5WeiJKei46ZhomXgIaii5CfiZGeiJCjhoidf4Kfg4amiYyrkJmnjJWahIyQeoKV - eXmWenqbgIehhoyii5CfiI2biYiikI6lkI2ijYuhjpCbiYubf3+UeHiRdHeOcnSQdHebf4Kli4yo - jpCmjI2fhoeWen2RdXiQdHCXe3ijiYurkZKojo2mjIumiIuihIejh4Kfg36ihoaukZG0lJGvjoys - h4KifXiWdW2ObmWfe36rh4mrkZWulJewlJmwlJmzkZWzkZWvkpe2mZ64l5WsjImng3eeem6VdGiX - d2qfe3Ojf3emfnCiem2heWeUbVuSaFCRZ0+WaVedb12idGKhc2GmeGOhc16Xa06UaEqXZ0+ebVWh - c1ymeGGnd1yoeF2meGOoemWvg3SsgHKhe1ubd1aec2KmemmsgHKsgHKugG+oe2qmdF6hb1qmdF6u - e2WyhnSzh3Wvg2+whHCugnCsgG+re3Cre3CreGureGune2qvg3K0iHmyhnezh3qvg3esg3mrgniy - iIK4joi3jou0jIiygHmwf3iShomUh4uXgoyXgoydh46eiJCekqGajp2bjZmajJeVh5CVh5CWi5SV - iZKZhJCVgIyRfoKQfYCOf4KSg4aZg4udh46biJGdiZKZi5SekJmfkZ+ekJ6ejZefjpmjkJmijpej - laGrnaiqoa6on6ynna6mm6yml6GfkZqdjZWdjZWhkaOmlqillaimlqqmmaunmqyvn7Kvn7KopbCq - prKupbKnnquolZ6lkZqjl6Gjl6Gilp+flJ2llZ2jlJujlZ6omqOlm6ielaKhkpuajJWZi5SajJWZ - jZabkJmjl6ammqionaummqiel56VjpWXfoKVe3+Vg4SbiYuflJ2mmqOrmqWmlZ+akJSRh4uXi5GX - i5Gdl5mdl5mbjJGai5CUh42ViI6ahI6jjZeikpqjlJuhkJ2fjpuhiZuii52XgoeRe4CXg4OXg4OU - f4KXg4aUgoCVg4KXiJCfkJehkZmejpabhoiWgIOUfoObhoudjJmjkp+mjpaii5KfiI2ii5CdiZCd - iZCjh4yfg4iahIyhi5KnkZuijJaZgI2Ue4idf4eegIidh4mhi42hiY6fiI2ijIyjjY2mjIunjYyh - jIyijY2dgIaXe4CUd3mUd3mNc2+SeHSni4erjouoi42jhoiaeHWXdXOVeXmZfX2mjJCwlpqvlZas - kpSriYumhIalh4eegICliIiskJCylZWukZGvi3+qhnqffW2WdGSfgHeniH6ukZSukZSylJawkpWy - jZK0kJWzkZe2lJqzlpuvkpezjYiog36heWubdGeadGmdd2ulemefdWKhdV2ab1eaaFOWZE+UY0ya - aVGhb1eicFimcFqoc1yicFabalCZaU+eblSmdGOreWild2KmeGOld1+qe2Swg3eugHSofmOlel+d - dGqheG6sgn+rgH6wgHWufnOqe2moemiqemqwgHCyhne2iXq3iXqzhneugnOrf3Cqfm+rf3Crfm2q - fWuoeWuygnSyiH+0i4K2iIO3iYS0h36wg3qyg3q8jYS4i4O6jIS0hHSsfW2Vho2ZiZGah5CXhI2a - h5Cah5CeiZWeiZWejZ2ZiJeZi5SXiZKZhJCXg46VgouVgouRfoKRfoKXgoydh5GdiJSfi5aZi5SX - iZKdhpKfiJWii5qii5qhjJeijZmmjZqmjZqllaerm66snqqqm6ennqiimaOjlZ6fkZqhjZahjZah - kpuilJ2ikqWikqWmlKenlaiumaqwm6yupa+so66rn6uqnqqnl52ikpeilKKllqWelZ+hl6Kol6Kj - kp2jlaOrnaurnrCmmaullKOfjp6hkJ2hkJ2ekJuhkp6lmaWmmqanmq6om6+qoauhl6KVhI6RgIua - hIyhi5KelZ2lm6OqnqehlZ6fkJKWh4mbjI6ejpGnmqGll56ejpSai5CXhIuZhoydiZKfjJWhkJ2i - kZ6nl6qmlqinlaijkaWbiIyWg4eXhIibiIybiYuaiImXgoKZg4OXiIudjZChjZGfjJChhoyhhoya - g4ihiY6fjpumlaKrlJ6nkJqliZCjiI6ah4uZhomei46ah4uahIyfiZGnkZmhi5KZgomWf4eag4id - houdiIieiYmeiI2hi5Cmi5GojZSnjJKmi5GijIyjjY2hhImegoeZg4ORe3uReXONdW+if36riIeq - iIylg4ebenKXd26bf3qihoCoi5KwkpqvlZmwlpqsi4yqiImliYabgH2hh4amjIuwlJawlJa0kY6s - iYelfW+bdGeZeXWff3uojIyskJCylJSylJSzkI6zkI6ykJa2lJq3mZ6ylJmujI2riYusf3OleGuf - dGGhdWKmemSjeGKecliablWeaFSXYk6UZE2XaFCeclihdFuodFWseFindVufblSbalOhb1ereGuv - e2+qem2neGqleGmnemuvgnWyhHirfWWrfWWieW+le3Kug4Csgn+yfm2uemmoemWneWSrfnKyhHi0 - jYa4kYm6kIe0i4K2iXqugnOsgGisgGiqf2uqf2uqe3Owgnm2iIO7jYi3jo24kI64i4Kzhn2ugnC4 - jHq3jYO3jYO2iHevgnCbh5Kbh5KZiJWWhpKVhI6VhI6WgJWdh5uXiJqVhpeXh5SWhpKbg5mdhJqa - hI6Zg42XhIuWg4meiZefi5mdjpqekJuajZSXi5GXhIuah42hjZadiZKhkJ+hkJ+hkJ+ikaGmlaKo - l6Wml6allqWml6ajlaOilqWdkZ+fkpmdkJaekZWekZWfkJehkZmjkp+llKGmlaKsm6isoa+vo7Ks - nqeqm6WikpWbjI6jjpqlkJubkJuekp6nkp6nkp6hlKaom66om7KqnbOqmqyllaejl6ajl6aekp6e - kp6fmaWlnqqqmqyomauuoaeom6KhkpuZi5SbjJSdjZWekp6lmaWsm6anlqGjjo6diIiaiImjkZKq - maOqmaOmkZGbh4edhouag4ibjJSejpalkJurlqKqnbCrnrKqm6qilKKfiZShi5WhjZaijpefjJWX - hI2SfXqUfnubh4efi4uhjZafjJWfiJefiJeeg4mdgoiei5GlkZeqkZ6okJ2ijI6dh4mXg4aahoia - h4uZhombh4mfi42jjpGfi42ahIeXgoShi5WnkZujkJSfjJChi5CljpSmjpmqkp2rkJaih42jiI6j - iI6liZKih5CeiI2Vf4SVgnuVgnuhg4irjZKrjo6hhISef3ObfXCihoani4ujjZKokpe0lp60lp6r - jZKoi5CjiIShhoKih4OnjIiukpu0maKzlJuvkJerg4KddXSWdXeaeXqfgoSqjI6vkZasjpSyjZCz - jpGvjY6ykJGyjZKzjpSyjImwi4isg3mmfXOieF+hd16leFyhdFibb1Sbb1SdbVCZaU2XblGZb1Of - c2Kjd2Wnel6qfWGod1ymdFqmb1umb1undGWyfm+qem2oeWumem6qfnKsg3mrgnirf2usgG2rfm+u - gHKrgnmrgnmyg3CsfmuoeF+oeF+qfm+whHWykY62lZK8lpG3kYy0i4Kwh36uf2qsfmmofWmofWmn - fWmug2+yhH24i4O3jYe4joi0h3WugG+sfW2zg3OyhH24i4O6jHq3iXiZi5aajJeXjJqSh5WSgo6U - g5CVhJSWhpWUhpGUhpGUhIyUhIyahpGeiZWZiJWWhpKZho6diZKfkZ2fkZ2bkJubkJuZiY6VhouU - hImWh4ybi5WejZehlaOflKKhkp6ekJuljpmqlJ6llJ6llJ6imaGimaGilqWekqGakZmZkJefkJWe - jpSejZehkJqjkp+jkp+nlqOrmqeqna+uobOwoquqm6WjlJabjI6hi5KjjZWbjpWekZemkJemkJeh - kqGllqWnna+nna+qm6Wml6Glm6ijmqeimaahl6Welqafl6ejlqqqnbCwoq6un6unmaejlaOekJ6e - kJ6jlaGomqawm6qrlqWnkJeii5KeiJCmkJermqqqmainlZadi4ybh4mfi42ijpWei5GjkJmsmaKr - nrCsn7KrlqKnkp6liZKmi5Sqkp+qkp+jjpqahpGWf4SUfYKeiIihi4uljZeii5Wfi5afi5ahh4uZ - f4Obh4mjjpGnkJeokZmijIyfiYmbf3+egoKehIObgoCeiI2dh4yfiYmijIyahISXgoKeh46slZ2r - lZ2jjZWmkJKokpWnkJeulp6vkZmjho2ihImihImih5Cih5CeiJKbhpCeiIuXgoShhImrjpSskpSl - i4yhhH2fg3uni5CskJWqjpWskZezlZ22l5+qjpWnjJKmiI2lh4ymiYmni4uukJezlZ2wlJmylZqs - iYSffXiad26beG+igIKujI2zlJ6ykp2wjpCujI2ujYuvjoyyjIu0jo2zjI6viIuvh4Oqgn6lf3Cj - fm+ieGKhd2Gicleicleiclqfb1efdF6jeGKnenKqfXSrfWirfWiufVuoeFamdV2ldFyjdWGqe2er - fWqsfmuoeWuqem2ofXCqfnKrfnKugHSqe2eqe2eugHKzhnewg3Ksf26od1qlc1aleGurfnKyjIe2 - kIu7ko66kY23hn+2hH62g3KvfWureWisemmnfWSqf2euhH62jIa7jYS4i4K3g3KseWimd2eoeWmq - e3OzhHu3h3e3h3eVh5KZi5aWiZ2ViJuWhpWWhpWUhpGShJCSgoyUg42UhImWh4ybi5qdjJuZiZua - i52ejJ+ejJ+bkJudkZ2dkpaZjpKWh4ySg4iVf4ebho2fjJWjkJmimqqfl6efkpmekZeejpSllZqo - lKKrlqWmmqajl6Ojl6OhlaGhl6KelZ+ekp6ekp6fkZ+hkqGjkp+llKGlm6ijmqemlqirm66snqyo - mqihkZaejpSljpamkJefkJKhkZSokZaljZKijZmlkJunnqumnaqlm6ilm6immaummauim6ehmqaf - lKKhlaOnlqaunayunrKsnbCnlainlaillqKilJ+qkp+wmaarmqenlqOljpafiZGfiZSnkZuolqqr - mayilp+ajpeejpaikpqnkZuhi5WhkJqrmqWqnqqonairlZ+nkZuljJmnjpuqlJ6okp2ikJGdi4yX - fn2Xfn2ihoajh4eljZWnkJeijZmhjJeli4mbgoCdg4enjZGmjpaokZmljpGijI6jgoOjgoOlg4Sn - hoehjIydiIiehIahh4ibg36bg36eh46rlJurl56nlJqmjpSnkJWojZaylp+wkpqoi5KihoadgICe - g4mfhIubhJGeh5Shho6eg4yhg4uniZGskJKni42ih4Kih4KrjZeukJqylJuylJu0maKzl6GskpSs - kpSniYylh4mlh4mmiIusjZevkJqzlZq0lpuvjoijg32heG6ddGqbfoCniYywkZu0lZ+wkI2ri4ir - iIaqh4Srh4mqhoiuiIerhoSuhoKrg3+ogHCnf2+oemOneWKmdFqmdFqndGGreGSqemqufm6ugHiw - g3qzhnevgnOwf2eremKrelqldFSleFyoe1+sfmmvgGuzenKvd26odWeodWeoeWmre2une2ine2io - fXCugnWvg3KsgG+ye1+mcFWhc1yjdV6wg3u6jIS+kpK+kpK+iX23g3e6hHi3gnWyemiveGWoemWo - emWuf3e3iH+4jHq0iHezf2muemSmdF6mdF6meGWoemiyg263iHOWgo2diJSZjJ+ajaGaiZaVhJGR - g4yMfoeRfYiUf4uXh5GejZefkKKejqGdkKKdkKKmkaKijZ6hiZmii5qbjpWXi5GWh4yVhouXgoeZ - g4ieiJKjjZeflKKflKKfkpadkJShjZajkJmolKKqlaOilqWlmaeimaahl6Wmlqinl6qnm6qjl6af - maWblaGllqWllqWll6qll6qnl66oma+umaWqlaGfkJeikpqnkZumkJqdkpSdkpSjkJahjZShjZGi - jpKilZmmmZ2mmqajl6Oomqiqm6qmnaqjmqehlaOekqGnlqGsm6ammayll6umlqqqmq6nl6qnl6qq - m6eun6ummqahlaGolZ6jkJmhkpunmaKmlaWol6eilJ+hkp6llqKnmaWsl6OjjpqikZ6unaqvnqiq - maOmkJeljpajkJmlkZqrlJurlJuijZCeiYyag4iag4ihiY6jjJGnlJ2mkpuikpqhkZmijImdh4Sd - iIunkpWolJ+mkZ2okZunkJqjhouihImfiI2ii5CmkJeijJSfiYyfiYybhoieiIumiJWylKGwmaGu - lp6qkJSojpKmjparlJuwlZunjJKdgHuZfXiSfX2WgICVgIOZhIebhImdhoufhIumi5GojpKli46j - jJGjjJGojJ2wlKWzlqWzlqW3m6e2mqawm56rlpmoi42lh4mohoSmg4KmjJCojpKzkJm3lJ23kpWu - iYyognqie3SfgoSlh4msjpSvkZasjImqiYeviICqg3umfn2je3qog4Cngn+rhH2uh3+whHiugnWv - fWSsemKod1yndVuleWWqfmqsgHKvg3SyiH+ziYC6jH+2iHuyg26uf2qwe1urd1asel2zgGOvgnCy - hHO0gHKreGmjc1iiclemdFyod16mc12reGKsemewfmqyf26yf26wfmindV+jdFOfcE+oenK3iH+/ - jo3FlJLBjIK7h323g3Szf3C6g2uveWKoeF+remKvgG60hnO0jHm0jHm0hnCrfWiremKnd16wfmqz - gG22hnW2hnWVgIydiJSbjJ6bjJ6bh5KXg46SfoyRfYuQf4mRgIuZi5aekJujlaOjlaOflJ+flJ+h - lZ6dkZqfjJWfjJWekZeZjJKXhIuVgoiWhIaXhoeXiJCdjZWhkJqhkJqhjZabiJGhi5WljpmilJ2j - lZ6jl6Gilp+ilqWlmaeil6qjmauooq6lnqqjl6aflKKmlKehjqKikaGllKOjlKaikqWqlp+nlJ2d - kpmhlp2llqKllqKimaGimaGmlZ+hkJqdkJSdkJSfkJWllZqflJ2hlZ6hlaGilqKmmauom66lm6ie - laKilqKlmaWrmqqrmqqvma6vma6omayrm6+un66voa+mmZ+jlp2mlZ+llJ6hlaOmmqiol6Wjkp+l - kJ6mkZ+qlaaumaqwm6emkZ2ikZ6unaqznqyumaeskZqojZaljpaljpaqlJmnkZaeiI2bhouZg42a - hI6hiZamjpumlZ+llJ6mkpulkZqii5Cdhouii5KokZmsl6aumaerlKGqkp+sjpalh46hi5Kljpar - lZ+qlJ6mkJWijJGfiYyfiYyliZWrkJuzlZ+0lqGskpanjZGnkJWslZqslpumkJWmg4KffXuUeXSQ - dXCWe3idgn6Zg4Cdh4SiiIyli46ijJGhi5CljZWljZWojJqukZ+zlqW0l6aymaawl6Wvl52ulpus - jo6jhoafg4OZfX2fg4aliIuojJGwlJmwlJarjpGqg4ajfX+bfn6lh4eujI2vjY6sjIioiISnhn2j - gnmie3KhenClf3qjfnmnfnSqgHergnirgnivfmOse2Goe2KnemGsfW2vf2+vf3K0hHe2jIO3jYS4 - jH+2iX22h3Kuf2qzfWGye1+wfmO0gme2gni7h324iHiufm6jdFOZakmda1Ghb1WqclqyeWGvfmWz - gmmwhG6yhm+zgG2vfWmveV+oc1qseW+4hHq8jYbDlIy+iX+6hnu2hnW0hHS3hG6yf2mzel+udVus - f3C2iHm0jH6yiXuwgm+uf22vfWereWOwgnmwgnm3jIm8kY6Wgo2diJSbh5WahpSXg46Wgo2Rg5GR - g5GUhpGZi5abjJ6ejqGhkqGjlaOllJ6mlZ+hlZ6ekpuajZSZjJKei5Sei5SXhIuVgoiWgIaZg4ia - h5CfjJWbjpKZjJCbiI6Zhoyah42hjZSekZehlJqjlZ6ilJ2hlZ6ilp+llaerm66qnqylmaeikqWi - kqWjlaGekJuekZefkpmfkJefkJeikpqjlJumlp6llZ2ilJ+fkZ2jlaOnmaeml6OilJ+bkZeakJae - jpafkJedjpedjpedjpejlZ6jlKaqmqylmquil6iol6eol6eml6OnmaWsm6urmqqunrKvn7OuobOu - obOnmqGilZullaemlqill6ummayllqWfkZ+hkJqhkJqulqiwmauymqqmjp6mlaKqmaaun66omqio - kZuljZelkZemkpmmlJWhjpCjiI6fhIuXhI2diZKeiZWhjJellqKnmaWvl6Kqkp2ljZeii5Wljpmo - kp2wm6eynaiym6aym6asjpmniZSikZuol6KwmaiwmaivmZ6nkZahiZGfiJCliZKrkJmylqKzl6Or - kJmmi5SqjJSsjpaolZ6lkZqniYmihISXe3iUeHSVdXKaeneZfnOfhHmliIimiYmniZGmiJCmi5Sm - i5SliZCnjJKskZqwlZ6ylqKvlJ+wlpewlpeuko2liYSfhICWe3ideniif32jh4yvkpewkpqsjpas - hIOnf36hgH6ign+nh4SujYuujI2riYuriIajgH6mfnCed2mheWuje26mem6sgHSshHeuhnirfWin - eWSreWireWiqem2ufnCygnSygnSwiHi3jn64kH+3jn67h3iyfm+zgGizgGivfWu4hnS2iIC8joe/ - kH24iXesel2fblGaaFWea1imdF6wfmisfmmsfmmsfmmvgGuvgG6wgm+vf3KoeWuvfne2hH28jYy/ - kI67jX62iHm0h3q2iHu2h3S0hnOygGiufWSyg3u4iYKziX+yiH6vhHCqf2uufm6zg3O2h4m6i428 - kpnBlp2Wh4yVhouUgImSf4iRfoSSf4aVhJSZiJeZh5qbiZ2dkZ2dkZ2bjZullqWml6OjlaGhkp6e - kJuajJWWiJGfi5meiZeah5CZho6ah4ufjJCfjY6ejI2UiY2SiIyWhIOWhIOUgoObiYubjpWekZef - kZ2ilJ+ilJ+hkp6llqKnmaWnl6qfkKKdkKKekaOekJuXiZWbi5WejZefkJWhkZankp6qlaGnl5+l - lZ2hlJqfkpmllJ6nlqGnlqOmlaKflZudkpmejpafkJedjpeekJmhkp6jlaGnl6urm6+mmauom66y - na6vmqujlaGjlaGol6eunayunay0o7OwpbCvo6+sl6afi5mjlKarm66smq6rmaynlqOikZ6ikpqh - kZmolKWvmquwmauqkqWnkp6qlaGnmaellqWolKKlkJ6nkZmokpqolZmei46fhomfhomag4udho2b - iI6ei5GhkJqol6Kvl6KslZ+njY6jiYuejI2jkZKsl6iznq+0n6u0n6uvl5+qkpqllqKqm6e0n7C2 - obK0naeokZujjJafiJKliZKrkJmulqGwmaOrkZWli46njY6njY6ijpWjkJaljpGdh4mXe3eWenWX - c26Xc26ZeXWlhICliIini4uui5SriJGmiYymiYyfhoSbgoCjhIylho2ni5CrjpSojpCskpSqlY6l - kImlg3qffnWbenKefXSif4ivjJWqjZKskJWriIOhfnmaeHWffXqmgH+rhoSmiI2oi5Crh4mmgoSi - f32ee3mZdWmWc2efeGinf2+qhHWrhnesgmuofmiqem2re26sfW2vf2+vf3KsfW+ogHOyiXu6jIS/ - kYm7iYK6iIC2g2+yf2uufnO2hnq2jYm6kY27jnq2iXWyf2SjcleXalafcl2ofWmugm6yg3Cwgm+u - fm6ufm6ugnOwhHWygnewgHWyhHu3iYC3koa6lYi+kX23i3e3h3m0hHe2h3S3iHW0iHSzh3OzhoC3 - iYSviH2viH2whG6ugmuvgnW2iHu4iYy8jZC+lJ3Cl6GZiJKXh5GZg4uVf4eSfX+UfoCZg42eiJKX - i5GXi5GbjZadjpedjp2ml6ailqKilqKekpuajpebjZaXiZKaiZSZiJKeiZWfi5afkZqhkpuhi5Kd - h46ZiJKXh5GXg4aVgIOUf4KXg4aah4uei46ejpafkJeikpqhkZmjlKaomauolq6ejKObi5qdjJui - jZmdiJSei5Sei5ShjZSlkZeolZ6olZ6mlp6ikpqbkZWelJellKGnlqOol6eol6enm6WlmaKolKKn - kqGfkZqhkpuikpejlJmhlaOonaunm6esoayunayqmaillKGjkp+llKOqmairnauzpbO3prayobCr - lKGii5elkqaql6usm6iqmaaomZ6hkZaikpqejpalkJ6qlaOumaenkqGmkJWnkZajkp+mlaKrmqen - lqOmkpunlJ2nlJqfjJKdh4ybhouZg4iZg4idiIuhjI6ijpWnlJqqlJmokpemjI2hh4idiIiijY2o - kZ6vl6Wwn6yyoa6znaWrlZ2ll56mmZ+wn6yzoq+3n6qslZ+miJCdf4edgoinjJKnjJWwlZ6qkJGj - iYuhhoCfhH+fhIuliZCijIyfiYmegn6afnqaeneZeXWZeXelhIKljZKnkJWukJKqjI6miYyni42j - h4Kbf3qffXiffXihgH6jg4CfgoKniYmqjYmmiYalgoCif36dfnSbfXOffoKoh4uskJWskJWrjH+m - h3qdeW2deW2ifXqmgH6jgoOmhIaqhIOmgH+hfn2ffXuefXSZeG+heG6qgHeviYSyjIe0iHmugnOu - f22vgG6vgGuuf2qrf2mrf2mqeXKwf3izh3q8kIO7jIS8jYa6i3Wuf2que2qzgG+0i4S7kYu4kIKz - i32whminfV+ablWdcFeoenWzhH+zhnewg3Svf3KufnCqfnKwhHi2hnq3h3uyhnmzh3qzjIC4kYbB - kIS8jIC6h3OzgG2wgHC3h3e3h3e3h3ewh362jIOuhHquhHque2WqeGKsfmuzhHK4iInBkJG/lJXB - lZaaiZSaiZSfg4ibf4SWe4Kaf4ahjJeijZmZjJKWiZCah42fjJKikaGqmaimlqijlKabkpqZkJeV - i5GVi5GWjI2bkZKhkJ+nlqaom66jlqifiZGahIyShI2Uho6ahoaZhISXg4OZhISfi42hjI6fjJKh - jZShlJqhlJqlkqamlKemkZ+hjJqfiZGfiZGijJahi5WejpabjJSjkJmolZ6ml6GjlZ6omZ6ikpej - lZ6llp+ol6KmlZ+qmqyrm66onaurn66umaqqlaanlqallKOolZuolZuXjpahl5+nm6qqnqysm6ur - mqqllKGikZ6ikKOjkaWqmqywobO0pberm66ilJ+ajJehjqKjkaWumaWumaWqmp+ikpehlJefkpaj - kJmnlJ2rlqKnkp6mkJWljpSfjpmjkp2olKWvmqunkJ+okaGfkZGekJCdjoyWiIaWi4mViYifiYem - kI2nkJerlJurlZqokpejjY2eiIifiYyijI6mjpmrlJ6vmqa0n6uym6aslqGolZumkpmsm6ayoau6 - oa6slKGsi4ybenuWfYCehIiihIysjpamjIuiiIejgnmjgnmjg4ClhIKlh4mlh4mihoafg4Oeg3+d - gn6df4Klh4mvlJ2wlZ6ukpmrkJaniZGoi5KsiH+lgHifeW6feW6ZdWqbeG2ie3SrhH2uiIOog36l - goChfn2efXCaeW2XdXOhfnuriYuujI2ujYemhn+ie3Cdd2uXdXCZd3KfeW+mf3Wrfneoe3Soenum - eHmmeXKhdG2hdG+ugHu0jIy4kJC2joeviIC0gG+zf26uf2iuf2irfWiuf2qofmqme2iqgnSyiXuz - joa3kom/joO2hnqwfWmwfWm2iIO8jom+loy4kYe3jHiug2+meGOjdWGnfniwh4C4hHWyfm+uemes - eWWufnOygnewgnm2h360iHmyhne0h3q/kYTFkIbBjIK4hnS0gnC2gni4hHq6hnu7h322iXW4jHi2 - i3evhHCrel+nd1yreGSzf2u2hIDDkY2+lI28koybjZmXiZWahI6Zg42dhpCdhpCdjJuejZ2Uh42O - goiRhIiXi46ikKOmlKenkaqjjaabkZeZjpWXi5GajZSVkJGblpeilq+mmrOrmqemlaKfhIufhIub - iJGbiJGbhouahImXiYmWiIiei5GjkJajkJahjZSbkJudkZ2lkKGlkKGjjJmdhpKZiY6ejpSnkp6o - lJ+ikZ6hkJ2ml6Oomqammqinm6qunrCunrComqiml6aimaOhl6KomauunrCsnbCrm6+lmaWjl6Os - nqqrnaillJ6hkJqah5CfjJWilKKqm6qrnairnainlqGfjpmejZqfjpuikKOvnbCwoq6snqqmkpue - i5Sii5KmjpajlJunl5+jlJmhkZafkJWikpejkJamkpmnlJ2olZ6njJKliZCeiZWijZmnkJ2vl6Wo - maGjlJunkpWmkZShjZGbiIydjZKai5Cfi4ulkJCnkJWqkpeqkperlJmii5ChiY6ehIifhomhhoyl - iZCulaK2naqwl6WulaKqjZKrjpSokpq0nqa2n6qul6Kni4OZfXWUeXKVenOdf3+miIiihoaihoaf - hH+dgn2jgoOlg4SmhIamhIaeiIieiIihh4ahh4ang4uuiZGzl6Ozl6O0lqGwkp2qi5Kmh46rhoOn - gn+hf3SaeW6acmiddGqbeG2hfXKrhoCrhoCqgoCje3qdenmbeXiXd26aeXCnf36vh4aoiIKignuh - enCZc2mUcGWWc2iac2OddWWjeGmmemuleHOjd3KmdW+jc22bc22ieXOsh4S2kI26kIm0i4SshHeu - hnivg3Svg3SogG6ogG6ugnCne2qoe2+vgnWwi4a3kYy8jom6jIe2hnWwgHCzhoC7jYi/lY64joi6 - jH23iXqugnOrf3Cwgnm3iH+2h2+yg2uue2WvfWevgG6wgm+vf3Kzg3WuhnWshHSwg3u8joe/kYS8 - joK6iXu4iHq2hnqwgHW2gnW6hnmyg260hnC3i3KwhGuvfWKsel+reGSwfWmzg3jCkYbBkYm+joed - jJmaiZaXh5aWhpWXg46bh5KZi5aXiZWVgouQfYaVf4edh46ijZ6nkqOllqKjlaGbkZWZjpKai5KX - iJCbkJmjl6Gnn7Onn7OrmqehkJ2ahImbhouWjJKbkZejjZehi5WhiZGhiZGdjJadjJadjpqajJee - kJ6ekJ6fkZ+fkZ+iiZafh5SZiJWikZ6ol6enlqallaeikqWjl6anm6qunrCsna+zobawnrOmmaui - laejl6Ommqaqm6qsnqyvoa+rnauqnaOsn6awn6qyoaurlKGeh5SRgoeVhoudiJankqGfmaWhmqau - laKiiZahi5KfiZGhjJevmqaznqywm6qljpadh46dh4yijJGhkZmmlp6jlpqekZWijpWmkpmokpen - kZaulp6qkpqliZKliZKjh5WmiZeokZ6okZ6rl56olZuqlJuokpqhjZGdiY2bjI6bjI6njJKmi5Gl - jZKljZKqlJaslpmrkJajiI6dh4mdh4mXgoSeiIuqjJmzlaKykqKujp6vjoysjImrjZe3maO3n6qw - maOwjI6mgoSafneWenOZfnmjiIOlh4emiIiiiIejiYiniYmqjIyni4eliISihoiliIuli4yiiImn - iYyoi42zlZ+4mqW6mqWykp2zjJSwiZGniYylh4mhhH2dgHmhenCeeG6Wc2qeenKqgn6qgn6shn6o - gnqheXWed3OZdWqWc2ibeXSffXilgHijf3eieXOXb2mXb2WVbWOWa1iZbluecmGhdGOjd2+meXKl - d3KbbmmWcGmadG2ogH+3jo22lIuwjoauhHqsg3mzhHu0hn2zhn6zhn6yjH2lf3CmeWqqfW6uh3+y - i4O6jIe6jIe6hne0gHK2h3+/kIi8kZG6jo64i362iHuwiHqvh3mvh3mvh3m0iXOziHKzhG+zhG+w - hHOyhnSwhG6ugmuofWene2WsfW+zg3W7jIO+joa8jn+7jX62hnW0hHS0gm62g2+0gG27h3O3i3m3 - i3myhm2rf2eyhne0iHmyi4O3kIi7jIu3iIediZKfjJWaiZSWhpCUho6XiZKZiZGUhIyReoeQeYaU - foOZg4ibjZafkZqjkp+llKGbkZWXjZGai5CXiI2jkp+rmqeqn7Cnna6ol6KdjJaahImdh4yekZei - lZuolZ6lkZqjjJSljZWdjZWbjJSbjpWbjpWejJ+hjqKhjqKfjaGfi5mhjJqbkJujl6Ovmquumaqn - lqOikZ6nmaernaurnrCsn7Kyo7KworCmmaufkqWolJ+rlqKsl6Ovmqasoaqjl6Gilp+nm6Wsnqys - nqyikpqVho2SfX+UfoCdg4eojpKekp6hlaGnkp6eiZWai42Vhoibho2mkJeunrKrm6+nlJqdiZCe - iJChi5KhkJqmlZ+ll5ubjpKhkZamlpunlJqqlp2slqGnkZuiiZahiJWliZWliZWmkJqqlJ6vlqOs - lKGslaKqkp+nkZGijIydh4yijJGskZqqjpeljpGmkJKulpuulpuukZGliIibhoiXgoSUfYKZgoei - hoiukZSvkZmrjZWrjY2miIioi5eylKGzl6OwlaGzkJunhJCUfoCRe36bf3umiYaqjouliYali4yq - kJGylZqylZqnjY6li4ymi5GnjJKmjJCjiY2oi5KniZGylJ64mqW0maWwlaGyi42viIumi4ejiISi - hn6hhH2je3iheXWbeXeee3mjfnmngn2rg3Org3OhfWebeGKWcmGUb16Wc2iZdWqfeXKeeHCfeGqX - cGOdal6ZZ1uSZVSUZ1Wfbl2mdGOldWineGqoeWuhcmSXcGOac2Wleni2i4i+lo63kIiwhHisgHSy - hH2zhn6wh364joa6lISviXqqeGSmdGGoenKwgnm4iYS4iYS4iH23h3u0h367jYS+kIu7jYi7h320 - gHeyhnmzh3qzh3qzh3q0iHu0iHu7i327i326jH26jH2zhG2vgGmofmWnfWSremKufWS3g3m7h327 - jX68jn+4iHivf2+zgGqvfWeve2W4hG64iYC7jIO2iXqzh3i4lIu4lIu2kpG3lJK7kI24jYuXiJCW - h46XiI2XiI2XiJCai5KZiZGVho2OeYCNeH+SfX+bhoidjJmdjJmdi56ejJ+ajo2ViYiXhIibiIyl - kJ6qlaOlmaWflJ+ljpGeiIuWg4eah4uhkZallZqilZuilZuijJaahI6Wg4mVgoiViI6WiZCbi5Wd - jJaeiZqdiJmhiZmljZ2ikZ6ol6Wsl6ilkKGjjZWhi5KqkqWulqiom66uobOwoquml6GikpqfkJel - kZeqlp2umqOsmaKrm6OomaGmlaKnlqOonaulmaediY2UgISQeniRe3mZe36ihIeikpqikpqekpuZ - jZaUiY2Ng4eWgo2fi5aml6aqm6qll5uajZGdiZChjZSmlZ+ol6KikpeejpSfjJWjkJmqmaOol6Kv - lqOokJ2ii5WjjJaijJSijJSmi5SskZqolKWsl6iwl6WvlqOmkZSijZCfiZGljpaukpmukpmqlJal - jpGslZ+wmaOukZSliIuehIaehIaagIKZf4CehoCokIuukZSqjZCojIyihoamiJWoi5eskZqskZqu - kZaojJGbgIybgIyfg4ani42ujpmvkJqoi5erjZq0maWylqKqjpWukpmrkJmqjpelh4mhg4aliI2l - iI2sjJu2laW2mqOylp+vjY6nhoehhISfg4Onhn2lg3qmgHuhe3eff3uign6mgHuog36qhn2ng3qn - fWmdc1+WalqQZFSQZVWWa1uZbl2ab16XdF6XdF6abViXalaVaFaWaVebbWKhcmeldWimd2mleWWh - d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6Gjp - cepw62PsU+1A7i3vDO/r8LzxjvJW8xvz2/SV9U719vaf90L32/h0+QX5h/oK+o36+vtl+8/8OvyV - /OT9NP2D/dP+I/6J/vT/X//J//8AAGRlc2MAAAAAAAAACkNvbG9yIExDRAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAABtbHVjAAAAAAAAAA8AAAAMaXRJVAAAABQAAADEZnJGUgAAAEIAAADYbmJOTwAAABIA - AAEaZXNFUwAAABIAAAEsZmlGSQAAABAAAAE+cHRQVAAAABgAAAFOemhUVwAAAA4AAAFmamFKUAAA - AA4AAAF0bmxOTAAAABYAAAGCZGVERQAAABAAAAGYa29LUgAAAAwAAAGoZW5VUwAAABIAAAG0c3ZT - RQAAABAAAAHGZGFESwAAABwAAAHWemhDTgAAAAwAAAHyAEwAQwBEACAAYwBvAGwAbwByAGkAyQBj - AHIAYQBuACAA4AAgAGMAcgBpAHMAdABhAHUAeAAgAGwAaQBxAHUAaQBkAGUAcwAgAGMAbwB1AGwA - ZQB1AHIARgBhAHIAZwBlAC0ATABDAEQATABDAEQAIABjAG8AbABvAHIAVgDkAHIAaQAtAEwAQwBE - AEwAQwBEACAAYwBvAGwAbwByAGkAZABvX2mCcm2yZnaYb3k6VmgwqzDpMPwAIABMAEMARABLAGwA - ZQB1AHIAZQBuAC0ATABDAEQARgBhAHIAYgAtAEwAQwBEzuy37AAgAEwAQwBEAEMAbwBsAG8AcgAg - AEwAQwBEAEYA5AByAGcALQBMAEMARABMAEMARAAtAGYAYQByAHYAZQBzAGsA5gByAG1faYJyACAA - TABDAEQAAG1tb2QAAAAAAAAGEAAAnFYAAAAAv/h7gAAAAAAAAAAAAAAAAAAAAAB0ZXh0AAAAAENv - cHlyaWdodCBBcHBsZSBDb21wdXRlciwgSW5jLiwgMjAwNQAAAAA= -item7.X-ABRELATEDNAMES:assistant -item7.X-ABLabel:_$!!$_ -item8.X-ABRELATEDNAMES;type=pref:spouse -item8.X-ABLabel:_$!!$_ -item9.X-ABRELATEDNAMES:father -item9.X-ABLabel:_$!!$_ -item10.X-ABRELATEDNAMES:Custom relation -item10.X-ABLabel:CustomRelLabel -X-ABUID:3D833EB4-BFFC-41F0-9193-96695487C45E\:ABPerson -END:VCARD diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4/SingleNonAscii.vcf Binary file qtmobility/tests/auto/qversit/testdata/AAB4/SingleNonAscii.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB4/SingleNonAsciiWithPhoto.vcf Binary file qtmobility/tests/auto/qversit/testdata/AAB4/SingleNonAsciiWithPhoto.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB5-SingleNonAscii.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversit/testdata/AAB5-SingleNonAscii.vcf Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,10 @@ +BEGIN:VCARD +VERSION:3.0 +N:name;ã²ã‚‰ãŒãª;;; +FN:ã²ã‚‰ãŒãª name +ORG:ABC; +EMAIL;type=INTERNET;type=WORK;type=pref:a@b.com +TEL;type=WORK;type=pref:1234 +TEL;type=CELL:5678 +X-ABUID:71192A64-301C-420B-AF88-DA4E0CF1B8A4\:ABPerson +END:VCARD diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/AAB5/SingleNonAscii.vcf --- a/qtmobility/tests/auto/qversit/testdata/AAB5/SingleNonAscii.vcf Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -BEGIN:VCARD -VERSION:3.0 -N:name;ã²ã‚‰ãŒãª;;; -FN:ã²ã‚‰ãŒãª name -ORG:ABC; -EMAIL;type=INTERNET;type=WORK;type=pref:a@b.com -TEL;type=WORK;type=pref:1234 -TEL;type=CELL:5678 -X-ABUID:71192A64-301C-420B-AF88-DA4E0CF1B8A4\:ABPerson -END:VCARD diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage11-basic.vcf Binary file qtmobility/tests/auto/qversit/testdata/Entourage11-basic.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage11-image.vcf Binary file qtmobility/tests/auto/qversit/testdata/Entourage11-image.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage11-nonascii.vcf Binary file qtmobility/tests/auto/qversit/testdata/Entourage11-nonascii.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage11/basic.vcf Binary file qtmobility/tests/auto/qversit/testdata/Entourage11/basic.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage11/image.vcf Binary file qtmobility/tests/auto/qversit/testdata/Entourage11/image.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage11/nonascii.vcf Binary file qtmobility/tests/auto/qversit/testdata/Entourage11/nonascii.vcf has changed diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage12-basic.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversit/testdata/Entourage12-basic.vcf Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,8 @@ +begin:vcard +version:3.0 +prodid:Microsoft-Entourage/12.23.0.091001 +UID:F3236599-2900-42D3-9969-8F9714C5EE36 +fn;charset=utf-8:first last +n;charset=utf-8:last;first;;; +org;charset=utf-8:Nokia;Qt DF +end:vcard diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage12-kevin.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversit/testdata/Entourage12-kevin.vcf Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,7 @@ +begin:vcard +version:3.0 +prodid:Microsoft-Entourage/12.23.0.091001 +UID:01430B95-6B2D-4A6E-87F1-D165D4F8FA7A +fn;charset=utf-8:Kevin Wu Won +n;charset=utf-8:Wu Won;Kevin;;; +end:vcard diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage12-nonascii.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversit/testdata/Entourage12-nonascii.vcf Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,8 @@ +begin:vcard +version:3.0 +prodid:Microsoft-Entourage/12.23.0.091001 +UID:C92628BF-C7B4-42F5-9A7F-EF9D9EF6CDC3 +fn;charset=utf-8:ã²ã‚‰ãŒãª name +n;charset=utf-8:name;ã²ã‚‰ãŒãª;;Mr.; +org;charset=utf-8:ABC; +end:vcard diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage12/basic.vcf --- a/qtmobility/tests/auto/qversit/testdata/Entourage12/basic.vcf Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -begin:vcard -version:3.0 -prodid:Microsoft-Entourage/12.23.0.091001 -UID:F3236599-2900-42D3-9969-8F9714C5EE36 -fn;charset=utf-8:first last -n;charset=utf-8:last;first;;; -org;charset=utf-8:Nokia;Qt DF -end:vcard diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage12/kevin.vcf --- a/qtmobility/tests/auto/qversit/testdata/Entourage12/kevin.vcf Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -begin:vcard -version:3.0 -prodid:Microsoft-Entourage/12.23.0.091001 -UID:01430B95-6B2D-4A6E-87F1-D165D4F8FA7A -fn;charset=utf-8:Kevin Wu Won -n;charset=utf-8:Wu Won;Kevin;;; -end:vcard diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/testdata/Entourage12/nonascii.vcf --- a/qtmobility/tests/auto/qversit/testdata/Entourage12/nonascii.vcf Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -begin:vcard -version:3.0 -prodid:Microsoft-Entourage/12.23.0.091001 -UID:C92628BF-C7B4-42F5-9A7F-EF9D9EF6CDC3 -fn;charset=utf-8:ã²ã‚‰ãŒãª name -n;charset=utf-8:name;ã²ã‚‰ãŒãª;;Mr.; -org;charset=utf-8:ABC; -end:vcard diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/tst_qversit.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversit/tst_qversit.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,218 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qversitdefs_p.h" +#include "tst_qversit.h" +#include "qversitreader.h" +#include "qversitreader_p.h" +#include "qversitcontactimporter.h" +#include "qcontact.h" +#include "qcontactmanager.h" +#include "qcontactmanagerengine.h" + +#include +#include +#include +#include + +QTM_BEGIN_NAMESPACE +class MyQVersitResourceHandler : public QVersitResourceHandler +{ +public: + MyQVersitResourceHandler() : mIndex(0) + { + } + + bool saveResource(const QByteArray& contents, const QVersitProperty& property, + QString* location) + { + Q_UNUSED(property) + *location = QString::number(mIndex++); + mObjects.insert(*location, contents); + return true; + } + + bool loadResource(const QString &location, QByteArray *contents, QString *mimeType) + { + Q_UNUSED(location) + Q_UNUSED(contents) + Q_UNUSED(mimeType) + return false; + } + + int mIndex; + QMap mObjects; +}; +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE + +#ifndef TESTDATA_DIR +#define TESTDATA_DIR "./" +#endif + +Q_DECLARE_METATYPE(QList) + +void tst_QVersit::testImportFiles() +{ + QFETCH(QString, filename); + QFETCH(QByteArray, charset); + QFETCH(QList, expectedContacts); + + QVersitReader reader; + QFile file(filename); + QVERIFY2(file.open(QIODevice::ReadOnly), filename.toAscii()); + reader.setDevice(&file); + if (charset != "") { + reader.setDefaultCodec(QTextCodec::codecForName(charset)); + } + QVERIFY(reader.startReading()); + QVERIFY(reader.waitForFinished()); + QList documents = reader.results(); + QCOMPARE(reader.error(), QVersitReader::NoError); + QVersitContactImporter importer; + MyQVersitResourceHandler resourceHandler; + importer.setResourceHandler(&resourceHandler); + QVERIFY(importer.importDocuments(documents)); + QList contacts = importer.contacts(); + + if (expectedContacts.size() > 0) { + QCOMPARE(contacts.size(), expectedContacts.size()); + QListIterator i(expectedContacts); + foreach (QContact parsed, contacts) { + QContact expected = i.next(); + QList expectedDetails = expected.details(); + foreach(QContactDetail expectedDetail, expectedDetails) { + QString name = expectedDetail.definitionName(); + QContactDetail parsedDetail = parsed.detail(name); + if (parsedDetail != expectedDetail) { + qDebug() << "Detail: " << name.toAscii(); + qDebug() << "Actual:" << parsedDetail.variantValues(); + qDebug() << "Expected:" << expectedDetail.variantValues(); + QCOMPARE(parsedDetail, expectedDetail); + } + } + } + } +} + +#define QTEST_NEW_ROW(filename,charset,contact) \ + QTest::newRow(filename) \ + << QString::fromAscii(TESTDATA_DIR "testdata/") + QString::fromAscii(filename) \ + << QByteArray(charset) \ + << (contact) + +void tst_QVersit::testImportFiles_data() +{ + QTest::addColumn("filename"); + QTest::addColumn("charset"); + QTest::addColumn >("expectedContacts"); + + QTEST_NEW_ROW("AAB4-MultipleAll.vcf", "UTF-16BE", QList()); + QTEST_NEW_ROW("AAB4-MultipleAscii.vcf", "", QList()); + QTEST_NEW_ROW("AAB4-SingleCompany.vcf", "", QList()); + QTEST_NEW_ROW("AAB4-SingleExtensive.vcf", "", QList()); + QTEST_NEW_ROW("AAB4-SingleNonAscii.vcf", "UTF-16BE", QList()); + QTEST_NEW_ROW("AAB4-SingleNonAsciiWithPhoto.vcf", "UTF-16BE", QList()); + QTEST_NEW_ROW("AAB5-SingleNonAscii.vcf", "UTF-8", QList()); + + { + QList list; + QContact contact; + QContactName name; + name.setCustomLabel(QLatin1String("Firstname Lastname")); + name.setFirstName(QLatin1String("Firstname")); + name.setLastName(QLatin1String("Lastname")); + name.setMiddleName(QString()); + name.setPrefix(QLatin1String("Title")); + name.setSuffix(QLatin1String("Suffix")); + contact.saveDetail(&name); + QContactOrganization org; + org.setName(QLatin1String("Company Name")); + org.setDepartment(QStringList(QLatin1String("Department Name"))); + org.setTitle(QLatin1String("Job title")); + contact.saveDetail(&org); + QContactNote note; + note.setNote(QLatin1String("This is a note field. Pretty boring.")); + contact.saveDetail(¬e); + QContactManagerEngine::setContactDisplayLabel(&contact, QLatin1String("Firstname Lastname")); + list.append(contact); + QContactUrl homeUrl; + homeUrl.setUrl(QLatin1String("http://mywebpage.com")); + homeUrl.setContexts(QContactDetail::ContextHome); + contact.saveDetail(&homeUrl); + QContactUrl workUrl; + workUrl.setUrl(QLatin1String("http://workwebpage")); + workUrl.setContexts(QContactDetail::ContextWork); + contact.saveDetail(&workUrl); + QTEST_NEW_ROW("Entourage11-basic.vcf", "UTF-16BE", list); + } + + QTEST_NEW_ROW("Entourage11-image.vcf", "UTF-16BE", QList()); + + QTEST_NEW_ROW("Entourage11-nonascii.vcf", "UTF-16BE", QList()); + + { + QList list; + QContact contact; + QContactName name; + name.setCustomLabel(QLatin1String("first last")); + name.setFirstName(QLatin1String("first")); + name.setLastName(QLatin1String("last")); + name.setMiddleName(QString()); + name.setPrefix(QString()); + name.setSuffix(QString()); + contact.saveDetail(&name); + QContactOrganization org; + org.setName(QLatin1String("Nokia")); + org.setDepartment(QStringList(QLatin1String("Qt DF"))); + contact.saveDetail(&org); + QContactManagerEngine::setContactDisplayLabel(&contact, QLatin1String("first last")); + list.append(contact); + QTEST_NEW_ROW("Entourage12-basic.vcf", "", list); + } + + QTEST_NEW_ROW("Entourage12-kevin.vcf", "UTF-8", QList()); + QTEST_NEW_ROW("Entourage12-nonascii.vcf", "UTF-8", QList()); + QTEST_NEW_ROW("gmail.vcf", "UTF-8", QList()); +} + +QTEST_MAIN(tst_QVersit) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/tst_qversit.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversit/tst_qversit.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,69 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 tst_QVERSIT_H +#define tst_QVERSIT_H + +#include +#include +#include + +QTM_BEGIN_NAMESPACE + +class QVersitContactImporter; +class QVersitContactImporterPrivate; +class QVersitReader; + +QTM_END_NAMESPACE +QTM_USE_NAMESPACE + +class tst_QVersit : public QObject +{ + Q_OBJECT + +private slots: // Tests + void testImportFiles(); + void testImportFiles_data(); + +private: +}; + +#endif // tst_QVERSIT_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/ut_qversit.cpp --- a/qtmobility/tests/auto/qversit/ut_qversit.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,214 +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 Qt Mobility Components. -** -** $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 "qversitdefs_p.h" -#include "ut_qversit.h" -#include "qversitreader.h" -#include "qversitreader_p.h" -#include "qversitcontactimporter.h" -#include "qcontact.h" -#include "qcontactmanager.h" - -#include -#include -#include -#include - -QTM_BEGIN_NAMESPACE -class MyQVersitResourceHandler : public QVersitResourceHandler -{ -public: - MyQVersitResourceHandler() : mIndex(0) - { - } - - bool saveResource(const QByteArray& contents, const QVersitProperty& property, - QString* location) - { - Q_UNUSED(property) - *location = QString::number(mIndex++); - mObjects.insert(*location, contents); - return true; - } - - bool loadResource(const QString &location, QByteArray *contents, QString *mimeType) - { - Q_UNUSED(location) - Q_UNUSED(contents) - Q_UNUSED(mimeType) - return false; - } - - int mIndex; - QMap mObjects; -}; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -#ifndef TESTDATA_DIR -#define TESTDATA_DIR "./" -#endif - -Q_DECLARE_METATYPE(QList) - -void UT_QVersit::testImportFiles() -{ - QFETCH(QString, filename); - QFETCH(QByteArray, charset); - QFETCH(QList, expectedContacts); - - QVersitReader reader; - QFile file(filename); - QVERIFY2(file.open(QIODevice::ReadOnly), filename.toAscii()); - reader.setDevice(&file); - if (charset != "") { - reader.setDefaultCodec(QTextCodec::codecForName(charset)); - } - QVERIFY(reader.startReading()); - QVERIFY(reader.waitForFinished()); - QList documents = reader.results(); - QCOMPARE(reader.error(), QVersitReader::NoError); - QVersitContactImporter importer; - MyQVersitResourceHandler resourceHandler; - importer.setResourceHandler(&resourceHandler); - QList contacts = importer.importContacts(documents); - - if (expectedContacts.size() > 0) { - QCOMPARE(contacts.size(), expectedContacts.size()); - QListIterator i(expectedContacts); - foreach (QContact parsed, contacts) { - QContact expected = i.next(); - QList expectedDetails = expected.details(); - foreach(QContactDetail expectedDetail, expectedDetails) { - QString name = expectedDetail.definitionName(); - QContactDetail parsedDetail = parsed.detail(name); - if (parsedDetail != expectedDetail) { - qDebug() << "Detail: " << name.toAscii(); - qDebug() << "Actual:" << parsedDetail.variantValues(); - qDebug() << "Expected:" << expectedDetail.variantValues(); - QCOMPARE(parsedDetail, expectedDetail); - } - } - } - } -} - -#define QTEST_NEW_ROW(filename,charset,contact) \ - QTest::newRow(filename) \ - << QString::fromAscii(TESTDATA_DIR "testdata/") + QString::fromAscii(filename) \ - << QByteArray(charset) \ - << (contact) - -void UT_QVersit::testImportFiles_data() -{ - QTest::addColumn("filename"); - QTest::addColumn("charset"); - QTest::addColumn >("expectedContacts"); - - QTEST_NEW_ROW("AAB4/MultipleAll.vcf", "UTF-16BE", QList()); - QTEST_NEW_ROW("AAB4/MultipleAscii.vcf", "", QList()); - QTEST_NEW_ROW("AAB4/SingleCompany.vcf", "", QList()); - QTEST_NEW_ROW("AAB4/SingleExtensive.vcf", "", QList()); - QTEST_NEW_ROW("AAB4/SingleNonAscii.vcf", "UTF-16BE", QList()); - QTEST_NEW_ROW("AAB4/SingleNonAsciiWithPhoto.vcf", "UTF-16BE", QList()); - QTEST_NEW_ROW("AAB5/SingleNonAscii.vcf", "UTF-8", QList()); - - { - QList list; - QContact contact; - QContactName name; - name.setCustomLabel(QLatin1String("Firstname Lastname")); - name.setFirstName(QLatin1String("Firstname")); - name.setLastName(QLatin1String("Lastname")); - name.setMiddleName(QString()); - name.setPrefix(QLatin1String("Title")); - name.setSuffix(QLatin1String("Suffix")); - contact.saveDetail(&name); - QContactOrganization org; - org.setName(QLatin1String("Company Name")); - org.setDepartment(QStringList(QLatin1String("Department Name"))); - org.setTitle(QLatin1String("Job title")); - contact.saveDetail(&org); - list.append(contact); - QContactNote note; - note.setNote(QLatin1String("This is a note field. Pretty boring.")); - contact.saveDetail(¬e); - QContactUrl homeUrl; - homeUrl.setUrl(QLatin1String("http://mywebpage.com")); - homeUrl.setContexts(QContactDetail::ContextHome); - contact.saveDetail(&homeUrl); - QContactUrl workUrl; - workUrl.setUrl(QLatin1String("http://workwebpage")); - workUrl.setContexts(QContactDetail::ContextWork); - contact.saveDetail(&workUrl); - QTEST_NEW_ROW("Entourage11/basic.vcf", "UTF-16BE", list); - } - - QTEST_NEW_ROW("Entourage11/image.vcf", "UTF-16BE", QList()); - - QTEST_NEW_ROW("Entourage11/nonascii.vcf", "UTF-16BE", QList()); - - { - QList list; - QContact contact; - QContactName name; - name.setCustomLabel(QLatin1String("first last")); - name.setFirstName(QLatin1String("first")); - name.setLastName(QLatin1String("last")); - name.setMiddleName(QString()); - name.setPrefix(QString()); - name.setSuffix(QString()); - contact.saveDetail(&name); - QContactOrganization org; - org.setName(QLatin1String("Nokia")); - org.setDepartment(QStringList(QLatin1String("Qt DF"))); - contact.saveDetail(&org); - list.append(contact); - QTEST_NEW_ROW("Entourage12/basic.vcf", "", list); - } - - QTEST_NEW_ROW("Entourage12/kevin.vcf", "UTF-8", QList()); - QTEST_NEW_ROW("Entourage12/nonascii.vcf", "UTF-8", QList()); - QTEST_NEW_ROW("gmail.vcf", "UTF-8", QList()); -} - -QTEST_MAIN(UT_QVersit) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversit/ut_qversit.h --- a/qtmobility/tests/auto/qversit/ut_qversit.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,69 +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 Qt Mobility Components. -** -** $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 UT_QVERSIT_H -#define UT_QVERSIT_H - -#include -#include -#include - -QTM_BEGIN_NAMESPACE - -class QVersitContactImporter; -class QVersitContactImporterPrivate; -class QVersitReader; - -QTM_END_NAMESPACE -QTM_USE_NAMESPACE - -class UT_QVersit : public QObject -{ - Q_OBJECT - -private slots: // Tests - void testImportFiles(); - void testImportFiles_data(); - -private: -}; - -#endif // UT_QVERSIT_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitcontactexporter/qversitcontactexporter.pro --- a/qtmobility/tests/auto/qversitcontactexporter/qversitcontactexporter.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qversitcontactexporter/qversitcontactexporter.pro Mon May 03 13:18:40 2010 +0300 @@ -16,8 +16,8 @@ ../../../src/contacts/requests \ ../../../src/contacts/filters -HEADERS += ut_qversitcontactexporter.h -SOURCES += ut_qversitcontactexporter.cpp +HEADERS += tst_qversitcontactexporter.h +SOURCES += tst_qversitcontactexporter.cpp CONFIG += mobility MOBILITY = contacts versit diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitcontactexporter/tst_qversitcontactexporter.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitcontactexporter/tst_qversitcontactexporter.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1164 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "tst_qversitcontactexporter.h" +#include "qversitcontactexporter.h" +#include "qversitcontactexporter_p.h" +#include "qversitdocument.h" +#include "qversitproperty.h" +#include "qversitdefs_p.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QTM_BEGIN_NAMESPACE + +class MyQVersitContactExporterDetailHandler : public QVersitContactExporterDetailHandler +{ +public: + MyQVersitContactExporterDetailHandler() : mPreProcess(false) + { + } + + bool preProcessDetail(const QContact& contact, + const QContactDetail& detail, + QVersitDocument* document) + { + Q_UNUSED(contact) + Q_UNUSED(document) + mPreProcessedDetails.append(detail); + return mPreProcess; + } + + bool postProcessDetail(const QContact& contact, + const QContactDetail& detail, + bool alreadyProcessed, + QVersitDocument* document) + { + Q_UNUSED(contact) + Q_UNUSED(document) + if (!alreadyProcessed) + mUnknownDetails.append(detail); + else + mPostProcessedDetails.append(detail); + return false; + } + + void clear() + { + mPreProcess = false; + mDefinitionNamesToProcess.clear(); + mUnknownDetails.clear(); + mPreProcessedDetails.clear(); + mPostProcessedDetails.clear(); + } + + // a hook to control what preProcess returns: + bool mPreProcess; + QStringList mDefinitionNamesToProcess; + QList mUnknownDetails; + QList mPreProcessedDetails; + QList mPostProcessedDetails; +}; + +class MyQVersitResourceHandler : public QVersitResourceHandler +{ +public: + MyQVersitResourceHandler() + : mLoadResourceCalled(false), + mLoadSuccess(true) + { + } + + bool loadResource(const QString& location, QByteArray* contents, QString* mimeType) + { + mLocation = location; + *contents = mSimulatedData; + *mimeType = mSimulatedMimeType; + mLoadResourceCalled = true; + return mLoadSuccess; + } + + bool saveResource(const QByteArray &contents, const QVersitProperty &property, QString *location) + { + Q_UNUSED(contents) + Q_UNUSED(property) + Q_UNUSED(location) + return false; + } + + void clear() + { + mSimulatedData.clear(); + mSimulatedMimeType.clear(); + mLocation.clear(); + mLoadResourceCalled = false; + mLoadSuccess = true; + } + + QByteArray mSimulatedData; + QString mSimulatedMimeType; + QString mLocation; + bool mLoadResourceCalled; + bool mLoadSuccess; // A hook to control what loadResource returns. +}; + +const static QByteArray SAMPLE_GIF(QByteArray::fromBase64( + "R0lGODlhEgASAIAAAAAAAP///yH5BAEAAAEALAAAAAASABIAAAIdjI+py+0G" + "wEtxUmlPzRDnzYGfN3KBaKGT6rDmGxQAOw==")); + +// The number of vCard properties generated by a contact made with createContactWithName() +const static int BASE_PROPERTY_COUNT = 2; + +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE + +const QString TEST_PHOTO_FILE(QLatin1String("versitTest001.jpg")); +const QString TEST_AUDIO_FILE(QLatin1String("versitTest001.wav")); + +// Checks that the property has a value of the given expectedType and the given expectedValue. +#define CHECK_VALUE(property,expectedValueType,expectedValue) {\ + QCOMPARE(property.valueType(), expectedValueType); \ + QVariant value = property.variantValue(); \ + QCOMPARE(value.type(), QVariant::StringList); \ + QCOMPARE(value.toStringList(), expectedValue); \ +} + +void tst_QVersitContactExporter::init() +{ + mExporter = new QVersitContactExporter(); + mDetailHandler = new MyQVersitContactExporterDetailHandler; + mExporter->setDetailHandler(mDetailHandler); + mResourceHandler = new MyQVersitResourceHandler; + mExporter->setResourceHandler(mResourceHandler); +} + +void tst_QVersitContactExporter::cleanup() +{ + QVERIFY(mExporter->detailHandler() == mDetailHandler); + mExporter->setDetailHandler(0); + delete mDetailHandler; + QVERIFY(mExporter->resourceHandler() == mResourceHandler); + mExporter->setResourceHandler(0); + delete mResourceHandler; + delete mExporter; +} + +void tst_QVersitContactExporter::testConvertContact() +{ + QContact contact; + + // Adding name to the contact + QContactName name; + name.setFirstName(QString::fromAscii("Moido")); + contact.saveDetail(&name); + + // Adding phone number to the Contact. + QContactPhoneNumber phoneNumber; + phoneNumber.setNumber(QString::fromAscii("12345678")); + contact.saveDetail(&phoneNumber); + + // Convert contact into versit properties + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QList documents = mExporter->documents(); + + // Each Contact has display label detail by default. Display label is enocded + // if some value exist for the Label or if value for Name exist. + QCOMPARE(documents.size(), 1); + QCOMPARE(documents.first().properties().count(), 3); +} + +void tst_QVersitContactExporter::testContactDetailHandler() +{ + // Test1: Un-supported Avatar Test + QContact contact(createContactWithName(QLatin1String("asdf"))); + QVersitDocument document; + QContactDetail unknownDetail; + unknownDetail.setValue(QLatin1String("Unknown"), QLatin1String("Detail")); + contact.saveDetail(&unknownDetail); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT); + QList unknownDetails = mDetailHandler->mUnknownDetails; + QVERIFY(unknownDetails.size() > 0); + QString definitionName = unknownDetail.definitionName(); + QContactDetail detail = searchDetail(unknownDetails,definitionName); + QCOMPARE(definitionName, detail.definitionName()); + + // Test2: Un-supported Online Account + QContactOnlineAccount onlineAccount; + QString testUri = QString::fromAscii("sip:abc@temp.com"); + onlineAccount.setAccountUri(testUri); + onlineAccount.setSubTypes(QString::fromAscii("unsupported")); + contact.saveDetail(&onlineAccount); + mDetailHandler->clear(); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT); + unknownDetails = mDetailHandler->mUnknownDetails; + QVERIFY(unknownDetails.size() > 0); + definitionName = onlineAccount.definitionName(); + detail = searchDetail(unknownDetails, definitionName); + QCOMPARE(definitionName, detail.definitionName()); + + // Test that preProcessDetail returns true stops the exporter from doing anything. + contact.clearDetails(); + QContactName contactName; + contactName.setFirstName(QLatin1String("John")); + contact.saveDetail(&contactName); + mDetailHandler->clear(); + mDetailHandler->mPreProcess = true; + // Fails, with NoNameError + QVERIFY(!mExporter->exportContacts(QList() << contact, + QVersitDocument::VCard30Type)); + QList documents = mExporter->documents(); + QCOMPARE(documents.size(), 0); + QVERIFY(mDetailHandler->mPreProcessedDetails.count() > BASE_PROPERTY_COUNT); + QCOMPARE(mDetailHandler->mPostProcessedDetails.count(), 0); + QCOMPARE(mDetailHandler->mUnknownDetails.count(), 0); + + QVERIFY(mExporter->detailHandler() == mDetailHandler); +} + +void tst_QVersitContactExporter::testEncodeName() +{ + QContact contact; + QContactName name; + + // Special characters are NOT backslash escaped by the exporter, only by the writer. + name.setFirstName(QString::fromAscii("He;ido")); + name.setLastName(QString::fromAscii("HH")); + name.setMiddleName(QString::fromAscii("A")); + name.setPrefix(QString::fromAscii("Mr.")); + name.setContexts(QContactDetail::ContextHome); + contact.saveDetail(&name); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard21Type)); + QVersitDocument document = mExporter->documents().first(); + + // Each Contact has display label detail by default. Display label is enocded + // if some value exists for the Label or if value for Name exists. + QCOMPARE(document.properties().count(), 2); + + QVersitProperty displayProperty = document.properties().at(0); + // Check name + QCOMPARE(displayProperty.name(), QString::fromAscii("FN")); + // Check value + QCOMPARE(displayProperty.value(), QString::fromAscii("He;ido HH")); + + QVersitProperty nameProperty = document.properties().at(1); + // Check parameters, contexts not allowed for N property + QCOMPARE(nameProperty.parameters().count(), 0); + // Check name + QCOMPARE(nameProperty.name(), QString::fromAscii("N")); + CHECK_VALUE(nameProperty, QVersitProperty::CompoundType, + QStringList() << QLatin1String("HH") << QLatin1String("He;ido") + << QLatin1String("A") << QLatin1String("Mr.") << QString()); +} + +void tst_QVersitContactExporter::testEncodePhoneNumber() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactPhoneNumber phoneNumber; + phoneNumber.setNumber(QString::fromAscii("12345678")); + phoneNumber.setContexts(QContactDetail::ContextHome); + phoneNumber.setSubTypes(QContactPhoneNumber::SubTypeMobile); + contact.saveDetail(&phoneNumber); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("TEL")); + QVERIFY(!property.isEmpty()); + // Check parameters + QCOMPARE(property.parameters().count(), 2); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("CELL"))); + // Check value + QCOMPARE(property.value(), phoneNumber.number()); +} + +void tst_QVersitContactExporter::testEncodeEmailAddress() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactEmailAddress email; + email.setEmailAddress(QString::fromAscii("test@test")); + email.setContexts(QContactDetail::ContextHome); + contact.saveDetail(&email); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("EMAIL")); + QVERIFY(!property.isEmpty()); + // Check parameters + QCOMPARE(property.parameters().count(), 1); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); + // Check value + QCOMPARE(property.value(), email.emailAddress()); +} + +void tst_QVersitContactExporter::testEncodeStreetAddress() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactAddress address; + + address.setPostOfficeBox(QLatin1String("1234")); + address.setCountry(QLatin1String("Finland")); + address.setPostcode(QLatin1String("00440")); + // Special characters are not escaped by the exporter, but by the writer + address.setStreet(QLatin1String("HKKI; 1X 90")); + address.setLocality(QLatin1String("Helsinki")); + address.setContexts(QContactDetail::ContextHome); + address.setSubTypes(QContactAddress::SubTypePostal); + contact.saveDetail(&address); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard21Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("ADR")); + QVERIFY(!property.isEmpty()); + // Check parameters + QCOMPARE(property.parameters().count(), 2); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("POSTAL"))); + // Check name + QCOMPARE(property.name(), QString::fromAscii("ADR")); + CHECK_VALUE(property, QVersitProperty::CompoundType, + QStringList() << QLatin1String("1234") << QString() << QLatin1String("HKKI; 1X 90") + << QLatin1String("Helsinki") << QString() << QLatin1String("00440") + << QLatin1String("Finland")); +} + +void tst_QVersitContactExporter::testEncodeUrl() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactUrl url; + url.setUrl(QString::fromAscii("http://www.myhome.com")); + url.setContexts(QContactDetail::ContextHome); + url.setSubType(QContactUrl::SubTypeHomePage); + contact.saveDetail(&url); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("URL")); + QVERIFY(!property.isEmpty()); + // Check parameters + QCOMPARE(property.parameters().count(), 1); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); + // Check value + QCOMPARE(property.value(), url.url()); +} + +void tst_QVersitContactExporter::testEncodeUid() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactGuid guid; + + guid.setContexts(QContactDetail::ContextHome); + guid.setGuid(QString::fromAscii("0101222")); + contact.saveDetail(&guid); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard21Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("UID")); + QVERIFY(!property.isEmpty()); + // Check parameters + // Contexts are not allowed for UID + QCOMPARE(property.parameters().count(), 0); + // Check value + QCOMPARE(property.value(), guid.guid()); +} + +void tst_QVersitContactExporter::testEncodeRev() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactTimestamp timeStamp; + + // Last modified time found + QDateTime revisionTime = + QDateTime::fromString( + QString::fromAscii("M1d1y200906:01:02"), + QString::fromAscii("'M'M'd'd'y'yyyyhh:mm:ss")); + revisionTime.setTimeSpec(Qt::UTC); + timeStamp.setLastModified(revisionTime); + // Contexts not allowed in REV property, check that they are not added + timeStamp.setContexts(QContactDetail::ContextHome); + contact.saveDetail(&timeStamp); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("REV")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.parameters().count(), 0); + QString expectedValueUTCEncoded = QString::fromAscii("2009-01-01T06:01:02Z"); + QCOMPARE(property.value(), expectedValueUTCEncoded); + + // Last modified time not found, use the creation time + QDateTime emptyTime; + timeStamp.setLastModified(emptyTime); + timeStamp.setCreated(revisionTime); + contact.saveDetail(&timeStamp); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = findPropertyByName(document, QLatin1String("REV")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.value(), expectedValueUTCEncoded); + + // Last modified time found, Local Time spec not UTC + QDateTime localTime; + revisionTime.setTimeSpec(Qt::LocalTime); + timeStamp.setLastModified(revisionTime); + localTime.setTimeSpec(Qt::LocalTime); + timeStamp.setCreated(localTime); + contact.saveDetail(&timeStamp); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = findPropertyByName(document, QLatin1String("REV")); + QVERIFY(!property.isEmpty()); + QString expectedValueEncoded = QString::fromAscii("2009-01-01T06:01:02"); + QCOMPARE(property.value(), expectedValueEncoded); + + // Last modified time not found, creation time not found + timeStamp.setLastModified(emptyTime); + timeStamp.setCreated(emptyTime); + contact.saveDetail(&timeStamp); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT); +} + +void tst_QVersitContactExporter::testEncodeBirthDay() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QDate date(2009,1,1); + QContactBirthday birthDay; + birthDay.setDate(date); + // Contexts not allowed in BDAY property, check that they are not added + birthDay.setContexts(QContactDetail::ContextHome); + contact.saveDetail(&birthDay); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("BDAY")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.parameters().count(), 0); + QCOMPARE(property.value(), QString::fromAscii("2009-01-01")); +} + +void tst_QVersitContactExporter::testEncodeNote() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactNote note; + note.setNote(QString::fromAscii("My Note")); + // Contexts not allowed in NOTE property, check that they are not added + note.setContexts(QContactDetail::ContextHome); + contact.saveDetail(¬e); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("NOTE")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.parameters().count(), 0); + QCOMPARE(property.value(), note.note()); +} + +void tst_QVersitContactExporter::testEncodeGeoLocation() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactGeoLocation geoLocation; + QString longitude = QString::fromAscii("99.9"); + geoLocation.setLongitude(longitude.toDouble()); + QString latitude = QString::fromAscii("98.9"); + geoLocation.setLatitude(latitude.toDouble()); + // Contexts not allowed in GEO property, check that they are not added + geoLocation.setContexts(QContactDetail::ContextHome); + contact.saveDetail(&geoLocation); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("GEO")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.parameters().count(), 0); + QCOMPARE(property.name(), QString::fromAscii("GEO")); + CHECK_VALUE(property, QVersitProperty::CompoundType, + QStringList() << QLatin1String("99.9") << QLatin1String("98.9")); +} + +void tst_QVersitContactExporter::testEncodeOrganization() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactOrganization organization; + QVersitDocument document; + QVersitProperty property; + QString title(QString::fromAscii("Developer")); + + // TITLE + organization.setTitle(title); + contact.saveDetail(&organization); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = findPropertyByName(document, QLatin1String("TITLE")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.value(), title); + + // ORG with name + organization.setTitle(QString()); + organization.setName(QString::fromAscii("Nokia")); + contact.saveDetail(&organization); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = document.properties().at(BASE_PROPERTY_COUNT); + QCOMPARE(property.name(), QString::fromAscii("ORG")); + CHECK_VALUE(property, QVersitProperty::CompoundType, QStringList(QLatin1String("Nokia"))); + + // ORG with department/unit + organization.setName(QString()); + QStringList departments(QString::fromAscii("R&D")); + departments.append(QString::fromAscii("Qt")); + organization.setDepartment(departments); + contact.saveDetail(&organization); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = document.properties().at(BASE_PROPERTY_COUNT); + QCOMPARE(property.name(), QString::fromAscii("ORG")); + CHECK_VALUE(property, QVersitProperty::CompoundType, QStringList() + << QString() << QLatin1String("R&D") << QLatin1String("Qt")); + + // ORG with name and department/unit + organization.setName(QString::fromAscii("Nokia")); + contact.saveDetail(&organization); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = document.properties().at(BASE_PROPERTY_COUNT); + QCOMPARE(property.name(), QString::fromAscii("ORG")); + CHECK_VALUE(property, QVersitProperty::CompoundType, QStringList() + << QLatin1String("Nokia") << QLatin1String("R&D") << QLatin1String("Qt")); + + // TITLE and ORG + organization.setTitle(QString::fromAscii("Developer")); + contact.saveDetail(&organization); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+2); + property = findPropertyByName(document, QLatin1String("TITLE")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.value(), title); + property = findPropertyByName(document, QLatin1String("ORG")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.name(), QString::fromAscii("ORG")); + CHECK_VALUE(property, QVersitProperty::CompoundType, QStringList() + << QLatin1String("Nokia") << QLatin1String("R&D") << QLatin1String("Qt")); + + // ORG LOGO Test1: LOGO as remote Resouce + const QString url = QString::fromAscii("http://myhome.com/test.jpg"); + contact = createContactWithName(QLatin1String("asdf")); + organization = QContactOrganization(); + organization.setLogoUrl(url); + contact.saveDetail(&organization); + mResourceHandler->mSimulatedMimeType = QLatin1String("image/jpeg"); + mExporter->setResourceHandler(mResourceHandler); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QVERIFY(!mResourceHandler->mLoadResourceCalled); + + // Source type is encoded, but media type is not for a URL. + property = findPropertyByName(document, QLatin1String("LOGO")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.parameters().count(), 1); + + QVERIFY(property.parameters().contains( + QString::fromAscii("VALUE"), QString::fromAscii("URL"))); + + //Check property value + QCOMPARE(property.value(), url); + + // ORG LOGO Test2: LOGO File. + mResourceHandler->mSimulatedData = "simulated data"; + contact = createContactWithName(QLatin1String("asdf")); + organization = QContactOrganization(); + organization.setLogoUrl(TEST_PHOTO_FILE); + contact.saveDetail(&organization); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QVERIFY(mResourceHandler->mLoadResourceCalled); + QCOMPARE(mResourceHandler->mLocation, TEST_PHOTO_FILE); + + // It should be stored in the property as a QVariant of QByteArray + property = findPropertyByName(document, QLatin1String("LOGO")); + QVERIFY(!property.isEmpty()); + QMultiHash parameters = property.parameters(); + // Media type is encoded + QCOMPARE(parameters.count(), 1); + QVERIFY(parameters.contains( + QString::fromAscii("TYPE"), QString::fromAscii("JPEG"))); + // Verify value. + QVariant variantValue = property.variantValue(); + QVERIFY(variantValue.type() == QVariant::ByteArray); + QCOMPARE(variantValue.value(), mResourceHandler->mSimulatedData); + + // Assistant Name Test. + contact = createContactWithName(QLatin1String("asdf")); + organization = QContactOrganization(); + organization.setAssistantName(QString::fromAscii("myAssistant")); + contact.saveDetail(&organization); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = findPropertyByName(document, QLatin1String("X-ASSISTANT")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.value(), QString::fromAscii("myAssistant")); + + // Test: Role + contact = createContactWithName(QLatin1String("asdf")); + organization = QContactOrganization(); + organization.setRole(QString::fromAscii("Executive")); + contact.saveDetail(&organization); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = findPropertyByName(document, QLatin1String("ROLE")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.value(), QString::fromAscii("Executive")); + +} + +void tst_QVersitContactExporter::testEncodeAvatar() +{ + QContact contact = createContactWithName(QLatin1String("asdf")); + QContactAvatar contactAvatar; + mResourceHandler->mSimulatedData = "simulated data"; + mResourceHandler->mSimulatedMimeType = QLatin1String("image/jpeg"); + + // Test1: Web URL + const QString url = QString::fromAscii("http://www.myhome.com/test.jpg"); + contactAvatar.setImageUrl(url); + contact.saveDetail(&contactAvatar); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QVERIFY(document.properties().length() > BASE_PROPERTY_COUNT); + QVersitProperty property = findPropertyByName(document, QLatin1String("PHOTO")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.parameters().count(), 1); + QCOMPARE(property.value(), url); + QVERIFY(!mResourceHandler->mLoadResourceCalled); + + // Test 2: Local Media PHOTO + contactAvatar.setImageUrl(TEST_PHOTO_FILE); + contact.saveDetail(&contactAvatar); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QVERIFY(mResourceHandler->mLoadResourceCalled); + QCOMPARE(mResourceHandler->mLocation, TEST_PHOTO_FILE); + // verify the value + QVERIFY(document.properties().length() > BASE_PROPERTY_COUNT); + property = findPropertyByName(document, QLatin1String("PHOTO")); + QVERIFY(!property.isEmpty()); + QVariant variantValue = property.variantValue(); + QVERIFY(variantValue.type() == QVariant::ByteArray); + QCOMPARE(variantValue.value(), mResourceHandler->mSimulatedData); + QVERIFY(property.parameters().contains(QString::fromAscii("TYPE"), + QString::fromAscii("JPEG"))); +} + +void tst_QVersitContactExporter::testEncodeThumbnail() { + QImage image; + image.loadFromData(SAMPLE_GIF); + if (QImageWriter::supportedImageFormats().contains("png")) { + QContactThumbnail thumbnail; + thumbnail.setThumbnail(image); + QContact contact(createContactWithName(QLatin1String("asdf"))); + contact.saveDetail(&thumbnail); + QVERIFY(mExporter->exportContacts(QList() << contact, + QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + // verify the value + QVERIFY(document.properties().length() > BASE_PROPERTY_COUNT); + QVersitProperty property = findPropertyByName(document, QLatin1String("PHOTO")); + QVERIFY(!property.isEmpty()); + QVariant variantValue = property.variantValue(); + QVERIFY(variantValue.type() == QVariant::ByteArray); + QByteArray retrievedData = variantValue.value(); + QImage retrievedImage; + retrievedImage.loadFromData(retrievedData); + QCOMPARE(retrievedImage, image); + } +} + + +void tst_QVersitContactExporter::testEncodeEmbeddedContent() +{ + QContact contact = createContactWithName(QLatin1String("asdf")); + QContactAvatar contactAvatar; + QVariant variantValue; + + // Test 1: URL + const QString url = QString::fromAscii("http://www.myhome.com/test.jpg"); + contactAvatar.setImageUrl(url); + contact.saveDetail(&contactAvatar); + mResourceHandler->mSimulatedMimeType = QLatin1String("image/jpeg"); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QVERIFY(!mResourceHandler->mLoadResourceCalled); + QVERIFY(document.properties().size() > BASE_PROPERTY_COUNT); + QVersitProperty photoProperty = findPropertyByName(document, QLatin1String("PHOTO")); + QVERIFY(!photoProperty.isEmpty()); + QCOMPARE(photoProperty.parameters().count(), 1); + QVERIFY(photoProperty.parameters().contains( + QString::fromAscii("VALUE"),QString::fromAscii("URL"))); + QCOMPARE(photoProperty.value(), url); + + // Test 2: Local PHOTO, image loaded by the loader + contactAvatar.setImageUrl(TEST_PHOTO_FILE); + contact.saveDetail(&contactAvatar); + mResourceHandler->clear(); + mResourceHandler->mSimulatedMimeType = QLatin1String("image/jpeg"); + mResourceHandler->mSimulatedData = "simulated image data"; + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QVERIFY(mResourceHandler->mLoadResourceCalled); + QVERIFY(document.properties().size() > BASE_PROPERTY_COUNT); + photoProperty = findPropertyByName(document, QLatin1String("PHOTO")); + QVERIFY(!photoProperty.isEmpty()); + QCOMPARE(photoProperty.parameters().count(), 1); + QVERIFY(photoProperty.parameters().contains(QString::fromAscii("TYPE"), + QString::fromAscii("JPEG"))); + variantValue = photoProperty.variantValue(); + QVERIFY(variantValue.type() == QVariant::ByteArray); + QCOMPARE(variantValue.value(), mResourceHandler->mSimulatedData); + + // Without a resource handler + mExporter->setResourceHandler(0); + contactAvatar.setImageUrl(TEST_PHOTO_FILE); + contact.saveDetail(&contactAvatar); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT); + + mExporter->setResourceHandler(mResourceHandler); +} + +void tst_QVersitContactExporter::testEncodeRingtone() +{ + QContactRingtone ringtone; + mResourceHandler->clear(); + mResourceHandler->mSimulatedMimeType = QLatin1String("audio/wav"); + mResourceHandler->mSimulatedData = "simulated audio data"; + ringtone.setAudioRingtoneUrl(TEST_AUDIO_FILE); + QContact contact(createContactWithName(QLatin1String("asdf"))); + contact.saveDetail(&ringtone); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QVERIFY(mResourceHandler->mLoadResourceCalled); + QVersitProperty soundProperty = findPropertyByName(document, QLatin1String("SOUND")); + QVERIFY(!soundProperty.isEmpty()); + QCOMPARE(soundProperty.parameters().count(), 1); + QVERIFY(soundProperty.parameters().contains( + QString::fromAscii("TYPE"), + QString::fromAscii("WAV"))); + QVariant variantValue = soundProperty.variantValue(); + QVERIFY(variantValue.type() == QVariant::ByteArray); + QCOMPARE(variantValue.value(), mResourceHandler->mSimulatedData); +} + +void tst_QVersitContactExporter::testEncodeParameters() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactPhoneNumber phoneNumber; + phoneNumber.setNumber(QString::fromAscii("12345678")); + QStringList subtypes; + subtypes.append(QContactPhoneNumber::SubTypeMobile); + subtypes.append(QContactPhoneNumber::SubTypeVideo); + // Add a not supported subtype in vCard, to make sure its not encoded. + subtypes.append(QContactPhoneNumber::SubTypeDtmfMenu); + phoneNumber.setSubTypes(subtypes); + contact.saveDetail(&phoneNumber); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("TEL")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.parameters().count(), 2); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"), QString::fromAscii("CELL"))); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("VIDEO"))); +} + +void tst_QVersitContactExporter::testEncodeGender() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactGender gender; + gender.setGender(QContactGender::GenderMale); + gender.setContexts(QContactGender::ContextHome); // Should not be encoded + contact.saveDetail(&gender); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("X-GENDER")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.parameters().count(), 0); + QCOMPARE(property.value(), gender.gender()); +} + +void tst_QVersitContactExporter::testEncodeNickName() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + + // Add an extra detail + QContactGender gender; + gender.setGender(QContactGender::GenderMale); + contact.saveDetail(&gender); + + // One nickname given + QContactNickname firstNickname; + firstNickname.setNickname(QLatin1String("Homie")); + contact.saveDetail(&firstNickname); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+2); + QVersitProperty property = document.properties().at(BASE_PROPERTY_COUNT+1); + QCOMPARE(property.name(), QLatin1String("X-NICKNAME")); + CHECK_VALUE(property, QVersitProperty::ListType, QStringList(QLatin1String("Homie"))); + + // Two nicknames given, should be collated into a single property + contact = createContactWithName(QLatin1String("asdf")); + contact.saveDetail(&gender); + contact.saveDetail(&firstNickname); + QContactNickname secondNickname; + secondNickname.setNickname(QLatin1String("Jay")); + contact.saveDetail(&secondNickname); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+2); + property = findPropertyByName(document, QLatin1String("X-NICKNAME")); + QVERIFY(!property.isEmpty()); + QCOMPARE(property.name(), QString::fromAscii("X-NICKNAME")); + CHECK_VALUE(property, QVersitProperty::ListType, + QStringList() << QLatin1String("Homie") << QLatin1String("Jay")); +} + +void tst_QVersitContactExporter::testEncodeTag() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + + // Add an extra detail + QContactGender gender; + gender.setGender(QContactGender::GenderMale); + contact.saveDetail(&gender); + + // One tag given + QContactTag firstTag; + firstTag.setTag(QLatin1String("red")); + contact.saveDetail(&firstTag); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+2); + QVersitProperty property = document.properties().at(BASE_PROPERTY_COUNT+1); + QCOMPARE(property.name(), QLatin1String("CATEGORIES")); + CHECK_VALUE(property, QVersitProperty::ListType, QStringList(QLatin1String("red"))); + + // Two tags given, should be collated into a single property + contact = createContactWithName(QLatin1String("asdf")); + contact.saveDetail(&firstTag); + contact.saveDetail(&gender); + QContactTag secondTag; + secondTag.setTag(QLatin1String("green")); + contact.saveDetail(&secondTag); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+2); + property = document.properties().at(BASE_PROPERTY_COUNT+1); + QCOMPARE(property.name(), QString::fromAscii("CATEGORIES")); + CHECK_VALUE(property, QVersitProperty::ListType, + QStringList() << QLatin1String("red") << QLatin1String("green")); +} + +void tst_QVersitContactExporter::testEncodeAnniversary() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactAnniversary anniversary; + QDate date(2009,1,1); + anniversary.setOriginalDate(date); + anniversary.setContexts(QContactDetail::ContextHome); + anniversary.setSubType(QContactAnniversary::SubTypeWedding); + contact.saveDetail(&anniversary); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("X-ANNIVERSARY")); + QVERIFY(!property.isEmpty()); + // The contexts and subtypes are not defined for X-ANNIVERSARY property + QCOMPARE(property.parameters().count(), 0); + // Check value + QCOMPARE(property.value(), date.toString(Qt::ISODate)); +} + + +void tst_QVersitContactExporter::testEncodeOnlineAccount() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactOnlineAccount onlineAccount; + QString accountUri(QString::fromAscii("sip:abc@temp.com")); + onlineAccount.setAccountUri(accountUri); + + // Video sharing + onlineAccount.setSubTypes(QContactOnlineAccount::SubTypeVideoShare); + onlineAccount.setContexts(QContactDetail::ContextHome); + contact.saveDetail(&onlineAccount); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty property = findPropertyByName(document, QLatin1String("X-SIP")); + QVERIFY(!property.isEmpty()); + // Check parameters + QCOMPARE(property.parameters().count(), 2); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("SWIS"))); + // Check value + QCOMPARE(property.value(), accountUri); + + // VoIP + onlineAccount.setSubTypes(QContactOnlineAccount::SubTypeSipVoip); + onlineAccount.setContexts(QContactDetail::ContextWork); + contact.saveDetail(&onlineAccount); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = findPropertyByName(document, QLatin1String("X-SIP")); + QVERIFY(!property.isEmpty()); + // Check parameters + QCOMPARE(property.parameters().count(), 2); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("WORK"))); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("VOIP"))); + // Check value + QCOMPARE(property.value(), accountUri); + + // Plain SIP + onlineAccount.setSubTypes(QContactOnlineAccount::SubTypeSip); + onlineAccount.setContexts(QContactDetail::ContextWork); + contact.saveDetail(&onlineAccount); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = findPropertyByName(document, QLatin1String("X-SIP")); + QVERIFY(!property.isEmpty()); + // Check parameters, SIP not added as a TYPE parameter + QCOMPARE(property.parameters().count(), 1); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("WORK"))); + // Check value + QCOMPARE(property.value(), accountUri); + + // IMPP / X-IMPP + onlineAccount.setSubTypes(QContactOnlineAccount::SubTypeImpp); + onlineAccount.setContexts(QContactDetail::ContextHome); + contact.saveDetail(&onlineAccount); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + property = findPropertyByName(document, QLatin1String("X-IMPP")); + QVERIFY(!property.isEmpty()); + // Check parameters, SIP not added as a TYPE parameter + QCOMPARE(property.parameters().count(), 1); + QVERIFY(property.parameters().contains( + QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); + // Check value + QCOMPARE(property.value(), accountUri); + + // Other subtypes not converted + onlineAccount.setSubTypes(QString::fromAscii("INVALIDSUBTYPE")); + contact.saveDetail(&onlineAccount); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT); +} + +void tst_QVersitContactExporter::testEncodeFamily() +{ + QContact contact(createContactWithName(QLatin1String("asdf"))); + QContactFamily family; + + // No spouse, no family + family.setContexts(QContactDetail::ContextHome); + contact.saveDetail(&family); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT); + + // Only spouse present + QString spouce = QString::fromAscii("ABC"); + family.setSpouse(spouce); + contact.saveDetail(&family); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+1); + QVersitProperty spouseProperty = findPropertyByName(document, QLatin1String("X-SPOUSE")); + QVERIFY(!spouseProperty.isEmpty()); + QCOMPARE(spouseProperty.parameters().count(), 0); + QCOMPARE(spouseProperty.value(), spouce); + + // Spouse and children + QStringList children; + children << QString::fromAscii("A") << QString::fromAscii("B") ; + family.setChildren(children); + family.setSpouse(spouce); + contact.saveDetail(&family); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard30Type)); + document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), BASE_PROPERTY_COUNT+2); + spouseProperty = findPropertyByName(document, QLatin1String("X-SPOUSE")); + QVERIFY(!spouseProperty.isEmpty()); + QCOMPARE(spouseProperty.parameters().count(), 0); + QCOMPARE(spouseProperty.value(), spouce); + QVersitProperty childrenProperty = findPropertyByName(document, QLatin1String("X-CHILDREN")); + QVERIFY(!spouseProperty.isEmpty()); + QCOMPARE(childrenProperty.parameters().count(), 0); + QCOMPARE(childrenProperty.name(), QString::fromAscii("X-CHILDREN")); + CHECK_VALUE(childrenProperty, QVersitProperty::ListType, children); +} + + +void tst_QVersitContactExporter::testEncodeDisplayLabel() +{ + QContact contact; + QContactName contactName; + + // No display label, but QContactName found + contactName.setFirstName(QString::fromAscii("First")); + contactName.setLastName(QString::fromAscii("Last")); + contactName.setMiddleName(QString::fromAscii("Middle")); + contact.saveDetail(&contactName); + QVERIFY(mExporter->exportContacts(QList() << contact, QVersitDocument::VCard21Type)); + QVersitDocument document = mExporter->documents().first(); + QCOMPARE(document.properties().count(), 2); + QVersitProperty displayProperty = document.properties().at(0); + QCOMPARE(displayProperty.name(), QString::fromAscii("FN")); + QCOMPARE(displayProperty.value(), QString::fromAscii("First Last")); + QVersitProperty nameProperty = document.properties().at(1); + QCOMPARE(nameProperty.name(), QString::fromAscii("N")); + CHECK_VALUE(nameProperty, QVersitProperty::CompoundType, QStringList() + << QLatin1String("Last") << QLatin1String("First") << QLatin1String("Middle") + << QString() << QString()); +} + +void tst_QVersitContactExporter::testDefaultResourceHandler() +{ + QVersitDefaultResourceHandler handler; + QByteArray contents; + QString mimeType; + handler.loadResource(QLatin1String("test.jpg"), &contents, &mimeType); + QCOMPARE(mimeType, QLatin1String("image/jpeg")); + + QVersitProperty property; + QString location; + QVERIFY(!handler.saveResource("test contents", property, &location)); +} + +// Test utility functions +QContact tst_QVersitContactExporter::createContactWithName(QString name) +{ + QContact contact; + QContactName nameDetail; + nameDetail.setFirstName(name); + contact.saveDetail(&nameDetail); + return contact; +} + +QContactDetail tst_QVersitContactExporter::searchDetail( + QList details, + QString search) +{ + QContactDetail detail; + for (int i= 0; i < details.count(); i++) { + if ( details.at(i).definitionName() == search ) + detail = details.at(i); + } + return detail; +} + +QVersitProperty tst_QVersitContactExporter::findPropertyByName( + const QVersitDocument &document, const QString &propertyName) +{ + foreach (const QVersitProperty& property, document.properties()) { + if (property.name() == propertyName) + return property; + } + return QVersitProperty(); +} + +QTEST_MAIN(tst_QVersitContactExporter) + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitcontactexporter/tst_qversitcontactexporter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitcontactexporter/tst_qversitcontactexporter.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,110 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 tst_QVERSITCONTACTEXPORTER_H +#define tst_QVERSITCONTACTEXPORTER_H + +#include +#include +#include +#include +#include + +QTM_BEGIN_NAMESPACE + +class QVersitContactExporter; +class QVersitContactExporterPrivate; +class QVersitDocument; +class QVersitProperty; +class MyQVersitResourceHandler; +class MyQVersitContactExporterDetailHandler; + +QTM_END_NAMESPACE +QTM_USE_NAMESPACE + +class tst_QVersitContactExporter : public QObject +{ + Q_OBJECT + +private slots: + void init(); + void cleanup(); + + void testConvertContact(); + void testContactDetailHandler(); + void testEncodeName(); + void testEncodePhoneNumber(); + void testEncodeEmailAddress(); + void testEncodeStreetAddress(); + void testEncodeUrl(); + void testEncodeParameters(); + void testEncodeUid(); + void testEncodeRev(); + void testEncodeBirthDay(); + void testEncodeNote(); + void testEncodeGeoLocation(); + void testEncodeOrganization(); + void testEncodeEmbeddedContent(); + void testEncodeRingtone(); + void testEncodeGender(); + void testEncodeNickName(); + void testEncodeTag(); + void testEncodeAnniversary(); + void testEncodeOnlineAccount(); + void testEncodeFamily(); + void testEncodeAvatar(); + void testEncodeThumbnail(); + void testEncodeDisplayLabel(); + void testDefaultResourceHandler(); + +private: + // Test Utility Functions + QContact createContactWithName(QString name); + QContactDetail searchDetail(QList details, QString search); + QVersitProperty findPropertyByName(const QVersitDocument& document,const QString& propertyName); + +private: // Data + QVersitContactExporter* mExporter; + MyQVersitResourceHandler* mResourceHandler; + MyQVersitContactExporterDetailHandler* mDetailHandler; +}; + +#endif // tst_QVERSITCONTACTEXPORTER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitcontactexporter/ut_qversitcontactexporter.cpp --- a/qtmobility/tests/auto/qversitcontactexporter/ut_qversitcontactexporter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1304 +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 Qt Mobility Components. -** -** $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 "ut_qversitcontactexporter.h" -#include "qversitcontactexporter.h" -#include "qversitcontactexporter_p.h" -#include "qversitproperty.h" -#include "qversitdefs_p.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QTM_BEGIN_NAMESPACE - -class MyQVersitContactExporterDetailHandler : public QVersitContactExporterDetailHandler -{ -public: - MyQVersitContactExporterDetailHandler() : mPreProcess(false) - { - } - - bool preProcessDetail(const QContact& contact, - const QContactDetail& detail, - QVersitDocument* document) - { - Q_UNUSED(contact) - Q_UNUSED(document) - mPreProcessedDetails.append(detail); - return mPreProcess; - } - - bool postProcessDetail(const QContact& contact, - const QContactDetail& detail, - bool alreadyProcessed, - QVersitDocument* document) - { - Q_UNUSED(contact) - Q_UNUSED(document) - if (!alreadyProcessed) - mUnknownDetails.append(detail); - else - mPostProcessedDetails.append(detail); - return false; - } - - void clear() - { - mPreProcess = false; - mDefinitionNamesToProcess.clear(); - mUnknownDetails.clear(); - mPreProcessedDetails.clear(); - mPostProcessedDetails.clear(); - } - - // a hook to control what preProcess returns: - bool mPreProcess; - QStringList mDefinitionNamesToProcess; - QList mUnknownDetails; - QList mPreProcessedDetails; - QList mPostProcessedDetails; -}; - -class MyQVersitResourceHandler : public QVersitResourceHandler -{ -public: - MyQVersitResourceHandler() - : mLoadResourceCalled(false), - mLoadSuccess(true) - { - } - - bool loadResource(const QString& location, QByteArray* contents, QString* mimeType) - { - mLocation = location; - *contents = mSimulatedData; - *mimeType = mSimulatedMimeType; - mLoadResourceCalled = true; - return mLoadSuccess; - } - - bool saveResource(const QByteArray &contents, const QVersitProperty &property, QString *location) - { - Q_UNUSED(contents) - Q_UNUSED(property) - Q_UNUSED(location) - return false; - } - - void clear() - { - mSimulatedData.clear(); - mSimulatedMimeType.clear(); - mLocation.clear(); - mLoadResourceCalled = false; - mLoadSuccess = true; - } - - QByteArray mSimulatedData; - QString mSimulatedMimeType; - QString mLocation; - bool mLoadResourceCalled; - bool mLoadSuccess; // A hook to control what loadResource returns. -}; - -const static QByteArray SAMPLE_GIF(QByteArray::fromBase64( - "R0lGODlhEgASAIAAAAAAAP///yH5BAEAAAEALAAAAAASABIAAAIdjI+py+0G" - "wEtxUmlPzRDnzYGfN3KBaKGT6rDmGxQAOw==")); - -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -const QString TEST_PHOTO_FILE(QLatin1String("versitTest001.jpg")); -const QString TEST_AUDIO_FILE(QLatin1String("versitTest001.wav")); - -void UT_QVersitContactExporter::init() -{ - mExporter = new QVersitContactExporter(); - mDetailHandler = new MyQVersitContactExporterDetailHandler; - mExporter->setDetailHandler(mDetailHandler); - mResourceHandler = new MyQVersitResourceHandler; - mExporter->setResourceHandler(mResourceHandler); -} - -void UT_QVersitContactExporter::cleanup() -{ - QVERIFY(mExporter->detailHandler() == mDetailHandler); - mExporter->setDetailHandler(0); - delete mDetailHandler; - QVERIFY(mExporter->resourceHandler() == mResourceHandler); - mExporter->setResourceHandler(0); - delete mResourceHandler; - delete mExporter; -} - -void UT_QVersitContactExporter::testConvertContact() -{ - QContact contact; - - // Adding name to the contact - QContactName name; - name.setFirstName(QString::fromAscii("Moido")); - contact.saveDetail(&name); - - // Adding phone number to the Contact. - QContactPhoneNumber phoneNumber; - phoneNumber.setNumber(QString::fromAscii("12345678")); - contact.saveDetail(&phoneNumber); - - // Convert contact into versit properties - QList list; - list.append(contact); - QList documents = mExporter->exportContacts(list); - - // Each Contact has display label detail by default. Display label is enocded - // if some value exisit for the Label or if value for Name exisit. - QCOMPARE(documents.size(), 1); - QCOMPARE(documents.first().properties().count(), 3); -} - -void UT_QVersitContactExporter::testContactDetailHandler() -{ - // Test1: Un-supported Avatar Test - QContact contact; - QVersitDocument document; - QContactAvatar contactAvatar; - contactAvatar.setSubType(QContactAvatar::SubTypeTexturedMesh); - contact.saveDetail(&contactAvatar); - QList contacts; - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); - QList unknownDetails = mDetailHandler->mUnknownDetails; - QVERIFY(unknownDetails.size() > 0); - QString definitionName = contactAvatar.definitionName(); - QContactDetail detail = searchDetail(unknownDetails,definitionName); - QCOMPARE(definitionName, detail.definitionName()); - - // Test2: Un-supported Online Account - QContactOnlineAccount onlineAccount; - QString testUri = QString::fromAscii("sip:abc@temp.com"); - onlineAccount.setAccountUri(testUri); - onlineAccount.setSubTypes(QString::fromAscii("unsupported")); - contact.saveDetail(&onlineAccount); - contacts.clear(); - contacts.append(contact); - mDetailHandler->clear(); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); - unknownDetails = mDetailHandler->mUnknownDetails; - QVERIFY(unknownDetails.size() > 0); - definitionName = onlineAccount.definitionName(); - detail = searchDetail(unknownDetails, definitionName); - QCOMPARE(definitionName, detail.definitionName()); - - // Test that preProcessDetail return true stops the exporter from doing anything. - contact.clearDetails(); - QContactName contactName; - contactName.setFirstName(QLatin1String("John")); - contact.saveDetail(&contactName); - mDetailHandler->clear(); - mDetailHandler->mPreProcess = true; - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); - QVERIFY(mDetailHandler->mPreProcessedDetails.count() > 0); - QCOMPARE(mDetailHandler->mPostProcessedDetails.count(), 0); - QCOMPARE(mDetailHandler->mUnknownDetails.count(), 0); - - QVERIFY(mExporter->detailHandler() == mDetailHandler); -} - -void UT_QVersitContactExporter::testEncodeName() -{ - QContact contact; - QContactName name; - - // vCard 2.1 - name.setFirstName(QString::fromAscii("Heido")); - name.setLastName(QString::fromAscii("HH")); - name.setMiddleName(QString::fromAscii("A")); - name.setPrefix(QString::fromAscii("Mr.")); - name.setContexts(QContactDetail::ContextHome); - contact.saveDetail(&name); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - - // Each Contact has display label detail by default. Display label is enocded - // if some value exisit for the Label or if value for Name exisit. - QCOMPARE(document.properties().count(), 2); - - QVersitProperty displayProperty = document.properties().at(0); - // Check name - QCOMPARE(displayProperty.name(), QString::fromAscii("FN")); - // Check value - QCOMPARE(displayProperty.value(), QString::fromAscii("Heido HH")); - - QVersitProperty nameProperty = document.properties().at(1); - // Check parameters, contexts not allowed for N property - QCOMPARE(nameProperty.parameters().count(), 0); - // Check name - QCOMPARE(nameProperty.name(), QString::fromAscii("N")); - // Check value - QCOMPARE(nameProperty.value(), QString::fromAscii("HH;Heido;A;Mr.;")); - - // vCard 3.0, special characters in the name parts are backslash escaped - contact.removeDetail(&name); - name.setFirstName(QString::fromAscii("Hom,er")); - name.setLastName(QString::fromAscii("Simp;son")); - name.setMiddleName(QString::fromAscii("J;")); - name.setPrefix(QString::fromAscii(";Mr.")); - name.setSuffix(QString::fromAscii("Sir,")); - contact.saveDetail(&name); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts, QVersitDocument::VCard30Type).first(); - QCOMPARE(document.type(),QVersitDocument::VCard30Type); - - // Each Contact has display label detail by default. Display label is enocded - // if some value exists for the Label or if value for Name exisit. - QCOMPARE(document.properties().count(), 2); - displayProperty = document.properties().at(0); - nameProperty = document.properties().at(1); - // Check parameters - QCOMPARE(displayProperty.parameters().count(), 0); - QCOMPARE(nameProperty.parameters().count(), 0); - // Check name - QCOMPARE(displayProperty.name(), QString::fromAscii("FN")); - QCOMPARE(nameProperty.name(), QString::fromAscii("N")); - // Check value - - QCOMPARE(displayProperty.value(), QString::fromAscii("Hom\\,er Simp\\;son")); - - QCOMPARE(nameProperty.value(), - QString::fromAscii("Simp\\;son;Hom\\,er;J\\;;\\;Mr.;Sir\\,")); -} - -void UT_QVersitContactExporter::testEncodePhoneNumber() -{ - QContact contact; - QContactPhoneNumber phoneNumber; - phoneNumber.setNumber(QString::fromAscii("12345678")); - phoneNumber.setContexts(QContactDetail::ContextHome); - phoneNumber.setSubTypes(QContactPhoneNumber::SubTypeMobile); - contact.saveDetail(&phoneNumber); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - // Check parameters - QCOMPARE(property.parameters().count(), 2); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("CELL"))); - // Check name - QCOMPARE(property.name(), QString::fromAscii("TEL")); - // Check value - QCOMPARE(property.value(), phoneNumber.number()); -} - -void UT_QVersitContactExporter::testEncodeEmailAddress() -{ - QContact contact; - QContactEmailAddress email; - email.setEmailAddress(QString::fromAscii("test@test")); - email.setContexts(QContactDetail::ContextHome); - contact.saveDetail(&email); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - // Check parameters - QCOMPARE(property.parameters().count(), 1); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); - // Check name - QCOMPARE(property.name(), QString::fromAscii("EMAIL")); - // Check value - QCOMPARE(property.value(), email.emailAddress()); -} - -void UT_QVersitContactExporter::testEncodeStreetAddress() -{ - QContact contact; - QContactAddress address; - - // vCard 2.1 - address.setCountry(QString::fromAscii("Finland")); - address.setPostcode(QString::fromAscii("00440")); - address.setStreet(QString::fromAscii("HKKI 1X 90")); - address.setLocality(QString::fromAscii("Helsinki")); - address.setContexts(QContactDetail::ContextHome); - address.setSubTypes(QContactAddress::SubTypePostal); - contact.saveDetail(&address); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - // Check parameters - QCOMPARE(property.parameters().count(), 2); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("POSTAL"))); - // Check name - QCOMPARE(property.name(), QString::fromAscii("ADR")); - // Check value - QCOMPARE(property.value(), QString::fromAscii(";;HKKI 1X 90;Helsinki;;00440;Finland")); - - // vCard 3.0, special characters in the address parts are backslash escaped - contact.removeDetail(&address); - address.setPostOfficeBox(QString::fromAscii("PO;Box")); - address.setStreet(QString::fromAscii("My;Street")); - address.setLocality(QString::fromAscii("My;Town")); - address.setRegion(QString::fromAscii("My;State")); - address.setPostcode(QString::fromAscii("12345;")); - address.setCountry(QString::fromAscii("My;Country")); - contact.saveDetail(&address); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts, QVersitDocument::VCard30Type).first(); - QCOMPARE(document.type(),QVersitDocument::VCard30Type); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - // Check name - QCOMPARE(property.name(), QString::fromAscii("ADR")); - // Check value - QCOMPARE(property.value(), - QString::fromAscii("PO\\;Box;;My\\;Street;My\\;Town;My\\;State;12345\\;;My\\;Country")); -} - -void UT_QVersitContactExporter::testEncodeUrl() -{ - QContact contact; - QContactUrl url; - url.setUrl(QString::fromAscii("http://www.myhome.com")); - url.setContexts(QContactDetail::ContextHome); - url.setSubType(QContactUrl::SubTypeHomePage); - contact.saveDetail(&url); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - // Check parameters - QCOMPARE(property.parameters().count(), 1); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); - // Check name - QCOMPARE(property.name(), QString::fromAscii("URL")); - // Check value - QCOMPARE(property.value(), url.url()); -} - -void UT_QVersitContactExporter::testEncodeUid() -{ - QContact contact; - QContactGuid guid; - - // vCard 2.1 - guid.setContexts(QContactDetail::ContextHome); - guid.setGuid(QString::fromAscii("0101222")); - contact.saveDetail(&guid); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - // Check parameters - // Contexts are not allowed for UID - QCOMPARE(property.parameters().count(), 0); - // Check name - QCOMPARE(property.name(), QString::fromAscii("UID")); - // Check value - QCOMPARE(property.value(), guid.guid()); - - // vCard 3.0, special characters in the value are backslash escaped - contact.removeDetail(&guid); - guid.setGuid(QString::fromAscii("1;2,3\r\n4\\5")); - contact.saveDetail(&guid); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts, QVersitDocument::VCard30Type).first(); - QCOMPARE(document.type(),QVersitDocument::VCard30Type); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - // Check name - QCOMPARE(property.name(), QString::fromAscii("UID")); - // Check value - QCOMPARE(property.value(), QString::fromAscii("1\\;2\\,3\\n4\\\\5")); -} - -void UT_QVersitContactExporter::testEncodeRev() -{ - QContact contact; - QContactTimestamp timeStamp; - - // Last modified time found - QDateTime revisionTime = - QDateTime::fromString( - QString::fromAscii("M1d1y200906:01:02"), - QString::fromAscii("'M'M'd'd'y'yyyyhh:mm:ss")); - revisionTime.setTimeSpec(Qt::UTC); - timeStamp.setLastModified(revisionTime); - // Contexts not allowed in REV property, check that they are not added - timeStamp.setContexts(QContactDetail::ContextHome); - contact.saveDetail(&timeStamp); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - QCOMPARE(property.parameters().count(), 0); - QCOMPARE(property.name(), QString::fromAscii("REV")); - QString expectedValueUTCEncoded = QString::fromAscii("2009-01-01T06:01:02Z"); - QCOMPARE(property.value(), expectedValueUTCEncoded); - - // Last modified time not found, use the creation time - QDateTime emptyTime; - timeStamp.setLastModified(emptyTime); - timeStamp.setCreated(revisionTime); - contact.saveDetail(&timeStamp); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - QCOMPARE(property.value(), expectedValueUTCEncoded); - - // Last modified time found, Local Time spec not UTC - QDateTime localTime; - timeStamp.setLastModified(revisionTime); - timeStamp.setCreated(localTime); - revisionTime.setTimeSpec(Qt::LocalTime); - contact.saveDetail(&timeStamp); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - QString expectedValueEncoded = QString::fromAscii("2009-01-01T06:01:02"); - QCOMPARE(property.value(), expectedValueUTCEncoded); - - // Last modified time not found, creation time not found - timeStamp.setLastModified(emptyTime); - timeStamp.setCreated(emptyTime); - contact.saveDetail(&timeStamp); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); -} - -void UT_QVersitContactExporter::testEncodeBirthDay() -{ - QContact contact; - QDate date(2009,1,1); - QContactBirthday birthDay; - birthDay.setDate(date); - // Contexts not allowed in BDAY property, check that they are not added - birthDay.setContexts(QContactDetail::ContextHome); - contact.saveDetail(&birthDay); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - QCOMPARE(property.parameters().count(), 0); - QCOMPARE(property.name(), QString::fromAscii("BDAY")); - QCOMPARE(property.value(), QString::fromAscii("2009-01-01")); -} - -void UT_QVersitContactExporter::testEncodeNote() -{ - QContact contact; - QContactNote note; - note.setNote(QString::fromAscii("My Note")); - // Contexts not allowed in NOTE property, check that they are not added - note.setContexts(QContactDetail::ContextHome); - contact.saveDetail(¬e); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - QCOMPARE(property.parameters().count(), 0); - QCOMPARE(property.name(), QString::fromAscii("NOTE")); - QCOMPARE(property.value(), note.note()); -} - -void UT_QVersitContactExporter::testEncodeGeoLocation() -{ - QContact contact; - QContactGeoLocation geoLocation; - QString longitude = QString::fromAscii("99.9"); - geoLocation.setLongitude(longitude.toDouble()); - QString latitude = QString::fromAscii("98.9"); - geoLocation.setLatitude(latitude.toDouble()); - // Contexts not allowed in GEO property, check that they are not added - geoLocation.setContexts(QContactDetail::ContextHome); - contact.saveDetail(&geoLocation); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - QCOMPARE(property.parameters().count(), 0); - QCOMPARE(property.name(), QString::fromAscii("GEO")); - QString expectedValue = longitude + QString::fromAscii(",") + latitude; - QCOMPARE(property.value(), expectedValue); -} - -void UT_QVersitContactExporter::testEncodeOrganization() -{ - QList contacts; - QContact contact; - QContactOrganization organization; - QVersitDocument document; - QVersitProperty property; - QString title(QString::fromAscii("Developer")); - QString organizationName(QString::fromAscii("Nokia")); - QString department(QString::fromAscii("R&D")); - - // TITLE - organization.setTitle(title); - contact.saveDetail(&organization); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - QCOMPARE(property.name(), QString::fromAscii("TITLE")); - QCOMPARE(property.value(), title); - - // ORG with name - organization.setTitle(QString()); - organization.setName(QString::fromAscii("Nokia")); - contact.saveDetail(&organization); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - QCOMPARE(property.name(), QString::fromAscii("ORG")); - QCOMPARE(property.value(), QString::fromAscii("Nokia;")); - - // ORG with department/unit - organization.setName(QString()); - QStringList departments(QString::fromAscii("R&D")); - departments.append(QString::fromAscii("Qt")); - organization.setDepartment(departments); - contact.saveDetail(&organization); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - QCOMPARE(property.name(), QString::fromAscii("ORG")); - QCOMPARE(property.value(), QString::fromAscii(";R&D;Qt")); - - // ORG with name and department/unit - organization.setName(QString::fromAscii("Nokia")); - contact.saveDetail(&organization); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - QCOMPARE(property.name(), QString::fromAscii("ORG")); - QCOMPARE(property.value(), QString::fromAscii("Nokia;R&D;Qt")); - - // TITLE and ORG - organization.setTitle(QString::fromAscii("Developer")); - contact.saveDetail(&organization); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 2); - property = document.properties().at(0); - QCOMPARE(property.name(), QString::fromAscii("TITLE")); - QCOMPARE(property.value(), title); - property = document.properties().at(1); - QCOMPARE(property.name(), QString::fromAscii("ORG")); - QCOMPARE(property.value(), QString::fromAscii("Nokia;R&D;Qt")); - - // ORG LOGO Test1: LOGO as remote Resouce - const QString url = QString::fromAscii("http://myhome.com/test.jpg"); - contact = QContact(); - organization = QContactOrganization(); - organization.setLogo(url); - contact.saveDetail(&organization); - contacts.clear(); - contacts.append(contact); - mResourceHandler->mSimulatedMimeType = QLatin1String("image/jpeg"); - mExporter->setResourceHandler(mResourceHandler); - document = mExporter->exportContacts(contacts).first(); - QVERIFY(!mResourceHandler->mLoadResourceCalled); - - // Source type is encoded, but media type is not for a URL. - QCOMPARE(document.properties().at(0).parameters().count(), 1); - - QVERIFY(document.properties().at(0).parameters().contains( - QString::fromAscii("VALUE"), QString::fromAscii("URL"))); - - //Check property Name - QString propertyName = document.properties().at(0).name(); - QCOMPARE(propertyName, QString::fromAscii("LOGO")); - - //Check property value - QString value = document.properties().at(0).value(); - QCOMPARE(value, url); - - // ORG LOGO Test2: LOGO File. - mResourceHandler->mSimulatedData = "simulated data"; - contact = QContact(); - organization = QContactOrganization(); - organization.setLogo(TEST_PHOTO_FILE); - contact.saveDetail(&organization); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QVERIFY(mResourceHandler->mLoadResourceCalled); - QCOMPARE(mResourceHandler->mLocation, TEST_PHOTO_FILE); - - // It should be stored in the property as a QVariant of QByteArray - property = document.properties().at(0); - QMultiHash parameters = property.parameters(); - // Media type is encoded - QCOMPARE(parameters.count(), 1); - QVERIFY(parameters.contains( - QString::fromAscii("TYPE"), QString::fromAscii("JPEG"))); - // Verify value. - QVariant variantValue = property.variantValue(); - QVERIFY(variantValue.type() == QVariant::ByteArray); - QCOMPARE(variantValue.value(), mResourceHandler->mSimulatedData); - - // Assistant Name Test. - contact = QContact(); - organization = QContactOrganization(); - organization.setAssistantName(QString::fromAscii("myAssistant")); - contact.saveDetail(&organization); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - QCOMPARE(property.name(), QString::fromAscii("X-ASSISTANT")); - QCOMPARE(property.value(), QString::fromAscii("myAssistant")); - - // Test: Role - contact = QContact(); - organization = QContactOrganization(); - organization.setRole(QString::fromAscii("Executive")); - contact.saveDetail(&organization); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - QCOMPARE(property.name(), QString::fromAscii("ROLE")); - QCOMPARE(property.value(), QString::fromAscii("Executive")); - -} - -void UT_QVersitContactExporter::testEncodeAvatar() -{ - QContact contact; - QContactAvatar contactAvatar; - QPixmap pixmap; - pixmap.loadFromData(SAMPLE_GIF); - mResourceHandler->mSimulatedData = "simulated data"; - mResourceHandler->mSimulatedMimeType = QLatin1String("image/jpeg"); - - // Test1: Web URL - const QString url = QString::fromAscii("http://www.myhome.com/test.jpg"); - contactAvatar.setAvatar(url); - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contact.saveDetail(&contactAvatar); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QVERIFY(document.properties().length() > 0); - QVersitProperty property = document.properties().at(0); - QCOMPARE(property.parameters().count(), 1); - QVERIFY(!mResourceHandler->mLoadResourceCalled); - - // Test 2: Local Media PHOTO - contactAvatar.setAvatar(TEST_PHOTO_FILE); - contactAvatar.setPixmap(pixmap); // Should be ignored if the file can be loaded. - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QVERIFY(mResourceHandler->mLoadResourceCalled); - QCOMPARE(mResourceHandler->mLocation, TEST_PHOTO_FILE); - // verify the value - QVERIFY(document.properties().length() > 0); - property = document.properties().at(0); - QVariant variantValue = property.variantValue(); - QVERIFY(variantValue.type() == QVariant::ByteArray); - QCOMPARE(variantValue.value(), mResourceHandler->mSimulatedData); - QVERIFY(property.parameters().contains(QString::fromAscii("TYPE"), - QString::fromAscii("JPEG"))); - - // Test3: UnSupported Media Type, properties and parameters are not encoded - mResourceHandler->clear(); - const QString testUrl2 = QString::fromAscii("http://www.myhome.com/test.jpg"); - contactAvatar.setAvatar(testUrl2); - // un-supported media type is encoded - contactAvatar.setSubType(QContactAvatar::SubTypeTexturedMesh); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); - QVERIFY(!mResourceHandler->mLoadResourceCalled); - - // Test 4: Load resource fails but there is a pixmap. The pixmap should be saved. - // This feature is only supported if we can write PNGs. - if (QImageWriter::supportedImageFormats().contains("png")) { - mResourceHandler->clear(); - mResourceHandler->mLoadSuccess = false; - contactAvatar.setAvatar(QLatin1String("")); - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contactAvatar.setPixmap(pixmap); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - // verify the value - QVERIFY(document.properties().length() > 0); - property = document.properties().at(0); - variantValue = property.variantValue(); - QVERIFY(variantValue.type() == QVariant::ByteArray); - QByteArray retrievedData = variantValue.value(); - QPixmap retrievedPixmap; - retrievedPixmap.loadFromData(retrievedData); - QCOMPARE(retrievedPixmap, pixmap); - } -} - - -void UT_QVersitContactExporter::testEncodeEmbeddedContent() -{ - QContact contact; - QContactAvatar contactAvatar; - QVariant variantValue; - - // Test 1: URL - const QString url = QString::fromAscii("http://www.myhome.com/test.jpg"); - contactAvatar.setAvatar(url); - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contact.saveDetail(&contactAvatar); - QList contacts; - contacts.append(contact); - mResourceHandler->mSimulatedMimeType = QLatin1String("image/jpeg"); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QVERIFY(!mResourceHandler->mLoadResourceCalled); - QVersitProperty photoProperty = document.properties().at(0); - QCOMPARE(photoProperty.parameters().count(), 1); - QVERIFY(photoProperty.parameters().contains( - QString::fromAscii("VALUE"),QString::fromAscii("URL"))); - QCOMPARE(photoProperty.name(), QString::fromAscii("PHOTO")); - QCOMPARE(photoProperty.value(), url); - - // Test 2: Local PHOTO, image loaded by the loader - contactAvatar.setAvatar(TEST_PHOTO_FILE); - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - mResourceHandler->clear(); - mResourceHandler->mSimulatedMimeType = QLatin1String("image/jpeg"); - mResourceHandler->mSimulatedData = "simulated image data"; - document = mExporter->exportContacts(contacts).first(); - QVERIFY(mResourceHandler->mLoadResourceCalled); - photoProperty = document.properties().at(0); - QCOMPARE(photoProperty.parameters().count(), 1); - QVERIFY(photoProperty.parameters().contains(QString::fromAscii("TYPE"), - QString::fromAscii("JPEG"))); - variantValue = photoProperty.variantValue(); - QVERIFY(variantValue.type() == QVariant::ByteArray); - QCOMPARE(variantValue.value(), mResourceHandler->mSimulatedData); - - // Test 3: Local SOUND - mResourceHandler->clear(); - mResourceHandler->mSimulatedMimeType = QLatin1String("audio/wav"); - mResourceHandler->mSimulatedData = "simulated audio data"; - contactAvatar.setAvatar(TEST_AUDIO_FILE); - contactAvatar.setSubType(QContactAvatar::SubTypeAudioRingtone); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QVERIFY(mResourceHandler->mLoadResourceCalled); - QVersitProperty soundProperty = document.properties().at(0); - QCOMPARE(soundProperty.parameters().count(), 1); - QVERIFY(soundProperty.parameters().contains( - QString::fromAscii("TYPE"), - QString::fromAscii("WAV"))); - variantValue = soundProperty.variantValue(); - QVERIFY(variantValue.type() == QVariant::ByteArray); - QCOMPARE(variantValue.value(), mResourceHandler->mSimulatedData); - - // Test 4: Unsupported media type, properties and parameters are not encoded - mResourceHandler->clear(); - mResourceHandler->mSimulatedMimeType = QLatin1String("text/jpeg"); - const QString testUrl2 = QString::fromAscii("http://www.myhome.com/test.jpg"); - contactAvatar.setAvatar(testUrl2); - // un-supported media type is encoded - contactAvatar.setSubType(QContactAvatar::SubTypeTexturedMesh); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); - QVERIFY(!mResourceHandler->mLoadResourceCalled); - - // Without a resource handler - mExporter->setResourceHandler(0); - contactAvatar.setAvatar(TEST_PHOTO_FILE); - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); - - mExporter->setResourceHandler(mResourceHandler); -} - -void UT_QVersitContactExporter::testEncodeParameters() -{ - QContact contact; - QContactPhoneNumber phoneNumber; - phoneNumber.setNumber(QString::fromAscii("12345678")); - QStringList subtypes; - subtypes.append(QContactPhoneNumber::SubTypeMobile); - subtypes.append(QContactPhoneNumber::SubTypeVideo); - // Add a not supported subtype in vCard, to make sure its not encoded. - subtypes.append(QContactPhoneNumber::SubTypeDtmfMenu); - phoneNumber.setSubTypes(subtypes); - contact.saveDetail(&phoneNumber); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - QCOMPARE(property.parameters().count(), 2); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"), QString::fromAscii("CELL"))); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("VIDEO"))); -} - -void UT_QVersitContactExporter::testIsValidRemoteUrl() -{ - QContact contact; - QContactAvatar contactAvatar; - mResourceHandler->mLoadSuccess = false; - - // Test1: http URL - QString url = QString::fromAscii("http://www.nonoh.com/test.jpg"); - contactAvatar.setAvatar(url); - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contact.saveDetail(&contactAvatar); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - - // Test2: FTP URL - url = QString::fromAscii("ftp://nonoh.com/test.jpg"); - contactAvatar.setAvatar(url); - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - - // Test3: NEW Protocol URL - url = QString::fromAscii("myProtocol://nonoh.com/test.jpg"); - contactAvatar.setAvatar(url); - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - - // Test4: URL without scheme - url = QString::fromAscii("www.nonoh.com/test.jpg"); - contactAvatar.setAvatar(url); - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - - // Test5: File Name but File does not Exisit - url = QString::fromAscii("c:/filedoesnotexisit.jok"); - contactAvatar.setAvatar(url); - contactAvatar.setSubType(QContactAvatar::SubTypeImage); - contact.saveDetail(&contactAvatar); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); -} - -void UT_QVersitContactExporter::testEncodeGender() -{ - QContact contact; - QContactGender gender; - gender.setGender(QContactGender::GenderMale); - gender.setContexts(QContactGender::ContextHome); // Should not be encoded - contact.saveDetail(&gender); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - QCOMPARE(property.parameters().count(), 0); - QCOMPARE(property.name(), QString::fromAscii("X-GENDER")); - QCOMPARE(property.value(), gender.gender()); -} - -void UT_QVersitContactExporter::testEncodeNickName() -{ - QContact contact; - - // Add an extra detail - QContactGender gender; - gender.setGender(QContactGender::GenderMale); - contact.saveDetail(&gender); - - // One nickname given - QContactNickname firstNickname; - firstNickname.setNickname(QLatin1String("Homie")); - contact.saveDetail(&firstNickname); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 2); - QVersitProperty property = document.properties().at(1); - QCOMPARE(property.name(), QLatin1String("X-NICKNAME")); - QCOMPARE(property.value(), QLatin1String("Homie")); - - // Two nicknames given, should be collated into a single property - contact.clearDetails(); - contact.saveDetail(&gender); - contact.saveDetail(&firstNickname); - QContactNickname secondNickname; - secondNickname.setNickname(QLatin1String("Jay")); - contact.saveDetail(&secondNickname); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 2); - property = document.properties().at(1); - QCOMPARE(property.name(), QString::fromAscii("X-NICKNAME")); - QCOMPARE(property.value(), QString::fromAscii("Homie,Jay")); -} - -void UT_QVersitContactExporter::testEncodeAnniversary() -{ - QContact contact; - QContactAnniversary anniversary; - QDate date(2009,1,1); - anniversary.setOriginalDate(date); - anniversary.setContexts(QContactDetail::ContextHome); - anniversary.setSubType(QContactAnniversary::SubTypeWedding); - contact.saveDetail(&anniversary); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - // The contexts and subtypes are not defined for X-ANNIVERSARY property - QCOMPARE(property.parameters().count(), 0); - // Check name - QCOMPARE(property.name(), QString::fromAscii("X-ANNIVERSARY")); - // Check value - QCOMPARE(property.value(), date.toString(Qt::ISODate)); -} - - -void UT_QVersitContactExporter::testEncodeOnlineAccount() -{ - QContact contact; - QContactOnlineAccount onlineAccount; - QString accountUri(QString::fromAscii("sip:abc@temp.com")); - onlineAccount.setAccountUri(accountUri); - - // Video sharing - onlineAccount.setSubTypes(QContactOnlineAccount::SubTypeVideoShare); - onlineAccount.setContexts(QContactDetail::ContextHome); - contact.saveDetail(&onlineAccount); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty property = document.properties().at(0); - // Check parameters - QCOMPARE(property.parameters().count(), 2); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("SWIS"))); - // Check name - QCOMPARE(property.name(), QString::fromAscii("X-SIP")); - // Check value - QCOMPARE(property.value(), accountUri); - - // VoIP - onlineAccount.setSubTypes(QContactOnlineAccount::SubTypeSipVoip); - onlineAccount.setContexts(QContactDetail::ContextWork); - contact.saveDetail(&onlineAccount); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - // Check parameters - QCOMPARE(property.parameters().count(), 2); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("WORK"))); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("VOIP"))); - // Check name - QCOMPARE(property.name(), QString::fromAscii("X-SIP")); - // Check value - QCOMPARE(property.value(), accountUri); - - // Plain SIP - onlineAccount.setSubTypes(QContactOnlineAccount::SubTypeSip); - onlineAccount.setContexts(QContactDetail::ContextWork); - contact.saveDetail(&onlineAccount); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - // Check parameters, SIP not added as a TYPE parameter - QCOMPARE(property.parameters().count(), 1); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("WORK"))); - // Check name - QCOMPARE(property.name(), QString::fromAscii("X-SIP")); - // Check value - QCOMPARE(property.value(), accountUri); - - // IMPP / X-IMPP - onlineAccount.setSubTypes(QContactOnlineAccount::SubTypeImpp); - onlineAccount.setContexts(QContactDetail::ContextHome); - contact.saveDetail(&onlineAccount); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - property = document.properties().at(0); - // Check parameters, SIP not added as a TYPE parameter - QCOMPARE(property.parameters().count(), 1); - QVERIFY(property.parameters().contains( - QString::fromAscii("TYPE"),QString::fromAscii("HOME"))); - // Check name - QCOMPARE(property.name(), QString::fromAscii("X-IMPP")); - // Check value - QCOMPARE(property.value(), accountUri); - - // Other subtypes not converted - onlineAccount.setSubTypes(QString::fromAscii("INVALIDSUBTYPE")); - contact.saveDetail(&onlineAccount); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); -} - -void UT_QVersitContactExporter::testEncodeFamily() -{ - QContact contact; - QContactFamily family; - - // No spouse, no family - family.setContexts(QContactDetail::ContextHome); - contact.saveDetail(&family); - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); - - // Only spouse present - QString spouce = QString::fromAscii("ABC"); - family.setSpouse(spouce); - contact.saveDetail(&family); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 1); - QVersitProperty spouseProperty = document.properties().at(0); - QCOMPARE(spouseProperty.parameters().count(), 0); - QCOMPARE(spouseProperty.name(), QString::fromAscii("X-SPOUSE")); - QCOMPARE(spouseProperty.value(), spouce); - - // Spouse and children - QStringList children; - children << QString::fromAscii("A") << QString::fromAscii("B") ; - family.setChildren(children); - family.setSpouse(spouce); - contact.saveDetail(&family); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 2); - spouseProperty = document.properties().at(0); - QCOMPARE(spouseProperty.parameters().count(), 0); - QCOMPARE(spouseProperty.name(), QString::fromAscii("X-SPOUSE")); - QCOMPARE(spouseProperty.value(), spouce); - QVersitProperty childrenProperty = document.properties().at(1); - QCOMPARE(childrenProperty.parameters().count(), 0); - QCOMPARE(childrenProperty.name(), QString::fromAscii("X-CHILDREN")); - QCOMPARE(childrenProperty.value(), QString::fromAscii("A\\,B")); -} - - -void UT_QVersitContactExporter::testEncodeDisplayLabel() -{ - QContact contact; - QContactName contactName; - - // No display label and no QContactName - QList contacts; - contacts.append(contact); - QVersitDocument document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 0); - - // No display label, but QContactName found - contactName.setFirstName(QString::fromAscii("First")); - contactName.setLastName(QString::fromAscii("Last")); - contactName.setMiddleName(QString::fromAscii("Middle")); - contact.saveDetail(&contactName); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts).first(); - QCOMPARE(document.properties().count(), 2); - QVersitProperty displayProperty = document.properties().at(0); - QCOMPARE(displayProperty.name(), QString::fromAscii("FN")); - QCOMPARE(displayProperty.value(), QString::fromAscii("First Last")); - QVersitProperty nameProperty = document.properties().at(1); - QCOMPARE(nameProperty.name(), QString::fromAscii("N")); - QCOMPARE(nameProperty.value(), - QString::fromAscii("Last;First;Middle;;")); - - // Custom label in QContactName, use vCard 3.0 to test the backslash escaping - contact = QContact(); - contactName.setCustomLabel(QString::fromAscii("Custom,Label")); - contact.saveDetail(&contactName); - contacts.clear(); - contacts.append(contact); - document = mExporter->exportContacts(contacts, QVersitDocument::VCard30Type).first(); - displayProperty = document.properties().at(0); - QCOMPARE(displayProperty.name(), QString::fromAscii("FN")); - QCOMPARE(displayProperty.value(), - QString::fromAscii("Custom\\,Label")); -} - -void UT_QVersitContactExporter::testDefaultResourceHandler() -{ - QVersitDefaultResourceHandler handler; - QByteArray contents; - QString mimeType; - handler.loadResource(QLatin1String("test.jpg"), &contents, &mimeType); - QCOMPARE(mimeType, QLatin1String("image/jpeg")); - - QVersitProperty property; - QString location; - QVERIFY(!handler.saveResource("test contents", property, &location)); -} - -// Test utility functions -QContactDetail UT_QVersitContactExporter::searchDetail( - QList details, - QString search) -{ - QContactDetail detail; - for (int i= 0; i < details.count(); i++) { - if ( details.at(i).definitionName() == search ) - detail = details.at(i); - } - return detail; -} - -QTEST_MAIN(UT_QVersitContactExporter) - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitcontactexporter/ut_qversitcontactexporter.h --- a/qtmobility/tests/auto/qversitcontactexporter/ut_qversitcontactexporter.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +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 Qt Mobility Components. -** -** $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 UT_QVERSITCONTACTEXPORTER_H -#define UT_QVERSITCONTACTEXPORTER_H - -#include -#include -#include - -QTM_BEGIN_NAMESPACE - -class QVersitContactExporter; -class QVersitContactExporterPrivate; -class MyQVersitResourceHandler; -class MyQVersitContactExporterDetailHandler; - -QTM_END_NAMESPACE -QTM_USE_NAMESPACE - -class UT_QVersitContactExporter : public QObject -{ - Q_OBJECT - -private slots: - void init(); - void cleanup(); - - void testConvertContact(); - void testContactDetailHandler(); - void testEncodeName(); - void testEncodePhoneNumber(); - void testEncodeEmailAddress(); - void testEncodeStreetAddress(); - void testEncodeUrl(); - void testEncodeParameters(); - void testEncodeUid(); - void testEncodeRev(); - void testEncodeBirthDay(); - void testEncodeNote(); - void testEncodeGeoLocation(); - void testEncodeOrganization(); - void testEncodeEmbeddedContent(); - void testIsValidRemoteUrl(); - void testEncodeGender(); - void testEncodeNickName(); - void testEncodeAnniversary(); - void testEncodeOnlineAccount(); - void testEncodeFamily(); - void testEncodeAvatar(); - void testEncodeDisplayLabel(); - void testDefaultResourceHandler(); - - // Test Utility Function - QContactDetail searchDetail(QList details, QString search); - -private: // Data - QVersitContactExporter* mExporter; - MyQVersitResourceHandler* mResourceHandler; - MyQVersitContactExporterDetailHandler* mDetailHandler; -}; - -#endif // UT_QVERSITCONTACTEXPORTER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitcontactimporter/qversitcontactimporter.pro --- a/qtmobility/tests/auto/qversitcontactimporter/qversitcontactimporter.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qversitcontactimporter/qversitcontactimporter.pro Mon May 03 13:18:40 2010 +0300 @@ -16,8 +16,8 @@ ../../../src/contacts/requests \ ../../../src/contacts/filters -HEADERS += ut_qversitcontactimporter.h -SOURCES += ut_qversitcontactimporter.cpp +HEADERS += tst_qversitcontactimporter.h +SOURCES += tst_qversitcontactimporter.cpp CONFIG += mobility MOBILITY = contacts versit diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitcontactimporter/tst_qversitcontactimporter.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitcontactimporter/tst_qversitcontactimporter.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1401 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "qversitdefs_p.h" +#include "tst_qversitcontactimporter.h" +#include "qversitcontactimporter.h" +#include "qversitcontactimporter_p.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QTM_BEGIN_NAMESPACE +class MyQVersitContactImporterPropertyHandler : public QVersitContactImporterPropertyHandler +{ +public: + MyQVersitContactImporterPropertyHandler() + : mPreProcess(false) + { + } + + bool preProcessProperty(const QVersitDocument& document, + const QVersitProperty& property, + int contactIndex, + QContact* contact) + { + Q_UNUSED(document) + Q_UNUSED(contact) + Q_UNUSED(contactIndex); + mPreProcessedProperties.append(property); + return mPreProcess; + } + + bool postProcessProperty(const QVersitDocument& document, + const QVersitProperty& property, + bool alreadyProcessed, + int contactIndex, + QContact* contact) + { + Q_UNUSED(document) + Q_UNUSED(contact) + Q_UNUSED(contactIndex) + if (!alreadyProcessed) + mUnknownProperties.append(property); + else + mPostProcessedProperties.append(property); + return false; + } + + void clear() + { + mPreProcess = false; + mPropertyNamesToProcess.clear(); + mUnknownProperties.clear(); + mPreProcessedProperties.clear(); + mPostProcessedProperties.clear(); + } + + // a hook to control what preProcess returns: + bool mPreProcess; + QStringList mPropertyNamesToProcess; + QList mUnknownProperties; + QList mPreProcessedProperties; + QList mPostProcessedProperties; +}; + +class MyQVersitResourceHandler : public QVersitResourceHandler +{ +public: + MyQVersitResourceHandler() : mIndex(0) + { + } + + bool saveResource(const QByteArray& contents, const QVersitProperty& property, + QString* location) + { + Q_UNUSED(property); + *location = QString::number(mIndex++); + mObjects.insert(*location, contents); + return true; + } + + bool loadResource(const QString &location, QByteArray *contents, QString *mimeType) + { + Q_UNUSED(location) + Q_UNUSED(contents) + Q_UNUSED(mimeType) + return false; + } + + void clear() + { + mIndex = 0; + mObjects.clear(); + } + + int mIndex; + QMap mObjects; +}; + +const static QByteArray SAMPLE_GIF(QByteArray::fromBase64( + "R0lGODlhEgASAIAAAAAAAP///yH5BAEAAAEALAAAAAASABIAAAIdjI+py+0G" + "wEtxUmlPzRDnzYGfN3KBaKGT6rDmGxQAOw==")); + +const static QByteArray NOKIA_GIF(QByteArray::fromBase64( + "R0lGODdhOAAKAIQRAAAvwQAwwwAwxAAxxwAyygAzywAzzBBHwC9nz0+A0HCf35+/4LDQ78/f79/o" + "8O/v8PD3/////////////////////////////////////////////////////////////ywAAAAA" + "OAAKAAAFsCAiik9kRqPJHIfhGixjisuJpqk9Inb0vjaBC0UwFH+uhM+gNBUCw6Wh92vYDAXkCZhF" + "apMmA3Qajppav6tr8TqUp0DqEIwtqsmRR/Kl2A4RfFKCcnBMbYR+Uw5xg2lAjIlLCS88dyYNLn1S" + "TYwvk3NmkXSQLgVvXmQuBCcQXlI7Io9MpyWCbKgublgCNgxfP0eOs6dvUgsPyMgvEAUAeCafUWhe" + "bpI2LQMFenuhZy8hADs=")); + +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE + +void tst_QVersitContactImporter::init() +{ + mImporter = new QVersitContactImporter(); + mResourceHandler = new MyQVersitResourceHandler(); + mImporter->setResourceHandler(mResourceHandler); + mPropertyHandler = new MyQVersitContactImporterPropertyHandler(); + mImporter->setPropertyHandler(mPropertyHandler); +} + +void tst_QVersitContactImporter::cleanup() +{ + QVERIFY(mImporter->propertyHandler() == mPropertyHandler); + mImporter->setPropertyHandler(0); + delete mPropertyHandler; + QVERIFY(mImporter->resourceHandler() == mResourceHandler); + mImporter->setResourceHandler(0); + delete mResourceHandler; + delete mImporter; +} + +void tst_QVersitContactImporter::testName() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty nameProperty; + QStringList value; + value.append(QString::fromAscii("John"));//FirstName + value.append(QString::fromAscii("Citizen"));//LastName + value.append(QString::fromAscii("Anonymous"));//GivenName + value.append(QString::fromAscii("Dr"));//PreFix + value.append(QString::fromAscii("MSc"));//Suffix + nameProperty.setName(QString::fromAscii("N")); + nameProperty.setValue(value); + nameProperty.setValueType(QVersitProperty::CompoundType); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactName name = (QContactName)contact.detail(QContactName::DefinitionName); + QCOMPARE(name.lastName(),value[0]); + QCOMPARE(name.firstName(),value[1]); + QCOMPARE(name.middleName(),value[2]); + QCOMPARE(name.prefix(),value[3]); + QCOMPARE(name.suffix(),value[4]); + + // Multiple names, first one will be picked and rest will be discarded + nameProperty = QVersitProperty(); + QStringList anotherValue; + anotherValue.append(QString::fromAscii("FakeJohn"));//FirstName + anotherValue.append(QString::fromAscii("FakeCitizen"));//LastName + anotherValue.append(QString::fromAscii("FakeAnonymous"));//GivenName + anotherValue.append(QString::fromAscii("FakeDr"));//PreFix + anotherValue.append(QString::fromAscii("FakeMSc"));//Suffix + nameProperty.setName(QString::fromAscii("N")); + nameProperty.setValue(anotherValue); + nameProperty.setValueType(QVersitProperty::CompoundType); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QList names = contact.details(QContactName::DefinitionName); + QCOMPARE(names.count(),1); + // anotherValue should be discarded, so check for value + name = (QContactName)names[0]; + QCOMPARE(name.lastName(),value[0]); + QCOMPARE(name.firstName(),value[1]); + QCOMPARE(name.middleName(),value[2]); + QCOMPARE(name.prefix(),value[3]); + QCOMPARE(name.suffix(),value[4]); +} + +// check that it doesn't crash if the FN property comes before the N property. +void tst_QVersitContactImporter::testNameWithFormatted() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty fnProperty; + fnProperty.setName(QString::fromAscii("FN")); + fnProperty.setValue(QString::fromAscii("First Last")); + document.addProperty(fnProperty); + QVersitProperty nProperty; + nProperty.setName(QString::fromAscii("N")); + nProperty.setValue(QStringList() << QLatin1String("Last") << QLatin1String("First") << QLatin1String("Middle") << QLatin1String("Prefix") << QLatin1String("Suffix")); + nProperty.setValueType(QVersitProperty::CompoundType); + document.addProperty(nProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactName name = contact.detail(); + QCOMPARE(name.firstName(), QString::fromAscii("First")); + QCOMPARE(name.lastName(), QString::fromAscii("Last")); + QCOMPARE(name.middleName(), QString::fromAscii("Middle")); + QCOMPARE(name.prefix(), QString::fromAscii("Prefix")); + QCOMPARE(name.suffix(), QString::fromAscii("Suffix")); + QCOMPARE(name.customLabel(), QString::fromAscii("First Last")); +} + +void tst_QVersitContactImporter::testAddress() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + property.setName(QString::fromAscii("ADR")); + property.setValue(QStringList(QString())); + property.setValueType(QVersitProperty::CompoundType); + + // Empty value for the address + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactAddress address = contact.detail(); + QCOMPARE(address.postOfficeBox(),QString()); + QCOMPARE(address.street(),QString()); + QCOMPARE(address.locality(),QString()); + QCOMPARE(address.region(),QString()); + QCOMPARE(address.postcode(),QString()); + QCOMPARE(address.country(),QString()); + + // Address with all the fields filled + property.setValue(QStringList() + << QLatin1String("PO Box") + << QLatin1String("E") + << QLatin1String("My Street") + << QLatin1String("My Town") + << QLatin1String("My State") + << QLatin1String("12345") + << QLatin1String("My Country") + ); + property.setValueType(QVersitProperty::CompoundType); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + address = contact.detail(); + QCOMPARE(address.postOfficeBox(),QString::fromAscii("PO Box")); + QCOMPARE(address.street(),QString::fromAscii("My Street")); + QCOMPARE(address.locality(),QString::fromAscii("My Town")); + QCOMPARE(address.region(),QString::fromAscii("My State")); + QCOMPARE(address.postcode(),QString::fromAscii("12345")); + QCOMPARE(address.country(),QString::fromAscii("My Country")); + + // Address with TYPE parameters converted to contexts and subtypes + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("HOME")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("WORK")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("DOM")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("INTL")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("POSTAL")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("PARCEL")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("X-EXTENSION")); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + address = contact.detail(); + QStringList contexts = address.contexts(); + QVERIFY(contexts.contains(QContactDetail::ContextHome)); + QVERIFY(contexts.contains(QContactDetail::ContextWork)); + QStringList subTypes = address.subTypes(); + QVERIFY(subTypes.contains(QContactAddress::SubTypeDomestic)); + QVERIFY(subTypes.contains(QContactAddress::SubTypeInternational)); + QVERIFY(subTypes.contains(QContactAddress::SubTypePostal)); + QVERIFY(subTypes.contains(QContactAddress::SubTypeParcel)); +} + +void tst_QVersitContactImporter::testOrganizationName() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + + // Empty value for the organization + property.setName(QString::fromAscii("ORG")); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactOrganization organization = contact.detail(); + QCOMPARE(organization.name(),QString()); + QCOMPARE(organization.department().count(),0); + + // Organization with single value + property.setValueType(QVersitProperty::CompoundType); + property.setValue(QStringList(QLatin1String("Nokia"))); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + organization = contact.detail(); + QCOMPARE(organization.name(),QString::fromAscii("Nokia")); + QCOMPARE(organization.department().count(),0); + + // Organization with one Organizational Unit + property.setValue(QStringList() << QLatin1String("Nokia") << QLatin1String("R&D")); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + organization = contact.detail(); + QCOMPARE(organization.name(),QString::fromAscii("Nokia")); + QCOMPARE(organization.department().count(),1); + QCOMPARE(organization.department().at(0),QString::fromAscii("R&D")); + + // Organization with more Organizational Units + property.setValue(QStringList() + << QLatin1String("Nokia") + << QLatin1String("R&D") + << QLatin1String("Devices") + << QLatin1String("Qt")); + property.setValueType(QVersitProperty::CompoundType); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + organization = contact.detail(); + QCOMPARE(organization.name(),QString::fromAscii("Nokia")); + QCOMPARE(organization.department().count(),3); + QCOMPARE(organization.department().at(0),QString::fromAscii("R&D")); + QCOMPARE(organization.department().at(1),QString::fromAscii("Devices")); + QCOMPARE(organization.department().at(2),QString::fromAscii("Qt")); +} + +void tst_QVersitContactImporter::testOrganizationTitle() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + + // One title + property.setName(QString::fromAscii("TITLE")); + QString titleValue(QString::fromAscii("Developer")); + property.setValue(titleValue); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QList organizationDetails = + contact.details(QContactOrganization::DefinitionName); + QCOMPARE(organizationDetails.count(), 1); + QContactOrganization organization = static_cast(organizationDetails[0]); + QCOMPARE(organization.title(),titleValue); + + // Two titles -> two QContactOrganizations created + property.setName(QString::fromAscii("TITLE")); + QString secondTitleValue(QString::fromAscii("Hacker")); + property.setValue(secondTitleValue); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + organizationDetails = contact.details(QContactOrganization::DefinitionName); + QCOMPARE(organizationDetails.count(), 2); + QContactOrganization firstOrganization = + static_cast(organizationDetails[0]); + QCOMPARE(firstOrganization.title(),titleValue); + QContactOrganization secondOrganization = + static_cast(organizationDetails[1]); + QCOMPARE(secondOrganization.title(),secondTitleValue); + + // Two titles and one organization name -> two QContactOrganizations created + property.setName(QString::fromAscii("ORG")); + property.setValueType(QVersitProperty::CompoundType); + property.setValue(QStringList(QLatin1String("Nokia"))); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + organizationDetails = contact.details(QContactOrganization::DefinitionName); + QCOMPARE(organizationDetails.count(), 2); + firstOrganization = static_cast(organizationDetails[0]); + QCOMPARE(firstOrganization.title(),titleValue); + QCOMPARE(firstOrganization.name(),QLatin1String("Nokia")); + secondOrganization = static_cast(organizationDetails[1]); + QCOMPARE(secondOrganization.title(),secondTitleValue); + QCOMPARE(secondOrganization.name(),QString()); +} + +void tst_QVersitContactImporter::testOrganizationAssistant() +{ + QContact contact; + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + property.setName(QString::fromAscii("X-ASSISTANT")); + QString assistantValue(QString::fromAscii("Jenny")); + property.setValue(assistantValue); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QContactOrganization organization = contact.detail(); + QCOMPARE(organization.assistantName(), assistantValue); +} + +void tst_QVersitContactImporter::testOrganizationLogo() +{ + QContact contact; + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + + // Embedded LOGO + property.setName(QString::fromAscii("LOGO")); + QByteArray logo(QByteArray::fromBase64( + "R0lGODlhEgASAIAAAAAAAP///yH5BAEAAAEALAAAAAASABIAAAIdjI+py+0G")); + property.setValue(logo); + property.insertParameter(QString::fromAscii("TYPE"), + QString::fromAscii("GIF")); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QContactOrganization organization = contact.detail(); + QByteArray content = mResourceHandler->mObjects.value(organization.logoUrl().toString()); + QCOMPARE(content, logo); + + // LOGO as a URL + property.setName(QString::fromAscii("LOGO")); + QString logoUrl(QString::fromAscii("http://www.organization.org/logo.gif")); + property.setValue(logoUrl); + property.insertParameter(QString::fromAscii("VALUE"),QString::fromAscii("URL")); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + organization = contact.detail(); + QCOMPARE(organization.logoUrl().toString(),logoUrl); +} + +void tst_QVersitContactImporter::testOrganizationRole() +{ + QContact contact; + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + + // Setting the role is not yet supported by QContactOrganization + property.setName(QString::fromAscii("ROLE")); + QString roleValue(QString::fromAscii("Very important manager and proud of it")); + property.setValue(roleValue); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QContactOrganization organization = contact.detail(); + QCOMPARE(organization.role(), roleValue); +} + +void tst_QVersitContactImporter::testTel() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + property.setName(QString::fromAscii("TEL")); + QString value(QString::fromAscii("+35850987654321")); + property.setValue(value); + + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("VOICE")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("CELL")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("MODEM")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("CAR")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("VIDEO")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("FAX")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("BBS")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("PAGER")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("HOME")); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("WORK")); + + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + const QContactPhoneNumber& phone = contact.detail(); + QCOMPARE(phone.number(),QString(value)); + + const QStringList subTypes = phone.subTypes(); + QCOMPARE(subTypes.count(),8); + QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeVoice)); + QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeMobile)); + QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeModem)); + QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeCar)); + QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeVideo)); + QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeFax)); + QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeBulletinBoardSystem)); + QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypePager)); + + const QStringList contexts = phone.contexts(); + QCOMPARE(contexts.count(),2); + QVERIFY(contexts.contains(QContactDetail::ContextWork)); + QVERIFY(contexts.contains(QContactDetail::ContextHome)); +} + +void tst_QVersitContactImporter::testEmail() +{ + QVersitProperty property; + property.setName(QString::fromAscii("EMAIL")); + QString value(QString::fromAscii("john.citizen@example.com")); + property.setValue(value); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("WORK")); + QVersitDocument document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactEmailAddress email = contact.detail(); + QCOMPARE(email.emailAddress(),value); + const QStringList contexts = email.contexts(); + QCOMPARE(contexts.count(),1); + QVERIFY(contexts.contains(QContactDetail::ContextWork)); + + QCOMPARE(mPropertyHandler->mUnknownProperties.size(), 0); +} + +void tst_QVersitContactImporter::testUrl() +{ + QVersitProperty property; + property.setName(QString::fromAscii("URL")); + QString value(QString::fromAscii("http://example.com")); + property.setValue(value); + property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("WORK")); + QVersitDocument document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactUrl url = contact.detail(); + QCOMPARE(url.url(),value); + const QStringList contexts = url.contexts(); + QCOMPARE(contexts.count(),1); + QVERIFY(contexts.contains(QContactDetail::ContextWork)); +} + +void tst_QVersitContactImporter::testUid() +{ + QVersitProperty property; + property.setName(QString::fromAscii("UID")); + QString value(QString::fromAscii("unique identifier")); + property.setValue(value); + QVersitDocument document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactGuid uid = contact.detail(); + QCOMPARE(uid.guid(),value); +} + +void tst_QVersitContactImporter::testTimeStamp() +{ + // Simple date : ISO 8601 extended format + QVersitProperty property; + property.setName(QString::fromAscii("REV")); + QString dateValue(QString::fromAscii("1981-05-20")); + property.setValue(dateValue); + QVersitDocument document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactTimestamp timeStamp = contact.detail(); + QCOMPARE(timeStamp.lastModified().date().toString(Qt::ISODate),dateValue); + + // Date and Time : ISO 8601 extended format without utc offset + QString dateAndTimeValue(QString::fromAscii("1981-05-20T23:55:55")); + property.setValue(dateAndTimeValue); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + timeStamp = contact.detail(); + QCOMPARE(timeStamp.lastModified().toString(Qt::ISODate),dateAndTimeValue); + + // Date and Time : ISO 8601 extented format with utc offset + QString utcOffset(QString::fromAscii("Z")); + QString dateAndTimeWithUtcValue = dateAndTimeValue+utcOffset; + property.setValue(dateAndTimeWithUtcValue); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + timeStamp = contact.detail(); + QCOMPARE(timeStamp.lastModified().toString(Qt::ISODate),dateAndTimeValue); + QCOMPARE(timeStamp.lastModified().timeSpec(),Qt::UTC); + + // Date and Time : ISO 8601 in basic format without utc offset + dateAndTimeValue = QString::fromAscii("19810520T235555"); + property.setValue(dateAndTimeValue); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + timeStamp = contact.detail(); + + QCOMPARE(timeStamp.lastModified().toString(QString::fromAscii("yyyyMMddThhmmss")), + dateAndTimeValue); + + // Date and Time : ISO 8601 in basic format with utc offset + dateAndTimeValue = QString::fromAscii("19810520T235555"); + dateAndTimeWithUtcValue = dateAndTimeValue+utcOffset; + property.setValue(dateAndTimeWithUtcValue); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + timeStamp = contact.detail(); + QCOMPARE(timeStamp.lastModified().toString(QString::fromAscii("yyyyMMddThhmmss")), + dateAndTimeValue); + QCOMPARE(timeStamp.lastModified().timeSpec(),Qt::UTC); +} + +void tst_QVersitContactImporter::testAnniversary() +{ + // Date : ISO 8601 extended format + QVersitProperty property; + property.setName(QString::fromAscii("X-ANNIVERSARY")); + QString dateValue(QString::fromAscii("1981-05-20")); + property.setValue(dateValue); + QVersitDocument document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactAnniversary anniversary = contact.detail(); + QCOMPARE(anniversary.originalDate().toString(Qt::ISODate),dateValue); + + // Date : ISO 8601 in basic format + dateValue = QString::fromAscii("19810520"); + property.setValue(dateValue); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + anniversary = contact.detail(); + QCOMPARE(anniversary.originalDate().toString(QString::fromAscii("yyyyMMdd")), + dateValue); + +} + +void tst_QVersitContactImporter::testBirthday() +{ + // Date : ISO 8601 extended format + QVersitProperty property; + property.setName(QString::fromAscii("BDAY")); + QString dateValue(QString::fromAscii("1981-05-20")); + property.setValue(dateValue); + QVersitDocument document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactBirthday bday = contact.detail(); + QCOMPARE(bday.date().toString(Qt::ISODate), + dateValue); + + // Date : ISO 8601 in basic format + dateValue = QString::fromAscii("19810520"); + property.setValue(dateValue); + document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + bday = contact.detail(); + QCOMPARE(bday.date().toString(QString::fromAscii("yyyyMMdd")), + dateValue); + +} + +void tst_QVersitContactImporter::testGender() +{ + // Date : ISO 8601 extended format + QVersitProperty property; + property.setName(QString::fromAscii("X-GENDER")); + QString val(QString::fromAscii("Male")); + property.setValue(val); + QVersitDocument document = createDocumentWithProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactGender gender = contact.detail(); + QCOMPARE(gender.gender(),val); +} + +void tst_QVersitContactImporter::testNickname() +{ + // one value + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty nameProperty; + nameProperty.setName(QString::fromAscii("NICKNAME")); + nameProperty.setValue(QStringList(QLatin1String("Homie"))); + nameProperty.setValueType(QVersitProperty::ListType); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactNickname nickName = (QContactNickname)contact.detail(QContactNickname::DefinitionName); + QCOMPARE(nickName.nickname(), QLatin1String("Homie")); + + // comma separated values should generate multiple nickname fields + contact.clearDetails(); + document.clear(); + document.setType(QVersitDocument::VCard30Type); + QStringList multiVal; + multiVal.append(QString::fromAscii("Homie")); + multiVal.append(QString::fromAscii("SuperHero")); + multiVal.append(QString::fromAscii("NukeSpecialist")); + nameProperty.setName(QString::fromAscii("NICKNAME")); + nameProperty.setValue(multiVal); + nameProperty.setValueType(QVersitProperty::ListType); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QList nickNames = contact.details(QContactNickname::DefinitionName); + QCOMPARE(nickNames.count(),3); + nickName = static_cast(nickNames[0]); + QCOMPARE(nickName.nickname(),QString::fromAscii("Homie")); + nickName = static_cast(nickNames[1]); + QCOMPARE(nickName.nickname(),QString::fromAscii("SuperHero")); + nickName = static_cast(nickNames[2]); + QCOMPARE(nickName.nickname(),QString::fromAscii("NukeSpecialist")); + + // X-NICKNAME + document.clear(); + document.setType(QVersitDocument::VCard30Type); + nameProperty = QVersitProperty(); + nameProperty.setName(QString::fromAscii("X-NICKNAME")); + nameProperty.setValue(QStringList(QLatin1String("Homie"))); + nameProperty.setValueType(QVersitProperty::ListType); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + nickName = contact.detail(); + QCOMPARE(nickName.nickname(),QLatin1String("Homie")); +} + +void tst_QVersitContactImporter::testAvatarThumbnail() +{ + QByteArray gif(SAMPLE_GIF); + QString name = QLatin1String("John Citizen"); + QVersitDocument document = createDocumentWithNameAndPhoto(name, gif, QLatin1String("GIF")); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactAvatar avatar = contact.detail(); + QByteArray content = mResourceHandler->mObjects.value(avatar.imageUrl()); + QCOMPARE(content, gif); + QContactThumbnail thumbnail = contact.detail(); + QImage image(thumbnail.thumbnail()); + QImage expectedImage; + expectedImage.loadFromData(gif); + QCOMPARE(image, expectedImage); + + // Without the resource handler, the thumbnail should still be set, but no avatar should be made + mImporter->setResourceHandler(0); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QCOMPARE(contact.details().size(), 0); + thumbnail = contact.detail(); + image = thumbnail.thumbnail(); + QCOMPARE(image, expectedImage); + + mImporter->setResourceHandler(mResourceHandler); + + // Empty photo. The avatar should not be added to the QContact and the thumbnail will be empty. + QVersitProperty property; + property.setName(QLatin1String("PHOTO")); + property.setValue(QByteArray()); + document.clear(); + document.setType(QVersitDocument::VCard30Type); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QCOMPARE(contact.details().size(), 0); + thumbnail = contact.detail(); + QVERIFY(thumbnail.isEmpty()); + + // Test multiple PHOTOs. The chosen Thumbnail should be the smallest image supplied. + // All should be made into Avatars + QByteArray nonPhoto(QByteArray::fromBase64("UXQgaXMgZ3JlYXQh")); // the string "Qt is great!" + QByteArray bigPhoto(NOKIA_GIF); + document.clear(); + document.setType(QVersitDocument::VCard30Type); + property.setName(QLatin1String("PHOTO")); + property.setValue(nonPhoto); // shouldn't be the thumbnail because it's not an image + document.addProperty(property); + property.setValue(bigPhoto); // shouldn't be the thumbnail because it's not the smallest + document.addProperty(property); + property.setValue(gif); // should be the thumbnail + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QList thumbnails = contact.details(); + QCOMPARE(thumbnails.size(), 1); + thumbnail = thumbnails.first(); + image = thumbnail.thumbnail(); + QCOMPARE(image, expectedImage); + QCOMPARE(contact.details().size(), 3); +} + +void tst_QVersitContactImporter::testAvatarUrl() +{ + QVersitProperty property; + property.setName(QLatin1String("PHOTO")); + QString value(QLatin1String("http://example.com/example.jpg")); + property.setValue(value); + property.insertParameter(QLatin1String("VALUE"), QLatin1String("URL")); + + QVersitDocument document(QVersitDocument::VCard30Type); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactAvatar avatar = contact.detail(); + QCOMPARE(avatar.imageUrl(), QUrl(QLatin1String("http://example.com/example.jpg"))); + + + // A URL disguised inside a QByteArray. + document.clear(); + document.setType(QVersitDocument::VCard30Type); + property.clear(); + property.setName(QLatin1String("PHOTO")); + property.setValue(QByteArray("http://example.com/example.jpg")); + property.insertParameter(QLatin1String("VALUE"), QLatin1String("URL")); + property.insertParameter(QLatin1String("CHARSET"), QLatin1String("UTF-8")); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + avatar = contact.detail(); + QCOMPARE(avatar.imageUrl(), QUrl(QLatin1String("http://example.com/example.jpg"))); +} + +void tst_QVersitContactImporter::testAvatarInvalid() +{ + // An avatar that's a QVersitDocument? It shouldn't work. + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + property.setName(QLatin1String("PHOTO")); + QVersitDocument nestedDocument; + property.setValue(QVariant::fromValue(nestedDocument)); + property.insertParameter(QLatin1String("VALUE"), QLatin1String("URL")); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QCOMPARE(contact.details(QContactAvatar::DefinitionName).size(), 0); + + document.clear(); + document.setType(QVersitDocument::VCard30Type); + property.clear(); + property.setName(QLatin1String("PHOTO")); + property.setValue(QVariant::fromValue(nestedDocument)); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QCOMPARE(contact.details(QContactAvatar::DefinitionName).size(), 0); +} + +void tst_QVersitContactImporter::testGeo() +{ + // some positive values + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty nameProperty; + QStringList val; + val.append(QString::fromAscii("18.53"));// Longtitude + val.append(QString::fromAscii("45.32")); // Latitude + nameProperty.setName(QString::fromAscii("GEO")); + nameProperty.setValue(val); + nameProperty.setValueType(QVersitProperty::CompoundType); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactGeoLocation geo = (QContactGeoLocation)contact.detail(QContactGeoLocation::DefinitionName); + QString str; + str.setNum(geo.longitude(),'.',2); + QCOMPARE(str,val[0]); + str.setNum(geo.latitude(),'.',2); + QCOMPARE(str,val[1]); + + // some negative values + document.clear(); + document.setType(QVersitDocument::VCard30Type); + nameProperty = QVersitProperty(); + val.append(QString::fromAscii("18.53"));// Longtitude + val.append(QString::fromAscii("-45.32")); // Latitude + nameProperty.setName(QString::fromAscii("GEO")); + nameProperty.setValue(val); + nameProperty.setValueType(QVersitProperty::CompoundType); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + geo = (QContactGeoLocation)contact.detail(QContactGeoLocation::DefinitionName); + str.setNum(geo.longitude(),'.',2); + QCOMPARE(str,val[0]); + str.setNum(geo.latitude(),'.',2); + QCOMPARE(str,val[1]); +} + +void tst_QVersitContactImporter::testNote() +{ + // single line value + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty nameProperty; + QString val(QString::fromAscii("I will not sleep at my work -John")); + nameProperty.setName(QString::fromAscii("NOTE")); + nameProperty.setValue(val); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactNote note = (QContactNote)contact.detail(QContactNote::DefinitionName); + QCOMPARE(note.note(),val); + + // Multiline value and quoted printable encoding + document.clear(); + document.setType(QVersitDocument::VCard30Type); + nameProperty = QVersitProperty(); + val = QString::fromAscii("My Dad acts like he belongs,=0D=0AHe belongs in the zoo.=0D=0A"); + nameProperty.setName(QString::fromAscii("NOTE")); + nameProperty.setValue(val); + QMultiHash params; + params.insert(QString::fromAscii("QUOTED-PRINTABLE"),val); + nameProperty.setParameters(params); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + note = (QContactNote)contact.detail(QContactNote::DefinitionName); + QCOMPARE(note.note(),val); +} + +void tst_QVersitContactImporter::testCustomLabel() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty nameProperty; + QString val(QString::fromAscii("John Citizen")); + nameProperty.setName(QString::fromAscii("FN")); + nameProperty.setValue(val); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactName name = + (QContactName)contact.detail(QContactName::DefinitionName); + QCOMPARE(name.customLabel(),val); +} + +void tst_QVersitContactImporter::testDisplayLabel() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty orgProperty; + // ORG: should be used as last resort + orgProperty.setName(QLatin1String("ORG")); + orgProperty.setValue(QStringList(QLatin1String("org"))); + orgProperty.setValueType(QVersitProperty::CompoundType); + document.addProperty(orgProperty); + + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QString displayLabel = contact.displayLabel(); + QCOMPARE(displayLabel, QLatin1String("org")); + + // NICKNAME: should be used if FN and N don't exist + QVersitProperty nickProperty; + nickProperty.setName(QLatin1String("NICKNAME")); + nickProperty.setValue(QStringList(QLatin1String("nick"))); + nickProperty.setValueType(QVersitProperty::ListType); + document.addProperty(nickProperty); + + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + displayLabel = contact.displayLabel(); + QCOMPARE(displayLabel, QLatin1String("nick")); + + // N: should be used in FN doesn't exist + QVersitProperty nameProperty; + nameProperty.setName(QLatin1String("N")); + nameProperty.setValue(QStringList() + << QLatin1String("last") + << QLatin1String("first") + << QLatin1String("middle") + << QLatin1String("prefix") + << QLatin1String("suffix")); + nameProperty.setValueType(QVersitProperty::CompoundType); + document.addProperty(nameProperty); + + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + displayLabel = contact.displayLabel(); + QCOMPARE(displayLabel, QLatin1String("prefix first middle last suffix")); + + // FN: should be used if it exists + QVersitProperty fnProperty; + fnProperty.setName(QLatin1String("FN")); + fnProperty.setValue(QLatin1String("fn")); + document.addProperty(fnProperty); + + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + displayLabel = contact.displayLabel(); + QCOMPARE(displayLabel, QLatin1String("fn")); +} + +void tst_QVersitContactImporter::testOnlineAccount() +{ + QString accountUri(QString::fromAscii("sip:john.citizen@example.com")); + + // Plain X-SIP, no TYPE -> + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + property.setName(QString::fromAscii("X-SIP")); + property.setValue(accountUri); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactOnlineAccount onlineAccount = contact.detail(); + QCOMPARE(onlineAccount.accountUri(),accountUri); + QStringList subTypes = onlineAccount.subTypes(); + QCOMPARE(subTypes.count(),1); + QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeSip); + + // X-SIP;SWIS + document.clear(); + document.setType(QVersitDocument::VCard30Type); + property = QVersitProperty(); + property.setName(QString::fromAscii("X-SIP")); + property.setValue(accountUri); + QMultiHash params; + params.insert(QString::fromAscii("TYPE"),QString::fromAscii("SWIS")); + property.setParameters(params); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + onlineAccount = contact.detail(); + QCOMPARE(onlineAccount.accountUri(),accountUri); + subTypes = onlineAccount.subTypes(); + QCOMPARE(subTypes.count(),1); + QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeVideoShare); + + // X-SIP;VOIP + document.clear(); + document.setType(QVersitDocument::VCard30Type); + property = QVersitProperty(); + property.setName(QString::fromAscii("X-SIP")); + property.setValue(accountUri); + params.clear(); + params.insert(QString::fromAscii("TYPE"),QString::fromAscii("VOIP")); + property.setParameters(params); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + onlineAccount = contact.detail(); + QCOMPARE(onlineAccount.accountUri(),accountUri); + subTypes = onlineAccount.subTypes(); + QCOMPARE(subTypes.count(),1); + QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeSipVoip); + + // X-IMPP + document.clear(); + document.setType(QVersitDocument::VCard30Type); + property = QVersitProperty(); + property.setName(QString::fromAscii("X-IMPP")); + property.setValue(accountUri); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + onlineAccount = contact.detail(); + QCOMPARE(onlineAccount.accountUri(),accountUri); + subTypes = onlineAccount.subTypes(); + QCOMPARE(subTypes.count(),1); + QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeImpp); + + // IMPP + document.clear(); + document.setType(QVersitDocument::VCard30Type); + property = QVersitProperty(); + property.setName(QString::fromAscii("IMPP")); + property.setValue(accountUri); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + onlineAccount = contact.detail(); + QCOMPARE(onlineAccount.accountUri(),accountUri); + subTypes = onlineAccount.subTypes(); + QCOMPARE(subTypes.count(),1); + QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeImpp); + + // X-JABBER + document.clear(); + document.setType(QVersitDocument::VCard30Type); + property = QVersitProperty(); + property.setName(QString::fromAscii("X-JABBER")); + property.setValue(accountUri); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + onlineAccount = contact.detail(); + QCOMPARE(onlineAccount.accountUri(),accountUri); + subTypes = onlineAccount.subTypes(); + QCOMPARE(subTypes.count(),1); + QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeImpp); +} + +void tst_QVersitContactImporter::testFamily() +{ + // Interesting : kid but no wife :) + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty nameProperty; + QString val(QString::fromAscii("Jane")); // one is enough + nameProperty.setName(QString::fromAscii("X-CHILDREN")); + nameProperty.setValue(QStringList(val)); + nameProperty.setValueType(QVersitProperty::ListType); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactFamily family = (QContactFamily)contact.detail(QContactFamily::DefinitionName); + QStringList children = family.children(); + QCOMPARE(children.count(),1); // ensure no other kids in list + QCOMPARE(family.spouse(),QString()); // make sure no wife + QCOMPARE(children[0],val); // ensure it is your kid + + // Critical : wife but no kids , happy hours + document.clear(); + document.setType(QVersitDocument::VCard30Type); + nameProperty = QVersitProperty(); + nameProperty.setName(QString::fromAscii("X-SPOUSE")); + val = QString::fromAscii("Jenny"); + nameProperty.setValue(val); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + family = (QContactFamily)contact.detail(QContactFamily::DefinitionName); + children = family.children(); + QCOMPARE(children.count(),0); // list should be empty as you know + QCOMPARE(family.spouse(),val); // make sure thats your wife:( + + // Hopeless : couple of kids and wife + document.clear(); + document.setType(QVersitDocument::VCard30Type); + // Add kids first + nameProperty = QVersitProperty(); + nameProperty.setName(QString::fromAscii("X-CHILDREN")); + QStringList kidsVal; + kidsVal.append(QString::fromAscii("James")); + kidsVal.append(QString::fromAscii("Jake")); + kidsVal.append(QString::fromAscii("Jane")); + nameProperty.setValue(kidsVal); + nameProperty.setValueType(QVersitProperty::ListType); + document.addProperty(nameProperty); + // Add wife next + val = QString::fromAscii("Jenny"); + nameProperty = QVersitProperty(); + nameProperty.setName(QString::fromAscii("X-SPOUSE")); + nameProperty.setValue(val); + document.addProperty(nameProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + family = (QContactFamily)contact.detail(QContactFamily::DefinitionName); + children = family.children(); + QCOMPARE(children.count(),3); // too late , count them now. + // painfull but ensure they are your kids + QCOMPARE(children, kidsVal); + QCOMPARE(family.spouse(),val); // make sure thats your wife:( +} + +void tst_QVersitContactImporter::testSound() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty soundProperty; + QMultiHash param; + param.insert(QString::fromAscii("TYPE"),QString::fromAscii("WAVE")); + soundProperty.setName(QString::fromAscii("SOUND")); + QByteArray val("111110000011111"); + soundProperty.setValue(val); + soundProperty.setParameters(param); + document.addProperty(soundProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactRingtone ringtone = contact.detail(); + QByteArray content = mResourceHandler->mObjects.value(ringtone.audioRingtoneUrl()); + QCOMPARE(content, val); +} + +void tst_QVersitContactImporter::testTag() +{ + // one value + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty tagProperty; + tagProperty.setName(QLatin1String("CATEGORIES")); + tagProperty.setValue(QStringList(QLatin1String("red"))); + tagProperty.setValueType(QVersitProperty::ListType); + document.addProperty(tagProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactTag tagDetail = contact.detail(); + QCOMPARE(tagDetail.tag(), QLatin1String("red")); + + // multiple values + document.clear(); + document.setType(QVersitDocument::VCard30Type); + tagProperty.setName(QLatin1String("CATEGORIES")); + tagProperty.setValue(QStringList() + << QLatin1String("red") + << QLatin1String("green") + << QLatin1String("blue")); + tagProperty.setValueType(QVersitProperty::ListType); + document.addProperty(tagProperty); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QList tagDetails = contact.details(); + QCOMPARE(tagDetails.count(), 3); + QCOMPARE(tagDetails.at(0).tag(), QLatin1String("red")); + QCOMPARE(tagDetails.at(1).tag(), QLatin1String("green")); + QCOMPARE(tagDetails.at(2).tag(), QLatin1String("blue")); +} + +void tst_QVersitContactImporter::testPref() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property1; + property1.setName(QLatin1String("TEL")); + property1.setValue(QLatin1String("1")); + document.addProperty(property1); + QVersitProperty property2; + property2.setName(QLatin1String("TEL")); + property2.setValue(QLatin1String("2")); + property2.insertParameter(QLatin1String("TYPE"), QLatin1String("PREF")); + document.addProperty(property2); + QVersitProperty property3; + property3.setName(QLatin1String("TEL")); + property3.setValue(QLatin1String("3")); + property3.insertParameter(QLatin1String("TYPE"), QLatin1String("PREF")); + document.addProperty(property3); + QVersitProperty property4; + property4.setName(QLatin1String("TEL")); + property4.setValue(QLatin1String("4")); + document.addProperty(property4); + + // Test that pref details comes first. + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QContactPhoneNumber firstNumber = contact.detail(); + QCOMPARE(firstNumber.number(), QLatin1String("2")); + QList numbers = contact.details(); + QCOMPARE(numbers.at(0).number(), QLatin1String("2")); + QCOMPARE(numbers.at(1).number(), QLatin1String("3")); + QCOMPARE(numbers.at(2).number(), QLatin1String("1")); + QCOMPARE(numbers.at(3).number(), QLatin1String("4")); +} + +void tst_QVersitContactImporter::testPropertyHandler() +{ + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + + // No unconverted properties, no converted properties either. Fails with EmptyDocumentError + QVERIFY(!mImporter->importDocuments(QList() << document)); + QCOMPARE(mPropertyHandler->mUnknownProperties.size(), 0); + QCOMPARE(mPropertyHandler->mPreProcessedProperties.size(), 0); + QCOMPARE(mPropertyHandler->mPostProcessedProperties.size(), 0); + + // No unconverted properties, one converted property + mPropertyHandler->clear(); + property.setName(QString::fromAscii("FN")); + property.setValue(QString::fromAscii("John Citizen")); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + QContact contact = mImporter->contacts().first(); + QCOMPARE(mPropertyHandler->mUnknownProperties.size(), 0); + QCOMPARE(mPropertyHandler->mPreProcessedProperties.size(), 1); + QCOMPARE(mPropertyHandler->mPostProcessedProperties.size(), 1); + + // Set the handler to override handling of the property + mPropertyHandler->clear(); + mPropertyHandler->mPreProcess = true; + document.clear(); + document.setType(QVersitDocument::VCard30Type); + property.setName(QString::fromAscii("FN")); + property.setValue(QString::fromAscii("John Citizen")); + document.addProperty(property); + QVERIFY(mImporter->importDocuments(QList() << document)); + contact = mImporter->contacts().first(); + QCOMPARE(mPropertyHandler->mUnknownProperties.size(), 0); + QCOMPARE(mPropertyHandler->mPreProcessedProperties.size(), 1); + QCOMPARE(mPropertyHandler->mPostProcessedProperties.size(), 0); + QContactDetail nameDetail = contact.detail(QContactName::DefinitionName); + QVERIFY(nameDetail.isEmpty()); + + // One unknown property + mPropertyHandler->clear(); + property.setName(QString::fromAscii("X-EXTENSION-1")); + property.setValue(QString::fromAscii("extension value 1")); + document.addProperty(property); + mImporter->importDocuments(QList() << document); + QList unknownProperties = mPropertyHandler->mUnknownProperties; + QCOMPARE(unknownProperties.count(), 1); + QCOMPARE(unknownProperties[0].name(), QString::fromAscii("X-EXTENSION-1")); + QCOMPARE(unknownProperties[0].value(), QString::fromAscii("extension value 1")); + + // Two unknown properties + mPropertyHandler->clear(); + property.setName(QString::fromAscii("X-EXTENSION-2")); + property.setValue(QString::fromAscii("extension value 2")); + document.addProperty(property); + mImporter->importDocuments(QList() << document); + unknownProperties = mPropertyHandler->mUnknownProperties; + QCOMPARE(unknownProperties.count(), 2); + QCOMPARE(unknownProperties[0].name(), QString::fromAscii("X-EXTENSION-1")); + QCOMPARE(unknownProperties[0].value(), QString::fromAscii("extension value 1")); + QCOMPARE(unknownProperties[1].name(), QString::fromAscii("X-EXTENSION-2")); + QCOMPARE(unknownProperties[1].value(), QString::fromAscii("extension value 2")); +} + +void tst_QVersitContactImporter::testInvalidDocument() +{ + // invalid document (invalid type) + QList documents; + QVersitDocument document(QVersitDocument::InvalidType); + QVersitProperty nameProperty; + nameProperty.setName(QLatin1String("FN")); + nameProperty.setValue(QLatin1String("John Citizen")); + document.addProperty(nameProperty); + documents.append(document); + + // valid document in the same list + QVersitProperty telProperty; + telProperty.setName(QLatin1String("TEL")); + telProperty.setValue(QLatin1String("1234")); + document.addProperty(telProperty); + document.setType(QVersitDocument::VCard21Type); + documents.append(document); + QVERIFY(!mImporter->importDocuments(documents)); + QMap errors = mImporter->errors(); + QCOMPARE(errors.size(), 1); + QVERIFY(errors.contains(0)); + QVERIFY(errors.value(0) == QVersitContactImporter::InvalidDocumentError); + QList contacts = mImporter->contacts(); + QCOMPARE(contacts.size(), 1); + QContactPhoneNumber phoneDetail = contacts.first().detail(); + QCOMPARE(phoneDetail.number(), QLatin1String("1234")); + + // empty document + document.clear(); + document.setType(QVersitDocument::VCard21Type); + QVERIFY(!mImporter->importDocuments(QList() << document)); + errors = mImporter->errors(); + QCOMPARE(errors.size(), 1); + QCOMPARE(errors.value(0), QVersitContactImporter::EmptyDocumentError); +} + +QVersitDocument tst_QVersitContactImporter::createDocumentWithProperty( + const QVersitProperty& property) +{ + QVersitDocument document(QVersitDocument::VCard30Type); + document.addProperty(property); + return document; +} + +QVersitDocument tst_QVersitContactImporter::createDocumentWithNameAndPhoto( + const QString& name, + QByteArray image, + const QString& imageType) +{ + QVersitDocument document(QVersitDocument::VCard30Type); + + QVersitProperty nameProperty; + nameProperty.setName(QString::fromAscii("FN")); + nameProperty.setValue(name); + document.addProperty(nameProperty); + + QVersitProperty property; + property.setName(QString::fromAscii("PHOTO")); + property.setValue(image); + if (imageType != QString()) { + property.insertParameter(QString::fromAscii("TYPE"), imageType); + } + document.addProperty(property); + + return document; +} + +QTEST_MAIN(tst_QVersitContactImporter) + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitcontactimporter/tst_qversitcontactimporter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitcontactimporter/tst_qversitcontactimporter.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,115 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 tst_QVERSITCONTACTIMPORTER_H +#define tst_QVERSITCONTACTIMPORTER_H + +#include +#include +#include +#include + +QTM_BEGIN_NAMESPACE + +class QVersitContactImporter; +class QVersitContactImporterPrivate; +class MyQVersitContactImporterPropertyHandler; +class MyQVersitResourceHandler; + +QTM_END_NAMESPACE +QTM_USE_NAMESPACE + +class tst_QVersitContactImporter : public QObject +{ + Q_OBJECT + +private slots: // Tests + void init(); + void cleanup(); + + void testName(); + void testNameWithFormatted(); + void testAddress(); + void testTel(); + void testEmail(); + void testUrl(); + void testUid(); + void testOrganizationName(); + void testOrganizationTitle(); + void testOrganizationLogo(); + void testOrganizationAssistant(); + void testOrganizationRole(); + void testTimeStamp(); + void testAnniversary(); + void testBirthday(); + void testGender(); + void testNickname(); + void testAvatarThumbnail(); + void testAvatarUrl(); + void testAvatarInvalid(); + void testGeo(); + void testNote(); + void testCustomLabel(); + void testDisplayLabel(); + void testOnlineAccount(); + void testFamily(); + void testSound(); + void testTag(); + void testPref(); + void testPropertyHandler(); + void testInvalidDocument(); + +private: // Utilities + + QVersitDocument createDocumentWithProperty(const QVersitProperty& property); + + QVersitDocument createDocumentWithNameAndPhoto( + const QString& name, + QByteArray image, + const QString& photoType); + +private: + QVersitContactImporter* mImporter; + MyQVersitContactImporterPropertyHandler* mPropertyHandler; + MyQVersitResourceHandler* mResourceHandler; +}; + +#endif // tst_QVERSITCONTACTIMPORTER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitcontactimporter/ut_qversitcontactimporter.cpp --- a/qtmobility/tests/auto/qversitcontactimporter/ut_qversitcontactimporter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1349 +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 Qt Mobility Components. -** -** $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 "qversitdefs_p.h" -#include "ut_qversitcontactimporter.h" -#include "qversitcontactimporter.h" -#include "qversitcontactimporter_p.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QTM_BEGIN_NAMESPACE -class MyQVersitContactImporterPropertyHandler : public QVersitContactImporterPropertyHandler -{ -public: - MyQVersitContactImporterPropertyHandler() - : mPreProcess(false) - { - } - - bool preProcessProperty(const QVersitDocument& document, - const QVersitProperty& property, - int contactIndex, - QContact* contact) - { - Q_UNUSED(document) - Q_UNUSED(contact) - Q_UNUSED(contactIndex); - mPreProcessedProperties.append(property); - return mPreProcess; - } - - bool postProcessProperty(const QVersitDocument& document, - const QVersitProperty& property, - bool alreadyProcessed, - int contactIndex, - QContact* contact) - { - Q_UNUSED(document) - Q_UNUSED(contact) - Q_UNUSED(contactIndex) - if (!alreadyProcessed) - mUnknownProperties.append(property); - else - mPostProcessedProperties.append(property); - return false; - } - - void clear() - { - mPreProcess = false; - mPropertyNamesToProcess.clear(); - mUnknownProperties.clear(); - mPreProcessedProperties.clear(); - mPostProcessedProperties.clear(); - } - - // a hook to control what preProcess returns: - bool mPreProcess; - QStringList mPropertyNamesToProcess; - QList mUnknownProperties; - QList mPreProcessedProperties; - QList mPostProcessedProperties; -}; - -class MyQVersitResourceHandler : public QVersitResourceHandler -{ -public: - MyQVersitResourceHandler() : mIndex(0) - { - } - - bool saveResource(const QByteArray& contents, const QVersitProperty& property, - QString* location) - { - Q_UNUSED(property); - *location = QString::number(mIndex++); - mObjects.insert(*location, contents); - return true; - } - - bool loadResource(const QString &location, QByteArray *contents, QString *mimeType) - { - Q_UNUSED(location) - Q_UNUSED(contents) - Q_UNUSED(mimeType) - return false; - } - - void clear() - { - mIndex = 0; - mObjects.clear(); - } - - int mIndex; - QMap mObjects; -}; - -const static QByteArray SAMPLE_GIF(QByteArray::fromBase64( - "R0lGODlhEgASAIAAAAAAAP///yH5BAEAAAEALAAAAAASABIAAAIdjI+py+0G" - "wEtxUmlPzRDnzYGfN3KBaKGT6rDmGxQAOw==")); - -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -void UT_QVersitContactImporter::init() -{ - mImporter = new QVersitContactImporter(); - mResourceHandler = new MyQVersitResourceHandler(); - mImporter->setResourceHandler(mResourceHandler); - mPropertyHandler = new MyQVersitContactImporterPropertyHandler(); - mImporter->setPropertyHandler(mPropertyHandler); -} - -void UT_QVersitContactImporter::cleanup() -{ - QVERIFY(mImporter->propertyHandler() == mPropertyHandler); - mImporter->setPropertyHandler(0); - delete mPropertyHandler; - QVERIFY(mImporter->resourceHandler() == mResourceHandler); - mImporter->setResourceHandler(0); - delete mResourceHandler; - delete mImporter; -} - -void UT_QVersitContactImporter::testName() -{ - QVersitDocument document; - QVersitProperty nameProperty; - QStringList value; - value.append(QString::fromAscii("John"));//FirstName - value.append(QString::fromAscii("Citizen"));//LastName - value.append(QString::fromAscii("Anonymous"));//GivenName - value.append(QString::fromAscii("Dr"));//PreFix - value.append(QString::fromAscii("MSc"));//Suffix - nameProperty.setName(QString::fromAscii("N")); - nameProperty.setValue(value.join(QString::fromAscii(";"))); - document.addProperty(nameProperty); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactName name = (QContactName)contact.detail(QContactName::DefinitionName); - QCOMPARE(name.lastName(),value[0]); - QCOMPARE(name.firstName(),value[1]); - QCOMPARE(name.middleName(),value[2]); - QCOMPARE(name.prefix(),value[3]); - QCOMPARE(name.suffix(),value[4]); - - // Multiple names, first one will be picked and rest will be discarded - nameProperty = QVersitProperty(); - QStringList anotherValue; - anotherValue.append(QString::fromAscii("FakeJohn"));//FirstName - anotherValue.append(QString::fromAscii("FakeCitizen"));//LastName - anotherValue.append(QString::fromAscii("FakeAnonymous"));//GivenName - anotherValue.append(QString::fromAscii("FakeDr"));//PreFix - anotherValue.append(QString::fromAscii("FakeMSc"));//Suffix - nameProperty.setName(QString::fromAscii("N")); - nameProperty.setValue(anotherValue.join(QString::fromAscii(";"))); - document.addProperty(nameProperty); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - QList names = contact.details(QContactName::DefinitionName); - QCOMPARE(names.count(),1); - // anotherValue should be discarded, so check for value - name = (QContactName)names[0]; - QCOMPARE(name.lastName(),value[0]); - QCOMPARE(name.firstName(),value[1]); - QCOMPARE(name.middleName(),value[2]); - QCOMPARE(name.prefix(),value[3]); - QCOMPARE(name.suffix(),value[4]); -} - -// check that it doesn't crash if the FN property comes before the N property. -void UT_QVersitContactImporter::testNameWithFormatted() -{ - QVersitDocument document; - QVersitProperty fnProperty; - fnProperty.setName(QString::fromAscii("FN")); - fnProperty.setValue(QString::fromAscii("First Last")); - document.addProperty(fnProperty); - QVersitProperty nProperty; - nProperty.setName(QString::fromAscii("N")); - nProperty.setValue(QString::fromAscii("Last;First;Middle;Prefix;Suffix")); - document.addProperty(nProperty); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactName name = contact.detail(); - QCOMPARE(name.firstName(), QString::fromAscii("First")); - QCOMPARE(name.lastName(), QString::fromAscii("Last")); - QCOMPARE(name.middleName(), QString::fromAscii("Middle")); - QCOMPARE(name.prefix(), QString::fromAscii("Prefix")); - QCOMPARE(name.suffix(), QString::fromAscii("Suffix")); - QCOMPARE(name.customLabel(), QString::fromAscii("First Last")); -} - -void UT_QVersitContactImporter::testAddress() -{ - QVersitDocument document; - QVersitProperty property; - property.setName(QString::fromAscii("ADR")); - - // Empty value for the address - document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactAddress address = contact.detail(); - QCOMPARE(address.postOfficeBox(),QString()); - QCOMPARE(address.street(),QString()); - QCOMPARE(address.locality(),QString()); - QCOMPARE(address.region(),QString()); - QCOMPARE(address.postcode(),QString()); - QCOMPARE(address.country(),QString()); - - // Address with just seprators - property.setValue(QString::fromAscii(";;;;;;")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - address = contact.detail(); - QCOMPARE(address.postOfficeBox(),QString()); - QCOMPARE(address.street(),QString()); - QCOMPARE(address.locality(),QString()); - QCOMPARE(address.region(),QString()); - QCOMPARE(address.postcode(),QString()); - QCOMPARE(address.country(),QString()); - - // Address with some fields missing - property.setValue(QString::fromAscii(";;My Street;My Town;;12345;")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - address = contact.detail(); - QCOMPARE(address.postOfficeBox(),QString()); - QCOMPARE(address.street(),QString::fromAscii("My Street")); - QCOMPARE(address.locality(),QString::fromAscii("My Town")); - QCOMPARE(address.region(),QString()); - QCOMPARE(address.postcode(),QString::fromAscii("12345")); - QCOMPARE(address.country(),QString()); - - // Address with all the fields filled - property.setValue(QString::fromAscii("PO Box;E;My Street;My Town;My State;12345;My Country")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - address = contact.detail(); - QCOMPARE(address.postOfficeBox(),QString::fromAscii("PO Box")); - QCOMPARE(address.street(),QString::fromAscii("My Street")); - QCOMPARE(address.locality(),QString::fromAscii("My Town")); - QCOMPARE(address.region(),QString::fromAscii("My State")); - QCOMPARE(address.postcode(),QString::fromAscii("12345")); - QCOMPARE(address.country(),QString::fromAscii("My Country")); - - // Address with TYPE parameters converted to contexts and subtypes - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("HOME")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("WORK")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("DOM")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("INTL")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("POSTAL")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("PARCEL")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("X-EXTENSION")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - address = contact.detail(); - QStringList contexts = address.contexts(); - QVERIFY(contexts.contains(QContactDetail::ContextHome)); - QVERIFY(contexts.contains(QContactDetail::ContextWork)); - QStringList subTypes = address.subTypes(); - QVERIFY(subTypes.contains(QContactAddress::SubTypeDomestic)); - QVERIFY(subTypes.contains(QContactAddress::SubTypeInternational)); - QVERIFY(subTypes.contains(QContactAddress::SubTypePostal)); - QVERIFY(subTypes.contains(QContactAddress::SubTypeParcel)); -} - -void UT_QVersitContactImporter::testOrganizationName() -{ - QVersitDocument document; - QVersitProperty property; - - // Empty value for the organization - property.setName(QString::fromAscii("ORG")); - document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactOrganization organization = contact.detail(); - QCOMPARE(organization.name(),QString()); - QCOMPARE(organization.department().count(),0); - - // Organization without separators - property.setValue(QString::fromAscii("Nokia")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - organization = contact.detail(); - QCOMPARE(organization.name(),QString::fromAscii("Nokia")); - QCOMPARE(organization.department().count(),0); - - // Organization with one separator - property.setValue(QString::fromAscii(";")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - organization = contact.detail(); - QCOMPARE(organization.name(),QString::fromAscii("")); - QCOMPARE(organization.department().count(),0); - - // Organization with just separators - property.setValue(QString::fromAscii(";;;")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - organization = contact.detail(); - QCOMPARE(organization.name(),QString::fromAscii("")); - QCOMPARE(organization.department().count(),0); - - // Organization with one Organizational Unit - property.setValue(QString::fromAscii("Nokia;R&D")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - organization = contact.detail(); - QCOMPARE(organization.name(),QString::fromAscii("Nokia")); - QCOMPARE(organization.department().count(),1); - QCOMPARE(organization.department().at(0),QString::fromAscii("R&D")); - - // Organization with organization name and semicolon - property.setValue(QString::fromAscii("Nokia;")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - organization = contact.detail(); - QCOMPARE(organization.name(),QString::fromAscii("Nokia")); - QCOMPARE(organization.department().count(),0); - - // Organization with semicolon and department - property.setValue(QString::fromAscii(";R&D")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - organization = contact.detail(); - QCOMPARE(organization.name(),QString()); - QCOMPARE(organization.department().count(),1); - QCOMPARE(organization.department().at(0),QString::fromAscii("R&D")); - - // Organization with more Organizational Units - property.setValue(QString::fromAscii("Nokia;R&D;Devices;Qt")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - organization = contact.detail(); - QCOMPARE(organization.name(),QString::fromAscii("Nokia")); - QCOMPARE(organization.department().count(),3); - QCOMPARE(organization.department().at(0),QString::fromAscii("R&D")); - QCOMPARE(organization.department().at(1),QString::fromAscii("Devices")); - QCOMPARE(organization.department().at(2),QString::fromAscii("Qt")); -} - -void UT_QVersitContactImporter::testOrganizationTitle() -{ - QVersitDocument document; - QVersitProperty property; - - // One title - property.setName(QString::fromAscii("TITLE")); - QString titleValue(QString::fromAscii("Developer")); - property.setValue(titleValue); - document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QList organizationDetails = - contact.details(QContactOrganization::DefinitionName); - QCOMPARE(organizationDetails.count(), 1); - QContactOrganization organization = static_cast(organizationDetails[0]); - QCOMPARE(organization.title(),titleValue); - - // Two titles -> two QContactOrganizations created - property.setName(QString::fromAscii("TITLE")); - QString secondTitleValue(QString::fromAscii("Hacker")); - property.setValue(secondTitleValue); - document.addProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - organizationDetails = contact.details(QContactOrganization::DefinitionName); - QCOMPARE(organizationDetails.count(), 2); - QContactOrganization firstOrganization = - static_cast(organizationDetails[0]); - QCOMPARE(firstOrganization.title(),titleValue); - QContactOrganization secondOrganization = - static_cast(organizationDetails[1]); - QCOMPARE(secondOrganization.title(),secondTitleValue); - - // Two titles and one organization name -> two QContactOrganizations created - property.setName(QString::fromAscii("ORG")); - QString organizationName(QString::fromAscii("Nokia")); - property.setValue(organizationName); - document.addProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - organizationDetails = contact.details(QContactOrganization::DefinitionName); - QCOMPARE(organizationDetails.count(), 2); - firstOrganization = static_cast(organizationDetails[0]); - QCOMPARE(firstOrganization.title(),titleValue); - QCOMPARE(firstOrganization.name(),organizationName); - secondOrganization = static_cast(organizationDetails[1]); - QCOMPARE(secondOrganization.title(),secondTitleValue); - QCOMPARE(secondOrganization.name(),QString()); -} - -void UT_QVersitContactImporter::testOrganizationAssistant() -{ - QContact contact; - QVersitDocument document; - QVersitProperty property; - property.setName(QString::fromAscii("X-ASSISTANT")); - QString assistantValue(QString::fromAscii("Jenny")); - property.setValue(assistantValue); - document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - QContactOrganization organization = contact.detail(); - QCOMPARE(organization.assistantName(), assistantValue); -} - -void UT_QVersitContactImporter::testOrganizationLogo() -{ - QContact contact; - QVersitDocument document; - QVersitProperty property; - QList documentList; - - // Embedded LOGO - property.setName(QString::fromAscii("LOGO")); - QByteArray logo(QByteArray::fromBase64( - "R0lGODlhEgASAIAAAAAAAP///yH5BAEAAAEALAAAAAASABIAAAIdjI+py+0G")); - property.setValue(logo); - property.insertParameter(QString::fromAscii("TYPE"), - QString::fromAscii("GIF")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - QContactOrganization organization = contact.detail(); - QByteArray content = mResourceHandler->mObjects.value(organization.logo()); - QCOMPARE(content, logo); - - // LOGO as a URL - property.setName(QString::fromAscii("LOGO")); - QString logoUrl(QString::fromAscii("http://www.organization.org/logo.gif")); - property.setValue(logoUrl); - property.insertParameter(QString::fromAscii("VALUE"),QString::fromAscii("URL")); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - organization = contact.detail(); - QCOMPARE(organization.logo(),logoUrl); -} - -void UT_QVersitContactImporter::testOrganizationRole() -{ - QContact contact; - QVersitDocument document; - QVersitProperty property; - - // Setting the role is not yet supported by QContactOrganization - property.setName(QString::fromAscii("ROLE")); - QString roleValue(QString::fromAscii("Very important manager and proud of it")); - property.setValue(roleValue); - document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - QContactOrganization organization = contact.detail(); - QCOMPARE(organization.role(), roleValue); -} - -void UT_QVersitContactImporter::testTel() -{ - QVersitDocument document; - QVersitProperty property; - property.setName(QString::fromAscii("TEL")); - QString value(QString::fromAscii("+35850987654321")); - property.setValue(value); - - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("VOICE")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("CELL")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("MODEM")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("CAR")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("VIDEO")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("FAX")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("BBS")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("PAGER")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("HOME")); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("WORK")); - - document.addProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - const QContactPhoneNumber& phone = contact.detail(); - QCOMPARE(phone.number(),QString(value)); - - const QStringList subTypes = phone.subTypes(); - QCOMPARE(subTypes.count(),8); - QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeVoice)); - QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeMobile)); - QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeModem)); - QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeCar)); - QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeVideo)); - QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeFacsimile)); - QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypeBulletinBoardSystem)); - QVERIFY(subTypes.contains(QContactPhoneNumber::SubTypePager)); - - const QStringList contexts = phone.contexts(); - QCOMPARE(contexts.count(),2); - QVERIFY(contexts.contains(QContactDetail::ContextWork)); - QVERIFY(contexts.contains(QContactDetail::ContextHome)); -} - -void UT_QVersitContactImporter::testEmail() -{ - QVersitProperty property; - property.setName(QString::fromAscii("EMAIL")); - QString value(QString::fromAscii("john.citizen@example.com")); - property.setValue(value); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("WORK")); - QVersitDocument document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactEmailAddress email = contact.detail(); - QCOMPARE(email.emailAddress(),value); - const QStringList contexts = email.contexts(); - QCOMPARE(contexts.count(),1); - QVERIFY(contexts.contains(QContactDetail::ContextWork)); - - QCOMPARE(mPropertyHandler->mUnknownProperties.size(), 0); -} - -void UT_QVersitContactImporter::testUrl() -{ - QVersitProperty property; - property.setName(QString::fromAscii("URL")); - QString value(QString::fromAscii("http://example.com")); - property.setValue(value); - property.insertParameter(QString::fromAscii("TYPE"),QString::fromAscii("WORK")); - QVersitDocument document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactUrl url = contact.detail(); - QCOMPARE(url.url(),value); - const QStringList contexts = url.contexts(); - QCOMPARE(contexts.count(),1); - QVERIFY(contexts.contains(QContactDetail::ContextWork)); -} - -void UT_QVersitContactImporter::testUid() -{ - QVersitProperty property; - property.setName(QString::fromAscii("UID")); - QString value(QString::fromAscii("unique identifier")); - property.setValue(value); - QVersitDocument document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactGuid uid = contact.detail(); - QCOMPARE(uid.guid(),value); -} - -void UT_QVersitContactImporter::testTimeStamp() -{ - // Simple date : ISO 8601 extended format - QVersitProperty property; - property.setName(QString::fromAscii("REV")); - QString dateValue(QString::fromAscii("1981-05-20")); - property.setValue(dateValue); - QVersitDocument document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactTimestamp timeStamp = contact.detail(); - QCOMPARE(timeStamp.lastModified().date().toString(Qt::ISODate),dateValue); - - // Date and Time : ISO 8601 extended format without utc offset - QString dateAndTimeValue(QString::fromAscii("1981-05-20T23:55:55")); - property.setValue(dateAndTimeValue); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - timeStamp = contact.detail(); - QCOMPARE(timeStamp.lastModified().toString(Qt::ISODate),dateAndTimeValue); - - // Date and Time : ISO 8601 extented format with utc offset - QString utcOffset(QString::fromAscii("Z")); - QString dateAndTimeWithUtcValue = dateAndTimeValue+utcOffset; - property.setValue(dateAndTimeWithUtcValue); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - timeStamp = contact.detail(); - QCOMPARE(timeStamp.lastModified().toString(Qt::ISODate),dateAndTimeValue); - QCOMPARE(timeStamp.lastModified().timeSpec(),Qt::UTC); - - // Date and Time : ISO 8601 in basic format without utc offset - dateAndTimeValue = QString::fromAscii("19810520T235555"); - property.setValue(dateAndTimeValue); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - timeStamp = contact.detail(); - - QCOMPARE(timeStamp.lastModified().toString(QString::fromAscii("yyyyMMddThhmmss")), - dateAndTimeValue); - - // Date and Time : ISO 8601 in basic format with utc offset - dateAndTimeValue = QString::fromAscii("19810520T235555"); - dateAndTimeWithUtcValue = dateAndTimeValue+utcOffset; - property.setValue(dateAndTimeWithUtcValue); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - timeStamp = contact.detail(); - QCOMPARE(timeStamp.lastModified().toString(QString::fromAscii("yyyyMMddThhmmss")), - dateAndTimeValue); - QCOMPARE(timeStamp.lastModified().timeSpec(),Qt::UTC); -} - -void UT_QVersitContactImporter::testAnniversary() -{ - // Date : ISO 8601 extended format - QVersitProperty property; - property.setName(QString::fromAscii("X-ANNIVERSARY")); - QString dateValue(QString::fromAscii("1981-05-20")); - property.setValue(dateValue); - QVersitDocument document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactAnniversary anniversary = contact.detail(); - QCOMPARE(anniversary.originalDate().toString(Qt::ISODate),dateValue); - - // Date : ISO 8601 in basic format - dateValue = QString::fromAscii("19810520"); - property.setValue(dateValue); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - anniversary = contact.detail(); - QCOMPARE(anniversary.originalDate().toString(QString::fromAscii("yyyyMMdd")), - dateValue); - -} - -void UT_QVersitContactImporter::testBirthday() -{ - // Date : ISO 8601 extended format - QVersitProperty property; - property.setName(QString::fromAscii("BDAY")); - QString dateValue(QString::fromAscii("1981-05-20")); - property.setValue(dateValue); - QVersitDocument document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactBirthday bday = contact.detail(); - QCOMPARE(bday.date().toString(Qt::ISODate), - dateValue); - - // Date : ISO 8601 in basic format - dateValue = QString::fromAscii("19810520"); - property.setValue(dateValue); - document = createDocumentWithProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - bday = contact.detail(); - QCOMPARE(bday.date().toString(QString::fromAscii("yyyyMMdd")), - dateValue); - -} - -void UT_QVersitContactImporter::testGender() -{ - // Date : ISO 8601 extended format - QVersitProperty property; - property.setName(QString::fromAscii("X-GENDER")); - QString val(QString::fromAscii("Male")); - property.setValue(val); - QVersitDocument document = createDocumentWithProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactGender gender = contact.detail(); - QCOMPARE(gender.gender(),val); -} - -void UT_QVersitContactImporter::testNickname() -{ - // one value - QVersitDocument document; - QVersitProperty nameProperty; - QString singleVal(QString::fromAscii("Homie")); - nameProperty.setName(QString::fromAscii("NICKNAME")); - nameProperty.setValue(singleVal); - document.addProperty(nameProperty); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactNickname nickName = (QContactNickname)contact.detail(QContactNickname::DefinitionName); - QCOMPARE(nickName.nickname(),singleVal); - - // comma separated values should generate multiple nickname fields - contact.clearDetails(); - document = QVersitDocument(); - QStringList multiVal; - multiVal.append(QString::fromAscii("Homie")); - multiVal.append(QString::fromAscii("SuperHero")); - multiVal.append(QString::fromAscii("NukeSpecialist")); - nameProperty.setName(QString::fromAscii("NICKNAME")); - nameProperty.setValue(multiVal.join(QString::fromAscii(","))); - document.addProperty(nameProperty); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - QList nickNames = contact.details(QContactNickname::DefinitionName); - QCOMPARE(nickNames.count(),3); - nickName = static_cast(nickNames[0]); - QCOMPARE(nickName.nickname(),QString::fromAscii("Homie")); - nickName = static_cast(nickNames[1]); - QCOMPARE(nickName.nickname(),QString::fromAscii("SuperHero")); - nickName = static_cast(nickNames[2]); - QCOMPARE(nickName.nickname(),QString::fromAscii("NukeSpecialist")); - - // X-NICKNAME - document = QVersitDocument(); - nameProperty = QVersitProperty(); - nameProperty.setName(QString::fromAscii("X-NICKNAME")); - nameProperty.setValue(singleVal); - document.addProperty(nameProperty); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - nickName = contact.detail(); - QCOMPARE(nickName.nickname(),singleVal); -} - -void UT_QVersitContactImporter::testAvatarStored() -{ - QByteArray gif(SAMPLE_GIF); - QStringList nameValues(QString::fromAscii("John")); // First name - nameValues.append(QString::fromAscii("Citizen")); // Last name - QString name = nameValues.join(QString::fromAscii(";")); - QVersitDocument document = createDocumentWithNameAndPhoto(name, gif, QLatin1String("GIF")); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactAvatar avatar = contact.detail(); - QVERIFY(avatar.subType() == QContactAvatar::SubTypeImage); - QByteArray content = mResourceHandler->mObjects.value(avatar.avatar()); - QCOMPARE(content, gif); - QPixmap pixmap(avatar.pixmap()); - QPixmap expectedPixmap; - expectedPixmap.loadFromData(gif); - QEXPECT_FAIL("", "Pixmap creation disabled. Will switch to QImage later.", Abort); - QCOMPARE(pixmap, expectedPixmap); - - // Without the resource handler, the pixmap should still be set. - mImporter->setResourceHandler(0); - contact = mImporter->importContacts(documentList).first(); - avatar = contact.detail(); - QVERIFY(avatar.subType() == QContactAvatar::SubTypeImage); - QVERIFY(avatar.avatar().isEmpty()); - pixmap = avatar.pixmap(); - QCOMPARE(pixmap, expectedPixmap); - - // Empty photo. The avatar should not be added to the QContact. - QVersitProperty property; - property.setName(QLatin1String("PHOTO")); - property.setValue(QByteArray()); - document.clear(); - document.addProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - QCOMPARE(contact.details(QContactAvatar::DefinitionName).size(), 0); - - mImporter->setResourceHandler(mResourceHandler); -} - -void UT_QVersitContactImporter::testAvatarUrl() -{ - QVersitProperty property; - property.setName(QLatin1String("PHOTO")); - QString value(QLatin1String("http://example.com/example.jpg")); - property.setValue(value); - property.insertParameter(QLatin1String("VALUE"), QLatin1String("URL")); - - QVersitDocument document; - document.addProperty(property); - QList documentList; - documentList.append(document); - - QContact contact = mImporter->importContacts(documentList).first(); - QContactAvatar avatar = contact.detail(); - QCOMPARE(avatar.avatar(), QLatin1String("http://example.com/example.jpg")); - QVERIFY(avatar.subType() == QContactAvatar::SubTypeImage); - - - // A URL disguised inside a QByteArray. - document.clear(); - property.clear(); - property.setName(QLatin1String("PHOTO")); - property.setValue(QByteArray("http://example.com/example.jpg")); - property.insertParameter(QLatin1String("VALUE"), QLatin1String("URL")); - property.insertParameter(QLatin1String("CHARSET"), QLatin1String("UTF-8")); - document.addProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - avatar = contact.detail(); - QCOMPARE(avatar.avatar(), QLatin1String("http://example.com/example.jpg")); - QVERIFY(avatar.subType() == QContactAvatar::SubTypeImage); -} - -void UT_QVersitContactImporter::testAvatarInvalid() -{ - // An avatar that's a QVersitDocument? It shouldn't work. - QVersitDocument document; - QVersitProperty property; - property.setName(QLatin1String("PHOTO")); - QVersitDocument nestedDocument; - property.setValue(QVariant::fromValue(nestedDocument)); - property.insertParameter(QLatin1String("VALUE"), QLatin1String("URL")); - document.addProperty(property); - QList list; - list.append(document); - QContact contact = mImporter->importContacts(list).first(); - QCOMPARE(contact.details(QContactAvatar::DefinitionName).size(), 0); - - document.clear(); - property.clear(); - list.clear(); - property.setName(QLatin1String("PHOTO")); - property.setValue(QVariant::fromValue(nestedDocument)); - document.addProperty(property); - list.append(document); - contact = mImporter->importContacts(list).first(); - QCOMPARE(contact.details(QContactAvatar::DefinitionName).size(), 0); -} - -void UT_QVersitContactImporter::testGeo() -{ - // some positive values - QVersitDocument document; - QVersitProperty nameProperty; - QStringList val; - val.append(QString::fromAscii("18.53"));// Longtitude - val.append(QString::fromAscii("45.32")); // Latitude - nameProperty.setName(QString::fromAscii("GEO")); - nameProperty.setValue(val.join(QString::fromAscii(","))); - document.addProperty(nameProperty); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactGeoLocation geo = (QContactGeoLocation)contact.detail(QContactGeoLocation::DefinitionName); - QString str; - str.setNum(geo.longitude(),'.',2); - QCOMPARE(str,val[0]); - str.setNum(geo.latitude(),'.',2); - QCOMPARE(str,val[1]); - - // some negative values - document = QVersitDocument(); - nameProperty = QVersitProperty(); - val.append(QString::fromAscii("18.53"));// Longtitude - val.append(QString::fromAscii("-45.32")); // Latitude - nameProperty.setName(QString::fromAscii("GEO")); - nameProperty.setValue(val.join(QString::fromAscii(","))); - document.addProperty(nameProperty); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - geo = (QContactGeoLocation)contact.detail(QContactGeoLocation::DefinitionName); - str.setNum(geo.longitude(),'.',2); - QCOMPARE(str,val[0]); - str.setNum(geo.latitude(),'.',2); - QCOMPARE(str,val[1]); -} - -void UT_QVersitContactImporter::testNote() -{ - // single line value - QVersitDocument document; - QVersitProperty nameProperty; - QString val(QString::fromAscii("I will not sleep at my work -John")); - nameProperty.setName(QString::fromAscii("NOTE")); - nameProperty.setValue(val); - document.addProperty(nameProperty); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactNote note = (QContactNote)contact.detail(QContactNote::DefinitionName); - QCOMPARE(note.note(),val); - - // Multiline value and quoted printable encoding - document = QVersitDocument(); - nameProperty = QVersitProperty(); - val = QString::fromAscii("My Dad acts like he belongs,=0D=0AHe belongs in the zoo.=0D=0A"); - nameProperty.setName(QString::fromAscii("NOTE")); - nameProperty.setValue(val); - QMultiHash params; - params.insert(QString::fromAscii("QUOTED-PRINTABLE"),val); - nameProperty.setParameters(params); - document.addProperty(nameProperty); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - note = (QContactNote)contact.detail(QContactNote::DefinitionName); - QCOMPARE(note.note(),val); -} - -void UT_QVersitContactImporter::testLabel() -{ - QVersitDocument document; - QVersitProperty nameProperty; - QString val(QString::fromAscii("John Citizen")); - nameProperty.setName(QString::fromAscii("FN")); - nameProperty.setValue(val); - document.addProperty(nameProperty); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactName name = - (QContactName)contact.detail(QContactName::DefinitionName); - QCOMPARE(name.customLabel(),val); -} - -void UT_QVersitContactImporter::testOnlineAccount() -{ - QString accountUri(QString::fromAscii("sip:john.citizen@example.com")); - - // Plain X-SIP, no TYPE -> - QVersitDocument document; - QVersitProperty property; - property.setName(QString::fromAscii("X-SIP")); - property.setValue(accountUri); - document.addProperty(property); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactOnlineAccount onlineAccount = contact.detail(); - QCOMPARE(onlineAccount.accountUri(),accountUri); - QStringList subTypes = onlineAccount.subTypes(); - QCOMPARE(subTypes.count(),1); - QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeSip); - - // X-SIP;SWIS - document = QVersitDocument(); - property = QVersitProperty(); - property.setName(QString::fromAscii("X-SIP")); - property.setValue(accountUri); - QMultiHash params; - params.insert(QString::fromAscii("TYPE"),QString::fromAscii("SWIS")); - property.setParameters(params); - document.addProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - onlineAccount = contact.detail(); - QCOMPARE(onlineAccount.accountUri(),accountUri); - subTypes = onlineAccount.subTypes(); - QCOMPARE(subTypes.count(),1); - QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeVideoShare); - - // X-SIP;VOIP - document = QVersitDocument(); - property = QVersitProperty(); - property.setName(QString::fromAscii("X-SIP")); - property.setValue(accountUri); - params.clear(); - params.insert(QString::fromAscii("TYPE"),QString::fromAscii("VOIP")); - property.setParameters(params); - document.addProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - onlineAccount = contact.detail(); - QCOMPARE(onlineAccount.accountUri(),accountUri); - subTypes = onlineAccount.subTypes(); - QCOMPARE(subTypes.count(),1); - QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeSipVoip); - - // X-IMPP - document = QVersitDocument(); - property = QVersitProperty(); - property.setName(QString::fromAscii("X-IMPP")); - property.setValue(accountUri); - document.addProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - onlineAccount = contact.detail(); - QCOMPARE(onlineAccount.accountUri(),accountUri); - subTypes = onlineAccount.subTypes(); - QCOMPARE(subTypes.count(),1); - QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeImpp); - - // IMPP - document = QVersitDocument(); - property = QVersitProperty(); - property.setName(QString::fromAscii("IMPP")); - property.setValue(accountUri); - document.addProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - onlineAccount = contact.detail(); - QCOMPARE(onlineAccount.accountUri(),accountUri); - subTypes = onlineAccount.subTypes(); - QCOMPARE(subTypes.count(),1); - QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeImpp); - - // X-JABBER - document = QVersitDocument(); - property = QVersitProperty(); - property.setName(QString::fromAscii("X-JABBER")); - property.setValue(accountUri); - document.addProperty(property); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - onlineAccount = contact.detail(); - QCOMPARE(onlineAccount.accountUri(),accountUri); - subTypes = onlineAccount.subTypes(); - QCOMPARE(subTypes.count(),1); - QVERIFY(subTypes.first() == QContactOnlineAccount::SubTypeImpp); -} - -void UT_QVersitContactImporter::testFamily() -{ - // Interesting : kid but no wife :) - QVersitDocument document; - QVersitProperty nameProperty; - QString val(QString::fromAscii("Jane")); // one is enough - nameProperty.setName(QString::fromAscii("X-CHILDREN")); - nameProperty.setValue(val); - document.addProperty(nameProperty); - QList documentList; - documentList.append(document); - QContact contact = mImporter->importContacts(documentList).first(); - QContactFamily family = (QContactFamily)contact.detail(QContactFamily::DefinitionName); - QStringList children = family.children(); - QCOMPARE(children.count(),1); // ensure no other kids in list - QCOMPARE(family.spouse(),QString()); // make sure no wife - QCOMPARE(children[0],val); // ensure it is your kid - - // Critical : wife but no kids , happy hours - document = QVersitDocument(); - nameProperty = QVersitProperty(); - nameProperty.setName(QString::fromAscii("X-SPOUSE")); - val = QString::fromAscii("Jenny"); - nameProperty.setValue(val); - document.addProperty(nameProperty); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - family = (QContactFamily)contact.detail(QContactFamily::DefinitionName); - children = family.children(); - QCOMPARE(children.count(),0); // list should be empty as you know - QCOMPARE(family.spouse(),val); // make sure thats your wife:( - - // Hopeless : couple of kids and wife - document = QVersitDocument(); - // Add kids first - nameProperty = QVersitProperty(); - nameProperty.setName(QString::fromAscii("X-CHILDREN")); - QStringList kidsVal; - kidsVal.append(QString::fromAscii("James")); - kidsVal.append(QString::fromAscii("Jake")); - kidsVal.append(QString::fromAscii("Jane")); - nameProperty.setValue(kidsVal.join(QString::fromAscii(","))); - document.addProperty(nameProperty); - // Add wife next - val = QString::fromAscii("Jenny"); - nameProperty = QVersitProperty(); - nameProperty.setName(QString::fromAscii("X-SPOUSE")); - nameProperty.setValue(val); - document.addProperty(nameProperty); - documentList.clear(); - documentList.append(document); - contact = mImporter->importContacts(documentList).first(); - family = (QContactFamily)contact.detail(QContactFamily::DefinitionName); - children = family.children(); - QCOMPARE(children.count(),3); // too late , count them now. - // painfull but ensure they are your kids - QCOMPARE(children.join(QString::fromAscii(",")),kidsVal.join(QString::fromAscii(","))); - QCOMPARE(family.spouse(),val); // make sure thats your wife:( -} - -void UT_QVersitContactImporter::testSound() -{ - QVersitDocument document; - QVersitProperty nameProperty; - nameProperty.setName(QString::fromAscii("N")); - nameProperty.setValue(QString::fromAscii("Citizen;John;;;")); - document.addProperty(nameProperty); - nameProperty = QVersitProperty(); - QVersitProperty soundProperty; - QMultiHash param; - param.insert(QString::fromAscii("TYPE"),QString::fromAscii("WAVE")); - soundProperty.setName(QString::fromAscii("SOUND")); - QByteArray val("111110000011111"); - soundProperty.setValue(val); - soundProperty.setParameters(param); - document.addProperty(soundProperty); - QList documents; - documents.append(document); - QContact contact = mImporter->importContacts(documents).first(); - QContactAvatar avatar = (QContactAvatar)contact.detail(QContactAvatar::DefinitionName); - QCOMPARE(avatar.value(QContactAvatar::FieldSubType),QContactAvatar::SubTypeAudioRingtone.operator QString()); - QVERIFY(!avatar.hasValue(QContactAvatar::FieldAvatarPixmap)); - QByteArray content = mResourceHandler->mObjects.value(avatar.avatar()); - QCOMPARE(content, val); -} - -void UT_QVersitContactImporter::testPref() -{ - QVersitDocument document; - QVersitProperty property1; - property1.setName(QLatin1String("TEL")); - property1.setValue(QLatin1String("1")); - document.addProperty(property1); - QVersitProperty property2; - property2.setName(QLatin1String("TEL")); - property2.setValue(QLatin1String("2")); - property2.insertParameter(QLatin1String("TYPE"), QLatin1String("PREF")); - document.addProperty(property2); - QVersitProperty property3; - property3.setName(QLatin1String("TEL")); - property3.setValue(QLatin1String("3")); - property3.insertParameter(QLatin1String("TYPE"), QLatin1String("PREF")); - document.addProperty(property3); - QVersitProperty property4; - property4.setName(QLatin1String("TEL")); - property4.setValue(QLatin1String("4")); - document.addProperty(property4); - - // Test that pref details comes first. - QList documents; - documents.append(document); - QContact contact = mImporter->importContacts(documents).first(); - QContactPhoneNumber firstNumber = contact.detail(); - QCOMPARE(firstNumber.number(), QLatin1String("2")); - QList numbers = contact.details(); - QCOMPARE(numbers.at(0).number(), QLatin1String("2")); - QCOMPARE(numbers.at(1).number(), QLatin1String("3")); - QCOMPARE(numbers.at(2).number(), QLatin1String("1")); - QCOMPARE(numbers.at(3).number(), QLatin1String("4")); -} - -void UT_QVersitContactImporter::testPropertyHandler() -{ - QVersitDocument document; - QVersitProperty property; - - // No unconverted properties, no converted properties either - QList documents; - documents.append(document); - mImporter->importContacts(documents); - QCOMPARE(mPropertyHandler->mUnknownProperties.size(), 0); - QCOMPARE(mPropertyHandler->mPreProcessedProperties.size(), 0); - QCOMPARE(mPropertyHandler->mPostProcessedProperties.size(), 0); - - // No unconverted properties, one converted property - mPropertyHandler->clear(); - property.setName(QString::fromAscii("N")); - property.setValue(QString::fromAscii("Citizen;John;Q;;")); - document.addProperty(property); - documents.clear(); - documents.append(document); - QContact contact = mImporter->importContacts(documents).first(); - QCOMPARE(mPropertyHandler->mUnknownProperties.size(), 0); - QCOMPARE(mPropertyHandler->mPreProcessedProperties.size(), 1); - QCOMPARE(mPropertyHandler->mPostProcessedProperties.size(), 1); - - // Set the handler to override handling of the property - mPropertyHandler->clear(); - mPropertyHandler->mPreProcess = true; - document = QVersitDocument(); - property.setName(QString::fromAscii("N")); - property.setValue(QString::fromAscii("Citizen;John;Q;;")); - document.addProperty(property); - documents.clear(); - documents.append(document); - contact = mImporter->importContacts(documents).first(); - QCOMPARE(mPropertyHandler->mUnknownProperties.size(), 0); - QCOMPARE(mPropertyHandler->mPreProcessedProperties.size(), 1); - QCOMPARE(mPropertyHandler->mPostProcessedProperties.size(), 0); - QContactDetail nameDetail = contact.detail(QContactName::DefinitionName); - QVERIFY(nameDetail.isEmpty()); - - // One unknown property - mPropertyHandler->clear(); - property.setName(QString::fromAscii("X-EXTENSION-1")); - property.setValue(QString::fromAscii("extension value 1")); - document.addProperty(property); - documents.clear(); - documents.append(document); - mImporter->importContacts(documents); - QList unknownProperties = mPropertyHandler->mUnknownProperties; - QCOMPARE(unknownProperties.count(), 1); - QCOMPARE(unknownProperties[0].name(), QString::fromAscii("X-EXTENSION-1")); - QCOMPARE(unknownProperties[0].value(), QString::fromAscii("extension value 1")); - - // Two unknown properties - mPropertyHandler->clear(); - property.setName(QString::fromAscii("X-EXTENSION-2")); - property.setValue(QString::fromAscii("extension value 2")); - document.addProperty(property); - documents.clear(); - documents.append(document); - mImporter->importContacts(documents); - unknownProperties = mPropertyHandler->mUnknownProperties; - QCOMPARE(unknownProperties.count(), 2); - QCOMPARE(unknownProperties[0].name(), QString::fromAscii("X-EXTENSION-1")); - QCOMPARE(unknownProperties[0].value(), QString::fromAscii("extension value 1")); - QCOMPARE(unknownProperties[1].name(), QString::fromAscii("X-EXTENSION-2")); - QCOMPARE(unknownProperties[1].value(), QString::fromAscii("extension value 2")); -} - -QVersitDocument UT_QVersitContactImporter::createDocumentWithProperty( - const QVersitProperty& property) -{ - QVersitDocument document; - document.addProperty(property); - return document; -} - -QVersitDocument UT_QVersitContactImporter::createDocumentWithNameAndPhoto( - const QString& name, - QByteArray image, - const QString& imageType) -{ - QVersitDocument document; - - QVersitProperty nameProperty; - nameProperty.setName(QString::fromAscii("N")); - nameProperty.setValue(name); - document.addProperty(nameProperty); - - QVersitProperty property; - property.setName(QString::fromAscii("PHOTO")); - property.setValue(image); - if (imageType != QString()) { - property.insertParameter(QString::fromAscii("TYPE"), imageType); - } - document.addProperty(property); - - return document; -} - -QTEST_MAIN(UT_QVersitContactImporter) - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitcontactimporter/ut_qversitcontactimporter.h --- a/qtmobility/tests/auto/qversitcontactimporter/ut_qversitcontactimporter.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,112 +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 Qt Mobility Components. -** -** $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 UT_QVERSITCONTACTIMPORTER_H -#define UT_QVERSITCONTACTIMPORTER_H - -#include -#include -#include -#include - -QTM_BEGIN_NAMESPACE - -class QVersitContactImporter; -class QVersitContactImporterPrivate; -class MyQVersitContactImporterPropertyHandler; -class MyQVersitResourceHandler; - -QTM_END_NAMESPACE -QTM_USE_NAMESPACE - -class UT_QVersitContactImporter : public QObject -{ - Q_OBJECT - -private slots: // Tests - void init(); - void cleanup(); - - void testName(); - void testNameWithFormatted(); - void testAddress(); - void testTel(); - void testEmail(); - void testUrl(); - void testUid(); - void testOrganizationName(); - void testOrganizationTitle(); - void testOrganizationLogo(); - void testOrganizationAssistant(); - void testOrganizationRole(); - void testTimeStamp(); - void testAnniversary(); - void testBirthday(); - void testGender(); - void testNickname(); - void testAvatarStored(); - void testAvatarUrl(); - void testAvatarInvalid(); - void testGeo(); - void testNote(); - void testOnlineAccount(); - void testFamily(); - void testSound(); - void testLabel(); - void testPref(); - void testPropertyHandler(); - -private: // Utilities - - QVersitDocument createDocumentWithProperty(const QVersitProperty& property); - - QVersitDocument createDocumentWithNameAndPhoto( - const QString& name, - QByteArray image, - const QString& photoType); - -private: - QVersitContactImporter* mImporter; - MyQVersitContactImporterPropertyHandler* mPropertyHandler; - MyQVersitResourceHandler* mResourceHandler; -}; - -#endif // UT_QVERSITCONTACTIMPORTER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitdocument/qversitdocument.pro --- a/qtmobility/tests/auto/qversitdocument/qversitdocument.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qversitdocument/qversitdocument.pro Mon May 03 13:18:40 2010 +0300 @@ -16,8 +16,8 @@ ../../../src/contacts/requests \ ../../../src/contacts/filters -HEADERS += ut_qversitdocument.h -SOURCES += ut_qversitdocument.cpp +HEADERS += tst_qversitdocument.h +SOURCES += tst_qversitdocument.cpp CONFIG += mobility MOBILITY = contacts versit diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitdocument/tst_qversitdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitdocument/tst_qversitdocument.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,211 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "tst_qversitdocument.h" +#include "qversitdocument.h" +#include "qversitproperty.h" +#include +#include + +QTM_USE_NAMESPACE + +void tst_QVersitDocument::init() +{ + mVersitDocument = new QVersitDocument(); + QVERIFY(mVersitDocument); +} + +void tst_QVersitDocument::cleanup() +{ + delete mVersitDocument; +} + + +void tst_QVersitDocument::testConstructor() +{ + QCOMPARE(QVersitDocument::InvalidType, mVersitDocument->type()); +} + +void tst_QVersitDocument::testType() +{ + mVersitDocument->setType(QVersitDocument::VCard21Type); + QCOMPARE(QVersitDocument::VCard21Type, mVersitDocument->type()); + + mVersitDocument->setType(QVersitDocument::VCard30Type); + QCOMPARE(QVersitDocument::VCard30Type, mVersitDocument->type()); +} + +void tst_QVersitDocument::testAddProperty() +{ + QCOMPARE(0, mVersitDocument->properties().count()); + QVersitProperty property; + mVersitDocument->addProperty(property); + QCOMPARE(1, mVersitDocument->properties().count()); +} + +void tst_QVersitDocument::testRemoveProperty() +{ + // Remove an empty property. + QCOMPARE(mVersitDocument->properties().count(), 0); + QVersitProperty property; + mVersitDocument->addProperty(property); + mVersitDocument->removeProperty(property); + QCOMPARE(mVersitDocument->properties().count(), 0); + + // A full property. + property.setName(QLatin1String("TEL")); + property.setGroups(QStringList(QLatin1String("HOME"))); + QMultiHash params; + params.insert(QLatin1String("TYPE"), QLatin1String("HOME")); + property.setParameters(params); + property.setValue(QLatin1String("123")); + mVersitDocument->addProperty(property); + QCOMPARE(mVersitDocument->properties().count(), 1); + QVersitProperty property2; + property2.setName(QLatin1String("TEL")); + // Remove with a partial property fails. + mVersitDocument->removeProperty(property2); + QCOMPARE(mVersitDocument->properties().count(), 1); + property2.setGroups(QStringList(QLatin1String("HOME"))); + property2.setParameters(params); + property2.setValue(QLatin1String("123")); + // Remove with a fully specified property succeeds. + mVersitDocument->removeProperty(property2); + QCOMPARE(mVersitDocument->properties().count(), 0); +} + +void tst_QVersitDocument::testRemoveAllProperties() +{ + QString name(QString::fromAscii("FN")); + + // Try to remove from an empty document + QCOMPARE(0, mVersitDocument->properties().count()); + mVersitDocument->removeProperties(name); + QCOMPARE(0, mVersitDocument->properties().count()); + + // Try to remove from a non-empty document, name does not match + QVersitProperty property; + property.setName(QString::fromAscii("TEL")); + mVersitDocument->addProperty(property); + QCOMPARE(1, mVersitDocument->properties().count()); + mVersitDocument->removeProperties(name); + QCOMPARE(1, mVersitDocument->properties().count()); + + // Remove from a non-empty document, name matches + mVersitDocument->removeProperties(QString::fromAscii("TEL")); + QCOMPARE(0, mVersitDocument->properties().count()); + + // Remove from a document with two properties, first matches + property.setName(name); + mVersitDocument->addProperty(property); + property.setName(QString::fromAscii("TEL")); + mVersitDocument->addProperty(property); + QCOMPARE(2, mVersitDocument->properties().count()); + mVersitDocument->removeProperties(name); + QCOMPARE(1, mVersitDocument->properties().count()); + + // Remove from a document with two properties, second matches + property.setName(name); + mVersitDocument->addProperty(property); + QCOMPARE(2, mVersitDocument->properties().count()); + mVersitDocument->removeProperties(name); + QCOMPARE(1, mVersitDocument->properties().count()); +} + +void tst_QVersitDocument::testEquality() +{ + QVersitDocument document1; + QVersitDocument document2; + QVERIFY(document1.isEmpty()); + QVERIFY(document1 == document2); + QVERIFY(!(document1 != document2)); + QVersitProperty property; + property.setName(QLatin1String("FN")); + property.setValue(QLatin1String("John Citizen")); + document2.addProperty(property); + QVERIFY(!(document1 == document2)); + QVERIFY(document1 != document2); + QVERIFY(!document2.isEmpty()); + + document1.addProperty(property); + QVERIFY(document1 == document2); + QVERIFY(!(document1 != document2)); + + document2.clear(); + QVERIFY(document2.isEmpty()); + + document1.clear(); + QVERIFY(document1 == document2); + QVERIFY(!(document1 != document2)); + + document2.setType(QVersitDocument::VCard21Type); + QVERIFY(!(document1 == document2)); + QVERIFY(document1 != document2); + QVERIFY(!document2.isEmpty()); +} + +void tst_QVersitDocument::testHash() +{ + QVersitDocument document1; + document1.setType(QVersitDocument::VCard30Type); + QVersitProperty property1; + property1.setName(QLatin1String("name")); + property1.setValue(QLatin1String("value")); + document1.addProperty(property1); + QVersitDocument document2; + document2.setType(QVersitDocument::VCard30Type); + document2.addProperty(property1); + QVersitDocument document3; + document3.setType(QVersitDocument::VCard30Type); + QVersitProperty property3; + property3.setName(QLatin1String("name")); + property3.setValue(QLatin1String("another value")); + document3.addProperty(property3); + QVersitDocument document4; // no properties + document4.setType(QVersitDocument::VCard30Type); + + QVERIFY(qHash(document1) == qHash(document2)); + QVERIFY(qHash(document1) != qHash(document3)); + QVERIFY(qHash(document1) != qHash(document4)); +} + +QTEST_MAIN(tst_QVersitDocument) + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitdocument/tst_qversitdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitdocument/tst_qversitdocument.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,75 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 tst_QVERSITDOCUMENT_H +#define tst_QVERSITDOCUMENT_H + +#include +#include + +QTM_BEGIN_NAMESPACE + +class QVersitDocument; + +QTM_END_NAMESPACE +QTM_USE_NAMESPACE + +class tst_QVersitDocument : public QObject +{ + Q_OBJECT + +private slots: + void init(); + void cleanup(); + + void testConstructor(); + void testType(); + void testAddProperty(); + void testRemoveProperty(); + void testRemoveAllProperties(); + void testEquality(); + void testHash(); + +private: // data + QVersitDocument* mVersitDocument; +}; + +#endif // tst_QVERSITDOCUMENT_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitdocument/ut_qversitdocument.cpp --- a/qtmobility/tests/auto/qversitdocument/ut_qversitdocument.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,186 +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 Qt Mobility Components. -** -** $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 "ut_qversitdocument.h" -#include "qversitdocument.h" -#include "qversitproperty.h" -#include -#include - -QTM_USE_NAMESPACE - -void UT_QVersitDocument::init() -{ - mVersitDocument = new QVersitDocument(); - QVERIFY(mVersitDocument); -} - -void UT_QVersitDocument::cleanup() -{ - delete mVersitDocument; -} - - -void UT_QVersitDocument::testConstructor() -{ - QCOMPARE(QVersitDocument::InvalidType, mVersitDocument->type()); -} - -void UT_QVersitDocument::testType() -{ - mVersitDocument->setType(QVersitDocument::VCard21Type); - QCOMPARE(QVersitDocument::VCard21Type, mVersitDocument->type()); - - mVersitDocument->setType(QVersitDocument::VCard30Type); - QCOMPARE(QVersitDocument::VCard30Type, mVersitDocument->type()); -} - -void UT_QVersitDocument::testAddProperty() -{ - QCOMPARE(0, mVersitDocument->properties().count()); - QVersitProperty property; - mVersitDocument->addProperty(property); - QCOMPARE(1, mVersitDocument->properties().count()); -} - -void UT_QVersitDocument::testRemoveProperty() -{ - // Remove an empty property. - QCOMPARE(mVersitDocument->properties().count(), 0); - QVersitProperty property; - mVersitDocument->addProperty(property); - mVersitDocument->removeProperty(property); - QCOMPARE(mVersitDocument->properties().count(), 0); - - // A full property. - property.setName(QLatin1String("TEL")); - property.setGroups(QStringList(QLatin1String("HOME"))); - QMultiHash params; - params.insert(QLatin1String("TYPE"), QLatin1String("HOME")); - property.setParameters(params); - property.setValue(QLatin1String("123")); - mVersitDocument->addProperty(property); - QCOMPARE(mVersitDocument->properties().count(), 1); - QVersitProperty property2; - property2.setName(QLatin1String("TEL")); - // Remove with a partial property fails. - mVersitDocument->removeProperty(property2); - QCOMPARE(mVersitDocument->properties().count(), 1); - property2.setGroups(QStringList(QLatin1String("HOME"))); - property2.setParameters(params); - property2.setValue(QLatin1String("123")); - // Remove with a fully specified property succeeds. - mVersitDocument->removeProperty(property2); - QCOMPARE(mVersitDocument->properties().count(), 0); -} - -void UT_QVersitDocument::testRemoveAllProperties() -{ - QString name(QString::fromAscii("FN")); - - // Try to remove from an empty document - QCOMPARE(0, mVersitDocument->properties().count()); - mVersitDocument->removeProperties(name); - QCOMPARE(0, mVersitDocument->properties().count()); - - // Try to remove from a non-empty document, name does not match - QVersitProperty property; - property.setName(QString::fromAscii("TEL")); - mVersitDocument->addProperty(property); - QCOMPARE(1, mVersitDocument->properties().count()); - mVersitDocument->removeProperties(name); - QCOMPARE(1, mVersitDocument->properties().count()); - - // Remove from a non-empty document, name matches - mVersitDocument->removeProperties(QString::fromAscii("TEL")); - QCOMPARE(0, mVersitDocument->properties().count()); - - // Remove from a document with two properties, first matches - property.setName(name); - mVersitDocument->addProperty(property); - property.setName(QString::fromAscii("TEL")); - mVersitDocument->addProperty(property); - QCOMPARE(2, mVersitDocument->properties().count()); - mVersitDocument->removeProperties(name); - QCOMPARE(1, mVersitDocument->properties().count()); - - // Remove from a document with two properties, second matches - property.setName(name); - mVersitDocument->addProperty(property); - QCOMPARE(2, mVersitDocument->properties().count()); - mVersitDocument->removeProperties(name); - QCOMPARE(1, mVersitDocument->properties().count()); -} - -void UT_QVersitDocument::testEquality() -{ - QVersitDocument document1; - QVersitDocument document2; - QVERIFY(document1.isEmpty()); - QVERIFY(document1 == document2); - QVERIFY(!(document1 != document2)); - QVersitProperty property; - property.setName(QLatin1String("FN")); - property.setValue(QLatin1String("John Citizen")); - document2.addProperty(property); - QVERIFY(!(document1 == document2)); - QVERIFY(document1 != document2); - QVERIFY(!document2.isEmpty()); - - document1.addProperty(property); - QVERIFY(document1 == document2); - QVERIFY(!(document1 != document2)); - - document2.clear(); - QVERIFY(document2.isEmpty()); - - document1.clear(); - QVERIFY(document1 == document2); - QVERIFY(!(document1 != document2)); - - document2.setType(QVersitDocument::VCard21Type); - QVERIFY(!(document1 == document2)); - QVERIFY(document1 != document2); - QVERIFY(!document2.isEmpty()); -} - -QTEST_MAIN(UT_QVersitDocument) - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitdocument/ut_qversitdocument.h --- a/qtmobility/tests/auto/qversitdocument/ut_qversitdocument.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +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 Qt Mobility Components. -** -** $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 UT_QVERSITDOCUMENT_H -#define UT_QVERSITDOCUMENT_H - -#include -#include - -QTM_BEGIN_NAMESPACE - -class QVersitDocument; - -QTM_END_NAMESPACE -QTM_USE_NAMESPACE - -class UT_QVersitDocument : public QObject -{ - Q_OBJECT - -private slots: - void init(); - void cleanup(); - - void testConstructor(); - void testType(); - void testAddProperty(); - void testRemoveProperty(); - void testRemoveAllProperties(); - void testEquality(); - -private: // data - QVersitDocument* mVersitDocument; -}; - -#endif // UT_QVERSITDOCUMENT_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitproperty/qversitproperty.pro --- a/qtmobility/tests/auto/qversitproperty/qversitproperty.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qversitproperty/qversitproperty.pro Mon May 03 13:18:40 2010 +0300 @@ -16,8 +16,8 @@ ../../../src/contacts/requests \ ../../../src/contacts/filters -HEADERS += ut_qversitproperty.h -SOURCES += ut_qversitproperty.cpp +HEADERS += tst_qversitproperty.h +SOURCES += tst_qversitproperty.cpp CONFIG += mobility MOBILITY = contacts versit diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitproperty/tst_qversitproperty.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitproperty/tst_qversitproperty.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,201 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "tst_qversitproperty.h" +#include "qversitproperty.h" +#include "qversitproperty_p.h" +#include "qversitdocument.h" +#include + +QTM_USE_NAMESPACE + +void tst_QVersitProperty::init() +{ + mVersitProperty = new QVersitProperty(); + QVERIFY(mVersitProperty); +} + +void tst_QVersitProperty::cleanup() +{ + delete mVersitProperty; +} + +void tst_QVersitProperty::testGroup() +{ + // One group + QStringList group(QString::fromAscii("GROUP_NAME")); + mVersitProperty->setGroups(group); + QCOMPARE(mVersitProperty->groups(), group); + + // Several groups + QStringList groupList; + groupList.append(QString::fromAscii("GROUP1")); + groupList.append(QString::fromAscii("Group2")); + groupList.append(QString::fromAscii("group3")); + mVersitProperty->setGroups(groupList); + QCOMPARE(mVersitProperty->groups(), groupList); +} + +void tst_QVersitProperty::testName() +{ + // Name in upper case + QString name(QString::fromAscii("TEL")); + mVersitProperty->setName(name); + QCOMPARE(mVersitProperty->name(), name); + + // Name in lower case, converted automatically to upper case + mVersitProperty->setName(QString::fromAscii("tel")); + QCOMPARE(mVersitProperty->name(), name); +} + +void tst_QVersitProperty::testParameters() +{ + QString typeParameterName(QString::fromAscii("TYPE")); + + QString name(QString::fromAscii("type")); + QString value1(QString::fromAscii("home")); + mVersitProperty->insertParameter(name,value1); + QMultiHash parameters = mVersitProperty->parameters(); + QCOMPARE(parameters.count(), 1); + QVERIFY(parameters.contains(typeParameterName,QString::fromAscii("HOME"))); + + QString value2(QString::fromAscii("voice")); + mVersitProperty->insertParameter(name,value2); + parameters = mVersitProperty->parameters(); + QCOMPARE(parameters.count(), 2); + QVERIFY(parameters.contains(typeParameterName,QString::fromAscii("HOME"))); + QVERIFY(parameters.contains(typeParameterName,QString::fromAscii("VOICE"))); + + mVersitProperty->removeParameter(name,value1); + QCOMPARE(mVersitProperty->parameters().count(), 1); + QVERIFY(parameters.contains(typeParameterName,QString::fromAscii("HOME"))); + + mVersitProperty->removeParameter(name,value2); + QCOMPARE(mVersitProperty->parameters().count(), 0); + + mVersitProperty->insertParameter(name, value1); + mVersitProperty->insertParameter(name, value2); + QCOMPARE(mVersitProperty->parameters().count(), 2); + mVersitProperty->removeParameters(name); + QCOMPARE(mVersitProperty->parameters().count(), 0); +} + +void tst_QVersitProperty::testValue() +{ + QString value(QString::fromAscii("050484747")); + mVersitProperty->setValue(value); + QCOMPARE(mVersitProperty->value(), value); +} + +void tst_QVersitProperty::testEmbeddedDocument() +{ + QVersitDocument document; + QVersitProperty property; + property.setName(QString::fromAscii("X-tension")); + document.addProperty(property); + mVersitProperty->setValue(QVariant::fromValue(document)); + QList embeddedDocumentProperties = + mVersitProperty->value().properties(); + QCOMPARE(embeddedDocumentProperties.count(),1); + QCOMPARE(embeddedDocumentProperties[0].name(),QString::fromAscii("X-TENSION")); +} + +void tst_QVersitProperty::testEquality() +{ + QVersitProperty property1; + QVersitProperty property2; + QVERIFY(property1.isEmpty()); + QVERIFY(property1 == property2); + QVERIFY(!(property1 != property2)); + property2.setName(QLatin1String("FN")); + property2.setValue(QLatin1String("John Citizen")); + QVERIFY(!(property1 == property2)); + QVERIFY(property1 != property2); + QVERIFY(!property2.isEmpty()); + + property1.setName(QLatin1String("FN")); + property1.setValue(QLatin1String("John Citizen")); + QVERIFY(property1 == property2); + QVERIFY(!(property1 != property2)); + + property2.clear(); + QVERIFY(property2.isEmpty()); + + property1.clear(); + QVERIFY(property1 == property2); + QVERIFY(!(property1 != property2)); +} + +void tst_QVersitProperty::testHash() +{ + QVersitProperty property1; + property1.setGroups(QStringList() << QLatin1String("group1") << QLatin1String("group2")); + property1.setName(QLatin1String("name")); + property1.setValue(QLatin1String("value")); + property1.insertParameter(QLatin1String("param"), QLatin1String("value")); + QVersitProperty property2; + property2.setGroups(QStringList() << QLatin1String("group1") << QLatin1String("group2")); + property2.setName(QLatin1String("name")); + property2.setValue(QLatin1String("value")); + property2.insertParameter(QLatin1String("param"), QLatin1String("value")); + QVersitProperty property3; // no groups + property3.setName(QLatin1String("name")); + property3.setValue(QLatin1String("value")); + property3.insertParameter(QLatin1String("param"), QLatin1String("value")); + QVersitProperty property4; // no params + property4.setGroups(QStringList() << QLatin1String("group1") << QLatin1String("group2")); + property4.setName(QLatin1String("name")); + property4.setValue(QLatin1String("value")); + + QVERIFY(qHash(property1) == qHash(property2)); + QVERIFY(qHash(property1) != qHash(property3)); + QVERIFY(qHash(property1) != qHash(property4)); + QVERIFY(qHash(property3) != qHash(property4)); + QSet set; + set.insert(property1); + set.insert(property2); + set.insert(property3); + set.insert(property4); + QCOMPARE(set.size(), 3); +} + +QTEST_MAIN(tst_QVersitProperty) + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitproperty/tst_qversitproperty.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitproperty/tst_qversitproperty.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,79 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 tst_QVERSITPROPERTY_H +#define tst_QVERSITPROPERTY_H + +#include +#include + +QTM_BEGIN_NAMESPACE + +class QVersitProperty; + +QTM_END_NAMESPACE +QTM_USE_NAMESPACE + +class tst_QVersitProperty : public QObject +{ + Q_OBJECT + +private slots: + + void init(); + void cleanup(); + +private slots: //test methods + + void testGroup(); + void testName(); + void testParameters(); + void testValue(); + void testEmbeddedDocument(); + void testEquality(); + void testHash(); + +private: + QVersitProperty* mVersitProperty; + +}; + +#endif //tst_QVERSITPROPERTY_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitproperty/ut_qversitproperty.cpp --- a/qtmobility/tests/auto/qversitproperty/ut_qversitproperty.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,168 +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 Qt Mobility Components. -** -** $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 "ut_qversitproperty.h" -#include "qversitproperty.h" -#include "qversitproperty_p.h" -#include "qversitdocument.h" -#include - -QTM_USE_NAMESPACE - -void UT_QVersitProperty::init() -{ - mVersitProperty = new QVersitProperty(); - QVERIFY(mVersitProperty); -} - -void UT_QVersitProperty::cleanup() -{ - delete mVersitProperty; -} - -void UT_QVersitProperty::testGroup() -{ - // One group - QStringList group(QString::fromAscii("GROUP_NAME")); - mVersitProperty->setGroups(group); - QCOMPARE(mVersitProperty->groups(), group); - - // Several groups - QStringList groupList; - groupList.append(QString::fromAscii("GROUP1")); - groupList.append(QString::fromAscii("Group2")); - groupList.append(QString::fromAscii("group3")); - mVersitProperty->setGroups(groupList); - QCOMPARE(mVersitProperty->groups(), groupList); -} - -void UT_QVersitProperty::testName() -{ - // Name in upper case - QString name(QString::fromAscii("TEL")); - mVersitProperty->setName(name); - QCOMPARE(mVersitProperty->name(), name); - - // Name in lower case, converted automatically to upper case - mVersitProperty->setName(QString::fromAscii("tel")); - QCOMPARE(mVersitProperty->name(), name); -} - -void UT_QVersitProperty::testParameters() -{ - QString typeParameterName(QString::fromAscii("TYPE")); - - QString name(QString::fromAscii("type")); - QString value1(QString::fromAscii("home")); - mVersitProperty->insertParameter(name,value1); - QMultiHash parameters = mVersitProperty->parameters(); - QCOMPARE(parameters.count(), 1); - QVERIFY(parameters.contains(typeParameterName,QString::fromAscii("HOME"))); - - QString value2(QString::fromAscii("voice")); - mVersitProperty->insertParameter(name,value2); - parameters = mVersitProperty->parameters(); - QCOMPARE(parameters.count(), 2); - QVERIFY(parameters.contains(typeParameterName,QString::fromAscii("HOME"))); - QVERIFY(parameters.contains(typeParameterName,QString::fromAscii("VOICE"))); - - mVersitProperty->removeParameter(name,value1); - QCOMPARE(mVersitProperty->parameters().count(), 1); - QVERIFY(parameters.contains(typeParameterName,QString::fromAscii("HOME"))); - - mVersitProperty->removeParameter(name,value2); - QCOMPARE(mVersitProperty->parameters().count(), 0); - - mVersitProperty->insertParameter(name, value1); - mVersitProperty->insertParameter(name, value2); - QCOMPARE(mVersitProperty->parameters().count(), 2); - mVersitProperty->removeParameters(name); - QCOMPARE(mVersitProperty->parameters().count(), 0); -} - -void UT_QVersitProperty::testValue() -{ - QString value(QString::fromAscii("050484747")); - mVersitProperty->setValue(value); - QCOMPARE(mVersitProperty->value(), value); -} - -void UT_QVersitProperty::testEmbeddedDocument() -{ - QVersitDocument document; - QVersitProperty property; - property.setName(QString::fromAscii("X-tension")); - document.addProperty(property); - mVersitProperty->setValue(QVariant::fromValue(document)); - QList embeddedDocumentProperties = - mVersitProperty->value().properties(); - QCOMPARE(embeddedDocumentProperties.count(),1); - QCOMPARE(embeddedDocumentProperties[0].name(),QString::fromAscii("X-TENSION")); -} - -void UT_QVersitProperty::testEquality() -{ - QVersitProperty property1; - QVersitProperty property2; - QVERIFY(property1.isEmpty()); - QVERIFY(property1 == property2); - QVERIFY(!(property1 != property2)); - property2.setName(QLatin1String("FN")); - property2.setValue(QLatin1String("John Citizen")); - QVERIFY(!(property1 == property2)); - QVERIFY(property1 != property2); - QVERIFY(!property2.isEmpty()); - - property1.setName(QLatin1String("FN")); - property1.setValue(QLatin1String("John Citizen")); - QVERIFY(property1 == property2); - QVERIFY(!(property1 != property2)); - - property2.clear(); - QVERIFY(property2.isEmpty()); - - property1.clear(); - QVERIFY(property1 == property2); - QVERIFY(!(property1 != property2)); -} - -QTEST_MAIN(UT_QVersitProperty) - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitproperty/ut_qversitproperty.h --- a/qtmobility/tests/auto/qversitproperty/ut_qversitproperty.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +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 Qt Mobility Components. -** -** $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 UT_QVERSITPROPERTY_H -#define UT_QVERSITPROPERTY_H - -#include -#include - -QTM_BEGIN_NAMESPACE - -class QVersitProperty; - -QTM_END_NAMESPACE -QTM_USE_NAMESPACE - -class UT_QVersitProperty : public QObject -{ - Q_OBJECT - -private slots: - - void init(); - void cleanup(); - -private slots: //test methods - - void testGroup(); - void testName(); - void testParameters(); - void testValue(); - void testEmbeddedDocument(); - void testEquality(); - -private: - QVersitProperty* mVersitProperty; - -}; - -#endif //UT_QVERSITPROPERTY_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitreader/qversitreader.pro --- a/qtmobility/tests/auto/qversitreader/qversitreader.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qversitreader/qversitreader.pro Mon May 03 13:18:40 2010 +0300 @@ -16,8 +16,8 @@ ../../../src/contacts/requests \ ../../../src/contacts/filters -HEADERS += ut_qversitreader.h -SOURCES += ut_qversitreader.cpp +HEADERS += tst_qversitreader.h +SOURCES += tst_qversitreader.cpp CONFIG += mobility MOBILITY = contacts versit diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitreader/tst_qversitreader.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitreader/tst_qversitreader.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1420 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "tst_qversitreader.h" +#include "qversitreader.h" +#include "qversitreader_p.h" +#include "versitutils_p.h" +#include +#include + +// Copied from tst_qcontactmanager.cpp +// Waits until __expr is true and fails if it doesn't happen within 5s. +#ifndef QTRY_VERIFY +#define QTRY_VERIFY(__expr) \ + do { \ + const int __step = 50; \ + const int __timeout = 5000; \ + if (!(__expr)) { \ + QTest::qWait(0); \ + } \ + for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \ + QTest::qWait(__step); \ + } \ + QVERIFY(__expr); \ + } while(0) +#endif + +// This says "NOKIA" in Katakana encoded with UTF-8 +const QByteArray KATAKANA_NOKIA("\xe3\x83\x8e\xe3\x82\xad\xe3\x82\xa2"); + +QTM_USE_NAMESPACE + +void tst_QVersitReader::init() +{ + mInputDevice = new QBuffer; + mInputDevice->open(QBuffer::ReadWrite); + mReader = new QVersitReader; + mReaderPrivate = new QVersitReaderPrivate; + mSignalCatcher = new SignalCatcher; + connect(mReader, SIGNAL(stateChanged(QVersitReader::State)), + mSignalCatcher, SLOT(stateChanged(QVersitReader::State))); + connect(mReader, SIGNAL(resultsAvailable()), + mSignalCatcher, SLOT(resultsAvailable())); + mAsciiCodec = QTextCodec::codecForName("ISO 8859-1"); +} + +void tst_QVersitReader::cleanup() +{ + delete mReaderPrivate; + delete mReader; + delete mInputDevice; + delete mSignalCatcher; +} + +void tst_QVersitReader::testDevice() +{ + // No device + QVERIFY(mReader->device() == NULL); + + // Device has been set + mReader->setDevice(mInputDevice); + QVERIFY(mReader->device() == mInputDevice); + + delete mInputDevice; + QVERIFY(mReader->device() == NULL); + + mInputDevice = new QBuffer; + mInputDevice->open(QBuffer::ReadWrite); + + QVERIFY(mReader->device() == NULL); + mReader->setDevice(mInputDevice); + QVERIFY(mReader->device() == mInputDevice); +} + +void tst_QVersitReader::testDefaultCodec() +{ + QVERIFY(mReader->defaultCodec() == QTextCodec::codecForName("UTF-8")); + mReader->setDefaultCodec(QTextCodec::codecForName("UTF-16BE")); + QVERIFY(mReader->defaultCodec() == QTextCodec::codecForName("UTF-16BE")); +} + +void tst_QVersitReader::testReading() +{ + // No I/O device set + QVERIFY(!mReader->startReading()); + QCOMPARE(mReader->error(), QVersitReader::IOError); + + // Device set, no data + mReader->setDevice(mInputDevice); + mInputDevice->open(QBuffer::ReadOnly); + QVERIFY(mReader->startReading()); + QVERIFY(mReader->waitForFinished()); + QList results(mReader->results()); + QCOMPARE(mReader->state(), QVersitReader::FinishedState); + QCOMPARE(mReader->error(), QVersitReader::NoError); + QCOMPARE(results.count(),0); + + // Device set, one document + const QByteArray& oneDocument = + "BEGIN:VCARD\r\nVERSION:2.1\r\nFN:John\r\nEND:VCARD\r\n"; + mInputDevice->close(); + mInputDevice->setData(oneDocument); + mInputDevice->open(QBuffer::ReadOnly); + mInputDevice->seek(0); + QVERIFY(mReader->startReading()); + QVERIFY(mReader->waitForFinished()); + results = mReader->results(); + QCOMPARE(mReader->state(), QVersitReader::FinishedState); + QCOMPARE(mReader->error(), QVersitReader::NoError); + QCOMPARE(results.count(),1); + + // Wide charset with no byte-order mark + QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); + const QByteArray& wideDocument = + VersitUtils::encode("BEGIN:VCARD\r\nVERSION:2.1\r\nFN:John\r\nEND:VCARD\r\n", codec); + mInputDevice->close(); + mInputDevice->setData(wideDocument); + mInputDevice->open(QBuffer::ReadOnly); + mInputDevice->seek(0); + mReader->setDefaultCodec(codec); + QVERIFY(mReader->startReading()); + QVERIFY(mReader->waitForFinished()); + results = mReader->results(); + QCOMPARE(mReader->state(), QVersitReader::FinishedState); + QCOMPARE(mReader->error(), QVersitReader::NoError); + QCOMPARE(mReader->results().count(),1); + mReader->setDefaultCodec(NULL); + + // Two documents + const QByteArray& twoDocuments = + " \r\n BEGIN:VCARD\r\nFN:Jenny\r\nEND:VCARD\r\nBEGIN:VCARD\r\nFN:Jake\r\nEND:VCARD\r\n"; + mInputDevice->close(); + mInputDevice->setData(twoDocuments); + mInputDevice->open(QBuffer::ReadOnly); + mInputDevice->seek(0); + QVERIFY(mReader->startReading()); + QVERIFY(mReader->waitForFinished()); + results = mReader->results(); + QCOMPARE(mReader->state(), QVersitReader::FinishedState); + QCOMPARE(mReader->error(), QVersitReader::NoError); + QCOMPARE(results.count(),2); + + // Erroneous document (missing property name) + mInputDevice->close(); + mInputDevice->setData(QByteArray( + "BEGIN:VCARD\r\nFN:Jenny\r\n;Jenny;;;\r\nEND:VCARD\r\n" + "BEGIN:VCARD\r\nFN:Jake\r\nEND:VCARD\r\n")); + mInputDevice->open(QBuffer::ReadOnly); + mInputDevice->seek(0); + QVERIFY(mReader->startReading()); + QVERIFY(mReader->waitForFinished()); + results = mReader->results(); + QCOMPARE(mReader->state(), QVersitReader::FinishedState); + QCOMPARE(mReader->error(), QVersitReader::ParseError); + QCOMPARE(results.count(), 1); + + // Valid documents and a grouped document between them + const QByteArray& validDocumentsAndGroupedDocument = +"BEGIN:VCARD\r\nFN:Jenny\r\nEND:VCARD\r\n\ +BEGIN:VCARD\r\n\ +X-GROUPING:pub gang\r\n\ +BEGIN:VCARD\r\nFN:Jeremy\r\nEND:VCARD\r\n\ +BEGIN:VCARD\r\nFN:Jeffery\r\nEND:VCARD\r\n\ +END:VCARD\r\n\ +BEGIN:VCARD\r\nFN:Jake\r\nEND:VCARD\r\n\ +BEGIN:VCARD\r\nFN:James\r\nEND:VCARD\r\n\ +BEGIN:VCARD\r\nFN:Jane\r\nEND:VCARD\r\n"; + mInputDevice->close(); + mInputDevice->setData(validDocumentsAndGroupedDocument); + mInputDevice->open(QBuffer::ReadWrite); + mInputDevice->seek(0); + QVERIFY(mReader->startReading()); + QVERIFY(mReader->waitForFinished()); + results = mReader->results(); + QCOMPARE(mReader->state(), QVersitReader::FinishedState); + // An error is logged because one failed, but the rest are readable. + QCOMPARE(mReader->error(), QVersitReader::ParseError); + QCOMPARE(results.count(),4); + + // Valid documents and a grouped document between them + const QByteArray& validDocumentsAndGroupedDocument2 = +"BEGIN:VCARD\r\nFN:Jenny\r\nEND:VCARD\r\n\ +BEGIN:VCARD\r\n\ +X-GROUPING:pub gang\r\n\ +BEGIN:VCARD\r\nFN:Jeremy\r\nEND:VCARD\r\n\ +BEGIN:VCARD\r\nFN:Jeffery\r\nEND:VCARD\r\n\ +END:VCARD\r\n\ +BEGIN:VCARD\r\nFN:Jake\r\nEND:VCARD\r\n\ +BEGIN:VCARD\r\nFN:James\r\nEND:VCARD\r\n\ +BEGIN:VCARD\r\nFN:Jane\r\nEND:VCARD"; + mInputDevice->close(); + mInputDevice->setData(validDocumentsAndGroupedDocument2); + mInputDevice->open(QBuffer::ReadWrite); + mInputDevice->seek(0); + QVERIFY(mReader->startReading()); + QVERIFY(mReader->waitForFinished()); + results = mReader->results(); + QCOMPARE(mReader->state(), QVersitReader::FinishedState); + // An error is logged because one failed, but the rest are readable. + QCOMPARE(mReader->error(), QVersitReader::ParseError); + QCOMPARE(mReader->results().count(),4); + + // Asynchronous reading + mInputDevice->close(); + mInputDevice->setData(twoDocuments); + mInputDevice->open(QBuffer::ReadWrite); + mInputDevice->seek(0); + mSignalCatcher->mStateChanges.clear(); + mSignalCatcher->mResultsCount = 0; + QVERIFY(mReader->startReading()); + QTRY_VERIFY(mSignalCatcher->mStateChanges.count() >= 2); + QCOMPARE(mSignalCatcher->mStateChanges.at(0), QVersitReader::ActiveState); + QCOMPARE(mSignalCatcher->mStateChanges.at(1), QVersitReader::FinishedState); + QVERIFY(mSignalCatcher->mResultsCount >= 2); + QCOMPARE(mReader->results().size(), 2); + QCOMPARE(mReader->error(), QVersitReader::NoError); + + // Cancelling + mInputDevice->close(); + mInputDevice->setData(twoDocuments); + mInputDevice->open(QBuffer::ReadOnly); + mInputDevice->seek(0); + mSignalCatcher->mStateChanges.clear(); + mSignalCatcher->mResultsCount = 0; + QVERIFY(mReader->startReading()); + mReader->cancel(); + mReader->waitForFinished(); + QTRY_VERIFY(mSignalCatcher->mStateChanges.count() >= 2); + QCOMPARE(mSignalCatcher->mStateChanges.at(0), QVersitReader::ActiveState); + QVersitReader::State state(mSignalCatcher->mStateChanges.at(1)); + // It's possible that it finishes before it cancels. + QVERIFY(state == QVersitReader::CanceledState + || state == QVersitReader::FinishedState); +} + +void tst_QVersitReader::testResult() +{ + QCOMPARE(mReader->results().count(),0); +} + +void tst_QVersitReader::testSetVersionFromProperty() +{ + QVersitDocument document; + + // Some other property than VERSION + QVersitProperty property; + property.setName(QString::fromAscii("N")); + QVERIFY(mReaderPrivate->setVersionFromProperty(document,property)); + + // VERSION property with 2.1 + property.setName(QString::fromAscii("VERSION")); + property.setValue(QString::fromAscii("2.1")); + QVERIFY(mReaderPrivate->setVersionFromProperty(document,property)); + QVERIFY(document.type() == QVersitDocument::VCard21Type); + + // VERSION property with 3.0 + property.setValue(QString::fromAscii("3.0")); + QVERIFY(mReaderPrivate->setVersionFromProperty(document,property)); + QVERIFY(document.type() == QVersitDocument::VCard30Type); + + // VERSION property with a not supported value + property.setValue(QString::fromAscii("4.0")); + QVERIFY(!mReaderPrivate->setVersionFromProperty(document,property)); + + // VERSION property with BASE64 encoded supported value + property.setValue(QString::fromAscii(QByteArray("2.1").toBase64())); + property.insertParameter(QString::fromAscii("ENCODING"),QString::fromAscii("BASE64")); + QVERIFY(mReaderPrivate->setVersionFromProperty(document,property)); + QVERIFY(document.type() == QVersitDocument::VCard21Type); + + // VERSION property with BASE64 encoded not supported value + property.setValue(QString::fromAscii(QByteArray("4.0").toBase64())); + QVERIFY(!mReaderPrivate->setVersionFromProperty(document,property)); +} + +void tst_QVersitReader::testParseNextVersitPropertyVCard21() +{ + QVersitDocument::VersitType type = QVersitDocument::VCard21Type; + + // Test a valid vCard 2.1 with properties having separate handling: + // AGENT property, ENCODING parameters (BASE64 and QUOTED-PRINTABLE) and CHARSET parameter + QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); + QByteArray vCard("Begin:vcard\r\n"); + vCard.append("VERSION:2.1\r\n"); + vCard.append("FN:John\r\n"); + // "NOTE:\;\,\:\\" + vCard.append("NOTE:\\;\\,\\:\\\\\r\n"); + // "N:foo\;bar;foo\,bar;foo\:bar;foo\\bar;foo\\\;bar" + vCard.append("N:foo\\;bar;foo\\,bar;foo\\:bar;foo\\\\bar;foo\\\\\\;bar\r\n"); + // missing structured value + vCard.append("ADR:\r\n"); + // "NICKNAMES:foo\;bar,foo\,bar,foo\:bar,foo\\bar,foo\\\,bar" + vCard.append("NICKNAMES:foo\\;bar,foo\\,bar,foo\\:bar,foo\\\\bar,foo\\\\\\,bar\r\n"); + // "CATEGORIES:foo\;bar,foo\,bar,foo\:bar,foo\\bar,foo\\\,bar" + vCard.append("CATEGORIES:foo\\;bar,foo\\,bar,foo\\:bar,foo\\\\bar,foo\\\\\\,bar\r\n"); + vCard.append("ORG;CHARSET=UTF-8:"); + vCard.append(KATAKANA_NOKIA); + vCard.append("\r\n"); + // "NOKIA" in Katakana, UTF-8 encoded, then base-64 encoded: + vCard.append("NOTE;ENCODING=BASE64;CHARSET=UTF-8:"); + vCard.append(KATAKANA_NOKIA.toBase64()); + vCard.append("\r\n"); + // The value here is "UXQgaXMgZ3JlYXQh", which is the base64 encoding of "Qt is great!". + vCard.append("PHOTO;ENCODING=BASE64: U\t XQgaX MgZ\t3Jl YXQh\r\n\r\n"); + // Again, but without the explicit "ENCODING" parameter + vCard.append("PHOTO;BASE64: U\t XQgaX MgZ\t3Jl YXQh\r\n\r\n"); + vCard.append("HOME.Springfield.EMAIL;Encoding=Quoted-Printable:john.citizen=40exam=\r\nple.com\r\n"); + vCard.append("EMAIL;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-16BE:"); + vCard.append(codec->fromUnicode(QLatin1String("john.citizen=40exam=\r\nple.com"))); + vCard.append("\r\n"); + vCard.append("AGENT:\r\nBEGIN:VCARD\r\nFN:Jenny\r\nEND:VCARD\r\n\r\n"); + vCard.append("End:VCARD\r\n"); + QBuffer buffer(&vCard); + buffer.open(QIODevice::ReadOnly); + LineReader lineReader(&buffer, mAsciiCodec); + + QVersitProperty property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("BEGIN")); + QCOMPARE(property.value(),QString::fromAscii("vcard")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("VERSION")); + QCOMPARE(property.value(),QString::fromAscii("2.1")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("FN")); + QCOMPARE(property.value(),QString::fromAscii("John")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("NOTE")); + // Do not Unescape semicolons, commas, colons and backlashes + // "\;\,\:\\" + QCOMPARE(property.value(),QString::fromAscii("\\;\\,\\:\\\\")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("N")); + QCOMPARE(property.valueType(), QVersitProperty::CompoundType); + QCOMPARE(property.variantValue().type(), QVariant::StringList); + QStringList components = property.value(); + QCOMPARE(components.size(), 5); + QCOMPARE(components.at(0), QLatin1String("foo;bar")); + QCOMPARE(components.at(1), QLatin1String("foo\\,bar")); + QCOMPARE(components.at(2), QLatin1String("foo\\:bar")); + QCOMPARE(components.at(3), QLatin1String("foo\\\\bar")); + QCOMPARE(components.at(4), QLatin1String("foo\\\\;bar")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("ADR")); + QCOMPARE(property.valueType(), QVersitProperty::CompoundType); + QCOMPARE(property.variantValue().type(), QVariant::StringList); + components = property.value(); + QCOMPARE(components.size(), 1); + QVERIFY(components.at(0).isEmpty()); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("NICKNAMES")); + QCOMPARE(property.valueType(), QVersitProperty::ListType); + QCOMPARE(property.variantValue().type(), QVariant::StringList); + components = property.value(); + QCOMPARE(components.size(), 5); + QCOMPARE(components.at(0), QLatin1String("foo\\;bar")); + QCOMPARE(components.at(1), QLatin1String("foo,bar")); + QCOMPARE(components.at(2), QLatin1String("foo\\:bar")); + QCOMPARE(components.at(3), QLatin1String("foo\\\\bar")); + QCOMPARE(components.at(4), QLatin1String("foo\\\\,bar")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("CATEGORIES")); + QCOMPARE(property.valueType(), QVersitProperty::ListType); + QCOMPARE(property.variantValue().type(), QVariant::StringList); + components = property.value(); + QCOMPARE(components.size(), 5); + QCOMPARE(components.at(0), QLatin1String("foo\\;bar")); + QCOMPARE(components.at(1), QLatin1String("foo,bar")); + QCOMPARE(components.at(2), QLatin1String("foo\\:bar")); + QCOMPARE(components.at(3), QLatin1String("foo\\\\bar")); + QCOMPARE(components.at(4), QLatin1String("foo\\\\,bar")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("ORG")); + QCOMPARE(property.value(),QString::fromUtf8(KATAKANA_NOKIA)); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("NOTE")); + QCOMPARE(property.value(),QString::fromUtf8(KATAKANA_NOKIA)); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("PHOTO")); + // Linear whitespaces (SPACEs and TABs) removed from the value and base64 decoded: + QCOMPARE(property.variantValue().type(), QVariant::ByteArray); + QCOMPARE(property.value(), QByteArray("Qt is great!")); + // Ensure that base-64 encoded strings can be retrieved as strings. + QCOMPARE(property.value(), QLatin1String("Qt is great!")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("PHOTO")); + QCOMPARE(property.variantValue().type(), QVariant::ByteArray); + QCOMPARE(property.value(), QByteArray("Qt is great!")); + QCOMPARE(property.value(), QLatin1String("Qt is great!")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QStringList propertyGroup(QString::fromAscii("HOME")); + propertyGroup.append(QString::fromAscii("Springfield")); + QCOMPARE(property.groups(),propertyGroup); + QCOMPARE(property.name(),QString::fromAscii("EMAIL")); + QCOMPARE(0,property.parameters().count()); + QCOMPARE(property.value(),QString::fromAscii("john.citizen@example.com")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("EMAIL")); + // The encoding and charset parameters should be stripped by the reader. + QCOMPARE(property.parameters().count(), 0); + QCOMPARE(property.value(),QString::fromAscii("john.citizen@example.com")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("AGENT")); + QCOMPARE(property.value(),QString()); + QVERIFY(property.variantValue().userType() == qMetaTypeId()); + QCOMPARE(property.value().properties().count(), 1); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("END")); + QCOMPARE(property.value(),QString::fromAscii("VCARD")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString()); + QCOMPARE(property.value(),QString()); + + // Simulate a situation where the document nesting level is exceeded + // In practice this would mean a big number of nested AGENT properties + mReaderPrivate->mDocumentNestingLevel = 20; + QByteArray agentProperty("AGENT:BEGIN:VCARD\r\nN:Jenny\r\nEND:VCARD\r\n\r\n"); + buffer.close(); + buffer.setData(agentProperty); + buffer.open(QIODevice::ReadOnly); + LineReader agentLineReader(&buffer, mAsciiCodec); + + property = mReaderPrivate->parseNextVersitProperty(type, agentLineReader); + QVERIFY(property.isEmpty()); +} + +void tst_QVersitReader::testParseNextVersitPropertyVCard30() +{ + QVersitDocument::VersitType type = QVersitDocument::VCard30Type; + + // Test a valid vCard 3.0 with properties having separate handling: + // AGENT property and some other property + QByteArray vCard("Begin:vcard\r\n"); + vCard.append("VERSION:3.0\r\n"); + vCard.append("FN:John\r\n"); + // "NOTE:\;\,\:\\" + vCard.append("NOTE:\\;\\,\\:\\\\\r\n"); + // "N:foo\;bar;foo\,bar;foo\:bar;foo\\bar;foo\\\;bar" + vCard.append("N:foo\\;bar;foo\\,bar;foo\\:bar;foo\\\\bar;foo\\\\\\;bar\r\n"); + // "NICKNAMES:foo\;bar,foo\,bar,foo\:bar,foo\\bar,foo\\\,bar" + vCard.append("NICKNAMES:foo\\;bar,foo\\,bar,foo\\:bar,foo\\\\bar,foo\\\\\\,bar\r\n"); + // "CATEGORIES:foo\;bar,foo\,bar,foo\:bar,foo\\bar,foo\\\,bar" + vCard.append("CATEGORIES:foo\\;bar,foo\\,bar,foo\\:bar,foo\\\\bar,foo\\\\\\,bar\r\n"); + // "CATEGORIES:foobar\\,foobar\\\\,foo\\\\\,bar" + vCard.append("CATEGORIES:foobar\\\\,foobar\\\\\\\\,foo\\\\\\\\\\,bar\r\n"); + vCard.append("ORG;CHARSET=UTF-8:"); + vCard.append(KATAKANA_NOKIA); + vCard.append("\r\n"); + // "NOKIA" in Katakana, UTF-8 encoded, then base-64 encoded: + vCard.append("NOTE;ENCODING=B;CHARSET=UTF-8:"); + vCard.append(KATAKANA_NOKIA.toBase64()); + vCard.append("\r\n"); + vCard.append("TEL;TYPE=PREF;HOME:123\r\n"); + // The value here is "UXQgaXMgZ3JlYXQh", which is the base64 encoding of "Qt is great!". + vCard.append("PHOTO;ENCODING=B:UXQgaXMgZ3JlYXQh\r\n"); + // Again, but without the explicity "ENCODING" parameter + vCard.append("PHOTO;B:UXQgaXMgZ3JlYXQh\r\n"); + vCard.append("EMAIL:john.citizen@example.com\r\n"); + vCard.append("AGENT:BEGIN:VCARD\\nFN:Jenny\\nEND:VCARD\\n\r\n"); + vCard.append("End:VCARD\r\n"); + QBuffer buffer(&vCard); + buffer.open(QIODevice::ReadOnly); + LineReader lineReader(&buffer, mAsciiCodec); + + QVersitProperty property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("BEGIN")); + QCOMPARE(property.value(),QString::fromAscii("vcard")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("VERSION")); + QCOMPARE(property.value(),QString::fromAscii("3.0")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("FN")); + QCOMPARE(property.value(),QString::fromAscii("John")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("NOTE")); + QCOMPARE(property.valueType(), QVersitProperty::PlainType); + QCOMPARE(property.variantValue().type(), QVariant::String); + // Unescape semicolons, commas, colons and backlashes + QCOMPARE(property.value(), QString::fromAscii(";,:\\")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("N")); + QCOMPARE(property.valueType(), QVersitProperty::CompoundType); + QCOMPARE(property.variantValue().type(), QVariant::StringList); + QStringList components = property.value(); + QCOMPARE(components.size(), 5); + QCOMPARE(components.at(0), QLatin1String("foo;bar")); + QCOMPARE(components.at(1), QLatin1String("foo,bar")); + QCOMPARE(components.at(2), QLatin1String("foo:bar")); + QCOMPARE(components.at(3), QLatin1String("foo\\bar")); + QCOMPARE(components.at(4), QLatin1String("foo\\;bar")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("NICKNAMES")); + QCOMPARE(property.valueType(), QVersitProperty::ListType); + QCOMPARE(property.variantValue().type(), QVariant::StringList); + components = property.value(); + QCOMPARE(components.size(), 5); + QCOMPARE(components.at(0), QLatin1String("foo;bar")); + QCOMPARE(components.at(1), QLatin1String("foo,bar")); + QCOMPARE(components.at(2), QLatin1String("foo:bar")); + QCOMPARE(components.at(3), QLatin1String("foo\\bar")); + QCOMPARE(components.at(4), QLatin1String("foo\\,bar")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("CATEGORIES")); + QCOMPARE(property.valueType(), QVersitProperty::ListType); + QCOMPARE(property.variantValue().type(), QVariant::StringList); + components = property.value(); + QCOMPARE(components.size(), 5); + QCOMPARE(components.at(0), QLatin1String("foo;bar")); + QCOMPARE(components.at(1), QLatin1String("foo,bar")); + QCOMPARE(components.at(2), QLatin1String("foo:bar")); + QCOMPARE(components.at(3), QLatin1String("foo\\bar")); + QCOMPARE(components.at(4), QLatin1String("foo\\,bar")); + + // "CATEGORIES:foobar\\,foobar\\\\,foo\\\\\,bar" + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("CATEGORIES")); + QCOMPARE(property.valueType(), QVersitProperty::ListType); + QCOMPARE(property.variantValue().type(), QVariant::StringList); + components = property.value(); + QCOMPARE(components.size(), 3); + QCOMPARE(components.at(0), QLatin1String("foobar\\")); + QCOMPARE(components.at(1), QLatin1String("foobar\\\\")); + QCOMPARE(components.at(2), QLatin1String("foo\\\\,bar")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("ORG")); + QCOMPARE(property.value(),QString::fromUtf8(KATAKANA_NOKIA)); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("NOTE")); + QCOMPARE(property.value(),QString::fromUtf8(KATAKANA_NOKIA)); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("TEL")); + QCOMPARE(property.value(),QString::fromAscii("123")); + QCOMPARE(property.parameters().count(), 2); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("PHOTO")); + QCOMPARE(property.variantValue().type(), QVariant::ByteArray); + QCOMPARE(property.value(), QByteArray("Qt is great!")); + // Ensure that base-64 encoded strings can be retrieved as strings. + QCOMPARE(property.value(), QLatin1String("Qt is great!")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("PHOTO")); + QCOMPARE(property.variantValue().type(), QVariant::ByteArray); + QCOMPARE(property.value(), QByteArray("Qt is great!")); + QCOMPARE(property.value(), QLatin1String("Qt is great!")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("EMAIL")); + QCOMPARE(0,property.parameters().count()); + QCOMPARE(property.value(),QString::fromAscii("john.citizen@example.com")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("AGENT")); + QVERIFY(property.variantValue().userType() == qMetaTypeId()); + QCOMPARE(property.value().properties().count(), 1); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString::fromAscii("END")); + QCOMPARE(property.value(),QString::fromAscii("VCARD")); + + property = mReaderPrivate->parseNextVersitProperty(type, lineReader); + QCOMPARE(property.name(),QString()); + QCOMPARE(property.value(),QString()); + + // Simulate a situation where the document nesting level is exceeded + // In practice this would mean a big number of nested AGENT properties + mReaderPrivate->mDocumentNestingLevel = 20; + QByteArray agentProperty("AGENT:BEGIN\\:VCARD\\nFN\\:Jenny\\nEND\\:VCARD\\n\r\n"); + buffer.close(); + buffer.setData(agentProperty); + buffer.open(QIODevice::ReadOnly); + LineReader agentLineReader(&buffer, mAsciiCodec); + + property = mReaderPrivate->parseNextVersitProperty(type, agentLineReader); + QVERIFY(property.isEmpty()); +} + +void tst_QVersitReader::testParseVersitDocument() +{ + QFETCH(QByteArray, vCard); + QFETCH(bool, expectedSuccess); + QFETCH(int, expectedProperties); + + QBuffer buffer(&vCard); + buffer.open(QIODevice::ReadOnly); + LineReader lineReader(&buffer, QTextCodec::codecForName("UTF-8")); + + QVersitDocument document; + QCOMPARE(mReaderPrivate->parseVersitDocument(lineReader, document), expectedSuccess); + QCOMPARE(document.properties().count(), expectedProperties); + QCOMPARE(mReaderPrivate->mDocumentNestingLevel, 0); +} + +void tst_QVersitReader::testParseVersitDocument_data() +{ + QTest::addColumn("vCard"); + QTest::addColumn("expectedSuccess"); + QTest::addColumn("expectedProperties"); + + QTest::newRow("Basic vCard 2.1") + << QByteArray( + "BEGIN:VCARD\r\n" + "VERSION:2.1\r\n" + "FN:John\r\n" + "END:VCARD\r\n") + << true + << 1; + + QTest::newRow("vCard 2.1 with Agent") + << QByteArray( + "BEGIN:VCARD\r\n" + "VERSION:2.1\r\n" + "FN:John\r\n" + "AGENT:BEGIN:VCARD\r\nN:Jenny\r\nEND:VCARD\r\n\r\n" + "EMAIL;ENCODING=QUOTED-PRINTABLE:john.citizen=40exam=\r\nple.com\r\n" + "END:VCARD\r\n") + << true + << 3; + + QTest::newRow("vCard 3.0 with Agent") + << QByteArray( + "BEGIN:VCARD\r\n" + "VERSION:3.0\r\n" + "FN:John\r\n" + "AGENT:BEGIN\\:VCARD\\nN\\:Jenny\\nEND\\:VCARD\\n\r\n" + "EMAIL:john.citizen@example.com\r\n" + "END:VCARD\r\n") + << true + << 3; + + QTest::newRow("No BEGIN found") + << QByteArray( + "VCARD\r\n" + "VERSION:2.1\r\n" + "FN:Nobody\r\n" + "END:VCARD\r\n") + << false + << 0; + + QTest::newRow("Wrong card type") + << QByteArray( + "BEGIN:VCAL\r\n" + "END:VCAL\r\n") + << false + << 0; + + QTest::newRow("Wrong version") + << QByteArray( + "BEGIN:VCARD\r\n" + "VERSION:4.0\r\n" + "FN:Nobody\r\n" + "END:VCARD\r\n") + << false + << 0; + + QTest::newRow("No trailing crlf") + << QByteArray( + "BEGIN:VCARD\r\n" + "VERSION:2.1\r\n" + "FN:Nobody\r\n" + "END:VCARD") + << true + << 1; + + QTest::newRow("No end") + << QByteArray( + "BEGIN:VCARD\r\n" + "VERSION:2.1\r\n" + "FN:Nobody\r\n") + << false + << 0; + + QTest::newRow("Grouped vCards are not supported. The whole vCard will be discarded.") + << QByteArray( + "BEGIN:VCARD\r\n" + "VERSION:2.1\r\n" + "X-EXAMPLES:Family vCard\r\n" + "BEGIN:VCARD\r\n" + "VERSION:2.1\r\n" + "N:Citizen;John\r\n" + "TEL;CELL:1111\r\n" + "EMAIL;ENCODING=QUOTED-PRINTABLE:john.citizen=40example.com\r\n" + "END:VCARD\r\n" + "BEGIN:VCARD\r\n" + "VERSION:2.1\r\n" + "N:Citizen;Jenny\r\n" + "TEL;CELL:7777\r\n" + "END:VCARD\r\n" + "END:VCARD") + << false + << 0; +} + +void tst_QVersitReader::testDecodeQuotedPrintable() +{ + // Soft line breaks + QString encoded(QLatin1String("This=\r\n is =\r\none line.")); + QString decoded(QLatin1String("This is one line.")); + mReaderPrivate->decodeQuotedPrintable(encoded); + QCOMPARE(encoded, decoded); + + // Characters recommended to be encoded according to RFC 1521: + encoded = QLatin1String("To be decoded: =0A=0D=21=22=23=24=3D=40=5B=5C=5D=5E=60=7B=7C=7D=7E"); + decoded = QLatin1String("To be decoded: \n\r!\"#$=@[\\]^`{|}~"); + mReaderPrivate->decodeQuotedPrintable(encoded); + QCOMPARE(encoded, decoded); + + // Other random characters encoded. + // Some implementation may encode these too, as it is allowed. + encoded = QLatin1String("=45=6E=63=6F=64=65=64 =64=61=74=61"); + decoded = QLatin1String("Encoded data"); + mReaderPrivate->decodeQuotedPrintable(encoded); + QCOMPARE(encoded, decoded); +} +void tst_QVersitReader::testParamName() +{ + // Empty value + QByteArray param; + QCOMPARE(mReaderPrivate->paramName(param, mAsciiCodec),QString()); + + // Only value present + param = "WORK"; + QCOMPARE(mReaderPrivate->paramName(param, mAsciiCodec), + QString::fromAscii("TYPE")); + + // The below tests intentionally use the misspelling TIPE to avoid the default behaviour of + // returning TYPE when the name can't be parsed. + // Both name and value, spaces after the name + param = "TIPE \t =WORK"; + QCOMPARE(mReaderPrivate->paramName(param, mAsciiCodec), + QString::fromAscii("TIPE")); + + // Both name and value, no spaces after the name + param = "TIPE=WORK"; + QCOMPARE(mReaderPrivate->paramName(param, mAsciiCodec), + QString::fromAscii("TIPE")); + + // Test wide character support. + QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); + param = codec->fromUnicode(QString::fromAscii("TIPE=WORK")); + QCOMPARE(mReaderPrivate->paramName(param, codec), + QString::fromAscii("TIPE")); + +} + +void tst_QVersitReader::testParamValue() +{ + // Empty value + QByteArray param; + QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec),QString()); + + // Only value present + param = "WORK"; + QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec), + QString::fromAscii("WORK")); + + // Name and equals sign, but no value + param = "TYPE="; + QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec),QString()); + + // Name and equals sign, but value has only spaces + param = "TYPE= \t "; + QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec),QString()); + + // Both name and value, spaces before the value + param = "TYPE= \t WORK"; + QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec), + QString::fromAscii("WORK")); + + // Both name and value, no spaces before the value + param = "ENCODING=QUOTED-PRINTABLE"; + QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec), + QString::fromAscii("QUOTED-PRINTABLE")); + + // Test wide character support. + QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); + param = codec->fromUnicode(QString::fromAscii("TYPE=WORK")); + QCOMPARE(mReaderPrivate->paramValue(param, codec), + QString::fromAscii("WORK")); +} + +void tst_QVersitReader::testExtractPart() +{ + QByteArray originalStr; + + // Negative starting position + QCOMPARE(mReaderPrivate->extractPart(originalStr,-1,1), QByteArray()); + + // Empty original string + QCOMPARE(mReaderPrivate->extractPart(originalStr,0,1), QByteArray()); + + // Trimmed substring empty + originalStr = " \t \t"; + QCOMPARE(mReaderPrivate->extractPart(originalStr,0,4), QByteArray()); + + // The given substring length is greater than the original string length + originalStr = "ENCODING=7BIT"; + QCOMPARE(mReaderPrivate->extractPart(originalStr,0,100), originalStr); + + // Non-empty substring, from the beginning + originalStr = " TYPE=WORK ; X-PARAM=X-VALUE; ENCODING=8BIT"; + QCOMPARE(mReaderPrivate->extractPart(originalStr,0,11), + QByteArray("TYPE=WORK")); + + // Non-empty substring, from the middle + QCOMPARE(mReaderPrivate->extractPart(originalStr,12,16), + QByteArray("X-PARAM=X-VALUE")); + + // Non-empty substring, from the middle to the end + QCOMPARE(mReaderPrivate->extractPart(originalStr,29), + QByteArray("ENCODING=8BIT")); +} + +void tst_QVersitReader::testExtractParts() +{ + QList parts; + + // Empty value + QByteArray text; + parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); + QVERIFY(parts.isEmpty()); + + // Only separator + text = ";"; + parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); + QVERIFY(parts.isEmpty()); + + // One part + text = "part"; + parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); + QCOMPARE(parts.count(),1); + QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("part")); + + // Separator in the beginning, one part + text = ";part"; + parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); + QCOMPARE(parts.count(),1); + QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("part")); + + // Separator in the end, one part + text = "part;"; + parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); + QCOMPARE(parts.count(),1); + QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("part")); + + // One part that contains escaped separator + text = "part\\;"; + parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); + QCOMPARE(parts.count(),1); + QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("part\\;")); + + // Two parts + text = "part1;part2"; + parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); + QCOMPARE(parts.count(),2); + QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("part1")); + QCOMPARE(QString::fromAscii(parts[1]),QString::fromAscii("part2")); + + // Two parts that contain escaped separators + text = "pa\\;rt1;par\\;t2"; + parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); + QCOMPARE(parts.count(),2); + QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("pa\\;rt1")); + QCOMPARE(QString::fromAscii(parts[1]),QString::fromAscii("par\\;t2")); + + // Test wide character support + QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); + text = codec->fromUnicode(QString::fromAscii("part1;part2")); + parts = mReaderPrivate->extractParts(text,";", codec); + QCOMPARE(parts.count(),2); + QCOMPARE(codec->toUnicode(parts[0]),QString::fromAscii("part1")); + QCOMPARE(codec->toUnicode(parts[1]),QString::fromAscii("part2")); +} + +void tst_QVersitReader::testExtractPropertyGroupsAndName() +{ + QPair groupsAndName; + + // Empty string + VersitCursor cursor(QByteArray(" ")); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); + QCOMPARE(groupsAndName.first.count(),0); + QCOMPARE(groupsAndName.second,QString()); + + // No value -> returns empty string and no groups + QByteArray property("TEL"); + cursor.setData(property); + cursor.selection = property.size(); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); + QCOMPARE(groupsAndName.first.count(),0); + QCOMPARE(groupsAndName.second,QString()); + + // Simple name and value + property = "TEL:123"; + cursor.setData(property); + cursor.selection = property.size(); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); + QCOMPARE(groupsAndName.first.count(),0); + QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); + + // One whitespace before colon + property = "TEL :123"; + cursor.setData(property); + cursor.selection = property.size(); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); + QCOMPARE(groupsAndName.first.count(),0); + QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); + + // Several whitespaces before colon + property = "TEL \t :123"; + cursor.setData(property); + cursor.selection = property.size(); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); + QCOMPARE(groupsAndName.first.count(),0); + QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); + + // Name contains a group + property = "group1.TEL:1234"; + cursor.setData(property); + cursor.selection = property.size(); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); + QCOMPARE(groupsAndName.first.count(),1); + QCOMPARE(groupsAndName.first.takeFirst(),QString::fromAscii("group1")); + QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); + + // Name contains more than one group + property = "group1.group2.TEL:12345"; + cursor.setData(property); + cursor.selection = property.size(); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); + QCOMPARE(groupsAndName.first.count(),2); + QCOMPARE(groupsAndName.first.takeFirst(),QString::fromAscii("group1")); + QCOMPARE(groupsAndName.first.takeFirst(),QString::fromAscii("group2")); + QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); + QCOMPARE(cursor.position, 17); + + // Property contains one parameter + property = "TEL;WORK:123"; + cursor.setData(property); + cursor.selection = property.size(); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); + QCOMPARE(groupsAndName.first.count(),0); + QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); + + // Property contains several parameters + property = "EMAIL;INTERNET;ENCODING=QUOTED-PRINTABLE:user=40ovi.com"; + cursor.setData(property); + cursor.selection = property.size(); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); + QCOMPARE(groupsAndName.first.count(),0); + QCOMPARE(groupsAndName.second,QString::fromAscii("EMAIL")); + + // Name contains an escaped semicolon + property = "X-proper\\;ty:value"; + cursor.setData(property); + cursor.selection = property.size(); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); + QCOMPARE(groupsAndName.first.count(),0); + QCOMPARE(groupsAndName.second,QString::fromAscii("X-proper\\;ty")); + + // Test wide character support + QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); + property = codec->fromUnicode(QString::fromAscii("group1.group2.TEL;WORK:123")); + cursor.setData(property); + cursor.selection = property.size(); + groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, codec); + QCOMPARE(groupsAndName.first.count(),2); + QCOMPARE(groupsAndName.first.takeFirst(),QString::fromAscii("group1")); + QCOMPARE(groupsAndName.first.takeFirst(),QString::fromAscii("group2")); + QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); + QCOMPARE(cursor.position, 36); // 2 bytes * 17 characters + 2 byte BOM. + +} + +void tst_QVersitReader::testExtractVCard21PropertyParams() +{ + // No parameters + VersitCursor cursor(QByteArray(":123")); + cursor.setSelection(cursor.data.size()); + QCOMPARE(mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec).count(), 0); + + // "Empty" parameter + cursor.setData(QByteArray(";:123")); + cursor.setSelection(cursor.data.size()); + QCOMPARE(mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec).count(), 0); + + // Semicolon found, but no value for the property + cursor.setData(QByteArray(";TYPE=X-TYPE")); + cursor.setSelection(cursor.data.size()); + QCOMPARE(mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec).count(), 0); + + // The property name contains an escaped semicolon, no parameters + cursor.setData(QByteArray(":value")); + cursor.setSelection(cursor.data.size()); + QCOMPARE(mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec).count(), 0); + + // The property value contains a semicolon, no parameters + cursor.setData(QByteArray(":va;lue")); + cursor.setSelection(cursor.data.size()); + QCOMPARE(mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec).count(), 0); + + // One parameter + cursor.setData(QByteArray(";HOME:123")); + cursor.setSelection(cursor.data.size()); + QMultiHash params = mReaderPrivate->extractVCard21PropertyParams(cursor, + mAsciiCodec); + QCOMPARE(1, params.count()); + QCOMPARE(1, params.values(QString::fromAscii("TYPE")).count()); + QCOMPARE(params.values(QString::fromAscii("TYPE"))[0],QString::fromAscii("HOME")); + + // Two parameters of the same type + cursor.setData(QByteArray(";HOME;VOICE:123")); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec); + QCOMPARE(2, params.count()); + QCOMPARE(2, params.values(QString::fromAscii("TYPE")).count()); + QCOMPARE(params.values(QString::fromAscii("TYPE"))[0],QString::fromAscii("HOME")); + QCOMPARE(params.values(QString::fromAscii("TYPE"))[1],QString::fromAscii("VOICE")); + + // Two parameters, several empty parameters (extra semicolons) + cursor.setData(QByteArray(";;;;HOME;;;;;VOICE;;;:123")); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec); + QCOMPARE(2, params.count()); + QCOMPARE(2, params.values(QString::fromAscii("TYPE")).count()); + QCOMPARE(params.values(QString::fromAscii("TYPE"))[0],QString::fromAscii("HOME")); + QCOMPARE(params.values(QString::fromAscii("TYPE"))[1],QString::fromAscii("VOICE")); + + // Two parameters with different types + cursor.setData(QByteArray(";INTERNET;ENCODING=QUOTED-PRINTABLE:user=40ovi.com")); + cursor.setSelection(cursor.data.size()); + params.clear(); + params = mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec); + QCOMPARE(2, params.count()); + QList typeParams = params.values(QString::fromAscii("TYPE")); + QCOMPARE(1, typeParams.count()); + QCOMPARE(typeParams[0],QString::fromAscii("INTERNET")); + QList encodingParams = params.values(QString::fromAscii("ENCODING")); + QCOMPARE(1, encodingParams.count()); + QCOMPARE(encodingParams[0],QString::fromAscii("QUOTED-PRINTABLE")); + + // Test wide character support. + QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); + QByteArray data = VersitUtils::encode(";HOME;CHARSET=UTF-16:123", codec); + cursor.setData(data); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractVCard21PropertyParams(cursor, codec); + QCOMPARE(2, params.count()); + typeParams = params.values(QString::fromAscii("TYPE")); + QCOMPARE(1, typeParams.count()); + QCOMPARE(typeParams[0],QString::fromAscii("HOME")); + encodingParams = params.values(QString::fromAscii("CHARSET")); + QCOMPARE(1, encodingParams.count()); + QCOMPARE(encodingParams[0],QString::fromAscii("UTF-16")); +} + +void tst_QVersitReader::testExtractVCard30PropertyParams() +{ + // No parameters + VersitCursor cursor(QByteArray(":123")); + cursor.setSelection(cursor.data.size()); + QCOMPARE(mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec).count(), 0); + + // One parameter + cursor.setData(QByteArray(";TYPE=HOME:123")); + cursor.setSelection(cursor.data.size()); + QMultiHash params = mReaderPrivate->extractVCard30PropertyParams(cursor, + mAsciiCodec); + QCOMPARE(params.count(), 1); + QCOMPARE(params.values(QString::fromAscii("TYPE")).count(), 1); + QCOMPARE(params.values(QString::fromAscii("TYPE"))[0], QString::fromAscii("HOME")); + + // One parameter with an escaped semicolon + cursor.setData(QByteArray(";para\\;meter:value")); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); + QCOMPARE(params.count(), 1); + QCOMPARE(params.values(QString::fromAscii("TYPE")).count(), 1); + QCOMPARE(params.values(QString::fromAscii("TYPE"))[0], QString::fromAscii("para;meter")); + + // One parameter with and escaped comma in the name and the value + cursor.setData(QByteArray(";X-PA\\,RAM=VAL\\,UE:123")); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); + QCOMPARE(params.count(), 1); + QCOMPARE(params.values(QString::fromAscii("X-PA,RAM")).count(), 1); + QCOMPARE(params.values(QString::fromAscii("X-PA,RAM"))[0], QString::fromAscii("VAL,UE")); + + // Two parameters of the same type + cursor.setData(QByteArray(";TYPE=HOME,VOICE:123")); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); + QCOMPARE(params.count(), 2); + QCOMPARE(params.values(QString::fromAscii("TYPE")).count(), 2); + QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("HOME"))); + QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("VOICE"))); + + // Two parameters of the same type in separate name-values + cursor.setData(QByteArray(";TYPE=HOME;TYPE=VOICE:123")); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); + QCOMPARE(params.count(), 2); + QCOMPARE(params.values(QString::fromAscii("TYPE")).count(), 2); + QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("HOME"))); + QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("VOICE"))); + + // Three parameters of the same type + cursor.setData(QByteArray(";TYPE=PREF,HOME,VOICE:123")); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); + QCOMPARE(params.count(), 3); + QCOMPARE(params.values(QString::fromAscii("TYPE")).count(), 3); + QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("PREF"))); + QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("HOME"))); + QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("VOICE"))); + + // Two parameters with different types + cursor.setData(QByteArray(";TYPE=HOME;X-PARAM=X-VALUE:Home Street 1")); + cursor.setSelection(cursor.data.size()); + params.clear(); + params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); + QCOMPARE(params.count(), 2); + QList typeParams = params.values(QString::fromAscii("TYPE")); + QCOMPARE(typeParams.count(), 1); + QCOMPARE(typeParams[0],QString::fromAscii("HOME")); + QList encodingParams = params.values(QString::fromAscii("X-PARAM")); + QCOMPARE(encodingParams.count(), 1); + QCOMPARE(encodingParams[0],QString::fromAscii("X-VALUE")); + + // Test wide character support. + QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); + QByteArray data = VersitUtils::encode(";TIPE=HOME,VOICE;CHARSET=UTF-16:123", codec); + cursor.setData(data); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractVCard30PropertyParams(cursor, codec); + QCOMPARE(params.count(), 3); + typeParams = params.values(QString::fromAscii("TIPE")); + QCOMPARE(params.values(QString::fromAscii("TIPE")).count(), 2); + QVERIFY(params.values(QString::fromAscii("TIPE")).contains(QString::fromAscii("HOME"))); + QVERIFY(params.values(QString::fromAscii("TIPE")).contains(QString::fromAscii("VOICE"))); + encodingParams = params.values(QString::fromAscii("CHARSET")); + QCOMPARE(1, encodingParams.count()); + QCOMPARE(encodingParams[0],QString::fromAscii("UTF-16")); +} + +void tst_QVersitReader::testExtractParams() +{ + VersitCursor cursor; + QByteArray data = ":123"; + cursor.setData(data); + cursor.setPosition(0); + cursor.setSelection(cursor.data.size()); + QList params = mReaderPrivate->extractParams(cursor, mAsciiCodec); + QCOMPARE(params.size(), 0); + QCOMPARE(cursor.position, 1); + + data = "a;b:123"; + cursor.setData(data); + cursor.setPosition(0); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractParams(cursor, mAsciiCodec); + QCOMPARE(params.size(), 2); + QCOMPARE(cursor.position, 4); + QCOMPARE(params.at(0), QByteArray("a")); + QCOMPARE(params.at(1), QByteArray("b")); + + QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); + data = VersitUtils::encode(":123", codec); + cursor.setData(data); + cursor.setPosition(0); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractParams(cursor, codec); + QCOMPARE(params.size(), 0); + QCOMPARE(cursor.position, 2); + + data = VersitUtils::encode("a;b:123", codec); + cursor.setData(data); + cursor.setPosition(0); + cursor.setSelection(cursor.data.size()); + params = mReaderPrivate->extractParams(cursor, codec); + QCOMPARE(params.size(), 2); + QCOMPARE(cursor.position, 8); + +} + +Q_DECLARE_METATYPE(QList) + +void tst_QVersitReader::testReadLine() +{ + QFETCH(QByteArray, codecName); + QFETCH(QString, data); + QFETCH(QList, expectedLines); + + QTextCodec* codec = QTextCodec::codecForName(codecName); + QTextEncoder* encoder = codec->makeEncoder(); + encoder->fromUnicode(QString()); + + QByteArray bytes(encoder->fromUnicode(data)); + + mInputDevice->close(); + mInputDevice->setData(bytes); + mInputDevice->open(QIODevice::ReadWrite); + + LineReader lineReader(mInputDevice, codec, 10); + + // Check that all expected lines are read. + foreach (QString expectedLine, expectedLines) { + QByteArray expectedBytes(encoder->fromUnicode(expectedLine)); + QVERIFY(!lineReader.atEnd()); + VersitCursor line = lineReader.readLine(); + QVERIFY(line.data.indexOf(expectedBytes) == line.position); + QCOMPARE(line.selection - line.position, expectedBytes.length()); + } + // And that there are no more lines + VersitCursor line = lineReader.readLine(); + QCOMPARE(line.selection, line.position); + QVERIFY(lineReader.atEnd()); + + delete encoder; +} + +void tst_QVersitReader::testReadLine_data() +{ + // Note: for this test, we set mLineReader to read 10 bytes at a time. Lines of multiples of + // 10 bytes are hence border cases. + QTest::addColumn("codecName"); + QTest::addColumn("data"); + QTest::addColumn >("expectedLines"); + + QList codecNames; + codecNames << "UTF-8" << "UTF-16"; + + foreach (QByteArray codecName, codecNames) { + QTest::newRow("empty " + codecName) + << codecName + << "" + << QList(); + + QTest::newRow("one line " + codecName) + << codecName + << "line" + << (QList() << QLatin1String("line")); + + QTest::newRow("one ten-byte line " + codecName) + << codecName + << "tenletters" + << (QList() << QLatin1String("tenletters")); + + QTest::newRow("one long line " + codecName) + << codecName + << "one line longer than ten characters" + << (QList() << QLatin1String("one line longer than ten characters")); + + QTest::newRow("one terminated line " + codecName) + << codecName + << "one line longer than ten characters\r\n" + << (QList() << QLatin1String("one line longer than ten characters")); + + QTest::newRow("two lines " + codecName) + << codecName + << "two\r\nlines" + << (QList() << QLatin1String("two") << QLatin1String("lines")); + + QTest::newRow("two terminated lines " + codecName) + << codecName + << "two\r\nlines\r\n" + << (QList() << QLatin1String("two") << QLatin1String("lines")); + + QTest::newRow("two long lines " + codecName) + << codecName + << "one line longer than ten characters\r\nanother line\r\n" + << (QList() << QLatin1String("one line longer than ten characters") << QLatin1String("another line")); + + QTest::newRow("two full lines " + codecName) + << codecName + << "tenletters\r\n8letters\r\n" + << (QList() << QLatin1String("tenletters") << QLatin1String("8letters")); + + QTest::newRow("a nine-byte line " + codecName) + << codecName + << "9 letters\r\nanother line\r\n" + << (QList() << QLatin1String("9 letters") << QLatin1String("another line")); + + QTest::newRow("a blank line " + codecName) + << codecName + << "one\r\n\r\ntwo\r\n" + << (QList() << QLatin1String("one") << QLatin1String("two")); + + QTest::newRow("folded lines " + codecName) + << codecName + << "folded\r\n line\r\nsecond line\r\n" + << (QList() << QLatin1String("folded line") << QLatin1String("second line")); + + QTest::newRow("multiply folded lines " + codecName) + << codecName + << "fo\r\n lded\r\n line\r\nseco\r\n\tnd l\r\n ine\r\n" + << (QList() << QLatin1String("folded line") << QLatin1String("second line")); + + QTest::newRow("fold hidden after a chunk " + codecName) + << codecName + << "8letters\r\n on one line\r\n" + << (QList() << QLatin1String("8letters on one line")); + + QTest::newRow("three mac lines " + codecName) + << codecName + << "one\rtwo\rthree\r" + << (QList() << QLatin1String("one") << QLatin1String("two") << QLatin1String("three")); + } +} + +void tst_QVersitReader::testByteArrayInput() +{ + delete mReader; + const QByteArray& oneDocument = + "BEGIN:VCARD\r\nVERSION:2.1\r\nFN:John\r\nEND:VCARD\r\n"; + + mReader = new QVersitReader(oneDocument); + QVERIFY(mReader->device() == 0); + QVERIFY(mReader->startReading()); + QVERIFY(mReader->waitForFinished()); + QList results = mReader->results(); + QCOMPARE(mReader->state(), QVersitReader::FinishedState); + QCOMPARE(mReader->error(), QVersitReader::NoError); + QCOMPARE(results.count(),1); + QVersitDocument result = results.first(); + QCOMPARE(result.type(), QVersitDocument::VCard21Type); + QList properties = result.properties(); + QCOMPARE(properties.length(), 1); + QCOMPARE(properties.first().name(), QLatin1String("FN")); + QCOMPARE(properties.first().value(), QLatin1String("John")); +} + +void tst_QVersitReader::testRemoveBackSlashEscaping() +{ + // Empty string + QString input; + QVersitReaderPrivate::removeBackSlashEscaping(input); + QCOMPARE(input,QString()); + + // Nothing to escape in the string + input = QString::fromAscii("Nothing to escape"); + QVersitReaderPrivate::removeBackSlashEscaping(input); + QCOMPARE(input,QString::fromAscii("Nothing to escape")); + + // Line break, semicolon, backslash and comma in the string + input = QString::fromAscii("These should be unescaped \\n \\N \\; \\, \\\\"); + QVersitReaderPrivate::removeBackSlashEscaping(input); + QCOMPARE(input, QString::fromAscii("These should be unescaped \r\n \r\n ; , \\")); + + // Don't remove escaping within quotes + input = QString::fromAscii("\"Quoted \\n \\N \\; \\,\""); + QVersitReaderPrivate::removeBackSlashEscaping(input); + QCOMPARE(input, QString::fromAscii("\"Quoted \\n \\N \\; \\,\"")); +} + +QTEST_MAIN(tst_QVersitReader) + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitreader/tst_qversitreader.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitreader/tst_qversitreader.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,117 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 tst_QVERSITREADER_H +#define tst_QVERSITREADER_H + +#include +#include +#include +#include "qversitreader.h" + +QTM_BEGIN_NAMESPACE + +class QVersitReaderPrivate; +class LineReader; + +QTM_END_NAMESPACE +QTM_USE_NAMESPACE + +// Poor man's QSignalSpy because I couldn't get QSignalSpy to work with the user type QVR::State. +class SignalCatcher : public QObject +{ +Q_OBJECT +public: + SignalCatcher() : mResultsCount(0) {} +public slots: + void stateChanged(QVersitReader::State state) { + mStateChanges.append(state); + } + void resultsAvailable() { + mResultsCount += 1; + } + +public: + QList mStateChanges; + int mResultsCount; +}; + +class tst_QVersitReader : public QObject +{ + Q_OBJECT + +private slots: // Tests + + void init(); + void cleanup(); + + void testDevice(); + void testDefaultCodec(); + void testReading(); + void testResult(); + void testSetVersionFromProperty(); + void testParseNextVersitPropertyVCard21(); + void testParseNextVersitPropertyVCard30(); + void testParseVersitDocument(); + void testParseVersitDocument_data(); + void testDecodeQuotedPrintable(); + void testParamName(); + void testParamValue(); + void testExtractPart(); + void testExtractParts(); + void testExtractPropertyGroupsAndName(); + void testExtractVCard21PropertyParams(); + void testExtractVCard30PropertyParams(); + void testExtractParams(); + void testReadLine(); + void testReadLine_data(); + void testByteArrayInput(); + void testRemoveBackSlashEscaping(); + +private: // Data + QVersitReader* mReader; + QVersitReaderPrivate* mReaderPrivate; + QBuffer* mInputDevice; + QTextCodec* mAsciiCodec; + SignalCatcher* mSignalCatcher; +}; + +#endif // tst_VERSITREADER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitreader/ut_qversitreader.cpp --- a/qtmobility/tests/auto/qversitreader/ut_qversitreader.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1252 +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 Qt Mobility Components. -** -** $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 "ut_qversitreader.h" -#include "qversitreader.h" -#include "qversitreader_p.h" -#include "versitutils_p.h" -#include -#include - -// Copied from tst_qcontactmanager.cpp -// Waits until __expr is true and fails if it doesn't happen within 5s. -#ifndef QTRY_VERIFY -#define QTRY_VERIFY(__expr) \ - do { \ - const int __step = 50; \ - const int __timeout = 5000; \ - if (!(__expr)) { \ - QTest::qWait(0); \ - } \ - for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \ - QTest::qWait(__step); \ - } \ - QVERIFY(__expr); \ - } while(0) -#endif - -// This says "NOKIA" in Katakana encoded with UTF-8 -const QByteArray KATAKANA_NOKIA("\xe3\x83\x8e\xe3\x82\xad\xe3\x82\xa2"); - -QTM_USE_NAMESPACE - -void UT_QVersitReader::init() -{ - mInputDevice = new QBuffer; - mInputDevice->open(QBuffer::ReadWrite); - mReader = new QVersitReader; - mReaderPrivate = new QVersitReaderPrivate; - mSignalCatcher = new SignalCatcher; - qRegisterMetaType("QVersitReader::State"); - connect(mReader, SIGNAL(stateChanged(QVersitReader::State)), - mSignalCatcher, SLOT(stateChanged(QVersitReader::State))); - connect(mReader, SIGNAL(resultsAvailable()), - mSignalCatcher, SLOT(resultsAvailable())); - mAsciiCodec = QTextCodec::codecForName("ISO 8859-1"); -} - -void UT_QVersitReader::cleanup() -{ - delete mReaderPrivate; - delete mReader; - delete mInputDevice; - delete mSignalCatcher; -} - -void UT_QVersitReader::testDevice() -{ - // No device - QVERIFY(mReader->device() == NULL); - - // Device has been set - mReader->setDevice(mInputDevice); - QVERIFY(mReader->device() == mInputDevice); - - delete mInputDevice; - QVERIFY(mReader->device() == NULL); - - mInputDevice = new QBuffer; - mInputDevice->open(QBuffer::ReadWrite); - - QVERIFY(mReader->device() == NULL); - mReader->setDevice(mInputDevice); - QVERIFY(mReader->device() == mInputDevice); -} - -void UT_QVersitReader::testDefaultCodec() -{ - QVERIFY(mReader->defaultCodec() == QTextCodec::codecForName("UTF-8")); - mReader->setDefaultCodec(QTextCodec::codecForName("UTF-16BE")); - QVERIFY(mReader->defaultCodec() == QTextCodec::codecForName("UTF-16BE")); -} - -void UT_QVersitReader::testReading() -{ - // No I/O device set - QVERIFY(!mReader->startReading()); - QCOMPARE(mReader->error(), QVersitReader::IOError); - - // Device set, no data - mReader->setDevice(mInputDevice); - mInputDevice->open(QBuffer::ReadOnly); - QVERIFY(mReader->startReading()); - QVERIFY(mReader->waitForFinished()); - QList results(mReader->results()); - QCOMPARE(mReader->state(), QVersitReader::FinishedState); - QCOMPARE(mReader->error(), QVersitReader::NoError); - QCOMPARE(results.count(),0); - - // Device set, one document - const QByteArray& oneDocument = - "BEGIN:VCARD\r\nVERSION:2.1\r\nFN:John\r\nEND:VCARD\r\n"; - mInputDevice->close(); - mInputDevice->setData(oneDocument); - mInputDevice->open(QBuffer::ReadOnly); - mInputDevice->seek(0); - QVERIFY(mReader->startReading()); - QVERIFY(mReader->waitForFinished()); - results = mReader->results(); - QCOMPARE(mReader->state(), QVersitReader::FinishedState); - QCOMPARE(mReader->error(), QVersitReader::NoError); - QCOMPARE(results.count(),1); - - // Wide charset with no byte-order mark - QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); - const QByteArray& wideDocument = - VersitUtils::encode("BEGIN:VCARD\r\nVERSION:2.1\r\nFN:John\r\nEND:VCARD\r\n", codec); - mInputDevice->close(); - mInputDevice->setData(wideDocument); - mInputDevice->open(QBuffer::ReadOnly); - mInputDevice->seek(0); - mReader->setDefaultCodec(codec); - QVERIFY(mReader->startReading()); - QVERIFY(mReader->waitForFinished()); - results = mReader->results(); - QCOMPARE(mReader->state(), QVersitReader::FinishedState); - QCOMPARE(mReader->error(), QVersitReader::NoError); - QCOMPARE(mReader->results().count(),1); - mReader->setDefaultCodec(NULL); - - // Two documents - const QByteArray& twoDocuments = - " \r\n BEGIN:VCARD\r\nFN:Jenny\r\nEND:VCARD\r\nBEGIN:VCARD\r\nFN:Jake\r\nEND:VCARD\r\n"; - mInputDevice->close(); - mInputDevice->setData(twoDocuments); - mInputDevice->open(QBuffer::ReadOnly); - mInputDevice->seek(0); - QVERIFY(mReader->startReading()); - QVERIFY(mReader->waitForFinished()); - results = mReader->results(); - QCOMPARE(mReader->state(), QVersitReader::FinishedState); - QCOMPARE(mReader->error(), QVersitReader::NoError); - QCOMPARE(results.count(),2); - - // Erroneous document (missing property name) - mInputDevice->close(); - mInputDevice->setData(QByteArray( - "BEGIN:VCARD\r\nFN:Jenny\r\n;Jenny;;;\r\nEND:VCARD\r\n" - "BEGIN:VCARD\r\nFN:Jake\r\nEND:VCARD\r\n")); - mInputDevice->open(QBuffer::ReadOnly); - mInputDevice->seek(0); - QVERIFY(mReader->startReading()); - QVERIFY(mReader->waitForFinished()); - results = mReader->results(); - QCOMPARE(mReader->state(), QVersitReader::FinishedState); - QCOMPARE(mReader->error(), QVersitReader::ParseError); - QCOMPARE(results.count(), 1); - - // Valid documents and a grouped document between them - const QByteArray& validDocumentsAndGroupedDocument = -"BEGIN:VCARD\r\nFN:Jenny\r\nEND:VCARD\r\n\ -BEGIN:VCARD\r\n\ -X-GROUPING:pub gang\r\n\ -BEGIN:VCARD\r\nFN:Jeremy\r\nEND:VCARD\r\n\ -BEGIN:VCARD\r\nFN:Jeffery\r\nEND:VCARD\r\n\ -END:VCARD\r\n\ -BEGIN:VCARD\r\nFN:Jake\r\nEND:VCARD\r\n\ -BEGIN:VCARD\r\nFN:James\r\nEND:VCARD\r\n\ -BEGIN:VCARD\r\nFN:Jane\r\nEND:VCARD\r\n"; - mInputDevice->close(); - mInputDevice->setData(validDocumentsAndGroupedDocument); - mInputDevice->open(QBuffer::ReadWrite); - mInputDevice->seek(0); - QVERIFY(mReader->startReading()); - QVERIFY(mReader->waitForFinished()); - results = mReader->results(); - QCOMPARE(mReader->state(), QVersitReader::FinishedState); - // An error is logged because one failed, but the rest are readable. - QCOMPARE(mReader->error(), QVersitReader::ParseError); - QCOMPARE(results.count(),4); - - // Valid documents and a grouped document between them - const QByteArray& validDocumentsAndGroupedDocument2 = -"BEGIN:VCARD\r\nFN:Jenny\r\nEND:VCARD\r\n\ -BEGIN:VCARD\r\n\ -X-GROUPING:pub gang\r\n\ -BEGIN:VCARD\r\nFN:Jeremy\r\nEND:VCARD\r\n\ -BEGIN:VCARD\r\nFN:Jeffery\r\nEND:VCARD\r\n\ -END:VCARD\r\n\ -BEGIN:VCARD\r\nFN:Jake\r\nEND:VCARD\r\n\ -BEGIN:VCARD\r\nFN:James\r\nEND:VCARD\r\n\ -BEGIN:VCARD\r\nFN:Jane\r\nEND:VCARD"; - mInputDevice->close(); - mInputDevice->setData(validDocumentsAndGroupedDocument2); - mInputDevice->open(QBuffer::ReadWrite); - mInputDevice->seek(0); - QVERIFY(mReader->startReading()); - QVERIFY(mReader->waitForFinished()); - results = mReader->results(); - QCOMPARE(mReader->state(), QVersitReader::FinishedState); - // An error is logged because one failed, but the rest are readable. - QCOMPARE(mReader->error(), QVersitReader::ParseError); - QCOMPARE(mReader->results().count(),4); - - // Asynchronous reading - mInputDevice->close(); - mInputDevice->setData(twoDocuments); - mInputDevice->open(QBuffer::ReadWrite); - mInputDevice->seek(0); - mSignalCatcher->mStateChanges.clear(); - mSignalCatcher->mResultsCount = 0; - QVERIFY(mReader->startReading()); - QTRY_VERIFY(mSignalCatcher->mStateChanges.count() >= 2); - QCOMPARE(mSignalCatcher->mStateChanges.at(0), QVersitReader::ActiveState); - QCOMPARE(mSignalCatcher->mStateChanges.at(1), QVersitReader::FinishedState); - QVERIFY(mSignalCatcher->mResultsCount >= 2); - QCOMPARE(mReader->results().size(), 2); - QCOMPARE(mReader->error(), QVersitReader::NoError); - - // Cancelling - mInputDevice->close(); - mInputDevice->setData(twoDocuments); - mInputDevice->open(QBuffer::ReadOnly); - mInputDevice->seek(0); - mSignalCatcher->mStateChanges.clear(); - mSignalCatcher->mResultsCount = 0; - QVERIFY(mReader->startReading()); - mReader->cancel(); - mReader->waitForFinished(); - QTRY_VERIFY(mSignalCatcher->mStateChanges.count() >= 2); - QCOMPARE(mSignalCatcher->mStateChanges.at(0), QVersitReader::ActiveState); - QVersitReader::State state(mSignalCatcher->mStateChanges.at(1)); - // It's possible that it finishes before it cancels. - QVERIFY(state == QVersitReader::CanceledState - || state == QVersitReader::FinishedState); -} - -void UT_QVersitReader::testResult() -{ - QCOMPARE(mReader->results().count(),0); -} - -void UT_QVersitReader::testSetVersionFromProperty() -{ - QVersitDocument document; - - // Some other property than VERSION - QVersitProperty property; - property.setName(QString::fromAscii("N")); - QVERIFY(mReaderPrivate->setVersionFromProperty(document,property)); - - // VERSION property with 2.1 - property.setName(QString::fromAscii("VERSION")); - property.setValue(QString::fromAscii("2.1")); - QVERIFY(mReaderPrivate->setVersionFromProperty(document,property)); - QVERIFY(document.type() == QVersitDocument::VCard21Type); - - // VERSION property with 3.0 - property.setValue(QString::fromAscii("3.0")); - QVERIFY(mReaderPrivate->setVersionFromProperty(document,property)); - QVERIFY(document.type() == QVersitDocument::VCard30Type); - - // VERSION property with a not supported value - property.setValue(QString::fromAscii("4.0")); - QVERIFY(!mReaderPrivate->setVersionFromProperty(document,property)); - - // VERSION property with BASE64 encoded supported value - property.setValue(QString::fromAscii(QByteArray("2.1").toBase64())); - property.insertParameter(QString::fromAscii("ENCODING"),QString::fromAscii("BASE64")); - QVERIFY(mReaderPrivate->setVersionFromProperty(document,property)); - QVERIFY(document.type() == QVersitDocument::VCard21Type); - - // VERSION property with BASE64 encoded not supported value - property.setValue(QString::fromAscii(QByteArray("4.0").toBase64())); - QVERIFY(!mReaderPrivate->setVersionFromProperty(document,property)); -} - -void UT_QVersitReader::testParseNextVersitPropertyVCard21() -{ - QVersitDocument::VersitType type = QVersitDocument::VCard21Type; - - // Test a valid vCard 2.1 with properties having separate handling: - // AGENT property, ENCODING parameters (BASE64 and QUOTED-PRINTABLE) and CHARSET parameter - QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); - QByteArray vCard("Begin:vcard\r\n"); - vCard.append("VERSION:2.1\r\n"); - vCard.append("FN:John\r\n"); - vCard.append("ORG;CHARSET=UTF-8:"); - vCard.append(KATAKANA_NOKIA); - vCard.append("\r\n"); - // "NOKIA" in Katakana, UTF-8 encoded, then base-64 encoded: - vCard.append("NOTE;ENCODING=BASE64;CHARSET=UTF-8:"); - vCard.append(KATAKANA_NOKIA.toBase64()); - vCard.append("\r\n"); - // The value here is "UXQgaXMgZ3JlYXQh", which is the base64 encoding of "Qt is great!". - vCard.append("PHOTO;ENCODING=BASE64: U\t XQgaX MgZ\t3Jl YXQh\r\n\r\n"); - // Again, but without the explicity "ENCODING" parameter - vCard.append("PHOTO;BASE64: U\t XQgaX MgZ\t3Jl YXQh\r\n\r\n"); - vCard.append("HOME.Springfield.EMAIL;Encoding=Quoted-Printable:john.citizen=40exam=\r\nple.com\r\n"); - vCard.append("EMAIL;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-16BE:"); - vCard.append(codec->fromUnicode(QLatin1String("john.citizen=40exam=\r\nple.com"))); - vCard.append("\r\n"); - vCard.append("AGENT:\r\nBEGIN:VCARD\r\nFN:Jenny\r\nEND:VCARD\r\n\r\n"); - vCard.append("End:VCARD\r\n"); - QBuffer buffer(&vCard); - buffer.open(QIODevice::ReadOnly); - LineReader lineReader(&buffer, mAsciiCodec); - - QVersitProperty property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("BEGIN")); - QCOMPARE(property.value(),QString::fromAscii("vcard")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("VERSION")); - QCOMPARE(property.value(),QString::fromAscii("2.1")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("FN")); - QCOMPARE(property.value(),QString::fromAscii("John")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("ORG")); - QCOMPARE(property.value(),QString::fromUtf8(KATAKANA_NOKIA)); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("NOTE")); - QCOMPARE(property.value(),QString::fromUtf8(KATAKANA_NOKIA)); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("PHOTO")); - // Linear whitespaces (SPACEs and TABs) removed from the value and base64 decoded: - QCOMPARE(property.variantValue().type(), QVariant::ByteArray); - QCOMPARE(property.value(), QByteArray("Qt is great!")); - // Ensure that base-64 encoded strings can be retrieved as strings. - QCOMPARE(property.value(), QLatin1String("Qt is great!")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("PHOTO")); - QCOMPARE(property.variantValue().type(), QVariant::ByteArray); - QCOMPARE(property.value(), QByteArray("Qt is great!")); - QCOMPARE(property.value(), QLatin1String("Qt is great!")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QStringList propertyGroup(QString::fromAscii("HOME")); - propertyGroup.append(QString::fromAscii("Springfield")); - QCOMPARE(property.groups(),propertyGroup); - QCOMPARE(property.name(),QString::fromAscii("EMAIL")); - QCOMPARE(0,property.parameters().count()); - QCOMPARE(property.value(),QString::fromAscii("john.citizen@example.com")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("EMAIL")); - // The encoding and charset parameters should be stripped by the reader. - QCOMPARE(property.parameters().count(), 0); - QCOMPARE(property.value(),QString::fromAscii("john.citizen@example.com")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("AGENT")); - QCOMPARE(property.value(),QString()); - QVERIFY(property.variantValue().userType() == qMetaTypeId()); - QCOMPARE(property.value().properties().count(), 1); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("END")); - QCOMPARE(property.value(),QString::fromAscii("VCARD")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString()); - QCOMPARE(property.value(),QString()); - - // Simulate a situation where the document nesting level is exceeded - // In practice this would mean a big number of nested AGENT properties - mReaderPrivate->mDocumentNestingLevel = 20; - QByteArray agentProperty("AGENT:BEGIN:VCARD\r\nN:Jenny\r\nEND:VCARD\r\n\r\n"); - buffer.close(); - buffer.setData(agentProperty); - buffer.open(QIODevice::ReadOnly); - LineReader agentLineReader(&buffer, mAsciiCodec); - - property = mReaderPrivate->parseNextVersitProperty(type, agentLineReader); - QVERIFY(property.isEmpty()); -} - -void UT_QVersitReader::testParseNextVersitPropertyVCard30() -{ - QVersitDocument::VersitType type = QVersitDocument::VCard30Type; - - // Test a valid vCard 3.0 with properties having separate handling: - // AGENT property and some other property - QByteArray vCard("Begin:vcard\r\n"); - vCard.append("VERSION:3.0\r\n"); - vCard.append("FN:John\r\n"); - vCard.append("ORG;CHARSET=UTF-8:"); - vCard.append(KATAKANA_NOKIA); - vCard.append("\r\n"); - // "NOKIA" in Katakana, UTF-8 encoded, then base-64 encoded: - vCard.append("NOTE;ENCODING=B;CHARSET=UTF-8:"); - vCard.append(KATAKANA_NOKIA.toBase64()); - vCard.append("\r\n"); - vCard.append("TEL;TYPE=PREF;HOME:123\r\n"); - // The value here is "UXQgaXMgZ3JlYXQh", which is the base64 encoding of "Qt is great!". - vCard.append("PHOTO;ENCODING=B:UXQgaXMgZ3JlYXQh\r\n"); - // Again, but without the explicity "ENCODING" parameter - vCard.append("PHOTO;B:UXQgaXMgZ3JlYXQh\r\n"); - vCard.append("EMAIL:john.citizen@example.com\r\n"); - vCard.append("AGENT:BEGIN:VCARD\\nFN:Jenny\\nEND:VCARD\\n\r\n"); - vCard.append("End:VCARD\r\n"); - QBuffer buffer(&vCard); - buffer.open(QIODevice::ReadOnly); - LineReader lineReader(&buffer, mAsciiCodec); - - QVersitProperty property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("BEGIN")); - QCOMPARE(property.value(),QString::fromAscii("vcard")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("VERSION")); - QCOMPARE(property.value(),QString::fromAscii("3.0")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("FN")); - QCOMPARE(property.value(),QString::fromAscii("John")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("ORG")); - QCOMPARE(property.value(),QString::fromUtf8(KATAKANA_NOKIA)); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("NOTE")); - QCOMPARE(property.value(),QString::fromUtf8(KATAKANA_NOKIA)); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("TEL")); - QCOMPARE(property.value(),QString::fromAscii("123")); - QCOMPARE(property.parameters().count(), 2); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("PHOTO")); - QCOMPARE(property.variantValue().type(), QVariant::ByteArray); - QCOMPARE(property.value(), QByteArray("Qt is great!")); - // Ensure that base-64 encoded strings can be retrieved as strings. - QCOMPARE(property.value(), QLatin1String("Qt is great!")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("PHOTO")); - QCOMPARE(property.variantValue().type(), QVariant::ByteArray); - QCOMPARE(property.value(), QByteArray("Qt is great!")); - QCOMPARE(property.value(), QLatin1String("Qt is great!")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("EMAIL")); - QCOMPARE(0,property.parameters().count()); - QCOMPARE(property.value(),QString::fromAscii("john.citizen@example.com")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("AGENT")); - QVERIFY(property.variantValue().userType() == qMetaTypeId()); - QCOMPARE(property.value().properties().count(), 1); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString::fromAscii("END")); - QCOMPARE(property.value(),QString::fromAscii("VCARD")); - - property = mReaderPrivate->parseNextVersitProperty(type, lineReader); - QCOMPARE(property.name(),QString()); - QCOMPARE(property.value(),QString()); - - // Simulate a situation where the document nesting level is exceeded - // In practice this would mean a big number of nested AGENT properties - mReaderPrivate->mDocumentNestingLevel = 20; - QByteArray agentProperty("AGENT:BEGIN\\:VCARD\\nFN\\:Jenny\\nEND\\:VCARD\\n\r\n"); - buffer.close(); - buffer.setData(agentProperty); - buffer.open(QIODevice::ReadOnly); - LineReader agentLineReader(&buffer, mAsciiCodec); - - property = mReaderPrivate->parseNextVersitProperty(type, agentLineReader); - QVERIFY(property.isEmpty()); -} - -void UT_QVersitReader::testParseVersitDocument() -{ - QFETCH(QByteArray, vCard); - QFETCH(bool, expectedSuccess); - QFETCH(int, expectedProperties); - - QBuffer buffer(&vCard); - buffer.open(QIODevice::ReadOnly); - LineReader lineReader(&buffer, QTextCodec::codecForName("UTF-8")); - - QVersitDocument document; - QCOMPARE(mReaderPrivate->parseVersitDocument(lineReader, document), expectedSuccess); - QCOMPARE(document.properties().count(), expectedProperties); - QCOMPARE(mReaderPrivate->mDocumentNestingLevel, 0); -} - -void UT_QVersitReader::testParseVersitDocument_data() -{ - QTest::addColumn("vCard"); - QTest::addColumn("expectedSuccess"); - QTest::addColumn("expectedProperties"); - - QTest::newRow("Basic vCard 2.1") - << QByteArray( - "BEGIN:VCARD\r\n" - "VERSION:2.1\r\n" - "FN:John\r\n" - "END:VCARD\r\n") - << true - << 1; - - QTest::newRow("vCard 2.1 with Agent") - << QByteArray( - "BEGIN:VCARD\r\n" - "VERSION:2.1\r\n" - "FN:John\r\n" - "AGENT:BEGIN:VCARD\r\nN:Jenny\r\nEND:VCARD\r\n\r\n" - "EMAIL;ENCODING=QUOTED-PRINTABLE:john.citizen=40exam=\r\nple.com\r\n" - "END:VCARD\r\n") - << true - << 3; - - QTest::newRow("vCard 3.0 with Agent") - << QByteArray( - "BEGIN:VCARD\r\n" - "VERSION:3.0\r\n" - "FN:John\r\n" - "AGENT:BEGIN\\:VCARD\\nN\\:Jenny\\nEND\\:VCARD\\n\r\n" - "EMAIL:john.citizen@example.com\r\n" - "END:VCARD\r\n") - << true - << 3; - - QTest::newRow("No BEGIN found") - << QByteArray( - "VCARD\r\n" - "VERSION:2.1\r\n" - "FN:Nobody\r\n" - "END:VCARD\r\n") - << false - << 0; - - QTest::newRow("Wrong card type") - << QByteArray( - "BEGIN:VCAL\r\n" - "END:VCAL\r\n") - << false - << 0; - - QTest::newRow("Wrong version") - << QByteArray( - "BEGIN:VCARD\r\n" - "VERSION:4.0\r\n" - "FN:Nobody\r\n" - "END:VCARD\r\n") - << false - << 0; - - QTest::newRow("No trailing crlf") - << QByteArray( - "BEGIN:VCARD\r\n" - "VERSION:2.1\r\n" - "FN:Nobody\r\n" - "END:VCARD") - << true - << 1; - - QTest::newRow("No end") - << QByteArray( - "BEGIN:VCARD\r\n" - "VERSION:2.1\r\n" - "FN:Nobody\r\n") - << false - << 0; - - QTest::newRow("Grouped vCards are not supported. The whole vCard will be discarded.") - << QByteArray( - "BEGIN:VCARD\r\n" - "VERSION:2.1\r\n" - "X-EXAMPLES:Family vCard\r\n" - "BEGIN:VCARD\r\n" - "VERSION:2.1\r\n" - "N:Citizen;John\r\n" - "TEL;CELL:1111\r\n" - "EMAIL;ENCODING=QUOTED-PRINTABLE:john.citizen=40example.com\r\n" - "END:VCARD\r\n" - "BEGIN:VCARD\r\n" - "VERSION:2.1\r\n" - "N:Citizen;Jenny\r\n" - "TEL;CELL:7777\r\n" - "END:VCARD\r\n" - "END:VCARD") - << false - << 0; -} - -void UT_QVersitReader::testDecodeQuotedPrintable() -{ - // Soft line breaks - QString encoded(QLatin1String("This=\r\n is =\r\none line.")); - QString decoded(QLatin1String("This is one line.")); - mReaderPrivate->decodeQuotedPrintable(encoded); - QCOMPARE(encoded, decoded); - - // Characters recommended to be encoded according to RFC 1521: - encoded = QLatin1String("To be decoded: =0A=0D=21=22=23=24=3D=40=5B=5C=5D=5E=60=7B=7C=7D=7E"); - decoded = QLatin1String("To be decoded: \n\r!\"#$=@[\\]^`{|}~"); - mReaderPrivate->decodeQuotedPrintable(encoded); - QCOMPARE(encoded, decoded); - - // Other random characters encoded. - // Some implementation may encode these too, as it is allowed. - encoded = QLatin1String("=45=6E=63=6F=64=65=64 =64=61=74=61"); - decoded = QLatin1String("Encoded data"); - mReaderPrivate->decodeQuotedPrintable(encoded); - QCOMPARE(encoded, decoded); -} -void UT_QVersitReader::testParamName() -{ - // Empty value - QByteArray param; - QCOMPARE(mReaderPrivate->paramName(param, mAsciiCodec),QString()); - - // Only value present - param = "WORK"; - QCOMPARE(mReaderPrivate->paramName(param, mAsciiCodec), - QString::fromAscii("TYPE")); - - // The below tests intentionally use the misspelling TIPE to avoid the default behaviour of - // returning TYPE when the name can't be parsed. - // Both name and value, spaces after the name - param = "TIPE \t =WORK"; - QCOMPARE(mReaderPrivate->paramName(param, mAsciiCodec), - QString::fromAscii("TIPE")); - - // Both name and value, no spaces after the name - param = "TIPE=WORK"; - QCOMPARE(mReaderPrivate->paramName(param, mAsciiCodec), - QString::fromAscii("TIPE")); - - // Test wide character support. - QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); - param = codec->fromUnicode(QString::fromAscii("TIPE=WORK")); - QCOMPARE(mReaderPrivate->paramName(param, codec), - QString::fromAscii("TIPE")); - -} - -void UT_QVersitReader::testParamValue() -{ - // Empty value - QByteArray param; - QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec),QString()); - - // Only value present - param = "WORK"; - QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec), - QString::fromAscii("WORK")); - - // Name and equals sign, but no value - param = "TYPE="; - QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec),QString()); - - // Name and equals sign, but value has only spaces - param = "TYPE= \t "; - QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec),QString()); - - // Both name and value, spaces before the value - param = "TYPE= \t WORK"; - QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec), - QString::fromAscii("WORK")); - - // Both name and value, no spaces before the value - param = "ENCODING=QUOTED-PRINTABLE"; - QCOMPARE(mReaderPrivate->paramValue(param, mAsciiCodec), - QString::fromAscii("QUOTED-PRINTABLE")); - - // Test wide character support. - QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); - param = codec->fromUnicode(QString::fromAscii("TYPE=WORK")); - QCOMPARE(mReaderPrivate->paramValue(param, codec), - QString::fromAscii("WORK")); -} - -void UT_QVersitReader::testExtractPart() -{ - QByteArray originalStr; - - // Negative starting position - QCOMPARE(mReaderPrivate->extractPart(originalStr,-1,1), QByteArray()); - - // Empty original string - QCOMPARE(mReaderPrivate->extractPart(originalStr,0,1), QByteArray()); - - // Trimmed substring empty - originalStr = " \t \t"; - QCOMPARE(mReaderPrivate->extractPart(originalStr,0,4), QByteArray()); - - // The given substring length is greater than the original string length - originalStr = "ENCODING=7BIT"; - QCOMPARE(mReaderPrivate->extractPart(originalStr,0,100), originalStr); - - // Non-empty substring, from the beginning - originalStr = " TYPE=WORK ; X-PARAM=X-VALUE; ENCODING=8BIT"; - QCOMPARE(mReaderPrivate->extractPart(originalStr,0,11), - QByteArray("TYPE=WORK")); - - // Non-empty substring, from the middle - QCOMPARE(mReaderPrivate->extractPart(originalStr,12,16), - QByteArray("X-PARAM=X-VALUE")); - - // Non-empty substring, from the middle to the end - QCOMPARE(mReaderPrivate->extractPart(originalStr,29), - QByteArray("ENCODING=8BIT")); -} - -void UT_QVersitReader::testExtractParts() -{ - QList parts; - - // Empty value - QByteArray text; - parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); - QVERIFY(parts.isEmpty()); - - // Only separator - text = ";"; - parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); - QVERIFY(parts.isEmpty()); - - // One part - text = "part"; - parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); - QCOMPARE(parts.count(),1); - QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("part")); - - // Separator in the beginning, one part - text = ";part"; - parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); - QCOMPARE(parts.count(),1); - QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("part")); - - // Separator in the end, one part - text = "part;"; - parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); - QCOMPARE(parts.count(),1); - QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("part")); - - // One part that contains escaped separator - text = "part\\;"; - parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); - QCOMPARE(parts.count(),1); - QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("part\\;")); - - // Two parts - text = "part1;part2"; - parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); - QCOMPARE(parts.count(),2); - QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("part1")); - QCOMPARE(QString::fromAscii(parts[1]),QString::fromAscii("part2")); - - // Two parts that contain escaped separators - text = "pa\\;rt1;par\\;t2"; - parts = mReaderPrivate->extractParts(text,";", mAsciiCodec); - QCOMPARE(parts.count(),2); - QCOMPARE(QString::fromAscii(parts[0]),QString::fromAscii("pa\\;rt1")); - QCOMPARE(QString::fromAscii(parts[1]),QString::fromAscii("par\\;t2")); - - // Test wide character support - QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); - text = codec->fromUnicode(QString::fromAscii("part1;part2")); - parts = mReaderPrivate->extractParts(text,";", codec); - QCOMPARE(parts.count(),2); - QCOMPARE(codec->toUnicode(parts[0]),QString::fromAscii("part1")); - QCOMPARE(codec->toUnicode(parts[1]),QString::fromAscii("part2")); -} - -void UT_QVersitReader::testExtractPropertyGroupsAndName() -{ - QPair groupsAndName; - - // Empty string - VersitCursor cursor(QByteArray(" ")); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); - QCOMPARE(groupsAndName.first.count(),0); - QCOMPARE(groupsAndName.second,QString()); - - // No value -> returns empty string and no groups - QByteArray property("TEL"); - cursor.setData(property); - cursor.selection = property.size(); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); - QCOMPARE(groupsAndName.first.count(),0); - QCOMPARE(groupsAndName.second,QString()); - - // Simple name and value - property = "TEL:123"; - cursor.setData(property); - cursor.selection = property.size(); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); - QCOMPARE(groupsAndName.first.count(),0); - QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); - - // One whitespace before colon - property = "TEL :123"; - cursor.setData(property); - cursor.selection = property.size(); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); - QCOMPARE(groupsAndName.first.count(),0); - QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); - - // Several whitespaces before colon - property = "TEL \t :123"; - cursor.setData(property); - cursor.selection = property.size(); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); - QCOMPARE(groupsAndName.first.count(),0); - QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); - - // Name contains a group - property = "group1.TEL:1234"; - cursor.setData(property); - cursor.selection = property.size(); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); - QCOMPARE(groupsAndName.first.count(),1); - QCOMPARE(groupsAndName.first.takeFirst(),QString::fromAscii("group1")); - QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); - - // Name contains more than one group - property = "group1.group2.TEL:12345"; - cursor.setData(property); - cursor.selection = property.size(); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); - QCOMPARE(groupsAndName.first.count(),2); - QCOMPARE(groupsAndName.first.takeFirst(),QString::fromAscii("group1")); - QCOMPARE(groupsAndName.first.takeFirst(),QString::fromAscii("group2")); - QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); - QCOMPARE(cursor.position, 17); - - // Property contains one parameter - property = "TEL;WORK:123"; - cursor.setData(property); - cursor.selection = property.size(); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); - QCOMPARE(groupsAndName.first.count(),0); - QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); - - // Property contains several parameters - property = "EMAIL;INTERNET;ENCODING=QUOTED-PRINTABLE:user=40ovi.com"; - cursor.setData(property); - cursor.selection = property.size(); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); - QCOMPARE(groupsAndName.first.count(),0); - QCOMPARE(groupsAndName.second,QString::fromAscii("EMAIL")); - - // Name contains an escaped semicolon - property = "X-proper\\;ty:value"; - cursor.setData(property); - cursor.selection = property.size(); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, mAsciiCodec); - QCOMPARE(groupsAndName.first.count(),0); - QCOMPARE(groupsAndName.second,QString::fromAscii("X-proper\\;ty")); - - // Test wide character support - QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); - property = codec->fromUnicode(QString::fromAscii("group1.group2.TEL;WORK:123")); - cursor.setData(property); - cursor.selection = property.size(); - groupsAndName = mReaderPrivate->extractPropertyGroupsAndName(cursor, codec); - QCOMPARE(groupsAndName.first.count(),2); - QCOMPARE(groupsAndName.first.takeFirst(),QString::fromAscii("group1")); - QCOMPARE(groupsAndName.first.takeFirst(),QString::fromAscii("group2")); - QCOMPARE(groupsAndName.second,QString::fromAscii("TEL")); - QCOMPARE(cursor.position, 36); // 2 bytes * 17 characters + 2 byte BOM. - -} - -void UT_QVersitReader::testExtractVCard21PropertyParams() -{ - // No parameters - VersitCursor cursor(QByteArray(":123")); - cursor.setSelection(cursor.data.size()); - QCOMPARE(mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec).count(), 0); - - // "Empty" parameter - cursor.setData(QByteArray(";:123")); - cursor.setSelection(cursor.data.size()); - QCOMPARE(mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec).count(), 0); - - // Semicolon found, but no value for the property - cursor.setData(QByteArray(";TYPE=X-TYPE")); - cursor.setSelection(cursor.data.size()); - QCOMPARE(mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec).count(), 0); - - // The property name contains an escaped semicolon, no parameters - cursor.setData(QByteArray(":value")); - cursor.setSelection(cursor.data.size()); - QCOMPARE(mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec).count(), 0); - - // The property value contains a semicolon, no parameters - cursor.setData(QByteArray(":va;lue")); - cursor.setSelection(cursor.data.size()); - QCOMPARE(mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec).count(), 0); - - // One parameter - cursor.setData(QByteArray(";HOME:123")); - cursor.setSelection(cursor.data.size()); - QMultiHash params = mReaderPrivate->extractVCard21PropertyParams(cursor, - mAsciiCodec); - QCOMPARE(1, params.count()); - QCOMPARE(1, params.values(QString::fromAscii("TYPE")).count()); - QCOMPARE(params.values(QString::fromAscii("TYPE"))[0],QString::fromAscii("HOME")); - - // Two parameters of the same type - cursor.setData(QByteArray(";HOME;VOICE:123")); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec); - QCOMPARE(2, params.count()); - QCOMPARE(2, params.values(QString::fromAscii("TYPE")).count()); - QCOMPARE(params.values(QString::fromAscii("TYPE"))[0],QString::fromAscii("HOME")); - QCOMPARE(params.values(QString::fromAscii("TYPE"))[1],QString::fromAscii("VOICE")); - - // Two parameters, several empty parameters (extra semicolons) - cursor.setData(QByteArray(";;;;HOME;;;;;VOICE;;;:123")); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec); - QCOMPARE(2, params.count()); - QCOMPARE(2, params.values(QString::fromAscii("TYPE")).count()); - QCOMPARE(params.values(QString::fromAscii("TYPE"))[0],QString::fromAscii("HOME")); - QCOMPARE(params.values(QString::fromAscii("TYPE"))[1],QString::fromAscii("VOICE")); - - // Two parameters with different types - cursor.setData(QByteArray(";INTERNET;ENCODING=QUOTED-PRINTABLE:user=40ovi.com")); - cursor.setSelection(cursor.data.size()); - params.clear(); - params = mReaderPrivate->extractVCard21PropertyParams(cursor, mAsciiCodec); - QCOMPARE(2, params.count()); - QList typeParams = params.values(QString::fromAscii("TYPE")); - QCOMPARE(1, typeParams.count()); - QCOMPARE(typeParams[0],QString::fromAscii("INTERNET")); - QList encodingParams = params.values(QString::fromAscii("ENCODING")); - QCOMPARE(1, encodingParams.count()); - QCOMPARE(encodingParams[0],QString::fromAscii("QUOTED-PRINTABLE")); - - // Test wide character support. - QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); - QByteArray data = VersitUtils::encode(";HOME;CHARSET=UTF-16:123", codec); - cursor.setData(data); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractVCard21PropertyParams(cursor, codec); - QCOMPARE(2, params.count()); - typeParams = params.values(QString::fromAscii("TYPE")); - QCOMPARE(1, typeParams.count()); - QCOMPARE(typeParams[0],QString::fromAscii("HOME")); - encodingParams = params.values(QString::fromAscii("CHARSET")); - QCOMPARE(1, encodingParams.count()); - QCOMPARE(encodingParams[0],QString::fromAscii("UTF-16")); -} - -void UT_QVersitReader::testExtractVCard30PropertyParams() -{ - // No parameters - VersitCursor cursor(QByteArray(":123")); - cursor.setSelection(cursor.data.size()); - QCOMPARE(mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec).count(), 0); - - // One parameter - cursor.setData(QByteArray(";TYPE=HOME:123")); - cursor.setSelection(cursor.data.size()); - QMultiHash params = mReaderPrivate->extractVCard30PropertyParams(cursor, - mAsciiCodec); - QCOMPARE(params.count(), 1); - QCOMPARE(params.values(QString::fromAscii("TYPE")).count(), 1); - QCOMPARE(params.values(QString::fromAscii("TYPE"))[0], QString::fromAscii("HOME")); - - // One parameter with an escaped semicolon - cursor.setData(QByteArray(";para\\;meter:value")); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); - QCOMPARE(params.count(), 1); - QCOMPARE(params.values(QString::fromAscii("TYPE")).count(), 1); - QCOMPARE(params.values(QString::fromAscii("TYPE"))[0], QString::fromAscii("para;meter")); - - // One parameter with and escaped comma in the name and the value - cursor.setData(QByteArray(";X-PA\\,RAM=VAL\\,UE:123")); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); - QCOMPARE(params.count(), 1); - QCOMPARE(params.values(QString::fromAscii("X-PA,RAM")).count(), 1); - QCOMPARE(params.values(QString::fromAscii("X-PA,RAM"))[0], QString::fromAscii("VAL,UE")); - - // Two parameters of the same type - cursor.setData(QByteArray(";TYPE=HOME,VOICE:123")); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); - QCOMPARE(params.count(), 2); - QCOMPARE(params.values(QString::fromAscii("TYPE")).count(), 2); - QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("HOME"))); - QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("VOICE"))); - - // Two parameters of the same type in separate name-values - cursor.setData(QByteArray(";TYPE=HOME;TYPE=VOICE:123")); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); - QCOMPARE(params.count(), 2); - QCOMPARE(params.values(QString::fromAscii("TYPE")).count(), 2); - QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("HOME"))); - QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("VOICE"))); - - // Three parameters of the same type - cursor.setData(QByteArray(";TYPE=PREF,HOME,VOICE:123")); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); - QCOMPARE(params.count(), 3); - QCOMPARE(params.values(QString::fromAscii("TYPE")).count(), 3); - QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("PREF"))); - QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("HOME"))); - QVERIFY(params.values(QString::fromAscii("TYPE")).contains(QString::fromAscii("VOICE"))); - - // Two parameters with different types - cursor.setData(QByteArray(";TYPE=HOME;X-PARAM=X-VALUE:Home Street 1")); - cursor.setSelection(cursor.data.size()); - params.clear(); - params = mReaderPrivate->extractVCard30PropertyParams(cursor, mAsciiCodec); - QCOMPARE(params.count(), 2); - QList typeParams = params.values(QString::fromAscii("TYPE")); - QCOMPARE(typeParams.count(), 1); - QCOMPARE(typeParams[0],QString::fromAscii("HOME")); - QList encodingParams = params.values(QString::fromAscii("X-PARAM")); - QCOMPARE(encodingParams.count(), 1); - QCOMPARE(encodingParams[0],QString::fromAscii("X-VALUE")); - - // Test wide character support. - QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); - QByteArray data = VersitUtils::encode(";TIPE=HOME,VOICE;CHARSET=UTF-16:123", codec); - cursor.setData(data); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractVCard30PropertyParams(cursor, codec); - QCOMPARE(params.count(), 3); - typeParams = params.values(QString::fromAscii("TIPE")); - QCOMPARE(params.values(QString::fromAscii("TIPE")).count(), 2); - QVERIFY(params.values(QString::fromAscii("TIPE")).contains(QString::fromAscii("HOME"))); - QVERIFY(params.values(QString::fromAscii("TIPE")).contains(QString::fromAscii("VOICE"))); - encodingParams = params.values(QString::fromAscii("CHARSET")); - QCOMPARE(1, encodingParams.count()); - QCOMPARE(encodingParams[0],QString::fromAscii("UTF-16")); -} - -void UT_QVersitReader::testExtractParams() -{ - VersitCursor cursor; - QByteArray data = ":123"; - cursor.setData(data); - cursor.setPosition(0); - cursor.setSelection(cursor.data.size()); - QList params = mReaderPrivate->extractParams(cursor, mAsciiCodec); - QCOMPARE(params.size(), 0); - QCOMPARE(cursor.position, 1); - - data = "a;b:123"; - cursor.setData(data); - cursor.setPosition(0); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractParams(cursor, mAsciiCodec); - QCOMPARE(params.size(), 2); - QCOMPARE(cursor.position, 4); - QCOMPARE(params.at(0), QByteArray("a")); - QCOMPARE(params.at(1), QByteArray("b")); - - QTextCodec* codec = QTextCodec::codecForName("UTF-16BE"); - data = VersitUtils::encode(":123", codec); - cursor.setData(data); - cursor.setPosition(0); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractParams(cursor, codec); - QCOMPARE(params.size(), 0); - QCOMPARE(cursor.position, 2); - - data = VersitUtils::encode("a;b:123", codec); - cursor.setData(data); - cursor.setPosition(0); - cursor.setSelection(cursor.data.size()); - params = mReaderPrivate->extractParams(cursor, codec); - QCOMPARE(params.size(), 2); - QCOMPARE(cursor.position, 8); - -} - -Q_DECLARE_METATYPE(QList) - -void UT_QVersitReader::testReadLine() -{ - QFETCH(QByteArray, codecName); - QFETCH(QString, data); - QFETCH(QList, expectedLines); - - QTextCodec* codec = QTextCodec::codecForName(codecName); - QTextEncoder* encoder = codec->makeEncoder(); - encoder->fromUnicode(QString()); - - QByteArray bytes(encoder->fromUnicode(data)); - - mInputDevice->close(); - mInputDevice->setData(bytes); - mInputDevice->open(QIODevice::ReadWrite); - - LineReader lineReader(mInputDevice, codec, 10); - - // Check that all expected lines are read. - foreach (QString expectedLine, expectedLines) { - QByteArray expectedBytes(encoder->fromUnicode(expectedLine)); - QVERIFY(!lineReader.atEnd()); - VersitCursor line = lineReader.readLine(); - QVERIFY(line.data.indexOf(expectedBytes) == line.position); - QCOMPARE(line.selection - line.position, expectedBytes.length()); - } - // And that there are no more lines - VersitCursor line = lineReader.readLine(); - QCOMPARE(line.selection, line.position); - QVERIFY(lineReader.atEnd()); - - delete encoder; -} - -void UT_QVersitReader::testReadLine_data() -{ - // Note: for this test, we set mLineReader to read 10 bytes at a time. Lines of multiples of - // 10 bytes are hence border cases. - QTest::addColumn("codecName"); - QTest::addColumn("data"); - QTest::addColumn >("expectedLines"); - - QList codecNames; - codecNames << "UTF-8" << "UTF-16"; - - foreach (QByteArray codecName, codecNames) { - QTest::newRow("empty " + codecName) - << codecName - << "" - << QList(); - - QTest::newRow("one line " + codecName) - << codecName - << "line" - << (QList() << QLatin1String("line")); - - QTest::newRow("one ten-byte line " + codecName) - << codecName - << "tenletters" - << (QList() << QLatin1String("tenletters")); - - QTest::newRow("one long line " + codecName) - << codecName - << "one line longer than ten characters" - << (QList() << QLatin1String("one line longer than ten characters")); - - QTest::newRow("one terminated line " + codecName) - << codecName - << "one line longer than ten characters\r\n" - << (QList() << QLatin1String("one line longer than ten characters")); - - QTest::newRow("two lines " + codecName) - << codecName - << "two\r\nlines" - << (QList() << QLatin1String("two") << QLatin1String("lines")); - - QTest::newRow("two terminated lines " + codecName) - << codecName - << "two\r\nlines\r\n" - << (QList() << QLatin1String("two") << QLatin1String("lines")); - - QTest::newRow("two long lines " + codecName) - << codecName - << "one line longer than ten characters\r\nanother line\r\n" - << (QList() << QLatin1String("one line longer than ten characters") << QLatin1String("another line")); - - QTest::newRow("two full lines " + codecName) - << codecName - << "tenletters\r\n8letters\r\n" - << (QList() << QLatin1String("tenletters") << QLatin1String("8letters")); - - QTest::newRow("a nine-byte line " + codecName) - << codecName - << "9 letters\r\nanother line\r\n" - << (QList() << QLatin1String("9 letters") << QLatin1String("another line")); - - QTest::newRow("a blank line " + codecName) - << codecName - << "one\r\n\r\ntwo\r\n" - << (QList() << QLatin1String("one") << QLatin1String("two")); - - QTest::newRow("folded lines " + codecName) - << codecName - << "folded\r\n line\r\nsecond line\r\n" - << (QList() << QLatin1String("folded line") << QLatin1String("second line")); - - QTest::newRow("multiply folded lines " + codecName) - << codecName - << "fo\r\n lded\r\n line\r\nseco\r\n\tnd l\r\n ine\r\n" - << (QList() << QLatin1String("folded line") << QLatin1String("second line")); - - QTest::newRow("fold hidden after a chunk " + codecName) - << codecName - << "8letters\r\n on one line\r\n" - << (QList() << QLatin1String("8letters on one line")); - - QTest::newRow("three mac lines " + codecName) - << codecName - << "one\rtwo\rthree\r" - << (QList() << QLatin1String("one") << QLatin1String("two") << QLatin1String("three")); - } -} - -QTEST_MAIN(UT_QVersitReader) - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitreader/ut_qversitreader.h --- a/qtmobility/tests/auto/qversitreader/ut_qversitreader.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,115 +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 Qt Mobility Components. -** -** $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 UT_QVERSITREADER_H -#define UT_QVERSITREADER_H - -#include -#include -#include -#include "qversitreader.h" - -QTM_BEGIN_NAMESPACE - -class QVersitReaderPrivate; -class LineReader; - -QTM_END_NAMESPACE -QTM_USE_NAMESPACE - -// Poor man's QSignalSpy because I couldn't get QSignalSpy to work with the user type QVR::State. -class SignalCatcher : public QObject -{ -Q_OBJECT -public: - SignalCatcher() : mResultsCount(0) {} -public slots: - void stateChanged(QVersitReader::State state) { - mStateChanges.append(state); - } - void resultsAvailable() { - mResultsCount += 1; - } - -public: - QList mStateChanges; - int mResultsCount; -}; - -class UT_QVersitReader : public QObject -{ - Q_OBJECT - -private slots: // Tests - - void init(); - void cleanup(); - - void testDevice(); - void testDefaultCodec(); - void testReading(); - void testResult(); - void testSetVersionFromProperty(); - void testParseNextVersitPropertyVCard21(); - void testParseNextVersitPropertyVCard30(); - void testParseVersitDocument(); - void testParseVersitDocument_data(); - void testDecodeQuotedPrintable(); - void testParamName(); - void testParamValue(); - void testExtractPart(); - void testExtractParts(); - void testExtractPropertyGroupsAndName(); - void testExtractVCard21PropertyParams(); - void testExtractVCard30PropertyParams(); - void testExtractParams(); - - void testReadLine(); - void testReadLine_data(); -private: // Data - QVersitReader* mReader; - QVersitReaderPrivate* mReaderPrivate; - QBuffer* mInputDevice; - QTextCodec* mAsciiCodec; - SignalCatcher* mSignalCatcher; -}; - -#endif // UT_VERSITREADER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitutils/qversitutils.pro --- a/qtmobility/tests/auto/qversitutils/qversitutils.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -QT += testlib -TEMPLATE=app -TARGET=tst_versitutils -CONFIG+=testcase - -include(../../../common.pri) -DEFINES += QT_ASCII_CAST_WARNINGS - -DEPENDPATH += . -INCLUDEPATH += \ - . \ - ../../ \ - ../../../src/versit \ - ../../../src/contacts \ - ../../../src/contacts/details \ - ../../../src/contacts/requests \ - ../../../src/contacts/filters - -HEADERS += ut_versitutils.h -SOURCES += ut_versitutils.cpp - -CONFIG += mobility -MOBILITY = contacts versit - -symbian: { - TARGET.CAPABILITY = ALL \ - -TCB - LIBS += -lws32 \ - -lbafl -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitutils/ut_versitutils.cpp --- a/qtmobility/tests/auto/qversitutils/ut_versitutils.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,134 +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 Qt Mobility Components. -** -** $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 "ut_versitutils.h" -#include -#include -#include - -#include "versitutils_p.h" - -QTM_USE_NAMESPACE - -void UT_VersitUtils::testBackSlashEscape() -{ - // Empty string - QString input; - VersitUtils::backSlashEscape(input); - QCOMPARE(input,QString()); - - // Nothing to escape in the string - input = QString::fromAscii("Nothing to escape"); - VersitUtils::backSlashEscape(input); - QCOMPARE(input,QString::fromAscii("Nothing to escape")); - - // Line break in the beginning - input = QString::fromAscii("\r\n input"); - VersitUtils::backSlashEscape(input); - QCOMPARE(input,QString::fromAscii("\\n input")); - - // Line break in the end - input = QString::fromAscii("input\r\n"); - VersitUtils::backSlashEscape(input); - QCOMPARE(input,QString::fromAscii("input\\n")); - - // Semicolon in the beginning - input = QString::fromAscii(";input"); - VersitUtils::backSlashEscape(input); - QCOMPARE(input,QString::fromAscii("\\;input")); - - // Semicolon in the end - input = QString::fromAscii("input;"); - VersitUtils::backSlashEscape(input); - QCOMPARE(input,QString::fromAscii("input\\;")); - - // Comma in the beginning - input = QString::fromAscii(",input"); - VersitUtils::backSlashEscape(input); - QCOMPARE(input,QString::fromAscii("\\,input")); - - // Comma in the end - input = QString::fromAscii("input,"); - VersitUtils::backSlashEscape(input); - QCOMPARE(input,QString::fromAscii("input\\,")); - - // Backslash in the beginning - input = QString::fromAscii("\\input"); - VersitUtils::backSlashEscape(input); - QCOMPARE(input,QString::fromAscii("\\\\input")); - - // Backslash in the end - input = QString::fromAscii("input\\"); - VersitUtils::backSlashEscape(input); - QCOMPARE(input,QString::fromAscii("input\\\\")); - - // Line break, semicolon, backslash and comma in the middle of the string - input = QString::fromAscii("Escape these \r\n ; , \\ "); - VersitUtils::backSlashEscape(input); - QCOMPARE(input, QString::fromAscii("Escape these \\n \\; \\, \\\\ ")); - -} - -void UT_VersitUtils::testRemoveBackSlashEscaping() -{ - // Empty string - QString input; - VersitUtils::removeBackSlashEscaping(input); - QCOMPARE(input,QString()); - - // Nothing to escape in the string - input = QString::fromAscii("Nothing to escape"); - VersitUtils::removeBackSlashEscaping(input); - QCOMPARE(input,QString::fromAscii("Nothing to escape")); - - // Line break, semicolon, backslash and comma in the string - input = QString::fromAscii("These should be unescaped \\n \\N \\; \\, \\\\"); - VersitUtils::removeBackSlashEscaping(input); - QCOMPARE(input, QString::fromAscii("These should be unescaped \r\n \r\n ; , \\")); - - // Don't remove escaping within quotes - input = QString::fromAscii("\"Quoted \\n \\N \\; \\,\""); - VersitUtils::removeBackSlashEscaping(input); - QCOMPARE(input, QString::fromAscii("\"Quoted \\n \\N \\; \\,\"")); -} - -QTEST_MAIN(UT_VersitUtils) - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitutils/ut_versitutils.h --- a/qtmobility/tests/auto/qversitutils/ut_versitutils.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +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 Qt Mobility Components. -** -** $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 UT_VERSITUTILS_H -#define UT_VERSITUTILS_H - -#include -#include - -QT_BEGIN_NAMESPACE -class QTextCodec; -QT_END_NAMESPACE - -class UT_VersitUtils : public QObject -{ - Q_OBJECT - -private slots: - void testBackSlashEscape(); - void testRemoveBackSlashEscaping(); -}; - -#endif // UT_VERSITUTILS_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitwriter/qversitwriter.pro --- a/qtmobility/tests/auto/qversitwriter/qversitwriter.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qversitwriter/qversitwriter.pro Mon May 03 13:18:40 2010 +0300 @@ -16,8 +16,8 @@ ../../../src/contacts/requests \ ../../../src/contacts/filters -HEADERS += ut_qversitwriter.h -SOURCES += ut_qversitwriter.cpp +HEADERS += tst_qversitwriter.h +SOURCES += tst_qversitwriter.cpp CONFIG += mobility MOBILITY = contacts versit diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitwriter/tst_qversitwriter.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitwriter/tst_qversitwriter.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,277 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 "tst_qversitwriter.h" +#include "qversitwriter.h" +#include "qversitdocument.h" +#include "qversitproperty.h" +#include +#include + +// Copied from tst_qcontactmanager.cpp +// Waits until __expr is true and fails if it doesn't happen within 5s. +#ifndef QTRY_VERIFY +#define QTRY_VERIFY(__expr) \ + do { \ + const int __step = 50; \ + const int __timeout = 5000; \ + if (!(__expr)) { \ + QTest::qWait(0); \ + } \ + for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \ + QTest::qWait(__step); \ + } \ + QVERIFY(__expr); \ + } while(0) +#endif + +QTM_USE_NAMESPACE + +void tst_QVersitWriter::init() +{ + mOutputDevice = new QBuffer; + mWriter = new QVersitWriter; + mSignalCatcher = new SignalCatcher; + connect(mWriter, SIGNAL(stateChanged(QVersitWriter::State)), + mSignalCatcher, SLOT(stateChanged(QVersitWriter::State))); +} + +void tst_QVersitWriter::cleanup() +{ + delete mWriter; + delete mOutputDevice; + delete mSignalCatcher; +} + +void tst_QVersitWriter::testDevice() +{ + // No device + QVERIFY(mWriter->device() == NULL); + + // Device has been set + mWriter->setDevice(mOutputDevice); + QVERIFY(mWriter->device() == mOutputDevice); +} + +void tst_QVersitWriter::testDefaultCodec() +{ + QVERIFY(mWriter->defaultCodec() == 0); + mWriter->setDefaultCodec(QTextCodec::codecForName("UTF-16BE")); + QVERIFY(mWriter->defaultCodec() == QTextCodec::codecForName("UTF-16BE")); +} + +void tst_QVersitWriter::testFold() +{ + // 87 characters long + QString longString(QLatin1String( + "4567890123456789012345678901234567890123456789012345678901234567890123456" + "234567890123456789012345678901234567890123456789012345678901234567890123456" + "234567890123456789012")); + QByteArray expected( + "BEGIN:VCARD\r\n" + "VERSION:2.1\r\n" + "FN:4567890123456789012345678901234567890123456789012345678901234567890123456\r\n" + " 234567890123456789012345678901234567890123456789012345678901234567890123456\r\n" + " 234567890123456789012\r\n" + "END:VCARD\r\n"); + QVersitDocument document; + QVersitProperty property; + property.setName(QLatin1String("FN")); + property.setValue(longString); + document.addProperty(property); + document.setType(QVersitDocument::VCard21Type); + QList list; + list.append(document); + mWriter->setDevice(mOutputDevice); + mOutputDevice->open(QBuffer::ReadWrite); + QVERIFY(mWriter->startWriting(list)); + QVERIFY(mWriter->waitForFinished()); + QCOMPARE(mWriter->state(), QVersitWriter::FinishedState); + QCOMPARE(mWriter->error(), QVersitWriter::NoError); + mOutputDevice->seek(0); + QByteArray result(mOutputDevice->readAll()); + QCOMPARE(result, expected); +} + +void tst_QVersitWriter::testWriting21() +{ + // vCard 2.1 + QByteArray vCard21( +"BEGIN:VCARD\r\n\ +VERSION:2.1\r\n\ +FN:John\r\n\ +END:VCARD\r\n"); + QVersitDocument document; + QVersitProperty property; + property.setName(QString(QString::fromAscii("FN"))); + property.setValue(QString::fromAscii("John")); + document.addProperty(property); + document.setType(QVersitDocument::VCard21Type); + QList list; + list.append(document); + + // Device not set + QCOMPARE(mWriter->state(), QVersitWriter::InactiveState); + QCOMPARE(mWriter->error(), QVersitWriter::NoError); + QVERIFY(!mWriter->startWriting(list)); + QCOMPARE(mWriter->state(), QVersitWriter::InactiveState); + QCOMPARE(mWriter->error(), QVersitWriter::IOError); + QVERIFY(!mWriter->waitForFinished()); + + // Device not opened + mWriter->setDevice(mOutputDevice); + QVERIFY(!mWriter->startWriting(list)); + QCOMPARE(mWriter->state(), QVersitWriter::InactiveState); + QCOMPARE(mWriter->error(), QVersitWriter::IOError); + + // Now open the device and it should work. + mOutputDevice->open(QBuffer::ReadWrite); + QVERIFY(mWriter->startWriting(list)); + QVERIFY(mWriter->waitForFinished()); + QCOMPARE(mWriter->state(), QVersitWriter::FinishedState); + QCOMPARE(mWriter->error(), QVersitWriter::NoError); + mOutputDevice->seek(0); + QByteArray result(mOutputDevice->readAll()); + QCOMPARE(result, vCard21); + + // Try some other codec + delete mOutputDevice; + mOutputDevice = new QBuffer; + mOutputDevice->open(QBuffer::ReadWrite); + mWriter->setDevice(mOutputDevice); + QTextCodec* utf16(QTextCodec::codecForName("UTF-16")); + mWriter->setDefaultCodec(utf16); + QVERIFY(mWriter->startWriting(list)); + QVERIFY(mWriter->waitForFinished()); + QCOMPARE(mWriter->state(), QVersitWriter::FinishedState); + QCOMPARE(mWriter->error(), QVersitWriter::NoError); + mOutputDevice->seek(0); + result = mOutputDevice->readAll(); + QByteArray expected(utf16->fromUnicode(QLatin1String(vCard21.data()))); + QString out; + for (int i = 0; i < result.length(); i++) { + QString t; + out += t.sprintf("%02X ", (unsigned char)result.at(i)); + } + QCOMPARE(result, expected); +} + +void tst_QVersitWriter::testWriting30() +{ + // vCard 3.0 + QByteArray vCard30( +"BEGIN:VCARD\r\n\ +VERSION:3.0\r\n\ +FN:John\r\n\ +END:VCARD\r\n"); + + QVersitDocument document; + QVersitProperty property; + property.setName(QString(QString::fromAscii("FN"))); + property.setValue(QString::fromAscii("John")); + document.addProperty(property); + document.setType(QVersitDocument::VCard30Type); + QList list; + list.append(document); + + // Basic 3.0 test + mOutputDevice->open(QBuffer::ReadWrite); + mWriter->setDevice(mOutputDevice); + QVERIFY(mWriter->startWriting(list)); + QVERIFY(mWriter->waitForFinished()); + QCOMPARE(mWriter->state(), QVersitWriter::FinishedState); + QCOMPARE(mWriter->error(), QVersitWriter::NoError); + mOutputDevice->seek(0); + QByteArray result(mOutputDevice->readAll()); + QCOMPARE(result, vCard30); + + // Asynchronous writing + mOutputDevice->reset(); + mSignalCatcher->mReceived.clear(); + QVERIFY(mWriter->startWriting(list)); + QTRY_VERIFY(mSignalCatcher->mReceived.count() >= 2); + QCOMPARE(mSignalCatcher->mReceived.at(0), QVersitWriter::ActiveState); + QCOMPARE(mSignalCatcher->mReceived.at(1), QVersitWriter::FinishedState); + + // Cancelling + delete mOutputDevice; + mOutputDevice = new QBuffer; + mOutputDevice->open(QBuffer::ReadWrite); + mSignalCatcher->mReceived.clear(); + mWriter->setDevice(mOutputDevice); + mWriter->startWriting(list); + mWriter->cancel(); + mWriter->waitForFinished(); + QTRY_VERIFY(mSignalCatcher->mReceived.count() >= 2); + QCOMPARE(mSignalCatcher->mReceived.at(0), QVersitWriter::ActiveState); + QVersitWriter::State state(mSignalCatcher->mReceived.at(1)); + // It's possible that it finishes before it cancels. + QVERIFY(state == QVersitWriter::CanceledState + || state == QVersitWriter::FinishedState); +} + +void tst_QVersitWriter::testByteArrayOutput() +{ + const QByteArray vCard30( + "BEGIN:VCARD\r\n" + "VERSION:3.0\r\n" + "FN:John\r\n" + "END:VCARD\r\n"); + + delete mWriter; // we don't want the init()ed writer. + + QByteArray output; + mWriter = new QVersitWriter(&output); + + QVERIFY(mWriter->device() == 0); + + QVersitDocument document(QVersitDocument::VCard30Type); + QVersitProperty property; + property.setName(QString(QString::fromAscii("FN"))); + property.setValue(QString::fromAscii("John")); + document.addProperty(property); + QVERIFY(mWriter->startWriting(QList() << document)); + QVERIFY(mWriter->waitForFinished()); + QCOMPARE(output, vCard30); + +} + +QTEST_MAIN(tst_QVersitWriter) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitwriter/tst_qversitwriter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/qversitwriter/tst_qversitwriter.h Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,93 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 tst_QVERSITWRITER_H +#define tst_QVERSITWRITER_H + +#include +#include +#include +#include "qversitwriter.h" + +QTM_BEGIN_NAMESPACE + +class QVersitWriterPrivate; + +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE + +// Poor man's QSignalSpy because I couldn't get QSignalSpy to work with the user type QVR::State. +class SignalCatcher : public QObject +{ +Q_OBJECT +public slots: + void stateChanged(QVersitWriter::State state) { + mReceived.append(state); + } + +public: + QList mReceived; +}; + +class tst_QVersitWriter : public QObject +{ + Q_OBJECT + +private slots: // Tests + + void init(); + void cleanup(); + + void testDevice(); + void testDefaultCodec(); + void testFold(); + void testWriting21(); + void testWriting30(); + void testByteArrayOutput(); + +private: // Data + QVersitWriter* mWriter; + QBuffer* mOutputDevice; + SignalCatcher* mSignalCatcher; +}; + +#endif // tst_QVERSITWRITER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitwriter/ut_qversitwriter.cpp --- a/qtmobility/tests/auto/qversitwriter/ut_qversitwriter.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,253 +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 Qt Mobility Components. -** -** $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 "ut_qversitwriter.h" -#include "qversitwriter.h" -#include "qversitdocument.h" -#include "qversitproperty.h" -#include -#include - -// Copied from tst_qcontactmanager.cpp -// Waits until __expr is true and fails if it doesn't happen within 5s. -#ifndef QTRY_VERIFY -#define QTRY_VERIFY(__expr) \ - do { \ - const int __step = 50; \ - const int __timeout = 5000; \ - if (!(__expr)) { \ - QTest::qWait(0); \ - } \ - for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \ - QTest::qWait(__step); \ - } \ - QVERIFY(__expr); \ - } while(0) -#endif - -QTM_USE_NAMESPACE - -void UT_QVersitWriter::init() -{ - mOutputDevice = new QBuffer; - mWriter = new QVersitWriter; - mSignalCatcher = new SignalCatcher; - qRegisterMetaType("QVersitWriter::State"); - connect(mWriter, SIGNAL(stateChanged(QVersitWriter::State)), - mSignalCatcher, SLOT(stateChanged(QVersitWriter::State))); -} - -void UT_QVersitWriter::cleanup() -{ - delete mWriter; - delete mOutputDevice; - delete mSignalCatcher; -} - -void UT_QVersitWriter::testDevice() -{ - // No device - QVERIFY(mWriter->device() == NULL); - - // Device has been set - mWriter->setDevice(mOutputDevice); - QVERIFY(mWriter->device() == mOutputDevice); -} - -void UT_QVersitWriter::testDefaultCodec() -{ - QVERIFY(mWriter->defaultCodec() == 0); - mWriter->setDefaultCodec(QTextCodec::codecForName("UTF-16BE")); - QVERIFY(mWriter->defaultCodec() == QTextCodec::codecForName("UTF-16BE")); -} - -void UT_QVersitWriter::testFold() -{ - // 87 characters long - QString longString(QLatin1String( - "4567890123456789012345678901234567890123456789012345678901234567890123456" - "234567890123456789012345678901234567890123456789012345678901234567890123456" - "234567890123456789012")); - QByteArray expected( - "BEGIN:VCARD\r\n" - "VERSION:2.1\r\n" - "FN:4567890123456789012345678901234567890123456789012345678901234567890123456\r\n" - " 234567890123456789012345678901234567890123456789012345678901234567890123456\r\n" - " 234567890123456789012\r\n" - "END:VCARD\r\n"); - QVersitDocument document; - QVersitProperty property; - property.setName(QLatin1String("FN")); - property.setValue(longString); - document.addProperty(property); - document.setType(QVersitDocument::VCard21Type); - QList list; - list.append(document); - mWriter->setDevice(mOutputDevice); - mOutputDevice->open(QBuffer::ReadWrite); - QVERIFY(mWriter->startWriting(list)); - QVERIFY(mWriter->waitForFinished()); - QCOMPARE(mWriter->state(), QVersitWriter::FinishedState); - QCOMPARE(mWriter->error(), QVersitWriter::NoError); - mOutputDevice->seek(0); - QByteArray result(mOutputDevice->readAll()); - QCOMPARE(result, expected); -} - -void UT_QVersitWriter::testWriting21() -{ - // vCard 2.1 - QByteArray vCard21( -"BEGIN:VCARD\r\n\ -VERSION:2.1\r\n\ -FN:John\r\n\ -END:VCARD\r\n"); - QVersitDocument document; - QVersitProperty property; - property.setName(QString(QString::fromAscii("FN"))); - property.setValue(QString::fromAscii("John")); - document.addProperty(property); - document.setType(QVersitDocument::VCard21Type); - QList list; - list.append(document); - - // Device not set - QCOMPARE(mWriter->state(), QVersitWriter::InactiveState); - QCOMPARE(mWriter->error(), QVersitWriter::NoError); - QVERIFY(!mWriter->startWriting(list)); - QCOMPARE(mWriter->state(), QVersitWriter::InactiveState); - QCOMPARE(mWriter->error(), QVersitWriter::IOError); - QVERIFY(!mWriter->waitForFinished()); - - // Device not opened - mWriter->setDevice(mOutputDevice); - QVERIFY(!mWriter->startWriting(list)); - QCOMPARE(mWriter->state(), QVersitWriter::InactiveState); - QCOMPARE(mWriter->error(), QVersitWriter::IOError); - - // Now open the device and it should work. - mOutputDevice->open(QBuffer::ReadWrite); - QVERIFY(mWriter->startWriting(list)); - QVERIFY(mWriter->waitForFinished()); - QCOMPARE(mWriter->state(), QVersitWriter::FinishedState); - QCOMPARE(mWriter->error(), QVersitWriter::NoError); - mOutputDevice->seek(0); - QByteArray result(mOutputDevice->readAll()); - QCOMPARE(result, vCard21); - - // Try some other codec - delete mOutputDevice; - mOutputDevice = new QBuffer; - mOutputDevice->open(QBuffer::ReadWrite); - mWriter->setDevice(mOutputDevice); - QTextCodec* utf16(QTextCodec::codecForName("UTF-16")); - mWriter->setDefaultCodec(utf16); - QVERIFY(mWriter->startWriting(list)); - QVERIFY(mWriter->waitForFinished()); - QCOMPARE(mWriter->state(), QVersitWriter::FinishedState); - QCOMPARE(mWriter->error(), QVersitWriter::NoError); - mOutputDevice->seek(0); - result = mOutputDevice->readAll(); - QByteArray expected(utf16->fromUnicode(QLatin1String(vCard21.data()))); - QString out; - for (int i = 0; i < result.length(); i++) { - QString t; - out += t.sprintf("%02X ", (unsigned char)result.at(i)); - } - QCOMPARE(result, expected); -} - -void UT_QVersitWriter::testWriting30() -{ - // vCard 3.0 - QByteArray vCard30( -"BEGIN:VCARD\r\n\ -VERSION:3.0\r\n\ -FN:John\r\n\ -END:VCARD\r\n"); - - QVersitDocument document; - QVersitProperty property; - property.setName(QString(QString::fromAscii("FN"))); - property.setValue(QString::fromAscii("John")); - document.addProperty(property); - document.setType(QVersitDocument::VCard30Type); - QList list; - list.append(document); - - // Basic 3.0 test - mOutputDevice->open(QBuffer::ReadWrite); - mWriter->setDevice(mOutputDevice); - QVERIFY(mWriter->startWriting(list)); - QVERIFY(mWriter->waitForFinished()); - QCOMPARE(mWriter->state(), QVersitWriter::FinishedState); - QCOMPARE(mWriter->error(), QVersitWriter::NoError); - mOutputDevice->seek(0); - QByteArray result(mOutputDevice->readAll()); - QCOMPARE(result, vCard30); - - // Asynchronous writing - mOutputDevice->reset(); - mSignalCatcher->mReceived.clear(); - QVERIFY(mWriter->startWriting(list)); - QTRY_VERIFY(mSignalCatcher->mReceived.count() >= 2); - QCOMPARE(mSignalCatcher->mReceived.at(0), QVersitWriter::ActiveState); - QCOMPARE(mSignalCatcher->mReceived.at(1), QVersitWriter::FinishedState); - - // Cancelling - delete mOutputDevice; - mOutputDevice = new QBuffer; - mOutputDevice->open(QBuffer::ReadWrite); - mSignalCatcher->mReceived.clear(); - mWriter->setDevice(mOutputDevice); - mWriter->startWriting(list); - mWriter->cancel(); - mWriter->waitForFinished(); - QTRY_VERIFY(mSignalCatcher->mReceived.count() >= 2); - QCOMPARE(mSignalCatcher->mReceived.at(0), QVersitWriter::ActiveState); - QVersitWriter::State state(mSignalCatcher->mReceived.at(1)); - // It's possible that it finishes before it cancels. - QVERIFY(state == QVersitWriter::CanceledState - || state == QVersitWriter::FinishedState); -} - -QTEST_MAIN(UT_QVersitWriter) - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qversitwriter/ut_qversitwriter.h --- a/qtmobility/tests/auto/qversitwriter/ut_qversitwriter.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +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 Qt Mobility Components. -** -** $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 UT_QVERSITWRITER_H -#define UT_QVERSITWRITER_H - -#include -#include -#include -#include "qversitwriter.h" - -QTM_BEGIN_NAMESPACE - -class QVersitWriterPrivate; - -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -// Poor man's QSignalSpy because I couldn't get QSignalSpy to work with the user type QVR::State. -class SignalCatcher : public QObject -{ -Q_OBJECT -public slots: - void stateChanged(QVersitWriter::State state) { - mReceived.append(state); - } - -public: - QList mReceived; -}; - -class UT_QVersitWriter : public QObject -{ - Q_OBJECT - -private slots: // Tests - - void init(); - void cleanup(); - - void testDevice(); - void testDefaultCodec(); - void testFold(); - void testWriting21(); - void testWriting30(); - -private: // Data - QVersitWriter* mWriter; - QBuffer* mOutputDevice; - SignalCatcher* mSignalCatcher; -}; - -#endif // UT_QVERSITWRITER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/qvideowidget/tst_qvideowidget.cpp --- a/qtmobility/tests/auto/qvideowidget/tst_qvideowidget.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/qvideowidget/tst_qvideowidget.cpp Mon May 03 13:18:40 2010 +0300 @@ -42,16 +42,16 @@ #include #include -#include "qvideowidget.h" +#include "../../../src/multimedia/qvideowidget.h" -#include "qmediaobject.h" -#include "qmediaservice.h" -#include "qpaintervideosurface_p.h" -#include "qvideooutputcontrol.h" -#include "qvideowindowcontrol.h" -#include "qvideowidgetcontrol.h" +#include "../../../src/multimedia/qmediaobject.h" +#include "../../../src/multimedia/qmediaservice.h" +#include "../../../src/multimedia/qpaintervideosurface_p.h" +#include "../../../src/multimedia/qvideooutputcontrol.h" +#include "../../../src/multimedia/qvideowindowcontrol.h" +#include "../../../src/multimedia/qvideowidgetcontrol.h" -#include "qvideorenderercontrol.h" +#include "../../../src/multimedia/qvideorenderercontrol.h" #include #include @@ -119,7 +119,7 @@ void color_data(); }; -Q_DECLARE_METATYPE(QVideoWidget::AspectRatioMode) +Q_DECLARE_METATYPE(Qt::AspectRatioMode) Q_DECLARE_METATYPE(const uchar *) class QtTestOutputControl : public QVideoOutputControl @@ -147,7 +147,7 @@ , m_brightness(0) , m_contrast(0) , m_saturation(0) - , m_aspectRatioMode(QVideoWidget::KeepAspectRatio) + , m_aspectRatioMode(Qt::KeepAspectRatio) , m_fullScreen(0) { } @@ -168,8 +168,8 @@ QSize nativeSize() const { return m_nativeSize; } void setNativeSize(const QSize &size) { m_nativeSize = size; emit nativeSizeChanged(); } - QVideoWidget::AspectRatioMode aspectRatioMode() const { return m_aspectRatioMode; } - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode) { m_aspectRatioMode = mode; } + Qt::AspectRatioMode aspectRatioMode() const { return m_aspectRatioMode; } + void setAspectRatioMode(Qt::AspectRatioMode mode) { m_aspectRatioMode = mode; } int brightness() const { return m_brightness; } void setBrightness(int brightness) { emit brightnessChanged(m_brightness = brightness); } @@ -190,7 +190,7 @@ int m_contrast; int m_hue; int m_saturation; - QVideoWidget::AspectRatioMode m_aspectRatioMode; + Qt::AspectRatioMode m_aspectRatioMode; QRect m_displayRect; QSize m_nativeSize; bool m_fullScreen; @@ -204,7 +204,7 @@ , m_contrast(1.0) , m_hue(1.0) , m_saturation(1.0) - , m_aspectRatioMode(QVideoWidget::KeepAspectRatio) + , m_aspectRatioMode(Qt::KeepAspectRatio) , m_fullScreen(false) { } @@ -212,8 +212,8 @@ bool isFullScreen() const { return m_fullScreen; } void setFullScreen(bool fullScreen) { emit fullScreenChanged(m_fullScreen = fullScreen); } - QVideoWidget::AspectRatioMode aspectRatioMode() const { return m_aspectRatioMode; } - void setAspectRatioMode(QVideoWidget::AspectRatioMode mode) { m_aspectRatioMode = mode; } + Qt::AspectRatioMode aspectRatioMode() const { return m_aspectRatioMode; } + void setAspectRatioMode(Qt::AspectRatioMode mode) { m_aspectRatioMode = mode; } int brightness() const { return m_brightness; } void setBrightness(int brightness) { emit brightnessChanged(m_brightness = brightness); } @@ -244,7 +244,7 @@ int m_contrast; int m_hue; int m_saturation; - QVideoWidget::AspectRatioMode m_aspectRatioMode; + Qt::AspectRatioMode m_aspectRatioMode; QSize m_sizeHint; bool m_fullScreen; }; @@ -357,8 +357,8 @@ QTest::qWaitForWindowShown(&widget); QCOMPARE(widget.isFullScreen(), true); - widget.setAspectRatioMode(QVideoWidget::IgnoreAspectRatio); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::IgnoreAspectRatio); + widget.setAspectRatioMode(Qt::IgnoreAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::IgnoreAspectRatio); { QSignalSpy spy(&widget, SIGNAL(brightnessChanged(int))); @@ -442,8 +442,8 @@ QTest::qWaitForWindowShown(&widget); QCOMPARE(widget.isFullScreen(), true); - widget.setAspectRatioMode(QVideoWidget::IgnoreAspectRatio); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::IgnoreAspectRatio); + widget.setAspectRatioMode(Qt::IgnoreAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::IgnoreAspectRatio); widget.setBrightness(100); QCOMPARE(widget.brightness(), 100); @@ -655,7 +655,7 @@ widget.hide(); - QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::NoOutput); + QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::WindowOutput); } void tst_QVideoWidget::showWidgetControl() @@ -679,7 +679,7 @@ widget.hide(); - QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::NoOutput); + QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::WidgetOutput); QCOMPARE(object.testService->widgetControl->videoWidget()->isVisible(), false); } @@ -704,71 +704,71 @@ widget.hide(); - QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::NoOutput); + QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::RendererOutput); } void tst_QVideoWidget::aspectRatioWindowControl() { QtTestVideoObject object(new QtTestWindowControl, 0, 0); - object.testService->windowControl->setAspectRatioMode(QVideoWidget::IgnoreAspectRatio); + object.testService->windowControl->setAspectRatioMode(Qt::IgnoreAspectRatio); QVideoWidget widget; widget.setMediaObject(&object); widget.setWindowFlags(Qt::X11BypassWindowManagerHint); // Test the aspect ratio defaults to keeping the aspect ratio. - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); // Test the control has been informed of the aspect ratio change, post show. widget.show(); QTest::qWaitForWindowShown(&widget); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); - QCOMPARE(object.testService->windowControl->aspectRatioMode(), QVideoWidget::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); + QCOMPARE(object.testService->windowControl->aspectRatioMode(), Qt::KeepAspectRatio); // Test an aspect ratio change is enforced immediately while visible. - widget.setAspectRatioMode(QVideoWidget::IgnoreAspectRatio); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::IgnoreAspectRatio); - QCOMPARE(object.testService->windowControl->aspectRatioMode(), QVideoWidget::IgnoreAspectRatio); + widget.setAspectRatioMode(Qt::IgnoreAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::IgnoreAspectRatio); + QCOMPARE(object.testService->windowControl->aspectRatioMode(), Qt::IgnoreAspectRatio); // Test an aspect ratio set while not visible is respected. widget.hide(); - widget.setAspectRatioMode(QVideoWidget::KeepAspectRatio); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); + widget.setAspectRatioMode(Qt::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); widget.show(); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); - QCOMPARE(object.testService->windowControl->aspectRatioMode(), QVideoWidget::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); + QCOMPARE(object.testService->windowControl->aspectRatioMode(), Qt::KeepAspectRatio); } void tst_QVideoWidget::aspectRatioWidgetControl() { QtTestVideoObject object(0, new QtTestWidgetControl, 0); - object.testService->widgetControl->setAspectRatioMode(QVideoWidget::IgnoreAspectRatio); + object.testService->widgetControl->setAspectRatioMode(Qt::IgnoreAspectRatio); QVideoWidget widget; widget.setMediaObject(&object); widget.setWindowFlags(Qt::X11BypassWindowManagerHint); // Test the aspect ratio defaults to keeping the aspect ratio. - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); // Test the control has been informed of the aspect ratio change, post show. widget.show(); QTest::qWaitForWindowShown(&widget); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); - QCOMPARE(object.testService->widgetControl->aspectRatioMode(), QVideoWidget::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); + QCOMPARE(object.testService->widgetControl->aspectRatioMode(), Qt::KeepAspectRatio); // Test an aspect ratio change is enforced immediately while visible. - widget.setAspectRatioMode(QVideoWidget::IgnoreAspectRatio); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::IgnoreAspectRatio); - QCOMPARE(object.testService->widgetControl->aspectRatioMode(), QVideoWidget::IgnoreAspectRatio); + widget.setAspectRatioMode(Qt::IgnoreAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::IgnoreAspectRatio); + QCOMPARE(object.testService->widgetControl->aspectRatioMode(), Qt::IgnoreAspectRatio); // Test an aspect ratio set while not visible is respected. widget.hide(); - widget.setAspectRatioMode(QVideoWidget::KeepAspectRatio); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); + widget.setAspectRatioMode(Qt::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); widget.show(); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); - QCOMPARE(object.testService->widgetControl->aspectRatioMode(), QVideoWidget::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); + QCOMPARE(object.testService->widgetControl->aspectRatioMode(), Qt::KeepAspectRatio); } void tst_QVideoWidget::aspectRatioRendererControl() @@ -780,23 +780,23 @@ widget.setWindowFlags(Qt::X11BypassWindowManagerHint); // Test the aspect ratio defaults to keeping the aspect ratio. - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); // Test the control has been informed of the aspect ratio change, post show. widget.show(); QTest::qWaitForWindowShown(&widget); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); // Test an aspect ratio change is enforced immediately while visible. - widget.setAspectRatioMode(QVideoWidget::IgnoreAspectRatio); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::IgnoreAspectRatio); + widget.setAspectRatioMode(Qt::IgnoreAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::IgnoreAspectRatio); // Test an aspect ratio set while not visible is respected. widget.hide(); - widget.setAspectRatioMode(QVideoWidget::KeepAspectRatio); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); + widget.setAspectRatioMode(Qt::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); widget.show(); - QCOMPARE(widget.aspectRatioMode(), QVideoWidget::KeepAspectRatio); + QCOMPARE(widget.aspectRatioMode(), Qt::KeepAspectRatio); } void tst_QVideoWidget::sizeHint_data() diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/servicedatabase/servicedatabase.pro --- a/qtmobility/tests/auto/servicedatabase/servicedatabase.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/servicedatabase/servicedatabase.pro Mon May 03 13:18:40 2010 +0300 @@ -22,15 +22,23 @@ # Input SOURCES += tst_servicedatabase.cpp \ +CONFIG+=testcase CONFIG += mobility MOBILITY = serviceframework symbian { + INCLUDEPATH += ../../../src/serviceframework/symbian + DEPENDPATH += ../../../src/serviceframework \ + ../../../src/serviceframework/symbian libBlock = \ "$${LITERAL_HASH}ifdef WINSCW" \ "LIBRARY SFWDatabaseManagerServer.lib" \ "$${LITERAL_HASH}endif" - DEFINES += QT_NODLL + + # DEFINES+= QT_NODLL + DEFINES+= QT_MAKEDLL + DEFINES += QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN + MMP_RULES += libBlock SOURCES += servicedatabase.cpp HEADERS += servicedatabase_p.h diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/servicedatabase/tst_servicedatabase.cpp --- a/qtmobility/tests/auto/servicedatabase/tst_servicedatabase.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/servicedatabase/tst_servicedatabase.cpp Mon May 03 13:18:40 2010 +0300 @@ -58,6 +58,7 @@ Q_OBJECT private slots: + void initTestCase(); void testRegistration(); void getInterfaces(); void searchByInterfaceName(); @@ -70,6 +71,7 @@ void interfaceDefault(); void setInterfaceDefault(); void unregister(); + void securityTokens(); void cleanupTestCase(); private: @@ -96,74 +98,89 @@ bool existsInInterfacePropertyTable(const QString &interfaceID); bool existsInServicePropertyTable(const QString &serviceID); bool existsInDefaultsTable(const QString &interfaceID); + bool registerService(const ServiceMetaDataResults &service, const QString &securityToken = QString()); + bool unregisterService(const QString &serviceName, const QString &securityToken = QString()); ServiceMetaData* parser; ServiceDatabase database; }; +void ServiceDatabaseUnitTest::initTestCase() +{ +#if defined(Q_OS_SYMBIAN) + database.m_databasePath = QDir::toNativeSeparators(QDir::currentPath().append("/services.db")); +#endif + database.close(); + QFile::remove(database.databasePath()); +} + +static const QString securityTokenOwner("SecurityTokenOwner"); +static const QString securityTokenStranger("SecurityTokenStranger"); + void ServiceDatabaseUnitTest::testRegistration() { QDir testdir = QDir(TESTDATA_DIR "/testdata" ); ServiceMetaData parser(testdir.absoluteFilePath("ServiceAcme.xml")); QVERIFY(parser.extractMetadata()); - QVERIFY(!database.registerService(parser.parseResults())); + QVERIFY(!registerService(parser.parseResults())); + QCOMPARE(database.lastError().code(), DBError::DatabaseNotOpen); #if defined(Q_OS_SYMBIAN) database.m_databasePath = QDir::toNativeSeparators(QDir::currentPath().append("/services.db")); #endif QVERIFY(database.open()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceOmni.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceLuthorCorp.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceWayneEnt.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); parser.setDevice(new QFile(testdir.absoluteFilePath("ServicePrimatech.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceCyberdyne.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceSkynet.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceAutobot.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); //try to register an already registered service - QVERIFY(!database.registerService(parser.parseResults())); + QVERIFY(!registerService(parser.parseResults())); QCOMPARE(database.lastError().code(), DBError::LocationAlreadyRegistered); //try to register a service with a dll that provides interface implementations //that are already provided by a currently registered service parser.setDevice(new QFile(testdir.absoluteFilePath("ServicePrimatech2error.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(!database.registerService(parser.parseResults())); + QVERIFY(!registerService(parser.parseResults())); QCOMPARE(database.lastError().code(), DBError::IfaceImplAlreadyRegistered); parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceYamagatoError.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(!database.registerService(parser.parseResults())); + QVERIFY(!registerService(parser.parseResults())); QCOMPARE(database.lastError().code(), DBError::LocationAlreadyRegistered); //make sure errors above are corectly rolled back by //registering a valid service parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceDecepticon.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); QStringList xmlFiles; xmlFiles << "ServiceDharma_Swan.xml" @@ -173,7 +190,7 @@ foreach(const QString &file, xmlFiles) { parser.setDevice(new QFile(testdir.absoluteFilePath(file))); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); } QVERIFY(database.close()); @@ -1207,13 +1224,13 @@ void ServiceDatabaseUnitTest::unregister() { - QVERIFY(!database.unregisterService("acme")); + QVERIFY(!unregisterService("acme")); QCOMPARE(database.lastError().code(), DBError::DatabaseNotOpen); QVERIFY(database.open()); //try unregister a non-existing service - QVERIFY(!database.unregisterService("StarkInd")); + QVERIFY(!unregisterService("StarkInd")); QCOMPARE(database.lastError().code(), DBError::NotFound); QServiceFilter filter; @@ -1260,7 +1277,7 @@ foreach(const QString &interfaceID, interfaceIDs) QVERIFY(existsInInterfacePropertyTable(interfaceID)); - QVERIFY(database.unregisterService("oMni")); //ensure case insensitive behaviour + QVERIFY(unregisterService("oMni")); //ensure case insensitive behaviour // == check that deleted service and associated interfaces cannot be found == //try a search for descriptors by service name @@ -1318,7 +1335,7 @@ interface = database.interfaceDefault("com.cyberdyne.terminator"); QVERIFY(interface.isValid()); - QVERIFY(database.unregisterService("cyberDYNE")); + QVERIFY(unregisterService("cyberDYNE")); interface = database.interfaceDefault("com.cyberdyne.terminatOR"); QVERIFY(interface.isValid()); QVERIFY(compareDescriptor(interface, "com.cyberdyne.terminator", @@ -1336,7 +1353,7 @@ foreach(const QString &serviceID, serviceIDs) QVERIFY(existsInServicePropertyTable(serviceID)); - QVERIFY(database.unregisterService("DHARMAInitiative")); + QVERIFY(unregisterService("DHARMAInitiative")); interface = database.interfaceDefault("com.dharma.electro.discharge"); QVERIFY(!interface.isValid()); QCOMPARE(database.lastError().code(), DBError::NotFound); @@ -1357,7 +1374,7 @@ QDir testdir = QDir(TESTDATA_DIR "/testdata" ); ServiceMetaData parser(testdir.absoluteFilePath("ServiceDharma_Flame.xml")); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); interface = database.interfaceDefault("com.dharma.electro.discharge"); QVERIFY(interface.isValid()); filter.setServiceName("DharmaInitiative"); @@ -1367,7 +1384,7 @@ parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceDharma_Swan.xml"))); QVERIFY(parser.extractMetadata()); - QVERIFY(database.registerService(parser.parseResults())); + QVERIFY(registerService(parser.parseResults())); filter.setServiceName("DharmaInitiative"); filter.setInterface(""); interfaces = database.getInterfaces(filter); @@ -1461,6 +1478,92 @@ return false; } +// Two small helper functions to assist with passing the security token to the servicedatabase. +// Do not use this function if you intentionally want to provide emtpy securityToken, +// but rather call database directly. +bool ServiceDatabaseUnitTest::registerService(const ServiceMetaDataResults &service, const QString &securityToken) +{ +#ifdef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN + if (securityToken.isEmpty()) { + return database.registerService(service, securityTokenOwner); + } else { + return database.registerService(service, securityToken); + } +#else + Q_UNUSED(securityToken); + return database.registerService(service); +#endif +} + +bool ServiceDatabaseUnitTest::unregisterService(const QString &serviceName, const QString &securityToken) +{ +#ifdef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN + if (securityToken.isEmpty()) { + return database.unregisterService(serviceName, securityTokenOwner); + } else { + return database.unregisterService(serviceName, securityToken); + } +#else + Q_UNUSED(securityToken); + return database.unregisterService(serviceName); +#endif +} + +void ServiceDatabaseUnitTest::securityTokens() { +#ifndef QT_SFW_SERVICEDATABASE_USE_SECURITY_TOKEN + QSKIP("Security tokens are not enabled (currently only enabled on Symbian).", SkipAll); +#endif + // Clear databases just in case + database.close(); + QFile::remove(database.databasePath()); + QDir testdir = QDir(TESTDATA_DIR "/testdata" ); + QVERIFY(database.open()); + database.m_databasePath = QDir::toNativeSeparators(QDir::currentPath().append("/services.db")); + + // Declare and setup testdata + ServiceMetaData parser(testdir.absoluteFilePath("ServiceAcme.xml")); + QVERIFY(parser.extractMetadata()); + + // Actual teststeps + qDebug("---------- 1. Add and remove with same security token. (OK)"); + QVERIFY(registerService(parser.parseResults(), securityTokenOwner)); + QVERIFY(unregisterService("acme", securityTokenOwner)); + + qDebug("---------- 2. Add and remove with empty security token. (NOK)"); + QVERIFY(!database.registerService(parser.parseResults())); + QCOMPARE(database.lastError().code(), DBError::NoWritePermissions); + QVERIFY(!database.unregisterService("acme")); + QCOMPARE(database.lastError().code(), DBError::NoWritePermissions); + + qDebug("---------- 3. Add, then remove with different security token. (NOK)"); + QVERIFY(registerService(parser.parseResults(), securityTokenOwner)); + QVERIFY(!unregisterService("acme", securityTokenStranger)); + QCOMPARE(database.lastError().code(), DBError::NoWritePermissions); + QVERIFY(unregisterService("acme", securityTokenOwner)); + + qDebug("---------- 4. Add namesake but but differently located service with same security token. (OK)"); + QStringList xmlFilesNamesakeServices; + xmlFilesNamesakeServices << "ServiceDharma_Swan.xml" << "ServiceDharma_Pearl.xml"; + foreach(const QString &file, xmlFilesNamesakeServices) { + parser.setDevice(new QFile(testdir.absoluteFilePath(file))); + QVERIFY(parser.extractMetadata()); + QVERIFY(registerService(parser.parseResults(), securityTokenOwner)); + } + QVERIFY(!database.getServiceNames(QString()).isEmpty()); + QVERIFY(unregisterService("DharmaInitiative", securityTokenOwner)); + QVERIFY(database.getServiceNames(QString()).isEmpty()); + + qDebug("---------- 5. Add namesake but differently located services with different security token. (NOK)"); + parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceDharma_Swan.xml"))); + QVERIFY(parser.extractMetadata()); + QVERIFY(registerService(parser.parseResults(), securityTokenOwner)); + parser.setDevice(new QFile(testdir.absoluteFilePath("ServiceDharma_Pearl.xml"))); + QVERIFY(parser.extractMetadata()); + QVERIFY(!registerService(parser.parseResults(), securityTokenStranger)); + QCOMPARE(database.lastError().code(), DBError::NoWritePermissions); + QVERIFY(unregisterService("DharmaInitiative", securityTokenOwner)); +} + void ServiceDatabaseUnitTest::cleanupTestCase() { database.close(); @@ -1469,4 +1572,3 @@ QTEST_MAIN(ServiceDatabaseUnitTest) #include "tst_servicedatabase.moc" - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/support/support.pri --- a/qtmobility/tests/auto/support/support.pri Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/support/support.pri Mon May 03 13:18:40 2010 +0300 @@ -2,9 +2,11 @@ HEADERS += \ $$PWD/support.h -symbian|wince*|maemo5|win32|mac { +symbian|wince*|maemo*|win32|mac { symbian { SOURCES += $$PWD/support_symbian.cpp + INCLUDEPATH += $$(EPOCROOT)epoc32/include/app + INCLUDEPATH += $$(EPOCROOT)epoc32/include/platform/app } win32 { SOURCES += $$PWD/support_win.cpp @@ -17,7 +19,13 @@ } } - maemo5|mac { + maemo5 { + QT += dbus + CONFIG += link_pkgconfig + PKGCONFIG += glib-2.0 gconf-2.0 + SOURCES += $$PWD/support_maemo5.cpp + } + mac|maemo6 { SOURCES += $$PWD/support_stub.cpp } } else { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/support/support_maemo5.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/support/support_maemo5.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1044 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include +#include + +#include +#include +#include + +#include +#include + +#include "support.h" + +// Service names for qtm-modest-plugin +#define MODESTENGINE_QTM_PLUGIN_PATH "/com/nokia/Qtm/Modest/Plugin" +#define MODESTENGINE_QTM_PLUGIN_NAME "com.nokia.Qtm.Modest.Plugin" + +// Constants +const char TST_ACCOUNTS_PATH[] = "/apps/modest/accounts/"; +const char TST_SERVER_ACCOUNTS_PATH[] = "/apps/modest/server_accounts/"; +const char TST_STORE_ACCOUNT_KEY[] = "store_account"; +const char TST_TRANSPORT_ACCOUNT_KEY[] = "transport_account"; + +// Maybe it would be better to just nuke everything? +#define NAME_COUNT 6 +const char *TST_ACCOUNT_NAMES[NAME_COUNT] = { + "testAccountID", + "Test Account #1ID", + "Test Account #2ID", + "Alter EgoID", + "PersonalID", + "WorkID" +}; + +// Prints and clears an error +static void +printError (const char *fname, const int &line, GError **error); + +// Removes test accounts +static void +clearTestAccounts (); + +// Get a valid GConf key for account name +static QString +getAccountKey (const Support::Parameters ¶ms, const bool &escape); + +// Gets a valid account path for GConf from parameters +static QString +getAccountPath (const Support::Parameters ¶ms, const bool &escape); + +QTM_BEGIN_NAMESPACE +class MapiSession +{ +public: + static QMessageId addMessage(const Support::Parameters ¶ms); +}; + +// The class 'MapiSession' is a friend of QMessageContentContainer - hijack it here +// => This is needed to make it possible to set parentFolderId +QMessageId MapiSession::addMessage(const Support::Parameters ¶ms) +{ + QString parentAccountName(params["parentAccountName"]); + QString parentFolderPath(params["parentFolderPath"]); + QString to(params["to"]); + QString cc(params["cc"]); + QString from(params["from"]); + QString date(params["date"]); + QString receivedDate(params["receivedDate"]); + QString subject(params["subject"]); + QString text(params["text"]); + QString mimeType(params["mimeType"]); + QString attachments(params["attachments"]); + QString priority(params["priority"]); + QString size(params["size"]); + QString type(params["type"]); + QString read(params["status-read"]); + QString hasAttachments(params["status-hasAttachments"]); + + QMessageManager manager; + + if (!to.isEmpty() && !from.isEmpty() && !date.isEmpty() && !subject.isEmpty() && + !parentAccountName.isEmpty() && !parentFolderPath.isEmpty()) { + // Find the named account + QMessageAccountIdList accountIds(manager.queryAccounts(QMessageAccountFilter::byName(parentAccountName))); + if (accountIds.count() == 1) { + // Find the specified folder + QMessageFolderFilter filter(QMessageFolderFilter::byName(parentFolderPath) & QMessageFolderFilter::byParentAccountId(accountIds.first())); + QMessageFolderIdList folderIds(manager.queryFolders(filter)); + if (folderIds.count() == 1) { + QMessage message; + + message.setParentAccountId(accountIds.first()); + message.d_ptr->_parentFolderId = folderIds.first(); + + QList toList; + foreach (const QString &addr, to.split(",")) { + toList.append(QMessageAddress(QMessageAddress::Email, addr.trimmed())); + } + message.setTo(toList); + + QList ccList; + foreach (const QString &addr, cc.split(",")) { + if (!addr.isEmpty()) { + ccList.append(QMessageAddress(QMessageAddress::Email, addr.trimmed())); + } + } + message.setCc(ccList); + + message.setFrom(QMessageAddress(QMessageAddress::Email, from)); + message.setSubject(subject); + + QDateTime dt(QDateTime::fromString(date, Qt::ISODate)); + dt.setTimeSpec(Qt::UTC); + message.setDate(dt); + + if (type.isEmpty()) { + message.setType(QMessage::Email); + } else { + if (type.toLower() == "mms") { + message.setType(QMessage::Mms); + } else if (type.toLower() == "sms") { + message.setType(QMessage::Sms); + } else if (type.toLower() == "instantmessage") { + message.setType(QMessage::InstantMessage); + } else { + message.setType(QMessage::Email); + } + } + + if (!receivedDate.isEmpty()) { + QDateTime dt(QDateTime::fromString(receivedDate, Qt::ISODate)); + dt.setTimeSpec(Qt::UTC); + message.setReceivedDate(dt); + } + + if (!priority.isEmpty()) { + if (priority.toLower() == "high") { + message.setPriority(QMessage::HighPriority); + } else if (priority.toLower() == "low") { + message.setPriority(QMessage::LowPriority); + } + } + + /*if (!size.isEmpty()) { + message.d_ptr->_size = size.toUInt(); + }*/ + + if (!text.isEmpty()) { + message.setBody(text, mimeType.toAscii()); + } + + if (!attachments.isEmpty()) { + message.appendAttachments(attachments.split("\n")); + } + + QMessage::StatusFlags flags(0); + if (read.toLower() == "true") { + flags |= QMessage::Read; + } + if (hasAttachments.toLower() == "true") { + flags |= QMessage::HasAttachments; + } + message.setStatus(flags); + + if (!manager.addMessage(&message)) { + qWarning() << "Unable to addMessage:" << to << from << date << subject; + } else { + return message.id(); + } + } else { + qWarning() << "Unable to locate parent folder:" << parentFolderPath; + } + } else { + qWarning() << "Unable to locate parent account:" << parentAccountName; + } + } else { + qWarning() << "Necessary information missing"; + } + + return QMessageId(); +} +QTM_END_NAMESPACE + +static void +printError ( + const char *fname, + const int &line, + GError **error) +{ + GError *err = NULL; + + if (error == NULL || *error == NULL) return; + err = *error; + + qWarning() << "Error in " << fname << ", line: " << line << endl + << "Domain: " << g_quark_to_string (err->domain) << endl + << "Code: " << err->code << endl + << "Message: " << err->message; + g_clear_error (error); +} + +// Clears test accounts +static void +clearTestAccounts () +{ + GConfClient *client = NULL; + GError *err = NULL; + gboolean unset = FALSE; + uint unset_flags = 0; + const char *key = NULL; + uint i; + gchar *store_account = NULL; + gchar *transport_account = NULL; + + client = gconf_client_get_default (); + + for (i = 0; i < NAME_COUNT; i++) { + QString str, path; + gchar *escaped; + + key = TST_ACCOUNT_NAMES[i]; + escaped = gconf_escape_key (key, -1); + + path = QString::fromUtf8 (TST_ACCOUNTS_PATH); + path.append (escaped); + + str = path; + str.append ("/"); + str.append (TST_STORE_ACCOUNT_KEY); + + qDebug() << "Fetching key value from: " << str; + + store_account = gconf_client_get_string ( + client, str.toLocal8Bit().data(), &err); + + if (err != NULL || store_account == NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to get GConf key value " << str; + } else if (store_account) { + gchar *temp = gconf_escape_key (store_account, -1); + + str = QString::fromUtf8 (TST_SERVER_ACCOUNTS_PATH); + str.append (temp); + + qDebug() << "Unsetting value from: " << str; + + unset = gconf_client_recursive_unset ( + client, + str.toLocal8Bit().data(), + (GConfUnsetFlags)unset_flags, + &err); + + if (err != NULL) { + printError (__FUNCTION__, __LINE__, &err); + } + if (unset == FALSE) { + qWarning() << "Failed to unset GConf dir " << str; + } + g_free (temp); + temp = NULL; + } + + str = path; + str.append ("/"); + str.append (TST_TRANSPORT_ACCOUNT_KEY); + + qDebug() << "Fetching key value from: " << str; + + transport_account = gconf_client_get_string ( + client, str.toLocal8Bit().data(), &err); + + if (err != NULL || transport_account == NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to get GConf key value " << str; + } else if (transport_account) { + gchar *temp = gconf_escape_key (transport_account, -1); + + str = QString::fromUtf8 (TST_SERVER_ACCOUNTS_PATH); + str.append (temp); + + qDebug() << "Unsetting value from: " << str; + + unset = gconf_client_recursive_unset ( + client, + str.toLocal8Bit().data(), + (GConfUnsetFlags)unset_flags, + &err); + + if (err != NULL) { + printError (__FUNCTION__, __LINE__, &err); + } + if (unset == FALSE) { + qWarning() << "Failed to unset GConf dir " << str; + } + g_free (temp); + temp = NULL; + } + + qDebug() << "Unsetting account: " << path; + + unset = gconf_client_recursive_unset ( + client, path.toLocal8Bit().data(), + (GConfUnsetFlags)unset_flags, &err); + + if (err != NULL) { + printError (__FUNCTION__, __LINE__, &err); + } + if (unset == FALSE) { + qWarning() << "Failed to unset GConf dir " << path; + } + + // Reserved with GLIB methods, free with GLIB methods + g_free (escaped); + escaped = NULL; + + g_free (store_account); + store_account = NULL; + + g_free (transport_account); + transport_account = NULL; + } +} + +// Get a valid GConf key for account name +static QString +getAccountKey (const Support::Parameters ¶ms, const bool &escape) +{ + QString key; + gchar *escaped; + + key = params["name"]; + + if (key.isEmpty() || key.isNull()) return key; + + // Modest compatability + key.append ("ID"); + + if (escape == false) return key; + + escaped = gconf_escape_key (key.toLocal8Bit().data(), -1); + + qDebug() << "Escaped key: " << key << " to " << escaped; + + key = escaped; + g_free (escaped); + escaped = NULL; + + return key; +} + +// Get a valid GConf path for account name +static QString +getAccountPath (const Support::Parameters ¶ms, const bool &escape) +{ + QString key, path; + + // Escape the incoming name + key = getAccountKey (params, escape); + + if (key.isEmpty() || key.isNull()) return key; + + // Match the accountName to a GConf key (it's how the account ids are) + // formed... + path = QString::fromUtf8 (TST_ACCOUNTS_PATH); + path.append (key); + + return path; +} + +namespace Support { + +void deltree(QString directory) +{ + if (QDir(directory).exists()) { + QDirIterator directoryIterator(directory, (QDir::AllEntries | QDir::NoDotAndDotDot)); + while (directoryIterator.hasNext()) { + QString path = directoryIterator.next(); + QFileInfo fileInfo = directoryIterator.fileInfo(); + if (fileInfo.isFile()) { + QFile::remove(path); + } else if (fileInfo.isDir()) { + deltree(path); + } + } + QDir dir; + dir.rmdir(directory); + } +} + +// Clears test data, that we know about +void clearMessageStore() +{ + QString localRootFolder = QDir::home().absolutePath()+QString("/.modest/local_folders"); + QStringList CREATED_FOLDERS = QStringList() << QString("Root") + << QString("Unbox") + << QString("Archived") + << QString("Backup") + << QString("My messages") + << QString("Innbox") + << QString("X-Announce") + << QString("X-Archived"); + + QMessageFolderId folderId; + + QDBusInterface pluginDBusInterface(MODESTENGINE_QTM_PLUGIN_NAME, + MODESTENGINE_QTM_PLUGIN_PATH, + MODESTENGINE_QTM_PLUGIN_NAME, + QDBusConnection::sessionBus()); + + for (int i=0; i < CREATED_FOLDERS.count(); i++) { + QDBusPendingCall pendingCall = pluginDBusInterface.asyncCall("RemoveFolder", + "local_folders", + CREATED_FOLDERS[i]); + QDBusPendingCallWatcher pendingCallWatcher(pendingCall); + pendingCallWatcher.waitForFinished(); + + QDBusMessage msg = pendingCallWatcher.reply(); + if (msg.type() != QDBusMessage::ReplyMessage) { + break; + } + } + + clearTestAccounts (); +} + +// Add, or modify an account +QMessageAccountId addAccount (const Parameters ¶ms) +{ + QString accountPath, accountKey, escapedAccountKey, accountName, address; + QString confKey, confValue; + GConfClient *client; + GError *err = NULL; + gboolean valueSet = FALSE; + + qDebug() << params; + + // Get escaped path for account id + accountPath = getAccountPath (params, true); + + // Invalid? + if (accountPath.isEmpty ()) return QMessageAccountId (); + if (accountPath.isNull ()) return QMessageAccountId (); + + client = gconf_client_get_default (); + + accountName = params["name"]; + address = params["fromAddress"]; + accountKey = getAccountKey (params, false); + escapedAccountKey = getAccountKey (params, true); + + // Display name + confKey = accountPath; + confKey.append ("/"); + confKey.append ("display_name"); + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + accountName.toLocal8Bit().data(), + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set display_name for " << accountName; + return QMessageAccountId(); + } + + // Email + confKey = accountPath; + confKey.append ("/"); + confKey.append ("email"); + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + address.toLocal8Bit().data(), + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set email for " << accountName; + return QMessageAccountId(); + } + + // Enabled + confKey = accountPath; + confKey.append ("/"); + confKey.append ("enabled"); + valueSet = gconf_client_set_bool ( + client, + confKey.toLocal8Bit().data(), + TRUE, + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set enabled for " << accountName; + return QMessageAccountId(); + } + + // Signature + confKey = accountPath; + confKey.append ("/"); + confKey.append ("signature"); + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set signature for " << accountName; + return QMessageAccountId(); + } + + // Limit retrieve + confKey = accountPath; + confKey.append ("/"); + confKey.append ("limit-retrieve"); + valueSet = gconf_client_set_int ( + client, + confKey.toLocal8Bit().data(), + 20, + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set retrieve limit for " << accountName; + return QMessageAccountId(); + } + + // Retrieve + confKey = accountPath; + confKey.append ("/"); + confKey.append ("retrieve"); + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "messages-and-attachments", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set retrieve value for " << accountName; + return QMessageAccountId(); + } + + // Use specific SMTP + confKey = accountPath; + confKey.append ("/"); + confKey.append ("use_specific_smtp"); + valueSet = gconf_client_set_bool ( + client, + confKey.toLocal8Bit().data(), + FALSE, + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set specific smtp for " << accountName; + return QMessageAccountId(); + } + + // Should the account leave mails to server + confKey = accountPath; + confKey.append ("/"); + confKey.append ("leave_on_server"); + valueSet = gconf_client_set_bool ( + client, + confKey.toLocal8Bit().data(), + TRUE, + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set leave on server for " << accountName; + return QMessageAccountId(); + } + + // Full name + confKey = accountPath; + confKey.append ("/"); + confKey.append ("fullname"); + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + accountName.toLocal8Bit().data(), + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set fullname for " << accountName; + return QMessageAccountId(); + } + + // Should the account use signature + confKey = accountPath; + confKey.append ("/"); + confKey.append ("use_signature"); + valueSet = gconf_client_set_bool ( + client, + confKey.toLocal8Bit().data(), + FALSE, + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set signature use for " << accountName; + return QMessageAccountId(); + } + + + // Store account (aka where to fetch accounts) + confKey = accountPath; + confKey.append ("/"); + confKey.append (TST_STORE_ACCOUNT_KEY); + + confValue = accountKey; + confValue.append ("_store"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + confValue.toLocal8Bit().data(), + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set store account for " << accountName; + return QMessageAccountId(); + } + + // Used protocol + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_store"); + confKey.append ("/"); + confKey.append ("proto"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "pop", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set protocol for " << accountName; + return QMessageAccountId(); + } + + // Port + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_store"); + confKey.append ("/"); + confKey.append ("port"); + + valueSet = gconf_client_set_int ( + client, + confKey.toLocal8Bit().data(), + 110, + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set port for " << accountName; + return QMessageAccountId(); + } + + // Hostname to use + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_store"); + confKey.append ("/"); + confKey.append ("hostname"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "pop.example.com", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set hostname for " << accountName; + return QMessageAccountId(); + } + + // Username to use + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_store"); + confKey.append ("/"); + confKey.append ("username"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "tester", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set username on store for " << accountName; + return QMessageAccountId(); + } + + // Authorization mechanism? + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_store"); + confKey.append ("/"); + confKey.append ("auth_mech"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "none", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set auth mechanism for " << accountName; + return QMessageAccountId(); + } + + // Password to use + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_store"); + confKey.append ("/"); + confKey.append ("password"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "testerpassword", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set password on store for " << accountName; + return QMessageAccountId(); + } + + // Security mechanism to use + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_store"); + confKey.append ("/"); + confKey.append ("security"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "none", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set security mechanism store for " + << accountName; + return QMessageAccountId(); + } + + + // Transport account (aka what to use to send) + confKey = accountPath; + confKey.append ("/"); + confKey.append (TST_TRANSPORT_ACCOUNT_KEY); + + confValue = accountKey; + confValue.append ("_transport"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + confValue.toLocal8Bit().data(), + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set transport account for " << accountName; + return QMessageAccountId(); + } + + // Protocol for transport + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_transport"); + confKey.append ("/"); + confKey.append ("proto"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "smtp", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set transport protocol for " + << accountName; + return QMessageAccountId(); + } + + // Port for transport + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_transport"); + confKey.append ("/"); + confKey.append ("port"); + + valueSet = gconf_client_set_int ( + client, + confKey.toLocal8Bit().data(), + 25, + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set transport port for " + << accountName; + return QMessageAccountId(); + } + + // Host for transport + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_transport"); + confKey.append ("/"); + confKey.append ("hostname"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "smtp.example.com", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set transport host for " + << accountName; + return QMessageAccountId(); + } + + // Username for transport + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_transport"); + confKey.append ("/"); + confKey.append ("username"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "tester", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set transport username for " + << accountName; + return QMessageAccountId(); + } + + // Password for transport + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_transport"); + confKey.append ("/"); + confKey.append ("password"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "testerpassword", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set transport password for " + << accountName; + return QMessageAccountId(); + } + + // Authorization mechanism for transport + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_transport"); + confKey.append ("/"); + confKey.append ("auth_mech"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "none", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set transport auth mechanism for " + << accountName; + return QMessageAccountId(); + } + + // Security mechanism for transport + confKey = TST_SERVER_ACCOUNTS_PATH; + confKey.append (escapedAccountKey); + confKey.append ("_transport"); + confKey.append ("/"); + confKey.append ("security"); + + valueSet = gconf_client_set_string ( + client, + confKey.toLocal8Bit().data(), + "none", + &err); + + if (valueSet == FALSE || err != NULL) { + if (err != NULL) + printError (__FUNCTION__, __LINE__, &err); + qWarning() << "Failed to set transport security for " + << accountName; + return QMessageAccountId(); + } + + qDebug() << "Added account path " << accountPath << " with name " + << accountName; + + return QMessageAccountId ("MO_"+escapedAccountKey); +} + +// Add a folder, unless it already exists +QMessageFolderId addFolder(const Parameters ¶ms) +{ + QString accountName(params["parentAccountName"]); + QString folderPath(params["path"]); + QString folderName(params["name"]); + + QMessageFolderId folderId; + + QDBusInterface pluginDBusInterface(MODESTENGINE_QTM_PLUGIN_NAME, + MODESTENGINE_QTM_PLUGIN_PATH, + MODESTENGINE_QTM_PLUGIN_NAME, + QDBusConnection::sessionBus()); + + QDBusPendingCall pendingCall = pluginDBusInterface.asyncCall("AddFolder", + "local_folders", + folderName); + QDBusPendingCallWatcher pendingCallWatcher(pendingCall); + pendingCallWatcher.waitForFinished(); + + // Escape account name (to be used in FolderId) + QString escapedAccountName; + gchar *escaped; + escaped = gconf_escape_key (accountName.toLocal8Bit().data(), -1); + escapedAccountName = escaped; + g_free (escaped); + + QDBusMessage msg = pendingCallWatcher.reply(); + if (msg.type() == QDBusMessage::ReplyMessage) { + folderId = QMessageFolderId("MO_"+escapedAccountName+"ID"+"&maildir&"+folderName); + } + + return folderId; +} + +// Add a message +QMessageId addMessage(const Parameters ¶ms) +{ + return MapiSession::addMessage(params); +} + +}; // Namespace Support diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/support/support_qmf.cpp --- a/qtmobility/tests/auto/support/support_qmf.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/support/support_qmf.cpp Mon May 03 13:18:40 2010 +0300 @@ -217,8 +217,8 @@ message.setType(QMessage::Mms); } else if (type.toLower() == "sms") { message.setType(QMessage::Sms); - } else if (type.toLower() == "xmpp") { - message.setType(QMessage::Xmpp); + } else if (type.toLower() == "instantmessage") { + message.setType(QMessage::InstantMessage); } else { message.setType(QMessage::Email); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/support/support_symbian.cpp --- a/qtmobility/tests/auto/support/support_symbian.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/support/support_symbian.cpp Mon May 03 13:18:40 2010 +0300 @@ -165,8 +165,8 @@ message.setType(QMessage::Mms); } else if (type.toLower() == "sms") { message.setType(QMessage::Sms); - } else if (type.toLower() == "xmpp") { - message.setType(QMessage::Xmpp); + } else if (type.toLower() == "instantmessage") { + message.setType(QMessage::InstantMessage); } else { message.setType(QMessage::Email); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/support/support_win.cpp --- a/qtmobility/tests/auto/support/support_win.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/support/support_win.cpp Mon May 03 13:18:40 2010 +0300 @@ -1351,8 +1351,8 @@ message.setType(QMessage::Mms); } else if (type.toLower() == "sms") { message.setType(QMessage::Sms); - } else if (type.toLower() == "xmpp") { - message.setType(QMessage::Xmpp); + } else if (type.toLower() == "instantmessage") { + message.setType(QMessage::InstantMessage); } else { message.setType(QMessage::Email); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qcamera/qcamera.pro --- a/qtmobility/tests/auto/symbian/qcamera/qcamera.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -TARGET = tst_qcamera -INCLUDEPATH += ../../../../src/multimedia \ - ../../../../include -CONFIG += testcase - -SOURCES += tst_qcamera.cpp - -include (../../../../common.pri) - -CONFIG += mobility -MOBILITY = multimedia - - -symbian { - TARGET.CAPABILITY = UserEnvironment WriteDeviceData -} \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qcamera/tst_qcamera.cpp --- a/qtmobility/tests/auto/symbian/qcamera/tst_qcamera.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,587 +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 Qt Mobility Components. -** -** $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 -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define QTRY_COMPARE(a,e) \ - for (int _i = 0; _i < 5000; _i += 100) { \ - if ((a) == (e)) break; \ - QTest::qWait(100); \ - } \ - QCOMPARE(a, e) - -#define QTRY_VERIFY(a) \ - for (int _i = 0; _i < 5000; _i += 100) { \ - if (a) break; \ - QTest::qWait(100); \ - } \ - QVERIFY(a) - -QTM_USE_NAMESPACE - -class tst_QCamera: public QObject -{ - Q_OBJECT - -private: - - QString capturePath(QDir dir); -public slots: - void initTestCase(); - void cleanupTestCase(); - -private slots: - void testAvailableDevices(); - void testDeviceDescription(); - void testCtorWithDevice(); - void testSimpleCamera(); - void testSimpleCameraWhiteBalance(); - void testSimpleCameraExposure(); - void testSimpleCameraFocus(); - void testSimpleCameraCapture(); - - void testCameraWhiteBalance(); - void testCameraExposure(); - void testCameraFocus(); - void testCameraCapture(); - void testImageSettings(); - -}; - -void tst_QCamera::initTestCase() -{ - qRegisterMetaType("QCamera::State"); - qRegisterMetaType("QCamera::Error"); -} - -void tst_QCamera::cleanupTestCase() -{ -} -QString tst_QCamera::capturePath(QDir dir) -{ - int lastImage = 0; - foreach( QString fileName, dir.entryList(QStringList() << "img_*.jpg") ) { - int imgNumber = fileName.mid(4, fileName.size()-8).toInt(); - lastImage = qMax(lastImage, imgNumber); - } - - return dir.absolutePath() + QDir::separator() + QString("img_%1.jpg").arg(lastImage+1, - 4, //fieldWidth - 10, - QLatin1Char('0')); -} - -void tst_QCamera::testAvailableDevices() -{ - int deviceCount = QMediaServiceProvider::defaultServiceProvider()->devices(QByteArray(Q_MEDIASERVICE_CAMERA)).count(); - - QVERIFY(QCamera::availableDevices().count() == deviceCount); -} - -void tst_QCamera::testDeviceDescription() -{ - int deviceCount = QMediaServiceProvider::defaultServiceProvider()->devices(QByteArray(Q_MEDIASERVICE_CAMERA)).count(); - - if (deviceCount == 0) - QVERIFY(QCamera::deviceDescription(QByteArray("random")).isNull()); - else { - foreach (const QByteArray &device, QCamera::availableDevices()) - QVERIFY(QCamera::deviceDescription(device).length() > 0); - } -} - -void tst_QCamera::testCtorWithDevice() -{ - int deviceCount = QMediaServiceProvider::defaultServiceProvider()->devices(QByteArray(Q_MEDIASERVICE_CAMERA)).count(); - QCamera *camera = 0; - - if (deviceCount == 0) { - camera = new QCamera("random"); - QVERIFY(camera->error() == QCamera::ServiceMissingError); - } - else { - camera = new QCamera(QCamera::availableDevices().first()); - QVERIFY(camera->error() == QCamera::NoError); - } - - delete camera; -} - -void tst_QCamera::testSimpleCamera() -{ - QCamera camera(0); - - QSignalSpy spyAdd(&camera, SIGNAL(stateChanged(QCamera::State))); - QVERIFY(camera.service() != NULL); - - QCOMPARE(camera.state(), QCamera::StoppedState); - camera.start(); - QTRY_COMPARE(spyAdd.count(), 1); - - QCOMPARE(camera.state(), QCamera::ActiveState); - camera.stop(); - QTRY_COMPARE(spyAdd.count(), 2); - QCOMPARE(camera.state(), QCamera::StoppedState); -} - -void tst_QCamera::testSimpleCameraWhiteBalance() -{ - QCamera camera(0); - - //only WhiteBalanceAuto is supported - QCOMPARE(camera.supportedWhiteBalanceModes(), QCamera::WhiteBalanceAuto); - QCOMPARE(camera.whiteBalanceMode(), QCamera::WhiteBalanceAuto); - camera.setWhiteBalanceMode(QCamera::WhiteBalanceCloudy); - QCOMPARE(camera.supportedWhiteBalanceModes(), QCamera::WhiteBalanceAuto); - QCOMPARE(camera.manualWhiteBalance(), -1); - camera.setManualWhiteBalance(5000); - QCOMPARE(camera.manualWhiteBalance(), -1); -} - -void tst_QCamera::testSimpleCameraExposure() -{ - QCamera camera(0); - - QCOMPARE(camera.supportedExposureModes(), QCamera::ExposureAuto); - QCOMPARE(camera.exposureMode(), QCamera::ExposureAuto); - camera.setExposureMode(QCamera::ExposureManual);//should be ignored - QCOMPARE(camera.exposureMode(), QCamera::ExposureAuto); - - QCOMPARE(camera.supportedFlashModes(), QCamera::FlashOff); - QCOMPARE(camera.flashMode(), QCamera::FlashOff); - QCOMPARE(camera.isFlashReady(), false); - camera.setFlashMode(QCamera::FlashOn); - QCOMPARE(camera.flashMode(), QCamera::FlashOff); - - QCOMPARE(camera.supportedMeteringModes(), QCamera::MeteringMatrix); - QCOMPARE(camera.meteringMode(), QCamera::MeteringMatrix); - camera.setMeteringMode(QCamera::MeteringSpot); - QCOMPARE(camera.meteringMode(), QCamera::MeteringMatrix); - - QCOMPARE(camera.exposureCompensation(), 0.0); - camera.setExposureCompensation(2.0); - QCOMPARE(camera.exposureCompensation(), 0.0); - - QCOMPARE(camera.isoSensitivity(), -1); - QVERIFY(camera.supportedIsoSensitivities().isEmpty()); - camera.setManualIsoSensitivity(100); - QCOMPARE(camera.isoSensitivity(), -1); - camera.setAutoIsoSensitivity(); - QCOMPARE(camera.isoSensitivity(), -1); - - QVERIFY(camera.aperture() < 0); - QVERIFY(camera.supportedApertures().isEmpty()); - camera.setAutoAperture(); - QVERIFY(camera.aperture() < 0); - camera.setManualAperture(5.6); - QVERIFY(camera.aperture() < 0); - - QVERIFY(camera.shutterSpeed() < 0); - QVERIFY(camera.supportedShutterSpeeds().isEmpty()); - camera.setAutoShutterSpeed(); - QVERIFY(camera.shutterSpeed() < 0); - camera.setManualShutterSpeed(1/128.0); - QVERIFY(camera.shutterSpeed() < 0); - - QCOMPARE(camera.isExposureLocked(), true); - -} - -void tst_QCamera::testSimpleCameraFocus() -{ - QCamera camera(0); - - QCOMPARE(camera.supportedFocusModes(), QCamera::AutoFocus); - QCOMPARE(camera.focusMode(), QCamera::AutoFocus); - camera.setFocusMode(QCamera::ContinuousFocus); - QCOMPARE(camera.focusMode(), QCamera::AutoFocus); - QCOMPARE(camera.focusStatus(), QCamera::FocusInitial); - - QVERIFY(!camera.isMacroFocusingSupported()); - QVERIFY(!camera.macroFocusingEnabled()); - // macro focusing not supported - //camera.setMacroFocusingEnabled(true); - //QVERIFY(!camera.macroFocusingEnabled()); - - QCOMPARE(camera.maximumOpticalZoom(), 1.0); // these should be check model ny model - QCOMPARE(camera.maximumDigitalZoom(), 3.0); // these should be check model ny model - QCOMPARE(camera.digitalZoom(), 1.0); - camera.zoomTo(0,2.0); - QCOMPARE(camera.digitalZoom(), 2.0); - QCOMPARE(camera.opticalZoom(), 1.0); - -} - -void tst_QCamera::testSimpleCameraCapture() -{ - // This tests that taking a picture works with default setup - QCamera camera(0); - QStillImageCapture imageCapture(&camera); - // we need to start camera before we take images. - QSignalSpy cameraState(&camera, SIGNAL(stateChanged(QCamera::State))); - QSignalSpy capturedSignal(&imageCapture, SIGNAL(imageCaptured(QString,QImage))); - QSignalSpy errorSignal(&imageCapture, SIGNAL(error(QStillImageCapture::Error))); - QSignalSpy imageSavedSignal(&imageCapture, SIGNAL(imageSaved(const QString&))); - - QCOMPARE(camera.state(), QCamera::StoppedState); - camera.start(); //we need to start camera before taking picture - QTRY_COMPARE(cameraState.count(), 1); // wait for camera to initialize itself - QCOMPARE(camera.state(), QCamera::ActiveState); - QVERIFY(imageCapture.isAvailable()); - QVERIFY(imageCapture.isReadyForCapture()); - - QCOMPARE(imageCapture.error(), QStillImageCapture::NoError); - QVERIFY(imageCapture.errorString().isEmpty()); - - imageCapture.capture(capturePath(QDir::rootPath())); - QTRY_COMPARE(capturedSignal.count(), 1); - QTRY_COMPARE(imageSavedSignal.count(), 1); - - QCOMPARE(errorSignal.size(), 0); - -// camera.stop(); -} - -void tst_QCamera::testCameraCapture() -{ - QCamera camera(0); - QStillImageCapture imageCapture(&camera); - // check we have some controls and devices - //QVERIFY(!imageCapture.isAvailable()); - QVERIFY(!imageCapture.isReadyForCapture()); - - QSignalSpy cameraState(&camera, SIGNAL(stateChanged(QCamera::State))); - QSignalSpy capturedSignal(&imageCapture, SIGNAL(imageCaptured(QString,QImage))); - QSignalSpy errorSignal(&imageCapture, SIGNAL(error(QStillImageCapture::Error))); - QSignalSpy cameraErrorSignal(&camera, SIGNAL(error(QCamera::Error))); - QSignalSpy imageSavedSignal(&imageCapture, SIGNAL(imageSaved(const QString&))); - - // case where we have not started the camera - // we shoul receive NotReadyToCaptureError - imageCapture.capture(QString::fromLatin1("/dev/null")); - QCOMPARE(capturedSignal.size(), 0); - - qDebug()<<"Camera errorNumber=" < 0); - QVERIFY(minIso > 0); - QVERIFY(maxIso > 0); - camera.setManualIsoSensitivity(minIso); - QCOMPARE(camera.isoSensitivity(), minIso); - camera.setManualIsoSensitivity(maxIso*10); - QCOMPARE(camera.isoSensitivity(), maxIso); - camera.setManualIsoSensitivity(-10); - QCOMPARE(camera.isoSensitivity(), minIso); - camera.setAutoIsoSensitivity(); - QCOMPARE(camera.isoSensitivity(), 100); - - qreal minAperture = camera.supportedApertures().first(); - qreal maxAperture = camera.supportedApertures().last(); - QVERIFY(minAperture > 0); - QVERIFY(maxAperture > 0); - QVERIFY(camera.aperture() >= minAperture); - QVERIFY(camera.aperture() <= maxAperture); - - camera.setAutoAperture(); - QVERIFY(camera.aperture() >= minAperture); - QVERIFY(camera.aperture() <= maxAperture); - - camera.setManualAperture(0); - QCOMPARE(camera.aperture(), minAperture); - - camera.setManualAperture(10000); - QCOMPARE(camera.aperture(), maxAperture); - - - qreal minShutterSpeed = camera.supportedShutterSpeeds().first(); - qreal maxShutterSpeed = camera.supportedShutterSpeeds().last(); - QVERIFY(minShutterSpeed > 0); - QVERIFY(maxShutterSpeed > 0); - QVERIFY(camera.shutterSpeed() >= minShutterSpeed); - QVERIFY(camera.shutterSpeed() <= maxShutterSpeed); - - camera.setAutoShutterSpeed(); - QVERIFY(camera.shutterSpeed() >= minShutterSpeed); - QVERIFY(camera.shutterSpeed() <= maxShutterSpeed); - - camera.setManualShutterSpeed(0); - QCOMPARE(camera.shutterSpeed(), minShutterSpeed); - - camera.setManualShutterSpeed(10000); - QCOMPARE(camera.shutterSpeed(), maxShutterSpeed); - - QCOMPARE(camera.isExposureLocked(), false); - - camera.lockExposure(); - QCOMPARE(camera.isExposureLocked(), true); - - camera.unlockExposure(); - QCOMPARE(camera.isExposureLocked(), false); -} - -void tst_QCamera::testCameraFocus() -{ - QCamera camera(0); - - QCOMPARE(camera.supportedFocusModes(), QCamera::AutoFocus /*| QCamera::ContinuousFocus*/); - QCOMPARE(camera.focusMode(), QCamera::AutoFocus); - camera.setFocusMode(QCamera::ManualFocus); - QCOMPARE(camera.focusMode(), QCamera::AutoFocus); - camera.setFocusMode(QCamera::ContinuousFocus); - QCOMPARE(camera.focusMode(), QCamera::AutoFocus); - QCOMPARE(camera.focusStatus(), QCamera::FocusInitial); - - QVERIFY(camera.isMacroFocusingSupported()); - QVERIFY(!camera.macroFocusingEnabled()); - // macro focusing not supported - //camera.setMacroFocusingEnabled(true); - //QVERIFY(camera.macroFocusingEnabled()); - - QVERIFY(camera.maximumOpticalZoom() == 1.0); - QVERIFY(camera.maximumDigitalZoom() >= 1.0); - QCOMPARE(camera.digitalZoom(), 1.0); - camera.zoomTo(1.0,0.5); - QCOMPARE(camera.digitalZoom(), 0.5); - camera.zoomTo(1.0,2.0); - QCOMPARE(camera.digitalZoom(), 2.0); - camera.zoomTo(1.0,2000000.0); - QVERIFY(qFuzzyCompare(camera.digitalZoom(), camera.maximumOpticalZoom()*camera.maximumDigitalZoom())); - - /* TODO: focusing has changed - camera.lockFocus(); - QCOMPARE(camera.isFocusLocked(), true); - camera.unlockFocus(); - QCOMPARE(camera.isFocusLocked(), false); - */ -} - -void tst_QCamera::testImageSettings() -{ - QImageEncoderSettings settings; - QVERIFY(settings.isNull()); - QVERIFY(settings == QImageEncoderSettings()); - - QCOMPARE(settings.codec(), QString()); - settings.setCodec(QLatin1String("codecName")); - QCOMPARE(settings.codec(), QLatin1String("codecName")); - QVERIFY(!settings.isNull()); - QVERIFY(settings != QImageEncoderSettings()); - - settings = QImageEncoderSettings(); - QCOMPARE(settings.quality(), QtMedia::NormalQuality); - settings.setQuality(QtMedia::HighQuality); - QCOMPARE(settings.quality(), QtMedia::HighQuality); - QVERIFY(!settings.isNull()); - - settings = QImageEncoderSettings(); - QCOMPARE(settings.resolution(), QSize()); - settings.setResolution(QSize(320,240)); - QCOMPARE(settings.resolution(), QSize(320,240)); - settings.setResolution(800,600); - QCOMPARE(settings.resolution(), QSize(800,600)); - QVERIFY(!settings.isNull()); - - settings = QImageEncoderSettings(); - QVERIFY(settings.isNull()); - QCOMPARE(settings.codec(), QString()); - QCOMPARE(settings.quality(), QtMedia::NormalQuality); - QCOMPARE(settings.resolution(), QSize()); - - { - QImageEncoderSettings settings1; - QImageEncoderSettings settings2; - QCOMPARE(settings2, settings1); - - settings2 = settings1; - QCOMPARE(settings2, settings1); - QVERIFY(settings2.isNull()); - - settings1.setQuality(QtMedia::HighQuality); - - QVERIFY(settings2.isNull()); - QVERIFY(!settings1.isNull()); - QVERIFY(settings1 != settings2); - } - - { - QImageEncoderSettings settings1; - QImageEncoderSettings settings2(settings1); - QCOMPARE(settings2, settings1); - - settings2 = settings1; - QCOMPARE(settings2, settings1); - QVERIFY(settings2.isNull()); - - settings1.setQuality(QtMedia::HighQuality); - - QVERIFY(settings2.isNull()); - QVERIFY(!settings1.isNull()); - QVERIFY(settings1 != settings2); - } - - QImageEncoderSettings settings1; - QImageEncoderSettings settings2; - - settings1 = QImageEncoderSettings(); - settings1.setResolution(800,600); - settings2 = QImageEncoderSettings(); - settings2.setResolution(QSize(800,600)); - QVERIFY(settings1 == settings2); - settings2.setResolution(QSize(400,300)); - QVERIFY(settings1 != settings2); - - settings1 = QImageEncoderSettings(); - settings1.setCodec("codec1"); - settings2 = QImageEncoderSettings(); - settings2.setCodec("codec1"); - QVERIFY(settings1 == settings2); - settings2.setCodec("codec2"); - QVERIFY(settings1 != settings2); - - settings1 = QImageEncoderSettings(); - settings1.setQuality(QtMedia::NormalQuality); - settings2 = QImageEncoderSettings(); - settings2.setQuality(QtMedia::NormalQuality); - QVERIFY(settings1 == settings2); - settings2.setQuality(QtMedia::LowQuality); - QVERIFY(settings1 != settings2); -} - -QTEST_MAIN(tst_QCamera) - -#include "tst_qcamera.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaobject/qmediaobject.pro --- a/qtmobility/tests/auto/symbian/qmediaobject/qmediaobject.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -TARGET = tst_qmediaobject -CONFIG += testcase -INCLUDEPATH += ../../../../src/multimedia - -include (../../../../common.pri) - -SOURCES += tst_qmediaobject.cpp - -CONFIG += mobility -MOBILITY = multimedia diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaobject/tst_qmediaobject.cpp --- a/qtmobility/tests/auto/symbian/qmediaobject/tst_qmediaobject.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,477 +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 Qt Mobility Components. -** -** $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 - -#include - -#include -#include -#include -#include - -QTM_USE_NAMESPACE -class tst_QMediaObject : public QObject -{ - Q_OBJECT - -public slots: - void initTestCase_data(); - void initTestCase(); - void cleanupTestCase(); - void init(); - void cleanup(); - -private slots: - void isMetaDataAvailable(); - void isWritable(); - void metaData(); - void availableMetaData(); - void setMetaData(); - void extendedMetaData(); - void availableExtendedMetaData(); - void setExtendedMetaData(); - -private: - QString metaDataKeyAsString(QtMedia::MetaData key) const; -}; - -void tst_QMediaObject::initTestCase_data() -{ - QTest::addColumn("valid"); - //QTest::addColumn("state"); - //QTest::addColumn("status"); - QTest::addColumn("mediaContent"); - QTest::addColumn("metaDataAvailable"); - QTest::addColumn("metaDataWritable"); // Is this needed ??? - //QTest::addColumn("bufferStatus"); - //QTest::addColumn("playbackRate"); - //QTest::addColumn("error"); - //QTest::addColumn("errorString"); - - QTest::newRow("TestDataNull") - << false // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent() // mediaContent - << false // metaDataAvailable - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - /* - QTest::newRow("test_3gp.3gp") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_3gp.3gp")) // mediaContent - << qint64(-1) // duration - << qint64(0) // position - << false // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - */ - - QTest::newRow("test_amr.amr") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_amr.amr")) // mediaContent - << false // metaDataAvailable - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_flash_video.flv") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_flash_video.flv")) // mediaContent - << false // metaDataAvailable - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_invalid_extension_mp4.xyz") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_invalid_extension_mp4.xyz")) // mediaContent - << false // metaDataAvailable - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_invalid_extension_wav.xyz") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_invalid_extension_wav.xyz")) // mediaContent - << false // metaDataAvailable - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_mp3.mp3") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_mp3.mp3")) // mediaContent -#if !defined(__WINS__) || !defined(__WINSCW__) - << true // metaDataAvailable -#else - << false // metaDataAvailable -#endif // !defined(__WINS__) || defined(__WINSCW__) - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_mp3_no_metadata.mp3") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_mp3_no_metadata.mp3")) // mediaContent - << false // metaDataAvailable - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_mp4.mp4") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_mp4.mp4")) // mediaContent -#if defined(__WINS__) || defined(__WINSCW__) - << true // metaDataAvailable -#else - << false // metaDataAvailable -#endif // !defined(__WINS__) || defined(__WINSCW__) - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_wav.wav") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_wav.wav")) // mediaContent - << false // metaDataAvailable - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_wmv9.wmv") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_wmv9.wmv")) // mediaContent - << false // metaDataAvailable - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - - QTest::newRow("test youtube stream") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("rtsp://v3.cache4.c.youtube.com/CkgLENy73wIaPwlU2rm7yu8PFhMYESARFEIJbXYtZ29vZ2xlSARSB3JlbGF0ZWRaDkNsaWNrVGh1bWJuYWlsYPi6_IXT2rvpSgw=/0/0/0/video.3gp")) // mediaContent - << false // metaDataAvailable - << false; // metaDataWritable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - -} - -void tst_QMediaObject::initTestCase() -{ -} - -void tst_QMediaObject::cleanupTestCase() -{ -} - -void tst_QMediaObject::init() -{ - qRegisterMetaType("QMediaContent"); -} - -void tst_QMediaObject::cleanup() -{ -} - -void tst_QMediaObject::isMetaDataAvailable() -{ - QFETCH_GLOBAL(bool, metaDataAvailable); - QFETCH_GLOBAL(QMediaContent, mediaContent); -// qWarning() << mediaContent.canonicalUrl(); - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(700); - QVERIFY(player.isMetaDataAvailable() == metaDataAvailable); -} - -void tst_QMediaObject::isWritable() -{ - QFETCH_GLOBAL(bool, metaDataWritable); - QFETCH_GLOBAL(QMediaContent, mediaContent); -// qWarning() << mediaContent.canonicalUrl(); - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(700); - QVERIFY(player.isMetaDataWritable() == metaDataWritable); -} - -void tst_QMediaObject::metaData() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); - QFETCH_GLOBAL(bool, metaDataAvailable); -// qWarning() << mediaContent.canonicalUrl(); - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(700); - const QString artist(QLatin1String("Artist")); - const QString title(QLatin1String("Title")); - - if (player.isMetaDataAvailable()) { - QEXPECT_FAIL("", "player.metaData(QtMedia::AlbumArtist) failed: ", Continue); - QCOMPARE(player.metaData(QtMedia::AlbumArtist).toString(), artist); - QEXPECT_FAIL("", "player.metaData(QtMedia::Title) failed: ", Continue); - QCOMPARE(player.metaData(QtMedia::Title).toString(), title); - } -} - -void tst_QMediaObject::availableMetaData() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); - QFETCH_GLOBAL(bool, metaDataAvailable); -// qWarning() << mediaContent.canonicalUrl(); - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(700); - - if (player.isMetaDataAvailable()) { - QList metaDataKeys = player.availableMetaData(); - QEXPECT_FAIL("", "metaDataKeys.count() failed: ", Continue); - QVERIFY(metaDataKeys.count() > 0); -// qWarning() << "metaDataKeys.count: " << metaDataKeys.count(); - QEXPECT_FAIL("", "metaDataKeys.contains(QtMedia::AlbumArtist) failed: ", Continue); - QVERIFY(metaDataKeys.contains(QtMedia::AlbumArtist)); - QEXPECT_FAIL("", "metaDataKeys.contains(QtMedia::Title) failed: ", Continue); - QVERIFY(metaDataKeys.contains(QtMedia::Title)); - } -} - -void tst_QMediaObject::setMetaData() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); -// qWarning() << mediaContent.canonicalUrl(); - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(700); - - QString title("Titletest"); - if (player.isMetaDataWritable()) { - player.setMetaData(QtMedia::Title, title); - QCOMPARE(player.metaData(QtMedia::Title).toString(), title); - } -} - -void tst_QMediaObject::extendedMetaData() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); -// qWarning() << mediaContent.canonicalUrl(); - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(700); - const QString artist(QLatin1String("Artist")); - const QString title(QLatin1String("Title")); - - if (player.isMetaDataAvailable()) { - QEXPECT_FAIL("", "player.extendedMetaData(QtMedia::AlbumArtist) failed: ", Continue); - QCOMPARE(player.extendedMetaData(metaDataKeyAsString(QtMedia::AlbumArtist)).toString(), artist); - QEXPECT_FAIL("", "player.extendedMetaData(QtMedia::Title) failed: ", Continue); - QCOMPARE(player.extendedMetaData(metaDataKeyAsString(QtMedia::Title)).toString(), title); - } -} - -void tst_QMediaObject::availableExtendedMetaData() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); -// qWarning() << mediaContent.canonicalUrl(); - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(700); - const QString artist(QLatin1String("Artist")); - const QString title(QLatin1String("Title")); - - if (player.isMetaDataAvailable()) { - QStringList metaDataKeys = player.availableExtendedMetaData(); - QVERIFY(metaDataKeys.count() > 0); -/* qWarning() << "metaDataKeys.count: " << metaDataKeys.count(); - int count = metaDataKeys.count(); - count = count-1; - int i = 0; - while(count >= i) - { - qWarning() << "metaDataKeys " << i <<". " << metaDataKeys.at(i); - i++; - }*/ - QEXPECT_FAIL("", "metaDataKeys.contains(QtMedia::AlbumArtist) failed: ", Continue); - QVERIFY(metaDataKeys.contains(metaDataKeyAsString(QtMedia::AlbumArtist))); - QEXPECT_FAIL("", "metaDataKeys.contains(QtMedia::AlbumArtist) failed: ", Continue); - QVERIFY(metaDataKeys.contains(metaDataKeyAsString(QtMedia::Title))); - } -} - -void tst_QMediaObject::setExtendedMetaData() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); -// qWarning() << mediaContent.canonicalUrl(); - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(700); - const QString title(QLatin1String("Titletest")); - - if (player.isMetaDataWritable()) { - player.setExtendedMetaData(metaDataKeyAsString(QtMedia::Title), title); - QCOMPARE(player.metaData(QtMedia::Title).toString(), title); - } -} - -QString tst_QMediaObject::metaDataKeyAsString(QtMedia::MetaData key) const -{ - switch(key) { - case QtMedia::Title: return "title"; - case QtMedia::AlbumArtist: return "artist"; - case QtMedia::Comment: return "comment"; - case QtMedia::Genre: return "genre"; - case QtMedia::Year: return "year"; - case QtMedia::Copyright: return "copyright"; - case QtMedia::AlbumTitle: return "album"; - case QtMedia::Composer: return "composer"; - case QtMedia::TrackNumber: return "albumtrack"; - case QtMedia::AudioBitRate: return "audiobitrate"; - case QtMedia::VideoBitRate: return "videobitrate"; - case QtMedia::Duration: return "duration"; - case QtMedia::MediaType: return "contenttype"; - case QtMedia::SubTitle: // TODO: Find the matching metadata keys - case QtMedia::Description: - case QtMedia::Category: - case QtMedia::Date: - case QtMedia::UserRating: - case QtMedia::Keywords: - case QtMedia::Language: - case QtMedia::Publisher: - case QtMedia::ParentalRating: - case QtMedia::RatingOrganisation: - case QtMedia::Size: - case QtMedia::AudioCodec: - case QtMedia::AverageLevel: - case QtMedia::ChannelCount: - case QtMedia::PeakValue: - case QtMedia::SampleRate: - case QtMedia::Author: - case QtMedia::ContributingArtist: - case QtMedia::Conductor: - case QtMedia::Lyrics: - case QtMedia::Mood: - case QtMedia::TrackCount: - case QtMedia::CoverArtUrlSmall: - case QtMedia::CoverArtUrlLarge: - case QtMedia::Resolution: - case QtMedia::PixelAspectRatio: - case QtMedia::VideoFrameRate: - case QtMedia::VideoCodec: - case QtMedia::PosterUrl: - case QtMedia::ChapterNumber: - case QtMedia::Director: - case QtMedia::LeadPerformer: - case QtMedia::Writer: - case QtMedia::CameraManufacturer: - case QtMedia::CameraModel: - case QtMedia::Event: - case QtMedia::Subject: - default: - break; - } - - return QString(); -} - -QTEST_MAIN(tst_QMediaObject) - -#include "tst_qmediaobject.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaobject_s60/qmediaobject_s60.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/symbian/qmediaobject_s60/qmediaobject_s60.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,10 @@ +TARGET = tst_qmediaobject_s60 +CONFIG += testcase +INCLUDEPATH += ../../../../src/multimedia + +include (../../../../common.pri) + +SOURCES += tst_qmediaobject_s60.cpp + +CONFIG += mobility +MOBILITY = multimedia diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaobject_s60/tst_qmediaobject_s60.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/symbian/qmediaobject_s60/tst_qmediaobject_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,477 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 + +#include + +#include +#include +#include +#include + +QTM_USE_NAMESPACE +class tst_QMediaObject : public QObject +{ + Q_OBJECT + +public slots: + void initTestCase_data(); + void initTestCase(); + void cleanupTestCase(); + void init(); + void cleanup(); + +private slots: + void isMetaDataAvailable(); + void isWritable(); + void metaData(); + void availableMetaData(); + void setMetaData(); + void extendedMetaData(); + void availableExtendedMetaData(); + void setExtendedMetaData(); + +private: + QString metaDataKeyAsString(QtMedia::MetaData key) const; +}; + +void tst_QMediaObject::initTestCase_data() +{ + QTest::addColumn("valid"); + //QTest::addColumn("state"); + //QTest::addColumn("status"); + QTest::addColumn("mediaContent"); + QTest::addColumn("metaDataAvailable"); + QTest::addColumn("metaDataWritable"); // Is this needed ??? + //QTest::addColumn("bufferStatus"); + //QTest::addColumn("playbackRate"); + //QTest::addColumn("error"); + //QTest::addColumn("errorString"); + + QTest::newRow("TestDataNull") + << false // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent() // mediaContent + << false // metaDataAvailable + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + + /* + QTest::newRow("test_3gp.3gp") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_3gp.3gp")) // mediaContent + << qint64(-1) // duration + << qint64(0) // position + << false // seekable + << 0 // volume + << false // muted + << false; // videoAvailable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + */ + + QTest::newRow("test_amr.amr") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_amr.amr")) // mediaContent + << false // metaDataAvailable + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + + QTest::newRow("test_flash_video.flv") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_flash_video.flv")) // mediaContent + << false // metaDataAvailable + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + + QTest::newRow("test_invalid_extension_mp4.xyz") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_invalid_extension_mp4.xyz")) // mediaContent + << false // metaDataAvailable + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + + QTest::newRow("test_invalid_extension_wav.xyz") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_invalid_extension_wav.xyz")) // mediaContent + << false // metaDataAvailable + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + + QTest::newRow("test_mp3.mp3") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_mp3.mp3")) // mediaContent +#if !defined(__WINS__) || !defined(__WINSCW__) + << true // metaDataAvailable +#else + << false // metaDataAvailable +#endif // !defined(__WINS__) || defined(__WINSCW__) + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + + QTest::newRow("test_mp3_no_metadata.mp3") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_mp3_no_metadata.mp3")) // mediaContent + << false // metaDataAvailable + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + + QTest::newRow("test_mp4.mp4") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_mp4.mp4")) // mediaContent +#if defined(__WINS__) || defined(__WINSCW__) + << true // metaDataAvailable +#else + << false // metaDataAvailable +#endif // !defined(__WINS__) || defined(__WINSCW__) + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + + QTest::newRow("test_wav.wav") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_wav.wav")) // mediaContent + << false // metaDataAvailable + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + + QTest::newRow("test_wmv9.wmv") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_wmv9.wmv")) // mediaContent + << false // metaDataAvailable + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + + + QTest::newRow("test youtube stream") + << true // valid + //<< QMediaPlayer::StoppedState // state + //<< QMediaPlayer::UnknownMediaStatus // status + << QMediaContent(QUrl("rtsp://v3.cache4.c.youtube.com/CkgLENy73wIaPwlU2rm7yu8PFhMYESARFEIJbXYtZ29vZ2xlSARSB3JlbGF0ZWRaDkNsaWNrVGh1bWJuYWlsYPi6_IXT2rvpSgw=/0/0/0/video.3gp")) // mediaContent + << false // metaDataAvailable + << false; // metaDataWritable + //<< 0 // bufferStatus + //<< qreal(0) // playbackRate + //<< QMediaPlayer::NoError // error + //<< QString(); // errorString + +} + +void tst_QMediaObject::initTestCase() +{ +} + +void tst_QMediaObject::cleanupTestCase() +{ +} + +void tst_QMediaObject::init() +{ + qRegisterMetaType("QMediaContent"); +} + +void tst_QMediaObject::cleanup() +{ +} + +void tst_QMediaObject::isMetaDataAvailable() +{ + QFETCH_GLOBAL(bool, metaDataAvailable); + QFETCH_GLOBAL(QMediaContent, mediaContent); +// qWarning() << mediaContent.canonicalUrl(); + QMediaPlayer player; + + player.setMedia(mediaContent); + QTest::qWait(700); + QVERIFY(player.isMetaDataAvailable() == metaDataAvailable); +} + +void tst_QMediaObject::isWritable() +{ + QFETCH_GLOBAL(bool, metaDataWritable); + QFETCH_GLOBAL(QMediaContent, mediaContent); +// qWarning() << mediaContent.canonicalUrl(); + QMediaPlayer player; + + player.setMedia(mediaContent); + QTest::qWait(700); + QVERIFY(player.isMetaDataWritable() == metaDataWritable); +} + +void tst_QMediaObject::metaData() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(bool, metaDataAvailable); +// qWarning() << mediaContent.canonicalUrl(); + QMediaPlayer player; + + player.setMedia(mediaContent); + QTest::qWait(700); + const QString artist(QLatin1String("Artist")); + const QString title(QLatin1String("Title")); + + if (player.isMetaDataAvailable()) { + QEXPECT_FAIL("", "player.metaData(QtMedia::AlbumArtist) failed: ", Continue); + QCOMPARE(player.metaData(QtMedia::AlbumArtist).toString(), artist); + QEXPECT_FAIL("", "player.metaData(QtMedia::Title) failed: ", Continue); + QCOMPARE(player.metaData(QtMedia::Title).toString(), title); + } +} + +void tst_QMediaObject::availableMetaData() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(bool, metaDataAvailable); +// qWarning() << mediaContent.canonicalUrl(); + QMediaPlayer player; + + player.setMedia(mediaContent); + QTest::qWait(700); + + if (player.isMetaDataAvailable()) { + QList metaDataKeys = player.availableMetaData(); + QEXPECT_FAIL("", "metaDataKeys.count() failed: ", Continue); + QVERIFY(metaDataKeys.count() > 0); +// qWarning() << "metaDataKeys.count: " << metaDataKeys.count(); + QEXPECT_FAIL("", "metaDataKeys.contains(QtMedia::AlbumArtist) failed: ", Continue); + QVERIFY(metaDataKeys.contains(QtMedia::AlbumArtist)); + QEXPECT_FAIL("", "metaDataKeys.contains(QtMedia::Title) failed: ", Continue); + QVERIFY(metaDataKeys.contains(QtMedia::Title)); + } +} + +void tst_QMediaObject::setMetaData() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); +// qWarning() << mediaContent.canonicalUrl(); + QMediaPlayer player; + + player.setMedia(mediaContent); + QTest::qWait(700); + + QString title("Titletest"); + if (player.isMetaDataWritable()) { + player.setMetaData(QtMedia::Title, title); + QCOMPARE(player.metaData(QtMedia::Title).toString(), title); + } +} + +void tst_QMediaObject::extendedMetaData() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); +// qWarning() << mediaContent.canonicalUrl(); + QMediaPlayer player; + + player.setMedia(mediaContent); + QTest::qWait(700); + const QString artist(QLatin1String("Artist")); + const QString title(QLatin1String("Title")); + + if (player.isMetaDataAvailable()) { + QEXPECT_FAIL("", "player.extendedMetaData(QtMedia::AlbumArtist) failed: ", Continue); + QCOMPARE(player.extendedMetaData(metaDataKeyAsString(QtMedia::AlbumArtist)).toString(), artist); + QEXPECT_FAIL("", "player.extendedMetaData(QtMedia::Title) failed: ", Continue); + QCOMPARE(player.extendedMetaData(metaDataKeyAsString(QtMedia::Title)).toString(), title); + } +} + +void tst_QMediaObject::availableExtendedMetaData() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); +// qWarning() << mediaContent.canonicalUrl(); + QMediaPlayer player; + + player.setMedia(mediaContent); + QTest::qWait(700); + const QString artist(QLatin1String("Artist")); + const QString title(QLatin1String("Title")); + + if (player.isMetaDataAvailable()) { + QStringList metaDataKeys = player.availableExtendedMetaData(); + QVERIFY(metaDataKeys.count() > 0); +/* qWarning() << "metaDataKeys.count: " << metaDataKeys.count(); + int count = metaDataKeys.count(); + count = count-1; + int i = 0; + while(count >= i) + { + qWarning() << "metaDataKeys " << i <<". " << metaDataKeys.at(i); + i++; + }*/ + QEXPECT_FAIL("", "metaDataKeys.contains(QtMedia::AlbumArtist) failed: ", Continue); + QVERIFY(metaDataKeys.contains(metaDataKeyAsString(QtMedia::AlbumArtist))); + QEXPECT_FAIL("", "metaDataKeys.contains(QtMedia::AlbumArtist) failed: ", Continue); + QVERIFY(metaDataKeys.contains(metaDataKeyAsString(QtMedia::Title))); + } +} + +void tst_QMediaObject::setExtendedMetaData() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); +// qWarning() << mediaContent.canonicalUrl(); + QMediaPlayer player; + + player.setMedia(mediaContent); + QTest::qWait(700); + const QString title(QLatin1String("Titletest")); + + if (player.isMetaDataWritable()) { + player.setExtendedMetaData(metaDataKeyAsString(QtMedia::Title), title); + QCOMPARE(player.metaData(QtMedia::Title).toString(), title); + } +} + +QString tst_QMediaObject::metaDataKeyAsString(QtMedia::MetaData key) const +{ + switch(key) { + case QtMedia::Title: return "title"; + case QtMedia::AlbumArtist: return "artist"; + case QtMedia::Comment: return "comment"; + case QtMedia::Genre: return "genre"; + case QtMedia::Year: return "year"; + case QtMedia::Copyright: return "copyright"; + case QtMedia::AlbumTitle: return "album"; + case QtMedia::Composer: return "composer"; + case QtMedia::TrackNumber: return "albumtrack"; + case QtMedia::AudioBitRate: return "audiobitrate"; + case QtMedia::VideoBitRate: return "videobitrate"; + case QtMedia::Duration: return "duration"; + case QtMedia::MediaType: return "contenttype"; + case QtMedia::SubTitle: // TODO: Find the matching metadata keys + case QtMedia::Description: + case QtMedia::Category: + case QtMedia::Date: + case QtMedia::UserRating: + case QtMedia::Keywords: + case QtMedia::Language: + case QtMedia::Publisher: + case QtMedia::ParentalRating: + case QtMedia::RatingOrganisation: + case QtMedia::Size: + case QtMedia::AudioCodec: + case QtMedia::AverageLevel: + case QtMedia::ChannelCount: + case QtMedia::PeakValue: + case QtMedia::SampleRate: + case QtMedia::Author: + case QtMedia::ContributingArtist: + case QtMedia::Conductor: + case QtMedia::Lyrics: + case QtMedia::Mood: + case QtMedia::TrackCount: + case QtMedia::CoverArtUrlSmall: + case QtMedia::CoverArtUrlLarge: + case QtMedia::Resolution: + case QtMedia::PixelAspectRatio: + case QtMedia::VideoFrameRate: + case QtMedia::VideoCodec: + case QtMedia::PosterUrl: + case QtMedia::ChapterNumber: + case QtMedia::Director: + case QtMedia::LeadPerformer: + case QtMedia::Writer: + case QtMedia::CameraManufacturer: + case QtMedia::CameraModel: + case QtMedia::Event: + case QtMedia::Subject: + default: + break; + } + + return QString(); +} + +QTEST_MAIN(tst_QMediaObject) + +#include "tst_qmediaobject_s60.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaplayer/qmediaplayer.pro --- a/qtmobility/tests/auto/symbian/qmediaplayer/qmediaplayer.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -TARGET = tst_qmediaplayer -INCLUDEPATH += ../../../../src/multimedia \ - ../../../../include -CONFIG += testcase - -QT += testlib - -SOURCES += tst_qmediaplayer.cpp - -include (../../../../common.pri) - -CONFIG += mobility -MOBILITY = multimedia diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaplayer/tst_qmediaplayer.cpp --- a/qtmobility/tests/auto/symbian/qmediaplayer/tst_qmediaplayer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,995 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include -#include -#include -#include -#include - -QTM_USE_NAMESPACE -class AutoConnection -{ -public: - AutoConnection(QObject *sender, const char *signal, QObject *receiver, const char *method) - : sender(sender), signal(signal), receiver(receiver), method(method) - { - QObject::connect(sender, signal, receiver, method); - } - - ~AutoConnection() - { - QObject::disconnect(sender, signal, receiver, method); - } - -private: - QObject *sender; - const char *signal; - QObject *receiver; - const char *method; -}; - -class tst_QMediaPlayer: public QObject -{ - Q_OBJECT - -public slots: - void initTestCase_data(); - void initTestCase(); - void cleanupTestCase(); - void init(); - void cleanup(); - -private slots: - void testMedia(); - void testDuration(); - void testPosition(); - void testVolume(); - void testMuted(); - void testVideoAvailable(); - // //void testBufferStatus(); - void testSeekable(); - // //void testPlaybackRate(); - // //void testError(); - // //void testErrorString(); - // //void testService(); - - void testPlay(); - void testPause(); - void testStop(); - // //void testMediaStatus(); - void testPlaylist(); -}; - -void tst_QMediaPlayer::initTestCase_data() -{ - QTest::addColumn("valid"); - //QTest::addColumn("state"); - //QTest::addColumn("status"); - QTest::addColumn("mediaContent"); - QTest::addColumn("duration"); - QTest::addColumn("position"); - QTest::addColumn("seekable"); - QTest::addColumn("volume"); - QTest::addColumn("muted"); // Is this needed ??? - QTest::addColumn("videoAvailable"); // Is this needed ??? - //QTest::addColumn("bufferStatus"); - //QTest::addColumn("playbackRate"); - //QTest::addColumn("error"); - //QTest::addColumn("errorString"); - - QTest::newRow("TestDataNull") - << false // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent() // mediaContent - << qint64(-1) // duration - << qint64(0) // position - << false // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - /* - QTest::newRow("test_3gp.3gp") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_3gp.3gp")) // mediaContent - << qint64(-1) // duration - << qint64(0) // position - << false // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - */ - - QTest::newRow("test_amr.amr") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_amr.amr")) // mediaContent - << qint64(14400) // duration - << qint64(200) // position - << true // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - /* - QTest::newRow("test_flash_video.flv") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_flash_video.flv")) // mediaContent - << qint64(-1) // duration - << qint64(0) // position - << true // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - */ - - QTest::newRow("test_invalid_extension_mp4.xyz") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_invalid_extension_mp4.xyz")) // mediaContent - << qint64(2701) // duration //TODO: FIXME: In this case duration could not be read - << qint64(0) // position - << false // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_invalid_extension_wav.xyz") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_invalid_extension_wav.xyz")) // mediaContent - << qint64(12400) // duration - << qint64(400) // position - << true // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_mp3.mp3") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_mp3.mp3")) // mediaContent - << qint64(102044) // duration - << qint64(0) // position - << false // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_mp4.mp4") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_mp4.mp4")) // mediaContent - << qint64(2701) // duration //TODO: FIXME: In this case duration could not be read - << qint64(0) // position - << false // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_wav.wav") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_wav.wav")) // mediaContent - << qint64(12400) // duration - << qint64(321) // position - << true // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test_wmv9.wmv") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("file:///C:/data/testfiles/test_wmv9.wmv")) // mediaContent - << qint64(169389) // duration - << qint64(789) // position - << true // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - QTest::newRow("test youtube stream") - << true // valid - //<< QMediaPlayer::StoppedState // state - //<< QMediaPlayer::UnknownMediaStatus // status - << QMediaContent(QUrl("rtsp://v3.cache4.c.youtube.com/CkgLENy73wIaPwlU2rm7yu8PFhMYESARFEIJbXYtZ29vZ2xlSARSB3JlbGF0ZWRaDkNsaWNrVGh1bWJuYWlsYPi6_IXT2rvpSgw=/0/0/0/video.3gp")) // mediaContent - << qint64(0) // duration - << qint64(0) // position - << true // seekable - << 0 // volume - << false // muted - << false; // videoAvailable - //<< 0 // bufferStatus - //<< qreal(0) // playbackRate - //<< QMediaPlayer::NoError // error - //<< QString(); // errorString - - /* - QTest::newRow("invalid") << false << QMediaPlayer::StoppedState << QMediaPlayer::UnknownMediaStatus << - QMediaContent() << qint64(-1) << qint64(0) << false << 0 << false << false << 0 << - qreal(0) << QMediaPlayer::NoError << QString(); - QTest::newRow("valid+null") << true << QMediaPlayer::StoppedState << QMediaPlayer::UnknownMediaStatus << - QMediaContent() << qint64(0) << qint64(0) << false << 0 << false << false << 50 << - qreal(0) << QMediaPlayer::NoError << QString(); - QTest::newRow("valid+content+stopped") << true << QMediaPlayer::StoppedState << QMediaPlayer::UnknownMediaStatus << - QMediaContent(QUrl("file:///some.mp3")) << qint64(0) << qint64(0) << false << 50 << false << false << 0 << - qreal(1) << QMediaPlayer::NoError << QString(); - QTest::newRow("valid+content+playing") << true << QMediaPlayer::PlayingState << QMediaPlayer::LoadedMedia << - QMediaContent(QUrl("file:///some.mp3")) << qint64(10000) << qint64(10) << true << 50 << true << false << 0 << - qreal(1) << QMediaPlayer::NoError << QString(); - QTest::newRow("valid+content+paused") << true << QMediaPlayer::PausedState << QMediaPlayer::LoadedMedia << - QMediaContent(QUrl("file:///some.mp3")) << qint64(10000) << qint64(10) << true << 50 << true << false << 0 << - qreal(1) << QMediaPlayer::NoError << QString(); - QTest::newRow("valud+streaming") << true << QMediaPlayer::PlayingState << QMediaPlayer::LoadedMedia << - QMediaContent(QUrl("http://example.com/stream")) << qint64(10000) << qint64(10000) << false << 50 << false << true << 0 << - qreal(1) << QMediaPlayer::NoError << QString(); - QTest::newRow("valid+error") << true << QMediaPlayer::StoppedState << QMediaPlayer::UnknownMediaStatus << - QMediaContent(QUrl("http://example.com/stream")) << qint64(0) << qint64(0) << false << 50 << false << false << 0 << - qreal(0) << QMediaPlayer::ResourceError << QString("Resource unavailable"); - */ -} - -void tst_QMediaPlayer::initTestCase() -{ -} - -void tst_QMediaPlayer::cleanupTestCase() -{ -} - -void tst_QMediaPlayer::init() -{ - qRegisterMetaType("QMediaPlayer::State"); - qRegisterMetaType("QMediaPlayer::Error"); - qRegisterMetaType("QMediaPlayer::MediaStatus"); - qRegisterMetaType("QMediaContent"); -} - -void tst_QMediaPlayer::cleanup() -{ -} - -void tst_QMediaPlayer::testMedia() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); - - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(500); - QCOMPARE(player.media(), mediaContent); - - // QBuffer stream; - // player.setMedia(mediaContent, &stream); - // QCOMPARE(player.media(), mediaContent); - // QCOMPARE((QBuffer*)player.mediaStream(), &stream); -} - -void tst_QMediaPlayer::testDuration() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); - QFETCH_GLOBAL(qint64, duration); - - QMediaPlayer player; - player.setMedia(mediaContent); - QTest::qWait(500); - - - QEXPECT_FAIL("", "player.duration() failed: ", Continue); - QVERIFY(player.duration() == duration); -} - - -void tst_QMediaPlayer::testPosition() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); - QFETCH_GLOBAL(qint64, duration); - QFETCH_GLOBAL(qint64, position); - QFETCH_GLOBAL(bool, seekable); - - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(500); - player.setPosition(position); - - qDebug() << "Mediafile" << player.media().canonicalUrl().toString(); - QEXPECT_FAIL("", "player.isSeekable() failed: ", Continue); - QVERIFY(player.isSeekable() == seekable); - QEXPECT_FAIL("", "player.position() failed: ", Continue); - QVERIFY(player.position() == position); - QEXPECT_FAIL("", "player.duration() failed: ", Continue); - QVERIFY(player.duration() == duration); - - if (seekable) { - { QSignalSpy spy(&player, SIGNAL(positionChanged(qint64))); - player.setPosition(position); - qDebug() << player.position(); - QCOMPARE(player.position(), position); - QCOMPARE(spy.count(), 0); } - - player.setPosition(position); - { QSignalSpy spy(&player, SIGNAL(positionChanged(qint64))); - player.setPosition(0); - QCOMPARE(player.position(), qint64(0)); - QCOMPARE(spy.count(), position == 0 ? 0 : 1); } - - player.setPosition(position); - { QSignalSpy spy(&player, SIGNAL(positionChanged(qint64))); - player.setPosition(duration); - QEXPECT_FAIL("", "player.duration() failed: ", Continue); - QCOMPARE(player.position(), duration); - QCOMPARE(spy.count(), position == duration ? 0 : 1); } - - player.setPosition(position); - { QSignalSpy spy(&player, SIGNAL(positionChanged(qint64))); - player.setPosition(-1); - QCOMPARE(player.position(), qint64(0)); - QCOMPARE(spy.count(), position == 0 ? 0 : 1); } - - player.setPosition(position); - { QSignalSpy spy(&player, SIGNAL(positionChanged(qint64))); - player.setPosition(duration + 1); - QCOMPARE(player.position(), duration); - QCOMPARE(spy.count(), position == duration ? 0 : 1); } - } - else { - QSignalSpy spy(&player, SIGNAL(positionChanged(qint64))); - player.setPosition(position); - - QCOMPARE(player.position(), position); - QCOMPARE(spy.count(), 0); - } -} - -void tst_QMediaPlayer::testVolume() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); - QFETCH_GLOBAL(bool, valid); - QFETCH_GLOBAL(int, volume); - - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(500); - - player.setVolume(volume); - QVERIFY(player.volume() == volume); - - //TODO: Remove this IF - if (valid) { - { QSignalSpy spy(&player, SIGNAL(volumeChanged(int))); - player.setVolume(10); - QCOMPARE(player.volume(), 10); - QCOMPARE(spy.count(), 1); } - - { QSignalSpy spy(&player, SIGNAL(volumeChanged(int))); - player.setVolume(-1000); - QCOMPARE(player.volume(), 0); - QCOMPARE(spy.count(), 1); } - - { QSignalSpy spy(&player, SIGNAL(volumeChanged(int))); - player.setVolume(100); - QCOMPARE(player.volume(), 100); - QCOMPARE(spy.count(), 1); } - - { QSignalSpy spy(&player, SIGNAL(volumeChanged(int))); - player.setVolume(1000); - QCOMPARE(player.volume(), 100); - QCOMPARE(spy.count(), 0); } - } -} - -void tst_QMediaPlayer::testMuted() -{ - QFETCH_GLOBAL(bool, valid); - QFETCH_GLOBAL(int, volume); - QFETCH_GLOBAL(bool, muted); - - // TODO Use valid - - QMediaPlayer player; - - if (valid) { - player.setMuted(muted); - player.setVolume(volume); - QVERIFY(player.isMuted() == muted); - - QSignalSpy spy(&player, SIGNAL(mutedChanged(bool))); - player.setMuted(!muted); - QCOMPARE(player.isMuted(), !muted); - QCOMPARE(player.volume(), volume); - QCOMPARE(spy.count(), 1); - } -} - -void tst_QMediaPlayer::testVideoAvailable() -{ - QFETCH_GLOBAL(bool, videoAvailable); - QFETCH_GLOBAL(QMediaContent, mediaContent); - - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(500); - QVERIFY(player.isVideoAvailable() == videoAvailable); -} - -/* -void tst_QMediaPlayer::testBufferStatus() -{ - QFETCH_GLOBAL(int, bufferStatus); - - QMediaPlayer player; - - mockService->setBufferStatus(bufferStatus); - QVERIFY(player.bufferStatus() == bufferStatus); -} -*/ - -void tst_QMediaPlayer::testSeekable() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); - QFETCH_GLOBAL(bool, seekable); - - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(500); - QVERIFY(player.isSeekable() == seekable); -} - -/* -void tst_QMediaPlayer::testPlaybackRate() -{ - QFETCH_GLOBAL(bool, valid); - QFETCH_GLOBAL(qreal, playbackRate); - - QMediaPlayer player; - - if (valid) { - player.setPlaybackRate(playbackRate); - QVERIFY(player.playbackRate() == playbackRate); - - QSignalSpy spy(&player, SIGNAL(playbackRateChanged(qreal))); - player.setPlaybackRate(playbackRate + 0.5f); - QCOMPARE(player.playbackRate(), playbackRate + 0.5f); - QCOMPARE(spy.count(), 1); - } -} -*/ - -/* -void tst_QMediaPlayer::testError() -{ - QFETCH_GLOBAL(QMediaPlayer::Error, error); - - - QMediaPlayer player; - - //mockService->setError(error); - //QVERIFY(player.error() == error); -} -*/ - -/* -void tst_QMediaPlayer::testErrorString() -{ - QFETCH_GLOBAL(QString, errorString); - - QMediaPlayer player; - - //mockService->setErrorString(errorString); - //QVERIFY(player.errorString() == errorString); -} -*/ - -/* -void tst_QMediaPlayer::testService() -{ - QFETCH_GLOBAL(bool, valid); - - QMediaPlayer player; - - mockService->setIsValid(valid); - - if (valid) - QVERIFY(player.service() != 0); - else - QVERIFY(player.service() == 0); -} -*/ - -void tst_QMediaPlayer::testPlay() -{ - QFETCH_GLOBAL(bool, valid); - QFETCH_GLOBAL(QMediaContent, mediaContent); - - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(500); - QVERIFY(player.state() == QMediaPlayer::StoppedState); - QVERIFY(player.media() == mediaContent); - - { - QSignalSpy spy(&player, SIGNAL(stateChanged(QMediaPlayer::State))); - - player.play(); - QTest::qWait(500); - - if (!valid || mediaContent.isNull()) { - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(spy.count(), 0); - } - else { - QCOMPARE(player.state(), QMediaPlayer::PlayingState); - QCOMPARE(spy.count(), 1); - } - } - - { - QSignalSpy spy(&player, SIGNAL(stateChanged(QMediaPlayer::State))); - - player.play(); - QTest::qWait(500); - - if (!valid || mediaContent.isNull()) { - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(spy.count(), 0); - } - else { - QCOMPARE(player.state(), QMediaPlayer::PlayingState); - QCOMPARE(spy.count(), 0); - } - } -} - -void tst_QMediaPlayer::testPause() -{ - QFETCH_GLOBAL(bool, valid); - QFETCH_GLOBAL(QMediaContent, mediaContent); - - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(500); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QVERIFY(player.media() == mediaContent); - - player.play(); - QTest::qWait(500); - - { - QSignalSpy spy(&player, SIGNAL(stateChanged(QMediaPlayer::State))); - - player.pause(); - - if (!valid || mediaContent.isNull()) { - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(spy.count(), 0); - } - else { - QCOMPARE(player.state(), QMediaPlayer::PausedState); - QCOMPARE(spy.count(), 1); - } - } - - { - QSignalSpy spy(&player, SIGNAL(stateChanged(QMediaPlayer::State))); - - player.pause(); - QTest::qWait(500); - - if (!valid || mediaContent.isNull()) { - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(spy.count(), 0); - } - else { - QCOMPARE(player.state(), QMediaPlayer::PausedState); - QCOMPARE(spy.count(), 0); - } - } -} - -void tst_QMediaPlayer::testStop() -{ - QFETCH_GLOBAL(QMediaContent, mediaContent); - - QMediaPlayer player; - - player.setMedia(mediaContent); - QTest::qWait(500); - QVERIFY(player.state() == QMediaPlayer::StoppedState); - QVERIFY(player.media() == mediaContent); - - player.play(); - QTest::qWait(500); - - { - QSignalSpy spy(&player, SIGNAL(stateChanged(QMediaPlayer::State))); - - player.stop(); - QTest::qWait(500); - - if (mediaContent.isNull()) { - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(spy.count(), 0); - } - else { - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(spy.count(), 1); - } - } - - { - QSignalSpy spy(&player, SIGNAL(stateChanged(QMediaPlayer::State))); - - if (mediaContent.isNull() || player.state() == QMediaPlayer::StoppedState) { - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(spy.count(), 0); - } - } -} - -/* -void tst_QMediaPlayer::testMediaStatus() -{ - QFETCH_GLOBAL(int, bufferStatus); - - QMediaPlayer player; - - int bufferSignals = 0; - - player.setNotifyInterval(10); - - //mockService->setMediaStatus(QMediaPlayer::NoMedia); - //mockService->setBufferStatus(bufferStatus); - - AutoConnection connection( - &player, SIGNAL(bufferStatusChanged(int)), - &QTestEventLoop::instance(), SLOT(exitLoop())); - - QSignalSpy statusSpy(&player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus))); - QSignalSpy bufferSpy(&player, SIGNAL(bufferStatusChanged(int))); - - QCOMPARE(player.mediaStatus(), QMediaPlayer::NoMedia); - - //mockService->setMediaStatus(QMediaPlayer::LoadingMedia); - QCOMPARE(player.mediaStatus(), QMediaPlayer::LoadingMedia); - QCOMPARE(statusSpy.count(), 1); - QCOMPARE(qvariant_cast(statusSpy.last().value(0)), - QMediaPlayer::LoadingMedia); - - //mockService->setMediaStatus(QMediaPlayer::LoadedMedia); - QCOMPARE(player.mediaStatus(), QMediaPlayer::LoadedMedia); - QCOMPARE(statusSpy.count(), 2); - QCOMPARE(qvariant_cast(statusSpy.last().value(0)), - QMediaPlayer::LoadedMedia); - - // Verify the bufferStatusChanged() signal isn't being emitted. - QTestEventLoop::instance().enterLoop(1); - QCOMPARE(bufferSpy.count(), 0); - - //mockService->setMediaStatus(QMediaPlayer::StalledMedia); - QCOMPARE(player.mediaStatus(), QMediaPlayer::StalledMedia); - QCOMPARE(statusSpy.count(), 3); - QCOMPARE(qvariant_cast(statusSpy.last().value(0)), - QMediaPlayer::StalledMedia); - - // Verify the bufferStatusChanged() signal is being emitted. - QTestEventLoop::instance().enterLoop(1); - QVERIFY(bufferSpy.count() > bufferSignals); - QCOMPARE(bufferSpy.last().value(0).toInt(), bufferStatus); - bufferSignals = bufferSpy.count(); - - /-* - mockService->setMediaStatus(QMediaPlayer::BufferingMedia); - QCOMPARE(player.mediaStatus(), QMediaPlayer::BufferingMedia); - QCOMPARE(statusSpy.count(), 4); - QCOMPARE(qvariant_cast(statusSpy.last().value(0)), - QMediaPlayer::BufferingMedia); - *-/ - - // Verify the bufferStatusChanged() signal is being emitted. - QTestEventLoop::instance().enterLoop(1); - QVERIFY(bufferSpy.count() > bufferSignals); - QCOMPARE(bufferSpy.last().value(0).toInt(), bufferStatus); - bufferSignals = bufferSpy.count(); - - //mockService->setMediaStatus(QMediaPlayer::BufferedMedia); - QCOMPARE(player.mediaStatus(), QMediaPlayer::BufferedMedia); - QCOMPARE(statusSpy.count(), 5); - QCOMPARE(qvariant_cast(statusSpy.last().value(0)), - QMediaPlayer::BufferedMedia); - - // Verify the bufferStatusChanged() signal isn't being emitted. - QTestEventLoop::instance().enterLoop(1); - QCOMPARE(bufferSpy.count(), bufferSignals); - - //mockService->setMediaStatus(QMediaPlayer::EndOfMedia); - QCOMPARE(player.mediaStatus(), QMediaPlayer::EndOfMedia); - QCOMPARE(statusSpy.count(), 6); - QCOMPARE(qvariant_cast(statusSpy.last().value(0)), - QMediaPlayer::EndOfMedia); -} -*/ - -void tst_QMediaPlayer::testPlaylist() -{ - QMediaContent content0(QUrl(QLatin1String("file:///c:/data/test.mp3"))); //audio - QMediaContent content1(QUrl(QLatin1String("file:///c:/data/test.mp3"))); //audio - QMediaContent content2(QUrl(QLatin1String("file:///c:/data/test.mp4"))); //video - QMediaContent content3(QUrl(QLatin1String("file:///c:/data/test.mp4"))); //video - QMediaContent content4(QUrl(QLatin1String("file:///c:/data/test.mp3"))); //image - - QMediaPlayer player; - - QMediaPlaylist *playlist = new QMediaPlaylist(&player); - - QSignalSpy stateSpy(&player, SIGNAL(stateChanged(QMediaPlayer::State))); - QSignalSpy mediaSpy(&player, SIGNAL(mediaChanged(QMediaContent))); - - // Test the player does nothing with an empty playlist attached. - player.play(); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(player.media(), QMediaContent()); - QCOMPARE(stateSpy.count(), 0); - QCOMPARE(mediaSpy.count(), 0); - - playlist->addMedia(content0); - playlist->addMedia(content1); - playlist->addMedia(content2); - playlist->addMedia(content3); - - // Test changing the playlist position, changes the current media, but not the playing state. - playlist->setCurrentIndex(1); - QCOMPARE(player.media(), content1); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(stateSpy.count(), 0); - QCOMPARE(mediaSpy.count(), 1); - - // Test playing starts with the current media. - player.play(); - QCOMPARE(player.media(), content1); - QCOMPARE(player.state(), QMediaPlayer::PlayingState); - QCOMPARE(stateSpy.count(), 1); - QCOMPARE(mediaSpy.count(), 1); - - // Test pausing doesn't change the current media. - player.pause(); - QCOMPARE(player.media(), content1); - QCOMPARE(player.state(), QMediaPlayer::PausedState); - QCOMPARE(stateSpy.count(), 2); - QCOMPARE(mediaSpy.count(), 1); - - // Test stopping doesn't change the current media. - player.stop(); - QCOMPARE(player.media(), content1); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(stateSpy.count(), 3); - QCOMPARE(mediaSpy.count(), 1); - - // Test when the player service reaches the end of the current media, the player moves onto - // the next item without stopping. - player.play(); - QCOMPARE(player.media(), content1); - QCOMPARE(player.state(), QMediaPlayer::PlayingState); - QCOMPARE(stateSpy.count(), 4); - QCOMPARE(mediaSpy.count(), 1); - - /* - // TODO FIXME: This test case needs to be refactored after duration and setposition works - //mockService->setState(QMediaPlayer::StoppedState, QMediaPlayer::EndOfMedia); - QCOMPARE(player.media(), content2); - QCOMPARE(player.state(), QMediaPlayer::PlayingState); - QCOMPARE(stateSpy.count(), 4); - QCOMPARE(mediaSpy.count(), 2); - - // Test skipping the current media doesn't change the state. - playlist->next(); - QCOMPARE(player.media(), content3); - QCOMPARE(player.state(), QMediaPlayer::PlayingState); - QCOMPARE(stateSpy.count(), 4); - QCOMPARE(mediaSpy.count(), 3); - - // Test changing the current media while paused doesn't change the state. - player.pause(); - //mockService->setMediaStatus(QMediaPlayer::BufferedMedia); - QCOMPARE(player.media(), content3); - QCOMPARE(player.state(), QMediaPlayer::PausedState); - QCOMPARE(stateSpy.count(), 5); - QCOMPARE(mediaSpy.count(), 3); - - playlist->previous(); - QCOMPARE(player.media(), content2); - QCOMPARE(player.state(), QMediaPlayer::PausedState); - QCOMPARE(stateSpy.count(), 5); - QCOMPARE(mediaSpy.count(), 4); - - // Test changing the current media while stopped doesn't change the state. - player.stop(); - //mockService->setMediaStatus(QMediaPlayer::LoadedMedia); - QCOMPARE(player.media(), content2); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(stateSpy.count(), 6); - QCOMPARE(mediaSpy.count(), 4); - - playlist->next(); - QCOMPARE(player.media(), content3); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(stateSpy.count(), 6); - QCOMPARE(mediaSpy.count(), 5); - - // Test the player is stopped and the current media cleared when it reaches the end of the last - // item in the playlist. - player.play(); - QCOMPARE(player.media(), content3); - QCOMPARE(player.state(), QMediaPlayer::PlayingState); - QCOMPARE(stateSpy.count(), 7); - QCOMPARE(mediaSpy.count(), 5); - - // Double up the signals to ensure some noise doesn't destabalize things. - //mockService->setState(QMediaPlayer::StoppedState, QMediaPlayer::EndOfMedia); - //mockService->setState(QMediaPlayer::StoppedState, QMediaPlayer::EndOfMedia); - QCOMPARE(player.media(), QMediaContent()); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(stateSpy.count(), 8); - QCOMPARE(mediaSpy.count(), 6); - - // Test starts playing from the start of the playlist if there is no current media selected. - player.play(); - QCOMPARE(player.media(), content0); - QCOMPARE(player.state(), QMediaPlayer::PlayingState); - QCOMPARE(stateSpy.count(), 9); - QCOMPARE(mediaSpy.count(), 7); - */ - - // TODO FIXME: This part of needs to be used after using refactored test cases before - // Here are original signal spy values. - /* - // Test deleting the playlist stops the player and clears the media it set. - delete playlist; - QCOMPARE(player.media(), QMediaContent()); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(stateSpy.count(), 10); - QCOMPARE(mediaSpy.count(), 8); - - // Test the player works as normal with the playlist removed. - player.play(); - QCOMPARE(player.media(), QMediaContent()); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(stateSpy.count(), 10); - QCOMPARE(mediaSpy.count(), 8); - - player.setMedia(content1); - player.play(); - - QCOMPARE(player.media(), content1); - QCOMPARE(player.state(), QMediaPlayer::PlayingState); - QCOMPARE(stateSpy.count(), 11); - QCOMPARE(mediaSpy.count(), 9); - */ - - // Test deleting the playlist stops the player and clears the media it set. - delete playlist; - QCOMPARE(player.media(), QMediaContent()); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(stateSpy.count(), 4); - QCOMPARE(mediaSpy.count(), 1); - - // Test the player works as normal with the playlist removed. - player.play(); - QCOMPARE(player.media(), QMediaContent()); - QCOMPARE(player.state(), QMediaPlayer::StoppedState); - QCOMPARE(stateSpy.count(), 4); - QCOMPARE(mediaSpy.count(), 1); - - player.setMedia(content1); - player.play(); - - QCOMPARE(player.media(), content1); - QCOMPARE(player.state(), QMediaPlayer::PlayingState); - QCOMPARE(stateSpy.count(), 4); - QCOMPARE(mediaSpy.count(), 2); -} - -QTEST_MAIN(tst_QMediaPlayer) - -#include "tst_qmediaplayer.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaplayer_s60/qmediaplayer_s60.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/symbian/qmediaplayer_s60/qmediaplayer_s60.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,17 @@ +TARGET = tst_qmediaplayer_s60 +INCLUDEPATH += ../../../../src/multimedia \ + ../../../../include +CONFIG += testcase + +QT += testlib + +SOURCES += tst_qmediaplayer_s60.cpp + +include (../../../../common.pri) + +CONFIG += mobility +MOBILITY = multimedia + +testFiles.sources = testfiles\* +testFiles.path = /Data/testfiles +DEPLOYMENT += testFiles \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaplayer_s60/tst_qmediaplayer_s60.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/symbian/qmediaplayer_s60/tst_qmediaplayer_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1588 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include + #include + +#include +#include +#include +#include +#include +#include + +QTM_USE_NAMESPACE + +#define WAIT_FOR_CONDITION(a,e) \ + for (int _i = 0; _i < 500; _i += 1) { \ + if ((a) == (e)) break; \ + QTest::qWait(10);} + + +#define WAIT_LONG_FOR_CONDITION(a,e) \ + for (int _i = 0; _i < 1800; _i += 1) { \ + if ((a) == (e)) break; \ + QTest::qWait(100);} + +class mediaStatusList : public QObject, public QList +{ + Q_OBJECT +public slots: + void mediaStatus(QMediaPlayer::MediaStatus status) { + append(status); + } + +public: + mediaStatusList(QObject *obj, const char *aSignal) + : QObject() + { + connect(obj, aSignal, this, SLOT(mediaStatus(QMediaPlayer::MediaStatus))); + } +}; + +class MockProvider : public QMediaServiceProvider +{ +public: + MockProvider(QMediaService *service):mockService(service) {} + QMediaService *requestService(const QByteArray &, const QMediaServiceProviderHint &) + { + return mockService; + } + + void releaseService(QMediaService *service) { delete service; } + + QMediaService *mockService; +}; + +class tst_QMediaPlayer: public QObject +{ + Q_OBJECT + +public slots: + void initTestCase_data(); + void initTestCase_data_default_winscw(); + void initTestCase_data_default_armv5(); + void initTestCase_data_50_winscw(); + void initTestCase_data_50_armv5(); + void initTestCase_data_32_winscw(); + void initTestCase_data_32_armv5(); + void initTestCase_data_31_winscw(); + void initTestCase_data_31_armv5(); + void initTestCase(); + void cleanupTestCase(); + void init(); + void cleanup(); + +private slots: +void testPositionWhilePlaying(); + void testNullService(); + void testMedia(); + void testDuration(); + void testPosition(); + + void testVolume(); + void testVolumeWhilePlaying(); + void testMuted(); + void testMutedWhilePlaying(); + void testVideoAndAudioAvailability(); + void testError(); + void testPlay(); + void testPause(); + void testStop(); + void testMediaStatus(); + void testPlaylist(); + void testPlaybackRate(); + void testPlaybackRateWhilePlaying(); + + +private: + QMediaPlayer *m_player; + QVideoWidget *m_widget; + bool runonce; +}; + +void tst_QMediaPlayer::initTestCase_data() +{ +#ifdef __WINSCW__ + if(QSysInfo::s60Version() == QSysInfo::SV_S60_3_1) + initTestCase_data_31_winscw(); + else if(QSysInfo::s60Version() == QSysInfo::SV_S60_3_2) + initTestCase_data_32_winscw(); + else if(QSysInfo::s60Version() == QSysInfo::SV_S60_5_0) + initTestCase_data_50_winscw(); + else + initTestCase_data_default_winscw(); +#else + if(QSysInfo::s60Version() == QSysInfo::SV_S60_3_1) + initTestCase_data_31_armv5(); + else if(QSysInfo::s60Version() == QSysInfo::SV_S60_3_2) + initTestCase_data_32_armv5(); + else if(QSysInfo::s60Version() == QSysInfo::SV_S60_5_0) + initTestCase_data_50_armv5(); + else + initTestCase_data_default_armv5(); +#endif +} + +void tst_QMediaPlayer::initTestCase_data_default_winscw() +{ + //TODO: add data +} + +void tst_QMediaPlayer::initTestCase_data_default_armv5() +{ + //TODO: add data +} + +void tst_QMediaPlayer::initTestCase_data_50_winscw() +{ + QTest::addColumn("valid"); + QTest::addColumn("state"); + QTest::addColumn("status"); + QTest::addColumn("mediaContent"); + QTest::addColumn("duration"); + QTest::addColumn("position"); + QTest::addColumn("seekable"); + QTest::addColumn("seekableWhilePlaying"); + QTest::addColumn("volume"); + QTest::addColumn("videoAvailable"); + QTest::addColumn("audioAvailable"); + QTest::addColumn("playbackRate"); + QTest::addColumn("error"); + QTest::addColumn("errorString"); + + QTest::newRow("TestDataNull") + << false //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::NoMedia // status + << QMediaContent() // mediaContent + << qint64(-1) // duration + << qint64(0) // position + << false // seekable + << false // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << false //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::NoError // error + << QString(); // errorString + + QTest::newRow("test_3GPP.dat") + << true //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_3GPP.dat")) // mediaContent + << qint64(7200) // duration + << qint64(3600) // position (duration/2) + << true // seekable + << false // seekableWhilePlaying + << 50 // volume + << true // videoAvailable + << true //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::NoError // error + << QString(); // errorString + + QTest::newRow("test_3gp.3gp") + << true //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_3gp.3gp")) // mediaContent + << qint64(46860) // duration + << qint64(23430) // position (duration/2) + << true // seekable + << true // seekableWhilePlaying + << 50 // volume + << true // videoAvailable + << true //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::NoError // error + << QString(); // errorString + + QTest::newRow("test_mp4.mp4") + << true //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_mp4.mp4")) // mediaContent + << qint64(2701) // duration + << qint64(1351) // position (duration/2) + << true // seekable + << true // seekableWhilePlaying + << 50 // volume + << true // videoAvailable + << false //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::FormatError // error + << QString(); // errorString + + QTest::newRow("test_MP4.dat") + << false //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::InvalidMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_MP4.dat")) // mediaContent + << qint64(-1) // duration + << qint64(0) // position (duration/2) + << true // seekable + << false // seekableWhilePlaying + << 50 // volume + << true // videoAvailable + << false //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::AccessDeniedError// error + << QString(); // errorString + + QTest::newRow("test_wmv9.wmv") + << true //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_wmv9.wmv")) // mediaContent + << qint64(169389) // duration + << qint64(84695) // position (duration/2) + << true // seekable + << false // seekableWhilePlaying + << 50 // volume + << true // videoAvailable + << false //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::FormatError // error + << QString(); // errorString + + QTest::newRow("test_h264_qcif.264") + << false //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::InvalidMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_h264_qcif.264")) // mediaContent + << qint64(-1) // duration + << qint64(0) // position (duration/2) + << false // seekable + << false // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << false //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::ResourceError // error + << QString(); // errorString + + QTest::newRow("test_RM.dat") + << true //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_RM.dat")) // mediaContent + << qint64(20245) // duration + << qint64(10123) // position (duration/2) + << true // seekable + << false // seekableWhilePlaying + << 50 // volume + << true // videoAvailable + << true //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::NoError // error + << QString(); // errorString + + QTest::newRow("test_SWF.dat") + << false //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::InvalidMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_SWF.dat")) // mediaContent + << qint64(-1) // duration + << qint64(0) // position (duration/2) + << false // seekable + << false // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << false //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::ResourceError // error + << QString(); // errorString + + QTest::newRow("test_WMV.dat") + << true //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_WMV.dat")) // mediaContent + << qint64(3098) // duration + << qint64(1549) // position (duration/2) + << true // seekable + << false // seekableWhilePlaying, on emulator codec leaks memory and causes alloc panic on dtor + << 50 // volume + << true // videoAvailable + << false //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::FormatError // error + << QString(); // errorString + + QTest::newRow("test_WMA.dat") + << false //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::InvalidMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_WMA.dat")) // mediaContent + << qint64(-1) // duration + << qint64(0) // position (duration/2) + << true // seekable + << false // seekableWhilePlaying + << 50 // volume + << true // videoAvailable + << false //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::AccessDeniedError // error + << QString(); // errorString + + QTest::newRow("test_flash_video.flv") + << false // valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::InvalidMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_flash_video.flv")) // mediaContent + << qint64(-1) // duration + << qint64(0) // position + << false // seekable + << false // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << false //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::ResourceError // error + << QString(); // errorString + + QTest::newRow("test_MXMF.dat") + << true //valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_MXMF.dat")) // mediaContent + << qint64(31980) // duration + << qint64(15990) // position (duration/2) + << true // seekable + << true // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << true //audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::NoError // error + << QString(); // errorString + + QTest::newRow("test_amr.amr") + << true // valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_amr.amr")) // mediaContent + << qint64(14402) // duration + << qint64(7200) // position + << true // seekable + << false // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << true // audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::NoError // error + << QString(); // errorString + + QTest::newRow("test_AMR.dat") + << true // valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_AMR.dat")) // mediaContent + << qint64(38509) // duration + << qint64(19255) // position + << true // seekable + << false // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << true // audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::NoError // error + << QString(); // errorString + + QTest::newRow("test_mp3.mp3") + << false // valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::InvalidMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_mp3.mp3")) // mediaContent + << qint64(-1) //qint64(102044) duration + << qint64(0) // position + << false // seekable + << false // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << false // audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::ResourceError // error + << QString(); // errorString + + QTest::newRow("test_MP3.dat") + << false // valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::InvalidMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_MP3.dat")) // mediaContent + << qint64(-1) //qint64(102044) duration + << qint64(0) // position + << false // seekable + << false // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << false // audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::ResourceError // error + << QString(); // errorString + + QTest::newRow("test_MIDI.dat") + << true // valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_MIDI.dat")) // mediaContent + << qint64(32782) // duration + << qint64(16391) // position + << true // seekable + << true // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << true // audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::NoError // error + << QString(); // errorString + + QTest::newRow("test_ACC.dat") + << false // valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::InvalidMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_ACC.dat")) // mediaContent + << qint64(-1) // duration + << qint64(0) // position + << false // seekable + << false // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << false // audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::ResourceError // error + << QString(); // errorString + + QTest::newRow("test_WAV.dat") + << true // valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::LoadedMedia // status + << QMediaContent(QUrl("file:///C:/data/testfiles/test_WAV.dat")) // mediaContent + << qint64(2864) // duration + << qint64(1432) // position + << true // seekable + << true // seekableWhilePlaying + << 50 // volume + << false // videoAvailable + << true // audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::NoError // error + << QString(); // errorString + + QTest::newRow("test_stream") + << false // valid + << QMediaPlayer::StoppedState // state + << QMediaPlayer::InvalidMedia // status + << QMediaContent(QUrl("rtsp://v3.cache4.c.youtube.com/CkgLENy73wIaPwlU2rm7yu8PFhMYESARFEIJbXYtZ29vZ2xlSARSB3JlbGF0ZWRaDkNsaWNrVGh1bWJuYWlsYPi6_IXT2rvpSgw=/0/0/0/video.3gp")) // mediaContent + << qint64(-1) // duration + << qint64(0) // position + << false // seekable + << false // seekableWhilePlaying + << 50 // volume + << true // videoAvailable + << false // audioAvailable + << qreal(0) // playbackRate + << QMediaPlayer::AccessDeniedError // error + << QString(); // errorString +} + +void tst_QMediaPlayer::initTestCase_data_50_armv5() +{ + //TODO: add data +} + +void tst_QMediaPlayer::initTestCase_data_32_winscw() +{ + //TODO: add data +} + +void tst_QMediaPlayer::initTestCase_data_32_armv5() +{ + //TODO: add data +} + +void tst_QMediaPlayer::initTestCase_data_31_winscw() +{ + //backend does not compile on winscw due missing libs. +} + +void tst_QMediaPlayer::initTestCase_data_31_armv5() +{ + //TODO: add data +} + +void tst_QMediaPlayer::initTestCase() +{ + m_player = new QMediaPlayer(); + + // Symbian back end needs coecontrol for creation. + m_widget = new QVideoWidget(); + m_widget->setMediaObject(m_player); + m_widget->show(); + runonce = false; +} + +void tst_QMediaPlayer::cleanupTestCase() +{ + delete m_player; + delete m_widget; +} + +void tst_QMediaPlayer::init() +{ + qRegisterMetaType("QMediaPlayer::State"); + qRegisterMetaType("QMediaPlayer::Error"); + qRegisterMetaType("QMediaPlayer::MediaStatus"); + qRegisterMetaType("QMediaContent"); +} + +void tst_QMediaPlayer::cleanup() +{ +} + +void tst_QMediaPlayer::testNullService() +{ + if(runonce) + return; + MockProvider provider(0); + QMediaPlayer player(0, 0, &provider); + + const QIODevice *nullDevice = 0; + + QCOMPARE(player.media(), QMediaContent()); + QCOMPARE(player.mediaStream(), nullDevice); + QCOMPARE(player.state(), QMediaPlayer::StoppedState); + QCOMPARE(player.mediaStatus(), QMediaPlayer::UnknownMediaStatus); + QCOMPARE(player.duration(), qint64(-1)); + QCOMPARE(player.position(), qint64(0)); + QCOMPARE(player.volume(), 0); + QCOMPARE(player.isMuted(), false); + QCOMPARE(player.isVideoAvailable(), false); + QCOMPARE(player.bufferStatus(), 0); + QCOMPARE(player.isSeekable(), false); + QCOMPARE(player.playbackRate(), qreal(0)); + QCOMPARE(player.error(), QMediaPlayer::ServiceMissingError); + + { + QFETCH_GLOBAL(QMediaContent, mediaContent); + + QSignalSpy spy(&player, SIGNAL(mediaChanged(QMediaContent))); + QFile file; + + player.setMedia(mediaContent, &file); + QCOMPARE(player.media(), QMediaContent()); + QCOMPARE(player.mediaStream(), nullDevice); + QCOMPARE(spy.count(), 0); + } { + QSignalSpy stateSpy(&player, SIGNAL(stateChanged(QMediaPlayer::State))); + QSignalSpy statusSpy(&player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus))); + + player.play(); + QCOMPARE(player.state(), QMediaPlayer::StoppedState); + QCOMPARE(player.mediaStatus(), QMediaPlayer::UnknownMediaStatus); + QCOMPARE(stateSpy.count(), 0); + QCOMPARE(statusSpy.count(), 0); + + player.pause(); + QCOMPARE(player.state(), QMediaPlayer::StoppedState); + QCOMPARE(player.mediaStatus(), QMediaPlayer::UnknownMediaStatus); + QCOMPARE(stateSpy.count(), 0); + QCOMPARE(statusSpy.count(), 0); + + player.stop(); + QCOMPARE(player.state(), QMediaPlayer::StoppedState); + QCOMPARE(player.mediaStatus(), QMediaPlayer::UnknownMediaStatus); + QCOMPARE(stateSpy.count(), 0); + QCOMPARE(statusSpy.count(), 0); + } { + QFETCH_GLOBAL(int, volume); + + QSignalSpy volumeSpy(&player, SIGNAL(volumeChanged(int))); + QSignalSpy mutingSpy(&player, SIGNAL(mutedChanged(bool))); + + player.setVolume(volume); + QCOMPARE(player.volume(), 0); + QCOMPARE(volumeSpy.count(), 0); + + player.setMuted(false); + QCOMPARE(player.isMuted(), false); + QCOMPARE(mutingSpy.count(), 0); + } { + QFETCH_GLOBAL(qint64, position); + + QSignalSpy spy(&player, SIGNAL(positionChanged(qint64))); + + player.setPosition(position); + QCOMPARE(player.position(), qint64(0)); + QCOMPARE(spy.count(), 0); + } { + QFETCH_GLOBAL(qreal, playbackRate); + + QSignalSpy spy(&player, SIGNAL(playbackRateChanged(qreal))); + + player.setPlaybackRate(playbackRate); + QCOMPARE(player.playbackRate(), qreal(0)); + QCOMPARE(spy.count(), 0); + } { + QMediaPlaylist playlist; + playlist.setMediaObject(&player); + + QSignalSpy mediaSpy(&player, SIGNAL(mediaChanged(QMediaContent))); + QSignalSpy statusSpy(&player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus))); + + playlist.addMedia(QUrl("http://example.com/stream")); + playlist.addMedia(QUrl("file:///some.mp3")); + + playlist.setCurrentIndex(0); + QCOMPARE(playlist.currentIndex(), 0); + QCOMPARE(player.media(), QMediaContent()); + QCOMPARE(mediaSpy.count(), 0); + QCOMPARE(statusSpy.count(), 0); + + playlist.next(); + QCOMPARE(playlist.currentIndex(), 1); + QCOMPARE(player.media(), QMediaContent()); + QCOMPARE(mediaSpy.count(), 0); + QCOMPARE(statusSpy.count(), 0); + } + runonce = true; +} + +void tst_QMediaPlayer::testMedia() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); + m_player->setMedia(mediaContent); + QTest::qWait(500); + QCOMPARE(m_player->media(), mediaContent); +} + + +void tst_QMediaPlayer::testDuration() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(qint64, duration); + QFETCH_GLOBAL(bool, valid); + + QSignalSpy spy(m_player, SIGNAL(durationChanged(qint64))); + m_player->setMedia(mediaContent); + + if(valid) { + WAIT_FOR_CONDITION(spy.count(), 1); + } else { + WAIT_FOR_CONDITION(m_player->mediaStatus(), (QMediaPlayer::NoMedia || QMediaPlayer::InvalidMedia)); + } + + QVERIFY(m_player->duration() == duration); + //qDebug()<duration()<error();; +} + +void tst_QMediaPlayer::testPosition() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(qint64, duration); + QFETCH_GLOBAL(bool, valid); + QFETCH_GLOBAL(bool, seekable); + QFETCH_GLOBAL(qint64, position); + QFETCH_GLOBAL(QMediaPlayer::MediaStatus, status); + + m_player->setMedia(mediaContent); + + if (valid) { + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + + QCOMPARE(m_player->isSeekable(), seekable); + QCOMPARE(m_player->mediaStatus(), status); + + // preset position + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->setPosition(position); + QCOMPARE(m_player->position(), position); + QCOMPARE(spy.count(), 1); + QCOMPARE(spy.at(0).at(0).toLongLong(), position);} + + // same pos second time + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->setPosition(position); + QCOMPARE(m_player->position(), position); + QCOMPARE(spy.count(), 0);} + + //zero pos + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->setPosition(0); + QCOMPARE(m_player->position(), qint64(0)); + QCOMPARE(spy.count(), 1); + QCOMPARE(spy.at(0).at(0).toLongLong(), qint64(0));} + + //end pos + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->setPosition(duration); + QCOMPARE(m_player->position(), duration); + QCOMPARE(spy.count(), 1); + QCOMPARE(spy.at(0).at(0).toLongLong(), duration);} + + //negative pos + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->setPosition(qint64(-1)); + QCOMPARE(m_player->position(), qint64(0)); + QCOMPARE(spy.count(), 1); + QCOMPARE(spy.at(0).at(0).toLongLong(), qint64(0));} + + //over duration + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->setPosition(duration+1); + QCOMPARE(m_player->position(), duration); + QCOMPARE(spy.count(), 1); + QCOMPARE(spy.at(0).at(0).toLongLong(), duration);} + + } else { + WAIT_FOR_CONDITION(m_player->mediaStatus(), (QMediaPlayer::NoMedia || QMediaPlayer::InvalidMedia)); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->isSeekable(), seekable); + QCOMPARE(m_player->mediaStatus(), status); + } +} + +void tst_QMediaPlayer::testPositionWhilePlaying() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(qint64, duration); + QFETCH_GLOBAL(bool, seekableWhilePlaying); + QFETCH_GLOBAL(bool, seekable); + QFETCH_GLOBAL(qint64, position); + QFETCH_GLOBAL(bool, valid); + QFETCH_GLOBAL(QMediaPlayer::MediaStatus, status); + + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), (QMediaPlayer::NoMedia || QMediaPlayer::InvalidMedia || QMediaPlayer::LoadedMedia)); + + //qDebug()<<""; + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->isSeekable(), seekable); + QCOMPARE(m_player->mediaStatus(), status); + + if (seekableWhilePlaying) { + QCOMPARE(m_player->isSeekable(), seekableWhilePlaying); + + // preset position + //qDebug()<<"preset"; + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + m_player->setPosition(position); + WAIT_FOR_CONDITION(spy.count(), 2); + QVERIFY(m_player->mediaStatus() == QMediaPlayer::BufferingMedia || + m_player->mediaStatus() == QMediaPlayer::BufferedMedia); + + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QVERIFY(m_player->position()>=position); + QVERIFY(spy.count()!=0);} + + //reset position + m_player->stop(); + m_player->setPosition(position); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + + //zero pos + //qDebug()<<"zero"; + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + m_player->setPosition(0); + WAIT_FOR_CONDITION(spy.count(), 2); + QVERIFY(m_player->mediaStatus() == QMediaPlayer::BufferingMedia || + m_player->mediaStatus() == QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QVERIFY(m_player->position() >= qint64(0)); + QVERIFY(spy.count()!=0);} + + //reset position + m_player->stop(); + m_player->setPosition(position); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + + //end pos + //qDebug()<<"dur"; + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + m_player->setPosition(duration); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::EndOfMedia); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::EndOfMedia); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->position(), qint64(0)); + QVERIFY(spy.count()!=0);} + + //reset position + m_player->stop(); + m_player->setPosition(position); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + + //negative pos + //qDebug()<<"negavite"; + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + m_player->setPosition(qint64(-1)); + WAIT_FOR_CONDITION(spy.count(), 2); + QVERIFY(m_player->mediaStatus() == QMediaPlayer::BufferingMedia || + m_player->mediaStatus() == QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QVERIFY(m_player->position() >= qint64(0)); + QVERIFY(spy.count()!=0);} + + //reset position + m_player->stop(); + m_player->setPosition(position); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + + //over duration + //qDebug()<<"over"; + { QSignalSpy spy(m_player, SIGNAL(positionChanged(qint64))); + m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + m_player->setPosition(duration+1); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::EndOfMedia); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::EndOfMedia); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->position(), qint64(0)); + QVERIFY(spy.count()!=0);} + + } else + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + + m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + //qDebug()<<"end"; +} + + +void tst_QMediaPlayer::testVolume() +{ + QFETCH_GLOBAL(int, volume); + + // preset volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + m_player->setVolume(volume); + QCOMPARE(m_player->volume(), volume); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 1);} + + // same volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + int currentVolume = m_player->volume(); + m_player->setVolume(currentVolume); + QCOMPARE(m_player->volume(), currentVolume); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 0);} + + // zero volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + m_player->setVolume(0); + QCOMPARE(m_player->volume(), 0); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 1);} + + // max volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + m_player->setVolume(100); + QCOMPARE(m_player->volume(), 100); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 1);} + + // negative volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + m_player->setVolume(int(-1)); + QCOMPARE(m_player->volume(), 0); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 1);} + + // over max volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + m_player->setVolume(1000); + QCOMPARE(m_player->volume(), 100); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 1);} +} + +void tst_QMediaPlayer::testVolumeWhilePlaying() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(int, volume); + QFETCH_GLOBAL(bool, valid); + + if (valid) { + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + + m_player->play(); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + + // preset volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + m_player->setVolume(volume); + QCOMPARE(m_player->volume(), volume); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 1);} + + // same volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + int currentVolume = m_player->volume(); + m_player->setVolume(currentVolume); + QCOMPARE(m_player->volume(), currentVolume); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 0);} + + // zero volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + m_player->setVolume(0); + QCOMPARE(m_player->volume(), 0); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 1);} + + // max volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + m_player->setVolume(100); + QCOMPARE(m_player->volume(), 100); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 1);} + + // negative volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + m_player->setVolume(int(-1)); + QCOMPARE(m_player->volume(), 0); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 1);} + + // over max volume + { QSignalSpy spy(m_player, SIGNAL(volumeChanged(int))); + m_player->setVolume(1000); + QCOMPARE(m_player->volume(), 100); + QCOMPARE(m_player->isMuted(), false); + QCOMPARE(spy.count(), 1);} + + m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + } +} + + +void tst_QMediaPlayer::testMuted() +{ + QFETCH_GLOBAL(int, volume); + + //reset mute & volume + m_player->setMuted(false); + m_player->setVolume(0); + QVERIFY(m_player->isMuted() == false); + QCOMPARE(m_player->volume(), 0); + + // set muted + {QSignalSpy spy(m_player, SIGNAL(mutedChanged(bool))); + m_player->setMuted(true); + QCOMPARE(spy.count(), 1); + QVERIFY(m_player->isMuted() == true);} + + // set muted again + {QSignalSpy spy(m_player, SIGNAL(mutedChanged(bool))); + m_player->setMuted(true); + QCOMPARE(spy.count(), 0); + QVERIFY(m_player->isMuted() == true);} + + // unmute + {QSignalSpy spy(m_player, SIGNAL(mutedChanged(bool))); + m_player->setMuted(false); + QCOMPARE(spy.count(), 1); + QVERIFY(m_player->isMuted() == false);} + + // set volume while muted + {QSignalSpy muteSpy(m_player, SIGNAL(mutedChanged(bool))); + QSignalSpy volumeSpy(m_player, SIGNAL(volumeChanged(int))); + m_player->setMuted(true); + m_player->setVolume(volume); + QCOMPARE(m_player->volume(), volume); + QCOMPARE(muteSpy.count(), 1); + QCOMPARE(volumeSpy.count(), 1); + QVERIFY(m_player->isMuted() == true);} +} + +void tst_QMediaPlayer::testMutedWhilePlaying() +{ + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(int, volume); + QFETCH_GLOBAL(bool, valid); + + if (valid) { + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + + //reset mute & volume + m_player->setMuted(false); + m_player->setVolume(65); + QVERIFY(m_player->isMuted() == false); + QCOMPARE(m_player->volume(), 65); + + m_player->play(); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + + // set muted + {QSignalSpy spy(m_player, SIGNAL(mutedChanged(bool))); + m_player->setMuted(true); + QCOMPARE(spy.count(), 1); + QVERIFY(m_player->isMuted() == true);} + + // set muted again + {QSignalSpy spy(m_player, SIGNAL(mutedChanged(bool))); + m_player->setMuted(true); + QCOMPARE(spy.count(), 0); + QVERIFY(m_player->isMuted() == true);} + + // unmute + {QSignalSpy spy(m_player, SIGNAL(mutedChanged(bool))); + m_player->setMuted(false); + QCOMPARE(spy.count(), 1); + QVERIFY(m_player->isMuted() == false);} + + // set volume while muted + {QSignalSpy muteSpy(m_player, SIGNAL(mutedChanged(bool))); + QSignalSpy volumeSpy(m_player, SIGNAL(volumeChanged(int))); + m_player->setMuted(true); + m_player->setVolume(volume); + QCOMPARE(m_player->volume(), volume); + QCOMPARE(muteSpy.count(), 1); + QCOMPARE(volumeSpy.count(), 1); + QVERIFY(m_player->isMuted() == true);} + + m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + } +} + + +void tst_QMediaPlayer::testVideoAndAudioAvailability() +{ + QFETCH_GLOBAL(bool, videoAvailable); + QFETCH_GLOBAL(bool, audioAvailable); + QFETCH_GLOBAL(bool, valid); + QFETCH_GLOBAL(QMediaContent, mediaContent); + + if(valid) { + QSignalSpy audioAvailableSpy(m_player, SIGNAL(audioAvailableChanged(bool))); + QSignalSpy videoAvailableSpy(m_player, SIGNAL(videoAvailableChanged(bool))); + + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + + QVERIFY(m_player->isVideoAvailable() == videoAvailable); + QVERIFY(m_player->isAudioAvailable() == audioAvailable); + + QCOMPARE(audioAvailableSpy.count(), 1); + QCOMPARE(videoAvailableSpy.count(), 1); + } +} + +void tst_QMediaPlayer::testError() +{ + QFETCH_GLOBAL(QMediaPlayer::Error, error); + QFETCH_GLOBAL(bool, videoAvailable); + QFETCH_GLOBAL(bool, audioAvailable); + QFETCH_GLOBAL(bool, valid); + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(QMediaPlayer::State, state); + QFETCH_GLOBAL(QMediaPlayer::MediaStatus, status); + + QSignalSpy errorSpy(m_player, SIGNAL(error(QMediaPlayer::Error))); + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), (QMediaPlayer::NoMedia || QMediaPlayer::InvalidMedia || QMediaPlayer::LoadedMedia)); + QVERIFY(m_player->mediaStatus() == status); + QVERIFY(m_player->state() == state); + QVERIFY(m_player->error() == error); + QVERIFY(m_player->isVideoAvailable() == videoAvailable); + QVERIFY(m_player->isAudioAvailable() == audioAvailable); + if (error != QMediaPlayer::NoError) { + QVERIFY(errorSpy.count()!=0); + } +} + +void tst_QMediaPlayer::testPlay() +{ + QFETCH_GLOBAL(bool, valid); + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(QMediaPlayer::State, state); + + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), (QMediaPlayer::NoMedia || QMediaPlayer::InvalidMedia || QMediaPlayer::LoadedMedia)); + QVERIFY(m_player->state() == state); + QVERIFY(m_player->media() == mediaContent); + QSignalSpy spy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->play(); + + if(valid) { + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QCOMPARE(spy.count(), state == QMediaPlayer::PlayingState ? 0 : 1); + + //Play->Play + {QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QSignalSpy stateSpy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->play(); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QCOMPARE(stateSpy.count(), 0);} + + //Play->Pause + {QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QSignalSpy stateSpy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->pause(); + QCOMPARE(m_player->state(), QMediaPlayer::PausedState); + QCOMPARE(stateSpy.count(), 1);} + + //Play->Stop + {m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QSignalSpy stateSpy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(stateSpy.count(), 1);} + + } else { + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(spy.count(), 0); + } + + m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); +} + +void tst_QMediaPlayer::testPause() +{ + QFETCH_GLOBAL(bool, valid); + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(QMediaPlayer::State, state); + + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), (QMediaPlayer::NoMedia || QMediaPlayer::InvalidMedia || QMediaPlayer::LoadedMedia)); + QVERIFY(m_player->state() == state); + QVERIFY(m_player->media() == mediaContent); + QSignalSpy spy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->pause(); + + if(valid) { + QCOMPARE(m_player->state(), QMediaPlayer::PausedState); + QCOMPARE(spy.count(), 1); + + //Pause->Play + {QCOMPARE(m_player->state(), QMediaPlayer::PausedState); + QSignalSpy stateSpy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->play(); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QCOMPARE(stateSpy.count(), 1);} + + //Pause->Pause + {m_player->pause(); + QCOMPARE(m_player->state(), QMediaPlayer::PausedState); + QSignalSpy stateSpy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->pause(); + QCOMPARE(m_player->state(), QMediaPlayer::PausedState); + QCOMPARE(stateSpy.count(), 0);} + + //Pause->Stop + {QCOMPARE(m_player->state(), QMediaPlayer::PausedState); + QSignalSpy stateSpy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(stateSpy.count(), 1);} + } else { + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(spy.count(), 0); + } + m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); +} + +void tst_QMediaPlayer::testStop() +{ + QFETCH_GLOBAL(bool, valid); + QFETCH_GLOBAL(QMediaContent, mediaContent); + QFETCH_GLOBAL(QMediaPlayer::State, state); + + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), (QMediaPlayer::NoMedia || QMediaPlayer::InvalidMedia || QMediaPlayer::LoadedMedia)); + QVERIFY(m_player->state() == state); + QVERIFY(m_player->media() == mediaContent); + + QSignalSpy spy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->stop(); + + if(valid) { + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(spy.count(), 0); + + //Stop->Play + {QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QSignalSpy stateSpy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->play(); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QCOMPARE(stateSpy.count(), 1);} + + //Stop->Pause + {m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QSignalSpy stateSpy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->pause(); + QCOMPARE(m_player->state(), QMediaPlayer::PausedState); + QCOMPARE(stateSpy.count(), 1);} + + //Stop->Stop + {m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QSignalSpy stateSpy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(stateSpy.count(), 0);} + } else { + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(spy.count(), 0); + } + + m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); +} + +void tst_QMediaPlayer::testMediaStatus() +{ + QFETCH_GLOBAL(bool, valid); + QFETCH_GLOBAL(QMediaContent, mediaContent); + + QSignalSpy statusSpy(m_player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus))); + mediaStatusList list(m_player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus))); + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), (QMediaPlayer::NoMedia || QMediaPlayer::InvalidMedia || QMediaPlayer::LoadedMedia)); + + if(valid) { + QCOMPARE(statusSpy.count(), 3); + QCOMPARE(list.count(), 3); + QCOMPARE(list.at(0), QMediaPlayer::UnknownMediaStatus); + QCOMPARE(list.at(1), QMediaPlayer::LoadingMedia); + QCOMPARE(list.at(2), QMediaPlayer::LoadedMedia); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + + m_player->play(); + {WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia);} + QCOMPARE(statusSpy.count(), 5); + QCOMPARE(list.count(), 5); + QCOMPARE(list.at(3), QMediaPlayer::BufferingMedia); + QCOMPARE(list.at(4), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + + {WAIT_LONG_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::EndOfMedia);} + QVERIFY(statusSpy.count() > 4); + QVERIFY(list.count() > 4); + QCOMPARE(list.last(), QMediaPlayer::EndOfMedia); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::EndOfMedia); + } else if (mediaContent.isNull()) { + QCOMPARE(statusSpy.count(), 2); + QCOMPARE(list.count(), 2); + QCOMPARE(list.at(0), QMediaPlayer::UnknownMediaStatus); + QCOMPARE(list.at(1), QMediaPlayer::NoMedia); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::NoMedia); + m_player->play(); + QCOMPARE(statusSpy.count(), 2); + QCOMPARE(list.count(), 2); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::NoMedia); + } else if(statusSpy.count() > 2) { + QCOMPARE(statusSpy.count(), 3); + QCOMPARE(list.count(), 3); + QCOMPARE(list.at(0), QMediaPlayer::UnknownMediaStatus); + QCOMPARE(list.at(1), QMediaPlayer::LoadingMedia); + QCOMPARE(list.at(2), QMediaPlayer::InvalidMedia); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::InvalidMedia); + m_player->play(); + QCOMPARE(statusSpy.count(), 3); + QCOMPARE(list.count(), 3); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::InvalidMedia); + } else { + QCOMPARE(statusSpy.count(), 2); + QCOMPARE(list.count(), 2); + QCOMPARE(list.at(0), QMediaPlayer::UnknownMediaStatus); + QCOMPARE(list.at(1), QMediaPlayer::InvalidMedia); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::InvalidMedia); + m_player->play(); + QCOMPARE(statusSpy.count(), 2); + QCOMPARE(list.count(), 2); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::InvalidMedia); + } + + m_player->stop(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); +} + +void tst_QMediaPlayer::testPlaylist() +{ + if(!runonce) { + QMediaContent content0(QUrl(QLatin1String("file:///C:/data/testfiles/test_mp4.mp4"))); + QMediaContent content1(QUrl(QLatin1String("file:///C:/data/testfiles/test_WAV.dat"))); + QMediaContent content2(QUrl(QLatin1String("file:///C:/data/testfiles/test_mp4.mp4"))); + QMediaContent content3(QUrl(QLatin1String("file:///C:/data/testfiles/test_WAV.dat"))); + QMediaContent content4(QUrl(QLatin1String("file:///C:/data/testfiles/test_MIDI.dat"))); + + QMediaPlaylist *playlist = new QMediaPlaylist(m_player); + playlist->setMediaObject(m_player); + + QSignalSpy stateSpy(m_player, SIGNAL(stateChanged(QMediaPlayer::State))); + QSignalSpy mediaSpy(m_player, SIGNAL(mediaChanged(QMediaContent))); + + // Test the player does nothing with an empty playlist attached. + m_player->play(); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->media(), QMediaContent()); + QCOMPARE(stateSpy.count(), 0); + QCOMPARE(mediaSpy.count(), 0); + + playlist->addMedia(content0); + playlist->addMedia(content1); + playlist->addMedia(content2); + playlist->addMedia(content3); + + // Test changing the playlist position, changes the current media, but not the playing state. + playlist->setCurrentIndex(1); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + QCOMPARE(m_player->media(), content1); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + QCOMPARE(stateSpy.count(), 0); + QCOMPARE(mediaSpy.count(), 1); + + // Test playing starts with the current media. + m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->media(), content1); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QVERIFY(m_player->mediaStatus() == (QMediaPlayer::BufferedMedia||QMediaPlayer::BufferingMedia)); + QCOMPARE(stateSpy.count(), 1); + QCOMPARE(mediaSpy.count(), 1); + + // Test pausing doesn't change the current media. + m_player->pause(); + QCOMPARE(m_player->media(), content1); + QCOMPARE(m_player->state(), QMediaPlayer::PausedState); + QVERIFY(m_player->mediaStatus() == (QMediaPlayer::BufferedMedia||QMediaPlayer::BufferingMedia)); + QCOMPARE(stateSpy.count(), 2); + QCOMPARE(mediaSpy.count(), 1); + + // Test stopping doesn't change the current media. + m_player->stop(); + QCOMPARE(m_player->media(), content1); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + QCOMPARE(stateSpy.count(), 3); + QCOMPARE(mediaSpy.count(), 1); + + // Test when the player service reaches the end of the current media, the player moves onto + // the next item without stopping. + m_player->play(); + QCOMPARE(m_player->media(), content1); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QCOMPARE(stateSpy.count(), 4); + QCOMPARE(mediaSpy.count(), 1); + + WAIT_FOR_CONDITION(mediaSpy.count(), 2); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->media(), content2); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QVERIFY(m_player->mediaStatus() == (QMediaPlayer::BufferedMedia||QMediaPlayer::BufferingMedia)); + QCOMPARE(stateSpy.count(), 6); + QCOMPARE(mediaSpy.count(), 2); + + // Test skipping the current media doesn't change the state. + playlist->next(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->media(), content3); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QVERIFY(m_player->mediaStatus() == (QMediaPlayer::BufferedMedia||QMediaPlayer::BufferingMedia)); + QCOMPARE(stateSpy.count(), 6); + QCOMPARE(mediaSpy.count(), 3); + + // Test changing the current media while paused doesn't change the state. + m_player->pause(); + QCOMPARE(m_player->media(), content3); + QCOMPARE(m_player->state(), QMediaPlayer::PausedState); + QVERIFY(m_player->mediaStatus() == (QMediaPlayer::BufferedMedia||QMediaPlayer::BufferingMedia)); + QCOMPARE(stateSpy.count(), 7); + QCOMPARE(mediaSpy.count(), 3); + + playlist->previous(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + QCOMPARE(m_player->media(), content2); + QCOMPARE(m_player->state(), QMediaPlayer::PausedState); + QVERIFY(m_player->mediaStatus() == (QMediaPlayer::BufferedMedia||QMediaPlayer::BufferingMedia)); + QCOMPARE(stateSpy.count(), 7); + QCOMPARE(mediaSpy.count(), 4); + + // Test changing the current media while stopped doesn't change the state. + m_player->stop(); + QCOMPARE(m_player->media(), content2); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + QCOMPARE(stateSpy.count(), 8); + QCOMPARE(mediaSpy.count(), 4); + + playlist->next(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + QCOMPARE(m_player->media(), content3); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::LoadedMedia); + QCOMPARE(stateSpy.count(), 8); + QCOMPARE(mediaSpy.count(), 5); + + // Test the player is stopped and the current media cleared when it reaches the end of the last + // item in the playlist. + m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->media(), content3); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QVERIFY(m_player->mediaStatus() == (QMediaPlayer::BufferedMedia||QMediaPlayer::BufferingMedia)); + QCOMPARE(stateSpy.count(), 9); + QCOMPARE(mediaSpy.count(), 5); + + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::EndOfMedia); + QCOMPARE(m_player->media(), QMediaContent()); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::NoMedia); + QCOMPARE(stateSpy.count(), 10); + QCOMPARE(mediaSpy.count(), 6); + + // Test starts playing from the start of the playlist if there is no current media selected. + m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + QCOMPARE(m_player->media(), content0); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QVERIFY(m_player->mediaStatus() == (QMediaPlayer::BufferedMedia||QMediaPlayer::BufferingMedia)); + QCOMPARE(stateSpy.count(), 11); + QCOMPARE(mediaSpy.count(), 7); + + // Test deleting the playlist stops the player and clears the media it set. + delete playlist; + QCOMPARE(m_player->media(), QMediaContent()); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::NoMedia); + QCOMPARE(stateSpy.count(), 12); + QCOMPARE(mediaSpy.count(), 8); + + // Test the player works as normal with the playlist removed. + m_player->play(); + QCOMPARE(m_player->media(), QMediaContent()); + QCOMPARE(m_player->state(), QMediaPlayer::StoppedState); + QCOMPARE(m_player->mediaStatus(), QMediaPlayer::NoMedia); + QCOMPARE(stateSpy.count(), 12); + QCOMPARE(mediaSpy.count(), 8); + + m_player->setMedia(content1); + m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia) + QCOMPARE(m_player->media(), content1); + QCOMPARE(m_player->state(), QMediaPlayer::PlayingState); + QVERIFY(m_player->mediaStatus() == (QMediaPlayer::BufferedMedia||QMediaPlayer::BufferingMedia)); + QCOMPARE(stateSpy.count(), 13); + QCOMPARE(mediaSpy.count(), 9); + m_player->stop(); + runonce = true; + } +} + +void tst_QMediaPlayer::testPlaybackRate() +{ + QFETCH_GLOBAL(bool, valid); + QFETCH_GLOBAL(qreal, playbackRate); + QFETCH_GLOBAL(QMediaContent, mediaContent); + + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), (QMediaPlayer::NoMedia || QMediaPlayer::InvalidMedia || QMediaPlayer::LoadedMedia)); + + if (valid) { + m_player->setPlaybackRate(playbackRate); + QVERIFY(m_player->playbackRate() == playbackRate); + + QSignalSpy spy(m_player, SIGNAL(playbackRateChanged(qreal))); + m_player->setPlaybackRate(playbackRate + 0.5f); + QCOMPARE(m_player->playbackRate(), playbackRate + 0.5f); + QCOMPARE(spy.count(), 1); + } +} + +void tst_QMediaPlayer::testPlaybackRateWhilePlaying() +{ + QFETCH_GLOBAL(bool, valid); + QFETCH_GLOBAL(qreal, playbackRate); + QFETCH_GLOBAL(QMediaContent, mediaContent); + + m_player->setMedia(mediaContent); + WAIT_FOR_CONDITION(m_player->mediaStatus(), (QMediaPlayer::NoMedia || QMediaPlayer::InvalidMedia || QMediaPlayer::LoadedMedia)); + + if (valid) { + m_player->play(); + WAIT_FOR_CONDITION(m_player->mediaStatus(), QMediaPlayer::BufferedMedia); + + m_player->setPlaybackRate(playbackRate); + QVERIFY(m_player->playbackRate() == playbackRate); + + QSignalSpy spy(m_player, SIGNAL(playbackRateChanged(qreal))); + m_player->setPlaybackRate(playbackRate + 0.5f); + QCOMPARE(m_player->playbackRate(), playbackRate + 0.5f); + QCOMPARE(spy.count(), 1); + } +} + +QTEST_MAIN(tst_QMediaPlayer) + +#include "tst_qmediaplayer_s60.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaplaylist/qmediaplaylist.pro --- a/qtmobility/tests/auto/symbian/qmediaplaylist/qmediaplaylist.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -TARGET = tst_qmediaplaylist -INCLUDEPATH += ../../../../include \ - ../../../../src/multimedia -CONFIG += testcase - -include (../../../../common.pri) - -HEADERS += \ - $$SOURCE_DIR/plugins/multimedia/m3u/qm3uhandler.h - -SOURCES += \ - tst_qmediaplaylist.cpp \ - $$QT_MOBILITY_SOURCE_TREE/plugins/multimedia/m3u/qm3uhandler.cpp - -INCLUDEPATH += $$QT_MOBILITY_SOURCE_TREE/plugins/multimedia/m3u - -CONFIG += mobility -MOBILITY = multimedia - -TARGET.CAPABILITY = ALL -TCB diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaplaylist/tst_qmediaplaylist.cpp --- a/qtmobility/tests/auto/symbian/qmediaplaylist/tst_qmediaplaylist.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,626 +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 Qt Mobility Components. -** -** $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 -#include -#include "qmediaservice.h" -#include "qmediaplaylist.h" -#include "qmediaplaylistcontrol.h" -#include "qmediaplaylistnavigator.h" -#include "qmediapluginloader_p.h" - -#include "qm3uhandler.h" - -QTM_USE_NAMESPACE -class MockReadOnlyPlaylistProvider : public QMediaPlaylistProvider -{ - Q_OBJECT -public: - MockReadOnlyPlaylistProvider(QObject *parent) - :QMediaPlaylistProvider(parent) - { - m_items.append(QMediaContent(QUrl(QLatin1String("file:///1")))); - m_items.append(QMediaContent(QUrl(QLatin1String("file:///2")))); - m_items.append(QMediaContent(QUrl(QLatin1String("file:///3")))); - } - - int mediaCount() const { return m_items.size(); } - QMediaContent media(int index) const - { - return index >=0 && index < mediaCount() ? m_items.at(index) : QMediaContent(); - } - -private: - QList m_items; -}; - -class MockPlaylistControl : public QMediaPlaylistControl -{ - Q_OBJECT -public: - MockPlaylistControl(QObject *parent) : QMediaPlaylistControl(parent) - { - m_navigator = new QMediaPlaylistNavigator(new MockReadOnlyPlaylistProvider(this), this); - } - - ~MockPlaylistControl() - { - } - - QMediaPlaylistProvider* playlistProvider() const { return m_navigator->playlist(); } - bool setPlaylistProvider(QMediaPlaylistProvider *playlist) { m_navigator->setPlaylist(playlist); return true; } - - int currentIndex() const { return m_navigator->currentIndex(); } - void setCurrentIndex(int position) { m_navigator->jump(position); } - int nextIndex(int steps) const { return m_navigator->nextIndex(steps); } - int previousIndex(int steps) const { return m_navigator->previousIndex(steps); } - - void next() { m_navigator->next(); } - void previous() { m_navigator->previous(); } - - QMediaPlaylist::PlaybackMode playbackMode() const { return m_navigator->playbackMode(); } - void setPlaybackMode(QMediaPlaylist::PlaybackMode mode) { m_navigator->setPlaybackMode(mode); } - -private: - QMediaPlaylistNavigator *m_navigator; -}; - -class MockPlaylistService : public QMediaService -{ - Q_OBJECT - -public: - MockPlaylistService():QMediaService(0) - { - mockControl = new MockPlaylistControl(this); - } - - ~MockPlaylistService() - { - } - - QMediaControl* control(const char *iid) const - { - if (qstrcmp(iid, QMediaPlaylistControl_iid) == 0) - return mockControl; - return 0; - } - - MockPlaylistControl *mockControl; -}; - -class MockReadOnlyPlaylistObject : public QMediaObject -{ - Q_OBJECT -public: - MockReadOnlyPlaylistObject(QObject *parent = 0) - :QMediaObject(parent, new MockPlaylistService) - { - } -}; - - -class tst_QMediaPlaylist : public QObject -{ - Q_OBJECT -public slots: - void init(); - void cleanup(); - void initTestCase(); - -private slots: - void construction(); - void append(); - void insert(); - void clear(); - void removeMedia(); - void currentItem(); - void saveAndLoad(); - void playbackMode(); - void playbackMode_data(); - void shuffle(); - void readOnlyPlaylist(); - void setMediaObject(); - -private: - QMediaContent content1; - QMediaContent content2; - QMediaContent content3; -}; - -void tst_QMediaPlaylist::init() -{ -} - -void tst_QMediaPlaylist::initTestCase() -{ - content1 = QMediaContent(QUrl(QLatin1String("file:///1"))); - content2 = QMediaContent(QUrl(QLatin1String("file:///2"))); - content3 = QMediaContent(QUrl(QLatin1String("file:///3"))); - - QMediaPluginLoader::setStaticPlugins(QLatin1String("/playlistformats"), QObjectList() << new QM3uPlaylistPlugin(this)); -} - -void tst_QMediaPlaylist::cleanup() -{ -} - -void tst_QMediaPlaylist::construction() -{ - QMediaPlaylist playlist; - QCOMPARE(playlist.mediaCount(), 0); - QVERIFY(playlist.isEmpty()); -} - -void tst_QMediaPlaylist::append() -{ - QMediaPlaylist playlist; - QVERIFY(!playlist.isReadOnly()); - - playlist.addMedia(content1); - QCOMPARE(playlist.mediaCount(), 1); - QCOMPARE(playlist.media(0), content1); - - QSignalSpy aboutToBeInsertedSignalSpy(&playlist, SIGNAL(mediaAboutToBeInserted(int,int))); - QSignalSpy insertedSignalSpy(&playlist, SIGNAL(mediaInserted(int,int))); - playlist.addMedia(content2); - QCOMPARE(playlist.mediaCount(), 2); - QCOMPARE(playlist.media(1), content2); - - QCOMPARE(aboutToBeInsertedSignalSpy.count(), 1); - QCOMPARE(aboutToBeInsertedSignalSpy.first()[0].toInt(), 1); - QCOMPARE(aboutToBeInsertedSignalSpy.first()[1].toInt(), 1); - - QCOMPARE(insertedSignalSpy.count(), 1); - QCOMPARE(insertedSignalSpy.first()[0].toInt(), 1); - QCOMPARE(insertedSignalSpy.first()[1].toInt(), 1); - - aboutToBeInsertedSignalSpy.clear(); - insertedSignalSpy.clear(); - - QMediaContent content4(QUrl(QLatin1String("file:///4"))); - QMediaContent content5(QUrl(QLatin1String("file:///5"))); - playlist.addMedia(QList() << content3 << content4 << content5); - QCOMPARE(playlist.mediaCount(), 5); - QCOMPARE(playlist.media(2), content3); - QCOMPARE(playlist.media(3), content4); - QCOMPARE(playlist.media(4), content5); - - QCOMPARE(aboutToBeInsertedSignalSpy.count(), 1); - QCOMPARE(aboutToBeInsertedSignalSpy[0][0].toInt(), 2); - QCOMPARE(aboutToBeInsertedSignalSpy[0][1].toInt(), 4); - - QCOMPARE(insertedSignalSpy.count(), 1); - QCOMPARE(insertedSignalSpy[0][0].toInt(), 2); - QCOMPARE(insertedSignalSpy[0][1].toInt(), 4); - - aboutToBeInsertedSignalSpy.clear(); - insertedSignalSpy.clear(); - - playlist.addMedia(QList()); - QCOMPARE(aboutToBeInsertedSignalSpy.count(), 0); - QCOMPARE(insertedSignalSpy.count(), 0); -} - -void tst_QMediaPlaylist::insert() -{ - QMediaPlaylist playlist; - QVERIFY(!playlist.isReadOnly()); - - playlist.addMedia(content1); - QCOMPARE(playlist.mediaCount(), 1); - QCOMPARE(playlist.media(0), content1); - - playlist.addMedia(content2); - QCOMPARE(playlist.mediaCount(), 2); - QCOMPARE(playlist.media(1), content2); - - QSignalSpy aboutToBeInsertedSignalSpy(&playlist, SIGNAL(mediaAboutToBeInserted(int,int))); - QSignalSpy insertedSignalSpy(&playlist, SIGNAL(mediaInserted(int,int))); - - playlist.insertMedia(1, content3); - QCOMPARE(playlist.mediaCount(), 3); - QCOMPARE(playlist.media(0), content1); - QCOMPARE(playlist.media(1), content3); - QCOMPARE(playlist.media(2), content2); - - QCOMPARE(aboutToBeInsertedSignalSpy.count(), 1); - QCOMPARE(aboutToBeInsertedSignalSpy.first()[0].toInt(), 1); - QCOMPARE(aboutToBeInsertedSignalSpy.first()[1].toInt(), 1); - - QCOMPARE(insertedSignalSpy.count(), 1); - QCOMPARE(insertedSignalSpy.first()[0].toInt(), 1); - QCOMPARE(insertedSignalSpy.first()[1].toInt(), 1); - - aboutToBeInsertedSignalSpy.clear(); - insertedSignalSpy.clear(); - - QMediaContent content4(QUrl(QLatin1String("file:///4"))); - QMediaContent content5(QUrl(QLatin1String("file:///5"))); - playlist.insertMedia(1, QList() << content4 << content5); - - QCOMPARE(playlist.media(0), content1); - QCOMPARE(playlist.media(1), content4); - QCOMPARE(playlist.media(2), content5); - QCOMPARE(playlist.media(3), content3); - QCOMPARE(playlist.media(4), content2); - QCOMPARE(aboutToBeInsertedSignalSpy.count(), 1); - QCOMPARE(aboutToBeInsertedSignalSpy[0][0].toInt(), 1); - QCOMPARE(aboutToBeInsertedSignalSpy[0][1].toInt(), 2); - - QCOMPARE(insertedSignalSpy.count(), 1); - QCOMPARE(insertedSignalSpy[0][0].toInt(), 1); - QCOMPARE(insertedSignalSpy[0][1].toInt(), 2); - - aboutToBeInsertedSignalSpy.clear(); - insertedSignalSpy.clear(); - - playlist.insertMedia(1, QList()); - QCOMPARE(aboutToBeInsertedSignalSpy.count(), 0); - QCOMPARE(insertedSignalSpy.count(), 0); -} - - -void tst_QMediaPlaylist::currentItem() -{ - QMediaPlaylist playlist; - playlist.addMedia(content1); - playlist.addMedia(content2); - - QCOMPARE(playlist.currentIndex(), -1); - QCOMPARE(playlist.currentMedia(), QMediaContent()); - - QCOMPARE(playlist.nextIndex(), 0); - QCOMPARE(playlist.nextIndex(2), 1); - QCOMPARE(playlist.previousIndex(), 1); - QCOMPARE(playlist.previousIndex(2), 0); - - playlist.setCurrentIndex(0); - QCOMPARE(playlist.currentIndex(), 0); - QCOMPARE(playlist.currentMedia(), content1); - - QCOMPARE(playlist.nextIndex(), 1); - QCOMPARE(playlist.nextIndex(2), -1); - QCOMPARE(playlist.previousIndex(), -1); - QCOMPARE(playlist.previousIndex(2), -1); - - playlist.setCurrentIndex(1); - QCOMPARE(playlist.currentIndex(), 1); - QCOMPARE(playlist.currentMedia(), content2); - - QCOMPARE(playlist.nextIndex(), -1); - QCOMPARE(playlist.nextIndex(2), -1); - QCOMPARE(playlist.previousIndex(), 0); - QCOMPARE(playlist.previousIndex(2), -1); - - QTest::ignoreMessage(QtWarningMsg, "QMediaPlaylistNavigator: Jump outside playlist range "); - playlist.setCurrentIndex(2); - - QCOMPARE(playlist.currentIndex(), -1); - QCOMPARE(playlist.currentMedia(), QMediaContent()); -} - -void tst_QMediaPlaylist::clear() -{ - QMediaPlaylist playlist; - playlist.addMedia(content1); - playlist.addMedia(content2); - - playlist.clear(); - QVERIFY(playlist.isEmpty()); - QCOMPARE(playlist.mediaCount(), 0); -} - -void tst_QMediaPlaylist::removeMedia() -{ - QMediaPlaylist playlist; - playlist.addMedia(content1); - playlist.addMedia(content2); - playlist.addMedia(content3); - - QSignalSpy aboutToBeRemovedSignalSpy(&playlist, SIGNAL(mediaAboutToBeRemoved(int,int))); - QSignalSpy removedSignalSpy(&playlist, SIGNAL(mediaRemoved(int,int))); - playlist.removeMedia(1); - QCOMPARE(playlist.mediaCount(), 2); - QCOMPARE(playlist.media(1), content3); - - QCOMPARE(aboutToBeRemovedSignalSpy.count(), 1); - QCOMPARE(aboutToBeRemovedSignalSpy.first()[0].toInt(), 1); - QCOMPARE(aboutToBeRemovedSignalSpy.first()[1].toInt(), 1); - - QCOMPARE(removedSignalSpy.count(), 1); - QCOMPARE(removedSignalSpy.first()[0].toInt(), 1); - QCOMPARE(removedSignalSpy.first()[1].toInt(), 1); - - aboutToBeRemovedSignalSpy.clear(); - removedSignalSpy.clear(); - - playlist.removeMedia(0,1); - QVERIFY(playlist.isEmpty()); - - QCOMPARE(aboutToBeRemovedSignalSpy.count(), 1); - QCOMPARE(aboutToBeRemovedSignalSpy.first()[0].toInt(), 0); - QCOMPARE(aboutToBeRemovedSignalSpy.first()[1].toInt(), 1); - - QCOMPARE(removedSignalSpy.count(), 1); - QCOMPARE(removedSignalSpy.first()[0].toInt(), 0); - QCOMPARE(removedSignalSpy.first()[1].toInt(), 1); - - - playlist.addMedia(content1); - playlist.addMedia(content2); - playlist.addMedia(content3); - - playlist.removeMedia(0,1); - QCOMPARE(playlist.mediaCount(), 1); - QCOMPARE(playlist.media(0), content3); -} - -void tst_QMediaPlaylist::saveAndLoad() -{ - QMediaPlaylist playlist; - playlist.addMedia(content1); - playlist.addMedia(content2); - playlist.addMedia(content3); - - QCOMPARE(playlist.error(), QMediaPlaylist::NoError); - QVERIFY(playlist.errorString().isEmpty()); - - QBuffer buffer; - buffer.open(QBuffer::ReadWrite); - - QTest::ignoreMessage(QtWarningMsg, "Load static plugins for \"/playlistformats/\" "); - bool res = playlist.save(&buffer, "unsupported_format"); - QVERIFY(!res); - QVERIFY(playlist.error() != QMediaPlaylist::NoError); - QVERIFY(!playlist.errorString().isEmpty()); - - QSignalSpy errorSignal(&playlist, SIGNAL(loadFailed())); - playlist.load(&buffer, "unsupported_format"); - QCOMPARE(errorSignal.size(), 1); - QVERIFY(playlist.error() != QMediaPlaylist::NoError); - QVERIFY(!playlist.errorString().isEmpty()); - - res = playlist.save(QUrl(QLatin1String("tmp.unsupported_format")), "unsupported_format"); - QVERIFY(!res); - QVERIFY(playlist.error() != QMediaPlaylist::NoError); - QVERIFY(!playlist.errorString().isEmpty()); - - errorSignal.clear(); - playlist.load(QUrl(QLatin1String("tmp.unsupported_format")), "unsupported_format"); - QCOMPARE(errorSignal.size(), 1); - QVERIFY(playlist.error() != QMediaPlaylist::NoError); - QVERIFY(!playlist.errorString().isEmpty()); - - res = playlist.save(&buffer, "m3u"); - - QVERIFY(res); - QVERIFY(buffer.pos() > 0); - buffer.seek(0); - - QMediaPlaylist playlist2; - playlist2.load(&buffer, "m3u"); - QCOMPARE(playlist.error(), QMediaPlaylist::NoError); - - QCOMPARE(playlist.mediaCount(), playlist2.mediaCount()); - QCOMPARE(playlist.media(0), playlist2.media(0)); - QCOMPARE(playlist.media(1), playlist2.media(1)); - QCOMPARE(playlist.media(3), playlist2.media(3)); - - res = playlist.save(QUrl(QLatin1String("file:///c:/data/test_m3u.m3u")), "m3u"); - QVERIFY(res); - - playlist2.clear(); - QVERIFY(playlist2.isEmpty()); - playlist2.load(QUrl(QLatin1String("file:///c:/data/test_m3u.m3u")), "m3u"); - QCOMPARE(playlist.error(), QMediaPlaylist::NoError); - - QCOMPARE(playlist.mediaCount(), playlist2.mediaCount()); - QCOMPARE(playlist.media(0), playlist2.media(0)); - QCOMPARE(playlist.media(1), playlist2.media(1)); - QCOMPARE(playlist.media(3), playlist2.media(3)); -} - -void tst_QMediaPlaylist::playbackMode_data() -{ - QTest::addColumn("playbackMode"); - QTest::addColumn("expectedPrevious"); - QTest::addColumn("pos"); - QTest::addColumn("expectedNext"); - - QTest::newRow("Linear, 0") << QMediaPlaylist::Linear << -1 << 0 << 1; - QTest::newRow("Linear, 1") << QMediaPlaylist::Linear << 0 << 1 << 2; - QTest::newRow("Linear, 2") << QMediaPlaylist::Linear << 1 << 2 << -1; - - QTest::newRow("Loop, 0") << QMediaPlaylist::Loop << 2 << 0 << 1; - QTest::newRow("Loop, 1") << QMediaPlaylist::Loop << 0 << 1 << 2; - QTest::newRow("Lopp, 2") << QMediaPlaylist::Loop << 1 << 2 << 0; - - QTest::newRow("ItemOnce, 1") << QMediaPlaylist::CurrentItemOnce << -1 << 1 << -1; - QTest::newRow("ItemInLoop, 1") << QMediaPlaylist::CurrentItemInLoop << 1 << 1 << 1; - -} - -void tst_QMediaPlaylist::playbackMode() -{ - QFETCH(QMediaPlaylist::PlaybackMode, playbackMode); - QFETCH(int, expectedPrevious); - QFETCH(int, pos); - QFETCH(int, expectedNext); - - QMediaPlaylist playlist; - playlist.addMedia(content1); - playlist.addMedia(content2); - playlist.addMedia(content3); - - QCOMPARE(playlist.playbackMode(), QMediaPlaylist::Linear); - QCOMPARE(playlist.currentIndex(), -1); - - playlist.setPlaybackMode(playbackMode); - QCOMPARE(playlist.playbackMode(), playbackMode); - - playlist.setCurrentIndex(pos); - QCOMPARE(playlist.currentIndex(), pos); - QCOMPARE(playlist.nextIndex(), expectedNext); - QCOMPARE(playlist.previousIndex(), expectedPrevious); - - playlist.next(); - QCOMPARE(playlist.currentIndex(), expectedNext); - - playlist.setCurrentIndex(pos); - playlist.previous(); - QCOMPARE(playlist.currentIndex(), expectedPrevious); -} - -void tst_QMediaPlaylist::shuffle() -{ - QMediaPlaylist playlist; - QList contentList; - - for (int i=0; i<100; i++) { - QMediaContent content(QUrl(QString::number(i))); - contentList.append(content); - playlist.addMedia(content); - } - - playlist.shuffle(); - - QList shuffledContentList; - for (int i=0; i() << content1 << content2)); - QCOMPARE(playlist.mediaCount(), 3); - QVERIFY(!playlist.insertMedia(1, content1)); - QCOMPARE(playlist.mediaCount(), 3); - QVERIFY(!playlist.insertMedia(1, QList() << content1 << content2)); - QCOMPARE(playlist.mediaCount(), 3); - QVERIFY(!playlist.removeMedia(1)); - QCOMPARE(playlist.mediaCount(), 3); - QVERIFY(!playlist.removeMedia(0,2)); - QCOMPARE(playlist.mediaCount(), 3); - QVERIFY(!playlist.clear()); - QCOMPARE(playlist.mediaCount(), 3); - - //but it is still allowed to append/insert an empty list - QVERIFY(playlist.addMedia(QList())); - QVERIFY(playlist.insertMedia(1, QList())); - - playlist.shuffle(); - //it's still the same - QCOMPARE(playlist.media(0), content1); - QCOMPARE(playlist.media(1), content2); - QCOMPARE(playlist.media(2), content3); - QCOMPARE(playlist.media(3), QMediaContent()); - - - //load to read only playlist should fail, - //unless underlaying provider supports it - QBuffer buffer; - buffer.open(QBuffer::ReadWrite); - buffer.write(QByteArray("file:///1\nfile:///2")); - buffer.seek(0); - - QSignalSpy errorSignal(&playlist, SIGNAL(loadFailed())); - playlist.load(&buffer, "m3u"); - QCOMPARE(errorSignal.size(), 1); - QCOMPARE(playlist.error(), QMediaPlaylist::AccessDeniedError); - QVERIFY(!playlist.errorString().isEmpty()); - QCOMPARE(playlist.mediaCount(), 3); - - errorSignal.clear(); - playlist.load(QUrl(QLatin1String("tmp.m3u")), "m3u"); - - QCOMPARE(errorSignal.size(), 1); - QCOMPARE(playlist.error(), QMediaPlaylist::AccessDeniedError); - QVERIFY(!playlist.errorString().isEmpty()); - QCOMPARE(playlist.mediaCount(), 3); -} - -void tst_QMediaPlaylist::setMediaObject() -{ - MockReadOnlyPlaylistObject mediaObject; - - QMediaPlaylist playlist; - QVERIFY(playlist.mediaObject() == 0); - QVERIFY(!playlist.isReadOnly()); - - playlist.setMediaObject(&mediaObject); - QCOMPARE(playlist.mediaObject(), qobject_cast(&mediaObject)); - QCOMPARE(playlist.mediaCount(), 3); - QVERIFY(playlist.isReadOnly()); - - playlist.setMediaObject(0); - QVERIFY(playlist.mediaObject() == 0); - QCOMPARE(playlist.mediaCount(), 0); - QVERIFY(!playlist.isReadOnly()); - - playlist.setMediaObject(&mediaObject); - QCOMPARE(playlist.mediaObject(), qobject_cast(&mediaObject)); - QCOMPARE(playlist.mediaCount(), 3); - QVERIFY(playlist.isReadOnly()); -} - -QTEST_MAIN(tst_QMediaPlaylist) -#include "tst_qmediaplaylist.moc" - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaplaylist_s60/qmediaplaylist_s60.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/symbian/qmediaplaylist_s60/qmediaplaylist_s60.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,20 @@ +TARGET = tst_qmediaplaylist_s60 +INCLUDEPATH += ../../../../include \ + ../../../../src/multimedia +CONFIG += testcase + +include (../../../../common.pri) + +HEADERS += \ + $$SOURCE_DIR/plugins/multimedia/m3u/qm3uhandler.h + +SOURCES += \ + tst_qmediaplaylist_s60.cpp \ + $$QT_MOBILITY_SOURCE_TREE/plugins/multimedia/m3u/qm3uhandler.cpp + +INCLUDEPATH += $$QT_MOBILITY_SOURCE_TREE/plugins/multimedia/m3u + +CONFIG += mobility +MOBILITY = multimedia + +TARGET.CAPABILITY = ALL -TCB diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediaplaylist_s60/tst_qmediaplaylist_s60.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/symbian/qmediaplaylist_s60/tst_qmediaplaylist_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,626 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include "qmediaservice.h" +#include "qmediaplaylist.h" +#include "qmediaplaylistcontrol.h" +#include "qmediaplaylistnavigator.h" +#include "qmediapluginloader_p.h" + +#include "qm3uhandler.h" + +QTM_USE_NAMESPACE +class MockReadOnlyPlaylistProvider : public QMediaPlaylistProvider +{ + Q_OBJECT +public: + MockReadOnlyPlaylistProvider(QObject *parent) + :QMediaPlaylistProvider(parent) + { + m_items.append(QMediaContent(QUrl(QLatin1String("file:///1")))); + m_items.append(QMediaContent(QUrl(QLatin1String("file:///2")))); + m_items.append(QMediaContent(QUrl(QLatin1String("file:///3")))); + } + + int mediaCount() const { return m_items.size(); } + QMediaContent media(int index) const + { + return index >=0 && index < mediaCount() ? m_items.at(index) : QMediaContent(); + } + +private: + QList m_items; +}; + +class MockPlaylistControl : public QMediaPlaylistControl +{ + Q_OBJECT +public: + MockPlaylistControl(QObject *parent) : QMediaPlaylistControl(parent) + { + m_navigator = new QMediaPlaylistNavigator(new MockReadOnlyPlaylistProvider(this), this); + } + + ~MockPlaylistControl() + { + } + + QMediaPlaylistProvider* playlistProvider() const { return m_navigator->playlist(); } + bool setPlaylistProvider(QMediaPlaylistProvider *playlist) { m_navigator->setPlaylist(playlist); return true; } + + int currentIndex() const { return m_navigator->currentIndex(); } + void setCurrentIndex(int position) { m_navigator->jump(position); } + int nextIndex(int steps) const { return m_navigator->nextIndex(steps); } + int previousIndex(int steps) const { return m_navigator->previousIndex(steps); } + + void next() { m_navigator->next(); } + void previous() { m_navigator->previous(); } + + QMediaPlaylist::PlaybackMode playbackMode() const { return m_navigator->playbackMode(); } + void setPlaybackMode(QMediaPlaylist::PlaybackMode mode) { m_navigator->setPlaybackMode(mode); } + +private: + QMediaPlaylistNavigator *m_navigator; +}; + +class MockPlaylistService : public QMediaService +{ + Q_OBJECT + +public: + MockPlaylistService():QMediaService(0) + { + mockControl = new MockPlaylistControl(this); + } + + ~MockPlaylistService() + { + } + + QMediaControl* control(const char *iid) const + { + if (qstrcmp(iid, QMediaPlaylistControl_iid) == 0) + return mockControl; + return 0; + } + + MockPlaylistControl *mockControl; +}; + +class MockReadOnlyPlaylistObject : public QMediaObject +{ + Q_OBJECT +public: + MockReadOnlyPlaylistObject(QObject *parent = 0) + :QMediaObject(parent, new MockPlaylistService) + { + } +}; + + +class tst_QMediaPlaylist : public QObject +{ + Q_OBJECT +public slots: + void init(); + void cleanup(); + void initTestCase(); + +private slots: + void construction(); + void append(); + void insert(); + void clear(); + void removeMedia(); + void currentItem(); + void saveAndLoad(); + void playbackMode(); + void playbackMode_data(); + void shuffle(); + void readOnlyPlaylist(); + void setMediaObject(); + +private: + QMediaContent content1; + QMediaContent content2; + QMediaContent content3; +}; + +void tst_QMediaPlaylist::init() +{ +} + +void tst_QMediaPlaylist::initTestCase() +{ + content1 = QMediaContent(QUrl(QLatin1String("file:///1"))); + content2 = QMediaContent(QUrl(QLatin1String("file:///2"))); + content3 = QMediaContent(QUrl(QLatin1String("file:///3"))); + + QMediaPluginLoader::setStaticPlugins(QLatin1String("/playlistformats"), QObjectList() << new QM3uPlaylistPlugin(this)); +} + +void tst_QMediaPlaylist::cleanup() +{ +} + +void tst_QMediaPlaylist::construction() +{ + QMediaPlaylist playlist; + QCOMPARE(playlist.mediaCount(), 0); + QVERIFY(playlist.isEmpty()); +} + +void tst_QMediaPlaylist::append() +{ + QMediaPlaylist playlist; + QVERIFY(!playlist.isReadOnly()); + + playlist.addMedia(content1); + QCOMPARE(playlist.mediaCount(), 1); + QCOMPARE(playlist.media(0), content1); + + QSignalSpy aboutToBeInsertedSignalSpy(&playlist, SIGNAL(mediaAboutToBeInserted(int,int))); + QSignalSpy insertedSignalSpy(&playlist, SIGNAL(mediaInserted(int,int))); + playlist.addMedia(content2); + QCOMPARE(playlist.mediaCount(), 2); + QCOMPARE(playlist.media(1), content2); + + QCOMPARE(aboutToBeInsertedSignalSpy.count(), 1); + QCOMPARE(aboutToBeInsertedSignalSpy.first()[0].toInt(), 1); + QCOMPARE(aboutToBeInsertedSignalSpy.first()[1].toInt(), 1); + + QCOMPARE(insertedSignalSpy.count(), 1); + QCOMPARE(insertedSignalSpy.first()[0].toInt(), 1); + QCOMPARE(insertedSignalSpy.first()[1].toInt(), 1); + + aboutToBeInsertedSignalSpy.clear(); + insertedSignalSpy.clear(); + + QMediaContent content4(QUrl(QLatin1String("file:///4"))); + QMediaContent content5(QUrl(QLatin1String("file:///5"))); + playlist.addMedia(QList() << content3 << content4 << content5); + QCOMPARE(playlist.mediaCount(), 5); + QCOMPARE(playlist.media(2), content3); + QCOMPARE(playlist.media(3), content4); + QCOMPARE(playlist.media(4), content5); + + QCOMPARE(aboutToBeInsertedSignalSpy.count(), 1); + QCOMPARE(aboutToBeInsertedSignalSpy[0][0].toInt(), 2); + QCOMPARE(aboutToBeInsertedSignalSpy[0][1].toInt(), 4); + + QCOMPARE(insertedSignalSpy.count(), 1); + QCOMPARE(insertedSignalSpy[0][0].toInt(), 2); + QCOMPARE(insertedSignalSpy[0][1].toInt(), 4); + + aboutToBeInsertedSignalSpy.clear(); + insertedSignalSpy.clear(); + + playlist.addMedia(QList()); + QCOMPARE(aboutToBeInsertedSignalSpy.count(), 0); + QCOMPARE(insertedSignalSpy.count(), 0); +} + +void tst_QMediaPlaylist::insert() +{ + QMediaPlaylist playlist; + QVERIFY(!playlist.isReadOnly()); + + playlist.addMedia(content1); + QCOMPARE(playlist.mediaCount(), 1); + QCOMPARE(playlist.media(0), content1); + + playlist.addMedia(content2); + QCOMPARE(playlist.mediaCount(), 2); + QCOMPARE(playlist.media(1), content2); + + QSignalSpy aboutToBeInsertedSignalSpy(&playlist, SIGNAL(mediaAboutToBeInserted(int,int))); + QSignalSpy insertedSignalSpy(&playlist, SIGNAL(mediaInserted(int,int))); + + playlist.insertMedia(1, content3); + QCOMPARE(playlist.mediaCount(), 3); + QCOMPARE(playlist.media(0), content1); + QCOMPARE(playlist.media(1), content3); + QCOMPARE(playlist.media(2), content2); + + QCOMPARE(aboutToBeInsertedSignalSpy.count(), 1); + QCOMPARE(aboutToBeInsertedSignalSpy.first()[0].toInt(), 1); + QCOMPARE(aboutToBeInsertedSignalSpy.first()[1].toInt(), 1); + + QCOMPARE(insertedSignalSpy.count(), 1); + QCOMPARE(insertedSignalSpy.first()[0].toInt(), 1); + QCOMPARE(insertedSignalSpy.first()[1].toInt(), 1); + + aboutToBeInsertedSignalSpy.clear(); + insertedSignalSpy.clear(); + + QMediaContent content4(QUrl(QLatin1String("file:///4"))); + QMediaContent content5(QUrl(QLatin1String("file:///5"))); + playlist.insertMedia(1, QList() << content4 << content5); + + QCOMPARE(playlist.media(0), content1); + QCOMPARE(playlist.media(1), content4); + QCOMPARE(playlist.media(2), content5); + QCOMPARE(playlist.media(3), content3); + QCOMPARE(playlist.media(4), content2); + QCOMPARE(aboutToBeInsertedSignalSpy.count(), 1); + QCOMPARE(aboutToBeInsertedSignalSpy[0][0].toInt(), 1); + QCOMPARE(aboutToBeInsertedSignalSpy[0][1].toInt(), 2); + + QCOMPARE(insertedSignalSpy.count(), 1); + QCOMPARE(insertedSignalSpy[0][0].toInt(), 1); + QCOMPARE(insertedSignalSpy[0][1].toInt(), 2); + + aboutToBeInsertedSignalSpy.clear(); + insertedSignalSpy.clear(); + + playlist.insertMedia(1, QList()); + QCOMPARE(aboutToBeInsertedSignalSpy.count(), 0); + QCOMPARE(insertedSignalSpy.count(), 0); +} + + +void tst_QMediaPlaylist::currentItem() +{ + QMediaPlaylist playlist; + playlist.addMedia(content1); + playlist.addMedia(content2); + + QCOMPARE(playlist.currentIndex(), -1); + QCOMPARE(playlist.currentMedia(), QMediaContent()); + + QCOMPARE(playlist.nextIndex(), 0); + QCOMPARE(playlist.nextIndex(2), 1); + QCOMPARE(playlist.previousIndex(), 1); + QCOMPARE(playlist.previousIndex(2), 0); + + playlist.setCurrentIndex(0); + QCOMPARE(playlist.currentIndex(), 0); + QCOMPARE(playlist.currentMedia(), content1); + + QCOMPARE(playlist.nextIndex(), 1); + QCOMPARE(playlist.nextIndex(2), -1); + QCOMPARE(playlist.previousIndex(), -1); + QCOMPARE(playlist.previousIndex(2), -1); + + playlist.setCurrentIndex(1); + QCOMPARE(playlist.currentIndex(), 1); + QCOMPARE(playlist.currentMedia(), content2); + + QCOMPARE(playlist.nextIndex(), -1); + QCOMPARE(playlist.nextIndex(2), -1); + QCOMPARE(playlist.previousIndex(), 0); + QCOMPARE(playlist.previousIndex(2), -1); + + QTest::ignoreMessage(QtWarningMsg, "QMediaPlaylistNavigator: Jump outside playlist range "); + playlist.setCurrentIndex(2); + + QCOMPARE(playlist.currentIndex(), -1); + QCOMPARE(playlist.currentMedia(), QMediaContent()); +} + +void tst_QMediaPlaylist::clear() +{ + QMediaPlaylist playlist; + playlist.addMedia(content1); + playlist.addMedia(content2); + + playlist.clear(); + QVERIFY(playlist.isEmpty()); + QCOMPARE(playlist.mediaCount(), 0); +} + +void tst_QMediaPlaylist::removeMedia() +{ + QMediaPlaylist playlist; + playlist.addMedia(content1); + playlist.addMedia(content2); + playlist.addMedia(content3); + + QSignalSpy aboutToBeRemovedSignalSpy(&playlist, SIGNAL(mediaAboutToBeRemoved(int,int))); + QSignalSpy removedSignalSpy(&playlist, SIGNAL(mediaRemoved(int,int))); + playlist.removeMedia(1); + QCOMPARE(playlist.mediaCount(), 2); + QCOMPARE(playlist.media(1), content3); + + QCOMPARE(aboutToBeRemovedSignalSpy.count(), 1); + QCOMPARE(aboutToBeRemovedSignalSpy.first()[0].toInt(), 1); + QCOMPARE(aboutToBeRemovedSignalSpy.first()[1].toInt(), 1); + + QCOMPARE(removedSignalSpy.count(), 1); + QCOMPARE(removedSignalSpy.first()[0].toInt(), 1); + QCOMPARE(removedSignalSpy.first()[1].toInt(), 1); + + aboutToBeRemovedSignalSpy.clear(); + removedSignalSpy.clear(); + + playlist.removeMedia(0,1); + QVERIFY(playlist.isEmpty()); + + QCOMPARE(aboutToBeRemovedSignalSpy.count(), 1); + QCOMPARE(aboutToBeRemovedSignalSpy.first()[0].toInt(), 0); + QCOMPARE(aboutToBeRemovedSignalSpy.first()[1].toInt(), 1); + + QCOMPARE(removedSignalSpy.count(), 1); + QCOMPARE(removedSignalSpy.first()[0].toInt(), 0); + QCOMPARE(removedSignalSpy.first()[1].toInt(), 1); + + + playlist.addMedia(content1); + playlist.addMedia(content2); + playlist.addMedia(content3); + + playlist.removeMedia(0,1); + QCOMPARE(playlist.mediaCount(), 1); + QCOMPARE(playlist.media(0), content3); +} + +void tst_QMediaPlaylist::saveAndLoad() +{ + QMediaPlaylist playlist; + playlist.addMedia(content1); + playlist.addMedia(content2); + playlist.addMedia(content3); + + QCOMPARE(playlist.error(), QMediaPlaylist::NoError); + QVERIFY(playlist.errorString().isEmpty()); + + QBuffer buffer; + buffer.open(QBuffer::ReadWrite); + + QTest::ignoreMessage(QtWarningMsg, "Load static plugins for \"/playlistformats/\" "); + bool res = playlist.save(&buffer, "unsupported_format"); + QVERIFY(!res); + QVERIFY(playlist.error() != QMediaPlaylist::NoError); + QVERIFY(!playlist.errorString().isEmpty()); + + QSignalSpy errorSignal(&playlist, SIGNAL(loadFailed())); + playlist.load(&buffer, "unsupported_format"); + QCOMPARE(errorSignal.size(), 1); + QVERIFY(playlist.error() != QMediaPlaylist::NoError); + QVERIFY(!playlist.errorString().isEmpty()); + + res = playlist.save(QUrl(QLatin1String("tmp.unsupported_format")), "unsupported_format"); + QVERIFY(!res); + QVERIFY(playlist.error() != QMediaPlaylist::NoError); + QVERIFY(!playlist.errorString().isEmpty()); + + errorSignal.clear(); + playlist.load(QUrl(QLatin1String("tmp.unsupported_format")), "unsupported_format"); + QCOMPARE(errorSignal.size(), 1); + QVERIFY(playlist.error() != QMediaPlaylist::NoError); + QVERIFY(!playlist.errorString().isEmpty()); + + res = playlist.save(&buffer, "m3u"); + + QVERIFY(res); + QVERIFY(buffer.pos() > 0); + buffer.seek(0); + + QMediaPlaylist playlist2; + playlist2.load(&buffer, "m3u"); + QCOMPARE(playlist.error(), QMediaPlaylist::NoError); + + QCOMPARE(playlist.mediaCount(), playlist2.mediaCount()); + QCOMPARE(playlist.media(0), playlist2.media(0)); + QCOMPARE(playlist.media(1), playlist2.media(1)); + QCOMPARE(playlist.media(3), playlist2.media(3)); + + res = playlist.save(QUrl(QLatin1String("file:///c:/data/test_m3u.m3u")), "m3u"); + QVERIFY(res); + + playlist2.clear(); + QVERIFY(playlist2.isEmpty()); + playlist2.load(QUrl(QLatin1String("file:///c:/data/test_m3u.m3u")), "m3u"); + QCOMPARE(playlist.error(), QMediaPlaylist::NoError); + + QCOMPARE(playlist.mediaCount(), playlist2.mediaCount()); + QCOMPARE(playlist.media(0), playlist2.media(0)); + QCOMPARE(playlist.media(1), playlist2.media(1)); + QCOMPARE(playlist.media(3), playlist2.media(3)); +} + +void tst_QMediaPlaylist::playbackMode_data() +{ + QTest::addColumn("playbackMode"); + QTest::addColumn("expectedPrevious"); + QTest::addColumn("pos"); + QTest::addColumn("expectedNext"); + + QTest::newRow("Linear, 0") << QMediaPlaylist::Linear << -1 << 0 << 1; + QTest::newRow("Linear, 1") << QMediaPlaylist::Linear << 0 << 1 << 2; + QTest::newRow("Linear, 2") << QMediaPlaylist::Linear << 1 << 2 << -1; + + QTest::newRow("Loop, 0") << QMediaPlaylist::Loop << 2 << 0 << 1; + QTest::newRow("Loop, 1") << QMediaPlaylist::Loop << 0 << 1 << 2; + QTest::newRow("Lopp, 2") << QMediaPlaylist::Loop << 1 << 2 << 0; + + QTest::newRow("ItemOnce, 1") << QMediaPlaylist::CurrentItemOnce << -1 << 1 << -1; + QTest::newRow("ItemInLoop, 1") << QMediaPlaylist::CurrentItemInLoop << 1 << 1 << 1; + +} + +void tst_QMediaPlaylist::playbackMode() +{ + QFETCH(QMediaPlaylist::PlaybackMode, playbackMode); + QFETCH(int, expectedPrevious); + QFETCH(int, pos); + QFETCH(int, expectedNext); + + QMediaPlaylist playlist; + playlist.addMedia(content1); + playlist.addMedia(content2); + playlist.addMedia(content3); + + QCOMPARE(playlist.playbackMode(), QMediaPlaylist::Linear); + QCOMPARE(playlist.currentIndex(), -1); + + playlist.setPlaybackMode(playbackMode); + QCOMPARE(playlist.playbackMode(), playbackMode); + + playlist.setCurrentIndex(pos); + QCOMPARE(playlist.currentIndex(), pos); + QCOMPARE(playlist.nextIndex(), expectedNext); + QCOMPARE(playlist.previousIndex(), expectedPrevious); + + playlist.next(); + QCOMPARE(playlist.currentIndex(), expectedNext); + + playlist.setCurrentIndex(pos); + playlist.previous(); + QCOMPARE(playlist.currentIndex(), expectedPrevious); +} + +void tst_QMediaPlaylist::shuffle() +{ + QMediaPlaylist playlist; + QList contentList; + + for (int i=0; i<100; i++) { + QMediaContent content(QUrl(QString::number(i))); + contentList.append(content); + playlist.addMedia(content); + } + + playlist.shuffle(); + + QList shuffledContentList; + for (int i=0; i() << content1 << content2)); + QCOMPARE(playlist.mediaCount(), 3); + QVERIFY(!playlist.insertMedia(1, content1)); + QCOMPARE(playlist.mediaCount(), 3); + QVERIFY(!playlist.insertMedia(1, QList() << content1 << content2)); + QCOMPARE(playlist.mediaCount(), 3); + QVERIFY(!playlist.removeMedia(1)); + QCOMPARE(playlist.mediaCount(), 3); + QVERIFY(!playlist.removeMedia(0,2)); + QCOMPARE(playlist.mediaCount(), 3); + QVERIFY(!playlist.clear()); + QCOMPARE(playlist.mediaCount(), 3); + + //but it is still allowed to append/insert an empty list + QVERIFY(playlist.addMedia(QList())); + QVERIFY(playlist.insertMedia(1, QList())); + + playlist.shuffle(); + //it's still the same + QCOMPARE(playlist.media(0), content1); + QCOMPARE(playlist.media(1), content2); + QCOMPARE(playlist.media(2), content3); + QCOMPARE(playlist.media(3), QMediaContent()); + + + //load to read only playlist should fail, + //unless underlaying provider supports it + QBuffer buffer; + buffer.open(QBuffer::ReadWrite); + buffer.write(QByteArray("file:///1\nfile:///2")); + buffer.seek(0); + + QSignalSpy errorSignal(&playlist, SIGNAL(loadFailed())); + playlist.load(&buffer, "m3u"); + QCOMPARE(errorSignal.size(), 1); + QCOMPARE(playlist.error(), QMediaPlaylist::AccessDeniedError); + QVERIFY(!playlist.errorString().isEmpty()); + QCOMPARE(playlist.mediaCount(), 3); + + errorSignal.clear(); + playlist.load(QUrl(QLatin1String("tmp.m3u")), "m3u"); + + QCOMPARE(errorSignal.size(), 1); + QCOMPARE(playlist.error(), QMediaPlaylist::AccessDeniedError); + QVERIFY(!playlist.errorString().isEmpty()); + QCOMPARE(playlist.mediaCount(), 3); +} + +void tst_QMediaPlaylist::setMediaObject() +{ + MockReadOnlyPlaylistObject mediaObject; + + QMediaPlaylist playlist; + QVERIFY(playlist.mediaObject() == 0); + QVERIFY(!playlist.isReadOnly()); + + playlist.setMediaObject(&mediaObject); + QCOMPARE(playlist.mediaObject(), qobject_cast(&mediaObject)); + QCOMPARE(playlist.mediaCount(), 3); + QVERIFY(playlist.isReadOnly()); + + playlist.setMediaObject(0); + QVERIFY(playlist.mediaObject() == 0); + QCOMPARE(playlist.mediaCount(), 0); + QVERIFY(!playlist.isReadOnly()); + + playlist.setMediaObject(&mediaObject); + QCOMPARE(playlist.mediaObject(), qobject_cast(&mediaObject)); + QCOMPARE(playlist.mediaCount(), 3); + QVERIFY(playlist.isReadOnly()); +} + +QTEST_MAIN(tst_QMediaPlaylist) +#include "tst_qmediaplaylist_s60.moc" + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediarecorder_s60/qmediarecorder_s60.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/symbian/qmediarecorder_s60/qmediarecorder_s60.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,16 @@ +TARGET = tst_qmediarecorder_s60 +INCLUDEPATH += ../../../../src/multimedia \ + ../../../../include +CONFIG += testcase + +SOURCES += tst_qmediarecorder_s60.cpp + +include (../../../../common.pri) + +CONFIG += mobility +MOBILITY = multimedia + +#UserEnvironment WriteDeviceData ReadDeviceData MultimediaDD +symbian { + TARGET.CAPABILITY = ALL -TCB +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qmediarecorder_s60/tst_qmediarecorder_s60.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/symbian/qmediarecorder_s60/tst_qmediarecorder_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,174 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define QTRY_COMPARE(a,e) \ + for (int _i = 0; _i < 5000; _i += 100) { \ + if ((a) == (e)) break; \ + QTest::qWait(100); \ + } \ + QCOMPARE(a, e) + +#define QTRY_VERIFY(a) \ + for (int _i = 0; _i < 5000; _i += 100) { \ + if (a) break; \ + QTest::qWait(100); \ + } \ + QVERIFY(a) + +QTM_USE_NAMESPACE +class tst_QMediaRecorder: public QObject +{ + Q_OBJECT + +public slots: + void initTestCase(); + void cleanupTestCase(); + +private slots: + void testAudioSink(); + void testAudioRecord(); + void testAudioEndPointSelector(); + void testAudioEncoderControl(); + void testMediaFormatsControl(); +// void testDefaultAudioEncodingSettings(); + +private: + + QAudioEncoderControl *audioEncoder; + QAudioEndpointSelector *audioEndpoint; + QMediaRecorder *audiocapture; + QAudioCaptureSource *captureSource; +}; + +void tst_QMediaRecorder::initTestCase() +{ + qRegisterMetaType("QMediaRecorder::State"); + qRegisterMetaType("QMediaRecorder::Error"); + + captureSource = new QAudioCaptureSource; + audiocapture = new QMediaRecorder(captureSource); + + audioEndpoint = qobject_cast(audiocapture->service()->control(QAudioEndpointSelector_iid)); + audioEncoder = qobject_cast(audiocapture->service()->control(QAudioEncoderControl_iid)); +} + +void tst_QMediaRecorder::cleanupTestCase() +{ + delete audiocapture; + delete captureSource; +} + +void tst_QMediaRecorder::testAudioSink() +{ + audiocapture->setOutputLocation(QUrl("test.tmp")); + QUrl s = audiocapture->outputLocation(); + QCOMPARE(s.toString(), QString("test.tmp")); +} + +void tst_QMediaRecorder::testAudioRecord() +{ +} + +void tst_QMediaRecorder::testAudioEndPointSelector() +{ + QSignalSpy audioSignal(audioEndpoint,SIGNAL(activeEndpointChanged(QString))); + QVERIFY(audioEndpoint->availableEndpoints().count() == 1); + QVERIFY(audioEndpoint->defaultEndpoint().compare("MMF") == 0); + audioEndpoint->setActiveEndpoint("device2"); + QVERIFY(audioEndpoint->activeEndpoint().compare("device2") == 0); + QVERIFY(audioSignal.count() == 1); + QVERIFY(audioEndpoint->endpointDescription("device2").compare("") == 0); +} + +void tst_QMediaRecorder::testAudioEncoderControl() +{ + QStringList codecs = audiocapture->supportedAudioCodecs(); + QVERIFY(codecs.count() == 1); + QVERIFY(audiocapture->audioCodecDescription("audio/wav") == "WAV Write Format"); + QStringList options = audioEncoder->supportedEncodingOptions("audio/wav"); + QCOMPARE(options.count(), 0); + QVERIFY(audioEncoder->encodingOption("audio/wav","bitrate").toInt() == -1); + audioEncoder->setEncodingOption("audio/wav", "bitrate", QString("vbr")); + QCOMPARE(audioEncoder->encodingOption("audio/wav","bitrate").toInt(), -1); + QCOMPARE(audiocapture->supportedAudioSampleRates(), QList() << 44100); +} + +void tst_QMediaRecorder::testMediaFormatsControl() +{ + //audioocontainer types + QCOMPARE(audiocapture->supportedContainers(), QStringList() << "audio/wav" << "audio/pcm"); + QCOMPARE(audiocapture->containerDescription("audio/pcm"), QString("WAV file format")); + QCOMPARE(audiocapture->containerDescription("audio/x-wav"), QString("RAW file format")); +} + +/* +void tst_QMediaRecorder::testDefaultAudioEncodingSettings() +{ + QAudioEncoderSettings audioSettings = audiocapture->audioSettings(); + QCOMPARE(audioSettings.codec(), QString("AMR")); + QString format = audiocapture->containerMimeType(); + QCOMPARE(format, QString("audio/amr")); +/* QCOMPARE(audioSettings.bitRate(), 128*1024); + QCOMPARE(audioSettings.sampleRate(), -1); + QCOMPARE(audioSettings.quality(), QtMedia::NormalQuality); + QCOMPARE(audioSettings.channelCount(), -1); + + QCOMPARE(audioSettings.encodingMode(), QtMedia::ConstantQualityEncoding); + +}*/ + + +QTEST_MAIN(tst_QMediaRecorder) + +#include "tst_qmediarecorder_s60.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qradiotuner/qradiotuner.pro --- a/qtmobility/tests/auto/symbian/qradiotuner/qradiotuner.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -TARGET = tst_qradiotuner -INCLUDEPATH += ../../../../src/multimedia - -CONFIG += testcase - -SOURCES += tst_qradiotuner.cpp - -include (../../../../common.pri) - -CONFIG += mobility -MOBILITY = multimedia diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qradiotuner/tst_qradiotuner.cpp --- a/qtmobility/tests/auto/symbian/qradiotuner/tst_qradiotuner.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,200 +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 Qt Mobility Components. -** -** $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 -#include -#include - -#include -#include -#include -#include -#include - -#include - -QTM_USE_NAMESPACE - -class tst_QRadioTuner: public QObject -{ - Q_OBJECT - -public slots: - void initTestCase(); - void cleanupTestCase(); - -private slots: - void testBand(); - void testFrequency(); - void testMute(); - void testSearch(); - void testVolume(); - void testSignal(); - void testStereo(); - -private: - QRadioTuner *radio; -}; - -void tst_QRadioTuner::initTestCase() -{ - qRegisterMetaType("QRadioTuner::State"); - qRegisterMetaType("QRadioTuner::Band"); - - radio = new QRadioTuner(0); - QVERIFY(radio->service() != 0); - - QSignalSpy stateSpy(radio, SIGNAL(stateChanged(QRadioTuner::State))); - - QCOMPARE(radio->state(), QRadioTuner::StoppedState); - radio->start(); - QCOMPARE(radio->state(), QRadioTuner::ActiveState); - - QCOMPARE(stateSpy.count(), 1); - QCOMPARE(stateSpy.first()[0].value(), QRadioTuner::ActiveState); -} - -void tst_QRadioTuner::cleanupTestCase() -{ - QVERIFY(radio->error() == QRadioTuner::NoError); - QVERIFY(radio->errorString().isEmpty()); - - QSignalSpy stateSpy(radio, SIGNAL(stateChanged(QRadioTuner::State))); - - radio->stop(); - QCOMPARE(radio->state(), QRadioTuner::StoppedState); - QCOMPARE(stateSpy.count(), 1); - -#ifdef QTM_NAMESPACE - QEXPECT_FAIL("", "QSignalSpy doesn't grab the correct value from signal because of QtMobility namespace", Continue); -#endif - QCOMPARE(stateSpy.first()[0].value(), QRadioTuner::StoppedState); - - delete radio; -} - -void tst_QRadioTuner::testBand() -{ - QVERIFY(radio->isBandSupported(QRadioTuner::FM)); - QVERIFY(!radio->isBandSupported(QRadioTuner::SW)); - - if(radio->isBandSupported(QRadioTuner::AM)) { - QSignalSpy readSignal(radio, SIGNAL(bandChanged(QRadioTuner::Band))); - radio->setBand(QRadioTuner::AM); - QTestEventLoop::instance().enterLoop(1); - QVERIFY(radio->band() == QRadioTuner::AM); - QVERIFY(readSignal.count() == 1); - } -} - -void tst_QRadioTuner::testFrequency() -{ - QSignalSpy readSignal(radio, SIGNAL(frequencyChanged(int))); - radio->setFrequency(104500000); - QTestEventLoop::instance().enterLoop(1); - QVERIFY(radio->frequency() == 104500000); - QVERIFY(readSignal.count() == 1); - - // frequencyStep for FM radio is 100kHz (100000Hz) - QVERIFY(radio->frequencyStep(QRadioTuner::FM) == 100000); - QPair test = radio->frequencyRange(QRadioTuner::FM); - // frequency range for FM radio is 87,5MHz - 108MHz - QVERIFY(test.first == 87500000); - QVERIFY(test.second == 108000000); -} - -void tst_QRadioTuner::testMute() -{ - QSignalSpy readSignal(radio, SIGNAL(mutedChanged(bool))); - radio->setMuted(true); - QTestEventLoop::instance().enterLoop(1); - QVERIFY(radio->isMuted()); - QVERIFY(readSignal.count() == 1); -} - -void tst_QRadioTuner::testSearch() -{ - QSignalSpy readSignal(radio, SIGNAL(searchingChanged(bool))); - QVERIFY(!radio->isSearching()); - - radio->searchForward(); - QVERIFY(radio->isSearching()); - QVERIFY(readSignal.count() == 1); - - radio->cancelSearch(); - QTestEventLoop::instance().enterLoop(1); - QVERIFY(!radio->isSearching()); - QVERIFY(readSignal.count() == 2); - - radio->searchBackward(); - QVERIFY(radio->isSearching()); - QVERIFY(readSignal.count() == 3); - - radio->cancelSearch(); - QVERIFY(!radio->isSearching()); -} - -void tst_QRadioTuner::testVolume() -{ - QVERIFY(radio->volume() == 100); - QSignalSpy readSignal(radio, SIGNAL(volumeChanged(int))); - radio->setVolume(50); - QTestEventLoop::instance().enterLoop(1); - QVERIFY(radio->volume() == 50); - QVERIFY(readSignal.count() == 1); -} - -void tst_QRadioTuner::testSignal() -{ - QVERIFY(radio->signalStrength() == 0); - // There is no set of this only a get, do nothing else. -} - -void tst_QRadioTuner::testStereo() -{ - QVERIFY(radio->isStereo()); - radio->setStereoMode(QRadioTuner::ForceMono); - QVERIFY(radio->stereoMode() == QRadioTuner::ForceMono); -} - -QTEST_MAIN(tst_QRadioTuner) - -#include "tst_qradiotuner.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qradiotuner_s60/qradiotuner_s60.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/symbian/qradiotuner_s60/qradiotuner_s60.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,11 @@ +TARGET = tst_qradiotuner_s60 +INCLUDEPATH += ../../../../src/multimedia + +CONFIG += testcase + +SOURCES += tst_qradiotuner_s60.cpp + +include (../../../../common.pri) + +CONFIG += mobility +MOBILITY = multimedia diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/qradiotuner_s60/tst_qradiotuner_s60.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/auto/symbian/qradiotuner_s60/tst_qradiotuner_s60.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,200 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include + +#include +#include +#include +#include +#include + +#include + +QTM_USE_NAMESPACE + +class tst_QRadioTuner: public QObject +{ + Q_OBJECT + +public slots: + void initTestCase(); + void cleanupTestCase(); + +private slots: + void testBand(); + void testFrequency(); + void testMute(); + void testSearch(); + void testVolume(); + void testSignal(); + void testStereo(); + +private: + QRadioTuner *radio; +}; + +void tst_QRadioTuner::initTestCase() +{ + qRegisterMetaType("QRadioTuner::State"); + qRegisterMetaType("QRadioTuner::Band"); + + radio = new QRadioTuner(0); + QVERIFY(radio->service() != 0); + + QSignalSpy stateSpy(radio, SIGNAL(stateChanged(QRadioTuner::State))); + + QCOMPARE(radio->state(), QRadioTuner::StoppedState); + radio->start(); + QCOMPARE(radio->state(), QRadioTuner::ActiveState); + + QCOMPARE(stateSpy.count(), 1); + QCOMPARE(stateSpy.first()[0].value(), QRadioTuner::ActiveState); +} + +void tst_QRadioTuner::cleanupTestCase() +{ + QVERIFY(radio->error() == QRadioTuner::NoError); + QVERIFY(radio->errorString().isEmpty()); + + QSignalSpy stateSpy(radio, SIGNAL(stateChanged(QRadioTuner::State))); + + radio->stop(); + QCOMPARE(radio->state(), QRadioTuner::StoppedState); + QCOMPARE(stateSpy.count(), 1); + +#ifdef QTM_NAMESPACE + QEXPECT_FAIL("", "QSignalSpy doesn't grab the correct value from signal because of QtMobility namespace", Continue); +#endif + QCOMPARE(stateSpy.first()[0].value(), QRadioTuner::StoppedState); + + delete radio; +} + +void tst_QRadioTuner::testBand() +{ + QVERIFY(radio->isBandSupported(QRadioTuner::FM)); + QVERIFY(!radio->isBandSupported(QRadioTuner::SW)); + + if(radio->isBandSupported(QRadioTuner::AM)) { + QSignalSpy readSignal(radio, SIGNAL(bandChanged(QRadioTuner::Band))); + radio->setBand(QRadioTuner::AM); + QTestEventLoop::instance().enterLoop(1); + QVERIFY(radio->band() == QRadioTuner::AM); + QVERIFY(readSignal.count() == 1); + } +} + +void tst_QRadioTuner::testFrequency() +{ + QSignalSpy readSignal(radio, SIGNAL(frequencyChanged(int))); + radio->setFrequency(104500000); + QTestEventLoop::instance().enterLoop(1); + QVERIFY(radio->frequency() == 104500000); + QVERIFY(readSignal.count() == 1); + + // frequencyStep for FM radio is 100kHz (100000Hz) + QVERIFY(radio->frequencyStep(QRadioTuner::FM) == 100000); + QPair test = radio->frequencyRange(QRadioTuner::FM); + // frequency range for FM radio is 87,5MHz - 108MHz + QVERIFY(test.first == 87500000); + QVERIFY(test.second == 108000000); +} + +void tst_QRadioTuner::testMute() +{ + QSignalSpy readSignal(radio, SIGNAL(mutedChanged(bool))); + radio->setMuted(true); + QTestEventLoop::instance().enterLoop(1); + QVERIFY(radio->isMuted()); + QVERIFY(readSignal.count() == 1); +} + +void tst_QRadioTuner::testSearch() +{ + QSignalSpy readSignal(radio, SIGNAL(searchingChanged(bool))); + QVERIFY(!radio->isSearching()); + + radio->searchForward(); + QVERIFY(radio->isSearching()); + QVERIFY(readSignal.count() == 1); + + radio->cancelSearch(); + QTestEventLoop::instance().enterLoop(1); + QVERIFY(!radio->isSearching()); + QVERIFY(readSignal.count() == 2); + + radio->searchBackward(); + QVERIFY(radio->isSearching()); + QVERIFY(readSignal.count() == 3); + + radio->cancelSearch(); + QVERIFY(!radio->isSearching()); +} + +void tst_QRadioTuner::testVolume() +{ + QVERIFY(radio->volume() == 100); + QSignalSpy readSignal(radio, SIGNAL(volumeChanged(int))); + radio->setVolume(50); + QTestEventLoop::instance().enterLoop(1); + QVERIFY(radio->volume() == 50); + QVERIFY(readSignal.count() == 1); +} + +void tst_QRadioTuner::testSignal() +{ + QVERIFY(radio->signalStrength() == 0); + // There is no set of this only a get, do nothing else. +} + +void tst_QRadioTuner::testStereo() +{ + QVERIFY(radio->isStereo()); + radio->setStereoMode(QRadioTuner::ForceMono); + QVERIFY(radio->stereoMode() == QRadioTuner::ForceMono); +} + +QTEST_MAIN(tst_QRadioTuner) + +#include "tst_qradiotuner_s60.moc" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/symbian/symbian.pro --- a/qtmobility/tests/auto/symbian/symbian.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/symbian/symbian.pro Mon May 03 13:18:40 2010 +0300 @@ -10,9 +10,9 @@ contains(mobility_modules,multimedia) { #Multimedia SUBDIRS += \ - qcamera \ - qmediaobject \ - qmediaplayer \ - qmediaplaylist \ - qradiotuner + qmediaobject_s60 \ + qmediaplayer_s60 \ + qmediaplaylist_s60 \ + qradiotuner_s60 \ + qmediarecorder_s60 } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/testqgeopositioninfosource.cpp --- a/qtmobility/tests/auto/testqgeopositioninfosource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/testqgeopositioninfosource.cpp Mon May 03 13:18:40 2010 +0300 @@ -47,6 +47,7 @@ #include +#include #include #include @@ -180,20 +181,20 @@ // TC_ID_3_x_1 void TestQGeoPositionInfoSource::constructor_withParent() { - QLocationTestUtils::uheap_mark(); + //QLocationTestUtils::uheap_mark(); QObject *parent = new QObject(); new MyPositionSource(parent); delete parent; - QLocationTestUtils::uheap_mark_end(); + //QLocationTestUtils::uheap_mark_end(); } // TC_ID_3_x_2 void TestQGeoPositionInfoSource::constructor_noParent() { - QLocationTestUtils::uheap_mark(); + //QLocationTestUtils::uheap_mark(); MyPositionSource *obj = new MyPositionSource(); delete obj; - QLocationTestUtils::uheap_mark_end(); + //QLocationTestUtils::uheap_mark_end(); } void TestQGeoPositionInfoSource::updateInterval() @@ -273,7 +274,7 @@ // sources of location data void TestQGeoPositionInfoSource::createDefaultSource() { - QLocationTestUtils::uheap_mark(); + //QLocationTestUtils::uheap_mark(); QObject *parent = new QObject; QGeoPositionInfoSource *source = QGeoPositionInfoSource::createDefaultSource(parent); @@ -281,11 +282,13 @@ QVERIFY(source != 0); #elif defined(Q_OS_WINCE) QVERIFY(source != 0); -#else +#elif defined(Q_WS_MAEMO_5) + QVERIFY(source != 0); +#else QVERIFY(source == 0); #endif delete parent; - QLocationTestUtils::uheap_mark_end(); + //QLocationTestUtils::uheap_mark_end(); } void TestQGeoPositionInfoSource::setUpdateInterval() @@ -325,8 +328,9 @@ QTest::newRow("less then minInterval") << minUpdateInterval - 1 << minUpdateInterval; QTest::newRow("in btw zero and minInterval") << 1 << minUpdateInterval; } - - QTest::newRow("INT_MAX") << INT_MAX << INT_MAX; + + // Fails on S60, should investigate + //QTest::newRow("INT_MAX") << INT_MAX << INT_MAX; } void TestQGeoPositionInfoSource::lastKnownPosition() @@ -346,6 +350,7 @@ m_source->setPreferredPositioningMethods(method); QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy timeout(m_source, SIGNAL(updateTimeout())); int time_out = 7000; m_source->setUpdateInterval(time_out); m_source->startUpdates(); @@ -355,7 +360,7 @@ // changed by the time it is checked) QEventLoop loop; QTimer timer; - timer.setInterval(14000); + timer.setInterval(9500); connect(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&)), &loop, SLOT(quit())); connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); @@ -364,26 +369,48 @@ EXPECT_FAIL_WINCE_SEE_MOBILITY_337_ABORT; - QVERIFY(spy.count() >= 1); + QVERIFY((spy.count() > 0) && (timeout.count() == 0)); QList list = spy.takeFirst(); QGeoPositionInfo info; info = list.at(0).value(); QGeoPositionInfo lastPositioninfo; lastPositioninfo = m_source->lastKnownPosition(lastKnownPositionArgument); - + QCOMPARE(lastPositioninfo.isValid(), positionValid); if (positionValid) { QCOMPARE(info.coordinate(), lastPositioninfo.coordinate()); - QCOMPARE(info.dateTime(), lastPositioninfo.dateTime()); + QCOMPARE(info.timestamp(), lastPositioninfo.timestamp()); + + QCOMPARE(info.hasAttribute(QGeoPositionInfo::HorizontalAccuracy), + lastPositioninfo.hasAttribute(QGeoPositionInfo::HorizontalAccuracy)); + + if (info.hasAttribute(QGeoPositionInfo::HorizontalAccuracy)) { + bool isNaN1 = qIsNaN(info.attribute(QGeoPositionInfo::HorizontalAccuracy)); + bool isNaN2 = qIsNaN(lastPositioninfo.attribute(QGeoPositionInfo::HorizontalAccuracy)); + QCOMPARE(isNaN1, isNaN2); + if (!isNaN1) { + QCOMPARE(qFuzzyCompare(info.attribute(QGeoPositionInfo::HorizontalAccuracy), + lastPositioninfo.attribute(QGeoPositionInfo::HorizontalAccuracy)), TRUE); + } + } - QCOMPARE(qFuzzyCompare(info.attribute(QGeoPositionInfo::HorizontalAccuracy), - lastPositioninfo.attribute(QGeoPositionInfo::HorizontalAccuracy)), TRUE); + QCOMPARE(info.hasAttribute(QGeoPositionInfo::VerticalAccuracy), + lastPositioninfo.hasAttribute(QGeoPositionInfo::VerticalAccuracy)); - QCOMPARE(qFuzzyCompare(info.attribute(QGeoPositionInfo::VerticalAccuracy), - lastPositioninfo.attribute(QGeoPositionInfo::VerticalAccuracy)), TRUE); + if (info.hasAttribute(QGeoPositionInfo::VerticalAccuracy)) { + bool isNaN1 = qIsNaN(info.attribute(QGeoPositionInfo::VerticalAccuracy)); + bool isNaN2 = qIsNaN(lastPositioninfo.attribute(QGeoPositionInfo::VerticalAccuracy)); + QCOMPARE(isNaN1, isNaN2); + if (!isNaN1) { + QCOMPARE(qFuzzyCompare(info.attribute(QGeoPositionInfo::VerticalAccuracy), + lastPositioninfo.attribute(QGeoPositionInfo::VerticalAccuracy)), TRUE); + } + } } + + m_source->stopUpdates(); } void TestQGeoPositionInfoSource::lastKnownPosition_data() @@ -413,6 +440,7 @@ CHECK_SOURCE_VALID; QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy timeout(m_source, SIGNAL(updateTimeout())); m_source->setUpdateInterval(7000); int interval = m_source->updateInterval(); @@ -420,72 +448,75 @@ EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 1, 14000); + QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 1, 9500); for (int i = 0; i < 6; i++) { EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 1, (interval*2)); + QTRY_VERIFY_WITH_TIMEOUT((spy.count() == 1) && (timeout.count() == 0), (interval*2)); spy.clear(); } m_source->stopUpdates(); } + void TestQGeoPositionInfoSource::startUpdates_testIntervalChangesWhileRunning() { + // There are two ways of dealing with an interval change, and we have left it system dependent. + // The interval can be changed will running or after the next update. + // WinCE uses the first method, S60 uses the second method. + + // The minimum interval on the symbian emulator is 5000 msecs, which is why the times in + // this test are as high as they are. + CHECK_SOURCE_VALID; QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); - + QSignalSpy timeout(m_source, SIGNAL(updateTimeout())); m_source->setUpdateInterval(0); m_source->startUpdates(); m_source->setUpdateInterval(0); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_VERIFY_WITH_TIMEOUT(spy.count() >= 1, 7000); + QTRY_VERIFY_WITH_TIMEOUT(spy.count() > 0, 7000); + QCOMPARE(timeout.count(), 0); spy.clear(); - m_source->setUpdateInterval(2500); + m_source->setUpdateInterval(5000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; + QTRY_VERIFY_WITH_TIMEOUT((spy.count() == 2) && (timeout.count() == 0), 15000); + spy.clear(); - QTRY_COMPARE_WITH_TIMEOUT_RANGE(spy.count(), 2, 1250, 5000); + m_source->setUpdateInterval(10000); + + EXPECT_FAIL_WINCE_SEE_MOBILITY_337; + QTRY_VERIFY_WITH_TIMEOUT((spy.count() == 2) && (timeout.count() == 0), 30000); spy.clear(); m_source->setUpdateInterval(5000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - - QTRY_COMPARE_WITH_TIMEOUT_RANGE(spy.count(), 2, 5000, 10000); + QTRY_VERIFY_WITH_TIMEOUT((spy.count() == 2) && (timeout.count() == 0), 15000); spy.clear(); - m_source->setUpdateInterval(2500); + m_source->setUpdateInterval(5000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - - QTRY_COMPARE_WITH_TIMEOUT_RANGE(spy.count(), 2, 1250, 5000); - spy.clear(); - - m_source->setUpdateInterval(2500); - - EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - - QTRY_COMPARE_WITH_TIMEOUT_RANGE(spy.count(), 2, 1250, 5000); + QTRY_VERIFY_WITH_TIMEOUT((spy.count() == 2) && (timeout.count() == 0), 15000); spy.clear(); m_source->setUpdateInterval(0); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - - QTRY_VERIFY_WITH_TIMEOUT(spy.count() >= 1, 7000); + QTRY_VERIFY_WITH_TIMEOUT((spy.count() == 1) && (timeout.count() == 0), 7000); spy.clear(); m_source->setUpdateInterval(0); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - - QTRY_VERIFY_WITH_TIMEOUT(spy.count() >= 1, 7000); + QTRY_VERIFY_WITH_TIMEOUT((spy.count() == 1) && (timeout.count() == 0), 7000); spy.clear(); m_source->stopUpdates(); @@ -497,11 +528,12 @@ CHECK_SOURCE_VALID; QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy timeout(m_source, SIGNAL(updateTimeout())); m_source->startUpdates(); for (int i = 0; i < 3; i++) { EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_VERIFY_WITH_TIMEOUT(spy.count() > 0, 7000); + QTRY_VERIFY_WITH_TIMEOUT((spy.count() > 0) && (timeout.count() == 0), 7000); spy.clear(); } m_source->stopUpdates(); @@ -513,12 +545,13 @@ CHECK_SOURCE_VALID; QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy timeout(m_source, SIGNAL(updateTimeout())); m_source->setUpdateInterval(0); m_source->startUpdates(); for (int i = 0; i < 3; i++) { EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_VERIFY_WITH_TIMEOUT(spy.count() > 0, 7000); + QTRY_VERIFY_WITH_TIMEOUT((spy.count() > 0) && (timeout.count() == 0), 7000); spy.clear(); } m_source->stopUpdates(); @@ -529,6 +562,7 @@ CHECK_SOURCE_VALID; QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy timeout(m_source, SIGNAL(updateTimeout())); m_source->setUpdateInterval(0); m_source->startUpdates(); @@ -536,7 +570,7 @@ EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_VERIFY_WITH_TIMEOUT(spy.count() > 0, 7000); + QTRY_VERIFY_WITH_TIMEOUT((spy.count() > 0) && (timeout.count() == 0), 7000); m_source->startUpdates(); // check there is no crash @@ -549,23 +583,24 @@ CHECK_SOURCE_VALID; QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy timeout(m_source, SIGNAL(updateTimeout())); m_source->setUpdateInterval(7000); m_source->startUpdates(); for (int i = 0; i < 2; i++) { EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 1, 14000); + QTRY_VERIFY_WITH_TIMEOUT((spy.count() > 0) && (timeout.count() == 0), 9500); spy.clear(); } m_source->stopUpdates(); - QTest::qWait(14000); + QTest::qWait(9500); QCOMPARE(spy.count(), 0); spy.clear(); m_source->setUpdateInterval(0); m_source->startUpdates(); m_source->stopUpdates(); - QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 0, 7000); + QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 0, 9500); } //TC_ID_3_x_2 @@ -598,11 +633,13 @@ CHECK_SOURCE_VALID; QSignalSpy spyUpdate(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy spyTimeout(m_source, SIGNAL(updateTimeout())); + m_source->requestUpdate(7000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spyUpdate.count(), 1, 7000); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() > 0) && (spyTimeout.count() == 0), 7000); } void TestQGeoPositionInfoSource::requestUpdate_defaultTimeout() @@ -610,12 +647,14 @@ CHECK_SOURCE_VALID; QSignalSpy spyUpdate(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy spyTimeout(m_source, SIGNAL(updateTimeout())); m_source->requestUpdate(0); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spyUpdate.count(), 1, 7000); + // S60 emulator fail + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() > 0) && (spyTimeout.count() == 0), 7000); } // TC_ID_3_x_2 : Create position source and call requestUpdate with a timeout less than @@ -638,17 +677,19 @@ CHECK_SOURCE_VALID; QSignalSpy spyUpdate(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy spyTimeout(m_source, SIGNAL(updateTimeout())); + m_source->requestUpdate(7000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spyUpdate.count(), 1, 7000); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() > 0) && (spyTimeout.count() == 0), 7000); spyUpdate.clear(); m_source->requestUpdate(7000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spyUpdate.count(), 1, 7000); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() > 0) && (spyTimeout.count() == 0), 7000); } void TestQGeoPositionInfoSource::requestUpdate_overlappingCalls() @@ -656,12 +697,14 @@ CHECK_SOURCE_VALID; QSignalSpy spyUpdate(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy spyTimeout(m_source, SIGNAL(updateTimeout())); + m_source->requestUpdate(7000); m_source->requestUpdate(7000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spyUpdate.count(), 1, 14000); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() > 0) && (spyTimeout.count() == 0), 7000); } //TC_ID_3_x_4 @@ -669,7 +712,7 @@ { CHECK_SOURCE_VALID; - QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy spyUpdate(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); QSignalSpy spyTimeout(m_source, SIGNAL(updateTimeout())); m_source->setUpdateInterval(0); @@ -677,20 +720,20 @@ EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 1, 7000); - spy.clear(); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() > 0) && (spyTimeout.count() == 0), 7000); + spyUpdate.clear(); - m_source->requestUpdate(5000); + m_source->requestUpdate(7000); QTest::qWait(7000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QVERIFY((spy.count() > 0) && (spyTimeout.count() == 0)); - spy.clear(); + QVERIFY((spyUpdate.count() > 0) && (spyTimeout.count() == 0)); + spyUpdate.clear(); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_VERIFY_WITH_TIMEOUT(spy.count() >= 0, MAX_WAITING_TIME); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() > 0) && (spyTimeout.count() == 0), MAX_WAITING_TIME); m_source->stopUpdates(); } @@ -699,7 +742,7 @@ { CHECK_SOURCE_VALID; - QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy spyUpdate(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); QSignalSpy spyTimeout(m_source, SIGNAL(updateTimeout())); m_source->setUpdateInterval(10000); @@ -707,19 +750,19 @@ EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 1, 20000); - spy.clear(); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() == 1) && (spyTimeout.count() == 0), 20000); + spyUpdate.clear(); m_source->requestUpdate(7000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_VERIFY_WITH_TIMEOUT((spy.count() == 1) && (spyTimeout.count() == 0), 7000); - spy.clear(); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() == 1) && (spyTimeout.count() == 0), 7000); + spyUpdate.clear(); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 1, 20000); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() == 1) && (spyTimeout.count() == 0), 20000); m_source->stopUpdates(); } @@ -728,7 +771,7 @@ { CHECK_SOURCE_VALID; - QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy spyUpdate(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); QSignalSpy spyTimeout(m_source, SIGNAL(updateTimeout())); m_source->requestUpdate(7000); @@ -738,8 +781,8 @@ EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_VERIFY_WITH_TIMEOUT((spy.count() >= 2) && (spyTimeout.count() == 0), 14000); - spy.clear(); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() >= 2) && (spyTimeout.count() == 0), 14000); + spyUpdate.clear(); QTest::qWait(7000); @@ -754,7 +797,7 @@ { CHECK_SOURCE_VALID; - QSignalSpy spy(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); + QSignalSpy spyUpdate(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&))); QSignalSpy spyTimeout(m_source, SIGNAL(updateTimeout())); m_source->requestUpdate(7000); @@ -764,12 +807,12 @@ EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_VERIFY_WITH_TIMEOUT((spy.count() > 0) && (spyTimeout.count() == 0), 7000); - spy.clear(); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() > 0) && (spyTimeout.count() == 0), 7000); + spyUpdate.clear(); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; - QTRY_COMPARE_WITH_TIMEOUT(spy.count(), 1, 20000); + QTRY_VERIFY_WITH_TIMEOUT((spyUpdate.count() > 0) && (spyTimeout.count() == 0), 20000); m_source->stopUpdates(); } diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/testqgeosatelliteinfosource.cpp --- a/qtmobility/tests/auto/testqgeosatelliteinfosource.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/auto/testqgeosatelliteinfosource.cpp Mon May 03 13:18:40 2010 +0300 @@ -150,29 +150,29 @@ void TestQGeoSatelliteInfoSource::test_slot2() { - m_testSlot2Called = true; + m_testSlot2Called = true; } void TestQGeoSatelliteInfoSource::constructor_withParent() { - QLocationTestUtils::uheap_mark(); + //QLocationTestUtils::uheap_mark(); QObject *parent = new QObject(); new MySatelliteSource(parent); delete parent; - QLocationTestUtils::uheap_mark_end(); + //QLocationTestUtils::uheap_mark_end(); } void TestQGeoSatelliteInfoSource::constructor_noParent() { - QLocationTestUtils::uheap_mark(); + //QLocationTestUtils::uheap_mark(); MySatelliteSource *obj = new MySatelliteSource(); delete obj; - QLocationTestUtils::uheap_mark_end(); + //QLocationTestUtils::uheap_mark_end(); } void TestQGeoSatelliteInfoSource::createDefaultSource() { - QLocationTestUtils::uheap_mark(); + //QLocationTestUtils::uheap_mark(); QObject *parent = new QObject; QGeoSatelliteInfoSource *source = QGeoSatelliteInfoSource::createDefaultSource(parent); @@ -180,27 +180,31 @@ QVERIFY(source != 0); #elif defined(Q_OS_WINCE) QVERIFY(source != 0); -#else +#elif defined(Q_WS_MAEMO_5) + QVERIFY(source != 0); +#else QVERIFY(source == 0); #endif delete parent; - QLocationTestUtils::uheap_mark_end(); + //QLocationTestUtils::uheap_mark_end(); } void TestQGeoSatelliteInfoSource::createDefaultSource_noParent() { - QLocationTestUtils::uheap_mark(); + //QLocationTestUtils::uheap_mark(); QGeoSatelliteInfoSource *source = QGeoSatelliteInfoSource::createDefaultSource(0); #if defined(Q_OS_SYMBIAN) QVERIFY(source != 0); #elif defined(Q_OS_WINCE) QVERIFY(source != 0); +#elif defined(Q_WS_MAEMO_5) + QVERIFY(source != 0); #else QVERIFY(source == 0); #endif delete source; - QLocationTestUtils::uheap_mark_end(); + //QLocationTestUtils::uheap_mark_end(); } void TestQGeoSatelliteInfoSource::startUpdates() @@ -479,16 +483,16 @@ void TestQGeoSatelliteInfoSource::removeSlotForSatellitesInUseUpdated() { - CHECK_SOURCE_VALID; - - bool i = connect(m_source, SIGNAL(satellitesInUseUpdated(const QList &)), this, SLOT(test_slot1())); - QVERIFY(i == true); - i = connect(m_source, SIGNAL(satellitesInUseUpdated(const QList &)), this, SLOT(test_slot2())); - QVERIFY(i == true); - i = disconnect(m_source, SIGNAL(satellitesInUseUpdated(const QList &)), this, SLOT(test_slot1())); - QVERIFY(i == true); - - m_source->requestUpdate(7000); + CHECK_SOURCE_VALID; + + bool i = connect(m_source, SIGNAL(satellitesInUseUpdated(const QList &)), this, SLOT(test_slot1())); + QVERIFY(i == true); + i = connect(m_source, SIGNAL(satellitesInUseUpdated(const QList &)), this, SLOT(test_slot2())); + QVERIFY(i == true); + i = disconnect(m_source, SIGNAL(satellitesInUseUpdated(const QList &)), this, SLOT(test_slot1())); + QVERIFY(i == true); + + m_source->requestUpdate(7000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; @@ -497,16 +501,16 @@ void TestQGeoSatelliteInfoSource::removeSlotForSatellitesInViewUpdated() { - CHECK_SOURCE_VALID; - - bool i = connect(m_source, SIGNAL(satellitesInViewUpdated(const QList &)), this, SLOT(test_slot1())); - QVERIFY(i == true); - i = connect(m_source, SIGNAL(satellitesInViewUpdated(const QList &)), this, SLOT(test_slot2())); - QVERIFY(i == true); - i = disconnect(m_source, SIGNAL(satellitesInViewUpdated(const QList &)), this, SLOT(test_slot1())); - QVERIFY(i == true); - - m_source->requestUpdate(7000); + CHECK_SOURCE_VALID; + + bool i = connect(m_source, SIGNAL(satellitesInViewUpdated(const QList &)), this, SLOT(test_slot1())); + QVERIFY(i == true); + i = connect(m_source, SIGNAL(satellitesInViewUpdated(const QList &)), this, SLOT(test_slot2())); + QVERIFY(i == true); + i = disconnect(m_source, SIGNAL(satellitesInViewUpdated(const QList &)), this, SLOT(test_slot1())); + QVERIFY(i == true); + + m_source->requestUpdate(7000); EXPECT_FAIL_WINCE_SEE_MOBILITY_337; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_add_async/ut_qtcontacts_add_async.cpp --- a/qtmobility/tests/auto/ut_qtcontacts_add_async/ut_qtcontacts_add_async.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,241 +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 Qt Mobility Components. -** -** $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 "ut_qtcontacts_add_async.h" - -#include -#include -#include -#include -#include - -// Note that we try to avoid using any names that might already be in the database: -const char* TESTNAME_FIRST = "ut_qtcontacts_add_firstname"; -const char* TESTNAME_LAST = "ut_qtcontacts_add_firstlast"; - -ut_qtcontacts_add::ut_qtcontacts_add() -: getExistingContactFinishedCallback(0), - waiting(false) -{ -} - -ut_qtcontacts_add::~ut_qtcontacts_add() -{ - -} - -void ut_qtcontacts_add::initTestCase() -{ -} - -void ut_qtcontacts_add::cleanupTestCase() -{ -} - -void ut_qtcontacts_add::init() -{ -} - -void ut_qtcontacts_add::cleanup() -{ - waiting = false; -} - -bool ut_qtcontacts_add::waitForStop() -{ - waiting = true; - - const int max_secs = 100000; - - // wait for signal - int i = 0; - while(waiting && i++ < max_secs) { - // Allow the mainloop to run: - QTest::qWait(10); - } - - return !waiting; -} - -QContactManager* ut_qtcontacts_add::getContactManager() -{ - static QContactManager manager("tracker"); - return &manager; -} - -void ut_qtcontacts_add::onContactFetchRequestProgress() -{ - //qDebug() << "onContactFetchRequestProgress"; - if (!contactFetchRequest.isFinished()) - return; - - //Store the contact so the callback can use it. - if(!(contactFetchRequest.contacts().isEmpty())) { - contact = contactFetchRequest.contacts()[0]; - QVERIFY(contact.localId() != 0); - contactFetchRequest.cancel(); //Stop any more slot calls. - } - - //qDebug() << "debug: fetched localId=" << contact.localId(); - - //Avoid more slot calls, though this is unlikely because it has finished. - contactFetchRequest.cancel(); - - //Call the callback method that was specified to getExistingContact(): - if(getExistingContactFinishedCallback) { - FinishedCallbackFunc func = getExistingContactFinishedCallback; - getExistingContactFinishedCallback = 0; - (this->*func)(); - } -} - - -void ut_qtcontacts_add::getExistingContact(FinishedCallbackFunc finishedCallback) -{ - QContactManager* manager = getContactManager(); - Q_ASSERT(manager); - - // Stop pending fetch requests - if (contactFetchRequest.isActive()) - contactFetchRequest.cancel(); - - // Initialize the result. - contact = QContact(); - - //TODO: How can we AND on both the first and last name? - getExistingContactFinishedCallback = finishedCallback; //Call this when the contact has been retrieved. - connect(&contactFetchRequest, SIGNAL(resultsAvailable()), - SLOT(onContactFetchRequestProgress())); - - QContactDetailFilter nameFilter; - nameFilter.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); - nameFilter.setValue(QLatin1String(TESTNAME_FIRST)); - nameFilter.setMatchFlags(QContactFilter::MatchExactly); - contactFetchRequest.setManager(manager); - contactFetchRequest.setFilter(nameFilter); - - //qDebug() << "debug: start request"; - contactFetchRequest.start(); -} - -//This is our actual test function: -void ut_qtcontacts_add::ut_testAddContact() -{ - //qDebug() << "debug: ut_testAddContact"; - //Make sure that the contact is not already in the database. - getExistingContact(&ut_qtcontacts_add::onContactFoundThenRemoveAndTest); - - //Block (allowing the mainloop to run) until we have finished. - waitForStop(); -} - -void ut_qtcontacts_add::onContactFoundThenRemoveAndTest() -{ - //qDebug() << "debug: Removing the existing contact, if it exists."; - QContactManager* manager = getContactManager(); - Q_ASSERT(manager); - - //TODO: Find and use an async API that tells us when it has finished. - manager->removeContact(contact.localId()); - - // Run the Qt UI's main loop, showing the editor while it is running: - QTimer::singleShot(2000, this, SLOT(onTimeoutAddContact())); -} - -void ut_qtcontacts_add::onTimeoutAddContact() -{ - //qDebug() << "debug: Trying to add contact."; - - // Offer a UI to edit a prefilled contact. - QContactName name; - name.setFirstName(QLatin1String(TESTNAME_FIRST)); - name.setLastName(QLatin1String(TESTNAME_LAST)); - //TODO: Find and use an async API that tells us when it has finished. - contact.saveDetail(&name); - //const bool saved = contact.saveDetail(&name); - //Q_ASSERT(saved); //This won't necessarily be useful because our implementation doesn't support sync methods. - - //Save the contact. - //But note that our QContactManager backend does not set localId when returning. - QContactManager* manager = getContactManager(); - Q_ASSERT(manager); - - - manager->saveContact(&contact); - //This works too: - //QContact copy(contact); - //manager->saveContact(©); - - //Check that it was really saved: - //qDebug() << "debug: checking that the contact was saved."; - getExistingContact(&ut_qtcontacts_add::onContactFoundThenCheck); -} - -void ut_qtcontacts_add::onContactFoundThenCheck() -{ - //Check that it was really saved: - // The ContactManager::saveContact() documentation suggests that localeId=0 is for non-saved contacts. - //QEXPECT_FAIL("", "QContactManager::saveContact() saves the contact (see it by running the contacts UI), but returns false and doesn't set error(). Find out why.", Continue); - QVERIFY(contact.localId() != 0); - - //Check that the correct details were saved: - const QContactName name = contact.detail(); - QVERIFY(name.firstName() == QLatin1String(TESTNAME_FIRST)); - QVERIFY(name.lastName() == QLatin1String(TESTNAME_LAST)); - - //Try to restore original conditions: - getExistingContact(&ut_qtcontacts_add::onContactFoundThenRemoveAndStop); -} - -void ut_qtcontacts_add::onContactFoundThenRemoveAndStop() -{ - //qDebug() << "debug: ut_qtcontacts_add::onContactFoundThenRemoveAndStop"; - QContactManager* manager = getContactManager(); - Q_ASSERT(manager); - manager->removeContact(contact.localId()); - - // Allow the actual test function to return: - waiting = false; -} - - - -QTEST_MAIN(ut_qtcontacts_add) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_add_async/ut_qtcontacts_add_async.h --- a/qtmobility/tests/auto/ut_qtcontacts_add_async/ut_qtcontacts_add_async.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +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 Qt Mobility Components. -** -** $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 UT_CONTACTSGUI_EDITCONTACT_H_ -#define UT_CONTACTSGUI_EDITCONTACT_H_ - -#include -#include -#include -#include - -QTM_USE_NAMESPACE - -class ut_qtcontacts_add : public QObject -{ -Q_OBJECT -public: - ut_qtcontacts_add(); - ~ut_qtcontacts_add(); - -// Private slots are called by the QTest framework. -private slots: - // Per test class: - void initTestCase(); - void cleanupTestCase(); - - // Per test-function: - void init(); - void cleanup(); - - // Test functions: - void ut_testAddContact(); - -// Protected or public slots are _not_ called by the QTest framework. -protected slots: - void onContactFetchRequestProgress(); - void onContactFoundThenRemoveAndTest(); - void onTimeoutAddContact(); - void onContactFoundThenCheck(); - void onContactFoundThenRemoveAndStop(); - -private: - - QContactManager* getContactManager(); - - typedef void (ut_qtcontacts_add::*FinishedCallbackFunc)(void); - - // Get the contact ID for the test contact if it exists already. - void getExistingContact(FinishedCallbackFunc finishedCallback); - - // wait (allowing the mainloop to respond) until this->waiting is false. - bool waitForStop(); - - //A hacky way to bind an extra parameter to the Qt slot. - FinishedCallbackFunc getExistingContactFinishedCallback; - - QContact contact; - QContactFetchRequest contactFetchRequest; - - bool waiting; -}; - -#endif /* UT_CONTACTSGUI_H_ */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_add_async/ut_qtcontacts_add_async.pro --- a/qtmobility/tests/auto/ut_qtcontacts_add_async/ut_qtcontacts_add_async.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -TARGET = ut_qtcontacts_add_async - -test.depends = all -QMAKE_EXTRA_TARGETS += test -QCONTACTS_TRACKER_BACKENDDIR = ../../ - -CONFIG += test -QT += testlib - -LIBS += -lqttracker -LIBS += -lQtContacts - -MOC_DIR = .moc -OBJECTS_DIR = .obj - -# CONFIG += contacts -INCLUDEPATH += /usr/include/qt4/QtContacts \ - /usr/include \ - $$QCONTACTS_TRACKER_BACKENDDIR - -## Include source files under test. -HEADERS += $$QCONTACTS_TRACKER_BACKENDDIR/qcontacttrackerbackend_p.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactasyncrequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/trackerchangelistener.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactslive.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactsaverequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipfetchrequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipsaverequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactidfetchrequest.h - - -SOURCES += $$QCONTACTS_TRACKER_BACKENDDIR/qcontacttrackerbackend.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactasyncrequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/trackerchangelistener.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactslive.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactsaverequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipfetchrequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipsaverequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactidfetchrequest.cpp - - -## Include unit test files -HEADERS += ut_qtcontacts_add_async.h - -SOURCES += ut_qtcontacts_add_async.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_fetch/ut_qtcontacts_fetch.cpp --- a/qtmobility/tests/auto/ut_qtcontacts_fetch/ut_qtcontacts_fetch.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,297 +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 Qt Mobility Components. -** -** $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 "ut_qtcontacts_fetch.h" - -#include -#include -#include -#include -#include - -// Note that we try to avoid using any names that might already be in the database: -const char* TESTNAME_FIRST = "ut_qtcontacts_fetch_firstname"; -const char* TESTNAME_LAST = "ut_qtcontacts_fetch_firstlast"; - -ut_qtcontacts_fetch::ut_qtcontacts_fetch() -: waiting(false), - state(STATE_START) -{ -} - -ut_qtcontacts_fetch::~ut_qtcontacts_fetch() -{ - -} - -void ut_qtcontacts_fetch::initTestCase() -{ -} - -void ut_qtcontacts_fetch::cleanupTestCase() -{ -} - -void ut_qtcontacts_fetch::init() -{ -} - -void ut_qtcontacts_fetch::cleanup() -{ - waiting = false; -} - -void ut_qtcontacts_fetch::doNextOperation() -{ - qDebug() << "ut_qtcontacts_fetch::doNextOperation(): state=" << state; - - switch(state) { - case STATE_START: - //qDebug() << "debug: ut_testAddContact"; - //Make sure that the contact is not already in the database. - getExistingContact(); - - //Block (allowing the mainloop to run) until we have finished. - waitForStop(); - break; - case STATE_INITIAL_EXISTING_FETCHED: - removeContact(); - break; - case STATE_INITIAL_EXISTING_REMOVED: - addContact(); - break; - case STATE_CONTACT_SAVED: - //Get the contact, to check that the save worked: - getExistingContact(true /* any_contact */); - break; - case STATE_AFTER_SAVE_FETCHED_FOR_CHECK: - checkSavedContact(); - break; - case STATE_AFTER_SAVE_CHECKED: - //Get the saved contact, to remove it, to restore original conditions: - getExistingContact(); - break; - case STATE_AFTER_SAVE_FETCHED_FOR_REMOVAL: - removeContact(); - break; - case STATE_SAVED_CONTACT_REMOVED: - //Allow our actual test function to return: - waiting = false; //Make waitForStop() return. - break; - default: - qDebug() << "ut_qtcontacts_fetch::doNextOperation(): Unexpected state: " << state; - waiting = false; - break; - } -} - -bool ut_qtcontacts_fetch::waitForStop() -{ - waiting = true; - - const int max_secs = 100000; - - // wait for signal - int i = 0; - while(waiting && i++ < max_secs) { - // Allow the mainloop to run: - QTest::qWait(10); - } - - return !waiting; -} - -QContactManager* ut_qtcontacts_fetch::getContactManager() -{ - static QContactManager manager("tracker"); - return &manager; -} - -void ut_qtcontacts_fetch::onContactFetchRequestProgress() -{ - if (!contactFetchRequest.isFinished()) - return; - - qDebug() << "onContactFetchRequestProgress: state=: " << state; - - //Store the contact so the callback can use it. - if(!(contactFetchRequest.contacts().isEmpty())) { - contact = contactFetchRequest.contacts()[0]; - QVERIFY(contact.localId() != 0); - } - - qDebug() << "debug: fetched localId=" << contact.localId(); - - //Avoid more slot calls, though this is unlikely because it has finished. - if(contactFetchRequest.isActive()) { - const bool cancelled = contactFetchRequest.cancel(); - Q_ASSERT(cancelled); - } - - //Choose the next state and do the next appropriate operation: - if(state == STATE_START) - state = STATE_INITIAL_EXISTING_FETCHED; //Or not found. - else if(state == STATE_CONTACT_SAVED) - state = STATE_AFTER_SAVE_FETCHED_FOR_CHECK; //Or not found. - else if(state == STATE_AFTER_SAVE_CHECKED) - state = STATE_AFTER_SAVE_FETCHED_FOR_REMOVAL; - else { - qDebug() << "ut_qtcontacts_fetch::onContactFetchRequestProgress(): Ignoring unexpected state: " << state - << " (Probably due to progress callbacks even after contactFetchRequest.cancel())"; - return; - } - QTimer::singleShot(1000, this, SLOT(doNextOperation())); -} - - -void ut_qtcontacts_fetch::getExistingContact(bool any_contact) -{ - qDebug() << "getExistingContact: state=: " << state; - QContactManager* manager = getContactManager(); - Q_ASSERT(manager); - - // Stop pending fetch requests - if (contactFetchRequest.isActive()) - contactFetchRequest.cancel(); - - //Initialize the result: - contact = QContact(); - - //TODO: How can we AND on both the first and last name? - connect(&contactFetchRequest, SIGNAL(resultsAvailable()), - SLOT(onContactFetchRequestProgress())); - - if(!any_contact) { - QContactDetailFilter nameFilter; - nameFilter.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); - nameFilter.setValue(QLatin1String(TESTNAME_FIRST)); - nameFilter.setMatchFlags(QContactFilter::MatchExactly); - contactFetchRequest.setManager(manager); - contactFetchRequest.setFilter(nameFilter); - } - - //qDebug() << "debug: start request"; - contactFetchRequest.start(); -} - -//This is our actual test function: -void ut_qtcontacts_fetch::ut_testAddContact() -{ - state = STATE_START; - doNextOperation(); -} - -void ut_qtcontacts_fetch::removeContact() -{ - qDebug() << "ut_qtcontacts_fetch::removeContact(): state:" << state; - - if (contact.localId() != 0) { //If it was found. - //qDebug() << "debug: Removing the existing contact, if it exists."; - QContactManager* manager = getContactManager(); - Q_ASSERT(manager); - - //TODO: Find and use an async API that tells us when it has finished. - qDebug() << " ut_qtcontacts_fetch::removeContact(): removing localID=" << contact.localId(); - manager->removeContact(contact.localId()); - } - - //Choose the next state and do the next appropriate operation: - if(state == STATE_INITIAL_EXISTING_FETCHED) - state = STATE_INITIAL_EXISTING_REMOVED; - else if(state == STATE_AFTER_SAVE_FETCHED_FOR_REMOVAL) //Or not found. - state = STATE_SAVED_CONTACT_REMOVED; - else - qDebug() << "ut_qtcontacts_fetch::removeContact: Unexpected state."; - - QTimer::singleShot(1000, this, SLOT(doNextOperation())); -} - -void ut_qtcontacts_fetch::addContact() -{ - //qDebug() << "debug: Trying to add contact."; - - // Offer a UI to edit a prefilled contact. - QContactName name; - name.setFirstName(QLatin1String(TESTNAME_FIRST)); - name.setLastName(QLatin1String(TESTNAME_LAST)); - //TODO: Find and use an async API that tells us when it has finished. - contact.saveDetail(&name); - //const bool saved = contact.saveDetail(&name); - //Q_ASSERT(saved); //This won't necessarily be useful because our implementation doesn't support sync methods. - - //Save the contact. - //But note that our QContactManager backend does not set localId when returning. - QContactManager* manager = getContactManager(); - Q_ASSERT(manager); - - - //manager->saveContact(&contact); - //This works too: - QContact copy(contact); - manager->saveContact(©); - - //Check that it was really saved: - //qDebug() << "debug: checking that the contact was saved."; - state = STATE_CONTACT_SAVED; - QTimer::singleShot(1000, this, SLOT(doNextOperation())); -} - -void ut_qtcontacts_fetch::checkSavedContact() -{ - //Check that it was really saved: - // The ContactManager::saveContact() documentation suggests that localeId=0 is for non-saved contacts. - QVERIFY(contact.localId() != 0); - - //Check that the correct details were saved: - const QContactName name = contact.detail(); - QVERIFY(name.firstName() == QLatin1String(TESTNAME_FIRST)); - QVERIFY(name.lastName() == QLatin1String(TESTNAME_LAST)); - - qDebug() << "ut_qtcontacts_fetch::checkSavedContact(): found contact: firstName=" << name.firstName() << - ", lastName=" << name.lastName(); - - //Try to restore original conditions: - state = STATE_AFTER_SAVE_CHECKED; - doNextOperation(); -} - - -QTEST_MAIN(ut_qtcontacts_fetch) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_fetch/ut_qtcontacts_fetch.h --- a/qtmobility/tests/auto/ut_qtcontacts_fetch/ut_qtcontacts_fetch.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,126 +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 Qt Mobility Components. -** -** $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 UT_QTCONTACTS_TRACKERPLUGIN_FETCH_H -#define UT_QTCONTACTS_TRACKERPLUGIN_FETCH_H - -#include -#include -#include -#include - -QTM_USE_NAMESPACE - -class ut_qtcontacts_fetch : public QObject -{ -Q_OBJECT -public: - ut_qtcontacts_fetch(); - ~ut_qtcontacts_fetch(); - -// Private slots are called by the QTest framework. -private slots: - // Per test class: - void initTestCase(); - void cleanupTestCase(); - - // Per test-function: - void init(); - void cleanup(); - - // Test functions: - void ut_testAddContact(); - -// Protected or public slots are _not_ called by the QTest framework. -protected slots: - void onContactFetchRequestProgress(); - - /** Do the next step, as dictated by the value of this->state. - * This is a slot so it can be called in a timeout, to make sure that - * we use the QContacts API semi-asynchronously. - */ - void doNextOperation(); - -private: - - void removeContact(); - void addContact(); - void checkSavedContact(); - void fetchSavedForRemoval(); - - QContactManager* getContactManager(); - - /** Get the contact ID for the test contact if it exists already. - * This then sets the next appropriate state and does the next step. - * - * @param any_contact Whether we should check for any contact at all. Otherwise check for the specific one. - */ - void getExistingContact(bool any_contact = false); - - // wait (allowing the mainloop to respond) until this->waiting is false. - bool waitForStop(); - - QContact contact; - QContactFetchRequest contactFetchRequest; - - bool waiting; - - // We must use async QtContacts API, - // because the sync API is not supported with qtcontacts-tracker, - // so this tells us what our callbacks should do next. - enum State - { - STATE_START = 0, - STATE_INITIAL_EXISTING_FETCHED, //Or not found. - STATE_INITIAL_EXISTING_REMOVED, - STATE_CONTACT_SAVED, - STATE_AFTER_SAVE_FETCHED_FOR_CHECK, //Or not found. - STATE_AFTER_SAVE_CHECKED, - STATE_AFTER_SAVE_FETCHED_FOR_REMOVAL, //Or not found. - STATE_SAVED_CONTACT_REMOVED - }; - State state; - - - -}; - -#endif /* UT_CONTACTSGUI_H_ */ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_fetch/ut_qtcontacts_fetch.pro --- a/qtmobility/tests/auto/ut_qtcontacts_fetch/ut_qtcontacts_fetch.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -TARGET = ut_qtcontacts_fetch - -test.depends = all -QMAKE_EXTRA_TARGETS += test -QCONTACTS_TRACKER_BACKENDDIR = ../../ - -CONFIG += test -QT += testlib - -LIBS += -lqttracker -LIBS += -lQtContacts - -MOC_DIR = .moc -OBJECTS_DIR = .obj - -# CONFIG += contacts -INCLUDEPATH += /usr/include/qt4/QtContacts \ - /usr/include \ - $$QCONTACTS_TRACKER_BACKENDDIR - -## Include source files under test. -HEADERS += $$QCONTACTS_TRACKER_BACKENDDIR/qcontacttrackerbackend_p.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactasyncrequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/trackerchangelistener.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactslive.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactsaverequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipfetchrequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipsaverequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactidfetchrequest.h - - -SOURCES += $$QCONTACTS_TRACKER_BACKENDDIR/qcontacttrackerbackend.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactasyncrequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/trackerchangelistener.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactslive.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactsaverequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipfetchrequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipsaverequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactidfetchrequest.cpp - - -## Include unit test files -HEADERS += ut_qtcontacts_fetch.h - -SOURCES += ut_qtcontacts_fetch.cpp diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.cpp --- a/qtmobility/tests/auto/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1811 +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 Qt Mobility Components. -** -** $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 "ut_qtcontacts_trackerplugin.h" - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "contactmanager.h" - -// update this when creating debian package -const QString PATH_TO_SPARQL_TESTS("./ut_qtcontacts_trackerplugin_data"); - -ut_qtcontacts_trackerplugin::ut_qtcontacts_trackerplugin() -{ - -} - -void ut_qtcontacts_trackerplugin::initTestCase() -{ - QMap trackerEngineParams; - trackerEngine = new QContactTrackerEngine(trackerEngineParams); - errorMap = new QMap(); -} - -void ut_qtcontacts_trackerplugin::testContacts() -{ - QContact c1; - QContact c2; - - trackerEngine->saveContact(&c1, error); - trackerEngine->saveContact(&c2, error); - QVERIFY2((error == QContactManager::NoError),"Saving contact"); - QList contacts = trackerEngine->contactIds(queryFilter, sortOrders, error); - QVERIFY2(contacts.contains(c1.localId()), "Previously added contact is not found"); - QVERIFY2(contacts.contains(c2.localId()), "Previously added contact is not found"); -} - -void ut_qtcontacts_trackerplugin::testContact() -{ - // Test invalid contact id - QContact invalidContact = trackerEngine->contact_impl( -1, error); - QVERIFY(error != QContactManager::NoError); - - // Add a contact - QContact newContact; - const QContactLocalId oldid = newContact.localId(); - QVERIFY( trackerEngine->saveContact( &newContact, error ) ); - - QContactLocalId id = newContact.localId(); - QVERIFY( id != oldid ); - - // Find the added contact - QContact c = trackerEngine->contact_impl( id, error ); - QVERIFY( c.localId() == newContact.localId() ); -} - -void ut_qtcontacts_trackerplugin::testSaveName() -{ - QContact c; - QContactLocalId initialId = c.localId(); - int detailsAdded = 0; - - QMap nameValues; - QContactName name; - nameValues.insert(QLatin1String(QContactName::FieldPrefix), "Mr"); - nameValues.insert(QLatin1String(QContactName::FieldFirst), "John"); - nameValues.insert(QLatin1String(QContactName::FieldMiddle), "Rupert"); - nameValues.insert(QLatin1String(QContactName::FieldLast), "Doe"); -// nameValues.insert(QContactName::FieldSuffix, "III"); - - foreach (QString field, nameValues.keys()) { - name.setValue(field, nameValues.value(field)); - } - c.saveDetail(&name); - - QContactNickname nick; - nick.setValue(QLatin1String(QContactNickname::FieldNickname), "Johnny"); - c.saveDetail(&nick); - - QVERIFY(c.detail().prefix() == "Mr"); - QVERIFY(c.detail().firstName() == "John"); - QVERIFY(c.detail().middleName() == "Rupert"); - QVERIFY(c.detail().lastName() == "Doe"); - QVERIFY(c.detail().nickname() == "Johnny"); - - detailsAdded++; - - trackerEngine->saveContact(&c, error); - QCOMPARE(error, QContactManager::NoError); - QVERIFY(c.localId() != initialId); - QContact contact = trackerEngine->contact_impl(c.localId(), error); - QList details = contact.details(); - QList details2 = contact.details(); - QCOMPARE(details.count(), detailsAdded); - QCOMPARE(details2.count(), detailsAdded); - // Name is unique - foreach(QString field, nameValues.keys()) { - QCOMPARE(details.at(0).value(field), nameValues.value(field)); - } - QCOMPARE(details2.at(0).value(QLatin1String(QContactNickname::FieldNickname)), QString("Johnny")); - - // Try changing the name of the saved contact. - { - QMap nameValues; - QContactName name = c.detail(); - nameValues.insert(QLatin1String(QContactName::FieldPrefix), "Mr2"); - nameValues.insert(QLatin1String(QContactName::FieldFirst), "John2"); - nameValues.insert(QLatin1String(QContactName::FieldMiddle), "Rupert2"); - nameValues.insert(QLatin1String(QContactName::FieldLast), ""); - // nameValues.insert(QContactName::FieldSuffix, "III"); - - foreach (QString field, nameValues.keys()) { - name.setValue(field, nameValues.value(field)); - } - c.saveDetail(&name); - - QContactNickname nick = c.detail(); - nick.setValue(QLatin1String(QContactNickname::FieldNickname), "Johnny2"); - c.saveDetail(&nick); - - - QVERIFY(trackerEngine->saveContact(&c, error)); - QCOMPARE(error, QContactManager::NoError); - QVERIFY(c.localId() != initialId); - - QContact contact = trackerEngine->contact_impl(c.localId(), error); - QCOMPARE(error, QContactManager::NoError); - QList details = contact.details(); - QList details2 = contact.details(); - QCOMPARE(details.count(), detailsAdded); - QCOMPARE(details2.count(), detailsAdded); - // Name is unique - foreach(QString field, nameValues.keys()) { - QCOMPARE(details.at(0).value(field), nameValues.value(field)); - } - QCOMPARE(details2.at(0).value(QLatin1String(QContactNickname::FieldNickname)), QString("Johnny2")); - - // now try to add new name detail fails - this is how currently unique fields are implemented - // so cover it in unit tests - QContactName name1; - name1.setValue(QContactName::FieldFirst, "Something that wont be stored as name is unique"); - c.saveDetail(&name1); - // validate that unique name is not saved - QVERIFY(!trackerEngine->saveContact(&c, error)); - details = contact.details(); - details2 = contact.details(); - QCOMPARE(details.count(), detailsAdded); - QCOMPARE(details2.count(), detailsAdded); - } -} - -void ut_qtcontacts_trackerplugin::testSavePhoneNumber() -{ - // use the same values for 2 contacts - for (int i = 0; i <2; i++ ) - { - QContact c; - QContactLocalId initialId = c.localId(); - int detailsAdded = 0; - QContactName name; - name.setFirstName("I have phone numbers"); - name.setLastName("Girl"); - c.saveDetail(&name); - - // key: phonenumber; value: context,subtype - QMap > phoneValues; - - phoneValues.insert("(704)486-6472", QPair(QLatin1String(QContactDetail::ContextHome), QString())); - phoneValues.insert("(765)957-1663", QPair(QLatin1String(QContactDetail::ContextHome), QString())); - phoneValues.insert("(999)888-1111", QPair(QLatin1String(QContactDetail::ContextHome), - QLatin1String(QContactPhoneNumber::SubTypeMobile))); - - phoneValues.insert("(792)123-6113", QPair(QLatin1String(QContactDetail::ContextWork), QString())); - phoneValues.insert("(918)491-7361", QPair(QLatin1String(QContactDetail::ContextWork), - QLatin1String(QContactPhoneNumber::SubTypeMobile))); - phoneValues.insert("(412)670-1514", QPair(QLatin1String(QContactDetail::ContextWork), - QLatin1String(QContactPhoneNumber::SubTypeCar))); - QMap > formattedPhoneValues; - - - foreach (QString number, phoneValues.keys()) { - QContactPhoneNumber phone; - phone.setNumber(number); - // Stripped automatically on saving RFC 3966 visual-separators reg exp "[(|-|.|)| ]" - formattedPhoneValues.insert(QString(number).replace( QRegExp("[\\(|" \ - "\\-|" \ - "\\.|" \ - "\\)|" \ - " ]"), ""),phoneValues.value(number)); - if (!phoneValues.value(number).first.isEmpty()) { - phone.setContexts(phoneValues.value(number).first); - } - if (!phoneValues.value(number).second.isEmpty()) { - phone.setSubTypes(phoneValues.value(number).second); - } - c.saveDetail(&phone); - detailsAdded++; - } - - trackerEngine->saveContact(&c, error); - QCOMPARE(error, QContactManager::NoError); - QVERIFY(c.localId() != initialId); - // wait for commit transaction to be done, no signals yet - for(int i = 0; i < 100; i++) - { - usleep(10000); - QCoreApplication::processEvents(); - } - - - // verify with synchronous read too - QContact contact = trackerEngine->contact_impl(c.localId(), error); - QCOMPARE(error, QContactManager::NoError); - QList details = contact.details(); - - - QCOMPARE(details.count(), detailsAdded); - - - foreach (QContactPhoneNumber detail, details) { - // Verify that the stored values and attributes are the same as given - QVERIFY(formattedPhoneValues.contains(detail.number())); - QCOMPARE(detail.contexts()[0], formattedPhoneValues.value(detail.number()).first); - if( formattedPhoneValues.value(detail.number()).second.isEmpty()) // default empty is voice - QCOMPARE(detail.subTypes()[0], QLatin1String(QContactPhoneNumber::SubTypeVoice)); - else - QCOMPARE(detail.subTypes()[0], formattedPhoneValues.value(detail.number()).second); - } - - // edit one of numbers . values, context and subtypes and save again - QString editedPhoneValue = "+7044866473"; - QContactPhoneNumber phone = details[0]; - phone.setNumber(editedPhoneValue); - phone.setContexts(QContactDetail::ContextWork); - phone.setSubTypes(QContactPhoneNumber::SubTypeMobile); - c = contact; - c.saveDetail(&phone); - trackerEngine->saveContact(&c, error); - QCOMPARE(error, QContactManager::NoError); - c = this->contact(c.localId(), QStringList()<(); - QCOMPARE(details.count(), detailsAdded); - bool found = false; - foreach (QContactPhoneNumber detail, details) { - if(detail.number() == phone.number()) - { - found = true; - QVERIFY(detail.subTypes().contains(QContactPhoneNumber::SubTypeMobile)); - QVERIFY(detail.contexts().contains(QContactPhoneNumber::ContextWork)); - break; - } - } - QVERIFY(found); - } -} - -void ut_qtcontacts_trackerplugin::testPhoneNumberContext() -{ - QContact c; - QContactPhoneNumber phone; - phone.setContexts(QContactDetail::ContextHome); - phone.setNumber("555-888"); - phone.setSubTypes(QContactPhoneNumber::SubTypeMobile); - c.saveDetail(&phone); - QContact contactToSave = c; - // Let's do this all twice, first time save new detail, and next iteration change the context - for (int iterations = 0; iterations < 2; iterations++) { - QVERIFY(trackerEngine->saveContact(&contactToSave, error)); - // wait for commit transaction to be done, no signals yet - for(int i = 0; i < 100; i++) { - usleep(10000); - QCoreApplication::processEvents(); - } - - QContactFetchRequest request; - QContactLocalIdFilter filter; - QList ids; - ids.append(contactToSave.localId()); - filter.setIds(ids); - request.setFilter(filter); - - QStringList details; - details << QContactPhoneNumber::DefinitionName; - request.setDefinitionRestrictions(details); - - Slots slot; - QObject::connect(&request, SIGNAL(progress(QContactFetchRequest*, bool)), - &slot, SLOT(progress(QContactFetchRequest*, bool ))); - - trackerEngine->startRequest(&request); - - for(int i = 0; i < 100; i++) { - usleep(100000); - QCoreApplication::processEvents(); - if(request.isFinished() ) - break; - } - - // if it takes more, then something is wrong - QVERIFY(request.isFinished()); - QVERIFY(!slot.contacts.isEmpty()); - - QContact contactToTest; - foreach (QContact savedContact, slot.contacts) { - if (savedContact.localId() == contactToSave.localId()) { - contactToTest = savedContact; - } - } - QVERIFY(contactToTest.localId() == contactToSave.localId()); // Just to be sure we got the saved contact - qDebug()<().count(); - - QVERIFY(contactToTest.details().count() == 1); - if (0 == iterations) { - // perform context change - QContactPhoneNumber phoneToEdit = contactToTest.detail(); - phoneToEdit.setContexts(QContactDetail::ContextWork); - contactToTest.saveDetail(&phoneToEdit); - contactToSave = contactToTest; - } - QVERIFY(contactToTest.details().count() == 1); - } -} - -void ut_qtcontacts_trackerplugin::testWritingOnlyWorkMobile() -{ - QContact c; - QContactPhoneNumber phone; - phone.setContexts(QContactDetail::ContextWork); - phone.setNumber("555999"); - phone.setSubTypes(QContactPhoneNumber::SubTypeMobile); - c.saveDetail(&phone); - QContact& contactToSave = c; - QVERIFY(trackerEngine->saveContact(&contactToSave, error)); - // wait for commit transaction to be done, no signals yet - for(int i = 0; i < 100; i++) { - usleep(10000); - QCoreApplication::processEvents(); - } - - QContactFetchRequest request; - QContactLocalIdFilter filter; - QList ids; - ids.append(contactToSave.localId()); - filter.setIds(ids); - request.setFilter(filter); - QStringList details; - details << QContactPhoneNumber::DefinitionName; - request.setDefinitionRestrictions(details); - - Slots slot; - QObject::connect(&request, SIGNAL(progress(QContactFetchRequest*, bool)), - &slot, SLOT(progress(QContactFetchRequest*, bool ))); - - trackerEngine->startRequest(&request); - - for(int i = 0; i < 100; i++) { - usleep(100000); - QCoreApplication::processEvents(); - if(request.isFinished() ) - break; - } - - // if it takes more, then something is wrong - QVERIFY(request.isFinished()); - QVERIFY(!slot.contacts.isEmpty()); - - QContact contactToTest; - foreach (QContact savedContact, slot.contacts) { - if (savedContact.localId() == c.localId()) { - contactToTest = savedContact; - } - } - QVERIFY(contactToTest.localId() == c.localId()); // Just to be sure we got the saved contact - QVERIFY(contactToTest.details().count() == 1); - QVERIFY(contactToTest.detail().number() == phone.number()); - QVERIFY(contactToTest.detail().subTypes() == phone.subTypes()); - QVERIFY(contactToTest.detail().contexts() == phone.contexts()); -} - -void ut_qtcontacts_trackerplugin::testSaveAddress() -{ - QContact c; - QContactName name; - name.setFirstName("Aruba & Barbados"); - name.setLastName("Girl"); - c.saveDetail(&name); - QContactLocalId initialId = c.localId(); - int detailsAdded = 0; - - // List of pairs of field-value map and context - typedef QMap typeAddress; - typedef QPair typeAddressWithContext; - QList addressValues; - - // TODO check status of 137174 and other libqttracker1pre6 bugs before refactoring - typeAddress values; - values.insert(QLatin1String(QContactAddress::FieldCountry), "Barbados"); - values.insert(QLatin1String(QContactAddress::FieldPostcode), "55555"); - values.insert(QLatin1String(QContactAddress::FieldStreet), "Martindales Rd"); - values.insert(QLatin1String(QContactAddress::FieldRegion), "Bridgetown"); - addressValues.append(typeAddressWithContext(values, QLatin1String(QContactDetail::ContextHome))); - values.clear(); - values.insert(QLatin1String(QContactAddress::FieldCountry), "Aruba"); - values.insert(QLatin1String(QContactAddress::FieldPostcode), "44444"); - values.insert(QLatin1String(QContactAddress::FieldStreet), "Brazilie Straat"); - values.insert(QLatin1String(QContactAddress::FieldRegion), "Oranjestad"); - addressValues.append(typeAddressWithContext(values, QLatin1String(QContactDetail::ContextHome))); - values.clear(); - values.insert(QLatin1String(QContactAddress::FieldCountry), "ArubaWork"); - values.insert(QLatin1String(QContactAddress::FieldPostcode), "44445"); - values.insert(QLatin1String(QContactAddress::FieldStreet), "Sunset Blvd"); - values.insert(QLatin1String(QContactAddress::FieldRegion), "Oranjestad"); - addressValues.append(typeAddressWithContext(values, QLatin1String(QContactDetail::ContextHome))); - foreach (typeAddressWithContext addressWithContext, addressValues) { - QContactAddress address; - foreach (QString field, addressWithContext.first.keys()) { - address.setValue(field, addressWithContext.first.value(field)); - } - address.setContexts(addressWithContext.second); - c.saveDetail(&address); - detailsAdded++; - } - - trackerEngine->saveContact(&c, error); - QCOMPARE(error, QContactManager::NoError); - QVERIFY(c.localId() != initialId); - QContact contact = trackerEngine->contact_impl(c.localId(), error); - QList details = contact.details(); - QCOMPARE(details.count(), detailsAdded); - bool found = false; - // Test if inserted values are found in some of the details - foreach (typeAddressWithContext addressWithContext, addressValues) { - foreach (QContactAddress detail, details) { - foreach (QString field, addressWithContext.first.keys()) { - found = (detail.value(field) == addressWithContext.first.value(field)); - if (!found) - break; - } - if (found) - break; - } - QVERIFY2(found, "Inserted detail was not found in the fetched details"); - } -} - -void ut_qtcontacts_trackerplugin::testSaveEmailAddress() -{ - QContact c; - QContactLocalId initialId = c.localId(); - int detailsAdded = 0; - - QMap values; - values.insert("john.does@hotmail.com", QContactDetail::ContextHome); - values.insert("john.doe@gmail.com", QContactDetail::ContextWork); - values.insert("john.doe@nokia.com", QContactDetail::ContextWork); - values.insert("john.doe@johndoe.com", QContactDetail::ContextHome); - foreach(QString address, values.keys()) { - QContactEmailAddress emailAddress; - emailAddress.setEmailAddress(address); - emailAddress.setContexts(values.value(address)); - c.saveDetail(&emailAddress); - detailsAdded++; - } - QContactName name; - name.setFirstName("Jo"); - name.setLastName("H N Doe"); - c.saveDetail(&name); - trackerEngine->saveContact(&c, error); - QCOMPARE(error, QContactManager::NoError); - QVERIFY(c.localId() != initialId); - QContact contact = trackerEngine->contact_impl(c.localId(), error); - QList details = contact.details(); - QCOMPARE(details.count(), detailsAdded); - foreach (QContactEmailAddress detail, details) { - QString address = detail.value(QContactEmailAddress::FieldEmailAddress); - QVERIFY(values.contains(address)); - QCOMPARE(detail.contexts()[0], values.value(address)); - } -} - -void ut_qtcontacts_trackerplugin::testRemoveContact() -{ - QContact c; - QContactPhoneNumber phone; - phone.setNumber("+358501234567"); - c.saveDetail(&phone); - QContactEmailAddress email; - email.setEmailAddress("super.man@hotmail.com"); - c.saveDetail(&email); - QContactName name; - name.setFirstName("Super"); - name.setLastName("Man"); - c.saveDetail(&name); - - QVERIFY2(trackerEngine->saveContact(&c, error) && error == QContactManager::NoError, "Saving a contact failed"); - QVERIFY2(trackerEngine->removeContact(c.localId(), error), "Removing a contact failed"); - QCOMPARE(error, QContactManager::NoError); - QVERIFY2(trackerEngine->contact_impl(c.localId(), error) == QContact(), "Found a contact, which should have been removed"); -} - -void ut_qtcontacts_trackerplugin::testSaveContacts() -{ - QList contacts; - for (int i = 0; i < 3; i++) { - QContact c; - QContactName name; - name.setFirstName("John"); - name.setLastName(QString::number(i,10)); - c.saveDetail(&name); - contacts.append(c); - } - - QMap* errorMap; - trackerEngine->saveContacts(&contacts, errorMap, error); - QCOMPARE(error, QContactManager::NoError); - for (int i = 0; i < contacts.count(); i++) { - QVERIFY(contacts[i].localId() != 0); - QList details = trackerEngine->contact_impl(contacts[i].localId(), error).details(); - QVERIFY(details.count()); - QCOMPARE(details.at(0).lastName(), - QString("%1").arg(QString::number(i,10))); - } -} - -void ut_qtcontacts_trackerplugin::testRemoveContacts() -{ - QList addedIds; - for (int i = 0; i < 5; i++) { - QContact c; - QContactName name; - name.setFirstName(QString("John%1").arg(QString::number(i,10))); - c.saveDetail(&name); - QVERIFY2(trackerEngine->saveContact(&c, error) && error == QContactManager::NoError, "Saving a contact failed"); - addedIds.append(c.localId()); - } - QList toApiRemove; - toApiRemove.append(addedIds.takeLast()); - toApiRemove.append(addedIds.takeLast()); - QList toPluginRemove(addedIds); - // Remove all, but last of the added contacts - bool success = trackerEngine->removeContacts(&toPluginRemove, errorMap, error); - QCOMPARE(success, true); - for (int i = 0; i < errorMap->count(); i++) { - QVERIFY(toPluginRemove[i] == 0); - } - QCOMPARE(error, QContactManager::NoError); - - success = ContactManager::instance()->removeContacts(&toApiRemove, errorMap); - QCOMPARE(success, true); - for (int i = 0; i < errorMap->count(); i++) { - QVERIFY(toApiRemove[i] == 0); - } - - // Try to remove some previously removed contacts, but one valid contact - success = trackerEngine->removeContacts(&addedIds, errorMap, error); - QCOMPARE(errorMap->count(), addedIds.count()); - for (int i = 0; i < errorMap->count() - 1; i++) { - QVERIFY2(addedIds[i] != 0, "Manager should not mark id as zero"); - } -} - -void ut_qtcontacts_trackerplugin::testAvatar() -{ - QContact contactWithAvatar; - QContactAvatar avatar; - - avatar.setAvatar("file:///home/user/.contacts/avatars/default_avatar.png"); - contactWithAvatar.saveDetail(&avatar); - QContactName name; - name.setFirstName("John");name.setLastName("A Frog"); - contactWithAvatar.saveDetail(&name); - QVERIFY(trackerEngine->saveContact( &contactWithAvatar, error)); - - QContact c = trackerEngine->contact_impl( contactWithAvatar.localId(), error); - QList avatars = c.details(); - QVERIFY( avatars.size() ); - QCOMPARE( avatars[0].avatar(), avatar.avatar() ); -} - -void ut_qtcontacts_trackerplugin::testUrl() -{ - - //Context home, homepage url - QContact contactWithUrl1; - QContactUrl url1; - url1.setUrl("http://home.homepage"); - url1.setContexts(QContactDetail::ContextHome); - url1.setSubType(QContactUrl::SubTypeHomePage); - QContactName name; - name.setFirstName("John");name.setLastName("TestUrl1"); - contactWithUrl1.saveDetail(&name); - contactWithUrl1.saveDetail(&url1); - QVERIFY(trackerEngine->saveContact(&contactWithUrl1, error)); - - //Context work, homepage url - QContact contactWithUrl2; - QContactUrl url2; - url2.setUrl("http://work.homepage"); - url2.setContexts(QContactDetail::ContextWork); - url2.setSubType(QContactUrl::SubTypeHomePage); - QContactName name2; - name2.setLastName("TestUrl2"); - contactWithUrl2.saveDetail(&name2); - contactWithUrl2.saveDetail(&url2); - QVERIFY(trackerEngine->saveContact(&contactWithUrl2, error)); - - //Context home, favourite url - QContact contactWithUrl3; - QContactUrl url3; - url3.setUrl("http://home.favourite"); - url3.setContexts(QContactDetail::ContextHome); - url3.setSubType(QContactUrl::SubTypeFavourite); - - name2.setLastName("TestUrl3"); - contactWithUrl3.saveDetail(&name2); - contactWithUrl3.saveDetail(&url3); - QVERIFY(trackerEngine->saveContact(&contactWithUrl3, error)); - - - QContactLocalId id1 = contactWithUrl1.localId(); - QContactLocalId id2 = contactWithUrl2.localId(); - QContactLocalId id3 = contactWithUrl3.localId(); - QCOMPARE(trackerEngine->contact_impl(id1, error).detail().url(), QString("http://home.homepage")); - QCOMPARE(trackerEngine->contact_impl(id2, error).detail().url(), QString("http://work.homepage")); - QCOMPARE(trackerEngine->contact_impl(id3, error).detail().url(), QString("http://home.favourite")); - - QVERIFY(trackerEngine->contact_impl(id1, error).detail().contexts()[0] == - QContactDetail::ContextHome ); - QVERIFY(trackerEngine->contact_impl(id2, error).detail().contexts()[0] == - QContactDetail::ContextWork ); - QVERIFY(trackerEngine->contact_impl(id3, error).detail().contexts()[0] == - QContactDetail::ContextHome ); - - QVERIFY(trackerEngine->contact_impl(id1, error).detail().subType() == - QContactUrl::SubTypeHomePage ); - QVERIFY(trackerEngine->contact_impl(id2, error).detail().subType() == - QContactUrl::SubTypeHomePage ); - QVERIFY(trackerEngine->contact_impl(id3, error).detail().subType() == - QContactUrl::SubTypeFavourite ); - -} - -/* -void ut_qtcontacts_trackerplugin::testGroups() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} - -void ut_qtcontacts_trackerplugin::testGroup() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} - -void ut_qtcontacts_trackerplugin::testSaveGroup() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} - -void ut_qtcontacts_trackerplugin::testRemoveGroup() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} - -void ut_qtcontacts_trackerplugin::testDetailDefinitions() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} - -void ut_qtcontacts_trackerplugin::testDetailDefinition() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} - -void ut_qtcontacts_trackerplugin::testSaveDetailDefinition() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} - -void ut_qtcontacts_trackerplugin::testRemoveDetailDefinition() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} -*/ - -void ut_qtcontacts_trackerplugin::testSyncContactManagerContactsAddedSince() -{ - QDateTime start; - QList addedIds; - syncContactsAddedSinceHelper(start, addedIds); - - QContactChangeLogFilter filter(QContactChangeLogFilter::EventAdded); - filter.setSince(start); - - QList sortOrder; - - QList contactIds = ContactManager::instance()->contacts( filter, sortOrder, QStringList() ); - qDebug() << "addedIds" << addedIds.size(); - qDebug() << "contactIds" << contactIds.size(); - QEXPECT_FAIL("", "ContactManager is returning an empty list", Continue); - QVERIFY2( contactIds.size() == addedIds.size(), "Incorrect number of filtered contacts"); -} - -void ut_qtcontacts_trackerplugin::testSyncTrackerEngineContactsIdsAddedSince() -{ - QDateTime start; - QList addedIds; - syncContactsAddedSinceHelper(start, addedIds); - - QContactChangeLogFilter filter(QContactChangeLogFilter::EventAdded); - filter.setSince(start); - - QList sortOrder; - QContactManager::Error error; - - QList contactIds = trackerEngine->contactIds( filter, sortOrder, error ); - qDebug() << "addedIds" << addedIds; - qDebug() << "contactIds" << contactIds; - QVERIFY2( contactIds.size() == addedIds.size(), "Incorrect number of filtered contacts"); -} - -void ut_qtcontacts_trackerplugin::testSyncContactManagerContactIdsAddedSince() -{ - QDateTime start; - QList addedIds; - syncContactsAddedSinceHelper(start, addedIds); - QContactChangeLogFilter filter(QContactChangeLogFilter::EventAdded); - filter.setSince(start); - QList sortOrder; - - - QList contactIds = ContactManager::instance()->contactIds(filter, sortOrder); - qDebug() << "addedIds" << addedIds; - qDebug() << "contactIds" << contactIds; - QEXPECT_FAIL("", "ContactManager is returning an empty list", Continue); - QVERIFY2( contactIds.size() == addedIds.size(), "Incorrect number of filtered contacts"); -} - - -void ut_qtcontacts_trackerplugin::syncContactsAddedSinceHelper(QDateTime& start, QList& addedIds) -{ - for (int i = 0; i < 3; i++) { - QContact c; - QContactName name; - name.setFirstName("A"+QString::number(i)); - QVERIFY2(c.saveDetail(&name), "Failed to save detail"); - QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); - } - - QTest::qWait(1000); - start = QDateTime::currentDateTime(); - - for (int i = 0; i < 3; i++) { - QContact c; - QContactName name; - name.setFirstName("B"+QString::number(i)); - QVERIFY2(c.saveDetail(&name), "Failed to save detail"); - QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); - addedIds.append(c.localId()); - } -} - -void ut_qtcontacts_trackerplugin::testContactsAddedSince() -{ - QList addedIds; - QDateTime start; - for (int i = 0; i < 3; i++) { - QContact c; - QContactName name; - name.setFirstName("A"+QString::number(i)); - QVERIFY2(c.saveDetail(&name), "Failed to save detail"); - QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); - } - - QTest::qWait(1000); - start = QDateTime::currentDateTime(); - - for (int i = 0; i < 3; i++) { - QContact c; - QContactName name; - name.setFirstName("B"+QString::number(i)); - QVERIFY2(c.saveDetail(&name), "Failed to save detail"); - QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); - addedIds.append(c.localId()); - } - - // now one asynchronous request to read all the - QContactFetchRequest request; - QContactChangeLogFilter filter(QContactChangeLogFilter::EventAdded); - filter.setSince(start); - request.setFilter(filter); - - // here You specify which details are of interest - QStringList details; - details << QContactAvatar::DefinitionName - << QContactBirthday::DefinitionName - << QContactAddress::DefinitionName - << QContactEmailAddress::DefinitionName - << QContactDisplayLabel::DefinitionName - << QContactGender::DefinitionName - << QContactAnniversary::DefinitionName - << QContactName::DefinitionName - << QContactOnlineAccount::DefinitionName - << QContactOrganization::DefinitionName - << QContactPhoneNumber::DefinitionName; - request.setDefinitionRestrictions(details); - - Slots slot; - QObject::connect(&request, SIGNAL(progress(QContactFetchRequest*, bool)), - &slot, SLOT(progress(QContactFetchRequest*, bool ))); - - // start. clients should, instead of following use - // request.setManager(trackermanagerinstance); - // request.start(); - trackerEngine->startRequest(&request); - trackerEngine->waitForRequestFinished(&request, 10000); - // if it takes more, then something is wrong - QVERIFY(request.isFinished()); - QCOMPARE(slot.contacts.count(), addedIds.count()); - - foreach(QContact cont, slot.contacts) { - QVERIFY2(addedIds.contains(cont.localId()), "One of the added contacts was not reported as added"); - } - - QContactLocalIdFetchRequest idreq; - filter.setSince(start); - idreq.setFilter(filter); - - Slots slot2; - QObject::connect(&idreq, SIGNAL(progress(QContactLocalIdFetchRequest*, bool)), - &slot2, SLOT(progress(QContactLocalIdFetchRequest*, bool ))); - trackerEngine->startRequest(&idreq); - trackerEngine->waitForRequestFinished(&idreq, 10000); - QVERIFY(idreq.isFinished()); - QCOMPARE(slot2.ids.count(), addedIds.count()); - foreach(QContactLocalId id, slot2.ids) { - QVERIFY2(addedIds.contains(id), "One of the added contacts was not reported as added"); - } - -} - -void ut_qtcontacts_trackerplugin::testContactsModifiedSince() -{ - QDateTime start; - QList addedIds; - QList modified; - - const int contactsToAdd = 5; - const int contactsToModify = 3; - QVERIFY2(contactsToAdd >= contactsToModify, "Cannot modify more contacts than this test has added"); - QVERIFY2(contactsToModify+1 <= contactsToAdd, "Cannot modify more contacts than this test has added"); - - // Add contacts with only first name and store them to list of added - for (int i = 0; i < contactsToAdd; i++) { - QContact c; - QContactName name; - name.setFirstName("A"+QString::number(i)); - QVERIFY2(c.saveDetail(&name), "Failed to save detail"); - QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); - addedIds.append(c.localId()); - } - - QTest::qWait(2000); - start = QDateTime::currentDateTime(); - - // Modify and save rest of the contacts - for (int i = 0; i < contactsToModify; i++) { - QContact c = trackerEngine->contact_impl(addedIds[i], error); - QContactName name = c.detail(); - // Modify name - name.setFirstName("B"+QString::number(i)); - QVERIFY2(c.saveDetail(&name), "Failed to save detail"); - QVERIFY2(trackerEngine->saveContact(&c, error), "Failed to save contact"); - modified.append(c.localId()); - } - // Set filter - QContactChangeLogFilter filter(QContactChangeLogFilter::EventChanged); - filter.setSince(start); - - QContactLocalIdFetchRequest idfetch; - QContactFetchRequest fetch; - idfetch.setFilter(filter); - fetch.setFilter(filter); - trackerEngine->startRequest(&idfetch); - trackerEngine->waitForRequestFinished(&idfetch, 10000); - QVERIFY2(idfetch.isFinished(), "Id fetch request did not finish on time"); - QVERIFY2(idfetch.error() == QContactManager::NoError, "Id fetch request finished with errors"); - QList actuallyModifiedIds = idfetch.ids(); - trackerEngine->startRequest(&fetch); - trackerEngine->waitForRequestFinished(&fetch, 10000); - QVERIFY2(fetch.isFinished(), "Fetch request did not finish on time"); - QVERIFY2(fetch.error() == QContactManager::NoError, "Fetch request finished with errors"); - QList actuallyModified = fetch.contacts(); - - // Num of actually modified should be same as supposedly modified - QCOMPARE(actuallyModifiedIds.count(), modified.count()); - QCOMPARE(actuallyModified.count(), modified.count()); - // All the ids of the modified contacts should be found in the result list - foreach (QContactLocalId id, modified) { - QVERIFY2(actuallyModifiedIds.contains(id), "One the modified contacts was not reported as modified"); - } -} - -void ut_qtcontacts_trackerplugin::testContactsRemovedSince() -{ - QDateTime start = QDateTime::currentDateTime(); - QContactChangeLogFilter filter(QContactChangeLogFilter::EventRemoved); - filter.setSince(start); - QList sorts; - QList actuallyRemoved = trackerEngine->contactIds(filter, sorts, error); - QVERIFY(actuallyRemoved.isEmpty()); - QVERIFY(error == QContactManager::NotSupportedError); -} -/* -void ut_qtcontacts_trackerplugin::testGroupsAddedSince() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} - -void ut_qtcontacts_trackerplugin::testGroupsModifiedSince() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} - -void ut_qtcontacts_trackerplugin::testGroupsRemovedSince() -{ - qDebug() << "Not implemented"; - QVERIFY(false); -} -*/ - -void ut_qtcontacts_trackerplugin::cleanupTestCase() -{ - delete trackerEngine; - delete errorMap; -} - -void ut_qtcontacts_trackerplugin::cleanup() -{ - foreach (QContactLocalId id, addedContacts) { - trackerEngine->removeContact(id, error); - } - addedContacts.clear(); -} - - -void ut_qtcontacts_trackerplugin::testNcoTypes() -{ - using namespace SopranoLive; - - QList ids; - RDFVariable RDFContact = RDFVariable::fromType(); - RDFSelect query; - - query.addColumn("contact_uri", RDFContact); - query.addColumn("contactId", RDFContact.property()); - LiveNodes ncoContacts = ::tracker()->modelQuery(query); - foreach( Live p, ncoContacts ) { - QVERIFY(p.hasType()); - QVERIFY(p.hasType()); - QVERIFY(p.hasType()); - } -} - -void ut_qtcontacts_trackerplugin::testAsyncReadContacts() -{ - addedContacts.clear(); - // Add at least one contact to be sure that this doesn't fail because tracker is clean - - QStringList firstNames, lastNames; - firstNames << "aa" << "ab" << "ac" << "dd" << "fe"; - lastNames << "fe" << "ab" << "dd" << "dd" << "aa"; - for (int i = 0; i < firstNames.count(); i++) { - QContact c; - QContactName name; - name.setFirstName(firstNames.at(i)); - name.setLastName(lastNames.at(i)); - QContactAvatar avatar; - avatar.setAvatar("default_avatar.png"); - avatar.setSubType(QContactAvatar::SubTypeImage); - QVERIFY(c.saveDetail(&name)); - QVERIFY(c.saveDetail(&avatar)); - QVERIFY(trackerEngine->saveContact(&c, error)); - addedContacts.append(c.localId()); - } - - // Prepare the filter for the request - we really should test only the contact we add here. - QContactLocalIdFilter filter; - filter.setIds(addedContacts); - - // this one will get complete contacts - - Slots slot; - QContactFetchRequest request; - QList sorting; - QContactSortOrder sort, sort1; - sort.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldLast); - sort1.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); - sorting << sort << sort1; - QStringList details; details << QContactName::DefinitionName << QContactAvatar::DefinitionName; - request.setDefinitionRestrictions(details); - request.setSorting(sorting); - request.setFilter(filter); - - QObject::connect(&request, SIGNAL(progress(QContactFetchRequest*, bool)), - &slot, SLOT(progress(QContactFetchRequest*, bool ))); - - // this one only ids - QContactLocalIdFetchRequest request1; - request1.setFilter(filter); - QObject::connect(&request1, SIGNAL(progress(QContactLocalIdFetchRequest*, bool)), - &slot, SLOT(progress(QContactLocalIdFetchRequest*, bool ))); - - // the purpose is to compare if all contacts are loaded, and - // if optional fields are defined properly in request - - // start both at once - trackerEngine->startRequest(&request); - trackerEngine->startRequest(&request1); - trackerEngine->waitForRequestFinished(&request, 10000); - trackerEngine->waitForRequestFinished(&request1, 10000); - - - // if it takes more, then something is wrong - QVERIFY(request.isFinished()); - QVERIFY(request1.isFinished()); - - // there need1 to be something added to be verified - QVERIFY(!request.contacts().isEmpty()); - // now ask for one contact - QVERIFY(!slot.contacts.isEmpty()); - // there need to be something added to be verified - QVERIFY(!request1.ids().isEmpty()); - // now ask for one contact - QVERIFY(!slot.ids.isEmpty()); - - QVERIFY2(slot.contacts.count() == slot.ids.count(), "not all contacts were loaded"); - QVERIFY(slot.contacts.count() >= firstNames.count()); - for( int i = 0; i < slot.contacts.size() -1 ; i++) - { - QContact contact = slot.contacts[i]; - QContact contact1 = slot.contacts[i+1]; - QString last0 = contact.detail().lastName(); - QString first0 = contact.detail().firstName(); - QString last1 = contact1.detail().lastName(); - QString first1 = contact1.detail().firstName(); - // sorting - qDebug() << "contacts:" << contact.localId() << first0 << last0; - bool test = last0 < last1 || (last0 == last1 && first0 <= first1); - if (!test) { - qDebug() << "contacts sort failed. First: " << contact1.localId() << first0 << last1 << "lasts: " << last0 << last1; - } - QVERIFY2(test, "Sorting failed."); - } - -} - -void ut_qtcontacts_trackerplugin::testFilterContacts() -{ - // this one will get complete contacts - QContact c; - QContactName name; - name.setFirstName("Zuba"); - name.setLastName("Zub"); - c.saveDetail(&name); - QContactPhoneNumber phone; - - phone.setNumber("4872444"); - c.saveDetail(&phone); - - QContactBirthday birthday; - birthday.setDate(QDate(2010, 2, 14)); - c.saveDetail(&birthday); - - trackerEngine->saveContact(&c, error); - - QStringList details; - details << QContactName::DefinitionName << QContactAvatar::DefinitionName - << QContactPhoneNumber::DefinitionName; - - QContactFetchRequest request; - QContactDetailFilter filter; - filter.setDetailDefinitionName(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber); - - Slots slot; - QObject::connect(&request, SIGNAL(progress(QContactFetchRequest*, bool)), - &slot, SLOT(progress(QContactFetchRequest*, bool ))); - filter.setValue(QString("4872444")); - filter.setMatchFlags(QContactFilter::MatchEndsWith); - - request.setDefinitionRestrictions(details); - request.setFilter(filter); - - trackerEngine->startRequest(&request); - - for(int i = 0; i < 100; i++) - { - usleep(100000); - QCoreApplication::processEvents(); - if(request.isFinished() ) - break; - } - - // if it takes more, then something is wrong - QVERIFY(request.isFinished()); - QVERIFY(!request.contacts().isEmpty()); - - QVERIFY(!slot.contacts.isEmpty()); - - bool containsThisId = false; - foreach(const QContact &contact, slot.contacts) - { - if( contact.localId() == c.localId()) - containsThisId = true; - bool containsPhone = false; - foreach(const QContactDetail &detail, contact.details(QContactPhoneNumber::DefinitionName)) - { - if(detail.value(QContactPhoneNumber::FieldNumber).contains("4872444")) - { - containsPhone = true; - break; - } - } - QVERIFY(containsPhone); - } - QVERIFY(containsThisId); - - // filter by birthday range - QContactDetailRangeFilter rangeFilter; - rangeFilter.setDetailDefinitionName(QContactBirthday::DefinitionName, QContactBirthday::FieldBirthday); - // include lower & exclude upper by default - rangeFilter.setRange(QDate(2010, 2, 14), QDate(2010, 2, 15)); - QList contacts = trackerEngine->contacts(rangeFilter, QList(), QStringList()<< QContactBirthday::DefinitionName, error); - QVERIFY(!contacts.isEmpty()); - bool containsOurContact(false); - foreach(const QContact &cont, contacts) - { - QVERIFY(cont.detail().date() == QDate(2010, 2, 14)); - if( c.id() == cont.id() ) - containsOurContact = true; - } - QVERIFY(containsOurContact); -} - -void ut_qtcontacts_trackerplugin::testFilterContactsEndsWith() -{ - QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Nokia", "Trackerplugin"); - QString restoreValue = settings.value("phoneNumberMatchDigitCount", "7").toString(); - - QContact matchingContact; - QContactName name; - name.setFirstName("Zuba"); - name.setLastName("Zub"); - matchingContact.saveDetail(&name); - QContactPhoneNumber phone; - // TODO doesnt work yet phone.setContexts(QContactPhoneNumber::ContextWork); - phone.setNumber("3210987654321"); - matchingContact.saveDetail(&phone); - trackerEngine->saveContact(&matchingContact, error); - - QStringList details; - details << QContactName::DefinitionName << QContactAvatar::DefinitionName - << QContactPhoneNumber::DefinitionName; - - QContactFetchRequest request; - QContactDetailFilter filter; - filter.setDetailDefinitionName(QContactPhoneNumber::DefinitionName, QContactPhoneNumber::FieldNumber); - - Slots slot; - QObject::connect(&request, SIGNAL(progress(QContactFetchRequest*, bool)), - &slot, SLOT(progress(QContactFetchRequest*, bool ))); - - { - // test matching of 7 last digits - int matchCount = 7; - qDebug() << "Test matching of" << matchCount << "last digits."; - settings.setValue("phoneNumberMatchDigitCount", matchCount); - QString matchValue = "3000007654321"; - QContact nonMatchingContact; - nonMatchingContact.saveDetail(&name); - phone.setNumber("3210980654321"); - nonMatchingContact.saveDetail(&phone); - trackerEngine->saveContact(&nonMatchingContact, error); - - filter.setValue(matchValue); - filter.setMatchFlags(QContactFilter::MatchEndsWith); - - request.setDefinitionRestrictions(details); - request.setFilter(filter); - - trackerEngine->startRequest(&request); - - for(int i = 0; i < 100; i++) { - usleep(100000); - QCoreApplication::processEvents(); - if (request.isFinished()) - break; - } - QVERIFY(request.isFinished()); - QVERIFY(!slot.contacts.isEmpty()); - - bool containsMatchingId = false; - bool containsNonMatchingId = false; - foreach(const QContact &contact, slot.contacts) { - if (contact.localId() == nonMatchingContact.localId()) - containsNonMatchingId = true; - if (contact.localId() == matchingContact.localId()) - containsMatchingId = true; - bool containsPhone = false; - foreach(const QContactDetail &detail, contact.details(QContactPhoneNumber::DefinitionName)) { - if (detail.value(QContactPhoneNumber::FieldNumber).endsWith(matchValue.right(matchCount))) { - containsPhone = true; - break; - } - } - QVERIFY(containsPhone); - } - QVERIFY(containsMatchingId); - QVERIFY(!containsNonMatchingId); - } - - { - // test matching of 11 last digits - int matchCount = 11; - qDebug() << "Test matching of" << matchCount << "last digits."; - settings.setValue("phoneNumberMatchDigitCount", matchCount); - QString matchValue = "3010987654321"; - QContact nonMatchingContact; - nonMatchingContact.saveDetail(&name); - phone.setNumber("3200987654321"); - nonMatchingContact.saveDetail(&phone); - trackerEngine->saveContact(&nonMatchingContact, error); - - QContact matchingContactWithShorterNumber; - QContactName name1; - name1.setFirstName("ShortNumber"); - name1.setLastName("Zub1"); - matchingContactWithShorterNumber.saveDetail(&name1); - QContactPhoneNumber phone1; - phone1.setNumber("54321"); - matchingContactWithShorterNumber.saveDetail(&phone1); - trackerEngine->saveContact(&matchingContactWithShorterNumber, error); - QVERIFY(QContactManager::NoError == error); - - - filter.setValue(matchValue); - filter.setMatchFlags(QContactFilter::MatchEndsWith); - - request.setDefinitionRestrictions(details); - request.setFilter(filter); - - trackerEngine->startRequest(&request); - - for(int i = 0; i < 100; i++) { - usleep(100000); - QCoreApplication::processEvents(); - if (request.isFinished()) - break; - } - QVERIFY(request.isFinished()); - QVERIFY(!slot.contacts.isEmpty()); - - bool containsMatchingId = false; - bool containsNonMatchingId = false; - foreach(const QContact &contact, slot.contacts) { - if (contact.localId() == nonMatchingContact.localId()) - containsNonMatchingId = true; - if (contact.localId() == matchingContact.localId()) - containsMatchingId = true; - bool containsPhone = false; - foreach(const QContactDetail &detail, contact.details(QContactPhoneNumber::DefinitionName)) { - if (detail.value(QContactPhoneNumber::FieldNumber).endsWith(matchValue.right(matchCount))) { - containsPhone = true; - break; - } - } - QVERIFY(containsPhone); - } - QVERIFY(containsMatchingId); - QVERIFY(!containsNonMatchingId); - - // now verify with short number - filter.setValue("54321"); - filter.setMatchFlags(QContactFilter::MatchEndsWith); - - request.setDefinitionRestrictions(details); - request.setFilter(filter); - - trackerEngine->startRequest(&request); - - for(int i = 0; i < 100; i++) { - usleep(100000); - QCoreApplication::processEvents(); - if (request.isFinished()) - break; - } - QVERIFY(request.isFinished()); - QVERIFY(!slot.contacts.isEmpty()); - bool containsShort = false; - foreach(const QContact &contact, slot.contacts) { - if (contact.localId() == matchingContactWithShorterNumber.localId()) - containsShort = true; - } - QVERIFY(containsShort); - } - settings.setValue("phoneNumberMatchDigitCount", restoreValue); -} - -void ut_qtcontacts_trackerplugin::testFilterTwoNameFields() -{ - // init test - QMap names; - for (int i = 0; i < 3; i++) { - QContact c; - QContactName name; - name.setFirstName(QUuid::createUuid().toString() + QString::number(i)); - name.setLastName(QUuid::createUuid().toString() + QString::number(i)); - c.saveDetail(&name); - QContactAvatar avatar; - avatar.setAvatar(QUuid::createUuid().toString()); - c.saveDetail(&avatar); - QVERIFY(trackerEngine->saveContact(&c, error)); - names.insert(c.localId(), name); - QCOMPARE(error, QContactManager::NoError); - addedContacts.append(c.localId()); - } - - // Init filter - QContactLocalId searchId = names.keys().at(1); - QString searchFirst = names.value(searchId).firstName(); - QString searchLast = names.value(searchId).lastName(); - QContactUnionFilter ufilter; - QContactDetailFilter filterFirst; - filterFirst.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldFirst); - filterFirst.setMatchFlags(QContactFilter::MatchExactly); - filterFirst.setValue(searchFirst); - QContactDetailFilter filterLast; - filterLast.setDetailDefinitionName(QContactName::DefinitionName, QContactName::FieldLast); - filterLast.setMatchFlags(QContactFilter::MatchExactly); - filterLast.setValue(searchLast); - ufilter.setFilters(QList() << filterFirst << filterLast); - - // Init request - QContactFetchRequest request; - request.setFilter(ufilter); - trackerEngine->startRequest(&request); - trackerEngine->waitForRequestFinished(&request, 10000); - - - // Test fetch result - QCOMPARE(request.contacts().count(), 1); - QCOMPARE(request.contacts().at(0).localId(), searchId); - QCOMPARE(request.contacts().at(0).detail().firstName(), searchFirst); - QCOMPARE(request.contacts().at(0).detail().lastName(), searchLast); -} - -void ut_qtcontacts_trackerplugin::testTrackerUriToUniqueId() -{ - QString uri = "contact:1234567"; - QContactLocalId id = url2UniqueId( uri ); - QCOMPARE( (int)id, 1234567 ); -} - -void ut_qtcontacts_trackerplugin::testQRelationshipAndMetacontacts() -{ - QContact firstContact; - QContactName name; - name.setFirstName("FirstMeta"); - firstContact.saveDetail(&name); - QVERIFY(trackerEngine->saveContact(&firstContact, error)); - - QList secondIds; - QStringList names(QStringList()<<"SecondMeta"<<"ThirdMeta"); - foreach (QString firstname, names) - { - QContact secondContact; - QContactName name1; - name1.setFirstName(firstname); - secondContact.saveDetail(&name1); - QVERIFY(trackerEngine->saveContact(&secondContact, error)); - secondIds<()<startRequest(&req)); - trackerEngine->waitForRequestFinished(&req, 10000); - // if it takes more, then something is wrong - QVERIFY(req.isFinished()); - QVERIFY(QContactManager::NoError == req.error()); - } - - QContactRelationshipFetchRequest req1; - req1.setFirst(firstContact.id()); - QVERIFY(trackerEngine->startRequest(&req1)); - trackerEngine->waitForRequestFinished(&req1, 10000); - // if it takes more, then something is wrong - QVERIFY(req1.isFinished()); - QVERIFY(QContactManager::NoError == req1.error()); - QVERIFY(2 == req1.relationships().size()); - foreach(QContactRelationship r, req1.relationships()) - { - QVERIFY(secondIds.removeOne(r.second().localId())); - } -} - -void ut_qtcontacts_trackerplugin::insertContact(const QString& URI, QContactLocalId uid, QString imId, QString imStatus, QString accountPath, QString protocol ) -{ - QProcess inserter; - QStringList args; - args << URI << QString::number(uid) << imId << accountPath << imStatus << "In Helsinki" << protocol << "Some" << "Guy"; - inserter.start( PATH_TO_SPARQL_TESTS+"/insertTpContact.sparql", args ); - inserter.waitForFinished(); -} - -void ut_qtcontacts_trackerplugin::updateIMContactStatus(const QString& uri, QString imStatus) -{ - QProcess inserter; - QStringList args; - args << uri << imStatus; - inserter.start( PATH_TO_SPARQL_TESTS+"/updateTpStatus.sparql", args ); - inserter.waitForFinished(); -} - -void ut_qtcontacts_trackerplugin::testIMContactsAndMetacontactMasterPresence() -{ - if( !QFileInfo(PATH_TO_SPARQL_TESTS).exists() ) - { - qWarning()< idstoremove; - QContactLocalId masterContactId; // using one master contact later for additional testing - for( int i = 0; i < 2; i++ ) - { - unsigned int contactid = qHash(QString("/org/freedesktop/fake/account/") + QString::number(999998+i) + "@ovi.com"); - idstoremove << contactid; - insertContact(QString("telepathy://org/freedesktop/fake/account/") + QString::number(999998+i) + "@ovi.com", - contactid, QString::number(999998 + i)+ "@ovi.com", "nco:presence-status-available", QString("http://www.sopranolive.org/backends/tracker/generated_unique_id/105323876#%1").arg(999998+i),"ovi.com"); - QContact c = contact(contactid, QStringList()<().serviceProvider() == "ovi.com"); - QContact firstContact; - QContactName name; - name.setFirstName("FirstMetaWithIM"+QString::number(contactid)); - firstContact.saveDetail(&name); - QVERIFY(trackerEngine->saveContact(&firstContact, error)); - - // save metarelationship - QContactRelationship rel; - rel.setRelationshipType(QContactRelationship::Is); - rel.setFirst(firstContact.id()); - idstoremove << firstContact.localId(); - masterContactId = firstContact.localId(); - rel.setSecond(c.id()); - QContactRelationshipSaveRequest req; - req.setRelationships(QList()<startRequest(&req)); - trackerEngine->waitForRequestFinished(&req, 1000); - QVERIFY(req.isFinished()); - QVERIFY(QContactManager::NoError == req.error()); - } - - // expected behavior - for now - is that master contact contains details from - // IMContacts - that way we don't have to use QContactRelationships to fetch - // all contacts in master contact in order to calculate master presence - { - QList cons = contacts(QList () - << masterContactId << qHash(QString("/org/freedesktop/fake/account/") + QString::number(999999) + "@ovi.com"), QStringList() - << QContactOnlineAccount::DefinitionName); - QVERIFY(cons.size() == 1); - QVERIFY(cons[0].id().localId() == masterContactId); - - bool containDetail = false; - foreach(QContactOnlineAccount det, cons[0].details()) - { - if (det.value("Account") == "999999@ovi.com" // deprecated, going to account URI - || det.accountUri() == "999999@ovi.com") - { - QVERIFY(det.presence() == QContactOnlineAccount::PresenceAvailable); - // keeping the reference to tp contact - QVERIFY(det.value("QContactLocalId") == QString::number(qHash(QString("/org/freedesktop/fake/account/") + QString::number(999999) + "@ovi.com"))); - containDetail = true; - } - } - QVERIFY(containDetail); - } - //now update presence to IM contact and check it in metacontact (TODO and if signal is emitted) - updateIMContactStatus(QString("telepathy://org/freedesktop/fake/account/") + QString::number(999999) + "@ovi.com", "nco:presence-status-offline"); - { - QList cons = contacts(QList () - << masterContactId << qHash(QString("/org/freedesktop/fake/account/") + QString::number(999999) + "@ovi.com"), QStringList() - << QContactOnlineAccount::DefinitionName); - QVERIFY(cons.size() == 1); - QVERIFY(cons[0].id().localId() == masterContactId); - - bool containDetail = false; - foreach(QContactOnlineAccount det, cons[0].details()) - { - if (det.value("Account") == "999999@ovi.com" // deprecated, going to account URI - || det.accountUri() == "999999@ovi.com") - { - QVERIFY(det.presence() == QContactOnlineAccount::PresenceOffline); - // keeping the reference to tp contact - QVERIFY(det.value("QContactLocalId") == QString::number(qHash(QString("/org/freedesktop/fake/account/") + QString::number(999999) + "@ovi.com"))); - containDetail = true; - } - } - QVERIFY(containDetail); - } - - // TODO load only one contact should load also content from other in the same metacontacts - { - QList cons = contacts(QList () - << masterContactId, QStringList() - << QContactOnlineAccount::DefinitionName); - QVERIFY(cons.size() == 1); - QVERIFY(cons[0].id().localId() == masterContactId); - - bool containDetail = false; - foreach(QContactOnlineAccount det, cons[0].details()) - { - if (det.value("Account") == "999999@ovi.com" // deprecated, going to account URI - || det.accountUri() == "999999@ovi.com") - { - QVERIFY(det.presence() == QContactOnlineAccount::PresenceOffline); - // keeping the reference to tp contact - QVERIFY(det.value("QContactLocalId") == QString::number(qHash(QString("/org/freedesktop/fake/account/") + QString::number(999999) + "@ovi.com"))); - containDetail = true; - } - } - QVERIFY(containDetail); - } - - // remove them - foreach(unsigned int id, idstoremove) - { - QVERIFY2(trackerEngine->removeContact(id, error), "Removing a contact failed"); - } -} - -void ut_qtcontacts_trackerplugin::testIMContactsFilterring() -{ - QList idstoremove; - QList idsToRetrieveThroughFilter; - for( int i = 0; i < 3; i++ ) - { - unsigned int contactid = qHash(QString("/org/freedesktop/fake/account/") + QString::number(999995+i) + "@ovi.com"); - idstoremove << contactid; - insertContact(QString("telepathy://org/freedesktop/fake/account/") + QString::number(999995+i) + "@ovi.com", - contactid, QString::number(999995 + i)+ "@ovi.com", "nco:presence-status-available", - QString("www.sopranolive.org/backends/tracker/generated_unique_id/105323876#ovi%1").arg(i/2), QString("ovi%1.com").arg(i/2)); - if(!i/2) - idsToRetrieveThroughFilter << contactid; - } - - - { - // now filter by service provider ovi0.com needs to return 2 contacts, 999995 & 999996 - QList ids(idsToRetrieveThroughFilter); - - QContactFetchRequest request; - QContactDetailFilter filter; - filter.setDetailDefinitionName(QContactOnlineAccount::DefinitionName, QContactOnlineAccount::FieldServiceProvider); - - Slots slot; - QObject::connect(&request, SIGNAL(progress(QContactFetchRequest*, bool)), - &slot, SLOT(progress(QContactFetchRequest*, bool ))); - filter.setValue(QString("ovi0.com")); - filter.setMatchFlags(QContactFilter::MatchExactly); - - request.setDefinitionRestrictions(QStringList()<startRequest(&request); - - for(int i = 0; i < 100; i++) - { - usleep(100000); - QCoreApplication::processEvents(); - if(request.isFinished() ) - break; - } - - // if it takes more, then something is wrong - QVERIFY(request.isFinished()); - QVERIFY(!request.contacts().isEmpty()); - - QVERIFY(request.contacts().size() >= 2); - foreach(const QContact &contact, request.contacts()) - { - QVERIFY(contact.detail().serviceProvider() == "ovi0.com"); - ids.removeOne(contact.localId()); - } - QVERIFY(ids.isEmpty()); - } - - // now account path filter - { - // now filter by account path 999995 & 999996 - QList ids(idsToRetrieveThroughFilter); - - QContactFetchRequest request; - QContactDetailFilter filter; - filter.setDetailDefinitionName(QContactOnlineAccount::DefinitionName, "AccountPath"); - - Slots slot; - QObject::connect(&request, SIGNAL(progress(QContactFetchRequest*, bool)), - &slot, SLOT(progress(QContactFetchRequest*, bool ))); - // see insertTpContact - filter.setValue(QString("www.sopranolive.org/backends/tracker/generated_unique_id/105323876#ovi0")); - filter.setMatchFlags(QContactFilter::MatchExactly); - - request.setDefinitionRestrictions(QStringList()<startRequest(&request); - - for(int i = 0; i < 100; i++) - { - usleep(100000); - QCoreApplication::processEvents(); - if(request.isFinished() ) - break; - } - - // if it takes more, then something is wrong - QVERIFY(request.isFinished()); - QVERIFY(!request.contacts().isEmpty()); - - QVERIFY(request.contacts().size() >= 2); - foreach(const QContact &contact, request.contacts()) - { - QVERIFY(contact.detail().serviceProvider() == "ovi0.com"); - ids.removeOne(contact.localId()); - } - QVERIFY(ids.isEmpty()); - } - - - // remove them - foreach(unsigned int id, idstoremove) - { - QVERIFY2(trackerEngine->removeContact(id, error), "Removing a contact failed"); - } - -} - -void ut_qtcontacts_trackerplugin::testContactsWithoutMeContact() { - QContact c; - QContactName name; - name.setFirstName("Totally"); - name.setLastName("Unique"); - c.saveDetail(&name); - trackerEngine->saveContact(&c, error); - QContactLocalId id = c.localId(); // Store ID for later removal. - - // Prepare the filter for the request - we fetch only the one contact saved above. - QList ids; - ids << id; - QContactLocalIdFilter filter; - filter.setIds(ids); - - // Prepare the requst - give filter to it and specify which fields to fetch. We fetch only the name. - QStringList details; - details << QContactName::DefinitionName; - - QContactLocalIdFetchRequest nameFetchRequest; - nameFetchRequest.setFilter(filter); - - // Start the request and wait for it to finish. - trackerEngine->startRequest(&nameFetchRequest); - trackerEngine->waitForRequestFinished(&nameFetchRequest, 1000); - - // Requst finished. Test that only one contact is removed. - QList contacts = nameFetchRequest.ids(); - QVERIFY2(contacts.count() < 2, "We expected to get only one contact. Got more."); - QVERIFY2(contacts.count() != 0, "We expected to get one contact. Got none."); - QVERIFY2(contacts.first() == id, "Did not get the requested contact back."); - - // Cleaning up. - trackerEngine->removeContact(id, error); - -} - -/*************************** Helper functions for unit tests ***************'*/ - -QContact ut_qtcontacts_trackerplugin::contact(QContactLocalId id, QStringList details) -{ - QList conts = contacts(QList()< ut_qtcontacts_trackerplugin::contacts(QList ids, QStringList details) -{ - QContactFetchRequest request; - QContactLocalIdFilter filter; - filter.setIds(ids); - request.setFilter(filter); - - request.setDefinitionRestrictions(details); - - trackerEngine->startRequest(&request); - trackerEngine->waitForRequestFinished(&request, 1000); - - return request.contacts(); -} - -void Slots::progress(QContactLocalIdFetchRequest* self, bool appendOnly) -{ - Q_UNUSED(appendOnly) - if( self->state() == QContactAbstractRequest::FinishedState ) - { - ids << self->ids(); - } -} - -void Slots::progress(QContactFetchRequest* self, bool appendOnly) -{ - Q_UNUSED(appendOnly) - contacts = self->contacts(); - QList idsFromAllContactReq; - foreach( QContact contact, contacts) - { - idsFromAllContactReq << contact.localId(); - } -} - -QString Slots::requestStatusToString(QContactAbstractRequest::Status status) -{ - switch (status) { - case QContactAbstractRequest::Inactive: - return "Inactive"; - case QContactAbstractRequest::Active: - return "Active"; - case QContactAbstractRequest::Cancelling: - return "Cancelling"; - case QContactAbstractRequest::Cancelled: - return "Cancelled"; - case QContactAbstractRequest::Finished: - return "Finished"; - default: - return QString::number((int)status); - } -} - -QTEST_MAIN(ut_qtcontacts_trackerplugin) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.h --- a/qtmobility/tests/auto/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,145 +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 Qt Mobility Components. -** -** $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 UT_QTCONTACTS_TRACKERPLUGIN_H -#define UT_QTCONTACTS_TRACKERPLUGIN_H - -#include -#include -#include -#include - -QTM_BEGIN_NAMESPACE -class QContactLocalIdFetchRequest; -class QContactFetchRequest; -QTM_END_NAMESPACE - -class QContactTrackerEngine; -QTM_USE_NAMESPACE - -/** - * QtContacts Tracker plugin unittests - */ -class ut_qtcontacts_trackerplugin : public QObject -{ -Q_OBJECT -public: - ut_qtcontacts_trackerplugin(); -private slots: - void initTestCase(); - void cleanupTestCase(); - void cleanup(); - void testSavePhoneNumber(); - void testPhoneNumberContext(); - void testWritingOnlyWorkMobile(); - void testContacts(); - void testContact(); - void testAvatar(); - - void testSaveEmailAddress(); - void testSaveName(); - void testSaveAddress(); - - void testRemoveContact(); - void testSaveContacts(); - void testRemoveContacts(); - void testUrl(); - -// void testGroups(); -// void testGroup(); -// void testSaveGroup(); -// void testRemoveGroup(); -// void testDetailDefinitions(); -// void testDetailDefinition(); -// void testSaveDetailDefinition(); -// void testRemoveDetailDefinition(); - void testSyncContactManagerContactsAddedSince(); - void testSyncTrackerEngineContactsIdsAddedSince(); - void testSyncContactManagerContactIdsAddedSince(); - void testContactsAddedSince(); - void testContactsModifiedSince(); - void testContactsRemovedSince(); -// void testGroupsAddedSince(); -// void testGroupsModifiedSince(); -// void testGroupsRemovedSince(); - void testNcoTypes(); - void testQRelationshipAndMetacontacts(); - void testAsyncReadContacts(); - void testFilterContacts(); - void testFilterContactsEndsWith(); - void testFilterTwoNameFields(); - void testTrackerUriToUniqueId(); - void testIMContactsAndMetacontactMasterPresence(); - void testIMContactsFilterring(); - void testContactsWithoutMeContact(); - -private: - void syncContactsAddedSinceHelper(QDateTime& start, QList& addedIds); - - void insertContact(const QString& URI, QContactLocalId uid, QString imId, QString imStatus, QString accountPath, QString protocol = "jabber"); - void updateIMContactStatus(const QString& uri, QString imStatus); - QContact contact(QContactLocalId uid, QStringList detailsToLoad = QStringList()); - QList contacts(QList uids, QStringList detailsToLoad = QStringList()); - -private: - QContactTrackerEngine *trackerEngine; - QContactManager::Error error; - QMap* errorMap; - // Filtering and sort options used for QContactTrackerEngine. - // Not used. - QContactFilter queryFilter; - QList sortOrders; - QList addedContacts; -}; - -class Slots: public QObject -{ - Q_OBJECT -public: - QList ids; - QList contacts; -public slots: - void progress(QContactLocalIdFetchRequest* self, bool appendOnly); - void progress(QContactFetchRequest* self, bool appendOnly); -private: - QString requestStatusToString(QContactAbstractRequest::Status status); -}; -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.pro --- a/qtmobility/tests/auto/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ -TARGET = ut_qtcontacts_trackerplugin - -test.depends = all -QMAKE_EXTRA_TARGETS += test -QCONTACTS_TRACKER_BACKENDDIR = ../../ - -CONFIG += test mobility -MOBILITY += contacts -QT += testlib - -LIBS += -lqttracker - -MOC_DIR = .moc -OBJECTS_DIR = .obj - -# CONFIG += contacts -INCLUDEPATH += /usr/include/qt4/QtMobility \ - /usr/include \ - $$QCONTACTS_TRACKER_BACKENDDIR - -## Include source files under test. -HEADERS += $$QCONTACTS_TRACKER_BACKENDDIR/qcontacttrackerbackend_p.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactasyncrequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/trackerchangelistener.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactslive.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactsaverequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipfetchrequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipsaverequest.h \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactidfetchrequest.h - -SOURCES += $$QCONTACTS_TRACKER_BACKENDDIR/qcontacttrackerbackend.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactasyncrequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/trackerchangelistener.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactslive.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactsaverequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipfetchrequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackerrelationshipsaverequest.cpp \ - $$QCONTACTS_TRACKER_BACKENDDIR/qtrackercontactidfetchrequest.cpp - -## Include unit test files -HEADERS += ut_qtcontacts_trackerplugin.h \ - contactmanager.h - -SOURCES += ut_qtcontacts_trackerplugin.cpp \ - contactmanager.cpp - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin_data/insertTpContact.sparql --- a/qtmobility/tests/auto/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin_data/insertTpContact.sparql Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -#!/bin/bash - -if [ -z "$1" ]; then -echo "usage: $0 " -exit 1 -fi - -echo "create nco:IMAccount" -tracker-sparql -u -q " -INSERT -{ - - - -} -" - -tracker-sparql -u -q " -INSERT -{ - - nco:imDisplayName '$7' -} -" - -echo "create nco:IMContact" -tracker-sparql -u -q " -INSERT -{ -<$1> - - -} -" - -echo "create nco:IMContact" -tracker-sparql --update --query " -INSERT { - <$1> a nco:IMContact; - nco:contactUID '$2'; - nco:imContactId '$3'; - nco:imContactNickname '$8$9'; - nco:imContactPresence $5; - nco:imContactStatusMessage '$6'; - nco:fromIMAccount ; - nco:imContactCapability -} -" - -echo "update nco:IMContact" -tracker-sparql --update --query "INSERT { - <$1> a nco:IMContact; - nco:nameGiven '$8'; - nco:nameFamily '$9' -} -" \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/auto/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin_data/updateTpStatus.sparql --- a/qtmobility/tests/auto/ut_qtcontacts_trackerplugin/ut_qtcontacts_trackerplugin_data/updateTpStatus.sparql Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -#!/bin/bash - -if [ -z "$1" ]; then -echo "usage: $0 " -exit 1 -fi -tracker-sparql --update --query " -DELETE { <$1> nco:imContactPresence ?status } -WHERE { <$1> nco:imContactPresence ?status } -INSERT { <$1> nco:imContactPresence $2 } -" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/bearerex/bearerex.h --- a/qtmobility/tests/bearerex/bearerex.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/bearerex/bearerex.h Mon May 03 13:18:40 2010 +0300 @@ -43,10 +43,15 @@ #include +#include "ui_detailedinfodialog.h" + +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) +#include "ui_bearerex_maemo.h" +#include "ui_sessiondialog_maemo.h" +#else #include "ui_bearerex.h" -#include "ui_detailedinfodialog.h" #include "ui_sessiondialog.h" - +#endif #include "qnetworkconfigmanager.h" #include "qnetworksession.h" #include "xqlistwidget.h" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/bearerex/bearerex.pro --- a/qtmobility/tests/bearerex/bearerex.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/bearerex/bearerex.pro Mon May 03 13:18:40 2010 +0300 @@ -5,9 +5,15 @@ gui \ network -FORMS += sessiondialog.ui \ - bearerex.ui \ - detailedinfodialog.ui +FORMS += detailedinfodialog.ui +maemo5|maemo6 { + FORMS += sessiondialog_maemo.ui \ + bearerex_maemo.ui +} else { + FORMS += sessiondialog.ui \ + bearerex.ui +} + include(../../common.pri) #not really a test case but deployment happens same way CONFIG += testcase diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/bearerex/bearerex_maemo.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/bearerex/bearerex_maemo.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,100 @@ + + + BearerExMainWindow + + + + 0 + 0 + 360 + 640 + + + + Bearer Example + + + + + + + + Main + + + + + + + + Network Configurations + + + Qt::AlignCenter + + + + + + + + + + + + + + Update Configs + + + + + + + Update List + + + + + + + Create Session + + + + + + + Show Details + + + + + + + + + + Events + + + + + + + + + Clear + + + + + + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/bearerex/sessiondialog_maemo.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/bearerex/sessiondialog_maemo.ui Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,151 @@ + + + SessionTab + + + + 0 + 0 + 423 + 214 + + + + + + + QFormLayout::ExpandingFieldsGrow + + + + + SNAP + + + + + + + true + + + + + + + IAP + + + + + + + true + + + true + + + + + + + Bearer + + + + + + + true + + + + + + + Sent/Rec. + + + + + + + true + + + + + + + State + + + + + + + true + + + + + + + + + + + Open Session + + + + + + + Close Session + + + + + + + Stop Conn. + + + + + + + Send Test Req. + + + + + + + Create QHttp + + + + + + + Delete Session + + + + + + + Enable ALR + + + + + + + + + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/benchmarks/benchmarks.pro --- a/qtmobility/tests/benchmarks/benchmarks.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/benchmarks/benchmarks.pro Mon May 03 13:18:40 2010 +0300 @@ -5,4 +5,9 @@ contains(mobility_modules,serviceframework): SUBDIRS += sampleserviceplugin serviceframework contains(mobility_modules,contacts): SUBDIRS += contacts contains(mobility_modules,systeminfo): SUBDIRS += qsysteminfo +#contains(mobility_modules,messaging) { +# contains(qmf_enabled,yes)|wince*|win32|symbian|maemo5 { +# !win32-g++: SUBDIRS += messaging +# } +#} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/benchmarks/contacts/contacts.pro --- a/qtmobility/tests/benchmarks/contacts/contacts.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/benchmarks/contacts/contacts.pro Mon May 03 13:18:40 2010 +0300 @@ -2,12 +2,11 @@ TARGET = tst_bm_contacts CONFIG += testcase -SOURCES += tst_contacts.cpp +SOURCES += tst_bm_contacts.cpp QT += core \ network - INCLUDEPATH += ../../../src/contacts\ ../../../src/contacts/details \ ../../../src/contacts/filters @@ -15,7 +14,6 @@ include(../../../common.pri) CONFIG += mobility - MOBILITY = contacts symbian { diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/benchmarks/contacts/tst_bm_contacts.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/benchmarks/contacts/tst_bm_contacts.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,955 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +//#include "contact.h" +//#include +#include +#include +#include + +#include +#include +#include +#include
+ +#ifdef Q_OS_SYMBIAN +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +QTM_USE_NAMESPACE + +//Q_DECLARE_METATYPE(QSystemInfo::Version); +//Q_DECLARE_METATYPE(QSystemInfo::Feature); + +class tst_Contact : public QObject +{ + Q_OBJECT + +private slots: + void initTestCase(); + void cleanupTestCase(); + + void tst_createTime(); + + void tst_fetchAllContactIds(); + void tst_fetchOneContact(); + void tst_fetchTenContact(); + //void tst_fetchAllContact(); + + void tst_createContact(); + void tst_saveContact(); + + void tst_nameFilter(); + + void tst_removeOneContact(); + void tst_removeAllContacts(); + + +// void tst_currentLanguage(); +// void tst_availableLanguages(); +// +// void tst_versions_data(); +// void tst_versions(); +// +// void tst_hasFeatures_data(); +// void tst_hasFeatures(); + +public slots: + + void gotContact(QContactFetchRequest*,bool); + void stateChanged(QContactAbstractRequest::State newState); + void timeout(); + void resultsAvailable(); + void resultsAvailableFilter(); + void setBackend(QString); + +private: + void createContact(); + void clearContacts(); + int countContacts(); + + enum { + BackendQContacts, + BackendContactsModel + } m_backend; + QString manager; + QEventLoop *loop; + QContactManager *m_qm; + int m_num_contacts; + QList id_list; + + int m_run; + + int m_num_start; + + QTimer *m_timer; + QStringList firstNames; + QStringList lastNames; + +}; + +void tst_Contact::setBackend(QString backend) +{ + manager = backend; + if(manager == "SymbianContactsModel") // Only one at the moment + m_backend = BackendContactsModel; + else + m_backend = BackendQContacts; + qWarning() << "Backend set to: " << manager; +} + +void tst_Contact::initTestCase() +{ + qDebug() << "Managers: " << QContactManager::availableManagers(); + m_run = 0; + +#if defined(Q_WS_MAEMO_6) + QStringList list = QContactManager::availableManagers(); + int found = 0; + while(!list.empty()){ + if(list.takeFirst() == "tracker"){ + found = 1; + break; + } + } + if(!found) + QFAIL("Unable to find Maemo 6 tracker plugin. Please check install"); + + if(manager.isEmpty()) + manager = "memory"; + m_qm = new QContactManager(manager); +#elif defined(Q_WS_MAEMO_5) + if(manager.isEmpty()){ + //Looking for a manager + QStringList list = QContactManager::availableManagers(); + if (list.contains("maemo5")){ + manager = "maemo5"; + } else { + QFAIL("Unable to find Maemo 5 plugin. Please check install"); + } + } + m_qm = new QContactManager(manager); + +#elif defined(Q_OS_SYMBIAN) + if(m_backend != BackendContactsModel) { + QStringList list = QContactManager::availableManagers(); + int found = 0; + while(!list.empty()){ + if(list.takeFirst() == "symbian"){ + found = 1; + break; + } + } + if(!found) { + QFAIL("Unable to find Symbian plugin. Please check install"); + } + + if(manager.isEmpty()) { + manager = "symbian"; + } + m_qm = new QContactManager(manager); + } + else { + m_qm = 0x0; + } +#else + QFAIL("Platform not supported"); +#endif + + + // setup an event loop for waiting + loop = new QEventLoop; + + firstNames << "Anahera" << "Anaru" << "Hemi" << "Hine" << "Kiri" << "Maata" << "Mere" << "Moana" << "Paora" << "Petera" << "Piripi" << "Ruiha" << "Tane" << "Whetu"; + lastNames << "Ati Awa" << "Kai Taho" << "Moriori" << "Muaupoko" << "Nga Rauru" << "Taranaki" << "Opotoki" << "Aotea" << "Taninui" << "Tuhourangi" << "Tainui" << "Waitaha"; + + m_num_start = countContacts(); + qDebug() << "Number of Contact: " << m_num_start; + + + for(int i = 0; i < 20; i++){ + createContact(); + } + + int after = countContacts(); + if(after - m_num_start != 20){ + qWarning() << "Failed to create 20 contacts"; + } + + m_timer = new QTimer(this); + connect(m_timer, SIGNAL(timeout()), this, SLOT(timeout())); + +} + +int tst_Contact::countContacts() +{ + if(m_backend == BackendQContacts) { + QList qcl = m_qm->contactIds(); + return qcl.count(); + } else if(m_backend == BackendContactsModel){ +#ifdef Q_OS_SYMBIAN + CContactDatabase* contactsDb = CContactDatabase::OpenL(); + CleanupStack::PushL(contactsDb); + + int num = contactsDb->CountL(); + + CleanupStack::PopAndDestroy(contactsDb); + + return num; +#endif + } + + qWarning("No backend support in countContacts()"); + return 0; + +} + +void tst_Contact::cleanupTestCase() +{ + clearContacts(); + int num_end = countContacts(); + if(m_num_start != num_end){ + QFAIL(QString("Number of contacts ending: %2 is different that starting number %1. Poor cleanup").arg(m_num_start).arg(num_end).toAscii()); + } +} + +void tst_Contact::clearContacts() +{ + if(m_backend == BackendQContacts) { + QMap errorMap; + m_qm->removeContacts(id_list, &errorMap); + id_list.clear(); + } + else if(m_backend == BackendContactsModel){ +#ifdef Q_OS_SYMBIAN + CContactDatabase* db = CContactDatabase::OpenL(); + CleanupStack::PushL(db); + + CContactIdArray* idArray = CContactIdArray::NewLC(); + while(!id_list.isEmpty()) + idArray->AddL(id_list.takeFirst()); + db->DeleteContactsL(*idArray); + + CleanupStack::PopAndDestroy(2); //idArray, contactsDb +#endif + } + +} + +void tst_Contact::tst_createTime() +{ + + if(m_backend == BackendQContacts){ + QContactManager *qm = 0x0; + + QBENCHMARK { + qm = new QContactManager(manager); + } + + delete qm; + } + else if(m_backend == BackendContactsModel){ +#ifdef Q_OS_SYMBIAN + CContactDatabase* db = 0x0; + QBENCHMARK { + db = CContactDatabase::OpenL(); + } + CleanupStack::PushL(db); + CleanupStack::PopAndDestroy(1); //db +#endif + } +} + +void tst_Contact::tst_fetchAllContactIds() +{ + if(m_backend == BackendQContacts) { + QList ql; + QBENCHMARK { + ql = m_qm->contactIds(); + } + } + else if(m_backend == BackendContactsModel){ +#ifdef Q_OS_SYMBIAN + //open database + // Open the default contact database + CContactDatabase* contactsDb = CContactDatabase::OpenL(); + CleanupStack::PushL(contactsDb); + + CCntFilter *filter = CCntFilter::NewLC(); + + //get all contact items (no groups, templates...) + filter->SetContactFilterTypeALL(EFalse); + filter->SetContactFilterTypeCard(ETrue); + + CContactIdArray *iContacts = 0x0; + + QBENCHMARK { + contactsDb->FilterDatabaseL(*filter); + iContacts = CContactIdArray::NewLC(filter->iIds); + } + + CleanupStack::PopAndDestroy(3); //iContacts, filter, contactsDb +#endif + } +} + +void tst_Contact::tst_fetchOneContact() +{ + if(m_backend == BackendQContacts){ + QContact c; + + m_run++; + +#if defined(Q_WS_MAEMO_6) + int ret; + QContactFetchRequest* req = new QContactFetchRequest; + + QList qcl = m_qm->contactIds(); + if(qcl.count() < 1) + QFAIL("No contacts to pull from tracker"); + QList one; + one += qcl.takeFirst(); + QContactLocalIdFilter idFil; + idFil.setIds(one); + req->setFilter(idFil); + + req->setManager(m_qm); + //connect(req, SIGNAL(progress(QContactFetchRequest*, bool)), this, SLOT(gotContact(QContactFetchRequest*,bool))); + //connect(req, SIGNAL(stateChanged(QContactAbstractRequest::State)), this, SLOT(stateChanged(QContactAbstractRequest::State))); + connect(req, SIGNAL(resultsAvailable()), this, SLOT(resultsAvailable())); + + m_num_contacts = 1; + m_timer->start(1000); + + QBENCHMARK { + req->start(); + ret = loop->exec(); + } + m_timer->stop(); + + //qDebug() << "Got Contact: " << qm->synthesizeDisplayLabel(c); + if(ret){ + QFAIL("Failed to load one contact"); + } + delete req; + +#elif defined(Q_OS_SYMBIAN) + QList qcl = m_qm->contactIds(); + if(qcl.count() < 1) + QFAIL("No contacts to pull from tracker"); + + QBENCHMARK { + c = m_qm->contact(qcl.first()); + } +#endif + } + else if(m_backend == BackendContactsModel){ +#ifdef Q_OS_SYMBIAN + //open database + // Open the default contact database + CContactDatabase* contactDb = CContactDatabase::OpenL(); + CleanupStack::PushL(contactDb); + + int id = id_list.takeFirst(); + id_list.append(id); + + CContactItem *item; + TInt r; + + QBENCHMARK { + TRAP(r, item = contactDb->ReadContactL(id)); + } + CleanupStack::PushL(item); + + if(r != KErrNone){ qWarning() << "Error by OpenContactL: " << r; } + +// TRAP(r, contactDb->CloseContactL(id)); +// if(r != KErrNone){qWarning() << "Error by CloseContactL: " << r; } + + //qDebug() << "Call FetchContactDone: " << id; + + CleanupStack::PopAndDestroy(2); //contact, lock, contactsDb + +#endif + } +} + + + +void tst_Contact::tst_fetchTenContact() +{ + if(m_backend == BackendQContacts){ + QContact c; + m_run++; + +#if defined(Q_WS_MAEMO_6) + int ret; + + QContactFetchRequest* req = new QContactFetchRequest; + + QList qcl = m_qm->contactIds(); + if(qcl.count() < 10){ + QFAIL("No enough contacts to get 10"); + } + QList one; + for(int i = 0; i<10; i++) + one += qcl.takeFirst(); + m_num_contacts = 10; + + QContactLocalIdFilter idFil; + idFil.setIds(one); + req->setFilter(idFil); + + req->setManager(m_qm); + + // connect(req, SIGNAL(progress(QContactFetchRequest*, bool)), this, SLOT(gotContact(QContactFetchRequest*,bool))); + connect(req, SIGNAL(resultsAvailable()), this, SLOT(resultsAvailable())); + + m_timer->start(1000); + + QBENCHMARK { + req->start(); + ret = loop->exec(); + } + m_timer->stop(); + + //qDebug() << "Got Contact: " << qm->synthesizeDisplayLabel(c); + if(ret){ + QFAIL("Failed to load one contact"); + } + + delete req; + +#elif defined(Q_OS_SYMBIAN) + QList qcl = m_qm->contactIds(); + if(qcl.count() < 10){ + QFAIL("No enough contacts to get 10"); + } + QList one; + for(int i = 0; i<10; i++) + one += qcl.takeFirst(); + + QContactLocalIdFilter idFil; + idFil.setIds(one); + + QList qlc; + + QBENCHMARK { + qlc = m_qm->contacts(idFil, QList(), QContactFetchHint()); + } + + if(qlc.count() != 10){ + QFAIL("Did not get 10 contacts back"); + } + +#endif + } + else if(m_backend == BackendContactsModel){ +#ifdef Q_OS_SYMBIAN + //open database + // Open the default contact database + CContactDatabase* contactDb = CContactDatabase::OpenL(); + CleanupStack::PushL(contactDb); + + int id = id_list.takeFirst(); + id_list.append(id); + + TInt r; + + CContactItem *item1; + CContactItem *item2; + CContactItem *item3; + CContactItem *item4; + CContactItem *item5; + CContactItem *item6; + CContactItem *item7; + CContactItem *item8; + CContactItem *item9; + CContactItem *item10; + + QBENCHMARK { + TRAP(r, item1 = contactDb->ReadContactL(id)); + id = id_list.takeFirst(); + id_list.append(id); + TRAP(r, item2 = contactDb->ReadContactL(id)); + id = id_list.takeFirst(); + id_list.append(id); + TRAP(r, item3 = contactDb->ReadContactL(id)); + id = id_list.takeFirst(); + id_list.append(id); + TRAP(r, item4 = contactDb->ReadContactL(id)); + id = id_list.takeFirst(); + id_list.append(id); + TRAP(r, item5 = contactDb->ReadContactL(id)); + id = id_list.takeFirst(); + id_list.append(id); + TRAP(r, item6 = contactDb->ReadContactL(id)); + id = id_list.takeFirst(); + id_list.append(id); + TRAP(r, item7 = contactDb->ReadContactL(id)); + id = id_list.takeFirst(); + id_list.append(id); + TRAP(r, item8 = contactDb->ReadContactL(id)); + id = id_list.takeFirst(); + id_list.append(id); + TRAP(r, item9 = contactDb->ReadContactL(id)); + id = id_list.takeFirst(); + id_list.append(id); + TRAP(r, item10 = contactDb->ReadContactL(id)); + } + CleanupStack::PushL(item1); + CleanupStack::PushL(item2); + CleanupStack::PushL(item3); + CleanupStack::PushL(item4); + CleanupStack::PushL(item5); + CleanupStack::PushL(item6); + CleanupStack::PushL(item7); + CleanupStack::PushL(item8); + CleanupStack::PushL(item9); + CleanupStack::PushL(item10); + + if(r != KErrNone){ qWarning() << "Error by OpenContactL: " << r; } + + CleanupStack::PopAndDestroy(11); //10*item + contactsDb +#endif + } +} + +void tst_Contact::timeout() +{ + qDebug() << "***** Timeout, haven't received the signal/contact within 1sec"; + loop->exit(1); // timeout, fail test + +} + +void tst_Contact::gotContact(QContactFetchRequest *request, bool appendOnly) +{ + Q_UNUSED(appendOnly); + + // first, check to make sure that the request is still valid. + if (request->state() == QContactAbstractRequest::CanceledState) { + delete request; + QWARN("Contact request canceled"); + loop->exit(1); + return; // ignore these results. + } + + if(request->contacts().count() > 0) { + m_num_contacts -= request->contacts().count(); + if(m_num_contacts <= 0) + loop->exit(0); + return; // got one or more + } + + // check to see if the request status is "finished" - clean up. + if (request->state() == QContactAbstractRequest::FinishedState) { + delete request; + } + +} + +void tst_Contact::resultsAvailable() +{ + + QContactFetchRequest *req = qobject_cast(sender()); + if(req){ + //qDebug() << m_run << " Got resultsAvailable: " << req->contacts().count() << " need: " << m_num_contacts; + if(!req->contacts().empty()) { + m_num_contacts -= req->contacts().count(); + if(m_num_contacts <= 0) + loop->exit(0); + return; // got one or more + } + } + +} + +void tst_Contact::resultsAvailableFilter() +{ + + QContactFetchRequest *req = qobject_cast(sender()); + if(req){ + if(!req->contacts().empty()) { // we got enough certainly...don't know how many are coming back with the filter + loop->exit(0); + return; // got one or more + } + } +} + +void tst_Contact::stateChanged(QContactAbstractRequest::State /*newState*/) +{ + qDebug() << "Got state change"; +} + +void tst_Contact::tst_createContact() +{ + QBENCHMARK { + createContact(); + } +} + +void tst_Contact::tst_saveContact() +{ + if(m_backend == BackendQContacts) { + QContact *c = new QContact; + c->setType("Contact"); + QContactName cname; + QString name; + name = firstNames.takeFirst(); + firstNames.push_back(name); + cname.setFirstName(name); + name = lastNames.takeFirst(); + lastNames.push_back(name); + cname.setLastName(name); +#ifndef Q_WS_MAEMO_5 + cname.setPrefix("Mr"); +#endif + c->saveDetail(&cname); + + int ret = 0; + + QBENCHMARK { + ret = m_qm->saveContact(c); + } + if(!ret){ + qDebug() << "Failed to create contact durring setup"; + return; + } + id_list.append(c->localId()); + delete c; + } + else if(m_backend == BackendContactsModel){ +#ifdef Q_OS_SYMBIAN + // Create a contact card and add a work phone number. Numeric values are + // stored in a text field (storage type = KStorageTypeText). + + CContactDatabase* db = CContactDatabase::OpenL(); + CleanupStack::PushL(db); + + CContactCard* newCard = CContactCard::NewLC(); + + QString name; + + // Create the firstName field and add the data to it + name = firstNames.takeFirst(); + firstNames.push_back(name); + CContactItemField* firstName = CContactItemField::NewLC(KStorageTypeText, KUidContactFieldGivenName); + TPtrC Firstname(reinterpret_cast(name.utf16())); + firstName->TextStorage()->SetTextL(Firstname); + newCard->AddFieldL(*firstName); + CleanupStack::Pop(firstName); + + // Create the lastName field and add the data to it + name = lastNames.takeFirst(); + lastNames.push_back(name); + CContactItemField* lastName= CContactItemField::NewLC(KStorageTypeText, KUidContactFieldFamilyName); + TPtrC Lastname(reinterpret_cast(name.utf16())); + lastName->TextStorage()->SetTextL(Lastname); + newCard->AddFieldL(*lastName); + CleanupStack::Pop(lastName); +#ifndef Q_WS_MAEMO_5 + CContactItemField* prefix = CContactItemField::NewLC(KStorageTypeText, KUidContactFieldPrefixName); + _LIT(KPrefix, "Mr"); + prefix->TextStorage()->SetTextL(KPrefix); + newCard->AddFieldL(*prefix); + CleanupStack::Pop(prefix); +#endif + QBENCHMARK { + // Add newCard to the database + const TContactItemId contactId = db->AddNewContactL(*newCard); + db->CloseContactL(contactId); + id_list.append(contactId); + } + + CleanupStack::PopAndDestroy(2); //newCard, contactsDb +#else + qWarning("ContactModel set but Q_OS_SYMBIAN not set, this doesn't make sense"); +#endif + } +} + + +void tst_Contact::createContact() +{ + if(m_backend == BackendQContacts) { + QContact *c = new QContact; + c->setType(QContactType::TypeContact); + QContactName cname; + QString name; + name = firstNames.takeFirst(); + firstNames.push_back(name); + cname.setFirstName(name); + name = lastNames.takeFirst(); + lastNames.push_back(name); + cname.setLastName(name); +#ifndef Q_WS_MAEMO_5 + cname.setPrefix("Mr"); +#endif + c->saveDetail(&cname); + + if(!m_qm->saveContact(c)){ + qDebug() << "Failed to create contact during setup"; + return; + } + id_list.append(c->localId()); + delete c; + } + else if(m_backend == BackendContactsModel){ +#ifdef Q_OS_SYMBIAN + // Create a contact card and add a work phone number. Numeric values are + // stored in a text field (storage type = KStorageTypeText). + + CContactDatabase* db = CContactDatabase::OpenL(); + CleanupStack::PushL(db); + + CContactCard* newCard = CContactCard::NewLC(); + + QString name; + + // Create the firstName field and add the data to it + name = firstNames.takeFirst(); + firstNames.push_back(name); + CContactItemField* firstName = CContactItemField::NewLC(KStorageTypeText, KUidContactFieldGivenName); + TPtrC Firstname(reinterpret_cast(name.utf16())); + firstName->TextStorage()->SetTextL(Firstname); + newCard->AddFieldL(*firstName); + CleanupStack::Pop(firstName); + + // Create the lastName field and add the data to it + name = lastNames.takeFirst(); + lastNames.push_back(name); + CContactItemField* lastName= CContactItemField::NewLC(KStorageTypeText, KUidContactFieldFamilyName); + TPtrC Lastname(reinterpret_cast(name.utf16())); + lastName->TextStorage()->SetTextL(Lastname); + newCard->AddFieldL(*lastName); + CleanupStack::Pop(lastName); +#ifndef Q_WS_MAEMO_5 + CContactItemField* prefix = CContactItemField::NewLC(KStorageTypeText, KUidContactFieldPrefixName); + _LIT(KPrefix, "Mr"); + prefix->TextStorage()->SetTextL(KPrefix); + newCard->AddFieldL(*prefix); + CleanupStack::Pop(prefix); +#endif + // Add newCard to the database + const TContactItemId contactId = db->AddNewContactL(*newCard); + db->CloseContactL(contactId); + + id_list.append(contactId); + CleanupStack::PopAndDestroy(2); //newCard, contactsDb +#else + qWarning("ContactModel set but Q_OS_SYMBIAN not set, this doesn't make sense"); +#endif + } +} + +void tst_Contact::tst_nameFilter() +{ + if(m_backend == BackendQContacts){ + QContactFilter fil = QContactName::match(firstNames.first(),""); // pick one first name to find + //QContactFilter fil = QContactName::match("sdfsdfsdfjhsjkdfshdkf", ""); // pick one first name to find + QContact c; + + m_run++; + + + +#if defined(Q_WS_MAEMO_6) + int ret; + QContactFetchRequest* req = new QContactFetchRequest; + req->setFilter(fil); + req->setManager(m_qm); + + connect(req, SIGNAL(resultsAvailable()), this, SLOT(resultsAvailableFilter())); + + m_timer->start(1000); + + QBENCHMARK { + req->start(); + ret = loop->exec(); + } + m_timer->stop(); + + //qDebug() << "Got Contact: " << qm->synthesizeDisplayLabel(c); + if(ret){ + QFAIL("Failed to load one contact"); + } + +// QList qcl = req->contacts(); +// while(!qcl.isEmpty()){ +// QContact c = qcl.takeFirst(); +// qDebug() << "Contact: " << c.displayLabel(); +// } + delete req; + +#elif defined(Q_OS_SYMBIAN) + QList qlc; + + QBENCHMARK { + qlc = m_qm->contacts(fil, QList(), QContactFetchHint()); + } + +// while(!qlc.isEmpty()){ +// QContact c = qlc.takeFirst(); +// qDebug() << "Contact: " << c.displayLabel(); +// } +#endif + } + else if(m_backend == BackendContactsModel){ +#ifdef Q_OS_SYMBIAN + //open database + // Open the default contact database + CContactDatabase* contactDb = CContactDatabase::OpenL(); + CleanupStack::PushL(contactDb); + + CContactItem *item = 0x0; + + const TPtrC Firstname(reinterpret_cast(firstNames.first().utf16())); + CContactIdArray* idArray; + + CContactItemFieldDef* fieldDef = new (ELeave) CContactItemFieldDef(); + CleanupStack::PushL(fieldDef); + + fieldDef->AppendL( KUidContactFieldGivenName); + + QBENCHMARK { + idArray = contactDb->FindLC(Firstname, fieldDef); + if(idArray->Count() > 0) + item = contactDb->ReadContactL((*idArray)[0]); + else + QFAIL("No contacts returned from CContactDatabase::FindLC"); + } + CleanupStack::PushL(item); + + CleanupStack::PopAndDestroy(4); //item, idArray, fielddef, lock, contactsDb +#endif + } +} + +void tst_Contact::tst_removeOneContact() +{ + if(m_backend == BackendQContacts){ + QList one; + QMap errorMap; + + if(id_list.count() < 1){ // incase we run out of contacts + createContact(); + } + + one += id_list.takeFirst(); + QBENCHMARK { + m_qm->removeContacts(one, &errorMap); + } + + } + else if(m_backend == BackendContactsModel){ +#ifdef Q_OS_SYMBIAN + CContactDatabase* db = CContactDatabase::OpenL(); + CleanupStack::PushL(db); + + if(id_list.isEmpty()) + QFAIL("no contacts available to be removed for tst_removeOnContact()"); + + + TInt32 id = id_list.takeFirst(); + + QBENCHMARK { + db->DeleteContactL(id); + } + + CleanupStack::PopAndDestroy(1); //idArray, contactsDb +#endif + } +} + +void tst_Contact::tst_removeAllContacts() +{ + int before = countContacts(); + + if(before < 20) { + for(int i = before; i < 20; i++){ + createContact(); + } + } + + QBENCHMARK { + clearContacts(); + } + +} + +int main(int argc, char **argv){ + + QApplication app(argc, argv); + + tst_Contact test1; + test1.setBackend("memory"); + QTest::qExec(&test1, argc, argv); + +// tst_Contact test2; +// test2.setBackend("tracker"); +// QTest::qExec(&test2, argc, argv); +#if defined(Q_WS_MAEMO_5) + tst_Contact test2; + test2.setBackend("maemo5"); + QTest::qExec(&test2, argc, argv); +#endif +#if defined(Q_OS_SYMBIAN) + tst_Contact test2; + test2.setBackend("symbian"); + QTest::qExec(&test2, argc, argv); + + tst_Contact test3; + test3.setBackend("SymbianContactsModel"); + QTest::qExec(&test3, argc, argv); +#endif + +} + +#include "tst_bm_contacts.moc" + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/benchmarks/contacts/tst_contacts.cpp --- a/qtmobility/tests/benchmarks/contacts/tst_contacts.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,933 +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 Qt Mobility Components. -** -** $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 -#include -//#include "contact.h" -//#include -#include -#include -#include - -#include -#include -#include -#include
- -#ifdef Q_OS_SYMBIAN -#include -#include -#include -#include -#include -#include -#include -#include -#endif - -QTM_USE_NAMESPACE - -//Q_DECLARE_METATYPE(QSystemInfo::Version); -//Q_DECLARE_METATYPE(QSystemInfo::Feature); - -class tst_Contact : public QObject -{ - Q_OBJECT - -private slots: - void initTestCase(); - void cleanupTestCase(); - - void tst_createTime(); - - void tst_fetchAllContactIds(); - void tst_fetchOneContact(); - void tst_fetchTenContact(); - //void tst_fetchAllContact(); - - void tst_createContact(); - void tst_saveContact(); - - void tst_nameFilter(); - - void tst_removeOneContact(); - void tst_removeAllContacts(); - - -// void tst_currentLanguage(); -// void tst_availableLanguages(); -// -// void tst_versions_data(); -// void tst_versions(); -// -// void tst_hasFeatures_data(); -// void tst_hasFeatures(); - -public slots: - - void gotContact(QContactFetchRequest*,bool); - void stateChanged(QContactAbstractRequest::State newState); - void timeout(); - void resultsAvailable(); - void resultsAvailableFilter(); - void setBackend(QString); - -private: - void createContact(); - void clearContacts(); - int countContacts(); - - enum { - BackendQContacts, - BackendContactsModel - } m_backend; - QString manager; - QEventLoop *loop; - QContactManager *m_qm; - int m_num_contacts; - QList id_list; - - int m_run; - - int m_num_start; - - QTimer *m_timer; - QStringList firstNames; - QStringList lastNames; - -}; - -void tst_Contact::setBackend(QString backend) -{ - manager = backend; - if(manager == "SymbianContactsModel") // Only one at the moment - m_backend = BackendContactsModel; - else - m_backend = BackendQContacts; - qWarning() << "Backend set to: " << manager; -} - -void tst_Contact::initTestCase() -{ - qDebug() << "Managers: " << QContactManager::availableManagers(); - m_run = 0; - -#if defined(Q_WS_MAEMO_6) - QStringList list = QContactManager::availableManagers(); - int found = 0; - while(!list.empty()){ - if(list.takeFirst() == "tracker"){ - found = 1; - break; - } - } - if(!found) - QFAIL("Unable to find Maemo 6 tracker plugin. Please check install"); - - if(manager.isEmpty()) - manager = "memory"; - m_qm = new QContactManager(manager); -#elif defined(Q_WS_MAEMO_5) - QFAIL("Maemo 5 does not support QContacts"); -#elif defined(Q_OS_SYMBIAN) - if(m_backend != BackendContactsModel) { - QStringList list = QContactManager::availableManagers(); - int found = 0; - while(!list.empty()){ - if(list.takeFirst() == "symbian"){ - found = 1; - break; - } - } - if(!found) { - QFAIL("Unable to find Symbian plugin. Please check install"); - } - - if(manager.isEmpty()) { - manager = "symbian"; - } - m_qm = new QContactManager(manager); - } - else { - m_qm = 0x0; - } -#else - QFAIL("Platform not supported"); -#endif - - - // setup an event loop for waiting - loop = new QEventLoop; - - firstNames << "Anahera" << "Anaru" << "Hemi" << "Hine" << "Kiri" << "Maata" << "Mere" << "Moana" << "Paora" << "Petera" << "Piripi" << "Ruiha" << "Tane" << "Whetu"; - lastNames << "Ati Awa" << "Kai Taho" << "Moriori" << "Muaupoko" << "Nga Rauru" << "Taranaki" << "Opotoki" << "Aotea" << "Taninui" << "Tuhourangi" << "Tainui" << "Waitaha"; - - m_num_start = countContacts(); - qDebug() << "Number of Contact: " << m_num_start; - - - for(int i = 0; i < 20; i++){ - createContact(); - } - - int after = countContacts(); - if(after - m_num_start != 20){ - qWarning() << "Failed to create 20 contacts"; - } - - m_timer = new QTimer(this); - connect(m_timer, SIGNAL(timeout()), this, SLOT(timeout())); - -} - -int tst_Contact::countContacts() -{ - if(m_backend == BackendQContacts) { - QList qcl = m_qm->contactIds(); - return qcl.count(); - } else if(m_backend == BackendContactsModel){ -#ifdef Q_OS_SYMBIAN - CContactDatabase* contactsDb = CContactDatabase::OpenL(); - CleanupStack::PushL(contactsDb); - - int num = contactsDb->CountL(); - - CleanupStack::PopAndDestroy(contactsDb); - - return num; -#endif - } - - qWarning("No backend support in countContacts()"); - return 0; - -} - -void tst_Contact::cleanupTestCase() -{ - clearContacts(); - int num_end = countContacts(); - if(m_num_start != num_end){ - QFAIL(QString("Number of contacts ending: %2 is different that starting number %1. Poor cleanup").arg(m_num_start).arg(num_end).toAscii()); - } -} - -void tst_Contact::clearContacts() -{ - if(m_backend == BackendQContacts) { - QMap errorMap; - m_qm->removeContacts(&id_list, &errorMap); - id_list.clear(); - } - else if(m_backend == BackendContactsModel){ -#ifdef Q_OS_SYMBIAN - CContactDatabase* db = CContactDatabase::OpenL(); - CleanupStack::PushL(db); - - CContactIdArray* idArray = CContactIdArray::NewLC(); - while(!id_list.isEmpty()) - idArray->AddL(id_list.takeFirst()); - db->DeleteContactsL(*idArray); - - CleanupStack::PopAndDestroy(2); //idArray, contactsDb -#endif - } - -} - -void tst_Contact::tst_createTime() -{ - - if(m_backend == BackendQContacts){ - QContactManager *qm = 0x0; - - QBENCHMARK { - qm = new QContactManager(manager); - } - - delete qm; - } - else if(m_backend == BackendContactsModel){ -#ifdef Q_OS_SYMBIAN - CContactDatabase* db = 0x0; - QBENCHMARK { - db = CContactDatabase::OpenL(); - } - CleanupStack::PushL(db); - CleanupStack::PopAndDestroy(1); //db -#endif - } -} - -void tst_Contact::tst_fetchAllContactIds() -{ - if(m_backend == BackendQContacts) { - QList ql; - QBENCHMARK { - ql = m_qm->contactIds(); - } - } - else if(m_backend == BackendContactsModel){ -#ifdef Q_OS_SYMBIAN - //open database - // Open the default contact database - CContactDatabase* contactsDb = CContactDatabase::OpenL(); - CleanupStack::PushL(contactsDb); - - CCntFilter *filter = CCntFilter::NewLC(); - - //get all contact items (no groups, templates...) - filter->SetContactFilterTypeALL(EFalse); - filter->SetContactFilterTypeCard(ETrue); - - CContactIdArray *iContacts = 0x0; - - QBENCHMARK { - contactsDb->FilterDatabaseL(*filter); - iContacts = CContactIdArray::NewLC(filter->iIds); - } - - CleanupStack::PopAndDestroy(3); //iContacts, filter, contactsDb -#endif - } -} - -void tst_Contact::tst_fetchOneContact() -{ - if(m_backend == BackendQContacts){ - QContact c; - - m_run++; - -#if defined(Q_WS_MAEMO_6) - int ret; - QContactFetchRequest* req = new QContactFetchRequest; - - QList qcl = m_qm->contactIds(); - if(qcl.count() < 1) - QFAIL("No contacts to pull from tracker"); - QList one; - one += qcl.takeFirst(); - QContactLocalIdFilter idFil; - idFil.setIds(one); - req->setFilter(idFil); - - req->setManager(m_qm); - //connect(req, SIGNAL(progress(QContactFetchRequest*, bool)), this, SLOT(gotContact(QContactFetchRequest*,bool))); - //connect(req, SIGNAL(stateChanged(QContactAbstractRequest::State)), this, SLOT(stateChanged(QContactAbstractRequest::State))); - connect(req, SIGNAL(resultsAvailable()), this, SLOT(resultsAvailable())); - - m_num_contacts = 1; - m_timer->start(1000); - - QBENCHMARK { - req->start(); - ret = loop->exec(); - } - m_timer->stop(); - - //qDebug() << "Got Contact: " << qm->synthesizeDisplayLabel(c); - if(ret){ - QFAIL("Failed to load one contact"); - } - delete req; - -#elif defined(Q_OS_SYMBIAN) - QList qcl = m_qm->contactIds(); - if(qcl.count() < 1) - QFAIL("No contacts to pull from tracker"); - - QBENCHMARK { - c = m_qm->contact(qcl.first()); - } -#endif - } - else if(m_backend == BackendContactsModel){ -#ifdef Q_OS_SYMBIAN - //open database - // Open the default contact database - CContactDatabase* contactDb = CContactDatabase::OpenL(); - CleanupStack::PushL(contactDb); - - int id = id_list.takeFirst(); - id_list.append(id); - - CContactItem *item; - TInt r; - - QBENCHMARK { - TRAP(r, item = contactDb->ReadContactL(id)); - } - CleanupStack::PushL(item); - - if(r != KErrNone){ qWarning() << "Error by OpenContactL: " << r; } - -// TRAP(r, contactDb->CloseContactL(id)); -// if(r != KErrNone){qWarning() << "Error by CloseContactL: " << r; } - - //qDebug() << "Call FetchContactDone: " << id; - - CleanupStack::PopAndDestroy(2); //contact, lock, contactsDb - -#endif - } -} - - - -void tst_Contact::tst_fetchTenContact() -{ - if(m_backend == BackendQContacts){ - QContact c; - m_run++; - -#if defined(Q_WS_MAEMO_6) - int ret; - - QContactFetchRequest* req = new QContactFetchRequest; - - QList qcl = m_qm->contactIds(); - if(qcl.count() < 10){ - QFAIL("No enough contacts to get 10"); - } - QList one; - for(int i = 0; i<10; i++) - one += qcl.takeFirst(); - m_num_contacts = 10; - - QContactLocalIdFilter idFil; - idFil.setIds(one); - req->setFilter(idFil); - - req->setManager(m_qm); - - // connect(req, SIGNAL(progress(QContactFetchRequest*, bool)), this, SLOT(gotContact(QContactFetchRequest*,bool))); - connect(req, SIGNAL(resultsAvailable()), this, SLOT(resultsAvailable())); - - m_timer->start(1000); - - QBENCHMARK { - req->start(); - ret = loop->exec(); - } - m_timer->stop(); - - //qDebug() << "Got Contact: " << qm->synthesizeDisplayLabel(c); - if(ret){ - QFAIL("Failed to load one contact"); - } - - delete req; - -#elif defined(Q_OS_SYMBIAN) - QList qcl = m_qm->contactIds(); - if(qcl.count() < 10){ - QFAIL("No enough contacts to get 10"); - } - QList one; - for(int i = 0; i<10; i++) - one += qcl.takeFirst(); - - QContactLocalIdFilter idFil; - idFil.setIds(one); - - QList qlc; - - QBENCHMARK { - qlc = m_qm->contacts(idFil, QList(), QStringList()); - } - - if(qlc.count() != 10){ - QFAIL("Did not get 10 contacts back"); - } - -#endif - } - else if(m_backend == BackendContactsModel){ -#ifdef Q_OS_SYMBIAN - //open database - // Open the default contact database - CContactDatabase* contactDb = CContactDatabase::OpenL(); - CleanupStack::PushL(contactDb); - - int id = id_list.takeFirst(); - id_list.append(id); - - TInt r; - - CContactItem *item1; - CContactItem *item2; - CContactItem *item3; - CContactItem *item4; - CContactItem *item5; - CContactItem *item6; - CContactItem *item7; - CContactItem *item8; - CContactItem *item9; - CContactItem *item10; - - QBENCHMARK { - TRAP(r, item1 = contactDb->ReadContactL(id)); - id = id_list.takeFirst(); - id_list.append(id); - TRAP(r, item2 = contactDb->ReadContactL(id)); - id = id_list.takeFirst(); - id_list.append(id); - TRAP(r, item3 = contactDb->ReadContactL(id)); - id = id_list.takeFirst(); - id_list.append(id); - TRAP(r, item4 = contactDb->ReadContactL(id)); - id = id_list.takeFirst(); - id_list.append(id); - TRAP(r, item5 = contactDb->ReadContactL(id)); - id = id_list.takeFirst(); - id_list.append(id); - TRAP(r, item6 = contactDb->ReadContactL(id)); - id = id_list.takeFirst(); - id_list.append(id); - TRAP(r, item7 = contactDb->ReadContactL(id)); - id = id_list.takeFirst(); - id_list.append(id); - TRAP(r, item8 = contactDb->ReadContactL(id)); - id = id_list.takeFirst(); - id_list.append(id); - TRAP(r, item9 = contactDb->ReadContactL(id)); - id = id_list.takeFirst(); - id_list.append(id); - TRAP(r, item10 = contactDb->ReadContactL(id)); - } - CleanupStack::PushL(item1); - CleanupStack::PushL(item2); - CleanupStack::PushL(item3); - CleanupStack::PushL(item4); - CleanupStack::PushL(item5); - CleanupStack::PushL(item6); - CleanupStack::PushL(item7); - CleanupStack::PushL(item8); - CleanupStack::PushL(item9); - CleanupStack::PushL(item10); - - if(r != KErrNone){ qWarning() << "Error by OpenContactL: " << r; } - - CleanupStack::PopAndDestroy(11); //10*item + contactsDb -#endif - } -} - -void tst_Contact::timeout() -{ - qDebug() << "***** Timeout, haven't received the signal/contact within 1sec"; - loop->exit(1); // timeout, fail test - -} - -void tst_Contact::gotContact(QContactFetchRequest *request, bool appendOnly) -{ - Q_UNUSED(appendOnly); - - // first, check to make sure that the request is still valid. - if (request->state() == QContactAbstractRequest::CanceledState) { - delete request; - QWARN("Contact request canceled"); - loop->exit(1); - return; // ignore these results. - } - - if(request->contacts().count() > 0) { - m_num_contacts -= request->contacts().count(); - if(m_num_contacts <= 0) - loop->exit(0); - return; // got one or more - } - - // check to see if the request status is "finished" - clean up. - if (request->state() == QContactAbstractRequest::FinishedState) { - delete request; - } - -} - -void tst_Contact::resultsAvailable() -{ - - QContactFetchRequest *req = qobject_cast(sender()); - if(req){ - //qDebug() << m_run << " Got resultsAvailable: " << req->contacts().count() << " need: " << m_num_contacts; - if(!req->contacts().empty()) { - m_num_contacts -= req->contacts().count(); - if(m_num_contacts <= 0) - loop->exit(0); - return; // got one or more - } - } - -} - -void tst_Contact::resultsAvailableFilter() -{ - - QContactFetchRequest *req = qobject_cast(sender()); - if(req){ - if(!req->contacts().empty()) { // we got enough certainly...don't know how many are coming back with the filter - loop->exit(0); - return; // got one or more - } - } -} - -void tst_Contact::stateChanged(QContactAbstractRequest::State /*newState*/) -{ - qDebug() << "Got state change"; -} - -void tst_Contact::tst_createContact() -{ - QBENCHMARK { - createContact(); - } -} - -void tst_Contact::tst_saveContact() -{ - if(m_backend == BackendQContacts) { - QContact *c = new QContact; - c->setType("Contact"); - QContactName cname; - QString name; - name = firstNames.takeFirst(); - firstNames.push_back(name); - cname.setFirstName(name); - name = lastNames.takeFirst(); - lastNames.push_back(name); - cname.setLastName(name); - cname.setPrefix("Mr"); - c->saveDetail(&cname); - - int ret = 0; - - QBENCHMARK { - ret = m_qm->saveContact(c); - } - if(!ret){ - qDebug() << "Failed to create contact durring setup"; - return; - } - id_list.append(c->localId()); - delete c; - } - else if(m_backend == BackendContactsModel){ -#ifdef Q_OS_SYMBIAN - // Create a contact card and add a work phone number. Numeric values are - // stored in a text field (storage type = KStorageTypeText). - - CContactDatabase* db = CContactDatabase::OpenL(); - CleanupStack::PushL(db); - - CContactCard* newCard = CContactCard::NewLC(); - - QString name; - - // Create the firstName field and add the data to it - name = firstNames.takeFirst(); - firstNames.push_back(name); - CContactItemField* firstName = CContactItemField::NewLC(KStorageTypeText, KUidContactFieldGivenName); - TPtrC Firstname(reinterpret_cast(name.utf16())); - firstName->TextStorage()->SetTextL(Firstname); - newCard->AddFieldL(*firstName); - CleanupStack::Pop(firstName); - - // Create the lastName field and add the data to it - name = lastNames.takeFirst(); - lastNames.push_back(name); - CContactItemField* lastName= CContactItemField::NewLC(KStorageTypeText, KUidContactFieldFamilyName); - TPtrC Lastname(reinterpret_cast(name.utf16())); - lastName->TextStorage()->SetTextL(Lastname); - newCard->AddFieldL(*lastName); - CleanupStack::Pop(lastName); - - CContactItemField* prefix = CContactItemField::NewLC(KStorageTypeText, KUidContactFieldPrefixName); - _LIT(KPrefix, "Mr"); - prefix->TextStorage()->SetTextL(KPrefix); - newCard->AddFieldL(*prefix); - CleanupStack::Pop(prefix); - - QBENCHMARK { - // Add newCard to the database - const TContactItemId contactId = db->AddNewContactL(*newCard); - db->CloseContactL(contactId); - id_list.append(contactId); - } - - CleanupStack::PopAndDestroy(2); //newCard, contactsDb -#else - qWarning("ContactModel set but Q_OS_SYMBIAN not set, this doesn't make sense"); -#endif - } -} - - -void tst_Contact::createContact() -{ - if(m_backend == BackendQContacts) { - QContact *c = new QContact; - c->setType("Contact"); - QContactName cname; - QString name; - name = firstNames.takeFirst(); - firstNames.push_back(name); - cname.setFirstName(name); - name = lastNames.takeFirst(); - lastNames.push_back(name); - cname.setLastName(name); - cname.setPrefix("Mr"); - c->saveDetail(&cname); - - if(!m_qm->saveContact(c)){ - qDebug() << "Failed to create contact durring setup"; - return; - } - id_list.append(c->localId()); - delete c; - } - else if(m_backend == BackendContactsModel){ -#ifdef Q_OS_SYMBIAN - // Create a contact card and add a work phone number. Numeric values are - // stored in a text field (storage type = KStorageTypeText). - - CContactDatabase* db = CContactDatabase::OpenL(); - CleanupStack::PushL(db); - - CContactCard* newCard = CContactCard::NewLC(); - - QString name; - - // Create the firstName field and add the data to it - name = firstNames.takeFirst(); - firstNames.push_back(name); - CContactItemField* firstName = CContactItemField::NewLC(KStorageTypeText, KUidContactFieldGivenName); - TPtrC Firstname(reinterpret_cast(name.utf16())); - firstName->TextStorage()->SetTextL(Firstname); - newCard->AddFieldL(*firstName); - CleanupStack::Pop(firstName); - - // Create the lastName field and add the data to it - name = lastNames.takeFirst(); - lastNames.push_back(name); - CContactItemField* lastName= CContactItemField::NewLC(KStorageTypeText, KUidContactFieldFamilyName); - TPtrC Lastname(reinterpret_cast(name.utf16())); - lastName->TextStorage()->SetTextL(Lastname); - newCard->AddFieldL(*lastName); - CleanupStack::Pop(lastName); - - CContactItemField* prefix = CContactItemField::NewLC(KStorageTypeText, KUidContactFieldPrefixName); - _LIT(KPrefix, "Mr"); - prefix->TextStorage()->SetTextL(KPrefix); - newCard->AddFieldL(*prefix); - CleanupStack::Pop(prefix); - - // Add newCard to the database - const TContactItemId contactId = db->AddNewContactL(*newCard); - db->CloseContactL(contactId); - - id_list.append(contactId); - CleanupStack::PopAndDestroy(2); //newCard, contactsDb -#else - qWarning("ContactModel set but Q_OS_SYMBIAN not set, this doesn't make sense"); -#endif - } -} - -void tst_Contact::tst_nameFilter() -{ - if(m_backend == BackendQContacts){ - QContactFilter fil = QContactName::match(firstNames.first(),""); // pick one first name to find - //QContactFilter fil = QContactName::match("sdfsdfsdfjhsjkdfshdkf", ""); // pick one first name to find - QContact c; - - m_run++; - -#if defined(Q_WS_MAEMO_6) - int ret; - QContactFetchRequest* req = new QContactFetchRequest; - req->setFilter(fil); - req->setManager(m_qm); - - connect(req, SIGNAL(resultsAvailable()), this, SLOT(resultsAvailableFilter())); - - m_timer->start(1000); - - QBENCHMARK { - req->start(); - ret = loop->exec(); - } - m_timer->stop(); - - //qDebug() << "Got Contact: " << qm->synthesizeDisplayLabel(c); - if(ret){ - QFAIL("Failed to load one contact"); - } - -// QList qcl = req->contacts(); -// while(!qcl.isEmpty()){ -// QContact c = qcl.takeFirst(); -// qDebug() << "Contact: " << c.displayLabel(); -// } - delete req; - -#elif defined(Q_OS_SYMBIAN) - QList qlc; - - QBENCHMARK { - qlc = m_qm->contacts(fil, QList(), QStringList()); - } - -// while(!qlc.isEmpty()){ -// QContact c = qlc.takeFirst(); -// qDebug() << "Contact: " << c.displayLabel(); -// } -#endif - } - else if(m_backend == BackendContactsModel){ -#ifdef Q_OS_SYMBIAN - //open database - // Open the default contact database - CContactDatabase* contactDb = CContactDatabase::OpenL(); - CleanupStack::PushL(contactDb); - - CContactItem *item = 0x0; - - const TPtrC Firstname(reinterpret_cast(firstNames.first().utf16())); - CContactIdArray* idArray; - - CContactItemFieldDef* fieldDef = new (ELeave) CContactItemFieldDef(); - CleanupStack::PushL(fieldDef); - - fieldDef->AppendL( KUidContactFieldGivenName); - - QBENCHMARK { - idArray = contactDb->FindLC(Firstname, fieldDef); - if(idArray->Count() > 0) - item = contactDb->ReadContactL((*idArray)[0]); - else - QFAIL("No contacts returned from CContactDatabase::FindLC"); - } - CleanupStack::PushL(item); - - CleanupStack::PopAndDestroy(4); //item, idArray, fielddef, lock, contactsDb -#endif - } -} - -void tst_Contact::tst_removeOneContact() -{ - if(m_backend == BackendQContacts){ - QList one; - QMap errorMap; - - if(id_list.count() < 1){ // incase we run out of contacts - createContact(); - } - - one += id_list.takeFirst(); - QBENCHMARK { - m_qm->removeContacts(&one, &errorMap); - } - - } - else if(m_backend == BackendContactsModel){ -#ifdef Q_OS_SYMBIAN - CContactDatabase* db = CContactDatabase::OpenL(); - CleanupStack::PushL(db); - - if(id_list.isEmpty()) - QFAIL("no contacts available to be removed for tst_removeOnContact()"); - - - TInt32 id = id_list.takeFirst(); - - QBENCHMARK { - db->DeleteContactL(id); - } - - CleanupStack::PopAndDestroy(1); //idArray, contactsDb -#endif - } -} - -void tst_Contact::tst_removeAllContacts() -{ - int before = countContacts(); - - if(before < 20) { - for(int i = before; i < 20; i++){ - createContact(); - } - } - - QBENCHMARK { - clearContacts(); - } - -} - -int main(int argc, char **argv){ - - QApplication app(argc, argv); - - tst_Contact test1; - test1.setBackend("memory"); - QTest::qExec(&test1, argc, argv); - -// tst_Contact test2; -// test2.setBackend("tracker"); -// QTest::qExec(&test2, argc, argv); -#if defined(Q_OS_SYMBIAN) - tst_Contact test2; - test2.setBackend("symbian"); - QTest::qExec(&test2, argc, argv); - - tst_Contact test3; - test3.setBackend("SymbianContactsModel"); - QTest::qExec(&test3, argc, argv); -#endif -} - -#include "tst_contacts.moc" - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/benchmarks/messaging/messaging.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/benchmarks/messaging/messaging.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,29 @@ +TEMPLATE = app +TARGET = tst_bm_messaging +CONFIG += testcase + +SOURCES += tst_messaging.cpp + +QT += core \ + network + + +INCLUDEPATH += ../../../src/messaging + +include(../../../common.pri) + +CONFIG += mobility + +MOBILITY = messaging + + +symbian { + TARGET.CAPABILITY = All -TCB + LIBS += -lmsgs -lmsgs_autoshutdown -limcm -lsmcm -lgsmu -letext -lbafl + INCLUDEPATH += $$(EPOCROOT)epoc32/include/app + INCLUDEPATH += $$(EPOCROOT)epoc32/include/platform/app +} + +maemo { + QT += dbus xml gui +} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/benchmarks/messaging/tst_messaging.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/benchmarks/messaging/tst_messaging.cpp Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,1756 @@ +/**************************************************************************** +** +** 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 Qt Mobility Components. +** +** $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 +#include +#include +#include +#include + +#include "qmessagemanager.h" +#include "qmessage.h" + +#ifdef Q_OS_SYMBIAN +#include +#include // KMsvGlobalInBoxIndexEntryId +#include // CClientMtmRegistry +#include // CSmsClientMtm +#include // KUidMsgTypeSMS +#include // CRichText +#include +#include +#include +#include +#include +#include +#endif + +#include + +QTM_USE_NAMESPACE + +class OsNative; + +#if defined(Q_OS_SYMBIAN) +class OsNative : public MMsvSessionObserver { +public: + OsNative() + { + }; + + void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3) { }; + + void getFolders(RArray &folders); + + TMsvId makeSMS(TMsvId folder); + TMsvId makeIMAP4(TMsvId folder); + + CMsvSession *iSession; + CClientMtmRegistry *iMtmRegistry; + CSmsClientMtm *iSmsMtm; + CImap4ClientMtm *iImap4Mtm; + CMmsClientMtm *iMmsMtm; + + RArray iFolders; + RArray iNewMsgs; + +}; + +TMsvId OsNative::makeSMS(TMsvId folder){ + TBuf<10> aAddress(_L("Nokia")); + TBuf<20> aDescription(_L("Important Message")); + + _LIT(KTxt1,"Hi phone owner, how r u?"); + + TBuf<150> iMessage; + iMessage.Copy(KTxt1); + +// m_native->iSmsMtm->SwitchCurrentEntryL(KMsvGlobalInBoxIndexEntryId); //inbox KMsvDraftEntryId + iSmsMtm->SwitchCurrentEntryL(folder); + + iSmsMtm->CreateMessageL(KUidMsgTypeSMS.iUid); + + CSmsHeader& iHeader = iSmsMtm->SmsHeader(); + iHeader.SetFromAddressL(aAddress); + + + CRichText& body = iSmsMtm->Body(); + body.Reset(); + body.InsertL(0, iMessage); + + TMsvEntry entry = iSmsMtm->Entry().Entry(); + entry.SetInPreparation(EFalse); + entry.SetVisible(ETrue); + entry.iDate.HomeTime(); + entry.iDescription.Set(aDescription); + entry.iDetails.Set(aAddress); + entry.SetUnread(EFalse); + + + iSmsMtm->Entry().ChangeL(entry); + iSmsMtm->SaveMessageL(); + + return entry.Id(); +} + +TMsvId OsNative::makeIMAP4(TMsvId folder){ + TBuf<20> aSubject(_L("Test Subject")); + TBuf<20> aFrom(_L("Nokia@foo.com")); + TBuf<20> aTo(_L("Boo@bar.com")); + TBuf<20> aDescription(_L("Test Message")); + + _LIT(KTo, "Boo@bar.com"); + _LIT(KTxt1,"Test autogenerated message by benchmark/tst_messaging for performance testing"); + + TBuf<150> iMessage; + iMessage.Copy(KTxt1); + +// m_native->iSmsMtm->SwitchCurrentEntryL(KMsvGlobalInBoxIndexEntryId); //inbox KMsvDraftEntryId + iImap4Mtm->SwitchCurrentEntryL(folder); + + // Set the context to the folder in which message has to be created + CMsvEntry* entry = CMsvEntry::NewL(*iSession,folder,TMsvSelectionOrdering()); + CleanupStack::PushL(entry); + entry->SetEntryL(folder); + + CMsvOperationActiveSchedulerWait* waiter=CMsvOperationActiveSchedulerWait::NewLC(); + //CleanupStack::PushL(waiter); + + TMsvEmailTypeList msvEmailTypeList = 0; + TMsvPartList partList = (KMsvMessagePartBody | KMsvMessagePartAttachments); + + CImEmailOperation* emailOperation = CImEmailOperation::CreateNewL(waiter->iStatus, *iSession,KMsvGlobalOutBoxIndexEntryId, partList, msvEmailTypeList, KUidMsgTypeSMTP); + CleanupStack::PushL(emailOperation); + waiter->Start(); + + TMsvId temp; + TPckgC paramPack(temp); + const TDesC8& progBuf = emailOperation->ProgressL(); + paramPack.Set(progBuf); + TMsvId newMessageId; + newMessageId = paramPack(); + + entry->SetEntryL(newMessageId); + + CMsvStore* store = entry->EditStoreL(); + CleanupStack::PushL(store); + CImHeader* emailEntry = CImHeader::NewLC(); + emailEntry->RestoreL(*store); + emailEntry->SetFromL((TDesC8&)aFrom); + emailEntry->SetSubjectL((TDesC&)aDescription); + emailEntry->ToRecipients().AppendL(KTo); + + // Paragraph format layer for the rich text object + CParaFormatLayer* paraFormatLayer = CParaFormatLayer::NewL(); + CleanupStack::PushL(paraFormatLayer); + // Character format layer for the rich text object + CCharFormatLayer* charFormatLayer = CCharFormatLayer::NewL(); + CleanupStack::PushL(charFormatLayer); + + CRichText* bodyText = CRichText::NewL(paraFormatLayer, charFormatLayer, CEditableText::EFlatStorage, 256); + CleanupStack::PushL(bodyText); + + // Insert the contents of a buffer into the document at specified position + bodyText->InsertL(0, KTxt1); + store->StoreBodyTextL(*bodyText); + emailEntry->StoreL(*store); + // Store the changes permanently + store->CommitL(); + + CleanupStack::PopAndDestroy(8,entry); // bodyText,charFormatLayer,paraFormatLayer,emailEntry,store, emailOperationg,waiter,entry + + return entry->EntryId(); +} + +#else + class OsNative { + + }; +#endif + + + + +//Q_DECLARE_METATYPE(QSystemInfo::Feature); + +class tst_messaging : public QObject +{ + Q_OBJECT + +public: + enum platform { + QMessaging = 0, + Native = 1 + }; + + enum bases { + Accounts = 0, + AccountsImap, + AccountsPop, + AccountsSmtp, + Folders, + FoldersEmail, + FoldersSMS, + FoldersMMS, + Messages, + MessagesAlt, + + }; + + enum filter { + Id = 0, + Type, + Sender, + Recipients, + Subject, + TimeStamp, + Status, + Priority, + Size, + AllId, + AllSender + }; + + enum types { + Sms = 0, + Mms, + Email + }; + + +private slots: + void initTestCase(); + void cleanupTestCase(); + + void tst_createTime_data(); + void tst_createTime(); + + void tst_counts_data(); + void tst_counts(); + + void tst_query_data(); + void tst_query(); + + void tst_fetch_data(); + void tst_fetch(); + + void tst_fetchAll_data(); + void tst_fetchAll(); + + void tst_fetchFilter_data(); + void tst_fetchFilter(); + + void tst_addMessage_data(); + void tst_addMessage(); + + void tst_removeMessage_data(); + void tst_removeMessage(); + + void tst_removeAllMessage_data(); + void tst_removeAllMessage(); + +private: + QMessage *createMessage(); + QMessage *messageTemplate(); + QMessageId addMessage(QMessage *); + + void clearMessages(); + int countMessages(); + + QMessageManager *m_mgr; + + QMessageIdList msg_list; + + QMessageAccount m_act; + //QMessageFolder m_fol; + + + OsNative *m_native; +}; + +Q_DECLARE_METATYPE(tst_messaging::platform); +Q_DECLARE_METATYPE(tst_messaging::bases); +Q_DECLARE_METATYPE(tst_messaging::filter); +Q_DECLARE_METATYPE(tst_messaging::types); + +void tst_messaging::initTestCase() +{ + +#if defined(Q_WS_MAEMO_6) + QFAIL("Maemo 6 not supported by tst_messaging"); +#elif defined(Q_WS_MAEMO_5) + QFAIL("Maemo 5 does not support tst_messageing"); +#elif defined(Q_OS_SYMBIAN) + +#else + QFAIL("Platform not supported"); +#endif + + m_mgr = new QMessageManager(); + + QMessageAccountIdList list; + list = m_mgr->queryAccounts(); + while(!list.empty()) { + QMessageAccount act = m_mgr->account(list.takeFirst()); + qDebug() << "Account: " << act.name(); +#if defined(Q_OS_SYMBIAN) + if(act.name() == "Personal"){ + m_act = act; + break; + } +#endif + } + +// QMessageFolderIdList flist = m_mgr->queryFolders(); +// while(!flist.empty()) { +// QMessageFolder fol = m_mgr->folder(flist.takeFirst()); +// qDebug() << "Folder: " << fol.name(); +//#if defined(Q_OS_SYMBIAN) +// if(fol.name() == "Inbox"){ +// m_fol = fol; +// break; +// } +//#endif +// } + +#if defined(Q_OS_SYMBIAN) + // define/init native features we need native + m_native = new OsNative; + m_native->iSession = CMsvSession::OpenSyncL(*m_native); + m_native->iMtmRegistry = CClientMtmRegistry::NewL(*m_native->iSession); + m_native->iSmsMtm = STATIC_CAST(CSmsClientMtm*, m_native->iMtmRegistry->NewMtmL(KUidMsgTypeSMS)); + m_native->iImap4Mtm = STATIC_CAST(CImap4ClientMtm*, m_native->iMtmRegistry->NewMtmL(KUidMsgTypeIMAP4)); + m_native->iMmsMtm = STATIC_CAST(CMmsClientMtm*, m_native->iMtmRegistry->NewMtmL(KUidMsgTypeMultimedia)); + +#endif + + for(int i = 0; i < 20; i++) + createMessage(); + +} + +void tst_messaging::cleanupTestCase() +{ + +#if defined(Q_OS_SYMBIAN) + delete m_native->iMmsMtm; + delete m_native->iImap4Mtm; + delete m_native->iSmsMtm; + delete m_native->iMtmRegistry; + delete m_native->iSession; + delete m_native; +#endif + + clearMessages(); + delete m_mgr; + + +} + + +void tst_messaging::tst_createTime_data() +{ + QTest::addColumn("platform"); + + QTest::newRow("Qt-Create") << tst_messaging::QMessaging; + QTest::newRow("Native-Create") << tst_messaging::Native; +} + + +void tst_messaging::tst_createTime() +{ + QFETCH(tst_messaging::platform, platform); + + //qDebug() << "Platform: " << platform; + + if(platform == tst_messaging::QMessaging){ + QMessageManager *mgr = 0x0; + + QBENCHMARK { + mgr = new QMessageManager(); + } + + delete mgr; + + } + else if(platform == tst_messaging::Native){ +#ifdef Q_OS_SYMBIAN + + __UHEAP_MARK; + + if(m_native){ + delete m_native->iMmsMtm; + delete m_native->iImap4Mtm; + delete m_native->iSmsMtm; + delete m_native->iMtmRegistry; + delete m_native->iSession; + delete m_native; + } + + QBENCHMARK { + // define/init native features we need native + m_native = new OsNative; + m_native->iSession = CMsvSession::OpenSyncL(*m_native); + m_native->iMtmRegistry = CClientMtmRegistry::NewL(*m_native->iSession); + m_native->iSmsMtm = STATIC_CAST(CSmsClientMtm*, m_native->iMtmRegistry->NewMtmL(KUidMsgTypeSMS)); + m_native->iImap4Mtm = STATIC_CAST(CImap4ClientMtm*, m_native->iMtmRegistry->NewMtmL(KUidMsgTypeIMAP4)); + m_native->iMmsMtm = STATIC_CAST(CMmsClientMtm*, m_native->iMtmRegistry->NewMtmL(KUidMsgTypeMultimedia)); + } + + __UHEAP_MARKEND; +#endif + } + +} + +void tst_messaging::tst_counts_data() +{ + QTest::addColumn("platform"); + QTest::addColumn("base"); + + QTest::newRow("Qt-Accounts") << tst_messaging::QMessaging << tst_messaging::Accounts; +// QTest::newRow("Native-Accounts") << tst_messaging::Native << tst_messaging::Accounts; + QTest::newRow("Qt-Folders") << tst_messaging::QMessaging << tst_messaging::Folders; + QTest::newRow("Native-Folders") << tst_messaging::Native << tst_messaging::Folders; + QTest::newRow("Qt-Messages") << tst_messaging::QMessaging << tst_messaging::Messages; + QTest::newRow("Qt-MessagesAlt") << tst_messaging::QMessaging << tst_messaging::MessagesAlt; + QTest::newRow("Native-Messages") << tst_messaging::Native << tst_messaging::Messages; + +} + +void tst_messaging::tst_counts() +{ + QFETCH(tst_messaging::platform, platform); + QFETCH(tst_messaging::bases, base); + + if(platform == tst_messaging::QMessaging){ + int cnt; + Q_UNUSED(cnt); + if(base == tst_messaging::Accounts){ + QBENCHMARK { + cnt = m_mgr->countAccounts(); + } + } + else if(base == tst_messaging::Folders){ + QBENCHMARK { + cnt = m_mgr->countFolders(); + } + } + else if(base == tst_messaging::Messages){ + QBENCHMARK { + cnt = m_mgr->countMessages(); + } + } + else if(base == tst_messaging::MessagesAlt){ + QMessageIdList list; + QBENCHMARK { + list = m_mgr->queryMessages(); + cnt = list.count(); + } + } + //qDebug() << "Got cnt: " << cnt; + } + else if(platform == tst_messaging::Native){ +#ifdef Q_OS_SYMBIAN + QBENCHMARK { + // Access the Inbox + TMsvSelectionOrdering sort; + CMsvEntry* inboxContext = CMsvEntry::NewL(*m_native->iSession, KMsvGlobalInBoxIndexEntryId, sort); + CleanupStack::PushL(inboxContext); + + // Get all entries in the Inbox + CMsvEntrySelection* entries = inboxContext->ChildrenL(); + CleanupStack::PushL(entries); + + + TInt messages = entries->Count(); + + CleanupStack::PopAndDestroy(2, inboxContext); + } +#endif + } + +} + +void tst_messaging::tst_query_data() +{ + QTest::addColumn("platform"); + QTest::addColumn("base"); + + QTest::newRow("Qt-Accounts") << tst_messaging::QMessaging << tst_messaging::Accounts; +// QTest::newRow("Qt-Folders") << tst_messaging::QMessaging << tst_messaging::Folders; + QTest::newRow("Qt-Messages") << tst_messaging::QMessaging << tst_messaging::Messages; + + QTest::newRow("Native-Accounts") << tst_messaging::Native << tst_messaging::Accounts; + QTest::newRow("Native-Accounts-Imap") << tst_messaging::Native << tst_messaging::AccountsImap; + QTest::newRow("Native-Accounts-Pop") << tst_messaging::Native << tst_messaging::AccountsPop; + QTest::newRow("Native-Accounts-Smtp") << tst_messaging::Native << tst_messaging::AccountsSmtp; + QTest::newRow("Native-Folders") << tst_messaging::Native << tst_messaging::Folders; +// QTest::newRow("Native-Folders") << tst_messaging::Native << tst_messaging::FoldersEmail; +// QTest::newRow("Native-Folders") << tst_messaging::Native << tst_messaging::FoldersSMS; +// QTest::newRow("Native-Folders") << tst_messaging::Native << tst_messaging::FoldersMMS; + QTest::newRow("Native-Messages") << tst_messaging::Native << tst_messaging::Messages; + +} + +void tst_messaging::tst_query() +{ + QFETCH(tst_messaging::platform, platform); + QFETCH(tst_messaging::bases, base); + + if(platform == tst_messaging::QMessaging){ +// int cnt; + if(base == tst_messaging::Accounts){ + QMessageAccountIdList list; + QBENCHMARK { + list = m_mgr->queryAccounts(); + } + } + else if(base == tst_messaging::Folders){ + QMessageFolderIdList list; + QBENCHMARK { + list = m_mgr->queryFolders(); + } +// XXX The library returns inbox/drafts/sent for all default accounts and greatly exagerates the number of folders +// qDebug() << "Number of folders: " << list.count(); +// while(!list.empty()){ +// QMessageFolder f(list.takeFirst()); +// qDebug() << "Folder: " << f.name(); +// } + } + else if(base == tst_messaging::Messages){ + QMessageIdList list; + QBENCHMARK { + list = m_mgr->queryMessages(); + } + } + //qDebug() << "Got cnt: " << cnt; + } + else if(platform == tst_messaging::Native){ +#ifdef Q_OS_SYMBIAN + if(base == tst_messaging::Accounts){ + CEmailAccounts *email = CEmailAccounts::NewLC(); + RArray aPop; + RArray aImap; + RArray aSmtp; + + QBENCHMARK { + email->GetPopAccountsL(aPop); + email->GetImapAccountsL(aImap); + email->GetSmtpAccountsL(aSmtp); + } + CleanupStack::PopAndDestroy(email); + } + else if(base == tst_messaging::AccountsImap) { + CEmailAccounts *email = CEmailAccounts::NewLC(); + RArray aImap; + + QBENCHMARK { + email->GetImapAccountsL(aImap); + } + CleanupStack::PopAndDestroy(email); + + } + else if(base == tst_messaging::AccountsPop) { + CEmailAccounts *email = CEmailAccounts::NewLC(); + RArray aPop; + + QBENCHMARK { + email->GetPopAccountsL(aPop); + } + CleanupStack::PopAndDestroy(email); + + } + else if(base == tst_messaging::AccountsSmtp) { + CEmailAccounts *email = CEmailAccounts::NewLC(); + RArray aSmtp; + + QBENCHMARK { + email->GetSmtpAccountsL(aSmtp); + } + CleanupStack::PopAndDestroy(email); + + } + else if(base == tst_messaging::Folders){ + + __UHEAP_MARK; + + CEmailAccounts *email = CEmailAccounts::NewLC(); + RArray aPop; + RArray aImap; + RArray aSmtp; + + email->GetPopAccountsL(aPop); + email->GetImapAccountsL(aImap); + email->GetSmtpAccountsL(aSmtp); + + + RArray aService; + +// qDebug() << "Pop Service: " << aPop.Count(); +// qDebug() << "Imap Service: " << aImap.Count(); +// qDebug() << "Smtp Service: " << aSmtp.Count(); + + for(int i = 0; i < aPop.Count(); i++){ + aService.Append(aPop[i].iPopService); + } + for(int i = 0; i < aImap.Count(); i++){ + aService.Append(aImap[i].iImapService); + } + for(int i = 0; i < aSmtp.Count(); i++){ + aService.Append(aSmtp[i].iSmtpService); + } + + + if(aService.Count() == 0) + QFAIL("No folders avaailable to query"); + +// qDebug() << "Total services: " << aService.Count(); + + int total; + + + CMsvEntry* pEntry = NULL; + TRAPD(err, pEntry = m_native->iSession->GetEntryL(aService[0])); + if(err) + QFAIL("Can't create entry object"); + CleanupStack::PushL(pEntry); + + + QBENCHMARK { + total = 0; + for(int i = 0; i < aService.Count(); i++){ + + TMsvId msvid = aService[i]; + + TRAP(err, pEntry->SetEntryL(msvid)); // faster to call set, saves .2ms out of 2.7ms. + if(err){ + qDebug() << "Failed: " << err; + continue; + } + + + const TMsvEntry& entry = pEntry->Entry(); + + if (entry.iMtm == KUidMsgTypeSMS || entry.iMtm == KUidMsgTypeMultimedia || entry.iMtm == KUidMsgTypeSMTP) { + total += 4; +#define KDocumentsEntryIdValue 0x1008 + pEntry->SetEntryL(KDocumentsEntryIdValue); + } + + if (entry.iMtm == KUidMsgTypePOP3) { + total+=1; + continue; + } + + CMsvEntryFilter* pFilter = CMsvEntryFilter::NewLC(); + pFilter->SetService(msvid); + pFilter->SetType(KUidMsvFolderEntry); + + CMsvEntrySelection* pSelection = new(ELeave) CMsvEntrySelection; + CleanupStack::PushL(pSelection); + + m_native->iSession->GetChildIdsL(pEntry->Entry().Id(), *pFilter, *pSelection); + if (pSelection->Count() > 0) { + for(TInt i = 0; i < pSelection->Count(); i++) { +// ids.append(createQMessageFolderId(folderServiceEntryId, pSelection->At(i))); +// qDebug() << "serviceId: " << msvid << " Got one: " << "selected: " << pSelection->At(i); + total++; + m_native->iFolders.Append(pSelection->At(i)); + } + } + else { +// QString details = QString::fromUtf16(entry.iDetails.Ptr(),entry.iDetails.Length()); +// QString desc = QString::fromUtf16(entry.iDescription.Ptr(),entry.iDescription.Length()); +// qDebug() << "Nothing returned for: " << msvid << "entry: " << details << " - " << desc; + } + CleanupStack::PopAndDestroy(pSelection); + CleanupStack::PopAndDestroy(pFilter); + + } + } + +// qDebug() << "Number of Folders: " << total; + + aPop.Close(); + aImap.Close(); + aSmtp.Close(); + aService.Close(); + + CleanupStack::PopAndDestroy(pEntry); + CleanupStack::PopAndDestroy(email); + + __UHEAP_MARKEND; + + } + else if(base == tst_messaging::Messages) { + + RArray aFolders; + + aFolders.Append(KMsvGlobalInBoxIndexEntryId); + aFolders.Append(KMsvGlobalOutBoxIndexEntryId); + aFolders.Append(KMsvDraftEntryId); + aFolders.Append(KMsvSentEntryId); + for(int i = 0; i < m_native->iFolders.Count(); i++) + aFolders.Append(m_native->iFolders[i]); + + // Access the Inbox + QBENCHMARK { + + for(int i = 0; i < aFolders.Count(); i++){ + TMsvSelectionOrdering sort; + CMsvEntry* inboxContext = CMsvEntry::NewL(*m_native->iSession, aFolders[i], sort); + CleanupStack::PushL(inboxContext); + + // Get all entries in the Inbox + CMsvEntrySelection* entries = inboxContext->ChildrenL(); + CleanupStack::PushL(entries); + + TInt messages = entries->Count(); + for (TInt i = 0; i < messages; i++) { + TMsvId entryID = entries->At(i); + m_native->iSmsMtm->SwitchCurrentEntryL(entryID); + + CMsvEntry* entry; + + entry = m_native->iSession->GetEntryL((*entries)[i]); + + delete entry; + + } + + CleanupStack::PopAndDestroy(2, inboxContext); + } + } + } +#endif + } + +} + +void tst_messaging::tst_fetch_data() +{ + //qDebug() << "Start fetch_data"; + QTest::addColumn("platform"); + QTest::addColumn("base"); + + QTest::newRow("Qt-Accounts") << tst_messaging::QMessaging << tst_messaging::Accounts; + QTest::newRow("Native-Accounts") << tst_messaging::Native << tst_messaging::Accounts; + QTest::newRow("Qt-Folders") << tst_messaging::QMessaging << tst_messaging::Folders; + QTest::newRow("Native-Folders") << tst_messaging::Native << tst_messaging::Folders; + QTest::newRow("Qt-Messages") << tst_messaging::QMessaging << tst_messaging::Messages; + QTest::newRow("Native-Messages") << tst_messaging::Native << tst_messaging::Messages; + //qDebug() << "End fetch_data"; +} + +void tst_messaging::tst_fetch() +{ + + QFETCH(tst_messaging::platform, platform); + QFETCH(tst_messaging::bases, base); + + //qDebug() << "Start fetch" << platform << " base: " << base; + if(platform == tst_messaging::QMessaging){ + int cnt; + Q_UNUSED(cnt); + if(base == tst_messaging::Accounts){ + QMessageAccountIdList list; + QMessageAccount acc; + list = m_mgr->queryAccounts(); + + if(!list.empty()){ + QBENCHMARK_ONCE { // XXX Maybe a bug here, if you call account a lot system crashes + acc = m_mgr->account(list.takeFirst()); + } + } + if(m_mgr->error()){ + QFAIL(QString("Failed fetching accounts: %1").arg(m_mgr->error()).toAscii()); + } + } + else if(base == tst_messaging::Folders){ + QMessageFolderIdList list; + QMessageFolder fol; + list = m_mgr->queryFolders(); + + if(!list.empty()) { + QBENCHMARK { + fol = m_mgr->folder(list.takeFirst()); + } + } + } + else if(base == tst_messaging::Messages){ + QMessageIdList list; + QMessage msg; + list = m_mgr->queryMessages(); + + if(!list.empty()){ + QBENCHMARK { + msg = m_mgr->message(list.takeFirst()); + } + } + } + //qDebug() << "Got cnt: " << cnt; + } + else if(platform == tst_messaging::Native){ +#ifdef Q_OS_SYMBIAN + if(base == tst_messaging::Messages){ + __UHEAP_MARK; + // Access the Inbox + QBENCHMARK { + + TMsvSelectionOrdering sort; + sort.SetSorting(EMsvSortByDateReverse); + sort.SetShowInvisibleEntries(ETrue); + + CMsvEntry* inboxContext = CMsvEntry::NewL(*m_native->iSession, + KMsvGlobalInBoxIndexEntryId, sort); + CleanupStack::PushL(inboxContext); + + // Get all entries in the Inbox + CMsvEntrySelection* entries = inboxContext->ChildrenL(); + CleanupStack::PushL(entries); + + TMsvId entryID = entries->At(0); + const TUid mtm = inboxContext->ChildDataL(entryID).iMtm; + + if (mtm == KUidMsgTypeSMS) { + + m_native->iSmsMtm->SwitchCurrentEntryL(entryID); + TRAPD(err, m_native->iSmsMtm->LoadMessageL()); + if(err){ + qDebug() << "LoadMessageL failed: " << err; + continue; + } + CSmsHeader& header = m_native->iSmsMtm->SmsHeader(); + } + else if (mtm == KUidMsgTypeMultimedia) { + + // TODO None of these have a data store...skip until it can be fixed + QFAIL("MMS message handeling is broken, change setup to use non-MMS type"); + } + else if (mtm == KUidMsgTypeIMAP4) { + m_native->iImap4Mtm->SwitchCurrentEntryL(entryID); + m_native->iImap4Mtm->LoadMessageL(); + } + else { + qDebug() << "Got Type: " << mtm.iUid; + } + CleanupStack::PopAndDestroy(2, inboxContext); + } + __UHEAP_MARKEND; + } + +#endif + } +//qDebug() <<"End fetch"; +} + +void tst_messaging::tst_fetchAll_data() +{ + QTest::addColumn("platform"); + QTest::addColumn("base"); + + QTest::newRow("Qt-Accounts") << tst_messaging::QMessaging << tst_messaging::Accounts; + QTest::newRow("Native-Accounts") << tst_messaging::Native << tst_messaging::Accounts; +// QTest::newRow("Qt-Folders") << tst_messaging::QMessaging << tst_messaging::Folders; + QTest::newRow("Native-Folders") << tst_messaging::Native << tst_messaging::Folders; + QTest::newRow("Qt-Messages") << tst_messaging::QMessaging << tst_messaging::Messages; + QTest::newRow("Native-Messages") << tst_messaging::Native << tst_messaging::Messages; + +} + + +void tst_messaging::tst_fetchAll() +{ + QFETCH(tst_messaging::platform, platform); + QFETCH(tst_messaging::bases, base); + + if(platform == tst_messaging::QMessaging){ + if(base == tst_messaging::Accounts){ + QMessageAccountIdList list; + QMessageAccount acc; + list = m_mgr->queryAccounts(); + + QBENCHMARK { + while(!list.empty()) + acc = m_mgr->account(list.takeFirst()); + } + } + else if(base == tst_messaging::Folders){ + QMessageFolderIdList list; + QMessageFolder fol; + list = m_mgr->queryFolders(); + + QBENCHMARK { + while(!list.empty()) + fol = m_mgr->folder(list.takeFirst()); + } + } + else if(base == tst_messaging::Messages){ + QMessageIdList list; + QMessage msg; + list = m_mgr->queryMessages(); + qDebug() << "Total fetched messages: " << list.count(); + QBENCHMARK { + while(!list.empty()) + msg = m_mgr->message(list.takeFirst()); + } +// TODO this selects messages in built "My Folders" which the test for symbian native doesn't. Fix me. +// list = m_mgr->queryMessages(); +// while(!list.empty()) { +// msg = m_mgr->message(list.takeFirst()); +// qDebug() << "From: " << msg.from().recipient() << " subject: " << msg.subject(); +// } + + } + //qDebug() << "Got cnt: " << cnt; + } + else if(platform == tst_messaging::Native){ +#ifdef Q_OS_SYMBIAN + if(base == tst_messaging::Messages){ + + __UHEAP_MARK; + + RArray aFolders; + int total = 0; + int skipped = 0; + + m_native->getFolders(aFolders); + + // Access the Inbox + QBENCHMARK { + + for(int i = 0; i < aFolders.Count(); i++){ + TMsvSelectionOrdering sort; + //sort.SetSorting(EMsvSortByDateReverse); + sort.SetSorting(EMsvSortByNone); + sort.SetShowInvisibleEntries(ETrue); + + CMsvEntry* inboxContext = CMsvEntry::NewL(*m_native->iSession, + aFolders[i], sort); + CleanupStack::PushL(inboxContext); + + // Get all entries in the Inbox + CMsvEntrySelection* entries = inboxContext->ChildrenL(); + CleanupStack::PushL(entries); + + for (TInt i = 0; i < entries->Count(); i++) { + + TMsvId entryID = entries->At(i); + + const TUid mtm = inboxContext->ChildDataL(entryID).iMtm; + +// qDebug() << "Entry: " << i << " mtm: " << hex << mtm.iUid; + + if (mtm == KUidMsgTypeSMS) { + + TRAP_IGNORE(m_native->iSmsMtm->SwitchCurrentEntryL(entryID)); + TRAPD(err, m_native->iSmsMtm->LoadMessageL()); + if(err){ + qDebug() << "LoadMessageL failed: " << err; + continue; + } + //CSmsHeader& header = m_native->iSmsMtm->SmsHeader(); + total++; + } + else if (mtm == KUidMsgTypeMultimedia) { + + // TODO None of these have a data store...skip until it can be fixed + +// CMsvEntry* pEntry = NULL; +// pEntry = m_native->iSession->GetEntryL(entryID); +// const TMsvEntry& entry = pEntry->Entry(); +// +// QString details = QString::fromUtf16(entry.iDetails.Ptr(),entry.iDetails.Length()); +// QString desc = QString::fromUtf16(entry.iDescription.Ptr(),entry.iDescription.Length()); +// qDebug() << "Nothing returned for entry: " << entryID << "/" << entry.Id() << " " << details << " - " << desc << " Has store: " << pEntry->HasStoreL(); +//// m_native->iImap4Mtm->SwitchCurrentEntryL(entry.Id()); + + +// m_native->iMmsMtm->SwitchCurrentEntryL(entryID); +// TRAPD(err, m_native->iMmsMtm->LoadMessageL()); +// if(err){ +// qDebug() << "LoadMessageL failed: " << err << "entryId/mtm" << entryID << "/" << mtm.iUid; +// continue; +// } + skipped++; + } + else if (mtm == KUidMsgTypeIMAP4) { + CMsvEntry* pEntry = NULL; + pEntry = m_native->iSession->GetEntryL(entryID); + + CImEmailMessage *pMsg = CImEmailMessage::NewLC(*pEntry); + + CMsvStore *store; + TRAPD(err, store = pEntry->ReadStoreL()); + if(err){ +// TPtrC sub; +// m_native->iImap4Mtm->SwitchCurrentEntryL(entryID); +// m_native->iImap4Mtm->LoadMessageL(); +// TRAP(err,sub.Set(m_native->iImap4Mtm->SubjectL())); +// if(err){ +// qDebug() << "No subject either: " << err; +// } +// qDebug() << "Can't read store: " << err << hex << entryID << " Details: " << QString::fromUtf16(sub.Ptr(), sub.Length()); + skipped++; + CleanupStack::PopAndDestroy(pMsg); + continue; + } + CleanupStack::PushL(store); + + CImHeader* header = CImHeader::NewLC(); + header->RestoreL(*store); + + //subject buffer contains the "subject" of the mail. + TBuf<50> subject = header->Subject(); + + //header buffer contains the "header" of the mail. + TBuf<50> from = header->From(); + +// TODO: Find out why we don't select messages from the system My Folder store. +// QString qsubject = QString::fromUtf16(subject.Ptr(),subject.Length()); +// QString qfrom = QString::fromUtf16(from.Ptr(),from.Length()); +// qDebug() << "From: " << qfrom << " subject: " << qsubject; + + CleanupStack::PopAndDestroy(header); + CleanupStack::PopAndDestroy(store); + CleanupStack::PopAndDestroy(pMsg); + + total++; + } + else { +// qDebug() << "Got Type: " << mtm.iUid; + } + } + CleanupStack::PopAndDestroy(2, inboxContext); + } + } + qDebug() << "Total messages fetched: " << total << " skipped: " << skipped; + __UHEAP_MARKEND; + } +#endif + } + +} + + + +void tst_messaging::tst_fetchFilter_data() +{ + QTest::addColumn("platform"); + QTest::addColumn("filter"); + + QTest::newRow("Qt-Id") << tst_messaging::QMessaging << tst_messaging::Id; + QTest::newRow("Qt-Type") << tst_messaging::QMessaging << tst_messaging::Type; + QTest::newRow("Qt-Sender") << tst_messaging::QMessaging << tst_messaging::Sender; + QTest::newRow("Qt-Subject") << tst_messaging::QMessaging << tst_messaging::Subject; + QTest::newRow("Qt-TimeStamp") << tst_messaging::QMessaging << tst_messaging::TimeStamp; + QTest::newRow("Qt-Status") << tst_messaging::QMessaging << tst_messaging::Status; + QTest::newRow("Qt-Priority") << tst_messaging::QMessaging << tst_messaging::Priority; + QTest::newRow("Qt-Size") << tst_messaging::QMessaging << tst_messaging::Size; + QTest::newRow("Qt-AllId") << tst_messaging::QMessaging << tst_messaging::AllId; + QTest::newRow("Qt-AllSender") << tst_messaging::QMessaging << tst_messaging::AllSender; + + QTest::newRow("Native-Id") << tst_messaging::Native << tst_messaging::Id; + QTest::newRow("Native-Type") << tst_messaging::Native << tst_messaging::Type; + QTest::newRow("Native-Sender") << tst_messaging::Native << tst_messaging::Sender; + QTest::newRow("Native-Subject") << tst_messaging::Native << tst_messaging::Subject; + QTest::newRow("Native-TimeStamp") << tst_messaging::Native << tst_messaging::TimeStamp; + QTest::newRow("Native-Status") << tst_messaging::Native << tst_messaging::Status; + QTest::newRow("Native-Priority") << tst_messaging::Native << tst_messaging::Priority; + QTest::newRow("Native-Size") << tst_messaging::Native << tst_messaging::Size; + QTest::newRow("Native-AllId") << tst_messaging::Native << tst_messaging::AllId; + QTest::newRow("Native-AllSender") << tst_messaging::Native << tst_messaging::AllSender; + + // QTest::newRow("Native-Size") << tst_messaging::Native << tst_messaging::Size; +} + +void tst_messaging::tst_fetchFilter() +{ + QFETCH(tst_messaging::platform, platform); + QFETCH(tst_messaging::filter, filter); + + if(platform == tst_messaging::QMessaging){ + + QMessageId msgId; + QMessageFilter mf; + QMessageId id; + // let's assume we want equal tests for all the filters. + // So let's try and filter out 1 message from each filter request. + if(filter == tst_messaging::Id){ + mf = QMessageFilter::byId(id); + msg_list.push_back(id); + } + else if(filter == tst_messaging::Type){ + QMessage *msg = messageTemplate(); + // XXX this segfault + //msg->setType(QMessage::Sms); + + msgId = addMessage(msg); + mf = QMessageFilter::byType(QMessage::Sms); + + } + else if(filter == tst_messaging::Sender){ + QString email = "singletst@boo.com"; + QMessage *msg = messageTemplate(); + QMessageAddress addr; + addr.setAddressee(email); + msg->setFrom(addr); + msgId = addMessage(msg); + + id = msg_list.takeFirst(); + mf = QMessageFilter::bySender(email); + } + else if(filter == tst_messaging::TimeStamp){ + QMessage *msg = messageTemplate(); + QDateTime dt = QDateTime::currentDateTime(); + dt.addDays(1); + msg->setReceivedDate(dt); + msg->setDate(dt); + msgId = addMessage(msg); + + mf = QMessageFilter::byTimeStamp(dt, QMessageDataComparator::Equal); + } + else if(filter == tst_messaging::Status){ + QMessage *msg = messageTemplate(); + msg->setStatus(QMessage::Incoming); + msgId = addMessage(msg); + + mf = QMessageFilter::byStatus(QMessage::Incoming); + } + else if(filter == tst_messaging::Subject){ + QMessage *msg = messageTemplate(); + QString subject = "skdflkdsjfl sdfklke werewr"; + msg->setSubject(subject); + msgId = addMessage(msg); + + mf = QMessageFilter::bySubject(subject); + } + else if(filter == tst_messaging::Priority){ + QMessage *msg = messageTemplate(); + msg->setPriority(QMessage::LowPriority); + msgId = addMessage(msg); + + mf = QMessageFilter::byPriority(QMessage::LowPriority); + } + else if(filter == tst_messaging::Size){ + QString body; + body.fill('x', 5120); + QMessage *msg = messageTemplate(); + msg->setBody(body); + msgId = addMessage(msg); + + mf = QMessageFilter::bySize(5000, QMessageDataComparator::GreaterThan); + } + else if(filter == tst_messaging::AllId){ + mf = QMessageFilter::byId(msg_list); + } + else if(filter == tst_messaging::AllSender){ + id = msg_list.takeFirst(); + msg_list.push_back(id); + QMessage msg = m_mgr->message(id); + + mf = QMessageFilter::bySender(msg.from().addressee()); + } + if(!mf.isSupported()){ + QFAIL("QMessage filter returned unsupported"); + } + else if(mf.isEmpty()){ + QFAIL("Empty filter provided"); + } + else { + QMessageIdList list; + QMessageSortOrder sortOrder(QMessageSortOrder::byReceptionTimeStamp(Qt::DescendingOrder)); + + QBENCHMARK { + list = m_mgr->queryMessages(mf, sortOrder, 100); + } + + if(list.count() != 1 && filter != tst_messaging::AllId && filter != tst_messaging::AllSender) + qDebug() << "Wanted 1 message got: " << list.count(); + } + + if(msgId.isValid()){ + m_mgr->removeMessage(msgId); + } + } + else if(platform == tst_messaging::Native){ +#ifdef Q_OS_SYMBIAN + if(filter == tst_messaging::Id){ + // Access the Inbox + QBENCHMARK { + TMsvSelectionOrdering sort; + //sort.SetSorting(EMsvSortByDateReverse); + sort.SetSorting(EMsvSortById); + sort.SetShowInvisibleEntries(ETrue); + + CMsvEntry* inboxContext = CMsvEntry::NewL(*m_native->iSession, + KMsvGlobalInBoxIndexEntryId, sort); + CleanupStack::PushL(inboxContext); + + // Get all entries in the Inbox + CMsvEntrySelection* entries = inboxContext->ChildrenL(); + CleanupStack::PushL(entries); + + TMsvId entryID = entries->At(0); + + const TUid mtm = inboxContext->ChildDataL(entryID).iMtm; + + CleanupStack::PopAndDestroy(2, inboxContext); + } + } + else if(filter == tst_messaging::Type){ // look for SMS messages + // Access the Inbox + RArray msvids; + RArray aFolders; + + m_native->getFolders(aFolders); + + //qDebug() << "Total folders: " << aFolders.Count(); + + QBENCHMARK { + msvids.Close(); // zero it out + for(int i = 0; i < aFolders.Count(); i++){ + + TMsvSelectionOrdering sort; + //sort.SetSorting(EMsvSortByDateReverse); + sort.SetSorting(EMsvSortByNone); + sort.SetShowInvisibleEntries(ETrue); + + CMsvEntry* inboxContext = CMsvEntry::NewL(*m_native->iSession, + aFolders[i], sort); + CleanupStack::PushL(inboxContext); + + // Get all entries in the Inbox + CMsvEntrySelection* entries = inboxContext->ChildrenL(); + CleanupStack::PushL(entries); + + for (TInt j = 0; j < entries->Count(); j++) { + TMsvId entryID = entries->At(j); + const TUid mtm = inboxContext->ChildDataL(entryID).iMtm; + + if (mtm == KUidMsgTypeSMS) { + msvids.AppendL(entryID); + } + } + CleanupStack::PopAndDestroy(2, inboxContext); + } + } + msvids.Close(); + } + else if(filter == tst_messaging::Sender || + filter == tst_messaging::Subject || + filter == tst_messaging::TimeStamp){ + // Access the Inbox + + TMsvPartList part = KMsvMessagePartDescription; + TPtrC text = _L("tst"); + + if(filter == tst_messaging::Sender){ + part = KMsvMessagePartOriginator; + text.Set(_L("Millicent")); + } + else if(filter == tst_messaging::Subject){ + part = KMsvMessagePartDescription; + text.Set(_L("Free Bottle")); + } + else if(filter == tst_messaging::TimeStamp){ + part = KMsvMessagePartDate; + text.Set(_L("Sep")); + } + + CMsvOperationActiveSchedulerWait* waiter=CMsvOperationActiveSchedulerWait::NewLC(); + + CMsvFindOperation *finder = CMsvFindOperation::FindInChildrenL(*m_native->iSession, text, KMsvRootIndexEntryId, part, waiter->iStatus); + CleanupStack::PushL(finder); + + QBENCHMARK { + waiter->Start(); + } + if(finder->GetFindResult().Count() != 1) + qDebug() << "Wanted 1 message, got: " << finder->GetFindResult().Count(); + +// qDebug() << "Status: " << finder->GetFindResult().Count(); +// for(int i = 0; i < finder->GetFindResult().Count(); i++){ +// CMsvEntry *pEntry; +// TRAPD(err, pEntry = m_native->iSession->GetEntryL(finder->GetFindResult().At(i).iId)); +// if(err){ +// qDebug() << "Failed to fetch: " << i << " - " << finder->GetFindResult().At(i).iId; +// continue; +// } +// CleanupStack::PushL(pEntry); +// TMsvEntry entry = pEntry->Entry(); +// QString details = QString::fromUtf16(entry.iDetails.Ptr(),entry.iDetails.Length()); +// QString desc = QString::fromUtf16(entry.iDescription.Ptr(),entry.iDescription.Length()); +// qDebug() << "Got entry: " << details << " - " << desc; +// CleanupStack::PopAndDestroy(1); // +// } + + CleanupStack::PopAndDestroy(2, waiter); + + } + else if(filter == tst_messaging::Priority) { + RArray msvids; + + CMsvOperationActiveSchedulerWait* waiter=CMsvOperationActiveSchedulerWait::NewLC(); + + TBufC<10> null(_L(" ")); + CMsvFindOperation *finder = CMsvFindOperation::FindInChildrenL(*m_native->iSession, null, KMsvRootIndexEntryId, KMsvMessagePartDescription, waiter->iStatus); + CleanupStack::PushL(finder); + + QBENCHMARK { + waiter->Start(); + + const CMsvFindResultSelection &res = finder->GetFindResult(); + + for(int i = 0; i < res.Count(); i++){ + CMsvEntry *pEntry; + TRAPD(err, pEntry = m_native->iSession->GetEntryL(res.At(i).iId)); + if(err){ + qDebug() << "Failed to fetch: " << i << " - " << res.At(i).iId; + continue; + } + CleanupStack::PushL(pEntry); + TMsvEntry entry = pEntry->Entry(); + + if(entry.Priority() == EMsvLowPriority) + msvids.Append(entry.Id()); + + CleanupStack::PopAndDestroy(1); // + } + } + msvids.Close(); + CleanupStack::PopAndDestroy(2, waiter); + } + else if(filter == tst_messaging::Size){ + RArray msvids; + + CMsvOperationActiveSchedulerWait* waiter=CMsvOperationActiveSchedulerWait::NewLC(); + + TBufC<10> null(_L(" ")); + CMsvFindOperation *finder = CMsvFindOperation::FindInChildrenL(*m_native->iSession, null, KMsvRootIndexEntryId, KMsvMessagePartDescription, waiter->iStatus); + CleanupStack::PushL(finder); + + QBENCHMARK { + waiter->Start(); + + const CMsvFindResultSelection &res = finder->GetFindResult(); + + for(int i = 0; i < res.Count(); i++){ + CMsvEntry *pEntry; + TRAPD(err, pEntry = m_native->iSession->GetEntryL(res.At(i).iId)); + if(err){ + qDebug() << "Failed to fetch: " << i << " - " << res.At(i).iId; + continue; + } + CleanupStack::PushL(pEntry); + TMsvEntry entry = pEntry->Entry(); + + if(entry.iSize == 550) + msvids.Append(entry.Id()); + + CleanupStack::PopAndDestroy(1); // + } + } + msvids.Close(); + CleanupStack::PopAndDestroy(2, waiter); + } + if(filter == tst_messaging::AllId){ + // Access the Inbox + QBENCHMARK { + RArray msvids; + + TMsvSelectionOrdering sort; + //sort.SetSorting(EMsvSortByDateReverse); + sort.SetSorting(EMsvSortById); + sort.SetShowInvisibleEntries(ETrue); + + CMsvEntry* inboxContext = CMsvEntry::NewL(*m_native->iSession, + KMsvGlobalInBoxIndexEntryId, sort); + CleanupStack::PushL(inboxContext); + + // Get all entries in the Inbox + CMsvEntrySelection* entries = inboxContext->ChildrenL(); + CleanupStack::PushL(entries); + + for(int i = 0; i < entries->Count(); i++){ + msvids.Append(entries->At(i)); + } + + msvids.Close(); + + CleanupStack::PopAndDestroy(2, inboxContext); + } + } + else if(filter == tst_messaging::AllSender){ + RArray msvids; + + CMsvOperationActiveSchedulerWait* waiter=CMsvOperationActiveSchedulerWait::NewLC(); + + TBufC<10> null(_L("@")); + CMsvFindOperation *finder = CMsvFindOperation::FindInChildrenL(*m_native->iSession, null, KMsvRootIndexEntryId, KMsvMessagePartOriginator, waiter->iStatus); + CleanupStack::PushL(finder); + + QBENCHMARK { + waiter->Start(); + + const CMsvFindResultSelection &res = finder->GetFindResult(); + TMsvSelectionOrdering order; + + CMsvEntry *pEntry = CMsvEntry::NewL(*m_native->iSession, KMsvRootIndexEntryId, TMsvSelectionOrdering(KMsvNoGrouping, EMsvSortByNone)); + CleanupStack::PushL(pEntry); + + for(int i = 0; i < res.Count(); i++){ + TRAPD(err, pEntry->SetEntryL(res.At(i).iId)); + if(err){ + qDebug() << "Failed to fetch: " << i << " - " << res.At(i).iId; + continue; + } + TMsvEntry entry = pEntry->Entry(); + + msvids.Append(entry.Id()); + + } + + CleanupStack::PopAndDestroy(pEntry); + } + msvids.Close(); + CleanupStack::PopAndDestroy(2, waiter); + } +#endif + } +} + +void tst_messaging::clearMessages() +{ + QMessageId id; + while(!msg_list.empty()) + m_mgr->removeMessage(msg_list.takeFirst()); +} + +QMessage *tst_messaging::messageTemplate() +{ + QMessage *msg = new QMessage; + + msg->setDate(QDateTime::currentDateTime()); + msg->setSubject("test"); + QMessageAddress addr; + addr.setAddressee("abr@foo.com"); + addr.setType(QMessageAddress::Email); + msg->setTo(addr); + addr.setAddressee("from@bar.com"); + addr.setType(QMessageAddress::Email); + msg->setFrom(addr); + +// XXX one or more of these cause problems +// msg->setType(QMessage::Email); +// msg->setStatus(QMessage::Read); + +// msg->setBody("I have a body!"); +// msg->setParentAccountId(m_fol.parentAccountId()); + + return msg; +} + +QMessageId tst_messaging::addMessage(QMessage *msg) +{ + m_mgr->addMessage(msg); + msg_list.append(msg->id()); + + //qDebug() << "id: " << msg->id().toString(); + + return msg->id(); +} + +QMessage *tst_messaging::createMessage() +{ + QMessage *msg = messageTemplate(); + addMessage(msg); + return msg; +} + +int tst_messaging::countMessages() +{ + QMessageIdList list; + list = m_mgr->queryMessages(); + return list.count(); +} + +void tst_messaging::tst_addMessage_data() +{ + QTest::addColumn("platform"); + QTest::addColumn("type"); + + QTest::newRow("Qt-Email") << tst_messaging::QMessaging << tst_messaging::Email; + QTest::newRow("Native-SMS") << tst_messaging::Native << tst_messaging::Sms; + QTest::newRow("Native-Email") << tst_messaging::Native << tst_messaging::Email; + +} + +void tst_messaging::tst_addMessage() +{ + QFETCH(tst_messaging::platform, platform); + QFETCH(tst_messaging::types, type); + + if(platform == tst_messaging::QMessaging){ + QBENCHMARK { + QMessage *msg = createMessage(); + addMessage(msg); + } + } + else if(platform == tst_messaging::Native){ +#ifdef Q_OS_SYMBIAN + if(type == tst_messaging::Sms){ + TMsvId id; + QBENCHMARK { + id = m_native->makeSMS(KMsvDraftEntryIdValue); + } + m_native->iNewMsgs.Append(id); + } + else if(type == tst_messaging::Email){ + TMsvId id; + QBENCHMARK { + m_native->makeIMAP4(KMsvDraftEntryIdValue); + } + m_native->iNewMsgs.Append(id); + } +#else + Q_UNUSED(type); +#endif + } + +} + +void tst_messaging::tst_removeMessage_data() +{ + QTest::addColumn("platform"); + + QTest::newRow("Qt-remove") << tst_messaging::QMessaging; + QTest::newRow("Native-remove") << tst_messaging::Native; +} + +void tst_messaging::tst_removeMessage() +{ + QFETCH(tst_messaging::platform, platform); + + if(platform == tst_messaging::QMessaging){ +#ifdef Q_OS_SYMBIAN + TMsvId id; + id = m_native->makeIMAP4(KMsvDraftEntryIdValue); + QString str; + str.setNum(id); + QMessageId qmid = str; +#else + QMessageId qmid = msg_list.takeFirst(); +#endif + + QBENCHMARK_ONCE { + m_mgr->removeMessage(qmid); + } + } + else if(platform == tst_messaging::Native){ +#ifdef Q_OS_SYMBIAN + TMsvId id; + id = m_native->makeIMAP4(KMsvDraftEntryIdValue); + CMsvEntry *pEntry = CMsvEntry::NewL(*m_native->iSession, id, TMsvSelectionOrdering()); + CleanupStack::PushL(pEntry); + QBENCHMARK_ONCE { // We're only guaranteed one entry to delete. Not a fast process anyways.s + TRAPD(err, pEntry->DeleteL(id)); // slightly dangerous since we never want this failing, but it can fail too something, should debug TODO + if(err){ + QFAIL(QString("Message delete failed with error: " + QString::number(err)).toAscii()); + } + } + CleanupStack::PopAndDestroy(pEntry); +#endif + } + +} + +void tst_messaging::tst_removeAllMessage_data() +{ + QTest::addColumn("platform"); + + QTest::newRow("Qt-removeAll") << tst_messaging::QMessaging; + QTest::newRow("Native-removeAll") << tst_messaging::Native; +} + +void tst_messaging::tst_removeAllMessage() +{ + QFETCH(tst_messaging::platform, platform); + + if(platform == tst_messaging::QMessaging){ + QBENCHMARK { + while(!msg_list.empty()) + m_mgr->removeMessage(msg_list.takeFirst()); + } + } + else if(platform == tst_messaging::Native){ +#ifdef Q_OS_SYMBIAN + // make sure there's enough messages to delete + while(m_native->iNewMsgs.Count() < 30) { + TMsvId id; + id = m_native->makeSMS(KMsvDraftEntryIdValue); + m_native->iNewMsgs.Append(id); + } + + QBENCHMARK { + CMsvEntry *pEntry; + TRAPD(err, pEntry = CMsvEntry::NewL(*m_native->iSession, KMsvRootIndexEntryId, TMsvSelectionOrdering())); + if(err){ + qDebug() << "Failed to init CMsvEntryL " << err; + return; + } + CleanupStack::PushL(pEntry); + while(m_native->iNewMsgs.Count() != 0) { + TMsvId id = m_native->iNewMsgs[0]; + m_native->iNewMsgs.Remove(0); + //pEntry->SetEntryL(id); + TRAP_IGNORE(pEntry->DeleteL(id)); + } + CleanupStack::PopAndDestroy(pEntry); + } +#endif + } + +} + +#if defined(Q_OS_SYMBIAN) + +void OsNative::getFolders(RArray &folders) { + __UHEAP_MARK; + + CEmailAccounts *email = CEmailAccounts::NewLC(); + RArray aPop; + RArray aImap; + RArray aSmtp; + +#ifndef KDocumentsEntryIdValue +#define KDocumentsEntryIdValue 0x1008 +#endif + + folders.Append(KMsvRootIndexEntryId); + folders.Append(KMsvLocalServiceIndexEntryId); + folders.Append(KMsvGlobalInBoxIndexEntryId); + folders.Append(KMsvGlobalOutBoxIndexEntryId); + folders.Append(KMsvDraftEntryId); + folders.Append(KMsvSentEntryId); + folders.Append(KMsvDeletedEntryFolderEntryId); + folders.Append(KDocumentsEntryIdValue); + + email->GetPopAccountsL(aPop); + email->GetImapAccountsL(aImap); + email->GetSmtpAccountsL(aSmtp); + + RArray aService; + + for(int i = 0; i < aPop.Count(); i++){ + aService.Append(aPop[i].iPopService); + } + for(int i = 0; i < aImap.Count(); i++){ + aService.Append(aImap[i].iImapService); + } + for(int i = 0; i < aSmtp.Count(); i++){ + aService.Append(aSmtp[i].iSmtpService); + } + + TSmtpAccount sacc; + if(email->DefaultSmtpAccountL(sacc)) + aService.Append(sacc.iSmtpService); + + if(aService.Count() == 0) + QFAIL("No folders avaailable to query"); + + CMsvEntry* pEntry = NULL; + pEntry = iSession->GetEntryL(aService[0]); + CleanupStack::PushL(pEntry); + + for(int i = 0; i < aService.Count(); i++){ + TMsvId msvid = aService[i]; + + pEntry->SetEntryL(msvid); // faster to call set, saves .2ms out of 2.7ms. + + const TMsvEntry& entry = pEntry->Entry(); + + CMsvEntryFilter* pFilter = CMsvEntryFilter::NewLC(); + pFilter->SetService(msvid); + pFilter->SetType(KUidMsvFolderEntry); + + CMsvEntrySelection* pSelection = new(ELeave) CMsvEntrySelection; + CleanupStack::PushL(pSelection); + + if (entry.iMtm == KUidMsgTypeSMS || entry.iMtm == KUidMsgTypeMultimedia || entry.iMtm == KUidMsgTypeSMTP) + pEntry->SetEntryL(KDocumentsEntryIdValue); + + //iSession->GetChildIdsL(pEntry->Entry().Id(), *pFilter, *pSelection); + iSession->GetChildIdsL(pEntry->Entry().Id(), *pFilter, *pSelection); + + for(TInt i = 0; i < pSelection->Count(); i++) { + folders.Append(pSelection->At(i)); + } + + CleanupStack::PopAndDestroy(pSelection); + CleanupStack::PopAndDestroy(pFilter); + + } + + aPop.Close(); + aImap.Close(); + aSmtp.Close(); + aService.Close(); + + CleanupStack::PopAndDestroy(pEntry); + CleanupStack::PopAndDestroy(email); + __UHEAP_MARKEND; +} +#endif + +int main(int argc, char **argv){ + + QApplication app(argc, argv); + + tst_messaging test1; + QTest::qExec(&test1, argc, argv); + +} +//QTEST_MAIN(tst_messaging); + + +#include "tst_messaging.moc" + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/cameracapture.cpp --- a/qtmobility/tests/cameracapture_s60/cameracapture.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,488 +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 Qt Mobility Components. -** -** $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 "cameracapture.h" -#include "ui_cameracapture.h" -#include "settings.h" - -#include -#include -#include -#include - -#include - -#include - -CameraCapture::CameraCapture(QWidget *parent) : - QMainWindow(parent), - ui(new Ui::CameraCapture), - camera(0), - imageCapture(0), - mediaRecorder(0), - audioSource(0), - videoWidget(0) -{ - ui->setupUi(this); - #if defined(Q_OS_SYMBIAN) - outputDir = QDir::rootPath(); // this defaults to C:\Data in symbian - #else - outputDir = QDir::currentPath(); - #endif - - //camera devices - QByteArray cameraDevice; - - ui->actionCamera->setMenu(new QMenu(this)); - QActionGroup *videoDevicesGroup = new QActionGroup(this); - videoDevicesGroup->setExclusive(true); - foreach(const QByteArray &deviceName, QCamera::availableDevices()) { - QString description = deviceName+" "+camera->deviceDescription(deviceName); - QAction *videoDeviceAction = new QAction(description, videoDevicesGroup); - videoDeviceAction->setCheckable(true); - videoDeviceAction->setData(QVariant(deviceName)); - if (cameraDevice.isEmpty()) { - cameraDevice = deviceName; - videoDeviceAction->setChecked(true); - } - ui->actionCamera->menu()->addAction(videoDeviceAction); - } - - m_autoFocus = true; - m_takeImage = false; - - connect(videoDevicesGroup, SIGNAL(triggered(QAction*)), this, SLOT(updateCameraDevice(QAction*))); - connect(ui->actionFlash_On_2, SIGNAL(triggered()), this, SLOT(setFlashOn())); - connect(ui->actionFlash_Off, SIGNAL(triggered()), this, SLOT(setFlashOff())); - connect(ui->actionFlash_auto, SIGNAL(triggered()), this, SLOT(setFlashAuto())); - connect(ui->actionRed_eye, SIGNAL(triggered()), this, SLOT(setFlashRed())); - connect(ui->actionFlash_FillIn, SIGNAL(triggered()), this, SLOT(setFlashFillIn())); - - connect(ui->action_Focus_On, SIGNAL(triggered()), this, SLOT(setFocusOn())); - connect(ui->action_Focus_Off, SIGNAL(triggered()), this, SLOT(setFocusOff())); - - connect(ui->actionNight, SIGNAL(triggered()), this, SLOT(setExposureNight())); - connect(ui->actionBacklight, SIGNAL(triggered()), this, SLOT(setExposureBacklight())); - connect(ui->actionSport, SIGNAL(triggered()), this, SLOT(setExposureSport())); - connect(ui->actionBeach, SIGNAL(triggered()), this, SLOT(setExposureBeach())); - - connect(ui->actionAuto, SIGNAL(triggered()), this, SLOT(setWBAuto())); - connect(ui->actionSunlight, SIGNAL(triggered()), this, SLOT(setWBSunlight())); - connect(ui->actionCloudy, SIGNAL(triggered()), this, SLOT(setWBCloudy())); - connect(ui->actionTungsten, SIGNAL(triggered()), this, SLOT(setWBTungsten())); - - ui->actionAudio->setMenu(new QMenu(this)); - - setCamera(cameraDevice); - - mediaKeysObserver = new MediaKeysObserver(this); - connect(mediaKeysObserver, SIGNAL(mediaKeyPressed(MediaKeysObserver::MediaKeys)), this, SLOT(handleMediaKeyEvent(MediaKeysObserver::MediaKeys))); -} - -CameraCapture::~CameraCapture() -{ - delete mediaRecorder; - delete videoWidget; - delete camera; -} - -void CameraCapture::setFlashOn() -{ - camera->setFlashMode(QCamera::FlashOn); -} - -void CameraCapture::setFlashOff() -{ - camera->setFlashMode(QCamera::FlashOff); -} - -void CameraCapture::setFlashAuto() -{ - camera->setFlashMode(QCamera::FlashAuto); -} - -void CameraCapture::setFlashRed() -{ - camera->setFlashMode(QCamera::FlashRedEyeReduction); -} - -void CameraCapture::setFlashFillIn() -{ - camera->setFlashMode(QCamera::FlashFill); -} - -void CameraCapture::setFocusOn() -{ - m_autoFocus = true; - m_takeImage = false; -} - -void CameraCapture::setFocusOff() -{ - m_autoFocus = false; - m_takeImage = false; -} - -void CameraCapture::setExposureNight() -{ - camera->setExposureMode(QCamera::ExposureNight); -} - -void CameraCapture::setExposureBacklight() -{ - camera->setExposureMode(QCamera::ExposureBacklight); -} - -void CameraCapture::setExposureSport() -{ - camera->setExposureMode(QCamera::ExposureSports); -} - -void CameraCapture::setExposureBeach() -{ - camera->setExposureMode(QCamera::ExposurePortrait); -} - -void CameraCapture::setWBAuto() -{ - camera->setWhiteBalanceMode(QCamera::WhiteBalanceAuto); -} - -void CameraCapture::setWBSunlight() -{ - camera->setWhiteBalanceMode(QCamera::WhiteBalanceSunlight); -} - -void CameraCapture::setWBCloudy() -{ - camera->setWhiteBalanceMode(QCamera::WhiteBalanceCloudy); -} - -void CameraCapture::setWBTungsten() -{ - camera->setWhiteBalanceMode(QCamera::WhiteBalanceTungsten); -} - -void CameraCapture::setCamera(const QByteArray &cameraDevice) -{ - delete imageCapture; - delete mediaRecorder; - delete videoWidget; - delete camera; - - qDebug() << "CameraCapture::setCamera cameraDevice.isEmpty()=" << cameraDevice.isEmpty(); - if (cameraDevice.isEmpty()) - camera = new QCamera; - else - camera = new QCamera(cameraDevice); - - connect(camera, SIGNAL(stateChanged(QCamera::State)), this, SLOT(updateCameraState(QCamera::State))); - connect(camera, SIGNAL(focusStatusChanged(QCamera::FocusStatus)), this, SLOT(focusStatusChanged(QCamera::FocusStatus))); - connect(camera, SIGNAL(zoomValueChanged(qreal)), this, SLOT(zoomValueChanged(qreal))); - connect(camera, SIGNAL(error(QCamera::Error)), this, SLOT(error(QCamera::Error))); - - mediaRecorder = new QMediaRecorder(camera); - connect(mediaRecorder, SIGNAL(stateChanged(QMediaRecorder::State)), this, SLOT(updateRecorderState(QMediaRecorder::State))); - - imageCapture = new QStillImageCapture(camera); - - audioSource = new QAudioCaptureSource(camera); - connect(audioSource, SIGNAL(availableAudioInputsChanged()), SLOT(updateAudioDevices())); - - mediaRecorder->setOutputLocation(QUrl("test.mkv")); - - connect(mediaRecorder, SIGNAL(durationChanged(qint64)), this, SLOT(updateRecordTime())); - connect(mediaRecorder, SIGNAL(error(QMediaRecorder::Error)), this, SLOT(displayErrorMessage())); - - camera->setMetaData(QtMedia::Title, QVariant(QLatin1String("Test Title"))); - - videoWidget = new QVideoWidget; - videoWidget->setMediaObject(camera); - ui->stackedWidget->addWidget(videoWidget); - - updateCameraState(camera->state()); - updateRecorderState(mediaRecorder->state()); - updateAudioDevices(); - - connect(imageCapture, SIGNAL(readyForCaptureChanged(bool)), ui->takeImageButton, SLOT(setEnabled(bool))); - connect(imageCapture, SIGNAL(imageCaptured(QString,QImage)), this, SLOT(processCapturedImage(QString,QImage))); - -} - -void CameraCapture::updateAudioDevices() -{ - ui->actionAudio->menu()->clear(); - QActionGroup *audioDevicesGroup = new QActionGroup(this); - audioDevicesGroup->setExclusive(true); - - if (audioSource->isAvailable()) { - QList devices = audioSource->audioInputs(); - for (int i=0; iaudioDescription(devices.at(i)); - QAction *audioDeviceAction = new QAction(devices.at(i)+" "+description, audioDevicesGroup); - audioDeviceAction->setData(devices.at(i)); - audioDeviceAction->setCheckable(true); - - ui->actionAudio->menu()->addAction(audioDeviceAction); - - if (devices.at(i) == audioSource->activeAudioInput()) - audioDeviceAction->setChecked(true); - } - } else { - qWarning() << "No audio device for camera service available"; - } - - connect(audioDevicesGroup, SIGNAL(triggered(QAction*)), this, SLOT(updateAudioDevice(QAction*))); -} - -void CameraCapture::updateRecordTime() -{ - QString str = QString("Recorded %1 sec").arg(mediaRecorder->duration()/1000); - ui->statusbar->showMessage(str); -} - -void CameraCapture::processCapturedImage(const QString& fname, const QImage& img) -{ - ui->lastImagePreviewLabel->setPixmap( QPixmap::fromImage(img.scaledToWidth(128)) ); - qDebug() << "image captured:" << fname; -} - -void CameraCapture::settings() -{ - Settings settingsDialog(mediaRecorder); - settingsDialog.setAudioSettings(mediaRecorder->audioSettings()); - settingsDialog.setVideoSettings(mediaRecorder->videoSettings()); - settingsDialog.setFormat(mediaRecorder->containerMimeType()); - - if (settingsDialog.exec() == QDialog::Accepted) { - mediaRecorder->setEncodingSettings( - settingsDialog.audioSettings(), - settingsDialog.videoSettings(), - settingsDialog.format()); - } -} - -void CameraCapture::record() -{ - int lastImage = 0; - foreach( QString fileName, outputDir.entryList(QStringList() << "clip_*.mpg") ) { - int imgNumber = fileName.mid(5, fileName.size()-9).toInt(); - lastImage = qMax(lastImage, imgNumber); - } - - QUrl location(QDir::toNativeSeparators(outputDir.canonicalPath()+ - QString("/clip_%1.mpg").arg(lastImage+1,4,10,QLatin1Char('0')))); - - mediaRecorder->setOutputLocation(location); - - mediaRecorder->record(); - updateRecordTime(); -} - -void CameraCapture::pause() -{ - mediaRecorder->pause(); -} - -void CameraCapture::stop() -{ - mediaRecorder->stop(); -} - -void CameraCapture::takeImage() -{ - if (m_autoFocus) { - m_takeImage = true; - camera->startFocusing(); - } else { - int lastImage = 0; - foreach( QString fileName, outputDir.entryList(QStringList() << "img_*.jpg") ) { - int imgNumber = fileName.mid(4, fileName.size()-8).toInt(); - lastImage = qMax(lastImage, imgNumber); - } - - imageCapture->capture(QString("img_%1.jpg").arg(lastImage+1, - 4, //fieldWidth - 10, - QLatin1Char('0'))); - } -} - -void CameraCapture::toggleCamera() -{ - if (camera->state() == QCamera::ActiveState){ - camera->stop(); - } - else - camera->start(); -} - -void CameraCapture::updateCameraState(QCamera::State state) -{ - qDebug() << "CameraCapture::updateCameraState(), state="<actionCamera->setEnabled(false); - ui->actionAudio->setEnabled(false); - ui->actionSettings->setEnabled(true); - - ui->startCameraButton->setText(tr("Stop Camera")); - ui->startCameraButton->setChecked(true); - //ui->imageCaptureBox->setEnabled(true); - //ui->videoCaptureBox->setEnabled(true); - } else { - ui->actionCamera->setEnabled(true); - ui->actionAudio->setEnabled(true); - ui->actionSettings->setEnabled(true); - - ui->startCameraButton->setText(tr("Start Camera")); - ui->startCameraButton->setChecked(false); - //ui->imageCaptureBox->setEnabled(false); - //ui->videoCaptureBox->setEnabled(false); - } - - if (camera->isAvailable()) { - ui->startCameraButton->setEnabled(true); - } else { - ui->startCameraButton->setEnabled(false); - ui->startCameraButton->setText(tr("Camera is not available")); - } -} - -void CameraCapture::updateRecorderState(QMediaRecorder::State state) -{ - switch (state) { - case QMediaRecorder::StoppedState: - ui->recordButton->setEnabled(true); - ui->pauseButton->setEnabled(true); - ui->stopButton->setEnabled(false); - break; - case QMediaRecorder::PausedState: - ui->recordButton->setEnabled(true); - ui->pauseButton->setEnabled(false); - ui->stopButton->setEnabled(true); - break; - case QMediaRecorder::RecordingState: - ui->recordButton->setEnabled(false); - ui->pauseButton->setEnabled(true); - ui->stopButton->setEnabled(true); - break; - } -} - - -void CameraCapture::displayErrorMessage() -{ - QMessageBox::warning(this, "Capture error", mediaRecorder->errorString()); -} - -void CameraCapture::updateCameraDevice(QAction *action) -{ - qDebug() << "CameraCapture::updateCameraDevice(), action="<capture(QString("img_%1.jpg").arg(lastImage+1, - 4, //fieldWidth - 10, - QLatin1Char('0'))); - m_takeImage = false; - } -} - -void CameraCapture::zoomValueChanged(qreal value) -{ - qDebug() << "CameraCapture zoom value changed to: " << value; -} - -void CameraCapture::handleMediaKeyEvent(MediaKeysObserver::MediaKeys key) -{ - switch (key) { - case MediaKeysObserver::EVolIncKey: - camera->zoomTo(0, camera->digitalZoom() + 5); - break; - case MediaKeysObserver::EVolDecKey: - camera->zoomTo(0, camera->digitalZoom() - 5); - break; - default: - break; - } -} - -void CameraCapture::error(QCamera::Error aError) -{ - qDebug() << "CameraCapture error: " << aError; - QMessageBox msgBox; - msgBox.setStandardButtons(QMessageBox::Close); - - if (aError == QCamera::NoError) { - msgBox.setText(tr("NoError")); - } else if (aError == QCamera::NotReadyToCaptureError) { - msgBox.setText(tr("NotReadyToCaptureError")); - } else if (aError == QCamera::InvalidRequestError) { - msgBox.setText(tr("InvalidRequestError")); - } else if (aError == QCamera::ServiceMissingError) { - msgBox.setText(tr("ServiceMissingError")); - } else if (aError == QCamera::NotSupportedFeatureError) { - msgBox.setText(tr("NotSupportedFeatureError")); - } else if (aError == QCamera::CameraError) { - msgBox.setText(tr("CameraError")); - } - else { - msgBox.setText(tr("Other error")); - } - msgBox.exec(); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/cameracapture.h --- a/qtmobility/tests/cameracapture_s60/cameracapture.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,142 +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 Qt Mobility Components. -** -** $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 RECORDER_H -#define RECORDER_H - -#include -#include -#include -#include - -#include "mediakeysobserver.h" - -QT_BEGIN_NAMESPACE -namespace Ui { - class CameraCapture; -} -QT_END_NAMESPACE - - -#include -#include - -QTM_BEGIN_NAMESPACE -class QVideoWidget; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -class CameraCapture : public QMainWindow -{ - Q_OBJECT -public: - CameraCapture(QWidget *parent = 0); - ~CameraCapture(); - -private slots: - void setCamera(const QByteArray &cameraDevice); - - void toggleCamera(); - - void record(); - void pause(); - void stop(); - - void takeImage(); - - void settings(); - - void displayErrorMessage(); - - void updateCameraDevice(QAction*); - void updateAudioDevice(QAction*); - - void updateCameraState(QCamera::State); - void updateRecorderState(QMediaRecorder::State state); - - void updateRecordTime(); - void updateAudioDevices(); - - void processCapturedImage(const QString& fname, const QImage& img); - void focusStatusChanged(QCamera::FocusStatus status); - void zoomValueChanged(qreal value); - - void handleMediaKeyEvent(MediaKeysObserver::MediaKeys key); - void error(QCamera::Error aError); - - - void setFlashOn(); - void setFlashOff(); - void setFlashAuto(); - void setFlashRed(); - void setFlashFillIn(); - - void setFocusOn(); - void setFocusOff(); - - void setExposureNight(); - void setExposureBacklight(); - void setExposureSport(); - void setExposureBeach(); - - void setWBAuto(); - void setWBSunlight(); - void setWBCloudy(); - void setWBTungsten(); - -private: - Ui::CameraCapture *ui; - - QDir outputDir; - QCamera *camera; - QStillImageCapture *imageCapture; - QMediaRecorder* mediaRecorder; - QAudioCaptureSource *audioSource; - QVideoWidget *videoWidget; - - MediaKeysObserver *mediaKeysObserver; - - bool m_autoFocus; - bool m_takeImage; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/cameracapture.ui --- a/qtmobility/tests/cameracapture_s60/cameracapture.ui Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,526 +0,0 @@ - - - CameraCapture - - - - 0 - 0 - 300 - 383 - - - - MainWindow - - - - - - - - - - - - - 0 - 0 - - - - - - - - - 255 - 255 - 255 - - - - - - - 145 - 145 - 145 - - - - - - - - - 255 - 255 - 255 - - - - - - - 145 - 145 - 145 - - - - - - - - - 145 - 145 - 145 - - - - - - - 145 - 145 - 145 - - - - - - - - -1 - - - - - - - - 0 - 0 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 1 - 1 - - - - Start camera - - - true - - - false - - - - - - - false - - - - 0 - 0 - - - - - 1 - 1 - - - - Take Image - - - - - - - - - - - - 0 - 0 - - - - - 1 - 1 - - - - Stop - - - - - - - - 0 - 0 - - - - - 1 - 1 - - - - Pause - - - - - - - - 0 - 0 - - - - - 1 - 1 - - - - Record - - - - - - - - - - - - - - 0 - 0 - 300 - 18 - - - - - File - - - - - - Devices - - - - - - - - - - Settings - - - - Flash - - - - - - - - - - Focus - - - - - - - Exposure - - - - - - - - - WhiteBalance - - - - - - - - - - - - - - - - - - - Exit - - - - - Settings - - - - - Camera - - - - - Audio - - - - - Flash On - - - - - Flash Off - - - - - Flash Auto - - - - - Red Eye - - - - - Flash FillIn - - - - - Focus On (auto) - - - - - Focus Off (auto) - - - - - Night - - - - - Backlight - - - - - Sport - - - - - Beach - - - - - Auto - - - - - Sunlight - - - - - Cloudy - - - - - Tungsten - - - - - - - actionExit - triggered() - CameraCapture - close() - - - -1 - -1 - - - 154 - 130 - - - - - actionSettings - triggered() - CameraCapture - settings() - - - -1 - -1 - - - 242 - 206 - - - - - startCameraButton - clicked() - CameraCapture - toggleCamera() - - - 82 - 309 - - - 149 - 191 - - - - - stopButton - clicked() - CameraCapture - stop() - - - 60 - 336 - - - 149 - 191 - - - - - pauseButton - clicked() - CameraCapture - pause() - - - 149 - 336 - - - 149 - 191 - - - - - recordButton - clicked() - CameraCapture - record() - - - 239 - 336 - - - 149 - 191 - - - - - takeImageButton - clicked() - CameraCapture - takeImage() - - - 216 - 309 - - - 149 - 191 - - - - - - record() - pause() - stop() - enablePreview(bool) - settings() - takeImage() - toggleCamera() - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/cameracapture_s60.pro --- a/qtmobility/tests/cameracapture_s60/cameracapture_s60.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -TEMPLATE = app -TARGET = s60cameracapture - -INCLUDEPATH += ../../src/multimedia -include(../../examples/examples.pri) - -CONFIG += mobility -MOBILITY = multimedia - -HEADERS = cameracapture.h \ - settings.h -SOURCES = main.cpp \ - cameracapture.cpp \ - settings.cpp - -symbian: { - TARGET.CAPABILITY = UserEnvironment WriteDeviceData ReadDeviceData - FORMS += cameracapture.ui \ - settings_s60.ui - } else { - FORMS += cameracapture.ui \ - settings.ui -} - -include(mediakeysobserver.pri) diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/main.cpp --- a/qtmobility/tests/cameracapture_s60/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +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 Qt Mobility Components. -** -** $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 "cameracapture.h" - -#include - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - - CameraCapture cameraCapture; -#ifdef Q_OS_SYMBIAN - cameraCapture.showMaximized(); -#else - cameraCapture.show(); -#endif - - return app.exec(); -}; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/mediakeysobserver.cpp --- a/qtmobility/tests/cameracapture_s60/mediakeysobserver.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,133 +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 Qt Mobility Components. -** -** $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 "mediakeysobserver.h" - -MediaKeysObserver::MediaKeysObserver(QObject *parent) : QObject(parent) -{ - iInterfaceSelector = CRemConInterfaceSelector::NewL(); - iCoreTarget = CRemConCoreApiTarget::NewL(*iInterfaceSelector, *this); - iInterfaceSelector->OpenTargetL(); -} - -MediaKeysObserver::~MediaKeysObserver() -{ - delete iInterfaceSelector; -} - -void MediaKeysObserver::MrccatoCommand(TRemConCoreApiOperationId aOperationId, - TRemConCoreApiButtonAction aButtonAct) -{ - TRequestStatus status; - switch(aOperationId) - { - case ERemConCoreApiPausePlayFunction: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EPlayPauseKey); - - //Send the response back to Remcon server - iCoreTarget->PausePlayFunctionResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - - case ERemConCoreApiStop: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EStopKey); - iCoreTarget->StopResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - case ERemConCoreApiRewind: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EFastRewindKey); - iCoreTarget->RewindResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - case ERemConCoreApiForward: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EForwardKey); - iCoreTarget->ForwardResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - case ERemConCoreApiVolumeUp: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EVolIncKey); - iCoreTarget->VolumeUpResponse(status, KErrNone); - User::WaitForRequest(status); - - break; - } - case ERemConCoreApiVolumeDown: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EVolDecKey); - iCoreTarget->VolumeDownResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - case ERemConCoreApiFastForward: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EFastForwardKey); - iCoreTarget->FastForwardResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - case ERemConCoreApiBackward: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EBackwardKey); - iCoreTarget->BackwardResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - default: - break; - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/mediakeysobserver.h --- a/qtmobility/tests/cameracapture_s60/mediakeysobserver.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +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 Qt Mobility Components. -** -** $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 MEDIAKEYSOBSERVER_H_ -#define MEDIAKEYSOBSERVER_H_ - -#include -#include -#include -#include -#include - -class MediaKeysObserver : public QObject, public MRemConCoreApiTargetObserver -{ - Q_OBJECT - -public: - enum MediaKeys { - EVolIncKey, - EVolDecKey, - EPlayPauseKey, - EStopKey, - EBackwardKey, - EForwardKey, - EFastForwardKey, - EFastRewindKey - }; - - MediaKeysObserver(QObject *parent = 0); - virtual ~MediaKeysObserver(); - -protected: // From public MRemConCoreApiTargetObserver - void MrccatoCommand(TRemConCoreApiOperationId aOperationId, TRemConCoreApiButtonAction aButtonAct); - void MrccatoPlay(TRemConCoreApiPlaybackSpeed /*aSpeed*/, TRemConCoreApiButtonAction /*aButtonAct*/) {}; - void MrccatoTuneFunction(TBool /*aTwoPart*/, TUint /*aMajorChannel*/, TUint /*aMinorChannel*/, TRemConCoreApiButtonAction /*aButtonAct*/) {}; - void MrccatoSelectDiskFunction(TUint /*aDisk*/, TRemConCoreApiButtonAction /*aButtonAct*/) {}; - void MrccatoSelectAvInputFunction(TUint8 /*aAvInputSignalNumber*/, TRemConCoreApiButtonAction /*aButtonAct*/) {}; - void MrccatoSelectAudioInputFunction(TUint8 /*aAudioInputSignalNumber*/, TRemConCoreApiButtonAction /*aButtonAct*/) {}; - -Q_SIGNALS: - void mediaKeyPressed(MediaKeysObserver::MediaKeys key); - -private: - CRemConInterfaceSelector* iInterfaceSelector; - CRemConCoreApiTarget* iCoreTarget; -}; -#endif - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/mediakeysobserver.pri --- a/qtmobility/tests/cameracapture_s60/mediakeysobserver.pri Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -HEADERS += mediakeysobserver.h -SOURCES += mediakeysobserver.cpp - -LIBS += -lremconinterfacebase \ - -lremconcoreapi \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/settings.cpp --- a/qtmobility/tests/cameracapture_s60/settings.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,190 +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 Qt Mobility Components. -** -** $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 "settings.h" -#ifdef Q_OS_SYMBIAN -#include "ui_settings_s60.h" -#else -#include "ui_settings.h" -#endif - -#include -#include -#include -#include -#include - - - -Settings::Settings(QMediaRecorder *mediaRecorder, QWidget *parent) : - QDialog(parent), - ui(new Ui::SettingsUi), - mediaRecorder(mediaRecorder) -{ - ui->setupUi(this); - - //audio codecs - foreach(const QString &codecName, mediaRecorder->supportedAudioCodecs()) { - QString description = mediaRecorder->audioCodecDescription(codecName); - ui->audioCodecBox->addItem(codecName+": "+description, QVariant(codecName)); - } - //sample rate: - foreach(int sampleRate, mediaRecorder->supportedAudioSampleRates()) { - ui->audioSampleRateBox->addItem(QString::number(sampleRate), QVariant(sampleRate)); - } - ui->audioQualitySlider->setRange(0, int(QtMedia::VeryHighQuality)); - - //video codecs - foreach(const QString &codecName, mediaRecorder->supportedVideoCodecs()) { - QString description = mediaRecorder->videoCodecDescription(codecName); - ui->videoCodecBox->addItem(codecName+": "+description, QVariant(codecName)); - } - ui->videoQualitySlider->setRange(0, int(QtMedia::VeryHighQuality)); - - - ui->videoResolutionBox->addItem(tr("Default")); - QList supportedResolutions = mediaRecorder->supportedResolutions(); - foreach(const QSize &resolution, supportedResolutions) { - ui->videoResolutionBox->addItem(QString("%1x%2").arg(resolution.width()).arg(resolution.height()), - QVariant(resolution)); - } - ui->videoFramerateBox->addItem(tr("Default")); - QList supportedFrameRates = mediaRecorder->supportedFrameRates(); - qreal rate; - foreach(rate, supportedFrameRates) { - QString rateString = QString("%1").arg(rate, 0, 'f', 2); - ui->videoFramerateBox->addItem(rateString, QVariant(rate)); - } - //containers - foreach(const QString &format, mediaRecorder->supportedContainers()) { - ui->containerFormatBox->addItem(format+":"+mediaRecorder->containerDescription(format), - QVariant(format)); - } - connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(accept())); - connect(ui->buttonBox, SIGNAL(rejected()), this, SLOT(reject())); -} - -Settings::~Settings() -{ - delete ui; -} - -void Settings::changeEvent(QEvent *e) -{ - QDialog::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - ui->retranslateUi(this); - break; - default: - break; - } -} - -QAudioEncoderSettings Settings::audioSettings() const -{ - QAudioEncoderSettings settings = mediaRecorder->audioSettings(); - settings.setCodec(boxValue(ui->audioCodecBox).toString()); - settings.setQuality(QtMedia::EncodingQuality(ui->audioQualitySlider->value())); - settings.setSampleRate(boxValue(ui->audioSampleRateBox).toInt()); - return settings; -} - -void Settings::setAudioSettings(const QAudioEncoderSettings &audioSettings) -{ - selectComboBoxItem(ui->audioCodecBox, QVariant(audioSettings.codec())); - selectComboBoxItem(ui->audioSampleRateBox, QVariant(audioSettings.sampleRate())); - ui->audioQualitySlider->setValue(audioSettings.quality()); -} - -QVideoEncoderSettings Settings::videoSettings() const -{ - QVideoEncoderSettings settings = mediaRecorder->videoSettings(); - settings.setCodec(boxValue(ui->videoCodecBox).toString()); - settings.setQuality(QtMedia::EncodingQuality(ui->videoQualitySlider->value())); - settings.setResolution(boxValue(ui->videoResolutionBox).toSize()); - settings.setFrameRate(boxValue(ui->videoFramerateBox).value()); - return settings; -} - -void Settings::setVideoSettings(const QVideoEncoderSettings &videoSettings) -{ - selectComboBoxItem(ui->videoCodecBox, QVariant(videoSettings.codec())); - selectComboBoxItem(ui->videoResolutionBox, QVariant(videoSettings.resolution())); - ui->videoQualitySlider->setValue(videoSettings.quality()); - //special case for frame rate - for (int i=0; ivideoFramerateBox->count(); i++) { - qreal itemRate = ui->videoFramerateBox->itemData(i).value(); - if (qFuzzyCompare(itemRate, videoSettings.frameRate())) { - ui->videoFramerateBox->setCurrentIndex(i); - break; - } - } -} - -QString Settings::format() const -{ - return boxValue(ui->containerFormatBox).toString(); -} - -void Settings::setFormat(const QString &format) -{ - selectComboBoxItem(ui->containerFormatBox, QVariant(format)); -} - -QVariant Settings::boxValue(const QComboBox *box) const -{ - int idx = box->currentIndex(); - if (idx == -1) - return QVariant(); - - return box->itemData(idx); -} - -void Settings::selectComboBoxItem(QComboBox *box, const QVariant &value) -{ - for (int i=0; icount(); i++) { - if (box->itemData(i) == value) { - box->setCurrentIndex(i); - break; - } - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/settings.h --- a/qtmobility/tests/cameracapture_s60/settings.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +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 Qt Mobility Components. -** -** $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 SETTINGS_H -#define SETTINGS_H - -#include -#include - -QTM_BEGIN_NAMESPACE -class QMediaRecorder; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE -QT_USE_NAMESPACE - -QT_BEGIN_NAMESPACE -class QComboBox; -namespace Ui { - class SettingsUi; -} -QT_END_NAMESPACE - -class Settings : public QDialog { - Q_OBJECT -public: - Settings(QMediaRecorder *mediaRecorder, QWidget *parent = 0); - ~Settings(); - - QAudioEncoderSettings audioSettings() const; - void setAudioSettings(const QAudioEncoderSettings&); - - QVideoEncoderSettings videoSettings() const; - void setVideoSettings(const QVideoEncoderSettings&); - - QString format() const; - void setFormat(const QString &format); - -protected: - void changeEvent(QEvent *e); - -private: - QVariant boxValue(const QComboBox*) const; - void selectComboBoxItem(QComboBox *box, const QVariant &value); - - Ui::SettingsUi *ui; - QMediaRecorder *mediaRecorder; -}; - -#endif // SETTINGS_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/settings.ui --- a/qtmobility/tests/cameracapture_s60/settings.ui Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,189 +0,0 @@ - - - SettingsUi - - - - 0 - 0 - 475 - 291 - - - - Dialog - - - - - - Audio - - - - - - Audio Codec: - - - - - - - - - - Sample Rate: - - - - - - - - - - Quality: - - - - - - - 4 - - - Qt::Horizontal - - - - - - - - - - Video - - - - - - Resolution: - - - - - - - - - - Framerate: - - - - - - - - - - Video Codec: - - - - - - - - - - Quality: - - - - - - - 4 - - - Qt::Horizontal - - - - - - - - - - Container Format: - - - - - - - - - - Qt::Vertical - - - - 20 - 14 - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - - - buttonBox - accepted() - Settings - accept() - - - 227 - 310 - - - 157 - 274 - - - - - buttonBox - rejected() - Settings - reject() - - - 295 - 316 - - - 286 - 274 - - - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/cameracapture_s60/settings_s60.ui --- a/qtmobility/tests/cameracapture_s60/settings_s60.ui Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,181 +0,0 @@ - - - SettingsUi - - - - 0 - 0 - 261 - 320 - - - - Dialog - - - - - - - - - - Audio Codec: - - - - - - - - - - - - - - Audio Quality: - - - - - - - 4 - - - Qt::Horizontal - - - - - - - - - - - Audio Sample Rate: - - - - - - - - - - - - - - Container Format: - - - - - - - - - - - - - - - - - - Video Resolution: - - - - - - - - - - - - - - Video Framerate: - - - - - - - - - - - - - - Video Codec: - - - - - - - - - - - - - - Video Quality: - - - - - - - 4 - - - Qt::Horizontal - - - - - - - - - - - Qt::LeftToRight - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - Qt::Vertical - - - - 20 - 14 - - - - - - - - - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/messagingex/messagingex.cpp --- a/qtmobility/tests/messagingex/messagingex.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/messagingex/messagingex.cpp Mon May 03 13:18:40 2010 +0300 @@ -39,7 +39,7 @@ ** ****************************************************************************/ #include "messagingex.h" -#include "QMessageFilter.h" +#include "qmessagefilter.h" #include MessagingEx::MessagingEx(QWidget* parent) @@ -67,6 +67,9 @@ priorityAccountComboBox->addItem(QString("%1 - %2").arg(i+1).arg(account.name()),account.id().toString()); } connect(accountComboBox_2,SIGNAL(currentIndexChanged(int)),this,SLOT(sortParentAccountId())); + + timestampdateTimeEdit->setDateTime(QDateTime::currentDateTime()); + receptiondateTimeEdit->setDateTime(QDateTime::currentDateTime()); } void MessagingEx::createMenus() @@ -783,7 +786,7 @@ stackedWidget->setCurrentIndex(12); for (int i=0; i < ids.count(); i++) { QMessage message = m_manager.message(ids[i]); - QString from = message.from().recipient(); + QString from = message.from().addressee(); QString subject = message.subject(); if (subject.length() == 0) { subject = message.textContent(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/messagingex/messagingex.h --- a/qtmobility/tests/messagingex/messagingex.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/messagingex/messagingex.h Mon May 03 13:18:40 2010 +0300 @@ -48,10 +48,10 @@ #include "ui_accountdialog.h" #include "ui_mmsreceiveddialog.h" -#include "QMessageService.h" -#include "QMessageManager.h" -#include "QMessage.h" -#include "QMessageAccount.h" +#include "qmessageservice.h" +#include "qmessagemanager.h" +#include "qmessage.h" +#include "qmessageaccount.h" QTM_USE_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/messagingex/messagingex.pro --- a/qtmobility/tests/messagingex/messagingex.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/messagingex/messagingex.pro Mon May 03 13:18:40 2010 +0300 @@ -4,12 +4,18 @@ QT += gui include(../../common.pri) +maemo5:include(../../examples/examples.pri) # Build against the messaging library INCLUDEPATH += $$SOURCE_DIR/src/messaging CONFIG += mobility MOBILITY = messaging +maemo5|maemo6 { + QMAKE_CXXFLAGS+=-DUSE_TABBED_LAYOUT + QMAKE_RPATHDIR+=$$SOURCE_DIR/lib +} + HEADERS += \ messagingex.h diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/messagingex/messagingex.ui --- a/qtmobility/tests/messagingex/messagingex.ui Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/messagingex/messagingex.ui Mon May 03 13:18:40 2010 +0300 @@ -677,7 +677,27 @@ - + + + + 0 + 0 + 0 + 2000 + 1 + 1 + + + + QDateTimeEdit::MonthSection + + + yyyy/MM/dd HH:mm + + + true + + @@ -757,7 +777,17 @@ - + + + QDateTimeEdit::MonthSection + + + yyyy/MM/dd HH:mm + + + true + + diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/main.cpp --- a/qtmobility/tests/playerex_s60/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +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 Qt Mobility Components. -** -** $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 "player.h" - -#include - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - - S60Player player; - player.showMaximized(); - - return app.exec(); -}; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/mediakeysobserver.cpp --- a/qtmobility/tests/playerex_s60/mediakeysobserver.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,133 +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 Qt Mobility Components. -** -** $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 "mediakeysobserver.h" - -MediaKeysObserver::MediaKeysObserver(QObject *parent) : QObject(parent) -{ - iInterfaceSelector = CRemConInterfaceSelector::NewL(); - iCoreTarget = CRemConCoreApiTarget::NewL(*iInterfaceSelector, *this); - iInterfaceSelector->OpenTargetL(); -} - -MediaKeysObserver::~MediaKeysObserver() -{ - delete iInterfaceSelector; -} - -void MediaKeysObserver::MrccatoCommand(TRemConCoreApiOperationId aOperationId, - TRemConCoreApiButtonAction aButtonAct) -{ - TRequestStatus status; - switch(aOperationId) - { - case ERemConCoreApiPausePlayFunction: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EPlayPauseKey); - - //Send the response back to Remcon server - iCoreTarget->PausePlayFunctionResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - - case ERemConCoreApiStop: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EStopKey); - iCoreTarget->StopResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - case ERemConCoreApiRewind: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EFastRewindKey); - iCoreTarget->RewindResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - case ERemConCoreApiForward: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EForwardKey); - iCoreTarget->ForwardResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - case ERemConCoreApiVolumeUp: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EVolIncKey); - iCoreTarget->VolumeUpResponse(status, KErrNone); - User::WaitForRequest(status); - - break; - } - case ERemConCoreApiVolumeDown: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EVolDecKey); - iCoreTarget->VolumeDownResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - case ERemConCoreApiFastForward: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EFastForwardKey); - iCoreTarget->FastForwardResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - case ERemConCoreApiBackward: - { - if (aButtonAct == ERemConCoreApiButtonClick) - emit mediaKeyPressed(MediaKeysObserver::EBackwardKey); - iCoreTarget->BackwardResponse(status, KErrNone); - User::WaitForRequest(status); - break; - } - default: - break; - } -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/mediakeysobserver.h --- a/qtmobility/tests/playerex_s60/mediakeysobserver.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +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 Qt Mobility Components. -** -** $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 MEDIAKEYSOBSERVER_H_ -#define MEDIAKEYSOBSERVER_H_ - -#include -#include -#include -#include -#include - -class MediaKeysObserver : public QObject, public MRemConCoreApiTargetObserver -{ - Q_OBJECT - -public: - enum MediaKeys { - EVolIncKey, - EVolDecKey, - EPlayPauseKey, - EStopKey, - EBackwardKey, - EForwardKey, - EFastForwardKey, - EFastRewindKey - }; - - MediaKeysObserver(QObject *parent = 0); - virtual ~MediaKeysObserver(); - -protected: // From public MRemConCoreApiTargetObserver - void MrccatoCommand(TRemConCoreApiOperationId aOperationId, TRemConCoreApiButtonAction aButtonAct); - void MrccatoPlay(TRemConCoreApiPlaybackSpeed /*aSpeed*/, TRemConCoreApiButtonAction /*aButtonAct*/) {}; - void MrccatoTuneFunction(TBool /*aTwoPart*/, TUint /*aMajorChannel*/, TUint /*aMinorChannel*/, TRemConCoreApiButtonAction /*aButtonAct*/) {}; - void MrccatoSelectDiskFunction(TUint /*aDisk*/, TRemConCoreApiButtonAction /*aButtonAct*/) {}; - void MrccatoSelectAvInputFunction(TUint8 /*aAvInputSignalNumber*/, TRemConCoreApiButtonAction /*aButtonAct*/) {}; - void MrccatoSelectAudioInputFunction(TUint8 /*aAudioInputSignalNumber*/, TRemConCoreApiButtonAction /*aButtonAct*/) {}; - -Q_SIGNALS: - void mediaKeyPressed(MediaKeysObserver::MediaKeys key); - -private: - CRemConInterfaceSelector* iInterfaceSelector; - CRemConCoreApiTarget* iCoreTarget; -}; -#endif - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/mediakeysobserver.pri --- a/qtmobility/tests/playerex_s60/mediakeysobserver.pri Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -HEADERS += mediakeysobserver.h -SOURCES += mediakeysobserver.cpp - -LIBS += -lremconinterfacebase \ - -lremconcoreapi \ No newline at end of file diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/player.cpp --- a/qtmobility/tests/playerex_s60/player.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,559 +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 Qt Mobility Components. -** -** $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 "player.h" - -#include "playercontrols.h" -#include "videowidget.h" - -#include -#include - -#include -#include - -S60Player::S60Player(QMainWindow *parent) - : QMainWindow(parent) - , videoWidget(0) - , coverLabel(0) - , slider(0) - , colorDialog(0) -{ - player = new QMediaPlayer(this); - player->setVolume(50); - playlist = new QMediaPlaylist(this); - playlist->setMediaObject(player); - - connect(player, SIGNAL(durationChanged(qint64)), SLOT(durationChanged(qint64))); - connect(player, SIGNAL(positionChanged(qint64)), SLOT(positionChanged(qint64))); - connect(player, SIGNAL(metaDataChanged()), SLOT(metaDataChanged())); - connect(player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), - this, SLOT(statusChanged(QMediaPlayer::MediaStatus))); - connect(player, SIGNAL(bufferStatusChanged(int)), this, SLOT(bufferingProgress(int))); - - videoWidget = new VideoWidget; - videoWidget->setMediaObject(player); - - slider = new QSlider(Qt::Horizontal); - slider->setRange(0, player->duration() / 1000); - - connect(slider, SIGNAL(sliderMoved(int)), this, SLOT(seek(int))); - QPushButton *openButton = new QPushButton(tr("Open")); - openButton->setIcon(style()->standardIcon(QStyle::SP_DialogOpenButton)); - - connect(openButton, SIGNAL(clicked()), this, SLOT(open())); - - PlayerControls *controls = new PlayerControls; - controls->setState(player->state()); - controls->setMuted(controls->isMuted()); - - connect(controls, SIGNAL(play()), player, SLOT(play())); - connect(controls, SIGNAL(pause()), player, SLOT(pause())); - connect(controls, SIGNAL(next()), playlist, SLOT(next())); - connect(controls, SIGNAL(previous()), playlist, SLOT(previous())); - connect(controls, SIGNAL(changeMuting(bool)), player, SLOT(setMuted(bool))); - - connect(player, SIGNAL(stateChanged(QMediaPlayer::State)), - controls, SLOT(setState(QMediaPlayer::State))); - connect(player, SIGNAL(mutedChanged(bool)), controls, SLOT(setMuted(bool))); - - QHBoxLayout *displayLayout = new QHBoxLayout; - coverLabel = new QLabel(this); - if (videoWidget) - displayLayout->addWidget(videoWidget, 2); - if (coverLabel) - displayLayout->addWidget(coverLabel, 2); - if (videoWidget) - coverLabel->hide(); - - QBoxLayout *controlLayout = new QHBoxLayout; - controlLayout->setMargin(0); - controlLayout->addWidget(openButton); - controlLayout->addStretch(1); - controlLayout->addWidget(controls); - controlLayout->addStretch(1); - - QBoxLayout *layout = new QVBoxLayout; - layout->addLayout(displayLayout); - layout->addWidget(slider); - layout->addLayout(controlLayout); - - QWidget *centralWidget = new QWidget; - centralWidget->setLayout(layout); - setCentralWidget(centralWidget); - - createMenu(); - - metaDataChanged(); - mediaKeysObserver = new MediaKeysObserver(this); - connect(mediaKeysObserver, SIGNAL(mediaKeyPressed(MediaKeysObserver::MediaKeys)), this, SLOT(handleMediaKeyEvent(MediaKeysObserver::MediaKeys))); -} - - - -S60Player::~S60Player() -{ - delete playlist; - delete player; - delete coverLabel; -} - -void S60Player::open() -{ - QStringList fileNames = QFileDialog::getOpenFileNames(); - foreach (QString const &fileName, fileNames) - playlist->addMedia(QUrl::fromLocalFile(fileName)); -} - -void S60Player::addMediaToPlayList(const QString &url) -{ - playlist->addMedia(QUrl(url)); - - playlist->setCurrentIndex(playlist->mediaCount() > 0 ? playlist->mediaCount()-1 : 0); -} - -void S60Player::durationChanged(qint64 duration) -{ - slider->setMaximum(duration / 1000); -} - -void S60Player::positionChanged(qint64 progress) -{ - slider->setValue(progress / 1000); -} - -void S60Player::metaDataChanged() -{ - if (player->isMetaDataAvailable()) { - setTrackInfo(QString("(%1/%2) %3 - %4") - .arg(playlist->currentIndex()+1) - .arg(playlist->mediaCount()) - .arg(player->metaData(QtMedia::AlbumArtist).toString()) - .arg(player->metaData(QtMedia::Title).toString())); - - if (coverLabel && !player->isVideoAvailable() ) { - QUrl uri = player->metaData(QtMedia::CoverArtUrlLarge).value(); - if (uri.isEmpty()) { - QVariant picture = player->extendedMetaData("attachedpicture"); - QPixmap p = NULL; - QByteArray bytearray = NULL; - bool success = false; - if (!picture.isNull() && picture.canConvert()) { - bytearray = picture.value(); - if (!bytearray.isNull()) - success = p.loadFromData(bytearray); - if (success) { - coverLabel->setPixmap(!p.isNull() - ? p - : QPixmap()); - } - } - else { - QUrl url = player->media().canonicalUrl(); - QString album("/Album.jpg"); - QString urli = url.path(); - int i = urli.lastIndexOf("/"); - QString path = urli.mid(1,i-1); - QString albumPath = path.append(album); - coverLabel->setPixmap(!albumPath.isEmpty() - ? QPixmap(albumPath) - : QPixmap()); - } - } - else { - coverLabel->setPixmap(!uri.isEmpty() - ? QPixmap(uri.toString()) - : QPixmap()); - } - } - } -} - - -void S60Player::seek(int seconds) -{ - player->setPosition(seconds * 1000); -} - -void S60Player::setVisibleWidget() -{ - if(!player->isVideoAvailable()) { - if (!videoWidget->isHidden()) - videoWidget->hide(); - if (coverLabel->isHidden()) - coverLabel->show(); - } - else { - if (!coverLabel->isHidden()) - coverLabel->hide(); - if (videoWidget->isHidden()) - videoWidget->show(); - } - metaDataChanged(); -} - -void S60Player::statusChanged(QMediaPlayer::MediaStatus status) -{ - switch (status) { - case QMediaPlayer::LoadedMedia: - setStatusInfo(QString()); - setVisibleWidget(); - player->play(); - break; - case QMediaPlayer::UnknownMediaStatus: - case QMediaPlayer::NoMedia: - case QMediaPlayer::BufferingMedia: - case QMediaPlayer::BufferedMedia: -#ifndef QT_NO_CURSOR - unsetCursor(); -#endif - setStatusInfo(QString()); - break; - case QMediaPlayer::LoadingMedia: -#ifndef QT_NO_CURSOR - setCursor(QCursor(Qt::BusyCursor)); -#endif - setStatusInfo(tr("Loading...")); - break; - case QMediaPlayer::StalledMedia: -#ifndef QT_NO_CURSOR - setCursor(QCursor(Qt::BusyCursor)); -#endif - break; - case QMediaPlayer::EndOfMedia: -#ifndef QT_NO_CURSOR - unsetCursor(); -#endif - setStatusInfo(QString()); - QApplication::alert(this); - break; - case QMediaPlayer::InvalidMedia: -#ifndef QT_NO_CURSOR - unsetCursor(); -#endif - setStatusInfo(player->errorString()); - break; - } -} - -void S60Player::bufferingProgress(int progress) -{ - setStatusInfo(tr("Buffering %4%%").arg(progress)); -} - -void S60Player::setTrackInfo(const QString &info) -{ - trackInfo = info; - - if (!statusInfo.isEmpty()) - setWindowTitle(QString("%1 | %2").arg(trackInfo).arg(statusInfo)); - else - setWindowTitle(trackInfo); - -} - -void S60Player::setStatusInfo(const QString &info) -{ - statusInfo = info; - - if (!statusInfo.isEmpty()) - setWindowTitle(QString("%1 | %2").arg(trackInfo).arg(statusInfo)); - else - setWindowTitle(trackInfo); -} - -void S60Player::showColorDialog() -{ - if (!colorDialog) { - QSlider *brightnessSlider = new QSlider(Qt::Horizontal); - brightnessSlider->setRange(-100, 100); - brightnessSlider->setValue(videoWidget->brightness()); - connect(brightnessSlider, SIGNAL(sliderMoved(int)), videoWidget, SLOT(setBrightness(int))); - connect(videoWidget, SIGNAL(brightnessChanged(int)), brightnessSlider, SLOT(setValue(int))); - - QSlider *contrastSlider = new QSlider(Qt::Horizontal); - contrastSlider->setRange(-100, 100); - contrastSlider->setValue(videoWidget->contrast()); - connect(contrastSlider, SIGNAL(sliderMoved(int)), videoWidget, SLOT(setContrast(int))); - connect(videoWidget, SIGNAL(contrastChanged(int)), contrastSlider, SLOT(setValue(int))); - - QSlider *hueSlider = new QSlider(Qt::Horizontal); - hueSlider->setRange(-100, 100); - hueSlider->setValue(videoWidget->hue()); - connect(hueSlider, SIGNAL(sliderMoved(int)), videoWidget, SLOT(setHue(int))); - connect(videoWidget, SIGNAL(hueChanged(int)), hueSlider, SLOT(setValue(int))); - - QSlider *saturationSlider = new QSlider(Qt::Horizontal); - saturationSlider->setRange(-100, 100); - saturationSlider->setValue(videoWidget->saturation()); - connect(saturationSlider, SIGNAL(sliderMoved(int)), videoWidget, SLOT(setSaturation(int))); - connect(videoWidget, SIGNAL(saturationChanged(int)), saturationSlider, SLOT(setValue(int))); - - QFormLayout *layout = new QFormLayout; - layout->addRow(tr("Brightness"), brightnessSlider); - layout->addRow(tr("Contrast"), contrastSlider); - layout->addRow(tr("Hue"), hueSlider); - layout->addRow(tr("Saturation"), saturationSlider); - - colorDialog = new QDialog(this); - colorDialog->setWindowTitle(tr("Color Options")); - colorDialog->setLayout(layout); - } - colorDialog->show(); -} - -void S60Player::handleMediaKeyEvent(MediaKeysObserver::MediaKeys key) -{ - switch (key) { - case MediaKeysObserver::EVolIncKey: - player->setVolume(player->volume() + 10); - break; - case MediaKeysObserver::EVolDecKey: - player->setVolume(player->volume() - 10); - break; - default: - break; - } -} - -void S60Player::createMenu() -{ - if (videoWidget) { - QAction* actionToggleFullscreen = menuBar()->addAction("Toggle fullscreen"); - actionToggleFullscreen->setCheckable(true); - connect(actionToggleFullscreen, SIGNAL(triggered(bool)), videoWidget, SLOT(setFullScreen(bool))); - - QAction* actionColorAdjust = menuBar()->addAction("Color Adjust"); - connect(actionColorAdjust, SIGNAL(triggered()), this, SLOT(showColorDialog())); - } - - QAction *youtubeAction = menuBar()->addAction("Youtube search"); - connect(youtubeAction, SIGNAL(triggered()), this, SLOT(launchYoutubeDialog())); - - rateMenu = menuBar()->addMenu(tr("Rate")); - - signalMapper = new QSignalMapper(this); - QAction *menu_05Action = new QAction(tr("0.5x"), this); - connect(menu_05Action, SIGNAL(triggered()), signalMapper, SLOT(map())); - signalMapper->setMapping(menu_05Action, "0.5"); - - QAction *menu_10Action = new QAction(tr("1.0x"), this); - connect(menu_10Action, SIGNAL(triggered()), signalMapper, SLOT(map())); - signalMapper->setMapping(menu_10Action, "1.0"); - - QAction *menu_20Action = new QAction(tr("2.0x"), this); - connect(menu_20Action, SIGNAL(triggered()), signalMapper, SLOT(map())); - signalMapper->setMapping(menu_20Action, "2.0"); - - connect(signalMapper, SIGNAL(mapped(const QString &)), - this, SLOT(updateRate(const QString &))); - - rateMenu->addAction(menu_05Action); - rateMenu->addAction(menu_10Action); - rateMenu->addAction(menu_20Action); -} - -void S60Player::updateRate(const QString & rate) -{ - player->setPlaybackRate(rate.toFloat()); -} - -void S60Player::launchYoutubeDialog() -{ - YoutubeDialog youtube(this); - youtube.exec(); -} - -YoutubeDialog::YoutubeDialog(S60Player *player) - : QDialog(0), m_player(player) -{ - searchLine= new QLineEdit(this); - QPushButton *searchButton = new QPushButton("Search"); - QHBoxLayout *topLayout = new QHBoxLayout; - topLayout->addWidget(searchLine); - topLayout->addWidget(searchButton); - connect(searchButton, SIGNAL(clicked()), this, SLOT(search())); - - videoList = new QListWidget(this); - QPushButton *playButton = new QPushButton("Add"); - connect(playButton, SIGNAL(clicked()), this, SLOT(add())); - QPushButton *closeButton = new QPushButton("Close"); - connect(closeButton, SIGNAL(clicked()), this, SLOT(close())); - - QHBoxLayout *bottomLayout = new QHBoxLayout; - bottomLayout->addWidget(playButton); - bottomLayout->addWidget(closeButton); - - QVBoxLayout *mainLayout = new QVBoxLayout; - mainLayout->addLayout(topLayout); - mainLayout->addWidget(videoList); - mainLayout->addLayout(bottomLayout); - - setLayout(mainLayout); - - connect(&http, SIGNAL(requestFinished(int, bool)), - this, SLOT(httpRequestFinished(int, bool))); - connect(&http, SIGNAL(responseHeaderReceived(const QHttpResponseHeader&)), - this, SLOT(readResponseHeader(const QHttpResponseHeader&))); - - showFullScreen(); -} - -void YoutubeDialog::readResponseHeader(const QHttpResponseHeader& responseHeader) -{ - switch (responseHeader.statusCode()) - { - case 200: // Ok - case 301: // Moved Permanently - case 302: // Found - case 303: // See Other - case 307: // Temporary Redirect - { - // these are not error conditions - break; - } - default: - { - QMessageBox::information(this, tr("Youtube"), - tr("Download failed: %1.").arg(responseHeader.reasonPhrase())); - httpRequestAborted = true; - http.abort(); - } - } -} - -void YoutubeDialog::add() -{ - qDebug() << videoList->currentRow(); - qDebug() << videoNameList.at(videoList->currentRow()); - qDebug() << videoNameList; - m_player->addMediaToPlayList(videoNameList.at(videoList->currentRow())); -} - -void YoutubeDialog::search() -{ - QString searchText = searchLine->text().replace(' ', '+'); - - QString urlstring = QString("http://gdata.youtube.com/feeds/api/videos?" \ - "q=%1&max-results=25&v=2&format=6").arg(searchText); - httpRequestAborted = false; - QUrl url(urlstring); - http.setHost(url.host(), QHttp::ConnectionModeHttp, url.port() == -1 ? 0 : url.port()); - videoList->clear(); - videoNameList.clear(); - httpGetId = http.get(urlstring); -} - -void YoutubeDialog::httpRequestFinished(int requestId, bool error) -{ - if (requestId != httpGetId || httpRequestAborted) - { - return; - } - - if (error) - { - QMessageBox::information(this, tr("Youtube"), - tr("Download failed: %1.") - .arg(http.errorString())); - } - else - { - QString data = http.readAll(); - QTextStream in(&data); - QStringList lines; - - QTemporaryFile file; - if (!file.open()) { - QMessageBox::information(this, tr("Youtube"), - tr("Error")); - return; - } - - QTextStream out(&file); - - while (!in.atEnd()) - { - QString oneLine = in.readLine(); - out << oneLine; - lines.append(oneLine); - } - file.close(); - - if (!file.open()) { - QMessageBox::information(this, tr("Youtube"), - tr("Error")); - return; - } - - QDomDocument domDocument; - QString errorMessage; - if (!domDocument.setContent(&file, true, &errorMessage)) { - return; - } - - QDomElement root = domDocument.documentElement(); - if (root.tagName() != "feed") - return; - - QDomElement entryElement = root.firstChildElement("entry"); - - while(!entryElement.isNull()) - { - QString title = entryElement.firstChildElement("title").text(); - QDomElement groupElement = entryElement.firstChildElement("group"); - QDomElement incidentElement2 = groupElement.firstChildElement("content"); - while(!incidentElement2.isNull()) - { - // "6" = MPEG-4 SP video (up to 176x144) and AAC audio. - if (incidentElement2.attribute("format") == "6") { - videoList->addItem(title); - videoNameList.append(incidentElement2.attribute("url")); - break; - } - incidentElement2 = incidentElement2.nextSiblingElement("content"); - } - - entryElement = entryElement.nextSiblingElement("entry"); - } - } -} - diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/player.h --- a/qtmobility/tests/playerex_s60/player.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,146 +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 Qt Mobility Components. -** -** $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 PLAYER_H -#define PLAYER_H - -#include -#include -#include -#include -#include - -#include -#include -#include -#include "mediakeysobserver.h" - -class QAbstractItemView; -class QLabel; -class QModelIndex; -class QSlider; -class QSignalMapper; - -QTM_BEGIN_NAMESPACE -class QMediaPlayer; -class QVideoWidget; -QTM_END_NAMESPACE - -QTM_USE_NAMESPACE - -class PlaylistModel; - -class S60Player : public QMainWindow -{ - Q_OBJECT -public: - S60Player(QMainWindow *parent = 0); - ~S60Player(); - - void createMenu(); - -Q_SIGNALS: - void fullScreenChanged(bool fullScreen); - -public slots: - void addMediaToPlayList(const QString &url); - -private slots: - void open(); - void durationChanged(qint64 duration); - void positionChanged(qint64 progress); - void metaDataChanged(); - - void seek(int seconds); - - void statusChanged(QMediaPlayer::MediaStatus status); - void bufferingProgress(int progress); - - void showColorDialog(); - void handleMediaKeyEvent(MediaKeysObserver::MediaKeys key); - - void updateRate(const QString & rate); - - void launchYoutubeDialog(); - -private: - void setVisibleWidget(); - void setTrackInfo(const QString &info); - void setStatusInfo(const QString &info); - - QMediaPlayer *player; - QMediaPlaylist *playlist; - QVideoWidget *videoWidget; - QLabel *coverLabel; - QSlider *slider; - QDialog *colorDialog; - QString trackInfo; - QString statusInfo; - QMenu *rateMenu; - QSignalMapper *signalMapper; - MediaKeysObserver *mediaKeysObserver; -}; - -class YoutubeDialog : public QDialog -{ - Q_OBJECT - -public: - YoutubeDialog(S60Player *player); - -private slots: - void httpRequestFinished(int requestId, bool error); - void readResponseHeader(const QHttpResponseHeader& responseHeader); - void search(); - void add(); - -private: - QLineEdit *searchLine; - QListWidget *videoList; - QStringList videoNameList; - QHttp http; - bool httpRequestAborted; - int httpGetId; - - S60Player *m_player; - }; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/playercontrols.cpp --- a/qtmobility/tests/playerex_s60/playercontrols.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,144 +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 Qt Mobility Components. -** -** $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 "playercontrols.h" - -#include -#include -#include -#include -#include - -PlayerControls::PlayerControls(QWidget *parent) - : QWidget(parent) - , playerState(QMediaPlayer::StoppedState) - , playerMuted(false) - , playButton(0) - , nextButton(0) - , previousButton(0) - , muteButton(0) -{ - playButton = new QToolButton; - playButton->setIcon(style()->standardIcon(QStyle::SP_MediaPlay)); - - connect(playButton, SIGNAL(clicked()), this, SLOT(playClicked())); - - nextButton = new QToolButton; - nextButton->setIcon(style()->standardIcon(QStyle::SP_MediaSkipForward)); - - connect(nextButton, SIGNAL(clicked()), this, SIGNAL(next())); - - previousButton = new QToolButton; - previousButton->setIcon(style()->standardIcon(QStyle::SP_MediaSkipBackward)); - - connect(previousButton, SIGNAL(clicked()), this, SIGNAL(previous())); - - muteButton = new QToolButton; - muteButton->setIcon(style()->standardIcon(QStyle::SP_MediaVolume)); - - connect(muteButton, SIGNAL(clicked()), this, SLOT(muteClicked())); - - QBoxLayout *layout = new QHBoxLayout; - layout->setMargin(0); - layout->addWidget(previousButton); - layout->addWidget(playButton); - layout->addWidget(nextButton); - layout->addWidget(muteButton); - setLayout(layout); -} - -QMediaPlayer::State PlayerControls::state() const -{ - return playerState; -} - -void PlayerControls::setState(QMediaPlayer::State state) -{ - if (state != playerState) { - playerState = state; - - switch (state) { - case QMediaPlayer::StoppedState: - playButton->setIcon(style()->standardIcon(QStyle::SP_MediaPlay)); - break; - case QMediaPlayer::PlayingState: - playButton->setIcon(style()->standardIcon(QStyle::SP_MediaPause)); - break; - case QMediaPlayer::PausedState: - playButton->setIcon(style()->standardIcon(QStyle::SP_MediaPlay)); - break; - } - } -} - -bool PlayerControls::isMuted() const -{ - return playerMuted; -} - -void PlayerControls::setMuted(bool muted) -{ - if (muted != playerMuted) { - playerMuted = muted; - - muteButton->setIcon(style()->standardIcon(muted - ? QStyle::SP_MediaVolumeMuted - : QStyle::SP_MediaVolume)); - } -} - -void PlayerControls::playClicked() -{ - switch (playerState) { - case QMediaPlayer::StoppedState: - case QMediaPlayer::PausedState: - emit play(); - break; - case QMediaPlayer::PlayingState: - emit pause(); - break; - } -} - -void PlayerControls::muteClicked() -{ - emit changeMuting(!playerMuted); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/playercontrols.h --- a/qtmobility/tests/playerex_s60/playercontrols.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +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 Qt Mobility Components. -** -** $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 PLAYERCONTROLS_H -#define PLAYERCONTROLS_H - -#include - -#include - -class QAbstractButton; -class QAbstractSlider; -class QComboBox; - -QTM_USE_NAMESPACE - -class PlayerControls : public QWidget -{ - Q_OBJECT -public: - PlayerControls(QWidget *parent = 0); - - QMediaPlayer::State state() const; - - bool isMuted() const; - -public slots: - void setState(QMediaPlayer::State state); - void setMuted(bool muted); - -signals: - void play(); - void pause(); - void stop(); - void next(); - void previous(); - void changeVolume(int volume); - void changeMuting(bool muting); - void changeRate(qreal rate); - -private slots: - void playClicked(); - void muteClicked(); - -private: - QMediaPlayer::State playerState; - bool playerMuted; - QAbstractButton *playButton; - QAbstractButton *nextButton; - QAbstractButton *previousButton; - QAbstractButton *muteButton; -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/playerex_s60.pro --- a/qtmobility/tests/playerex_s60/playerex_s60.pro Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -TEMPLATE = app -TARGET = s60player -QT += network \ - xml - -INCLUDEPATH += ../../src/multimedia - -include(../../examples/examples.pri) -CONFIG += mobility -qtAddLibrary(QtMedia) - -HEADERS = \ - player.h \ - playercontrols.h \ - videowidget.h -SOURCES = main.cpp \ - player.cpp \ - playercontrols.cpp \ - videowidget.cpp - -include(mediakeysobserver.pri) - -symbian:TARGET.CAPABILITY = ALL -TCB diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/videowidget.cpp --- a/qtmobility/tests/playerex_s60/videowidget.cpp Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +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 Qt Mobility Components. -** -** $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 "videowidget.h" - -#include - -VideoWidget::VideoWidget(QWidget *parent) - : QVideoWidget(parent) -{ - setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); -} - -void VideoWidget::keyPressEvent(QKeyEvent *event) -{ - if (event->key() == Qt::Key_Escape && isFullScreen()) { - showNormal(); - - event->accept(); - } else if (event->key() == Qt::Key_Enter && event->modifiers() & Qt::Key_Alt) { - setFullScreen(!isFullScreen()); - - event->accept(); - } else { - QVideoWidget::keyPressEvent(event); - } -} - -void VideoWidget::mouseDoubleClickEvent(QMouseEvent *event) -{ - setFullScreen(!isFullScreen()); - - event->accept(); -} diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/playerex_s60/videowidget.h --- a/qtmobility/tests/playerex_s60/videowidget.h Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +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 Qt Mobility Components. -** -** $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 VIDEOWIDGET_H -#define VIDEOWIDGET_H - -#include - -QTM_USE_NAMESPACE - -class VideoWidget : public QVideoWidget -{ - Q_OBJECT -public: - VideoWidget(QWidget *parent = 0); - -protected: - void keyPressEvent(QKeyEvent *event); - void mouseDoubleClickEvent(QMouseEvent *event); -}; - -#endif diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/rom/qtmobilitytests.iby --- a/qtmobility/tests/rom/qtmobilitytests.iby Fri Apr 16 15:51:22 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU Lesser General Public License as published by -* the Free Software Foundation, version 2.1 of the License. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU Lesser General Public License for more details. -* -* You should have received a copy of the GNU Lesser General Public License -* along with this program. If not, -* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". -* -* Description: -* -*/ - -#ifndef __QT_MOBILITYTESTS_IBY__ -#define __QT_MOBILITYTESTS_IBY__ - -#include - -#define UPGRADABLE_APP_REG_RSC(NAME) data=DATAZ_\PRIVATE\10003A3F\IMPORT\APPS\ ## NAME ## _reg.rsc Private\10003a3f\import\apps\ ## NAME ## _reg.rsc - -S60_APP_EXE(bearerex) -S60_APP_RESOURCE(bearerex) -UPGRADABLE_APP_REG_RSC(bearerex) - -S60_APP_EXE(messagingex) -S60_APP_RESOURCE(messagingex) -UPGRADABLE_APP_REG_RSC(messagingex) - -S60_APP_EXE(publishsubscribeex) -S60_APP_RESOURCE(publishsubscribeex) -UPGRADABLE_APP_REG_RSC(publishsubscribeex) -data=\epoc32\data\z\resource\qt\crml\resources.qcrml resource\qt\crml\resources.qcrml -data=\epoc32\data\z\resource\qt\crml\profile.qcrml resource\qt\crml\profile.qcrml - -#endif //__QT_MOBILITYTESTS_IBY__ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/s60installs/qtmobilitytests.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/s60installs/qtmobilitytests.iby Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation, version 2.1 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this program. If not, +* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". +* +* Description: +* +*/ + +#ifndef __QT_MOBILITYTESTS_IBY__ +#define __QT_MOBILITYTESTS_IBY__ + +#include + +#define UPGRADABLE_APP_REG_RSC(NAME) data=DATAZ_\PRIVATE\10003A3F\IMPORT\APPS\ ## NAME ## _reg.rsc Private\10003a3f\import\apps\ ## NAME ## _reg.rsc + +S60_APP_EXE(bearerex) +S60_APP_RESOURCE(bearerex) +UPGRADABLE_APP_REG_RSC(bearerex) + +S60_APP_EXE(messagingex) +S60_APP_RESOURCE(messagingex) +UPGRADABLE_APP_REG_RSC(messagingex) + +S60_APP_EXE(s60player) +S60_APP_RESOURCE(s60player) +UPGRADABLE_APP_REG_RSC(s60player) + +S60_APP_EXE(publishsubscribeex) +S60_APP_RESOURCE(publishsubscribeex) +UPGRADABLE_APP_REG_RSC(publishsubscribeex) +data=\epoc32\data\z\resource\qt\crml\resources.qcrml resource\qt\crml\resources.qcrml +data=\epoc32\data\z\resource\qt\crml\profile.qcrml resource\qt\crml\profile.qcrml + +#endif //__QT_MOBILITYTESTS_IBY__ diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/s60installs/s60installs.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtmobility/tests/s60installs/s60installs.pro Mon May 03 13:18:40 2010 +0300 @@ -0,0 +1,7 @@ +!symbian:error(This test is for Symbian packaging purposes only.) + +TEMPLATE = subdirs + +include(../../staticconfig.pri) + +BLD_INF_RULES.prj_exports += "./qtmobilitytests.iby $$CUSTOMER_VARIANT_APP_LAYER_IBY_EXPORT_PATH(qtmobilitytests.iby)" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/tests.pro --- a/qtmobility/tests/tests.pro Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/tests.pro Mon May 03 13:18:40 2010 +0300 @@ -13,8 +13,6 @@ symbian { contains(mobility_modules,messaging): SUBDIRS += messagingex - contains(mobility_modules,multimedia): SUBDIRS += cameracapture_s60 playerex_s60 contains(mobility_modules,publishsubscribe): SUBDIRS += publishsubscribeex + SUBDIRS += s60installs/s60installs.pro } - -BLD_INF_RULES.prj_exports += "./rom/qtmobilitytests.iby $$CUSTOMER_VARIANT_APP_LAYER_IBY_EXPORT_PATH(qtmobilitytests.iby)" diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tests/testservice2/testserviceplugin.h --- a/qtmobility/tests/testservice2/testserviceplugin.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tests/testservice2/testserviceplugin.h Mon May 03 13:18:40 2010 +0300 @@ -43,10 +43,10 @@ #include #include -#include "qserviceplugininterface.h" -#include "qserviceinterfacedescriptor.h" -#include "qservicecontext.h" -#include "qabstractsecuritysession.h" +#include "../../src/serviceframework/qserviceplugininterface.h" +#include "../../src/serviceframework/qserviceinterfacedescriptor.h" +#include "../../src/serviceframework/qservicecontext.h" +#include "../../src/serviceframework/qabstractsecuritysession.h" QTM_USE_NAMESPACE diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tools/icheck/main.cpp --- a/qtmobility/tools/icheck/main.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tools/icheck/main.cpp Mon May 03 13:18:40 2010 +0300 @@ -65,7 +65,7 @@ QString interfaceHeaderFile = argv[1]; QString checkHeaderFile = argv[2]; - QString curpath = QDir::currentPath(); + const QString curpath = QDir::currentPath(); //Create FileInfos for the header files QFileInfo iFileInfo(interfaceHeaderFile); if (iFileInfo.isDir() || !iFileInfo.exists()){ @@ -74,7 +74,7 @@ else err = "File does not exist: " + interfaceHeaderFile; } - if(err == ""){ + if(err.isEmpty()){ QFileInfo chFileInfo(checkHeaderFile); if (chFileInfo.isDir() || !chFileInfo.exists()){ if(chFileInfo.isDir()) @@ -82,7 +82,7 @@ else err = "File does not exist: " + checkHeaderFile; } - if(err == ""){ + if(err.isEmpty()){ //Read other parameters QString outputfile; for(int i = 3; i < argc; i++) @@ -134,7 +134,7 @@ } } - if(err != "") //prit out error + if(!err.isEmpty()) //prit out error { cout << endl << "Error:" << endl; cout << (const char *)err.toLatin1(); diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tools/icheck/parsemanager.cpp --- a/qtmobility/tools/icheck/parsemanager.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tools/icheck/parsemanager.cpp Mon May 03 13:18:40 2010 +0300 @@ -521,7 +521,7 @@ bool ret = true; //Create output file - if(resultfile != "" && ::m_resultFile == 0){ + if(!resultfile.isEmpty() && ::m_resultFile == 0){ ::m_resultFile = new QFile(resultfile); if (!::m_resultFile->open(QFile::WriteOnly | QFile::Truncate)) { delete ::m_resultFile; diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tools/icheck/parser/src/plugins/cpptools/cppmodelmanager.h --- a/qtmobility/tools/icheck/parser/src/plugins/cpptools/cppmodelmanager.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tools/icheck/parser/src/plugins/cpptools/cppmodelmanager.h Mon May 03 13:18:40 2010 +0300 @@ -1,20 +1,19 @@ -/************************************************************************** +/**************************************************************************** ** -** This file is part of Qt Creator -** -** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** -** Commercial Usage +** This file is part of the Qt Mobility Components. ** -** Licensees holding valid Qt Commercial licenses may use this file in -** accordance with the Qt Commercial License Agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Nokia. +** $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 @@ -22,10 +21,23 @@ ** 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. ** -** If you are unsure which license is appropriate for your use, please -** contact the sales department at http://qt.nokia.com/contact. +** 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 CPPMODELMANAGER_H #define CPPMODELMANAGER_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tools/icheck/parser/src/plugins/cpptools/cppmodelmanagerinterface.h --- a/qtmobility/tools/icheck/parser/src/plugins/cpptools/cppmodelmanagerinterface.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tools/icheck/parser/src/plugins/cpptools/cppmodelmanagerinterface.h Mon May 03 13:18:40 2010 +0300 @@ -1,20 +1,19 @@ -/************************************************************************** +/**************************************************************************** ** -** This file is part of Qt Creator -** -** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** -** Commercial Usage +** This file is part of the Qt Mobility Components. ** -** Licensees holding valid Qt Commercial licenses may use this file in -** accordance with the Qt Commercial License Agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Nokia. +** $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 @@ -22,10 +21,23 @@ ** 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. ** -** If you are unsure which license is appropriate for your use, please -** contact the sales department at http://qt.nokia.com/contact. +** 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 CPPMODELMANAGERINTERFACE_H #define CPPMODELMANAGERINTERFACE_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tools/icheck/parser/src/plugins/cpptools/cpptools_global.h --- a/qtmobility/tools/icheck/parser/src/plugins/cpptools/cpptools_global.h Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tools/icheck/parser/src/plugins/cpptools/cpptools_global.h Mon May 03 13:18:40 2010 +0300 @@ -1,20 +1,19 @@ -/************************************************************************** +/**************************************************************************** ** -** This file is part of Qt Creator -** -** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** -** Commercial Usage +** This file is part of the Qt Mobility Components. ** -** Licensees holding valid Qt Commercial licenses may use this file in -** accordance with the Qt Commercial License Agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Nokia. +** $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 @@ -22,10 +21,23 @@ ** 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. ** -** If you are unsure which license is appropriate for your use, please -** contact the sales department at http://qt.nokia.com/contact. +** 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 CPPTOOLS_GLOBAL_H #define CPPTOOLS_GLOBAL_H diff -r 2b40d63a9c3d -r 90517678cc4f qtmobility/tools/vsexplorer/vsexplorer.cpp --- a/qtmobility/tools/vsexplorer/vsexplorer.cpp Fri Apr 16 15:51:22 2010 +0300 +++ b/qtmobility/tools/vsexplorer/vsexplorer.cpp Mon May 03 13:18:40 2010 +0300 @@ -505,7 +505,7 @@ listwatchers(); } else if((cmd == "subscriptions") && 1 == cmds.count()) { subscriptions(); - } else if(cmd == "") { + } else if(cmd.isEmpty()) { } else { printError(); }